@font-face {
  font-family: Inter;
  src: url('/assets/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url('/assets/montserrat-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --canvas: #2396F9;
  --panel: #1076D2;
  --panel-deep: #0C4E8B;
  --yellow: #FFE163;
  --ink: #14181D;
  --fg: #fff;
  --hairline: rgba(255, 255, 255, .16);
  --radius: 18px;
  --shadow: 0 12px 28px rgba(10, 58, 103, .14);
  --display: Montserrat, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  color-scheme: dark;
  font-family: var(--body);
  color: var(--fg);
  background: var(--canvas);
  font-synthesis: none;
  scrollbar-color: var(--panel-deep) var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .75; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
h1, h2, h3, p, .request-title, .client-note { overflow-wrap: anywhere; }
h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
h2 { font-size: .875rem; line-height: 1.4; font-weight: 700; }
h3 { font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
p { line-height: 1.55; font-size: .875rem; }
.small { font-size: .75rem; line-height: 1.5; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.page { max-width: 1180px; margin: auto; padding: 16px 28px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; margin-bottom: 12px; }
.logo { display: block; width: 126px; height: auto; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(10, 58, 103, .32)); }
.topbar-meta { display: flex; align-items: center; gap: 12px; }
.portal-label { background: var(--panel); border-radius: 999px; padding: 8px 12px; font-size: .6875rem; }
.notice { background: var(--yellow); color: var(--ink); font-size: .6875rem; padding: 8px 12px; border-radius: 999px; font-weight: 600; }
.panel { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow); }
.project-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 22px; margin-bottom: 12px; }
.project-header > div { min-width: 0; }
.client-name { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 500; margin-bottom: 5px; }
.client-name svg { width: 15px; height: 15px; }
.project-reference { font-size: .6875rem; margin-left: 5px; }
.header-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.status { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 7px 11px; font-size: .6875rem; font-weight: 600; }
.status::before { content: ''; width: 6px; height: 6px; background: white; border-radius: 50%; flex: none; }
.status[data-status="Awaiting client"], .status[data-status="At risk"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.status[data-status="Awaiting client"]::before, .status[data-status="At risk"]::before { background: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--yellow); color: var(--ink); border: 1px solid transparent; cursor: pointer; border-radius: 999px; padding: 11px 16px; min-height: 44px; font: 700 .75rem / 1.4 var(--display); text-decoration: none; transition: background .2s; }
.button:hover { background: #FFEC98; }
.button-quiet { background: transparent; color: var(--fg); border-color: rgba(255, 255, 255, .45); }
.button-quiet:hover { background: var(--panel-deep); }
.button svg { width: 18px; height: 18px; }
.button[aria-disabled="true"] { cursor: not-allowed; background: var(--yellow); opacity: .72; }

.content-grid { display: grid; grid-template-columns: minmax(285px, .95fr) minmax(0, 1.7fr); gap: 12px; align-items: start; }
.content-grid > * { min-width: 0; }
.deadline { grid-column: 1; grid-row: 1; padding: 16px 20px; border-color: rgba(255, 255, 255, .3); }
.current-task { grid-column: 2; grid-row: 1; align-self: stretch; padding: 18px 22px; }
.requests { grid-column: 2; grid-row: 2; padding: 16px 22px 8px; }
.correspondence { grid-column: 1; grid-row: 2; }
.section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.section-title > svg { width: 18px; height: 18px; }
.deadline .section-title { margin-bottom: 13px; }
.calendar { position: relative; background: rgba(12, 78, 139, .24); color: var(--fg); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; box-shadow: 0 4px 0 rgba(10, 58, 103, .25), 0 10px 18px rgba(10, 58, 103, .14); padding: 0 16px 8px; }
.calendar-bindings { position: absolute; left: 28px; right: 28px; top: -8px; display: flex; justify-content: space-between; pointer-events: none; }
.calendar-bindings i { width: 7px; height: 16px; background: var(--yellow); border-radius: 999px; box-shadow: 1px 1px 0 rgba(10, 58, 103, .25); }
.calendar-date { border-bottom: 1px solid rgba(255, 255, 255, .2); text-align: center; padding: 8px 0 5px; font: 700 .6875rem / 1.4 var(--display); letter-spacing: .05em; }
.calendar-day { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 5px 0; }
.calendar-day > strong { display: block; color: var(--yellow); font: 800 clamp(3.5rem, 5vw, 4rem) / 1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.calendar-day > span { max-width: 6em; font-size: .6875rem; font-weight: 600; line-height: 1.4; }
.live-clock { display: flex; align-items: flex-start; justify-content: center; gap: 13px; padding-top: 3px; }
.live-clock > span { min-width: 35px; text-align: center; }
.live-clock strong { display: block; font: 700 1.0625rem / 1 var(--display); font-variant-numeric: tabular-nums; }
.live-clock small { display: block; font-size: .6875rem; margin-top: 3px; }
.live-clock > b { font-size: .875rem; line-height: 1; font-weight: 600; }
.live-clock strong.digit-tick { animation: digit-change .24s ease-out; }
.delivery { font-size: .6875rem; font-weight: 600; margin-top: 12px; }
.deadline > .small { font-size: .6875rem; margin-top: 2px; }
.current-task h3 { margin-bottom: 9px; }
.current-task > p { max-width: 65ch; }
.client-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: .8125rem; line-height: 1.55; }
.client-note strong { font-weight: 700; margin-right: 5px; }
.section-title > .work-icon { width: 26px; height: 26px; color: var(--yellow); }
.work-icon[data-active="true"] .code-left { animation: code-work 2.4s ease-in-out infinite; }
.work-icon[data-active="true"] .code-right { animation: code-work 2.4s .4s ease-in-out infinite; }
.work-icon[data-active="true"] .code-cursor { animation: code-type 2.4s .2s ease-in-out infinite; }
@keyframes code-work { 0%, 75%, 100% { transform: translateX(0); } 30% { transform: translateX(-1px); } 50% { transform: translateX(1px); } }
@keyframes code-type { 0%, 70%, 100% { opacity: 1; } 35% { opacity: .25; } }
@keyframes digit-change { from { transform: translateY(-2px); opacity: .65; } to { transform: translateY(0); opacity: 1; } }

.requests .section-title { margin-bottom: 3px; }
.count-badge { margin-left: auto; border-radius: 999px; background: var(--yellow); color: var(--ink); padding: 4px 9px; font-size: .6875rem; font-weight: 700; white-space: nowrap; }
.request-list { list-style: none; margin: 0; padding: 0; }
.request-list > li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.request-list > li:last-child { border-bottom: 0; }
.request-icon { width: 18px; height: 18px; border: 1.5px solid white; border-radius: 5px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.request-icon svg { width: 14px; height: 14px; }
.request-title { display: block; font-weight: 600; font-size: .8125rem; line-height: 1.4; }
.request-detail { margin-top: 2px; font-size: .6875rem; line-height: 1.5; }
details { border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 2px; }
summary { padding: 9px 0; min-height: 32px; cursor: pointer; font-size: .6875rem; font-weight: 600; }
summary::marker { color: var(--yellow); }
.received-list .request-icon { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.email-button { display: flex; width: 100%; min-height: 58px; padding: 14px 18px; background: var(--panel); color: var(--fg); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow); }
.email-button:hover { background: var(--panel-deep); }
.email-button[aria-disabled="true"] { background: var(--panel); color: var(--fg); }
.email-button > svg:first-child { color: var(--yellow); }
.email-button > span { flex: 1; }
.email-arrow { margin-left: auto; }
.dashboard-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; padding: 9px 16px; background: var(--panel-deep); border-radius: 10px; }
.dashboard-footer p { font-size: .6875rem; }
.dashboard-footer .stale { flex-basis: 100%; font-weight: 600; }
.message { padding: 32px; min-height: 200px; }
.message h1 { font-size: 1.65rem; }
.message p { margin-top: 12px; max-width: 60ch; }
.message button { margin-top: 18px; }
.skip { position: absolute; top: 8px; left: 8px; background: var(--yellow); color: var(--ink); padding: 12px 20px; z-index: 10; transform: translateY(-150%); border-radius: 10px; }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .page { padding: 14px; }
  .topbar { margin-bottom: 14px; }
  .topbar-meta { flex-direction: column; align-items: flex-end; gap: 5px; }
  .portal-label, .notice { font-size: .6875rem; padding: 7px 9px; }
  .logo { width: 116px; }
  .project-header { align-items: flex-start; flex-direction: column; padding: 18px; gap: 14px; }
  .header-tools { justify-content: space-between; width: 100%; }
  .content-grid { display: flex; flex-direction: column; gap: 12px; }
  .content-grid > * { width: 100%; }
  .deadline { padding: 20px; }
  .current-task, .requests { padding: 20px; }
  .requests { padding-bottom: 10px; }
  .calendar { padding: 0 18px 12px; }
  .calendar-date { font-size: .6875rem; padding: 10px 0 7px; }
  .calendar-day { padding: 10px 0; }
  .calendar-day > strong { font-size: 4.5rem; }
  .calendar-day > span { font-size: .8125rem; }
  .live-clock { gap: 20px; }
  .live-clock strong { font-size: 1.25rem; }
  .live-clock small { font-size: .6875rem; }
  .delivery { font-size: .75rem; margin-top: 15px; }
  .deadline > .small { font-size: .6875rem; }
  .section-title { margin-bottom: 14px; }
  h2 { font-size: .875rem; }
  h3 { font-size: 1.1875rem; }
  .current-task > p { font-size: .875rem; }
  .client-note { font-size: .8125rem; }
  .request-list > li { padding: 12px 0; }
  .request-title { font-size: .875rem; }
  .request-detail { font-size: .75rem; }
  summary { font-size: .75rem; padding: 12px 0; min-height: 44px; }
  .email-button { font-size: .8125rem; }
  .dashboard-footer { flex-direction: column; padding: 12px 16px; }
  .dashboard-footer p { font-size: .6875rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
