/* ---------- tokens ---------- */
:root {
  --accent: #7b8cff;
  --card-alpha: .78;
  --radius: 18px;
  --gap: 18px;
  --card-rgb: 255 255 255;
  --fg: #1b1d26;
  --muted: #5d6273;
  --line: rgb(20 24 40 / .09);
  --hover: rgb(20 24 40 / .055);
  --chip: rgb(20 24 40 / .06);
  --shadow: 0 10px 30px rgb(0 0 0 / .18), 0 1px 0 rgb(255 255 255 / .4) inset;
  --on-bg: #fff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
body.cards-dark, body.solid-dark {
  --card-rgb: 22 24 36;
  --fg: #eceef6;
  --muted: #a3a8bb;
  --line: rgb(255 255 255 / .09);
  --hover: rgb(255 255 255 / .07);
  --chip: rgb(255 255 255 / .08);
  --shadow: 0 10px 30px rgb(0 0 0 / .35), 0 1px 0 rgb(255 255 255 / .06) inset;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 15px/1.45 var(--font);
  color: var(--fg);
  background: #0b0c18;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- background ---------- */
#bg, #bg > * { position: fixed; inset: 0; }
#bg { z-index: -1; overflow: hidden; }
#bg-base { background: #0b0c18; }
#bg-img { background-size: cover; background-position: center; opacity: 0; transition: opacity .6s ease; }
#bg-img.on { opacity: 1; }
#stars { display: none; }
#bg-dim { background: #000; opacity: .2; pointer-events: none; }
#aurora { display: none; filter: blur(70px) saturate(140%); }
#aurora i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; opacity: .55; mix-blend-mode: screen; }
#aurora i:nth-child(1) { background: #3d5afe; left: -10vmax; top: -15vmax; animation: drift1 26s ease-in-out infinite alternate; }
#aurora i:nth-child(2) { background: #00bfa5; right: -15vmax; top: 5vmax; animation: drift2 32s ease-in-out infinite alternate; }
#aurora i:nth-child(3) { background: #d500f9; left: 20vmax; bottom: -25vmax; animation: drift3 29s ease-in-out infinite alternate; }
#aurora i:nth-child(4) { background: #ff6d00; right: 10vmax; bottom: -30vmax; opacity: .3; animation: drift1 37s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-20vmax, 15vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-12vmax, -18vmax) scale(1.2); } }
body.bg-stars #stars { display: block; }
body.bg-stars #bg-base {
  background:
    radial-gradient(ellipse 60% 45% at 18% 25%, rgb(120 60 180 / .55), transparent 70%),
    radial-gradient(ellipse 55% 40% at 82% 70%, rgb(40 80 170 / .5), transparent 70%),
    radial-gradient(ellipse 40% 35% at 60% 15%, rgb(200 70 140 / .3), transparent 70%),
    radial-gradient(ellipse 50% 50% at 35% 85%, rgb(70 40 140 / .45), transparent 70%),
    #07071a;
}
body.bg-aurora #aurora { display: block; }
body.bg-aurora #bg-base { background: #060818; }
@media (prefers-reduced-motion: reduce) { #aurora i { animation: none; } }

/* ---------- top bar ---------- */
.top {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; position: sticky; top: 0; z-index: 20;
}
.pages { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.page-tab, .top-btn {
  border: 1px solid rgb(255 255 255 / .16);
  background: rgb(15 16 30 / .35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--on-bg);
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 550;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.page-tab:hover, .top-btn:hover { background: rgb(255 255 255 / .16); }
.page-tab.active { background: rgb(255 255 255 / .92); color: #151722; border-color: transparent; }
.page-tab.drop { outline: 2px dashed var(--accent); }
.top-btn.primary { background: var(--accent); border-color: transparent; }
.top-btn svg, .icon-btn svg { width: 16px; height: 16px; }
.page-tab svg { width: 14px; height: 14px; }
.actions { display: flex; gap: 8px; align-items: center; }
.sync { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgb(0 0 0 / .2); margin-right: 4px; }
.sync.pending { background: #facc15; }
.sync.error, .sync.offline, .sync.auth { background: #f87171; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 18px 22px 30px; color: var(--on-bg); position: relative; z-index: 10; }
.clock { font-size: clamp(54px, 7vw, 92px); font-weight: 250; letter-spacing: -2px; line-height: 1; text-shadow: 0 2px 24px rgb(0 0 0 / .35); font-variant-numeric: tabular-nums; }
.greet { margin-top: 8px; font-size: 17px; opacity: .92; text-shadow: 0 1px 10px rgb(0 0 0 / .45); }
.search { position: relative; width: min(640px, 100%); margin: 22px auto 0; }
.search-box {
  display: flex; align-items: center; gap: 4px;
  background: rgb(255 255 255 / .94); color: #1b1d26;
  border-radius: 16px; padding: 6px 8px 6px 6px;
  box-shadow: 0 12px 40px rgb(0 0 0 / .3);
}
.search-box select {
  border: 0; background: rgb(20 24 40 / .06); color: #1b1d26; border-radius: 11px;
  padding: 9px 8px; font-size: 14px; font-weight: 550; cursor: pointer;
}
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; color: #1b1d26; padding: 10px 8px; font-size: 17px; min-width: 0; }
.search-box kbd { font: 12px var(--font); color: #8a8fa0; border: 1px solid #d6d8e0; border-radius: 6px; padding: 1px 6px; margin-right: 6px; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; text-align: left;
  background: rgb(255 255 255 / .97); color: #1b1d26; border-radius: 14px; padding: 6px;
  box-shadow: 0 16px 40px rgb(0 0 0 / .3);
}
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; }
.suggest a.sel, .suggest a:hover { background: rgb(20 24 40 / .07); }
.suggest .where { margin-left: auto; color: #8a8fa0; font-size: 12px; }

/* ---------- board ---------- */
.board {
  display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: var(--gap); padding: 0 22px 60px; align-items: start;
  max-width: 1900px; margin: 0 auto;
}
.col { display: flex; flex-direction: column; gap: var(--gap); min-height: 60px; }
body.editing .col { outline: 1.5px dashed rgb(255 255 255 / .22); outline-offset: 6px; border-radius: var(--radius); min-height: 140px; }
.empty-page { grid-column: 1 / -1; text-align: center; color: var(--on-bg); opacity: .85; padding: 40px; }
.drop-ph { height: 70px; border-radius: var(--radius); border: 2px dashed var(--accent); background: rgb(123 140 255 / .12); }

@media (max-width: 1150px) { .board { grid-template-columns: repeat(var(--cols-md, 3), minmax(0, 1fr)); } }
@media (max-width: 860px) { .board { grid-template-columns: repeat(var(--cols-sm, 2), minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .board { display: flex; flex-direction: column; align-items: stretch; padding: 0 16px 40px; }
  .top { padding: 12px 16px; }
  .hero { padding: 8px 16px 22px; }
  .search-box kbd { display: none; }
}

/* ---------- cards ---------- */
.card {
  background: rgb(var(--card-rgb) / var(--card-alpha));
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgb(255 255 255 / .18);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; min-width: 0;
}
body.solid-light .card, body.solid-dark .card { backdrop-filter: none; -webkit-backdrop-filter: none; }
.card.dragging { opacity: .35; }
.card-h { display: flex; align-items: center; gap: 6px; padding: 13px 14px 6px 16px; }
.card-h h2 { margin: 0; font-size: 16px; font-weight: 680; letter-spacing: -.1px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grip { cursor: grab; color: var(--muted); display: inline-flex; padding: 2px; margin-left: -6px; }
.grip svg { width: 16px; height: 16px; }
.icon-btn {
  border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--hover); color: var(--fg); }
.icon-btn.danger:hover { color: #e5484d; }
.card-h .collapse { opacity: 0; transition: opacity .15s; }
.card:hover .card-h .collapse, .card.collapsed .card-h .collapse { opacity: 1; }
.card.collapsed .collapse svg { transform: rotate(-90deg); }

.tabs { display: flex; gap: 2px; padding: 2px 12px 0; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tab {
  border: 0; background: transparent; color: var(--muted);
  padding: 7px 9px 8px; font-size: 13.5px; font-weight: 560;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
}
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); border-bottom-color: var(--accent); }
.tab.drop { background: rgb(123 140 255 / .18); border-radius: 8px 8px 0 0; }
.tab .tab-edit { display: inline-flex; opacity: .7; }
.tab .tab-edit svg { width: 12px; height: 12px; }
.tab-add { color: var(--accent); }
.tab-add svg { width: 14px; height: 14px; }
.card-b { padding: 8px 8px 10px; }
.card.collapsed .card-b, .card.collapsed .tabs { display: none; }
.card.collapsed .card-h { padding-bottom: 12px; }

/* links */
.links { list-style: none; margin: 0; padding: 0; }
.links.list .link { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; min-width: 0; }
.links.list .link:hover { background: var(--hover); }
.link .lt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav { width: 18px; height: 18px; border-radius: 5px; flex: none; object-fit: contain; }
.fav-letter {
  width: 18px; height: 18px; border-radius: 5px; flex: none; display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; text-transform: uppercase;
}
.link-heading { font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding: 10px 8px 4px; }
.links.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 4px; }
.links.icons .link-heading { grid-column: 1 / -1; }
.links.icons .link { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 4px 8px; border-radius: 12px; text-align: center; font-size: 12.5px; min-width: 0; }
.links.icons .link:hover { background: var(--hover); }
.links.icons .lt { max-width: 100%; }
.links.icons .fav, .links.icons .fav-letter { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.links .drop-before { box-shadow: 0 -2px 0 var(--accent); }
body.editing .links li, body.editing .links.icons > * { cursor: grab; }
.add-row { display: flex; gap: 6px; padding: 6px 4px 0; flex-wrap: wrap; }
.chip-btn {
  border: 1px dashed var(--line); background: transparent; color: var(--muted);
  border-radius: 9px; padding: 5px 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 5px;
}
body.cards-light .chip-btn, body.solid-light .chip-btn { border-color: rgb(20 24 40 / .18); }
body.cards-dark .chip-btn, body.solid-dark .chip-btn { border-color: rgb(255 255 255 / .2); }
.chip-btn:hover { color: var(--fg); background: var(--hover); }
.chip-btn svg { width: 13px; height: 13px; }
.hint { color: var(--muted); font-size: 13.5px; padding: 8px 10px; }
.hint b { color: var(--fg); font-weight: 600; }

/* news */
.news-feature { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 6px; border-radius: 12px; margin-bottom: 4px; }
.news-feature:hover { background: var(--hover); }
.news-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--chip); }
.news-feature h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.3; font-weight: 650; }
.news-feature p { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list a { display: flex; gap: 10px; align-items: baseline; padding: 5px 8px; border-radius: 8px; font-size: 14px; }
.news-list a:hover { background: var(--hover); }
.news-list .nt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list time { color: var(--muted); font-size: 12px; flex: none; font-variant-numeric: tabular-nums; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 6px; color: var(--muted); font-size: 13px; }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--chip), var(--hover), var(--chip)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; margin: 10px 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* weather */
.wx-now { display: flex; align-items: center; gap: 14px; padding: 4px 10px 10px; }
.wx-emoji { font-size: 44px; line-height: 1; }
.wx-temp { font-size: 40px; font-weight: 300; letter-spacing: -1px; line-height: 1; }
.wx-desc { font-weight: 600; }
.wx-sub { color: var(--muted); font-size: 13px; }
.wx-days { display: grid; grid-template-columns: auto auto 1fr auto auto; gap: 4px 12px; padding: 6px 10px 2px; font-size: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.wx-days .pp { color: #4f8cff; font-size: 12.5px; text-align: right; }
.wx-days .lo { color: var(--muted); text-align: right; }
.wx-days .hi { text-align: right; font-weight: 600; }

/* embed + notes */
.embed { width: 100%; border: 0; border-radius: 10px; display: block; background: #fff; }
.notes {
  width: 100%; min-height: 120px; resize: vertical; border: 0; outline: 0;
  background: var(--chip); border-radius: 10px; padding: 10px 12px; line-height: 1.5;
}

/* ---------- dialogs ---------- */
dialog {
  border: 0; padding: 0; border-radius: 18px; width: min(520px, calc(100vw - 32px));
  background: #fff; color: #1b1d26; box-shadow: 0 30px 80px rgb(0 0 0 / .45);
  color-scheme: light;
}
dialog.wide { width: min(720px, calc(100vw - 32px)); }
dialog::backdrop { background: rgb(5 6 15 / .45); backdrop-filter: blur(3px); }
.dlg-h { display: flex; align-items: center; padding: 18px 20px 4px; }
.dlg-h h3 { margin: 0; font-size: 18px; flex: 1; }
.dlg-b { padding: 10px 20px 4px; max-height: min(70vh, 640px); overflow: auto; }
.dlg-f { display: flex; gap: 8px; padding: 14px 20px 18px; }
.dlg-f .spacer { flex: 1; }
.btn { border: 1px solid #d9dbe3; background: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 14px; }
.btn:hover { background: #f4f5f8; }
.btn.primary { background: #3d5afe; border-color: #3d5afe; color: #fff; }
.btn.primary:hover { background: #2f4ae6; }
.btn.danger { color: #d93036; }
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: #4a4f60; margin-bottom: 5px; }
.field small { display: block; color: #7a7f90; font-size: 12.5px; margin-top: 5px; }
.field input[type=text], .field input[type=url], .field input[type=number], .field select, .field textarea {
  width: 100%; border: 1px solid #d9dbe3; border-radius: 10px; padding: 9px 11px; background: #fff; font-size: 15px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #3d5afe33; border-color: #3d5afe; }
.field input[type=range] { width: 100%; }
.check { display: flex; gap: 9px; align-items: center; margin: 0 0 14px; font-size: 14.5px; }
.seg { display: flex; gap: 4px; background: #f0f1f5; padding: 4px; border-radius: 12px; margin-bottom: 16px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 9px; font-weight: 600; font-size: 14px; color: #4a4f60; }
.seg button.on { background: #fff; color: #1b1d26; box-shadow: 0 1px 4px rgb(0 0 0 / .12); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile {
  border: 2px solid #e3e5ec; border-radius: 14px; padding: 0; overflow: hidden; background: #fff; text-align: left;
}
.tile.on { border-color: #3d5afe; }
.tile .sw { height: 70px; background-size: cover; background-position: center; }
.tile .tl { padding: 8px 10px; font-weight: 600; font-size: 14px; }
.tile .td { padding: 0 10px 10px; font-size: 12.5px; color: #6a6f80; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note-box { background: #f4f6ff; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: #3a3f55; margin-bottom: 14px; }
.note-box ol { margin: 6px 0 0; padding-left: 20px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
  background: #151722; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .35);
}

/* ---------- daily-work widgets (extras.js) ---------- */
.org-badge { margin-left: auto; flex: none; font-size: 10.5px; font-weight: 750; letter-spacing: .5px; padding: 2px 6px; border-radius: 6px; }
.b-dev { background: rgb(34 197 94 / .16); color: #15803d; }
.b-uat { background: rgb(59 130 246 / .16); color: #1d4ed8; }
.b-partial { background: rgb(249 115 22 / .18); color: #c2410c; }
.b-source { background: var(--chip); color: var(--muted); }
.b-prod { background: #dc2626; color: #fff; }
body.cards-dark .b-dev, body.solid-dark .b-dev { color: #4ade80; }
body.cards-dark .b-uat, body.solid-dark .b-uat { color: #93c5fd; }
body.cards-dark .b-partial, body.solid-dark .b-partial { color: #fdba74; }
.links.icons .org-badge { margin-left: 0; }

.tab-badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 6px; line-height: 17px; min-width: 17px; text-align: center; }

.mail-head { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; padding: 2px 8px 6px; }
.mail-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-head a { color: var(--accent); font-weight: 600; flex: none; }
.mail-list { list-style: none; margin: 0; padding: 0; }
.mail-row { display: block; padding: 7px 8px; border-radius: 9px; min-width: 0; }
.mail-row:hover { background: var(--hover); }
.mr1 { display: flex; gap: 8px; align-items: baseline; }
.mail-row .from { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.mail-row .cnt { color: var(--muted); font-weight: 400; font-size: 12px; }
.mail-row .star { color: #f5b301; }
.mail-row time { color: var(--muted); font-size: 12px; flex: none; }
.mail-row .subj, .mail-row .snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.mail-row .snip { color: var(--muted); font-size: 12.5px; }
.mail-row.unread .from, .mail-row.unread .subj { font-weight: 700; }
.mail-row.unread .from::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }

.ag-day { font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding: 10px 8px 3px; }
.ag-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: 9px; }
.ag-row:hover { background: var(--hover); }
.ag-row.past { opacity: .5; }
.ag-row.now { background: rgb(123 140 255 / .14); }
.ag-time { width: 48px; flex: none; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); padding-top: 1px; }
.ag-bar { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.ag-main { min-width: 0; display: flex; flex-direction: column; }
.ag-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.proj { display: block; padding: 8px; border-radius: 10px; }
.proj:hover { background: var(--hover); }
.proj-h { display: flex; gap: 8px; align-items: center; }
.proj-name { font-weight: 650; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.age { font-size: 11.5px; color: var(--muted); background: var(--chip); border-radius: 6px; padding: 1px 6px; flex: none; }
.age.stale { color: #c2410c; background: rgb(249 115 22 / .15); }
.proj-now { font-size: 13.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.proj-now.muted, .muted { color: var(--muted); }
.proj-next { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-next b { color: var(--fg); font-weight: 600; }
.proj-chips { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.chip { font-size: 11.5px; background: var(--chip); border-radius: 6px; padding: 1px 7px; }
.chip.warn { background: rgb(220 38 38 / .14); color: #b91c1c; }
.proj-foot { color: var(--muted); font-size: 12px; padding: 8px 8px 0; }

.inbox { display: flex; flex-direction: column; gap: 8px; padding: 2px; }
.inbox-text { min-height: 96px; }
.inbox-row { display: flex; gap: 8px; }
.inbox-client { flex: 1; min-width: 0; border: 0; background: var(--chip); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; }
.send-btn { display: inline-flex; align-items: center; gap: 4px; }
.send-btn svg { width: 14px; height: 14px; }
.send-btn:disabled { opacity: .6; }
.inbox-tip { font-size: 12px; color: var(--muted); }
.inbox-tip a { color: var(--accent); }
.inbox .mic-btn { flex: none; width: 38px; border: 0; border-radius: 10px; background: var(--chip); color: inherit; display: grid; place-items: center; cursor: pointer; }
.inbox .mic-btn svg { width: 18px; height: 18px; }
.inbox .mic-btn.on { background: #e5484d; color: #fff; animation: mic-pulse 1.4s ease-in-out infinite; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 6px rgb(229 72 77 / .2); } }
.inbox-status { font-size: 13px; color: var(--muted); }
.inbox-status summary { cursor: pointer; }
.inbox-status ul { margin: 6px 0 0; padding-left: 18px; }
.inbox-status a { color: var(--accent); }

.tm-row { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 10px; }
.tm-row.running { background: rgb(123 140 255 / .14); }
.tm-client { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-today { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.tm-row.running .tm-today { color: var(--fg); font-weight: 650; }
.tm-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--chip); color: var(--fg); flex: none; }
.tm-btn:hover { background: var(--hover); }
.tm-btn.on { background: #dc2626; color: #fff; }
.tm-btn svg { width: 13px; height: 13px; }
.tm-btn:not(.on) svg { fill: currentColor; }
.tm-foot { font-size: 12.5px; color: var(--muted); padding: 8px 8px 0; }
.tm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tm-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); }
.tm-table td:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.tm-total td { font-weight: 700; border-bottom: 0; }
.tm-entries { font-size: 13px; padding: 8px 6px 0; color: var(--muted); }
.tm-entries summary { cursor: pointer; }
.tm-entry { display: grid; grid-template-columns: 56px 1fr auto auto 26px; gap: 8px; align-items: center; padding: 3px 2px; color: var(--fg); }
.tm-ec { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acct-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.acct { display: flex; align-items: center; gap: 8px; border: 1px solid #e3e5ec; border-radius: 12px; padding: 10px 12px; }
.acct .spacer { flex: 1; }
.acct-mail { font-size: 12.5px; color: #6a6f80; }
.steps { margin: 0 0 16px; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.steps li { margin-bottom: 8px; }
.steps .td { font-size: 12.5px; color: #6a6f80; }
.steps a { color: #3d5afe; font-weight: 600; }
.btn { display: inline-flex; align-items: center; gap: 6px; }
.btn svg { width: 15px; height: 15px; flex: none; }
.projects { max-height: 720px; overflow-y: auto; overscroll-behavior: contain; }
.adv { margin: 0 0 12px; font-size: 14px; }
.adv summary { cursor: pointer; color: #4a4f60; margin-bottom: 10px; }
