/* Tokens — base Superhuman ajustada (sem roxos): Graphite Navy, Slate Mist, Steel Link */
  :root {
    --graphite-navy: #161b24;
    --graphite-2: #1f2733;
    --graphite-3: #3a4658;
    --slate-mist: #c3cfdc;
    --steel-link: #2f5d8a;
    --charcoal-ink: #292827;
    --warm-cream: #e9e5dd;
    --parchment-border: #dcd7d3;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --bg: #f5f4f2;
    --surface: #ffffff;
    --surface-2: #faf9f7;
    --border: #dcd7d3;
    --text: #292827;
    --text-2: rgba(41, 40, 39, 0.64);
    --text-3: rgba(41, 40, 39, 0.44);
    --link: #2f5d8a;
    --btn-bg: #292827;
    --btn-fg: #ffffff;
    --selected: rgba(47, 93, 138, 0.07);
    --selected-bar: #2f5d8a;
    --focus: #292827;
    --code-bg: #e9e5dd;
    --code-fg: #292827;
    --danger: #c0392b;
    --live: #2f5d8a;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #121111; --surface: #1c1b1a; --surface-2: #252423; --border: #3a3938;
      --text: rgba(255,255,255,0.92); --text-2: rgba(255,255,255,0.6); --text-3: rgba(255,255,255,0.4);
      --link: #c3cfdc; --btn-bg: #e9e5dd; --btn-fg: #292827;
      --selected: rgba(195,207,220,0.08); --selected-bar: #c3cfdc; --focus: #c3cfdc;
      --code-bg: #252423; --code-fg: rgba(255,255,255,0.95); --danger: #e74c3c; --live: #c3cfdc;
      --shadow: 0 8px 24px rgba(0,0,0,0.4); color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #121111; --surface: #1c1b1a; --surface-2: #252423; --border: #3a3938;
    --text: rgba(255,255,255,0.92); --text-2: rgba(255,255,255,0.6); --text-3: rgba(255,255,255,0.4);
    --link: #c3cfdc; --btn-bg: #e9e5dd; --btn-fg: #292827;
    --selected: rgba(195,207,220,0.08); --selected-bar: #c3cfdc; --focus: #c3cfdc;
    --code-bg: #252423; --code-fg: rgba(255,255,255,0.95); --danger: #e74c3c; --live: #c3cfdc;
    --shadow: 0 8px 24px rgba(0,0,0,0.4); color-scheme: dark;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    font-family: var(--font); font-weight: 460; font-size: 15px; line-height: 1.5;
    background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
  }
  button { font: inherit; cursor: pointer; }
  input, select, textarea { font: inherit; color: inherit; }
  .mono { font-family: var(--mono); }
  .screen { display: none; min-height: 100vh; }
  .screen.on { display: block; }
  svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

  /* ---------- Botões (do DS) ---------- */
  .btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; border: none; padding: 9px 16px; font-size: 14px; font-weight: 600; transition: opacity .2s, background .2s; white-space: nowrap; }
  .btn-dark { background: var(--btn-bg); color: var(--btn-fg); }
  .btn-dark:hover { opacity: .88; }
  .btn-cream { background: var(--warm-cream); color: var(--charcoal-ink); }
  .btn-cream:hover { opacity: .9; }
  .btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 460; }
  .btn-outline:hover { background: var(--surface-2); }
  .btn-ghost { background: transparent; color: var(--link); padding: 6px 4px; font-weight: 460; text-decoration: underline; text-underline-offset: 3px; }
  .btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--border); font-weight: 460; }
  .btn-danger:hover { background: color-mix(in srgb, var(--danger) 8%, transparent); }
  .btn-sm { padding: 6px 10px; font-size: 13px; }
  .icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-2); }
  .icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }

  /* ---------- Login (hero do DS) ---------- */
  .login {
    min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
    background: linear-gradient(180deg, var(--graphite-navy) 0%, var(--graphite-2) 45%, var(--graphite-3) 80%, var(--slate-mist) 130%);
  }
  .login-card {
    width: 100%; max-width: 400px; background: var(--graphite-navy);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 16px; padding: 40px 32px; color: rgba(255,255,255,0.95);
  }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.2px; }
  .brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--warm-cream); color: var(--charcoal-ink); display: grid; place-items: center; }
  .brand-mark svg { width: 16px; height: 16px; }
  .login h1 { font-size: 32px; font-weight: 540; line-height: 1.05; margin: 28px 0 8px; }
  .login p.sub { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 28px; }
  .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
  .field label { font-size: 13px; font-weight: 600; }
  .login .field input {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); color: #fff;
    padding: 12px 14px; border-radius: 8px; outline: none; font-size: 15px;
  }
  .login .field input:focus { border-color: var(--slate-mist); }
  .login .btn-cream { width: 100%; justify-content: center; padding: 13px; font-size: 15px; margin-top: 8px; }
  .login .foot { margin-top: 20px; font-size: 12px; color: rgba(255,255,255,0.5); text-align: center; }

  /* ---------- Shell do app ---------- */
  .nav {
    height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 16px 0 20px;
    background: var(--graphite-navy); color: rgba(255,255,255,0.95); position: sticky; top: 0; z-index: 5;
  }
  .nav .brand { font-size: 15px; }
  .nav .brand small { font-weight: 460; color: rgba(255,255,255,0.5); font-size: 13px; margin-left: 2px; }
  .lookup { flex: 1; min-width: 0; max-width: 560px; margin: 0 auto; position: relative; }
  .lookup input {
    width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); color: #fff;
    border-radius: 8px; padding: 8px 12px 8px 36px; font-size: 14px; outline: none;
  }
  .lookup input::placeholder { color: rgba(255,255,255,0.45); }
  .lookup input:focus { border-color: var(--slate-mist); background: rgba(255,255,255,0.1); }
  .lookup svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.5); }
  .lookup kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.18); border-radius: 4px; padding: 1px 5px; }
  .nav-right { display: flex; align-items: center; gap: 6px; }
  .nav .icon-btn { color: rgba(255,255,255,0.7); }
  .nav .icon-btn:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: transparent; }
  .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--slate-mist); color: var(--graphite-navy); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
  .nav-tab { color: rgba(255,255,255,0.7); background: none; border: none; font-size: 14px; padding: 6px 10px; border-radius: 6px; }
  .nav-tab:hover, .nav-tab.on { color: #fff; background: rgba(255,255,255,0.08); }

  .app { display: grid; grid-template-columns: 280px 380px 1fr; height: calc(100vh - 56px); }
  .col { min-width: 0; overflow: auto; }

  /* Sidebar */
  .side { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
  .side-top { padding: 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
  .side-top .btn-dark { justify-content: center; padding: 11px; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
  .seg button { border: none; background: none; border-radius: 6px; padding: 6px; font-size: 13px; color: var(--text-2); }
  .seg button.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
  .filter { position: relative; }
  .filter input { width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 7px 10px 7px 32px; font-size: 13px; outline: none; }
  .filter input:focus { border-color: var(--focus); }
  .filter svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 14px; height: 14px; }
  .side-label { padding: 14px 16px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); display: flex; justify-content: space-between; }
  .addr { display: block; width: 100%; text-align: left; border: none; background: none; padding: 10px 16px; border-left: 2px solid transparent; color: inherit; }
  .addr:hover { background: var(--surface-2); }
  .addr.on { background: var(--selected); border-left-color: var(--selected-bar); }
  .addr .e { font-family: var(--mono); font-size: 12.5px; display: flex; justify-content: space-between; gap: 8px; }
  .addr .e span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .addr .m { display: flex; gap: 8px; align-items: center; margin-top: 4px; font-size: 12px; color: var(--text-3); }
  .count { font-family: var(--font); font-size: 11px; font-weight: 600; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
  .count.new { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
  .chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--border); color: var(--text-2); background: var(--surface); }
  .side-foot { margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }

  /* Lista de mensagens */
  .list { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
  .box-head { padding: 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
  .box-addr { display: flex; align-items: center; gap: 8px; }
  .box-addr { align-items: flex-start; }
  .box-addr .who-addr { min-width: 0; flex: 1; }
  .box-addr .local { font-family: var(--mono); font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .box-addr .dom { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
  .mbar { display: none; }
  .box-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
  .live { display: inline-flex; align-items: center; gap: 6px; color: var(--live); font-weight: 600; }
  .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
  @keyframes pulse { 0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--live) 50%, transparent)} 70%{box-shadow:0 0 0 7px transparent} 100%{box-shadow:0 0 0 0 transparent} }
  .box-actions { display: flex; gap: 8px; margin-top: 12px; }
  .banner { margin: 12px 16px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); font-size: 13px; color: var(--text-2); display: flex; gap: 10px; align-items: center; justify-content: space-between; }
  .msg { display: block; width: 100%; text-align: left; border: none; background: none; color: inherit; padding: 12px 16px; border-bottom: 1px solid var(--border); border-left: 2px solid transparent; }
  .msg:hover { background: var(--surface-2); }
  .msg.on { background: var(--selected); border-left-color: var(--selected-bar); }
  .msg .r1 { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
  .msg .from { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .msg.unread .from::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--selected-bar); margin-right: 7px; vertical-align: middle; }
  .msg .t { color: var(--text-3); font-size: 12px; flex: none; }
  .msg .s { font-size: 14px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .msg .p { font-size: 12.5px; color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
  .codechip { font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 0 6px; border-radius: 4px; background: var(--code-bg); color: var(--code-fg); flex: none; }

  /* Leitor */
  .reader { background: var(--bg); }
  .reader-in { max-width: 860px; margin: 0 auto; padding: 24px 28px 48px; }
  .reader h2 { font-size: 24px; font-weight: 540; line-height: 1.2; letter-spacing: -0.3px; }
  .hdrs { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; margin-top: 14px; font-size: 13px; color: var(--text-2); align-items: center; }
  .hdrs b { font-weight: 600; color: var(--text-3); font-size: 12px; }
  .hdrs .act { grid-row: 1 / span 3; grid-column: 3; display: flex; gap: 4px; align-self: start; }
  .extract { margin-top: 20px; display: grid; grid-template-columns: auto 1fr; gap: 12px; }
  .code-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
  .k { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
  .code-val { display: flex; align-items: center; gap: 12px; }
  .code-val .mono { font-size: 30px; font-weight: 600; letter-spacing: .12em; }
  .links-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; min-width: 0; }
  .link-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
  .link-row a:not(.icon-btn) { color: var(--link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; text-underline-offset: 3px; }
  .tabs { display: flex; gap: 2px; margin-top: 24px; border-bottom: 1px solid var(--border); }
  .tabs button { border: none; background: none; padding: 8px 12px; font-size: 13px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
  .tabs button.on { color: var(--text); font-weight: 600; border-bottom-color: var(--text); }
  .tabs .sp { flex: 1; }
  .imgbar { margin-top: 14px; font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px dashed var(--border); border-radius: 8px; }
  .frame { margin-top: 12px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #ffffff; color: #292827; }
  .frame-bar { font-size: 11px; color: #8a8682; padding: 6px 12px; border-bottom: 1px solid #ece9e5; background: #faf9f7; display: flex; gap: 6px; align-items: center; }
  .mail { padding: 32px; max-width: 560px; margin: 0 auto; font-family: Helvetica, Arial, sans-serif; }
  .mail .logo { font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
  .mail .imgph { height: 120px; border-radius: 10px; margin: 18px 0; background: repeating-linear-gradient(45deg, #f1efec, #f1efec 10px, #f7f6f4 10px, #f7f6f4 20px); display: grid; place-items: center; color: #9a958f; font-size: 12px; }
  .mail p { margin: 10px 0; font-size: 15px; line-height: 1.55; }
  .mail .cta { display: inline-block; margin: 14px 0; background: #111; color: #fff; padding: 12px 22px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 14px; }
  .mail .small { font-size: 12px; color: #888; }

  /* Vazio */
  .empty { display: grid; place-items: center; text-align: center; padding: 64px 24px; color: var(--text-2); }
  .empty .ring { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; margin: 0 auto 16px; color: var(--text-3); }
  .empty h3 { color: var(--text); font-size: 18px; font-weight: 540; margin-bottom: 6px; }
  .empty p { font-size: 14px; max-width: 340px; margin: 0 auto; }

  /* Modal */
  .scrim { position: fixed; inset: 0; background: rgba(10, 12, 16, 0.5); display: none; place-items: center; z-index: 20; padding: 16px; }
  .scrim.on { display: grid; }
  .modal { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
  .modal-h { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: center; }
  .modal-h h3 { font-size: 20px; font-weight: 540; }
  .modal-b { padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; }
  .modal-f { padding: 0 24px 20px; display: flex; justify-content: flex-end; gap: 8px; }
  .in { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 10px 12px; font-size: 14px; outline: none; width: 100%; }
  .in:focus { border-color: var(--focus); }
  .addr-input { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
  .addr-input input { border: none; outline: none; background: var(--surface); padding: 10px 12px; font-family: var(--mono); font-size: 14px; flex: 1; min-width: 0; }
  .addr-input span { background: var(--surface-2); border-left: 1px solid var(--border); padding: 10px 12px; font-family: var(--mono); font-size: 13px; color: var(--text-3); white-space: nowrap; }
  .addr-input:focus-within { border-color: var(--focus); }
  .preview { border: 1px dashed var(--border); border-radius: 8px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .preview .mono { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
  .hint { font-size: 12px; color: var(--text-3); }
  .field-l { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Admin */
  .page { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }
  .page h1 { font-size: 32px; font-weight: 460; letter-spacing: -0.8px; line-height: 1.05; }
  .page .lead { color: var(--text-2); margin-top: 6px; }
  .page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
  .panel { margin-top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  .panel-h { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .panel-h h3 { font-size: 16px; font-weight: 600; }
  table { width: 100%; border-collapse: collapse; font-size: 14px; }
  th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 10px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
  td { padding: 12px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
  tr:last-child td { border-bottom: none; }
  .who { display: flex; align-items: center; gap: 10px; }
  .who .avatar { width: 28px; height: 28px; font-size: 11px; }
  .sub2 { font-size: 12px; color: var(--text-3); }
  .tokenbox { display: flex; gap: 8px; align-items: center; padding: 16px 20px; flex-wrap: wrap; }
  .tokenbox code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; flex: 1; min-width: 240px; color: var(--text-2); }
  pre.api { font-family: var(--mono); font-size: 12.5px; background: var(--graphite-navy); color: rgba(255,255,255,0.88); padding: 16px 20px; overflow: auto; line-height: 1.6; }
  pre.api .c { color: rgba(255,255,255,0.45); }

  /* Toast */
  .toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(10px); background: var(--graphite-navy); color: #fff; font-size: 13px; padding: 9px 14px; border-radius: 8px; opacity: 0; transition: .2s; pointer-events: none; z-index: 30; display: flex; gap: 8px; align-items: center; }
  .toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }


  /* Responsivo */
  .back { display: none; }
  @media (max-width: 1180px) {
    .app { grid-template-columns: 240px 320px 1fr; }
  }
  @media (max-width: 900px) {
    .nav { gap: 10px; padding: 0 12px; }
    .nav .brand small, .nav .brand-t, .lookup kbd, .nav-tab, .nav-right .icon-btn { display: none; }
    .lookup input { padding-left: 32px; }
    .app { grid-template-columns: minmax(0, 1fr); height: auto; }
    .side { display: none; }
    .app.drawer .side { display: flex; position: fixed; top: 56px; left: 0; bottom: 0; width: min(320px, 86vw); z-index: 6; box-shadow: var(--shadow); }
    .app.drawer::after { content: ""; position: fixed; inset: 56px 0 0 0; background: rgba(10,12,16,.4); z-index: 5; }
    .mbar { display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
    .mbar .btn { flex: 1; justify-content: center; }
    .list { border-right: none; }
    .app.reading .list { display: none; }
    .app:not(.reading) .reader { display: none; }
    .back { display: inline-flex; margin-bottom: 12px; }
    .reader-in { padding: 16px 16px 96px; }
    .extract { grid-template-columns: 1fr; }
    .code-val .mono { font-size: 26px; }
    .mail { padding: 20px; }
    .row2 { grid-template-columns: 1fr; }
    th:nth-child(3), td:nth-child(3), th:nth-child(4), td:nth-child(4) { display: none; }
    td, th { padding-left: 14px; padding-right: 14px; }
  }

  /* ---------- Produto (além do protótipo) ---------- */
  [hidden] { display: none !important; }
  .login-err { color: #ffb4a8; font-size: 13px; min-height: 18px; margin-top: 10px; }
  .loading { padding: 24px 16px; color: var(--text-3); font-size: 13px; }
  .pre { white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
         background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin-top: 12px; color: var(--text); }
  .frame iframe { display: block; width: 100%; border: 0; height: 70vh; min-height: 360px; background: #fff; }
  .atts { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
  .att { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
         background: var(--surface); font-size: 13px; color: var(--text); text-decoration: none; }
  .att:hover { background: var(--surface-2); }
  .att small { color: var(--text-3); }
  .side-empty { padding: 16px; font-size: 13px; color: var(--text-3); }
  .stack { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; }
  .stack .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
  .stack .row > div { flex: 1; min-width: 180px; }
  .secret { font-family: var(--mono); font-size: 13px; background: var(--code-bg); color: var(--code-fg); border-radius: 8px; padding: 10px 12px; word-break: break-all; }
  .muted { color: var(--text-3); }
  .chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); }
  .tag-off { opacity: .55; }
  .modal .err { color: var(--danger); font-size: 13px; min-height: 18px; }
  .avatar-btn { border: none; padding: 0; background: none; }
  .nav-tab[hidden] { display: none; }
  @media (max-width: 900px) {
    .nav-right .avatar-btn { display: inline-block; }
    .page { padding: 20px 16px 64px; }
  }
  #s-app.on, #s-conta.on { min-height: 0; }
