:root {
  --ink: #0a0a0a;
  --canvas: #f6f5f5;
  --paper: #fff;
  --pink: #ff009d;
  --pink-pale: #fff0f8;
  --muted: #60575e;
  --line: #e6e1e4;
  --radius: 19px;
  font-family: "Postea Status", "postea-hebrew-vf", "Arial Hebrew", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.25rem, 4vw, 3.35rem); line-height: 1.06; letter-spacing: -.055em; }
h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.18; }
h3 { font-size: 1.24rem; line-height: 1.22; }
small { font-size: .82rem; color: var(--muted); }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
svg { width: 20px; height: 20px; flex: 0 0 auto; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #b0006e; outline-offset: 4px; }
.skip { position: fixed; z-index: 10; inset-block-start: 8px; inset-inline-start: 8px; padding: 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { display: grid; grid-template-columns: 235px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--paper); border-inline-end: 1px solid var(--line); position: sticky; inset-block-start: 0; height: 100dvh; padding: 27px 18px 18px; display: flex; flex-direction: column; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; padding-inline: 8px; }
.brand strong { display: block; font-size: 1.7rem; letter-spacing: -.06em; line-height: 1; }
.brand small { font-weight: 700; }
.mark { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.mark img { width: 29px; }
nav { display: grid; gap: 7px; }
nav a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; min-height: 46px; border-radius: 11px; color: var(--muted); font-size: .96rem; font-weight: 700; }
nav a:hover { background: #f6f3f5; color: var(--ink); }
nav a[aria-current] { background: var(--pink-pale); color: var(--ink); }
nav a[aria-current] svg { color: #b0006e; }
.account { margin-block-start: auto; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-block-start: 15px; min-width: 0; }
.account > div { min-width: 0; flex: 1; }
.account strong { font-size: .84rem; }
.account small { display: block; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.account-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; background: var(--canvas); border-radius: 50%; }
.account-icon svg, .icon-button svg { width: 16px; height: 16px; }
.icon-button { display: grid; place-items: center; background: none; border: none; width: 36px; height: 40px; border-radius: 9px; }
.icon-button:hover { background: var(--canvas); }
.workspace { width: min(100%, 1500px); margin-inline: auto; padding: 45px clamp(23px, 4.3vw, 70px) 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-block-end: 26px; }
.page-head p { margin-block-start: 10px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .83rem; font-weight: 750; margin-block-end: 12px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: inline-block; flex: none; }
/* Dimensions and inverted interaction states match the studio's pill buttons. */
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: color 180ms ease, background-color 180ms ease;
}
.button svg { width: 21px; height: 21px; }
.button:hover:not(:disabled), .button:focus-visible { background: var(--ink); color: var(--paper); }
.button.danger { color: #8e163a; border-color: #8e163a; }
.button.danger:hover, .button.danger:focus-visible { background: #8e163a; color: var(--paper); }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.heading-artwork { height: clamp(32px, 5vw, 51px); width: auto; object-fit: contain; object-position: right; }
.overview { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-block-end: 17px; }
.overview strong { margin-inline-start: 4px; color: var(--ink); }
.raffle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px,100%), 1fr)); gap: 14px; }
.raffle-card, .panel, .metric, .report-banner, .empty { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); }
.raffle-card { min-width: 0; padding: 18px; display: grid; gap: 18px; transition: border-color .18s ease, transform .18s ease; }
.raffle-card:hover { border-color: #d197bc; transform: translateY(-2px); }
.raffle-card small { font-weight: 700; }
.raffle-card h3 { margin-block: 3px; }
.raffle-card footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-block-start: 12px; color: var(--muted); font-size: .84rem; }
.card-top { display: flex; justify-content: space-between; align-items: start; }
.card-arrow { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--canvas); color: var(--ink); }
.card-arrow svg { width: 17px; height: 17px; }
.badge { display: inline-flex; align-items: center; gap: 6px; width: max-content; min-height: 28px; padding: 3px 9px; border-radius: 999px; color: #4f424a; background: #f3eff2; font-size: .79rem; font-weight: 700; }
.badge i { display: block; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.badge.open { background: #e8f5ed; color: #22583b; }
.badge.closed { background: #f9ecf3; color: #802653; }
.raffle-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; color: var(--muted); margin-block-end: 16px; font-size: .87rem; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-block-end: 17px; }
.metric { display: grid; gap: 5px; padding: 15px; }
.metric strong { font-size: clamp(1.8rem,3vw,2.5rem); line-height: 1.12; font-variant-numeric: tabular-nums; }
.metric > span:last-child { color: var(--muted); font-size: .88rem; }
.metric-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: #ad006a; background: var(--pink-pale); margin-block-end: 5px; flex: none; }
.panel { padding: clamp(15px, 2.4vw, 24px); margin-block-end: 16px; min-width: 0; }
.panel-head { margin-block-end: 14px; }
.panel-head p { margin-block-start: 5px; font-size: .92rem; }
.panel .empty { border-style: dashed; }
.empty { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 26px 16px; }
.empty p { max-width: 48ch; }
.notice { display: flex; gap: 7px; align-items: center; padding: 10px 13px; margin-block-end: 14px; color: #22583b; background: #e8f5ed; border: 1px solid #c7e2d1; border-radius: 11px; font-size: .94rem; }
.notice.neutral { background: var(--canvas); color: var(--muted); border-color: var(--line); margin-block: 13px 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; align-items: end; }
.wide { grid-column: 1 / -1; }
.field { display: grid; gap: 5px; min-width: 0; align-content: start; }
.field span { font-weight: 700; font-size: .9rem; }
input, select, textarea { min-width: 0; width: 100%; padding: 8px 10px; min-height: 43px; background: white; border: 1px solid #cfc6cd; border-radius: 9px; }
textarea { resize: vertical; }
input::placeholder { color: #756971; }
input[dir="ltr"] { text-align: left; }
.time-fields { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 6px; }
.filters, .inline-form { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.filters { margin-block-end: 12px; }
.filters .field:first-child { min-width: min(200px, 100%); }
.filters select { min-width: 114px; }
details { padding: 11px 0; border-block-start: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-block-end: 10px; }
.actions details { border: 0; }
.table-wrap { max-width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: start; font-size: .88rem; }
th, td { padding: 10px 7px; border-block-end: 1px solid var(--line); text-align: start; vertical-align: top; }
th { background: #f8f6f7; font-weight: 700; color: #50444d; }
td small, .activity small, .bot-row small { display: block; }
td a, .activity a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.pager { margin-block-start: 11px; }
.pager:empty { display: none; }
.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.draw-history { display: grid; gap: 7px; margin-block: 12px; }
.draw-history > div { padding: 9px 12px; border-radius: 9px; background: var(--canvas); }
.draw-history p, .draw-controls p { font-size: .88rem; }
.draw-controls p { margin-block-end: 6px; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li, .bot-row, .grant { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-block-end: 1px solid var(--line); }
.activity time { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 25px; margin: 0; }
.facts dt { font-weight: 700; }
.facts dd { color: var(--muted); margin: 0; }
.invite-link, .check-result, .chat { overflow-wrap: anywhere; }
.report-banner { display: flex; align-items: center; gap: 13px; padding: 15px; margin-block-end: 15px; }
.report-banner .metric-icon { margin: 0; }
.report-banner .badge { margin-inline-start: auto; }
.report-banner p { color: var(--ink); font-weight: 700; }
.report-banner p span { color: var(--muted); font-weight: 400; }
.report-notes { display: grid; gap: 8px; }
.bot-row { flex-wrap: wrap; }
.check-result { flex-basis: 100%; font-size: .87rem; }
.check-result:empty { display: none; }
.chat { background: #f8f3f6; border: 1px solid var(--line); border-radius: 12px; min-height: 100px; max-height: 420px; overflow: auto; padding: 12px; display: grid; align-content: start; gap: 8px; color: var(--muted); font-size: .94rem; }
.chat article { display: grid; gap: 5px; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 9px; }
.chat article p { white-space: pre-wrap; color: var(--ink); }
.chat .button { min-height: 40px; }
.public main { padding: 22px; display: grid; place-items: center; min-height: 100dvh; background: radial-gradient(circle at 10% 10%, #fce4f2, transparent 42%), var(--canvas); }
.login-card { width: min(100%, 470px); background: white; border: 1px solid var(--line); border-radius: 25px; padding: clamp(22px, 5vw, 42px); box-shadow: 0 12px 50px #3826310b; }
.login-card > a img { width: 108px; margin-block-end: 26px; }
.login-card h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-block-end: 20px; }
.login-card p { margin-block: 10px 18px; }
.login-card form { display: grid; gap: 12px; }
.login-card .demo-caption { padding: 8px 10px; background: var(--canvas); border-radius: 9px; font-size: .82rem; margin-block-end: 0; }
.live { background: #120f12; color: white; min-height: 100dvh; }
.live main { min-height: 100dvh; display: grid; place-items: center; padding: 18px; }
.live-card { width: min(970px,100%); border: 1px solid #5b3150; border-radius: 27px; text-align: center; background: radial-gradient(circle at 50% 65%, #4b1537, transparent 60%), #1a1419; padding: clamp(18px, 4vw, 40px); }
.live-brands { display: flex; align-items: center; justify-content: center; gap: 10px; margin-block-end: 12px; }
.business-logo { max-width: 125px; max-height: 56px; border-radius: 6px; object-fit: contain; background: white; }
.live .eyebrow { color: #e9cddd; justify-content: center; }
.live h1 { font-size: clamp(2.5rem, 8vw, 6rem); }
.live-prize { color: #eee1ea; font-size: clamp(1.2rem, 3vw, 2.2rem); margin-block-start: 5px; }
.reveal { margin-block: 18px; display: grid; place-items: center; gap: 7px; min-height: 135px; padding: 15px; border: 1px solid #8d406e; border-radius: 19px; background: #20111b; color: #f1d4e6; }
.reveal strong { font-size: clamp(2.5rem, 10vw, 6rem); font-variant-numeric: tabular-nums; line-height: 1; color: white; }
.reveal.has-result { animation: reveal 780ms cubic-bezier(.2,.8,.3,1) both; }
@keyframes reveal { from { opacity: .1; transform: scale(.88); filter: blur(7px); } to { opacity: 1; transform: scale(1); filter: none; } }
.live-actions { justify-content: center; }
#toast { position: fixed; z-index: 6; inset-inline-end: 16px; inset-block-end: 16px; padding: 10px 16px; background: var(--ink); color: white; border-radius: 10px; max-width: calc(100vw - 32px); }
#toast:empty { display: none; }
@media (max-width: 1000px) {
  .shell { grid-template-columns: 184px minmax(0,1fr); }
  .rail { padding-inline: 12px; }
  .account-icon { display: none; }
  .split { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 700px) {
  .shell { display: block; }
  .rail { position: static; height: auto; border-inline-end: 0; border-block-end: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 14px 8px; }
  .brand { padding: 0; gap: 7px; }
  .brand strong { font-size: 1.35rem; }
  .brand small { font-size: .73rem; }
  .mark { width: 37px; height: 37px; }
  .mark img { width: 23px; }
  .account { grid-area: 1 / 2; padding: 0; margin: 0; border: 0; }
  .account strong { display: block; }
  .account small { display: none; }
  nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
  nav a { padding: 7px 8px; min-height: 40px; gap: 5px; font-size: .82rem; }
  nav svg { width: 15px; height: 15px; }
  .workspace { padding: 23px 15px 40px; }
  .page-head { display: grid; align-items: start; justify-content: start; gap: 12px; margin-block-end: 17px; }
  .page-head > .button { justify-self: start; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .metric { padding: 11px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  table, tbody, tr, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  tr { border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; margin-block-end: 7px; }
  td { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 0; text-align: left; }
  td:last-child { border: 0; }
  td::before { content: attr(data-label); font-weight: 700; color: var(--muted); text-align: right; }
  td small { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
