/* Shared visual system. Base component behavior lives in app.css. */
:root {
  /* Palette: "Oil Barrel" — deep petrol blue + rust/copper/peach accents */
  --brand-900:#0b2a3f;
  --brand-800:#08466b;
  --brand-700:#0a5c8c;
  --brand-500:#1f86bf;
  --brand-300:#8cc6e4;
  --brand-100:#e1f2fb;
  --brand-50:#f1f8fc;
  --cyan:#00bff8;
  --ice:#b8faff;
  --rust:#922800;
  --rust-l:#fbefe9;
  --copper:#ab581b;
  --peach:#ffc275;
  --peach-l:#fff5e6;
  --ink:#10283a;
  --on-dark:#e6f3fa;
  --on-dark-muted:#a8c6d8;
  --line-strong:#c8d6e0;
  --muted-2:#93a5b2;
  --success:#2f7d4f;
  --success-l:#e7f4ec;
  --danger:#c9302c;
  --danger-l:#fdeceb;
  --warn:#9a5a12;
  --warn-l:#fff3e2;

  --navy:var(--brand-700);
  --navy-d:var(--brand-800);
  --navy-l:var(--brand-100);
  --green:var(--success);
  --green-l:var(--success-l);
  --red:var(--danger);
  --red-l:var(--danger-l);
  --amber:var(--warn);
  --amber-l:var(--warn-l);
  --blue-l:var(--brand-100);
  --text:#1b2d3a;
  --muted:#5b6d7a;
  --line:#dde6ed;
  --bg:#f4f7fa;
  --header-height:87px;
  --radius:16px;
  --shadow:0 4px 22px #0b2a3f10
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:110px
}
body {
  font-size:14px;
  line-height:1.9
}
h1,h2,h3 {
  color:var(--ink)
}
h1 {
  font-size:1.7rem;
  font-weight:800
}
h2 {
  font-size:1.2rem;
  font-weight:750
}
p {
  overflow-wrap:anywhere
}
.icon {
  flex-shrink:0;
  vertical-align:middle
}
.wrap {
  max-width:1280px;
  padding-inline:32px
}
.main {
  padding-top:36px;
  padding-bottom:64px;
  min-width:0
}
.skip-link {
  position:fixed;
  top:-80px;
  right:16px;
  z-index:100;
  background:#fff;
  padding:12px 24px;
  border:2px solid var(--navy);
  border-radius:10px
}
.skip-link:focus {
  top:10px
}
a,button,input,select,textarea,summary {
  outline-offset:4px
}
:focus-visible {
  outline:3px solid var(--copper)
}
button,a,summary {
  -webkit-tap-highlight-color:transparent
}
.btn {
  min-height:44px;
  border-radius:10px;
  padding:9px 20px;
  gap:10px;
  box-shadow:0 3px 8px #0a5c8c14
}
.btn-sm {
  min-height:38px;
  padding:6px 14px
}
.btn-lg {
  min-height:52px;
  font-size:.95rem;
  padding-inline:24px
}
.btn:hover {
  box-shadow:0 5px 14px #0a5c8c26
}
.btn-ghost {
  border-color:var(--line)
}
.btn-green:hover {
  background:#25663f
}
.text-action {
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:650
}
.badge {
  font-size:.73rem;
  padding:3px 10px;
  white-space:normal
}
.eyebrow {
  display:block;
  color:var(--navy);
  font-size:.73rem;
  font-weight:700;
  letter-spacing:.1px;
  margin-bottom:8px
}
.status-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--cyan);
  box-shadow:0 0 0 4px #00bff826;
  flex-shrink:0
}
/* App shell */
.topbar {
  z-index:40;
  background:#ffffffee;
  color:var(--text);
  border-bottom:1px solid var(--line);
  box-shadow:none;
  backdrop-filter:blur(16px)
}
.topbar-in {
  padding-block:12px;
  min-height:86px;
  gap:28px;
  flex-wrap:nowrap
}
.brand {
  color:var(--ink);
  gap:12px;
  min-width:0;
  line-height:1.6;
  font-size:1rem
}
.brand img {
  flex-shrink:0;
  width:44px;
  height:44px;
  border-radius:10px;
  padding:2px;
  object-fit:contain
}
.brand > span {
  min-width:0;
  overflow-wrap:anywhere;
}
.brand small {
  display:block;
  font-size:.62rem;
  font-weight:400;
  color:var(--muted);
  margin-top:3px
}
.public-nav {
  display:flex;
  gap:26px;
  margin-inline-start:auto;
  white-space:nowrap
}
.public-nav a {
  font-size:.8rem;
  color:var(--muted)
}
.topbar>.wrap>.btn {
  margin-inline-start:0;
  background:var(--navy);
  color:#fff
}
.header-context {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:.8rem;
  color:var(--muted)
}
.header-profile {
  margin-inline-start:auto;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  font-size:.82rem
}
.header-profile small {
  display:block;
  font-size:.65rem;
  color:var(--muted)
}
.avatar {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  background:var(--brand-100);
  color:var(--navy);
  border:1px solid var(--brand-300);
  border-radius:50%;
  font-weight:750
}
.sidebar {
  position:fixed;
  inset:var(--header-height) 0 0 auto;
  width:244px;
  background:#fff;
  border-inline-end:1px solid var(--line);
  z-index:30;
  padding:26px 18px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:12px
}
.sidebar-label {
  color:var(--muted-2);
  font-size:.7rem;
  padding-inline:14px;
  margin-bottom:4px
}
.sidebar .nav {
  display:flex;
  flex-direction:column;
  flex:0;
  gap:5px
}
.sidebar .nav a {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--muted);
  font-size:.82rem;
  padding:11px 14px;
  border-radius:10px
}
.sidebar .nav a:hover {
  background:var(--brand-50);
  color:var(--navy)
}
.sidebar .nav a.active {
  background:var(--navy-l);
  color:var(--navy);
  font-weight:750;
  box-shadow:inset -3px 0 var(--navy)
}
.sidebar-call {
  margin-top:auto;
  background:var(--brand-50);
  padding:18px 14px;
  border:1px solid var(--line);
  border-radius:12px
}
.sidebar-call b {
  display:block;
  font-size:.84rem;
  line-height:1.8
}
.sidebar-call a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:.68rem;
  margin-top:14px
}
.sidebar-call .icon {
  width:16px
}
.sidebar-logout {
  padding:10px 14px 0
}
.sidebar-logout button {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--muted);
  font-size:.8rem;
  min-height:40px
}
.has-sidebar>.main,.has-sidebar>.footer {
  margin-inline-start:244px;
  max-width:none
}
.has-sidebar .topbar-in {
  max-width:none
}
.has-sidebar .brand {
  width:300px;
  flex-shrink:0
}
.nav-toggle {
  color:var(--text);
  padding:8px;
  min-width:44px;
  min-height:44px
}
.nav-scrim {
  position:fixed;
  inset:var(--header-height) 0 0;
  background:#0b2a3f73;
  z-index:25;
  border:0
}
.footer {
  text-align:right;
  background:#fff;
  padding-block:26px;
  font-size:.75rem
}
.footer-in {
  display:flex;
  gap:24px;
  justify-content:space-between;
  align-items:center
}
.footer-in .muted {
  font-size:.68rem;
  margin-top:3px
}
.footer-in>a {
  white-space:nowrap
}
/* Public call */
.landing-kicker {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:.7rem;
  color:var(--muted);
  margin-bottom:32px
}
.kicker-line {
  width:24px;
  height:1px;
  background:var(--line-strong)
}
.call-hero {
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  gap:60px;
  align-items:center;
  margin-bottom:38px
}
.hero-copy>.eyebrow {
  font-size:.8rem;
  margin-bottom:16px
}
.hero-copy h1 {
  font-size:clamp(1.8rem,2.65vw,2.75rem);
  line-height:1.75;
  letter-spacing:-1px;
  margin-bottom:16px;
  font-weight:850
}
.hero-description {
  font-size:.86rem;
  color:var(--muted);
  line-height:2.2;
  max-width:570px
}
.hero-actions {
  gap:22px;
  margin-top:26px
}
.hero-actions .text-action {
  font-size:.8rem
}
.hero-assurances {
  display:flex;
  gap:24px;
  margin-top:24px;
  color:var(--muted);
  font-size:.68rem
}
.hero-assurances span {
  display:flex;
  align-items:center;
  gap:7px
}
.hero-assurances .icon {
  width:16px;
  height:16px
}
.call-visual {
  background:var(--brand-900);
  color:var(--on-dark);
  border-radius:24px;
  padding:24px 28px;
  position:relative;
  overflow:hidden;
  background-image:radial-gradient(ellipse at 0% 0%,#0f5f8f 0,transparent 64%)
}
.visual-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.7rem;
  color:var(--on-dark-muted)
}
.visual-top>.icon {
  color:var(--peach)
}
.orbit {
  height:260px;
  position:relative;
  display:grid;
  place-items:center
}
.orbit-ring {
  position:absolute;
  border:1px solid #b8faff26;
  border-radius:50%;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%)
}
.ring-one {
  width:174px;
  height:174px
}
.ring-two {
  width:252px;
  height:252px;
  border-style:dashed
}
.orbit-center {
  width:134px;
  height:134px;
  border:1px solid #ffffff25;
  border-radius:50%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,#1f86bf99,var(--brand-900));
  box-shadow:0 0 60px #00bff820
}
.orbit-center>.icon {
  color:var(--peach);
  width:29px;
  height:29px;
  margin-bottom:7px
}
.orbit-center strong {
  font-size:1.2rem;
  font-weight:600
}
.orbit-center small {
  font-size:.56rem;
  color:var(--on-dark-muted)
}
.orbit-node {
  position:absolute;
  width:44px;
  height:44px;
  border:1px solid #2b77a6;
  border-radius:14px;
  background:#123f5c;
  display:grid;
  place-items:center;
  color:var(--ice)
}
.node-one {
  top:18px;
  left:28%
}
.node-two {
  right:6%;
  top:125px
}
.node-three {
  bottom:10px;
  left:24%
}
.orbit-dot {
  position:absolute;
  left:10%;
  top:140px;
  background:var(--peach);
  width:9px;
  height:9px;
  border-radius:50%;
  box-shadow:0 0 0 5px #ffc27526
}
.visual-bottom {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  padding-top:20px;
  border-top:1px solid #ffffff20;
  text-align:center
}
.visual-bottom>div+div {
  border-inline-start:1px solid #ffffff20
}
.visual-bottom strong {
  display:block;
  font-size:1.65rem;
  line-height:1.4;
  color:var(--peach-l);
  font-weight:500
}
.visual-bottom strong .icon {
  height:29px;
  width:29px
}
.visual-bottom span {
  font-size:.65rem;
  color:var(--on-dark-muted)
}
.call-timing {
  display:flex;
  gap:30px;
  justify-content:space-between;
  align-items:center;
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:20px 24px
}
.call-timing small {
  display:block;
  font-size:.67rem;
  color:var(--muted);
  margin-bottom:3px
}
.call-timing b,.call-timing strong {
  font-size:.81rem;
  font-weight:650
}
.timing-label {
  display:flex;
  align-items:center;
  gap:12px
}
.timing-icon {
  width:42px;
  height:42px;
  border-radius:12px;
  background:var(--navy-l);
  display:grid;
  place-items:center;
  color:var(--navy)
}
.landing-section {
  margin-top:64px
}
.section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:22px
}
.section-head h2 {
  font-size:1.45rem;
  margin:0
}
.section-head p {
  font-size:.75rem;
  color:var(--muted);
  margin:0
}
.section-count {
  border:1px solid var(--line);
  border-radius:8px;
  padding:4px 12px;
  font-size:.75rem;
  background:#fff;
  white-space:nowrap
}
.journey {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  list-style:none;
  padding:0;
  margin:0;
  gap:14px
}
.journey li {
  padding:20px 18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff
}
.journey-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px
}
.journey-top>span {
  background:var(--brand-50);
  border-radius:12px;
  padding:10px;
  color:var(--navy);
  display:grid;
  place-items:center
}
.journey-top small {
  color:var(--muted-2);
  font-size:1rem
}
.journey h3 {
  font-size:.83rem;
  margin-bottom:8px
}
.journey p {
  font-size:.72rem;
  line-height:1.95;
  color:var(--muted);
  margin:0
}
.axes-toolbar {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  margin-bottom:18px
}
.axes-toolbar p {
  margin:0;
  color:var(--muted);
  font-size:.78rem
}
.axis-search {
  display:flex;
  gap:10px;
  align-items:center;
  min-width:310px;
  padding:9px 14px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  color:var(--muted)
}
.axis-search input {
  border:0;
  background:transparent;
  width:100%;
  min-width:0;
  outline-offset:3px;
  font-size:.77rem
}
.axis-search:focus-within {
  border-color:var(--navy)
}
.axes-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-items:start
}
.axis-item {
  background:#fff;
  padding:0;
  border-radius:12px;
  overflow:hidden
}
.axis-item summary {
  display:flex;
  align-items:center;
  gap:14px;
  list-style:none;
  min-height:82px;
  padding:16px 20px;
  font-size:.8rem
}
.axis-item summary::-webkit-details-marker {
  display:none
}
.axis-num {
  width:38px;
  height:38px;
  flex-shrink:0;
  border-radius:10px;
  font-size:.85rem;
  font-weight:500;
  margin:0;
  background:var(--brand-50)
}
.axis-plus {
  margin-inline-start:auto;
  color:var(--muted);
  font-size:1.25rem;
  padding-inline-start:8px
}
.axis-item[open] {
  border-color:var(--brand-300)
}
.axis-item[open] .axis-plus {
  transform:rotate(45deg)
}
.axis-body {
  padding:0 24px 20px;
  border-top:1px solid var(--line)
}
.axis-q {
  line-height:2;
  margin-top:16px
}
.axis-body li {
  font-size:.8rem;
  margin-block:7px;
  line-height:2
}
.faq-section {
  display:grid;
  grid-template-columns:1fr 1.8fr;
  gap:70px;
  border-top:1px solid var(--line);
  padding-top:40px
}
.faq-section h2 {
  font-size:1.5rem
}
.faq-section p {
  font-size:.8rem
}
.faq-list details {
  border-bottom:1px solid var(--line);
  padding:16px 0
}
.faq-list details:first-child {
  padding-top:0
}
.faq-list summary {
  cursor:pointer;
  font-size:.88rem;
  font-weight:600
}
.faq-list p {
  color:var(--muted);
  line-height:2.1;
  margin-bottom:0
}
/* Workspace surfaces */
.page-head {
  margin-bottom:26px;
  align-items:center
}
.page-head h1 {
  margin-bottom:4px
}
.page-head .muted {
  font-size:.8rem
}
.card {
  padding:24px;
  border:1px solid var(--line);
  box-shadow:0 3px 12px #0b2a3f0f;
  margin-bottom:22px
}
.card.table-card {
  padding:20px 0 8px;
  overflow:hidden
}
.card.table-card>h2 {
  margin-inline:24px
}
.stats {
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:16px;
  margin-bottom:26px
}
.stat {
  border:1px solid var(--line);
  border-top:3px solid var(--line-strong);
  padding:20px;
  box-shadow:none;
  gap:10px
}
.stat b {
  font-size:1.85rem;
  font-weight:750;
  color:var(--ink)
}
.stat span {
  font-size:.74rem
}
.stat.blue {
  border-top-color:var(--brand-500)
}
.stat.green {
  border-top-color:var(--success)
}
.stat.red {
  border-top-color:var(--danger)
}
.stat.amber {
  border-top-color:var(--copper)
}
.workspace-welcome {
  display:flex;
  gap:20px;
  justify-content:space-between;
  align-items:center;
  background:var(--brand-100);
  border:1px solid var(--brand-100);
  border-radius:16px;
  padding:24px 28px;
  margin-bottom:28px
}
.workspace-welcome h2 {
  margin:0 0 6px;
  font-size:1.2rem
}
.workspace-welcome p {
  margin:0;
  color:var(--muted);
  font-size:.82rem
}
.workspace-welcome>.icon {
  width:44px;
  height:44px;
  color:var(--brand-700)
}
.proposal {
  box-shadow:none;
  display:flex;
  flex-direction:column
}
.proposal-head {
  align-items:start;
  margin-bottom:10px
}
.proposal-head h2 {
  font-size:1rem
}
.proposal-head>.muted {
  font-size:.7rem;
  white-space:nowrap
}
.stage-row {
  padding-block:16px;
  margin-top:14px;
  gap:16px
}
.stage-row>div:first-child {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  font-size:.78rem
}
.stage-row .badge {
  margin:0
}
.stage-row .small {
  flex-basis:100%;
  font-size:.72rem
}
.row-actions {
  margin-inline-start:auto
}
.cards {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));
  gap:20px
}
.cards .card {
  margin:0
}
.card.empty {
  padding:50px 24px;
  background:linear-gradient(120deg,#fff,var(--brand-50))
}
.empty .icon {
  width:42px;
  height:42px;
  margin-bottom:10px;
  color:var(--brand-700)
}
table.list th {
  background:var(--brand-50);
  padding:14px 20px;
  font-size:.7rem
}
table.list td {
  padding:15px 20px;
  font-size:.79rem;
  vertical-align:middle
}
table.list tr:hover td {
  background:var(--brand-50)
}
.filters {
  padding:16px 20px;
  gap:12px
}
.tabs {
  gap:10px;
  overflow-x:auto;
  white-space:nowrap
}
.tabs a {
  font-size:.82rem
}
.alert {
  border-radius:12px;
  font-size:.82rem;
  padding:14px 18px;
  overflow-wrap:anywhere
}
.auth-card {
  max-width:460px;
  margin:40px auto;
  padding:36px;
  text-align:center;
  box-shadow:0 18px 60px #0b2a3f12
}
.auth-logo {
  width:64px;
  height:64px;
  object-fit:contain;
  margin:0 0 18px
}
.auth-card h1 {
  font-size:1.5rem
}
.auth-card>.muted {
  font-size:.85rem;
  line-height:2.1;
  margin-bottom:26px
}
.auth-card .btn {
  min-height:48px
}
.field {
  margin-bottom:22px
}
.field-label {
  font-size:.84rem;
  margin-bottom:8px
}
input[type=text],input[type=tel],input[type=email],input[type=url],input[type=number],input[type=password],input:not([type]),select,textarea {
  border:1px solid var(--line-strong);
  border-radius:10px;
  padding:11px 14px;
  background:#fff;
  min-height:46px;
  font-size:.9rem;
  width:100%
}
input:focus,select:focus,textarea:focus {
  border-color:var(--navy);
  box-shadow:0 0 0 3px #0a5c8c22
}
.help {
  font-size:.74rem;
  line-height:1.9
}
.choice {
  font-size:.83rem;
  padding:9px 14px;
  min-height:44px
}
.wizard {
  max-width:1040px;
  margin-inline:auto
}
.wizard-steps {
  padding-bottom:10px;
  gap:8px;
  scrollbar-width:thin
}
.wizard-steps button {
  padding:8px 12px;
  min-height:44px;
  border-radius:10px;
  font-size:.75rem
}
.wizard-steps .num {
  width:24px;
  height:24px
}
.wizard-panel>h2 {
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
  margin-bottom:24px
}
.wizard-panel {
  padding:28px 32px
}
.wizard-nav {
  padding-top:20px;
  gap:10px
}
.save-state {
  min-width:100px
}
.wizard-progress {
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
  color:var(--muted);
  font-size:.73rem
}
.wizard-progress progress {
  flex:1;
  accent-color:var(--navy);
  height:6px;
  border:0;
  border-radius:99px;
  overflow:hidden
}
.wizard-progress progress::-webkit-progress-bar {
  background:var(--line)
}
.wizard-progress progress::-webkit-progress-value {
  background:var(--navy)
}
.wizard-progress progress::-moz-progress-bar {
  background:var(--navy)
}
.draft-tools {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:16px
}
.draft-tools p {
  font-size:.74rem;
  color:var(--muted);
  margin:0
}
.draft-tools .btn {
  font-size:.75rem
}
.ro-row dd {
  overflow-wrap:anywhere
}
.split>* {
  min-width:0
}
.table-scroll {
  max-width:100%
}
.uploader {
  border-radius:12px
}
.file-item {
  overflow-wrap:anywhere;
  min-width:0
}
.score-input {
  max-width:110px
}
.split-side .sticky {
  top:105px;
  max-height:calc(100vh - 125px)
}
@media(min-width:1500px) {
  .has-sidebar>.main {
    max-width:1500px;
    margin-inline-end:auto
  }
  .call-hero {
    gap:90px
  }
}
@media(max-width:1150px) {
  .public-nav {
    gap:14px
  }
  .public-nav a {
    font-size:.7rem
  }
  .call-hero {
    gap:30px
  }
  .has-sidebar>.main,.has-sidebar>.footer {
    margin-inline-start:220px
  }
  .sidebar {
    width:220px;
    padding-inline:12px
  }
  .has-sidebar .brand {
    width:300px
  }
  .header-context {
    display:none
  }
  .split {
    grid-template-columns:1fr
  }
  .split-side .sticky {
    position:static;
    max-height:none
  }
  .journey {
    gap:9px
  }
  .journey li {
    padding:16px 12px
  }
  .hero-actions {
    gap:16px
  }
}
@media(max-width:900px) {
  .public-nav {
    display:none
  }
  .role-guest .topbar>.wrap>.btn {
    margin-inline-start:auto
  }
  .call-hero {
    grid-template-columns:1.1fr 1fr;
    gap:24px
  }
  .call-visual {
    padding:22px 18px
  }
  .orbit {
    height:240px
  }
  .ring-two {
    width:220px;
    height:220px
  }
  .journey {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .journey li:nth-last-child(-n+2) {
    grid-column:auto
  }
  .call-timing {
    flex-wrap:wrap;
    gap:20px
  }
  .call-timing>.badge {
    margin-inline-start:auto
  }
  .has-sidebar>.main,.has-sidebar>.footer {
    margin-inline-start:0
  }
  .sidebar {
    transform:translateX(100%);
    visibility:hidden;
    transition:transform .2s;
    width:270px;
    max-width:85vw
  }
  .nav-open .sidebar {
    transform:translateX(0);
    visibility:visible
  }
  .nav-toggle {
    display:grid;
    place-items:center;
    margin-inline-start:auto
  }
  .header-profile {
    margin-inline-start:0
  }
  .has-sidebar .brand {
    width:auto
  }
  .sidebar .nav {
    display:flex;
    width:auto
  }
  .nav-open .sidebar .nav {
    padding:0
  }
  .nav-open {
    overflow:hidden
  }
  .has-sidebar .topbar-in {
    gap:16px
  }
  .faq-section {
    gap:32px
  }
}
@media(max-width:620px) {
  .wrap {
    padding-inline:20px
  }
  .main {
    padding-top:24px;
    padding-bottom:40px
  }
  .topbar-in {
    min-height:76px;
    gap:12px
  }
  .brand {
    font-size:.85rem;
    gap:9px;
    max-width:65%
  }
  .brand img {
    width:36px;
    height:36px
  }
  .brand small {
    font-size:.53rem
  }
  .topbar>.wrap>.btn {
    font-size:.71rem;
    padding:7px 10px;
    min-height:40px
  }
  .topbar>.wrap>.btn .icon {
    display:none
  }
  .landing-kicker {
    font-size:.61rem;
    gap:9px;
    flex-wrap:wrap;
    margin-bottom:26px
  }
  .call-hero {
    grid-template-columns:1fr;
    gap:28px
  }
  .hero-copy h1 {
    font-size:1.9rem;
    letter-spacing:-.5px;
    line-height:1.75
  }
  .hero-description {
    font-size:.82rem
  }
  .hero-actions {
    justify-content:flex-start;
    margin-top:22px;
    gap:18px
  }
  .hero-actions .btn {
    width:100%
  }
  .hero-actions .text-action {
    margin-inline:auto
  }
  .hero-assurances {
    justify-content:center;
    font-size:.64rem;
    gap:18px
  }
  .call-visual {
    max-width:none;
    width:100%;
    padding:22px 24px
  }
  .orbit {
    height:228px
  }
  .visual-bottom {
    padding-top:16px
  }
  .visual-bottom strong {
    font-size:1.5rem
  }
  .call-timing {
    padding:18px;
    gap:18px 14px;
    display:grid;
    grid-template-columns:1fr 1fr
  }
  .timing-label {
    grid-column:1/-1
  }
  .call-timing>.badge {
    grid-column:1/-1;
    margin:0;
    text-align:center
  }
  .call-timing b {
    font-size:.72rem
  }
  .landing-section {
    margin-top:42px
  }
  .section-head {
    align-items:start;
    gap:12px;
    flex-wrap:wrap
  }
  .section-head h2 {
    font-size:1.2rem;
    line-height:1.8
  }
  .section-head p {
    font-size:.7rem
  }
  .journey {
    grid-template-columns:1fr
  }
  .journey li {
    display:grid;
    grid-template-columns:48px 1fr;
    gap:0 14px;
    padding:16px
  }
  .journey-top {
    grid-row:span 2;
    margin:0;
    position:relative
  }
  .journey-top>span {
    width:44px;
    height:44px
  }
  .journey-top small {
    display:none
  }
  .journey h3 {
    margin:0 0 3px;
    font-size:.84rem
  }
  .journey p {
    font-size:.73rem
  }
  .axes-toolbar {
    flex-direction:column;
    align-items:stretch;
    gap:14px
  }
  .axis-search {
    min-width:0;
    width:100%;
    padding-block:12px
  }
  .axes-grid {
    grid-template-columns:1fr
  }
  .axis-item summary {
    font-size:.78rem;
    padding:16px;
    min-height:80px;
    gap:12px
  }
  .axis-num {
    width:34px;
    height:34px
  }
  .faq-section {
    grid-template-columns:1fr;
    gap:24px;
    padding-top:28px
  }
  .faq-list summary {
    font-size:.8rem
  }
  .footer-in {
    flex-direction:column;
    align-items:flex-start;
    gap:16px
  }
  .header-profile>span:last-child {
    display:none
  }
  .has-sidebar .brand {
    max-width:none;
    flex:1
  }
  .header-profile .avatar {
    width:34px;
    height:34px
  }
  .nav-toggle {
    margin:0
  }
  .page-head {
    gap:14px;
    margin-bottom:22px
  }
  .page-head h1 {
    font-size:1.4rem
  }
  .workspace-welcome {
    padding:20px;
    gap:16px
  }
  .workspace-welcome h2 {
    font-size:1.05rem
  }
  .workspace-welcome p {
    font-size:.74rem
  }
  .workspace-welcome>.icon {
    display:none
  }
  .stats {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .stat {
    padding:16px 14px;
    gap:8px
  }
  .stat b {
    font-size:1.6rem
  }
  .stat span {
    font-size:.68rem
  }
  .card {
    padding:20px
  }
  .card.table-card {
    padding-top:16px
  }
  .proposal-head {
    flex-wrap:wrap
  }
  .proposal-head h2 {
    font-size:.95rem
  }
  .stage-row {
    gap:12px
  }
  table.list td {
    padding:6px 16px;
    overflow-wrap:anywhere;
    font-size:.78rem;
    align-items:baseline
  }
  table.list td:before {
    flex-shrink:0;
    max-width:38%
  }
  table.list tr {
    padding-block:12px
  }
  table.list td:not([data-label]) {
    justify-content:flex-start
  }
  .filters {
    padding:14px
  }
  .filters select,.filters input {
    flex-basis:100%;
    width:100%
  }
  .auth-card {
    margin:16px auto;
    padding:28px 22px
  }
  .wizard-panel {
    padding:20px
  }
  .wizard-steps {
    margin-inline:-4px
  }
  .wizard-steps .t {
    display:none
  }
  .wizard-steps button.active .t {
    display:inline
  }
  .wizard-steps button {
    padding:6px 8px
  }
  .wizard-nav {
    flex-wrap:wrap;
    justify-content:space-between
  }
  .wizard-nav .save-state {
    order:3;
    flex-basis:100%;
    font-size:.72rem
  }
  .wizard-nav .btn {
    font-size:.8rem;
    padding-inline:14px;
    white-space:normal
  }
  .wizard-nav .btn:last-child {
    margin-inline-start:auto
  }
  .draft-tools {
    flex-wrap:wrap
  }
  .draft-tools p {
    flex-basis:100%
  }
  .field-label {
    font-size:.8rem
  }
  .choice {
    font-size:.79rem
  }
  input[type=text],input[type=tel],input[type=email],input[type=url],input[type=number],input[type=password],input:not([type]),select,textarea {
    font-size:16px
  }
  .alert {
    font-size:.78rem
  }
  .badge {
    font-size:.68rem
  }
  .ro-table {
    display:block;
    overflow-x:auto
  }
  .tabs a {
    padding-inline:12px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    transition:none!important;
    animation:none!important
  }
}
@media print {
  .sidebar,.topbar,.footer,.nav-toggle,.skip-link,.draft-tools {
    display:none!important
  }
  .has-sidebar>.main {
    margin:0
  }
  .card {
    box-shadow:none;
    break-inside:avoid
  }
  .main {
    padding:0
  }
  .wizard-panel {
    display:block
  }
  .wizard-steps,.wizard-nav {
    display:none
  }
}
/* Keep dashboard metrics balanced and status accents subtle. */
.stat.blue,.stat.green,.stat.red,.stat.amber {
  border-color:var(--line)
}
.stat.blue {
  border-top-color:var(--brand-500)
}
.stat.green {
  border-top-color:var(--success)
}
.stat.red {
  border-top-color:var(--danger)
}
.stat.amber {
  border-top-color:var(--copper)
}
@media(min-width:621px) {
  .role-admin .stats {
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
}


/* Numbered settings sections and the shared Persian date picker. */
.settings-heading { display:flex; align-items:center; gap:12px; }
.section-number { display:inline-grid; place-items:center; width:32px; height:32px; flex-shrink:0; border-radius:10px; background:var(--navy-l); color:var(--navy); font-size:.9rem; }
.schedule-stage { margin:24px 0 0; padding:20px 18px 0; border:1px solid var(--line); border-radius:14px; min-width:0; }
.schedule-stage legend { padding-inline:8px; font-size:.85rem; font-weight:650; max-width:100%; }
.schedule-stage legend .section-number { margin-inline-end:6px; width:26px; height:26px; }
.jalali-field { display:flex; border:1px solid var(--line-strong); border-radius:10px; background:#fff; overflow:hidden; }
.jalali-field input { border:0; border-radius:0; min-width:0; cursor:pointer; text-align:center; }
.jalali-field:focus-within { outline:2px solid var(--navy); outline-offset:2px; }
.date-trigger { display:grid; place-items:center; width:48px; flex-shrink:0; border:0; border-inline-start:1px solid var(--line); color:var(--navy); background:var(--brand-50); cursor:pointer; }
.jalali-calendar { width:360px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); overflow:auto; padding:22px; border:1px solid var(--line); border-radius:20px; box-shadow:0 24px 80px #0b2a3f40; color:var(--text); }
.jalali-calendar::backdrop { background:#0b2a3f73; backdrop-filter:blur(3px); }
.calendar-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:16px; }
.calendar-heading h2 { font-size:1rem; margin:0; }
.calendar-close,.calendar-toolbar>button { border:1px solid var(--line); background:#fff; color:var(--navy); border-radius:9px; cursor:pointer; min-width:40px; height:44px; font-size:1.2rem; }
.calendar-toolbar { display:flex; align-items:center; gap:6px; }
.calendar-toolbar select { padding:6px; min-width:0; font-size:.85rem; min-height:44px; }
.calendar-caption { text-align:center; font-size:.8rem; color:var(--muted); margin:14px 0 10px; }
.calendar-week,.calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; text-align:center; }
.calendar-week { font-size:.72rem; color:var(--muted); padding-bottom:8px; }
.calendar-days button { min-width:0; min-height:40px; padding:0; border:1px solid transparent; background:transparent; border-radius:9px; cursor:pointer; font-size:.85rem; }
.calendar-days button:hover { background:var(--navy-l); }
.calendar-days button.today { border-color:var(--navy); }
.calendar-days button.selected { color:#fff; background:var(--navy); }
.calendar-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; border-top:1px solid var(--line); padding-top:14px; margin-top:14px; font-size:.8rem; }
@media(max-width:620px) { .schedule-stage { padding-inline:12px; } .schedule-stage legend { font-size:.76rem; line-height:2; } .jalali-calendar { padding:16px; } }

/* Editable call content and optional cover artwork. */
.rich-editor { border:1px solid var(--line-strong); border-radius:12px; overflow:hidden; background:#fff; }
.editor-toolbar { display:flex; flex-wrap:wrap; gap:5px; padding:10px; background:var(--brand-50); border-bottom:1px solid var(--line); }
.editor-toolbar button,.editor-toolbar select { width:auto; min-height:36px; border:1px solid var(--line); border-radius:6px; padding:4px 9px; font-size:.75rem; background:#fff; color:var(--text); cursor:pointer; }
.editor-toolbar button:hover,.editor-toolbar button[aria-pressed=true] { background:var(--navy-l); color:var(--navy); }
.editor-toolbar button:disabled,.editor-toolbar select:disabled { opacity:.45; cursor:default; }
.editor-surface { min-height:220px; padding:18px; outline-offset:-3px; overflow-wrap:anywhere; }
.rich-editor .editor-source { border:0; border-radius:0; padding:16px; min-height:220px; font:13px/1.8 Consolas,monospace; text-align:left; }
.rich-content p { margin:0 0 .8em; }
.rich-content h2,.rich-content h3 { margin:1em 0 .5em; }
.rich-content ul,.rich-content ol { padding-inline-start:24px; margin-block:12px; }
.rich-content blockquote { border-inline-start:3px solid var(--navy); margin:16px 0; padding:6px 16px; background:var(--navy-l); }
.rich-content a { text-decoration:underline; overflow-wrap:anywhere; }
.cover-settings { padding-top:20px; border-top:1px solid var(--line); }
.cover-preview { display:block; max-width:100%; width:300px; max-height:225px; object-fit:contain; border:1px solid var(--line); border-radius:12px; margin:14px 0; background:var(--brand-50); }
.cover-upload-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.cover-upload-actions input { max-width:100%; min-width:0; font-size:.8rem; }
.cover-upload-actions input::file-selector-button { font:inherit; padding:10px 14px; border:1px solid var(--line); border-radius:8px; background:var(--navy-l); color:var(--navy); cursor:pointer; margin-inline-end:12px; }
.call-cover { margin:0; overflow:hidden; border-radius:24px; background:var(--brand-100); border:1px solid var(--line); }
.call-cover img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }
@media(max-width:620px) { .editor-toolbar button,.editor-toolbar select { min-height:40px; } .editor-surface { padding:14px; } }

.axis-edit { scroll-margin-top:calc(var(--header-height) + 20px); }
.axis-edit[open]>summary { margin-bottom:22px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.subgroup-row { display:flex; align-items:center; gap:12px; }
.subgroup-row .field { flex:1; min-width:0; margin-bottom:14px; }
.subgroup-row>button { flex-shrink:0; }
@media(max-width:620px) { .subgroup-row { gap:8px; } .subgroup-row>button { padding-inline:10px; } }

/* ============================================================
   Oil Barrel palette accents + form UX (2026-10)
   ============================================================ */
.sr-only { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
body { background:var(--bg); color:var(--text); }
a { color:var(--brand-700); }
h1,h2,h3 { color:var(--ink); }

/* Brand stripe under the header: blue, cyan, copper, peach. */
.topbar { border-bottom:0; }
.topbar::after { content:""; display:block; height:3px; background:linear-gradient(90deg,var(--brand-700),var(--cyan) 35%,var(--copper) 70%,var(--peach)); }

/* Buttons */
.btn { background:var(--brand-700); border-color:var(--brand-700); }
.btn:hover { background:var(--brand-800); border-color:var(--brand-800); }
.btn-ghost { background:#fff; color:var(--brand-700); border-color:var(--line-strong); box-shadow:none; }
.btn-ghost:hover { background:var(--brand-50); border-color:var(--brand-300); }
.btn-accent { background:var(--rust); border-color:var(--rust); color:#fff; box-shadow:0 4px 14px #92280026; }
.btn-accent:hover { background:#7a2100; border-color:#7a2100; box-shadow:0 6px 18px #92280033; }
.btn:disabled { opacity:.6; cursor:progress; }
.eyebrow { color:var(--copper); }

/* Status badges keep their own meaning, independent from the brand colors. */
.badge.blue { background:var(--brand-100); color:var(--brand-800); }
.badge.green { background:var(--success-l); color:#23633e; }
.badge.red { background:var(--danger-l); color:#a3231f; }
.badge.amber { background:var(--warn-l); color:var(--warn); }
.alert-info { background:var(--brand-50); border-color:var(--brand-100); color:var(--brand-800); }
.alert-success { background:var(--success-l); border-color:#c6e3d1; color:#23633e; }
.alert-warning { background:var(--warn-l); border-color:#f1d9b0; color:#7a4a0c; }
.alert-error { background:var(--danger-l); border-color:#f3c8c6; color:#a3231f; }

/* Public hero visual */
.call-visual { background:var(--brand-900); background-image:radial-gradient(ellipse at 0% 0%,#1f86bf66 0,transparent 60%),radial-gradient(ellipse at 100% 100%,#ab581b40 0,transparent 55%); color:var(--on-dark); }
.orbit-center { background:linear-gradient(145deg,#1f86bf99,var(--brand-900)); }
.orbit-node { background:#123f5c; border-color:#2b77a6; color:var(--peach); }
.orbit-dot { background:var(--peach); }
.visual-bottom strong { color:var(--peach-l); }
.timing-icon,.journey-top>span,.axis-num { background:var(--brand-100); color:var(--brand-700); }
.axis-item[open] { border-color:var(--brand-300); box-shadow:0 6px 20px #0a5c8c14; }
.stat b { color:var(--ink); }
.workspace-welcome { background:linear-gradient(120deg,var(--brand-50),#fff 60%,var(--peach-l)); border-color:var(--brand-100); }
.workspace-welcome>.icon { color:var(--copper); }
.sidebar .nav a.active { box-shadow:inset -3px 0 var(--brand-700); }

/* ---------- Form wizard: sticky step rail + content column ---------- */
.wizard { max-width:1200px; }
.wizard-layout { display:grid; grid-template-columns:272px minmax(0,1fr); gap:28px; align-items:start; }
.wizard-aside { position:sticky; top:calc(var(--header-height) + 20px); display:flex; flex-direction:column; gap:16px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px 14px; box-shadow:var(--shadow); max-height:calc(100vh - var(--header-height) - 40px); overflow:auto; }
.wizard-progress { display:block; margin:0; padding:0 4px; }
.wizard-progress-text { display:flex; justify-content:space-between; align-items:baseline; font-size:.72rem; color:var(--muted); margin-bottom:8px; }
.wizard-progress-text b { color:var(--brand-700); font-size:.78rem; }
.wizard-progress progress { width:100%; height:8px; display:block; }
.wizard-progress progress::-webkit-progress-bar { background:var(--brand-100); border-radius:99px; }
.wizard-progress progress::-webkit-progress-value { background:linear-gradient(90deg,var(--brand-700),var(--cyan)); border-radius:99px; }
.wizard-progress progress::-moz-progress-bar { background:linear-gradient(90deg,var(--brand-700),var(--cyan)); border-radius:99px; }

.wizard-steps { flex-direction:column; gap:2px; margin:0; padding:0; overflow:visible; }
.wizard-steps li { position:relative; }
.wizard-steps li:not(:last-child)::after { content:""; position:absolute; right:26px; top:44px; bottom:-12px; width:2px; background:var(--line); z-index:0; }
.wizard-steps button { position:relative; z-index:1; width:100%; display:flex; align-items:center; gap:12px; padding:9px 12px; min-height:56px; border:1px solid transparent; border-radius:12px; background:transparent; color:var(--text); text-align:right; white-space:normal; font-size:.8rem; }
.wizard-steps button:hover { background:var(--brand-50); }
.wizard-steps button.active { background:var(--brand-100); border-color:#c9e3f2; color:var(--ink); }
.wizard-steps .num { width:30px; height:30px; border-radius:50%; flex-shrink:0; display:grid; place-items:center; background:#fff; border:1.5px solid var(--line-strong); color:var(--muted); font-weight:700; font-size:.8rem; }
.wizard-steps button.active .num { background:var(--brand-700); border-color:var(--brand-700); color:#fff; box-shadow:0 0 0 4px #0a5c8c1f; }
.wizard-steps button.done .num { background:var(--success); border-color:var(--success); color:transparent; position:relative; }
.wizard-steps button.done .num::after { content:"✓"; position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:.85rem; }
.wizard-steps button.has-error .num { background:var(--danger); border-color:var(--danger); color:#fff; }
.wizard-steps button.locked { opacity:.55; }
.step-text { display:flex; flex-direction:column; min-width:0; line-height:1.55; }
.step-text .t { font-weight:650; }
.step-meta { font-size:.67rem; color:var(--muted); font-weight:400; }
.wizard-steps button.done .step-meta { color:var(--success); }
.wizard-steps button.has-error .step-meta { color:var(--danger); }
.wizard-note { border-top:1px solid var(--line); padding:14px 4px 0; font-size:.7rem; color:var(--muted); }
.wizard-note p { display:flex; gap:8px; align-items:flex-start; margin:0 0 10px; line-height:1.8; }
.wizard-note .icon { width:16px; height:16px; color:var(--brand-700); margin-top:2px; }

.wizard-main { min-width:0; }
.wizard-panel { padding:30px 34px 0; border-radius:18px; overflow:visible; }
.panel-head { padding-bottom:18px; border-bottom:1px solid var(--line); margin-bottom:26px; }
.panel-head .eyebrow { margin-bottom:2px; }
.panel-head h2 { margin:0; font-size:1.3rem; border:0; padding:0; }
.panel-intro { margin:12px 0 0; font-size:.78rem; line-height:2; color:#6b4a26; background:var(--peach-l); border-inline-start:3px solid var(--peach); padding:10px 14px; border-radius:8px; }

/* Two-column grid: short fields pair up, long ones span the row. */
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:22px; }
.form-grid>.field { grid-column:1/-1; margin-bottom:22px; min-width:0; }
.form-grid>.field.half { grid-column:auto; }
.field-label { color:var(--ink); font-weight:650; }
.field-label .optional { font-size:.66rem; font-weight:500; color:var(--muted); background:var(--bg); border:1px solid var(--line); border-radius:6px; padding:0 7px; margin-inline-start:6px; vertical-align:1px; }
.field>.help { margin:-3px 0 9px; color:var(--muted); font-size:.74rem; line-height:1.9; }
.field:focus-within>.field-label { color:var(--brand-700); }
input:focus,select:focus,textarea:focus { border-color:var(--brand-700); box-shadow:0 0 0 3px #0a5c8c22; }
input::placeholder,textarea::placeholder { color:var(--muted-2); }
.has-error>.field-label { color:var(--danger); }
.err { font-size:.76rem; font-weight:600; }
.word-count { margin-top:4px; }

/* Radio/checkbox cards */
.choice { border-color:var(--line); border-radius:10px; transition:border-color .15s,background .15s; }
.choice:hover { border-color:var(--brand-300); }
.choice:has(input:checked) { border-color:var(--brand-700); background:var(--brand-50); box-shadow:inset 0 0 0 1px var(--brand-700); }
.choice input { accent-color:var(--brand-700); }
.field-radio .choices { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:8px; }
.choice.confirm { border:1.5px dashed var(--copper); background:var(--peach-l); padding:14px 16px; font-weight:600; }
.choice.confirm:has(input:checked) { border-style:solid; border-color:var(--success); background:var(--success-l); box-shadow:none; }
.axis-problem { background:var(--brand-50); border:1px solid var(--brand-100); border-radius:10px; }

/* Upload dropzone */
.uploader { border:0; padding:0; background:transparent; }
.uploader .file-list { margin-bottom:10px; }
.dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; text-align:center; padding:22px 16px; border:1.5px dashed var(--line-strong); border-radius:14px; background:var(--brand-50); cursor:pointer; transition:border-color .15s,background .15s; }
.dropzone:hover,.uploader.drag .dropzone { border-color:var(--brand-500); background:var(--brand-100); }
.dropzone:focus-within { outline:3px solid var(--copper); outline-offset:2px; }
.dz-icon { width:30px; height:30px; color:var(--brand-700); margin-bottom:4px; }
.dz-text { font-size:.8rem; color:var(--text); }
.dz-text b { color:var(--brand-700); }
.dropzone .upload-hint { margin:0; font-size:.7rem; }
.file-item { border-radius:10px; }
.progress-bar span { background:linear-gradient(90deg,var(--brand-700),var(--cyan)); }

/* Table inputs */
.table-input th { background:var(--brand-50); color:var(--ink); }
.table-input .add-row { border-style:dashed; }

/* Sticky action bar at the bottom of each section */
.wizard-nav { position:sticky; bottom:0; z-index:5; display:flex; align-items:center; gap:12px; margin:8px -34px 0; padding:16px 34px; background:#ffffffeb; backdrop-filter:blur(8px); border-top:1px solid var(--line); border-radius:0 0 18px 18px; }
.wizard-nav .btn:last-child { margin-inline-start:auto; }
.nav-save { display:none; font-size:.7rem; color:var(--muted); }
.draft-note { text-align:center; font-size:.72rem; color:var(--muted); margin:6px 0 0; }

/* Pre-submit checklist */
.review-summary { border-radius:12px; padding:14px 18px; margin-bottom:24px; font-size:.8rem; }
.review-summary:empty { display:none; }
.review-summary.is-missing { background:var(--warn-l); border:1px solid #f1d9b0; }
.review-summary.is-ready { background:var(--success-l); border:1px solid #c6e3d1; color:#23633e; }
.review-head { font-weight:700; margin:0 0 4px; }
.review-row { display:flex; flex-direction:column; gap:2px; padding:8px 0; border-top:1px dashed #9a5a1233; }
.review-row .link { font-weight:650; text-align:right; color:var(--brand-700); }
.review-row span { color:var(--muted); font-size:.74rem; }

@media(max-width:1100px) {
  .wizard-layout { grid-template-columns:1fr; gap:16px; }
  .wizard-aside { position:static; max-height:none; padding:14px; gap:12px; }
  .wizard-steps { flex-direction:row; overflow-x:auto; gap:6px; padding-bottom:6px; scrollbar-width:thin; }
  .wizard-steps li::after { display:none; }
  .wizard-steps button { width:auto; min-height:44px; white-space:nowrap; padding:6px 12px 6px 14px; border-color:var(--line); }
  .step-meta { display:none; }
  .wizard-note { display:flex; flex-wrap:wrap; align-items:center; gap:4px 16px; padding-top:10px; }
  .wizard-note p { margin:0; }
  .wizard-note .btn { width:auto; margin-inline-start:auto; }
  .nav-save { display:block; flex:1; text-align:center; }
}
@media(max-width:620px) {
  .form-grid { grid-template-columns:1fr; }
  .form-grid>.field { margin-bottom:20px; }
  .wizard-panel { padding:20px 18px 0; }
  .wizard-nav { margin:8px -18px 0; padding:12px 18px; flex-wrap:nowrap; }
  .wizard-nav .btn { padding-inline:12px; font-size:.78rem; }
  .nav-save { display:none; }
  .wizard-note p:nth-child(2) { display:none; }
  .panel-head h2 { font-size:1.12rem; }
  .field-radio .choices { grid-template-columns:1fr; }
}
/* Half-width fields: keep paired inputs aligned by moving short help text under the control. */
.form-grid>.field.half { display:flex; flex-direction:column; }
.form-grid>.field.half>.help { order:2; margin:6px 0 0; }
.form-grid>.field.half>.err { order:3; }
@media(max-width:620px) {
  .wizard-aside { padding:12px; gap:10px; border-radius:14px; }
  .wizard-progress-text { margin-bottom:6px; }
  .wizard-steps { scrollbar-width:none; padding-bottom:0; }
  .wizard-steps::-webkit-scrollbar { display:none; }
  .wizard-steps button { min-height:40px; padding:4px 6px; gap:8px; border-radius:99px; }
  .wizard-steps button.active { padding-inline-start:14px; }
  .wizard-steps .num { width:28px; height:28px; }
  .wizard-note { border:0; padding:0; }
  .wizard-note p { display:none!important; }
  .wizard-note .btn { min-height:36px; margin:0; }
  .nav-save { display:block; flex:1; text-align:center; font-size:.66rem; line-height:1.6; }
  .page-head .status-box { flex-direction:row; flex-wrap:wrap; gap:8px; align-items:center; }
}
.wizard-nav .btn { white-space:nowrap; flex-shrink:0; }

/* ---------- Judge scoring panel ---------- */
.score-card h2 { margin-bottom:4px; }
.score-intro { margin:0 0 18px; line-height:1.9; }
.split-side .sticky { scrollbar-width:thin; scrollbar-color:var(--line-strong) transparent; }
.criterion { padding:12px 0 14px; border-bottom:1px solid var(--line); margin:0; }
.criterion-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.criterion-head label { font-weight:650; font-size:.82rem; color:var(--ink); }
.score-box { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.score-box .score-input { width:66px; min-height:40px; padding:6px; text-align:center; font-weight:750; font-size:1rem; }
.score-input.bad { border-color:var(--danger); background:var(--danger-l); }
.score-max { font-size:.7rem; color:var(--muted); white-space:nowrap; }
.criterion .help { margin:4px 0 8px; font-size:.7rem; }
.score-meter { height:5px; background:var(--brand-100); border-radius:99px; overflow:hidden; }
.score-meter span { display:block; height:100%; width:0; background:linear-gradient(90deg,var(--brand-700),var(--cyan)); border-radius:99px; transition:width .2s; }
.score-total { display:grid; grid-template-columns:1fr auto; align-items:center; gap:8px 12px; background:var(--brand-900); color:var(--on-dark); border-radius:14px; padding:14px 16px; margin:18px 0; }
.score-total>span { font-size:.8rem; color:var(--on-dark-muted); }
.score-total b { font-size:1.6rem; color:#fff; }
.score-total b small { font-size:.75rem; color:var(--on-dark-muted); font-weight:500; }
.score-meter.total { grid-column:1/-1; background:#ffffff1f; height:6px; }
.score-meter.total span { background:linear-gradient(90deg,var(--cyan),var(--peach)); }
.choice.rec-accept:has(input:checked) { border-color:var(--success); background:var(--success-l); box-shadow:inset 0 0 0 1px var(--success); }
.choice.rec-revise:has(input:checked) { border-color:var(--warn); background:var(--warn-l); box-shadow:inset 0 0 0 1px var(--warn); }
.choice.rec-reject:has(input:checked) { border-color:var(--danger); background:var(--danger-l); box-shadow:inset 0 0 0 1px var(--danger); }
.score-jump { display:none; }
@media(max-width:1150px) {
  .score-jump { display:flex; align-items:center; gap:10px; position:fixed; bottom:16px; left:16px; z-index:20; background:var(--rust); color:#fff; padding:10px 18px; border-radius:99px; box-shadow:0 8px 24px #92280040; font-size:.82rem; font-weight:650; }
  .score-jump:hover { text-decoration:none; background:#7a2100; }
  .score-jump b { background:#ffffff26; border-radius:99px; padding:0 10px; }
}

/* ---------- Admin decision panel & lists ---------- */
.decide-form .choice { width:100%; }
.decide-form .choices.vertical { gap:8px; margin-bottom:14px; }
.decide-form .choice:has(input[value=accepted]:checked) { border-color:var(--success); background:var(--success-l); box-shadow:inset 0 0 0 1px var(--success); }
.decide-form .choice:has(input[value=revision]:checked) { border-color:var(--warn); background:var(--warn-l); box-shadow:inset 0 0 0 1px var(--warn); }
.decide-form .choice:has(input[value=rejected]:checked) { border-color:var(--danger); background:var(--danger-l); box-shadow:inset 0 0 0 1px var(--danger); }
.revision-only { background:var(--warn-l); border:1px solid #f1d9b0; border-radius:12px; padding:12px 14px; margin-bottom:12px; }
.score { color:var(--brand-700); font-weight:750; }
table.list th { background:var(--brand-50); color:var(--muted); }
table.list tr.todo td:first-child { box-shadow:inset -3px 0 0 var(--copper); }
.tabs a.active { color:var(--brand-700); border-color:var(--brand-700); }
.filters { background:#fff; }

/* ---------- Admin: review board ---------- */
.review-board-head { display:grid; grid-template-columns:220px 1fr; gap:20px; align-items:stretch; margin-bottom:16px; }
.avg-score { background:var(--brand-900); color:var(--on-dark); border-radius:14px; padding:16px 18px; display:flex; flex-direction:column; gap:2px; }
.avg-score>span { font-size:.74rem; color:var(--on-dark-muted); }
.avg-score b { font-size:2.4rem; line-height:1.2; color:#fff; }
.avg-score small { font-size:.72rem; color:var(--on-dark-muted); margin-bottom:8px; }
.avg-score .score-meter { background:#ffffff1f; }
.avg-score .score-meter span { background:linear-gradient(90deg,var(--cyan),var(--peach)); }
.review-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:10px; }
.review-stats>div { border:1px solid var(--line); border-radius:12px; padding:12px 14px; display:flex; flex-direction:column; justify-content:center; background:var(--brand-50); }
.review-stats b { font-size:1.35rem; color:var(--ink); }
.review-stats b small { font-size:.7rem; color:var(--muted); font-weight:500; }
.review-stats span { font-size:.72rem; color:var(--muted); }
.review-stats b.rec-green { color:var(--success); }
.review-stats b.rec-amber { color:var(--warn); }
.review-stats b.rec-red { color:var(--danger); }
.judge-reviews { display:flex; flex-direction:column; gap:8px; }
.judge-review { border:1px solid var(--line); border-radius:12px; background:#fff; }
.judge-review[open] { border-color:var(--brand-300); }
.judge-review summary { display:flex; align-items:center; gap:12px; padding:12px 14px; cursor:pointer; list-style:none; }
.judge-review summary::-webkit-details-marker { display:none; }
.judge-review .avatar { width:34px; height:34px; }
.jr-name { flex:1; min-width:0; font-weight:650; font-size:.84rem; display:flex; flex-direction:column; line-height:1.5; }
.jr-name small { font-weight:400; font-size:.68rem; color:var(--muted); }
.jr-total { font-size:1.25rem; color:var(--brand-700); min-width:44px; text-align:left; }
.jr-body { padding:4px 16px 16px; border-top:1px solid var(--line); }
.jr-crit { display:grid; grid-template-columns:1fr auto; gap:2px 12px; align-items:center; padding:8px 0; font-size:.78rem; }
.jr-crit b { font-size:.9rem; color:var(--ink); }
.jr-crit b small { font-size:.68rem; color:var(--muted); font-weight:400; }
.jr-crit .score-meter { grid-column:1/-1; }
.jr-comment { margin:10px 0 0; padding:10px 14px; background:var(--peach-l); border-inline-start:3px solid var(--peach); border-radius:8px; font-size:.8rem; }
@media(max-width:620px) {
  .review-board-head { grid-template-columns:1fr; }
  .review-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
/* Save status lives in each section's action bar at every width; the rail copy stays for screen readers. */
.nav-save { display:block!important; flex:1; text-align:center; font-size:.7rem; color:var(--muted); line-height:1.6; }
.wizard-note p:first-child { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- Login captcha & lock ---------- */
.captcha-row { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.captcha-img { display:block; border:1px solid var(--line-strong); border-radius:10px; background:var(--brand-50); width:180px; height:60px; }
.captcha-refresh { width:44px; height:44px; border:1px solid var(--line-strong); border-radius:10px; background:#fff; color:var(--brand-700); font-size:1.3rem; cursor:pointer; }
.captcha-refresh:hover { background:var(--brand-50); }
#captcha { text-align:center; letter-spacing:.4em; font-weight:700; }
.login-note { text-align:center; margin:0; line-height:1.9; }
.lock-box { text-align:center; background:var(--danger-l); border:1px solid #f3c8c6; border-radius:14px; padding:22px 18px; color:#7d1d1a; }
.lock-box b { display:block; font-size:1.05rem; margin:6px 0; color:#a3231f; }
.lock-box p { margin:6px 0 0; line-height:2; }
.lock-icon { width:36px; height:36px; color:var(--danger); }

/* ---------- SMS settings ---------- */
.sms-table-intro { margin:0 24px 14px; line-height:2; }
.sms-table td { vertical-align:middle; }
.sms-table .tpl-id { width:130px; min-height:38px; padding:6px 10px; text-align:center; font-weight:650; }
.sms-table .tpl-params { display:block; margin-top:4px; }
.sms-providers { margin-bottom:12px; }
.sms-providers .choice { min-width:160px; padding:10px 14px; }
.sms-test-provider { display:inline-block; width:auto; min-height:34px; padding:2px 10px; margin:0 4px; }
.param-chip { display:inline-block; font:600 .72rem/1.8 Consolas,monospace; background:var(--brand-50); border:1px solid var(--brand-100); color:var(--brand-800); border-radius:6px; padding:0 6px; margin:2px; direction:ltr; }
.toggle { position:relative; display:inline-flex; cursor:pointer; }
.toggle input { position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.toggle span[aria-hidden] { width:44px; height:24px; border-radius:99px; background:var(--line-strong); position:relative; transition:background .15s; }
.toggle span[aria-hidden]::after { content:""; position:absolute; top:3px; right:3px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #0003; transition:transform .15s; }
.toggle input:checked + span { background:var(--success); }
.toggle input:checked + span::after { transform:translateX(-20px); }
.toggle input:focus-visible + span { outline:3px solid var(--copper); outline-offset:2px; }
.switch-choice { align-items:flex-start; padding:12px 14px; }
.switch-choice span { display:flex; flex-direction:column; }
.switch-choice small { color:var(--muted); font-weight:400; line-height:1.9; }
.sms-actions { display:flex; gap:10px; flex-wrap:wrap; }

/* ---------- Email settings ---------- */
.grid2.tight { gap:0 12px; }
.email-editor { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; }
.email-code textarea { font:12.5px/1.7 Consolas,monospace; min-height:520px; text-align:left; white-space:pre; overflow:auto; background:#0b2a3f; color:#e6f3fa; border-color:#0b2a3f; }
.email-code .choice { margin-top:10px; }
.email-preview iframe { width:100%; height:560px; border:1px solid var(--line-strong); border-radius:12px; background:#f4f7fa; }
.email-test-row { display:flex; gap:10px; flex-wrap:wrap; }
.email-test-row input { flex:1 1 260px; width:auto; }
@media(max-width:1100px) { .email-editor { grid-template-columns:1fr; } .email-code textarea { min-height:320px; } }

/* ---------- Installer checks ---------- */
.install-checks { list-style:none; margin:0 0 20px; padding:0; display:grid; gap:6px; }
.install-checks li { display:flex; gap:10px; align-items:flex-start; padding:8px 12px; border-radius:10px; font-size:.85rem; }
.install-checks li.ok { background:var(--success-l); color:#23633e; }
.install-checks li.bad { background:var(--danger-l); color:#a3231f; }
.install-checks .mark { font-weight:800; width:18px; text-align:center; }
.install-checks small { display:block; color:var(--muted); font-size:.74rem; }

/* ---------- Site footer ---------- */
.site-footer { background:var(--brand-900); color:var(--on-dark); padding:0; font-size:.8rem; text-align:right; border-top:0; }
.site-footer a { color:#fff; }
.footer-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:40px; padding-block:36px 28px; }
.footer-org { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.footer-org img { background:#fff; border-radius:50%; padding:2px; flex-shrink:0; }
.footer-org b { display:block; font-size:.98rem; color:#fff; }
.footer-org small { display:block; color:var(--on-dark-muted); font-size:.7rem; }
.footer-brand p { color:var(--on-dark-muted); line-height:2; margin:0 0 14px; }
.footer-cta { display:inline-flex; align-items:center; gap:8px; color:var(--peach)!important; font-weight:650; }
.footer-cta .icon { width:16px; }
.footer-contact h2 { color:#fff; font-size:.95rem; margin:0 0 12px; }
.footer-contact dl { margin:0; display:grid; grid-template-columns:1fr 1fr; gap:10px 24px; }
.footer-contact dl>div { display:flex; flex-direction:column; min-width:0; }
.footer-contact .fc-address { grid-column:1/-1; }
.footer-contact dt { color:var(--on-dark-muted); font-size:.7rem; }
.footer-contact dd { margin:0; line-height:1.9; overflow-wrap:anywhere; }
.footer-bottom { border-top:1px solid #ffffff1a; padding-block:12px; font-size:.7rem; color:var(--on-dark-muted); }
.has-sidebar>.site-footer { margin-inline-start:244px; }
.contact-fields .span2 { grid-column:1/-1; }
@media(max-width:1150px) { .has-sidebar>.site-footer { margin-inline-start:220px; } }
@media(max-width:900px) { .has-sidebar>.site-footer { margin-inline-start:0; } .footer-grid { grid-template-columns:1fr; gap:24px; } }
@media(max-width:620px) { .footer-contact dl { grid-template-columns:1fr; } }

/* ---------- Justified body text ----------
   Paragraph-like text is justified; headings, labels, buttons, badges, tables and inputs keep their own alignment. */
p, .help, .hero-description, .rich-content, .rich-content li, .panel-intro, .alert, .axis-q, .axis-body li, .axis-problem,
.ro dd, .jr-comment, .review-row span, .faq-list p, .journey p, .footer-brand p, .footer-contact dd, .lock-box p,
.choice span, .criterion .help, .workspace-welcome p, .section-head p, blockquote {
  text-align:justify;
  text-justify:inter-word;
}
/* Short or centred items stay as designed. */
.center, .center p, .empty p, .auth-card > .muted, .login-note, .resend, .draft-note, .lock-box, .lock-box p,
.word-count, .nav-save, .upload-hint, .dz-text, .hero-assurances, .calendar-caption, .footer-bottom { text-align:center; }
.auth-card .field-label, .auth-card .help { text-align:right; }
.login-warning { color:var(--warn); background:var(--warn-l); border:1px solid #f1d9b0; border-radius:10px; padding:8px 12px; }

/* ---------- Auth brand + modern OTP entry ---------- */
.auth-brand { display:flex; flex-direction:column; align-items:center; gap:8px; margin-bottom:18px; }
.auth-brand .auth-logo { margin:0; }
.auth-brand span { font-size:.82rem; font-weight:650; color:var(--brand-800); text-align:center; }
.otp-card { position:relative; overflow:hidden; }
.otp-card::before { content:""; position:absolute; inset:0 0 auto 0; height:4px; background:linear-gradient(90deg,var(--brand-700),var(--cyan) 40%,var(--copper) 75%,var(--peach)); }
.otp-icon { display:inline-grid; place-items:center; width:56px; height:56px; border-radius:18px; background:var(--brand-100); color:var(--brand-700); margin:4px 0 10px; }
.otp-icon .icon { width:28px; height:28px; }
.otp-card h1 { font-size:1.35rem; margin-bottom:6px; }
.otp-lead { text-align:center!important; line-height:2.1; margin-bottom:22px; }
.otp-phone { color:var(--ink); font-weight:750; letter-spacing:.5px; }
.otp-edit { white-space:nowrap; font-weight:600; font-size:.8rem; margin-inline-start:4px; }
.otp-form { display:flex; flex-direction:column; gap:18px; }
.otp-boxes { display:flex; justify-content:center; gap:10px; }
.otp-box { width:54px!important; height:62px; min-height:0!important; padding:0!important; text-align:center; font-size:1.6rem!important; font-weight:800; color:var(--ink);
  border:1.5px solid var(--line-strong)!important; border-radius:14px!important; background:var(--brand-50)!important; caret-color:var(--brand-700);
  transition:border-color .15s, box-shadow .15s, background .15s, transform .1s; }
.otp-box:focus { border-color:var(--brand-700)!important; background:#fff!important; box-shadow:0 0 0 4px #0a5c8c22!important; transform:translateY(-1px); }
.otp-box.filled { background:#fff!important; border-color:var(--brand-300)!important; }
.otp-form.is-submitting .otp-box { border-color:var(--success)!important; background:var(--success-l)!important; }
.otp-form.shake .otp-boxes { animation:otp-shake .4s ease; }
.otp-form.shake .otp-box { border-color:var(--danger)!important; }
@keyframes otp-shake { 0%,100% { transform:translateX(0); } 20%,60% { transform:translateX(-7px); } 40%,80% { transform:translateX(7px); } }
.otp-submit { min-height:50px!important; }
.otp-meta { margin-top:18px; padding-top:14px; border-top:1px dashed var(--line); font-size:.8rem; color:var(--muted); text-align:center; }
.otp-timer { display:inline-flex; align-items:center; gap:6px; }
.otp-timer .icon { width:16px; height:16px; }
.otp-timer b { color:var(--brand-700); font-variant-numeric:tabular-nums; }
.otp-resend { font-weight:700; }
@media(max-width:400px) { .otp-boxes { gap:7px; } .otp-box { width:46px!important; height:56px; font-size:1.35rem!important; } }
@media(prefers-reduced-motion:reduce) { .otp-form.shake .otp-boxes { animation:none; } }

/* Tabs: horizontal scroll only when needed, never a vertical scrollbar, and no visible scrollbar track. */
.tabs { overflow-x:auto; overflow-y:hidden; scrollbar-width:none; -ms-overflow-style:none; padding-bottom:1px; }
.tabs::-webkit-scrollbar { display:none; }
.tabs a { flex-shrink:0; }
.tabs.inline { overflow:visible; padding-bottom:0; flex-wrap:wrap; }
.tabs.inline a { margin-bottom:0; border-radius:8px; border-bottom:0; padding:6px 14px; }
.tabs.inline a.active { background:var(--brand-100); }

/* Header brand: park name (large) over the event name (smaller). */
.brand > span { font-size:1.02rem; font-weight:800; color:var(--ink); line-height:1.5; }
.brand small { font-size:.74rem; font-weight:500; color:var(--brand-700); margin-top:2px; }
@media(max-width:620px) { .brand > span { font-size:.86rem; } .brand small { font-size:.64rem; } }

/* Call calendar: its own warm background (palette peach/copper) so it stands apart from the white cards. */
.call-timing { background:linear-gradient(120deg,#fff3e1 0%,#ffe6c4 100%); border-color:#f2cf9e; box-shadow:0 6px 20px #ab581b14; }
.call-timing small { color:#8a5a2b; }
.call-timing b, .call-timing strong { color:#4a2a10; }
.call-timing .timing-icon { background:var(--copper); color:#fff; }
.call-timing>.badge.green { background:#fff; color:#23633e; border:1px solid #c6e3d1; }
.call-timing>.badge.amber { background:#fff; }

/* ---------- Home: participation steps as a coloured timeline ----------
   Each step has its own colour (--c) and the connector fades into the next step's colour (--n). */
.steps-timeline { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; list-style:none; padding:0; margin:0; counter-reset:none; }
.steps-timeline .tl-step { padding:0; border:0; background:none; display:flex; flex-direction:column; min-width:0; }
.tl-marker { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.tl-num { flex-shrink:0; width:46px; height:46px; border-radius:50%; display:grid; place-items:center; background:var(--c); color:#fff;
  font-size:1.15rem; font-weight:800; box-shadow:0 0 0 6px color-mix(in srgb,var(--c) 16%,transparent), 0 6px 16px color-mix(in srgb,var(--c) 35%,transparent); }
.tl-step:not(:last-child) .tl-marker::after { content:""; flex:1; height:3px; border-radius:3px; background:linear-gradient(to left,var(--c),var(--n)); opacity:.85; }
.tl-card { flex:1; position:relative; background:#fff; border:1px solid var(--line); border-top:3px solid var(--c); border-radius:14px; padding:18px 16px 16px;
  box-shadow:0 4px 18px #0b2a3f0d; transition:transform .2s, box-shadow .2s; }
.tl-card:hover { transform:translateY(-3px); box-shadow:0 10px 26px color-mix(in srgb,var(--c) 18%,transparent); }
.tl-icon { display:inline-grid; place-items:center; width:42px; height:42px; border-radius:12px; margin-bottom:12px;
  background:color-mix(in srgb,var(--c) 12%,#fff); color:var(--c); }
.tl-icon .icon { width:22px; height:22px; }
.tl-label { display:block; font-size:.68rem; font-weight:700; color:var(--c); margin-bottom:2px; }
.tl-card h3 { font-size:.9rem; margin:0 0 6px; color:var(--ink); }
.tl-card p { font-size:.74rem; line-height:2; color:var(--muted); margin:0; }
@media(max-width:1100px) and (min-width:901px) { .steps-timeline { gap:10px; } .tl-card { padding:16px 12px; } }
/* Narrow screens: vertical timeline, line runs down from each number. */
@media(max-width:900px) {
  .steps-timeline { grid-template-columns:1fr; gap:0; }
  .steps-timeline .tl-step { display:grid; grid-template-columns:46px 1fr; gap:0 14px; }
  .tl-marker { flex-direction:column; margin:0; }
  .tl-step:not(:last-child) .tl-marker::after { width:3px; height:auto; flex:1; min-height:18px; margin:6px 0; background:linear-gradient(to bottom,var(--c),var(--n)); }
  .tl-card { margin-bottom:14px; }
}
@media(prefers-reduced-motion:reduce) { .tl-card { transition:none; } .tl-card:hover { transform:none; } }
.tl-card p { text-align:start; }
/* Desktop: cards only (step order is shown by the "گام n" label); the numbered rail is for narrow screens. */
@media(min-width:901px) { .tl-marker { display:none; } }
.log-view { background:#0b2a3f; color:#e6f3fa; border-radius:12px; padding:14px 16px; font:12px/1.8 Consolas,monospace; white-space:pre-wrap; word-break:break-all; max-height:520px; overflow:auto; text-align:left; margin:0; }

/* Panel switcher (admins and judges) */
.ws-switch { display:flex; align-items:center; gap:6px; }
.ws-switch form { display:flex; gap:6px; margin:0; }
.ws-switch button { display:inline-flex; align-items:center; gap:7px; min-height:38px; padding:6px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--brand-800); font:inherit; font-size:.82rem; font-weight:650; white-space:nowrap; cursor:pointer; transition:border-color .15s, background .15s; }
.ws-switch button .icon { width:17px; height:17px; }
.ws-switch button:hover { border-color:var(--brand-700); background:var(--brand-50); }
.ws-switch button.active { background:var(--brand-700); border-color:var(--brand-700); color:#fff; cursor:default; }
.ws-switch .ws-join { border-style:dashed; border-color:var(--copper); color:var(--copper); }
.ws-switch .ws-join:hover { background:var(--peach-l); border-color:var(--copper); }
.ws-header { margin-inline-start:auto; }
.ws-header + .header-profile { margin-inline-start:0; }
.ws-sidebar { display:none; }
@media(max-width:900px) {
  .ws-header { display:none; }
  .ws-sidebar { display:flex; flex-direction:column; align-items:stretch; margin:12px 14px 0; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--brand-50); }
  .ws-sidebar form { flex-direction:column; }
  .ws-sidebar button { width:100%; justify-content:flex-start; }
}
.profile-roles { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.profile-roles h2 { font-size:1rem; margin:0 0 10px; }
.profile-roles .role-list { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:12px; }
.profile-roles .small { margin-top:6px; line-height:1.9; }

/* Axes guide download box */
.doc-download { display:flex; align-items:center; gap:18px; margin:0 0 22px; padding:18px 22px; border-radius:18px; text-decoration:none; color:#fff;
  background:radial-gradient(circle at 12% 120%, rgba(232,163,61,.38), transparent 46%), linear-gradient(120deg, #0b2a3f 0%, #0a5c8c 100%);
  border:1px solid rgba(232,163,61,.45); box-shadow:0 12px 30px rgba(11,42,63,.18); transition:transform .15s, box-shadow .15s; }
.doc-download:hover { transform:translateY(-2px); box-shadow:0 16px 36px rgba(11,42,63,.26); }
.doc-download:focus-visible { outline:3px solid #e8a33d; outline-offset:3px; }
.doc-download-icon { position:relative; flex-shrink:0; display:grid; place-items:center; width:58px; height:58px; border-radius:14px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); }
.doc-download-icon .icon { width:30px; height:30px; color:#f5c46b; }
.doc-download-icon small { position:absolute; bottom:-7px; inset-inline-start:50%; transform:translateX(50%); padding:0 6px; border-radius:6px; background:#e8a33d; color:#0b2a3f; font:700 .66rem/1.6 Consolas,monospace; }
.doc-download-text { flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.doc-download-text small { color:#f5c46b; font-weight:600; font-size:.78rem; }
.doc-download-text b { font-size:1.05rem; line-height:1.7; }
.doc-download-text span { color:rgba(255,255,255,.78); font-size:.84rem; line-height:1.8; }
.doc-download-action { flex-shrink:0; display:inline-flex; align-items:center; gap:8px; padding:10px 18px; border-radius:12px; background:#e8a33d; color:#0b2a3f; font-weight:700; white-space:nowrap; }
.doc-download-action .icon { width:18px; height:18px; }
.doc-download:hover .doc-download-action { background:#f5c46b; }
@media(max-width:640px) {
  .doc-download { flex-wrap:wrap; padding:16px; gap:14px; }
  .doc-download-action { width:100%; justify-content:center; }
}

/* Suggested SMS template texts */
.tpl-text { margin-top:8px; max-width:340px; }
.tpl-text summary { cursor:pointer; font-size:.76rem; font-weight:600; color:var(--brand-700); }
.tpl-text pre { margin:6px 0; padding:10px 12px; white-space:pre-wrap; overflow-wrap:anywhere; direction:rtl; text-align:right; font:inherit; font-size:.8rem; line-height:1.9; background:var(--brand-50); border:1px solid var(--brand-100); border-radius:8px; color:var(--text); }

/* Home banner (full width); for guests on wide screens the header floats over it */
.home-banner { line-height:0; background:#010b17; }
.home-banner img { display:block; width:100%; height:auto; }
.home-banner-inline { margin-bottom:28px; border-radius:20px; overflow:hidden; box-shadow:0 12px 30px rgba(11,42,63,.16); }
@media(min-width:901px) {
  /* The banner's dark top is extended under the header, so the header covers none of the image. */
  .has-banner .home-banner { padding-top:var(--header-height); background:linear-gradient(180deg, #021a33 0%, #010b17 100%); }
  .has-banner .topbar { position:fixed; inset:0 0 auto; background:rgba(2,14,30,.55); backdrop-filter:blur(6px); transition:background .25s, box-shadow .25s; }
  .has-banner .topbar::after { opacity:.85; }
  .has-banner .topbar:not(.is-solid) .brand > span { color:#fff; }
  .has-banner .topbar:not(.is-solid) .brand small { color:#f5c46b; }
  .has-banner .topbar:not(.is-solid) .public-nav a { color:rgba(255,255,255,.88); }
  .has-banner .topbar:not(.is-solid) .public-nav a:hover { color:#fff; }
  .has-banner .topbar:not(.is-solid) > .wrap > .btn { background:#e8a33d; color:#0b2a3f; }
  .has-banner .topbar.is-solid { background:#ffffffee; backdrop-filter:blur(16px); box-shadow:0 6px 20px rgba(11,42,63,.08); }
}
