/* Workspace apps — Gmail, Calendar, Drive, Tasks (public/lan-gws*.js). Built on the console's theme tokens so every theme works. */
.page.gx-page { max-width: none; padding-bottom: 0; }
.page.gx-page .ph p { display: none; }
.page.gx-page .seg { margin-bottom: 12px; }
/* One row that is exactly the app's height: the rail and the mail list scroll inside it, instead of being cut off */
.gx-app { display: grid; grid-template-columns: 236px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 0 14px; min-height: 360px; overflow: hidden; }
.gx-app > * { min-height: 0; }
.gx-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gx-i.sm { width: 16px; height: 16px; }
.gx-ib { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 0; background: none; color: var(--ink-2); cursor: pointer; padding: 0; }
.gx-ib:hover { background: var(--hover); color: var(--ink); }
.gx-ib:disabled { opacity: .35; cursor: default; background: none; }
.gx-ib.sm { width: 28px; height: 28px; }
.gx-ib.sm .gx-i { width: 16px; height: 16px; }
.gx-err { color: var(--bad); }
.gx-in { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.gx-in:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -1px; border-color: transparent; }
.gx-in.big { font-size: 20px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 8px 2px; width: 100%; background: transparent; }
.gx-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.gx-chk .gx-i { width: 18px; height: 18px; color: var(--muted); }
.gx-av { display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; border-radius: 50%; background: var(--c); color: #fff; font-weight: 600; font-size: calc(var(--s) * .42); line-height: 1; }
.gx-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
kbd { font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--soft); color: var(--ink-2); }

/* Pop-ups */
.gx-modal-bg { position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, .45); display: grid; place-items: center; padding: 16px; animation: gxfade .12s; }
.gx-modal { width: min(460px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); overflow: hidden; }
.gx-modal.wide { width: min(760px, 100%); }
.gx-modal-h { display: flex; align-items: center; gap: 8px; padding: 12px 12px 0 20px; }
.gx-modal-h h3 { margin: 0; flex: 1; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.gx-modal-b { padding: 8px 20px 18px; overflow: auto; }
.gx-modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.gx-modal .gx-in:not(.big):not([type=date]):not([type=time]) { width: 100%; box-sizing: border-box; }
.gx-conf { margin: 4px 0 0; line-height: 1.5; }
@keyframes gxfade { from { opacity: 0; } }
.gx-menu { position: fixed; z-index: 500; min-width: 210px; max-width: 320px; max-height: min(70vh, 520px); overflow: auto; padding: 6px 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.gx-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 16px; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.gx-menu button:hover:not(:disabled) { background: var(--hover); }
.gx-menu button:disabled { opacity: .4; cursor: default; }
.gx-menu button.danger { color: var(--bad); }
.gx-menu button.on::after { content: '✓'; margin-left: auto; color: var(--accent-text); }
.gx-menu button span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-menu .gx-i { width: 18px; height: 18px; color: var(--muted); }
.gx-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.gx-menu-h { padding: 6px 16px; font-size: 12px; color: var(--muted); }
.gx-menu kbd { margin-left: auto; }
.gx-gem { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 0 0 12px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.gx-gem > .gx-i { color: var(--accent-text); margin-top: 2px; }
.gx-gem > div { flex: 1; line-height: 1.55; }
.gx-gem.bad { background: var(--bad-soft); color: var(--bad); }
.gx-gem-t { line-height: 1.6; }
.gx-gem-wait { color: var(--muted); padding: 12px 0; }
.gx-keys { width: 100%; border-collapse: collapse; }
.gx-keys td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.gx-keys td:first-child { width: 170px; }

/* ── The shared left rail (Gmail, Drive, Tasks, Calendar) ─────────── */
.gm-rail { display: flex; flex-direction: column; min-height: 0; overflow: auto; padding: 2px 0 10px; }
.gm-compose-btn { display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 24px 0 18px; margin: 0 0 14px; align-self: flex-start; border: 0; border-radius: 16px; background: var(--accent-soft); color: var(--ink); font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: box-shadow .15s; }
.gm-compose-btn:hover { box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.gm-compose-btn .gx-i { width: 22px; height: 22px; color: var(--accent-text); }
.gm-folders, .gm-labels { display: flex; flex-direction: column; }
.gm-f { display: flex; align-items: center; gap: 16px; height: 32px; padding: 0 12px 0 18px; margin-right: 6px; border-radius: 0 16px 16px 0; color: var(--ink-2); font-size: 14px; cursor: pointer; text-decoration: none; user-select: none; }
.gm-f:hover { background: var(--hover); color: var(--ink); }
.gm-f.on { background: color-mix(in srgb, var(--accent) 26%, var(--surface)); color: var(--ink); font-weight: 600; }
.gm-f.b { font-weight: 700; color: var(--ink); }
.gm-f span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-f em { font-style: normal; font-size: 12.5px; }
.gm-f .gx-i { width: 19px; height: 19px; }
.gm-tagdot { width: 12px; height: 12px; margin: 0 4px 0 3px; border-radius: 3px; background: var(--c); flex: none; transform: rotate(45deg) scale(.85); }
.gm-lhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 4px 18px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.gm-nolab { padding: 4px 18px; font-size: 13px; color: var(--muted); }

/* ── Gmail ─────────────────────────────────────────────────────── */
.gm-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.gm-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.gm-search { flex: 1; max-width: 720px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 16px; border-radius: 24px; background: var(--soft); color: var(--muted); cursor: text; }
.gm-search:focus-within { background: var(--bg); box-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.gm-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; outline: 0; }
.gm-gem .gx-i { width: 16px; height: 16px; color: var(--accent-text); }
.gm-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gm-bar { display: flex; align-items: center; gap: 2px; min-height: 48px; padding: 0 8px 0 10px; border-bottom: 1px solid var(--line); flex: none; }
.gm-bar .gm-count { margin-left: auto; padding: 0 8px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.gm-selall { display: inline-flex; align-items: center; }
.gm-acts, .gm-idle { display: inline-flex; align-items: center; }
.gm-acts[hidden], .gm-idle[hidden] { display: none; }
.gm-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 6px; }
.gm-chk { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; flex: none; }
.gm-chk:hover { background: var(--hover); }
.gm-chk input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gm-chk i { width: 16px; height: 16px; border: 2px solid var(--muted); border-radius: 3px; box-sizing: border-box; }
.gm-chk input:checked + i { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--surface); }
.gm-chk input:indeterminate + i { background: linear-gradient(var(--ink), var(--ink)) center / 8px 2px no-repeat; }
.gm-tabs { display: flex; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; }
.gm-tabs button { flex: 0 1 250px; min-width: 150px; display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.gm-tabs button:hover { background: var(--hover); }
.gm-tabs button.on { color: var(--accent-text); border-bottom-color: var(--accent-text); font-weight: 600; }
.gm-tabs button em { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); margin-left: auto; font-weight: 600; }
.gm-searchnote { padding: 8px 18px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.gm-rows { flex: 1; overflow: auto; outline: 0; }
.gm-empty { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.gm-row { position: relative; display: grid; grid-template-columns: 36px 30px minmax(120px, 200px) minmax(0, 1fr) auto; align-items: center; gap: 0 4px; height: 40px; padding: 0 16px 0 8px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--soft) 55%, var(--surface)); color: var(--ink-2); font-size: 14px; cursor: pointer; }
.gm-row.unread { background: var(--surface); color: var(--ink); }
.gm-row.unread .gm-who, .gm-row.unread .s, .gm-row.unread .gm-date { font-weight: 700; }
.gm-row:hover { box-shadow: inset 1px 0 0 var(--line-2), inset -1px 0 0 var(--line-2), 0 1px 3px rgba(0, 0, 0, .3); z-index: 1; }
.gm-row.sel { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.gm-row.focus::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent-text); }
.gm-star { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.gm-star:hover { background: var(--hover); }
.gm-star .gx-i { width: 18px; height: 18px; }
.gm-star.on, .gx-ib.gm-star.on { color: #f4b400; }
.gm-star.on .gx-i { fill: #f4b400; }
.gm-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px; font-weight: 400; }
.gm-who b { font-weight: 700; }
.gm-who small { color: var(--muted); font-size: 12px; font-weight: 400; }
.gm-draftw { color: #d93025; font-weight: 400; }
.gm-subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gm-snip { color: var(--muted); font-weight: 400; }
.gm-chip { display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 6px; margin-right: 6px; border-radius: 4px; background: color-mix(in srgb, var(--c) 30%, transparent); color: var(--ink); font-size: 12px; font-weight: 500; vertical-align: 1px; }
.gm-chip.sys { background: var(--soft); color: var(--ink-2); }
.gm-chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 4px; font-size: 13px; opacity: .7; }
.gm-end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 80px; font-size: 12.5px; }
.gm-att { width: 15px; height: 15px; color: var(--muted); }
.gm-date { white-space: nowrap; }
.gm-hov { display: none; }
@media (hover: hover) {
  .gm-row:hover .gm-hov { display: inline-flex; }
  .gm-row:hover .gm-date, .gm-row:hover .gm-end > .gm-att { display: none; }
}
.gm-hov .gx-ib { width: 32px; height: 32px; }
.gm-hov .gx-i { width: 18px; height: 18px; }
.gm-undo { position: fixed; left: 24px; bottom: 24px; z-index: 450; display: flex; align-items: center; gap: 16px; padding: 6px 8px 6px 20px; min-height: 44px; border-radius: 8px; background: #323232; color: #fff; font-size: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); animation: gxfade .15s; }
.gm-undo button:not(.gx-ib) { border: 0; background: none; color: #8ab4f8; font: inherit; font-weight: 600; cursor: pointer; padding: 6px 8px; }
.gm-undo .gx-ib { color: #ccc; }

/* Reading a conversation */
.gm-read { flex: 1; overflow: auto; padding: 8px 24px 40px 24px; }
.gm-rhead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 14px 0 10px 52px; }
.gm-rhead h2 { margin: 0 8px 0 0; font-size: 22px; font-weight: 400; line-height: 1.3; }
.gm-rh-r { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.gm-rh-r .gx-i { width: 16px; height: 16px; }
.gm-sumout { margin-left: 52px; }
.gm-msg { border-bottom: 1px solid var(--line); }
.gm-msg:last-child { border-bottom: 0; }
.gm-mh { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0 8px; cursor: pointer; }
.gm-mfrom { flex: 1; min-width: 0; font-size: 14px; }
.gm-mfrom b { font-weight: 700; }
.gm-addr { color: var(--muted); font-size: 12.5px; }
.gm-mto { color: var(--muted); font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 2px; }
.gm-msg:not(.open) .gm-mto { display: block; }
.gm-mdate { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.gm-mdate > span { margin-right: 6px; }
.gm-details { margin: 0 0 10px 52px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 12.5px; max-width: 640px; }
.gm-details td { padding: 2px 10px 2px 0; vertical-align: top; word-break: break-word; }
.gm-details td:first-child { color: var(--muted); text-align: right; white-space: nowrap; }
.gm-body { position: relative; margin: 0 0 12px 52px; }
.gm-body iframe { display: block; width: 100%; height: 120px; border: 0; border-radius: 10px; background: #fff; padding: 12px 14px; box-sizing: border-box; }
.gm-trim { margin-top: 6px; height: 16px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--soft); color: var(--ink-2); font-size: 12px; line-height: 16px; cursor: pointer; }
.gm-trim:hover, .gm-trim.on { background: var(--hover); }
.gm-draftbox { margin: 0 0 12px 52px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--ink-2); }
.gm-draftbox > div { margin-top: 10px; display: flex; gap: 8px; }
.gm-atts { margin: 4px 0 16px 52px; display: flex; flex-wrap: wrap; gap: 10px; }
.gm-atts-h { width: 100%; font-size: 13px; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); }
.gm-att-card { position: relative; width: 190px; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--soft); }
.gm-att-main { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.gm-att-card img { width: 100%; height: 110px; object-fit: cover; display: block; background: #fff; }
.gm-att-ic { display: grid; place-items: center; height: 110px; font-weight: 700; font-size: 18px; letter-spacing: .04em; color: #fff; background: #5f6368; }
.gm-att-ic.k-pdf { background: #d93025; } .gm-att-ic.k-sheet { background: #188038; } .gm-att-ic.k-doc { background: #1a73e8; } .gm-att-ic.k-slides { background: #e8a800; } .gm-att-ic.k-image { background: #9334e6; } .gm-att-ic.k-zip { background: #5f6368; }
.gm-att-n { padding: 8px 10px 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-att-s { padding: 0 10px 8px; font-size: 12px; color: var(--muted); }
.gm-att-dl { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; transition: opacity .15s; }
.gm-att-card:hover .gm-att-dl { opacity: 1; }
.gm-att-dl .gx-i { width: 18px; height: 18px; }
.gm-replybar { display: flex; gap: 12px; margin: 18px 0 0 52px; }
.gm-replybar[hidden] { display: none; }
.gm-replybar .btn { border-radius: 18px; height: 36px; padding: 0 18px; gap: 8px; }
.gm-replybar .gx-i { width: 18px; height: 18px; }
.gm-inline { margin-left: 52px; }

/* Compose */
.gm-docks { position: fixed; right: 16px; bottom: 0; z-index: 420; display: flex; align-items: flex-end; gap: 12px; pointer-events: none; }
.gm-cmp { display: flex; flex-direction: column; background: var(--surface); color: var(--ink); }
.gm-cmp.dock { pointer-events: auto; width: 540px; max-width: calc(100vw - 32px); height: min(620px, calc(100dvh - 80px)); border-radius: 12px 12px 0 0; box-shadow: 0 8px 28px rgba(0, 0, 0, .5); border: 1px solid var(--line-2); border-bottom: 0; overflow: hidden; }
.gm-cmp.dock.min { height: 40px; width: 280px; }
.gm-cmp.dock.min > :not(.gm-cmp-h) { display: none; }
.gm-cmp.dock.max { position: fixed; inset: 5vh 10vw; width: auto; height: auto; max-width: none; border-radius: 12px; border-bottom: 1px solid var(--line-2); z-index: 430; }
.gm-cmp.inline { border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); margin-top: 18px; min-height: 280px; }
.gm-cmp.drop { outline: 3px dashed var(--accent-text); outline-offset: -6px; }
.gm-cmp-h { display: flex; align-items: center; height: 40px; padding: 0 4px 0 16px; background: var(--soft); font-size: 14px; font-weight: 600; cursor: pointer; flex: none; }
.gm-cmp-h span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-cmp-h .gx-ib { width: 30px; height: 30px; }
.gm-cmp-h .gx-i { width: 16px; height: 16px; }
.gm-cmp-b { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 16px; overflow: auto; }
.gm-cmp-mode { display: flex; align-items: center; gap: 8px; padding: 12px 0 4px; color: var(--muted); font-size: 13px; }
.gm-cmp-mode .gx-i { width: 16px; height: 16px; }
.gm-fld { position: relative; display: flex; align-items: center; gap: 8px; min-height: 38px; border-bottom: 1px solid var(--line); font-size: 14px; }
.gm-fld[hidden] { display: none; }
.gm-fld > label { color: var(--muted); width: 34px; flex: none; }
.gm-fld select { flex: 1; border: 0; background: none; color: var(--ink); font: inherit; outline: 0; }
.gm-subjin { flex: 1; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; outline: 0; height: 36px; }
.gm-chips { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px 0; min-width: 0; cursor: text; }
.gm-chips input { flex: 1; min-width: 120px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; outline: 0; height: 28px; }
.gm-rc { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 4px 0 1px; border: 1px solid var(--line-2); border-radius: 14px; font-size: 13px; max-width: 260px; }
.gm-rc > span:not(.gx-av) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-rc.bad { border-color: var(--bad); color: var(--bad); }
.gm-rc button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 4px; }
.gm-ccbcc { display: flex; gap: 10px; font-size: 13.5px; }
.gm-ccbcc a { color: var(--ink-2); text-decoration: none; }
.gm-ccbcc a:hover { text-decoration: underline; }
.gm-sug { position: absolute; left: 34px; top: 100%; z-index: 30; min-width: 300px; max-width: 420px; padding: 6px 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.gm-sug button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 12px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.gm-sug button.on, .gm-sug button:hover { background: var(--hover); }
.gm-sug span { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.gm-sug small { color: var(--muted); font-size: 12px; }
.gm-editor:focus, .gm-editor:focus-visible { outline: none; }
.gm-editor { flex: 1; min-height: 160px; padding: 12px 0; outline: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.gm-editor blockquote { margin: 0 0 0 .8ex; border-left: 1px solid var(--line-2); padding-left: 1ex; color: var(--ink-2); }
.gm-editor a { color: var(--accent-text); }
.gm-editor img { max-width: 100%; }
.gm-editor .gmail_quote { color: var(--ink-2); }
.gm-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 10px; }
.gm-fc { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 6px 5px 10px; border-radius: 6px; background: var(--soft); font-size: 13px; }
.gm-fc > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; color: var(--accent-text); }
.gm-fc small { color: var(--muted); }
.gm-fc button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; }
.gm-fc .gx-i { width: 15px; height: 15px; color: var(--muted); }
.gm-cmp-f { display: flex; align-items: center; gap: 2px; padding: 10px 12px 12px 16px; flex: none; flex-wrap: wrap; }
.gm-send { border-radius: 18px; height: 36px; padding: 0 24px; margin-right: 8px; font-weight: 600; }
.gm-fmt { display: inline-flex; }
.gm-fmt .gx-ib { width: 32px; height: 32px; }
.gm-fmt .gx-i { width: 17px; height: 17px; }
.gm-cmp-f label.gx-ib { cursor: pointer; }
.gm-gembtn { color: var(--accent-text); }
.gm-saved { margin-left: 8px; font-size: 12px; color: var(--muted); }
.gm-discard { margin-left: auto; }
.gm-gembox { margin: 10px 0 0; padding: 8px 10px; border-radius: 12px; background: var(--accent-soft); }
.gm-gembox[hidden] { display: none; }
.gm-gemrow { display: flex; align-items: center; gap: 8px; }
.gm-gemrow > .gx-i { color: var(--accent-text); }
.gm-gemrow input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; outline: 0; height: 32px; }
.gm-gemnote { font-size: 12px; color: var(--muted); padding: 4px 0 0 28px; }

/* ── Calendar ─────────────────────────────────────────────────── */
.gc-rail { display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.gc-mini { padding: 0 6px 0 8px; }
.gc-mini-h { display: flex; align-items: center; gap: 2px; padding: 0 0 4px 8px; font-size: 14px; }
.gc-mini-h b { flex: 1; font-weight: 600; }
.gc-mini-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; text-align: center; font-size: 11.5px; }
.gc-mini-g .h { color: var(--muted); padding: 4px 0; font-size: 10.5px; }
.gc-mini-g button { width: 28px; height: 28px; margin: auto; border: 0; border-radius: 50%; background: none; color: var(--ink); font: inherit; font-size: 11.5px; cursor: pointer; padding: 0; }
.gc-mini-g button:hover { background: var(--hover); }
.gc-mini-g button.out { color: var(--muted); }
.gc-mini-g button.in { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.gc-mini-g button.sel { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.gc-mini-g button.today { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.gc-cals { display: flex; flex-direction: column; padding: 0 6px 0 10px; }
.gc-cal { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: 6px; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.gc-cal:hover { background: var(--hover); }
.gc-cal input { display: none; }
.gc-cal i { position: relative; width: 16px; height: 16px; border-radius: 3px; border: 2px solid var(--c); box-sizing: border-box; flex: none; }
.gc-cal input:checked + i { background: var(--c); }
.gc-cal input:checked + i::after { content: ''; position: absolute; left: 3px; top: 0; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gc-cal span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-cal em { font-style: normal; font-size: 12px; color: var(--muted); }
.gc-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.gc-top { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex: none; }
.gc-top .btn { border-radius: 18px; margin-right: 8px; }
.gc-title { margin: 0 0 0 10px; font-size: 20px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-top-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.gc-views { margin: 0; }
.gc-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gc-grid { flex: 1; min-height: 0; display: flex; flex-direction: column; --gut: 66px; }
.gc-head, .gc-allday { display: grid; grid-template-columns: var(--gut) repeat(var(--n), minmax(0, 1fr)); flex: none; overflow-y: hidden; scrollbar-gutter: stable; }
.gc-dh { display: flex; flex-direction: column; align-items: center; padding: 6px 0 4px; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.gc-dh button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); font: inherit; font-size: 24px; letter-spacing: 0; cursor: pointer; }
.gc-dh button:hover { background: var(--hover); }
.gc-dh.today { color: var(--accent-text); }
.gc-dh.today button { background: var(--accent); color: var(--accent-ink); }
.gc-allday { border-bottom: 1px solid var(--line-2); min-height: 22px; }
.gc-allday .gc-gut { display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 6px 4px 0; }
.gc-allday .gc-gut small { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.gc-adc { border-left: 1px solid var(--line); padding: 2px 3px 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: pointer; }
.gc-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding-right: 0; scrollbar-gutter: stable; }
.gc-body { position: relative; display: grid; grid-template-columns: var(--gut) repeat(var(--n), minmax(0, 1fr)); height: calc(24 * 48px); }
.gc-hours { position: relative; }
.gc-hours span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 10.5px; color: var(--muted); }
.gc-col { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 48px); cursor: pointer; }
.gc-now { position: absolute; left: -1px; right: 0; height: 2px; background: #ea4335; z-index: 20; pointer-events: none; }
.gc-now::before { content: ''; position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #ea4335; }
.gc-chip { display: block; min-width: 0; border: 0; font: inherit; text-align: left; cursor: pointer; color: #fff; overflow: hidden; }
.gc-chip.allday { height: 22px; padding: 0 8px; border-radius: 4px; background: var(--c); font-size: 12px; line-height: 22px; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.gc-chip.timed { position: absolute; padding: 2px 6px; border-radius: 5px; background: var(--c); font-size: 12px; line-height: 1.25; box-shadow: 0 0 0 1px var(--surface); display: flex; flex-direction: column; }
.gc-chip.timed b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-chip.timed span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .92; }
.gc-chip.timed.short { flex-direction: row; align-items: center; }
.gc-chip.declined { background: transparent !important; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--c); text-decoration: line-through; }
.gc-chip.pending { background: var(--surface) !important; color: var(--ink); box-shadow: inset 0 0 0 2px var(--c); }
.gc-chip:hover { filter: brightness(1.08); z-index: 15 !important; }
.gc-month { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gc-mh { display: grid; grid-template-columns: repeat(7, 1fr); flex: none; }
.gc-mh span { text-align: center; font-size: 11px; color: var(--muted); padding: 6px 0 2px; border-left: 1px solid var(--line); }
.gc-mg { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); }
.gc-mc { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2px 4px 4px; display: flex; flex-direction: column; gap: 1px; min-height: 0; overflow: hidden; cursor: pointer; }
.gc-mc.out { background: color-mix(in srgb, var(--soft) 50%, transparent); }
.gc-mc.out .gc-mn { color: var(--muted); }
.gc-mn { align-self: center; min-width: 26px; height: 26px; padding: 0 6px; border: 0; border-radius: 13px; background: none; color: var(--ink); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.gc-mn:hover { background: var(--hover); }
.gc-mc.today .gc-mn { background: var(--accent); color: var(--accent-ink); }
.gc-chip.gc-dotc { display: flex; align-items: center; gap: 5px; height: 20px; padding: 0 5px; border-radius: 4px; background: none; color: var(--ink); font-size: 12px; white-space: nowrap; }
.gc-chip.gc-dotc:hover { background: var(--hover); filter: none; }
.gc-chip.gc-dotc i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.gc-chip.gc-dotc span { color: var(--ink-2); }
.gc-chip.gc-dotc b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.gc-mc .gc-chip.allday { height: 20px; line-height: 20px; }
.gc-more { border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 600; text-align: left; padding: 0 6px; cursor: pointer; border-radius: 4px; }
.gc-more:hover { background: var(--hover); }
.gc-agenda { flex: 1; overflow: auto; padding: 8px 0; }
.gc-ag-day { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.gc-ag-date { display: flex; align-items: center; gap: 10px; }
.gc-ag-date b { font-size: 22px; font-weight: 400; width: 34px; text-align: center; }
.gc-ag-date span { font-size: 11px; color: var(--muted); }
.gc-ag-day.today .gc-ag-date b { background: var(--accent); color: var(--accent-ink); border-radius: 50%; height: 34px; line-height: 34px; font-size: 18px; }
.gc-ag-list { display: flex; flex-direction: column; }
.gc-chip.gc-rowc { display: grid; grid-template-columns: 14px 120px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 6px; background: none; color: var(--ink); font-size: 13.5px; }
.gc-chip.gc-rowc:hover { background: var(--hover); filter: none; }
.gc-chip.gc-rowc i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.gc-chip.gc-rowc .t { color: var(--ink-2); }
.gc-chip.gc-rowc b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-chip.gc-rowc small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.gc-meet { display: inline-flex; align-items: center; gap: 4px; }
.gc-meet .gx-i { width: 14px; height: 14px; }
.gc-det { position: relative; }
.gc-det-row { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: flex-start; padding: 8px 0; font-size: 14px; }
.gc-det-row > .gx-i { color: var(--muted); margin-top: 1px; }
.gc-det-row h3 { margin: 0 0 4px; font-size: 21px; font-weight: 400; line-height: 1.25; }
.gc-sq { width: 14px; height: 14px; margin: 7px 0 0 4px; border-radius: 4px; background: var(--c); }
.gc-small { font-size: 12px; }
.gc-guests { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 220px; overflow: auto; }
.gc-guests > div { display: flex; align-items: center; gap: 8px; }
.gc-guests > div > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gc-notes { line-height: 1.5; overflow-wrap: anywhere; max-height: 240px; overflow: auto; }
.gc-notes a { color: var(--accent-text); }
.gc-prep { margin-top: 8px; }
.gc-going { display: flex; align-items: center; gap: 8px; padding: 12px 0 0; margin-top: 6px; border-top: 1px solid var(--line); }
.gc-going span { flex: 1; font-size: 14px; }
.gc-quick { display: flex; flex-direction: column; gap: 12px; }
.gc-q-when { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.gc-q-when .gx-i { color: var(--muted); }
.gc-ed { display: flex; flex-direction: column; gap: 14px; }
.gc-ed-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gc-ed-when .gx-in[hidden] { display: none; }
.gc-ed-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.gc-ed-l { display: flex; flex-direction: column; gap: 10px; }
.gc-ed-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; }
.gc-ed-row.top { align-items: flex-start; }
.gc-ed-row > .gx-i { color: var(--muted); }
.gc-ed-row textarea { resize: vertical; }
.gc-colours { display: inline-flex; flex-wrap: wrap; gap: 3px; max-width: 130px; }
.gc-colours button { width: 16px; height: 16px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; padding: 0; }
.gc-colours button.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.gc-ed-r { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.gc-gchips { border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 8px; min-height: 40px; }
@media (max-width: 760px) { .gc-ed-grid { grid-template-columns: 1fr; } }

/* ── Drive ────────────────────────────────────────────────────── */
.gv-quota { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.gv-quota > div { flex: 1; }
.gv-quota .gw-meter { margin: 4px 0 6px; }
.gv-main { position: relative; }
.gv-head { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 10px 0 14px; flex: none; }
.gv-trail { display: flex; align-items: center; flex-wrap: wrap; min-width: 0; flex: 1; }
.gv-crumb { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border: 0; border-radius: 18px; background: none; color: var(--ink-2); font: inherit; font-size: 20px; font-weight: 400; cursor: pointer; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.gv-crumb:hover { background: var(--hover); }
.gv-crumb.cur { color: var(--ink); }
.gv-sepi { color: var(--muted); }
.gv-head-r { display: flex; align-items: center; gap: 6px; }
.gv-lay { margin: 0; }
.gv-lay button { display: inline-grid; place-items: center; }
.gv-lay .gx-i { width: 18px; height: 18px; }
.gv-selbar { display: flex; align-items: center; gap: 2px; padding: 0 8px 0 2px; border-radius: 20px; background: var(--soft); font-size: 13.5px; }
.gv-selbar[hidden] { display: none; }
.gv-selbar > span { margin: 0 10px 0 2px; white-space: nowrap; }
.gv-body { flex: 1; overflow: auto; padding: 0 12px 20px; outline: 0; }
.gv-ic { display: inline-grid; place-items: center; color: var(--c); flex: none; }
.gv-ic .gx-i { width: 20px; height: 20px; }
.gv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gv-body .gv-table th, .gv-body .gv-table td { line-height: 1.3; text-transform: none; letter-spacing: normal; vertical-align: middle; }
.gv-body .gv-table th { position: sticky; top: 0; z-index: 2; background: var(--surface); text-align: left; font-weight: 500; font-size: 13px; color: var(--ink-2); padding: 0 8px; height: 44px; border-bottom: 1px solid var(--line); }
.gv-sort { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 6px 8px; margin-left: -8px; border-radius: 6px; }
.gv-sort:hover { background: var(--hover); }
.gv-sort.on { color: var(--ink); }
.gv-body .gv-table .gv-row td { height: 46px; padding: 0 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gv-row { cursor: default; user-select: none; outline: 0; }
.gv-row:hover td { background: var(--hover); }
.gv-row.sel td { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.gv-row.dropin td { background: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.gv-name { display: flex; align-items: center; gap: 14px; max-width: 520px; }
.gv-name > span:not(.gv-ic) { overflow: hidden; text-overflow: ellipsis; }
.gv-shared, .gv-st { width: 15px; height: 15px; color: var(--muted); }
.gv-st { color: #f4b400; fill: #f4b400; }
.gv-own { display: table-cell; }
.gv-own .gx-av { vertical-align: middle; margin-right: 6px; }
.gv-acts { text-align: right; width: 90px; }
.gv-acts .gx-ib { opacity: 0; }
.gv-row:hover .gv-acts .gx-ib, .gv-row.sel .gv-acts .gx-ib { opacity: 1; }
.gv-sec { font-size: 14px; font-weight: 500; padding: 14px 4px 10px; color: var(--ink-2); }
.gv-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gv-fold { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 4px 0 14px; border-radius: 12px; background: var(--soft); font-size: 14px; cursor: default; user-select: none; outline: 0; }
.gv-fold > span:not(.gv-ic) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-fold:hover { background: var(--hover); }
.gv-fold.sel, .gv-card.sel { background: color-mix(in srgb, var(--accent) 26%, var(--surface)); }
.gv-fold.dropin { outline: 2px solid var(--accent-text); }
.gv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gv-card { display: flex; flex-direction: column; border-radius: 12px; background: var(--soft); padding: 0 8px 8px; cursor: default; user-select: none; outline: 0; }
.gv-card:hover { background: var(--hover); }
.gv-card-h { display: flex; align-items: center; gap: 10px; height: 46px; padding-left: 6px; font-size: 14px; }
.gv-card-h > span:not(.gv-ic) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-thumb { position: relative; height: 150px; border-radius: 8px; background: var(--surface); overflow: hidden; display: grid; place-items: center; }
.gv-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gv-thumb .gv-ic .gx-i { width: 56px; height: 56px; stroke-width: 1.2; }
.gv-card-f { display: flex; align-items: center; gap: 6px; padding: 8px 4px 0; color: var(--muted); font-size: 12px; }
.gv-moreb { text-align: center; padding: 16px; }
.gv-emptyst { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gv-emptyst .gx-i { width: 64px; height: 64px; stroke-width: 1; color: var(--line-2); }
.gv-emptyst b { color: var(--ink); font-size: 16px; font-weight: 500; }
.gv-drop { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 22%, transparent); border: 3px dashed var(--accent-text); border-radius: 16px; }
.gv-drop[hidden] { display: none; }
.gv-drop > div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 26px; border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); pointer-events: none; }
.gv-drop .gx-i { width: 36px; height: 36px; color: var(--accent-text); }
.gv-uploads { position: fixed; right: 24px; bottom: 24px; z-index: 440; width: 360px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); overflow: hidden; }
.gv-uploads[hidden] { display: none; }
.gv-up-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 16px; background: var(--soft); font-size: 14px; }
.gv-up-l { max-height: 260px; overflow: auto; }
.gv-up-l > div { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13.5px; border-top: 1px solid var(--line); }
.gv-up-l span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-up-l em { font-style: normal; font-size: 12px; color: var(--muted); }
.gv-up-l em.ok { color: #34a853; }
.gv-up-l em.bad { color: var(--bad); }
.gv-up-l .gx-i { width: 18px; height: 18px; }
.gv-prev { position: fixed; inset: 0; z-index: 430; display: flex; flex-direction: column; background: rgba(0, 0, 0, .86); }
.gv-prev-h { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 12px 0 18px; color: #fff; flex: none; }
.gv-prev-h b { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-prev-h .gx-ib { color: #fff; }
.gv-prev-h .gx-ib:hover { background: rgba(255, 255, 255, .12); }
.gv-prev-r { display: flex; align-items: center; gap: 6px; }
.gv-prev-b { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 5vw 24px; }
.gv-prev-b iframe { width: min(1100px, 100%); height: 100%; border: 0; border-radius: 6px; background: #fff; }
.gv-prev-b img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gv-prev-note { text-align: center; color: rgba(255, 255, 255, .6); font-size: 12px; padding: 0 0 10px; }
.gv-pick { min-height: 260px; }
.gv-pick-h { display: flex; align-items: center; gap: 6px; padding: 0 0 8px; font-size: 15px; }
.gv-pick-f { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.gv-pick-f:hover { background: var(--hover); }
.gv-pick-f span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-pick-f .gx-i { color: var(--muted); }
.gv-pick-e { padding: 20px 8px; }

/* ── Tasks ────────────────────────────────────────────────────── */
.gt-lists { display: flex; flex-direction: column; padding: 0 6px 0 10px; }
.gt-newlist { display: flex; align-items: center; gap: 12px; margin: 8px 6px 0 10px; height: 36px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; }
.gt-newlist:hover { background: var(--hover); }
.gt-main { min-width: 0; min-height: 0; overflow: auto; }
.gt-cols { display: flex; align-items: flex-start; gap: 16px; padding: 0 4px 20px 0; min-height: 100%; }
.gt-col { flex: 0 0 360px; max-width: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 0 12px; }
.gt-col-h { display: flex; align-items: center; padding: 6px 6px 4px 20px; }
.gt-col-h h3 { flex: 1; margin: 0; font-size: 18px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-addrow { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 20px; border: 0; background: none; color: var(--accent-text); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.gt-addrow:hover { background: var(--hover); }
.gt-newbox[hidden] { display: none; }
.gt-items { display: flex; flex-direction: column; }
.gt-items[hidden] { display: none; }
.gt-none { padding: 18px 20px; color: var(--muted); font-size: 13.5px; }
.gt-t { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; align-items: flex-start; gap: 4px; padding: 6px 8px 6px 12px; cursor: pointer; }
.gt-t:hover { background: var(--hover); }
.gt-t.gt-sub { padding-left: 44px; }
.gt-t.open, .gt-t.new { background: var(--soft); cursor: default; }
.gt-t.ticking { opacity: .45; transition: opacity .2s; }
.gt-chk { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; padding: 0; }
.gt-chk:hover:not(:disabled) { background: var(--hover); color: var(--accent-text); }
.gt-chk .gx-i { width: 20px; height: 20px; }
.gt-chk .gt-hov { position: absolute; width: 12px; height: 12px; opacity: 0; stroke-width: 2.6; }
.gt-chk:hover .gt-hov { opacity: 1; }
.gt-t.done .gt-chk { color: var(--accent-text); }
.gt-tb { min-width: 0; padding: 5px 0; }
.gt-title { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.gt-t.done .gt-title { text-decoration: line-through; color: var(--muted); }
.gt-notes { font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gt-links a { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12.5px; color: var(--accent-text); text-decoration: none; }
.gt-links .gx-i { width: 14px; height: 14px; }
.gt-due { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 10px 2px 8px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 12px; color: var(--ink-2); }
.gt-due .gx-i { width: 13px; height: 13px; }
.gt-due.late { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.gt-due.today { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.gt-title-in, .gt-notes-in { display: block; width: 100%; box-sizing: border-box; border: 0; background: none; color: var(--ink); font: inherit; outline: 0; padding: 0; }
.gt-title-in { font-size: 14px; height: 22px; }
.gt-notes-in { font-size: 12.5px; color: var(--ink-2); resize: none; margin-top: 2px; }
.gt-edrow { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); flex-wrap: wrap; }
.gt-edrow .gx-i { width: 16px; height: 16px; }
.gt-edrow input[type=date] { font: inherit; font-size: 12.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 2px 8px; }
.gt-edrow .btn { margin-left: auto; }
.gt-tm { opacity: 0; width: 30px; height: 30px; }
.gt-t:hover .gt-tm, .gt-t.open .gt-tm { opacity: 1; }
.gt-donebtn { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; margin-top: 6px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.gt-donebtn:hover { background: var(--hover); }
.gt-donebtn .gx-i { width: 18px; height: 18px; }
.gt-l em { font-style: normal; }

/* ── Small screens ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .gx-app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
  .gx-app > aside { flex-direction: row; align-items: center; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 0 0 4px; }
  .gx-app > aside .gm-compose-btn { height: 40px; margin: 0; padding: 0 16px; flex: none; }
  .gx-app > aside .gm-folders, .gx-app > aside .gc-cals, .gx-app > aside .gt-lists { flex-direction: row; flex: none; padding: 0; }
  .gx-app > aside .gm-f { margin: 0; border-radius: 16px; flex: none; white-space: nowrap; padding: 0 12px; gap: 8px; }
  .gx-app > aside .gc-cal { flex: none; white-space: nowrap; }
  .gx-app > aside .gm-lhead, .gx-app > aside .gm-labels, .gx-app > aside .gv-quota, .gx-app > aside .gc-mini, .gx-app > aside .gm-nolab { display: none; }
  .gt-newlist { flex: none; margin: 0; white-space: nowrap; }
  .gm-row { grid-template-columns: 30px 26px minmax(80px, 120px) minmax(0, 1fr) auto; padding-right: 8px; }
  .gm-snip, .gv-own, .gv-sz { display: none; }
  .gm-read { padding: 8px 12px 40px; }
  .gm-rhead, .gm-sumout, .gm-body, .gm-atts, .gm-details, .gm-replybar, .gm-inline, .gm-draftbox { margin-left: 0; padding-left: 0; }
  .gm-cmp.dock { width: calc(100vw - 16px); }
  .gm-docks { right: 8px; }
  .gc-top { flex-wrap: wrap; }
  .gt-col { flex-basis: min(360px, calc(100vw - 48px)); }
}

/* The console's own input style (border, height, focus ring) is not wanted inside these apps' bare fields */
.gm-search input, .gm-chips input, .gm-subjin, .gm-gemrow input, .gm-fld select, .gt-title-in, .gt-notes-in { border: 0 !important; box-shadow: none !important; border-radius: 0; padding: 0; min-height: 0; background: none; }
.gm-search input { height: 40px; }
.gt-notes-in { height: auto; min-height: 20px; line-height: 1.4; }
.gt-edrow input[type=date] { height: 28px; padding: 0 8px; }
.gx-in { height: auto; min-height: 38px; }
.gx-in.big { min-height: 0; }
textarea.gx-in { min-height: 90px; padding: 8px 10px; }
.gm-search input:focus-visible, .gm-chips input:focus-visible, .gm-subjin:focus-visible, .gm-gemrow input:focus-visible, .gt-title-in:focus-visible, .gt-notes-in:focus-visible, .gm-editor:focus-visible, .gx-in.big:focus-visible { outline: none; }

/* ── The Gemini window (public/lan-gem-window.js): Brief me and Prep me ── */
.gw-win { position: fixed; right: 24px; bottom: 24px; z-index: 390; width: 400px; max-width: calc(100vw - 32px); max-height: min(560px, calc(100dvh - 48px)); display: flex; flex-direction: column; background: linear-gradient(var(--surface), var(--surface)), var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(18px); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); overflow: hidden; animation: gwwin .16s ease-out; }
@keyframes gwwin { from { opacity: 0; transform: translateY(10px); } }
.gw-win-h { display: flex; align-items: center; gap: 6px; padding: 10px 8px 10px 14px; border-bottom: 1px solid var(--line); cursor: grab; user-select: none; }
.gw-win-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-text, var(--accent)); stroke-width: 1.8; stroke-linejoin: round; display: block; }
.gw-win-t { flex: 1; min-width: 0; display: flex; flex-direction: column; cursor: default; }
.gw-win-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-win-t small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-win-b { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.gw-win-b:hover:not(:disabled) { background: var(--accent-soft); color: var(--ink); }
.gw-win-b:disabled { opacity: .35; cursor: default; }
.gw-win-b.ok { color: var(--good, #22a55b); }
.gw-win-b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gw-win-body { overflow: auto; padding: 12px 16px 14px; font-size: 14px; line-height: 1.55; }
.gw-win.min .gw-win-body, .gw-win.min [data-copy], .gw-win.min [data-again] { display: none; }
.gw-win.min .gw-win-h { border-bottom: 0; }
.gw-win.min .gw-win-t { cursor: pointer; }
.gw-win-txt p { margin: 0 0 8px; }
.gw-win-txt h4 { margin: 12px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.gw-win-txt h4:first-child { margin-top: 0; }
.gw-win-txt ul, .gw-win-txt ol { margin: 0 0 8px; padding-left: 20px; }
.gw-win-txt li { margin: 2px 0; }
.gw-win-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.gw-win-wait { color: var(--muted); display: grid; gap: 10px; }
.gw-win-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gw-win-bar i { display: block; width: 35%; height: 100%; background: var(--accent); border-radius: 3px; animation: gwbar 1.2s ease-in-out infinite; }
@keyframes gwbar { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.gw-win-sk { display: grid; gap: 8px; }
.gw-win-sk i { display: block; height: 10px; border-radius: 5px; background: var(--line); opacity: .7; animation: gwsk 1.4s ease-in-out infinite alternate; }
@keyframes gwsk { to { opacity: .3; } }
.gw-win-bad { color: var(--bad); }
.gw-win-bad p { margin: 0 0 10px; }
.gw-win-bad .btn { color: var(--accent-ink, #fff); }
@media (max-width: 700px) { .gw-win { left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; max-height: 70dvh; } .gw-win-h { cursor: default; } }
@media (prefers-reduced-motion: reduce) { .gw-win, .gw-win-bar i, .gw-win-sk i { animation: none; } }
