/* =========================================================================
   ממשק הפרויקט — portal.css
   אותה שפה כמו האתר של לילך (שמנת חימר, חלודה, אדמה, תכלת מאובקת), בגרסה של "מחברת עבודה".
   ========================================================================= */
:root {
  --clay: #EFE8DD;
  --paper: #F8F4EE;
  --white: #FFFDF9;
  --sand: #D9CBB5;
  --ink: #231C17;
  --ink-soft: #5B4F45;
  --rust: #8A3E22;
  --rust-deep: #62291A;
  --rust-wash: rgba(138, 62, 34, .08);
  --slate: #93A9B5;
  --slate-deep: #4E6875;
  --moss: #5D7A5B;
  --moss-wash: rgba(93, 122, 91, .12);
  --line: rgba(35, 28, 23, .14);

  --f-display: 'Frank Ruhl Libre', 'David', serif;
  --f-body: 'IBM Plex Sans Hebrew', 'Arial Hebrew', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius: 16px;
  --shadow: 0 1px 0 rgba(35, 28, 23, .04), 0 8px 24px -12px rgba(35, 28, 23, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--clay); color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  overflow-x: hidden;
}
/* גרעיניות עדינה כמו באתר */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .11 0 0 0 0 .09 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--rust); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.2; margin: 0; }
p { margin: 0 0 .8em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: .85em; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--ink-soft); }
[hidden] { display: none !important; }

/* ---------------- Top bar ---------------- */
.top { position: relative; z-index: 2; background: var(--ink); color: var(--paper); }
.top__in { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-family: var(--f-display); font-size: 20px; }
.brand__name span { color: #E3A68A; }
.brand__sub { font-size: 12.5px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__user { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.top__user .chip { background: rgba(255,255,255,.1); color: var(--paper); border-color: rgba(255,255,255,.2); }
.linkbtn { background: none; border: 0; padding: 6px 4px; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .8; }
.linkbtn:hover { opacity: 1; }

/* ---------------- Tabs ---------------- */
.tabs { position: sticky; top: 0; z-index: 5; background: rgba(239, 232, 221, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tabs__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs__in::-webkit-scrollbar { display: none; }
.tab { flex: none; display: flex; align-items: center; gap: 7px; padding: 14px 12px 12px; color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--rust); border-bottom-color: var(--rust); }
.tab .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rust); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.tab .count.ok { background: var(--moss); }

/* ---------------- Layout ---------------- */
main { position: relative; z-index: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 4vw, 44px) var(--gutter) 80px; }
.view { display: none; }
.view.is-on { display: block; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.head { margin-bottom: 26px; max-width: 760px; }
.kicker { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--rust); margin-bottom: 8px; direction: ltr; text-align: end; display: inline-block; }
.head h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 10px; }
.head p { color: var(--ink-soft); font-size: 17px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--shadow); min-width: 0; }
.card h2 { font-size: 24px; margin-bottom: 6px; }
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.strata { display: block; width: 100%; height: 22px; color: var(--ink); opacity: .55; margin: 28px 0; }

/* ---------------- Buttons & chips ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid transparent; background: var(--ink); color: var(--paper); font-weight: 500; cursor: pointer; text-decoration: none; transition: background .2s, transform .1s; min-height: 44px; }
.btn:hover { background: var(--rust-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--rust { background: var(--rust); }
.btn--rust:hover { background: var(--rust-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); }
.btn--sm { padding: 7px 13px; min-height: 36px; font-size: 14px; }
.btn--danger { background: transparent; color: #9B2C1A; border-color: rgba(155, 44, 26, .35); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 13px; white-space: nowrap; }
.chip--code { font-family: var(--f-mono); font-size: 12px; direction: ltr; background: var(--rust-wash); border-color: rgba(138,62,34,.25); color: var(--rust-deep); cursor: pointer; }
.chip--ok { background: var(--moss-wash); border-color: rgba(93,122,91,.35); color: #3E5A3C; }
.chip--wait { background: rgba(147,169,181,.18); border-color: rgba(78,104,117,.3); color: var(--slate-deep); }
.chip--rust { background: var(--rust); border-color: var(--rust); color: #fff; }

/* Segmented control */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--ink-soft); min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Checkbox */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; border: 1.5px solid var(--ink-soft); border-radius: 7px; background: var(--white); display: grid; place-content: center; cursor: pointer; transition: background .15s, border-color .15s; }
.check input::after { content: ''; width: 12px; height: 7px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--moss); border-color: var(--moss); }
.check input:checked::after { opacity: 1; }
.check input:disabled { cursor: default; }
.check input:disabled:not(:checked) { background: transparent; border-style: dashed; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: 14.5px; }
.input, textarea.input, select.input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); min-height: 44px; }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.55; }
.input:focus { outline: 2px solid var(--rust); outline-offset: 0; border-color: transparent; }

/* ---------------- Overview ---------------- */
.hello { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 900px) { .hello { grid-template-columns: 1fr; } }
.hello__main { background: var(--ink); color: var(--paper); border-color: transparent; position: relative; overflow: hidden; }
.hello__main h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 6px 0 12px; }
.hello__main p { color: rgba(248, 244, 238, .78); max-width: 52ch; }
.hello__main .kicker { color: #E3A68A; }
.hello__main .btn { background: var(--paper); color: var(--ink); }
.hello__main .btn:hover { background: #fff; }
.hello__main .btn--ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.3); }
.pebble-deco { position: absolute; inset-inline-start: -60px; inset-block-end: -80px; width: 260px; height: 220px; background: var(--rust); border-radius: 58% 42% 47% 53% / 51% 46% 54% 49%; opacity: .55; filter: blur(.3px); }
.hello__main > *:not(.pebble-deco) { position: relative; }
.progress { margin: 16px 0 6px; }
.progress__bar { height: 10px; border-radius: 5px; background: var(--sand); overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--moss); border-radius: 5px; transition: width .6s var(--ease); }
.progress__lbl { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-decoration: none; color: inherit; }
.stat b { display: block; font-family: var(--f-display); font-size: 28px; line-height: 1; font-weight: 500; }
.stat span { font-size: 13px; color: var(--ink-soft); }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.todo li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.todo li::before { content: ''; flex: none; width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--rust); }

/* ---------------- Included ---------------- */
.feat { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.feat li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.feat li::before { content: '✓'; width: 26px; height: 26px; border-radius: 50%; background: var(--moss-wash); color: var(--moss); display: grid; place-content: center; font-weight: 700; font-size: 14px; }
.feat--no li::before { content: '–'; background: rgba(35,28,23,.06); color: var(--ink-soft); }
.feat b { display: block; font-weight: 600; }
.feat span { color: var(--ink-soft); font-size: 15px; }
.note { border-inline-start: 3px solid var(--rust); background: var(--rust-wash); padding: 14px 16px; border-radius: 0 12px 12px 0; }

/* ---------------- Tools ---------------- */
.tool { display: flex; flex-direction: column; gap: 8px; }
.tool__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tool__role { font-size: 13px; color: var(--rust); font-weight: 600; }
.tool__cost { font-family: var(--f-display); font-size: 22px; line-height: 1.2; }
.tool__note { font-size: 14px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }
.tier { font-size: 12px; }
.costs { display: grid; gap: 10px; margin: 0; }
.costs div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.costs dt { font-weight: 600; } .costs dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 600px) { .costs div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------------- Stages ---------------- */
.stages { display: grid; gap: 16px; counter-reset: st; }
.stage { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.stage__dot { width: 48px; height: 48px; border-radius: 46% 54% 51% 49% / 55% 47% 53% 45%; background: var(--white); border: 1.5px solid var(--line); display: grid; place-content: center; font-family: var(--f-display); font-size: 20px; position: relative; }
.stage { position: relative; }
.stage:not(:last-child)::before { content: ''; position: absolute; top: 54px; bottom: -12px; inset-inline-start: 23px; width: 1.5px; background: var(--line); }
.stage.is-done .stage__dot { background: var(--moss); color: #fff; border-color: var(--moss); }
.stage.is-now .stage__dot { background: var(--rust); color: #fff; border-color: var(--rust); }
.stage__items { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.stage__items li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.stage__items .check span { padding-top: 1px; }
.stage__items .is-checked span { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(35,28,23,.3); }
.who { font-size: 12px; flex: none; }

/* ---------------- Demo ---------------- */
.demo-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.demo-bar .grow { flex: 1; }
.toggle { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; min-height: 44px; font-weight: 500; }
.toggle__sw { width: 38px; height: 22px; border-radius: 11px; background: var(--sand); position: relative; transition: background .2s; }
.toggle__sw::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s var(--ease); }
.toggle[aria-pressed="true"] { border-color: var(--rust); color: var(--rust); }
.toggle[aria-pressed="true"] .toggle__sw { background: var(--rust); }
.toggle[aria-pressed="true"] .toggle__sw::after { inset-inline-start: 19px; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .demo { grid-template-columns: 1fr; } }
.stage-frame { background: #2d2621; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.stage-frame__in { margin: 0 auto; width: 100%; transition: width .35s var(--ease); background: var(--clay); border-radius: 8px; overflow: hidden; }
.stage-frame.is-phone .stage-frame__in { width: 390px; max-width: 100%; border-radius: 22px; }
.stage-frame iframe { display: block; width: 100%; height: calc(100vh - 210px); min-height: 520px; border: 0; background: var(--clay); }
.demo-hint { font-size: 14px; color: var(--ink-soft); margin: 10px 2px 0; }
.side { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow: auto; }
.side h3 { font-size: 18px; }
.mini { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.mini li { padding: 10px 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); cursor: pointer; font-size: 14.5px; }
.mini li:hover { border-color: var(--rust); }
.mini li.done { opacity: .6; }
.mini .n { font-weight: 700; color: var(--rust); margin-inline-end: 6px; }

/* ---------------- Comments ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.clist { display: grid; gap: 14px; }
.cmt { display: grid; gap: 10px; }
.cmt.is-done { background: #F2F0EA; }
.cmt__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cmt__n { font-family: var(--f-display); font-size: 22px; color: var(--rust); line-height: 1; margin-inline-end: 4px; }
.cmt__meta { font-size: 13px; color: var(--ink-soft); margin-inline-start: auto; }
.cmt__text { white-space: pre-wrap; font-size: 16px; margin: 0; }
.cmt.is-done .cmt__text { color: var(--ink-soft); }
.cmt__snip { font-size: 13px; color: var(--ink-soft); border-inline-start: 2px solid var(--sand); padding-inline-start: 10px; }
.cmt__reply { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 15px; white-space: pre-wrap; }
.cmt__reply b { color: var(--slate-deep); display: block; font-size: 13px; }
.cmt__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px dashed var(--line); padding-top: 10px; }
.cmt__actions .grow { flex: 1; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-soft); }
.empty svg { width: 64px; height: 64px; margin: 0 auto 10px; color: var(--sand); }

/* ---------------- Questions ---------------- */
.qa { display: grid; gap: 10px; }
.qa__q { font-family: var(--f-display); font-size: 20px; }
.qa__hint { font-size: 14px; color: var(--ink-soft); margin: 0; }
.qa__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qa__row .grow { flex: 1; }
.qa.is-resolved { opacity: .75; }

/* ---------------- Proposal ---------------- */
.prop { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 48px); box-shadow: var(--shadow); max-width: 860px; }
.prop__head { border-bottom: 2px solid var(--ink); padding-bottom: 20px; margin-bottom: 8px; }
.prop__kicker { color: var(--rust); font-weight: 600; margin: 0; }
.prop__title { font-size: clamp(28px, 4vw, 40px); margin: 4px 0 18px; }
.prop__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.prop__meta dt { font-size: 12.5px; color: var(--ink-soft); }
.prop__meta dd { margin: 0; font-weight: 500; }
@media (max-width: 600px) { .prop__meta { grid-template-columns: 1fr; } }
.prop__total { font-family: var(--f-display); font-size: clamp(30px, 5vw, 42px); margin: 22px 0 0; line-height: 1; }
.prop__total span { font-family: var(--f-body); font-size: 15px; color: var(--ink-soft); margin-inline-end: 6px; }
.prop__total small { font-family: var(--f-body); font-size: 14px; color: var(--ink-soft); }
.prop__sec h3 { font-size: 22px; margin: 30px 0 10px; display: flex; gap: 12px; align-items: baseline; }
.prop__sec h3 span { font-family: var(--f-mono); font-size: 13px; color: var(--rust); }
.prop__sec h4 { font-family: var(--f-body); font-weight: 600; font-size: 16px; margin: 16px 0 6px; }
.prop__sec ul { padding-inline-start: 20px; margin: 6px 0 12px; }
.prop__sec li { margin: 5px 0; }
.prop__sec li b { font-weight: 600; }
.sign { margin-top: 28px; max-width: 860px; }
.sign h2 { font-size: 26px; }
.sigpad { position: relative; border: 1.5px dashed var(--ink-soft); border-radius: 14px; background: var(--white); touch-action: none; }
.sigpad canvas { display: block; width: 100%; height: 190px; cursor: crosshair; }
.sigpad__line { position: absolute; inset-inline: 24px; bottom: 44px; border-bottom: 1px solid var(--sand); pointer-events: none; }
.sigpad__ph { position: absolute; inset-inline-start: 24px; bottom: 16px; font-size: 13px; color: var(--ink-soft); pointer-events: none; }
.sigpad__clear { position: absolute; top: 8px; inset-inline-end: 8px; }
.signed { border: 2px solid var(--moss); background: var(--moss-wash); }
.signed img { background: #fff; border-radius: 10px; max-width: 320px; border: 1px solid var(--line); margin: 10px 0; }
.pay { display: grid; gap: 8px; margin: 12px 0 0; }
.pay div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.pay dt { color: var(--ink-soft); } .pay dd { margin: 0; font-weight: 500; }

/* ---------------- Dialog & toast ---------------- */
dialog { border: 0; padding: 0; border-radius: 20px; background: var(--paper); color: var(--ink); width: min(560px, calc(100vw - 24px)); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(35, 28, 23, .45); backdrop-filter: blur(2px); }
.dlg { padding: 22px; }
.dlg h2 { font-size: 24px; margin-bottom: 8px; }
.dlg__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }
@media (max-width: 600px) {
  dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 20px 20px 0 0; }
}
.toast { position: fixed; inset-inline: 0; bottom: 20px; margin: 0 auto; width: max-content; max-width: calc(100vw - 32px); z-index: 50; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); font-size: 15px; transform: translateY(80px); opacity: 0; transition: all .3s var(--ease); }
.toast.is-on { transform: none; opacity: 1; }
.toast.is-err { background: #9B2C1A; }

/* ---------------- Login ---------------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; z-index: 1; }
.login__card { width: min(420px, 100%); }
.login__card h1 { font-size: 32px; margin: 10px 0 6px; }
.login__err { color: #9B2C1A; min-height: 1.6em; font-size: 14.5px; }

@media (max-width: 600px) {
  .brand__sub { display: none; }
  .top__user .chip { display: none; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat b { font-size: 24px; }
  .stage { grid-template-columns: 36px 1fr; gap: 12px; }
  .stage__dot { width: 36px; height: 36px; font-size: 16px; }
  .stage:not(:last-child)::before { top: 42px; inset-inline-start: 17px; }
  .stage-frame { padding: 6px; }
  .stage-frame iframe { height: calc(100vh - 230px); min-height: 460px; }
  .pay div { grid-template-columns: 1fr; gap: 0; }
}

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

@media print {
  body { background: #fff; }
  body::before, .top, .tabs, .sign, .no-print, .toast { display: none !important; }
  .view { display: none !important; }
  #v-proposal { display: block !important; }
  .wrap { padding: 0; }
  .prop { box-shadow: none; border: 0; padding: 0; }
}
