/* Aneesh · Schedule — generated from the design system tokens.json */
:root,[data-theme="light"]{--sand:#e1b382;--sand-shadow:#c89666;--night:#2d545e;--night-shadow:#12343b;--surface-000:#f6ead9;--surface-100:#fbf4ea;--surface-200:#efdcc3;--material:rgba(251,244,234,0.72);--scrim:rgba(18,52,59,0.36);--ink:#12343b;--ink-muted:#44636a;--accent:#2d545e;--accent-hover:#12343b;--on-accent:#f6ead9;--line:#dcc19c;--line-strong:#2d545e;--focus:#2d545e;--danger:#9b3b26;--shadow-panel:0 12px 32px -12px rgba(18,52,59,0.28);--shadow-sheet:0 -8px 40px -8px rgba(18,52,59,0.30);color-scheme:light}
[data-theme="dark"]{--sand:#e1b382;--sand-shadow:#c89666;--night:#2d545e;--night-shadow:#12343b;--surface-000:#12343b;--surface-100:#1b3f47;--surface-200:#2d545e;--material:rgba(18,52,59,0.68);--scrim:rgba(0,0,0,0.5);--ink:#f6ead9;--ink-muted:#e1b382;--accent:#e1b382;--accent-hover:#c89666;--on-accent:#12343b;--line:#2d545e;--line-strong:#c89666;--focus:#e1b382;--danger:#f0a08a;--shadow-panel:0 12px 32px -12px rgba(0,0,0,0.55);--shadow-sheet:0 -8px 40px -8px rgba(0,0,0,0.6);color-scheme:dark}
:root{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-10:40px;--space-16:64px;--radius-sm:6px;--radius-md:12px;--radius-lg:22px;--radius-pill:999px;--font-display:"Fraunces", "Iowan Old Style", Georgia, serif;--font-sans:"Instrument Sans", "Segoe UI", system-ui, sans-serif;}
/* Aneesh · Schedule — component styles. Values come from tokens.css (var(--…)). */
body { margin: 0; background: var(--surface-000); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; }
.ak-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4); }
.ak-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.ak-eyebrow { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.ak-title { font-family: var(--font-display); font-size: 32px; line-height: 38px; font-weight: 500; margin: 0; }
.ak-heading { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 600; margin: 0; }
.ak-small { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* Button */
.ak-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font: 600 14px/20px var(--font-sans); padding: var(--space-3) 20px; border-radius: var(--radius-md);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.ak-btn:focus-visible, .ak-slot:focus-visible, .ak-day:focus-visible, .ak-type:focus-visible, .ak-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ak-btn--primary { background: var(--accent); color: var(--on-accent); }
.ak-btn--primary:hover { background: var(--accent-hover); }
.ak-btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.ak-btn--outline:hover { background: var(--surface-200); }
.ak-btn--quiet { background: transparent; color: var(--ink); padding-inline: var(--space-2); text-decoration: underline; text-underline-offset: 3px; }
.ak-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Day chips + time slots */
.ak-days { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-1); }
.ak-day { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--surface-100); color: var(--ink); cursor: pointer; font: inherit; }
.ak-day b { font: 600 18px/22px var(--font-display); }
.ak-day span { font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.ak-day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ak-day[aria-pressed="true"] span { color: var(--on-accent); }
.ak-day[disabled] { opacity: .45; cursor: not-allowed; }
.ak-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-2); }
.ak-slot { font: 600 14px/20px var(--font-sans); padding: 10px var(--space-2); border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: var(--surface-100); color: var(--ink); cursor: pointer; text-align: center; }
.ak-slot:hover { background: var(--surface-200); }
.ak-slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ak-empty { padding: var(--space-6); border: 1.5px dashed var(--line); border-radius: var(--radius-md); color: var(--ink-muted); text-align: center; }

/* Meeting type card */
.ak-type { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4); width: 100%; text-align: left;
  padding: var(--space-4) var(--space-6); border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--surface-100); color: var(--ink); cursor: pointer; font: inherit; }
.ak-type:hover { background: var(--surface-200); }
.ak-type[aria-pressed="true"] { border-color: var(--line-strong); background: var(--surface-200); }
.ak-type__glyph { width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--night-shadow); display: grid; place-items: center; }
.ak-type__glyph i { width: 14px; height: 14px; border-radius: 50%; background: var(--sand); display: block; }
.ak-type__name { font: 600 20px/26px var(--font-display); }
.ak-type__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.ak-type__go { font-weight: 600; font-size: 14px; }

/* Fields */
.ak-field { display: flex; flex-direction: column; gap: 6px; }
.ak-field label { font: 600 14px/20px var(--font-sans); }
.ak-input { font: 400 16px/24px var(--font-sans); padding: 10px var(--space-3); border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong);
  background: var(--surface-100); color: var(--ink); }
.ak-help { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.ak-error { font-size: 13px; line-height: 18px; color: var(--danger); font-weight: 600; }

/* Brand lockup */
.ak-lockup { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; }
.ak-lockup img { width: 40px; height: 40px; display: block; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); } /* keeps the night mark's edge on a night ground */
.ak-lockup__name { font: 600 22px/24px var(--font-display); }
.ak-lockup__sub { font: 600 11px/14px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }

/* —— Feel (apple-design): instant press feedback, materials, reduced motion —— */
.ak-btn, .ak-slot, .ak-day, .ak-type { transition: transform 100ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ak-btn:active, .ak-slot:active, .ak-day:active { transform: scale(0.97); }
.ak-type:active { transform: scale(0.985); }
.ak-title { letter-spacing: -0.015em; }
.ak-heading { letter-spacing: -0.01em; }

/* Header: a translucent material, content scrolls under it */
.ak-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) var(--space-4); background: var(--material); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.ak-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; pointer-events: none;
  background: linear-gradient(var(--material), rgba(0,0,0,0)); } /* scroll-edge fade instead of a hard divider */
.ak-header__tz { font: 600 13px/18px var(--font-sans); color: var(--ink); letter-spacing: .01em; }

/* Confirm sheet: modal step, scrim + rises from the bottom (enter and exit on the same path) */
.ak-sheet { background: var(--surface-100); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-sheet); padding: var(--space-6); }
.ak-sheet__grip { width: 36px; height: 5px; border-radius: var(--radius-pill); background: var(--line); margin: -8px auto var(--space-4); }
.ak-scrim { background: var(--scrim); }

@media (prefers-reduced-motion: reduce) {
  .ak-btn, .ak-slot, .ak-day, .ak-type { transition: background-color 150ms ease; }
  .ak-btn:active, .ak-slot:active, .ak-day:active, .ak-type:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .ak-header { background: var(--surface-100); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .ak-day, .ak-type, .ak-empty { border-color: var(--line-strong); }
}

/* Length picker (segmented, like Teams' duration) */
.ak-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--radius-md); background: var(--surface-200); margin-bottom: var(--space-6); width: fit-content; max-width: 100%; }
.ak-seg button { appearance: none; border: 0; background: transparent; color: var(--ink); font: 600 14px/20px var(--font-sans); min-height: 40px; min-width: 64px; padding: 8px 14px;
  border-radius: 9px; cursor: pointer; transition: transform 100ms ease-out, background-color 150ms ease-out; -webkit-tap-highlight-color: transparent; }
.ak-seg button:hover { background: var(--surface-100); }
.ak-seg button[aria-checked="true"] { background: var(--accent); color: var(--on-accent); }
.ak-seg button:active { transform: scale(0.97); }
.ak-seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ak-seg button:active { transform: none; } }
@media (prefers-contrast: more) { .ak-seg { box-shadow: inset 0 0 0 1.5px var(--line-strong); } }
