/* GTF visual identity — technical dark theme, refined for prolonged use. */
:root,
[data-theme="light"],
[data-theme="dark"],
[data-theme="system"] {
  --gtf-bg: #07141f;
  --gtf-workspace: #0a1a27;
  --gtf-surface: #102331;
  --gtf-surface-raised: #152c3b;
  --gtf-surface-selected: #1a3444;
  --gtf-border: rgba(166, 196, 208, .18);
  --gtf-border-strong: rgba(166, 196, 208, .3);
  --gtf-text: #eef5f7;
  --gtf-text-soft: #bdccd3;
  --gtf-text-muted: #8da4af;
  --gtf-yellow: #fef08a;
  --gtf-yellow-soft: rgba(254, 240, 138, .1);
  --gtf-dashboard-accent: #22b8cf;
  --gtf-teal: #28b9bf;
  --gtf-cyan: #5ec8e5;
  --gtf-green: #43c487;
  --gtf-orange: #efa04f;
  --gtf-red: #f05d62;
  --bg: var(--gtf-bg);
  --white: var(--gtf-surface);
  --ink: var(--gtf-text);
  --muted: var(--gtf-text-muted);
  --line: var(--gtf-border);
  --navy: #0c2c43;
  --navy2: #06131e;
  --blue: #168fa4;
  --cyan: var(--gtf-teal);
  --green: var(--gtf-green);
  --amber: var(--gtf-orange);
  --red: var(--gtf-red);
  --green-bg: rgba(67, 196, 135, .12);
  --amber-bg: rgba(239, 160, 79, .12);
  --red-bg: rgba(240, 93, 98, .12);
  --shadow: 0 14px 34px rgba(0, 0, 0, .18);
  color-scheme: dark;
}

html,
body {
  background: var(--gtf-bg);
  color: var(--gtf-text);
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

body {
  background-image:
    linear-gradient(rgba(94, 200, 229, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 200, 229, .018) 1px, transparent 1px);
  background-size: 36px 36px;
}

::selection { background: rgba(254, 240, 138, .3); color: #fff; }
:focus-visible { outline: 3px solid rgba(254, 240, 138, .55); outline-offset: 2px; }

/* Initial and authentication surfaces */
.boot-screen {
  background: radial-gradient(circle at 50% 20%, #16415a 0, #081925 44%, #040c13 100%);
}

.boot-card {
  width: min(390px, 92vw);
  border: 1px solid var(--gtf-border-strong);
  border-radius: 12px;
  background: rgba(10, 26, 39, .94);
  color: var(--gtf-text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.boot-card .initial-logo-crop {
  width: 146px;
  aspect-ratio: 640 / 253;
}

.initial-logo-crop,
.brand-logo,
.about-gtf-mark {
  background: var(--gtf-yellow);
  -webkit-mask: url('/gtf-mark-dark.png') center / contain no-repeat;
  mask: url('/gtf-mark-dark.png') center / contain no-repeat;
}
.initial-logo-crop img,
.brand-logo img { opacity: 0; }

.boot-card span,
.boot-card .boot-version { color: var(--gtf-text-muted); }
.boot-card i { border-color: var(--gtf-border-strong); border-top-color: var(--gtf-yellow); }

/* Welcome screen: white identity mark with its native transparent background. */
.welcome-panel > .welcome-logo {
  display: block;
  width: min(260px, 75%);
  height: auto;
  margin-inline: auto;
  filter: brightness(0) invert(1);
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(2, 11, 18, .38), rgba(2, 10, 16, .72)),
    radial-gradient(circle at 50% 42%, transparent 0, rgba(3, 13, 21, .28) 52%, rgba(3, 12, 19, .82) 100%),
    url('/gtf-login-stage.webp') center / cover no-repeat;
}

.login-card {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid rgba(190, 216, 226, .28);
  border-radius: 14px;
  background: rgba(8, 24, 37, .88);
  color: var(--gtf-text);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .44);
  backdrop-filter: blur(18px) saturate(120%);
}

.login-brand-lockup {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin-bottom: 12px;
  text-align: center;
}

.login-brand-lockup::before {
  content: '';
  display: block;
  width: 116px;
  aspect-ratio: 640 / 253;
  background: var(--gtf-yellow);
  -webkit-mask: url('/gtf-mark-dark.png') center / contain no-repeat;
  mask: url('/gtf-mark-dark.png') center / contain no-repeat;
}
.login-brand-lockup img { display: none; }
.login-brand-lockup > span { display: block; color: var(--gtf-text-soft); font-size: 12px; }
.login-intro { margin: 0 0 26px; padding-bottom: 19px; border-bottom: 1px solid var(--gtf-border); color: var(--gtf-text-muted); font-size: 13px; }
.login-intro strong { color: var(--gtf-text); font-weight: 750; }
.login-form { display: grid; gap: 16px; }
.login-form label { display: grid; gap: 7px; color: var(--gtf-text-soft); font-size: 12px; font-weight: 700; }
.login-form input { min-height: 48px; }
.login-error { min-height: 18px; margin: -5px 0 0; color: #ff8d91; font-size: 12px; }
.login-card .app-credit { justify-content: center; margin-top: 22px; color: var(--gtf-text-muted); }

/* Application shell */
.app-shell { grid-template-columns: 232px minmax(0, 1fr); background: var(--gtf-bg); }
.sidebar {
  padding: 19px 12px 14px;
  border-right: 1px solid var(--gtf-border);
  background: linear-gradient(180deg, #071722 0, #06131d 100%);
  color: var(--gtf-text);
}

.brand { width: 100%; gap: 11px; padding: 0 9px 17px; border: 0; border-bottom: 1px solid var(--gtf-border); border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.brand:hover .brand-logo { background: #fff5b0; }
.brand-logo { width: 52px; height: 38px; padding: 0; border-radius: 0; background: var(--gtf-yellow); box-shadow: none; }
.brand-logo img { object-fit: contain; }
.brand strong { color: #fff; font-size: 17px; letter-spacing: .1em; }
.brand span { max-width: 135px; overflow: hidden; color: var(--gtf-text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
nav { gap: 7px; margin-top: 14px; }
.nav-group-toggle { padding: 8px 9px 4px; color: #667f8c; font-size: 9px; letter-spacing: .055em; }
.nav-group-toggle:hover { color: var(--gtf-text-soft); }
.nav-group-items { gap: 1px; }
.nav-group-items > button {
  position: relative;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 5px;
  color: #a7bac3;
  font-size: 12px;
}
.nav-group-items > button > span { color: #718d99; }
.nav-group-items > button > span svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-group-items > button:hover { background: rgba(255, 255, 255, .045); color: #fff; }
.nav-group-items > button.active {
  background: linear-gradient(90deg, var(--gtf-yellow-soft), transparent 92%);
  color: #fff;
  box-shadow: inset 2px 0 var(--gtf-yellow);
}
.nav-group-items > button.active > span { color: var(--gtf-yellow); }
.sidebar-bottom { border-top: 1px solid var(--gtf-border); padding-top: 9px; }
.sidebar-bottom small { color: #718793; font-size: 10px; }
.app-credit { color: #718793; font-size: 9px; }
.app-credit img,
.about-powered img,
.powered-logo img { filter: brightness(0) invert(1); }

.workspace { min-width: 0; background: var(--gtf-workspace); }
.topbar {
  height: 80px;
  padding: 14px 30px;
  border-bottom: 1px solid var(--gtf-border);
  background: rgba(8, 23, 35, .94);
  color: var(--gtf-text);
  backdrop-filter: blur(13px);
}
.topbar h1 { color: #fff; font-size: 23px; letter-spacing: -.025em; }
.topbar p { color: var(--gtf-text-muted); font-size: 12px; }
.top-actions { gap: 12px; }
.project-switcher { color: #d6e3e8; font-weight: 760; }
.project-switcher select { width: 210px; border-color: rgba(254, 240, 138, .32); background: #0d2433; color: #f5f9fa; font-weight: 650; }
.project-switcher select:focus { border-color: var(--gtf-yellow); }
.user-session strong { color: var(--gtf-text); }
.user-session span { color: var(--gtf-text-muted); }
.signout-link { color: var(--gtf-text-soft); }
.notification-btn {
  border-color: var(--gtf-border);
  background: var(--gtf-surface);
  color: var(--gtf-text-soft);
}
.notification-btn:hover { background: var(--gtf-surface-raised); color: var(--gtf-yellow); }
.notification-btn b { border-color: var(--gtf-workspace); }
.notification-panel { border-color: var(--gtf-border-strong); background: var(--gtf-surface); box-shadow: var(--shadow); }
.notification-card { border-bottom-color: var(--gtf-border); background: var(--gtf-surface); color: var(--gtf-text); }
.notification-card:hover,
.notification-card.unread { background: var(--gtf-surface-raised); }

.content { max-width: 1680px; padding: 28px 30px 42px; }
.grid { gap: 14px; }

/* Shared surfaces and hierarchy */
.card,
.kpi,
.project-card,
.table-wrap,
.detail-card,
.subsection > .card,
.modal-panel,
.document-artist,
.document-group,
.supplier-card,
.shift-lane,
.rider-import-history,
.rider-review-panel {
  border-color: var(--gtf-border);
  border-radius: 9px;
  background: var(--gtf-surface);
  color: var(--gtf-text);
  box-shadow: none;
}

.card-header,
.modal-panel > header,
.document-group > header,
.supplier-card > header,
.rider-history-heading,
.rider-review-panel > header {
  border-color: var(--gtf-border);
  background: transparent;
}
.card-header h2,
.card-header h3 { color: var(--gtf-text); }
.card-body { color: var(--gtf-text-soft); }
.empty-state { color: var(--gtf-text-muted); }

.btn {
  min-height: 40px;
  border-radius: 6px;
  font-weight: 760;
  box-shadow: none;
}
.btn.primary {
  border-color: var(--gtf-yellow);
  background: var(--gtf-yellow);
  color: #111b22;
}
.btn.primary:hover { border-color: #fff5b0; background: #fff5b0; }
.btn.secondary,
.btn.ghost {
  border-color: var(--gtf-border-strong);
  background: var(--gtf-surface-raised);
  color: var(--gtf-text-soft);
}
.btn.ghost { background: transparent; }
.btn.secondary:hover,
.btn.ghost:hover { border-color: rgba(254, 240, 138, .55); background: var(--gtf-surface-selected); color: #fff; }
.btn.danger { border-color: rgba(240, 93, 98, .38); background: rgba(240, 93, 98, .1); color: #ff9b9e; }
.btn.small { min-height: 34px; }
.icon-btn { border-color: var(--gtf-border-strong); background: var(--gtf-surface); color: var(--gtf-text); }

input,
select,
textarea,
.search,
.filter,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  border-color: var(--gtf-border-strong);
  border-radius: 6px;
  background: #0a1a27;
  color: var(--gtf-text);
}
select {
  min-height: 40px;
  height: 40px;
  padding-block: 0;
  padding-inline: 11px 34px;
  line-height: 1.2;
  vertical-align: middle;
}
input::placeholder,
textarea::placeholder { color: #718894; }
input:focus,
select:focus,
textarea:focus { border-color: var(--gtf-yellow); box-shadow: 0 0 0 3px rgba(254, 240, 138, .11); }

.toolbar {
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--gtf-border);
  border-radius: 8px;
  background: rgba(16, 35, 49, .74);
}
.sort-help { color: var(--gtf-text-muted); }

.badge {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0;
  box-shadow: none;
}
.badge.green { background: rgba(67, 196, 135, .1); color: #6ed6a2; }
.badge.amber,
.badge.orange { background: rgba(239, 160, 79, .1); color: #f4b875; }
.badge.red { background: rgba(240, 93, 98, .1); color: #ff969a; }
.badge.blue { background: rgba(94, 200, 229, .1); color: #8bd9ed; }

.table-wrap { overflow: auto; }
table { color: var(--gtf-text-soft); }
th {
  border-color: var(--gtf-border);
  background: #0a1b28;
  color: #91a8b3;
  font-size: 10px;
  letter-spacing: .02em;
}
td { border-color: var(--gtf-border); font-size: 12px; }
tbody tr:hover td,
.artist-open-row:hover td { background: rgba(254, 240, 138, .035); }
.artist-open-row:active td { background: var(--gtf-surface-selected); }
.sort-button { color: inherit; }
.actions { white-space: nowrap; }

/* Input lists: every channel and editable value stays readable on dark surfaces. */
#inputArea .input-table {
  background: #091925;
  color: var(--gtf-text);
}
#inputArea .input-table th {
  border-color: var(--gtf-border-strong);
  background: #071722;
  color: #b8cbd3;
}
#inputArea .input-table td {
  border-color: var(--gtf-border);
  background: #0c1e2b;
}
#inputArea .input-table tbody tr:nth-child(even) td { background: #102634; }
#inputArea .input-table .ch {
  background: #071722;
  color: #82e0e5;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
#inputArea .input-table input,
#inputArea .input-table select {
  border-color: rgba(184, 211, 221, .3);
  background: #071722;
  color: #f4f8fa;
  -webkit-text-fill-color: #f4f8fa;
  color-scheme: dark;
}
#inputArea .input-table input:focus,
#inputArea .input-table select:focus {
  border-color: #67d7db;
  box-shadow: 0 0 0 2px rgba(103, 215, 219, .16);
}
#inputArea .input-table input:disabled,
#inputArea .input-table select:disabled {
  background: #122838;
  color: #d4e0e5;
  -webkit-text-fill-color: #d4e0e5;
  opacity: 1;
}

/* Dashboard */
.dashboard-preparation {
  display: grid;
  margin-bottom: 15px;
  padding: 22px 24px;
  border: 1px solid rgba(34, 184, 207, .3);
  border-radius: 11px;
  background: linear-gradient(110deg, #0b1739 0%, #0e2c46 72%, rgba(34, 184, 207, .2) 100%);
}
.dashboard-preparation-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dashboard-preparation-heading span { color: #a9dfe7; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.dashboard-preparation-heading h2 { margin: 5px 0 0; color: #fff; font-size: 21px; }
.dashboard-preparation-heading > div:first-child > p { margin: 7px 0 0; color: var(--gtf-text-soft); font-size: 11px; }
.dashboard-preparation-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.dashboard-preparation-actions > strong { padding: 8px 11px; border: 1px solid rgba(111,166,198,.22); border-radius: 7px; background: rgba(7,29,44,.34); color: #8fddea; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.dashboard-operational-button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; border-color: var(--gtf-dashboard-accent); background: transparent; color: #7bd9e6; }
.dashboard-operational-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dashboard-operational-button.has-operational-activity svg {
  color: #ff2d2d;
  transform-origin: center;
  filter: drop-shadow(0 0 4px rgba(255,45,45,1)) drop-shadow(0 0 10px rgba(220,38,38,.9));
  animation: operational-nav-pulse 1.15s ease-in-out infinite;
}
.dashboard-operational-button:hover { background: rgba(34,184,207,.12); color: #b8f0f5; }
@media (prefers-reduced-motion: reduce) {
  .dashboard-operational-button.has-operational-activity svg { animation: none; }
}
.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  justify-content: stretch;
  gap: 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.kpi {
  display: flex;
  flex-direction: column;
  min-height: 108px;
  padding: 10px 12px 9px;
  border: 1px solid rgba(111, 166, 198, .18);
  border-radius: 11px;
  background: linear-gradient(145deg, #0d2638, #0a1e2e);
  box-shadow: 0 6px 16px rgba(0, 8, 18, .12);
  text-align: left;
}
.kpi-heading { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.kpi-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.07); color: #e5edf2; }
.kpi-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kpi .label { color: #e8eef2; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.kpi-chevron { color: #d4e0e7; font-size: 19px; font-weight: 300; line-height: 1; }
.kpi-value-block { margin-top: auto; padding-top: 8px; }
.kpi .value { margin: 0 0 3px; color: #fff; font-size: 21px; font-weight: 400; line-height: 1; letter-spacing: -.025em; }
.kpi .hint { color: #aebdca; font-size: 9.5px; line-height: 1.2; }
.kpi-progress { height: 3px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.kpi-progress i { display: block; height: 100%; border-radius: inherit; background: var(--gtf-dashboard-accent); box-shadow: 0 0 14px rgba(34,184,207,.22); }
.kpi.alert { border-color: rgba(240,93,98,.3); background: linear-gradient(145deg, #2a2027, #211a23); }
.kpi.alert .kpi-icon { background: rgba(240,93,98,.12); color: #ff8f93; }
.kpi.alert .label,.kpi.alert .value { color: #ff9ca0; }
.kpi-link:hover { border-color: rgba(34,184,207,.44); background: linear-gradient(145deg, #112d40, #0c2334); transform: translateY(-2px); }
.kpi-link:hover .label,.kpi-link:hover .value,.kpi-link:hover .hint,.kpi-link.alert:hover .value { color: inherit; }
.kpi-link:focus-visible { outline-color: var(--gtf-dashboard-accent); }
.dashboard-action-grid { grid-template-columns: minmax(0, 1.25fr) minmax(360px, .9fr); gap: 14px; margin-top: 15px; }
.dashboard-action-grid > .card { min-width: 0; }
.dashboard-action-grid .card-header { min-height: 52px; }
.dashboard-action-grid .card-header small { display: block; margin-top: 4px; color: var(--gtf-text-muted); font-size: 9.5px; }
.dashboard-action-grid .card-body { padding: 0 16px 10px; }
.dashboard-action-row { display: grid; grid-template-columns: 36px minmax(120px,.7fr) minmax(180px,1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--gtf-border); background: transparent; color: var(--gtf-text); font: inherit; text-align: left; }
button.dashboard-action-row { cursor: pointer; }
.dashboard-action-row:last-child { border-bottom: 0; }
button.dashboard-action-row:hover strong { color: #7bd9e6; }
.dashboard-action-row:focus-visible { outline: 2px solid var(--gtf-dashboard-accent); outline-offset: -2px; }
.dashboard-action-row strong { font-size: 12px; }
.dashboard-action-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(34,184,207,.1); color: #7bd9e6; }
.dashboard-action-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-action-icon.critical { background: rgba(240,93,98,.15); color: #ff8f93; }
.dashboard-action-icon.warning { background: rgba(245,158,11,.14); color: #f8b84a; }
.dashboard-action-icon.info { background: rgba(34,184,207,.1); color: #7bd9e6; }
.dashboard-action-icon.clear { background: rgba(83,194,151,.13); color: #79d9b3; }
.dashboard-action-row[hidden] { display: none; }
.dashboard-preparation-status { justify-self: start; max-width: 100%; padding: 5px 8px; overflow: hidden; border: 1px solid rgba(34,184,207,.24); border-radius: 6px; background: rgba(34,184,207,.08); color: #8fddea; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-preparation-status.critical { border-color: rgba(240,93,98,.3); background: rgba(240,93,98,.1); color: #ff9ca0; }
.dashboard-preparation-status.warning { border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.1); color: #f8c45e; }
.dashboard-preparation-status.clear { border-color: rgba(83,194,151,.3); background: rgba(83,194,151,.1); color: #79d9b3; }
.dashboard-action-chevron { color: var(--gtf-text-muted); font-size: 21px; }
.dashboard-upcoming-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto 12px; align-items: center; gap: 11px; min-height: 70px; border-bottom: 1px solid var(--gtf-border); }
.dashboard-upcoming-row:last-child { border-bottom: 0; }
.dashboard-upcoming-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(34,184,207,.2); border-radius: 8px; background: rgba(34,184,207,.08); color: #54cfe0; }
.dashboard-upcoming-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dashboard-upcoming-row > span:nth-child(2) { display: grid; min-width: 0; }
.dashboard-upcoming-row .artist-link,.dashboard-upcoming-row > span:nth-child(2) > strong { overflow: hidden; color: var(--gtf-text); font-size: 12px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-upcoming-row small { margin-top: 4px; color: var(--gtf-text-muted); font-size: 9px; }
.dashboard-upcoming-row time { color: #d8e7ed; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.dashboard-upcoming-row > span:last-child { color: var(--gtf-text-muted); font-size: 19px; }
.section-grid { grid-template-columns: minmax(0, 1.75fr) minmax(280px, .8fr); margin-top: 15px; }
.day-grid { gap: 1px; overflow: hidden; border: 1px solid var(--gtf-border); border-radius: 7px; background: var(--gtf-border); }
.day-card { border: 0; border-radius: 0; background: #0c1d2a; box-shadow: none; }
.day-card header { border-color: var(--gtf-border); background: transparent; }
.day-card header small { color: var(--gtf-text-muted); }
.day-card .slot { border-color: var(--gtf-border); }
.day-card .slot time { color: var(--gtf-yellow); font-variant-numeric: tabular-nums; }
.day-card .slot .order,
.timeline-order {
  border: 1px solid rgba(254, 240, 138, .28);
  background: rgba(254, 240, 138, .13);
  color: var(--gtf-yellow);
}
.artist-link { color: var(--gtf-text); }
.artist-link:hover { color: var(--gtf-yellow); }
.artist-document-link { color: var(--gtf-yellow); font-weight: 760; text-decoration: underline; text-decoration-color: rgba(254, 240, 138, .35); text-underline-offset: 3px; }
.artist-document-link:hover { color: #fff5b0; text-decoration-color: currentColor; }
.artist-performance-status.is-cancelled { border-color: rgba(239,100,100,.45); color: #ffb0b0; }
.timeline-item.is-cancelled,.festival-slot.is-cancelled,.day-card .slot.is-cancelled { border-color: rgba(239,100,100,.45); background: rgba(116,28,34,.2); }
.timeline-item.is-cancelled .timeline-title,.festival-slot.is-cancelled .festival-slot-name,
.day-card .slot.is-cancelled .artist-link,.artist-open-row.is-cancelled td:first-child,
.artist-hero.is-cancelled h2,.is-cancelled-artist {
  color: #ff6268 !important;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  animation: cancelledArtistPulse 1.05s ease-in-out infinite;
}
.badge.is-cancelled-status,.is-cancelled .festival-state-badge,.artist-performance-status.is-cancelled {
  border-color: #ff6268;
  background: rgba(240,93,98,.18);
  color: #ff8e93;
  animation: cancelledArtistPulse 1.05s ease-in-out infinite;
}
.export-source-table tr.is-cancelled td { background: rgba(116,28,34,.11); color: #d7a7aa; }
@keyframes cancelledArtistPulse {
  0%,100% { opacity: 1; text-shadow: 0 0 0 rgba(255,98,104,0); }
  50% { opacity: .42; text-shadow: 0 0 10px rgba(255,98,104,.7); }
}
.dashboard-view .day-card .slot time { color: var(--gtf-dashboard-accent); }
.dashboard-view .day-card .slot .order {
  border-color: rgba(34,184,207,.32);
  background: rgba(34,184,207,.12);
  color: #7bd9e6;
}
.dashboard-view .artist-link:hover { color: #7bd9e6; }
.detail-row { border-color: var(--gtf-border); }
.detail-row > span:last-child { color: var(--gtf-text-muted); }
.artist-table-wrap td:first-child { color: #fff; font-size: 13px; font-weight: 780; }
.artist-table-wrap td:nth-child(3) { color: var(--gtf-yellow); font-variant-numeric: tabular-nums; font-weight: 800; }
.row-actions-menu { position: relative; display: inline-block; }
.row-actions-menu > summary { display: grid; place-items: center; width: 38px; min-height: 34px; border: 1px solid var(--gtf-border-strong); border-radius: 6px; background: var(--gtf-surface-raised); color: var(--gtf-text-soft); cursor: pointer; list-style: none; }
.row-actions-menu > summary::-webkit-details-marker { display: none; }
.row-actions-menu > div { position: absolute; z-index: 12; right: 0; top: calc(100% + 5px); display: grid; gap: 5px; min-width: 130px; padding: 7px; border: 1px solid var(--gtf-border-strong); border-radius: 8px; background: var(--gtf-surface-raised); box-shadow: var(--shadow); }

/* Artist list and integrated artist record */
.artist-hero {
  min-height: 170px;
  border: 1px solid var(--gtf-border-strong);
  border-radius: 9px;
  background: linear-gradient(105deg, #15394c 0, #0d2635 52%, #091925 100%);
  box-shadow: none;
}
.artist-hero h2 { color: #fff; letter-spacing: -.035em; }
.artist-hero p { color: var(--gtf-text-soft); }
.status-ring { background: conic-gradient(var(--gtf-yellow) var(--progress), rgba(166, 196, 208, .16) 0); }
.status-ring::before { background: var(--gtf-surface-raised); }
.detail-grid { gap: 1px; overflow: hidden; border: 1px solid var(--gtf-border); border-radius: 9px; background: var(--gtf-border); }
.detail-grid .detail-card { border: 0; border-radius: 0; }
.artist-collapsible > summary { border-color: var(--gtf-border); color: var(--gtf-text); }
.artist-collapsible[open] > summary { background: rgba(255, 255, 255, .018); }
.artist-section-chevron { color: var(--gtf-text-muted); }
.artist-section-actions { border-color: var(--gtf-border); background: transparent; }
.subsection { margin-top: 13px; }

/* Rider imports and review */
.rider-imports .card,
.rider-import-history,
.rider-review-panel { background: var(--gtf-surface); }
.rider-import-intro,
.rider-analysis-summary,
.rider-review-callout { border-color: var(--gtf-border); background: var(--gtf-surface-raised); }
.rider-dropzone { border-color: var(--gtf-border-strong); background: #0b1d2a; color: var(--gtf-text-soft); }
.rider-dropzone:hover { border-color: var(--gtf-yellow); background: var(--gtf-yellow-soft); }
.rider-page-card { border-color: var(--gtf-border); background: #0b1d2a; }
.rider-page-meta small,
.rider-import-history small { color: var(--gtf-text-muted); }
.rider-review-tabs { border-color: var(--gtf-border); background: #0b1d2a; }
.rider-review-tabs button { color: var(--gtf-text-soft); }
.rider-review-tabs button.active { background: var(--gtf-surface-selected); color: #fff; box-shadow: inset 0 -2px var(--gtf-yellow); }
.rider-review-field,
.rider-review-list article { border-color: var(--gtf-border); background: #0c1e2b; }
.rider-review-section,
.rider-review-table tr,
.rider-stage-elements,
.rider-stage-element,
.rider-warning,
.rider-warning-action,
.rider-validation-list p,
.rider-analysis-summary p,
.rider-analysis-section dl div,
.rider-pending { border-color: var(--gtf-border); background: #0c1e2b; color: var(--gtf-text); }
.rider-warning.warning,
.rider-validation-list p.warning { border-color: rgba(239, 160, 79, .45); background: rgba(239, 160, 79, .08); }
.rider-warning.blocking,
.rider-validation-list p.blocking { border-color: rgba(240, 93, 98, .45); background: rgba(240, 93, 98, .08); color: #ffb5b7; }
.rider-warning-explanation,
.rider-warning-action span { color: var(--gtf-text-soft); }
.rider-warning-action b,
.rider-analysis-section h3,
.rider-analysis-summary header strong { color: var(--gtf-text); }
.rider-review-actions { border-color: var(--gtf-border); background: rgba(10, 26, 39, .96); }
.notice { border-color: var(--gtf-border); background: var(--gtf-surface-raised); color: var(--gtf-text-soft); }
.notice.success { border-left-color: var(--gtf-green); background: rgba(67, 196, 135, .08); }
.notice.danger { border-left-color: var(--gtf-red); background: rgba(240, 93, 98, .08); }

/* Stage Plot editor: dark chrome, white technical canvas and real SVG symbols. */
.stage-plot-workspace { border-color: var(--gtf-border); background: #091925; }
.stage-generate-card { border-color: rgba(40, 185, 191, .38); background: rgba(40, 185, 191, .07); }
.stage-toolbar,
.stage-symbol-library,
.stage-properties,
.stage-symbol-library > header,
.stage-properties > header,
.stage-library-search,
.stage-element-list details,
.stage-element-list button,
.stage-symbol-library [data-stage-add] {
  border-color: var(--gtf-border);
  background: var(--gtf-surface);
  color: var(--gtf-text);
}
.stage-symbol-library details > summary { border-color: var(--gtf-border); }
.stage-symbol-library [data-stage-add]:hover { border-color: var(--gtf-yellow); background: var(--gtf-yellow-soft); }
.stage-symbol-library [data-stage-add] svg { color: var(--gtf-text-soft); }
.stage-toolbar button { border-color: var(--gtf-border-strong); background: var(--gtf-surface-raised); color: var(--gtf-text-soft); }
.stage-toolbar button:hover,
.stage-toolbar button[aria-pressed="true"] { border-color: var(--gtf-yellow); background: var(--gtf-yellow-soft); color: #fff; }
.stage-properties-form input,
.stage-properties-form select,
.stage-properties-form textarea,
.stage-editor-actions select { border-color: var(--gtf-border-strong); background: #0a1a27; color: var(--gtf-text); }
.stage-editor-actions { border-color: var(--gtf-border-strong); background: rgba(10, 26, 39, .96); box-shadow: 0 -8px 22px rgba(0, 0, 0, .22); }
.stage-canvas-scroll { border-color: #526976; background: #50626b; }
.stage-canvas { background: #fff; color-scheme: light; }
.stage-warnings { border-color: rgba(239, 160, 79, .45); background: rgba(239, 160, 79, .08); }

/* Operational mode intentionally remains blue/turquoise and high contrast. */
.festival-root { --gtf-yellow: #fef08a; }
.festival-operational-header { border-color: rgba(123, 211, 224, .2); background: linear-gradient(135deg, #0b7790, #0a344f 58%, #071d2e); }
.festival-header-brand .festival-eyebrow { color: #6ee7ea; }
.festival-now { background: linear-gradient(145deg, #0a7790, #075469); }
.festival-next { background: linear-gradient(145deg, #102f46, #0a2031); }
.festival-changeover { background: linear-gradient(145deg, #12384c, #0b2637); }
.festival-times strong,
.festival-clock strong { color: #fff; }
.festival-board .btn.primary { border-color: #67d7db; background: #67d7db; color: #06212b; }
.festival-live-badge { color: #fff; }
.festival-running-order,
.festival-issues,
.festival-loadouts { background: var(--gtf-surface); }
.festival-slot { border-color: var(--gtf-border); }
.festival-slot.is-next {
  background: rgba(40, 185, 191, .1);
  color: var(--gtf-text);
  box-shadow: inset 4px 0 var(--gtf-teal);
}
.festival-slot.is-live {
  background: rgba(67, 196, 135, .1);
  color: var(--gtf-text);
  box-shadow: inset 4px 0 var(--gtf-green);
}
.festival-slot:hover { background: var(--gtf-surface-raised); }
.festival-order,
.festival-slot-order {
  border: 1px solid rgba(254, 240, 138, .35);
  background: rgba(254, 240, 138, .14);
  color: var(--gtf-yellow);
  font-weight: 900;
}
.workflow-step i { background: var(--gtf-surface); }
.workflow-step.is-done { color: #72d9df; }
.workflow-step.is-current { color: #8bd9ed; }
.festival-board.is-operational .festival-now .festival-card-actions { border-color: var(--gtf-border-strong); background: rgba(9, 25, 37, .96); }

/* Shared Showtime/Soundcheck checklist: keep every state inside the operational palette. */
.festival-board .changeover-checklist {
  border-color: rgba(103, 215, 219, .42);
  background: #0a2030;
  color: var(--gtf-text);
}
.festival-board .changeover-checklist > header,
.festival-board .soundcheck-checklist > summary {
  border-color: rgba(103, 215, 219, .28);
  background: #103448;
  color: var(--gtf-text);
}
.festival-board .changeover-checklist > header strong,
.festival-board .soundcheck-checklist > summary strong,
.festival-board .changeover-checklist label strong {
  color: var(--gtf-text);
}
.festival-board .changeover-checklist > header span,
.festival-board .soundcheck-checklist > summary small,
.festival-board .changeover-checklist label small {
  color: #a9bec8;
}
.festival-board .changeover-checklist > header > b,
.festival-board .soundcheck-checklist > summary > b {
  background: #168fa4;
  color: #fff;
}
.festival-board .changeover-checklist label {
  border-color: var(--gtf-border-strong);
  background: #102b3c;
  color: var(--gtf-text);
}
.festival-board .changeover-checklist label:hover {
  border-color: rgba(103, 215, 219, .5);
  background: #15384a;
}
.festival-board .changeover-checklist label.is-done {
  border-color: rgba(67, 196, 135, .55);
  background: rgba(67, 196, 135, .14);
}
.festival-board .changeover-checklist input {
  accent-color: #67d7db;
  color-scheme: dark;
}

/* Future Soundchecks stay compact until their time, while every row remains manually expandable. */
.festival-slot.soundcheck-slot {
  display: block;
  padding: 0;
  overflow: hidden;
}
.festival-board.is-operational .festival-slot.soundcheck-slot { padding: 0; }
.soundcheck-slot > summary {
  list-style: none;
}
.soundcheck-slot > summary::-webkit-details-marker { display: none; }
.soundcheck-slot-summary {
  display: grid;
  grid-template-columns: 70px 32px minmax(0, 1fr) auto auto auto 22px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 11px 8px;
  cursor: pointer;
}
.soundcheck-slot-summary:focus-visible {
  outline: 2px solid #67d7db;
  outline-offset: -2px;
}
.soundcheck-slot-chevron {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #82e0e5;
  font-size: 20px;
  line-height: 1;
  transition: transform .18s ease;
}
.soundcheck-slot[open] .soundcheck-slot-chevron { transform: rotate(180deg); }
.soundcheck-slot-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 0 10px 12px;
}
.soundcheck-slot-details > .workflow-strip,
.soundcheck-slot-details > .soundcheck-checklist { grid-column: 1 / -1; }
.soundcheck-slot .festival-action {
  grid-column: 2;
  justify-self: end;
  width: auto;
  min-width: 142px;
  max-width: none;
  white-space: nowrap;
}

/* Dialogs, settings and remaining modules */
.modal-backdrop { background: rgba(0, 6, 10, .74); }
.modal-panel form,
.modal-panel footer { background: var(--gtf-surface); }
.form-grid label { color: var(--gtf-text-soft); }
.modal-panel .form-grid input:not([type="checkbox"]):not([type="radio"]),
.modal-panel .form-grid select,
.modal-panel .form-grid textarea {
  border-color: var(--gtf-border-strong);
  background: #0a1a27;
  color: var(--gtf-text);
  -webkit-text-fill-color: var(--gtf-text);
  color-scheme: dark;
}
.modal-panel .form-grid input:not([type="checkbox"]):not([type="radio"]):disabled,
.modal-panel .form-grid input:not([type="checkbox"]):not([type="radio"])[readonly],
.modal-panel .form-grid select:disabled,
.modal-panel .form-grid textarea:disabled {
  border-color: var(--gtf-border);
  background: #122838;
  color: #bdccd3;
  -webkit-text-fill-color: #bdccd3;
  opacity: 1;
}
.modal-panel .form-grid input::placeholder,
.modal-panel .form-grid textarea::placeholder { color: #718b98; opacity: 1; }
.modal-panel .form-grid option { background: #0a1a27; color: var(--gtf-text); }
.modal-panel .project-access-picker,
.modal-panel .module-access-picker {
  border-color: var(--gtf-border-strong);
  background: #0a1a27;
  color: var(--gtf-text);
}
.modal-panel .project-access-picker > strong,
.modal-panel .module-access-heading strong { color: var(--gtf-text); }
.modal-panel .form-grid .check-option {
  border-color: var(--gtf-border);
  background: #102b3c;
  color: var(--gtf-text-soft);
}
.modal-panel .form-grid .check-option:hover {
  border-color: var(--gtf-border-strong);
  background: var(--gtf-surface-raised);
}
.modal-panel .form-grid .check-option:has(input:disabled) { opacity: .72; }
.modal-panel .form-grid input[type="checkbox"],
.modal-panel .form-grid input[type="radio"] { accent-color: var(--gtf-yellow); }
.modal-panel .permission-grid {
  border-color: var(--gtf-border);
  background: #0d2231;
  color: var(--gtf-text-soft);
}
.modal-panel .permission-grid > * { border-bottom-color: var(--gtf-border); }
.modal-panel .permission-grid > strong {
  background: #153142;
  color: var(--gtf-text);
}
.backline-tabs,
.input-smart-tabs,
.shift-view-tabs { background: #0a1a27; }
.backline-tabs button.active,
.input-smart-tabs button.active,
.shift-view-tabs button.active { background: var(--gtf-surface-selected); color: #fff; box-shadow: inset 0 -2px var(--gtf-yellow); }
.backline-summary span,
.input-analysis-summary span,
.shift-summary span { border-color: var(--gtf-border); background: var(--gtf-surface); }
.supplier-card p,
.document-version,
.document-version-toggle { border-color: var(--gtf-border); background: transparent; }

/* Compatibility pass: legacy light surfaces now follow the GTF dark system. */
.timeline-item {
  border-color: var(--gtf-border);
  background: var(--gtf-surface);
  color: var(--gtf-text);
}
.timeline-item:hover { border-color: var(--gtf-border-strong); background: var(--gtf-surface-raised); }
.timeline-time { color: #61cddd; }
.timeline-order { background: rgba(254, 240, 138, .13); color: var(--gtf-yellow); }
.timeline-title { color: var(--gtf-text); }
.timeline-meta { color: var(--gtf-text-muted); }
.timeline-day > header h2 { color: var(--gtf-text); }
.timeline-day > header small { display: block; margin-top: 3px; color: var(--gtf-text-muted); }

.settings-grid .form-grid input,
.settings-grid .form-grid select,
.settings-grid .form-grid textarea,
.settings-grid .form-grid input:disabled,
.settings-grid .form-grid select:disabled,
.settings-grid .form-grid textarea:disabled {
  border-color: var(--gtf-border-strong);
  background: #0a1a27;
  color: var(--gtf-text);
  -webkit-text-fill-color: var(--gtf-text);
  opacity: 1;
}
.settings-grid .form-grid option { background: #0a1a27; color: var(--gtf-text); }
.settings-grid .form-grid label { color: var(--gtf-text-soft); }
.settings-grid .card-body p { color: var(--gtf-text-soft); }

/* Reports controls belong to the interface; the report itself remains paper. */
.reports-module-header,
.reports-selection-heading,
.operational-report-filters {
  border-color: var(--gtf-border);
  background: var(--gtf-surface);
  color: var(--gtf-text);
  box-shadow: none;
}
.reports-module-header h2,
.reports-selection-heading h1 { color: var(--gtf-text); }
.reports-module-header p,
.reports-selection-heading p,
.operational-report-filters label,
.operational-report-type { color: var(--gtf-text-muted); }
.reports-module-header > div:first-child > span,
.reports-selection-heading > span { color: #62cbd7; }
.operational-report-filters { top: 80px; backdrop-filter: blur(12px); }

.daily-report {
  --ink: #17313f;
  --muted: #647883;
  --line: #d4dfe4;
  --bg: #f2f6f8;
  --navy: #103a5c;
  --blue: #176b87;
  --cyan: #28aeb4;
  border-color: #d4dfe4;
  background: #fff;
  color: #17313f;
  color-scheme: light;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}
.daily-report h1,
.daily-report h2,
.daily-report strong,
.daily-report td { color: #17313f; }
.daily-report-header p,
.daily-report-kpis span,
.daily-report-kpis small,
.daily-report-table td small,
.daily-report > footer { color: #647883; }
.daily-report-kpis article,
.daily-report-notes article { border-color: #d4dfe4; background: #f2f6f8; }
.daily-report-table-wrap { border-color: #d4dfe4; }
.daily-report-table th { border-color: #d7dee5; border-bottom-color: #7d8b94; background: #eef3f6; color: #18365c; font-weight: 600; }
.daily-report-table td { border-color: #d4dfe4; background: #fff; }
.daily-report-status strong { color: #18365c; }

/* About: use the existing transparent mark directly on the dark surface. */
.about-gtf-mark {
  display: block;
  width: min(520px, 82%);
  aspect-ratio: 640 / 253;
  margin: 0 auto;
}
.about-hero h2 { color: var(--gtf-text); }
.about-hero p,
.about-signature { color: var(--gtf-text-muted); }
.about-signature strong { color: var(--gtf-text); }

/* Technical documents use the same dark hierarchy as the rest of GTF. */
.document-artists { gap: 14px; }
.document-artist {
  border-color: var(--gtf-border-strong);
  background: var(--gtf-surface);
}
.document-artist > summary,
.document-artist > summary:hover {
  border-color: var(--gtf-border);
  background: var(--gtf-surface-raised);
  color: var(--gtf-text);
}
.document-artist[open] > summary {
  border-bottom: 1px solid var(--gtf-border-strong);
  background: #173444;
}
.document-artist summary strong,
.document-group h2,
.document-latest strong,
.document-version strong { color: var(--gtf-text); }
.document-artist summary small,
.document-group header p,
.document-latest small,
.document-version small { color: var(--gtf-text-muted); }
.document-artist-avatar {
  border: 1px solid rgba(94, 200, 229, .28);
  background: #0b2d40;
  color: #dff8ff;
}
.document-artist-chevron { color: var(--gtf-cyan); }
.document-artist > .document-groups {
  border-color: var(--gtf-border);
  background: #0a1b28;
}
.document-group {
  border-color: var(--gtf-border-strong);
  background: var(--gtf-surface);
}
.document-group > header { border-color: var(--gtf-border); }
.document-latest { background: transparent; }
.document-file-icon {
  border: 1px solid rgba(94, 200, 229, .24);
  background: rgba(94, 200, 229, .11);
  color: #8bd9ed;
}
.document-version-toggle,
.document-version-toggle:hover {
  border-color: var(--gtf-border);
  background: rgba(255, 255, 255, .018);
  color: var(--gtf-cyan);
}
.document-version { border-color: var(--gtf-border); background: transparent; }

@media (max-width: 1200px) and (min-width: 781px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
}

@media (max-width: 1020px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .topbar { padding-inline: 22px; }
  .content { padding-inline: 22px; }
  .section-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :root,
  [data-theme="light"],
  [data-theme="dark"],
  [data-theme="system"] {
    --gtf-text-soft: #d4e0e5;
    --gtf-text-muted: #aec1ca;
    --gtf-border: rgba(184, 211, 221, .24);
    --gtf-border-strong: rgba(184, 211, 221, .4);
  }
  body { background-size: 28px 28px; }
  .login-screen {
    background:
      linear-gradient(180deg, rgba(2, 11, 18, .28), rgba(2, 10, 16, .68)),
      radial-gradient(circle at 50% 42%, transparent 0, rgba(3, 13, 21, .24) 48%, rgba(3, 12, 19, .76) 100%),
      url('/gtf-login-stage-mobile.webp') center / cover no-repeat;
  }
  .app-shell { display: block; overflow: visible; }
  .workspace { overflow-x: clip; }
  .sidebar {
    left: min(-88vw, -340px);
    width: min(88vw, 340px);
    max-width: 340px;
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 30;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    pointer-events: none;
    transition: none;
  }
  .sidebar.open { left: 0; visibility: visible; pointer-events: auto; }
  .mobile-menu-close {
    position: absolute;
    top: calc(15px + env(safe-area-inset-top));
    right: 13px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gtf-border-strong);
    border-radius: 8px;
    background: #102b3c;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }
  .brand { padding-right: 54px; }
  .mobile-drawer-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(0, 8, 13, .72);
    touch-action: none;
  }
  .sidebar nav { flex: 0 0 auto; overflow: visible; padding-bottom: 18px; }
  .sidebar nav [data-view="my-service"] { display: none; }
  .sidebar-bottom { flex: 0 0 auto; }
  .topbar {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 44px;
    gap: 10px;
    min-height: 72px;
    height: auto;
    padding: calc(13px + env(safe-area-inset-top)) 13px 12px;
  }
  .topbar > div:nth-child(2) { min-width: 0; }
  .topbar h1 { font-size: 18px; }
  .topbar p { margin-top: 3px; font-size: 11px; }
  .top-actions { width: 44px; min-width: 44px; }
  .notification-btn { width: 44px; height: 44px; }
  .content { padding: 15px 12px calc(30px + env(safe-area-inset-bottom)); }
  .dashboard-preparation { padding: 17px 15px; }
  .dashboard-preparation-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .dashboard-preparation-heading h2 { max-width: none; font-size: 17px; }
  .dashboard-preparation-actions { width: 100%; justify-content: space-between; }
  .dashboard-operational-button { min-height: 44px; padding-inline: 12px; }
  .dashboard-action-grid { grid-template-columns: 1fr; gap: 10px; }
  .dashboard-action-grid .card-body { padding-inline: 12px; }
  .dashboard-action-row { grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; min-height: 74px; }
  .dashboard-preparation-status { grid-column: 2 / 4; margin-top: -4px; }
  .dashboard-upcoming-row { grid-template-columns: 38px minmax(0,1fr) auto 9px; gap: 9px; }
  .dashboard-upcoming-icon { width: 34px; height: 34px; }
  .card,
  .modal-panel,
  .table-wrap,
  .timeline-item,
  .document-artist,
  .document-group { border-color: var(--gtf-border-strong); }
  .muted,
  .timeline-meta,
  .card-body,
  .detail-row > span:last-child { color: var(--gtf-text-muted); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 8px; }
  .kpi { min-height: 102px; padding: 9px 10px 8px; border-radius: 10px; }
  .kpi-heading { grid-template-columns: 26px minmax(0,1fr) auto; gap: 7px; }
  .kpi-icon { width: 26px; height: 26px; }
  .kpi-icon svg { width: 14px; height: 14px; }
  .kpi .label { font-size: 10.5px; }
  .kpi-chevron { font-size: 18px; }
  .kpi-value-block { padding-top: 7px; }
  .kpi .value { font-size: 19px; font-weight: 400; }
  .kpi .hint { font-size: 9px; line-height: 1.15; }
  .kpi-progress { height: 3px; margin-top: 6px; }
  .toolbar { display: grid; align-items: stretch; gap: 10px; padding: 10px; }
  .toolbar-left { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; }
  .toolbar-right { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .toolbar-left > *,
  .toolbar-right > * { min-width: 0; width: 100%; }
  .toolbar .search { min-height: 46px; }
  .toolbar-right .btn { min-height: 46px; }
  .sort-help { display: none; }
  .btn { min-height: 44px; }
  .btn.small { min-height: 40px; }
  input,
  select,
  textarea { min-height: 44px; font-size: 16px; }
  td { font-size: 12px; }
  .badge { padding: 4px 8px; font-size: 10px; }
  .card-header { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .card-header > .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .card-body { padding: 14px; }
  .settings-grid,
  .document-groups,
  .supplier-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
  .table-wrap table { min-width: 720px; }
  #inputArea .table-wrap { border-color: rgba(103, 215, 219, .34); }
  #inputArea .input-table { min-width: 1120px; }
  #inputArea .input-table th,
  #inputArea .input-table td { padding-block: 7px; }
  #inputArea .input-table th:first-child,
  #inputArea .input-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 48px;
    box-shadow: 1px 0 rgba(184, 211, 221, .2);
  }
  #inputArea .input-table th:first-child { z-index: 3; }
  #inputArea .input-table .ch { font-size: 14px; }
  .day-grid { grid-template-columns: minmax(0, 1fr); }
  .day-card { min-width: 0; padding: 13px; }
  .day-card .slot { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; }
  .day-card .slot .order,
  .timeline-order { width: 30px; height: 30px; }
  .timeline-item {
    grid-template-columns: 58px 32px minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
  }
  .timeline-item .actions { grid-column: 1 / -1; }
  .timeline-item .actions .btn { width: 100%; }
  .artist-mobile-card { border-color: var(--gtf-border); background: var(--gtf-surface); }
  .artist-mobile-card small,
  .artist-mobile-card .meta { color: var(--gtf-text-muted); font-size: 11px; }
  .artist-table-wrap { overflow: visible; border: 0; background: transparent; }
  .artist-table-wrap table,
  .artist-table-wrap tbody { display: block; min-width: 0; width: 100%; }
  .artist-table-wrap thead { display: none; }
  .artist-table-wrap tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 14px; width: 100%; margin-bottom: 9px; padding: 14px 50px 14px 14px; border: 1px solid var(--gtf-border); border-radius: 9px; background: var(--gtf-surface); }
  .artist-table-wrap td { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0; border: 0; background: transparent !important; font-size: 11px; }
  .artist-table-wrap td::before { content: attr(data-label); color: var(--gtf-text-muted); font-size: 10px; }
  .artist-table-wrap td:first-child { grid-column: 1 / -1; font-size: 16px; }
  .artist-table-wrap td:first-child::before { display: none; }
  .artist-table-wrap td:nth-child(2),
  .artist-table-wrap td:nth-child(3) { color: var(--gtf-text-soft); font-size: 12px; }
  .artist-table-wrap td:nth-child(3) { color: var(--gtf-yellow); }
  .artist-table-wrap td:nth-child(4),
  .artist-table-wrap td:nth-child(5) { grid-column: auto; }
  .artist-table-wrap td:nth-child(6) { grid-column: 1 / -1; color: var(--gtf-text-muted); }
  .artist-table-wrap td.actions { position: absolute; top: 10px; right: 10px; display: block; }
  .row-actions-menu > summary { width: 40px; min-height: 40px; }
  .row-actions-menu > div { position: fixed; z-index: 90; right: 12px; left: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); grid-template-columns: 1fr 1fr; padding: 10px; }
  .row-actions-menu > div .btn { min-height: 48px; }
  .artist-hero { min-height: 145px; padding: 20px; }
  .artist-hero h2 { font-size: clamp(30px, 10vw, 42px); }
  .detail-grid { display: block; border: 0; background: transparent; }
  .detail-grid .detail-card { margin-top: 9px; border: 1px solid var(--gtf-border); border-radius: 8px; }
  .rider-review-tabs { overflow-x: auto; scroll-snap-type: x proximity; }
  .rider-review-tabs button { min-height: 44px; flex: 0 0 auto; scroll-snap-align: start; }
  .stage-plot-workspace { margin-inline: -12px; }
  .stage-symbol-library,
  .stage-properties { background: var(--gtf-surface); }
  .login-card { padding: 24px 21px; }
  .login-brand-lockup img { width: 108px; }
  .login-intro { margin-bottom: 20px; }
  .operational-report-filters { top: auto; }
  .reports-module-header,
  .reports-selection-heading { padding: 16px; }
  .daily-report { padding: 16px; box-shadow: none; }
  .daily-report h1 { font-size: 22px; }
  .daily-report h2 { font-size: 16px; }
  .document-artists { gap: 11px; }
  .document-artist > summary { grid-template-columns: 40px minmax(0, 1fr) 20px; padding: 13px; }
  .document-artist-avatar { width: 40px; height: 40px; }
  .document-artist > .document-groups { padding: 10px; }
  .document-group > header { padding: 14px; }
  .document-latest { grid-template-columns: 42px minmax(0, 1fr); padding: 13px; }
  .document-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .document-actions .btn { width: 100%; min-width: 0; }
  .document-version { grid-template-columns: minmax(0, 1fr) auto; }
  .document-version .document-actions { grid-column: 1 / -1; }
  .about-gtf-mark { width: min(360px, 92%); }

  /* Mobile operational checklists use one high-contrast turquoise/navy system. */
  .festival-board .changeover-checklist {
    border-color: rgba(103, 215, 219, .62) !important;
    background: #071c2a !important;
  }
  .festival-board .changeover-checklist > header,
  .festival-board .soundcheck-checklist > summary {
    min-height: 58px;
    padding: 12px 14px;
    background: #0d3a4d !important;
  }
  .festival-board .changeover-checklist > div { gap: 9px; padding: 10px; }
  .festival-board .changeover-checklist label {
    min-height: 72px;
    padding: 12px !important;
    border-color: rgba(184, 211, 221, .38) !important;
    background: #102b3c !important;
  }
  .festival-board .changeover-checklist label.is-done {
    border-color: rgba(67, 196, 135, .7) !important;
    background: #123b38 !important;
  }
  .festival-board .changeover-checklist label strong {
    color: #f4f8fa !important;
    font-size: 14px;
    line-height: 1.25;
  }
  .festival-board .changeover-checklist label small,
  .festival-board .soundcheck-checklist > summary small {
    color: #b9ccd4 !important;
    font-size: 12px;
    line-height: 1.35;
  }
  .festival-board .changeover-checklist input { width: 22px; height: 22px; }
  .festival-board .workflow-step { color: #a9c0ca; }
  .festival-board .workflow-step.is-current,
  .festival-board .workflow-step.is-done { color: #81e1e5; }
  .soundcheck-slot .festival-action {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }
  .soundcheck-slot-summary {
    grid-template-columns: 48px 28px minmax(0, 1fr) 34px;
    gap: 7px;
    min-height: 64px;
    padding: 10px 8px;
  }
  .soundcheck-slot-summary > .festival-state-badge { grid-column: 3; }
  .soundcheck-slot-summary > .festival-check-progress { grid-column: 4; }
  .soundcheck-slot-summary > .festival-delay-badge { grid-column: 1 / -1; }
  .soundcheck-slot-summary > .soundcheck-slot-chevron { grid-column: 4; grid-row: 1; }
  .soundcheck-slot-details { grid-template-columns: 1fr; padding: 0 8px 10px; }
}

/* Smart alerts can be dismissed independently without obscuring their content. */
.festival-smart-alert { position: relative; min-width: 0; }
.festival-smart-alert .notification-card { height: 100%; padding-right: 44px; }
.smart-alert-close {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(184, 211, 221, .34);
  border-radius: 50%;
  background: rgba(7, 29, 44, .12);
  color: var(--gtf-text);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.smart-alert-close:hover,
.smart-alert-close:focus-visible { border-color: var(--gtf-cyan); background: rgba(94, 200, 229, .2); outline: none; }
.smart-alert-close:disabled { cursor: wait; opacity: .55; }
@media (max-width: 780px) {
  .smart-alert-close { width: 36px; height: 36px; }
  .festival-smart-alert .notification-card { padding-right: 52px; }
}

@media (max-width: 390px) {
  .login-screen { align-items: center; padding-inline: 13px; }
  .login-card { padding: 22px 18px; }
  .login-brand-lockup { gap: 8px; }
  .login-brand-lockup img { width: 100px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .kpi { min-height: 98px; padding: 8px 9px 7px; }
  .kpi .label { font-size: 10px; }
  .kpi .value { font-size: 18px; font-weight: 400; }
  .toolbar-right,
  .card-header > .actions,
  .document-actions { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile operational actions: three stable, legible controls without wrapping. */
@media (max-width: 780px) {
  .festival-now .festival-card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
  }
  .festival-now .festival-card-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    height: auto;
    padding: 8px 6px;
    gap: 5px;
    overflow: hidden;
    font-size: clamp(11px, 3.4vw, 14px);
    line-height: 1.1;
    white-space: nowrap;
  }
  .festival-now .festival-card-actions .cassette-symbol {
    flex: 0 0 auto;
    min-width: 13px;
    font-size: 12px;
  }

  /* Soundcheck has a longer central label: let it wrap without changing geometry. */
  .soundcheck-now .festival-card-actions { width: 100%; }
  .soundcheck-now .festival-card-actions .btn {
    min-height: 66px;
    margin: 0;
    padding: 8px 5px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
    white-space: normal;
  }
  .soundcheck-now .festival-card-actions .cassette-control { gap: 4px; }
  .soundcheck-now .festival-card-actions .cassette-symbol { min-width: 14px; }
  .soundcheck-now .festival-card-actions .btn > span:last-child {
    min-width: 0;
    white-space: normal;
  }
}

@media print {
  :root,
  [data-theme="light"],
  [data-theme="dark"],
  [data-theme="system"] {
    --bg: #fff;
    --white: #fff;
    --ink: #111;
    --muted: #53616a;
    --line: #cdd5d9;
    color-scheme: light;
  }
  html,
  body,
  .workspace,
  .content,
  .card,
  .table-wrap,
  .report-document,
  .daily-report,
  .stage-canvas { background: #fff !important; color: #111 !important; background-image: none !important; }
  table,
  th,
  td { background: #fff !important; color: #111 !important; border-color: #bfc8cd !important; }
  .badge { color: #111 !important; background: #fff !important; border-color: #777 !important; }
  body.report-printing .reports-selection-heading { display: none !important; }
  body.report-printing .daily-report {
    --ink: #17313f;
    --muted: #536772;
    --line: #c8d4da;
    --bg: #f3f6f8;
    color: #17313f !important;
    background: #fff !important;
    box-shadow: none !important;
    color-scheme: light;
  }
  body.report-printing .daily-report h1,
  body.report-printing .daily-report h2,
  body.report-printing .daily-report strong,
  body.report-printing .daily-report td { color: #17313f !important; }
  body.report-printing .daily-report-status strong { color: #18365c !important; }
  body.report-printing .daily-report-table th {
    color: #18365c !important;
    background: #eef3f6 !important;
    border-color: #d7dee5 !important;
    border-bottom-color: #7d8b94 !important;
    font-weight: 600;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Keep the connection warning visible without widening either header mode. */
.festival-sync-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;column-gap:14px;row-gap:3px;min-width:0;margin:0 0 10px;padding:7px 11px;border:1px solid #44697a;border-radius:9px;background:#102c3c;color:#e7f1f5;font-size:11px;line-height:1.4}
.festival-sync-state{display:inline-flex;align-items:center;gap:7px}
.festival-sync-state i{flex:none;width:7px;height:7px;border-radius:50%;background:currentColor}
.festival-sync-readout{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.festival-sync-status[data-sync-state="online"] .festival-sync-state{color:#9ee6d2}
.festival-sync-status[data-sync-state="pending"] .festival-sync-state{color:#b9deed}
.festival-sync-status[data-sync-state="offline"],.festival-sync-status[data-sync-state="error"]{background:#432525;border-color:#bd7e73;color:#fff2ee}
.festival-sync-status[data-sync-state="offline"] .festival-sync-state,.festival-sync-status[data-sync-state="error"] .festival-sync-state{color:#ffd1c8}
@media(max-width:380px){.festival-sync-status{align-items:flex-start;flex-direction:column}}
@media print{.festival-sync-status{display:none!important}}

/* O meu serviço: same card rhythm as the rest of the application, single column on mobile. */
.my-service-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:14px; align-items:start; }
.my-service-grid > .card:only-child { grid-column:1/-1; }
.my-service-context { display:flex; flex-wrap:wrap; align-items:baseline; gap:7px 12px; margin:0 0 14px; }
.my-service-context span, .my-service-item small, .my-service-item dt { color:var(--muted); }
.my-service-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.my-service-item { display:grid; gap:8px; min-width:0; padding:12px 14px; border:1px solid var(--line); border-radius:10px; }
.my-service-item-top { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px; }
.my-service-hours { font-size:1.11rem; font-weight:750; font-variant-numeric:tabular-nums; }
.my-service-description { white-space:pre-wrap; overflow-wrap:anywhere; }
.my-service-badges { display:flex; flex-wrap:wrap; gap:5px; }
.my-service-item dl { display:flex; flex-wrap:wrap; gap:8px 16px; margin:0; }
.my-service-item dt { font-size:.81rem; }
.my-service-item dd { margin:2px 0 0; font-weight:650; overflow-wrap:anywhere; }
.my-service-empty { margin:0; padding-block:14px; }
@media (max-width:780px) { .my-service-grid { grid-template-columns:1fr; } }
.my-service-setup { min-width:0; border:1px solid var(--line); border-radius:10px; padding:10px 14px; }
.my-service-setup legend { padding:0 5px; font-weight:750; }
.my-service-setup p { overflow-wrap:anywhere; margin:0 0 10px; }
.my-service-setup > label { display:grid; gap:5px; }
.my-service-setup small { display:block; color:var(--muted); margin-top:8px; }

/* Keep real touch targets and menu items in one fixed, vertically scrolling layer. */
.mobile-drawer-shortcuts, .mobile-drawer-backdrop { display:none; }
@media (max-width:780px) {
  .mobile-drawer-shortcuts {
    display:grid;
    flex:0 0 auto;
    min-width:0;
    gap:8px;
    padding:9px 0 13px;
    border-bottom:1px solid var(--gtf-border);
  }
  .mobile-project-select { display:grid; min-width:0; gap:.3rem; color:#e4edf2; }
  .mobile-project-select select { width:100%; min-width:0; min-height:44px; font-size:16px; }
  .mobile-my-service { justify-content:flex-start; gap:8px; min-height:44px; }
  .mobile-my-service svg { width:17px; height:17px; fill:none; stroke:currentColor; }
}

.shift-warning-list { list-style:none; padding:0; margin:.3rem 0; display:flex; flex-wrap:wrap; gap:.25rem; }
.shift-warning-list li { border:1px solid currentColor; border-radius:.3rem; padding:.15rem .35rem; color:var(--gtf-text); font-size:.78rem; }
