/* Indo Mail new design, phase 1 (24 Oct 2026): colours, Inter type, header, launcher, Mail inbox, Settings, sign-in.
   Loaded after app.css. To roll back, remove the redesign.css line from app.html. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --brand: #7B1113; --brand-deep: #5A0C0E; --brand-pale: #F6E9E9; --gold: #C9A227;
  --bg: #FBFAF8; --surface: #FFFFFF; --surface-2: #F4F0EA; --hover: #F6F1EB; --selected: #F6E9E9;
  --text: #1D1A1A; --text-2: #5F5757; --border: #EBE5DD; --line: #EBE5DD;
  --shadow: 0 1px 2px rgba(29,26,26,.08), 0 4px 16px rgba(29,26,26,.08);
  --font: 'Inter', 'Noto Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141010; --surface: #1D1717; --surface-2: #272020; --hover: #2A2222; --selected: #3A2224;
    --text: #F5F0EE; --text-2: #BBB0AC; --border: #352B2B; --line: #352B2B; --brand: #E7787C; --brand-deep: #F0999C; --brand-pale: #3A2224; --gold: #D8B652;
  }
}
:root[data-theme="dark"] {
  --bg: #141010; --surface: #1D1717; --surface-2: #272020; --hover: #2A2222; --selected: #3A2224;
  --text: #F5F0EE; --text-2: #BBB0AC; --border: #352B2B; --line: #352B2B; --brand: #E7787C; --brand-deep: #F0999C; --brand-pale: #3A2224; --gold: #D8B652;
}
body { letter-spacing: -.005em; }

/* buttons and fields */
.btn { border-radius: 12px; border-color: var(--border); font-weight: 600; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
:root[data-theme="dark"] .btn.primary, :root[data-theme="dark"] .compose-btn, :root[data-theme="dark"] .fab { color: #1D1717; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary, :root:not([data-theme="light"]) .compose-btn, :root:not([data-theme="light"]) .fab { color: #1D1717; } }
.input { border-radius: 10px; border-color: var(--border); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* header */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.logo { color: var(--brand); font-weight: 700; letter-spacing: -.3px; }
.logo b { color: var(--gold); }
.search { background: var(--surface-2); border-radius: 12px; }
.search:focus-within { background: var(--surface); box-shadow: 0 0 0 2px var(--brand); }

/* mail: folders */
.body { background: var(--bg); }
@media (min-width: 861px) { .sidebar { padding: 14px 8px 16px 8px; } }
.compose-btn { background: var(--brand); color: #fff; border-radius: 14px; height: 52px; padding: 0 22px 0 18px; margin: 0 0 14px 4px; box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 28%, transparent); }
.compose-btn:hover { background: var(--brand-deep); box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 34%, transparent); }
.compose-btn svg { color: currentColor; }
.nav-item { border-radius: 10px; padding: 0 12px 0 16px; margin: 1px 0; height: 36px; color: var(--text); gap: 14px; }
.nav-item:hover { background: var(--hover); }
.nav-item.active { background: var(--brand-pale); color: var(--brand); font-weight: 600; }
.nav-item.active svg { color: var(--brand); }
.nav-section { padding: 18px 8px 6px 16px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.storage { margin: auto 6px 0; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-2); }

/* mail: list and reading */
.main { border: 1px solid var(--border); border-radius: 16px; margin: 12px 16px 16px 0; }
.toolbar { border-bottom-color: var(--border); }
.cat-tabs { border-bottom-color: var(--border); }
.row { height: 44px; border-bottom-color: var(--border); background: var(--bg); }
.row.unread { background: var(--surface); }
.row.unread .from, .row.unread .main-col > b, .row.unread .subj { color: var(--text); }
.row:hover { box-shadow: inset 3px 0 0 var(--brand); background: var(--hover); }
.row.selected { background: var(--selected); }
.row .chip { border-radius: 6px; }
.att-card { border-radius: 12px; border-color: var(--border); }
.att-card .ic { border-radius: 8px; }
.thread h1 { font-weight: 600; letter-spacing: -.3px; }
.banner { border-radius: 12px; }

/* compose window */
.composer { border-radius: 16px 16px 0 0; border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(29,26,26,.18); }
.composer .c-head { background: var(--brand); color: #fff; }
.composer .c-head .icon-btn { color: #fff; }
.composer .c-head .icon-btn:hover { background: rgba(255,255,255,.14); }
.composer.max { border-radius: 16px; }

/* launcher (Indo apps) */
.launcher { border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(29,26,26,.16); background: var(--surface); }

/* settings */
.set-tabs { border-bottom-color: var(--border); background: var(--surface); }
.set-tab { border-radius: 10px 10px 0 0; }
.set-tab:hover { color: var(--text); background: var(--hover); }
.set-tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.set-row { border-bottom-color: var(--border); }
.set-k { color: var(--text); }
.set-card { border-radius: 16px !important; border-color: var(--border) !important; }

/* tables, cards, pills */
.card { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
table.tbl th, table.tbl td { border-bottom-color: var(--border); }
.pill { border-radius: 999px; }

/* sign-in and sign-up */
.auth-wrap { background: var(--bg); }
.auth-card h1 { font-weight: 700; letter-spacing: -.4px; }

/* dialogs and menus */
.dialog { border-radius: 20px; }
.menu { border-radius: 12px; border: 1px solid var(--border); }

/* the folder list (Gmail-style drawer rules in app.css) */
.nav-item.g { border-radius: 10px; height: 36px; padding: 0 14px 0 16px; width: 100%; gap: 16px; }
.nav-item.g:hover { background: var(--hover); }
.nav-item.g.active { background: var(--brand-pale); color: var(--brand); font-weight: 600; }
.nav-item.g.active svg.gi { color: var(--brand); }
.nav-section.g { padding: 16px 16px 6px; font-weight: 600; }
.nav-hr { margin: 8px 12px; background: var(--border); }
@media (max-width: 860px) { .sidebar .nav-item, .sidebar .nav-item.g { border-radius: 10px; margin: 1px 8px; width: calc(100% - 16px); } }

/* phones */
@media (max-width: 860px) {
  .main { margin: 0; border: 0; border-radius: 0; }
  .row { height: auto; background: var(--surface); }
  .row:hover { box-shadow: none; }
  .sidebar .nav-item { margin: 1px 8px; }
  .fab { background: var(--brand); color: #fff; border-radius: 16px; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
  .fab svg { color: currentColor; }
  .search { border-radius: 12px; }
}


/* Indo Meet in a call (design: warm dark room, gold for speaking and active controls) */
.mt-call { background: #1A1616; }
.mt-tile { background: #2A2424; border-radius: 16px; }
.mt-tile.speaking, .mt-tile[data-speaking="1"] { box-shadow: 0 0 0 3px #C9A227; }
.mt-name { background: rgba(15,12,12,.7); border-radius: 8px; padding: 3px 10px; }
.mt-btn { background: #2F2828; }
.mt-btn.on { background: #C9A227; color: #1D1A1A; }
.mt-btn.off, .mt-btn.end { background: #C62828; }
.mt-cc-btn { font-weight: 700; font-size: 14px; }
.mt-cc { margin: 0 12px 4px; background: #0F0C0C; color: #fff; border-radius: 14px; padding: 10px 16px; }
.mt-cc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #C9A227; font-size: 12px; font-weight: 600; letter-spacing: .04em; margin-bottom: 4px; }
.mt-cc-lang { background: transparent; color: #C9A227; border: 1px solid #4A3F3F; border-radius: 8px; padding: 2px 6px; font: inherit; max-width: 160px; }
.mt-cc-lang option { color: #1D1A1A; }
.mt-cc-line { font-size: 16px; line-height: 1.4; }
.mt-cc-note { font-size: 11px; color: #B5A9A9; margin-top: 4px; }
.mt-board { position: absolute; left: 12px; right: 12px; top: 12px; bottom: 84px; z-index: 3; background: #fff; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; color: #1D1A1A; }
.mt-board canvas { flex: 1; width: 100%; min-height: 0; touch-action: none; cursor: crosshair; }
.mt-board-bar { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #EBE5DD; flex-wrap: wrap; }
.mt-board-bar b { margin-right: auto; }
.mt-sws { display: inline-flex; gap: 6px; }
.mt-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #D9D2C8; cursor: pointer; padding: 0; }
.mt-sw.on { outline: 3px solid #7B1113; outline-offset: 1px; }
.mt-msgs-tools { padding: 6px 0 0; }
.mt-parent { background: #C9A227; color: #1D1A1A; padding: 8px 12px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
@media (max-width: 860px) { .mt-board { left: 0; right: 0; top: 0; bottom: 72px; border-radius: 0; } .mt-cc-line { font-size: 14px; } }


/* Indo Teams: tasks board and polls */
.tm-tasks { padding: 16px 20px 32px; }
.tm-task-add { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tm-task-add .input:first-child { flex: 1 1 260px; }
.tm-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tm-col { background: var(--surface-2); border-radius: 16px; padding: 12px; min-height: 120px; }
.tm-col h4 { margin: 2px 4px 10px; font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.tm-task { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; display: grid; gap: 6px; }
.tm-task.done b { text-decoration: line-through; color: var(--text-2); }
.tm-task p { margin: 0; }
.tm-task-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.tm-due.late { color: #B42318; font-weight: 600; }
.tm-task-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.tm-poll { display: grid; gap: 6px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; max-width: 520px; }
.tm-poll-q small { color: var(--text-2); }
.tm-poll-opt { position: relative; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 8px 10px; overflow: hidden; display: flex; justify-content: space-between; gap: 8px; cursor: pointer; color: var(--text); }
.tm-poll-opt:disabled { cursor: default; }
.tm-poll-opt.mine { border-color: var(--brand); font-weight: 600; }
.tm-poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-pale); transition: width .3s; }
.tm-poll-t, .tm-poll-n { position: relative; }
.tm-poll-new { display: grid; gap: 6px; }
@media (max-width: 860px) { .tm-board { grid-template-columns: 1fr; } .tm-tasks { padding: 12px; } }


/* Indo Meets: Meetings and Teams tabs (24 Oct 2026, round 2) */
.mx-tabs { display: flex; align-items: center; gap: 4px; padding: 6px 16px 0; border-bottom: 1px solid var(--border); background: var(--surface); flex: 0 0 auto; }
.mx-name { margin-right: 14px; color: var(--brand); font-weight: 700; letter-spacing: -.2px; }
.mx-tab { padding: 10px 16px; border-bottom: 3px solid transparent; color: var(--text-2); font-weight: 600; text-decoration: none; border-radius: 10px 10px 0 0; }
.mx-tab:hover { background: var(--hover); color: var(--text); }
.mx-tab.on { color: var(--brand); border-bottom-color: var(--brand); }
#main:has(> .mx-tabs) { display: flex; flex-direction: column; }
#main > .mx-tabs + .tm, #main > .mx-tabs + .mt-home { flex: 1 1 auto; min-height: 0; }
@media (max-width: 860px) { .mx-tabs { padding: 4px 8px 0; } .mx-name { display: none; } .mx-tab { flex: 1; text-align: center; } }
/* per-app setting: hide the Ask HexAI button */
body.no-ask .ask-btn { display: none !important; }
/* Indo Passwords: Password Checkup */
.pw-check h3 { margin: 0 0 4px; }
.pw-check .inline-set { flex-wrap: wrap; margin: 8px 0; }
.pw-chip.warn { border-color: var(--brand); color: var(--brand); }
.pw-chip[aria-pressed="true"] { background: var(--brand); color: #fff; }
.pw-tag { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--brand-pale); color: var(--brand); vertical-align: 2px; }
/* Indo Meet: Q&A */
.mt-qa { position: absolute; right: 12px; top: 12px; bottom: 84px; width: min(360px, calc(100% - 24px)); z-index: 4; background: #fff; color: #1D1A1A; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.mt-qa-list { flex: 1; overflow: auto; padding: 10px 12px; display: grid; gap: 8px; align-content: start; }
.mt-qa-q { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #EBE5DD; border-radius: 12px; padding: 8px 10px; }
.mt-qa-q.done { opacity: .6; }
.mt-qa-vote { display: grid; justify-items: center; border: 1px solid #EBE5DD; background: #fff; border-radius: 10px; padding: 4px 9px; cursor: pointer; font-size: 12px; color: #5F5757; }
.mt-qa-vote.on { background: #F6E9E9; color: #7B1113; border-color: #7B1113; }
.mt-qa-body { flex: 1; min-width: 0; } .mt-qa-body p { margin: 2px 0 0; overflow-wrap: anywhere; } .mt-qa-body small { color: #5F5757; }
.mt-qa-acts { display: flex; gap: 4px; align-items: center; }
.mt-qa-ask { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #EBE5DD; }
.mt-qa-ask .input { flex: 1; min-width: 0; }
@media (max-width: 860px) { .mt-qa { left: 0; right: 0; top: 0; bottom: 72px; width: auto; border-radius: 0; } }

/* Indo Chat: reply, edit, voice messages, disappearing messages (24 Oct 2026, round 3) */
.ch-ctx { display: flex; align-items: center; gap: 8px; margin: 0 16px; padding: 6px 10px; border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 8px; }
.ch-ctx-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ch-ctx-t span { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-quote { display: flex; flex-direction: column; border-left: 3px solid var(--brand); padding: 2px 8px; margin: 0 0 4px; background: color-mix(in srgb, var(--surface) 60%, transparent); border-radius: 6px; font-size: 13px; }
.ch-quote span { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.ch-body { display: block; }
.ch-acts { position: absolute; top: -10px; right: -6px; display: none; gap: 2px; }
.ch-bubble:hover .ch-acts, .ch-bubble:focus-within .ch-acts { display: flex; }
.ch-act { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; font-size: 13px; line-height: 1; }
.ch-act:hover { color: var(--brand); border-color: var(--brand); }
@media (hover: none) { .ch-acts { display: flex; position: static; margin-top: 4px; } }
.ch-voice { display: flex; align-items: center; gap: 8px; } .ch-voice audio { height: 36px; max-width: 240px; }
.ch-mic.rec { color: #fff; background: #C5221F; border-radius: 50%; animation: chPulse 1.2s infinite; }
@keyframes chPulse { 50% { box-shadow: 0 0 0 6px rgba(197, 34, 31, .25); } }
.ch-ttl { align-items: center; margin: 8px 0 2px; } .ch-ttl-note { background: var(--brand-pale); }
.nt-arch { background: var(--surface-2); padding: 6px 10px; border-radius: 8px; }

/* Indo Calendar: tasks, out of office (24 Oct 2026, round 3) */
.cal-task { display: block; width: 100%; text-align: left; border: 1px dashed var(--brand); background: var(--surface); color: var(--text); border-radius: 6px; padding: 1px 6px; margin: 2px 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-task.done { opacity: .55; text-decoration: line-through; }
.cal-tasks-h { margin-top: 14px; }
.cal-tasks { display: grid; gap: 2px; }
.cal-trow { display: flex; align-items: center; gap: 6px; } .cal-trow.late .cal-tt small { color: #C5221F; }
.cal-tt { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: 6px; border: 0; background: none; padding: 4px 2px; text-align: left; cursor: pointer; color: var(--text); }
.cal-tt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cal-tt small { color: var(--text-2); flex: 0 0 auto; }
.cal-ooo { margin: 0 0 10px; }

/* Indo Photos: editor, shared albums, memories, locked folder; Indo Drive: comments, shared drives (24 Oct 2026, round 3) */
.pe { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; width: min(1100px, 92vw); }
.pe-stage { background: #111; border-radius: 12px; display: grid; place-items: center; min-height: 300px; max-height: 70vh; overflow: hidden; }
.pe-cv { max-width: 100%; max-height: 68vh; }
.pe-tools { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow: auto; }
.pe-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pe-sl { display: grid; gap: 2px; font-size: 13px; } .pe-sl input { width: 100%; accent-color: var(--brand); }
@media (max-width: 860px) { .pe { grid-template-columns: 1fr; width: 92vw; } .pe-stage { min-height: 200px; max-height: 45vh; } .pe-cv { max-height: 44vh; } }
.ph-shared { color: var(--brand); } .ph-albar { margin: 4px 0 10px; }
.ph-memwrap { margin: 0 0 14px; } .ph-memwrap h3 { margin: 0 0 8px; }
.ph-mem { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.ph-memc { flex: 0 0 auto; width: 150px; height: 190px; border: 0; border-radius: 16px; background: var(--surface-2) center / cover no-repeat; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 10px; cursor: pointer; text-shadow: 0 1px 3px rgba(0,0,0,.7); box-shadow: inset 0 -60px 50px -20px rgba(0,0,0,.55); }
.ph-memc span { font-weight: 700; } .ph-memc small { opacity: .9; }
.ph-lock { margin-bottom: 12px; } .ph-lock .input { max-width: 240px; }
.gd-coms { display: grid; gap: 8px; min-width: min(420px, 80vw); }
.gd-com-list { display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.gd-com { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; } .gd-com.done { opacity: .6; }
.gd-com-h { display: flex; align-items: center; gap: 6px; } .gd-com-h small { color: var(--text-2); } .gd-com p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.gd-sdh { margin: 0 0 12px; align-items: center; }
.gd-sd { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gd-sdc { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--surface); display: grid; gap: 8px; }
.gd-sdc a { display: grid; gap: 4px; text-decoration: none; color: var(--text); } .gd-sdc small { color: var(--text-2); }
.gd-sdi { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-pale); color: var(--brand); display: grid; place-items: center; }
.gd-noacc { max-width: 520px; } .gd-req { margin-bottom: 10px; }

/* round4 sheets */
.sh-grid td.sh-dv { position: relative; padding-right: 18px; }
.sh-dvbtn { position: absolute; right: 1px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #7B1113; font-size: 11px; line-height: 1; padding: 2px 3px; cursor: pointer; border-radius: 3px; }
.sh-dvbtn:hover { background: rgba(123,17,19,.1); }
.sh-dvmenu { position: fixed; z-index: 1000; max-height: 260px; overflow: auto; min-width: 140px; }
.sh-dvmenu .mi.on { font-weight: 700; }
.sh-pivotbar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fbf3f3; border-bottom: 1px solid #ecdcdc; font-size: 13px; flex-wrap: wrap; }
.sh-pivotbar .spacer { flex: 1; }
@media (prefers-color-scheme: dark) { .sh-pivotbar { background: #2a1d1d; border-color: #3a2a2a; } }

/* round4 slides */
.sl-th { position: relative; }
.sl-cbadge { position: absolute; right: 4px; top: 2px; background: #7B1113; color: #fff; border-radius: 999px; font-size: 10.5px; padding: 1px 6px; z-index: 1; }
.sl-coms { max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.sl-com { border: 1px solid #ecdcdc; border-radius: 10px; padding: 8px 10px; }
.sl-com.done { opacity: .6; }
.sl-com-t { white-space: pre-wrap; margin: 4px 0; }
.sl-com-a { display: flex; gap: 6px; }

/* round4 teams */
.tm-hooks { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.tm-hook { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #ecdcdc; border-radius: 10px; padding: 8px 10px; }
.tm-code { white-space: pre-wrap; word-break: break-all; font-size: 12px; background: #f6f1ef; border-radius: 8px; padding: 8px; }
@media (prefers-color-scheme: dark) { .tm-code { background: #221a1a; } }

/* round4 translate */
.tr-conv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tr-conv-top h2 { margin: 0; }
.tr-conv-top .spacer { flex: 1; }
.tr-conv { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px; align-items: start; }
.tr-conv-side { display: flex; flex-direction: column; gap: 8px; border: 1px solid #ecdcdc; border-radius: 12px; padding: 10px; }
.tr-conv-h { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tr-conv-h select { max-width: 60%; }
.tr-conv-log { min-height: 220px; max-height: 60vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; border-radius: 12px; background: #faf6f5; padding: 10px; }
.tr-conv-msg { border-radius: 12px; padding: 8px 10px; background: #fff; border: 1px solid #ecdcdc; max-width: 92%; }
.tr-conv-msg.p2 { align-self: flex-end; background: #fbf0f0; }
.tr-conv-src { opacity: .75; margin: 2px 0; white-space: pre-wrap; }
.tr-conv-out { font-weight: 600; white-space: pre-wrap; }
@media (max-width: 820px) { .tr-conv { grid-template-columns: 1fr; } .tr-conv-side.p2 { order: 3; } .tr-conv-log { order: 2; max-height: 40vh; } }
@media (prefers-color-scheme: dark) { .tr-conv-log { background: #1c1616; } .tr-conv-msg { background: #241c1c; border-color: #3a2a2a; } .tr-conv-msg.p2 { background: #2c1f1f; } .tr-conv-side { border-color: #3a2a2a; } }

/* round4 drive offline */
.gd-off-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #f0e6e6; }
.gd-off-name { border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; }
.gd-off-name:hover { text-decoration: underline; }
.gd-off-empty { text-align: center; padding: 40px 10px; }
@media (max-width: 600px) { .gd-off-row { grid-template-columns: 1fr auto; } .gd-off-row small { grid-column: 1; } }

/* round4 shield */
.sh-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0e6e6; }
.sh-row:last-child { border-bottom: 0; }

/* round5 chat */
.ch-fw { display: block; font-size: 11.5px; opacity: .7; font-style: italic; margin-bottom: 2px; }
.ch-act.on { color: #E8A317; }
.ch-star-link { font-size: 17px; color: #E8A317; text-decoration: none; }
.ch-star-link.on { background: rgba(232,163,23,.15); }
.ch-fwlist { max-height: 40vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.ch-fwrow { padding: 6px 4px; border-bottom: 1px solid #f0e6e6; }
.ch-starred { overflow: auto; }

/* round5 photos */
.ph-collage-cv { max-width: 100%; max-height: 60vh; height: auto; }
.ph-anim { width: 100%; max-height: 60vh; background: #000; border-radius: 10px; }

/* round5 sheets */
.sh-dd-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px; max-height: 40vh; overflow: auto; }

/* round6 mail */
.multi-inbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border, #eee); }
.mi-sec { border: 1px solid var(--border, #eee); border-radius: 12px; padding: 8px 10px; min-width: 0; background: var(--surface, #fff); }
.mi-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mi-count { font-size: 12px; color: var(--text-2, #666); }
.mi-all { margin-left: auto; font-size: 12.5px; }
.mi-row { display: flex; gap: 8px; padding: 4px 2px; text-decoration: none; color: inherit; border-radius: 6px; min-width: 0; }
.mi-row:hover { background: var(--brand-pale, #f6eaea); }
.mi-row.unread { font-weight: 600; }
.mi-from { flex: 0 0 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-subj { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2, #555); }
.mi-empty { font-size: 13px; color: var(--text-2, #777); padding: 4px 2px; }
.mi-edrow { display: grid; grid-template-columns: 1fr 2fr auto auto; gap: 6px; margin-bottom: 6px; }
@media (max-width: 640px) { .mi-edrow { grid-template-columns: 1fr auto; } .mi-edrow input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }

/* round6 wallet photos */
.wp-form { max-height: min(62vh, 640px); overflow: auto; padding-right: 4px; }
.wp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.wp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.wp-card { display: flex; flex-direction: column; gap: 4px; text-align: left; color: #fff; border: 0; border-radius: 14px; padding: 14px; cursor: pointer; min-height: 96px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.wp-card b { font-size: 16px; } .wp-card small { opacity: .9; } .wp-k { font-size: 12.5px; opacity: .9; }
.wp-show { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: min(420px, 80vw); }
.wp-code { background: #fff; padding: 12px; border-radius: 10px; display: flex; justify-content: center; }
.wp-code.qr svg { width: min(260px, 70vw); height: auto; } .wp-code.bar svg { width: 100%; height: 90px; }
.wp-text { text-align: center; font-size: 14px; letter-spacing: 1px; word-break: break-all; }
.wp-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f0e6e6; padding: 4px 0; }
.ph-trim input[type=range] { width: 100%; }

/* round6 slides */
.sl-step { opacity: 0; }
.sl-step.on { opacity: 1; transition: opacity .45s ease, transform .45s ease; }
.sl-step.sl-b-appear.on { transition: none; }
.sl-step.sl-b-rise { transform: translateY(1.2em); }
.sl-step.sl-b-rise.on { transform: none; }

/* round7 mail */
@media (max-width: 860px) { .c-foot { overflow-x: auto; scrollbar-width: none; } .c-foot > * { flex: none; } .ai-chip { white-space: nowrap; gap: 4px; } }

/* round7 sheets */
.sh-slicers { display: flex; flex-direction: column; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--border, #eee); background: var(--surface, #fff); max-height: 30vh; overflow: auto; }
.sh-slicer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.sh-sl-name { font-weight: 600; font-size: 12.5px; margin-right: 4px; }
.sh-sl-btn { border: 1px solid #d9c9c9; background: #fff; color: inherit; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; }
.sh-sl-btn.on { background: #7B1113; color: #fff; border-color: #7B1113; }
.sh-sl-x { margin-left: auto; border: 0; background: none; font-size: 17px; line-height: 1; cursor: pointer; color: #888; }

/* round7 photos */
.ph-trim-stage { display: flex; justify-content: center; align-items: center; background: #000; border-radius: 10px; overflow: hidden; max-height: 50vh; }
.ph-trim-stage video { transition: transform .2s ease; max-height: 40vh; }
.pe.ph-trim { max-height: min(72vh, 760px); overflow: auto; }
.ph-trim-ed { margin-top: 8px; flex-wrap: wrap; }

/* round8 notes */
.nt-placebtn { font-size: 16px; } .nt-placebtn.on { background: rgba(123,17,19,.1); }
.nt-placelist { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; max-height: 34vh; overflow: auto; }
.nt-placeopt { text-align: left; border: 1px solid #eadada; background: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer; color: inherit; }
.nt-placeopt:hover { background: #f8f0f0; }

/* round8 sheets */
.sh-macrobar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff4f4; border-bottom: 1px solid #f1caca; }
.sh-macrobar .spacer { flex: 1; }
.sh-recdot { width: 10px; height: 10px; border-radius: 50%; background: #d32f2f; animation: shRec 1s ease-in-out infinite alternate; }
@keyframes shRec { from { opacity: 1; } to { opacity: .35; } }
.sh-macros { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow: auto; }
.sh-macro { display: flex; align-items: center; gap: 8px; border: 1px solid #eee; border-radius: 10px; padding: 8px 10px; }
.sh-macro > div { flex: 1; min-width: 0; }
