/* Prime Café — styled after apple.com: white page, #f5f5f7 tiles, SF Pro, Apple blue. */
:root {
  --font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* apple.com palette */
  --bg: #ffffff;
  --surface: #f5f5f7;          /* tiles */
  --surface-2: #ffffff;        /* inside tiles */
  --surface-3: #e8e8ed;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --border: #d2d2d7;
  --hairline: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;           /* buttons, charts */
  --accent-hover: #0077ed;
  --link: #0066cc;             /* text links */
  --accent-soft: rgba(0, 113, 227, 0.1);

  /* Apple system colours */
  --green: #248a3d;
  --green-fill: #34c759;
  --green-soft: rgba(52, 199, 89, 0.14);
  --orange: #c93400;
  --orange-fill: #ff9500;
  --orange-soft: rgba(255, 149, 0, 0.15);
  --red: #e30000;
  --red-fill: #ff3b30;
  --red-soft: rgba(255, 59, 48, 0.1);
  --purple: #8944ab;
  --purple-fill: #af52de;
  --purple-soft: rgba(175, 82, 222, 0.12);

  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --gutter: clamp(22px, 3.5vw, 64px);   /* side margins; content spans the full window */
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh; display: flex; flex-direction: column;  /* footer sits at the bottom */
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--text); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Global nav (apple.com light variant) ---------- */
.globalnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  padding: 0 var(--gutter);
  height: 48px; display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 15px; white-space: nowrap; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 24px; width: auto; display: block; }
.nav-links { list-style: none; display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links a {
  display: block; padding: 0 12px; line-height: 48px;
  font-size: 12px; color: rgba(0, 0, 0, 0.8); white-space: nowrap; letter-spacing: -0.01em;
  transition: color .24s;
  position: relative;
}
.nav-links a:hover { color: var(--link); text-decoration: none; }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-links a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--text); }

/* ---------- Layout ---------- */
.view { flex: 1; width: 100%; padding: 64px var(--gutter) 96px; }
.hero { margin-bottom: 52px; text-align: center; }
.hero-row { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-row > div:not(.btn-row) { display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: 180px; height: auto; display: block; }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--text); margin-bottom: 4px; letter-spacing: 0.011em; }
.hero h1 { font-size: 56px; line-height: 1.07143; font-weight: 600; letter-spacing: -0.005em; }
.hero p { font-size: 24px; line-height: 1.16667; font-weight: 400; color: var(--text-2); margin: 10px auto 0; max-width: 640px; letter-spacing: 0.009em; }
.hero .btn-row { justify-content: center; }

.section { margin-top: 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 64px 0 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
.section-head p { margin: 4px 0 0; color: var(--text-2); font-size: 17px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 734px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr !important; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 19px; }
  .view { padding-top: 40px; padding-bottom: 72px; }
}
/* Phones: logo and name on top, the menu on its own swipeable row underneath. */
@media (max-width: 734px) {
  .nav-inner { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 8px; }
  .nav-user { margin-left: auto; }
  .nav-links { order: 3; flex-basis: 100%; margin: 0 calc(-1 * var(--gutter)); padding: 0 calc(var(--gutter) - 12px); }
  .nav-links a { line-height: 42px; font-size: 13px; }
}

/* Tiles: Apple's light-grey panels on a white page, no shadows. */
.card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 32px;
}
.card h3 { font-size: 24px; line-height: 1.16667; letter-spacing: 0.009em; }
.card .sub { color: var(--text-2); font-size: 14px; margin-top: 4px; letter-spacing: -0.016em; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 22px; }

/* ---------- KPI tiles ---------- */
.kpi { background: var(--surface); border-radius: var(--radius-lg); padding: 28px 28px 24px; }
.kpi .label { font-size: 14px; color: var(--text-2); font-weight: 600; letter-spacing: -0.016em; }
.kpi .value { font-family: var(--font-display); font-size: 48px; font-weight: 600; letter-spacing: -0.003em; line-height: 1.08; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 21px; font-weight: 600; color: var(--text-2); margin-left: 3px; }
.kpi .delta { font-size: 13px; margin-top: 8px; color: var(--text-3); }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }

/* ---------- Buttons (apple.com pills) ---------- */
.btn {
  appearance: none; cursor: pointer; font: inherit; font-size: 17px; letter-spacing: -0.022em; line-height: 1.17648;
  padding: 11px 21px; border-radius: 980px; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn.secondary:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--link); padding: 4px 0; font-size: 17px; border: 0; }
.btn.ghost:hover { text-decoration: underline; }
.btn.danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn.sm { font-size: 14px; padding: 8px 16px; }
.btn.ghost.sm { padding: 2px 0; font-size: 14px; }
.btn[disabled] { opacity: .4; cursor: default; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.segmented { display: inline-flex; background: var(--surface-3); border-radius: 980px; padding: 3px; }
.segmented button {
  appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--text);
  padding: 8px 16px; border-radius: 980px; cursor: pointer; letter-spacing: -0.016em;
}
.segmented button.on { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); font-weight: 600; }

.icon-btn {
  appearance: none; border: 0; background: rgba(0, 0, 0, 0.06); color: var(--text-2); cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%; font-size: 15px; display: inline-grid; place-items: center;
  transition: background .2s, color .2s;
}
.icon-btn:hover { color: var(--text); background: rgba(0, 0, 0, 0.1); }
.icon-btn.del { background: transparent; color: var(--text-3); }
.icon-btn.del:hover { background: var(--red-soft); color: var(--red); }

/* ---------- Charts ---------- */
.chart { position: relative; width: 100%; min-height: 240px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis { font-size: 11px; fill: var(--text-3); font-family: var(--font); letter-spacing: 0; }
.chart .grid-line { stroke: var(--hairline); stroke-width: 1; }
.chart .avg-line { stroke: var(--text-3); stroke-dasharray: 4 4; stroke-width: 1; }
.chart .hit { fill: transparent; cursor: default; }
.chart .bar { transition: opacity .15s; }
.chart:hover .bar { opacity: .5; }
.chart .bar.hl { opacity: 1; }
.chart-empty { display: grid; place-items: center; height: 240px; color: var(--text-3); font-size: 15px; text-align: center; }
.tip {
  position: fixed; z-index: 100; pointer-events: none;
  background: rgba(255, 255, 255, 0.92); color: var(--text); font-size: 12px; line-height: 1.35;
  padding: 8px 11px; border-radius: 10px; white-space: nowrap;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0,0,0,.14), 0 0 0 1px var(--hairline);
}
.tip b { font-weight: 600; }

/* ---------- Lists & tables ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 500; font-size: 15px; }
.list .meta { font-size: 13px; color: var(--text-2); }
.empty { color: var(--text-3); font-size: 15px; padding: 18px 0; }

.table-wrap { overflow-x: auto; margin: 0 -10px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: -0.016em; }
table.data th { text-align: left; font-weight: 600; font-size: 12px; color: var(--text-2); padding: 10px; border-bottom: 1px solid var(--border); letter-spacing: 0; }
table.data td { padding: 12px 10px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; }
table.data tr.clickable, table.data td.clickable { cursor: pointer; }
table.data tr.clickable:hover td, table.data td.clickable:hover { background: rgba(0, 0, 0, 0.03); }

.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 980px; letter-spacing: 0; white-space: nowrap; }
.pill.blue { background: var(--accent-soft); color: var(--accent); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.orange { background: var(--orange-soft); color: var(--orange); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.purple { background: var(--purple-soft); color: var(--purple); }
.pill.gray { background: rgba(0, 0, 0, 0.06); color: var(--text-2); }

.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.dot.blue { background: var(--accent); } .dot.red { background: var(--red-fill); } .dot.orange { background: var(--orange-fill); } .dot.green { background: var(--green-fill); } .dot.purple { background: var(--purple-fill); }

/* ---------- Progress ---------- */
.progress { height: 6px; background: rgba(0, 0, 0, 0.08); border-radius: 980px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 980px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.progress.green > span { background: var(--green-fill); }
.progress.orange > span { background: var(--orange-fill); }

.ring { position: relative; width: 120px; height: 120px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring svg circle:first-child { stroke: rgba(0, 0, 0, 0.08); }
.ring .ring-label { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 26px; }

/* ---------- Calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.cal-head h3 { font-size: 32px; letter-spacing: 0.004em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--hairline); border-radius: var(--radius-sm); overflow: hidden; }
.cal-dow { background: #fff; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 10px; text-align: center; letter-spacing: 0; }
.cal-day { background: #fff; min-height: 108px; padding: 8px; cursor: pointer; transition: background .15s; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day:hover { background: #fbfbfd; }
.cal-day.other { background: #fafafc; color: var(--text-3); }
.cal-day .num { font-size: 14px; font-weight: 500; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .num { background: var(--red-fill); color: #fff; font-weight: 600; }
.cal-chip { font-size: 11px; line-height: 1.3; padding: 2px 6px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; letter-spacing: 0; }
.cal-chip.bank { background: var(--red-soft); color: var(--red); }
.cal-chip.leave { background: var(--orange-soft); color: var(--orange); }
.cal-chip.event { background: var(--accent-soft); color: var(--accent); }
.cal-chip.event.high { background: var(--purple-soft); color: var(--purple); }
.legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin-top: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 734px) { .cal-day { min-height: 64px; padding: 4px; } .cal-chip { font-size: 9px; padding: 1px 3px; } }

/* ---------- Tasks ---------- */
.check {
  appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--text-3); background: #fff;
  cursor: pointer; flex: none; display: grid; place-items: center; margin: 0; transition: all .15s;
}
.check:checked { background: var(--accent); border-color: var(--accent); }
.check:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
li.done .title { color: var(--text-3); text-decoration: line-through; }

/* ---------- Stock ---------- */
.qty-ctl { display: inline-flex; align-items: center; gap: 6px; }
.qty-ctl button { appearance: none; border: 0; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--text); cursor: pointer; font-size: 16px; line-height: 1; box-shadow: 0 0 0 1px var(--border); }
.qty-ctl button:hover { color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.qty-ctl .q { min-width: 40px; text-align: center; font-weight: 600; }

/* ---------- Table numbers ---------- */
.plan-list { font-size: 15px; line-height: 1.7; }
.plan-list .muted { display: inline-block; min-width: 64px; }
.bytable { border-top: 1px solid var(--hairline); padding-top: 12px; }
.bytable summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--link); }
.bytable .hint { margin: 8px 0 12px; }
.bytable-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bt { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; background: var(--surface); border-radius: 12px; padding: 8px 10px 10px; }
.bt-no { grid-column: 1 / -1; font-weight: 700; font-size: 15px; }
.bt-no span { font-size: 12px; font-weight: 500; color: var(--text-2); }
.bt label { font-size: 11px; color: var(--text-2); font-weight: 500; display: flex; flex-direction: column; gap: 3px; }
.bytable .bt input { width: 100%; min-width: 0; padding: 7px 8px; font-size: 15px; text-align: center; border-radius: 8px; }
.bytable-total { margin-top: 10px; min-height: 18px; }

/* ---------- Team rewards ---------- */
.reward { position: relative; }
.reward-icon { position: absolute; top: 22px; right: 24px; font-size: 30px; }
.streak { display: flex; gap: 10px; margin-top: 18px; }
.streak-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); }
.streak-dot.on { background: var(--green-fill); box-shadow: 0 0 0 4px var(--green-soft); }
.reward-li { font-size: 22px; width: 30px; text-align: center; }

.celebrate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s ease both; }
.celebrate-card { background: #fff; border-radius: var(--radius-lg); padding: 40px 36px 32px; max-width: 440px; width: 100%; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.celebrate-icon { font-size: 64px; line-height: 1; margin-bottom: 14px; }
.celebrate-card h2 { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; }
.celebrate-card p { font-size: 17px; color: var(--text-2); margin: 0 0 8px; line-height: 1.45; }
.celebrate-card ul { list-style: none; padding: 0; margin: 12px 0 0; font-size: 15px; color: var(--text-2); }
.celebrate-card ul li + li { margin-top: 6px; }
.celebrate-card .btn-row { justify-content: center; margin-top: 24px; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 210; pointer-events: none; }

/* ---------- Floor layout ---------- */
.floor { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--surface); border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 20px; }
.floor-total { font-family: var(--font-display); font-size: 32px; font-weight: 600; margin: 2px 0; }
.layout-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 15px; color: var(--text-2); }
.layout-row input { width: 76px; }

/* ---------- Modal sheet ---------- */
.modal {
  border: 0; padding: 0; border-radius: var(--radius-lg); width: min(580px, calc(100vw - 32px));
  background: #fff; color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.22);
}
.modal:has(.import-sheet) { width: min(740px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(232, 232, 237, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.modal[open] { animation: pop .3s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: none; } }
.sheet header { display: flex; align-items: center; justify-content: space-between; padding: 28px 28px 6px; }
.sheet header h3 { font-size: 28px; letter-spacing: 0.007em; }
.sheet .fields { padding: 14px 28px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-height: 64vh; overflow-y: auto; }
.sheet .field { display: flex; flex-direction: column; gap: 6px; grid-column: span 2; }
.sheet .field.half { grid-column: span 1; }
.sheet .field label { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.016em; }
.sheet .hint { font-size: 12px; color: var(--text-3); letter-spacing: -0.01em; }
.sheet footer { display: flex; gap: 12px; padding: 18px 28px 28px; align-items: center; }
.card .sheet .fields { padding-left: 0; padding-right: 0; }
.card .sheet footer { padding: 18px 0 0; }
.spacer { flex: 1; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=month], select, textarea {
  font: inherit; font-size: 17px; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s; letter-spacing: -0.022em;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2); }

/* ---------- Toast & banners ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 120;
  background: rgba(29, 29, 31, 0.92); color: #fff; padding: 12px 22px; border-radius: 980px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: pop .25s cubic-bezier(.2,.8,.2,1);
}
.banner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); padding: 20px 28px; border-radius: var(--radius); margin-bottom: 32px; }
.banner p { margin: 0; font-size: 15px; }

.muted { color: var(--text-2); }
.small { font-size: 13px; }
.num-big { font-family: var(--font-display); font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 28px; }
.fade-in { animation: fade .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Footer (apple.com style) ---------- */
.footer { background: var(--surface); color: rgba(0, 0, 0, 0.56); font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; }
.footer-inner { padding: 18px var(--gutter) 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--hairline); }
.footer-link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; }
.footer-link:hover { text-decoration: underline; }
body.signed-out .footer-link { display: none; }

/* ---------- Walkthrough ---------- */
.tour { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 150; width: min(560px, calc(100vw - 32px)); display: flex; gap: 18px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: var(--radius-lg); padding: 24px 24px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05); animation: tour-in .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tour-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.tour-icon { font-size: 36px; line-height: 1; flex: none; }
.tour-body { min-width: 0; flex: 1; }
.tour h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin: 2px 0 6px; padding-right: 28px; }
.tour p { font-size: 15px; color: var(--text-2); margin: 0; line-height: 1.45; }
.tour-x { position: absolute; top: 14px; right: 14px; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.tour-foot .btn-row { gap: 8px; }
.tour-dots { display: flex; gap: 5px; }
.tour-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); }
.tour-dots span.on { background: var(--accent); width: 18px; border-radius: 3px; }
@media (max-width: 520px) { .tour { bottom: 16px; padding: 20px 18px 16px; gap: 12px; } .tour-icon { font-size: 28px; } }
@media print { .tour { display: none !important; } }

@media print {
  .globalnav, .footer, .btn, .icon-btn, .segmented { display: none !important; }
  .card, .kpi { border: 1px solid #ddd; }
}
.list .pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.list li .dot { align-self: flex-start; margin-top: 6px; }

/* ---------- Accounts ---------- */
.nav-user {
  font-size: 12px; font-weight: 600; color: var(--text); background: rgba(0, 0, 0, 0.06);
  padding: 5px 12px; border-radius: 980px; white-space: nowrap;
}
.nav-user:hover, .nav-user.active { background: var(--text); color: #fff; text-decoration: none; }
.signed-out .nav-links, .signed-out .nav-user { display: none; }
.auth { max-width: 460px; margin: 24px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.auth h1 { font-size: 40px; margin-top: 28px; }
.auth > p { font-size: 19px; color: var(--text-2); margin: 10px 0 28px; }
.auth-form { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.auth-form label { font-size: 14px; font-weight: 600; margin-top: 8px; }
.auth-form .hint { font-size: 12px; color: var(--text-3); }
.auth-form .btn { justify-content: center; margin-top: 18px; }
.auth-error { background: var(--red-soft); color: var(--red); font-size: 14px; padding: 10px 14px; border-radius: var(--radius-sm); margin-top: 8px; }
