@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/plex-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/plex-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --wine: #9E0C4F;
  --wine-dark: #7B093D;
  --gold: #BCAD7F;
  --gold-soft: #DDD2B1;
  --ink: #363636;
  --muted: #707070;
  --line: rgba(188, 173, 127, 0.42);
  --line-soft: #e6e8ec;
  --paper: #F5F6F8;
  --paper-grad: linear-gradient(180deg, #FFFFFF 0%, #EDF1F4 100%);
  --white: #FFFFFF;
  --up: #127054;
  --down: #9E0C4F;
  --shadow-wine: 0 15px 30px rgba(158, 12, 79, 0.14);
  --shadow-btn: 0 10px 20px rgba(158, 12, 79, 0.22);
  --sans: 'Poppins', Inter, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 86px }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  position: relative;
}
::selection { background: #9E0C4F; color: #fff }
a { text-decoration: none; color: inherit }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer }
button:disabled { cursor: default; opacity: .38 }
button svg, a svg, .search svg, .insight-icon svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px }
.wrap { width: min(1360px, calc(100% - 64px)); margin-inline: auto; position: relative; z-index: 2 }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
[hidden] { display: none !important }
.skip:focus { position: absolute; z-index: 99; padding: 12px; background: var(--white); border: 1px solid var(--wine) }

/* Live top marquee ticker tape */
.tape-bar {
  background: linear-gradient(90deg, var(--wine-dark) 0%, #8e0b46 50%, var(--wine-dark) 100%);
  color: #ffffff; height: 36px; display: flex; align-items: stretch;
  border-bottom: 1px solid rgba(221, 210, 177, 0.45); position: relative; z-index: 11; overflow: hidden;
}
.tape-label {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px;
  background: #5b062c; border-right: 1px solid rgba(221, 210, 177, 0.28);
  font: 600 10px/1 var(--sans); letter-spacing: .12em; color: var(--gold-soft); white-space: nowrap;
}
.tape-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ef2b6; box-shadow: 0 0 0 3px rgba(94, 242, 182, 0.22) }
.tape-viewport { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center }
.tape-track { display: flex; align-items: center; width: max-content; animation: tapeScroll 45s linear infinite; will-change: transform }
.tape-bar:hover .tape-track { animation-play-state: paused }
@keyframes tapeScroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.tape-item {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16); padding: 0 16px; height: 36px;
  white-space: nowrap; font-size: 12px; color: #ffffff; transition: background .15s;
}
.tape-item:hover { background: rgba(255, 255, 255, 0.12) }
.tape-badge {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font: 700 8px var(--sans); background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(221, 210, 177, 0.42); color: #fff; flex: none;
}
.tape-badge.crypto { background: #d49b2a; border-color: transparent; color: #1b1920 }
.tape-badge.forex { background: #2c669e; border-color: transparent }
.tape-badge.metal { background: #a88635; border-color: transparent }
.tape-badge.etf { background: #5a4488; border-color: transparent }
.tape-code { font-weight: 600; letter-spacing: .02em }
.tape-price { font: 500 12px var(--mono); color: #ffffff }
.tape-chg { font: 500 11px var(--mono) }
.tape-chg.positive { color: #72f7be }
.tape-chg.negative { color: #ffd0dc }

/* Sticky architectural header */
.header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; justify-content: space-between; gap: 18px; align-items: center; min-height: 74px; position: relative }
.brand { display: inline-flex; gap: 10px; align-items: flex-end; color: var(--wine); line-height: 1; flex: none; padding-block: 4px }
.brand-logo { display: block; height: 52px; width: auto; flex: none }
.brand-divider { width: 1px; height: 17px; background: var(--gold); margin-bottom: 1px; flex: none }
.brand-text { font-size: 14px; font-weight: 700; letter-spacing: .18em; line-height: 1; margin-bottom: 2px; white-space: nowrap; color: var(--ink) }
.nav nav { display: flex; align-items: stretch; gap: 22px; align-self: stretch }
.nav nav > a, .nav-drop-btn {
  position: relative; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
  background: none; border: 0; padding: 0; transition: color .18s;
}
.nav nav > a:hover, .nav nav > a.current, .nav-drop:hover .nav-drop-btn, .nav-drop-btn[aria-expanded=true] { color: var(--wine) }
.nav nav > a.current:after { content: ''; height: 2px; position: absolute; inset: auto 0 0; background: var(--wine) }
.nav-drop { position: relative; display: flex; align-items: stretch }
.nav-drop-btn svg { width: 15px; height: 15px; transition: transform .18s }
.nav-drop-btn[aria-expanded=true] svg { transform: rotate(180deg) }
.nav-menu {
  position: absolute; top: 100%; left: 0; min-width: 265px; background: var(--white);
  border: 1px solid var(--gold); border-top: 2px solid var(--wine); box-shadow: var(--shadow-wine);
  display: none; flex-direction: column; padding: 6px 0; z-index: 40;
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu, .nav-drop.open .nav-menu { display: flex }
.nav-menu a {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0;
  border-bottom: 1px solid var(--line-soft); transition: background .14s, color .14s;
}
.nav-menu a:last-child { border-bottom: 0 }
.nav-menu a small { font-size: 11px; font-weight: 400; color: var(--muted) }
.nav-menu a:hover { background: #fbf3f7; color: var(--wine) }
.nav-actions, .dialog-actions { display: flex; align-items: center; gap: 8px; flex: none }

/* Sharp architectural buttons matching sinpas.com.tr */
.btn {
  display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 0;
  font-weight: 500; font-size: 13px; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 12px }
.outline { color: var(--ink); border-color: var(--gold); background: var(--white) }
.outline:hover { background: var(--wine); border-color: var(--wine); color: var(--white) }
.gold-outline { color: var(--ink); border: 1px solid var(--gold); background: rgba(255,255,255,.9) }
.gold-outline:hover { border-color: var(--wine); color: var(--wine); background: #fff }
.burgundy { background: var(--wine); color: var(--white) }
.burgundy:hover { background: var(--wine-dark); box-shadow: var(--shadow-btn) }

/* Signature Sinpas wipe CTA button */
.btn-sinpas {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 28px 11px 26px;
  background: var(--ink); color: var(--white); font-size: 14px; font-weight: 500;
  overflow: hidden; border: 0; border-radius: 0; transition: box-shadow .25s;
}
.btn-sinpas::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 8px;
  border-color: transparent transparent transparent var(--white); z-index: 2;
}
.btn-sinpas::after {
  content: ''; position: absolute; inset: 0; width: 0; background: var(--wine);
  transition: width .3s ease; z-index: 1;
}
.btn-sinpas:hover { box-shadow: var(--shadow-btn) }
.btn-sinpas:hover::after { width: 100% }
.btn-sinpas span { position: relative; z-index: 2 }

.icon-button {
  display: inline-grid; place-items: center; background: none;
  border: 1px solid transparent; border-radius: 0; min-height: 44px; min-width: 44px; padding: 0;
  transition: background .16s, color .16s;
}
.icon-button:not(:disabled):hover { background: #f8eff3; color: var(--wine) }
.menu-toggle { display: none }

/* Pure white architectural hero with particle bird video */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--white); color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  display: flex; justify-content: flex-end; align-items: center;
}
.hero-video {
  height: 108%; width: auto; min-width: 62%;
  object-fit: cover; object-position: center center;
  transform: translateX(7%);
  mix-blend-mode: multiply;
  opacity: .96;
}
.hero-inner {
  min-height: clamp(360px, 48vh, 460px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 44px; position: relative; z-index: 2;
}
.hero-content { max-width: 560px }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .2em;
  display: flex; align-items: center; gap: 10px; text-transform: uppercase;
}
.eyebrow i { display: block; width: 22px; height: 1px; background: var(--gold) }
.hero-eyebrow { color: var(--gold); margin-bottom: 12px }
h1, h2, h3, p { margin: 0 }
h1, h2, .insight h3, .chart-heading h3 { font-family: var(--sans); font-weight: 400; line-height: 1.16 }
h1 {
  font-size: clamp(32px, 3.8vw, 52px);
  letter-spacing: -.03em; color: var(--wine); margin-bottom: 14px;
}
h1 span, h2 span { display: block; color: var(--gold); font-weight: 300 }
h2 span { display: inline }
.hero p { color: var(--ink); font-size: 15px; line-height: 1.6; max-width: 46ch }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px }

.scroll-pill {
  position: absolute; right: 0; bottom: 20px; width: 22px; height: 36px;
  border: 2px solid var(--wine); border-radius: 12px; display: grid; place-items: start center; padding-top: 6px;
}
.scroll-pill span {
  width: 3px; height: 7px; background: var(--wine); border-radius: 2px;
  animation: scrollBounce 1.8s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1 }
  60% { transform: translateY(8px); opacity: .25 }
}

/* Ticker band */
.ticker-band { background: var(--paper); padding-top: 20px }
.ticker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px }
.ticker button {
  min-width: 0; min-height: 68px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 0; background: var(--white);
  text-align: left; display: flex; align-items: center; gap: 9px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.ticker button:hover { border-color: var(--wine); box-shadow: var(--shadow-wine) }
.ticker button[aria-current=true] { border-color: var(--wine); box-shadow: inset 0 2px var(--wine), var(--shadow-wine) }
.ticker .asset-icon { min-width: 31px; width: 31px; height: 31px; font-size: .67rem }
.ticker figure { margin: 0; min-width: 0 }
.ticker figcaption { font-size: 11px; color: var(--muted); font-weight: 600 }
.ticker strong { font: 500 14px var(--mono); white-space: nowrap; color: var(--ink) }
.ticker .change { font-size: 11px; margin-inline-start: auto }

/* Markets section */
.markets { padding-block: 30px 44px; background: var(--paper); max-width: 100%; width: 100% }
.markets > * { width: min(1360px, calc(100% - 64px)); margin-inline: auto }
.sec-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px }
.section-kicker { color: var(--wine); margin-bottom: 8px }
h2 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.025em; color: var(--wine) }
.feed-status {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 0; color: var(--muted);
  font-size: 11px; white-space: nowrap; background: var(--white);
}
.feed-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold) }
.feed-status.good span { background: var(--up) }
.feed-status.bad span { background: var(--down) }
.market-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: 16px }
.board, .chart-panel, .shortcuts, .calendar-host {
  background: var(--white); border: 1px solid var(--line); border-radius: 0; overflow: hidden; min-width: 0;
}
.toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0 12px 10px; border-bottom: 1px solid var(--line) }
.filters { display: flex; gap: 3px; flex-wrap: wrap }
.filters button, .ranges button {
  border: 0; border-radius: 0; background: none; min-height: 44px; padding: 5px 10px;
  font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--muted); transition: color .15s, background .15s;
}
.filters button:hover, .ranges button:hover { background: var(--paper); color: var(--ink) }
.filters button[aria-pressed=true], .ranges button[aria-pressed=true] {
  background: #faf1f5; color: var(--wine); box-shadow: inset 0 -2px var(--wine);
}
.search {
  display: flex; align-items: center; gap: 6px; padding: 0 10px;
  border: 1px solid var(--line-soft); border-radius: 0; min-height: 42px; color: var(--muted); width: 100%; margin-top: 8px;
}
.search input { background: none; border: 0; width: 100%; min-width: 0; padding: 5px 0; font-size: 13px }
.search svg { flex: none; width: 16px }

table { width: 100%; border-collapse: collapse }
th, td { text-align: left; padding: 4px 10px; border-bottom: 1px solid #eef0f3 }
th {
  font-size: 10px; font-weight: 600; color: var(--muted); background: #f8f9fb;
  text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; height: 34px;
}
th:first-child, td:first-child { padding-left: 16px }
td { font-size: 13px }
td:last-child, th:last-child { width: 44px; padding-inline: 4px }
tr:last-child td { border-bottom: 0 }
tbody tr:hover, tbody tr.selected { background: #fbf3f7 }
.board th:nth-child(2), .board th:nth-child(3), .board td:nth-child(2), .board td:nth-child(3) { text-align: right }
.asset { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 0; min-height: 44px; max-width: 100% }
.asset b, .asset small { display: block }
.asset b { font-size: 13px; font-weight: 600; white-space: nowrap }
.asset small { color: var(--muted); font-size: 11px }
.asset-icon {
  display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 0;
  background: #f7ecf1; color: var(--wine); font-weight: 600; font-size: 11px; flex: none;
  border: 1px solid rgba(158, 12, 79, 0.14);
}
.asset-icon.crypto { background: #f7f3e8; color: #7a6635; border-color: rgba(188, 173, 127, 0.35) }
.asset-icon.forex { background: #ecf0f6; color: #36506e; border-color: rgba(54, 80, 110, 0.14) }
.asset-icon.metal { background: #f6efe0; color: #705825; border-color: rgba(188, 173, 127, 0.35) }
.asset-icon.etf { background: #f2eef7; color: #5c4379; border-color: rgba(92, 67, 121, 0.14) }
.price, .change { white-space: nowrap; font: 500 12px var(--mono) }
.positive { color: var(--up) }
.negative { color: var(--down) }
.star { color: #9a8d94 }
.star[aria-pressed=true] { color: var(--wine) }
.star[aria-pressed=true] svg { fill: #e3b8cb }
.board-footer {
  padding: 0 8px 0 15px; display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); font: 500 11px var(--mono); color: var(--muted);
}
.pager { display: flex }

/* Insight & Shortcuts */
.market-aside { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.insight {
  display: flex; align-items: center; gap: 14px; border: 1px solid var(--line);
  border-radius: 0; background: var(--white); color: var(--ink); padding: 14px 16px;
  transition: border-color .18s, box-shadow .18s;
}
.insight:hover { border-color: var(--wine); box-shadow: var(--shadow-wine) }
.insight-icon {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 0; color: var(--wine); background: #fcf9fa;
}
.insight h3 { font-size: 15px; font-weight: 600; margin-bottom: 2px }
.insight p { font-size: 12px; color: var(--muted) }
.text-link { display: inline-flex; gap: 8px; min-height: 44px; align-items: center; color: var(--wine); font-weight: 600; font-size: 13px }
.text-link:hover { text-decoration: underline }
.insight .text-link { margin-left: auto; white-space: nowrap }
.shortcuts { display: flex; align-items: center; gap: 14px; padding: 8px 16px }
.shortcuts h3 { font-size: 14px; font-weight: 600; white-space: nowrap }
.shortcuts a { display: flex; gap: 6px; align-items: center; padding: 6px 4px; min-height: 44px; font-size: 12px; color: var(--muted) }
.shortcuts a:hover { color: var(--wine) }

/* Chart Panel */
.chart-panel { scroll-margin-top: 12px; box-shadow: 0 4px 20px rgba(54, 54, 54, 0.03) }
.chart-heading { padding: 16px 18px 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px }
.chart-heading h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; color: var(--ink) }
.chart-heading h3 small { font: 500 12px var(--mono); color: var(--muted); margin-left: 5px }
.chart-quote { display: flex; align-items: baseline; gap: 10px; margin-top: 5px; min-height: 32px }
.chart-quote[hidden] { display: none }
.chart-quote strong { font: 500 clamp(21px, 2.2vw, 29px) var(--mono); letter-spacing: -.04em; color: var(--ink) }
.chart-quote .change { border-radius: 0; padding: 3px 8px; background: var(--paper) }
.chart-quote .positive { background: #e8f5f0 }
.chart-quote .negative { background: #faedf2 }
.chart-quick-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center }
.chart-controls { padding-inline: 12px; border-bottom: 1px solid var(--line) }
.ranges { display: flex; gap: 3px; flex-wrap: wrap; align-items: center }
.chart-controls [data-chart-mode] { margin-inline-start: auto; font-size: 12px; color: var(--wine) }
.chart-controls .ext-link {
  margin-inline-start: auto; padding: 8px 6px; font-size: 12px; font-weight: 600; color: var(--wine);
}
.empty { padding: 28px 15px; color: var(--muted); text-align: center }
.chart-frame { height: 400px; min-width: 0 }
.chart-frame iframe, .calendar-host iframe { max-width: 100% }
.chart-consent { min-height: 240px; display: grid; place-content: center; justify-items: center; text-align: center; gap: 13px; padding: 22px; color: var(--muted) }
.chart-consent a { color: var(--wine); text-decoration: underline }
.chart-data { padding: 6px 14px 10px }
.chart-canvas { display: block; width: 100%; height: 285px; touch-action: pan-y }
.chart-point { font: 500 11px/1.5 var(--mono); color: var(--muted); min-height: 20px; margin: 3px 0 }
.chart-data input { appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer }
.chart-data input::-webkit-slider-runnable-track { height: 2px; background: var(--gold-soft) }
.chart-data input::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; margin-top: -5px; border-radius: 50%; background: var(--wine) }
.chart-data input::-moz-range-track { height: 2px; background: var(--gold-soft) }
.chart-data input::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--wine) }
.chart-table { margin-top: 10px; font-size: 13px; color: var(--muted) }
.chart-table summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px }
.chart-table summary::after { content: ""; width: 6px; height: 6px; margin-right: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) }
.chart-table[open] summary::after { transform: rotate(225deg) }
.chart-table th, .chart-table td { padding: 5px 3px; font: 500 10px var(--mono); white-space: nowrap }
.chart-disclosure, .widget-message { font-size: 13px; color: var(--muted); padding: 7px 8px 13px }

/* Workbench */
.asset-workbench { border-top: 1px solid var(--line); padding: 12px 16px 14px; background: #fafbfc; display: grid; gap: 12px }
.workbench-panel { background: var(--white); border: 1px solid var(--gold); border-radius: 0; padding: 12px; display: grid; gap: 10px; box-shadow: 0 8px 20px rgba(158, 12, 79, 0.06) }
.workbench-head, .workbench-foot, .note-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap }
.workbench-head strong { font-size: 13px; font-weight: 600; color: var(--ink) }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 0; font-size: 11px; font-weight: 600; background: #f8edf2; color: var(--wine); border: 1px solid rgba(158, 12, 79, 0.2) }
.badge.good { background: #e8f5f0; color: var(--up); border-color: rgba(18, 112, 84, 0.2) }
.badge.warn { background: #f8f4e8; color: #7a6635; border-color: rgba(188, 173, 127, 0.45) }
.workbench-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px }
.workbench-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.field-group { display: grid; gap: 4px }
.field-group label, .note-label { font-size: 11px; font-weight: 600; color: var(--muted) }
.field-group input, .field-group select, .field-group textarea, .note-box textarea {
  width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #d7dae0; border-radius: 0;
  background: var(--white); font-size: 13px; color: var(--ink);
}
.field-group textarea, .note-box textarea { min-height: 66px; resize: vertical }
.field-group input:read-only { background: var(--paper); color: var(--muted) }
.mono-meta { font: 500 12px var(--mono); color: var(--muted) }
.note-box { display: grid; gap: 6px }
.sm-link { min-height: 32px; font-size: 12px; border: 0; background: none; padding: 0 }

/* Portfolio section with Sinpas Numbers grid aesthetic */
.portfolio-section {
  padding-block: 48px; background: var(--paper-grad);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.portfolio-head { flex-wrap: wrap; gap: 14px }
.account-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  background: var(--white); border: 1px solid var(--gold); border-radius: 0; font-size: 12px; font-weight: 500;
}
.user-chip b { color: var(--wine); font-weight: 600 }
.guest-callout { padding: 26px; border: 1px solid var(--gold) }
.guest-callout-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap }
.guest-callout h3 { font-size: 20px; font-weight: 500; margin-bottom: 6px; color: var(--wine) }
.guest-callout p { color: var(--muted); font-size: 14px; max-width: 64ch }
.guest-actions { display: flex; gap: 10px; flex-wrap: wrap }

/* Joined square-cell architectural KPI strip matching .nBoxes */
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--gold); background: rgba(255, 255, 255, 0.72); margin-bottom: 16px;
}
.kpi-card {
  padding: 20px 22px; display: grid; gap: 6px;
  border-right: 1px solid var(--line); transition: background .2s, box-shadow .2s;
}
.kpi-card:last-child { border-right: 0 }
.kpi-card:hover { background: var(--white); box-shadow: var(--shadow-wine); position: relative; z-index: 1 }
.kpi-card span { font-size: 11px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: .12em }
.kpi-card strong { font: 500 clamp(20px, 2.2vw, 28px) var(--mono); color: var(--wine) }

.portfolio-toolbar { flex-direction: row; align-items: center; justify-content: space-between; padding: 4px 12px; gap: 12px; flex-wrap: wrap }
.portfolio-tools { display: flex; gap: 8px; flex-wrap: wrap }
.rows-wrap { overflow-x: auto }
.portfolio-board td, .portfolio-board th { padding: 10px 12px }
.portfolio-board th:nth-child(2), .portfolio-board th:nth-child(3), .portfolio-board th:nth-child(4), .portfolio-board td:nth-child(2), .portfolio-board td:nth-child(3), .portfolio-board td:nth-child(4) { text-align: right }
.tx-side { display: inline-flex; padding: 2px 8px; border-radius: 0; font: 600 11px var(--mono) }
.tx-side.BUY { background: #e8f5f0; color: var(--up) }
.tx-side.SELL { background: #faedf2; color: var(--down) }
.tx-side.DEPOSIT { background: #f6efe0; color: #705825 }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 16px }
.note-card { border: 1px solid var(--line); border-radius: 0; padding: 14px; background: #fafbfc; display: grid; gap: 6px; text-align: left }
.note-card:hover { border-color: var(--wine); box-shadow: var(--shadow-wine) }
.note-card strong { font-size: 13px; color: var(--wine) }
.note-card p { font-size: 13px; color: var(--muted); white-space: pre-line }

/* Calendar, Info, FAQ, Contact */
.calendar-section { background: var(--white); padding-block: 44px; border-bottom: 1px solid var(--line) }
.calendar-host { min-height: 220px }
.calendar-frame { height: 460px }
.calendar-toolbar { flex-direction: row; align-items: center; justify-content: space-between; padding: 4px 12px; gap: 10px; flex-wrap: wrap }
.calendar-toolbar .ext-link { font-size: 12px; font-weight: 600; color: var(--wine); padding: 8px 4px; white-space: nowrap }
.cal-table td, .cal-table th { padding: 9px 12px }
.cal-table th:nth-child(5), .cal-table th:nth-child(6), .cal-table td:nth-child(5), .cal-table td:nth-child(6) { text-align: right }
.impact-pill { display: inline-flex; padding: 2px 8px; font-size: 11px; font-weight: 600; border: 1px solid transparent }
.impact-pill.High { background: #faedf2; color: var(--wine); border-color: rgba(158, 12, 79, 0.22) }
.impact-pill.Medium { background: #f8f4e8; color: #7a6635; border-color: rgba(188, 173, 127, 0.45) }
.impact-pill.Low, .impact-pill.Holiday { background: var(--paper); color: var(--muted); border-color: var(--line-soft) }
.info { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; padding-block: 52px }
.info-photo { height: 300px; border-radius: 0; overflow: hidden; border: 1px solid var(--line) }
.info img { width: 100%; height: 100%; object-fit: cover }
.info h2 { font-size: clamp(24px, 2.4vw, 34px) }
.info p { margin-top: 13px; color: var(--muted); max-width: 54ch }
.faq-section { background: var(--paper-grad); padding-block: 46px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px }
.faq details { border-bottom: 1px solid var(--line) }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 16px 25px 16px 0; position: relative; min-height: 49px }
.faq summary:after { content: '+'; position: absolute; right: 5px; color: var(--wine); font-size: 18px }
.faq details[open] summary:after { content: '−' }
.faq p { color: var(--muted); padding-bottom: 14px }

.contact-section { padding-block: 52px; background: var(--white); max-width: 100%; width: 100% }
.contact-section > * { width: min(1360px, calc(100% - 64px)); margin-inline: auto }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: start }
.contact-copy p { color: var(--muted); margin-top: 12px; max-width: 46ch }
.contact-card { padding: 24px; display: grid; gap: 14px; border: 1px solid var(--gold) }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.field-group.full { grid-column: 1 / -1 }
.contact-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.ticket-list { margin-top: 18px; display: grid; gap: 8px }
.ticket-item { background: var(--paper); border: 1px solid var(--line); padding: 10px 12px; font-size: 13px; display: grid; gap: 3px }
.ticket-item-head { display: flex; justify-content: space-between; gap: 8px; align-items: center }
.ticket-item p { color: var(--muted); font-size: 12px }

/* Crisp white Sinpas corporate footer */
footer {
  background: var(--white); color: var(--ink);
  padding-block: 44px 26px; border-top: 2px solid var(--wine); position: relative; z-index: 2;
}
.footer-main { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.15fr; gap: 24px; align-items: start }
.footer-main p { color: var(--muted); font-size: 13px; margin-top: 14px; max-width: 26ch }
.footer-main h2 { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--wine); margin: 6px 0 12px }
.footer-main div > a:not(.brand), .footer-main button { display: block; color: var(--ink); font-size: 13px; padding: 5px 0; transition: color .15s }
.footer-main button { border: 0; background: none; text-align: left }
.footer-main div > a:not(.brand):hover, .footer-main button:hover { color: var(--wine); text-decoration: underline }
.footer-legal-box {
  border-top: 1px solid var(--gold); border-left: 1px solid rgba(188, 173, 127, 0.45);
  padding-left: 20px; padding-top: 4px;
}
.footer-bottom {
  padding-top: 16px; margin-top: 28px; border-top: 1px solid var(--line-soft);
  color: var(--muted); display: flex; gap: 8px; justify-content: space-between; font-size: 12px;
}
.footer-bottom b { color: var(--wine) }

/* Partnership PDF & Corporate Info */
.partnership-section { padding-block: 52px; background: var(--paper-grad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.partnership-head { margin-bottom: 22px }
.partnership-lead { color: var(--muted); margin-top: 10px; max-width: 70ch }
.partnership-kpis { margin-bottom: 22px }
.partnership-grid { display: grid; grid-template-columns: 1.15fr 0.95fr; gap: 24px; align-items: start }
.partner-board { border: 1px solid var(--gold) }
.partner-panel { padding: 18px 20px; display: grid; gap: 14px }
.partner-panel h3 { font-size: 20px; font-weight: 500; color: var(--wine) }
.partner-panel h4 { font-size: 13px; font-weight: 600; color: var(--wine); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px }
.partner-panel p { font-size: 13px; color: var(--muted); line-height: 1.6 }
.partner-table td, .partner-table th { padding: 8px 10px; font-size: 12px }
.partner-list { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 13px; color: var(--ink); line-height: 1.5 }
.partner-kpis-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper) }
.partner-kpis-3 > div { padding: 12px; text-align: center; border-right: 1px solid var(--line); display: grid; gap: 3px }
.partner-kpis-3 > div:last-child { border-right: 0 }
.partner-kpis-3 strong { font: 600 18px var(--mono); color: var(--wine) }
.partner-kpis-3 span { font-size: 11px; color: var(--muted) }
.partner-subnote { background: var(--paper); padding: 10px 12px; border-left: 3px solid var(--gold) }
.partner-footer { padding: 0 20px 18px }
.partnership-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line-soft) }
.pdf-frame-box { border: 1px solid var(--gold); box-shadow: var(--shadow-wine) }
.pdf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; background: #f8f9fb; border-bottom: 1px solid var(--line); flex-wrap: wrap }
.pdf-toolbar strong { font: 500 12px var(--mono); color: var(--ink) }
.pdf-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.pdf-viewer-host { background: #eceef2; padding: 14px; display: grid; justify-items: center; min-height: 460px; max-height: 600px; overflow-y: auto }
.pdf-canvas { width: 100%; max-width: 520px; height: auto; display: block; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(54, 54, 54, 0.08) }

.corporate-section { padding-block: 50px; background: var(--white); border-bottom: 1px solid var(--line) }
.corporate-board { border: 1px solid var(--gold) }
.corporate-toolbar { padding: 4px 12px }
.corp-panel { padding: 20px }
.corp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.corp-card { border: 1px solid var(--line); background: var(--paper); padding: 20px; display: grid; gap: 8px; align-content: start; transition: background .18s, box-shadow .18s, border-color .18s }
.corp-card:hover { background: var(--white); border-color: var(--wine); box-shadow: var(--shadow-wine) }
.corp-card span { font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--gold) }
.corp-card h3 { font-size: 18px; font-weight: 500; color: var(--wine) }
.corp-card p { font-size: 13px; color: var(--muted); line-height: 1.6 }

/* Dialogs & Legal */
dialog { border: 1px solid var(--gold); border-radius: 0; width: min(92vw, 510px); color: var(--ink); padding: 0; background: var(--white); box-shadow: var(--shadow-wine) }
dialog::backdrop { background: rgba(54, 54, 54, 0.65) }
.dialog-content { padding: 28px; position: relative }
.dialog-content h2 { font-size: 24px; padding-right: 12px; color: var(--wine) }
.dialog-content p { color: var(--muted); margin: 12px 0 20px }
.dialog-close { position: absolute; right: 6px; top: 6px; font-size: 24px }
.legal { max-width: 800px; padding-block: 45px 65px }
.legal h1 { font-size: clamp(32px, 4vw, 48px) }
.legal h2 { font-size: 24px; margin-top: 31px }
.legal p, .legal li { margin-top: 10px; color: var(--muted) }
.legal a:not(.brand) { color: var(--wine); text-decoration: underline }

.auth-dialog-content { display: grid; gap: 14px }
.auth-dialog-content h2 { margin: 0 }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--paper); padding: 4px; border: 1px solid var(--line) }
.auth-tab { border: 0; background: transparent; min-height: 40px; font-weight: 600; font-size: 13px; color: var(--muted) }
.auth-tab[aria-pressed=true] { background: var(--white); color: var(--wine); box-shadow: 0 2px 6px rgba(158, 12, 79, 0.08) }
.auth-form { display: grid; gap: 12px }
.auth-error { margin: 0 !important; padding: 9px 12px; background: #faedf2; border-left: 3px solid var(--wine); color: var(--wine) !important; font-size: 13px; font-weight: 600 }
.full-btn { width: 100% }
.demo-box { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; font-size: 12px; color: var(--muted); text-align: center }

.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 28px)) }
.toast { background: var(--ink); color: #fff; padding: 12px 14px; border-left: 4px solid var(--gold); box-shadow: var(--shadow-wine); font-size: 13px; line-height: 1.4 }
.toast.error { border-left-color: var(--wine); background: #2d121f }

@media(max-width:1200px) {
  .ticker .change { font-size: 10px }
  .ticker .asset-icon { display: none }
  .shortcuts { flex-wrap: wrap; gap: 2px 10px }
  .nav { gap: 12px } .nav nav { gap: 12px }
}
@media(max-width:1040px) {
  .wrap, .markets > *, .contact-section > * { width: calc(100% - 40px) }
  .nav nav { display: none; position: absolute; top: 100%; left: -20px; right: -20px; background: var(--white); border-bottom: 2px solid var(--wine); padding: 10px 20px; max-height: 75vh; overflow-y: auto }
  .nav nav.open { display: grid; grid-template-columns: 1fr; gap: 2px }
  .nav nav > a, .nav-drop-btn { min-height: 44px; padding: 6px 8px; width: 100%; justify-content: space-between }
  .nav nav > a.current:after { inset: auto 8px 3px }
  .nav-drop { flex-direction: column }
  .nav-drop:hover .nav-menu { display: none }
  .nav-drop.open .nav-menu { display: flex; position: static; box-shadow: none; border: 0; border-left: 2px solid var(--wine); margin: 0 0 6px 10px; padding: 0; min-width: 0 }
  .nav-actions { margin-left: auto; order: 2 }
  .menu-toggle { display: inline-grid; order: 3 }
  .market-layout, .partnership-grid { grid-template-columns: minmax(0, 1fr) }
  .corp-grid { grid-template-columns: 1fr }
  .market-aside { grid-column: auto }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .kpi-card:nth-child(2n) { border-right: 0 }
  .kpi-card:nth-child(-n+2) { border-bottom: 1px solid var(--line) }
  .contact-grid { grid-template-columns: 1fr }
  .hero-video { transform: translateX(14%); opacity: .78 }
}
@media(max-width:760px) {
  .wrap, .markets > *, .contact-section > * { width: calc(100% - 28px) }
  .nav { min-height: 62px; gap: 6px }
  .brand-logo { height: 44px }
  .brand-divider { height: 14px; margin-bottom: 1px }
  .brand-text { font-size: 12px; letter-spacing: .14em; margin-bottom: 2px }
  .nav nav { left: -14px; right: -14px; padding: 8px 14px }
  .nav nav.open { grid-template-columns: 1fr }
  .pdf-viewer { height: 340px }
  .partnership-section, .corporate-section { padding-block: 28px }
  .watch-jump { width: 44px; padding-inline: 0 } .watch-jump span { display: none }
  .auth-trigger { padding-inline: 11px; font-size: 12px; min-height: 40px }
  .hero-inner { min-height: 310px; padding-block: 28px }
  .hero-content { background: rgba(255, 255, 255, 0.86); padding: 16px; border-left: 3px solid var(--wine) }
  .hero-video-wrap { justify-content: center }
  .hero-video { min-width: 100%; transform: none; opacity: .52 }
  .scroll-pill { display: none }
  .hero p { font-size: 13px }
  .ticker-band { padding-top: 12px }
  .ticker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px }
  .ticker button { display: grid; align-content: center; gap: 3px; min-height: 65px; padding: 6px }
  .ticker button:nth-child(n+4) { display: none }
  .ticker strong { font-size: 11px; white-space: normal }
  .ticker figcaption { font-size: 10px }
  .ticker .change { margin-inline-start: 0; line-height: 1 }
  .markets { padding-block: 18px 28px } .sec-top { align-items: center; flex-wrap: wrap; gap: 7px }
  .feed-status { font-size: 10px; padding: 4px 7px }
  .toolbar { padding-inline: 6px }
  .filters { gap: 0 }
  .filters button, .ranges button { padding-inline: 6px; font-size: 11px }
  .search input { font-size: 16px }
  th, td { padding: 3px 5px }
  th:first-child, td:first-child { padding-left: 7px }
  .asset { gap: 6px } .asset-icon { width: 25px; height: 25px; font-size: 9px }
  .asset b { font-size: 11px } .asset small { font-size: 10px }
  .board .price, .board .change { font-size: 11px }
  .chart-heading { padding-inline: 10px; flex-wrap: wrap } .chart-data { padding-inline: 8px }
  .chart-frame { height: 385px }
  .workbench-grid, .workbench-grid.two-col, .contact-fields, .kpi-grid, .partner-kpis-3 { grid-template-columns: 1fr }
  .partner-kpis-3 > div { border-right: 0; border-bottom: 1px solid var(--line) }
  .partner-kpis-3 > div:last-child { border-bottom: 0 }
  .pdf-viewer { height: 420px }
  .kpi-card { border-right: 0; border-bottom: 1px solid var(--line) }
  .kpi-card:last-child { border-bottom: 0 }
  .market-aside, .info, .faq { grid-template-columns: 1fr }
  .info, .faq, .footer-main { gap: 16px }
  .info, .calendar-section, .faq-section, .portfolio-section, .contact-section { padding-block: 28px }
  .info-photo { height: 180px }
  .footer-main { grid-template-columns: 1fr 1fr }
  .footer-legal-box { border-left: 0; padding-left: 0; border-top: 1px solid var(--gold); padding-top: 12px }
  .footer-bottom { flex-direction: column }
  .dialog-actions { flex-wrap: wrap }
  .insight { flex-wrap: wrap }
  .insight .text-link { margin-left: 0 }
  .chart-canvas { height: 230px }
  table.stack thead { display: none }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100% }
  table.stack tr { padding: 10px 12px; border-bottom: 1px solid var(--line) }
  table.stack tr:last-child { border-bottom: 0 }
  table.stack td {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 5px 0 !important; border-bottom: 0; text-align: right !important;
    min-height: 28px; white-space: normal;
  }
  table.stack td[colspan] { display: block; text-align: center !important; padding: 20px 8px !important }
  table.stack td::before {
    content: attr(data-label); font: 600 10px var(--sans); text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted); text-align: left; flex: none;
  }
  table.stack td .sm-link { min-height: 32px; text-align: right }
  table.stack td .chart-quick-actions { justify-content: flex-end }
}
@media(max-width:560px) {
  .tape-label { padding: 0 10px; font-size: 9px; letter-spacing: .08em }
  .auth-bal, .search-jump { display: none }
  .nav-actions { gap: 4px }
  .brand { gap: 6px }
  .brand-logo { height: 40px }
  .brand-divider { height: 13px; margin-bottom: 1px }
  .brand-text { font-size: 11px; letter-spacing: .12em; margin-bottom: 1px }
  .auth-trigger { padding-inline: 10px; font-size: 12px; min-height: 40px }
}
@media(max-width:365px) {
  .asset small { display: none }
  .board .asset-icon { display: none }
  .shortcuts { gap: 0 6px; padding-inline: 8px }
}
@media(max-width:340px) {
  .brand-divider, .brand-text { display: none }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important }
  .tape-viewport { overflow-x: auto }
}
