@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

/* =====================================================
   ZerσSigma Dashboard — Module CSS (Scoped & Non-Invasive)
   2026-02-04: callback graph compat patch; no CSS-driven hiding of .zs-metric
   ===================================================== */

/* CSS Variables (duplicated for asset isolation) */
:root{
  --bg:#0b0f14;
  --panel:#141a22;
  --panel2:#101317;
  --text:#e8e8e8;
  --muted:#a7b0bd;
  --line:#232a33;
  --accent:#00E5A8;
}

/* Global body styling (minimal, non-invasive) */
body{
  background:var(--bg);
  color:var(--text);
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*{box-sizing:border-box;}

/* =====================================================
   ZS-PREFIXED COMPONENTS (Non-invasive, scoped)
   ===================================================== */

/* Topbar */
.zs-topbar{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, rgba(20,26,34,0.95), rgba(10,14,20,0.95));
  position:sticky;
  top:0;
  z-index:50;
}
.zs-logo{
  font-size:44px;
  font-weight:900;
  letter-spacing:-1px;
  margin-right:10px;
}
.zs-logo .sigma{ color:var(--accent); }

/* Topbar controls */
.zs-pill{
  background:rgba(20,26,34,0.8);
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  min-width:220px;
}
.zs-pill label{
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-bottom:3px;
}
.zs-input, .zs-dd{
  width:100%;
  background:#0f141c;
  color:var(--text);
  border:1px solid #28313d;
  border-radius:8px;
  padding:6px 8px;
  font-size:11px;
  min-height:32px;
  height:32px;
}
.zs-btn{
  background:var(--accent);
  color:#00130c;
  border:none;
  border-radius:10px;
  padding:12px 14px;
  font-weight:800;
  cursor:pointer;
}
.zs-btn:active{transform:translateY(1px);}

/* Tabs: 50/50 split, subtle Zo-green active state, no boxes */
.dash-tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid rgba(27,42,64,0.3);
}

.custom-tab {
  flex: 1;
  text-align: center;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(155,176,204,0.5);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.custom-tab:hover {
  color: rgba(155,176,204,0.75);
}

.custom-tab--selected {
  color: rgba(232,241,255,0.95);
  font-weight: 600;
  border-bottom-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,229,168,0.15);
}

.tabs-wrap {
  margin-bottom: 0;
}

.zs-tabs{ padding:12px 16px; }

/* Generic card styling */
.zs-card{
  background:rgba(20,26,34,0.85);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
}

/* Metrics grid */
.zs-metrics{
  display:grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap:10px;
  padding:8px 16px;
}
.zs-metric{
  background:rgba(20,26,34,0.85);
  border:1px solid var(--line);
  border-radius:14px;
  padding:8px 10px;
}
.zs-metric .k{font-size:12px; color:var(--muted);}
.zs-metric .v{font-size:22px; font-weight:900; margin-top:4px;}
.zs-metric .s{font-size:12px; color:var(--muted); margin-top:2px;}

/* Main dashboard grid: 2-column responsive layout */
.zs-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  padding:12px 16px 28px 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 0;
}

/* Chart card (legacy, minimal usage) */
.zs-chart-card{
  background:rgba(20,26,34,0.85);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
}
.zs-chart-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-bottom:1px solid var(--line);
  background:rgba(16,19,23,0.9);
}
.zs-chart-title{
  font-weight:800;
  color:#eaeaea;
  min-width:72px;
}
.zs-mini{
  background:#0f141c;
  color:var(--text);
  border:1px solid #28313d;
  border-radius:10px;
  padding:8px 10px;
}
.zs-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
  color:var(--muted);
  font-size:12px;
}

/* Dash DataTable styling (scoped to ZS context only) */
.zs-grid .dash-table-container .dash-spreadsheet-container,
.zs-module-card .dash-table-container .dash-spreadsheet-container{
  background:rgba(20,26,34,0.85)!important;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
}

/* =====================================================
   MODULE CARD LAYOUT (Natural height, no forced constraints)
   ===================================================== */

/* Module card container: flex column, natural height
   Removed all fixed height constraints to prevent "doubled modules" */
.zs-module-card {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 430px;
  background: rgba(20,26,34,0.85);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: hidden;
}

/* Module header: natural height, no scrollbar
   SCOPED: Only affects .zs-module-card descendants */
.zs-module-card .card-h {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  gap: 8px;
}

/* Remove all shadows from header elements */
.zs-module-card .card-h * {
  box-shadow: none !important;
  outline: none !important;
}

/* Header rows: Two-row structure with visual hierarchy */
.zs-module-card .card-h-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  box-shadow: none;
  min-height: 36px;
}

/* Ensure all direct children share the same vertical midline */
.zs-module-card .card-h-row > * {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

/* Primary row: Full opacity, prominent */
.zs-module-card .card-h-row.primary {
  opacity: 1;
}

/* Secondary row: Slightly muted for visual hierarchy */
.zs-module-card .card-h-row.secondary {
  opacity: 0.92;
  margin-top: 6px;
}

/* Legacy row class support (for backwards compatibility) */
.zs-module-card .card-h .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  background: none;
  border: none;
  box-shadow: none;
}

.zs-module-card .hdr-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 8px;
  align-items: center;
  background: none;
  border: none;
  box-shadow: none;
}

/* Card title: SCOPED to module cards */
.zs-module-card .card-title {
  font-weight: 800;
  color: #eaeaea;
  font-size: 13px;
  min-width: 60px;
  margin-right: 4px;
}

/* Module controls area: natural height
   SCOPED: Direct children .row only */
.zs-module-card > .ctl-row {
  flex: 0 0 auto;
  padding: 8px 12px;
}

/* Chart wrapper: takes remaining space, natural sizing
   CRITICAL: overflow:hidden prevents chart overflow, not nested scrollbars
   Plotly handles its own sizing via config/layout */
.zs-module-card .zs-chart-wrapper,
.zs-module-card .chart-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  min-height: 0;
  position: relative;
}

/* Plotly graph: safe padding to prevent legend/modebar collision */
.zs-module-card .dash-graph {
  flex: 1 1 auto;
  position: relative;
}

/* Remove any header-like typography from chart areas */
.zs-module-card .zs-chart-wrapper *,
.zs-module-card .chart-wrap *,
.zs-module-card .dash-graph * {
  font-family: inherit;
}

/* Ensure Plotly legends have safe spacing (handled in Python, but CSS backup) */
.zs-module-card .js-plotly-plot .legend {
  pointer-events: auto;
}

/* DDOI chart: Add top padding to prevent legend/modebar collision */
.zs-module-card .dash-graph[id*="ddoi"] .js-plotly-plot,
.zs-module-card .dash-graph[id*="DDOI"] .js-plotly-plot {
  padding-top: 8px;
}

/* =====================================================
   DROPDOWN BEHAVIOR FIXES
   ===================================================== */

/* Dropdown arrow: Use default Dash arrow styling for consistency */
.zs-module-card .dd .Select-arrow-zone,
.dd .Select-arrow-zone {
  pointer-events: none;
}

.zs-module-card .dd .Select-arrow,
.dd .Select-arrow {
  pointer-events: none;
}

/* Entire dropdown clickable */
.zs-module-card .dd .Select-control,
.dd .Select-control {
  cursor: pointer !important;
}

/* Disable dropdown menu scrolling - expand fully */
.zs-module-card .dd .Select-menu-outer {
  max-height: none !important;
  overflow-y: visible !important;
  z-index: 9999 !important;
  position: absolute !important;
}

.zs-module-card .dd .Select-menu {
  max-height: none !important;
  overflow-y: visible !important;
  z-index: 9999 !important;
}

/* =====================================================
   CALENDAR POPUP FIXES
   ===================================================== */

/* Calendar popup: High z-index, constrained size */
.SingleDatePicker_picker,
.DateRangePicker_picker {
  z-index: 99999 !important;
  max-width: 320px;
  position: absolute !important;
}

/* Ensure calendar portal renders above everything */
.SingleDatePicker_picker__portal,
.DateRangePicker_picker__portal {
  z-index: 99999 !important;
}

/* Calendar popup container positioning */
.SingleDatePickerInput,
.DateRangePickerInput {
  position: relative;
}

/* Prevent calendar from escaping module bounds */
.zs-module-card {
  position: relative;
}

/* =====================================================
   SCROLL-ZOOM ALIGNMENT
   ===================================================== */

/* Scroll-Zoom: Tighter spacing, right-aligned */
.zs-module-card .scrollzoom-wrap {
  display: inline-flex !important;
  align-items: center;
  gap: 6px !important;
  height: 32px;
  line-height: 32px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(155, 176, 204, 0.15);
  vertical-align: middle;
}

.zs-module-card .scrollzoom-wrap label {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  padding: 0;
  height: 32px;
  line-height: 32px;
  gap: 6px !important;
}

.zs-module-card .scrollzoom-wrap input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  appearance: auto !important;
  margin: 0 !important;
  vertical-align: middle;
}

/* REMOVED: All hard-coded Plotly sizing (!important rules)
   Let Plotly/Dash handle sizing via figure config, NOT CSS overrides */

/* =====================================================
   SCOPED CONTROLS (Module-specific)
   ===================================================== */

/* Compact dropdown styling: SCOPED to module cards, vertically centered */
.zs-module-card .dd {
  background: #0f141c;
  color: var(--text);
  border: 1px solid #28313d;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  min-height: 32px;
  height: 32px;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  min-width: 165px;
  position: relative;
  z-index: 100;
}

/* DDOI Module/Symbol dropdowns: match non-DDOI module dropdown styling */
.ctl-ddoi .ddoi-labeled-ctl .dd,
.ctl-ddoi .ddoi-labeled-ctl .dash-dropdown,
.ctl-ddoi .ddoi-labeled-ctl .Select,
.ctl-ddoi .ddoi-labeled-ctl .Select-control {
  width: 100%;
  background: #0f141c;
  color: var(--text);
  border: 1px solid #28313d;
  border-radius: 8px;
  font-size: 12px;
  min-height: 32px;
  height: 32px;
  box-shadow: none;
}

.ctl-ddoi .ddoi-labeled-ctl .Select-control {
  display: flex;
  align-items: center;
  padding: 6px 8px;
}

.ctl-ddoi .ddoi-labeled-ctl .Select-value,
.ctl-ddoi .ddoi-labeled-ctl .Select-value-label {
  display: flex;
  align-items: center;
  font-size: 12px;
  line-height: 20px;
  padding: 0;
}

.ctl-ddoi .ddoi-labeled-ctl .Select-input {
  font-size: 12px;
  line-height: 20px;
  height: 20px;
  padding: 0;
}

.ctl-ddoi .ddoi-labeled-ctl .Select-input > input {
  line-height: 20px;
}

.ctl-ddoi .ddoi-labeled-ctl .Select-arrow-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Ensure dropdown children (Select-control) match parent height and full click area */
.zs-module-card .dd .Select-control,
.zs-module-card .dd div[role="combobox"] {
  height: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

/* Remove any blocking overlays */
.zs-module-card .dd .Select-control::before,
.zs-module-card .dd .Select-control::after {
  display: none;
}

/* Compact labels: SCOPED - vertically centered with inputs */
.zs-module-card .smalllabel {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 32px;
  height: 32px;
}

/* Label + control pairing: horizontal alignment */
.zs-module-card .card-h-row > .smalllabel + *,
.zs-module-card .ctl-greeks > .smalllabel + *,
.zs-module-card .ctl-ddoi > .smalllabel + *,
.zs-module-card .ctl-volume > .smalllabel + *,
.zs-module-card .ctl-oi > .smalllabel + *,
.zs-module-card .ctl-footprint > .smalllabel + * {
  margin-left: 0;
}

/* Scroll-zoom rules moved to end of file for better organization */

/* NON-DDOI module controls: strict 4x2 grid, compact */
.zs-modctl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  justify-items: stretch;
  align-items: start;
  width: 100%;
  overflow: visible;
  position: relative;
}

/* Tiles with natural height - ensure full width and uniform alignment */
.zs-modctl-cell {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: start;
  justify-content: flex-start;
  justify-self: stretch;
  gap: 3px;
  height: auto;
  padding: 0;
  overflow: visible;
  position: relative;
  box-sizing: border-box;
}

/* Smaller labels for compact header */
.zs-ctl-label {
  font-size: 10px;
  line-height: 10px;
  opacity: 0.75;
  margin: 0;
  margin-bottom: 3px;
  white-space: nowrap;
  color: var(--muted);
  display: block;
  text-align: left;
}

/* Control wrapper fills width uniformly */
.zs-ctl-input {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* Ensure Dash dropdown components fill cell width uniformly */
.zs-modctl-cell .dash-dropdown,
.zs-modctl-cell .Select,
.zs-modctl-cell .Select-control {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Ensure inner Dash wrapper doesn't constrain */
.zs-modctl-cell .dash-dropdown > div,
.zs-modctl-cell .Select,
.zs-modctl-cell .Select > div {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Smaller dropdown control for compact header */
.zs-modctl-cell .Select-control {
  min-height: 32px !important;
  height: 32px !important;
  padding: 6px 8px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* Smaller value text */
.zs-modctl-cell .Select-value-label,
.zs-modctl-cell .Select-placeholder {
  font-size: 11px;
  line-height: 1.3;
}

/* Checkbox alignment - match dropdown top alignment */
.zs-modctl-cell input[type="checkbox"] {
  margin-top: 8px;
  width: 14px;
  height: 14px;
}

/* Checklist wrapper alignment */
.zs-modctl-cell .dash-checklist,
.zs-modctl-cell dcc.Checklist {
  box-sizing: border-box;
}

/* Empty tiles still reserve space but show nothing */
.zs-ctl-empty {
  opacity: 0;
  pointer-events: none;
}

/* When a dropdown is open, its menu must be above EVERYTHING in the module header */
.zs-modctl-grid .Select-menu-outer {
  z-index: 99999 !important;
}

.card .Select-menu-outer {
  z-index: 99999 !important;
}

/* Raise the open dropdown's control above siblings too */
.zs-modctl-grid .is-open {
  z-index: 99998 !important;
  position: relative;
}

/* Prevent clipping from module containers */
.zs-module-card {
  overflow: visible !important;
}

/* Keep chart clipping only */
.zs-chart-wrapper {
  overflow: hidden !important;
}

/* Date picker menus also stay proud */
.zs-modctl-grid .SingleDatePicker_picker {
  z-index: 9999 !important;
}

/* Ensure selected value text doesn't clip */
.zs-modctl-grid .Select-value-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Remove internal scrollbar from module dropdown menu */
.zs-modctl-grid .Select-menu-outer {
  max-height: none !important;
  overflow-y: visible !important;
}

/* Ensure menu expands naturally */
.zs-modctl-grid .Select-menu {
  max-height: none !important;
}

/* DDOI – lock controls layout (do not affect other modules) */
.zs-module-card .ctl-ddoi-row1{
  display:flex;
  margin-left:auto !important;
  gap:8px !important;
  align-items:center !important;
}

.zs-module-card .ctl-ddoi{
  align-items:center !important;
  gap:12px !important;
  flex-wrap:nowrap !important;
  width:100% !important;
  overflow:visible !important;
}

/* When visible, ctl-ddoi should be flex */
.zs-module-card .ctl-ddoi[style*="display: flex"],
.zs-module-card .ctl-ddoi[style*="display:flex"]{
  display:flex !important;
}

/* DDOI: Scroll-Zoom must stay fully visible and clickable */
.zs-module-card .ctl-ddoi .scrollzoom-wrap{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  white-space:nowrap !important;
  overflow:visible !important;
  position:relative !important;
  z-index: 20 !important;
}

/* DDOI: Force checkbox to render and be clickable */
.zs-module-card .ctl-ddoi .scrollzoom-wrap input[type="checkbox"]{
  width:16px !important;
  height:16px !important;
  appearance:auto !important;
  margin:0 !important;
  position:relative !important;
  z-index: 21 !important;
}

/* Make the DDOI calendar smaller so it fits */
.ddoi-ctl-row .SingleDatePicker,
.ddoi-ctl-row .SingleDatePickerInput,
.ddoi-ctl-row .DateInput,
.ddoi-ctl-row .DateInput_input{
  width: 170px !important;
  max-width: 170px !important;
}

.ddoi-ctl-row .DateInput_input{
  font-size: 16px !important;
  padding: 10px 12px !important;
  height: 44px !important;
  line-height: 24px !important;
  border-radius: 14px !important;
}

/* Also apply to .ctl-ddoi (actual class used in Python) */
.zs-module-card .ctl-ddoi .SingleDatePicker,
.zs-module-card .ctl-ddoi .SingleDatePickerInput,
.zs-module-card .ctl-ddoi .DateInput,
.zs-module-card .ctl-ddoi .DateInput_input{
  width: 170px !important;
  max-width: 170px !important;
}

.zs-module-card .ctl-ddoi .DateInput_input{
  font-size: 16px !important;
  padding: 10px 12px !important;
  height: 44px !important;
  line-height: 24px !important;
  border-radius: 14px !important;
}

/* Push Prev/Next to the far right */
.ddoi-ctl-row .ddoi-nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:12px;
}

/* Also for .ctl-ddoi (actual class used in Python) */
.zs-module-card .ctl-ddoi .ddoi-nav{
  margin-left:auto !important;
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
}

/* Scroll-Zoom wrapper styling for all modules */
.zs-module-card .ctl-oi {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Ensure checkbox is visible for all Scroll-Zoom controls */
.scrollzoom-wrap input[type="checkbox"]{
  width: 16px !important;
  height: 16px !important;
  appearance: auto !important;
  margin: 0 !important;
}

/* DDOI dedicated single-row control bar */
.ddoi-ctl-row{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:nowrap;
  width:100%;
  overflow:visible;
}

.ddoi-ctl-row .scrollzoom-wrap{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  overflow:visible;
  position:relative;
  z-index: 20;
}

.ddoi-ctl-row .scrollzoom-wrap input[type="checkbox"]{
  width:16px !important;
  height:16px !important;
  appearance:auto !important;
  margin:0 !important;
  position:relative;
  z-index: 21;
}

.ddoi-ctl-row .ddoi-nav{
  display:flex;
  gap:10px;
  align-items:center;
  margin-left:auto;
}

/* Control groups: wrap cleanly, all items vertically centered */
.zs-module-card .ctl-greeks,
.zs-module-card .ctl-ddoi,
.zs-module-card .ctl-ddoi-row1,
.zs-module-card .ctl-volume,
.zs-module-card .ctl-oi,
.zs-module-card .ctl-footprint,
.zs-module-card .ctl-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: none;
  border: none;
  box-shadow: none;
  min-height: 36px;
}

/* Ensure all children are vertically centered on the same line */
.zs-module-card .ctl-greeks > *,
.zs-module-card .ctl-ddoi > *,
.zs-module-card .ctl-ddoi-row1 > *,
.zs-module-card .ctl-volume > *,
.zs-module-card .ctl-oi > *,
.zs-module-card .ctl-footprint > *,
.zs-module-card .ctl-flow > * {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

/* DDOI controls: date picker + buttons in row */
.zs-module-card .ctl-ddoi {
  justify-content: flex-start;
}

/* Normalized control sizing: All inputs/buttons share same dimensions and vertical alignment */
.zs-module-card .btn-apply,
.zs-module-card .ctrl-input,
.zs-module-card .DateInput_input {
  height: 32px;
  min-height: 32px;
  border-radius: 8px;
  font-size: 11px;
  padding: 6px 10px;
  box-shadow: none;
  border: 1px solid #28313d;
  background: #0f141c;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Button-specific styling */
.zs-module-card .btn-apply {
  cursor: pointer;
  font-weight: 500;
}

.zs-module-card .btn-apply:hover {
  background: #151b24;
  border-color: #3a4554;
}

/* Date picker input: vertically centered */
.zs-module-card .DateInput_input,
.zs-module-card .ctrl-input .DateInput_input {
  font-size: 11px;
  padding: 6px 8px;
  height: 32px;
  line-height: 32px;
  display: inline-flex;
  align-items: center;
}

/* Date picker container: ensure vertical centering */
.zs-module-card .SingleDatePickerInput,
.zs-module-card .ctrl-input .SingleDatePickerInput {
  display: inline-flex;
  align-items: center;
  height: 32px;
}

/* Additional clutter reduction: Remove all inner wrapper styling */
.zs-module-card .card-h-row > *,
.zs-module-card .ctl-greeks > *,
.zs-module-card .ctl-ddoi > *,
.zs-module-card .ctl-ddoi-row1 > *,
.zs-module-card .ctl-volume > *,
.zs-module-card .ctl-oi > *,
.zs-module-card .ctl-footprint > *,
.zs-module-card .ctl-flow > * {
  box-shadow: none;
  outline: none;
}

/* Ensure clean wrapping without overlap */
.zs-module-card .card-h-row {
  overflow: visible;
  position: relative;
}

.zs-module-card .card-h-row > * {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Allow dropdowns to shrink slightly on narrow screens */
.zs-module-card .dd {
  flex-shrink: 1;
  min-width: 80px;
}

/* Ensure Scroll-Zoom never overlaps other controls */
.zs-module-card .card-h-row .smalllabel:last-of-type {
  margin-left: auto;
}

/* DDOI-specific: Prev/Next buttons stay right-aligned */
.zs-module-card .ctl-ddoi-row1 {
  margin-left: auto;
  display: inline-flex;
  gap: 8px;
}

/* Prevent text collision in control groups */
.zs-module-card .ctl-greeks,
.zs-module-card .ctl-ddoi,
.zs-module-card .ctl-volume,
.zs-module-card .ctl-oi,
.zs-module-card .ctl-footprint {
  line-height: 32px;
}

/* Override conflicting alignment for 4x2 grid child wrappers */
.zs-modctl-grid .ctl-greeks-row1,
.zs-modctl-grid .ctl-greeks-view,
.zs-modctl-grid .ctl-greeks,
.zs-modctl-grid .ctl-greeks-scrollzoom,
.zs-modctl-grid .ctl-volume-slot3,
.zs-modctl-grid .ctl-volume-scrollzoom,
.zs-modctl-grid .ctl-oi-scrollzoom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  min-height: unset !important;
  justify-content: flex-start;
}

/* Reset centering/flex behaviors from global rules within grid scope */
.zs-modctl-grid .ctl-greeks-row1 > *,
.zs-modctl-grid .ctl-greeks-view > *,
.zs-modctl-grid .ctl-greeks > *,
.zs-modctl-grid .ctl-greeks-scrollzoom > * {
  display: block;
  align-items: stretch;
  min-height: unset;
}

/* Normalize checkbox within grid - no extra vertical offset */
.zs-modctl-grid input[type="checkbox"] {
  margin: 0;
  margin-top: 8px;
}

/* Ensure labels in 4x2 grid are top-left aligned */
.zs-modctl-grid .ctl-greeks-row1 .zs-ctl-label,
.zs-modctl-grid .ctl-greeks-view .zs-ctl-label,
.zs-modctl-grid .ctl-greeks .zs-ctl-label,
.zs-modctl-grid .ctl-greeks-scrollzoom .zs-ctl-label,
.zs-modctl-grid .ctl-volume-slot3 .zs-ctl-label,
.zs-modctl-grid .ctl-volume-scrollzoom .zs-ctl-label,
.zs-modctl-grid .ctl-oi-scrollzoom .zs-ctl-label {
  display: block;
  text-align: left;
  align-self: flex-start;
  margin: 0 0 3px 0;
}

/* Remove centering from 4x2 grid child elements */
.zs-modctl-grid .ctl-greeks-row1 > *,
.zs-modctl-grid .ctl-greeks-view > *,
.zs-modctl-grid .ctl-greeks > *,
.zs-modctl-grid .ctl-greeks-scrollzoom > *,
.zs-modctl-grid .ctl-volume-slot3 > *,
.zs-modctl-grid .ctl-volume-scrollzoom > *,
.zs-modctl-grid .ctl-oi-scrollzoom > * {
  margin: 0;
}

/* =====================================================
   DASH COMPONENT WRAPPER NEUTRALIZATION
   ===================================================== */

/* Remove backgrounds/shadows from Dash dropdown wrappers */
.zs-module-card .Select,
.zs-module-card .Select-control,
.zs-module-card .Select-menu-outer,
.zs-module-card div[role="combobox"],
.zs-module-card .dropdown,
.zs-module-card ._dash-dropdown,
.zs-module-card .dash-dropdown {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Remove backgrounds from control group wrappers */
.zs-module-card .ctl-greeks > div,
.zs-module-card .ctl-ddoi > div,
.zs-module-card .ctl-volume > div,
.zs-module-card .ctl-oi > div,
.zs-module-card .ctl-footprint > div,
.zs-module-card .ctl-flow > div {
  background: transparent;
  box-shadow: none;
  border: none;
}

/* Ensure input wrappers are transparent */
.zs-module-card .ctrl-input {
  background: transparent;
  box-shadow: none;
  border: none;
}

/* DDOI labeled controls (Module/Symbol) */
.ddoi-labeled-ctl {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ddoi-labeled-ctl .zs-ctl-label {
  font-size: 10px;
  line-height: 10px;
  opacity: 0.75;
}

/* =====================================================
   RESPONSIVE LAYOUT (Natural expansion)
   ===================================================== */

@media (max-width: 1024px) {
  /* Stack modules vertically on narrow screens */
  .zs-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   PUBLIC LANDING PAGE
   ===================================================== */

.zs-public-shell {
  --zs-public-bg: #060b12;
  --zs-public-panel: rgba(8, 14, 24, 0.86);
  --zs-public-panel-strong: rgba(6, 12, 20, 0.94);
  --zs-public-line: rgba(29, 49, 76, 0.9);
  --zs-public-line-soft: rgba(70, 98, 136, 0.28);
  --zs-public-text: #edf4ff;
  --zs-public-muted: rgba(171, 192, 220, 0.78);
  --zs-public-accent: #00e5a8;
  --zs-public-accent-soft: rgba(0, 229, 168, 0.12);
  --zs-public-accent-alt: #2d6cff;
  position: relative;
  min-height: 100vh;
  color: var(--zs-public-text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 229, 168, 0.1), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(45, 108, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #04070d 0%, #09111b 42%, #050a11 100%);
  overflow-x: hidden;
}

.zs-public-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(66, 90, 120, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 90, 120, 0.08) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.46), transparent 92%);
  opacity: 0.16;
}

.zs-public-shell > * {
  position: relative;
  z-index: 1;
}

.zs-public-nav,
.zs-public-main,
.zs-public-footer {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.zs-public-nav {
  position: sticky;
  top: 12px;
  z-index: 30;
  margin-top: 12px;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--zs-public-line-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 13, 21, 0.94), rgba(7, 12, 20, 0.82));
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.zs-public-wordmark {
  color: var(--zs-public-text);
  text-decoration: none;
  font-size: 1.26rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.zs-public-nav__links,
.zs-public-nav__actions,
.zs-public-footer__links,
.zs-cta-row,
.zs-signal-row,
.zs-pricing-card__notes,
.zs-hero-shot__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zs-public-nav__links {
  justify-content: center;
  gap: 24px;
}

.zs-public-nav__actions {
  justify-content: flex-end;
}

.zs-public-link,
.zs-public-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--zs-public-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.zs-public-nav__links > .zs-public-link {
  position: relative;
}

.zs-public-nav__links > .zs-public-link + .zs-public-link {
  padding-left: 24px;
}

.zs-public-nav__links > .zs-public-link + .zs-public-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  background: rgba(171, 192, 220, 0.2);
  transform: translateY(-50%);
}

.zs-public-link:hover,
.zs-public-footer__link:hover {
  color: var(--zs-public-text);
}

.zs-public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #00e5a8, #81ffd8);
  color: #03130e;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(0, 229, 168, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.zs-public-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 229, 168, 0.24);
}

.zs-public-button--ghost {
  border-color: var(--zs-public-line-soft);
  background: rgba(8, 14, 24, 0.66);
  color: var(--zs-public-text);
  box-shadow: none;
}

.zs-public-main {
  padding: 28px 0 72px;
}

.zs-public-main--placeholder {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 220px);
}

.zs-hero,
.zs-public-section,
.zs-cred-strip,
.zs-placeholder-card {
  animation: zs-public-rise 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.zs-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--zs-public-line-soft);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(8, 14, 24, 0.96), rgba(6, 11, 19, 0.86)),
    radial-gradient(circle at top right, rgba(45, 108, 255, 0.12), transparent 34%);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.24);
}

.zs-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.zs-section-kicker,
.zs-product-frame__label,
.zs-pricing-card__eyebrow,
.zs-placeholder-card__route,
.zs-cred-strip > div,
.zs-hero-shot__eyebrow {
  font-family: "IBM Plex Mono", "Consolas", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.zs-section-kicker,
.zs-product-frame__label,
.zs-pricing-card__eyebrow,
.zs-hero-shot__eyebrow {
  color: var(--zs-public-accent);
  font-size: 0.72rem;
}

.zs-hero h1,
.zs-section-heading h2,
.zs-final-cta h2,
.zs-placeholder-card h1 {
  margin: 0;
  letter-spacing: -0.055em;
}

.zs-hero h1 {
  max-width: 9ch;
  font-size: clamp(2.9rem, 6vw, 4.5rem);
  line-height: 0.92;
}

.zs-hero p,
.zs-section-heading p,
.zs-value-card p,
.zs-product-frame p,
.zs-audience-card p,
.zs-pricing-card p,
.zs-step-card p,
.zs-final-cta p,
.zs-placeholder-card p,
.zs-public-footer__brand p {
  margin: 0;
  color: var(--zs-public-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.zs-hero p {
  max-width: 34rem;
  font-size: 1.02rem;
}

.zs-signal-row {
  margin-top: 4px;
}

.zs-signal-pill,
.zs-pricing-card__notes > div {
  padding: 8px 11px;
  border: 1px solid var(--zs-public-line-soft);
  border-radius: 999px;
  background: rgba(7, 13, 22, 0.78);
  color: rgba(198, 216, 236, 0.88);
  font-size: 0.8rem;
}

.zs-hero-shot,
.zs-product-frame,
.zs-pricing-card,
.zs-final-cta,
.zs-placeholder-card,
.zs-value-card,
.zs-audience-card,
.zs-step-card,
.zs-cred-strip > div {
  border: 1px solid var(--zs-public-line-soft);
  background: var(--zs-public-panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.zs-hero-shot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(7, 13, 22, 0.98), rgba(6, 12, 20, 0.86)),
    radial-gradient(circle at top left, rgba(0, 229, 168, 0.1), transparent 34%);
}

.zs-hero-shot--featured {
  gap: 14px;
}

.zs-hero-shot__eyebrow {
  justify-content: space-between;
  color: rgba(176, 201, 230, 0.72);
}

.zs-hero-shot__media,
.zs-product-frame__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(70, 98, 136, 0.22);
  background: linear-gradient(180deg, rgba(7, 12, 20, 0.98), rgba(6, 10, 16, 0.98));
}

.zs-hero-shot__media {
  aspect-ratio: 1.36;
  padding: 12px;
}

.zs-hero-shot--featured .zs-hero-shot__media {
  aspect-ratio: 1.38;
  min-height: 440px;
  padding: 14px 14px 10px;
}

.zs-hero-shot__media::after,
.zs-product-frame__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.24));
}

.zs-hero-shot--featured .zs-hero-shot__media::after {
  content: none;
}

.zs-hero-shot__image,
.zs-product-frame__image {
  display: block;
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.zs-hero-shot__copy {
  padding: 2px 2px 4px;
}

.zs-hero-shot__copy h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.035em;
}

.zs-cred-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.zs-cred-strip > div {
  padding: 14px 16px;
  border-radius: 16px;
  color: rgba(204, 219, 236, 0.84);
  font-size: 0.74rem;
  line-height: 1.55;
}

.zs-public-section {
  margin-top: 20px;
  padding: 28px 30px;
  border: 1px solid var(--zs-public-line-soft);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.82), rgba(7, 11, 18, 0.7));
}

.zs-section-heading {
  max-width: 48rem;
}

.zs-section-heading--centered,
.zs-final-cta,
.zs-placeholder-card {
  text-align: center;
}

.zs-section-heading--centered {
  margin-left: auto;
  margin-right: auto;
}

.zs-section-heading h2,
.zs-final-cta h2,
.zs-placeholder-card h1 {
  font-size: clamp(1.95rem, 3.6vw, 3rem);
  line-height: 0.98;
}

.zs-section-heading p {
  margin-top: 11px;
}

.zs-capability-strip {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--zs-public-line-soft);
  border-radius: 18px;
  background: rgba(7, 12, 20, 0.72);
}

.zs-capability-strip p {
  margin: 0;
  color: var(--zs-public-muted);
  line-height: 1.65;
  font-size: 0.95rem;
  text-align: center;
}

.zs-capability-strip__pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.zs-capability-strip__pills span {
  padding: 8px 11px;
  border: 1px solid var(--zs-public-line-soft);
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.78);
  color: rgba(198, 216, 236, 0.88);
  font-size: 0.8rem;
}

.zs-public-main--route {
  padding-top: 36px;
}

.zs-route-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.zs-route-hero {
  max-width: 46rem;
}

.zs-route-hero--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.zs-route-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.zs-route-hero p {
  margin: 12px 0 0;
  color: var(--zs-public-muted);
  line-height: 1.65;
  font-size: 1rem;
}

.zs-auth-grid,
.zs-dashboard-grid,
.zs-billing-grid,
.zs-guard-grid {
  display: grid;
  gap: 16px;
}

.zs-auth-grid,
.zs-billing-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.zs-dashboard-grid,
.zs-guard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zs-surface-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--zs-public-line-soft);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 14, 24, 0.94), rgba(7, 12, 20, 0.84));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.zs-surface-card--form {
  gap: 16px;
}

.zs-surface-card__kicker {
  color: var(--zs-public-accent);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.zs-surface-card h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.zs-surface-card p {
  margin: 0;
  color: var(--zs-public-muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

.zs-auth-form {
  display: grid;
  gap: 14px;
}

.zs-form-alert {
  padding: 12px 14px;
  border: 1px solid rgba(70, 98, 136, 0.24);
  border-radius: 14px;
  background: rgba(7, 12, 20, 0.74);
  color: rgba(198, 216, 236, 0.92);
  font-size: 0.9rem;
  line-height: 1.5;
}

.zs-form-alert--hidden {
  display: none;
}

.zs-form-alert--error {
  border-color: rgba(255, 122, 122, 0.26);
  background: rgba(42, 12, 16, 0.52);
  color: #ffd0d0;
}

.zs-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zs-form-field__label {
  color: rgba(198, 216, 236, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
}

.zs-form-field__input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(70, 98, 136, 0.34);
  border-radius: 14px;
  background: rgba(6, 11, 19, 0.9);
  color: var(--zs-public-text);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.zs-form-field__input:focus {
  outline: none;
  border-color: rgba(0, 229, 168, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.08);
}

.zs-public-button--wide {
  width: 100%;
}

.zs-form-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--zs-public-muted);
  font-size: 0.9rem;
}

.zs-inline-link {
  color: var(--zs-public-text);
  text-decoration: none;
  font-weight: 600;
}

.zs-inline-link:hover {
  color: var(--zs-public-accent);
}

.zs-feature-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(198, 216, 236, 0.88);
  display: grid;
  gap: 8px;
}

.zs-feature-list li {
  line-height: 1.55;
}

.zs-detail-list {
  display: grid;
  gap: 12px;
}

.zs-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(70, 98, 136, 0.18);
}

.zs-detail-row:first-child {
  padding-top: 0;
  border-top: none;
}

.zs-detail-row__label {
  color: var(--zs-public-muted);
  font-size: 0.88rem;
}

.zs-detail-row__value {
  color: var(--zs-public-text);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.zs-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(70, 98, 136, 0.3);
  border-radius: 999px;
  background: rgba(9, 16, 24, 0.82);
  color: rgba(198, 216, 236, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
}

.zs-status-chip--pending {
  border-color: rgba(132, 183, 255, 0.28);
  color: #b9d4ff;
}

.zs-status-chip--locked {
  border-color: rgba(255, 181, 108, 0.24);
  color: #ffd2a0;
}

.zs-note-block {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  border: 1px solid rgba(70, 98, 136, 0.2);
  border-radius: 16px;
  background: rgba(6, 11, 19, 0.72);
}

.zs-note-block span {
  color: var(--zs-public-muted);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zs-note-block strong {
  font-size: 0.92rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.zs-billing-grid .zs-pricing-card {
  max-width: none;
  margin: 0;
}

.zs-guard-grid .zs-surface-card--guard {
  justify-content: space-between;
}

.zs-value-grid,
.zs-audience-grid,
.zs-steps-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.zs-value-grid,
.zs-audience-grid,
.zs-steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zs-value-card,
.zs-audience-card,
.zs-step-card {
  padding: 20px;
  border-radius: 18px;
}

.zs-value-card h3,
.zs-product-frame h3,
.zs-audience-card h3,
.zs-step-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  letter-spacing: -0.035em;
}

.zs-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.zs-product-frame {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
}

.zs-product-frame__media {
  aspect-ratio: 1.9;
  padding: 12px;
}

.zs-product-frame__copy {
  padding: 4px 4px 2px;
}

.zs-pricing-card,
.zs-final-cta,
.zs-placeholder-card {
  max-width: 720px;
  margin: 20px auto 0;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 14, 24, 0.96), rgba(6, 11, 19, 0.86));
}

.zs-pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.zs-pricing-card__price small {
  color: var(--zs-public-muted);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0;
}

.zs-pricing-card p,
.zs-final-cta p,
.zs-placeholder-card p {
  margin-top: 14px;
}

.zs-pricing-card__notes {
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 6px;
}

.zs-pricing-card .zs-cta-row,
.zs-final-cta .zs-cta-row {
  justify-content: center;
  margin-top: 18px;
}

.zs-step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--zs-public-accent-soft);
  color: var(--zs-public-accent);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.78rem;
}

.zs-public-footer {
  margin-bottom: 24px;
  padding: 22px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(70, 98, 136, 0.22);
}

.zs-public-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zs-public-footer__brand p {
  max-width: 28rem;
  font-size: 0.88rem;
}

.zs-public-footer .zs-public-wordmark {
  font-size: 1.1rem;
}

.zs-placeholder-card__route {
  color: var(--zs-public-accent);
  font-size: 0.76rem;
}

@keyframes zs-public-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .zs-public-nav {
    grid-template-columns: 1fr;
    justify-items: flex-start;
  }

  .zs-public-nav__links,
  .zs-public-nav__actions {
    justify-content: flex-start;
  }

  .zs-hero {
    grid-template-columns: 1fr;
  }

  .zs-hero-shot--featured .zs-hero-shot__media {
    min-height: 380px;
  }

  .zs-auth-grid,
  .zs-dashboard-grid,
  .zs-billing-grid,
  .zs-guard-grid {
    grid-template-columns: 1fr;
  }

  .zs-cred-strip,
  .zs-visual-grid,
  .zs-value-grid,
  .zs-audience-grid,
  .zs-steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .zs-public-nav,
  .zs-public-main,
  .zs-public-footer {
    width: calc(100% - 20px);
  }

  .zs-public-nav {
    top: 8px;
    padding: 13px 14px;
  }

  .zs-public-nav__links {
    gap: 16px;
  }

  .zs-public-nav__links > .zs-public-link + .zs-public-link {
    padding-left: 16px;
  }

  .zs-public-main {
    padding-top: 20px;
    padding-bottom: 56px;
  }

  .zs-hero,
  .zs-public-section,
  .zs-pricing-card,
  .zs-final-cta,
  .zs-placeholder-card {
    padding: 22px;
  }

  .zs-hero h1 {
    max-width: none;
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }

  .zs-route-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .zs-hero-shot--featured .zs-hero-shot__media {
    min-height: 280px;
    padding: 12px;
  }

  .zs-cred-strip,
  .zs-visual-grid,
  .zs-value-grid,
  .zs-audience-grid,
  .zs-steps-grid {
    grid-template-columns: 1fr;
  }

  .zs-public-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .zs-surface-card {
    padding: 20px;
  }
}
