.app-shell[hidden] { display: none; }
.auth-screen { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 20px; background: #f8fafd; color: #202124; }
.auth-screen[hidden] { display: none; }
.auth-card { width: min(100%, 440px); padding: 24px; border: 1px solid #dadce0; border-radius: 12px; background: #fff; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 9px; width: fit-content; margin: 0 auto; color: #202124; text-decoration: none; font-size: 20px; font-weight: 600; }
.auth-brand .brand-mark { width: 30px; height: 30px; }
.auth-card h1 { margin: 18px 0 6px; font-size: 24px; line-height: 32px; font-weight: 600; text-align: center; }
.auth-card > p:not(.auth-switch):not(.auth-footnote) { margin: 0 0 14px; color: #5f6368; line-height: 20px; text-align: center; }
.auth-card .form-field { margin: 8px 0; }
.auth-card .form-field input,
.auth-card .form-field select { width: 100%; height: 40px; border-radius: 5px; }
.auth-card .primary-button { justify-content: center; min-width: 108px; }
.auth-card .auth-submit { width: 100%; margin-top: 6px; }
.auth-card button:disabled { cursor: not-allowed; opacity: .52; }
.auth-terms-check { display:flex; align-items:flex-start; gap:9px; margin:8px 0 12px; color:#5f6368; font-size:13px; line-height:19px; cursor:pointer; }
.auth-terms-check input { width:16px; height:16px; flex:none; margin:1px 0 0; accent-color:#1a73e8; }
.auth-switch { margin: 14px 0 0; text-align: center; color: #5f6368; }
.auth-switch .link-button { padding: 4px; }
.auth-footnote { margin: 14px 0 0; color: #737373; font-size: 12px; text-align: center; }
.field-hint { min-height: 16px; color: #737373; font-size: 12px; line-height: 16px; }
.auth-card .field-hint:empty,
.auth-card .form-error:empty { display: none; }
.form-field.is-invalid input { border-color: #d93025; }
.form-field.is-invalid .field-hint { color: #b3261e; }
.form-field.is-valid input { border-color: #188038; }
.form-field.is-valid .field-hint { color: #137333; }
.form-error { min-height: 18px; margin: 8px 0; color: #b3261e !important; font-size: 14px; }
.account-dialog { width: min(560px, 100%); max-height: min(90vh, 860px); overflow-y: auto; }
.account-dialog #dialog-content > h2 { margin-bottom: 6px; }
.account-dialog #dialog-content > p:first-of-type { margin: 0 0 6px; }
.account-dialog .account-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.account-dialog .account-form-fields [data-account-field="name"] { grid-column: 1 / -1; }
.account-dialog .form-field { min-width: 0; margin: 8px 0; }
.account-dialog .form-field input,
.account-dialog .form-field select { width: 100%; height: 40px; }
.account-dialog .field-hint:empty { display: none; }
.account-dialog .feature-fieldset { margin-top: 10px; }
.feature-fieldset { min-width: 0; margin: 18px 0 4px; padding: 13px 14px 12px; border: 1px solid #dadce0; border-radius: 9px; }
.account-dialog .feature-fieldset { padding: 8px 12px; }
.feature-fieldset legend { padding: 0 5px; font-weight: 500; }
.feature-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 12px; }
.feature-check { min-height: 32px; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.feature-check input { width: 16px; height: 16px; accent-color: #1a73e8; }
.feature-fieldset > small { display: block; margin-top: 6px; color: #5f6368; line-height: 18px; }
.account-dialog .feature-fieldset > small { margin-top: 4px; line-height: 17px; }
.account-dialog .dialog-actions { margin-top: 8px; }
.account-dialog .account-actions { flex-direction: column; align-items: stretch; }
.user-active-check { display: flex; align-items: center; gap: 9px; margin: 12px 0; cursor: pointer; }
.user-active-check input { width: 16px; height: 16px; accent-color: #1a73e8; }
.users-heading { align-items: center; gap: 16px; }
.users-heading h2 { margin: 0 0 5px; }
.users-heading p { margin: 0; color: #5f6368; }
.users-heading .primary-button { flex: none; }
.users-table { min-width: 760px; }
.users-table .person-info small { max-width: 340px; overflow-wrap: anywhere; }
.users-table .secondary-button { height: 34px; white-space: nowrap; }
.status-badge.inactive { background: #fce8e6; color: #b3261e; }
.status-badge.pending { background: #fef7e0; color: #8a5a00; }
.auth-workspace-field { margin: 0 0 12px !important; }
.auth-card .auth-workspace-field select { padding: 0 12px; border: 1px solid #dadce0; background: #fff; color: #202124; font-weight: 400; }
.storage-button:hover { color: #174ea6; }
.pending-access-mark { width: 48px; height: 48px; display: grid; place-items: center; margin: 20px auto 12px; border-radius: 50%; background: #e6f4ea; color: #188038; font-size: 25px; font-weight: 600; }
.auth-card .pending-access-note { padding: 12px; border-radius: 8px; background: #f8fafd; color: #5f6368; font-size: 14px; text-align: left; }
.approval-actions-inner { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.approval-actions .primary-button,
.approval-actions .secondary-button,
.users-table [data-user-approve],
.users-table [data-user-reject] { min-height: 34px; white-space: nowrap; }
.account-summary { display: flex; align-items: center; gap: 14px; padding: 12px 0 4px; }
.account-summary .person-avatar { width: 42px; height: 42px; }
.account-summary strong,
.account-summary small { display: block; font-size: 16px; line-height: 22px; }
.account-summary strong { font-weight: 400; }
.account-summary small { margin-top: 2px; color: #5f6368; }
body.dark-theme .auth-screen { background: #202124; color: #e8eaed; }
body.dark-theme .auth-card,
body.dark-theme .account-dialog { background: #292a2d; color: #e8eaed; border-color: #5f6368; }
body.dark-theme .auth-brand { color: #e8eaed; }
body.dark-theme .auth-terms-check { color:#bdc1c6; }
body.dark-theme .auth-card > p,
body.dark-theme .auth-switch,
body.dark-theme .auth-footnote,
body.dark-theme .users-heading p,
body.dark-theme .account-summary small,
body.dark-theme .feature-fieldset > small { color: #bdc1c6 !important; }
body.dark-theme .auth-card .form-field input,
body.dark-theme .auth-card .form-field select,
body.dark-theme .account-dialog .form-field input,
body.dark-theme .account-dialog .form-field select { color: #e8eaed; background: #202124; border-color: #8a8d91; }
body.dark-theme #workspace-name { color: #e8eaed; background: #202124; border-color: #8a8d91; }
body.dark-theme #workspace-name::placeholder { color: #bdc1c6; opacity: 1; }
body.dark-theme #workspace-name:focus-visible { border-color: #8ab4f8; outline-color: #8ab4f8; }
body.dark-theme .feature-fieldset { border-color: #5f6368; }
body.dark-theme .users-table th { background: #303134; }
body.dark-theme .role-badge { background: #3c4043; color: #e8eaed; }
body.dark-theme .status-badge.inactive { background: #5f2926; color: #f9dedc; }
body.dark-theme .status-badge.pending { background: #594416; color: #f9e7b3; }
body.dark-theme .auth-card .pending-access-note { background: #303134; color: #bdc1c6; }
@media (max-width: 620px) {
  .auth-screen { padding: 14px; }
  .auth-card { padding: 24px 20px; }
  .account-dialog .account-form-fields,
  .feature-checks { grid-template-columns: 1fr; }
  .account-dialog .account-form-fields [data-account-field="name"] { grid-column: auto; }
  .users-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-height: 760px) {
  .auth-screen { align-items: center; padding-block: 12px; overflow-y: auto; }
  .auth-screen:has(.account-form-fields) { align-items: start; }
  .auth-card { padding-block: 20px; }
}
.boot-screen { display:block; min-height:100vh; min-height:100dvh; padding:0; overflow:hidden; background:#f8fafd; }
.boot-screen[hidden] { display:none; }
.boot-login-skeleton { min-height:100vh; min-height:100dvh; display:grid; place-items:center; padding:20px; }
.boot-login-skeleton[hidden],.boot-shell[hidden] { display:none; }
.boot-login-card { width:min(100%,440px); padding:24px; border:1px solid #dadce0; border-radius:12px; background:#fff; color:#202124; }
.boot-login-brand { display:flex; align-items:center; justify-content:center; gap:9px; margin:0 auto 18px; font-size:20px; font-weight:600; }
.boot-login-logo { width:30px; height:30px; display:block; }
.boot-login-logo svg { width:100%; height:100%; display:block; }
.boot-login-heading,.boot-login-subtitle,.boot-login-label,.boot-login-input,.boot-login-submit,.boot-login-switch,.boot-login-footnote { position:relative; display:block; overflow:hidden; border-radius:6px; background:#e1e6ed; }
.boot-login-heading,.boot-login-subtitle,.boot-login-label,.boot-login-input,.boot-login-submit,.boot-login-switch,.boot-login-footnote { isolation:isolate; }
.boot-login-heading::after,.boot-login-subtitle::after,.boot-login-label::after,.boot-login-input::after,.boot-login-submit::after,.boot-login-switch::after,.boot-login-footnote::after { content:""; position:absolute; inset:0; z-index:1; background:rgba(255,255,255,.72); animation:boot-pulse 1.1s ease-in-out infinite alternate; }
.boot-login-heading { width:172px; height:25px; margin:0 auto 10px; }
.boot-login-subtitle { width:min(100%,290px); height:12px; margin:0 auto 20px; }
.boot-login-field { margin:8px 0; }
.boot-login-label { width:66px; height:11px; margin-bottom:7px; }
.boot-login-label.short { width:42px; }
.boot-login-input { height:40px; border:1px solid #e1e6ed; border-radius:5px; background:#f8fafd; }
.boot-login-submit { height:40px; margin-top:14px; border-radius:20px; background:#d2e3fc; }
.boot-login-switch { width:210px; height:12px; margin:17px auto 0; }
.boot-login-footnote { width:174px; height:9px; margin:15px auto 0; }
.boot-login-skeleton .boot-error { min-height:calc(100vh - 40px); min-height:calc(100dvh - 40px); }
.boot-login-skeleton.boot-failed .boot-login-card { display:none; }
@keyframes boot-pulse { from { opacity:.18; } to { opacity:.72; } }
.boot-shell { min-height:100vh; min-height:100dvh; display:grid; grid-template-columns:250px minmax(0,1fr); grid-template-rows:64px minmax(0,1fr); background:#fff; color:#202124; animation:boot-breathe 1.6s ease-in-out infinite alternate; }
.boot-topbar { grid-column:1/-1; grid-row:1; display:flex; align-items:center; gap:28px; padding:0 24px 0 22px; border-bottom:1px solid #f1f3f4; background:#f8fafd; }
.boot-brand { width:200px; flex:none; display:flex; align-items:center; gap:11px; color:#202124; font-size:23px; letter-spacing:-.6px; }
.boot-logo { width:38px; height:38px; flex:none; display:block; }
.boot-logo svg { width:100%; height:100%; display:block; }
.boot-search { height:48px; min-width:0; max-width:836px; flex:1; display:flex; align-items:center; gap:14px; padding:0 12px 0 18px; border-radius:28px; background:#eaf0f8; }
.boot-search svg { width:23px; height:23px; flex:none; fill:none; stroke:#444746; stroke-width:2; }
.boot-search span,.boot-search i,.boot-avatar,.boot-workspace,.boot-new,.boot-nav,.boot-title,.boot-filters span,.boot-table-head span,.boot-row i,.boot-row b,.boot-row em,.boot-row strong { display:block; position:relative; overflow:hidden; background:#e1e6ed; }
.boot-search span { height:12px; width:min(42%,300px); border-radius:8px; }
.boot-search i { width:23px; height:23px; flex:none; margin-left:auto; border-radius:50%; }
.boot-workspace { width:36px; height:36px; flex:none; border-radius:50%; background:#dbe8fb; }
.boot-avatar { width:38px; height:38px; flex:none; border-radius:50%; background:#e1e6ed; }
.boot-sidebar { grid-column:1; grid-row:2; display:flex; flex-direction:column; gap:3px; padding:0 10px 18px 8px; border-right:1px solid #f1f3f4; background:#f8fafd; }
.boot-new { width:106px; height:48px; display:flex; align-items:center; gap:12px; margin:0 0 17px; padding:0 16px; border-radius:17px; background:#edf0f4; }
.boot-new i { width:18px; height:18px; flex:none; position:relative; border:0; background:transparent; }
.boot-new i::before,.boot-new i::after { content:""; position:absolute; left:8px; top:2px; width:2px; height:14px; border-radius:2px; background:#cfd6df; }
.boot-new i::after { transform:rotate(90deg); }
.boot-new b { width:42px; height:10px; border-radius:6px; background:#dfe4eb; }
.boot-nav { width:100%; height:40px; display:flex; align-items:center; gap:18px; padding:0 14px; border-radius:0 22px 22px 0; background:transparent; }
.boot-nav i { width:19px; height:19px; flex:none; border-radius:5px; background:#e1e6ed; }
.boot-nav b { width:min(96px,65%); height:12px; border-radius:8px; background:#e1e6ed; }
.boot-nav.active { background:#e5efff; }
.boot-nav.active i,.boot-nav.active b { background:#c9d9f2; }
.boot-main { grid-column:2; grid-row:2; min-width:0; padding:18px 22px 28px 20px; }
.boot-title { width:min(220px,55vw); height:32px; margin:5px 0 5px; border-radius:7px; }
.boot-filters { height:54px; display:flex; align-items:center; gap:9px; overflow:hidden; }
.boot-filters span { width:88px; height:34px; flex:none; border:1px solid #e1e6ed; border-radius:8px; background:#f8fafd; }
.boot-filters span:nth-child(2) { width:116px; }
.boot-filters span:nth-child(3) { width:130px; }
.boot-filters span:nth-child(4) { width:92px; }
.boot-table-head { height:40px; display:flex; align-items:center; gap:6%; border-bottom:1px solid #e5e8ec; }
.boot-table-head span { width:13%; height:10px; border-radius:6px; background:#e1e6ed; }
.boot-table-head span:first-child { width:42%; margin-right:auto; }
.boot-row { min-height:52px; display:flex; align-items:center; gap:14px; border-bottom:1px solid #edf0f3; }
.boot-row i { width:22px; height:26px; flex:none; border-radius:4px; }
.boot-row>span { width:min(38%,300px); min-width:0; display:flex; flex-direction:column; gap:6px; }
.boot-row b { width:100%; height:12px; border-radius:7px; }
.boot-row em { width:65%; height:9px; border-radius:6px; }
.boot-row strong { width:14%; height:11px; margin-left:auto; border-radius:7px; }
.boot-error { display:grid; min-height:100vh; place-content:center; justify-items:center; gap:12px; padding:24px; text-align:center; color:#5f6368; }
.boot-error .primary-button { min-height:40px; padding:0 20px; border:0; border-radius:20px; background:#1a73e8; color:white; }
.boot-error [role="alert"] { margin:0; }
.boot-shell.boot-failed { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); }
@keyframes boot-breathe { from { opacity:.78; } to { opacity:1; } }
@media (max-width:700px) {
  .boot-shell { grid-template-columns:minmax(0,1fr); grid-template-rows:58px minmax(0,1fr) calc(64px + env(safe-area-inset-bottom)); }
  .boot-topbar { grid-column:1; grid-row:1; gap:9px; padding:0 12px; }
  .boot-brand { width:auto; max-width:92px; gap:6px; font-size:15px; letter-spacing:-.3px; }
  .boot-logo { width:30px; height:30px; }
  .boot-search { height:42px; min-width:0; gap:10px; padding:0 10px; }
  .boot-search svg { width:20px; height:20px; }
  .boot-search span { flex:1; width:auto; }
  .boot-search i { width:24px; height:24px; }
  .boot-workspace { width:34px; height:34px; }
  .boot-avatar { width:34px; height:34px; }
  .boot-sidebar { grid-column:1; grid-row:3; height:calc(64px + env(safe-area-inset-bottom)); flex-direction:row; justify-content:space-around; gap:2px; padding:0 4px env(safe-area-inset-bottom); border-top:1px solid #e8eaed; border-right:0; background:#fff; }
  .boot-new { display:none; }
  .boot-nav,.boot-nav.active { width:auto; height:100%; flex:1; flex-direction:column; justify-content:center; gap:3px; padding:5px 1px 4px; border-radius:0; background:transparent; }
  .boot-nav i,.boot-nav.active i { width:54px; height:30px; border-radius:18px; background:transparent; }
  .boot-nav b,.boot-nav.active b { width:42px; height:8px; background:#e1e6ed; }
  .boot-nav.active i { background:#c2e7ff; }
  .boot-nav.active b { background:#c9d9f2; }
  .boot-nav:nth-of-type(2) { order:1; }
  .boot-nav:nth-of-type(6) { order:2; }
  .boot-nav:nth-of-type(4) { order:3; }
  .boot-nav:nth-of-type(3) { order:4; }
  .boot-nav:nth-of-type(5),.boot-nav:nth-of-type(7) { display:none; }
  .boot-main { grid-column:1; grid-row:2; padding:12px 16px 20px; overflow:hidden; }
  .boot-title { width:155px; height:28px; margin:0 0 2px; }
  .boot-filters { width:calc(100vw - 16px); height:48px; gap:8px; }
  .boot-filters span { width:88px; height:34px; border-radius:18px; }
  .boot-filters span:nth-child(2) { width:112px; }
  .boot-filters span:nth-child(3) { width:126px; }
  .boot-filters span:nth-child(4) { width:84px; }
  .boot-table-head { height:36px; }
  .boot-table-head span:not(:first-child) { display:none; }
  .boot-table-head span:first-child { width:82px; margin:0; }
  .boot-row { min-height:64px; gap:14px; }
  .boot-row>span { width:min(62%,280px); }
  .boot-row b { width:74%; height:12px; }
  .boot-row em { width:50%; height:9px; }
  .boot-row strong { display:none; }
}
@media (prefers-reduced-motion:reduce) { .boot-shell { animation:none; } .boot-login-heading::after,.boot-login-subtitle::after,.boot-login-label::after,.boot-login-input::after,.boot-login-submit::after,.boot-login-switch::after,.boot-login-footnote::after { animation:none; opacity:.25; } }
