:root {
  --bg: #D8DCE0;
  --bg-2: #C6CCD2;
  --bg-3: #EEF1F3;
  --steel: #8A95A0;
  --ink: #1A1F26;
  --ink-2: #2E3640;
  --ink-3: #5A6470;
  --line: #1A1F26;
  --rule: rgba(26,31,38,.18);
  --blue: #1E4FE0;
  --blue-2: #0F2E8F;
  --blue-soft: #B8C8F0;
  --warn: #E0541E;
  --font-display: "Saira Condensed", "Barlow Condensed", "Impact", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max-width: 1440px;
  --border-radius: 0px;
  --card-radius: 0px;
  --button-radius: 0px;
  --button-bg: var(--ink);
  --button-text: var(--bg);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: .005em;
}
body {
  overflow-x: hidden;
  background-image:
    linear-gradient(rgba(26,31,38,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,31,38,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}
::selection { background: var(--blue); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.display-it { font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* ---------- fixed chrome ---------- */
.chrome { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.chrome .edge {
  position: absolute; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500;
}
.chrome .tl { top: 18px; left: 22px; }
.chrome .tr { top: 18px; right: 22px; text-align: right; }
.chrome .bl { bottom: 18px; left: 22px; }
.chrome .br { bottom: 18px; right: 22px; text-align: right; }
.led {
  display: inline-block; width: 8px; height: 8px; background: var(--blue);
  margin-right: 6px; vertical-align: 0; animation: led 1.4s steps(2) infinite;
}
@keyframes led { 50% { opacity: .25; } }
.corner { position: fixed; width: 14px; height: 14px; border: 1px solid var(--ink); z-index: 39; pointer-events: none; }
.corner.tl { top: 38px; left: 14px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 38px; right: 14px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 38px; left: 14px; border-right: 0; border-top: 0; }
.corner.br { bottom: 38px; right: 14px; border-left: 0; border-top: 0; }

/* ---------- nav ---------- */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: linear-gradient(to bottom, rgba(216,220,224,.93), rgba(216,220,224,0));
  backdrop-filter: blur(6px);
}
nav.top .mark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 700;
}
nav.top .mark .badge { background: var(--ink); color: var(--bg); padding: 5px 8px; }
nav.top ul {
  display: flex; gap: 24px; list-style: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 500;
}
nav.top ul li a {
  color: var(--ink-2); padding-bottom: 2px;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
nav.top ul li a:hover { color: var(--blue); border-color: var(--blue); }
nav.top .cta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600; padding: 8px 14px;
  background: var(--button-bg); color: var(--button-text); border-radius: var(--button-radius);
  display: inline-flex; align-items: center; gap: 8px; transition: background .2s;
}
nav.top .cta:hover { background: var(--blue); }
nav.top .cta .arrow {
  display: inline-block; width: 10px; height: 10px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg); margin-left: 2px;
}
.lang-switch { display: flex; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.lang-switch a { padding: 4px 7px; border: 1px solid transparent; color: var(--ink-3); font-weight: 600; }
.lang-switch a.active { border-color: var(--ink); color: var(--ink); }
.lang-switch a:hover { color: var(--blue); }

/* ---------- generic ---------- */
section { position: relative; padding: 0 22px; }
.container { max-width: var(--max-width); margin: 0 auto; }
.label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
}
.rule { height: 1px; background: var(--ink); opacity: .18; }
.dashed { border-top: 1px dashed rgba(26,31,38,.45); }

.dim {
  display: flex; align-items: center; gap: 0;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.dim::before, .dim::after { content: ""; display: block; width: 8px; height: 10px; border-left: 1px solid var(--ink-3); border-right: 1px solid var(--ink-3); }
.dim::before { margin-right: 8px; }
.dim::after { margin-left: 8px; }
.dim em { font-style: normal; color: var(--ink); font-weight: 600; margin-right: 8px; }
.dim hr { flex: 1; border: 0; border-top: 1px solid var(--ink-3); height: 0; margin: 0 0 0 -1px; align-self: center; }

/* ---------- HERO ---------- */
.hero { padding-top: 120px; padding-bottom: 60px; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.hero::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 96px; bottom: 120px;
  border: 1px solid var(--ink); pointer-events: none;
  background: linear-gradient(135deg, transparent 49.5%, rgba(26,31,38,.06) 49.5% 50.5%, transparent 50.5%);
}
.hero .doc-header { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; align-items: end; padding: 24px 28px; border-bottom: 1px dashed var(--ink); position: relative; z-index: 1; background: var(--bg); margin: 0 6px; }
.hero .doc-header > div span { display: block; color: var(--ink-3); margin-bottom: 8px; }
.hero .doc-header > div p { font-family: var(--font-mono); font-size: 13px; color: var(--ink); font-weight: 500; letter-spacing: .04em; }
.hero .doc-header > div p .ok { display: inline-block; padding: 2px 6px; background: var(--blue); color: #fff; font-size: 10px; letter-spacing: .14em; margin-left: 4px; vertical-align: 1px; }

.hero .stage { padding: 64px 28px 32px; position: relative; z-index: 1; margin: 0 6px; }
.hero h1 { font-weight: 800; font-size: clamp(80px, 15vw, 240px); line-height: .86; letter-spacing: -.005em; color: var(--ink); }
.hero h1 .alt { color: var(--blue); font-weight: 900; font-style: italic; }
.hero h1 .out { -webkit-text-stroke: 1.5px var(--ink); color: transparent; font-weight: 900; }
.hero h1 .sub { display: block; font-family: var(--font-body); font-size: .16em; font-weight: 400; letter-spacing: .005em; color: var(--ink-2); margin-top: 22px; line-height: 1.4; max-width: 46ch; text-transform: none; }

.hero .dim-row { margin-top: 36px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; }
.hero .dim-row .dim { min-width: 260px; }

.hero .footer-strip { border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 0; margin: 0 6px; position: relative; z-index: 1; background: var(--bg); }
.hero .footer-strip > div { padding: 20px 24px; border-left: 1px dashed var(--ink); }
.hero .footer-strip > div:first-child { border-left: 0; }
.hero .footer-strip span { display: block; color: var(--ink-3); margin-bottom: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.hero .footer-strip p { font-size: 14px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.hero .footer-strip p.big { font-family: var(--font-mono); font-size: 18px; color: var(--ink); font-weight: 600; letter-spacing: .02em; }

/* ---------- TICKER ---------- */
.ticker { padding: 0; margin-top: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--ink); color: var(--bg); }
.ticker .row { display: grid; grid-template-columns: repeat(4, 1fr); }
.ticker .cell { padding: 36px 28px; border-left: 1px solid rgba(216,220,224,.18); position: relative; }
.ticker .cell:first-child { border-left: 0; }
.ticker .num { font-family: var(--font-display); font-size: 84px; font-weight: 800; line-height: .85; letter-spacing: -.02em; }
.ticker .num sup { font-size: .28em; vertical-align: 1.6em; color: var(--blue-soft); font-weight: 500; margin-left: 6px; letter-spacing: .04em; }
.ticker .cap { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(216,220,224,.6); margin-top: 18px; font-weight: 500; }
.ticker .cell .tag { position: absolute; top: 14px; right: 18px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; color: rgba(216,220,224,.45); text-transform: uppercase; }

/* ---------- ABOUT ---------- */
.about { padding: 120px 22px; }
.about .container { display: grid; grid-template-columns: 400px 1fr; gap: 72px; align-items: start; }
.about .left { position: sticky; top: 120px; align-self: start; }
.about .spec-card { border: 1px solid var(--ink); background: var(--bg-3); }
.about .spec-card .head { padding: 14px 16px; border-bottom: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; display: flex; justify-content: space-between; font-weight: 600; }
.about .spec-card .body { padding: 18px 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; line-height: 1.5; color: var(--ink-2); }
.about .spec-card .body .row { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px dotted rgba(26,31,38,.2); }
.about .spec-card .body .row:last-child { border-bottom: 0; }
.about .spec-card .body .row span:first-child { color: var(--ink-3); text-transform: uppercase; font-size: 9px; letter-spacing: .18em; font-weight: 500; }
.about .spec-card .body .row span:last-child { color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: .02em; }

.about .portrait { margin-top: 18px; aspect-ratio: 4/5; border: 1px solid var(--ink); position: relative; background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(26,31,38,.07) 14px 15px), var(--bg-2); display: flex; align-items: flex-end; justify-content: space-between; padding: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.about .portrait::before { content: ""; position: absolute; top: 14px; left: 14px; width: 18px; height: 18px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.about .portrait::after { content: ""; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); }

.about h2 { font-size: clamp(56px, 7vw, 108px); font-weight: 800; line-height: .92; letter-spacing: -.015em; margin-bottom: 44px; max-width: none; }
.about h2 .alt { color: var(--blue); font-style: italic; font-weight: 900; }
.about .lede { font-size: 22px; line-height: 1.4; color: var(--ink); max-width: 60ch; font-weight: 500; text-wrap: pretty; margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px dashed var(--ink); }
.about .body { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.about .body p strong { color: var(--ink); font-weight: 600; }
.about .body p + p { margin-top: 14px; }

/* ---------- EXPERIENCE ---------- */
.experience { padding: 120px 22px; border-top: 1px solid var(--ink); background: var(--bg-3); background-image: linear-gradient(rgba(26,31,38,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(26,31,38,.04) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; }
.experience .head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.experience .head .label { margin-bottom: 14px; display: block; }
.experience h2 { font-size: clamp(48px, 5.4vw, 84px); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; max-width: none; }
.experience h2 .alt { color: var(--blue); font-weight: 900; font-style: italic; }
.experience .head .note { max-width: 380px; font-size: 15px; color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }

.timeline { border: 1px solid var(--ink); background: var(--bg); }
.job { display: grid; grid-template-columns: 140px 1fr 1.2fr 100px; gap: 32px; padding: 32px 28px; border-bottom: 1px dashed var(--ink); align-items: start; transition: background .25s, transform .25s; position: relative; }
.job:last-child { border-bottom: 0; }
.job:hover { background: var(--bg-3); }
.job:hover .role .org-tag { background: var(--blue); color: #fff; border-color: var(--blue); }
.job .yr { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-3); font-weight: 600; padding-top: 8px; }
.job .yr .since { display: block; color: var(--ink); font-size: 11px; margin-top: 6px; letter-spacing: .14em; }
.job .role h3 { font-size: 30px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; color: var(--ink); }
.job .role h3 .alt { color: var(--blue); font-style: italic; }
.job .role .org-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--ink); color: var(--ink); font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.job .role .org-tag::before { content: "▣"; font-size: 9px; color: var(--blue); }
.job .desc { font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.job .desc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: 13px; font-family: var(--font-mono); letter-spacing: .02em; color: var(--ink-2); }
.job .desc ul li { display: flex; gap: 10px; align-items: baseline; }
.job .desc ul li::before { content: "▸"; color: var(--blue); font-size: 12px; }
.job .index { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-3); text-align: right; padding-top: 8px; font-weight: 500; }
.job .index .dot { display: inline-block; width: 8px; height: 8px; background: var(--blue); margin-right: 6px; vertical-align: 0; }

/* ---------- CAPABILITIES ---------- */
.caps { padding: 120px 22px; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.caps::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(216,220,224,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(216,220,224,.04) 1px, transparent 1px); background-size: 48px 48px; }
.caps .head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; position: relative; z-index: 1; }
.caps h2 { font-size: clamp(48px, 5.4vw, 84px); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; max-width: none; }
.caps h2 .alt { color: var(--blue-soft); font-style: italic; font-weight: 900; }
.caps .head p { max-width: 440px; justify-self: end; font-size: 15px; color: rgba(216,220,224,.72); line-height: 1.6; text-wrap: pretty; }

.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(216,220,224,.18); position: relative; z-index: 1; border: 1px solid rgba(216,220,224,.18); }
.cap { background: var(--ink); padding: 36px 32px; min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; position: relative; transition: background .3s; }
.cap:hover { background: #11161D; }
.cap .id { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: rgba(216,220,224,.5); text-transform: uppercase; display: flex; justify-content: space-between; font-weight: 500; }
.cap .id .hex { color: var(--blue-soft); }
.cap h3 { font-size: 34px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; margin-top: 18px; }
.cap h3 .alt { color: var(--blue-soft); font-style: italic; font-weight: 900; }
.cap .body { font-size: 14px; line-height: 1.6; color: rgba(216,220,224,.72); margin-top: 22px; text-wrap: pretty; }
.cap .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.cap .tags span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; border: 1px solid rgba(216,220,224,.25); color: rgba(216,220,224,.7); font-weight: 500; }

/* ---------- WORK ---------- */
.work { padding: 120px 22px; border-top: 1px solid var(--ink); }
.work .head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.work h2 { font-size: clamp(48px, 5.4vw, 84px); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; max-width: none; }
.work h2 .alt { color: var(--blue); font-style: italic; font-weight: 900; }
.work .legend { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: right; line-height: 1.85; font-weight: 500; }
.case { display: grid; grid-template-columns: 1fr 420px; gap: 48px; padding: 36px 28px; border: 1px solid var(--ink); background: var(--bg); margin-bottom: 18px; align-items: start; position: relative; }
.case::before { content: ""; position: absolute; top: -1px; left: -1px; width: 18px; height: 18px; border-top: 2px solid var(--blue); border-left: 2px solid var(--blue); }
.case .left .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--bg); background: var(--blue); padding: 5px 10px; display: inline-block; font-weight: 600; }
.case .left h3 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -.015em; margin-top: 18px; max-width: 16ch; color: var(--ink); }
.case .left h3 .alt { color: var(--blue); font-style: italic; font-weight: 900; }
.case .left .meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px dashed var(--ink); }
.case .left .meta > div { display: flex; flex-direction: column; gap: 8px; }
.case .left .meta span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.case .left .meta b { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: -.005em; text-transform: uppercase; }
.case .right { font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.case .right p + p { margin-top: 14px; }
.case .right .outcome { margin-top: 24px; padding: 16px; background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.7; font-weight: 500; position: relative; }
.case .right .outcome::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .2em; color: var(--blue-soft); margin-bottom: 8px; font-weight: 700; }
.case .right .outcome b { color: var(--blue-soft); font-weight: 700; }

/* ---------- METHOD ---------- */
.method { padding: 120px 22px; border-top: 1px solid var(--ink); background: var(--bg-3); }
.method .container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.method h2 { font-size: clamp(48px, 5vw, 76px); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; max-width: none; }
.method h2 .alt { color: var(--blue); font-weight: 900; font-style: italic; }
.method .intro { margin-top: 24px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.method .stamp-mini { margin-top: 32px; padding: 14px; border: 1px solid var(--ink); background: var(--bg); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-2); line-height: 1.7; white-space: pre-wrap; }
.method .stamp-mini b { color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; display: block; margin-bottom: 8px; }
.steps { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--bg); }
.step { display: grid; grid-template-columns: 140px 1fr 60px; gap: 32px; padding: 28px; border-bottom: 1px dashed var(--ink); align-items: start; transition: background .25s; }
.step:last-child { border-bottom: 0; }
.step:hover { background: var(--bg-3); }
.step .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--blue); font-weight: 700; padding-top: 8px; }
.step .n .ph { display: block; color: var(--ink-3); font-size: 10px; margin-top: 4px; }
.step h4 { font-size: 28px; font-weight: 700; letter-spacing: -.005em; line-height: 1.1; }
.step h4 .alt { color: var(--blue); font-style: italic; }
.step p { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; max-width: 60ch; }
.step .arrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); text-align: right; padding-top: 12px; }
.step .arrow b { display: block; width: 28px; height: 1px; background: var(--ink); margin-left: auto; margin-top: 6px; position: relative; }
.step .arrow b::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }

/* ---------- QUOTE ---------- */
.quote { padding: 140px 22px; border-top: 1px solid var(--ink); position: relative; overflow: hidden; }
.quote::before { content: "01"; position: absolute; top: 40px; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-size: 480px; font-weight: 900; color: rgba(26,31,38,.06); line-height: .7; pointer-events: none; letter-spacing: -.02em; }
.quote .container { max-width: 1100px; position: relative; z-index: 1; }
.quote .label { margin-bottom: 32px; }
.quote blockquote { font-size: clamp(34px, 4.2vw, 62px); line-height: 1.1; letter-spacing: -.005em; font-weight: 600; text-wrap: balance; color: var(--ink); font-family: var(--font-display); text-transform: uppercase; }
.quote blockquote .alt { color: var(--blue); font-style: italic; font-weight: 800; }
.quote .attr { margin-top: 40px; padding-top: 24px; border-top: 1px dashed var(--ink); display: flex; align-items: center; gap: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.quote .attr .swatch { width: 42px; height: 42px; border: 1px solid var(--ink); background: repeating-linear-gradient(45deg, var(--steel) 0 4px, var(--ink-3) 4px 8px); }
.quote .attr b { color: var(--ink); font-weight: 700; }

/* ---------- CONTACT ---------- */
.contact { background: var(--ink); color: var(--bg); padding: 120px 22px 40px; position: relative; overflow: hidden; border-top: 1px solid var(--ink); }
.contact::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(216,220,224,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(216,220,224,.04) 1px, transparent 1px); background-size: 48px 48px; }
.contact .container { position: relative; z-index: 1; }
.contact .label { color: rgba(216,220,224,.55); margin-bottom: 32px; display: block; }
.contact h2 { font-size: clamp(80px, 16vw, 280px); font-weight: 800; line-height: .82; letter-spacing: -.01em; }
.contact h2 .alt { color: var(--blue-soft); font-style: italic; font-weight: 900; }
.contact h2 .out { -webkit-text-stroke: 1.5px var(--bg); color: transparent; font-weight: 900; }
.contact .row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; margin-top: 64px; flex-wrap: wrap; }
.contact .links { display: flex; flex-direction: column; gap: 14px; }
.contact .links a { font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -.005em; color: var(--bg); display: flex; align-items: center; gap: 18px; padding: 10px 0; border-bottom: 1px dashed rgba(216,220,224,.22); transition: color .2s, padding-left .3s; text-transform: uppercase; }
.contact .links a:hover { color: var(--blue-soft); padding-left: 14px; }
.contact .links a .arrow { display: inline-block; width: 18px; height: 18px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: auto; }
.contact .col { display: flex; flex-direction: column; gap: 24px; align-self: start; }
.contact .col .item { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(216,220,224,.55); font-weight: 500; line-height: 1.4; }
.contact .col .item b { display: block; color: var(--bg); font-weight: 700; font-size: 18px; font-family: var(--font-display); margin-top: 6px; text-transform: uppercase; letter-spacing: .01em; }
.contact .col .pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--blue); color: #fff; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; font-weight: 600; align-self: flex-start; }
.contact .col .pill::before { content: ""; width: 8px; height: 8px; background: #fff; animation: led 1.4s steps(2) infinite; }

footer.site { margin-top: 120px; border-top: 1px solid rgba(216,220,224,.22); padding-top: 24px; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 18px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(216,220,224,.5); }
footer.site span b { color: var(--bg); font-weight: 600; display: block; margin-bottom: 4px; letter-spacing: .18em; }

.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; }

/* visible focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}

/* responsive — tablet */
@media (max-width: 1080px) {
  .hero .doc-header { grid-template-columns: 1fr 1fr; }
  .hero .footer-strip { grid-template-columns: 1fr 1fr; }
  .hero .footer-strip > div:nth-child(3) { border-left: 0; border-top: 1px dashed var(--ink); }
  .hero .footer-strip > div:nth-child(4) { border-top: 1px dashed var(--ink); }
  .about .container { grid-template-columns: 1fr; }
  .about .left { position: static; }
  .about .body { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case .left .meta { grid-template-columns: repeat(2, 1fr); }
  .method .container { grid-template-columns: 1fr; }
  .ticker .row { grid-template-columns: 1fr 1fr; }
  .ticker .cell:nth-child(3), .ticker .cell:nth-child(4) { border-top: 1px solid rgba(216,220,224,.18); }
  .job { grid-template-columns: 90px 1fr; }
  .job .desc, .job .index { grid-column: 1 / -1; }
  nav.top ul { display: none; }
  .contact .row { grid-template-columns: 1fr; }
  footer.site { grid-template-columns: 1fr 1fr; }
}

/* responsive — phone */
@media (max-width: 720px) {
  body { background-size: 32px 32px; }
  section { padding: 0 14px; }
  .container { padding: 0; }
  .corner { display: none; }
  .chrome .edge { font-size: 9px; letter-spacing: .1em; }
  .chrome .br, .chrome .bl { display: none; }
  .chrome .tl, .chrome .tr { top: 10px; }
  .chrome .tl { left: 14px; }
  .chrome .tr { right: 14px; }

  nav.top { padding: 8px 14px; gap: 10px; }
  nav.top .mark { font-size: 9px; gap: 6px; }
  nav.top .mark .badge { padding: 4px 6px; font-size: 9px; }
  nav.top .mark .full { display: none; }
  nav.top .cta { font-size: 10px; padding: 7px 10px; letter-spacing: .1em; }

  .hero { padding-top: 78px; padding-bottom: 30px; min-height: auto; }
  .hero::before { display: none; }
  .hero .doc-header { margin: 0; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; border: 1px solid var(--ink); }
  .hero .doc-header > div p { font-size: 11px; }
  .hero .doc-header > div p .ok { display: inline-block; padding: 1px 5px; font-size: 9px; margin-left: 0; margin-top: 4px; }
  .hero .stage { padding: 36px 0 24px; margin: 0; }
  .hero h1 { font-size: clamp(56px, 17.5vw, 110px); line-height: .9; }
  .hero h1 .sub { font-size: 15px; margin-top: 16px; max-width: none; }
  .hero .dim-row { display: none; }
  .hero .footer-strip { margin: 0; grid-template-columns: 1fr; border: 1px solid var(--ink); }
  .hero .footer-strip > div { padding: 14px 16px; border-left: 0; border-top: 1px dashed var(--ink); }
  .hero .footer-strip > div:first-child { border-top: 0; }
  .hero .footer-strip p.big { font-size: 14px; }

  .ticker .row { grid-template-columns: 1fr; }
  .ticker .cell { padding: 24px 18px; border-left: 0; border-top: 1px solid rgba(216,220,224,.18); }
  .ticker .cell:first-child { border-top: 0; }
  .ticker .num { font-size: 64px; }
  .ticker .cap { font-size: 9px; }

  .about { padding: 64px 14px; }
  .about .container { gap: 32px; }
  .about h2 { font-size: 44px; margin-bottom: 24px; }
  .about .lede { font-size: 18px; padding-bottom: 24px; margin-bottom: 24px; }
  .about .body { font-size: 15px; gap: 18px; }
  .about .spec-card .head { font-size: 9px; }
  .about .spec-card .body { font-size: 10px; line-height: 1.7; }
  .about .portrait { aspect-ratio: 1/1; margin-top: 14px; }

  .experience { padding: 64px 14px; background-size: 32px 32px; }
  .experience .head { margin-bottom: 28px; }
  .experience h2 { font-size: 42px; }
  .experience .head .note { font-size: 14px; }
  .job { padding: 22px 16px; grid-template-columns: 1fr; gap: 12px; }
  .job .yr { padding-top: 0; display: flex; gap: 10px; align-items: center; font-size: 11px; }
  .job .yr .since { display: inline; margin-top: 0; font-size: 11px; }
  .job .role h3 { font-size: 24px; }
  .job .role .org-tag { font-size: 9px; padding: 5px 8px; }
  .job .desc { font-size: 14px; }
  .job .desc ul { font-size: 12px; }
  .job .index { display: none; }

  .caps { padding: 64px 14px; }
  .caps .head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .caps .head p { justify-self: start; }
  .caps h2 { font-size: 42px; }
  .cap { padding: 24px 18px; min-height: auto; }
  .cap h3 { font-size: 28px; }
  .cap .body { font-size: 13px; }

  .work { padding: 64px 14px; }
  .work .head { margin-bottom: 28px; }
  .work h2 { font-size: 42px; }
  .work .legend { text-align: left; }
  .case { padding: 22px 18px; gap: 22px; margin-bottom: 14px; }
  .case .left h3 { font-size: 26px; margin-top: 14px; }
  .case .left .meta { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; padding-top: 18px; }
  .case .left .meta b { font-size: 16px; }
  .case .left .tag { font-size: 9px; }
  .case .right { font-size: 14px; }

  .method { padding: 64px 14px; }
  .method h2 { font-size: 42px; }
  .method .intro { font-size: 15px; }
  .step { grid-template-columns: 90px 1fr; gap: 14px; padding: 18px 16px; }
  .step .arrow { display: none; }
  .step .n { font-size: 10px; padding-top: 4px; }
  .step h4 { font-size: 22px; }
  .step p { font-size: 13px; }

  .quote { padding: 64px 14px; }
  .quote::before { font-size: 240px; top: 20px; }
  .quote blockquote { font-size: 28px; line-height: 1.1; }
  .quote .attr { font-size: 10px; flex-wrap: wrap; }

  .contact { padding: 64px 14px 24px; }
  .contact h2 { font-size: 64px; line-height: .86; }
  .contact .row { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
  .contact .links a { font-size: 22px; gap: 10px; }
  .contact .links a .arrow { width: 14px; height: 14px; }
  .contact .col .item b { font-size: 16px; }
  footer.site { margin-top: 64px; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 9px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 54px; }
  .ticker .num { font-size: 54px; }
  .about h2, .experience h2, .caps h2, .work h2, .method h2 { font-size: 36px; }
  .contact h2 { font-size: 52px; }
  .case .left .meta { grid-template-columns: 1fr 1fr; }
}

/* ---------- ADMIN ---------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--bg-3); max-width: 1440px; margin: 0 auto; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.admin-shell aside { background: var(--ink); color: var(--bg); padding: 24px 18px; display: flex; flex-direction: column; gap: 8px; }
.admin-shell aside .brand { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; padding: 4px 0 22px; }
.admin-shell aside a { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 10px 12px; color: rgba(216,220,224,.7); border-left: 2px solid transparent; }
.admin-shell aside a:hover, .admin-shell aside a.active { color: var(--bg); border-left-color: var(--blue); background: rgba(216,220,224,.05); }
.admin-shell aside .spacer { flex: 1; }
.admin-shell aside form button { width: 100%; padding: 10px; background: transparent; color: rgba(216,220,224,.6); border: 1px solid rgba(216,220,224,.2); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.admin-shell main { padding: 32px 40px; }
.admin-shell main h1 { font-size: 36px; margin-bottom: 24px; }
.admin-shell .card { background: var(--bg); border: 1px solid var(--ink); padding: 24px; margin-bottom: 18px; }
.admin-shell .card h2 { font-size: 18px; margin-bottom: 16px; }
.admin-shell label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; margin-top: 12px; font-weight: 600; }
.admin-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.admin-shell select,
.admin-shell textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--ink); background: var(--bg); font-family: var(--font-body); font-size: 14px; color: var(--ink); box-sizing: border-box;
}
.admin-shell input[type="color"] { padding: 4px; height: 38px; cursor: pointer; }
.admin-shell textarea { font-family: var(--font-mono); font-size: 12px; min-height: 100px; }
.admin-shell .btn { padding: 10px 18px; background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border: 0; cursor: pointer; font-weight: 700; }
.admin-shell .btn:hover { background: var(--blue); }
.admin-shell .btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.admin-shell .btn.danger { background: var(--warn); }
.admin-shell table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-shell th, .admin-shell td { padding: 10px; text-align: left; border-bottom: 1px dashed var(--ink-3); }
.admin-shell th { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.admin-shell .row-flex { display: flex; gap: 12px; align-items: center; }
.admin-shell .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-shell .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.admin-shell .flash { padding: 10px 14px; background: var(--blue); color: #fff; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.admin-shell .flash.error { background: var(--warn); }
.admin-shell .badge { display: inline-block; padding: 2px 8px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.admin-shell .badge.pending { background: var(--steel); color: var(--ink); }
.admin-shell .badge.confirmed { background: var(--blue); color: #fff; }
.admin-shell .badge.cancelled, .admin-shell .badge.rejected { background: var(--warn); color: #fff; }

/* ---------- BOOKING (public) ---------- */
.booking-page { padding: 140px 22px 80px; min-height: 100vh; }
.booking-page .container { max-width: 880px; margin: 0 auto; }
.booking-page h1 { font-size: clamp(48px, 6vw, 84px); font-weight: 800; line-height: .92; letter-spacing: -.01em; margin-bottom: 14px; }
.booking-page h1 .alt { color: var(--blue); font-style: italic; }
.booking-page .intro { font-size: 18px; color: var(--ink-2); margin-bottom: 36px; max-width: 50ch; }
.booking-page .card { background: var(--bg); border: 1px solid var(--ink); padding: 28px; margin-bottom: 18px; }
.booking-page .card h2 { font-size: 22px; margin-bottom: 14px; }
.booking-page label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; margin-top: 14px; font-weight: 600; }
.booking-page input, .booking-page select, .booking-page textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--ink); background: var(--bg); font-family: var(--font-body); font-size: 15px; color: var(--ink); }
.booking-page textarea { min-height: 100px; }
.booking-page .slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 8px; }
.booking-page .slots button { padding: 10px 8px; background: var(--bg); border: 1px solid var(--ink); font-family: var(--font-mono); font-size: 13px; cursor: pointer; transition: background .15s; }
.booking-page .slots button:hover { background: var(--bg-2); }
.booking-page .slots button[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.booking-page .slots button:disabled { opacity: .35; cursor: not-allowed; }
.booking-page .empty { padding: 20px; text-align: center; color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; }
.booking-page .submit { margin-top: 22px; padding: 14px 24px; background: var(--button-bg); color: var(--button-text); font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border: 0; cursor: pointer; font-weight: 700; }
.booking-page .submit:hover { background: var(--blue); }
.booking-page .submit:disabled { opacity: .6; cursor: not-allowed; }
.booking-page .success, .booking-page .error { padding: 14px 18px; margin-top: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }
.booking-page .success { background: var(--blue); color: #fff; }
.booking-page .error { background: var(--warn); color: #fff; }

/* ---------- ADMIN CONTENT EDITOR ---------- */
.content-tabs {
  display: flex; gap: 0; margin-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.content-tab {
  padding: 10px 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700;
  color: var(--ink-3); text-decoration: none;
  border: 1px solid var(--ink); border-bottom: 0; background: transparent;
  margin-right: 4px; margin-bottom: -1px;
}
.content-tab.active { background: var(--ink); color: var(--bg); }

.content-group {
  border: 1px solid var(--ink); background: var(--bg);
  margin-bottom: 12px;
}
.content-group > summary {
  list-style: none; cursor: pointer; user-select: none;
}
.content-group > summary::-webkit-details-marker { display: none; }
.content-group__head {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  background: var(--ink); color: var(--bg);
  transition: background .15s;
}
.content-group > summary:hover .content-group__head,
.content-group > summary:focus-visible .content-group__head { background: var(--blue); }
.content-group__name {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 700; flex-shrink: 0;
}
.content-group__meta {
  flex: 1; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  color: rgba(216,220,224,.7);
}
.content-group__meta strong { color: var(--bg); font-weight: 700; }
.content-group__chev { font-family: var(--font-mono); font-size: 14px; transition: transform .2s ease; }
.content-group[open] .content-group__chev { transform: rotate(180deg); }
.content-group__body { padding: 6px 18px 18px; }

.content-field {
  border-bottom: 1px dashed var(--rule);
  padding: 14px 0;
}
.content-field:last-child { border-bottom: 0; }
.content-field.is-overridden { background: linear-gradient(90deg, color-mix(in srgb, var(--blue-soft) 35%, transparent), transparent 80px); padding-left: 12px; margin-left: -12px; }
.content-field__row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.content-field__path {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--ink-3); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0;
}
.content-field__badge {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 700;
  background: var(--blue); color: #fff; padding: 2px 8px;
}
.content-field__toolbar {
  display: flex; gap: 4px; align-items: center;
  border: 1px solid var(--ink); border-bottom: 0;
  background: var(--bg-3);
  padding: 6px 8px;
}
.content-field__toolbar button {
  min-width: 32px; height: 28px; padding: 0 8px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--ink);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  cursor: pointer; line-height: 1;
}
.content-field__toolbar button:hover { background: var(--ink); color: var(--bg); }
.content-field__toolbar button.is-alt { color: var(--blue); font-style: italic; }
.content-field__toolbar button.is-alt:hover { background: var(--blue); color: #fff; }
.content-field__toolbar [data-reset] { margin-left: auto; }
.content-field__toolbar .spacer { flex: 1; }
.content-field [data-input] {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--ink); border-top: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 14px; line-height: 1.5;
  box-sizing: border-box; resize: vertical;
}
.content-field__footer {
  display: flex; align-items: center; gap: 14px;
  margin-top: 8px;
}
.content-field__default {
  flex: 1; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- ADMIN BLOCK-RANGE PICKER ---------- */
.bk-popup-wrap { position: relative; margin-bottom: 14px; }
.bk-range-trigger {
  display: flex; width: 100%; align-items: stretch; gap: 0;
  border: 1px solid var(--ink); background: var(--bg);
  padding: 0; margin: 0; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
}
.bk-range-trigger:hover { background: var(--bg-2); }
.bk-range-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.bk-icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; background: var(--ink); color: var(--bg);
  flex-shrink: 0;
}
.bk-chevron {
  display: flex; align-items: center; justify-content: center;
  width: 40px; color: var(--ink-3); font-size: 14px;
  border-left: 1px solid var(--rule); flex-shrink: 0;
}
.bk-range-cell {
  flex: 1; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.bk-range-cell .lbl {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 700;
}
.bk-range-cell .val {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--ink); letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bk-range-sep {
  display: flex; align-items: center; justify-content: center;
  padding: 0 14px; font-family: var(--font-mono); font-size: 16px;
  color: var(--ink-3); background: var(--bg-3); border-left: 1px solid var(--ink); border-right: 1px solid var(--ink);
  flex-shrink: 0;
}

/* Popup */
.bk-popup {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
  width: 360px; max-width: calc(100vw - 32px);
  background: var(--bg); border: 1px solid var(--ink);
  box-shadow: 0 12px 32px rgba(26,31,38,.22);
  padding: 12px;
}
.bk-popup[hidden] { display: none; }
.bk-popup-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 0 0 10px 0; margin-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 700;
}
.bk-popup-actions { display: flex; gap: 6px; }
.bk-popup-btn {
  padding: 6px 12px; border: 1px solid var(--ink); background: transparent;
  color: var(--ink); font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  cursor: pointer;
}
.bk-popup-btn:hover { background: var(--bg-2); }
.bk-popup-btn.primary { background: var(--ink); color: var(--bg); }
.bk-popup-btn.primary:hover { background: var(--blue); border-color: var(--blue); }
.mono-lbl {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 600; margin-bottom: 6px;
}
/* admin calendar — clickable future cells (no green dot, neutral hover) */
.cal--admin button.cal-day.selectable { background: var(--bg); cursor: pointer; }
.cal--admin button.cal-day.selectable:hover { background: var(--bg-2); }
.cal--admin button.cal-day.selectable::before { display: none; }   /* no availability dot needed here */
.cal--admin .cal-day.in-range {
  background: #797d83;        /* fallback for browsers without color-mix() */
  background: color-mix(in srgb, var(--bg) 50%, var(--ink) 50%);
}
.cal--admin .cal-day.in-range .d,
.cal--admin .cal-day.in-range .dn,
.cal--admin .cal-day.in-range .dy { color: var(--ink); opacity: 1; }
.cal--admin .cal-day.range-start,
.cal--admin .cal-day.range-end {
  background: var(--ink) !important;
  outline: 2px solid var(--blue); outline-offset: -2px;
}
.cal--admin .cal-day.range-start .d,
.cal--admin .cal-day.range-end .d,
.cal--admin .cal-day.range-start .dn,
.cal--admin .cal-day.range-end .dn,
.cal--admin .cal-day.range-start .dy,
.cal--admin .cal-day.range-end .dy { color: var(--bg) !important; opacity: 1 !important; }
/* Hover preview — same midpoint tint, applied as the pointer moves */
.cal--admin .cal-day.preview-range {
  background: #797d83;
  background: color-mix(in srgb, var(--bg) 50%, var(--ink) 50%);
}
.cal--admin .cal-day.preview-range .d,
.cal--admin .cal-day.preview-range .dn,
.cal--admin .cal-day.preview-range .dy { color: var(--ink); opacity: 1; }

/* Mini calendar variant — used inside the popup */
.cal--mini { margin-top: 0; }
.cal--mini .cal-head { padding: 8px 12px; }
.cal--mini .cal-head h3 { font-size: 13px; letter-spacing: .02em; }
.cal--mini .cal-head .nav button { width: 26px; height: 26px; font-size: 14px; }
.cal--mini .cal-dow,
.cal--mini .cal-grid { grid-template-columns: 28px repeat(7, 1fr) !important; }
.cal--mini .cal-dow { display: grid !important; }
.cal--mini .cal-dow .cal-wk-head { display: flex !important; font-size: 8px; padding: 4px 0; }
.cal--mini .cal-dow span { padding: 4px 0; font-size: 10px; letter-spacing: .1em; }
.cal--mini .cal-wk { font-size: 9px; letter-spacing: 0; }
.cal--mini .cal-day {
  aspect-ratio: 1 / 1 !important;
  min-height: 34px !important;
  padding: 2px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: auto !important;
  min-width: 0 !important;
}
.cal--mini .cal-day .dn,
.cal--mini .cal-day .dy,
.cal--mini .cal-day .m { display: none; }
.cal--mini .cal-day .d { font-size: 13px; }
.cal--mini .cal-day.blocked .d,
.cal--mini .cal-day.unavailable .d { align-self: center; }
.cal--mini .cal-day::before { top: 2px !important; right: 2px !important; width: 4px !important; height: 4px !important; }
.cal--mini .cal-grid > * { min-width: 0; }

@media (max-width: 640px) {
  .bk-popup { left: -8px; right: -8px; width: auto; max-width: none; }
  .bk-icon { width: 44px; }
  .bk-chevron { width: 30px; }
  .bk-range-cell { padding: 10px 12px; }
  .bk-range-cell .val { font-size: 14px; }
}

/* ---------- AVAILABILITY EDITOR ---------- */
.weekday-picker {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.weekday-picker label {
  position: relative;
  display: inline-flex !important;
  align-items: center; justify-content: center;
  width: 56px; height: 40px;
  border: 1px solid var(--ink);
  background: var(--bg); color: var(--ink-3);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700;
  cursor: pointer; user-select: none;
  margin: 0; padding: 0;
  text-transform: uppercase;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.weekday-picker input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; margin: 0; appearance: none;
}
.weekday-picker label > span {
  pointer-events: none;
  width: 100%; height: 100%;
  display: inline-flex; align-items: center; justify-content: center;
}
.weekday-picker label:hover {
  border-color: var(--blue);
  color: var(--ink);
}
.weekday-picker input:checked ~ span,
.weekday-picker label:has(input:checked) > span {
  background: var(--ink); color: var(--bg);
}
.weekday-picker label:has(input:checked) {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 1px var(--blue);
}
.weekday-picker input:focus-visible ~ span,
.weekday-picker label:has(input:focus-visible) {
  outline: 2px solid var(--blue); outline-offset: 2px;
}

.windows-editor { margin-top: 6px; border: 1px solid var(--ink); background: var(--bg); }
.windows-editor .row {
  display: grid; grid-template-columns: 60px 1fr 24px 1fr 60px; gap: 10px;
  align-items: center; padding: 10px 14px; border-bottom: 1px dashed var(--rule);
}
.windows-editor .row:last-of-type { border-bottom: 0; }
.windows-editor .row span.lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.windows-editor .row span.sep { text-align: center; font-family: var(--font-mono); color: var(--ink-3); }
.windows-editor input[type="time"] { padding: 8px 10px; }
.windows-editor button.remove {
  width: 100%; padding: 8px 0;
  background: transparent;
  border: 1px solid var(--ink-3);
  color: var(--ink-3);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; cursor: pointer; font-weight: 700;
  transition: background .15s, color .15s, border-color .15s;
}
.windows-editor button.remove:hover { background: var(--warn); color: #fff; border-color: var(--warn); }
.windows-editor .add-row { padding: 12px 14px; text-align: right; background: var(--bg-3); border-top: 1px dashed var(--rule); }
.windows-editor button.add {
  padding: 10px 18px;
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; cursor: pointer; font-weight: 700;
  transition: background .15s, color .15s;
}
.windows-editor button.add:hover { background: var(--ink); color: var(--bg); }
.windows-editor .empty { padding: 20px; text-align: center; color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; }

/* ---------- CALENDAR PREVIEW ---------- */
.cal {
  border: 1px solid var(--ink); background: var(--bg); margin-top: 18px;
}
.cal .cal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--ink); background: var(--ink); color: var(--bg);
}
.cal .cal-head h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin: 0;
}
.cal .cal-head .nav { display: flex; gap: 8px; }
.cal .cal-head .nav a,
.cal .cal-head .nav button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 1px solid rgba(216,220,224,.3);
  color: var(--bg); font-family: var(--font-mono); font-size: 14px; line-height: 1;
  background: transparent; cursor: pointer;
}
.cal .cal-head .nav a:hover,
.cal .cal-head .nav button:hover { background: var(--blue); border-color: var(--blue); }
/* button-based clickable day cells (public booking widget) */
.cal button.cal-day {
  border: 0;
  border-right: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule);
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 10px; position: relative; min-height: 64px;
  background: transparent; font: inherit; text-align: left;
  cursor: pointer; width: 100%; aspect-ratio: 1.4 / 1;
}
.cal button.cal-day:nth-child(7n) { border-right: 0; }
.cal button.cal-day.available { background: var(--bg); }
.cal button.cal-day.available:hover { background: var(--bg-2); }
.cal button.cal-day.available::before {
  content: ""; position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; background: var(--avail, #22DD3F);
}
/* selected date */
.cal .cal-day.selected { background: var(--ink) !important; outline: 2px solid var(--blue); outline-offset: -2px; }
.cal .cal-day.selected .d,
.cal .cal-day.selected .m,
.cal .cal-day.selected .dn,
.cal .cal-day.selected .dy { color: var(--bg) !important; opacity: 1 !important; }
.cal .cal-day.selected::before { background: var(--bg) !important; }
.cal .cal-dow {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--rule); background: var(--bg-3);
}
.cal .cal-dow span {
  padding: 8px 0; text-align: center; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600;
}
.cal .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal .cal-day {
  aspect-ratio: 1.4 / 1; border-right: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule);
  padding: 8px 10px; display: flex; flex-direction: column; gap: 4px;
  position: relative; min-height: 64px;
}
.cal .cal-day:nth-child(7n) { border-right: 0; }
.cal .cal-day .d {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  line-height: 1; letter-spacing: -.01em; color: var(--ink);
}
.cal .cal-day .m {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-top: auto;
}
.cal .cal-day.off { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(26,31,38,.04) 6px 7px); }
.cal .cal-day.off .d, .cal .cal-day.off .m { color: var(--ink-3); opacity: .35; }
.cal .cal-day.past .d, .cal .cal-day.past .m { color: var(--ink-3); opacity: .25; }
.cal .cal-day.unavailable .d { color: var(--ink-3); opacity: .55; }
.cal .cal-day.unavailable .m { color: var(--ink-3); opacity: .5; }
/* hand-drawn double-diagonal X through the date number only */
.cal .cal-day.blocked .d,
.cal .cal-day.unavailable .d {
  position: relative;
  display: inline-block;
  align-self: flex-start;   /* shrink-to-fit inside the flex-column cell */
  width: max-content;
}
.cal .cal-day.blocked .d::after,
.cal .cal-day.unavailable .d::after {
  content: "";
  position: absolute;
  left: -5px; right: -5px; top: -3px; bottom: -3px;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M5 8 C28 30 62 70 95 92' fill='none' stroke='%231a1f26' stroke-width='7' stroke-linecap='round' opacity='0.85'/><path d='M9 5 C32 27 64 73 92 96' fill='none' stroke='%231a1f26' stroke-width='2.5' stroke-linecap='round' opacity='0.5'/><path d='M5 92 C28 70 62 30 95 8' fill='none' stroke='%231a1f26' stroke-width='7' stroke-linecap='round' opacity='0.85'/><path d='M9 95 C32 73 64 27 92 4' fill='none' stroke='%231a1f26' stroke-width='2.5' stroke-linecap='round' opacity='0.5'/></svg>") no-repeat center / 100% 100%;
}
.cal .cal-day.unavailable .d::after { opacity: 0.6; }
.cal .cal-day.selected .d::after { display: none; }
/* red dot for cells in the bookable future that have no slots left */
.cal .cal-day.unavailable::before,
.cal .cal-day.blocked::before {
  content: ""; position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; background: #E02222;
}
.cal .cal-day.past::before { display: none; }
.cal .cal-day.selected::before { background: var(--bg) !important; }
.cal .cal-day.available { background: var(--bg); }
.cal .cal-day.available .d { color: var(--ink); }
.cal .cal-day.available::before {
  content: ""; position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; background: var(--avail, #22DD3F);
}
.cal .cal-day.today { outline: 2px solid var(--blue); outline-offset: -2px; }
.cal .cal-legend {
  display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 18px;
  border-top: 1px solid var(--rule); background: var(--bg-3);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 600;
}
.cal .cal-legend .swatch { display: inline-flex; align-items: center; gap: 8px; }
.cal .cal-legend .swatch::before { content: ""; width: 12px; height: 12px; border: 1px solid var(--ink); display: inline-block; }
.cal .cal-legend .swatch.available::before { background: var(--bg); position: relative; }
.cal .cal-legend .swatch.available .dot { width: 6px; height: 6px; background: var(--avail, #22DD3F); margin-left: -10px; margin-right: 4px; display: inline-block; }
.cal .cal-legend .swatch.unavailable::before { background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(26,31,38,.2) 3px 4px); }
.cal .cal-legend .swatch.blocked::before { background: var(--bg); position: relative; }
.cal .cal-legend .swatch.blocked .x { margin-left: -14px; margin-right: 6px; text-decoration: line-through; color: var(--ink); }

/* day name label (locale-aware, shown in each cell) */
.cal .cal-day .dn {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); line-height: 1;
}
/* day-of-year label (lower left) */
.cal .cal-day .dy {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em;
  color: var(--ink-3); margin-top: auto; opacity: .6; line-height: 1;
}
/* weekend cells */
.cal .cal-day.wknd,
.cal .cal-day.wknd.available,
.cal button.cal-day.wknd,
.cal button.cal-day.wknd.available { background: #959a9f; }
.cal button.cal-day.wknd:hover,
.cal button.cal-day.wknd.available:hover { filter: brightness(.94); }
.cal .cal-day.wknd .d,
.cal .cal-day.wknd .dn,
.cal .cal-day.wknd .dy { color: var(--ink); }
.cal .cal-day.wknd.past .d,
.cal .cal-day.wknd.past .dn,
.cal .cal-day.wknd.past .dy { opacity: .3; }
.cal .cal-day.wknd.available::before,
.cal button.cal-day.wknd.available::before { background: var(--avail, #22DD3F); }

@media (prefers-reduced-motion: reduce) {
  .cal { transition: none !important; }
}

/* ----- booking calendar: 8-col (week number + Mon–Sun) ----- */
.cal--booking .cal-dow,
.cal--booking .cal-grid { grid-template-columns: 36px repeat(7, 1fr); }
.cal--booking .cal-dow { display: none; }   /* desktop hides single-letter header; cells show full name */
.cal--booking .cal-dow .cal-wk-head {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  background: var(--bg-3); border-right: 1px solid var(--ink-3); padding: 8px 0;
}
.cal--booking .cal-wk {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; color: var(--ink-3);
  background: var(--bg-3); border-right: 1px solid var(--ink-3);
  border-bottom: 1px dashed var(--rule);
}
/* Fix nth-child Sunday-border for 8-column grid (wk cell is child 1 of 8) */
.cal--booking .cal-grid .cal-day:nth-child(7n),
.cal--booking .cal-grid button.cal-day:nth-child(7n) { border-right: 1px dashed var(--rule); }
.cal--booking .cal-grid .cal-day:nth-child(8n),
.cal--booking .cal-grid button.cal-day:nth-child(8n) { border-right: 0; }

/* ===== Mobile booking calendar (≤640px): compact 7-col grid ===== */
@media (max-width: 640px) {
  .booking-page { padding: 110px 12px 60px; }
  .booking-page .container { padding: 0; }
  .booking-page h1 { font-size: clamp(36px, 9vw, 56px); margin-bottom: 10px; }
  .booking-page .intro { font-size: 15px; margin-bottom: 22px; }
  .booking-page .card { padding: 16px 14px; }

  /* drop WK column, single-letter day header visible */
  .cal--booking .cal-dow,
  .cal--booking .cal-grid { grid-template-columns: repeat(7, 1fr); }
  .cal--booking .cal-dow {
    display: grid;
    background: var(--bg-3);
    border-bottom: 1px solid var(--rule);
    touch-action: pan-y;
  }
  .cal--booking .cal-wk,
  .cal--booking .cal-dow .cal-wk-head { display: none; }
  .cal--booking .cal-dow span {
    padding: 7px 0; text-align: center;
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    letter-spacing: .12em; color: var(--ink-3);
  }
  .cal--booking .cal-dow span.wknd { color: var(--ink); }

  /* compact square day cells, big enough for touch (44px+) */
  .cal--booking .cal-grid { touch-action: pan-y; }
  /* Allow grid tracks to shrink below content's min-width — without this,
     the desktop aspect-ratio 1.4/1 × min-height 64px forces ≥89px columns
     and pushes the grid past the right edge on phones. */
  .cal--booking .cal-grid > * { min-width: 0; }
  .cal--booking .cal-day,
  .cal--booking button.cal-day {
    aspect-ratio: 1 / 1;
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 4px;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  .cal--booking .cal-day .dn,
  .cal--booking .cal-day .dy,
  .cal--booking .cal-day .m { display: none; }
  .cal--booking .cal-day .d { font-size: 16px; }
  .cal--booking .cal-day.blocked .d,
  .cal--booking .cal-day.unavailable .d { align-self: center; }
  .cal--booking .cal-day::before {
    top: 3px !important; right: 3px !important; width: 5px !important; height: 5px !important;
  }
  /* Keep the calendar itself contained even if anything still misbehaves */
  .cal--booking { overflow: hidden; }

  /* nth-child Sunday border rule reverts to 7n (no WK column on mobile) */
  .cal--booking .cal-grid .cal-day:nth-child(7n),
  .cal--booking .cal-grid button.cal-day:nth-child(7n) { border-right: 0; }
  .cal--booking .cal-grid .cal-day:nth-child(8n),
  .cal--booking .cal-grid button.cal-day:nth-child(8n) { border-right: 1px dashed var(--rule); }

  /* bigger month nav touch targets */
  .cal .cal-head { padding: 12px 14px; }
  .cal .cal-head h3 { font-size: 15px; letter-spacing: .03em; }
  .cal .cal-head .nav button { width: 38px; height: 38px; font-size: 18px; }

  /* selected-date chip shown above slots so user has confirmation context */
  .cal-selected-strip {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 14px; padding: 10px 14px;
    background: var(--ink); color: var(--bg);
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: .12em; text-transform: uppercase;
  }
  .cal-selected-strip .change {
    background: transparent; color: var(--bg); border: 1px solid rgba(216,220,224,.45);
    padding: 6px 10px; font-family: var(--font-mono); font-size: 10px;
    letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  }

  /* larger time-slot tap targets */
  .booking-page .slots { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
  .booking-page .slots button { padding: 14px 6px; font-size: 14px; min-height: 48px; }

  .booking-page .submit { width: 100%; padding: 16px 24px; font-size: 13px; }
}
.cal-selected-strip { display: none; }   /* desktop default — only shown on mobile */

@media (max-width: 1320px) {
  .admin-shell { max-width: 100%; border-left: 0; border-right: 0; }
}
@media (max-width: 720px) {
  .windows-editor .row { grid-template-columns: 1fr; gap: 6px; }
  .windows-editor .row span.sep { display: none; }
  .cal .cal-day { min-height: 52px; padding: 6px 6px; }
  .cal .cal-day .d { font-size: 16px; }
  .cal .cal-day .m, .cal .cal-day .dn { font-size: 8px; }
  .cal .cal-day .dy { font-size: 7px; }
  .cal--booking .cal-wk { font-size: 9px; }
}

/* ---------- SERVICE SETTINGS ---------- */
.service-settings {
  border: 1px solid var(--ink); background: var(--bg);
  padding: 14px 16px; margin-bottom: 18px;
}
.service-settings__label {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 700; margin-bottom: 10px;
}
.service-settings-form { margin: 0; }

/* ---------- RULESETS (collapsible) ---------- */
.ruleset {
  border: 1px solid var(--rule);
  background: var(--bg-3);
  margin-bottom: 14px;
}
.ruleset > summary {
  list-style: none;        /* hide default disclosure triangle */
  cursor: pointer;
  user-select: none;
}
.ruleset > summary::-webkit-details-marker { display: none; }
.ruleset-head {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 12px 18px;
  background: var(--ink); color: var(--bg);
  transition: background .15s;
}
.ruleset > summary:hover .ruleset-head,
.ruleset > summary:focus-visible .ruleset-head { background: var(--blue); }
.ruleset > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ruleset-head__text { display: flex; align-items: baseline; gap: 14px; flex: 1; min-width: 0; }
.ruleset-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 700; flex-shrink: 0;
}
.ruleset-summary {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: rgba(216,220,224,.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ruleset-chevron {
  font-family: var(--font-mono); font-size: 14px; line-height: 1;
  transition: transform .2s ease;
}
.ruleset[open] .ruleset-chevron { transform: rotate(180deg); }
.ruleset-body { padding: 18px; }
.add-ruleset-form { margin-top: 4px; margin-bottom: 14px; }
.add-ruleset-form .btn { width: 100%; padding: 14px; border-style: dashed; }

/* ---------- BLOCK WINDOW HINT ---------- */
.block-win-hint {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  margin-top: 10px; padding: 8px 12px;
  border: 1px dashed var(--rule); background: var(--bg-3);
  font-family: var(--font-mono); font-size: 11px;
}
.block-win-hint__label {
  color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; flex-basis: 100%; margin-bottom: 2px;
}
.block-win-hint__svc {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px;
}
.block-win-hint__svcname {
  color: var(--ink-3); font-size: 10px; letter-spacing: .06em;
  margin-right: 2px;
}
.block-win-hint__pill {
  display: inline-block; padding: 1px 6px;
  border: 1px solid var(--ink); color: var(--ink);
  font-size: 11px; white-space: nowrap;
}
.block-win-hint__svc + .block-win-hint__svc::before {
  content: '|'; color: var(--rule); margin-right: 6px; align-self: center;
}
