/* BookSummary design system.
   Tokens first; every page and the Study / prompt-builder / Ask stylesheets use these variables. */
:root {
  --bg: #f4f5fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #5b6475;          /* 5.9:1 on white */
  --line: #e4e7f0;
  --line-strong: #cdd3e1;
  --accent: #4f46e5;         /* indigo 600, 6.3:1 on white */
  --accent-2: #7c3aed;       /* violet 600 */
  --accent-3: #db2777;       /* pink 600 */
  --accent-ink: #3730a3;
  --accent-soft: #eef0ff;
  --teal: #0d9488;
  --teal-soft: #e6f7f5;
  --amber-soft: #fff5e1;
  --pink-soft: #fdeef6;
  --sky: #0284c7;
  --sky-soft: #e8f4fc;
  --ok: #047857;  --ok-soft: #e7f7ef;
  --warn: #a15c00; --warn-soft: #fff4dc;
  --err: #c81e1e;  --err-soft: #fdecec;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #db2777 100%);
  --grad-soft: linear-gradient(135deg, #eef0ff 0%, #f5edff 55%, #fdeef6 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 16px rgba(79, 70, 229, .06);
  --shadow-lg: 0 10px 30px rgba(79, 70, 229, .18);
  --tap: 44px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; }
body.guest { background: radial-gradient(1200px 600px at 10% -10%, #e0e3ff 0%, transparent 60%),
  radial-gradient(900px 500px at 110% 10%, #fbe3f1 0%, transparent 55%), var(--bg); min-height: 100vh; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; border-radius: 6px; }
img, svg { max-width: 100%; }
code { font-size: .92em; background: #f1f2f8; padding: 1px 5px; border-radius: 5px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ic { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.topbar::before { content: ""; display: block; height: 3px; background: var(--grad); }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; color: var(--text); }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(124, 58, 237, .35); }
.brand .logo svg { width: 22px; height: 22px; }
.mainnav { display: flex; gap: 4px; align-items: center; margin-left: 12px; flex: 1; }
.mainnav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: var(--muted);
  font-weight: 500; text-decoration: none; min-height: 40px; }
.mainnav a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.mainnav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.account { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.who { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; max-width: 220px; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.ghost { display: inline-flex; align-items: center; gap: 6px; border-color: transparent; background: transparent; color: var(--muted);
  padding: 8px 10px; box-shadow: none; }
button.ghost:hover { background: var(--err-soft); color: var(--err); transform: none; }
.nav-toggle { display: none; }

/* Mobile drawer and bottom tab bar */
.drawer { position: fixed; inset: 0; z-index: 40; background: rgba(17, 24, 39, .4); }
.drawer-panel { position: absolute; top: 0; right: 0; width: min(320px, 86vw); height: 100%; background: #fff; padding: 20px 16px;
  padding-top: max(20px, env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 4px; box-shadow: -10px 0 30px rgba(0,0,0,.15);
  animation: slidein .2s ease-out; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-panel .who { margin: 0 0 12px; padding: 12px; background: var(--grad-soft); border-radius: 12px; color: var(--accent-ink);
  font-weight: 500; max-width: none; }
.drawer-panel a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; text-decoration: none;
  color: var(--text); font-weight: 500; min-height: var(--tap); }
.drawer-panel a.on { background: var(--accent-soft); color: var(--accent); }
.drawer-panel form { margin-top: auto; }
.drawer-panel button.block { width: 100%; justify-content: center; display: flex; align-items: center; gap: 8px; color: var(--err); }
.tabbar { display: none; }
body.drawer-open { overflow: hidden; }

/* ---------- Layout ---------- */
main { max-width: 1040px; margin: 28px auto 48px; padding: 0 20px; }
main.wide { max-width: 1200px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 20px;
  box-shadow: var(--shadow); }
.card > :first-child { margin-top: 0; }
.card.narrow { max-width: 440px; margin: 48px auto; padding: 32px; box-shadow: var(--shadow-lg); }
.card.narrow h1 { font-size: 26px; }
.card.narrow button.primary { width: 100%; margin-top: 8px; }
.row { display: flex; gap: 12px 24px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 20px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; align-items: center; }

/* ---------- Typography ---------- */
h1 { font-size: 24px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 12px; font-weight: 700; }
h2 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; margin: 24px 0 10px; font-weight: 650; }
h3 { font-size: 15px; margin: 18px 0 6px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.lead { font-size: 16px; color: var(--muted); margin-top: -4px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.page-head h1 { font-size: 28px; margin: 0; }
.page-head p { margin: 4px 0 0; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; margin: 0 0 12px; }

/* ---------- Forms ---------- */
label { display: block; margin: 14px 0; font-weight: 600; font-size: 14px; color: #1f2937; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; min-height: var(--tap); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: #fff;
  transition: border-color .15s, box-shadow .15s; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
input:hover, select:hover, textarea:hover { border-color: #aeb6ca; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79, 70, 229, .15); }
input::placeholder, textarea::placeholder { color: #8a93a6; }
textarea { resize: vertical; line-height: 1.5; }
input[type=file] { display: block; width: 100%; margin-top: 6px; padding: 18px; border: 2px dashed #b9b4f7; border-radius: 14px;
  background: var(--grad-soft); font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
input[type=file]:hover { border-color: var(--accent); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; margin-right: 14px; padding: 10px 16px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; cursor: pointer; }
label.check input { width: 18px; margin: 2px 0 0; }
label > .small, label > .muted { display: block; font-weight: 400; margin-top: 6px; }
fieldset { min-width: 0; }
details { margin: 14px 0; }
summary { cursor: pointer; font-weight: 600; min-height: 32px; display: list-item; }
details > summary::marker { color: var(--accent); }
form.inline { display: inline; }

/* "Options" panels and help boxes */
form > details, details.panel, details.help { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: #fafbff; }
form > details[open], details.help[open] { padding-bottom: 16px; }

/* ---------- Buttons ---------- */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px;
  border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fff; font: inherit; font-size: 14px; font-weight: 600;
  line-height: 1.2; cursor: pointer; text-decoration: none; color: var(--text); transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent; }
button:hover, .btn:hover { border-color: var(--accent); color: var(--accent); }
button:active, .btn:active { transform: translateY(1px); }
button.primary, .btn.primary { background: var(--grad); background-size: 140% 140%; border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .28); }
button.primary:hover, .btn.primary:hover { color: #fff; box-shadow: 0 8px 22px rgba(124, 58, 237, .38); background-position: 100% 0; }
button.danger, .btn.danger { color: var(--err); border-color: #f2c4c4; }
button.danger:hover { background: var(--err-soft); border-color: var(--err); color: var(--err); }
button:disabled, button:disabled:hover { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; color: inherit; border-color: var(--line-strong); }
button.primary:disabled { color: #fff; border-color: transparent; }
button.link { border: none; background: none; color: var(--accent); padding: 0; min-height: 0; font-weight: 500; box-shadow: none; }
button.link:hover { text-decoration: underline; }
button.link.danger { color: var(--err); }

/* ---------- Alerts, badges, pills ---------- */
.alert { display: block; padding: 12px 16px; border-radius: 12px; font-size: 14px; border: 1px solid transparent; border-left-width: 4px; }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: #b8e6cf; border-left-color: var(--ok); }
.alert.error { background: var(--err-soft); color: var(--err); white-space: pre-wrap; border-color: #f4c7c7; border-left-color: var(--err); }
.alert.warn { background: var(--warn-soft); color: #7a4500; border-color: #f6dca5; border-left-color: #f59e0b; }
.alert a { color: inherit; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #eef0f6; color: #475069; text-transform: capitalize; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.completed, .badge.ready { background: var(--ok-soft); color: var(--ok); }
.badge.failed, .badge.no_text { background: var(--err-soft); color: var(--err); }
.badge.processing, .badge.indexing, .badge.running { background: var(--accent-soft); color: var(--accent); }
.badge.processing::before, .badge.indexing::before { animation: pulse 1.2s ease-in-out infinite; }
.badge.queued { background: var(--warn-soft); color: var(--warn); }
.badge.draft { background: #f3ecff; color: #6d28d9; }
.badge.cancelled { background: #f1f2f6; color: #5b6475; }
.badge.owner { background: var(--text); color: #fff; text-transform: none; }
.badge.owner::before { display: none; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Progress ---------- */
.status { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.status #pct { font-size: 22px; letter-spacing: -.02em; }
div.bar { height: 12px; background: #eceef7; border-radius: 999px; overflow: hidden; }
.fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width .4s; }
.bar.active .fill { min-width: 6%; background-image: linear-gradient(45deg, rgba(255,255,255,.28) 25%, transparent 25%, transparent 50%,
  rgba(255,255,255,.28) 50%, rgba(255,255,255,.28) 75%, transparent 75%), var(--grad); background-size: 20px 20px, 100% 100%;
  animation: bar-stripes 1s linear infinite; }
@keyframes bar-stripes { from { background-position: 20px 0, 0 0; } to { background-position: 0 0, 0 0; } }
div.bar.mini { height: 6px; width: 140px; margin-top: 6px; }
.eta { margin: 8px 0 2px; color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) {
  .bar.active .fill, .badge::before, .drawer-panel { animation: none !important; }
  * { transition: none !important; }
}

/* ---------- Tables ---------- */
table.jobs { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.jobs th { text-align: left; padding: 10px 10px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: #f7f8fc; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.jobs th:first-child { border-top-left-radius: 10px; } table.jobs th:last-child { border-top-right-radius: 10px; }
table.jobs td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.jobs tbody tr:hover td { background: #fafaff; }
table.jobs tbody tr:last-child td { border-bottom: none; }
table.jobs td.num, table.jobs th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.jobs td > a:first-child { font-weight: 600; text-decoration: none; }
table.jobs td > a:first-child:hover { text-decoration: underline; }
table.prices input { width: 110px; min-width: 90px; margin: 0; padding: 6px 8px; min-height: 38px; font-size: 14px; }
.compare { margin-top: 12px; }
.compare tr.current td { font-weight: 600; background: var(--accent-soft) !important; }
.compare tr.current td:first-child { box-shadow: inset 4px 0 0 var(--accent); }

/* Job list: rows become cards on phones (see media query) */
.joblist .dl .btn { white-space: nowrap; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 14px 0; }
.stat { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.stat:nth-child(5n+2)::before { background: var(--teal); }
.stat:nth-child(5n+3)::before { background: #f59e0b; }
.stat:nth-child(5n+4)::before { background: var(--accent-3); }
.stat:nth-child(5n+5)::before { background: var(--sky); }
.stat .v { font-size: 24px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- Job page ---------- */
.estimate { font-size: 17px; margin: 6px 0 10px; padding: 16px 18px; border-radius: 14px; background: var(--grad-soft); border: 1px solid #ddd8fb; }
.estimate strong { font-size: 24px; letter-spacing: -.02em; color: var(--accent-ink); }
.draftform { margin: 14px 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; padding: 0; list-style: none; }
.meta li { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: #f1f2f8; color: #3f4759; }
pre.prompt { white-space: pre-wrap; background: #f7f8fc; border: 1px solid var(--line); padding: 14px 16px; border-radius: 12px;
  font-size: 13px; line-height: 1.55; max-height: 420px; overflow: auto; }

/* ---------- Owner ---------- */
.filters { display: flex; gap: 10px 14px; align-items: flex-end; flex-wrap: wrap; margin: 8px 0 6px; padding: 12px 14px;
  background: #f7f8fc; border: 1px solid var(--line); border-radius: 14px; }
.filters label { margin: 0; } .filters input[type=date] { margin-top: 4px; min-height: 40px; padding: 7px 10px; }
.filters a { display: inline-block; padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.filters a.on { font-weight: 700; color: #fff; background: var(--accent); }
.qr { background: #fff; display: inline-block; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.qr svg { width: 200px; height: 200px; display: block; }
code.secret { font-size: 15px; letter-spacing: 1px; word-break: break-all; }
input.code { font-size: 24px; letter-spacing: 8px; max-width: 220px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Auth pages ---------- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; max-width: 980px; margin: 32px auto; }
.auth .card.narrow { margin: 0; width: 100%; }
.auth-hero h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; margin: 10px 0 14px; }
.auth-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { font-size: 17px; color: var(--muted); margin: 0 0 20px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.features li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.7); border: 1px solid var(--line);
  padding: 12px 14px; border-radius: 14px; }
.features .dot { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.features li:nth-child(1) .dot { background: var(--accent); } .features li:nth-child(2) .dot { background: var(--teal); }
.features li:nth-child(3) .dot { background: var(--accent-3); }
.features b { display: block; } .features span { color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mainnav a span { display: none; }
  .mainnav a { padding: 10px; }
  .who { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  body.app { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .topbar-in { padding: 8px 16px; min-height: 56px; gap: 10px; }
  .mainnav, .account { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; width: var(--tap); height: var(--tap); padding: 0; border-radius: 12px; }
  .nav-toggle .ic { width: 22px; height: 22px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(17,24,39,.06); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; min-height: 52px;
    border-radius: 12px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; }
  .tabbar a .ic { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--accent); background: var(--accent-soft); }
  main { margin: 16px auto 32px; padding: 0 12px; }
  .card { padding: 18px 16px; border-radius: 14px; margin-bottom: 14px; }
  .card.narrow { margin: 20px auto; padding: 24px 20px; }
  h1 { font-size: 21px; } h2 { font-size: 17px; }
  .page-head h1 { font-size: 23px; }
  button, .btn { min-height: var(--tap); }
  .actions > *, .actions form.inline { flex: 1 1 auto; }
  .actions form.inline button { width: 100%; }
  .two { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 12px 14px; } .stat .v { font-size: 20px; }
  table.jobs:not(.joblist), table.grid { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.jobs:not(.joblist) th, table.jobs:not(.joblist) td.num { white-space: nowrap; }
  table.jobs { font-size: 14px; }
  table.jobs th, table.jobs td { padding: 10px 8px; }
  .auth { grid-template-columns: 1fr; gap: 18px; margin: 8px auto; }
  .auth-hero h1 { font-size: 30px; }
  .auth-hero p { font-size: 15px; margin-bottom: 0; }
  .features { display: none; }
  .filters { padding: 10px; }

  /* Job list as cards */
  table.joblist, .joblist tbody { display: block; }
  table.joblist thead { display: none; }
  table.joblist tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px; margin-bottom: 10px;
    border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  table.joblist tbody tr:hover td { background: none; }
  table.joblist td { display: block; padding: 0; border: none; }
  table.joblist td:nth-child(1) { grid-column: 1; }
  table.joblist td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
  table.joblist td:nth-child(3) { grid-column: 1 / -1; }
  table.joblist td:nth-child(4) { grid-column: 1; }
  table.joblist td:nth-child(4)::before { content: "Cost "; color: var(--muted); }
  table.joblist td:nth-child(5) { grid-column: 2; text-align: right; color: var(--muted); }
  table.joblist td:nth-child(6):empty { display: none; }
  table.joblist td:nth-child(6) { grid-column: 1 / -1; }
  table.joblist td:nth-child(6) .btn, .joblist td:nth-child(6) button { width: 100%; }
  table.joblist .bar.mini { width: 100%; }
}
@media (max-width: 380px) {
  .tabbar a { font-size: 10px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media print {
  .topbar, .tabbar, .drawer { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}
