/* לוח: one stylesheet for the landing page, the board, the submit form and the print view.
   World: Tel Aviv White City modernism at night. Navy facade ground, plaster-white volumes with
   rounded corners and horizontal ribbon bands, one gold sun, long soft shadows cast down-left. */
:root {
  --navy: #0c1a36; --navy-2: #14284f; --navy-3: #1d3768; --navy-ink: #0a1430;
  --gold: #f2b632; --gold-2: #d99a12; --gold-ink: #3d2a00;
  --sky: #8fd0ff; --sky-2: #cfeaff;
  --plaster: #ffffff; --stone: #edf1f7; --stone-2: #dfe5ef;
  --ink: #0e1626; --muted: #4a566e; --line: #d5dcea;
  --danger: #c2352f; --ok: #16804a;
  --radius: 18px; --radius-xl: 28px;
  --shadow: -10px 14px 34px rgba(6, 14, 32, .16), -2px 3px 7px rgba(6, 14, 32, .08);
  --shadow-lg: -22px 30px 60px rgba(4, 10, 26, .32), -4px 6px 14px rgba(4, 10, 26, .14);
  --font: 'Heebo', 'Segoe UI', Arial, sans-serif;
  --display: 'Rubik', 'Heebo', 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--stone); line-height: 1.55; -webkit-font-smoothing: antialiased; direction: rtl; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy-3); text-underline-offset: .18em; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
::selection { background: var(--gold); color: var(--navy-ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: rgba(12, 26, 54, .35) transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; top: -40px; right: 1rem; background: var(--gold); color: var(--navy-ink); padding: .4rem .8rem; border-radius: 8px; z-index: 300; }
.skip:focus { top: .5rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--plaster); color: var(--ink); font-weight: 600; line-height: 1.2; transition: background .15s, transform .08s, box-shadow .2s, border-color .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--stone); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-3); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-ink); box-shadow: -6px 8px 18px rgba(4, 10, 26, .28); }
.btn.gold:hover { background: #ffc94d; }
.btn.light { background: var(--plaster); border-color: var(--plaster); color: var(--navy); }
.btn.light:hover { background: var(--sky-2); }
.btn.ghost-light { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .1); }
.btn.danger { color: var(--danger); border-color: #efc2bf; }
.btn.danger:hover { background: #fdf0ef; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(12, 26, 54, .07); }
.btn.icon { width: 2.5rem; height: 2.5rem; padding: 0; }
.btn.sm { padding: .38rem .8rem; font-size: .9rem; }
.btn.big { padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.fab { position: fixed; bottom: calc(1.25rem + env(safe-area-inset-bottom)); left: 1.25rem; z-index: 40; height: 3.6rem; padding: 0 1.4rem 0 1.2rem; border-radius: 999px; background: var(--gold); color: var(--navy-ink); border: 0; box-shadow: var(--shadow-lg); font-family: var(--display); font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; transition: transform .2s var(--ease); }
.fab svg { width: 1.4rem; height: 1.4rem; }
.fab:hover { transform: translateY(-2px); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .93rem; padding: 0; }
.field .hint { color: var(--muted); font-size: .85rem; }
input[type=text], input[type=url], input[type=password], input[type=number], input[type=search], input[type=email], select, textarea {
  width: 100%; padding: .65rem .85rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy-3); outline: 2px solid var(--sky); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: #66728a; }
textarea { min-height: 6.5rem; resize: vertical; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle:last-child { border-bottom: 0; }
.toggle .t-label { font-weight: 600; }
.toggle .t-hint { color: var(--muted); font-size: .85rem; }
.switch { position: relative; width: 46px; height: 27px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: #c3cbdb; border-radius: 999px; transition: background .2s; pointer-events: none; }
.switch span::before { content: ''; position: absolute; width: 21px; height: 21px; right: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .25s var(--ease); box-shadow: -1px 2px 4px rgba(0, 0, 0, .25); }
.switch input:checked + span { background: var(--navy-3); }
.switch input:checked + span::before { transform: translateX(-19px); }
.switch input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- modals ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(6, 12, 28, .6); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@media (min-width: 640px) { .modal-back { align-items: center; padding: 1.5rem; } }
.modal, .menu, .layout-table, .leaflet-popup-content-wrapper { color: var(--ink); }
.modal { background: #fff; width: 100%; max-width: 620px; max-height: 92vh; overflow: auto; border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease); }
@media (min-width: 640px) { .modal { border-radius: 24px; } }
.modal.wide { max-width: 880px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-h h2 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.modal-b { padding: 1.15rem 1.3rem; }
.modal-f { display: flex; gap: .6rem; padding: .9rem 1.3rem calc(.9rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(18px); opacity: .5; } }
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: .65rem .85rem; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tabs button.active { color: var(--navy); border-bottom-color: var(--gold); }

/* ---------- toasts, menus, chips ---------- */
.toasts { position: fixed; bottom: calc(1.25rem + env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); z-index: 200; display: flex; flex-direction: column; gap: .5rem; pointer-events: none; align-items: center; }
.toast { background: var(--navy); color: #fff; padding: .65rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow); animation: rise .3s var(--ease); font-size: .95rem; max-width: 92vw; }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }
.menu { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); min-width: 210px; padding: .4rem; animation: fade .12s; }
.menu button { display: flex; width: 100%; align-items: center; gap: .6rem; text-align: right; background: none; border: 0; padding: .55rem .75rem; border-radius: 10px; }
.menu button:hover, .menu button:focus-visible { background: var(--stone); }
.menu button.danger { color: var(--danger); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }
.menu svg { width: 1.1em; height: 1.1em; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(12, 26, 54, .08); font-size: .84rem; }
.chip svg { width: 1em; height: 1em; }
.chip.gold { background: var(--gold); color: var(--navy-ink); font-weight: 700; }

/* ---------- colours ---------- */
.swatches { display: flex; gap: .45rem; flex-wrap: wrap; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 3px var(--navy-3); }
.c-white { background: #ffffff; } .c-yellow { background: #ffe9a3; } .c-green { background: #c9f0d6; } .c-blue { background: #cfe6ff; }
.c-pink { background: #ffd3df; } .c-purple { background: #e2d6fb; } .c-orange { background: #ffdcb5; } .c-gray { background: #e3e8f0; }
.bg-swatch { width: 58px; height: 42px; border-radius: 12px; cursor: pointer; border: 3px solid transparent; }
.bg-swatch.active { border-color: var(--gold); }

/* ---------- board backgrounds ---------- */
.bg-aurora { background: var(--navy); background-image: repeating-linear-gradient(180deg, transparent 0 132px, rgba(143, 208, 255, .07) 132px 170px), radial-gradient(ellipse 60% 50% at 85% 0%, rgba(242, 182, 50, .18), transparent 70%), linear-gradient(180deg, #0c1a36, #102449); color: #fff; }
.bg-ocean { background: linear-gradient(160deg, #06303f 0%, #0b4a63 55%, #0e5f73 100%); color: #fff; }
.bg-night { background: linear-gradient(135deg, #0f1f3d 0%, #1b2b4f 60%, #16213e 100%); color: #fff; }
.bg-chalk { background: radial-gradient(ellipse at 30% 20%, #2f5f4e, #1f4a3c 60%, #173b30); color: #fff; }
.bg-sunset { background: linear-gradient(170deg, #ffd88a 0%, #ffb88a 45%, #f59a9a 100%); }
.bg-sky { background: linear-gradient(135deg, #dceeff 0%, #f4f9ff 50%, #e2f0ff 100%); }
.bg-mint { background: linear-gradient(135deg, #d6f4e8 0%, #f1fbf6 50%, #d2f0f1 100%); }
.bg-sand { background: linear-gradient(135deg, #fbe8c8 0%, #fff4e0 50%, #f6dfc1 100%); }
.bg-rose { background: linear-gradient(135deg, #ffdae5 0%, #fff0f4 50%, #f8d6e3 100%); }
.bg-lavender { background: linear-gradient(135deg, #e4dbfb 0%, #f4f0ff 50%, #dcd5f6 100%); }
.bg-grid { background-color: #fff; background-image: linear-gradient(rgba(12, 26, 54, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 26, 54, .07) 1px, transparent 1px); background-size: 28px 28px; }
.bg-paper { background: #f6f3ec; }
.bg-white { background: #ffffff; }
.bg-image { background-size: cover; background-position: center; background-attachment: fixed; }
.dark-bg .board-title, .dark-bg .board-desc, .dark-bg .section-h, .dark-bg .tl-date, .dark-bg .empty, .dark-bg .empty b { color: #fff; }
.dark-bg .board-desc, .dark-bg .section-h .count { color: rgba(255, 255, 255, .78); }
.dark-bg .board-meta .chip { background: rgba(255, 255, 255, .14); color: #fff; }
.dark-bg .board-meta .chip.gold { background: var(--gold); color: var(--navy-ink); }
.bg-image .board-title, .bg-image .board-desc { text-shadow: 0 1px 10px rgba(0, 0, 0, .5); color: #fff; }

/* ---------- landing ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.site-h { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-h .wrap { display: flex; align-items: center; gap: 1.2rem; padding-top: .75rem; padding-bottom: .75rem; }
.logo { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; flex: none; }
.logo-mark { width: 46px; height: 46px; }
.logo-word { font-family: var(--display); font-weight: 900; font-size: 1.8rem; letter-spacing: -.01em; line-height: 1; }
.logo-by { font-size: .74rem; color: var(--sky); font-weight: 600; direction: ltr; border-inline-start: 1px solid rgba(255, 255, 255, .25); padding-inline-start: .55rem; }
.site-nav { display: flex; gap: 1.1rem; margin-inline-start: auto; }
.site-nav a { color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: #fff; text-decoration: underline; }
.site-h-actions { display: flex; gap: .5rem; }
@media (max-width: 900px) { .site-nav { display: none; } .site-h-actions { margin-inline-start: auto; } }
@media (max-width: 480px) { .logo-by { font-size: .72rem; padding-inline-start: .4rem; } .site-h .wrap { gap: .5rem; } .site-h-actions .btn[href="#create"] { display: none; } }

.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 88px, rgba(143, 208, 255, .085) 88px 124px); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; line-height: 1.02; letter-spacing: -.025em; margin: 0 0 1.1rem; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .86); max-width: 34rem; margin: 0 0 2rem; }
.join { background: var(--plaster); color: var(--ink); border-radius: var(--radius-xl); padding: 1.1rem 1.2rem 1.2rem; max-width: 34rem; box-shadow: var(--shadow-lg); }
.join label { display: block; font-weight: 800; font-family: var(--display); margin-bottom: .55rem; font-size: 1.05rem; }
.join-row { display: flex; gap: .6rem; }
/* The code as a "thermometer window": six panes in one rounded frame, digits in tabular figures. */
.panes { display: inline-flex; direction: ltr; unicode-bidi: isolate; gap: 3px; padding: 3px; border-radius: 10px; background: var(--navy-ink); font-family: var(--display); font-weight: 900; font-variant-numeric: tabular-nums; vertical-align: middle; }
.panes i { font-style: normal; display: grid; place-items: center; min-width: 1.15em; height: 1.45em; border-radius: 6px; background: var(--gold); color: var(--navy-ink); line-height: 1; }
.panes i.gap { margin-left: .3em; }
.panes.sm { font-size: .95rem; border-radius: 8px; padding: 2px; gap: 2px; }
.panes.sm i { border-radius: 5px; min-width: 1.05em; height: 1.35em; }
.panes.lg { font-size: clamp(1.6rem, 4vw, 2.1rem); background: var(--stone-2); padding: 5px; gap: 5px; border-radius: 16px; }
.panes.lg i { background: #fff; color: var(--navy); flex: 1 1 0; min-width: 0; max-width: 1.5em; height: 1.75em; border-radius: 11px; box-shadow: inset 0 -3px 0 rgba(12, 26, 54, .08); }
.panes.lg i.next { box-shadow: inset 0 0 0 3px var(--navy-3); }
.panes.xl { font-size: clamp(3rem, 6.5vw, 7rem); padding: 8px; gap: 8px; border-radius: 26px; background: rgba(255, 255, 255, .1); }
.panes.xl i { border-radius: 18px; min-width: 1.05em; height: 1.3em; }
.join-field { flex: 1; min-width: 0; position: relative; display: flex; justify-content: center; }
.join-field .panes.lg { width: 100%; justify-content: center; box-sizing: border-box; overflow: hidden; }
.join-field input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: text; }
.join-field:focus-within .panes.lg { outline: 3px solid var(--sky); outline-offset: 2px; }
.join-err { color: var(--danger); margin: .55rem 0 0; font-weight: 600; font-size: .92rem; }
.hero-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; }
.hero-note { color: rgba(255, 255, 255, .72); font-size: .92rem; }

.facade { margin: 0; position: relative; }
.facade-sun { position: absolute; width: clamp(110px, 14vw, 170px); aspect-ratio: 1; border-radius: 50%; background: var(--gold); top: -38px; left: -34px; }
.facade-body { position: relative; background: var(--plaster); color: var(--ink); border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 64px; box-shadow: var(--shadow-lg); padding: 1rem 1rem 1.1rem; }
.facade-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .2rem .3rem .8rem; border-bottom: 2px solid var(--stone); }
.facade-top b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.02rem; }
.facade-top > div > span { font-size: .82rem; color: var(--muted); }
.code-plaque { background: var(--navy); color: #fff; border-radius: 12px; padding: .3rem .5rem .3rem .7rem; font-size: .8rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.facade-bands { display: flex; flex-direction: column; gap: .7rem; margin-top: .8rem; }
.band { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; min-height: 98px; padding: .55rem; border-radius: 14px; background: var(--stone); overflow: hidden; }
.dpost { border-radius: 12px; padding: .55rem .7rem; font-size: .82rem; box-shadow: -4px 6px 14px rgba(6, 14, 32, .1); display: flex; flex-direction: column; gap: .1rem; animation: arrive .7s var(--ease); min-width: 0; }
.dpost b { font-family: var(--display); font-weight: 700; font-size: .9rem; }
.dpost small { color: var(--muted); margin-top: auto; }
.dpost .dimg { height: 26px; border-radius: 6px; background: linear-gradient(135deg, #1d3768 0 40%, #f2b632 40% 52%, #8fd0ff 52%); margin-bottom: .2rem; }
.dpoll { display: flex; flex-direction: column; gap: 3px; }
.dpoll span { position: relative; font-size: .74rem; padding: 0 .3rem; z-index: 0; }
.dpoll i { position: absolute; inset-block: 0; right: 0; background: rgba(29, 55, 104, .16); border-radius: 4px; z-index: -1; }
.facade figcaption { margin-top: .7rem; font-size: .8rem; color: rgba(255, 255, 255, .65); text-align: center; }
@keyframes arrive { from { transform: translateX(-36px); opacity: 0; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .facade { max-width: 520px; } }
html, body { overflow-x: clip; }
@media (max-width: 480px) { .join-row { flex-direction: column; } .facade-sun { width: 90px; top: -24px; left: -14px; } }

.strip { background: var(--gold); color: var(--navy-ink); }
.strip-in { padding-top: .95rem; padding-bottom: .95rem; font-size: 1.08rem; }
.strip p { margin: 0; }

section.block { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
section.block.plaster { background: var(--plaster); }
section.block h2, .bintech h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; margin: 0 0 .6rem; letter-spacing: -.015em; line-height: 1.12; }
.lede { color: var(--muted); max-width: 46rem; margin: 0 0 1.6rem; font-size: 1.05rem; }
.create-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.create-intro p { font-size: 1.05rem; color: var(--muted); }
.create-card { background: var(--stone); border-radius: var(--radius-xl); padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.create-card input[type=text] { font-size: 1.1rem; padding: .8rem 1rem; }
@media (max-width: 860px) { .create-grid { grid-template-columns: 1fr; } }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 1000px) { .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.format { border: 2px solid transparent; border-radius: 16px; padding: .75rem; cursor: pointer; background: #fff; text-align: right; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; display: flex; flex-direction: column; gap: .15rem; }
.format:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.format.active { border-color: var(--navy-3); box-shadow: var(--shadow); }
.format .f-pic { height: 50px; margin-bottom: .45rem; display: grid; gap: 3px; }
.format .f-name { font-weight: 800; font-family: var(--display); }
.format .f-hint { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.f-pic i { background: var(--stone-2); border-radius: 4px; display: block; }
.format.active .f-pic i { background: var(--navy-3); }
.format.active .f-pic i:first-child { background: var(--gold); }
.pic-wall { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; } .pic-wall i:nth-child(2) { grid-row: span 2; }
.pic-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
.pic-columns { grid-template-columns: repeat(3, 1fr); }
.pic-stream { grid-template-columns: 1fr; padding: 0 22%; }
.pic-canvas { position: relative; } .pic-canvas i { position: absolute; width: 38%; height: 40%; }
.pic-canvas i:nth-child(1) { right: 0; top: 0; } .pic-canvas i:nth-child(2) { left: 4%; top: 30%; } .pic-canvas i:nth-child(3) { right: 26%; bottom: 0; }
.pic-timeline { grid-template-columns: repeat(4, 1fr); align-items: center; position: relative; }
.pic-timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--stone-2); }
.pic-timeline i { height: 60%; position: relative; }
.pic-map { position: relative; background: linear-gradient(135deg, #dbe9f7, #eef4fa); border-radius: 6px; }
.pic-map i { position: absolute; width: 11px; height: 11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.pic-map i:nth-child(1) { right: 20%; top: 18%; } .pic-map i:nth-child(2) { left: 25%; top: 45%; } .pic-map i:nth-child(3) { right: 48%; bottom: 14%; }
.pic-table { grid-template-columns: 1fr 2fr; grid-auto-rows: 1fr; }
.templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.tpl { background: #fff; border: 0; border-radius: var(--radius); padding: 1rem 1.05rem; cursor: pointer; text-align: right; display: flex; flex-direction: column; gap: .2rem; box-shadow: -4px 6px 16px rgba(6, 14, 32, .08); transition: transform .2s var(--ease), box-shadow .2s; }
.tpl:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tpl b { font-family: var(--display); font-size: 1.06rem; }
.tpl-hint { color: var(--muted); font-size: .88rem; }
.tpl-format { margin-top: auto; padding-top: .5rem; font-size: .8rem; font-weight: 700; color: var(--navy-3); }
.my-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .7rem; margin-top: 1rem; }
.my-board { background: var(--stone); border-radius: var(--radius); padding: .9rem 1rem; display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; text-decoration: none; color: inherit; transition: background .15s; }
.my-board:hover { background: var(--sky-2); }
.mb-title { font-weight: 800; font-family: var(--display); }
.mb-meta { color: var(--muted); font-size: .84rem; grid-row: 2; }
.mb-go { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 1.3rem; color: var(--navy-3); }

.bands { background: var(--stone); }
.steps { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-direction: column; gap: .9rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; background: #fff; border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 8px; padding: 1.1rem 1.4rem; box-shadow: var(--shadow); }
.steps li:nth-child(2) { margin-inline-start: clamp(0rem, 6vw, 5rem); }
.steps li:nth-child(3) { margin-inline-start: clamp(0rem, 12vw, 10rem); }
.step-n { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 1.4rem; }
.steps b { font-family: var(--display); font-size: 1.2rem; }
.steps p { margin: .15rem 0 0; color: var(--muted); }
.feature-rows { margin-top: 1.4rem; border-top: 2px solid var(--navy); }
.frow { display: grid; grid-template-columns: minmax(170px, 260px) 1fr; gap: 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.frow h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.frow p { margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 62ch; }
.frow.ai h3 { color: var(--navy-3); }
@media (max-width: 640px) { .frow { grid-template-columns: 1fr; gap: .3rem; } }

.bintech { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.bintech-in { position: relative; padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.bintech-logo { position: relative; display: block; width: clamp(180px, 24vw, 320px); }
.bintech-logo img { width: 100%; height: auto; }
.nowrap { white-space: nowrap; unicode-bidi: isolate; }
@media (max-width: 760px) { .bintech-in { grid-template-columns: 1fr; } .bintech-logo { width: 200px; } }
.bintech-sun { position: absolute; width: clamp(180px, 26vw, 340px); aspect-ratio: 1; border-radius: 50%; background: var(--gold); left: clamp(-120px, -6vw, -40px); bottom: clamp(-160px, -10vw, -60px); }
.bintech-copy { position: relative; max-width: 40rem; }
.topbar .brand-by { color: var(--sky); font-size: .75rem; font-weight: 600; text-decoration: none; direction: ltr; border-inline-start: 1px solid rgba(255, 255, 255, .25); padding-inline-start: .5rem; white-space: nowrap; }
.topbar .brand-by:hover { color: #fff; }
.strip p { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.bintech p { color: rgba(255, 255, 255, .85); font-size: 1.08rem; }
.bintech .row { margin-top: 1.4rem; }
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .3rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: .7rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--display); }
.faq summary::after { content: ''; flex: none; width: 1.2rem; height: 1.2rem; background: var(--navy-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .25s var(--ease); align-self: center; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 1rem; color: var(--muted); max-width: 65ch; }
.site-f { background: var(--navy-ink); color: rgba(255, 255, 255, .78); font-size: .92rem; }
.site-f-in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; padding-bottom: calc(1.6rem + env(safe-area-inset-bottom)); }
.site-f a { color: #fff; }
.site-f nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.legal { max-width: 52rem; padding: 2.5rem 1.25rem 4rem; margin: 0 auto; }
.legal h1 { font-size: 2.2rem; font-weight: 900; margin: 0 0 .5rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .4rem; }
.legal p, .legal li { color: #2a3448; max-width: 68ch; }

/* ---------- board ---------- */
.board-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.topbar .in { display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem; }
.topbar .brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: .4rem; flex: none; font-family: var(--display); font-weight: 900; font-size: 1.2rem; }
.topbar .brand svg { width: 38px; height: 38px; }
.topbar .brand { font-size: 1.45rem; }
.topbar .spacer { flex: 1; }
.topbar .search { max-width: 240px; flex: 1; }
.topbar .search input { padding: .45rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.topbar .search input::placeholder { color: rgba(255, 255, 255, .62); }
.topbar .btn.ghost { color: #fff; }
.topbar .btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.code-btn { display: inline-flex; align-items: center; gap: .45rem; background: var(--gold); color: var(--navy-ink); border: 0; border-radius: 12px; padding: .38rem .75rem; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.code-btn .panes { background: var(--navy-ink); }
.code-btn .panes i { background: #fff; }
.code-btn svg { width: 1.1rem; height: 1.1rem; }
.code-btn:hover { background: #ffc94d; }
.online { color: rgba(255, 255, 255, .78); font-size: .85rem; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.online::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.online.off::before { background: #8b95aa; }
.account-chip { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--sky); color: var(--navy-ink); font-weight: 800; border: 0; font-size: .85rem; }
.board-head { padding: 1.4rem 1.1rem .7rem; display: flex; gap: .9rem; align-items: flex-start; }
.board-icon { font-size: 2.3rem; line-height: 1; }
.board-title { font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin: 0; font-weight: 900; color: var(--navy); line-height: 1.15; letter-spacing: -.015em; }
.board-desc { margin: .3rem 0 0; color: var(--muted); font-size: 1.04rem; white-space: pre-wrap; max-width: 75ch; }
.board-meta { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.board-body { flex: 1; padding: .5rem 1.1rem 7rem; }
.empty { text-align: center; color: var(--muted); padding: 3.5rem 1rem; }
.empty b { display: block; font-size: 1.25rem; color: var(--ink); margin-bottom: .3rem; font-family: var(--display); }
.empty .btn { margin-top: 1rem; }

/* layouts */
.layout-wall { display: flex; gap: 1rem; align-items: flex-start; }
.layout-wall .col { flex: 1; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.layout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.layout-stream { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.1rem; }
.layout-columns { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; min-height: 60vh; }
.layout-columns .section { flex: none; width: min(310px, 86vw); background: rgba(255, 255, 255, .6); border-radius: var(--radius); padding: .65rem; display: flex; flex-direction: column; gap: .7rem; max-height: calc(100vh - 170px); }
.dark-bg .layout-columns .section { background: rgba(255, 255, 255, .09); }
.section-h { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-weight: 800; padding: .2rem .3rem; font-family: var(--display); font-size: 1.05rem; }
.section-h .count { color: var(--muted); font-weight: 600; font-size: .85rem; }
.section-list { display: flex; flex-direction: column; gap: .7rem; overflow-y: auto; min-height: 60px; padding: 2px; }
.section-add { border: 1.5px dashed rgba(12, 26, 54, .3); background: transparent; border-radius: 12px; padding: .55rem; color: var(--muted); font-weight: 600; }
.dark-bg .section-add { border-color: rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .85); }
.section-add:hover { background: rgba(255, 255, 255, .5); }
.dark-bg .section-add:hover { background: rgba(255, 255, 255, .1); }
.layout-timeline { display: flex; flex-direction: column; gap: 1.5rem; }
.tl-track { position: relative; display: flex; gap: 1.2rem; overflow-x: auto; padding: 1.2rem .4rem; }
.tl-track::before { content: ''; position: absolute; left: 0; right: 0; top: 1.95rem; height: 4px; border-radius: 2px; background: var(--gold); opacity: .8; }
.tl-item { flex: none; width: 280px; position: relative; padding-top: 1.6rem; }
.tl-item::before { content: ''; position: absolute; top: .45rem; right: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); border: 4px solid var(--gold); transform: translateX(50%); }
.tl-date { text-align: center; font-size: .9rem; color: var(--muted); margin-bottom: .45rem; font-weight: 800; font-family: var(--display); }
.layout-canvas { position: relative; min-height: 80vh; overflow: auto; border-radius: var(--radius); background-image: radial-gradient(rgba(12, 26, 54, .14) 1px, transparent 1px); background-size: 24px 24px; }
.dark-bg .layout-canvas { background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); }
.layout-canvas .canvas-inner { position: relative; width: 3000px; height: 2000px; }
.layout-canvas .post { position: absolute; width: 260px; cursor: grab; }
.layout-canvas .post.dragging { cursor: grabbing; z-index: 30; }
.layout-canvas svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.layout-canvas svg.wires path { fill: none; stroke: var(--navy-3); stroke-width: 2.5; pointer-events: stroke; cursor: pointer; }
.dark-bg .layout-canvas svg.wires path { stroke: var(--sky); }
.layout-canvas svg.wires path.dashed { stroke-dasharray: 8 6; }
.layout-canvas svg.wires text { font-size: 12px; fill: var(--navy); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.post.link-source { outline: 3px solid var(--gold); }
.connect-hint { position: sticky; top: .5rem; z-index: 5; display: inline-flex; gap: .5rem; align-items: center; background: var(--navy); color: #fff; padding: .45rem .9rem; border-radius: 999px; margin: .4rem; }
.layout-map { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.map-box { height: min(72vh, 720px); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: #dbe7f3; }
.map-hint { font-size: .9rem; margin: 0; }
.dark-bg .map-hint { color: rgba(255, 255, 255, .8); }
.map-unplaced h3 { margin: .5rem 0; font-size: 1.05rem; }
.dark-bg .map-unplaced h3 { color: #fff; }
.map-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold); border: 3px solid var(--navy); box-shadow: -3px 4px 8px rgba(0, 0, 0, .3); display: grid; place-items: center; }
.map-pin span { transform: rotate(45deg); font-size: .72rem; font-weight: 900; color: var(--navy-ink); font-family: var(--display); }
.leaflet-popup-content { margin: 0 !important; width: 270px !important; }
.leaflet-popup-content .post { box-shadow: none; }
.leaflet-container { font-family: var(--font) !important; }
.leaflet-container img { max-width: none !important; } /* the global img rule leaves seams between map tiles */
.layout-table { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; color: var(--ink); }
.layout-table table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.layout-table th { position: sticky; top: 0; background: var(--navy); color: #fff; text-align: right; padding: .65rem .8rem; font-weight: 700; white-space: nowrap; cursor: pointer; user-select: none; }
.layout-table th[aria-sort]::after { content: ''; display: inline-block; width: .8rem; height: .8rem; margin-inline-start: .35rem; vertical-align: middle; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.layout-table th[aria-sort=ascending]::after { transform: rotate(180deg); }
.layout-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; max-width: 380px; }
.layout-table tbody tr { cursor: pointer; }
.layout-table tbody tr:hover td { background: var(--stone); }
.layout-table td.t-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.layout-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); vertical-align: middle; margin-inline-end: .35rem; }

/* post */
.post { background: var(--plaster); border-radius: var(--radius); box-shadow: -6px 9px 22px rgba(6, 14, 32, .13), -1px 2px 4px rgba(6, 14, 32, .07); overflow: hidden; position: relative; transition: box-shadow .2s, transform .2s var(--ease); touch-action: pan-y; color: var(--ink); }
.post:hover { box-shadow: -12px 18px 34px rgba(6, 14, 32, .18), -2px 3px 6px rgba(6, 14, 32, .08); }
.post.arrived { animation: arrive .7s var(--ease); }
.post.dragging { opacity: .9; transform: rotate(1.4deg) scale(1.02); z-index: 30; box-shadow: var(--shadow-lg); touch-action: none; }
.post.placeholder { background: rgba(12, 26, 54, .08); box-shadow: none; border: 2px dashed rgba(12, 26, 54, .28); }
.dark-bg .post.placeholder { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); }
.post.pending { outline: 3px dashed var(--gold); outline-offset: -3px; }
.post.c-white { background: #fff; } .post.c-yellow { background: #ffe9a3; } .post.c-green { background: #c9f0d6; } .post.c-blue { background: #cfe6ff; }
.post.c-pink { background: #ffd3df; } .post.c-purple { background: #e2d6fb; } .post.c-orange { background: #ffdcb5; } .post.c-gray { background: #e3e8f0; }
.style-note .post { border-radius: 4px; box-shadow: -3px 5px 12px rgba(0, 0, 0, .2); }
.style-note .post::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 7px; background: rgba(0, 0, 0, .06); }
.style-flat .post { box-shadow: none; border: 1.5px solid rgba(12, 26, 54, .14); }
.post .p-media img { width: 100%; height: auto; cursor: zoom-in; }
.post .p-media .video { position: relative; padding-top: 56.25%; background: #000; }
.post .p-media .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post .p-media video { width: 100%; max-height: 420px; background: #000; }
.post .p-media audio { width: calc(100% - 1.2rem); margin: .7rem .6rem 0; }
.post .p-body { padding: .8rem .95rem .5rem; }
.post .p-title { font-weight: 800; font-size: 1.08rem; margin: 0 0 .2rem; word-wrap: break-word; font-family: var(--display); line-height: 1.3; }
.post .p-text { white-space: pre-wrap; word-wrap: break-word; margin: 0; }
.post .p-text a { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.post .p-link { display: flex; gap: .6rem; margin: .55rem 0 0; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; background: rgba(12, 26, 54, .06); }
.post .p-link img { width: 92px; height: 92px; object-fit: cover; flex: none; cursor: default; }
.post .p-link .l-text { padding: .5rem .65rem; min-width: 0; }
.post .p-link .l-title { font-weight: 700; font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post .p-link .l-desc { color: var(--muted); font-size: .83rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post .p-link .l-site { color: var(--muted); font-size: .78rem; direction: ltr; text-align: right; }
.post .p-file { display: inline-flex; align-items: center; gap: .5rem; margin-top: .55rem; padding: .5rem .75rem; border-radius: 12px; background: rgba(12, 26, 54, .07); text-decoration: none; color: inherit; max-width: 100%; }
.post .p-file svg { width: 1.2rem; flex: none; }
.post .p-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post .p-loc { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; font-size: .86rem; color: var(--navy-3); text-decoration: none; font-weight: 600; }
.post .p-loc svg { width: 1rem; height: 1rem; }
.poll { display: flex; flex-direction: column; gap: .4rem; margin-top: .55rem; }
.poll button { position: relative; display: flex; justify-content: space-between; gap: .6rem; align-items: center; width: 100%; text-align: right; background: rgba(12, 26, 54, .06); border: 1.5px solid transparent; border-radius: 12px; padding: .5rem .7rem; overflow: hidden; z-index: 0; font-weight: 600; }
.poll button i { position: absolute; inset-block: 0; right: 0; background: rgba(143, 208, 255, .55); z-index: -1; transition: width .6s var(--ease); }
.poll button.mine { border-color: var(--navy-3); }
.poll button.mine i { background: rgba(242, 182, 50, .6); }
.poll button span { font-variant-numeric: tabular-nums; font-size: .86rem; color: var(--muted); }
.poll button[disabled] { cursor: default; }
.poll-meta { font-size: .8rem; color: var(--muted); }
.post .p-foot { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .35rem .65rem .55rem; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.post .p-author { display: inline-flex; gap: .35rem; align-items: center; min-width: 0; }
.post .p-author .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--navy-3); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 800; flex: none; }
.post .p-actions { display: flex; align-items: center; gap: .1rem; }
.post .p-actions button { background: none; border: 0; padding: .3rem .45rem; border-radius: 9px; color: var(--muted); display: inline-flex; align-items: center; gap: .25rem; font-size: .86rem; min-height: 32px; }
.post .p-actions button:hover { background: rgba(12, 26, 54, .08); color: var(--ink); }
.post .p-actions button.on { color: var(--danger); }
.post .p-actions button.on svg { fill: currentColor; }
.post .p-actions svg { width: 1.15em; height: 1.15em; }
.post .p-grade { position: absolute; top: .5rem; left: .5rem; background: var(--navy); color: var(--gold); font-weight: 900; border-radius: 10px; padding: .12rem .55rem; font-size: .9rem; font-family: var(--display); z-index: 2; }
.post .p-pin { position: absolute; top: .45rem; right: .45rem; color: var(--gold-2); width: 1.2rem; z-index: 2; }
.post .p-pending { background: var(--gold); color: var(--navy-ink); font-size: .82rem; font-weight: 800; padding: .3rem .75rem; display: flex; gap: .5rem; align-items: center; justify-content: space-between; }
.post .p-pending button { padding: .18rem .6rem; }
.stars { display: inline-flex; direction: ltr; }
.stars button { padding: .1rem !important; }
.stars button.lit svg { fill: var(--gold); color: var(--gold-2); }
.comments { border-top: 1px solid rgba(12, 26, 54, .1); padding: .55rem .75rem .65rem; background: rgba(255, 255, 255, .55); }
.comment { display: flex; gap: .4rem; align-items: baseline; font-size: .92rem; padding: .2rem 0; }
.comment b { flex: none; }
.comment .c-del { margin-inline-start: auto; background: none; border: 0; color: var(--muted); font-size: .8rem; }
.comment-form { display: flex; gap: .4rem; margin-top: .4rem; }
.comment-form input { padding: .45rem .8rem; border-radius: 999px; }

/* composer */
.composer .attach-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.composer .attach-row .btn { padding: .42rem .75rem; font-size: .9rem; }
.attach-preview { margin-top: .6rem; border: 1.5px solid var(--line); border-radius: 14px; padding: .5rem; display: flex; gap: .6rem; align-items: center; background: var(--stone); }
.attach-preview img, .attach-preview video { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.attach-preview .ap-icon { width: 2.2rem; color: var(--navy-3); flex: none; }
.attach-preview .ap-text { flex: 1; min-width: 0; font-size: .9rem; }
.attach-preview .ap-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-preview .ap-text span { color: var(--muted); }
.loc-chip { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; background: var(--sky-2); color: var(--navy); border-radius: 999px; padding: .3rem .4rem .3rem .8rem; font-weight: 600; font-size: .9rem; max-width: 100%; }
.loc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-chip button { background: none; border: 0; width: 1.8rem; height: 1.8rem; padding: .3rem; color: var(--navy); border-radius: 50%; display: grid; place-items: center; }
.loc-chip button:hover { background: rgba(12, 26, 54, .1); }
.loc-chip svg, .loc-chip i { width: 1rem; height: 1rem; display: inline-flex; flex: none; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: .5rem; }
.progress i { display: block; height: 100%; width: 0; background: var(--navy-3); transition: width .2s; }
.drawpad { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; touch-action: none; width: 100%; height: 300px; }
.rec { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.rec .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.rec-video { width: 100%; max-height: 50vh; border-radius: 14px; background: #000; margin-bottom: .7rem; }
.poll-edit { display: flex; flex-direction: column; gap: .4rem; }
.poll-edit .row input { flex: 1; }
.loc-map { height: 300px; border-radius: 14px; overflow: hidden; margin: .6rem 0; background: #dbe7f3; }
.loc-results { display: flex; flex-direction: column; gap: .25rem; max-height: 160px; overflow: auto; }
.loc-results button { text-align: right; background: var(--stone); border: 0; border-radius: 10px; padding: .45rem .7rem; font-size: .88rem; }
.loc-results button:hover { background: var(--sky-2); }

/* share, projector */
.share-link { display: flex; gap: .4rem; align-items: center; }
.share-link input { direction: ltr; text-align: left; font-size: .9rem; }
.share-code { display: flex; align-items: center; gap: 1rem; background: var(--navy); color: #fff; border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.share-code b { font-family: var(--display); font-size: 2.2rem; letter-spacing: .1em; color: var(--gold); direction: ltr; font-variant-numeric: tabular-nums; }
.share-code span { color: rgba(255, 255, 255, .82); font-size: .9rem; flex: 1; min-width: 160px; }
.qr { display: grid; place-items: center; padding: .6rem; background: #fff; border-radius: 16px; border: 1.5px solid var(--line); }
.qr svg, .qr img { width: 220px; height: 220px; }
.code { font-family: Consolas, monospace; font-size: .8rem; direction: ltr; text-align: left; background: var(--stone); padding: .7rem; border-radius: 12px; white-space: pre-wrap; word-break: break-all; }
.warn { background: #fff4d6; border: 1px solid #f1d58c; color: #5c4300; padding: .65rem .85rem; border-radius: 12px; font-size: .92rem; }
.info { background: #e8f3ff; border: 1px solid #c3dcf6; color: #163a6b; padding: .65rem .85rem; border-radius: 12px; font-size: .92rem; }
.projector { position: fixed; inset: 0; z-index: 170; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; overflow: auto; }
.projector::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 120px, rgba(143, 208, 255, .05) 120px 150px); pointer-events: none; }
.projector .pj-close { position: absolute; top: 1rem; left: 1rem; color: #fff; }
.projector h1 { font-size: clamp(1.8rem, 4vw, 3.4rem); margin: 0 0 1.2rem; font-weight: 900; position: relative; max-width: 26ch; }
.pj-grid { display: flex; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); flex-wrap: wrap; justify-content: center; position: relative; }
.pj-steps { text-align: right; font-size: clamp(1.1rem, 2vw, 1.6rem); }
.pj-steps p { margin: .2rem 0; color: rgba(255, 255, 255, .85); }
.pj-steps .pj-url { direction: ltr; font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(1.4rem, 3vw, 2.4rem); }
.pj-code { font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 12vw, 10rem); line-height: 1; color: var(--gold); letter-spacing: .06em; direction: ltr; font-variant-numeric: tabular-nums; margin: .4rem 0; }
.pj-qr { background: #fff; padding: 18px; border-radius: 26px; box-shadow: var(--shadow-lg); }
.pj-qr svg { width: clamp(200px, min(26vw, 52vh), 400px); height: auto; display: block; }
.pj-foot { position: relative; margin-top: 1.5rem; color: rgba(255, 255, 255, .65); font-size: .9rem; }
.projector { justify-content: safe center; }

/* sections editor */
.sec-list { display: flex; flex-direction: column; gap: .4rem; }
.sec-item { display: flex; gap: .4rem; align-items: center; }
.sec-item input { flex: 1; }

/* AI */
.ai-out { white-space: pre-wrap; background: var(--stone); border-radius: 14px; padding: 1rem 1.1rem; min-height: 6rem; line-height: 1.7; }
.ai-out.loading { color: var(--muted); }
.ai-credit { font-size: .85rem; color: var(--muted); margin-top: .8rem; }

/* slideshow, lightbox */
.slideshow { position: fixed; inset: 0; z-index: 150; background: var(--navy-ink); color: #fff; display: flex; flex-direction: column; }
.slideshow .ss-top { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; }
.slideshow .ss-body { flex: 1; display: grid; place-items: center; padding: 1rem; overflow: auto; }
.slideshow .post { width: min(780px, 94vw); font-size: 1.3rem; }
.slideshow .post .p-title { font-size: 1.7rem; }
.slideshow .ss-nav { display: flex; justify-content: center; gap: 1rem; padding: .8rem; align-items: center; }
.slideshow .ss-nav .btn { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.slideshow .ss-section { font-size: 2.6rem; font-weight: 900; text-align: center; font-family: var(--display); }
.lightbox { position: fixed; inset: 0; z-index: 160; background: rgba(0, 0, 0, .9); display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 94vh; width: auto; height: auto; object-fit: contain; }

/* pending bar, embed, account */
.pending-bar { position: sticky; top: 52px; z-index: 30; background: var(--gold); color: var(--navy-ink); padding: .5rem .95rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-weight: 700; }
.embed .topbar .brand span { display: none; }
.embed .board-head { padding-top: .7rem; }
.powered { position: fixed; bottom: .5rem; right: .6rem; font-size: .76rem; background: var(--navy); padding: .2rem .65rem; border-radius: 999px; z-index: 20; }
.powered a { text-decoration: none; color: #fff; font-weight: 600; }
.powered a b { color: var(--gold); }
.account .acc-head { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.acc-avatar { width: 3rem; height: 3rem; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 900; font-family: var(--display); font-size: 1.1rem; }
.account h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.acc-keys { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-direction: column; gap: .3rem; }
.acc-keys li { display: flex; gap: .5rem; align-items: center; background: var(--stone); border-radius: 12px; padding: .35rem .6rem; }
.acc-keys li span:first-child { width: 1.2rem; color: var(--navy-3); }
.acc-keys li span:nth-child(2) { flex: 1; }
.g-dot { display: grid !important; place-items: center; width: 1.3rem !important; height: 1.3rem; border-radius: 50%; background: #fff; color: #4285f4; font-weight: 900; font-size: .8rem; }
.acc-lead { font-size: 1.02rem; margin-top: 0; }
.account .btn.big { width: 100%; }
.account .row .btn { flex: none; }
.account .row input { flex: 1; min-width: 160px; }
.acc-or { text-align: center; color: var(--muted); font-size: .88rem; margin: 1rem 0 .5rem; font-weight: 600; }
.g-box { display: flex; justify-content: center; }

/* submit page */
.submit-page { max-width: 580px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.submit-page .card { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 1.35rem; }
.thanks { text-align: center; padding: 2rem 1rem; }
.thanks .big { font-size: 3rem; }

/* print */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .print-post { break-inside: avoid; border: 1px solid #ccc; border-radius: 8px; padding: .6rem .8rem; margin-bottom: .6rem; }
  .print-post img { max-height: 320px; width: auto; }
}
.print-wrap { max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem; }
.print-wrap h1 { margin: 0 0 .3rem; }
.print-wrap h2 { font-size: 1.1rem; margin: 1.2rem 0 .5rem; border-bottom: 3px solid var(--gold); display: inline-block; }
.print-post { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; margin-bottom: .6rem; background: #fff; }
.print-post .meta { color: var(--muted); font-size: .85rem; }
.print-post img { max-height: 320px; width: auto; margin-top: .4rem; border-radius: 6px; }
.print-grid { columns: 2; column-gap: 1rem; }
@media (max-width: 640px) { .print-grid { columns: 1; } }

@media (max-width: 720px) {
  .topbar .search { display: none; }
  .topbar .in { gap: .3rem; padding: .45rem .55rem; }
  .online { display: none; }
  .code-btn { padding: .32rem .55rem; }
  .code-btn .cb-label, .code-btn svg { display: none; }
  #actions { flex-wrap: nowrap; gap: 0 !important; }
  #actions .btn.icon { width: 2.2rem; height: 2.2rem; }
  #actions [aria-label="מצגת"] { display: none; }
  .topbar .brand span, .topbar .brand-by { display: none; }
  .board-body { padding: .4rem .75rem 7rem; }
  .board-head { padding: 1rem .8rem .5rem; }
  .layout-wall { gap: .7rem; }
  .fab { height: 3.4rem; padding: 0 1.1rem 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
