.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-page {
  min-width: 280px;
  background: var(--deep);
}

.workspace-bar {
  position: sticky;
  top: 8px;
  z-index: 40;
  min-height: 78px;
  margin: 8px 8px 0;
  padding: 14px 24px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: rgba(22, 50, 79, .94);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.workspace-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.workspace-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.workspace-brand strong { font-family: var(--display); font-size: 13px; }
.workspace-brand small { margin-top: 3px; color: #a9aba4; font-size: 10px; }
.workspace-bar .brand-mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}
.workspace-bar .brand-mark:hover { transform: rotate(0) scale(1.07); box-shadow: 0 8px 18px rgba(255, 138, 76, .28); }
.workspace-tabs { display: flex; align-items: center; gap: 8px; }
.workspace-tab {
  padding: 12px 18px;
  border-radius: 999px;
  color: #d5d7d0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.workspace-tab:hover { background: var(--deep-soft); color: #fff; transform: translateY(-1px); }
.workspace-tab.active { background: var(--signal); color: var(--deep); }
.workspace-search { width: min(400px, 32vw); margin-left: auto; }
.workspace-search input {
  width: 100%;
  min-width: 0;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #294b67;
  color: #fff;
  font-size: 14px;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.workspace-search input:focus { border-color: var(--signal); background: #203f59; box-shadow: 0 0 0 4px rgba(255, 138, 76, .2); outline: 0; }
.workspace-tools { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.workspace-tools a { color: #bfc1ba; text-decoration: none; }
.workspace-tools a:hover { color: var(--signal); }

.workspace-shell {
  min-height: calc(100vh - 94px);
  margin: 0 8px 8px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #f5f5f0;
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr);
  overflow: clip;
}
.workspace-sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  height: calc(100vh - 94px);
  padding: 40px 24px 28px;
  border-right: 1px solid #294b67;
  background: var(--deep);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.workspace-sidebar > strong { margin-bottom: 20px; font-family: var(--display); font-size: 14px; }
.workspace-sidebar nav { display: flex; flex-direction: column; gap: 3px; }
.workspace-sidebar nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 6px;
  color: #858580;
  text-decoration: none;
  font-size: 14px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.workspace-sidebar nav a:hover { color: #fff; background: var(--deep-soft); transform: translateX(5px); }
.workspace-sidebar nav a.active { color: var(--deep); background: var(--signal); font-weight: 800; }
.workspace-sidebar nav a.search-miss { opacity: .25; }
.sidebar-meta { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.sidebar-meta a { color: #8f918a; text-decoration: none; font-size: 12px; }

.workspace-main { min-width: 0; padding: 52px 44px 90px; }
.workspace-intro { max-width: 1190px; margin: 0 auto 78px; }
.eyebrow { color: #70716d; font-size: 13px; font-weight: 760; text-transform: uppercase; }
.workspace-intro > h1 {
  max-width: 720px;
  margin-top: 14px;
  font-family: var(--display);
  font-size: 48px;
  line-height: 1.02;
  font-weight: 760;
}
.schedule-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.schedule-card {
  min-height: 270px;
  padding: 24px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(0);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease;
}
.schedule-card:hover { transform: translateY(-7px); box-shadow: 0 22px 42px rgba(0, 0, 0, .10); }
.schedule-card.neutral { background: #f0f0ed; }
.schedule-card.green { background: var(--signal); }
.schedule-card.yellow { background: #ffd84a; }
.schedule-card > span { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; }
.schedule-card h2 { max-width: 280px; font-family: var(--display); font-size: 25px; line-height: 1.08; }

.workflow { max-width: 1190px; margin: 0 auto; display: grid; gap: 22px; }
.workflow .step { --pointer-x: 50%; --pointer-y: 50%; position: relative; isolation: isolate; scroll-margin-top: 112px; margin: 0; padding: 32px; border-radius: 8px; background: #fff; }
.workflow .step.select-open { z-index: 100; }
.workflow .step::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(460px circle at var(--pointer-x) var(--pointer-y), rgba(255,255,255,.62), transparent 62%); opacity: 0; transition: opacity .3s ease; }
.workflow .step:hover::before { opacity: 1; }
#step-broker { background: #ffe5d5; }
#step-security { background: #eee9ff; }
#step-docs { background: #fff1c9; }
#step-upload { background: #dff5ff; }
#step-calc { background: var(--deep); color: #fff; }
#step-report { background: #fff; }
.workflow .step > h2 { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; letter-spacing: 0; }
.workflow .step > h2 span { width: 34px; height: 34px; border-radius: 50%; background: var(--deep); color: #fff; display: grid; place-items: center; font-size: 10px; transition: transform .25s ease, background .25s ease; }
.workflow .step:hover > h2 span { transform: rotate(8deg) scale(1.08); background: #ff705d; }
#step-calc > h2 { color: #fff; }
#step-calc > h2 span { background: var(--signal); color: var(--deep); }
.workflow .panel { margin-top: 22px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.workflow .panel:hover { box-shadow: none; }
.workflow .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 18px; align-items: end; }
.workflow .col { min-width: 0; }
.workspace-disclaimer { max-width: 1190px; margin: 30px auto 0; color: var(--ink-faint); font-size: 12px; }

.app-page label { color: #555750; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.app-page input[type=text], .app-page input[type=number] { width: 100%; min-width: 0; height: 56px; padding: 0 17px; border: 1px solid rgba(17,18,15,.12); border-radius: 8px; background: rgba(255,255,255,.78); box-shadow: 0 7px 20px rgba(0,0,0,.035); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.app-page input[type=text]:hover, .app-page input[type=number]:hover { background: #fff; transform: translateY(-2px); }
.app-page input[type=text]:focus, .app-page input[type=number]:focus { border-color: var(--deep); background: #fff; box-shadow: 0 0 0 4px rgba(255,138,76,.28); outline: 0; transform: translateY(-2px); }
.native-select-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; opacity: 0 !important; pointer-events: none !important; }
.modern-select { position: relative; width: 100%; min-width: 0; }
.modern-select-trigger { width: 100%; min-height: 56px; padding: 0 48px 0 17px; border: 1px solid rgba(17,18,15,.12); border-radius: 8px; background: rgba(255,255,255,.82); box-shadow: 0 7px 20px rgba(0,0,0,.04); display: flex; align-items: center; text-align: left; font-weight: 720; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease; }
.modern-select-trigger:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.modern-select.open .modern-select-trigger { border-color: var(--deep); background: #fff; box-shadow: 0 0 0 4px rgba(255,138,76,.28); }
.modern-select-arrow { position: absolute; right: 18px; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s ease; }
.modern-select.open .modern-select-arrow { transform: translateY(3px) rotate(225deg); }
.modern-select-menu { position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; right: 0; max-height: 300px; padding: 7px; border: 1px solid rgba(17,18,15,.1); border-radius: 8px; background: rgba(255,255,255,.97); box-shadow: 0 24px 60px rgba(0,0,0,.18); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top; transition: opacity .18s ease, transform .18s ease; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.modern-select.open .modern-select-menu { opacity: 1; visibility: visible; transform: none; }
.modern-select-option { width: 100%; padding: 12px 13px; border-radius: 6px; display: flex; align-items: center; color: #33342f; text-align: left; font-size: 14px; transition: background .15s ease, color .15s ease, padding-left .15s ease; }
.modern-select-option:hover, .modern-select-option:focus { padding-left: 18px; background: #fff0e7; color: var(--deep); outline: 0; }
.modern-select-option[aria-selected="true"] { background: var(--deep); color: #fff; font-weight: 800; }
.modern-select-option[aria-selected="true"]::after { content: "✓"; margin-left: auto; color: var(--signal); }
.modern-select-trigger:disabled { opacity: .5; cursor: not-allowed; }

.app-page .callout { margin: 18px 0; padding: 16px 18px; border: 0; border-radius: 8px; background: rgba(255,255,255,.66); box-shadow: inset 4px 0 0 var(--deep); }
.app-page .msg { padding: 14px 16px; border: 0; border-radius: 8px; box-shadow: inset 4px 0 0 currentColor; }
.app-page .pill { padding: 6px 10px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.app-page .btn { min-height: 48px; padding: 0 22px; border: 0; background: var(--deep); box-shadow: 0 10px 22px rgba(0,0,0,.12); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.app-page .btn:hover:not(:disabled) { background: #262722; transform: translateY(-3px); box-shadow: 0 15px 28px rgba(0,0,0,.18); }
#step-calc .btn { background: var(--signal); color: var(--deep); }
#step-calc .muted { color: #b9bbb4; }
#step-report .report > .panel { margin-top: 20px; padding: 24px; border-radius: 8px; background: #f4f4ef; }
#step-report .report h3 { border-color: rgba(17,18,15,.12); font-family: var(--display); font-size: 22px; }
#step-report .table-scroll { border: 1px solid rgba(17,18,15,.1); border-radius: 8px; background: #fff; }
#step-report .datatable { margin: 0; }
#step-report .datatable th { padding: 13px 10px; border-bottom: 0; background: var(--deep); color: #fff; }
#step-report .datatable td { padding: 12px 10px; border-color: #ecece7; transition: background .15s ease; }
#step-report .datatable tr:hover td { background: #fff0e7; }
#step-report .datatable tfoot td { background: #ffe5d5; border-color: var(--deep); }
.app-page ::-webkit-scrollbar { width: 10px; height: 10px; }
.app-page ::-webkit-scrollbar-track { background: transparent; }
.app-page ::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: #a9aaa4; background-clip: padding-box; }

.motion-reveal {
  transform: translateY(18px);
  transition: transform .65s cubic-bezier(.2, .8, .2, 1);
}
.motion-reveal.is-visible { transform: none; }
.workspace-intro.is-visible .schedule-card { animation: card-arrive .62s both cubic-bezier(.2, .8, .2, 1); }
.workspace-intro.is-visible .schedule-card:nth-child(2) { animation-delay: .09s; }
.workspace-intro.is-visible .schedule-card:nth-child(3) { animation-delay: .18s; }
@keyframes card-arrive { from { transform: translateY(24px) scale(.98); } to { transform: none; } }

@media (max-width: 1100px) {
  .workspace-tools .pill { display: none; }
  .workspace-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .workspace-main { padding: 42px 30px 72px; }
  .workspace-sidebar { padding-left: 18px; padding-right: 18px; }
  .workspace-intro > h1 { font-size: 42px; }
  .schedule-card { min-height: 230px; }
}

@media (max-width: 820px) {
  .workspace-bar { top: 0; min-height: 68px; margin: 0; border-radius: 0; padding: 10px 16px; }
  .workspace-tabs { display: none; }
  .workspace-search { width: auto; flex: 1 1 auto; }
  .workspace-tools a { display: none; }
  .workspace-shell { margin: 0; border: 0; border-radius: 0; display: block; overflow: visible; }
  .workspace-sidebar { position: sticky; top: 68px; z-index: 30; width: 100%; height: auto; padding: 10px 16px; border-right: 0; border-bottom: 1px solid #292a26; display: block; overflow-x: auto; scrollbar-width: none; }
  .workspace-sidebar::-webkit-scrollbar { display: none; }
  .workspace-sidebar > strong, .sidebar-meta { display: none; }
  .workspace-sidebar nav { width: max-content; flex-direction: row; }
  .workspace-sidebar nav a { padding: 9px 13px; white-space: nowrap; }
  .workspace-sidebar nav a:hover { transform: none; }
  .workspace-main { padding: 38px 24px 64px; }
  .workspace-intro { margin-bottom: 58px; }
  .schedule-cards { grid-template-columns: repeat(3, 260px); overflow-x: auto; padding: 0 0 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .schedule-card { min-height: 230px; scroll-snap-align: start; }
}

@media (max-width: 560px) {
  .workspace-brand > span:last-child { display: none; }
  .workspace-bar .brand-mark { flex-basis: 36px; width: 36px; height: 36px; }
  .workspace-search input { padding: 11px 15px; font-size: 13px; }
  .workspace-tools { display: none; }
  .workspace-main { padding: 32px 16px 54px; }
  .workspace-intro > h1 { font-size: 36px; line-height: 1.04; }
  .schedule-cards { grid-template-columns: repeat(3, 82vw); margin-top: 26px; }
  .schedule-card { min-height: 220px; }
  .workflow .step { padding: 22px 18px; }
  .workflow .panel { padding: 0; }
  .workflow .step { scroll-margin-top: 124px; }
}

@media (max-width: 350px) {
  .workspace-search input { padding-left: 12px; padding-right: 12px; }
  .workspace-intro > h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-reveal { opacity: 1; transform: none; transition: none; }
  .workspace-intro.is-visible .schedule-card { animation: none; }
  .schedule-card, .workspace-tab, .workspace-sidebar nav a, .workspace-bar .brand-mark { transition: none; }
  .modern-select-menu, .modern-select-trigger, .workflow .step > h2 span { transition: none; }
  html:focus-within { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  .schedule-card, .workspace-sidebar nav a.active, .workspace-tab.active { border: 1px solid CanvasText; }
}