:root {
  --navy: #0B1B4A; --navy-2: #13286B; --royal: #1E40AF; --royal-dk: #18338C; --royal-soft: #E8EEFC;
  --gold: #C9A23A; --gold-lt: #E7CF8A; --gold-soft: #FBF4DF; --gold-ink: #6B5112;
  --silver: #C7CED9; --silver-lt: #EEF1F6; --line: #E1E6EE;
  --ink: #0F172A; --muted: #556074; --white: #FFFFFF; --paper: #F7F8FB;
  --red: #B42318; --red-soft: #FDECEA; --green: #12704A; --green-soft: #E3F4EC;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Inter', system-ui, -apple-system, sans-serif; --mono: 'DM Mono', ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(15,23,42,0.06), 0 8px 24px rgba(15,23,42,0.06);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.55; }
a { color: var(--royal); }
a:hover { color: var(--royal-dk); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.08); }
.bar-in { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--white); text-decoration: none; display: inline-flex; align-items: center; }
.logo span { color: var(--gold); }
.logo::before { content: ""; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--gold-lt), var(--gold)); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35); margin-right: 10px; }
.logo:hover { color: var(--white); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { color: #D5DCEC; text-decoration: none; font-size: 15px; font-weight: 500; padding: 9px 14px; border-radius: 10px; }
.nav a:hover { color: var(--white); background: var(--navy-2); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--gold-lt); font-weight: 600; }

/* layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 36px 24px 80px; }
.eyebrow { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow.on-dark { color: var(--gold-lt); }
h1.page { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.02em; color: var(--navy); }
.lede { margin: 12px 0 0; font-size: 18px; color: var(--muted); max-width: 640px; }
.lede.on-dark { color: #C9D3EA; font-size: 20px; margin-top: 22px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.side { flex: 1 1 240px; max-width: 300px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 84px; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

/* cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 4px; font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; line-height: 1.15; color: var(--navy); }
.card h3 { margin: 0; font-weight: 600; font-size: 17px; color: var(--navy); }
.card .sub { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.card.dark { background: var(--navy); color: var(--white); border-color: var(--navy); position: relative; overflow: hidden; }
.card.dark::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 18px solid rgba(201,162,58,0.18); pointer-events: none; }
.card.dark h2 { color: var(--white); }
.card.dark .sub { color: #C9D3EA; }
details.card summary { color: var(--navy); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--royal); background: var(--royal); color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { background: var(--royal-dk); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30,64,175,0.25); }
.btn:active { transform: none; }
.btn.ghost { background: var(--white); color: var(--navy); border-color: var(--silver); }
.btn.ghost:hover { background: var(--silver-lt); color: var(--navy); box-shadow: none; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #B8912C; box-shadow: 0 6px 16px rgba(201,162,58,0.35); }
.btn.outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn.outline-light:hover { background: rgba(255,255,255,0.08); box-shadow: none; }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.danger { background: var(--white); color: var(--red); border-color: #F1B8B2; }
.btn.danger:hover { background: var(--red-soft); color: var(--red); box-shadow: none; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-btn:hover { background: var(--silver-lt); color: var(--navy); border-color: var(--silver); }
.icon-btn svg { width: 17px; height: 17px; }

/* forms */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #334155; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.in { min-height: 44px; width: 100%; border: 1px solid var(--silver); border-radius: 10px; padding: 0 12px; background: var(--white); font-weight: 400; font-size: 16px; color: var(--ink); }
.in:hover { border-color: #AEB7C5; }
.in:focus { border-color: var(--royal); outline: none; box-shadow: 0 0 0 3px rgba(30,64,175,0.18); }
textarea.in { padding: 10px 12px; min-height: 120px; resize: vertical; line-height: 1.5; }
.in.cell { min-height: 38px; border-color: transparent; background: transparent; padding: 0 8px; }
.in.cell:hover { border-color: var(--line); background: var(--paper); }
.in.cell:focus { border-color: var(--royal); background: var(--white); }
.hint { font-size: 13px; font-weight: 400; color: var(--muted); }

/* lists */
.list { display: flex; flex-direction: column; }
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.when { width: 118px; flex-shrink: 0; font-family: var(--mono); font-size: 13px; color: var(--royal); line-height: 1.35; }
.when.late { color: var(--red); font-weight: 500; }
.grow { flex: 1 1 220px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--royal-soft); color: var(--royal-dk); white-space: nowrap; }
.chip.gold { background: var(--gold-soft); color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold-lt); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.green { background: var(--green-soft); color: var(--green); }
.card.dark .chip { background: rgba(255,255,255,0.1); color: #E3E9F7; }
.card.dark .chip.gold { background: var(--gold); color: var(--navy); box-shadow: none; }
.card.dark .chip.red { background: #F6C9C4; color: #7A1A12; }
.check { width: 22px; height: 22px; accent-color: var(--royal); flex-shrink: 0; cursor: pointer; }
.done-text { text-decoration: line-through; color: var(--muted); }
.saved-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow); }
.saved-list a { display: flex; justify-content: space-between; gap: 10px; text-decoration: none; color: var(--ink); padding: 11px 12px; border-radius: 12px; font-weight: 500; }
.saved-list a:hover { background: var(--silver-lt); color: var(--navy); }
.saved-list a[aria-current="true"] { background: var(--royal-soft); color: var(--royal-dk); box-shadow: inset 3px 0 0 var(--gold); }
.saved-list small { font-family: var(--mono); color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--silver); border-radius: var(--radius); background: var(--white); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--silver-lt); border: 1px solid var(--line); padding: 4px; border-radius: 14px; align-self: flex-start; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: 10px; border: 0; background: transparent; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button:hover { color: var(--navy); }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--navy); box-shadow: 0 1px 3px rgba(15,23,42,0.12), inset 0 -2px 0 var(--gold); }
.bars { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--silver-lt); }
.swatch { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.note { border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.note.warn { background: var(--gold-soft); color: var(--gold-ink); }
.note.bad { background: var(--red-soft); color: #7A1A12; }
.note.ok { background: var(--green-soft); color: #0B4A31; }
.mailbox { white-space: pre-wrap; font-size: 15px; line-height: 1.6; background: var(--paper); border-radius: 12px; padding: 18px; border: 1px solid var(--line); }

/* toast */
#toast { pointer-events: none; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--navy); color: var(--white); padding: 12px 20px 12px 16px; border-radius: 12px; font-weight: 500; font-size: 15px; box-shadow: 0 12px 30px rgba(11,27,74,0.3); max-width: calc(100vw - 32px); border-left: 4px solid var(--gold); }
#toast:empty { display: none; }

/* landing */
.hero { background: var(--navy); color: var(--white); padding: 64px 24px 104px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(199,206,217,0.16) 1.2px, transparent 1.2px); background-size: 26px 26px; pointer-events: none; }
.hero-in { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; position: relative; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(52px, 7.5vw, 104px); line-height: 0.98; letter-spacing: -0.03em; }
.word { display: inline-block; font-style: italic; color: var(--gold-lt); position: relative; }
.word::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 0.02em; height: 0.09em; background: var(--gold); border-radius: 4px; transform: rotate(-1.2deg); }
.hero-points { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: #C9D3EA; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.ticket { width: 340px; max-width: 100%; transform: rotate(3deg); background: var(--white); color: var(--ink); border-radius: 20px; box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  -webkit-mask: radial-gradient(circle 13px at 0 70%, transparent 98%, #000) left/51% 100% no-repeat, radial-gradient(circle 13px at 100% 70%, transparent 98%, #000) right/51% 100% no-repeat;
  mask: radial-gradient(circle 13px at 0 70%, transparent 98%, #000) left/51% 100% no-repeat, radial-gradient(circle 13px at 100% 70%, transparent 98%, #000) right/51% 100% no-repeat; }
.ticket-top { background: linear-gradient(135deg, var(--gold-lt), var(--gold)); color: var(--navy); border-radius: 20px 20px 0 0; padding: 16px 26px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; font-weight: 500; }
.ticket-title { font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1; letter-spacing: -0.02em; color: var(--navy); }
.ticket dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; }
.ticket dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #7A869A; }
.ticket dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--navy); }
.ticket-bar { margin-top: 18px; height: 8px; border-radius: 999px; background: var(--silver-lt); overflow: hidden; }
.ticket-bar span { display: block; height: 100%; background: var(--royal); border-radius: 999px; }
.ticket-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.ticket-rule { border-top: 2px dashed var(--silver); margin: 16px 26px 0; }
.ticket-host { font-family: var(--mono); font-size: 12px; color: #7A869A; }
.barcode { height: 40px; flex: 1; background: repeating-linear-gradient(90deg, var(--navy) 0 3px, transparent 3px 5px, var(--navy) 5px 6px, transparent 6px 10px); opacity: 0.85; }
.band { padding: 88px 24px; }
.band.soft { background: var(--silver-lt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-in { max-width: 1240px; margin: 0 auto; }
.band h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -0.02em; max-width: 820px; color: var(--navy); }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 44px; }
.tool { display: flex; flex-direction: column; gap: 12px; text-decoration: none; border-radius: 22px; padding: 26px; min-height: 290px; transition: transform .18s ease, box-shadow .18s ease; box-shadow: var(--shadow); border: 1px solid transparent; }
.tool:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 18px 40px rgba(11,27,74,0.18); }
.tool-top { display: flex; justify-content: space-between; align-items: center; }
.tool-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.16); }
.tool-icon svg { width: 26px; height: 26px; }
.tool .num { font-family: var(--mono); font-size: 13px; opacity: 0.75; }
.tool h3 { margin: 18px 0 0; font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: -0.01em; line-height: 1.05; }
.tool p { margin: 0; font-size: 15.5px; line-height: 1.55; opacity: 0.9; }
.tool-go { margin-top: auto; font-weight: 600; font-size: 15px; }
.t-gold { background: linear-gradient(160deg, #F1DE9E, var(--gold)); color: var(--navy); }
.t-gold .tool-icon { background: rgba(11,27,74,0.1); }
.t-navy { background: var(--navy); color: var(--white); }
.t-navy .tool-icon { color: var(--gold-lt); }
.t-silver { background: linear-gradient(160deg, #FFFFFF, var(--silver)); color: var(--navy); border-color: var(--line); }
.t-silver .tool-icon { background: var(--white); box-shadow: inset 0 0 0 1px var(--silver); color: var(--royal); }
.t-royal { background: var(--royal); color: var(--white); }
.t-royal .tool-icon { color: var(--gold-lt); }
.tool:hover, .tool:focus { color: inherit; }
.t-navy:hover, .t-royal:hover { color: var(--white); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 40px 0 0; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.step-n { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold-lt); font-family: var(--serif); font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.step b { font-size: 18px; color: var(--navy); line-height: 1.3; }
.step span:last-child { color: var(--muted); font-size: 15px; }
.privacy { margin: 32px 0 0; font-size: 16px; max-width: 680px; color: var(--muted); padding-left: 16px; border-left: 3px solid var(--gold); }
.foot { background: var(--navy); color: var(--white); padding: 88px 24px 32px; }
.foot h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 6.5vw, 88px); line-height: 1; letter-spacing: -0.03em; color: var(--white); max-width: none; }
.foot h2 em { color: var(--gold-lt); }
.foot-line { margin-top: 72px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 13px; color: #AEB9D3; }
.foot-line a { color: var(--gold-lt); }

/* interview grid */
.grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.agrid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; user-select: none; -webkit-user-select: none; touch-action: none; }
.agrid th { font-family: var(--mono); font-size: 12px; font-weight: 500; padding: 8px 6px; background: var(--silver-lt); color: var(--navy); position: sticky; top: 0; }
.agrid th.t { width: 64px; text-align: right; color: var(--muted); background: var(--white); position: sticky; left: 0; }
.agrid td { height: 28px; border-top: 1px solid #EEF1F6; border-left: 1px solid #EEF1F6; padding: 0; cursor: pointer; position: relative; }
.agrid td:hover { background: var(--royal-soft); }
.agrid td.on { background: var(--royal); }
.agrid td .n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: var(--muted); pointer-events: none; }
.agrid td.on .n { color: var(--white); }
.agrid td.booked { background-image: repeating-linear-gradient(45deg, rgba(201,162,58,0.85) 0 5px, transparent 5px 10px); }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--silver); background: var(--white); cursor: pointer; font-weight: 600; font-size: 14px; color: var(--navy); }
.person:hover { border-color: var(--royal); }
.person[aria-pressed="true"] { background: var(--royal); color: var(--white); border-color: var(--royal); box-shadow: 0 0 0 3px rgba(201,162,58,0.45); }
.person .x { width: 26px; height: 26px; border-radius: 999px; border: 0; background: var(--silver-lt); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.person[aria-pressed="true"] .x { background: rgba(255,255,255,0.18); color: var(--white); }

/* board */
.board { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 18px; overflow-x: auto; padding-bottom: 6px; }
.colm { background: var(--silver-lt); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 200px; display: flex; flex-direction: column; gap: 10px; }
.colm.drag { outline: 2px dashed var(--royal); outline-offset: -6px; background: var(--royal-soft); }
.colm h2 { margin: 4px 6px 4px; font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--navy); display: flex; justify-content: space-between; align-items: center; }
.tcard { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(15,23,42,0.06); transition: box-shadow .15s ease, transform .15s ease; }
.tcard:hover { box-shadow: 0 8px 20px rgba(15,23,42,0.1); transform: translateY(-1px); }
.tcard.late { box-shadow: inset 4px 0 0 var(--red), 0 1px 2px rgba(15,23,42,0.06); }
.tcard .t { font-weight: 600; font-size: 15.5px; line-height: 1.35; color: var(--navy); }
.tcard .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tcard .acts { display: flex; gap: 6px; justify-content: flex-end; }

@media (max-width: 720px) {
  .bar-in { padding: 10px 16px; }
  .nav { width: 100%; }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .when { width: 100%; }
  .side { position: static; max-width: none; }
  .board { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tool, .tool:hover, .btn, .btn:hover, .tcard, .tcard:hover { transition: none; transform: none; } }

/* ---------- app shell: sidebar + content ---------- */
.shell { display: flex; min-height: 100vh; background: linear-gradient(90deg, var(--navy) 260px, var(--paper) 260px); }
.sidebar { flex: 0 0 260px; width: 260px; background: var(--navy); color: #D5DCEC; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; box-sizing: border-box; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; }
.sb-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 22px; }
.sb-close { display: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid #2A3B78; background: transparent; color: #D5DCEC; cursor: pointer; align-items: center; justify-content: center; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #D5DCEC; text-decoration: none; font-size: 15px; font-weight: 500; }
.sb-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sb-link:hover { background: var(--navy-2); color: var(--white); }
.sb-link[aria-current="page"] { background: var(--navy-2); color: var(--white); font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.sb-link[aria-current="page"] svg { color: var(--gold-lt); }
.sb-count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: #8E9BBE; }
.sb-badge { margin-left: auto; font-size: 11px; font-weight: 600; background: #B42318; color: var(--white); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.sb-sub { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 8px 22px; padding-left: 12px; border-left: 1px solid #2A3B78; }
.sb-sub a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; color: #C3CCE2; text-decoration: none; font-size: 14px; }
.sb-sub a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-sub a small { font-family: var(--mono); font-size: 11px; color: #8E9BBE; white-space: nowrap; }
.sb-sub a:hover { background: var(--navy-2); color: var(--white); }
.sb-sub a[aria-current="true"] { background: rgba(231,207,138,0.14); color: var(--gold-lt); }
.sb-sub a.sb-new { color: var(--gold-lt); font-weight: 600; }
.sb-foot { margin-top: auto; border-top: 1px solid #22336E; padding: 16px 10px 4px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sb-foot a { color: #C3CCE2; text-decoration: none; }
.sb-foot a:hover { color: var(--white); }
.sb-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 4px; }
.sb-meta { margin-top: 12px; font-size: 13px; color: #8E9BBE; }
.content { flex: 1 1 auto; min-width: 0; }
.mbar { display: none; }
.scrim { display: none; }
.logo.dark { color: var(--navy); }
.logo.dark:hover { color: var(--navy); }
h1.page em { font-style: italic; color: var(--gold); }

/* today */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease; }
.stat:hover { transform: translateY(-2px); color: var(--ink); }
.stat-l { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-big { font-family: var(--serif); font-weight: 600; font-size: 30px; color: var(--navy); line-height: 1.15; margin-top: 4px; }
.stat-s { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat.dark { background: var(--navy); border-color: var(--navy); }
.stat.dark .stat-l { color: var(--gold-lt); }
.stat.dark .stat-big { color: var(--white); }
.stat.dark .stat-s { color: #C9D3EA; }
.grp { margin: 18px 0 4px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--royal); display: flex; gap: 8px; }
.grp span { color: var(--muted); }
.grp.late { color: var(--red); }
.today-link { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.today-link b { font-weight: 600; font-size: 15px; }
.today-link span { font-size: 13px; color: var(--muted); }
.today-link:hover b { color: var(--royal); }
.chip.silver { background: var(--silver-lt); color: #334155; box-shadow: inset 0 0 0 1px var(--silver); }

/* ---------- home: tile board ---------- */
.home { display: block; background: var(--silver-lt); min-height: 100vh; padding: 22px 24px 130px; }
.home-head { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.home-hero { max-width: 780px; margin: 56px auto 0; text-align: center; }
.pill-label { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--white); border: 1px solid var(--silver); border-radius: 999px; padding: 6px 14px; color: var(--royal); }
.home-hero h1 { margin: 18px 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 6.4vw, 76px); line-height: 1; letter-spacing: -0.03em; color: var(--navy); }
.home-hero h1 em { color: var(--gold); }
.home-hero p { margin: 18px auto 0; font-size: 18px; color: var(--muted); max-width: 560px; }
.bento { max-width: 1180px; margin: 48px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); gap: 16px; }
.tile { border-radius: 26px; padding: 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; background: var(--white); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; position: relative; }
a.tile:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 18px 40px rgba(11,27,74,0.16); color: inherit; }
.tile-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tile-col { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--royal); }
.tile-k.gold-k { color: var(--gold-lt); }
.tile-title { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.08; color: var(--navy); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile-title.small { font-size: 24px; }
.tile-title.light { color: var(--white); }
.tile-tag { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--silver-lt); border-radius: 999px; padding: 3px 8px; }
.tile-go { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--royal); }
.tile-foot { margin-top: auto; font-size: 14px; color: #C9D3EA; }
.tile-list { display: flex; flex-direction: column; margin-top: 4px; }
.tile-li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.tile-li:first-child { border-top: 0; }
.tile-li span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-li small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--silver); flex-shrink: 0; }
.box.on { background: var(--royal); border-color: var(--royal); }
.t-event { grid-column: span 2; grid-row: span 2; }
.t-int { grid-column: span 2; background: var(--navy); color: var(--white); flex-direction: row; gap: 22px; }
.mini-grid { display: grid; grid-template-columns: repeat(5, 22px); grid-auto-rows: 14px; gap: 4px; align-content: center; }
.mini-grid span { border-radius: 4px; }
.t-onb { background: linear-gradient(160deg, #F1DE9E, var(--gold)); color: var(--navy); }
.t-onb .tile-k { color: var(--navy); }
.t-onb .tile-tag { background: rgba(255,255,255,0.5); color: var(--navy); }
.tile-person { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold-lt); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.t-stat { justify-content: space-between; font-size: 15px; color: var(--muted); line-height: 1.45; }
.t-stat b { color: var(--navy); }
.big-num { font-family: var(--serif); font-weight: 600; font-size: 56px; line-height: 1; color: var(--navy); }
.t-office { grid-column: span 3; flex-direction: row; gap: 24px; }
.mini-board { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-col { background: var(--silver-lt); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.mini-col > span:first-child { font-weight: 700; color: var(--navy); }
.mini-card { background: var(--white); border-radius: 8px; padding: 7px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-today { background: var(--royal); justify-content: space-between; }
.t-today .tile-foot { color: #D5DCEC; margin-top: 0; }
.home-foot { max-width: 1180px; margin: 56px auto 0; padding-top: 16px; border-top: 1px solid var(--silver); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.dock { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 30; display: flex; gap: 4px; background: var(--navy); padding: 7px; border-radius: 18px; box-shadow: 0 20px 40px rgba(11,27,74,0.3); max-width: calc(100vw - 24px); overflow-x: auto; }
.dock a { color: #D5DCEC; text-decoration: none; font-weight: 500; font-size: 14px; padding: 11px 16px; border-radius: 12px; white-space: nowrap; }
.dock a:hover { color: var(--white); background: var(--navy-2); }
.dock a[aria-current="page"] { background: var(--gold-lt); color: var(--navy); font-weight: 600; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-office { grid-column: span 2; flex-direction: column; }
  .t-office .tile-col { flex: none !important; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 10px 0 40px rgba(0,0,0,0.25); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(11,27,74,0.45); z-index: 35; }
  .sb-close { display: inline-flex; }
  .shell { background: var(--paper); }
  .mbar { display: flex; justify-content: space-between; align-items: center; background: var(--navy); padding: 12px 16px; position: sticky; top: 0; z-index: 30; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .t-event, .t-int, .t-office { grid-column: auto; grid-row: auto; }
  .t-int { flex-direction: column; }
  .mini-board { grid-template-columns: 1fr 1fr 1fr; }
  .home-hero { margin-top: 36px; }
  .dock a { padding: 10px 11px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } a.tile:hover, .stat:hover { transform: none; } }
@media print { .sidebar, .mbar, .dock, .scrim { display: none !important; } }

.demo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; background: var(--gold-soft); border-bottom: 1px solid var(--gold-lt); color: var(--gold-ink); padding: 10px 24px; font-size: 14px; }
.demo-bar b { color: var(--navy); }
@media screen { .off { display: none !important; } }
@media print {
  body { background: #FFFFFF; }
  .bar, .no-print, #toast, .skip, .side { display: none !important; }
  .wrap { padding: 0; }
  .card { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
  .card.dark { background: #FFFFFF; color: #000000; }
  .card.dark::after { display: none; }
  .in.cell { border: 0; padding: 0; }
  a { color: #000000; text-decoration: none; }
}
