/* מילון האינטראקציות · iOS core: system UI as material, warm white, one accent (selection blue) */

:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --paper: #fffefb;
  --win: #fbfaf7;
  --bar: #f2f0eb;
  --side: #efece5;
  --thumb: #e7e4dd;
  --ink: #141414;
  --ink2: #4f4c46;
  --ink3: #6c6861;
  --hair: rgba(20, 18, 14, .13);
  --hair2: rgba(20, 18, 14, .07);
  --blue: #0a84ff;
  --blue-ink: #0062cc;
  --sel: #b3d7ff;
  --dark: #1c1c1e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .07), 0 14px 36px rgba(0, 0, 0, .09);
  --shadow-dlg: 0 2px 6px rgba(0, 0, 0, .12), 0 30px 80px rgba(0, 0, 0, .24);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Hebrew", "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --tap: 36px;
}
@media (pointer: coarse) { :root { --tap: 44px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--blue-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
bdi[dir="ltr"], [dir="ltr"] { unicode-bidi: isolate; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.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; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--paper); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
#nl-hud-frame, #nl-badge-frame { display: none !important; }

.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }

/* ───────── masthead ───────── */
.mast { padding: 56px 0 30px; }
.editmenu {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 999px; padding: 4px 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 18px rgba(0, 0, 0, .08);
  font-size: 14px; font-weight: 500; margin-bottom: 22px;
}
.editmenu span { padding: 4px 12px; border-inline-end: 1px solid var(--hair); }
.editmenu .on { color: var(--blue-ink); }
.editmenu .chev { border: 0; color: var(--ink3); padding-inline: 8px 4px; }
h1 {
  margin: 0;
  font-size: clamp(42px, 8.2vw, 96px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.025em;
}
h1 .sel {
  position: relative; display: inline-block;
  background: var(--sel);
  padding-inline: .06em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
h1 .sel::before, h1 .sel::after {
  content: ""; position: absolute; width: 3px; background: var(--blue); border-radius: 2px;
  top: .06em; bottom: .02em;
}
h1 .sel::before { inset-inline-start: -2px; }
h1 .sel::after { inset-inline-end: -2px; }
h1 .sel .hd { position: absolute; width: .13em; height: .13em; border-radius: 50%; background: var(--blue); }
h1 .sel .hd.s { inset-inline-start: calc(-.5px - .065em); top: -.07em; }
h1 .sel .hd.e { inset-inline-end: calc(-.5px - .065em); bottom: -.09em; }
.lede { margin: 18px 0 0; font-size: clamp(18px, 2.1vw, 22px); line-height: 1.45; color: var(--ink2); max-width: 44ch; }
.howto { margin: 8px 0 0; color: var(--ink3); font-size: 15px; }
.credit { margin: 18px 0 0; font-size: 15px; color: var(--ink3); }
.credit a { color: var(--ink); text-decoration-color: var(--hair); }

/* ───────── segmented tabs ───────── */
.seg {
  display: inline-flex; gap: 2px; padding: 3px; margin: 8px 0 18px;
  background: #e8e5de; border-radius: 10px;
}
.seg button {
  min-height: var(--tap); padding: 0 16px; border: 0; border-radius: 8px;
  background: transparent; font-size: 15px; font-weight: 500; cursor: pointer; color: var(--ink2);
}
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .06); }
.seg .n { color: var(--ink3); font-weight: 400; font-variant-numeric: tabular-nums; margin-inline-start: 4px; }

/* ───────── Finder window ───────── */
.win { background: var(--win); border-radius: 12px; box-shadow: var(--shadow), 0 0 0 1px var(--hair); overflow: hidden; }
.win-bar {
  display: flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 8px 14px;
  background: var(--bar); border-bottom: 1px solid var(--hair);
}
.lights { display: inline-flex; gap: 8px; flex: none; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #dcd9d2; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); }
.win-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search {
  position: relative; display: flex; align-items: center;
  width: min(300px, 100%); height: var(--tap);
  background: #fff; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--hair);
}
.search:focus-within { box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 3px rgba(10, 132, 255, .25); }
.search svg { position: absolute; inset-inline-start: 10px; width: 16px; height: 16px; fill: none; stroke: var(--ink3); stroke-width: 1.7; stroke-linecap: round; }
.search input {
  width: 100%; height: 100%; border: 0; background: transparent; outline: none;
  padding-inline: 34px 10px; font: 15px var(--font); color: var(--ink);
}
.search input::placeholder { color: #8d897f; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.motion {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: var(--tap); padding: 0 12px; border-radius: 8px; cursor: pointer;
  background: #fff; border: 0; box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; color: var(--ink2);
}
.motion svg { width: 14px; height: 14px; fill: currentColor; }
.motion .i-play { display: none; }
.motion[aria-pressed="true"] .i-play { display: block; }
.motion[aria-pressed="true"] .i-pause { display: none; }
.motion[aria-pressed="true"] { color: var(--ink); background: var(--sel); box-shadow: none; }

.win-body { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 60vh; }
.side { background: var(--side); border-inline-end: 1px solid var(--hair); padding: 14px 10px 24px; }
.side-group + .side-group { margin-top: 18px; }
.side-h { margin: 0 10px 6px; font-size: 12px; font-weight: 700; color: var(--ink3); letter-spacing: .02em; }
.chips { display: flex; flex-direction: column; gap: 1px; }
.chip {
  display: flex; align-items: center; gap: 8px; width: 100%;
  min-height: 32px; padding: 4px 10px; border: 0; border-radius: 6px;
  background: transparent; text-align: start; cursor: pointer; font-size: 14px; color: var(--ink);
}
@media (pointer: coarse) { .chip { min-height: 44px; } }
.chip:hover { background: var(--hair2); }
.chip[aria-pressed="true"] { background: var(--sel); }
.chip .ico { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linejoin: round; }
.chip .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .c { color: var(--ink3); font-size: 12px; font-variant-numeric: tabular-nums; }

.files { min-width: 0; }
.pathbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 20px; border-bottom: 1px solid var(--hair2); font-size: 13px; color: var(--ink3);
}
.pathbar #path { color: var(--ink2); font-weight: 600; }

.grid {
  list-style: none; margin: 0; padding: 22px 20px 34px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 26px 18px;
}
.item[hidden] { display: none; }
.file {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: inherit; text-decoration: none; border-radius: 10px; padding: 6px;
}
.file:focus-visible { outline: none; }
.thumb {
  position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--thumb); border-radius: 7px;
  box-shadow: 0 0 0 1px var(--hair), 0 1px 2px rgba(0, 0, 0, .06);
  transition: box-shadow .15s ease;
}
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb video { opacity: 0; transition: opacity .25s ease; }
.thumb.is-playing video { opacity: 1; }
.file:hover .thumb, .file:focus-visible .thumb { box-shadow: 0 0 0 1px var(--hair), 0 0 0 5px rgba(20, 18, 14, .07); }
.file:focus-visible .thumb { box-shadow: 0 0 0 3px var(--blue); }
.chip-made {
  position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2;
  display: inline-block; height: 22px; line-height: 22px; padding: 0 8px; border-radius: 6px; white-space: nowrap;
  background: rgba(255, 255, 255, .94); color: var(--ink2); font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 1px 3px rgba(0, 0, 0, .12);
}
.hname {
  max-width: 100%; padding: 0 2px; text-align: center;
  font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hname .hl { border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color .15s ease; }
.file:hover .hname .hl, .file:focus-visible .hname .hl, .file[aria-current="true"] .hname .hl { background: var(--sel); }
.eterm {
  margin-top: -4px; max-width: 100%; font-size: 12px; color: var(--ink3); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: isolate;
}

/* text-file thumbnail (entries without a clip) */
.doc {
  position: absolute; inset: 9% 26%; background: #fff; border-radius: 2px;
  box-shadow: 0 0 0 1px var(--hair), 0 2px 6px rgba(0, 0, 0, .08);
  padding: 9% 9% 0; overflow: hidden; direction: ltr; text-align: left;
  clip-path: polygon(0 0, 82% 0, 100% 13%, 100% 100%, 0 100%);
}
.doc::after { content: ""; position: absolute; top: 0; right: 0; width: 18%; aspect-ratio: 1; background: #ebe8e1; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.doc b { display: block; font: 700 7.5px/1.25 var(--mono); color: var(--ink); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc span { display: block; font: 5.5px/1.45 var(--mono); color: #8b877e; overflow-wrap: anywhere; }
.empty { padding: 40px 20px 60px; text-align: center; color: var(--ink2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 0 14px; border: 0; border-radius: 8px; cursor: pointer;
  background: #fff; box-shadow: 0 0 0 1px var(--hair), 0 1px 1px rgba(0, 0, 0, .05); font-size: 14px; font-weight: 500; color: var(--ink);
}
.btn:hover { background: #faf9f6; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn .i-check { display: none; }
.btn.is-done { background: var(--blue); color: #fff; box-shadow: none; }
.btn.is-done .i-copy { display: none; }
.btn.is-done .i-check { display: block; }

/* code / prompt */
.code {
  margin: 0; background: #fff; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--hair);
  padding: 14px 16px; direction: ltr; text-align: left;
  font: 13px/1.6 var(--mono); color: #1f1f1f; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2;
}
.code code { font: inherit; }
.code .t { -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color .2s ease; border-radius: 2px; }
.code .h { display: inline-block; position: relative; width: 0; height: 1.25em; vertical-align: -0.25em; }
.code .h::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--blue); border-radius: 1px; opacity: 0; transition: opacity .2s ease; }
.code .h::after { content: ""; position: absolute; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); opacity: 0; transition: opacity .2s ease; }
.code .h-s::after { top: -7px; }
.code .h-e::after { bottom: -7px; }
.code.is-selected .t { background: var(--sel); }
.code.is-selected .h::before, .code.is-selected .h::after { opacity: 1; }

/* ───────── go-live note (לפני שעולים לאוויר) ───────── */
.golive-wrap { margin: 44px 0 0; }

.note { background: var(--paper); border-radius: 12px; box-shadow: var(--shadow), 0 0 0 1px var(--hair); padding: 26px 28px 28px; }
.note h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.note .sub { margin: 6px 0 18px; color: var(--ink2); }
.prompt-inline .prompt-head { margin-bottom: 8px; }

/* ───────── prompts tab ───────── */
.prompts-head { margin: 4px 0 18px; max-width: 980px; }
.prompts-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.01em; }
.prompts-head p { margin: 6px 0 0; color: var(--ink2); }
.prompts { display: grid; gap: 22px; max-width: 980px; }
.pwin { background: var(--paper); border-radius: 12px; box-shadow: var(--shadow), 0 0 0 1px var(--hair); overflow: hidden; scroll-margin-top: 16px; }
.pwin-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: var(--bar); border-bottom: 1px solid var(--hair); }
.pwin-bar .fn { font: 12.5px var(--mono); color: var(--ink3); direction: ltr; unicode-bidi: isolate; }
.pwin-body { padding: 18px 22px 22px; }
.pwin h3 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 800; }
.pwin h3 .pc { display: inline-block; font: 600 13px var(--mono); color: var(--ink2); background: var(--sel); padding: 1px 6px; border-radius: 3px; margin: 0 0 0 10px; vertical-align: 3px; }
.pwin .phe { margin: 6px 0 14px; color: var(--ink2); max-width: 70ch; }
.pbox { position: relative; }
.pbox .code { max-height: 300px; overflow: hidden; }
.pbox.is-open .code { max-height: none; }
.pbox .more { margin-top: 10px; }
.pactions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.pactions .plink { font-size: 14px; }

/* ───────── footer ───────── */
.foot { margin-top: 64px; padding: 26px 0 48px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--ink3); }
.foot p { margin: 4px 0; }
.foot a { color: var(--ink2); }

/* ───────── Quick Look ───────── */
.ql-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(28, 26, 22, .32); }
.ql { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; pointer-events: none; }
.ql[hidden], .ql-backdrop[hidden] { display: none; }
.ql-win {
  pointer-events: auto; position: relative;
  width: min(1180px, 100%); max-height: calc(100dvh - 48px);
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 14px; box-shadow: var(--shadow-dlg), 0 0 0 1px var(--hair);
  overflow: hidden;
}
.ql.no-media .ql-win { width: min(720px, 100%); }
.ql-bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  min-height: 50px; padding: 4px 8px; background: var(--bar); border-bottom: 1px solid var(--hair);
}
.ql-file { margin: 0; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ql-nav { display: flex; gap: 2px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: var(--ink2);
}
.icon-btn:hover { background: var(--hair2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.ql-close svg { width: 16px; height: 16px; stroke-width: 2; }

.ql-body { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(330px, 1fr); min-height: 0; flex: 1; }
.ql.no-media .ql-body { grid-template-columns: 1fr; }
.ql.no-media .ql-media { display: none; }
.ql-media { background: var(--dark); color: #e6e6ea; display: flex; flex-direction: column; min-height: 0; }
.stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 18px; }
.stage video, .stage img { width: 100%; height: auto; max-height: calc(100dvh - 260px); object-fit: contain; border-radius: 6px; background: #000; }
.media-bar { display: flex; align-items: flex-start; gap: 8px; padding: 2px 14px 12px; }
.media-bar .icon-btn { color: #e6e6ea; flex: none; }
.media-bar .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.media-bar .icon-btn svg { fill: currentColor; stroke: none; width: 16px; height: 16px; }
.play .i-play { display: none; }
.play.is-paused .i-play { display: block; }
.play.is-paused .i-pause { display: none; }
.play[hidden] { display: none; }
.media-text { padding-top: 9px; min-width: 0; }
.media-text .cap { margin: 0; font-size: 14.5px; line-height: 1.45; color: #f2f2f5; }
.media-text .src { margin: 3px 0 0; font-size: 13px; color: #a9a9b0; }
.media-text .src a { color: #a9c8ff; }
.media-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 16px; }
.media-tabs:empty { display: none; }
.media-tabs button {
  min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #e6e6ea; font-size: 13.5px;
}
@media (pointer: coarse) { .media-tabs button { min-height: 44px; } }
.media-tabs button[aria-pressed="true"] { background: #f2f2f5; color: #111; }

.ql-info { overflow: auto; padding: 22px 28px 32px; overscroll-behavior: contain; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tag { display: inline-block; line-height: 24px; white-space: nowrap; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--hair); background: #fff; }
.ql-info h2 { margin: 0; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.term { margin: 10px 0 0; }
.term-sel { font-size: 16px; font-weight: 600; background: var(--sel); padding: 2px 6px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.7; }
.field { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--hair2); }
.field h3 { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: var(--ink3); letter-spacing: .02em; }
.field p { margin: 0; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.prompt-head h3 { margin: 0; }
.seen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.seen li { line-height: 1.45; }
.seen .site { font-weight: 600; }
.seen .site a { font-weight: 600; }
.seen .note-t { color: var(--ink2); }
.seen .refl { font-size: 12px; color: var(--ink3); box-shadow: inset 0 0 0 1px var(--hair); border-radius: 999px; padding: 0 7px; margin-inline-end: 6px; }
.similar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.similar a { display: grid; gap: 6px; color: inherit; text-decoration: none; font-size: 13px; line-height: 1.3; border-radius: 8px; }
.similar a:hover .s-name { color: var(--blue-ink); }
.similar .s-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--thumb); box-shadow: 0 0 0 1px var(--hair); }
.similar .s-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* open animation (Quick Look zoom from the file) */
.ql-win:focus { outline: none; }
.ql-win.is-opening { animation: ql-in .22s var(--ease) both; }
.ql-backdrop.is-opening { animation: fade-in .18s ease both; }
@keyframes ql-in { from { opacity: 0; transform: scale(.93); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* review mode: ?review=1 outlines every draft text */
.review [data-draft="true"] { outline: 2px dashed #c77700; outline-offset: 3px; position: relative; }
.review [data-draft="true"]::after { content: "טיוטה"; position: absolute; top: -10px; inset-inline-end: 0; font: 600 10px var(--font); background: #c77700; color: #fff; padding: 1px 5px; border-radius: 3px; direction: rtl; }

/* ───────── narrow screens ───────── */
@media (max-width: 860px) {
  .mast { padding: 30px 0 18px; }
  .editmenu { font-size: 13px; margin-bottom: 16px; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; padding: 0 8px; font-size: 14.5px; }
  .win { border-radius: 12px; }
  .win-bar { flex-wrap: wrap; gap: 8px; padding: 10px; }
  .lights, .win-title { display: none; }
  .search { flex: 1; width: auto; min-width: 0; }
  .motion { padding: 0; width: var(--tap); justify-content: center; }
  .motion .motion-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .win-body { display: block; min-height: 0; }
  .side { background: transparent; border: 0; padding: 10px 0 2px; border-bottom: 1px solid var(--hair2); }
  .side-group + .side-group { margin-top: 6px; }
  .side-h { margin: 0 12px 4px; font-size: 11.5px; }
  .chips {
    flex-direction: row; gap: 6px; overflow-x: auto; padding: 2px 10px 10px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip {
    width: auto; flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px;
    background: #fff; box-shadow: inset 0 0 0 1px var(--hair); white-space: nowrap;
  }
  .chip .lbl { overflow: visible; }
  .chip .ico { display: none; }
  .chip[aria-pressed="true"] { background: var(--sel); box-shadow: none; }
  .pathbar { padding: 8px 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; padding: 14px 8px 24px; }
  .file { padding: 4px; gap: 6px; }
  .hname { font-size: 13.5px; }
  .eterm { font-size: 11px; }
  .chip-made { top: 6px; inset-inline-end: 6px; height: 20px; line-height: 20px; font-size: 10.5px; padding: 0 6px; }
  .golive-wrap { margin-top: 30px; }
  .note { padding: 20px 18px 22px; }
  .pwin-body { padding: 16px 16px 18px; }

  .ql { padding: 0; place-items: stretch; }
  .ql-win, .ql.no-media .ql-win { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .ql-body { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .stage { padding: 0; }
  .stage video, .stage img { border-radius: 0; max-height: 62vh; }
  .media-bar { padding: 4px 6px 8px; }
  .media-tabs { padding: 0 10px 14px; }
  .ql-info { overflow: visible; padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); }
  .similar ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .code { font-size: 12.5px; padding: 12px; }
}
@media (max-width: 359px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* CTA: Instagram first, then booking, then the site (owner 03.10) */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 22px; }
.cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; line-height: 1; }
.cta .ig { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.cta .ig .dot, .ql-follow .ig .dot { fill: currentColor; stroke: none; }
.cta-ig { background: var(--ink); color: #fff; }
.cta-ig:hover { background: #000; }
.cta-ig .handle { font-weight: 500; opacity: .75; }
.cta-book { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--hair) inset; }
.cta-book:hover { box-shadow: 0 0 0 1.5px var(--blue) inset; color: var(--blue-ink); }
.cta-link { color: var(--ink2); font-size: 15px; }
.cta-lg { min-height: 52px; padding: 0 22px; font-size: 18px; }
.cta > span, .cta .handle { white-space: nowrap; }
.contact { margin-top: 56px; }
.contact-win { overflow: hidden; }
.contact-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px 40px; padding: 28px clamp(18px, 4vw, 40px); }
.contact-body h2 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.01em; }
.contact-body h3 { margin: 0; font-size: 20px; font-weight: 800; }
.contact-body p { margin: 10px 0 18px; color: var(--ink2); font-size: 16px; line-height: 1.5; max-width: 44ch; }
.book-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px clamp(18px, 4vw, 40px); border-top: 1px solid var(--hair); font-size: 15px; }
.social a { color: var(--ink2); text-decoration: none; }
.social a:hover { color: var(--blue-ink); text-decoration: underline; }
.social a:first-child { color: var(--ink); font-weight: 700; }
.ql-follow { margin: 22px 0 6px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 15px; }
.ql-follow a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; text-decoration: none; min-height: 44px; }
.ql-follow .ig { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 720px) {
  .contact-body { grid-template-columns: 1fr; }
  .cta-row .cta { flex: 1 1 auto; justify-content: center; }
  .cta-lg { width: 100%; justify-content: center; font-size: 17px; }
}
