/* The digest email's cream-and-rose palette, in multisig-tools' quiet data layout */
:root {
  color-scheme: light;
  --bg: #fbf6f1; --card: #fffdfb; --fg: #493e45; --strong: #2e2329; --muted: #967c87; --line: #ecdee4; --hover: #fbf1f4;
  --brand: #70465f; --accent: #8b4467; --accent-fg: #fff; --soft: #f6e6ed; --selected: #f8eaf0;
  --read: #fbf7f4; --star: #d6981c; --strong-fit: #2f7a59; --strong-bg: #e4f2ea; --bridge: #9a5b14; --bridge-bg: #f8ecdc; --stretch-bg: #f1ecee;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --shadow: 0 10px 40px rgba(73, 40, 58, .14); --toast: #2e2329; --toast-fg: #fbf2f6; --toast-link: #f0bad3;
}
/* Dark follows the system until Carrah picks a theme with the header toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #161114; --card: #1d171a; --fg: #e7dbe1; --strong: #fbf2f6; --muted: #a18c97; --line: #33272d; --hover: #241b20;
    --brand: #f0bad3; --accent: #e59abd; --accent-fg: #2a0f1d; --soft: #3a2430; --selected: #2c1f26;
    --read: #1a1418; --star: #f0c05a; --strong-fit: #7dd3a8; --strong-bg: #173126; --bridge: #f0b86e; --bridge-bg: #3a2a17; --stretch-bg: #2a2226;
    --shadow: 0 10px 40px rgba(0, 0, 0, .5); --toast: #f3e6ec; --toast-fg: #2e2329; --toast-link: #8b4467;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161114; --card: #1d171a; --fg: #e7dbe1; --strong: #fbf2f6; --muted: #a18c97; --line: #33272d; --hover: #241b20;
  --brand: #f0bad3; --accent: #e59abd; --accent-fg: #2a0f1d; --soft: #3a2430; --selected: #2c1f26;
  --read: #1a1418; --star: #f0c05a; --strong-fit: #7dd3a8; --strong-bg: #173126; --bridge: #f0b86e; --bridge-bg: #3a2a17; --stretch-bg: #2a2226;
  --shadow: 0 10px 40px rgba(0, 0, 0, .5); --toast: #f3e6ec; --toast-fg: #2e2329; --toast-link: #8b4467;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.45 system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }

header { display: flex; align-items: baseline; gap: 14px; max-width: 1180px; margin: 0 auto; padding: 26px 20px 6px; }
.updated { margin-left: auto; font-style: italic; }
.theme { border: 0; background: transparent; width: 30px; height: 30px; margin: -6px -6px -6px 6px; align-self: center; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .15s, background .15s; }
.theme:hover { color: var(--accent); background: var(--soft); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: spin-in .35s ease-out; }
@keyframes spin-in { from { opacity: 0; transform: rotate(-60deg) scale(.7); } }
.brand { font-family: var(--serif); font-size: 24px; color: var(--brand); text-decoration: none; letter-spacing: -.01em; }
main { max-width: 1180px; margin: 0 auto; padding: 8px 20px 40px; }

/* Folders, search and filters */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 0 10px; }
.tabs { display: flex; gap: 2px; }
.tab { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; display: inline-flex; gap: 7px; align-items: center; transition: background .15s, color .15s; }
.tab:hover { color: var(--fg); background: var(--hover); }
.tab.on { color: var(--accent); background: var(--soft); }
.tab svg { width: 16px; height: 16px; margin-right: -1px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.on svg { stroke-width: 2; }
.tab .count { font-size: 11px; font-weight: 700; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--line); color: var(--fg); text-align: center; }
.tab.on .count { background: var(--accent); color: var(--accent-fg); }
#search { width: 240px; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; transition: border-color .15s, width .2s; }
#search:focus { outline: none; border-color: var(--accent); width: 300px; }
.ghost { border: 0; background: transparent; color: var(--muted); padding: 4px 6px; border-radius: 6px; }
.ghost:hover { color: var(--accent); }
.toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; cursor: pointer; }

/* The inbox */
.list { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: clip; }
/* Gmail's bar: select-all, then actions for the checked roles */
.actionbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 4px; min-height: 46px; padding: 0 14px 0 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.actionbar .grow { flex: 1; }
.actionbar .picked { font-size: 13px; font-weight: 600; color: var(--fg); margin: 0 10px 0 12px; white-space: nowrap; }
.actionbar .btn { padding: 5px 10px; font-size: 13px; }
.actionbar .select-all { display: grid; place-items: center; width: 22px; }
.row { display: grid; grid-template-columns: 22px 22px minmax(120px, 170px) minmax(0, 1fr) 84px 96px 70px 64px 56px; gap: 10px; align-items: center; padding: 0 14px 0 16px; min-height: 44px; border-top: 1px solid var(--line); position: relative; }
.row.head { border-top: 0; min-height: 34px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.row.head button { border: 0; background: none; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; display: inline-flex; gap: 4px; align-items: center; }
.row.head button:hover, .row.head button.on { color: var(--fg); }
.row.head .arrow { font-size: 9px; opacity: 0; } .row.head button.on .arrow { opacity: 1; }
.job { cursor: pointer; background: var(--read); transition: background .12s; }
.job.unread { background: var(--card); }
.job:hover { background: var(--hover); box-shadow: 0 1px 4px rgba(73, 40, 58, .1); z-index: 1; }
.job.checked { background: var(--selected); }
.job.cursor { box-shadow: inset 3px 0 0 var(--accent); }
.job .cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job .company { color: var(--fg); }
.job .role { color: var(--muted); }
.job .role b { color: var(--fg); font-weight: 400; }
.job.unread .company, .job.unread .role b { color: var(--strong); font-weight: 700; }
.job .right { text-align: right; }
.pick { display: grid; place-items: center; align-self: stretch; cursor: pointer; }
.star { border: 0; background: transparent; padding: 0; width: 22px; height: 22px; display: grid; place-items: center; color: color-mix(in srgb, var(--muted) 60%, transparent); }
.star:hover { color: var(--fg); }
.star svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.star.on { color: var(--star); } .star.on svg { fill: currentColor; transform: scale(1.08); }
.tag { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); margin-left: 6px; vertical-align: 1px; }
.fit { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 10px; text-transform: capitalize; }
.fit.strong { color: var(--strong-fit); background: var(--strong-bg); }
.fit.plausible { color: var(--accent); background: var(--soft); }
.fit.bridge { color: var(--bridge); background: var(--bridge-bg); }
.fit.stretch { color: var(--muted); background: var(--stretch-bg); }
.none { color: var(--line); }

.icon { border: 0; background: transparent; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.icon:hover { background: var(--soft); color: var(--accent); }
.icon.on { color: var(--accent); }
.icon:disabled { opacity: .35; cursor: default; } .icon:disabled:hover { background: transparent; color: var(--muted); }
.icon svg, .btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.leaving { animation: leave .22s ease-in forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(14px); } }
.entering { animation: enter .3s ease-out backwards; }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } }

.empty { padding: 72px 20px; text-align: center; color: var(--muted); }
.empty .big { font-family: var(--serif); font-size: 21px; color: var(--brand); margin-bottom: 4px; }
.hint { text-align: center; margin-top: 14px; }
kbd { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; margin: 0 1px; }

/* A job, opened */
.scrim { position: fixed; inset: 0; background: rgba(40, 20, 30, .18); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: var(--card); border-left: 1px solid var(--line); box-shadow: var(--shadow); transform: translateX(104%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; outline: none; z-index: 5; }
body.open .drawer { transform: none; }
body.open .scrim { opacity: 1; pointer-events: auto; }
.bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 4px; padding: 10px 14px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar .grow { flex: 1; }
.sheet { padding: 22px 28px 48px; }
.employer { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sheet h1 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--strong); margin: 6px 0 12px; }
.subline { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.subline > span + span::before { content: '·'; margin: 0 8px; color: var(--line); }
.closed { color: #b24a3c; }
.facts { display: grid; grid-template-columns: 84px 1fr; gap: 6px 14px; margin: 0 0 26px; font-size: 13.5px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.note { margin: 0 0 16px; }
.note b { display: block; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.research { font-size: 14.5px; line-height: 1.65; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 26px; }
.research p, .research ul { margin: 0 0 12px; }
.research ul { padding-left: 20px; }
.research h3 { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 22px 0 6px; }
.research strong { color: var(--strong); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 26px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 8px; padding: 7px 13px; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { filter: brightness(1.08); color: var(--accent-fg); }
.btn.quiet, .actionbar .btn { border-color: transparent; color: var(--muted); padding-left: 10px; padding-right: 10px; }
.btn.quiet:hover, .actionbar .btn:hover { border-color: transparent; background: var(--hover); color: var(--accent); }
.bar .star { width: 30px; height: 30px; } .bar .star svg { width: 19px; height: 19px; }
.btn.on { background: var(--soft); border-color: var(--accent); color: var(--accent); }
.btn.on svg path.tick { stroke-dasharray: 14; stroke-dashoffset: 14; animation: draw .3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--toast); color: var(--toast-fg); border-radius: 10px; padding: 9px 10px 9px 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; z-index: 10; font-size: 13.5px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: transparent; color: var(--toast-link); font-weight: 700; padding: 2px 6px; }

@media (max-width: 1000px) {
  .row { grid-template-columns: 22px 22px minmax(100px, 150px) minmax(0, 1fr) 84px 90px 56px; }
  .col-where, .col-posted { display: none; }
}
/* Phones: each job becomes two quiet lines, checkbox on the left and star on the right, as in Gmail */
@media (max-width: 680px) {
  header { padding: 18px 16px 4px; } main { padding: 6px 12px 32px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  #search, #search:focus { width: 100%; }
  .actionbar { padding: 0 8px 0 12px; }
  .actionbar .btn { padding: 5px 7px; }
  .actionbar .btn .label { display: none; }
  .actionbar.picking .toggle { display: none; }
  .tab { padding: 6px 9px; }
  .tab svg { display: none; }
  .row.head { display: none; }
  .row { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: 'pick company found' 'pick role star' 'pick meta meta'; gap: 1px 10px; padding: 10px 12px; }
  .pick { grid-area: pick; align-self: start; margin-top: 2px; }
  .col-star { grid-area: star; justify-self: end; }
  .col-company { grid-area: company; } .col-role { grid-area: role; } .col-found { grid-area: found; }
  .col-fit, .col-pay { display: none; }
  .meta { grid-area: meta; display: flex !important; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
  .hint { display: none; }
  .sheet { padding: 18px 18px 40px; }
}
.meta { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
