/* Shared mode layers over the preserved original visual system. */
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(300px,.9fr) minmax(340px,1.1fr);background:#f3f6f9}.auth-brand{padding:clamp(40px,8vw,110px);background:#163349;color:#eef8fc;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:25px}.auth-brand img{border-radius:17px;background:#fff}.auth-kicker{color:#a2d1cc;font-size:12px;letter-spacing:.16em}.auth-brand h1{font-size:clamp(30px,3.5vw,48px);line-height:1.45;font-weight:600}.auth-brand>p:last-child{line-height:2;color:#b5cdd8;font-size:15px}.auth-card{width:min(470px,calc(100% - 48px));align-self:center;justify-self:center;padding:34px;border:1px solid #dfe8ed;border-radius:17px;background:#fff;box-shadow:0 12px 50px #14343d08}.auth-card h2{font-size:24px;margin:18px 0 22px}.auth-card form{display:grid;gap:17px}.auth-card label{display:grid;gap:7px;color:#526b7b;font-size:13px}.auth-card input{width:100%;padding:11px 12px}.auth-card button{min-height:45px}.auth-footnote{font-size:11px;color:#7b8b97;line-height:1.8;border-top:1px solid #e6edf1;padding-top:20px;margin-top:24px}.auth-card .error:empty{display:none}.role-controls{max-width:100%}.account-dialog{width:850px;max-width:min(850px,95vw);max-height:90vh}.account-row{display:flex;justify-content:space-between;align-items:center;padding:18px 0;gap:16px;border-bottom:1px solid #e2e9ee}.account-row strong{display:block}.account-row small{overflow-wrap:anywhere}.account-row-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:wrap}.account-row-actions label{display:grid;gap:3px;font-size:11px}.account-row select{min-width:90px;max-width:150px;font-size:12px;padding:5px 7px}.invite-form{padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.invite-form>label{display:grid;gap:5px}.invite-form fieldset,.invite-form>button{grid-column:1/-1}.invite-form fieldset{border:1px solid #dde5eb;border-radius:8px}.invite-form fieldset label{display:flex;gap:7px;align-items:center;padding:5px 0}.account-secret:not(:empty){border:1px solid #e3d6b5;background:#fff9eb;padding:16px;border-radius:8px;font-size:12px;margin-top:18px;overflow-wrap:anywhere}.account-secret input{width:100%;margin-top:10px}#createProjectForm>label{display:grid;gap:7px;margin:20px 0}.prestart{border:1px solid #d7e4e7;border-radius:10px;margin:18px 0;background:#fff}.prestart>summary{padding:14px 15px;font-weight:600;cursor:pointer}.prestart-intro{padding:0 15px 12px;color:#64758a;font-size:12px}.prestart-item{padding:14px 15px;border-top:1px solid #e5ebee}.prestart-item-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.prestart-item-heading strong{font-size:13px}.prestart-item p{font-size:12px;margin-top:7px;color:#64758a}.prestart-form{display:grid;gap:9px;margin-top:12px}.prestart-form .fields{grid-template-columns:1fr 1fr;margin:0;gap:9px}.prestart-form label{font-size:12px;color:#64758a;display:grid;gap:5px}.prestart-form textarea{min-height:60px}.prestart-form button{justify-self:start}.prestart-photos{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.prestart-photos a{display:block}.prestart-photos img{display:block;width:72px;height:56px;object-fit:cover;border-radius:6px;border:1px solid #dfe8eb}.prestart-upload{display:inline-flex;position:relative;color:#007b78;font-size:12px;cursor:pointer;margin-top:10px;text-decoration:underline}.prestart-upload input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.prestart-exception{padding:15px;background:#fff9ee;border-top:1px solid #eadfc6;font-size:12px}.prestart-exception form{display:grid;gap:9px}.prestart-exception label{display:grid;gap:5px}.prestart-exception p{margin-bottom:8px;color:#95621c}.model-prestart-badge{display:inline-flex;padding:3px 8px;border-radius:5px;background:#edf5f3;color:#2e756b;margin:5px 0;font-size:11px}.prestart-status.pending{background:#eff2f5;color:#64758a}.prestart-status.verified{background:#e5f5ed;color:#18754d}.prestart-status.blocked{background:#fde9e9;color:#b44545}.prestart-owners{font-size:11px;color:#64758a}.auth-shell[hidden]{display:none}.readonly-note strong{font-weight:600}.model-mapping-summary{margin-top:10px;padding-top:10px;border-top:1px solid #e1e8ed}.model-mapping-summary h3{margin-bottom:8px}.model-mapping-summary ul{margin:0;padding-left:18px}.model-mapping-summary li{font-size:12px;margin-bottom:5px}
@media(max-width:740px){.auth-shell{display:block;padding-bottom:28px}.auth-brand{padding:30px 26px;gap:12px}.auth-brand img{width:48px;height:48px}.auth-brand h1{font-size:28px}.auth-brand h1 br,.auth-brand>p:last-child{display:none}.auth-card{margin:26px auto 0;width:calc(100% - 32px);padding:25px}.account-row{align-items:flex-start;flex-direction:column;gap:10px}.account-row-actions{justify-content:flex-start}.invite-form{grid-template-columns:1fr}.role-controls{gap:6px}.role-controls .btn{padding:6px 9px;font-size:11px}.prestart-form .fields{grid-template-columns:1fr}}

.locked-project{padding:22px}.lock-password-label{display:grid;gap:8px;margin:20px 0}.locked-project .card-heading{padding:0}.locked-project .project-meta{margin-top:12px}

.command-error{padding:11px 13px;margin:0 0 12px;border:1px solid #e7bbbb;border-radius:7px;background:#fff0f0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}

.auth-switch{display:flex;margin-top:16px}.auth-switch .btn{width:100%;min-height:42px}.model-access-dialog{width:600px;max-height:92vh}.model-access-dialog input{width:100%;min-width:0}.model-access-dialog #modelAccessLink{font-size:12px;overflow-wrap:anywhere}.model-access-dialog #modelAccessStatus{padding:12px;background:#edf5f3;border-radius:7px;margin-top:16px;font-size:13px}.workbench-empty .btn{display:inline-flex;margin-top:14px}.role-controls>a.btn{text-decoration:none;align-items:center}
