/* Office — estilos do MIOLO sobre os tokens Aurora do Tecnosys.Ui.Kit (/ui-kit.css ≥ 0.1.3) e as fontes do próprio app
   (/ui-kit-fonts.css). Zero #hex aqui (AUR-SH-06): cor = var(--…) do kit; o accent do app e o botão primário AA chegam
   por --accent/--accent-2/--primary-* (config Aurora:App:*, no <html>). Fonte visual = o proto fase 2 APROVADO
   (docs/prototypes/office/proto-fase2.html · requisitos-fase2.md): componentes do Hub portados (painel, tabela densa,
   toast, confirmação, modal grande, AuroraSelect "Actions") + o bloco do Office. */
:root { color-scheme: light dark; --hue: var(--accent); --hue2: var(--accent-2);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent); --hue-soft: var(--accent-soft);
  /* o AuroraAppNav (aurora-shell.js) pinta item ativo, barra de seção e flyout com --acc* — a página os define */
  --acc: var(--accent); --acc-2: var(--accent-2); --acc-soft: var(--accent-soft);
  --acc-ink: color-mix(in srgb, var(--accent) 62%, var(--ink));
  /* OFFICE: tinta de link/selo = --acc-ink (AA medido nos 2 temas); papel da miniatura = superfície de conteúdo */
  --o-link: var(--acc-ink); --paper: var(--surface); --paper-line: color-mix(in srgb, var(--ink) 14%, transparent);
  --hub: var(--accent); }

/* ---- reset ANTES dos componentes (WebKit: <button>/<input> nascem com fonte do sistema, cor preta e borda outset —
   a barra de seção do AppNav saía 1.2:1 no dark mobile). Tudo herda a tipografia/cor da página. ---- */
*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { -webkit-appearance: none; appearance: none; border: 0; background: none; margin: 0; padding: 0; cursor: pointer; }
input, textarea { -webkit-appearance: none; appearance: none; margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hub-ico { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-ui); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
body.is-standalone { padding-top: var(--aurora-bar-h, 58px); }
:root[data-shell-max] body.is-standalone { padding-top: 0; }
.app-shell-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
/* casca-grid do AuroraAppNav ocupa a altura útil (sem a barra do shell no standalone; 100vh no embed/bare-mode) */
body.is-standalone .anav-host { min-height: calc(100vh - var(--aurora-bar-h, 58px)); }
:root[data-shell-max] body.is-standalone .anav-host, body.is-embedded .anav-host { min-height: 100vh; }
/* R-APPNAV-MF-005 + D-06: no embed mobile o gatilho da nav é o FAB da CASCA do Hub (ponte aurora:appnav) — a barra de
   seção some SÓ quando a casca avisa que o FAB está na tela (html.casca-fab); entre ~701 e 772px de Hub não há FAB e a
   barra fica (sem ela o app ficava sem navegação nenhuma). */
@media (max-width: 700px) { html.casca-fab body.is-embedded .anav-section-bar { display: none !important; } }
.wrap { max-width: 1080px; margin: 0 auto; padding: 44px 28px 40px; }
/* D-07: a folga do dock (--aurora-dock-safe) vai num ESPAÇADOR no fim do <body>, nunca no padding do .wrap dentro do
   host do AppNav (mudar a altura do host na mesma volta do ResizeObserver dava "ResizeObserver loop" no standalone). */
body.is-standalone::after, body.is-embedded::after { content: ""; display: block; height: var(--aurora-dock-safe, 0px); }

/* ---- cabeçalho de página (padrão Echo do Hub · requisitos §2) ---- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-title { min-width: 0; }
h1.page { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; }
.page-lead { color: var(--ink-soft); font-size: 16.5px; margin-top: 10px; max-width: 56ch; }
.page-actions { display: flex; flex-direction: row; align-items: center; gap: 10px; max-width: 100%; }
@media (min-width: 901px) { .page-head { flex-wrap: nowrap; align-items: flex-start; } .page-title { flex: 1 1 auto; } .page-actions { flex: none; margin-top: 8px; } }

/* ---- botões (espelho do hub.css .btn / .btn-primary: 700 · 14.5px · 11px 20px · gradiente + brilho) ---- */
.btn { font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; border: none; padding: 11px 20px; min-height: 44px;
  border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; line-height: 1.2;
  white-space: nowrap; transition: transform .16s, box-shadow .16s, background .16s, color .16s; }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn .hub-ico { font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
/* Texto e paradas calculados pelo gerador (luminância do accent · AA ≥4,5:1 nas duas paradas). */
.btn-primary { color: var(--primary-ink); background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  box-shadow: 0 6px 18px -5px var(--accent); }
.btn-primary:hover { box-shadow: 0 10px 26px -6px var(--accent); }
.btn-secondary { color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--accent); }
.btn.sm { min-height: 36px; padding: 7px 14px; font-size: 13.5px; }
.btn-plain { background: transparent; color: var(--ink-soft); padding: 11px 14px; }
.btn-plain:hover { background: var(--line); color: var(--ink); }
.btn-danger { color: var(--primary-ink); background: var(--danger-solid); box-shadow: 0 6px 18px -6px var(--danger-solid); }
.btn-outline-danger { background: var(--surface); color: var(--danger-ink); border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line-2)); }
.btn-outline-danger:hover { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
html.js .sort-submit { display: none; }

/* ---- busca do cabeçalho ---- */
.o-search { display: flex; align-items: center; gap: 10px; height: 44px; min-width: 330px; width: auto; max-width: 560px; flex: none; padding: 0 12px 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-faint); box-shadow: var(--shadow-sm); font-size: 14px; }
.o-search input { flex: 1 1 auto; min-width: 0; width: auto; border: 0; outline: 0; background: transparent; color: var(--ink); height: 40px; font-size: 14px; }
.o-search input::placeholder { color: var(--ink-faint); opacity: 1; }
.o-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.o-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.o-search kbd { font: 500 11.5px var(--font-mono); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; color: var(--ink-faint); }

/* ---- PORTADO DE hub.css: painel (815-818), tabela densa (827-830 · aqui em grade ARIA), toast (809-815),
   confirmação (2362-2376), modal grande (2794-2924), AuroraSelect Actions (5076-5235) ---- */
.panel { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; margin-bottom: 18px; }
.dtable { width: 100%; }
.dt-row { display: grid; grid-template-columns: var(--cols); align-items: center; border-top: 1px solid var(--line); }
.dt-row > span { padding: 13px 22px; font-size: 14.5px; color: var(--ink-soft); min-width: 0; }
.dtable.dense .dt-row > span { padding-top: 6px; padding-bottom: 6px; }
.dt-head { border-top: 0; }
.dt-head > span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); padding-top: 10px !important; padding-bottom: 10px !important; }
.dt-row:not(.dt-head):hover > span { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.dt-row.sel > span { background: var(--accent-soft); }
.dtable.files { --cols: 56px minmax(0, 1fr) 180px 120px 96px 120px 60px; }
.dtable.files.nosel { --cols: minmax(0, 1fr) 180px 120px 96px 120px 60px; }
.dtable.trash { --cols: minmax(0, 1fr) 170px 140px 120px 150px; }
.dt-row > span.cbx { padding-right: 0; }
.dt-row > span.act { text-align: right; padding-left: 0; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }

.toast-host { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: var(--canvas); padding: 6px 6px 6px 18px; min-height: 44px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); animation: rise .35s cubic-bezier(.2,.8,.3,1); display: flex; align-items: center; gap: 9px; }
.toast form { margin: 0; }
.toast-undo { color: var(--canvas); font-weight: 800; padding: 6px 12px; border-radius: var(--r-pill); min-height: 36px; opacity: .92; }
.toast-undo:hover { background: color-mix(in srgb, var(--canvas) 16%, transparent); opacity: 1; }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.modal-scrim { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; background: var(--scrim-modal);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); padding: 20px; animation: scrimIn .16s ease; }
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); padding: 22px 24px; max-width: 400px; width: 100%; }
.modal-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.modal-card p { color: var(--ink-soft); font-size: 14px; margin-top: 6px; overflow-wrap: anywhere; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.modal-lg { position: relative; width: min(var(--mw, 560px), 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); }
.modal-lg .modal-head { display: flex; align-items: flex-start; gap: 13px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.modal-head .mh-mark { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; color: var(--primary-ink); font-size: 20px;
  background: linear-gradient(140deg, var(--primary-from), var(--primary-to)); }
.modal-head .mh-t { flex: 1; min-width: 0; }
.modal-head .mh-t h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.015em; overflow-wrap: anywhere; }
.modal-head .mh-t p { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.modal-close { flex: none; width: 36px; height: 36px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; color: var(--ink-soft);
  font-size: 16px; cursor: pointer; display: grid; place-items: center; transition: all .16s; }
.modal-close:hover { color: var(--ink); border-color: var(--ink-faint); background: var(--line); }
.modal-bd { padding: 18px 24px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.modal-foot .grow { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.modal-foot .grow form { margin: 0; }
.o-handle { display: none; width: 36px; height: 4px; border-radius: 99px; background: var(--line-2); margin: 9px auto 0; flex: none; }
html.modal-open { overflow: hidden; }
.modal-lg:focus, .modal-card:focus { outline: none; }

/* AuroraSelect "Actions" (⋯) — <details> nativo + painel position:fixed posicionado pelo app.js */
.adrop { position: relative; display: inline-block; --opt-neutral: color-mix(in srgb, var(--ink) 8%, var(--surface)); }
[data-theme="dark"] .adrop { --opt-neutral: color-mix(in srgb, var(--ink) 10%, var(--surface)); }
.adrop > summary { list-style: none; }
.adrop > summary::-webkit-details-marker { display: none; }
.adrop.as-actions .kebab { width: 36px; height: 36px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--ink-soft); font-size: 18px;
  border: 1px solid transparent; background: transparent; cursor: pointer; }
.adrop.as-actions .kebab:hover, .adrop.as-actions[open] .kebab { background: var(--line); color: var(--ink); border-color: var(--line-2); }
.adrop-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: var(--z-popover); width: max-content; min-width: 230px; max-width: min(340px, calc(100vw - 20px));
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow-lg); overflow: hidden; display: flex;
  flex-direction: column; max-height: 70vh; text-align: left; animation: apIn .16s cubic-bezier(.2,.8,.3,1); }
html.js .adrop-panel { position: fixed; }
@keyframes apIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.adrop .ap-list { padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.adrop .ap-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: 13.5px; color: var(--ink);
  min-height: 44px; width: 100%; text-align: left; font-weight: 500; transition: background .12s; }
.adrop .ap-opt:hover, .adrop .ap-opt:focus-visible { background: var(--opt-neutral); outline: none; }
.adrop .ap-opt .lab { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adrop .ap-opt .actic { display: inline-flex; font-size: 17px; color: var(--ink-soft); flex: none; }
.adrop .ap-opt.danger, .adrop .ap-opt.danger .actic { color: var(--danger-ink); }
.adrop .ap-opt kbd { margin-left: auto; font: 500 11.5px var(--font-mono); color: var(--ink-faint); }
.adrop .ap-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.o-ml { margin-left: auto; }

/* UiSelect da casa (Ui.Kit) — o chip com valor usa a tinta AA do accent (o --accent puro dá 4,01:1 no canvas) */
.ui-select--chip .ui-sel-trigger.has-value { color: var(--acc-ink); }
.o-sel { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--line-2); background: var(--surface-2); border-radius: var(--r-pill); }
.o-sel:hover { border-color: var(--ink-faint); }
.o-sel:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.o-sel-lb { font-size: 13px; font-weight: 600; color: var(--ink-faint); padding-left: 12px; white-space: nowrap; }
.o-sel .ui-select--chip .ui-sel-trigger, .o-sel .ui-select--chip .ui-select-native { border: 0; background: transparent; box-shadow: none; padding-left: 5px; color: var(--ink-soft); }
.o-sel .ui-select--chip .ui-sel-trigger.has-value, .o-role .ui-select--chip .ui-sel-trigger.has-value { border-color: var(--line-2); background: var(--surface-2); color: var(--ink-soft); }
.o-sel .ui-select--chip .ui-sel-trigger.has-value { border: 0; background: transparent; }

/* ==================================================================================== OFFICE */
.o-muted { color: var(--ink-faint); }
.mo-only { display: none; }
.o-plan { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: var(--r-pill);
  color: var(--acc-ink); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); white-space: nowrap; line-height: 1.5; }
.o-plan .hub-ico { font-size: 11px; }
.o-sec { margin-top: 30px; }
.o-sec-first { margin-top: 6px; }
.o-sechead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.o-sechead h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.o-sechead .hint { font-size: 13px; color: var(--ink-soft); }
.o-sechead-files { margin-bottom: 10px; }
.o-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13.5px; color: var(--o-link); min-height: var(--tap); padding: 0 4px; }
.o-more:hover { text-decoration: underline; }
.o-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.o-chips-row { margin-top: 18px; }
.o-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.o-chip:hover { color: var(--ink); border-color: var(--ink-faint); }
.o-chip[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--acc-ink); }
.o-crumbs { margin-top: 10px; }
.o-crumbs a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--o-link); min-height: 32px; }

/* "Começar novo" */
.o-new { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.o-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r-md); background: var(--surface);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); text-align: left; transition: transform .15s, box-shadow .15s, border-color .15s; }
.o-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line-2)); }
.o-tile b { display: block; font-size: 14px; line-height: 1.25; }
.o-tile small { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.o-tile .o-plan { position: absolute; top: 18px; right: 18px; z-index: 2; background: var(--surface); }
.o-art { height: 104px; border-radius: 11px; display: grid; place-items: center; position: relative; overflow: hidden; }
.o-art.doc { background: color-mix(in srgb, var(--ft-doc) 10%, var(--surface)); }
.o-art.xls { background: color-mix(in srgb, var(--ft-xls) 10%, var(--surface)); }
.o-art.ppt { background: color-mix(in srgb, var(--ft-ppt) 11%, var(--surface)); }
.o-art.tpl { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.o-art.up { background: transparent; border: 1.5px dashed var(--line-2); }
.o-mini { width: 62px; height: 78px; border-radius: 6px; background: var(--paper); box-shadow: 0 2px 6px rgba(0,0,0,.12); position: relative; border: 1px solid var(--paper-line); }
.o-mini.wide { width: 96px; height: 58px; }
.o-mini .ln { position: absolute; left: 9px; right: 9px; height: 3px; border-radius: 2px; background: var(--paper-line); }
.o-art.doc .ln-t { top: 11px; width: 45%; height: 4px; background: var(--ft-doc); }
.o-art.doc .ln-1 { top: 22px; } .o-art.doc .ln-2 { top: 30px; } .o-art.doc .ln-3 { top: 38px; right: 20px; }
.o-art.ppt .ln-t { top: 10px; width: 50%; height: 5px; background: var(--ft-ppt); } .o-art.ppt .ln-2 { top: 22px; width: 70%; }
.o-grid { position: absolute; inset: 0; border-radius: 6px; background-image: linear-gradient(var(--paper-line) 1px, transparent 1px), linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 100% 11px, 18px 100%; }
.o-plus { position: absolute; right: -10px; bottom: -10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--primary-ink);
  box-shadow: var(--shadow-sm); font-size: 15px; }
.o-art.doc .o-plus { background: var(--ft-doc); } .o-art.xls .o-plus { background: var(--ft-xls); } .o-art.ppt .o-plus { background: var(--ft-ppt); }
.o-round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--acc-ink); font-size: 22px; }
.o-round.sq { border-radius: 14px; }

/* cartões de arquivo */
.o-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 14px; }
.o-card { position: relative; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, border-color .15s; }
.o-card:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line-2)); }
.o-card > .hit { display: block; width: 100%; text-align: left; }
.o-thumb { height: 118px; background: var(--canvas-2); display: flex; justify-content: center; align-items: flex-end; padding-top: 14px; overflow: hidden; border-bottom: 1px solid var(--line); }
.o-thumb.slide { align-items: center; padding: 0; }
.o-page { width: 76%; height: 100%; background: var(--paper); border-radius: 6px 6px 0 0; border: 1px solid var(--paper-line); border-bottom: 0; padding: 11px 12px; position: relative; }
.o-page .t { height: 6px; width: 55%; border-radius: 3px; margin-bottom: 8px; background: var(--ft-doc); }
.o-page .l { height: 3px; border-radius: 2px; background: var(--paper-line); margin-bottom: 5px; }
.o-page .w92 { width: 92%; } .o-page .w100 { width: 100%; } .o-page .w84 { width: 84%; } .o-page .w96 { width: 96%; } .o-page .w70 { width: 70%; }
.o-page .w88 { width: 88%; } .o-page .w80 { width: 80%; } .o-page .w50 { width: 50%; }
.o-page.sheet { padding: 0; background-image: linear-gradient(var(--paper-line) 1px, transparent 1px), linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 100% 13px, 28px 100%; background-color: var(--paper); }
.o-page.sheet .hdr { height: 13px; background: color-mix(in srgb, var(--ft-xls) 30%, transparent); }
.o-page.slide { width: 84%; height: 82%; border-radius: 6px; border-bottom: 1px solid var(--paper-line); margin-bottom: 8px; padding: 12px; }
.o-page.slide .t { background: var(--ft-ppt); width: 60%; height: 8px; }
.o-slide-art { position: absolute; right: 10px; bottom: 10px; width: 34%; height: 42%; border-radius: 4px; background: color-mix(in srgb, var(--ft-ppt) 22%, transparent); }
.o-cardbody { padding: 10px 12px 12px; display: flex; gap: 10px; align-items: flex-start; }
.o-cardtx { min-width: 0; }
.o-cardbody .nm { font-weight: 700; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.o-cardbody .mt { font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }
.o-star { position: absolute; top: 6px; right: 6px; width: var(--tap); height: var(--tap); display: grid; place-items: center; }
.o-star span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-faint); font-size: 15px; }
.o-star[aria-pressed="true"] span { color: var(--warn-text); }
.o-star[aria-pressed="true"] svg, .o-iconbtn.fav svg, .o-fname .fav svg { fill: var(--warn-2); stroke: var(--warn-text); }
.o-kind { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 16px; }
.o-kind.doc { background: color-mix(in srgb, var(--ft-doc) 13%, transparent); color: var(--ft-doc); }
.o-kind.xls { background: color-mix(in srgb, var(--ft-xls) 14%, transparent); color: var(--ft-xls); }
.o-kind.ppt { background: color-mix(in srgb, var(--ft-ppt) 14%, transparent); color: var(--ft-ppt); }
[data-theme="dark"] .o-kind.doc { color: color-mix(in srgb, var(--ft-doc) 55%, white); }
[data-theme="dark"] .o-kind.xls { color: color-mix(in srgb, var(--ft-xls) 55%, white); }
[data-theme="dark"] .o-kind.ppt { color: color-mix(in srgb, var(--ft-ppt) 60%, white); }
.o-kind.neutral { background: var(--line); color: var(--ink-soft); }
.o-kind.acc { background: var(--accent-soft); color: var(--acc-ink); }
.o-src { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--ink-soft); background: var(--line); padding: 1px 8px;
  border-radius: var(--r-pill); margin-top: 5px; white-space: nowrap; }
.o-src i { width: 7px; height: 7px; border-radius: 50%; background: var(--hub); }

/* avatares: as DUAS paradas seguram as iniciais brancas em AA (≥4,6:1 · proto D-16) */
.o-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--primary-ink);
  border: 2px solid var(--surface); margin-left: -7px; flex: none; }
.o-av.c0 { background: linear-gradient(140deg, color-mix(in srgb, var(--ft-doc) 80%, black), color-mix(in srgb, var(--ft-doc) 66%, black)); }
.o-av.c1 { background: linear-gradient(140deg, color-mix(in srgb, var(--ft-xls) 72%, black), color-mix(in srgb, var(--ft-xls) 60%, black)); }
.o-av.c2 { background: linear-gradient(140deg, color-mix(in srgb, var(--ft-ppt) 64%, black), color-mix(in srgb, var(--ft-ppt) 54%, black)); }
.o-av.c3 { background: linear-gradient(140deg, color-mix(in srgb, var(--ft-pdf) 72%, black), color-mix(in srgb, var(--ft-pdf) 60%, black)); }
.o-av.c4 { background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 74%, black), color-mix(in srgb, var(--accent) 62%, black)); }
.o-av.c5 { background: linear-gradient(140deg, color-mix(in srgb, var(--ft-gen) 82%, black), color-mix(in srgb, var(--ft-gen) 70%, black)); }
.o-shared { display: inline-flex; align-items: center; }
.o-shared .o-av:first-child { margin-left: 0; }

/* lista densa */
.o-fname { display: flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 650; text-align: left; min-height: var(--tap); }
.o-fname-tx { min-width: 0; }
.o-fname .nm { display: block; overflow-wrap: anywhere; }
.o-fname .fav { color: var(--warn-text); font-size: 14px; display: inline-flex; }
.o-fname .sub { display: none; font-size: 12.5px; font-weight: 500; color: var(--ink-faint); }
.o-fname .sub.warn, .o-left.warn { color: var(--warn-text); font-weight: 600; }
.o-left { font-weight: 700; color: var(--ink-soft); }
.o-from { display: inline-flex; gap: 6px; align-items: center; }
.o-cbx { width: var(--tap); height: var(--tap); display: grid; place-items: center; margin: -12px -10px; cursor: pointer; position: relative; }
.o-cbx input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.o-cbx span { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--ink-faint); display: grid; place-items: center; background: var(--surface);
  color: transparent; font-size: 12px; }
.o-cbx input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--primary-ink); }
.o-cbx input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.o-rows .r { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 18px; border-top: 1px solid var(--line); min-height: 56px; }
.o-rows .r:first-child { border-top: 0; }
.o-rows .r-hit { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 48px; }
.o-rows .r-tx { min-width: 0; flex: 1; }
.o-rows .nm { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-rows .mt { font-size: 13px; color: var(--ink-faint); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.o-rows .r-when { width: 110px; justify-content: flex-end; }
.o-rows .sub { display: none; font-size: 12.5px; color: var(--ink-faint); }
.o-iconbtn { width: var(--tap); height: var(--tap); display: inline-grid; place-items: center; border-radius: var(--r-pill); color: var(--ink-soft); font-size: 18px; flex: none; }
.o-iconbtn:hover { background: var(--line); color: var(--ink); }
.o-iconbtn.fav { color: var(--warn-text); }

/* pastas */
.o-sec-folders { margin-bottom: 26px; }
.o-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.o-folder { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm); text-align: left; min-height: 64px; }
.o-folder:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line-2)); }
.o-folder .fi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--acc-ink); flex: none; font-size: 18px; }
.o-folder-tx { min-width: 0; }
.o-folder b { display: block; font-size: 14px; } .o-folder small { color: var(--ink-faint); font-size: 12.5px; }
.o-folder .o-shared, .o-folder > .o-muted { margin-left: auto; font-size: 12.5px; }

/* barra de ferramentas */
.o-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.o-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.o-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); padding: 3px; margin-left: auto; }
.o-seg a { width: 44px; height: 36px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--ink-faint); font-size: 17px; }
.o-seg a[aria-pressed="true"] { background: var(--accent-soft); color: var(--acc-ink); }
.o-bulk { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 16px; border-radius: var(--r-pill); background: var(--ink); color: var(--canvas);
  font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-md); }
.o-bulk[hidden] { display: none; }
.o-bulk button { min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--canvas); }
.o-bulk button:hover { background: color-mix(in srgb, var(--canvas) 16%, transparent); }
.o-bulk:not([hidden]) ~ .o-filters { display: none; }

/* avisos */
.o-note { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--r-md); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: 14px; flex-wrap: wrap; }
.o-note .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--acc-ink); flex: none; font-size: 17px; }
.o-note .tx { flex: 1; min-width: 220px; } .o-note .tx b { display: block; } .o-note .tx span { color: var(--ink-soft); }
.o-inline { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); margin-top: 12px; }
.o-inline .hub-ico { color: var(--acc-ink); margin-top: 2px; font-size: 15px; flex: none; }
.o-inline a, .o-link { color: var(--o-link); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.o-link { display: inline-flex; align-items: center; min-height: 24px; }
.o-inline.danger { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.o-inline.danger .hub-ico { color: var(--danger-ink); }
.alert { display: flex; align-items: center; gap: 10px; color: var(--danger-ink); font-weight: 600; font-size: 14px;
  background: color-mix(in srgb, var(--danger) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line-2));
  border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 16px; }

/* vazio / erro / carregando (padrão Echo: marca em gradiente · título display · texto) */
.empty, .locked { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 52px 22px 56px; }
.em-mark { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: var(--primary-ink);
  background: linear-gradient(140deg, var(--primary-from), var(--primary-to)); box-shadow: 0 8px 20px -6px var(--accent); margin-bottom: 6px; }
.em-mark .hub-ico { font-size: 26px; }
.empty h3, .locked h1 { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.empty p, .locked p { color: var(--ink-soft); font-size: 14px; max-width: 48ch; }
.empty .acts { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.locked .locked-plan { color: var(--ink); font-weight: 700; }
.locked .btn { margin-top: 10px; }
.o-empty-org { padding: 36px 24px; }
.o-empty-org .em-mark { width: 52px; height: 52px; }
.o-drop { border: 1.5px dashed color-mix(in srgb, var(--accent) 40%, var(--line-2)); border-radius: var(--r-lg); background: color-mix(in srgb, var(--accent) 4%, transparent); }
.o-drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.empty.err .em-mark { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger-ink); box-shadow: none; }
details.o-tech { margin-top: 10px; font-size: 13px; color: var(--ink-faint); text-align: left; max-width: 520px; width: 100%; }
details.o-tech summary { cursor: pointer; font-weight: 700; color: var(--ink-soft); display: inline-flex; gap: 6px; align-items: center; min-height: var(--tap); list-style: none; }
details.o-tech summary::-webkit-details-marker { display: none; }
details.o-tech[open] summary .hub-ico { transform: rotate(90deg); }
details.o-tech pre { margin-top: 4px; font: 500 12px/1.6 var(--font-mono); background: var(--canvas-2); padding: 10px 12px; border-radius: 10px; color: var(--ink-soft); white-space: pre-wrap; }
.o-sk { background: linear-gradient(90deg, var(--line) 0%, var(--line-2) 50%, var(--line) 100%); background-size: 200% 100%; animation: osk 1.3s linear infinite; border-radius: 8px; }
@keyframes osk { to { background-position: -200% 0; } }
.o-sk-thumb { height: 118px; border-radius: 0; }
.o-sk-body { padding: 12px; display: flex; gap: 10px; } .o-sk-ic { width: 28px; height: 28px; } .o-sk-lines { flex: 1; }
.o-sk-l1 { height: 12px; width: 85%; margin-bottom: 8px; } .o-sk-l2 { height: 10px; width: 55%; }

/* medidor (Início · sob o lead) */
.o-meter { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ink-soft); font-weight: 600; flex-wrap: wrap; }
.o-meter .hub-ico { color: var(--acc-ink); font-size: 16px; }
.o-meter b { color: var(--ink); }
.o-meter .o-bar { width: 140px; margin: 0; }
.o-meter-plan { font-weight: 500; }
.o-bar { display: block; height: 6px; border-radius: 9px; background: var(--line-2); margin: 7px 0 0; overflow: hidden; }
.o-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }

/* pessoas (compartilhar) */
.o-people .p { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.o-people .p:first-child { border-top: 0; }
.o-people .o-av { width: 36px; height: 36px; font-size: 12.5px; margin: 0; border: 0; }
.o-people .who { flex: 1; min-width: 0; } .o-people .who b { display: block; font-size: 14px; } .o-people .who small { color: var(--ink-faint); font-size: 12.5px; }
.o-people .owner { font-size: 13px; color: var(--ink-faint); font-weight: 600; padding-right: 8px; }
.o-pick { margin-top: 10px; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 2px 12px; }
.o-pick .p { cursor: pointer; }
.o-pick input[type="radio"] { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink-faint); flex: none; display: grid; place-items: center; }
.o-pick input[type="radio"]:checked { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }
.o-role { margin: 0; display: flex; align-items: center; gap: 6px; }
.o-subh { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin: 18px 0 6px; }
.o-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.o-hint { color: var(--ink-faint); font-size: 13px; margin-top: 10px; }
.o-field { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px 4px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--surface); flex-wrap: wrap; color: var(--ink-faint); }
.o-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.o-field input { flex: 1; min-width: 120px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14.5px; height: 34px; }
.o-field input::placeholder { color: var(--ink-faint); opacity: 1; }
.o-ext { padding-right: 8px; font-size: 13px; }
.o-sh-row { display: flex; gap: 8px; align-items: flex-start; }
.o-sh-search { flex: 1; min-width: 0; position: relative; margin: 0; }
.o-sh-roleform { margin: 0; flex: none; padding-top: 4px; }
.o-sh-find[hidden] { display: none; }
.o-sh-field { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.o-tok { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px; border-radius: var(--r-pill); background: var(--accent-soft); font-size: 13px; font-weight: 700; color: var(--ink); max-width: 100%; }
.o-tok .o-av { width: 22px; height: 22px; margin: 0; border: 0; font-size: 9.5px; }
.o-tok-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-tok button { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); flex: none; }
.o-tok button:hover { background: var(--line); color: var(--ink); }
.o-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 6px; max-height: 260px; overflow-y: auto; }
.o-sugg[hidden] { display: none; }
.o-sugg-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: var(--r-sm); cursor: pointer; }
.o-sugg-opt:hover, .o-sugg-opt[aria-selected="true"] { background: var(--accent-soft); }
.o-sugg-opt .o-av { width: 30px; height: 30px; margin: 0; border: 0; font-size: 11px; }
.o-sugg-opt .who b { display: block; font-size: 14px; } .o-sugg-opt .who small { color: var(--ink-faint); font-size: 12.5px; }
.o-sugg-empty { padding: 12px 10px; color: var(--ink-faint); font-size: 13px; }
.o-linkrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.o-linkrow .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--line); color: var(--ink-soft); font-size: 17px; }
.o-linkrow .t { flex: 1; min-width: 160px; } .o-linkrow b { display: block; font-size: 14px; } .o-linkrow small { color: var(--ink-faint); font-size: 12.5px; }
.o-notify { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); min-height: var(--tap); margin-right: auto; cursor: pointer; position: relative; }
.o-notify input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.o-switch { width: 44px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; flex: none; transition: background .15s; }
.o-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-ink); box-shadow: var(--shadow-sm); transition: left .15s; }
.o-notify input:checked + .o-switch { background: var(--accent); }
.o-notify input:checked + .o-switch::after { left: 21px; }
.o-notify input:focus-visible + .o-switch { outline: 2px solid var(--accent); outline-offset: 2px; }

/* upgrade */
.o-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.o-col { border-radius: var(--r-md); border: 1px solid var(--line-2); padding: 14px 16px; }
.o-col.hl { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.o-col h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.o-col ul { list-style: none; margin: 0; padding: 0; }
.o-col li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); padding: 3px 0; }
.o-col li .hub-ico { color: var(--ok-text); margin-top: 3px; font-size: 14px; flex: none; }
.o-col.hl li .hub-ico { color: var(--acc-ink); }
.o-honest { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.o-honest .hub-ico { margin-top: 3px; flex: none; }

/* mover */
.o-tree .tn { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 10px; border-radius: 10px; font-weight: 600; width: 100%; text-align: left; cursor: pointer; position: relative; }
.o-tree .tn.child { padding-left: 30px; }
.o-tree .tn:hover { background: var(--line); }
.o-tree .tn input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.o-tree .tn:has(input:checked) { background: var(--accent-soft); color: var(--acc-ink); }
.o-tree .tn:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.o-tree .tn .hub-ico { color: var(--acc-ink); }
.o-tree .tn-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-tree .tn-cur { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); }
.o-tree .tn.cur { cursor: default; } .o-tree .tn.cur:hover { background: transparent; }
.o-link-tn { color: var(--o-link); }

/* "Novo" */
.o-nlist { padding-top: 8px; }
.o-nlist .ni { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 8px; border-radius: 12px; width: 100%; text-align: left; }
.o-nlist .ni:hover { background: var(--line); }
.o-nlist .ni-tx { min-width: 0; }
.o-nlist .ni b { display: block; font-size: 15px; } .o-nlist .ni small { color: var(--ink-faint); font-size: 12.5px; }
.o-nlist .ni .o-plan { margin-left: auto; }
.o-nlist .o-kind { width: 40px; height: 40px; border-radius: 12px; font-size: 19px; }
.o-nlist .sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* enviar */
.o-drop-up { padding: 26px 18px; cursor: pointer; }
.o-drop-up p { font-size: 13px; }
.o-uplist { margin-top: 8px; }
.o-up { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.o-up .who { flex: 1; min-width: 0; } .o-up b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.o-up small { font-size: 12.5px; color: var(--danger-ink); }
.o-up .pct { color: var(--ink-faint); font-weight: 600; font-size: 13px; }
.o-kind.bad { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger-ink); }

/* ===== documento aberto: moldura do Office em volta do PREVIEWER DO HUB (/hub/media/preview, sem chrome próprio) ===== */
.o-viewer-main { display: block; }
.o-viewer { display: flex; flex-direction: column; height: calc(100dvh - var(--o-top, 0px) - var(--aurora-dock-safe, 0px)); }
body.is-standalone .o-viewer { --o-top: var(--aurora-bar-h, 58px); }
.o-vbar { flex: none; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.o-vbar .ttl { min-width: 0; flex: 0 1 auto; }
.o-vbar .ttl b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-vbar .ttl small { display: flex; align-items: center; gap: 6px; color: var(--ink-faint); font-size: 12.5px; white-space: nowrap; }
.o-grow { flex: 1; }
.o-mode { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; background: var(--line); color: var(--ink-soft); white-space: nowrap; }
.o-mode.edit { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok-text); }
.o-vbar .o-src { margin-top: 0; }
.o-vban[hidden] { display: none; }
.o-vban { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--accent-soft); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: 14px; }
.o-vban .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); color: var(--acc-ink); flex: none; font-size: 15px; }
.o-vban .tx { flex: 1; min-width: 0; } .o-vban .tx span { color: var(--ink-soft); }
.o-frame { flex: 1; min-height: 0; position: relative; margin: 12px; border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; background: var(--canvas-2); }
.o-editor { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--canvas-2); }
.o-vstate { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; color: var(--ink-soft); background: var(--surface); padding: 20px; }
.o-vstate[hidden] { display: none; }
.o-vstate b, .o-vstate .empty h3 { color: var(--ink); display: block; }
.o-vstate-p { font-size: 13px; }
.o-sk-page { width: 240px; height: 300px; margin: 0 auto 18px; border-radius: 6px; max-width: 70vw; max-height: 40vh; }

/* ---- landing anônima ---- */
.landing { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.landing h1 { font-family: var(--font-display); font-size: clamp(34px, 6vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; color: var(--ink-soft); }
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.lead { color: var(--ink-soft); font-size: 17px; max-width: 46ch; }

/* ================= RESPONSIVO (proto fase 2 · 1180 / 900 / 700) ================= */
@media (max-width: 1180px) { .o-new { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .o-vbar .md { display: none !important; } .o-vbar .btn .lbl { display: none; } }
@media (max-width: 900px) { .o-search { min-width: 0; width: auto; max-width: none; flex: 1; } .o-search input { width: 100%; } .page-actions { width: 100%; } }
@media (max-width: 700px) {
  .hm { display: none !important; }
  .mo-only { display: inline !important; }
  .wrap { padding: 20px 16px 40px; }
  .page-head { margin-bottom: 14px; }
  h1.page { font-size: 26px; }
  .page-lead { font-size: 15px; }
  .page-actions { flex-wrap: wrap; }
  .o-search { order: 3; width: 100%; flex: 1 1 100%; }
  .o-search kbd { display: none; }
  .o-sec { margin-top: 24px; }
  .o-sechead .o-chips { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .o-sechead .o-chips .o-chip { flex: none; }
  .o-new { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .o-new .o-tile { flex: 0 0 136px; }
  .o-art { height: 84px; }
  .o-tile .o-plan { top: 16px; right: 16px; }
  .o-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .o-thumb { height: 96px; }
  .o-folders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .o-folder { padding: 10px 12px; } .o-folder .o-shared, .o-folder > .o-muted { display: none; }
  .dt-row > span { padding: 10px 12px; }
  .dtable.files, .dtable.files.nosel { --cols: minmax(0, 1fr) 52px; }
  .dtable.trash { --cols: minmax(0, 1fr) auto; }
  .dt-head > span.act { visibility: hidden; }
  .o-fname .sub { display: block; }
  .o-rows .r { padding: 4px 6px 4px 12px; }
  .o-rows .sub { display: block; }
  .o-link { min-height: 44px; }
  .adrop.as-actions .kebab { width: 44px; height: 44px; }
  .o-tok { height: 40px; } .o-tok button { width: 44px; height: 40px; border-radius: var(--r-pill); }
  .modal-close { width: 44px; height: 44px; }
  .o-meter { flex-wrap: nowrap; gap: 8px; } .o-meter .o-bar { flex: 1; width: auto; min-width: 60px; }
  .o-vbar { min-height: 56px; padding: 6px; gap: 2px; }
  .o-vbar .ttl b { font-size: 14.5px; }
  .o-vban { padding: 8px 12px; font-size: 13.5px; }
  .o-frame { margin: 8px; }
  .toast-host { bottom: calc(12px + var(--aurora-dock-safe, 0px)); width: calc(100% - 32px); }
  .toast { width: 100%; justify-content: space-between; }
  /* modais viram folha de baixo (mesmo desenho do sheet do AppNav: raio 16, alça 36×4) */
  .modal-scrim { place-items: end center; align-items: end; padding: 0; }
  .modal-lg, .modal-card { width: 100%; max-width: none; border-radius: 16px 16px 0 0; max-height: 92dvh; border-bottom: 0; }
  .modal-card { padding: 8px 20px calc(18px + env(safe-area-inset-bottom) + var(--aurora-dock-safe, 0px)); }
  .o-handle { display: block; }
  .modal-card .o-handle { margin-bottom: 12px; }
  .modal-lg .modal-head { padding: 12px 20px 14px; }
  .modal-bd { padding: 16px 20px; }
  .modal-bd:last-child { padding-bottom: calc(16px + env(safe-area-inset-bottom) + var(--aurora-dock-safe, 0px)); }
  .modal-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom) + var(--aurora-dock-safe, 0px)); }
  .modal-foot.stack { flex-direction: column-reverse; align-items: stretch; }
  .modal-foot.stack .grow { margin-left: 0; flex-direction: column-reverse; }
  .modal-foot.stack .btn, .modal-foot.stack form, .modal-foot.stack form .btn { width: 100%; justify-content: center; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; justify-content: center; }
  .o-cols { grid-template-columns: 1fr; }
  .o-col.hl { order: -1; }   /* no celular a folha abre respondendo "o que o Pro dá" */
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.o-linkrow .btn.ok { border-color: var(--ok); color: var(--ok-text); }
