/* live.webdirections — AI Engineer Melbourne brand */

/* Enable cross-document view transitions on supporting browsers
   (Chrome 126+, Safari 18+). Older browsers ignore this rule and navigate
   instantly, which is also fine. */
@view-transition { navigation: auto; }

/* Persistent chrome (header, bottom nav, filter strip) keeps a stable identity
   across navigations — the browser morphs position/size instead of cross-fading,
   and our animation overrides below make sure no fade/slide is applied to them. */
.app-header      { view-transition-name: app-header; }
.bottomnav       { view-transition-name: bottomnav; }
.schedule-sticky { view-transition-name: schedule-filters; }

::view-transition-group(app-header),
::view-transition-group(bottomnav),
::view-transition-group(schedule-filters) {
  animation-duration: 0s;
}
::view-transition-old(app-header),
::view-transition-new(app-header),
::view-transition-old(bottomnav),
::view-transition-new(bottomnav),
::view-transition-old(schedule-filters),
::view-transition-new(schedule-filters) {
  animation: none;
}

/* Default content transition — fade + subtle vertical slide. The outgoing
   content drifts up slightly as it fades; the incoming content rises from
   below as it fades in. Easing is iOS-style (cubic-bezier(.4,0,.2,1)) so it
   feels in-tune with the rest of the UI. */
::view-transition-old(root) {
  animation: 220ms cubic-bezier(0.4, 0, 0.2, 1) both vt-fade-out-up;
}
::view-transition-new(root) {
  animation: 260ms cubic-bezier(0.4, 0, 0.2, 1) both vt-fade-in-up;
}

@keyframes vt-fade-out-up {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-4px); }
}
@keyframes vt-fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

:root {
  /* Brand palette (from AI Engineer style guide) */
  --indigo: #4F46E5;
  --indigo-dark: #3730A3;
  --indigo-lite: #EEF2FF;
  --indigo-mid: #C7D2FE;
  --ink: #111827;
  --ink-mid: #374151;
  --ink-light: #6B7280;
  --border: #E5E7EB;
  --card-bg: #F9FAFB;
  --white: #FFFFFF;

  /* Semantic */
  --bg: var(--card-bg);
  --surface: var(--white);
  --muted: var(--ink-light);
  --fav: var(--indigo);
  --current: #FFF8DC;
  --current-border: #F4C453;
  --success-bg: #ECFDF5;
  --success-ink: #065F46;
  --error-bg: #FEF2F2;
  --error-ink: #991B1B;

  --radius: 12px;
  --shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
  --nav-h: 64px;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--indigo); }
a:hover { color: var(--indigo-dark); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, .display { font-family: var(--font-display); letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.app-header {
  background: #000;
  color: var(--white);
  padding-top: env(safe-area-inset-top);
  display: flex;
  justify-content: center;
  align-items: center;
}
.app-header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.app-header-logo {
  width: clamp(180px, 25vw, 360px);
  height: auto;
  display: block;
}

/* ---------- Main ---------- */
.app-main { padding: 16px; max-width: 720px; margin: 0 auto; }

/* Agents tab: full-bleed embedded iframe filling whatever space is left
   between the header and the bottom nav. Done with explicit-height flex column
   so the iframe inherits a real pixel height instead of falling back to its
   ~150px intrinsic default. */
body.page-agents {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;   /* override the default nav-height reservation */
}
body.page-agents .app-header { flex: 0 0 auto; }
body.page-agents .app-main {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  display: flex;
  background: var(--white);
  /* Re-reserve space for the fixed bottom nav so the iframe doesn't slide
     underneath it. */
  margin-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
.agents-embed {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  background: var(--white);
}
.agents-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
}

/* ---------- Flashes ---------- */
.flashes { padding: 8px 16px 0; max-width: 720px; margin: 0 auto; }
.flash { padding: 10px 14px; border-radius: var(--radius); margin: 8px 0; font-size: 14px; }
.flash-success { background: var(--success-bg); color: var(--success-ink); }
.flash-error { background: var(--error-bg); color: var(--error-ink); }

/* ---------- Wi-Fi card (on News page) ---------- */
.wifi-card {
  background: var(--indigo-lite);
  border: 1px solid var(--indigo-mid);
  color: var(--indigo-dark);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 16px;
  font-size: 14px;
}
.wifi-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-family: var(--font-display); font-weight: 700; }
.wifi-icon { display: inline-flex; color: var(--indigo); }
.wifi-line { margin-top: 4px; }
.wifi-notes { font-size: 12px; opacity: 0.85; margin-top: 2px; }

/* ---------- News ---------- */
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.news-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.news-item.is-pinned { border-color: var(--indigo-mid); box-shadow: 0 0 0 2px var(--indigo-lite); }
.news-item-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-light); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.news-pin { font-size: 14px; }
.news-item-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; margin: 0 0 8px; line-height: 1.25; }
.news-item-body { font-size: 14px; color: var(--ink-mid); line-height: 1.55; }
.news-item-body p { margin: 0 0 10px; }
.news-item-body p:last-child { margin-bottom: 0; }
.news-item-body a { color: var(--indigo); }

.news-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-light);
}
.news-empty-icon { display: inline-flex; color: var(--ink-light); margin-bottom: 8px; }
.news-empty h2 { font-family: var(--font-display); color: var(--ink-mid); margin: 8px 0 4px; font-size: 18px; }

/* ---------- News admin composer ---------- */
.news-composer {
  background: var(--surface);
  border: 1px solid var(--indigo-mid);
  border-radius: var(--radius);
  padding: 18px;
  margin: 16px 0 0;
}
.news-composer-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.news-composer-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}
.news-composer-form .field {
  display: block;
  margin-bottom: 12px;
}
.news-composer-form .field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.news-composer-form input[type="text"],
.news-composer-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.news-composer-form input[type="text"]:focus,
.news-composer-form textarea:focus {
  outline: 2px solid var(--indigo);
  border-color: var(--indigo);
}
.news-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.news-composer-pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
  cursor: pointer;
}
.news-composer-pin input {
  width: 16px;
  height: 16px;
}

.news-item-meta { position: relative; }
.news-item-admin {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.news-item-edit,
.news-item-delete {
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.news-item-edit { color: var(--indigo-dark); }
.news-item-edit:hover { background: var(--indigo-lite); }
.news-item-delete { color: var(--error-ink); }
.news-item-delete:hover { background: var(--error-bg); }
.news-item-delete-form { display: inline-flex; margin: 0; }

.news-item.is-editing { border-color: var(--indigo); box-shadow: 0 0 0 2px var(--indigo-lite); }
.news-item-editing-flag {
  color: var(--indigo);
  font-weight: 700;
}

.news-composer-buttons {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.news-composer .btn-secondary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* ---------- Sticky filter band ---------- */
.schedule-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  margin: 0 -16px;
  padding: 10px 16px 6px;
  border-bottom: 1px solid var(--border);
}
.schedule-sticky .tabs-row { margin-bottom: 8px; }
.schedule-sticky .track-pills { padding-bottom: 4px; margin-bottom: -4px; }

/* ---------- Tabs & view toggle ---------- */
.tabs-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; flex-wrap: wrap; }
.view-toggle {
  display: flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--border);
  gap: 2px;
}
.view-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 10px; border-radius: 999px; text-decoration: none; color: var(--ink-light);
  line-height: 0;
}
.view-btn.is-active { background: var(--ink); color: var(--white); }

.tabs {
  display: flex; flex: 1;
  min-width: 160px;
  background: var(--surface);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--border);
  gap: 2px;
}
.tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-light);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.tab.is-active { background: var(--ink); color: var(--white); }

/* ---------- Track pills ---------- */
.track-pills {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px;
  scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
}
.track-pills::-webkit-scrollbar { display: none; }
.pill {
  --track: var(--ink-light);
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--track);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--track);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pill::before {
  content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 999px;
  background: var(--track);
}
.pill[data-track="all"] { --track: var(--ink); }
.pill[data-track="all"]::before { display: none; }
.pill.is-active {
  background: var(--track);
  color: var(--white);
  border-color: var(--track);
}
.pill.is-active::before { background: var(--white); }
.pill[data-track="all"].is-active::before { display: none; }

.pill.pill-track-keynote { --track: #D89B00; }
.pill.pill-track-ai-engineering { --track: var(--indigo); }
.pill.pill-track-software-engineering { --track: #059669; }
.pill.pill-track-leadership { --track: #7C3AED; }
.pill.pill-track-hallway { --track: #EA580C; }
.pill.pill-track-workshop { --track: #DB2777; }

/* Track dots (in rows) */
.track-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 999px;
  background: var(--ink-light); margin-right: 6px;
}
.track-keynote { background: #D89B00; }
.track-ai-engineering { background: var(--indigo); }
.track-software-engineering { background: #059669; }
.track-leadership { background: #7C3AED; }
.track-hallway { background: #EA580C; }
.track-workshop { background: #DB2777; }

/* ---------- Day picker (inline with tabs) ---------- */
.day-picker {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--border);
}
.day-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-light);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.2;
}
.day-pick.is-active { background: var(--ink); color: var(--white); }

/* ---------- Session list ---------- */
.session-list {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 1px;
  background: var(--border); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.session-row {
  display: flex; align-items: stretch; background: var(--surface);
  position: relative;
}
.session-row.is-current { background: var(--current); box-shadow: inset 3px 0 0 var(--current-border); }
.session-row-main {
  flex: 1; display: flex; gap: 14px; padding: 12px 14px;
  text-decoration: none; color: inherit;
  align-items: center;
}
.session-row-main.is-static { cursor: default; }
.session-row.is-static .session-row-body { color: var(--ink-light); }
.session-row.is-static .session-row-title { font-weight: 600; color: var(--ink-mid); }
.session-row-time {
  min-width: 60px;
  display: flex; flex-direction: column; gap: 2px;
}
.session-row-start { font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.1; }
.session-row-dur { font-size: 11px; color: var(--ink-light); line-height: 1.1; }
.session-row-body { flex: 1; min-width: 0; }
.session-row-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.session-row-meta { font-size: 12px; color: var(--ink-light); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.session-row-speaker { font-weight: 600; color: var(--ink-mid); }
.session-row-track::before { content: '· '; }

.fav-toggle {
  background: transparent; border: 0; padding: 0 14px; color: var(--border);
  display: inline-flex; align-items: center; justify-content: center;
}
.fav-toggle.is-fav { color: var(--indigo); }
.fav-icon { display: inline-flex; }
.fav-toggle.big {
  padding: 12px 16px; gap: 10px; background: var(--indigo-lite); border-radius: var(--radius);
  width: 100%; justify-content: flex-start; color: var(--indigo-dark);
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  border: 1px solid var(--indigo-mid);
}
.fav-toggle.big .fav-icon { color: var(--indigo); }
.fav-toggle.big.is-fav { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.fav-toggle.big.is-fav .fav-icon { color: var(--white); }

/* ---------- Grid view ---------- */
.grid { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.grid-track { background: var(--surface); border-radius: var(--radius); padding: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.grid-track-header {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; margin-bottom: 12px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--indigo);
}
.grid-track-sessions { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.grid-card { display: flex; gap: 8px; border-radius: 10px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); }
.grid-card.is-current { background: var(--current); border-color: var(--current-border); }
.grid-card-main { flex: 1; text-decoration: none; color: inherit; display: block; }
.grid-card-time { font-size: 12px; color: var(--ink-light); font-weight: 500; }
.grid-card-title { font-size: 14px; font-weight: 600; margin-top: 2px; line-height: 1.3; }
.grid-card-speaker { font-size: 12px; color: var(--ink-mid); margin-top: 4px; font-weight: 500; }

/* ---------- Empty ---------- */
.empty { padding: 32px 16px; text-align: center; color: var(--ink-light); }

/* ---------- Bottom nav ---------- */
.bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-around; align-items: stretch;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 20;
}
.bottomnav-item {
  flex: 1; text-align: center; text-decoration: none; color: var(--ink-light);
  display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; padding: 6px 4px;
}
.bottomnav-item.is-active { color: var(--indigo); }
.bottomnav-icon { display: inline-flex; }
.bottomnav-label { font-weight: 500; }

/* ---------- Session sheet ---------- */
.session-sheet {
  border: 0; padding: 0; margin: 0;
  width: 100%; max-width: 720px;
  height: 90vh;
  max-height: 90vh;
  border-radius: 16px 16px 0 0;
  background: var(--surface); color: var(--ink);
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  inset: auto auto 0 50%;
  box-shadow: 0 -12px 40px rgba(17, 24, 39, 0.25);
  overflow: hidden;
}
.session-sheet[open] { display: flex; flex-direction: column; }
.session-sheet::backdrop { background: rgba(17, 24, 39, 0.45); }
.session-sheet[open] { animation: sheetUp 0.24s cubic-bezier(0.2, 0.7, 0.2, 1); }
.session-sheet[open]::backdrop { animation: backdropIn 0.2s ease-out; }
.session-sheet.is-closing { animation: sheetDown 0.18s ease-in forwards; pointer-events: none; }
.session-sheet.is-closing::backdrop { animation: backdropOut 0.18s ease-in forwards; }
@keyframes sheetUp {
  from { transform: translate(-50%, 100%); }
  to { transform: translate(-50%, 0); }
}
@keyframes sheetDown {
  from { transform: translate(-50%, 0); }
  to { transform: translate(-50%, 100%); }
}
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdropOut { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .session-sheet[open], .session-sheet.is-closing,
  .session-sheet[open]::backdrop, .session-sheet.is-closing::backdrop {
    animation: none;
  }
}
.session-detail-header {
  padding: 20px 56px 14px 20px; position: relative;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.session-detail-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.session-detail-footer {
  flex: 0 0 auto;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.session-detail-meta {
  font-size: 12px; color: var(--ink-light); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px; font-weight: 600;
  flex-wrap: wrap;
}
.session-detail-meta .meta-track { display: inline-flex; align-items: center; gap: 6px; }
.session-detail-meta .meta-sep { color: var(--border); }
.session-detail-meta .meta-location { color: var(--ink-mid); }
.session-detail-title { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin: 0; line-height: 1.2; }
.session-detail-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--bg); border: 1px solid var(--border); width: 32px; height: 32px; border-radius: 999px;
  color: var(--ink-mid);
  display: inline-flex; align-items: center; justify-content: center;
}

.session-detail-speakers { padding: 8px 20px 12px; display: flex; flex-direction: column; gap: 14px; }
.speaker { display: flex; align-items: flex-start; gap: 12px; }
.speaker-photo { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; flex: 0 0 44px; }
.speaker-meta { min-width: 0; flex: 1; }
.speaker-name { font-weight: 700; font-size: 14px; }
.speaker-role { font-size: 12px; color: var(--ink-light); margin-top: 2px; }
.speaker-links { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.speaker-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
}
.speaker-link:hover { color: var(--indigo); transform: translateY(-1px); }
.speaker-link svg { width: 20px; height: 20px; }

.session-detail-desc { padding: 4px 20px 16px; font-size: 14px; color: var(--ink-mid); }
.session-detail-desc p { margin: 0 0 12px; line-height: 1.55; }
.session-detail-desc a { color: var(--indigo); text-decoration: underline; }
.session-detail-desc code { background: var(--indigo-lite); padding: 1px 6px; border-radius: 4px; font-size: 13px; color: var(--indigo-dark); }
.session-detail-desc strong { color: var(--ink); font-weight: 700; }


/* Full session page */
.session-page { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 0; }

/* ---------- Static pages ---------- */
.static-page { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; line-height: 1.55; color: var(--ink-mid); }
.static-page h2, .static-page h3 { font-family: var(--font-display); color: var(--ink); margin-top: 0; }
.static-page h3 { font-size: 16px; margin-top: 18px; }
.static-page a { color: var(--indigo); }
.venue-map {
  margin: 16px 0 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}
.venue-map img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
}


/* ---------- Auth ---------- */
.auth-page { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; color: var(--ink-mid); }
.auth-page h1 { font-family: var(--font-display); margin-top: 0; color: var(--ink); }
.auth-form label { display: block; margin-bottom: 12px; }
.auth-form label span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.auth-form input[type="email"] {
  width: 100%; padding: 12px 14px; font-size: 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--white); color: var(--ink);
  font-family: inherit;
}
.auth-form input[type="email"]:focus { outline: 2px solid var(--indigo); border-color: var(--indigo); }
/* Shared label + input + button row layout (login email + OTP code). */
.auth-input-label,
.otp-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.auth-input-row,
.otp-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.auth-form input.auth-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.2;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  box-sizing: border-box;
}
.auth-form input.auth-input:focus {
  outline: 2px solid var(--indigo);
  border-color: var(--indigo);
}
.btn-primary.auth-input-submit {
  flex: 0 0 auto;
  height: 48px;
  margin: 0;
  padding: 0 20px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  /* On narrow phones the "Email me a code" label is too long to share a row
     with the email field — wrap the button onto its own line under the input. */
  .auth-input-row { flex-direction: column; gap: 8px; }
  .btn-primary.auth-input-submit { width: 100%; }
}
.auth-form input.otp-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 8px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  box-sizing: border-box;
}
.auth-form input.otp-input:focus { outline: 2px solid var(--indigo); border-color: var(--indigo); }
.btn-primary.otp-submit {
  flex: 0 0 auto;
  height: 48px;
  margin: 0;
  padding: 0 20px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.btn-primary {
  background: var(--ink); color: var(--white); border: 0;
  padding: 12px 18px; border-radius: 10px; font-weight: 700; font-family: var(--font-display);
}
.btn-primary:hover { background: var(--indigo); }
.btn-secondary {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--border); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.btn-block { display: block; width: 100%; text-align: center; }
.btn-text {
  background: transparent;
  border: 0;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-light);
  cursor: pointer;
}
.btn-text:hover { color: var(--error-ink); }
.muted { color: var(--ink-light); }
.small { font-size: 13px; }

/* ---------- You tab ---------- */
.you-page { display: flex; flex-direction: column; gap: 16px; }

.you-empty { text-align: left; }
.you-empty h1 { font-family: var(--font-display); margin: 0 0 8px; font-size: 22px; }
.you-empty p { margin: 0; }
.you-disclaimer { text-align: center; margin: 8px 0 0; }

.you-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.you-avatar {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--indigo-lite);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.you-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.you-avatar-initials {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--indigo);
}
.you-profile-meta { min-width: 0; flex: 1; }
.you-name { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin: 0; line-height: 1.2; }
.you-role { font-size: 13px; color: var(--ink-mid); margin-top: 4px; font-weight: 500; }
.you-pronouns { font-size: 12px; color: var(--ink-light); margin-top: 2px; }
.you-email { font-size: 12px; color: var(--ink-light); margin-top: 6px; word-break: break-all; }

.you-nudge {
  display: block;
  background: var(--indigo-lite);
  border: 1px solid var(--indigo-mid);
  color: var(--indigo-dark);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}
.you-nudge strong { display: block; margin-bottom: 2px; font-family: var(--font-display); font-weight: 700; }
.you-nudge:hover { background: var(--indigo); color: var(--white); border-color: var(--indigo); }

.you-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.you-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.you-link:hover { border-color: var(--indigo); box-shadow: 0 0 0 2px var(--indigo-lite); }
.you-link-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--indigo-lite);
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.you-link-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.you-link-label { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.you-link-sub { font-size: 12px; color: var(--ink-light); }
.you-link-ext { color: var(--ink-light); display: inline-flex; flex: 0 0 auto; }

.you-signout { display: flex; justify-content: center; margin-top: 6px; }
