:root{--bg:#f8fafc;--surface:#fff;--ink:#0f172a;--muted:#475569;--line:#dbe5f1;--blue:#2563eb;--blue-dark:#1d4ed8;--danger:#b91c1c;--focus:#f59e0b;--radius:14px;font:16px/1.5 "Noto Sans KR","Noto Sans",system-ui,sans-serif;color:var(--ink);background:var(--bg)}
*[hidden]{display:none!important}
@media (max-width:760px){.topbar nav{display:flex!important;margin-left:auto}.topbar .nav-button{padding:0 6px;font-size:14px}.brand span{width:32px;height:30px}.account-button{min-height:40px;padding:7px 9px;font-size:13px}}
*{box-sizing:border-box}body{margin:0;min-width:320px}.shell{min-height:100vh;display:grid;grid-template-columns:224px minmax(0,1fr);grid-template-rows:68px 1fr}.topbar{grid-column:1/-1;display:flex;align-items:center;gap:32px;padding:0 28px;border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:0;z-index:3}.brand{display:flex;align-items:baseline;gap:5px;color:var(--ink);font-size:20px;text-decoration:none;letter-spacing:-.04em}.brand span{display:grid;place-items:center;width:38px;height:32px;border-radius:9px;background:var(--blue);color:#fff;font-weight:800}.topbar nav{display:flex;height:100%;gap:4px}.nav-button,.side-link,.text-button{border:0;background:transparent;color:var(--muted);font:inherit;cursor:pointer}.nav-button{padding:0 12px;border-bottom:3px solid transparent}.nav-button.is-current{color:var(--blue);border-bottom-color:var(--blue);font-weight:700}.topbar-actions{margin-left:auto;display:flex;gap:10px;align-items:center}.search-button,.account-button,.secondary-action,.primary-action{min-height:44px;border-radius:9px;padding:9px 14px;font:inherit;font-weight:650;cursor:pointer}.search-button,.account-button,.secondary-action{background:var(--surface);border:1px solid var(--line);color:var(--ink)}.primary-action{border:1px solid var(--blue);background:var(--blue);color:#fff}.primary-action:hover{background:var(--blue-dark)}button:hover{filter:brightness(.98)}button:disabled{cursor:not-allowed;opacity:.55}kbd{margin-left:8px;color:var(--muted);font-size:12px}.sidebar{grid-row:2;display:flex;flex-direction:column;gap:4px;padding:24px 14px;border-right:1px solid var(--line);background:#f3f7fc}.sidebar-label{margin:0 10px 8px;color:var(--muted);font-size:12px;font-weight:700}.side-link{text-align:left;padding:10px;border-radius:8px}.side-link.is-current,.side-link:hover{background:#e5efff;color:var(--blue);font-weight:700}.legacy-link{margin-top:auto;padding:10px;color:var(--muted);font-size:13px;text-decoration:none;border-top:1px solid var(--line)}.legacy-link:hover{text-decoration:underline;color:var(--blue)}main{grid-row:2;min-width:0}.dashboard-view{max-width:1120px;margin:0 auto;padding:54px 44px 80px}.dashboard-heading,.section-heading{display:flex;gap:24px;justify-content:space-between;align-items:flex-end}.dashboard-heading{align-items:center}.eyebrow{margin:0 0 7px;color:var(--blue);font-size:12px;font-weight:800;letter-spacing:.09em}h1,h2{letter-spacing:-.045em;line-height:1.2}h1{font-size:clamp(28px,4vw,44px);margin:0 0 12px}h2{margin:0;font-size:22px}.dashboard-heading p:not(.eyebrow),.section-heading p:not(.eyebrow){margin:0;color:var(--muted)}.new-documents,.documents-section{margin-top:58px}.format-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:18px}.format-card{display:flex;min-height:152px;flex-direction:column;align-items:flex-start;gap:8px;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}.format-card:hover{border-color:var(--blue);box-shadow:0 5px 15px #1e3a5f12}.format-card small{color:var(--muted)}.format-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;color:#fff;font-weight:800}.hangul{background:#0f766e}.word{background:#2563eb}.sheet{background:#15803d}.slide{background:#dc5a19}.document-heading{align-items:flex-end}.document-actions{display:flex;gap:8px}.search-field input{width:210px;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:9px 12px;font:inherit}.quota-card{display:grid;grid-template-columns:1fr minmax(120px,260px);gap:8px 24px;align-items:center;margin:18px 0;padding:18px 20px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:var(--radius)}.quota-card p,.quota-card strong,.quota-card small{margin:0}.quota-card p,.quota-card small{color:var(--muted);font-size:13px}.quota-card small{grid-column:2}progress{width:100%;height:9px;accent-color:var(--blue)}.empty-state{margin-top:18px;padding:36px;border:1px dashed #b9c9dc;border-radius:var(--radius);text-align:center;color:var(--muted)}.empty-state p{margin:0 0 4px;color:var(--ink);font-weight:700}.file-list{display:grid;gap:8px;margin:18px 0 0;padding:0;list-style:none}.file-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}.file-open{display:contents;border:0;background:transparent;text-align:left;font:inherit;cursor:pointer}.file-meta{display:flex;min-width:0;flex-direction:column}.file-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-meta span{color:var(--muted);font-size:13px}.file-actions{display:flex;gap:5px}.icon-button{width:44px;height:44px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);cursor:pointer}.icon-button[aria-pressed=true]{color:#a16207;background:#fffbeb}.workspace-view{height:calc(100vh - 68px);display:flex;flex-direction:column;background:#e9edf4}.workspace-bar{display:flex;align-items:center;gap:16px;min-height:60px;padding:8px 20px;background:var(--surface);border-bottom:1px solid var(--line)}.workspace-bar>div:nth-child(2){display:flex;min-width:0;flex:1;flex-direction:column}.workspace-bar strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-state{color:var(--muted);font-size:13px}.workspace-actions{display:flex;align-items:center;gap:8px}.editor-host,.pdf-host{position:relative;flex:1;min-height:0}.editor-host iframe,.pdf-host iframe{display:block;width:100%;height:100%;border:0}.pdf-host{padding:18px}.pdf-note{margin:0 0 12px;color:var(--muted)}.skip-link{position:fixed;z-index:10;left:12px;top:-60px;padding:10px;background:#fff;color:#000}.skip-link:focus{top:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}dialog{width:min(460px,calc(100% - 32px));border:1px solid var(--line);border-radius:16px;padding:28px;box-shadow:0 16px 48px #0f172a3d}dialog::backdrop{background:#0f172a80}dialog form{display:grid;gap:14px}dialog h2{margin:0}.dialog-close{position:absolute;right:14px;top:14px;width:44px;height:44px;border:0;background:transparent;font-size:28px;cursor:pointer}dialog label{display:grid;gap:6px;font-weight:650}dialog input{min-height:44px;border:1px solid #94a3b8;border-radius:8px;padding:9px;font:inherit}.form-hint{margin:0;color:var(--muted);font-size:13px}.form-summary{padding:10px;color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:8px}.dialog-switch{justify-self:start;padding:7px 0;text-decoration:underline}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.dialog-actions button{min-height:42px;padding:8px 14px;border-radius:8px;border:1px solid var(--line);font:inherit;cursor:pointer}.toast{position:fixed;z-index:5;bottom:24px;left:50%;max-width:min(560px,calc(100% - 32px));transform:translateX(-50%);padding:12px 16px;border-radius:9px;background:#0f172a;color:#fff;box-shadow:0 6px 20px #0f172a4d}.toast.error{background:#991b1b}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}@media (prefers-reduced-motion:no-preference){button,a,.format-card{transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}}@media (max-width:760px){.shell{display:block}.topbar{position:static;gap:10px;padding:0 16px}.topbar nav,.search-button{display:none}.brand{font-size:18px}.sidebar{display:none}.dashboard-view{padding:34px 18px 56px}.dashboard-heading,.section-heading{align-items:flex-start;flex-direction:column}.format-grid{grid-template-columns:repeat(2,1fr)}.format-card{min-height:132px}.document-actions{width:100%;flex-wrap:wrap}.search-field,.search-field input{width:100%}.quota-card{grid-template-columns:1fr}.quota-card small{grid-column:1}.file-row{grid-template-columns:38px minmax(0,1fr)}.file-actions{grid-column:2}.workspace-view{height:100vh}.workspace-bar{padding:8px 12px;gap:8px}.workspace-actions .text-button{display:none}.workspace-bar .secondary-action{padding:8px}.workspace-bar strong{max-width:150px}}
/* Workspace A — document-first layout, with live account/file data. */
:root{--bg:#f3f6fc;--surface:#fff;--ink:#202b3c;--muted:#5b6676;--line:#e5e9ef;--blue:#185abc;--blue-dark:#114989;--focus:#2875cf;--radius:14px;font-size:14px;color-scheme:light}body{background:var(--bg)}button{font-family:inherit}button svg,.side-link svg{width:21px;height:21px;flex-shrink:0}.primary-action,.secondary-action{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:13px;font-weight:500;border-radius:9px}.shell{grid-template-columns:248px minmax(0,1fr);grid-template-rows:88px 1fr;gap:0}.topbar{background:var(--bg);height:88px;padding:0 30px;gap:34px;border:0;position:relative}.brand{align-items:center;gap:9px;font-size:25px;min-width:184px;letter-spacing:-.8px}.brand .brand-mark{width:32px;height:35px;display:grid;place-items:center;font-size:31px;border-radius:11px;line-height:1;background:var(--blue);color:white;font-weight:700}.brand strong{font-weight:700;display:flex}.brand strong span{display:inline;width:auto;height:auto;background:transparent;color:var(--ink);font-size:25px;font-weight:400}.search-field{display:flex;align-items:center;gap:14px;background:#e8edf5;max-width:660px;flex:1;border-radius:28px;min-height:50px;padding:0 18px}.search-field>svg{width:21px;height:21px;flex-shrink:0}.search-field input{min-width:0;flex:1;width:100%;padding:8px 0;background:transparent;border:0;border-radius:0;font-size:15px}.search-field input::placeholder{color:var(--muted)}.search-field input:focus-visible{outline-offset:4px;border-radius:4px}.search-field>button{background:transparent;border:0;min-height:44px;min-width:44px;cursor:pointer;color:var(--muted)}.search-field kbd{margin:0;font-size:11px}.topbar-actions{margin-left:auto;min-width:0}.account-button{font-size:13px;font-weight:500;border:0;background:#e3ecfb;color:#244a81;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:24px}.sidebar{padding:12px 24px 24px;gap:24px;background:transparent;border:0}.sidebar>button{align-self:flex-start;min-height:54px;padding:13px 23px;font-size:14px}.sidebar nav{display:flex;flex-direction:column;gap:4px;margin:0 -8px}.side-link{display:flex;align-items:center;gap:15px;padding:11px 18px;min-height:46px;font-size:14px;border-radius:28px}.side-link.is-current{background:#dce8fc;color:#154b93;font-weight:500}.quota-card{display:flex;flex-direction:column;align-items:stretch;padding:12px 8px;margin:4px 0 0;background:transparent;border:0;border-radius:0;gap:9px}.quota-card p{font-size:14px;margin-bottom:6px}.quota-card strong{font-size:12px;font-weight:500}.quota-card small{font-size:11px}progress{height:5px;appearance:none;border:0;border-radius:5px;overflow:hidden;background:#dce3ed}progress::-webkit-progress-bar{background:#dce3ed}progress::-webkit-progress-value{background:var(--blue);border-radius:5px}progress::-moz-progress-bar{background:var(--blue)}.cloud-invitation{padding:12px 8px;color:var(--muted);font-size:12px}.cloud-invitation>svg{width:21px;height:21px;vertical-align:middle;margin-right:8px}.cloud-invitation>strong{font-size:13px;font-weight:500}.cloud-invitation p{margin:12px 0 6px;line-height:1.8}.cloud-invitation button{color:var(--blue);font-size:12px;min-height:44px;padding:5px 0}.legacy-link{padding:14px 8px;border:0;font-size:12px}.dashboard-view{max-width:none;margin:0 24px 24px 12px;padding:34px 36px 44px;background:white;border-radius:22px;min-height:calc(100vh - 112px)}.dashboard-heading{gap:20px;margin-bottom:32px}.dashboard-heading h1{font-size:28px;line-height:1.4;font-weight:500;margin:0 0 8px;letter-spacing:-1px}.dashboard-heading p:not(.eyebrow){font-size:14px;line-height:1.7}.dashboard-heading>button{flex-shrink:0}.eyebrow{font-size:10px;font-weight:500;letter-spacing:2px;color:var(--muted);margin-bottom:9px}h2{font-size:17px;font-weight:600;line-height:1.5;letter-spacing:-.4px}.new-documents{margin:0}.format-grid{gap:14px;margin-top:16px}.format-card{flex-direction:row;align-items:center;min-height:82px;padding:16px;gap:12px;border-radius:12px}.format-card strong{font-size:13px;font-weight:500;display:block}.format-card small{font-size:10px;display:block;margin-top:3px;white-space:nowrap}.format-copy{min-width:0}.format-card>svg{width:16px;height:16px;margin-left:auto;color:var(--muted)}.format-mark{width:32px;height:39px;flex-shrink:0;border:1px solid #cedcf8;border-radius:5px;font-size:18px;font-weight:700}.format-mark.hangul{background:#e7effe;color:#2359bc}.format-mark.word{background:#e6eefb;color:#244ca0}.format-mark.sheet{background:#e3f2e9;color:#226442;border-color:#c7e5d4}.format-mark.slide{background:#fcece4;color:#ad4521;border-color:#f2d3c4}.recent-section{margin-top:28px}.section-heading{align-items:center;gap:16px}.section-heading>span{font-size:12px;color:var(--muted)}.recent-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:15px}.recent-card{min-width:0;padding:0;border:1px solid var(--line);border-radius:14px;background:white;text-align:left;overflow:hidden;cursor:pointer;color:var(--ink)}.recent-card:hover{border-color:#b6c8e1;background:#fafcff}.recent-visual{display:flex;align-items:flex-end;justify-content:center;height:150px;background:#edf2fb;padding:18px 22px 0;overflow:hidden}.recent-visual.sheet{background:#ecf4ef}.recent-visual.slide{background:#f8eee8}.recent-paper{background:white;border:1px solid #eef0f5;width:75%;max-width:200px;height:158px;padding:22px;display:flex;flex-direction:column;gap:14px;box-shadow:0 2px 10px #25426a08;transform:translateY(20px)}.recent-paper>span:last-child{font-size:9px;letter-spacing:1px;color:var(--muted)}.recent-info{display:block;padding:16px}.recent-info strong{display:block;font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-info small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.documents-section{margin-top:30px}.document-heading .eyebrow{display:none}.document-heading p:not(.eyebrow){font-size:12px;margin-top:5px}.file-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-bottom:8px;border-bottom:1px solid var(--line)}#fileCount{font-size:12px;color:var(--muted)}.format-filters{display:flex;gap:4px}.format-filters button{border:0;border-radius:20px;background:transparent;color:var(--muted);min-height:44px;padding:8px 13px;cursor:pointer;font-size:12px}.format-filters [aria-pressed=true]{background:#eaf0fb;color:var(--blue);font-weight:600}.file-list{margin:0;gap:0}.file-row{padding:10px 4px;border:0;border-bottom:1px solid var(--line);border-radius:0;grid-template-columns:30px minmax(0,1fr) auto}.file-row>.format-mark{width:25px;height:30px;font-size:14px}.file-open{display:block;min-height:44px;min-width:0;width:100%;padding:5px 0;color:var(--ink);border-radius:4px}.file-meta strong{font-size:13px;font-weight:500}.file-meta span{font-size:11px;margin-top:2px}.icon-button{border:0;background:transparent;font-size:18px}.icon-button:hover{background:#eef3fa}.file-actions{gap:2px}.empty-state{padding:42px 24px;border:0;background:#f8fafc;border-radius:12px;margin-top:18px;font-size:13px}.empty-state>svg{width:38px;height:38px;margin-bottom:12px;color:#7a91b0}.empty-state p{font-weight:500}.empty-state span{font-size:12px}.workspace-view{height:calc(100vh - 88px);margin-right:12px;border-radius:12px 12px 0 0;overflow:hidden}.workspace-bar{min-height:60px;padding:8px 14px;font-size:13px}.workspace-actions button{min-height:44px;font-size:12px}#workspaceState{font-size:11px;color:var(--muted)}.text-button{min-height:44px}.pdf-host{display:flex;flex-direction:column;min-height:0}.pdf-host iframe{height:auto;flex:1;min-height:0}.form-hint{line-height:1.6}.is-transferring .file-open,.is-transferring .recent-card{cursor:progress}
@media(min-width:1600px){.dashboard-view{padding:42px 56px}.recent-visual{height:185px}}
@media(max-width:1150px){.shell{grid-template-columns:204px minmax(0,1fr)}.topbar{gap:20px;padding:0 22px}.brand{min-width:162px}.sidebar{padding:12px 18px}.dashboard-view{padding:28px 24px}.format-grid{gap:9px}.format-card{padding:13px 11px;gap:9px}.format-card>svg{display:none}.format-card strong{font-size:12px}.dashboard-heading{align-items:flex-start;flex-wrap:wrap}.account-button{max-width:170px}.dashboard-heading h1{font-size:26px}}
@media(max-width:760px){.shell{display:flex;flex-direction:column}.topbar{height:auto;min-height:122px;padding:16px 20px;display:flex;flex-wrap:wrap;gap:12px}.brand{font-size:23px;min-width:0}.brand strong span{font-size:23px}.topbar-actions{margin-left:auto}.account-button{max-width:170px;min-height:44px;padding:8px 14px}.search-field{order:3;flex:auto;width:100%;max-width:none;min-height:44px;padding:0 15px}.search-field input{min-height:44px;font-size:14px}.search-field>button{display:none}.sidebar{display:flex;flex-wrap:wrap;flex-direction:row;padding:0 18px 12px;gap:8px;align-items:center}.sidebar>button,.legacy-link{display:none}.sidebar nav{display:flex;flex-direction:row;justify-content:space-between;gap:4px;width:100%;margin:0}.side-link{font-size:12px;padding:6px 4px;gap:3px;min-height:44px;flex:1 1 0;min-width:0;flex-direction:column;justify-content:center;text-align:center;line-height:1.2;word-break:keep-all;overflow-wrap:anywhere}.side-link svg{width:18px;height:18px}.quota-card{width:100%;padding:8px 10px;display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center;margin:0}.quota-card p{display:none}.quota-card small{grid-column:2;font-size:10px}.quota-card progress{grid-row:1;grid-column:2}.cloud-invitation{display:flex;align-items:center;gap:7px;padding:0 10px;width:100%;font-size:11px}.cloud-invitation>svg{width:18px;margin:0}.cloud-invitation>strong{font-size:11px}.cloud-invitation p{display:none}.cloud-invitation button{margin-left:auto;min-height:44px;font-size:11px}.dashboard-view{margin:0 12px 16px;padding:25px 18px 32px;min-height:0;border-radius:18px}.dashboard-heading{gap:18px;margin-bottom:26px;align-items:flex-start}.dashboard-heading h1{font-size:24px;word-break:keep-all}.dashboard-heading p:not(.eyebrow){font-size:12px}.dashboard-heading>button{min-height:44px}.format-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.format-card{min-height:82px;flex-direction:row;padding:13px 11px}.format-card strong{font-size:12px}.format-card small{font-size:10px}.section-heading{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px}.recent-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.recent-card:nth-child(n+3){display:none}.recent-visual{height:122px;padding:10px 13px 0}.recent-paper{padding:15px;width:85%;height:137px}.recent-info{padding:12px 10px}.recent-info strong{font-size:11px}.recent-info small{font-size:10px}.section-heading>span{font-size:10px}h2{font-size:16px}.documents-section{margin-top:26px}.document-heading{align-items:flex-start}.document-heading p:not(.eyebrow){font-size:11px}.document-heading button{font-size:12px}.file-toolbar{flex-wrap:wrap;gap:4px}.format-filters{width:100%}.format-filters button{flex:1;font-size:11px;padding:7px 4px;min-height:44px}.file-row{grid-template-columns:27px minmax(0,1fr);gap:8px;padding:10px 0}.file-actions{grid-column:2;justify-content:flex-end}.file-meta strong{font-size:12px}.file-meta span{font-size:10px}.workspace-view{height:calc(100dvh - 122px);margin:0;border-radius:0}.shell:has(.workspace-view:not([hidden])) .sidebar{display:none}.workspace-bar{flex-wrap:wrap;padding:8px 10px;gap:8px}.workspace-bar strong{max-width:200px}.workspace-actions{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.workspace-actions .text-button{display:inline-flex}.workspace-actions button{font-size:11px}.pdf-host{padding:10px}}
.dashboard-heading>div{min-width:0;overflow-wrap:anywhere}
/* Opening a document gives the editor the full workspace width. */
.shell:has(.workspace-view:not([hidden])){grid-template-columns:minmax(0,1fr)}
.shell:has(.workspace-view:not([hidden])) .sidebar{display:none}
.shell:has(.workspace-view:not([hidden])) main{grid-column:1/-1}
.shell:has(.workspace-view:not([hidden])) .workspace-view{margin-right:0;border-radius:0}
.auth-gate{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,460px);align-items:center;gap:70px;max-width:1160px;margin:auto;padding:64px 48px}.auth-intro .brand{margin-bottom:72px}.auth-intro>.eyebrow{letter-spacing:2px;font-size:10px}.auth-intro h1{font-size:38px;line-height:1.45;font-weight:400;letter-spacing:-1.5px;margin:16px 0 20px}.auth-intro>p:not(.eyebrow){font-size:14px;color:var(--muted);line-height:1.9}.auth-benefit{margin-top:30px;color:var(--muted);font-size:12px;display:inline-flex;align-items:center;gap:12px;padding:10px 15px;border:1px solid #d7e2f2;border-radius:30px}.auth-benefit strong{color:var(--blue);font-size:14px;font-weight:600}.auth-panel{width:100%;min-width:0}.auth-panel>p{text-align:center;color:var(--muted);font-size:14px}.auth-gate dialog{position:static;margin:0;max-width:none;width:100%;padding:38px;border:1px solid #e1e7f0;border-radius:3px;box-shadow:0 14px 50px #244c8010;background:white;color:var(--ink)}.auth-gate .dialog-close{display:none}.auth-gate dialog h2{font-size:25px;font-weight:500}.auth-gate #authLead{font-size:13px;color:var(--muted);margin:0 0 5px}.auth-gate dialog label{font-size:13px;font-weight:500}.auth-gate dialog input{font-size:14px;border-color:#c8d3e2;min-height:46px}.auth-gate .form-hint{font-size:11px}.auth-gate .dialog-switch{font-size:12px;justify-self:center}.auth-gate #authSubmit{min-height:46px}.auth-gate .eyebrow{color:var(--muted)}
@media(max-width:760px){.auth-gate{grid-template-columns:1fr;gap:25px;padding:30px 20px;max-width:500px;align-content:center}.auth-intro .brand{margin-bottom:25px}.auth-intro>.eyebrow,.auth-intro>p:not(.eyebrow),.auth-benefit{display:none}.auth-intro h1{font-size:26px;margin:0;font-weight:400;line-height:1.4}.auth-intro h1 br{display:none}.auth-gate dialog{padding:25px 22px;border-radius:3px}.auth-gate dialog h2{font-size:23px}}

/* Official AraOffice artwork: keep its original aspect ratio. */
.brand:has(.brand-logo){align-items:center;flex-shrink:0}.brand-logo{display:block;width:145px;height:auto;object-fit:contain}@media(max-width:760px){.brand-logo{width:122px}}

/* Preserve editor geometry while concealing its startup/welcome screen. */
.editor-host[data-loading=true]>iframe{visibility:hidden;pointer-events:none}
.editor-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#f5f7fb;color:var(--muted);font-size:14px;z-index:1}

/* Persistent document tabs share the brand row; search belongs to document home. */
.document-tabs{display:flex;flex:1;min-width:0;gap:5px;overflow-x:auto;align-self:stretch;align-items:center;scrollbar-width:thin}
.document-tab-item{display:flex;align-items:center;flex:0 0 auto;max-width:240px;border:1px solid transparent;border-radius:10px;background:#e9eef7;color:var(--muted)}
.document-tab-item.is-current{background:white;border-color:#cad9ee;color:var(--blue)}
.document-tab-item>[role=tab]{min-width:0;max-width:205px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:44px;padding:10px 13px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer}
.document-tab-close{flex-shrink:0;min-width:36px;min-height:44px;padding:0 8px;border:0;background:transparent;color:inherit;cursor:pointer;font-size:19px;border-radius:8px}
.document-tab-close:hover{background:#dae5f5}.document-tabs button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.file-toolbar{flex-wrap:wrap}.file-toolbar>.search-field{min-width:220px;max-width:430px;flex:1;margin-right:auto}.file-toolbar>.search-field input{width:100%;min-width:0}
.pdf-document{height:100%;display:flex;flex-direction:column;min-height:0}.pdf-document>iframe{flex:1;min-height:0}
@media(max-width:760px){.topbar{flex-wrap:nowrap;gap:8px;min-height:74px;height:74px;padding:10px 12px}.topbar .brand{min-width:0}.topbar .brand-logo{width:91px}.topbar-actions{flex-shrink:0}.topbar .account-button{max-width:88px;padding:6px;font-size:11px}.document-tab-item{max-width:170px}.document-tab-item>[role=tab]{max-width:134px;font-size:12px;padding:8px}.file-toolbar>.search-field{order:0;min-width:100%;width:100%;margin-bottom:8px;display:flex}.workspace-view{height:calc(100dvh - 74px)}}
.document-open{min-width:36px;min-height:44px;border:0;border-radius:8px;background:transparent;color:var(--blue);font-size:22px;cursor:pointer;flex-shrink:0}.document-open:hover{background:#e4ecf8}

/* One application header; the selected tab is the document title. */
.document-tab-item.is-current{background:#fff;border-color:#8eb1e4;box-shadow:inset 0 -3px 0 var(--blue);color:#154eaa}
.document-tab-item.is-current>[role=tab]{font-weight:700}.document-tab-item:not(.is-current){background:#e7edf6;color:#64748b}
.topbar-actions #downloadBackup{border:1px solid var(--line);border-radius:9px;padding:8px 12px;white-space:nowrap}.topbar-actions #cloudSave{white-space:nowrap}
@media(max-width:760px){.topbar .brand-logo{width:76px}.topbar .account-button{max-width:66px}.topbar-actions{gap:4px}.topbar-actions #cloudSave,.topbar-actions #downloadBackup{font-size:0;min-width:40px;min-height:44px;padding:6px}.topbar-actions #cloudSave::after{content:attr(data-short-label);font-size:11px}.topbar-actions #downloadBackup::after{content:attr(data-short-label);font-size:11px}.document-open{min-width:30px;padding:0}}

/* Language names remain in their own languages so users can always switch back. */
.ui-language{display:flex;flex-direction:column;gap:2px;flex:none;margin:0;color:var(--muted);font-size:10px;line-height:1.2;white-space:nowrap}
.ui-language select{box-sizing:border-box;min-height:36px;width:160px;padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-family:inherit;font-size:13px;line-height:1.4;cursor:pointer}
.ui-language select:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.auth-panel>.ui-language{align-items:flex-end;margin-bottom:16px}
.topbar{gap:16px}
@media(max-width:760px){
 .topbar{display:grid;grid-template-columns:minmax(0,1fr) 146px 34px;grid-template-rows:44px 50px;gap:8px;height:126px;min-height:126px;padding:8px 12px}
 .topbar>.brand{grid-row:1;grid-column:1}.topbar-actions{grid-row:1;grid-column:2/4;justify-self:end}
 .document-tabs{grid-row:2;grid-column:1;width:100%;min-width:0}.topbar>.ui-language{grid-row:2;grid-column:2}
 .ui-language select{width:146px;font-size:12px}.document-open{grid-row:2;grid-column:3;min-height:44px}
 .workspace-view{height:calc(100dvh - 126px)}
}

/* Registration and administrator approval use the existing account surface. */
#authMode{min-height:44px;padding:10px 0;white-space:normal;text-align:center}
.auth-gate #authHint{font-size:12px;line-height:1.6}
#adminRegistrations{white-space:nowrap}
.registrations-dialog{width:min(640px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;color:var(--ink);background:var(--surface)}
.registrations-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.registrations-heading h2{font-size:22px;line-height:1.4}
.registrations-status{min-height:24px;margin:18px 0 12px;color:var(--muted)}
.registrations-status.is-error{color:var(--danger)}
.registrations-list{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:10px}
.registration-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:10px;padding:14px}
.registration-details{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.registration-details strong{font-size:14px}.registration-details span,.registration-details time{font-size:12px;color:var(--muted)}
.registration-row>button{flex-shrink:0;min-height:44px}
@media(max-width:760px){#adminRegistrations{font-size:11px;padding:6px 8px;min-height:44px}.registrations-dialog{padding:22px 18px}.registrations-heading{gap:12px}.registration-row{align-items:flex-start;flex-wrap:wrap;gap:12px}.registration-row>button{margin-left:auto}.registrations-dialog .dialog-actions button{min-height:44px}}
@media(max-width:360px){.sidebar{padding-left:10px;padding-right:10px}.side-link{padding:6px 2px}}
.format-card .format-mark.pdf{font-size:11px;letter-spacing:-.3px}
