@font-face{font-family:'Jost';font-weight:400;font-style:normal;font-display:swap;src:url('/assets/jost-400.ttf') format('truetype')}
@font-face{font-family:'Jost';font-weight:500;font-style:normal;font-display:swap;src:url('/assets/jost-500.ttf') format('truetype')}
@font-face{font-family:'Jost';font-weight:600;font-style:normal;font-display:swap;src:url('/assets/jost-600.ttf') format('truetype')}

:root{
  --ink:#0b0b0c; --ink-2:#2e2e38; --muted:#5d5d6a; --line:#e4e4e8; --line-2:#d2d2d8;
  --paper:#ffffff; --wash:#f6f6f4; --yellow:#fbd023; --yellow-ink:#7a5d00; --focus:#fbd023;
  --radius:10px; --max:1120px;
  --font:'Jost',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:128px}
body{margin:0;font-family:var(--font);color:var(--ink-2);background:var(--wash);font-size:16px;line-height:1.6;font-feature-settings:'tnum' 1}
a{color:var(--ink);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{text-decoration-color:var(--yellow)}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:4px}
img{display:block;max-width:100%;height:auto}
.muted{color:var(--muted)}
.small{font-size:13px}
svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* Top bar */
.topbar{position:sticky;top:0;z-index:50;background:var(--ink);color:#fff;padding-top:env(safe-area-inset-top)}
.topbar-inner{max-width:var(--max);margin:0 auto;display:flex;align-items:center;gap:16px;height:60px;padding:0 24px}
.brand img{width:116px}
.brand-divider{width:1px;height:22px;background:#3c3c44}
.brand-section{font-size:15px;font-weight:500;letter-spacing:.01em;color:#e9e9ec;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.topbar-actions form{margin:0}
.icon-btn,.signout{appearance:none;border:1px solid #3c3c44;background:transparent;color:#fff;height:36px;border-radius:8px;display:inline-flex;align-items:center;gap:8px;font:500 14px var(--font);cursor:pointer;padding:0 12px}
.icon-btn{width:36px;padding:0;justify-content:center}
.icon-btn:hover,.signout:hover{border-color:var(--yellow);color:var(--yellow)}
.tabs{border-top:1px solid #1f1f24;background:var(--ink)}
.tabs-inner{max-width:var(--max);margin:0 auto;padding:0 24px;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.tabs-inner::-webkit-scrollbar{display:none}
.tabs a{color:#bdbdc6;text-decoration:none;font-size:14px;font-weight:500;padding:12px 12px 11px;border-bottom:3px solid transparent;white-space:nowrap}
.tabs a:hover{color:#fff}
.tabs a[aria-current="page"]{color:#fff;border-bottom-color:var(--yellow)}

/* Hero band */
.hero{background:var(--ink);color:#fff;border-bottom:4px solid var(--yellow)}
.hero-inner{max-width:var(--max);margin:0 auto;padding:56px 24px 48px}
.eyebrow{margin:0 0 10px;font-size:13px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--yellow)}
.eyebrow a{color:var(--yellow);text-decoration:none}
.eyebrow a:hover{text-decoration:underline}
.hero h1{margin:0;font-size:clamp(32px,5vw,52px);line-height:1.08;font-weight:500;letter-spacing:-.015em;color:#fff;max-width:18ch}
.hero-meta{margin:14px 0 0;color:#bdbdc6;font-size:15px}
.kpis{margin:36px 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#2a2a31;border:1px solid #2a2a31;border-radius:var(--radius);overflow:hidden}
.kpis div{background:#121215;padding:18px 20px}
.kpis dt{font-size:13px;color:#a5a5b0;margin:0 0 6px}
.kpis dd{margin:0;font-size:28px;font-weight:500;color:#fff;line-height:1.1}

/* Page */
.page{max-width:var(--max);margin:0 auto;padding:48px 24px 72px}
.block{margin:0 0 56px}
.block>h2,.prose h3{font-size:24px;line-height:1.25;font-weight:500;color:var(--ink);margin:0 0 8px;letter-spacing:-.005em}
.lead{margin:0 0 20px;color:var(--muted);max-width:70ch}
.note{margin:14px 0 0;padding:12px 16px;background:#fff8d6;border-left:3px solid var(--yellow);color:var(--ink-2);font-size:14px;border-radius:0 8px 8px 0}

/* Tables */
.table-wrap{overflow-x:auto;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);margin:12px 0 20px}
table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;font-weight:500;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);background:#fafafa;padding:12px 16px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:11px 16px;border-bottom:1px solid var(--line);vertical-align:top}
tbody tr:last-child td{border-bottom:none}
tbody tr:hover td{background:#fcfcfb}
td.n,th.n{text-align:right;white-space:nowrap}
td.nw{white-space:nowrap}
tr.total td{font-weight:600;color:var(--ink);background:#fafafa;border-top:1px solid var(--line-2)}
table.summary td:first-child a{font-weight:500;text-decoration:none;border-bottom:2px solid var(--yellow)}

/* Month cards */
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:16px}
.card{display:flex;flex-direction:column;gap:10px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:20px;text-decoration:none;color:var(--ink-2);min-width:0;transition:border-color .15s,transform .15s}
.card:hover{border-color:var(--ink);transform:translateY(-2px)}
.card-kicker{font-size:13px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.card-figure{font-size:30px;font-weight:500;color:var(--ink);line-height:1.1}
.card-figure small{font-size:15px;color:var(--muted);font-weight:400}
.card-text{font-size:14px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.card-link{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-weight:500;font-size:14px;color:var(--ink)}
.card:hover .card-link svg{transform:translateX(3px)}
.card-link svg{transition:transform .15s}

/* Files */
.files{list-style:none;margin:16px 0 0;padding:0;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.files li+li{border-top:1px solid var(--line)}
.files a{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:14px;padding:14px 18px;text-decoration:none;color:var(--ink)}
.files a:hover{background:#fcfcfb}
.files a:hover .file-dl{background:var(--yellow);border-color:var(--yellow)}
.file-icon{color:var(--muted)}
.file-name{font-weight:500}
.file-meta{font-size:13px;color:var(--muted);white-space:nowrap}
.file-dl{width:34px;height:34px;border:1px solid var(--line-2);border-radius:8px;display:grid;place-items:center}

/* Month page */
.jump{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 32px}
.jump a{font-size:14px;text-decoration:none;color:var(--ink);background:var(--paper);border:1px solid var(--line);padding:6px 12px;border-radius:999px}
.jump a:hover{border-color:var(--ink)}
.prose{max-width:none}
.prose h3{margin:48px 0 10px;padding-top:4px}
.prose h3:first-child{margin-top:0}
.prose h3::before{content:'';display:block;width:32px;height:3px;background:var(--yellow);margin-bottom:14px}
.prose h4{font-size:17px;font-weight:600;color:var(--ink);margin:26px 0 8px}
.prose p{max-width:72ch;margin:0 0 14px}
.prose p.small{color:var(--muted)}
.prose ul{margin:0 0 12px;padding:0;list-style:none;max-width:80ch}
.prose li{position:relative;padding:7px 0 7px 22px;border-bottom:1px dashed var(--line)}
.prose li::before{content:'';position:absolute;left:4px;top:17px;width:7px;height:7px;background:var(--yellow);border-radius:2px}
.prose a{color:var(--ink)}
details.timesheet{margin:48px 0 0;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}
details.timesheet>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:16px;padding:18px 20px;font-size:20px;font-weight:500;color:var(--ink)}
details.timesheet>summary::-webkit-details-marker{display:none}
details.timesheet>summary .muted{font-size:14px;font-weight:400;margin-left:auto}
details.timesheet table{min-width:760px}
details.timesheet td:nth-child(5){min-width:260px}
.prose .table-wrap table{min-width:420px}
table.summary{min-width:600px}
table.summary td:first-child{white-space:nowrap}
details.timesheet>summary::after{content:'';width:10px;height:10px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg);margin:-4px 4px 0 0;transition:transform .15s}
details.timesheet[open]>summary::after{transform:rotate(-135deg);margin-top:4px}
details.timesheet .table-wrap{margin:0;border:none;border-top:1px solid var(--line);border-radius:0 0 var(--radius) var(--radius)}
.pager{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:56px}
.pager a{display:flex;flex-direction:column;gap:2px;padding:18px 20px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;color:var(--ink);font-weight:500;font-size:18px}
.pager a:hover{border-color:var(--ink)}
.pager small{font-size:13px;color:var(--muted);font-weight:400;letter-spacing:.08em;text-transform:uppercase}
.pager .next{text-align:right;grid-column:2}

/* Footer */
.footer{background:var(--paper);border-top:1px solid var(--line)}
.footer-inner{max-width:var(--max);margin:0 auto;padding:32px 24px calc(32px + env(safe-area-inset-bottom));font-size:13px;color:var(--ink-2)}
.footer img{width:98px;margin-bottom:12px}
.footer p{margin:0 0 4px}

/* Sign-in */
body.auth{background:var(--paper)}
.auth-shell{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
.auth-brand{background:var(--ink);color:#fff;padding:48px 56px;display:flex;flex-direction:column;justify-content:space-between;gap:40px;position:relative;overflow:hidden}
.auth-brand::after{content:'';position:absolute;right:-120px;bottom:-120px;width:360px;height:360px;border:56px solid var(--yellow);border-radius:50%;opacity:.95}
.auth-brand img{width:168px;position:relative;z-index:1}
.auth-brand>div{position:relative;z-index:1;max-width:30ch}
.auth-rule{display:block;width:48px;height:4px;background:var(--yellow);margin-bottom:20px}
.auth-kicker{margin:0 0 8px;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--yellow);font-weight:500}
.auth-title{margin:0;font-size:clamp(32px,4vw,46px);line-height:1.08;font-weight:500;letter-spacing:-.015em}
.auth-sub{margin:16px 0 0;color:#bdbdc6;font-size:17px}
.auth-foot{margin:0;color:#8d8d98;font-size:13px;position:relative;z-index:1}
.auth-form{display:flex;flex-direction:column;justify-content:center;padding:48px clamp(24px,6vw,88px);max-width:560px;width:100%}
.auth-mark{width:132px;margin-bottom:40px;display:none}
.auth-form h1{margin:0 0 6px;font-size:34px;font-weight:500;color:var(--ink);letter-spacing:-.01em}
.auth-form>p{margin:0 0 24px}
.auth-form form{display:flex;flex-direction:column}
.auth-form label{font-size:14px;font-weight:500;color:var(--ink);margin:0 0 6px}
.auth-form input{font:400 16px var(--font);color:var(--ink);height:48px;padding:0 14px;border:1px solid var(--line-2);border-radius:8px;background:#fff;margin:0 0 18px;width:100%}
.auth-form input:hover{border-color:#a9a9b2}
.auth-form input:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px rgba(251,208,35,.55)}
.primary{appearance:none;border:none;height:50px;border-radius:8px;background:var(--ink);color:#fff;font:500 16px var(--font);cursor:pointer;margin-top:6px;position:relative}
.primary:hover{background:#26262c}
.primary::after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--yellow);border-radius:0 0 8px 8px}
.error,.notice{margin:0 0 20px;padding:12px 14px;border-radius:8px;font-size:14px}
.error{background:#fdecec;color:#8a1c1c;border:1px solid #f3c4c4}
.notice{background:#fff8d6;color:var(--ink-2);border:1px solid #f1df8a}
.auth-form .small{margin-top:24px}

@media (max-width:960px){
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .auth-shell{grid-template-columns:1fr}
  .auth-brand{display:none}
  .auth-mark{display:block}
  .auth-form{padding:56px 24px;max-width:none}
}
@media (max-width:640px){
  html{scroll-padding-top:116px}
  .topbar-inner{padding:0 16px;gap:12px;height:56px}
  .brand img{width:96px}
  .brand-section{font-size:14px}
  .signout span{display:none}
  .signout{width:36px;padding:0;justify-content:center}
  .tabs-inner{padding:0 10px}
  .hero-inner{padding:36px 16px 32px}
  .kpis dd{font-size:22px}
  .kpis div{padding:14px 16px}
  .page{padding:32px 16px 56px}
  .cards{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;margin:16px -16px 0;padding:0 16px 8px;scrollbar-width:thin}
  .card{flex:0 0 82%;scroll-snap-align:start}
  .files a{grid-template-columns:auto 1fr auto;padding:14px}
  .file-meta{grid-column:2;grid-row:2;margin-top:-10px}
  .file-dl{grid-column:3;grid-row:1/3}
  .file-icon{grid-row:1/3}
  td,th{padding:10px 12px}
  .pager a{font-size:16px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

@media print{
  @page{size:A4;margin:14mm}
  body{background:#fff;font-size:10pt;color:#111}
  .topbar,.tabs,.jump,.pager,.topbar-actions,.file-dl{display:none!important}
  .hero{background:#fff;color:#111;border-bottom:2px solid var(--yellow)}
  .hero-inner{padding:0 0 12px}
  .hero h1,.eyebrow,.eyebrow a{color:#111}
  .hero-meta{color:#444}
  .kpis{background:#ccc;border-color:#ccc;margin-top:12px}
  .kpis div{background:#fff;padding:8px 10px}
  .kpis dt{color:#555}.kpis dd{color:#111;font-size:16pt}
  .page{padding:12px 0}
  .block{break-inside:auto;margin-bottom:20px}
  .block+.block,#months,#downloads{break-before:page}
  .cards{display:grid;grid-template-columns:1fr 1fr;overflow:visible}
  .card{break-inside:avoid;border-color:#ccc}
  .card-text{-webkit-line-clamp:unset;display:block}
  .table-wrap{overflow:visible;border-color:#ccc}
  table,details.timesheet table,table.summary{min-width:0!important}
  details.timesheet td:nth-child(5){min-width:0}
  tr{break-inside:avoid}
  thead{display:table-header-group}
  .prose h3{break-after:avoid}
  #production-releases,#hours-by-work-item{break-before:page}
  details.timesheet{break-before:page;border:none}
  details.timesheet>summary::after{display:none}
  .footer{border-top:1px solid #ccc}
  a{text-decoration:none;color:#111}
}
