/* WOS 2026 — Program at a Glance
   Silver + deep navy, with the three hall tints from the printed program. */

.wos-root {
  --ink: #0a2350;
  --ink-2: #33456b;
  --muted: #6b7894;
  --royal: #1450b4;
  --cyan: #19a3dd;
  --line: #d9dfe9;
  --paper: #ffffff;
  --silver-1: #f6f8fb;
  --silver-2: #e8edf4;
  --silver-3: #cfd7e3;
  /* Hall colours from the printed podium sheets */
  --mint: #e2f2ee;   --mint-ink: #2f7f70;   --mint-edge: #b3dccf;  --mint-grad: linear-gradient(135deg, #9ad3c4 0%, #5fab9c 55%, #3f8c7e 100%);
  --sky: #e3ebf8;    --sky-ink: #2f58a6;    --sky-edge: #b6cbec;   --sky-grad: linear-gradient(135deg, #a3bfe9 0%, #5f86cc 55%, #3a5fab 100%);
  --rose: #fae6ec;   --rose-ink: #b44a6e;   --rose-edge: #f0c0cf;  --rose-grad: linear-gradient(135deg, #f7c2d0 0%, #e88ea8 55%, #cf6688 100%);
  --art: url("../img/skyline.webp");
  --art-white: url("../img/skyline-white.webp");
  --glass: rgba(255, 255, 255, .72);
  --glass-edge: rgba(255, 255, 255, .9);
  --sand: #f6ecd8;   --sand-ink: #8a5b12;   --sand-edge: #e2c891;
  --lilac: #ebe4f8;  --lilac-ink: #5b3ea3;  --lilac-edge: #c7b6ea;
  --teal: #dbf0f3;   --teal-ink: #16707d;   --teal-edge: #9ed2da;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 35, 80, .05), 0 12px 32px -16px rgba(10, 35, 80, .28);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.4;
}
.wos-root *, .wos-root *::before, .wos-root *::after { box-sizing: border-box; }
.wos-root button {
  font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0;
  text-transform: none; letter-spacing: normal; box-shadow: none; cursor: pointer; line-height: inherit;
  min-height: 0; width: auto; border-radius: 0; white-space: normal; word-break: normal; text-align: inherit; height: auto; max-width: 100%;
}
.wos-root h1, .wos-root h2, .wos-root h3, .wos-root h4, .wos-root p { margin: 0; padding: 0; font-family: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.wos-root a { text-decoration: none; color: inherit; }
.wos-root svg { flex: none; }
.wos-root input { font: inherit; }
html.wos-lock { overflow: hidden; }

.wos-app { max-width: 1180px; margin: 0 auto; padding: 0 0 48px; }
.wos-loading, .wos-empty {
  padding: 48px 20px; text-align: center; color: var(--muted); font-weight: 500;
  background: var(--silver-1); border-radius: var(--radius); border: 1px dashed var(--silver-3);
}
.wos-empty svg { vertical-align: -3px; }

/* ---------------------------------------------------------------- canvas */
body.wos-has-bg { background: #eef1f6 var(--wos-bg) center top / cover no-repeat fixed !important; }
@media (max-width: 1024px) { body.wos-has-bg { background-attachment: scroll !important; } }
.wos-app { position: relative; isolation: isolate; }
.wos-app.bg-box {
  background: #eef1f6 url("../img/silver-waves.webp") center top / cover no-repeat;
  border-radius: 28px; padding: 22px 22px 24px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 20px 60px -30px rgba(10,35,80,.35);
}
.wos-app.bg-page, .wos-app.bg-none { padding: 4px 0 24px; }
.wos-body { position: relative; }
.wos-foot-art { display: none; }
.wos-app.art-footer .wos-foot-art {
  display: block; height: 170px; margin: 10px 0 -24px; pointer-events: none;
  background: var(--art) center bottom / min(1100px, 100%) auto no-repeat; opacity: .5;
  -webkit-mask: linear-gradient(180deg, transparent, #000 60%); mask: linear-gradient(180deg, transparent, #000 60%);
}

/* ---------------------------------------------------------------- hero */
.wos-hero {
  position: relative; overflow: hidden; border-radius: 22px; min-height: 230px;
  padding: 36px clamp(28px, 4vw, 44px) 32px clamp(36px, 14%, 190px); margin-bottom: 18px;
  background: #f4f7fb var(--hero-bg, url("../img/header-swoosh.webp")) center / cover no-repeat;
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.wos-hero.no-image { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(232,237,245,.6)); padding-left: clamp(28px, 4vw, 44px); }
.wos-hero-art { display: none; }
.wos-app.art-hero .wos-hero-art {
  display: block; position: absolute; right: -10px; bottom: -6px; width: min(62%, 720px); height: 92%;
  background: var(--art) right bottom / contain no-repeat; opacity: .9; pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 35%); mask: linear-gradient(90deg, transparent 0%, #000 35%);
}
.wos-hero-text { position: relative; z-index: 1; }
.wos-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em !important; text-transform: uppercase !important; color: var(--royal); }
.wos-hero h1 {
  font-size: clamp(38px, 6.4vw, 64px); font-weight: 800; line-height: 1; margin-top: 8px; letter-spacing: -.02em !important;
  background: linear-gradient(180deg, #1c4fae 0%, #0a2350 70%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wos-hero-sub { font-size: clamp(15px, 2.2vw, 21px); font-weight: 500; text-transform: uppercase !important; letter-spacing: .08em !important; margin-top: 6px; color: var(--ink); }
.wos-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.wos-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.wos-hero-meta svg { color: var(--royal); }
.wos-agenda-link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; flex: none; align-self: center;
  padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, #0d2f6e, #1d5fd1); color: #fff !important;
  box-shadow: 0 10px 24px -10px rgba(20,80,180,.8), inset 0 1px 0 rgba(255,255,255,.25);
}
.wos-agenda-link svg { color: #fff; }
.wos-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--royal); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------------- day tabs + tools */
.wos-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.wos-root .wos-day {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 16px; min-height: 78px; padding: 14px 20px;
  border-radius: 14px; text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(241,245,251,.82));
  border: 1px solid #d6e0ef; box-shadow: 0 8px 22px -16px rgba(10,35,80,.45), inset 0 1px 0 #fff;
  transition: transform .15s, box-shadow .15s;
}
.wos-root .wos-day:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -16px rgba(10,35,80,.5), inset 0 1px 0 #fff; }
.wos-day-art { display: none; }
.wos-app.art-days .wos-day-art {
  display: block; position: absolute; z-index: -1; right: 0; bottom: -4px; width: 64%; height: 100%;
  background-image: var(--art); background-repeat: no-repeat; background-size: auto 250%;
  opacity: .3; pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 45%); mask: linear-gradient(90deg, transparent 0%, #000 45%);
}
.art-0 .wos-day-art { background-position: 0% 88%; }
.art-1 .wos-day-art { background-position: 100% 88%; }
.art-2 .wos-day-art { background-position: 58% 88%; }
.wos-day-icon { display: flex; color: var(--ink); }
.wos-day-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wos-day-n { font-size: 13px; font-weight: 700; letter-spacing: .06em !important; text-transform: uppercase; color: var(--royal); }
.wos-day-d { font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.wos-root .wos-day.is-active {
  background: var(--accent-grad, linear-gradient(120deg, #0b2f86 0%, #1450b4 55%, #2a74e0 100%));
  border-color: #1450b4; box-shadow: 0 16px 30px -14px rgba(20,80,180,.75), inset 0 1px 0 rgba(255,255,255,.25);
}
.wos-day.is-active .wos-day-art { background-image: var(--art-white); opacity: .3; }
.wos-day.is-active .wos-day-icon, .wos-day.is-active .wos-day-n, .wos-day.is-active .wos-day-d { color: #fff; }
.wos-short { display: none; }

.wos-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.wos-search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 12px; padding: 0 14px; color: var(--muted); box-shadow: 0 6px 18px -14px rgba(10,35,80,.4); backdrop-filter: blur(6px); }
.wos-search:focus-within { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(20,80,180,.12); }
.wos-root .wos-search input { flex: 1; border: 0 !important; outline: 0; background: transparent !important; padding: 12px 0 !important; font-size: 15px; color: var(--ink); box-shadow: none !important; min-width: 0; margin: 0; height: auto; }

.wos-daytitle { display: flex; align-items: baseline; gap: 12px; margin: 18px 2px 12px; }
.wos-daytitle h2 { font-size: 20px; font-weight: 700; }
.wos-hint { color: var(--muted); font-size: 13px; margin-top: 12px !important; text-align: center; }

/* hall tones */
.tone-mint  { --tone: var(--mint);  --tone-ink: var(--mint-ink);  --tone-edge: var(--mint-edge); --tone-grad: var(--mint-grad); }
.tone-sky   { --tone: var(--sky);   --tone-ink: var(--sky-ink);   --tone-edge: var(--sky-edge);  --tone-grad: var(--sky-grad); }
.tone-rose  { --tone: var(--rose);  --tone-ink: var(--rose-ink);  --tone-edge: var(--rose-edge); --tone-grad: var(--rose-grad); }
.tone-sand  { --tone: var(--sand);  --tone-ink: var(--sand-ink);  --tone-edge: var(--sand-edge); }
.tone-lilac { --tone: var(--lilac); --tone-ink: var(--lilac-ink); --tone-edge: var(--lilac-edge); }
.tone-teal  { --tone: var(--teal);  --tone-ink: var(--teal-ink);  --tone-edge: var(--teal-edge); }
.tone-plenary { --tone: #eef2f8; --tone-ink: var(--royal); --tone-edge: var(--silver-3); --tone-grad: var(--accent-grad, linear-gradient(120deg, #0b2f86 0%, #1450b4 55%, #2a74e0 100%)); }
.tone-silver  { --tone: var(--silver-1); --tone-ink: var(--ink-2); --tone-edge: var(--line); }

/* ---------------------------------------------------------------- at a glance grid */
.wos-glance-wrap {
  overflow-x: auto; border-radius: 20px;
  background: rgba(255,255,255,.55); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow), inset 0 1px 0 #fff; backdrop-filter: blur(8px);
}
.wos-glance {
  display: grid; grid-template-columns: 92px repeat(var(--halls), minmax(170px, 1fr));
  gap: 7px; padding: 12px; min-width: 640px;
}
.wos-g-corner, .wos-g-group, .wos-g-hall {
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 800; text-transform: uppercase; letter-spacing: .1em !important; font-size: 13px; border-radius: 12px;
}
.wos-g-corner { background: linear-gradient(180deg, #ffffff, #e7ecf4); color: var(--ink); border: 1px solid #dbe3ef; }
.wos-g-group {
  position: relative; overflow: hidden; padding: 10px; color: #fff; letter-spacing: .22em !important;
  background: var(--accent-grad, linear-gradient(120deg, #0b2f86 0%, #1450b4 55%, #2a74e0 100%));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 18px -12px rgba(20,80,180,.8);
}
.wos-app.art-group .wos-g-group::after { content: ""; position: absolute; inset: 0; background: var(--art-white) center 70% / 60% auto no-repeat; opacity: .14; }
.wos-g-hall {
  position: relative; overflow: hidden; padding: 11px 6px; color: #fff; font-size: 14px;
  background: var(--tone-grad); text-shadow: 0 1px 2px rgba(0,0,0,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.06), 0 8px 16px -12px rgba(10,35,80,.6);
}
.wos-g-hall::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0)); }
.wos-g-time {
  position: sticky; left: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(240,244,250,.95)); border: 1px solid #e0e6f0;
  border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums;
}
.wos-g-time span { font-weight: 500; font-size: 12px; color: var(--muted); }
.wos-g-time span::before { content: "to "; }
.wos-g-empty { border-radius: 12px; background: rgba(226, 231, 239, .55); }
.wos-root .wos-g-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 14px 12px 12px; border-radius: 12px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, var(--tone) 100%);
  border: 1px solid var(--tone-edge); color: var(--ink);
  box-shadow: 0 6px 16px -14px rgba(10,35,80,.6);
  transition: transform .14s, box-shadow .14s, opacity .15s;
}
.wos-app.card-line .wos-g-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tone-grad); }
.wos-root .wos-g-card:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(10,35,80,.55); }
.wos-root .wos-g-card:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; }
.wos-g-card strong { font-size: 14px; font-weight: 700; line-height: 1.3; }
.wos-g-card strong, .wos-g-card em, .wos-g-kicker, .wos-card h3 { display: block; max-width: 100%; min-width: 0; overflow-wrap: break-word; word-break: normal; -webkit-hyphens: auto; hyphens: auto; }
.wos-root .wos-g-card { min-width: 0; }
.wos-g-card em { font-style: italic; font-size: 12px; color: var(--ink-2); }
.wos-g-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tone-ink); }
.wos-g-where { font-size: 11px; color: var(--muted); font-weight: 600; }
.wos-root .wos-g-card.tone-plenary {
  background: linear-gradient(180deg, #ffffff 0%, #edf2fa 100%);
  border-color: #cfdcf0;
}
.wos-root .wos-g-card.tone-plenary strong { font-size: 15px; }
.wos-g-card.is-saved { box-shadow: inset 0 0 0 2px var(--royal), 0 6px 16px -14px rgba(10,35,80,.6); }
.wos-g-saved { position: absolute; top: 7px; right: 7px; color: var(--royal); display: flex; }
.wos-g-saved svg { width: 15px; height: 15px; }
.wos-g-break {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  border-radius: 12px; padding: 8px; font-weight: 700; font-size: 14px; color: #4a5568;
  background: #dfe3ea; border: 1px solid #d3d9e2;
}
.wos-g-break em { font-style: normal; font-weight: 500; font-size: 12px; color: #6b7480; }
.is-dim { opacity: .28; }

/* ---------------------------------------------------------------- live badge */
.wos-live {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #b4102f; background: #ffe6eb; padding: 2px 7px; border-radius: 999px;
}
.wos-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e0193f; animation: wos-pulse 1.4s infinite; }
@keyframes wos-pulse { 50% { opacity: .25; } }
.wos-g-card .wos-live { position: absolute; top: 6px; left: 6px; }

/* ---------------------------------------------------------------- sessions list */

.wos-card {
  position: relative; display: flex; background: rgba(255,255,255,.88); border: 1px solid var(--glass-edge); border-radius: 14px; backdrop-filter: blur(6px);
  box-shadow: var(--shadow); overflow: hidden;
}
.wos-card::before { content: ""; width: 5px; flex: none; background: var(--tone-grad, var(--silver-3)); }
.wos-card.tone-plenary::before { background: linear-gradient(180deg, var(--cyan), var(--royal)); }
.wos-root .wos-card-main { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 8px 14px 14px; text-align: left; min-width: 0; }
.wos-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.wos-hallpill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--tone-grad, var(--tone)); color: #fff; border: 1px solid transparent; text-shadow: 0 1px 1px rgba(0,0,0,.15); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.wos-card h3 { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.wos-card-kicker { font-size: 11px; font-weight: 700; color: var(--tone-ink); text-transform: uppercase; letter-spacing: .06em; }
.wos-card-who { font-size: 13px; color: var(--ink-2); }
.wos-card-count { font-size: 12px; font-weight: 600; color: var(--muted); }
.wos-clash { font-size: 12px; font-weight: 600; color: #9a5b00; background: #fff4dc; border-radius: 6px; padding: 3px 8px; }
.wos-card-actions { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 10px 0; }
.wos-root .wos-icon-btn {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--silver-1); color: var(--ink-2); border: 1px solid var(--line); transition: background .15s, color .15s;
}
.wos-root .wos-icon-btn:hover { background: var(--silver-2); color: var(--ink); }
.wos-root .wos-icon-btn.is-on { background: var(--royal); border-color: var(--royal); color: #fff; }
.wos-card.is-saved { border-color: #9cb8e6; }
.wos-card-break { align-items: center; gap: 10px; padding: 12px 16px; background: #dfe3ea; border-color: #d3d9e2; box-shadow: none; color: #4a5568; }
.wos-card-break::before { display: none; }
.wos-card-break strong { font-weight: 700; }
.wos-card-break span { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- overlays */
.wos-overlay {
  position: fixed; inset: 0; z-index: 2147483000; background: rgba(6, 20, 48, .55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px 20px; animation: wos-fade .18s ease;
  overscroll-behavior: contain;
}
@keyframes wos-fade { from { opacity: 0; } }
@keyframes wos-rise { from { transform: translateY(24px); opacity: 0; } }
.wos-sheet {
  width: min(760px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--paper); border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); animation: wos-rise .22s ease; text-align: left;
}
.wos-sheet-head {
  position: relative; overflow: hidden; isolation: isolate; padding: 30px 28px 24px; color: var(--ink);
  background: linear-gradient(180deg, var(--tone) 0%, rgba(255,255,255,.96) 78%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.wos-sheet-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--tone-grad); }
.wos-app.art-sheet .wos-sheet-head::after { content: ""; position: absolute; z-index: -1; right: -10px; bottom: -4px; width: 60%; height: 80%; background: var(--art) right bottom / contain no-repeat; opacity: .12; }
.wos-sheet-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.7); color: var(--tone-ink); border: 1px solid var(--tone-edge);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.wos-sheet-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone-grad); }
.wos-sheet-head h2 { font-size: clamp(22px, 3.6vw, 30px); font-weight: 800; line-height: 1.2; margin: 14px 44px 14px 0; color: var(--ink); text-align: left; }
.wos-sheet-when { display: flex; flex-wrap: wrap; gap: 8px; }
.wos-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: 0 2px 6px -4px rgba(10,35,80,.25); }
.wos-chip svg { width: 16px; height: 16px; color: var(--tone-ink); }
.wos-chip-soft { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); padding-left: 4px; }
.wos-root .wos-x { position: absolute; z-index: 2; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 4px 12px -6px rgba(10,35,80,.35); }
.wos-root .wos-x:hover { background: var(--silver-1); }
.wos-sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.wos-root .wos-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 700; transition: background .15s, box-shadow .15s, color .15s;
}
.wos-root .wos-btn-save { background: var(--ink); color: #fff; }
.wos-root .wos-btn-save:hover { background: #12306a; }
.wos-root .wos-btn-save.is-on { background: #e6eefb; color: var(--royal); box-shadow: inset 0 0 0 1.5px var(--royal); }
.wos-root .wos-btn-save[disabled] { opacity: .6; cursor: default; }
.wos-root .wos-btn-cal { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--silver-3); }
.wos-root .wos-btn-cal:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.wos-root .wos-btn-download { flex: none; background: var(--accent-grad, linear-gradient(120deg, #0b2f86 0%, #1450b4 55%, #2a74e0 100%)); color: #fff !important; box-shadow: 0 6px 16px -8px rgba(20,80,180,.7); padding: 11px 18px; }
.wos-root .wos-btn-download:hover { filter: brightness(1.08); }
.wos-btn-block { width: 100%; }
.wos-calwrap { position: relative; }
.wos-calmenu {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; animation: wos-fade .12s ease;
}
.wos-calmenu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink) !important; }
.wos-calmenu a:hover { background: var(--silver-1); }
.wos-sheet-body { padding: 24px 28px 30px; text-align: left; }
.wos-sheet-body * { text-align: left; }
.wos-root .wos-sub { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--royal); margin: 0 0 10px; }
.wos-sub-row { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.wos-count-soft { font-size: 12px; font-weight: 600; color: var(--muted); }
.wos-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--silver-2); }
.wos-people-list { display: flex; flex-direction: column; gap: 8px; }
.wos-person { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.wos-avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--tone); color: var(--tone-ink); border: 1px solid var(--tone-edge); font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.wos-person.is-small { font-size: 13px; font-weight: 500; color: var(--ink-2); gap: 7px; }
.wos-person.is-small .wos-avatar { width: 24px; height: 24px; font-size: 10px; }
.wos-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.wos-timeline::before { content: ""; position: absolute; left: 31px; top: 14px; bottom: 14px; width: 2px; background: var(--silver-2); }
.wos-timeline li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 10px 0; margin: 0; }
.wos-tl-time {
  position: relative; z-index: 1; align-self: start; display: flex; flex-direction: column; align-items: center;
  padding: 6px 0; border-radius: 10px; background: #fff; border: 1px solid var(--tone-edge);
  font-size: 13px; font-weight: 800; color: var(--tone-ink); font-variant-numeric: tabular-nums; line-height: 1.2;
}
.wos-tl-time small { font-size: 11px; font-weight: 600; color: var(--muted); }
.wos-tl-body { padding: 4px 0 6px; border-bottom: 1px dashed var(--silver-2); }
.wos-timeline li:last-child .wos-tl-body { border-bottom: 0; }
.wos-tl-body strong { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.4; color: var(--ink); text-align: left; -webkit-hyphens: manual; hyphens: manual; word-spacing: normal; }
.wos-tl-people { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.wos-muted { color: var(--muted); }

.wos-dialog { position: relative; width: min(420px, 100%); background: var(--paper); border-radius: 22px; padding: 28px 24px 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); animation: wos-rise .22s ease; }
.wos-dialog-icon { width: 46px; height: 46px; border-radius: 14px; background: #e6eefb; color: var(--royal); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.wos-dialog-icon svg { width: 22px; height: 22px; }
.wos-dialog h2, .wos-lookup h2 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.wos-dialog > p, .wos-lookup > p { color: var(--ink-2); font-size: 14px; margin-bottom: 16px; }
.wos-dialog label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.wos-root .wos-dialog input, .wos-root .wos-lookup input {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--silver-1);
  font-size: 15px; color: var(--ink); outline: 0; box-shadow: none; height: auto;
}
.wos-root .wos-dialog input:focus, .wos-root .wos-lookup input:focus { border-color: var(--royal); background: #fff; box-shadow: 0 0 0 3px rgba(20,80,180,.12); }
.wos-error { color: #b4102f; font-size: 13px; font-weight: 600; margin: -2px 0 12px !important; }
.wos-fine { font-size: 12px; color: var(--muted); margin-top: 12px !important; text-align: center; }
.wos-fine svg { width: 13px; height: 13px; vertical-align: -2px; }

.wos-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2147483001;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; padding: 12px 20px; border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); animation: wos-rise .2s ease;
}

/* ---------------------------------------------------------------- my agenda */
.wos-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--royal) !important; margin-bottom: 14px; }
.wos-lookup { max-width: 520px; margin: 10px auto 24px; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.wos-lookup-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.wos-root .wos-lookup-row input { flex: 1 1 220px; margin-top: 0; width: auto; }
.wos-agenda-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.wos-agenda-head h2 { font-size: 22px; font-weight: 800; }
.wos-agenda-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.wos-root .wos-linkbtn { color: var(--royal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.wos-agenda-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 24px; }

/* ---------------------------------------------------------------- tablets */
@media (max-width: 1024px) and (min-width: 761px) {
  .wos-glance { grid-template-columns: 74px repeat(var(--halls), minmax(0, 1fr)); min-width: 0; gap: 6px; padding: 10px; }
  .wos-g-card strong, .wos-root .wos-g-card.tone-plenary strong { font-size: 13px; }
  .wos-root .wos-g-card { padding: 12px 8px 10px; }
  .wos-day-d { font-size: 15px; }
  .wos-root .wos-day { gap: 12px; padding: 12px 14px; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 760px) {
  .wos-app.bg-box { border-radius: 20px; padding: 12px 12px 16px; }
  .wos-app.art-footer .wos-foot-art { height: 90px; }
  .wos-hero { padding: 26px 20px 20px 20px; border-radius: 18px; flex-direction: column; align-items: flex-start; min-height: 0; background-position: 18% center; }
  .wos-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,.2)); pointer-events: none; }
  .wos-app.art-hero .wos-hero-art { width: 100%; height: 55%; opacity: .5; }
  .wos-agenda-link { align-self: stretch; justify-content: center; }
  .wos-days { gap: 6px; }
  .wos-root .wos-day { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 6px; min-height: 0; text-align: center; }
  .wos-day-icon svg { width: 22px; height: 22px; }
  .wos-day-text { align-items: center; }
  .wos-app.art-days .wos-day-art { width: 100%; opacity: .2; -webkit-mask: none; mask: none; }
  .wos-day-n { font-size: 11px; }
  .wos-day-d { font-size: 13px; }
  .wos-root .wos-btn-download { flex: 1 1 100%; }
  .wos-agenda-list { grid-template-columns: 1fr; }
  .wos-long { display: none; }
  .wos-short { display: inline; }
  .wos-glance-wrap { border-radius: 14px; }
  .wos-glance { grid-template-columns: 46px repeat(var(--halls), minmax(0, 1fr)); gap: 4px; padding: 6px; min-width: 0; }
  .wos-g-corner, .wos-g-group, .wos-g-hall { font-size: 10px; letter-spacing: .04em !important; border-radius: 7px; }
  .wos-g-hall { padding: 8px 2px; font-size: 10px; }
  .wos-g-group { letter-spacing: .12em !important; padding: 7px; }
  .wos-g-time { font-size: 11.5px; border-radius: 7px; position: static; }
  .wos-g-time span { font-size: 10px; }
  .wos-g-time span::before { content: ""; }
  .wos-root .wos-g-card { padding: 9px 5px 7px; border-radius: 8px; gap: 2px; }
  .wos-g-time, .wos-g-corner, .wos-g-empty, .wos-g-break { border-radius: 8px; }
  .wos-g-card strong, .wos-root .wos-g-card.tone-plenary strong { font-size: 11.5px; line-height: 1.25; }
  .wos-g-card em, .wos-g-where { font-size: 10px; }
  .wos-g-kicker { font-size: 9px; letter-spacing: .03em; }
  .wos-g-saved { top: 3px; right: 3px; }
  .wos-g-saved svg { width: 12px; height: 12px; }
  .wos-g-card .wos-live { position: static; font-size: 8px; padding: 1px 5px; }
  .wos-g-break { font-size: 12px; gap: 6px; border-radius: 7px; }
  .wos-g-break svg { width: 15px; height: 15px; }
  .wos-overlay { align-items: flex-end; padding: 12px 0 0; }
  .wos-sheet { border-radius: 22px 22px 0 0; max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); padding-bottom: env(safe-area-inset-bottom); }
  .wos-sheet-head, .wos-sheet-body { padding-left: 18px; padding-right: 18px; }
  .wos-timeline li { grid-template-columns: 54px 1fr; gap: 12px; }
  .wos-timeline::before { left: 26px; }
  .wos-people { grid-template-columns: 1fr; }
  .wos-sheet-actions .wos-btn, .wos-calwrap { flex: 1 1 100%; }
  .wos-calwrap .wos-btn { width: 100%; }
  .wos-calmenu { left: 0; right: 0; }
  .wos-dialog { border-radius: 22px 22px 0 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wos-root *, .wos-overlay, .wos-sheet, .wos-dialog, .wos-toast { animation: none !important; transition: none !important; }
}

/* dashboard preview (Sessions → Compare with PDF) */
.wos-app.is-preview { padding: 0; }
.wos-app.is-preview .wos-daytitle, .wos-app.is-preview .wos-hint { display: none; }
.wos-app.is-preview .wos-glance { min-width: 0; grid-template-columns: 70px repeat(var(--halls), minmax(0, 1fr)); }
.wos-app.is-preview .wos-g-card strong { font-size: 12.5px; }
.wos-app.is-preview .wos-day-icon, .wos-app.is-preview .wos-day-art { display: none !important; }
.wos-app.is-preview .wos-root .wos-day, .wos-app.is-preview .wos-day { min-height: 0; padding: 10px 14px; }
.wos-app.is-preview .wos-day-d { font-size: 14px; }
.wos-app.is-preview .wos-long { display: none; }
.wos-app.is-preview .wos-short { display: inline; }

/* small line under a grid title (e.g. "Sponsored by: …") */
.wos-g-note { display: block; max-width: 100%; font-size: 11px; font-weight: 500; font-style: italic; color: var(--muted); line-height: 1.3; overflow-wrap: break-word; }
.wos-g-break .wos-g-note { flex-basis: 100%; text-align: center; }
/* labels that don't open anything (coffee break, lunch, or sessions switched to "not clickable") */
.wos-root .wos-g-card.is-static { cursor: default; }
.wos-root .wos-g-card.is-static:hover { transform: none; box-shadow: 0 6px 16px -14px rgba(10,35,80,.6); }
.wos-g-break { cursor: default; }
.wos-root .wos-g-break.is-link { cursor: pointer; transition: transform .14s, box-shadow .14s; }
.wos-root .wos-g-break.is-link:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -14px rgba(10,35,80,.5); }
@media (max-width: 760px) { .wos-g-note { font-size: 9.5px; } }

/* ---------------------------------------------------------------- pop-up layer (attached to <body>) */
.wos-portal { position: relative; z-index: 2147483000; }
.wos-portal .wos-app.wos-layer { position: static; isolation: auto; padding: 0; background: none; box-shadow: none; }
.wos-portal .wos-sheet h2, .wos-portal .wos-sheet h4, .wos-portal .wos-sheet p { margin-top: 0; }
.wos-sheet *, .wos-sheet { word-break: normal; overflow-wrap: break-word; }

/* titles regular, people bold */
.wos-sheet-head h2 { font-weight: 500; letter-spacing: -.01em; }
.wos-tl-body strong { font-weight: 400; }
.wos-person, .wos-person.is-small { font-weight: 700; color: var(--ink); }

/* moderators / panelists / judges */
.wos-people { display: flex; flex-direction: column; gap: 14px; grid-template-columns: none; padding-bottom: 22px; }
.wos-role {
  --role: var(--tone-ink); --role-bg: var(--tone); --role-edge: var(--tone-edge);
  border: 1px solid var(--role-edge); border-radius: 16px; background: linear-gradient(180deg, var(--role-bg), #fff 70%);
  padding: 14px 16px 16px; overflow: hidden;
}
.wos-role.role-panelist { --role: #1d4fa8; --role-bg: #eaf1fc; --role-edge: #c9daf3; }
.wos-role.role-judge { --role: #8a5a00; --role-bg: #fbf3e2; --role-edge: #ecd9ae; }
.wos-role.role-chair { --role: #6a3fa8; --role-bg: #f2ecfb; --role-edge: #d9cbef; }
.wos-role-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wos-role-icon { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--role); border: 1px solid var(--role-edge); flex: none; }
.wos-role-icon svg { width: 17px; height: 17px; }
.wos-root .wos-role-head h4 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--role); }
.wos-role-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--role); background: #fff; border: 1px solid var(--role-edge); border-radius: 999px; padding: 2px 9px; }
.wos-role .wos-people-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.wos-role .wos-person { background: #fff; border: 1px solid var(--role-edge); border-radius: 12px; padding: 8px 12px 8px 8px; min-width: 0; }
.wos-role .wos-person > span:last-child { min-width: 0; }
.wos-role .wos-avatar { background: var(--role-bg); color: var(--role); border-color: var(--role-edge); }
@media (max-width: 760px) {
  .wos-role .wos-people-list { grid-template-columns: 1fr; }
  .wos-role { padding: 12px; }
  .wos-sheet-head h2 { margin-right: 48px; }
}

/* moderators / panelists / judges: one gradient box in the hall colour */
.wos-people-box {
  position: relative; overflow: hidden; margin-bottom: 26px; padding: 18px 22px; border-radius: 18px;
  background: var(--tone-grad); color: #fff;
  box-shadow: 0 14px 30px -18px rgba(10,35,80,.55), inset 0 1px 0 rgba(255,255,255,.3);
  display: flex; flex-direction: column; gap: 14px;
}
.wos-people-box::after { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 70%); pointer-events: none; }
.wos-pb-row { position: relative; z-index: 1; display: grid; grid-template-columns: 120px 1fr; gap: 6px 16px; align-items: baseline; }
.wos-pb-row + .wos-pb-row { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.25); }
.wos-pb-role { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.wos-pb-names { display: flex; flex-wrap: wrap; gap: 4px 0; }
.wos-pb-names b { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.45; }
.wos-pb-names b:not(:last-child)::after { content: "·"; margin: 0 10px; font-weight: 400; opacity: .6; }
@media (max-width: 760px) {
  .wos-people-box { padding: 16px 18px; }
  .wos-pb-row { grid-template-columns: 1fr; gap: 4px; }
  .wos-pb-names { flex-direction: column; gap: 2px; }
  .wos-pb-names b:not(:last-child)::after { content: none; }
}

/* session window: date, time, Save and Calendar look the same — hall colour on hover, and when saved */
.wos-sheet-head .wos-sheet-when { align-items: center; }
.wos-sheet-head .wos-chip,
.wos-root .wos-sheet-head .wos-btn-save,
.wos-root .wos-sheet-head .wos-btn-cal {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 12px;
  background: #fff; color: var(--ink) !important; border: 1px solid var(--line);
  box-shadow: 0 2px 8px -6px rgba(10,35,80,.35);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.wos-sheet-head .wos-chip svg,
.wos-root .wos-sheet-head .wos-btn-save svg,
.wos-root .wos-sheet-head .wos-btn-cal svg { width: 17px; height: 17px; color: var(--tone-ink); transition: color .18s; }
.wos-sheet-head .wos-chip:hover,
.wos-root .wos-sheet-head .wos-btn-save:hover,
.wos-root .wos-sheet-head .wos-btn-cal:hover,
.wos-root .wos-sheet-head .wos-btn-save.is-on {
  background: var(--tone-grad); color: #fff !important; border-color: transparent;
  box-shadow: 0 10px 22px -12px rgba(10,35,80,.55);
}
.wos-sheet-head .wos-chip:hover svg,
.wos-root .wos-sheet-head .wos-btn-save:hover svg,
.wos-root .wos-sheet-head .wos-btn-cal:hover svg,
.wos-root .wos-sheet-head .wos-btn-save.is-on svg { color: #fff; }
.wos-root .wos-sheet-head .wos-btn-save:hover, .wos-root .wos-sheet-head .wos-btn-cal:hover { transform: translateY(-1px); }
.wos-root .wos-sheet-head .wos-btn-save:focus-visible, .wos-root .wos-sheet-head .wos-btn-cal:focus-visible { outline: 3px solid var(--tone-edge); outline-offset: 2px; }
@media (hover: none) {
  /* phones: no hover, so only the saved state takes the hall colour */
  .wos-sheet-head .wos-chip:hover, .wos-root .wos-sheet-head .wos-btn-cal:hover, .wos-root .wos-sheet-head .wos-btn-save:not(.is-on):hover {
    background: #fff; color: var(--ink) !important; border-color: var(--line); box-shadow: 0 2px 8px -6px rgba(10,35,80,.35); transform: none;
  }
  .wos-sheet-head .wos-chip:hover svg, .wos-root .wos-sheet-head .wos-btn-cal:hover svg, .wos-root .wos-sheet-head .wos-btn-save:not(.is-on):hover svg { color: var(--tone-ink); }
}
.wos-sheet-head .wos-chip:hover, .wos-root .wos-sheet-head .wos-btn-save:hover, .wos-root .wos-sheet-head .wos-btn-cal:hover, .wos-root .wos-sheet-head .wos-btn-save.is-on { text-shadow: 0 1px 2px rgba(0,0,0,.22); }

.wos-g-time .wos-ampm::before { content: none; }
.wos-g-time .wos-ap { font-style: normal; }
@media (max-width: 760px) { .wos-g-time .wos-ap { display: none; } }
