/*
 * IT-CONF Conference Programme UI — v4.25
 *
 * The stylesheet intentionally has no external dependencies. This keeps the first
 * screen deterministic and fast even when the phone has no network connection.
 * All icons used by the application are inline SVG elements generated by app.js.
 */
:root {
  color-scheme: light;
  --brand-color: #46b861;
  --brand-rgb: 70, 184, 97;
  --brand-deep: #174d29;
  --brand-deeper: #020604;
  --primary: #287f43;
  --primary-strong: #176b37;
  --primary-soft: #e2f6e7;
  --secondary: #347a49;
  --accent: #46b861;
  --background: #f5f7f8;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-muted: #edf2f3;
  --text: #172226;
  --text-secondary: #5c6a70;
  --border: #dce4e6;
  --danger: #b3261e;
  --warning: #8a5a00;
  --success: #15715f;
  --shadow-small: 0 2px 8px rgba(12, 40, 43, 0.07);
  --shadow-medium: 0 12px 32px rgba(12, 40, 43, 0.14);
  --radius-small: 12px;
  --radius-medium: 18px;
  --radius-large: 26px;
  --content-width: 960px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #62d780;
  --primary-strong: #46b861;
  --primary-soft: #163c24;
  --secondary: #c7bcff;
  --accent: #72e08d;
  --background: #0d1417;
  --surface: #151f23;
  --surface-raised: #1a272c;
  --surface-muted: #202f34;
  --text: #edf7f6;
  --text-secondary: #a9babd;
  --border: #34464c;
  --danger: #ffb4ab;
  --warning: #ffd18a;
  --success: #8ce4d1;
  --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-medium: 0 16px 40px rgba(0, 0, 0, 0.45);
}

html[data-conference-brand="sqa-days"] {
  --brand-color: #46b861;
  --brand-rgb: 70, 184, 97;
  --brand-deep: #174d29;
  --brand-deeper: #020604;
  --primary: #287f43;
  --primary-strong: #176b37;
  --primary-soft: #e2f6e7;
  --secondary: #347a49;
  --accent: #46b861;
}

html[data-theme="dark"][data-conference-brand="sqa-days"] {
  --primary: #62d780;
  --primary-strong: #46b861;
  --primary-soft: #163c24;
  --secondary: #8ce39f;
  --accent: #46b861;
}

html[data-conference-brand="analyst-days"] {
  --brand-color: #f36e33;
  --brand-rgb: 243, 110, 51;
  --brand-deep: #6c280f;
  --brand-deeper: #170702;
  --primary: #c84f1d;
  --primary-strong: #9f3911;
  --primary-soft: #fff0e9;
  --secondary: #b95930;
  --accent: #f36e33;
}

html[data-theme="dark"][data-conference-brand="analyst-days"] {
  --primary: #ff9b70;
  --primary-strong: #f36e33;
  --primary-soft: #4a2817;
  --secondary: #ffc0a5;
  --accent: #f36e33;
}

html[data-conference-brand="techwriter-days"] {
  --brand-color: #2ab3e7;
  --brand-rgb: 42, 179, 231;
  --brand-deep: #0d4d68;
  --brand-deeper: #020d13;
  --primary: #087fae;
  --primary-strong: #05658b;
  --primary-soft: #e2f6fd;
  --secondary: #287f9f;
  --accent: #2ab3e7;
}

html[data-theme="dark"][data-conference-brand="techwriter-days"] {
  --primary: #63cef6;
  --primary-strong: #2ab3e7;
  --primary-soft: #18394a;
  --secondary: #9bdff8;
  --accent: #2ab3e7;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body {
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

body.launch-visible {
  overflow: hidden;
}

.launch-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(30px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 80% 8%, rgba(var(--brand-rgb), .24), transparent 35%),
    linear-gradient(155deg, var(--brand-deeper) 0%, color-mix(in srgb, var(--brand-deep) 40%, #050505) 55%, var(--brand-deep) 100%);
  color: #fff;
  transition: opacity .34s ease, visibility .34s ease;
}

.launch-screen.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.launch-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .24;
  pointer-events: none;
}

.launch-glow-one {
  top: -22vw;
  right: -20vw;
  width: 76vw;
  height: 76vw;
  background: var(--brand-color);
  animation: launch-drift 5s ease-in-out infinite alternate;
}

.launch-glow-two {
  bottom: -28vw;
  left: -18vw;
  width: 68vw;
  height: 68vw;
  background: var(--brand-deep);
  animation: launch-drift 6s 1s ease-in-out infinite alternate-reverse;
}

.launch-content {
  position: relative;
  width: min(100%, 430px);
  text-align: center;
}

.launch-conference-choice,
.launch-sync {
  width: 100%;
}

.brand-choice-grid {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.brand-choice {
  --choice-color: var(--brand-color);
  position: relative;
  display: grid;
  min-height: 82px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 10px 102px 10px 13px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  text-align: left;
  opacity: .72;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease;
}

.brand-choice[data-brand-option="SQA Days"],
.brand-choice[data-settings-brand="SQA Days"],
.brand-choice[data-archive-brand="SQA Days"] { --choice-color: #46b861; }

.brand-choice[data-brand-option="Analyst Days"],
.brand-choice[data-settings-brand="Analyst Days"],
.brand-choice[data-archive-brand="Analyst Days"] { --choice-color: #f36e33; }

.brand-choice[data-brand-option="TechWriter Days"],
.brand-choice[data-settings-brand="TechWriter Days"],
.brand-choice[data-archive-brand="TechWriter Days"] { --choice-color: #2ab3e7; }

.brand-choice:active {
  transform: scale(.985);
}

.brand-choice.selected {
  border-color: var(--choice-color);
  background: color-mix(in srgb, var(--choice-color) 22%, rgba(255,255,255,.13));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--choice-color) 38%, transparent), 0 14px 28px rgba(0,0,0,.22);
  opacity: 1;
  transform: scale(1.018);
}

.brand-choice img {
  width: 100%;
  max-width: 250px;
  max-height: 66px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.brand-choice > span {
  position: absolute;
  top: 12px;
  right: 13px;
  font-size: 11px;
  font-weight: 800;
  opacity: .82;
}

.brand-choice::after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  min-width: 74px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.8);
  content: "Выбрать";
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.brand-choice.selected::after {
  border-color: var(--choice-color);
  background: var(--choice-color);
  color: #07110b;
  content: "✓ Выбрано";
}

.brand-choice-help {
  margin: 18px 4px 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.45;
}

.launch-confirm {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #10231a;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.settings-brand-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.settings-brand-grid .brand-choice {
  min-height: 86px;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 8px;
  border-color: var(--border);
  background: var(--surface-muted);
  color: var(--text);
  text-align: center;
  opacity: .72;
}

.settings-brand-grid .brand-choice.selected {
  border-color: var(--choice-color);
  background: color-mix(in srgb, var(--choice-color) 12%, var(--surface));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--choice-color) 24%, transparent);
  opacity: 1;
}

.settings-brand-grid .brand-choice::after {
  display: none;
}

.settings-brand-grid .brand-choice img {
  max-width: 100%;
  max-height: 42px;
}

.settings-brand-grid .brand-choice > span {
  position: static;
  font-size: 10px;
}

.sqa-logo-image {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.sqa-logo-launch {
  width: min(88vw, 410px);
  max-height: 190px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .32));
  animation: logo-sqa-days 1.8s ease-in-out infinite;
}

html[data-conference-brand="analyst-days"] .sqa-logo-launch {
  animation-name: logo-analyst-days;
}

html[data-conference-brand="techwriter-days"] .sqa-logo-launch {
  animation-name: logo-techwriter-days;
}

.sqa-logo-header {
  width: 102px;
  max-height: 48px;
  margin: 3px auto 0;
}

.header-brand {
  display: flex;
  width: 108px;
  flex: 0 0 108px;
  flex-direction: column;
  align-items: center;
}

.conference-number {
  min-height: 31px;
  margin-top: 5px;
  color: #ffffff;
  font-size: clamp(25px, 7vw, 34px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.055em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  white-space: nowrap;
}

.conference-logo {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  color: currentColor;
  line-height: 1;
}

.conference-logo-number {
  grid-row: 1 / span 2;
  color: #ffb23f;
  font-size: 2.5em;
  font-weight: 900;
  letter-spacing: -.09em;
}

.conference-logo-copy {
  display: grid;
  margin-left: .2em;
  text-align: left;
}

.conference-logo-copy strong {
  font-size: 1.27em;
  font-weight: 900;
  letter-spacing: -.055em;
}

.conference-logo-copy small {
  margin-top: .08em;
  font-size: .63em;
  font-weight: 900;
  letter-spacing: .24em;
}

.conference-logo-large {
  position: relative;
  font-size: 30px;
  animation: logo-breathe 1.6s ease-in-out infinite;
}

.conference-logo-calendar {
  position: absolute;
  right: -18px;
  bottom: -10px;
  display: grid;
  width: 34px;
  height: 29px;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 10px 5px 5px;
  border: 2px solid rgba(255,255,255,.94);
  border-radius: 8px;
  background: #08786f;
  box-shadow: 0 7px 18px rgba(0,0,0,.22);
}

.conference-logo-calendar::before {
  position: absolute;
  top: 5px;
  right: 4px;
  left: 4px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.8);
  content: "";
}

.conference-logo-calendar i {
  border-radius: 2px;
  background: #ffb23f;
}

.conference-logo-header {
  flex: 0 0 auto;
  margin-top: 3px;
  font-size: 10px;
}

.launch-kicker {
  margin: 43px 0 8px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.launch-title {
  margin: 0;
  font-size: clamp(31px, 9vw, 46px);
  font-weight: 840;
  letter-spacing: -.04em;
}

.launch-stage {
  margin: 38px 0 15px;
  color: rgba(255,255,255,.92);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: .035em;
  line-height: 1.3;
}

.launch-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.16);
}

.launch-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-color), color-mix(in srgb, var(--brand-color) 58%, #ffffff));
  box-shadow: 0 0 18px rgba(var(--brand-rgb), .68);
  transition: width .25s ease;
}

.launch-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.launch-continue {
  min-height: 46px;
  margin-top: 22px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 780;
  backdrop-filter: blur(12px);
}

@keyframes logo-sqa-days {
  0%, 100% { transform: scale(1) rotate(0); filter: drop-shadow(0 15px 26px rgba(var(--brand-rgb), .18)); }
  50% { transform: scale(1.04) rotate(-.7deg); filter: drop-shadow(0 19px 34px rgba(var(--brand-rgb), .46)); }
}

@keyframes logo-analyst-days {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); filter: drop-shadow(0 14px 25px rgba(var(--brand-rgb), .18)); }
  45% { transform: translateY(-7px) rotate(.8deg) scale(1.025); filter: drop-shadow(0 23px 34px rgba(var(--brand-rgb), .44)); }
  70% { transform: translateY(-2px) rotate(-.35deg) scale(1.012); }
}

@keyframes logo-techwriter-days {
  0%, 100% { transform: translateX(0) scale(1); filter: drop-shadow(0 14px 25px rgba(var(--brand-rgb), .18)); }
  35% { transform: translateX(-5px) scale(1.025); }
  70% { transform: translateX(5px) scale(1.025); filter: drop-shadow(0 20px 34px rgba(var(--brand-rgb), .46)); }
}

@keyframes launch-drift {
  to { transform: translate3d(5vw, 3vw, 0) scale(1.08); }
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 2px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 95% -20%, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(145deg, var(--brand-deeper) 0%, color-mix(in srgb, var(--brand-deep) 64%, #050505) 55%, var(--brand-deep) 100%);
  box-shadow: 0 7px 24px rgba(var(--brand-rgb), .20);
}

html[data-theme="dark"] .app-header {
  background:
    radial-gradient(circle at 95% -20%, rgba(var(--brand-rgb), .18), transparent 42%),
    linear-gradient(145deg, #020202 0%, color-mix(in srgb, var(--brand-deep) 42%, #050505) 58%, var(--brand-deep) 100%);
}

.header-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px 18px;
}

.header-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.event-summary {
  min-width: 0;
  flex: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.event-title {
  margin: 0;
  font-size: clamp(20px, 5.4vw, 30px);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.event-dates {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  font-size: clamp(13px, 3.7vw, 16px);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-menu-button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.header-menu-button svg {
  width: 24px;
  height: 24px;
}

.xml-status-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  margin: 17px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  background: rgba(0, 30, 28, 0.20);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.xml-status-button:active {
  transform: translateY(1px);
}

.xml-status-button[aria-expanded="true"] .xml-status-chevron {
  transform: rotate(180deg);
}

.xml-status-details {
  margin-top: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  background: rgba(0, 30, 28, 0.20);
  color: #fff;
}

.xml-status-detail-line {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
}

.xml-status-url-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.xml-status-copy, .xml-status-more {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.xml-status-copy { flex: 0 0 auto; }
.xml-status-more { margin-top: 10px; }

.sync-indicator {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #8ff2df;
  box-shadow: 0 0 0 4px rgba(143, 242, 223, 0.14);
}

.sync-indicator.loading {
  animation: pulse 0.85s ease-in-out infinite alternate;
}

.sync-indicator.error {
  background: #ffb4ab;
  box-shadow: 0 0 0 4px rgba(255, 180, 171, 0.16);
}

.sync-indicator.cache {
  background: #ffd18a;
  box-shadow: 0 0 0 4px rgba(255, 209, 138, 0.16);
}

@keyframes pulse {
  to {
    opacity: 0.35;
    transform: scale(0.82);
  }
}

.xml-status-text {
  min-width: 0;
  flex: 1;
}

.xml-status-main {
  display: block;
  font-size: 13px;
  font-weight: 730;
  line-height: 1.35;
}

.xml-status-url {
  display: block;
  min-width: 0;
  flex: 1;
  color: rgba(255, 255, 255, 0.62);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  user-select: text;
}

.xml-status-chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  opacity: 0.68;
}

.app-main {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 16px 13px 44px;
}

.programme-controls {
  position: sticky;
  top: var(--app-header-height, 0px);
  z-index: 25;
  margin: -16px -13px 0;
  padding: 12px 13px 1px;
  background: var(--background);
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 13px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.segment-button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

.segment-button.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 28%, transparent);
}

html[data-theme="dark"] .segment-button.active {
  color: #082826;
}

.filter-panel {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(12px);
}

.language-badge { gap: 6px; background: var(--surface-muted); color: var(--text-secondary); }
.language-badge .language-flag-symbol { font-size: 15px; line-height: 1; }

.search-row {
  display: flex;
  gap: 9px;
}

.search-field-wrap {
  position: relative;
  min-width: 0;
  flex: 1;
}

.search-field-wrap svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.search-field {
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-muted);
  color: var(--text);
  outline: none;
}

.search-field::placeholder {
  color: color-mix(in srgb, var(--text-secondary) 78%, transparent);
}

.search-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 17%, transparent);
}

.filter-button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  color: var(--primary-strong);
  cursor: pointer;
}

html[data-theme="dark"] .filter-button {
  color: var(--primary);
}

.filter-button svg {
  width: 22px;
  height: 22px;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 11px 1px 1px;
  scrollbar-width: none;
}

#dayChips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
}

#dayChips .filter-chip {
  min-width: 0;
  padding-right: 7px;
  padding-left: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
}

.filter-chip.active {
  border-color: color-mix(in srgb, var(--accent) 54%, var(--border));
  background: var(--primary-soft);
  color: var(--primary-strong);
}

html[data-theme="dark"] .filter-chip.active {
  color: var(--primary);
}

.result-toolbar {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.text-button {
  min-height: 34px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--primary-strong);
  font-weight: 760;
  cursor: pointer;
}

html[data-theme="dark"] .text-button {
  color: var(--primary);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.day-group {
  display: flex;
  flex-direction: column;
  gap: 11px;
  scroll-margin-top: calc(var(--app-header-height, 0px) + var(--programme-controls-height, 170px) + 12px);
}

.day-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 2px 1px;
  color: var(--text);
  font-size: clamp(13px, 4vw, 17px);
  font-weight: 790;
  line-height: 1.3;
  white-space: nowrap;
}

.day-heading strong {
  font: inherit;
}

.day-heading-separator {
  color: var(--primary);
  font-weight: 900;
}

.day-heading::after {
  height: 1px;
  flex: 1;
  background: var(--border);
  content: "";
}

.day-group.current-conference-day > .day-heading {
  color: var(--primary-strong);
}

.day-group.current-conference-day > .day-heading::after {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.program-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.program-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--track-color, var(--accent));
  content: "";
}

.program-card:active {
  transform: translateY(1px);
  box-shadow: none;
}

.program-card.passive:active {
  transform: none;
}

.program-card-inner {
  padding: 15px 14px 15px 18px;
}

.program-card.passive {
  border-style: dashed;
  background: color-mix(in srgb, var(--surface-muted) 66%, var(--surface));
  box-shadow: none;
}

.program-card.passive::before {
  background: #87989b;
}

.program-card.current-conference-day {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  background: color-mix(in srgb, var(--primary) 5%, var(--surface));
  box-shadow: 0 7px 22px color-mix(in srgb, var(--primary) 12%, transparent);
}

.program-card.favorite-current,
.program-card.live-current {
  border: 2px solid #e8b84d;
  background: color-mix(in srgb, #fff2c8 72%, var(--surface));
  box-shadow: 0 0 0 4px color-mix(in srgb, #f4ce6c 24%, transparent), 0 12px 28px rgba(95, 57, 0, .14);
  animation: current-talk-pulse 1.8s ease-in-out infinite;
}

.program-card.favorite-current::before,
.program-card.live-current::before {
  width: 7px;
  background: #ff9e18;
}

html[data-theme="dark"] .program-card.favorite-current,
html[data-theme="dark"] .program-card.live-current {
  border-color: #e8b84d;
  background: #332a16;
  color: var(--text);
  box-shadow: 0 0 0 4px rgba(244, 206, 108, .16), 0 12px 28px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .program-card.favorite-current .card-description,
html[data-theme="dark"] .program-card.favorite-current .card-meta,
html[data-theme="dark"] .program-card.favorite-current .speaker-company,
html[data-theme="dark"] .program-card.favorite-current .speaker-place,
html[data-theme="dark"] .program-card.live-current .card-description,
html[data-theme="dark"] .program-card.live-current .card-meta,
html[data-theme="dark"] .program-card.live-current .speaker-company,
html[data-theme="dark"] .program-card.live-current .speaker-place {
  color: #dce8e6;
}

.program-card.qr-focused {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent), var(--shadow-medium);
  animation: qr-talk-focus 1.15s ease-in-out 3;
  outline: none;
}

.program-card.qr-focused::before {
  width: 7px;
  background: var(--accent);
}

.current-talk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff2c8;
  color: #6d4600;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.program-card.favorite-soon {
  border: 2px solid #ead58a;
  background: color-mix(in srgb, #fff8d8 58%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, #f3d977 18%, transparent), 0 10px 24px rgba(95, 70, 0, .10);
}

.program-card.favorite-soon::before {
  width: 6px;
  background: #e3bd3d;
}

html[data-theme="dark"] .program-card.favorite-soon {
  border-color: #d9bd58;
  background: #302b18;
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(243, 217, 119, .13), 0 10px 24px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .program-card.favorite-soon .card-description,
html[data-theme="dark"] .program-card.favorite-soon .card-meta,
html[data-theme="dark"] .program-card.favorite-soon .speaker-company,
html[data-theme="dark"] .program-card.favorite-soon .speaker-place {
  color: #dce8e6;
}

.soon-talk-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff4b8;
  color: #6d5200;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
}

@keyframes current-talk-pulse {
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, #ffb23f 9%, transparent), 0 12px 28px rgba(95, 57, 0, .18); }
}

@keyframes qr-talk-focus {
  50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 11%, transparent), var(--shadow-medium); }
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.card-head-copy {
  min-width: 0;
  flex: 1;
}

.card-status-row {
  display: flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.card-badges {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 6px;
}

.card-classification-row {
  flex-wrap: nowrap;
  align-items: center;
  overflow: hidden;
}

.card-classification-row .presentation-type-badge {
  flex: 0 0 auto;
  white-space: nowrap;
}

.card-classification-row .section-badge {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-extra-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 790;
  line-height: 1.25;
}

html[data-theme="dark"] .badge {
  color: var(--primary);
}

.badge.neutral {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.badge.format-badge {
  background: color-mix(in srgb, var(--secondary) 12%, var(--surface-muted));
  color: var(--secondary);
}

button.badge.online-badge {
  border: 0;
  background: #dff8ff;
  color: #076887;
  cursor: pointer;
}

html[data-theme="dark"] button.badge.online-badge {
  background: #153d4b;
  color: #7ad9fa;
}

.talk-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 2px;
}

.talk-info-icon {
  display: inline-grid;
  width: 35px;
  height: 35px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  cursor: pointer;
}

.talk-info-icon svg {
  width: 20px;
  height: 20px;
}

.talk-info-icon.language-flag {
  font-size: 16px;
  line-height: 1;
}

button.meta-item.meta-tooltip {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.icon-tooltip {
  position: fixed;
  z-index: 1500;
  top: 0;
  left: 0;
  width: max-content;
  max-width: min(280px, calc(100vw - 20px));
  margin: 0;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-raised) 94%, transparent);
  color: var(--text);
  box-shadow: var(--shadow-medium);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
  backdrop-filter: blur(14px);
}

.icon-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.favorite-button {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--primary-strong);
  cursor: pointer;
}

html[data-theme="dark"] .favorite-button {
  color: var(--primary);
}

.favorite-button.active {
  background: #fff0c7;
  color: #8a5a00;
}

html[data-theme="dark"] .favorite-button.active {
  background: #514522;
  color: #ffd980;
}

.favorite-button svg {
  width: 23px;
  height: 23px;
}

.card-actions {
  display: flex;
  width: 43px;
  flex: 0 0 43px;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.card-actions .talk-info-icon.language-flag {
  width: 32px;
  height: 29px;
  border-radius: 10px;
}

.card-title-button,
.card-title-static {
  display: block;
  width: 100%;
  margin: 12px 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 19px;
  font-weight: 780;
  line-height: 1.32;
  letter-spacing: -0.012em;
  text-align: left;
  overflow-wrap: anywhere;
}

.card-title-button {
  cursor: pointer;
}

.card-title-button:active {
  padding-left: 7px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  transform: scale(.992);
}

.card-title-button .title-chevron {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 3px;
  vertical-align: -3px;
  color: var(--primary);
}

.speaker-list-compact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 10px;
}

.speaker-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 800;
}

html[data-theme="dark"] .avatar {
  color: var(--primary);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-copy {
  min-width: 0;
}

.speaker-name {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.28;
}

.speaker-company {
  display: block;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.3;
}

.speaker-place {
  display: block;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.3;
}

.badge.partner-badge {
  border: 1px solid #efd36d;
  background: #fff3bd;
  color: #684b00;
}

html[data-theme="dark"] .badge.partner-badge {
  border-color: #efd36d;
  background: #fff3bd;
  color: #684b00;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--primary);
}

.card-description {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.2;
}

.material-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.material-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

html[data-theme="dark"] .material-button {
  color: var(--primary);
}

.material-button.compact {
  min-width: 40px;
  padding: 8px 10px;
}

.material-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.empty-state {
  padding: 46px 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text-secondary);
  text-align: center;
  box-shadow: var(--shadow-small);
}

.empty-state svg {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  color: var(--primary);
}

.empty-state h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 19px;
}

.loading-card {
  height: 150px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: linear-gradient(90deg, var(--surface-muted) 25%, var(--surface) 42%, var(--surface-muted) 62%);
  background-size: 300% 100%;
  animation: shimmer 1.15s infinite;
}

@keyframes shimmer {
  to {
    background-position: -100% 0;
  }
}

.popup-menu {
  position: fixed;
  top: max(72px, calc(env(safe-area-inset-top) + 58px));
  right: 12px;
  z-index: 80;
  display: none;
  width: min(330px, calc(100vw - 24px));
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-medium);
}

.popup-menu.show {
  display: block;
}

.popup-menu button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.popup-menu button:active {
  background: var(--surface-muted);
}

.popup-menu button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  color: var(--primary);
}

.menu-source {
  padding: 8px 12px 10px;
  overflow-wrap: anywhere;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  line-height: 1.45;
}

.vote-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.vote-panel.detail-vote-panel { margin: 18px 0 4px; }
.vote-caption { margin-right: auto; color: var(--text-secondary); font-size: 12px; font-weight: 720; }
.vote-button {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 21px;
  cursor: pointer;
}
.vote-button:not(:disabled):active { transform: scale(.88); }
.vote-button.vote-pressed { animation: vote-button-press .48s ease-out; }
@keyframes vote-button-press {
  0% { transform: scale(1); }
  30% { transform: scale(.80) rotate(-8deg); }
  65% { transform: scale(1.12) rotate(5deg); }
  100% { transform: scale(1); }
}
.vote-button.vote-closed,
.vote-button.vote-closed:active {
  animation: none;
  transition: none;
  transform: none;
}
.vote-button.vote-closed::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 2px;
  right: 2px;
  height: 3px;
  border-radius: 2px;
  background: #ef4444;
  transform: rotate(-40deg);
  pointer-events: none;
}
.vote-button.selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 18%, var(--surface)); color: var(--primary); }
.vote-button:disabled { opacity: .62; cursor: default; transform: none; }

.qr-scanner-sheet { min-height: min(680px, 86vh); }
.qr-camera-frame { position: relative; overflow: hidden; aspect-ratio: 1; max-height: 55vh; margin: 10px auto 16px; border-radius: 22px; background: #020404; }
.qr-camera-frame video { width: 100%; height: 100%; object-fit: cover; }
.qr-reticle { position: absolute; inset: 17%; border: 3px solid var(--primary); border-radius: 24px; box-shadow: 0 0 0 999px rgba(0,0,0,.28); }

.mobile-notification {
  position: fixed;
  z-index: 140;
  top: max(14px, env(safe-area-inset-top));
  left: 14px;
  right: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 680px;
  margin: auto;
  padding: 16px 16px 16px 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border));
  border-left: 5px solid var(--primary);
  border-radius: 18px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-medium);
}
.mobile-notification[hidden] { display: none; }
.mobile-notification div { flex: 1; }
.mobile-notification strong { display: block; font-size: 15px; }
.mobile-notification p { margin: 5px 0 0; color: var(--text-secondary); font-size: 13px; }
.mobile-notification button { border: 0; background: transparent; color: var(--text-secondary); font-size: 28px; line-height: 1; cursor: pointer; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding-top: max(16px, env(safe-area-inset-top));
  background: rgba(5, 20, 20, 0.62);
  backdrop-filter: blur(4px);
}

.overlay.show {
  display: flex;
}

.sheet {
  width: min(100%, 720px);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 27px 27px 0 0;
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: 0 -18px 55px rgba(0, 0, 0, 0.30);
  overscroll-behavior: contain;
}

.sheet-content {
  padding: 8px 18px max(22px, env(safe-area-inset-bottom));
}

.sheet-handle {
  width: 48px;
  height: 5px;
  margin: 5px auto 14px;
  border-radius: 999px;
  background: var(--border);
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sheet-title {
  min-width: 0;
  flex: 1;
  margin: 4px 0 17px;
  font-size: 23px;
  font-weight: 790;
  line-height: 1.22;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.close-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  cursor: pointer;
}

.close-button svg {
  width: 22px;
  height: 22px;
}

/* The talk page is intentionally taller and reads as an in-app screen rather than a web page. */
.talk-sheet {
  width: min(100%, 820px);
  max-height: 96vh;
}

.talk-sheet .sheet-content {
  padding-right: 16px;
  padding-left: 16px;
}

.talk-hero {
  margin: -2px -2px 17px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 46%),
    var(--surface);
}

.talk-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.talk-title {
  margin: 0;
  font-size: clamp(24px, 6.5vw, 32px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.talk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 13px;
}

.detail-section {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.detail-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.detail-section-title svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.annotation-text,
.speaker-bio {
  color: var(--text);
  font-size: 15px;
  line-height: 1.62;
  white-space: pre-line;
}

.annotation-text p {
  margin: 0 0 10px;
}

.annotation-text p:last-child {
  margin-bottom: 0;
}

.speaker-card-detail {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.speaker-card-detail + .speaker-card-detail {
  margin-top: 10px;
}

.speaker-card-detail .avatar {
  width: 76px;
  height: 76px;
  font-size: 22px;
}

.speaker-detail-main {
  min-width: 0;
}

.speaker-detail-name {
  margin: 2px 0 3px;
  font-size: 18px;
  font-weight: 790;
  line-height: 1.25;
}

.speaker-detail-position,
.speaker-detail-place {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.speaker-bio {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 14px;
}

.detail-status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 15px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary-soft) 52%, var(--surface));
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.detail-status.error {
  border-color: color-mix(in srgb, var(--danger) 30%, var(--border));
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  color: var(--danger);
}

.detail-status svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--primary);
}

.detail-status.error svg {
  color: var(--danger);
}

.sheet-actions {
  position: sticky;
  bottom: calc(-1 * max(22px, env(safe-area-inset-bottom)));
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 2px -2px 0;
  padding: 13px 2px max(2px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--surface-raised) 16%);
}

.primary-button,
.secondary-button {
  min-height: 47px;
  flex: 1 1 190px;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
}

button {
  transition: transform .13s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease, opacity .16s ease;
}

button:active:not(:disabled) {
  transform: scale(.975);
}

button:disabled {
  cursor: default;
  opacity: .68;
}

.is-loading {
  pointer-events: none;
}

.is-loading::before {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: action-spin .7s linear infinite;
}

.is-success {
  background: var(--success) !important;
  color: #fff !important;
}

.is-error {
  background: var(--danger) !important;
  color: #fff !important;
}

@keyframes action-spin {
  to { transform: rotate(360deg); }
}

.primary-button {
  border: 0;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--primary) 24%, transparent);
}

html[data-theme="dark"] .primary-button {
  color: #082826;
}

.secondary-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary-strong);
}

html[data-theme="dark"] .secondary-button {
  color: var(--primary);
}

.profile-hero {
  text-align: center;
}

.profile-hero .avatar {
  width: 118px;
  height: 118px;
  margin: 5px auto 14px;
  font-size: 34px;
}

.profile-name {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.22;
}

.profile-position {
  margin: 7px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.4;
}

.profile-place {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.about-content {
  padding: 5px 2px 8px;
  text-align: center;
}

.about-logo {
  width: min(72%, 260px);
  margin: 8px auto 24px;
}

.about-content h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.22;
}

.about-content p {
  max-width: 520px;
  margin: 0 auto 22px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.58;
}

.test-clock-status {
  margin: 16px 0 4px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 7%, var(--surface-muted));
  color: var(--text);
  font-weight: 760;
  line-height: 1.45;
}

.test-clock-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: 12px;
}

.compact-sheet {
  max-width: 560px;
}

.conflict-message,
.conflict-question {
  margin: 6px 0 14px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.conflict-question {
  margin-top: 18px;
  font-weight: 850;
}

.conflict-list {
  display: grid;
  gap: 8px;
}

.conflict-item {
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.conflict-item strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.version-tap {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 780;
  user-select: none;
}

.developer-status {
  display: flex;
  max-width: 390px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--border));
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 760;
  text-align: left;
}

html[data-theme="dark"] .developer-status {
  color: var(--primary);
}

.developer-exit {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.archive-active-note {
  margin: 0 0 17px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.archive-event-select {
  appearance: auto;
  cursor: pointer;
}

.archive-actions .secondary-button[hidden] {
  display: none;
}

.form-field {
  display: block;
  margin: 0 0 18px;
}

.form-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.form-help {
  display: block;
  margin-top: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.text-input {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 17%, transparent);
}

.theme-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.theme-option {
  position: relative;
}

.theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-option span {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-secondary);
  font-weight: 760;
}

.theme-option input:checked + span {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
  background: var(--primary-soft);
  color: var(--primary-strong);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent);
}

html[data-theme="dark"] .theme-option input:checked + span {
  color: var(--primary);
}

.note,
.error-note {
  margin: 0 0 17px;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary-soft) 48%, var(--surface));
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.error-note {
  border-color: color-mix(in srgb, var(--danger) 32%, var(--border));
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  color: var(--danger);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
}

html[data-theme="dark"] .status-pill {
  color: var(--primary);
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1.28fr);
  gap: 10px 13px;
  margin: 5px 0 19px;
  font-size: 13px;
  line-height: 1.48;
}

.info-key {
  color: var(--text-secondary);
}

.info-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.monospace {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.filter-type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 17px;
}

.toast {
  position: fixed;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 200;
  max-width: min(90vw, 560px);
  padding: 12px 16px;
  border-radius: 13px;
  background: #172523;
  color: #ffffff;
  box-shadow: var(--shadow-medium);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 24px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.parser-diagnostic {
  padding: 20px;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}

@media (min-width: 720px) {
  .header-inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  .app-main {
    padding-right: 18px;
    padding-left: 18px;
  }

  .overlay {
    align-items: center;
    padding: 24px;
  }

  .sheet {
    max-height: 90vh;
    border-radius: 27px;
  }

  .talk-sheet {
    max-height: 94vh;
  }

  .sheet-content {
    padding-bottom: 20px;
  }

  .sheet-actions {
    bottom: -20px;
    padding-bottom: 20px;
  }
}

@media (max-width: 420px) {
  .header-brand {
    width: 72px;
    flex-basis: 72px;
  }

  .sqa-logo-header {
    width: 68px;
  }

  .conference-number { font-size: 27px; }

  .header-row {
    gap: 10px;
  }

  #dayChips {
    gap: 5px;
  }

  #dayChips .filter-chip {
    font-size: 11.5px;
  }

  .speaker-card-detail {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .test-clock-grid { grid-template-columns: 1fr; }

  .speaker-card-detail .avatar {
    width: 64px;
    height: 64px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .info-value {
    margin-bottom: 8px;
  }

  .settings-brand-grid {
    gap: 6px;
  }

  .settings-brand-grid .brand-choice {
    min-height: 78px;
    padding: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Icons inside full-width action buttons must retain their compact control size. */
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-button svg,
.secondary-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* v4.10 talk-card refinements. */
.detail-status.compact-status {
  padding: 9px 11px;
  font-size: 11.5px;
}

.annotation-text .empty-copy {
  margin: 0;
  color: var(--text-secondary);
}

.pwa-install-copy {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.55;
}

.pwa-install-copy p {
  margin: 0 0 12px;
}

.pwa-install-copy ol {
  margin: 8px 0 18px;
  padding-left: 24px;
}

.pwa-install-copy li + li {
  margin-top: 8px;
}

.pwa-install-actions {
  flex-wrap: wrap;
}

/* 4.37: removable applied filters in one horizontal row. */
.active-filter-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 4px 9px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.active-filter-list[hidden] { display: none; }
.active-filter-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.remove-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.remove-filter svg { width: 16px; height: 16px; }
.remove-filter:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
.filter-topic-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.topic-filter { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; white-space: normal; text-align: left; }
.topic-filter > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.topic-swatch {
  display: inline-block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(127, 127, 127, .5);
  border-radius: 2px;
  background-color: var(--surface-muted);
}
.filter-empty-topics { color: var(--text-secondary); align-self: center; font-size: 13px; }
.program-card.break-card .program-card-inner { padding-top: 9px; }
.program-card.break-card .card-header { display: none; }
.program-card.break-card .card-title-static { margin-top: 0; }

/* Topic color remains authoritative for live, soon and QR-focused talk stripes. */
.program-card.topic-colored::before { background: var(--topic-color); }

/* A continuous frame gently shimmers; the XML topic stripe stays unchanged. */
html[data-theme] .program-card.status-highlighted {
  border-color: transparent;
  animation: none;
  scroll-margin-top: calc(var(--app-header-height, 0px) + var(--programme-controls-height, 170px) + 12px);
}
.talk-status-outline {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  pointer-events: none;
  z-index: 2;
  color: #ad7100;
}
.talk-status-outline rect {
  width: calc(100% - 5px);
  height: calc(100% - 5px);
  fill: none;
  stroke: currentColor;
  stroke-width: 3px;
  animation: talk-outline-shimmer 2.8s ease-in-out infinite;
}
html[data-theme="dark"] .talk-status-outline { color: #ffe08a; }
@keyframes talk-outline-shimmer {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .talk-status-outline rect { animation: none; opacity: 1; }
}

/* 4.38: readable About copy and a two-line developer credit. */
.about-content .about-description {
  margin: 16px auto 20px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  line-height: 1.7;
  text-wrap: pretty;
}
.about-description strong { font-weight: 750; }
.about-description .availability-note { color: var(--text-secondary); }
.about-content .about-developer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-top: 16px;
  margin-bottom: 14px;
  border-top: 1px solid var(--border);
}
.about-developer-label { font-size: 12px; color: var(--text-secondary); }
.about-developer-name {
  display: block;
  white-space: nowrap;
  font-size: clamp(11px, 3.25vw, 14px);
  line-height: 1.4;
  font-weight: 650;
  color: var(--text);
}

/* 4.44: a single action opens four discrete, accessible five-point sliders. */
/* 4.45: one-screen voting and the same read-only personal result layout.
   Labels are shared once; the native range remains the accessible drag target. */
.rating-vote-button{width:auto;min-width:112px;max-width:100%;padding:0 14px;font-size:13px;font-weight:750}
.rating-dialog{box-sizing:border-box;max-width:none;width:min(470px,calc(100vw - 24px));max-height:calc(var(--rating-viewport,100dvh) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:hidden;padding:16px;border:1px solid var(--border);border-radius:20px;background:var(--surface);color:var(--text);box-shadow:0 24px 100px #0007}
.rating-dialog::backdrop{background:rgba(6,13,24,.7);backdrop-filter:blur(5px)}
.rating-dialog form{display:flex;flex-direction:column;gap:8px;margin:0;min-width:0}
.rating-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:32px}
.rating-dialog h2{font-size:18px;line-height:1.2;margin:0;min-width:0}
.rating-close{flex:none;width:32px;height:32px;padding:0;border:0;border-radius:50%;font-size:24px;line-height:1;background:var(--surface-muted);color:var(--text);cursor:pointer}
.rating-talk-title{font-size:13px;line-height:1.3;font-weight:600;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.rating-context{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:16px;font-size:11px;line-height:1.3}
.rating-test-mode{color:var(--primary);font-weight:650}
.rating-progress{color:var(--text-secondary);margin:0;white-space:nowrap}.rating-progress.ready{color:var(--text);font-weight:600}
.rating-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.rating-field{min-width:0;border:0;padding:0;margin:0}
.rating-field-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:22px}
.rating-field label{font-size:13px;font-weight:650;line-height:1.2;min-width:0}
.rating-field output{font-size:12px;line-height:1.3;font-weight:750;white-space:nowrap;flex:none;color:var(--text);background:var(--surface-muted);padding:2px 5px;border-radius:6px}
.rating-field input[type=range]{appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box;width:calc(80% + 24px);height:32px;margin:0 auto;padding:0;border:0;border-radius:8px;background:transparent;cursor:pointer;touch-action:none;opacity:1}
.rating-field input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:6px;background:linear-gradient(to right,#800020,#c44836,#b88309,#699a35,#168047)}
.rating-field input[type=range]::-moz-range-track{height:8px;border-radius:6px;background:linear-gradient(to right,#800020,#c44836,#b88309,#699a35,#168047)}
.rating-field input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:24px;height:24px;margin-top:-8px;border:3px solid var(--surface);border-radius:50%;background:var(--text);box-shadow:0 0 0 1px var(--text)}
.rating-field input[type=range]::-moz-range-thumb{width:18px;height:18px;border:3px solid var(--surface);border-radius:50%;background:var(--text);box-shadow:0 0 0 1px var(--text)}
.rating-ticks{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.rating-ticks button{min-width:0;height:21px;padding:0;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--text-secondary);cursor:pointer;line-height:1;opacity:1}
.rating-ticks button strong{font-size:12px;font-weight:600}
.rating-ticks button[aria-pressed=true]{background:var(--primary-soft);color:var(--text);border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}
.rating-field input[type=range]:focus-visible,.rating-ticks button:focus-visible,.rating-close:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.rating-overall-field{border-top:1px solid var(--border);padding-top:7px;margin-top:1px}
.rating-overall-field label{font-weight:800}
.rating-legend{display:flex;flex-wrap:wrap;justify-content:center;column-gap:10px;row-gap:3px;font-size:10px;line-height:1.3;color:var(--text-secondary);padding-top:3px}
.rating-legend span{white-space:nowrap}.rating-legend b{color:var(--text)}
.rating-dialog #ratingSend{flex:none;width:100%;min-height:42px;height:42px;padding:0 12px;margin:0;justify-content:center;font-size:15px;border-radius:12px}
.rating-dialog #ratingSend:disabled{opacity:.45;cursor:default}
.rating-readonly input[type=range],.rating-readonly .rating-ticks button{cursor:default;opacity:1}
.rating-tight{padding:12px}.rating-tight form{gap:6px}.rating-tight .rating-fields{gap:4px}.rating-tight .rating-field label{font-size:12px}.rating-tight .rating-talk-title{-webkit-line-clamp:1}.rating-tight .rating-field input[type=range]{height:30px}.rating-tight .rating-ticks button{height:19px}.rating-tight .rating-overall-field{padding-top:5px}
/* Short viewports, including landscape and visible browser controls, use 2x2
   criteria. View and entry modes use exactly the same breakpoints. */
.rating-short{width:min(720px,calc(100vw - 20px));padding:10px;max-height:calc(var(--rating-viewport,100dvh) - 20px)}
.rating-short form{gap:4px}.rating-short h2{font-size:16px}.rating-short .rating-dialog-heading{min-height:28px}.rating-short .rating-close{width:28px;height:28px}.rating-short .rating-fields{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:6px}
.rating-short .rating-field-heading{min-height:28px;align-items:center}.rating-short .rating-field label{font-size:11px;line-height:1.15}.rating-short .rating-field output{font-size:11px;padding:1px 3px}.rating-short .rating-field input[type=range]{height:26px}.rating-short .rating-ticks button{height:18px}.rating-short .rating-overall-field{border-top:0;border-left:1px solid var(--border);padding:0 0 0 10px;margin:0}.rating-short .rating-legend{font-size:9px;padding:0;gap:2px 8px}.rating-short #ratingSend{height:36px;min-height:36px;font-size:14px}
.toast.rating-success{background:#d9f5e5;color:#115c32;border:1px solid #208a4c}.toast.rating-error{background:#fde2e5;color:#9b1830;border:1px solid #b12840}
.rating-notice-detail{display:block;margin-top:5px;font-size:12px;line-height:1.35}

/* 4.46: fixed, safe footers; scroll only the options / camera / About content. */
:root{--device-bottom-inset:env(safe-area-inset-bottom,0px);--ui-bottom-space:max(20px,calc(var(--device-bottom-inset) + 12px))}
html[data-app-platform=android]{--ui-bottom-space:max(64px,calc(var(--device-bottom-inset) + 12px))}
#filterOverlay,#aboutOverlay,#qrScannerOverlay{top:var(--mobile-viewport-top,0px);bottom:auto;height:var(--mobile-viewport-height,100dvh);box-sizing:border-box}
:is(#filterOverlay,#aboutOverlay,#qrScannerOverlay) .sheet{height:min(760px,100%);max-height:100%;overflow:hidden;display:flex;flex-direction:column}
#aboutOverlay .sheet{height:min(650px,100%)}
:is(#filterOverlay,#aboutOverlay,#qrScannerOverlay) .sheet-content{box-sizing:border-box;display:flex;flex-direction:column;flex:1;min-height:0;padding-bottom:0}
:is(#filterOverlay,#aboutOverlay,#qrScannerOverlay) .sheet-handle,:is(#filterOverlay,#aboutOverlay,#qrScannerOverlay) .sheet-header{flex:none}
#filterBody{display:flex;flex-direction:column;flex:1;min-height:0}
.filter-options,.qr-scanner-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 2px 12px;scroll-padding-block:12px}
:is(#filterOverlay,#qrScannerOverlay) .sheet-actions{position:static;flex:none;flex-wrap:nowrap;bottom:auto;margin:0 -18px;padding:12px 18px var(--ui-bottom-space);background:var(--surface-raised);border-top:1px solid var(--border)}
:is(#filterOverlay,#qrScannerOverlay) .sheet-actions button{flex:1 1 0;min-width:0}
#qrScannerOverlay .qr-camera-frame{width:100%;height:auto;aspect-ratio:4/3;max-height:32dvh;min-height:110px}
#qrScannerOverlay #qrVideo{height:100%;width:100%;object-fit:cover}
#aboutOverlay .about-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 2px 14px;text-align:center}
#aboutOverlay .about-logo{display:block;width:min(60%,210px);max-height:78px;object-fit:contain;margin:4px auto 14px}
#aboutOverlay .about-content h2{font-size:22px;margin:0 0 8px;line-height:1.2;letter-spacing:-.025em;text-wrap:balance}
#aboutOverlay .about-description{max-width:340px;margin:0 auto 18px;padding:0;border:0;background:none;font-size:14px;line-height:1.45;color:var(--text-secondary);text-align:center;text-wrap:balance}
.about-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:600px;margin:auto}
.about-features>div{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;padding:14px 8px 12px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
.about-feature-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--primary-soft);color:var(--primary);font-size:25px;line-height:1}
.about-features strong{font-size:13px;line-height:1.2}
.about-features>div>span:last-child{font-size:12px;line-height:1.4;color:var(--text-secondary);text-wrap:balance}
#aboutOverlay .about-developer{padding-top:16px;margin:18px 0 0}
.about-footer{flex:none;text-align:center;padding:10px 0 var(--ui-bottom-space);border-top:1px solid var(--border)}
.about-footer .version-tap{display:inline-flex;align-items:center;justify-content:center;margin:0;min-height:40px;padding:8px 18px;background:var(--surface);border:1px solid var(--border);border-radius:999px;font-size:13px;color:var(--text-secondary)}
.language-badge{padding-inline:7px;min-width:32px;justify-content:center}
@media(max-width:360px){.about-features{gap:6px}.about-features>div{padding:10px 5px}.about-features strong{font-size:12px}.about-features>div>span:last-child{font-size:11px}}

.pwa-update-status{margin:0 0 6px;font-size:11px;line-height:1.3;color:var(--text-secondary);text-align:center}

/* 4.47: close controls stay above the safe area in either orientation. */
button[data-section-video]{cursor:pointer;text-decoration:none;font:inherit}
button[data-section-video]:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.section-video-dialog{box-sizing:border-box;width:min(960px,calc(100vw - 24px));max-width:960px;height:fit-content;max-height:calc(var(--video-viewport,100dvh) - 24px - env(safe-area-inset-top,0px) - max(64px,env(safe-area-inset-bottom,0px)));padding:12px;border:1px solid #516365;border-radius:18px;background:#142024;color:#f0f6f6;overflow:hidden}
.section-video-dialog[open]{display:flex;flex-direction:column;gap:8px}
.section-video-dialog::backdrop{background:rgba(0,0,0,.78)}
.section-video-dialog header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}
.section-video-dialog h2{font-size:17px;line-height:1.2;margin:0}
.section-video-dialog p{font-size:12px;line-height:1.3;margin:4px 0 0}
.section-video-dialog .section-video-close{flex:0 0 44px;width:44px;height:44px;border:1px solid #73858a;border-radius:50%;background:#263a40;color:white;font-size:22px;cursor:pointer}
.section-video-dialog video{display:block;width:100%;min-height:0;flex:0 1 auto;height:min(648px,calc((100vw - 50px) * .7125),calc(var(--video-viewport,100dvh) - 220px));aspect-ratio:1280/912;object-fit:contain;background:#000;border-radius:8px}
.section-video-hint{color:#c3d0d3;flex-shrink:0;text-align:center}
.section-video-error{color:#ffadb8;flex-shrink:0}
@media(max-height:450px){.section-video-dialog{padding:8px;gap:4px}.section-video-hint{display:none}.section-video-dialog header p{display:none}}

/* 4.49: collapse the former count row when no reset action is needed. */
.result-toolbar[hidden]{display:none!important}

.favorite-reminders{margin:12px;padding:14px;border:1px solid var(--border,#9caea7);border-radius:12px;background:var(--surface,#fff);color:var(--text,#18261f);font-size:14px;line-height:1.5}.favorite-reminders[hidden]{display:none}.favorite-reminders p{margin:0 0 10px}.favorite-reminders>div{display:flex;gap:8px;flex-wrap:wrap}.favorite-reminders button{min-height:44px;white-space:normal}

/* 4.53: optional formatted feedback in the three-criterion ballot. */
.rating-dialog form{max-height:calc(var(--rating-viewport,100dvh) - 56px);overflow-y:auto}
.rating-feedback{display:grid;gap:4px;flex:none;font-size:12px}
.rating-feedback-tools{display:flex;gap:5px}.rating-feedback-tools button{border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);min-width:30px;min-height:28px}
#ratingFeedback{box-sizing:border-box;min-height:58px;max-height:90px;overflow-y:auto;border:1px solid var(--border);border-radius:8px;padding:7px;background:var(--surface);color:var(--text)}
#ratingFeedback:focus-visible{outline:2px solid var(--primary)}
