/* Roof Bear HQ — Employee Portal shell. Tokens come from /hq/theme.css. */

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }

/* ── Primitives ───────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border: 0; border-radius: var(--radius-control);
  font-size: 14px; font-weight: 700; letter-spacing: .01em; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(193,18,31,.8); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: var(--paper); color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--soft); border-color: #cfd4da; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 13px; }

.field { display: block; margin: 0 0 14px; }
.field > span {
  display: block; margin-bottom: 6px; color: var(--navy);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.field > span em { margin-left: 6px; color: var(--muted); font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-control);
  background: #fff; color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(16,27,43,.08); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-error {
  margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--red);
  background: #fff5f5; border-radius: 0 8px 8px 0; color: #8f1118; font-size: 13px;
}
.hint { margin: -6px 0 14px; color: var(--muted); font-size: 12.5px; }

.avatar {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-3); color: var(--gold-light); font-weight: 700; font-size: 15px; letter-spacing: .02em;
  overflow: hidden; border: 2px solid rgba(201,161,74,.55); flex: 0 0 auto;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm { width: 38px; height: 38px; font-size: 13px; border-width: 2px; cursor: pointer; }
.avatar-xl { width: 128px; height: 128px; font-size: 40px; border-width: 4px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 22px 24px;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.card-head a, .card-head span { font-size: 12.5px; color: var(--muted); }
.card-head a { color: var(--red); font-weight: 600; }

.empty { padding: 22px 8px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 15px; margin-bottom: 4px; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pill-gold { background: #f3eedc; color: #7a6a3d; }
.pill-navy { background: var(--navy); color: #fff; }
.pill-red { background: #fde8ea; color: #8f1118; }
.pill-green { background: #e4f3e8; color: #1f6b3a; }
.pill-grey { background: #eceef1; color: #5a636f; }

.skeleton { position: relative; overflow: hidden; background: #ebe8e1; border-radius: 8px; color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .5s ease both; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── Sign in ──────────────────────────────────────────── */

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 520px) 1fr; }
.auth-panel { padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; background: var(--paper); }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.auth-brand img { height: 44px; width: auto; filter: invert(1) brightness(.2); }
.auth-brand span { padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.auth-eyebrow { margin: 0 0 10px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.auth-title { margin: 0 0 8px; font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.035em; color: var(--navy); line-height: 1.05; }
.auth-copy { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.auth-form { max-width: 380px; }
.auth-fine { margin: 22px 0 0; max-width: 380px; color: var(--muted); font-size: 12.5px; }
.auth-art { position: relative; overflow: hidden; background: var(--hero-bg); color: #fff; display: flex; align-items: flex-end; padding: 56px; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: var(--hero-texture); }
.auth-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--hero-rule); }
.auth-art-inner { position: relative; max-width: 520px; }
.auth-art-kicker { margin: 0 0 12px; color: var(--gold-light); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.auth-art-line { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.auth-art-line em { font-style: normal; color: var(--gold-light); }

/* ── Shell ─────────────────────────────────────────────── */

.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

.rail {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 22px 16px 16px; background: var(--navy); color: #fff;
  border-right: 1px solid rgba(255,255,255,.06);
}
.rail::before { content: ""; position: absolute; inset: 0; background: var(--hero-texture); pointer-events: none; }
.rail > * { position: relative; }
.rail-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; }
.rail-brand img { height: 36px; width: auto; }
.rail-brand span { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.6); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; }
.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.rail-nav a, .rail-quick a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: rgba(255,255,255,.72); font-size: 14px; font-weight: 600; transition: background .15s, color .15s;
}
.rail-nav a i, .rail-quick a i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.07); font-style: normal; font-size: 14px; color: var(--gold-light); }
.rail-nav a:hover, .rail-quick a:hover { background: rgba(255,255,255,.07); color: #fff; }
.rail-nav a.is-active { background: rgba(201,161,74,.14); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.rail-section { margin-top: 22px; }
.rail-label { margin: 0 12px 6px; color: rgba(255,255,255,.4); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rail-quick { display: flex; flex-direction: column; gap: 2px; }
.rail-quick a { font-size: 13px; padding: 9px 12px; }
.rail-quick a i { font-size: 12px; width: 24px; height: 24px; }
.rail-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.rail-user { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.rail-user:hover { background: rgba(255,255,255,.07); }
.rail-user-text { min-width: 0; }
.rail-user-text strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-user-text small { display: block; color: rgba(255,255,255,.55); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-signout { margin-top: 6px; width: 100%; padding: 8px; border: 0; background: transparent; color: rgba(255,255,255,.45); font-size: 12px; font-weight: 600; cursor: pointer; text-align: left; padding-left: 16px; }
.rail-signout:hover { color: #fff; }

.content { min-width: 0; padding: 28px 36px 60px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.topbar-kicker { margin: 0 0 4px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.topbar-title { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.035em; color: var(--navy); line-height: 1.05; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-date { color: var(--muted); font-size: 13px; }
.tabbar { display: none; }

/* ── Home ──────────────────────────────────────────────── */

.hero-band {
  position: relative; overflow: hidden; padding: 26px 28px; border-radius: 18px; color: #fff;
  background: var(--hero-bg); margin-bottom: 20px;
}
.hero-band::before { content: ""; position: absolute; inset: 0; background: var(--hero-texture); }
.hero-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--hero-rule); }
.hero-band > * { position: relative; }
.hero-band .kicker { margin: 0 0 8px; color: var(--gold-light); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.hero-band h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hero-band p { margin: 0; color: rgba(255,255,255,.7); font-size: 14.5px; max-width: 640px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.tile { padding: 18px 20px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.tile-label { margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tile-value { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.035em; color: var(--navy); line-height: 1; }
.tile-sub { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.tile-sub b { color: #1f6b3a; font-weight: 700; }
.tile-sub b.down { color: #8f1118; }

.grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }

.list { margin: 0; padding: 0; list-style: none; }
.list li { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; padding-top: 2px; }
.when { text-align: center; line-height: 1.1; }
.when b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.when small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.who { min-width: 0; }
.who strong { display: block; color: var(--ink); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.meta b { display: block; color: var(--navy); font-weight: 700; }

.board { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.board li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.board li:first-child { border-top: 0; padding-top: 0; }
.board li::before { counter-increment: rank; content: counter(rank); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; }
.board li:nth-child(1)::before { background: var(--gold); color: #fff; }
.board li:nth-child(2)::before { background: #c9ced4; color: #fff; }
.board li:nth-child(3)::before { background: #c89a6a; color: #fff; }
.board li.me { background: linear-gradient(90deg, #fffaf0, transparent); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; }
.board strong { color: var(--ink); font-size: 14px; }
.board small { display: block; color: var(--muted); font-size: 12px; }
.board .amt { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 15px; letter-spacing: -.02em; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick a { display: block; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--navy); font-size: 13.5px; font-weight: 700; transition: transform .15s, border-color .15s, background .15s; }
.quick a small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.quick a:hover { transform: translateY(-1px); border-color: var(--gold); background: #fffdf7; }

.notice { padding: 12px 16px; border-left: 3px solid var(--gold); background: #fbf8f0; border-radius: 0 10px 10px 0; color: #6b5f3e; font-size: 13px; margin-bottom: 18px; }

/* ── Launchpad ─────────────────────────────────────────── */

.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 26px; padding: 0; list-style: none; }
.apps li > a, .apps li > span { display: block; height: 100%; padding: 20px 20px 18px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 12px; color: var(--navy); transition: transform .15s, box-shadow .15s, border-color .15s; }
.apps li > a:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(15,28,46,.45); border-color: var(--gold); }
.apps li > span { background: var(--soft); border: 1px dashed var(--line); border-top: 1px dashed var(--line); color: var(--muted); }
.apps strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 17px; letter-spacing: -.02em; }
.apps small { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.apps .pill { margin-top: 10px; }
.section-title { margin: 0 0 12px; font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ── Onboarding / profile ──────────────────────────────── */

.wizard { max-width: 720px; margin: 0 auto; }
.steps { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.steps li { flex: 1; height: 4px; border-radius: 999px; background: #e3dfd5; }
.steps li.done { background: var(--gold); }
.steps li.now { background: var(--navy); }
.wizard-head { margin-bottom: 18px; }
.wizard-head .kicker { margin: 0 0 6px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.wizard-head h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.035em; color: var(--navy); line-height: 1.1; }
.wizard-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }

.photo-pick { display: grid; grid-template-columns: 148px 1fr; gap: 22px; align-items: center; margin-bottom: 18px; }
.photo-drop { display: grid; place-items: center; width: 148px; height: 148px; border-radius: 50%; border: 2px dashed #cfc8b8; background: var(--soft); cursor: pointer; overflow: hidden; position: relative; transition: border-color .15s, background .15s; }
.photo-drop:hover, .photo-drop.is-over { border-color: var(--gold); background: #fffbf0; }
.photo-drop img { width: 100%; height: 100%; object-fit: cover; }
.photo-drop span { color: var(--muted); font-size: 12px; text-align: center; padding: 0 14px; }
.photo-tips { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.photo-tips li { margin: 4px 0; }

.profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.profile-head h2 { margin: 0 0 2px; font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.profile-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.kv { margin: 0; padding: 0; list-style: none; }
.kv li { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.kv li:first-child { border-top: 0; padding-top: 0; }
.kv b { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 12px 18px; background: var(--navy); color: #fff; border-radius: 12px; font-size: 13.5px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); z-index: 50; animation: rise .3s ease both; }

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1180px) { .tiles { grid-template-columns: repeat(2, 1fr); } .apps { grid-template-columns: 1fr 1fr; } .grid { grid-template-columns: 1fr; } .profile-grid { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-panel { padding: 40px 24px; min-height: 100vh; }
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .content { padding: 18px 16px 96px; }
  .topbar-title { font-size: 24px; }
  .topbar-date { display: none; }
  .grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .tabbar a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; color: rgba(255,255,255,.6); font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabbar a i { font-style: normal; font-size: 18px; color: var(--gold-light); }
  .tabbar a.is-active { color: #fff; background: rgba(201,161,74,.14); }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px 14px 12px; }
  .tile-value { font-size: 24px; }
  .card { padding: 18px 16px; border-radius: 14px; }
  .apps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .photo-pick { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-band { padding: 20px 18px; }
  .list li { grid-template-columns: 48px 1fr; }
  .list .meta { grid-column: 2; text-align: left; }
  .list .meta b { display: inline; margin-right: 6px; }
  .wizard-actions { flex-direction: column-reverse; align-items: stretch; }
}

/* ── Section pages ─────────────────────────────────────── */

.tabs { display: flex; gap: 6px; margin: 0 0 14px; overflow-x: auto; padding-bottom: 2px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--navy); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tab span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11px; }
.tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab.is-active span { background: rgba(255,255,255,.16); color: #fff; }
.tab.is-alert:not(.is-active) { border-color: #f3c9cc; color: #8f1118; }
.tab.is-alert:not(.is-active) span { background: #fde8ea; color: #8f1118; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.toolbar .search, .toolbar .filter, .toolbar .month { padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); }
.toolbar .search { flex: 1; min-width: 220px; }
.toolbar .muted { color: var(--muted); font-size: 13px; margin-left: auto; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.seg button { padding: 7px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.seg button.is-active { background: var(--navy); color: #fff; }

.notice-red { border-left-color: var(--red); background: #fff5f5; color: #8f1118; }
.notice strong { color: inherit; }
.muted { color: var(--muted); font-size: 13px; }
.kicker { margin: 0 0 4px; color: var(--red); font-size: 10.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }

.list.appts li, .jobs .job { grid-template-columns: 54px 1fr auto; }
.appt-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.appt.is-overdue .when b { color: var(--red); }
.jobs { margin: 0 0 22px; padding: 0; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 6px 20px; }
.jobs .job { display: grid; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.jobs .job:first-child { border-top: 0; }
.jobs .job:hover .who strong { color: var(--red); }
.section-title span { margin-left: 6px; color: var(--gold); }
.board.big li { padding: 12px 0; }
.board.big .amt { font-size: 17px; }
.competition .prize { margin: 0 0 6px; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--navy); }
.plan { margin: 0; padding-left: 20px; }
.plan li { margin: 6px 0; font-size: 14px; }

.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; background: rgba(16,27,43,.45); backdrop-filter: blur(2px); animation: fade .2s ease both; }
.sheet-panel { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; padding: 22px 24px 28px; background: var(--paper); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 60px -20px rgba(0,0,0,.4); animation: up .25s ease both; }
.sheet-panel.wide { max-width: 760px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.sheet-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); font-size: 20px; line-height: 1; cursor: pointer; color: var(--navy); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--soft); font-size: 13.5px; font-weight: 600; color: var(--navy); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(16,27,43,.08); }
.choice input { accent-color: var(--red); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 961px) { .sheet { place-items: center; } .sheet-panel { border-radius: 18px; } }
@media (max-width: 600px) { .choices { grid-template-columns: 1fr; } .list.appts li, .jobs .job { grid-template-columns: 48px 1fr; } .list.appts .meta, .jobs .meta { grid-column: 2; text-align: left; } }
.rail-nav a.is-planned { color: rgba(255,255,255,.42); }
.rail-nav a.is-planned i { opacity: .6; }
.rail-nav a.is-planned::after { content: "soon"; margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(225,200,120,.7); }
