/* StandardSuite design system: the Standard Works brand kit (ink, bronze, slate, paper, gold;
   Space Grotesk for headings, Instrument Sans for everything else) as shared styles for the hub and
   the office apps. Pages load it with <link rel="stylesheet" href="/sc.css">. */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --ink: #0A0B0C; --bronze: #8F6D2F; --slate: #6D7076; --paper: #F7F7F5; --gold: #D8B26E;
  --surface: #FFFFFF; --surface-2: #FAFAF8; --desk: #ECEBE7; --line: #E7E5DF; --line-2: #DEDCD5; --line-soft: #EFEDE8; --hover: #EFEDE8;
  --text: #0A0B0C; --text-2: #3A3C40; --text-3: #5A5D63; --tint: #F2EEE5; --tint-line: #E5DCC7; --icon: #2B2D31;
  --on-ink: #FFFFFF; --ink-hover: #26282C; --bronze-hover: #6E5323; --gold-fg: #6E5323;
  --ok-bg: #E4F1EA; --ok-fg: #1F6B45; --ok-line: #C7E1D2; --warn-bg: #FBF0D9; --warn-fg: #8A5A00; --warn-line: #F0DDB0; --bad-bg: #F6E3E1; --bad-line: #EBC9C4;
  /* work itself (a document page, a slide, a sheet's cells) stays light, the way it prints */
  --page: #FFFFFF; --page-text: #0A0B0C; --page-line: #E2E0DA;
  --docs: #2F5D8A; --sheets: #2D6A4F; --present: #A04A2A; --notes: #8F6D2F; --pdf: #8E3434; --vector: #574A8A; --motion: #22676C; --calendar: #1F6F8B; --tasks: #4E7A2A; --forms: #7A3E6E; --mail: #9A3B57; --capture: #B23A3A; --audio: #B9702A; --convert: #4F5D75; --cloud: #3A3C40;
  --danger: #A12C2C;
  --head: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --r: 10px; --r-lg: 14px;
  --shadow: 0 1px 3px rgba(10,11,12,.08), 0 8px 24px rgba(10,11,12,.06);
  --app: var(--ink);
  color-scheme: light;
}
/* Dark: follows the device unless someone picked Light or Dark (SC.theme, saved on this device). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ECEAE4; --bronze: #C9A25E; --slate: #9A9CA1; --paper: #111214; --gold: #D8B26E;
    --surface: #1A1B1E; --surface-2: #202226; --desk: #0C0D0E; --line: #2A2C30; --line-2: #36383D; --line-soft: #26282C; --hover: #26282C;
    --text: #ECEAE4; --text-2: #C7C5BE; --text-3: #9C9EA3; --tint: #2A2418; --tint-line: #41381F; --icon: #D5D3CC;
    --on-ink: #0A0B0C; --ink-hover: #D2D0C9; --bronze-hover: #E0BE7D; --gold-fg: #E0BE7D;
    --ok-bg: #16291F; --ok-fg: #7CCB9D; --ok-line: #24402F; --warn-bg: #2E2410; --warn-fg: #E8C06A; --warn-line: #4A3A17; --bad-bg: #351A18; --bad-line: #55291F;
    --danger: #E0716B;
    --shadow: 0 1px 3px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #ECEAE4; --bronze: #C9A25E; --slate: #9A9CA1; --paper: #111214; --gold: #D8B26E;
  --surface: #1A1B1E; --surface-2: #202226; --desk: #0C0D0E; --line: #2A2C30; --line-2: #36383D; --line-soft: #26282C; --hover: #26282C;
  --text: #ECEAE4; --text-2: #C7C5BE; --text-3: #9C9EA3; --tint: #2A2418; --tint-line: #41381F; --icon: #D5D3CC;
  --on-ink: #0A0B0C; --ink-hover: #D2D0C9; --bronze-hover: #E0BE7D; --gold-fg: #E0BE7D;
  --ok-bg: #16291F; --ok-fg: #7CCB9D; --ok-line: #24402F; --warn-bg: #2E2410; --warn-fg: #E8C06A; --warn-line: #4A3A17; --bad-bg: #351A18; --bad-line: #55291F;
  --danger: #E0716B;
  --shadow: 0 1px 3px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--text); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--bronze); }
a:hover { color: var(--bronze-hover); }
h1, h2, h3, .h { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-3); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .38em; color: var(--slate); text-transform: uppercase; margin: 0; }
[hidden] { display: none !important; }

/* brand */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
/* the mark's ink half follows the text colour, so it shows on dark backgrounds too */
.lockup:not(.dark) svg path:first-child { fill: var(--text); }
.lockup:not(.dark) svg path:last-child { fill: var(--bronze); }
.lockup svg { flex: none; }
.lockup b { font: 700 19px/1 var(--head); letter-spacing: -.03em; }
.lockup b i { font-style: normal; color: var(--bronze); }
.lockup.dark { color: var(--paper); }
.lockup.dark b i { color: var(--gold); }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--hover); color: var(--text); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.primary:hover { background: var(--ink-hover); color: var(--on-ink); }
.btn.app { background: var(--app); border-color: var(--app); color: #fff; }
.btn.app:hover { filter: brightness(1.1); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.quiet:hover { background: var(--hover); }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { flex: none; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-2); }
.icon-btn:hover { background: var(--hover); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input, .select { height: 44px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); width: 100%; }
.input:focus, .select:focus { outline: 2px solid var(--bronze); outline-offset: -1px; border-color: var(--bronze); }
.error { color: var(--danger); font-size: 14px; margin: 0; }

/* cards and lists */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card.pad { padding: 20px; }
.tile { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--app); }
.tile svg { stroke: #fff; }
.tile.sm { width: 30px; height: 30px; border-radius: 8px; }
.tile.lg { width: 52px; height: 52px; border-radius: 13px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); font-weight: 600; padding: 8px 12px; }
.table td { padding: 10px 12px; border-top: 1px solid var(--line-soft); color: var(--text-2); vertical-align: middle; }
.table tr.row:hover td { background: var(--surface-2); }
.table a.name { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text); text-decoration: none; }
.empty { padding: 40px 20px; text-align: center; color: var(--text-3); }

/* app chrome: the bar at the top of every office app */
.appbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 60px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.appbar .appname { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 17px var(--head); letter-spacing: -.02em; }
.appbar .divider { width: 1px; height: 24px; background: var(--line); }
.appbar .doc { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.appbar .docname { font-weight: 600; font-size: 15px; border: 1px solid transparent; border-radius: 6px; padding: 1px 6px; margin-left: -7px; background: transparent; max-width: 360px; text-overflow: ellipsis; }
.appbar .docname:hover { border-color: var(--line-2); }
.appbar .docname:focus { border-color: var(--bronze); outline: none; background: var(--surface); }
.appbar .status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.appbar .status.warn { color: var(--danger); }
.appbar .grow { flex: 1; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 0; color: #fff; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.ribbon { background: var(--surface); border-bottom: 1px solid var(--line); }
.ribbon .tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 10px; }
.ribbon .tabs button { border: 0; background: none; padding: 9px 12px 7px; font-weight: 500; color: var(--text-2); border-bottom: 2px solid transparent; cursor: pointer; }
.ribbon .tabs button[aria-selected="true"] { color: var(--text); font-weight: 600; border-bottom-color: var(--app); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 6px 10px 8px; min-height: 50px; }
.tb { min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--icon); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 14px; }
.tb:hover { background: var(--hover); }
.tb[aria-pressed="true"] { background: color-mix(in srgb, var(--app) 18%, var(--surface)); color: color-mix(in srgb, var(--app) 70%, var(--text)); }
.tb.label { font-weight: 500; }
.toolbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.toolbar .select { height: 36px; width: auto; padding: 0 8px; font-size: 14px; }
.toolbar input[type="color"] { width: 36px; height: 36px; padding: 6px; border: 0; background: none; cursor: pointer; }
.statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 6px 14px; background: var(--surface); border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.statusbar .grow { flex: 1; }

/* the start screen each office app shows before a document is open */
.start { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; display: flex; flex-direction: column; gap: 28px; }
.start .new { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.start .new button { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-weight: 600; }
.start .new .thumb { aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid var(--line-2); background: var(--page); display: flex; align-items: center; justify-content: center; color: var(--text-3); overflow: hidden; }
/* a scaled-down page preview starts at the top left (centring it would push it out of view) */
.start .new .thumb:has(> span[style]) { align-items: flex-start; justify-content: flex-start; }
.start .new .thumb > span[style] { flex: none; }
.start .new button:hover .thumb { border-color: var(--app); box-shadow: 0 0 0 1px var(--app); }

/* dialogs, menus, toasts */
dialog.sc { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgba(0,0,0,.3); color: var(--text); background: var(--surface); }
dialog.sc::backdrop { background: rgba(10,11,12,.4); }
dialog.sc .dh { padding: 20px 22px 4px; }
dialog.sc .dh h2 { font-size: 21px; }
dialog.sc .db { padding: 12px 22px; display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow: auto; }
dialog.sc .df { padding: 12px 22px 20px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.menu { position: fixed; z-index: 50; min-width: 220px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--text); text-decoration: none; font-size: 14px; }
.menu button:hover, .menu a:hover { background: var(--hover); }
/* the app launcher: your favourites, then every app, like Google's */
.sc-launcher { position: fixed; z-index: 60; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 28px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .08); padding: 10px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; animation: sc-pop .14s ease-out; }
@keyframes sc-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .sc-launcher { animation: none; } }
.sc-launcher .fav { background: var(--surface); border-radius: 22px; padding: 12px 8px 8px; border: 1px solid var(--line); }
.sc-launcher .favhead { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 4px 12px; }
.sc-launcher .favhead h2 { font: 600 19px var(--body); letter-spacing: 0; }
.sc-launcher .pen { border: 0; height: 40px; min-width: 52px; padding: 0 14px; border-radius: 20px; background: var(--tint); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font: 600 14px var(--body); }
.sc-launcher .pen:hover { filter: brightness(.97); }
.sc-launcher .pen[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sc-launcher .tip { margin: 0 12px 6px; font-size: 12.5px; color: var(--text-3); }
.sc-launcher .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.sc-launcher .grid.rest { padding: 6px 8px; }
.sc-launcher .cellwrap { position: relative; min-width: 0; }
.sc-launcher .app { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 16px; text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 500; text-align: center; min-width: 0; outline: none; }
.sc-launcher .app span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-launcher .app:hover { background: var(--hover); }
.sc-launcher .app:focus-visible { background: var(--hover); box-shadow: inset 0 0 0 2px var(--bronze); }
.sc-launcher .app.here { background: var(--tint); font-weight: 650; }
.sc-launcher .app .tile { width: 48px; height: 48px; border-radius: 14px; }
.sc-launcher .more { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--icon); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .12s; padding: 0; }
.sc-launcher .cellwrap:hover .more, .sc-launcher .cellwrap:focus-within .more { opacity: 1; }
@media (hover: none) { .sc-launcher .more { opacity: .85; } }
.sc-launcher .badge { position: absolute; top: 8px; right: 14px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.sc-launcher .fav .badge { background: var(--danger); color: #fff; }
.sc-launcher .editing .cellwrap[draggable="true"] { cursor: grab; }
.sc-launcher .editing .cellwrap[draggable="true"] .app { animation: sc-wiggle .32s ease-in-out infinite alternate; }
@keyframes sc-wiggle { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
@media (prefers-reduced-motion: reduce) { .sc-launcher .editing .cellwrap[draggable="true"] .app { animation: none; } }
.sc-launcher .cellwrap.dragging { opacity: .35; }
.sc-launcher .cellwrap.over .app { box-shadow: inset 0 0 0 2px var(--bronze); }
.sc-launcher .sc-quick { position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 6px; display: flex; flex-direction: column; }
.sc-launcher .sc-quick a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14.5px; outline: none; }
.sc-launcher .sc-quick a:hover, .sc-launcher .sc-quick a:focus-visible { background: var(--hover); }
.sc-launcher .sc-quick svg { color: var(--icon); flex: none; }
.sc-launcher .sc-quick hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.sc-launcher .links { display: flex; flex-direction: column; padding: 2px; border-top: 1px solid var(--line); margin-top: 2px; padding-top: 6px; }
.sc-launcher .links a, .sc-launcher .links button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; border-radius: 12px; color: var(--text); text-decoration: none; font: 500 14px var(--body); cursor: pointer; text-align: left; }
.sc-launcher .links a:hover, .sc-launcher .links button:hover { background: var(--hover); }
.sc-launcher .links svg { color: var(--icon); flex: none; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.menu .hint { margin-left: auto; color: var(--text-3); font-size: 12px; }
#sc-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); max-width: min(560px, 90vw); }
.toast.error { background: var(--danger); color: #fff; }

/* banners across the top: the site announcement, and staff viewing as someone */
.sc-banner { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 14px; background: var(--tint); color: var(--text); border-bottom: 1px solid var(--tint-line); }
.sc-banner > span { flex: 1; min-width: 0; }
.sc-banner.success { background: var(--ok-bg); border-color: var(--ok-line); }
.sc-banner.warning { background: var(--warn-bg); border-color: var(--warn-line); }
.sc-banner.imp { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.sc-banner.imp .btn { background: var(--gold); border-color: var(--gold); color: #0A0B0C; }
.sc-banner .sc-x { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-3); padding: 0 4px; }

/* the sign-in wall the office apps show to signed-out visitors */
.wall { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.wall .card { max-width: 440px; padding: 32px; display: flex; flex-direction: column; gap: 16px; text-align: center; align-items: center; }

/* sharing */
.sc-share-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.sc-share-row:first-child { border-top: 0; }
.sc-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; flex: none; background: var(--slate); }
.sc-av.sm { width: 26px; height: 26px; font-size: 11px; }
.sc-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-who b, .sc-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-who b { font-weight: 600; }
.sc-who small { color: var(--text-3); font-size: 13px; }
.sc-cbtn { position: relative; border-color: transparent; }
.sc-cbtn[aria-pressed="true"] { background: var(--tint); }
.sc-cbtn[data-count]:not([data-count=""])::after { content: attr(data-count); position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--app); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center; }

/* comments */
.sc-comments { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); z-index: 45; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
html.sc-has-comments body { padding-right: min(380px, 100vw); }
@media (max-width: 900px) { html.sc-has-comments body { padding-right: 0; } }
.sc-ch { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sc-ch h2 { font-size: 18px; flex: 1; }
.sc-showres { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.sc-new { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sc-comments textarea.input, dialog.sc textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.sc-quote { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); background: var(--tint); border-left: 3px solid var(--app); padding: 6px 8px; border-radius: 4px; }
.sc-quote span { flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.sc-quote button { border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; color: var(--text-3); }
.sc-threads { flex: 1; overflow-y: auto; padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.sc-thread { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.sc-thread.resolved { background: var(--paper); opacity: .8; }
.sc-c + .sc-c { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.sc-cm { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sc-cm b { font-weight: 600; }
.sc-cm .icon-btn.sm { width: 28px; height: 28px; border-color: transparent; }
.sc-q { margin: 8px 0 0; font-size: 13px; color: var(--text-3); border-left: 3px solid var(--app); padding: 2px 8px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.sc-body { margin-top: 6px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-tools { display: flex; gap: 4px; margin-top: 8px; }
.sc-reply { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

/* the Cloud file picker */
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-chips button { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 500; }
.sc-chips button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.sc-picks { display: flex; flex-direction: column; max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.sc-pick { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-top: 1px solid var(--line-soft); background: var(--surface); text-align: left; cursor: pointer; }
.sc-pick:first-child { border-top: 0; }
.sc-pick:hover, .sc-pick:focus-visible { background: var(--hover); }

/* a document you can only view or comment on */
html[data-readonly] .ribbon .toolbar { pointer-events: none; opacity: .45; }

@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  /* phones: the app bar stays one row. With a document open, the app is just its tile, buttons are icons,
     and the name takes the room that's left. */
  .appbar { flex-wrap: nowrap; gap: 6px; padding: 6px 10px; min-height: 56px; }
  .appbar .divider { display: none; }
  .appbar:has(.doc:not([hidden])) .appname span { display: none; }
  .appbar .doc { flex: 1 1 auto; }
  .appbar .doc:not([hidden]) + .grow { display: none; }
  .appbar .docname { max-width: 100%; width: 100%; font-size: 15px; }
  .appbar .status { white-space: nowrap; overflow: hidden; }
  .appbar .status span { overflow: hidden; text-overflow: ellipsis; }
  .appbar > .btn { font-size: 0; gap: 0; padding: 0 11px; min-width: 40px; height: 40px; flex: none; }
  .appbar > .btn svg { width: 18px; height: 18px; }
  .appbar > .icon-btn, .appbar > .avatar { flex: none; }
  /* ribbons: one row of tabs and one row of tools, scrolled sideways */
  .ribbon .tabs, .toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ribbon .tabs::-webkit-scrollbar, .toolbar::-webkit-scrollbar { display: none; }
  .ribbon .tabs > *, .toolbar > * { flex: none; }
  .ribbon .tabs button { padding: 11px 12px 9px; }
  .tb { min-width: 40px; height: 40px; }
  .toolbar .select { height: 40px; }
  .start { padding: 20px 16px 48px; gap: 22px; }
  .start .new { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .start h1 { font-size: 24px !important; }
  dialog.sc { width: calc(100vw - 20px); max-width: none; }
}
.sc-dob { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 8px; }
.sc-dob .select { height: 44px; }

/* the Appearance switch */
.sc-theme { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--hover); gap: 2px; }
.sc-theme button { border: 0; background: none; height: 30px; padding: 0 10px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.sc-theme button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--bronze); }
::selection { background: color-mix(in srgb, var(--bronze) 35%, transparent); }

@media print {
  .no-print, .appbar, .ribbon, .statusbar, #sc-toasts { display: none !important; }
  :root { color-scheme: light; }
  body { background: #fff; color: #0A0B0C; }
}
/* launcher: Standard Works' other projects */
.sc-launcher .proj { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 10px 8px 8px; display: flex; flex-direction: column; gap: 2px; }
.sc-launcher .proj h3 { font: 600 13px var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin: 2px 10px 6px; }
.sc-launcher .pl { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; color: var(--text); text-decoration: none; outline: none; min-width: 0; }
.sc-launcher .pl:hover, .sc-launcher .pl:focus-visible { background: var(--hover); }
.sc-launcher .pl:focus-visible { box-shadow: inset 0 0 0 2px var(--bronze); }
.sc-launcher .pt { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 700 16px var(--head); flex: none; }
.sc-launcher .pn { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 14px; }
.sc-launcher .pn span { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-launcher .sid { font: 700 10.5px var(--body); letter-spacing: .04em; padding: 3px 6px; border-radius: 6px; background: var(--tint); color: var(--text-2); flex: none; }
