/* EventRent v2 — "Modern celebration": festive gradient, glass cards, big bold numbers.
   Phone first (floating bottom bar), dark sidebar from 900 px, right rail on the home from 1280 px, dark mode, A4 print. */
@font-face { font-family: "Jakarta"; font-weight: 400; font-display: swap; src: url(../fonts/pjs-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; font-weight: 500; font-display: swap; src: url(../fonts/pjs-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; font-weight: 600; font-display: swap; src: url(../fonts/pjs-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; font-weight: 700; font-display: swap; src: url(../fonts/pjs-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; font-weight: 800; font-display: swap; src: url(../fonts/pjs-latin-800.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; font-weight: 400; font-display: swap; src: url(../fonts/pjs-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jakarta"; font-weight: 700; font-display: swap; src: url(../fonts/pjs-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jakarta"; font-weight: 800; font-display: swap; src: url(../fonts/pjs-latin-ext-800.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --grad: linear-gradient(135deg, #e0218a 0%, #7b2ff7 55%, #ff9f1c 125%);
  --grad-soft: linear-gradient(135deg, #fde7f3 0%, #efe6ff 60%, #fff3dc 100%);
  --magenta: #e0218a; --violet: #7b2ff7; --amber: #ff9f1c;
  --bg: #f7f3fd; --surface: #ffffff; --surface-2: #f4effc; --surface-3: #efe8fb;
  --line: #ece6f6; --text: #1c1230; --muted: #7a7090; --on-grad: #ffffff;
  --brand: #7b2ff7; --brand-strong: #6420d8;
  --ok: #0f9e6e; --ok-soft: #dcf7ec; --warn: #c27800; --warn-soft: #fff1d6; --warn-bright: #f59e0b;
  --bad: #e2334f; --bad-soft: #ffe4e9; --info: #3f55e8; --info-soft: #e8ecff; --gray-soft: #eeebf2;
  --wa: linear-gradient(135deg, #25d366, #0fa958);
  --shadow: 0 14px 34px -18px rgba(70, 25, 140, .38);
  --shadow-lift: 0 16px 36px -14px rgba(123, 47, 247, .38);
  --radius: 22px; --radius-sm: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grad-soft: linear-gradient(135deg, #3a1630 0%, #2a1c48 60%, #3a2a14 100%);
    --bg: #120d1c; --surface: #1d1629; --surface-2: #261d36; --surface-3: #2f2442;
    --line: #34294a; --text: #f3edfb; --muted: #a99ebd;
    --brand: #b48bff; --brand-strong: #c9a8ff;
    --ok: #4dd4a0; --ok-soft: #133528; --warn: #f5b553; --warn-soft: #3a2a10; --bad: #ff7b8d; --bad-soft: #3d1820;
    --info: #92a6ff; --info-soft: #1b2346; --gray-soft: #2a2236;
    --shadow: 0 14px 34px -18px rgba(0, 0, 0, .6); --shadow-lift: 0 16px 36px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0; font: 15px/1.45 "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text); background: var(--bg); -webkit-tap-highlight-color: transparent;
  background-image: radial-gradient(900px 500px at 0% 100%, rgba(224, 33, 138, .06), transparent 60%), radial-gradient(900px 500px at 100% 60%, rgba(123, 47, 247, .06), transparent 60%);
  background-attachment: fixed;
}
body.modal-open { overflow: hidden; }
a { color: var(--brand); text-decoration: none; }
h1 { font-size: 1.6rem; line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 1.02rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: .95rem; margin: 0 0 6px; font-weight: 800; }
p { margin: 0 0 8px; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .84em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 2px; border-radius: 8px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.ic-sm { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; }
.muted { color: var(--muted); } .small { font-size: .84rem; }
.quiet { color: var(--muted); padding: 6px 0; display: flex; align-items: center; gap: 4px; }
.card-quiet { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 14px; }
.pre { white-space: pre-line; } .center { text-align: center; } .top-gap { margin-top: 14px; }
.okay, .ok-text { color: var(--ok); } .due, .bad-text { color: var(--bad); } .warn-text { color: var(--warn); } .danger-text { color: var(--bad) !important; }
.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font-weight: 700; font-size: .88rem; text-align: left; }
.link:hover { text-decoration: underline; }
.grow { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- shell */
.brand { display: flex; align-items: center; gap: 11px; color: inherit; min-width: 0; }
.logo { width: 40px; height: 40px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); box-shadow: 0 10px 22px -8px rgba(224, 33, 138, .7); }
.brand-txt { display: flex; flex-direction: column; min-width: 0; }
.brand-txt b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-txt small { font-size: .74rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + var(--safe-t)) var(--gutter) 6px;
}
.top .logo { background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .35); box-shadow: none; backdrop-filter: blur(6px); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.glass-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 40px; padding: 0 10px;
  border-radius: 13px; color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .32); backdrop-filter: blur(8px); cursor: pointer;
}
.glass-btn.txt { font-weight: 800; font-size: .8rem; letter-spacing: .05em; }
.glass-btn.ghosted { visibility: hidden; }
.glass-btn .n, .side-nav .n {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; border-radius: 99px; padding: 0 5px; font-size: .68rem; font-weight: 800;
  background: #fff; color: var(--magenta); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.side { display: none; }
#main { padding: 0 var(--gutter) calc(120px + var(--safe-b)); max-width: 1280px; margin: 0 auto; outline: none; }
body.bare #main { padding-bottom: 40px; }
body.bare .top, body.bare .bottom-nav { display: none !important; }
/* pages with their own back bar in the coloured header */
body[data-view="bookingDetail"] .top, body[data-view="help"] .top { display: none; }
body[data-view="bookingForm"] #main { padding-top: calc(12px + var(--safe-t)); }

.bottom-nav {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 30; height: 68px;
  display: grid; grid-template-columns: 1fr 1fr 76px 1fr 1fr; align-items: center;
  border-radius: 26px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid color-mix(in srgb, var(--surface) 60%, transparent); box-shadow: 0 18px 40px -14px rgba(60, 20, 120, .5);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.bottom-nav a .ic { width: 23px; height: 23px; }
.bottom-nav a.active { color: var(--violet); }
.bottom-nav a.active .ic { filter: drop-shadow(0 4px 8px rgba(123, 47, 247, .45)); }
.bottom-nav .fab {
  width: 62px; height: 62px; border-radius: 22px; margin: -30px auto 0; display: flex; align-items: center; justify-content: center; color: #fff;
  background: var(--grad); box-shadow: 0 14px 30px -8px rgba(224, 33, 138, .75), 0 0 0 6px var(--bg);
}
.bottom-nav .fab .ic { width: 29px; height: 29px; stroke-width: 2.6; }

@media (min-width: 900px) {
  :root { --gutter: 30px; }
  #app.signed { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
  .side {
    display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; height: 100vh; padding: 22px 16px; overflow: hidden;
    background: #1c1230; color: #fff;
  }
  .side::before, .side::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
  .side::before { left: -70px; bottom: -70px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(224, 33, 138, .45), transparent 70%); }
  .side::after { right: -100px; top: 150px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(123, 47, 247, .45), transparent 70%); }
  .side > * { position: relative; z-index: 1; }
  .side .brand { margin: 0 6px 18px; }
  .side-nav { display: flex; flex-direction: column; gap: 3px; }
  .side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; font-weight: 700; font-size: .92rem; color: rgba(255, 255, 255, .72); text-decoration: none; }
  .side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .side-nav a.active { background: rgba(255, 255, 255, .11); color: #fff; box-shadow: inset 3px 0 0 #ff5fa2; }
  .side-nav .n { position: static; margin-left: auto; background: var(--grad); color: #fff; box-shadow: none; }
  .new-btn { margin: 14px 4px 4px; height: 48px; border-radius: 16px; background: var(--grad); color: #fff; font-weight: 800; font-size: .92rem; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 12px 26px -10px rgba(224, 33, 138, .8); text-decoration: none; }
  .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
  .sync-card { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 12px; font-size: .78rem; }
  .sync-card b { display: block; font-size: .85rem; }
  .sync-card small { opacity: .7; }
  .sync-card .dot { width: 9px; height: 9px; border-radius: 99px; background: #2be38a; margin-top: 5px; flex: none; box-shadow: 0 0 0 4px rgba(43, 227, 138, .18); }
  .sync-card .dot.warn { background: #ffb020; box-shadow: 0 0 0 4px rgba(255, 176, 32, .18); }
  .sync-card .dot.off { background: #ff6b81; box-shadow: 0 0 0 4px rgba(255, 107, 129, .18); }
  .langs { display: flex; gap: 6px; }
  .langs button { flex: 1; padding: 8px; border-radius: 11px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; font-size: .78rem; font-weight: 800; cursor: pointer; }
  .langs button.on { background: #fff; color: #1c1230; }
  .top, .bottom-nav { display: none !important; }
  #main { padding: 0 var(--gutter) 60px; width: 100%; }
  h1 { font-size: 1.9rem; }
}
@media (max-width: 899px) { .hide-mobile { display: none !important; } }
@media (max-width: 520px) { .hide-xs { display: none !important; } }
@media (min-width: 521px) { .show-xs { display: none !important; } }

/* ---------------------------------------------------------------- hero (coloured page header) */
.hero {
  position: relative; overflow: hidden; color: var(--on-grad); background: var(--grad);
  margin: 0 calc(-1 * var(--gutter)); padding: calc(64px + var(--safe-t)) var(--gutter) 70px; border-radius: 0 0 34px 34px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 14% 30%, rgba(255, 255, 255, .55) 0 2px, transparent 3px), radial-gradient(circle at 78% 18%, rgba(255, 230, 120, .9) 0 3px, transparent 4px),
    radial-gradient(circle at 60% 62%, rgba(255, 255, 255, .45) 0 2px, transparent 3px), radial-gradient(circle at 92% 70%, rgba(255, 180, 220, .9) 0 3px, transparent 4px),
    radial-gradient(circle at 36% 84%, rgba(255, 240, 170, .8) 0 2px, transparent 3px), radial-gradient(circle at 47% 22%, rgba(255, 255, 255, .7) 0 1.5px, transparent 2.5px);
}
.hero-in { position: relative; z-index: 1; }
.cf { position: absolute; width: 11px; height: 4px; border-radius: 2px; opacity: .85; animation: drift 9s ease-in-out infinite alternate; }
.cf1 { left: 76%; top: 34%; background: #ffe27a; transform: rotate(30deg); }
.cf2 { left: 64%; top: 58%; background: #fff; transform: rotate(-40deg); animation-delay: -3s; }
.cf3 { left: 88%; top: 76%; background: #ffb3d9; transform: rotate(70deg); animation-delay: -5s; }
.cf4 { left: 30%; top: 20%; background: #ffd36b; transform: rotate(-20deg); animation-delay: -2s; width: 8px; }
.cf5 { left: 8%; top: 70%; background: #fff; transform: rotate(50deg); animation-delay: -7s; width: 7px; }
.cf6 { left: 50%; top: 88%; background: #ff9ccc; transform: rotate(-60deg); animation-delay: -4s; }
@keyframes drift { from { translate: 0 0; } to { translate: 6px -10px; } }
@media (prefers-reduced-motion: reduce) { .cf { animation: none; } }
@media (min-width: 900px) {
  .hero { padding-top: 30px; border-radius: 0 0 34px 34px; }
}
.hello { font-size: .95rem; opacity: .92; }
.big { font-size: 2.9rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.big small { font-size: 1.1rem; font-weight: 700; opacity: .85; margin-left: 6px; letter-spacing: 0; }
.big-title { font-size: 2.2rem; margin: 8px 0 6px; }
.trend { display: inline-flex; align-items: center; background: rgba(255, 255, 255, .2); border-radius: 99px; padding: 5px 12px; font-size: .8rem; font-weight: 700; }
.sub, .ph-sub { font-size: .86rem; opacity: .9; margin: 8px 0 0; }
.home-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.spark { width: 300px; height: 70px; flex: none; }
.spark path { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: #fff; }
@media (min-width: 900px) { .big { font-size: 3.6rem; } }
.ph-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ph-act { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-page { padding-bottom: 66px; }
.hero-page h1 { font-size: 1.9rem; }
.shimmer { opacity: .7; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.overlap { position: relative; z-index: 2; margin-top: -48px; }
.overlap-sm { position: relative; z-index: 2; margin-top: -22px; }

/* booking header */
.hero-bar { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 16px; }
.hero-no { font-weight: 700; font-size: .85rem; opacity: .92; }
@media (max-width: 899px) { .hero-booking, .hero-help { padding-top: calc(12px + var(--safe-t)); } }
.hero-booking { padding-bottom: 86px; }
.dh { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.dh h1 { font-size: 1.95rem; margin: 10px 0 6px; }
.kind { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 800; background: rgba(255, 255, 255, .22); border-radius: 99px; padding: 5px 12px; }
.dmeta { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; opacity: .95; }
.dmeta span { display: flex; align-items: center; }
.countdown { flex: none; text-align: center; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); border-radius: 20px; padding: 10px 14px; min-width: 76px; }
.countdown b { display: block; font-size: 1.9rem; line-height: 1; font-weight: 800; }
.countdown b .ic { width: 28px; height: 28px; }
.countdown span { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.countdown.live { background: rgba(255, 255, 255, .32); }

/* ---------------------------------------------------------------- cards and figures */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); min-width: 0;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.count { display: inline-flex; min-width: 22px; height: 22px; padding: 0 7px; align-items: center; justify-content: center; border-radius: 99px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; }
.count.due { background: var(--bad); }
.sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 4px 10px; flex-wrap: wrap; }
.sec h2 { margin: 0; font-size: 1.05rem; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.stat {
  display: flex; flex-direction: column; gap: 3px; padding: 13px 13px 14px; border-radius: 20px; color: var(--text); text-decoration: none; min-width: 0;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--surface); box-shadow: var(--shadow-lift);
}
.stat:hover { transform: translateY(-1px); }
.stat-l { font-size: .72rem; color: var(--muted); font-weight: 700; display: flex; align-items: flex-start; gap: 6px; line-height: 1.25; min-height: 2.5em; }
.stat-l .dot { margin-top: 4px; }
.stat-v .cur { font-size: .7em; font-weight: 700; margin-left: 3px; opacity: .8; }
@media (max-width: 520px) { .stat-v .cur { display: none; } }
.stat-l .dot { width: 8px; height: 8px; border-radius: 99px; flex: none; background: var(--violet); }
.st-ok .dot { background: var(--ok); } .st-bad .dot { background: var(--bad); } .st-info .dot { background: var(--info); } .st-net .dot { background: var(--amber); }
.stat-v { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.st-bad .stat-v { color: var(--bad); } .st-net .stat-v { color: var(--ok); }
.stat-s { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .stat { padding: 16px 18px; } .stat-v { font-size: 1.55rem; } .stat-l { font-size: .8rem; } }
@media (max-width: 420px) { .stat-s { display: none; } .stat-v { font-size: 1rem; } }
.stat.skel { height: 74px; background: var(--surface-2); animation: pulse 1.2s ease-in-out infinite; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lift); min-width: 0; }
.kpi-label { color: var(--muted); font-size: .78rem; font-weight: 700; display: flex; align-items: center; }
.kpi b { font-size: 1.3rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi.due b { color: var(--bad); } .kpi.good b { color: var(--ok); }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border-radius: 18px; margin: 14px 0; border: 1px solid transparent; }
.alert > .ic { margin-top: 2px; }
.alert > div { flex: 1; min-width: 0; }
.alert ul { margin: 6px 0; padding-left: 18px; }
.alert p:last-child { margin: 0; }
.alert.info { background: var(--info-soft); color: var(--info); } .alert.info > div { color: var(--text); }
.alert.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 28%, transparent); } .alert.bad > div { color: var(--text); } .alert.bad b { color: var(--bad); }
.alert.warn { background: var(--warn-soft); color: var(--warn); } .alert.warn > div { color: var(--text); }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .ic { width: 46px; height: 46px; stroke-width: 1.4; margin-bottom: 8px; color: var(--violet); }
.empty p { max-width: 420px; margin: 0 auto 14px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 17px; border-radius: 15px;
  border: 1px solid transparent; font-weight: 800; font-size: .9rem; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 12px 24px -12px rgba(224, 33, 138, .8); }
.btn.primary:hover:not(:disabled) { box-shadow: 0 14px 28px -10px rgba(224, 33, 138, .9); }
.btn.primary.blocked { filter: grayscale(.6); opacity: .6; box-shadow: none; }
.btn.ghost, .btn.soft { background: var(--surface-2); color: var(--text); }
.btn.ghost { background: var(--surface); border-color: var(--line); }
.btn.soft:hover, .btn.ghost:hover { background: var(--surface-3); }
.btn.white { background: #fff; color: var(--violet); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .35); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.wa { background: var(--wa); color: #fff; box-shadow: 0 8px 18px -8px #13b35e; }
.btn.sm { min-height: 38px; padding: 6px 13px; font-size: .84rem; border-radius: 12px; }
.btn.block { width: 100%; margin-top: 12px; }
.btn.busy { opacity: .7; pointer-events: none; }
.btn.busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 13px; border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.soft { background: var(--surface-2); color: var(--text); }
.round-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 16px; border: 0; background: var(--surface-2); color: var(--violet); cursor: pointer; flex: none; }
.round-btn.send { background: var(--grad); color: #fff; box-shadow: 0 10px 20px -10px rgba(224, 33, 138, .8); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file-btn { position: relative; }

.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: .68rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; flex: none; }
.st-quote { background: var(--warn-soft); color: var(--warn); }
.st-confirmed { background: var(--info-soft); color: var(--info); }
.st-completed { background: var(--ok-soft); color: var(--ok); }
.st-cancelled { background: var(--gray-soft); color: var(--muted); }

.avatar { width: 40px; height: 40px; border-radius: 14px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--surface-3); color: var(--violet); position: relative; }
.avatar.grad { background: linear-gradient(140deg, #ffd166, #ff5fa2); color: #fff; }
.avatar.big { width: 52px; height: 52px; border-radius: 18px; font-size: 1.2rem; }
.avatar.online::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 99px; background: #2be38a; border: 2px solid #b02be0; }

/* ---------------------------------------------------------------- home */
.home-grid { display: grid; gap: 0 22px; grid-template-columns: minmax(0, 1fr); }
.home-main, .home-rail, .detail-main, .detail-side { min-width: 0; }
@media (min-width: 1280px) { .home-grid { grid-template-columns: minmax(0, 1fr) 330px; } .home-rail { margin-top: 20px; } }
@media (max-width: 1279px) { .home-rail { display: none; } }
.rem-row { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rem-row::-webkit-scrollbar { display: none; }
.rem {
  flex: none; width: min(300px, 82vw); scroll-snap-align: start; border-radius: 24px; padding: 15px; background: var(--surface); position: relative; overflow: hidden;
  box-shadow: 0 14px 34px -16px rgba(224, 33, 138, .45); border: 1px solid color-mix(in srgb, var(--magenta) 14%, var(--line));
}
.rem::before { content: ""; position: absolute; right: -36px; top: -36px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 33, 138, .16), transparent 70%); }
.rem .when { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 800; color: var(--magenta); background: color-mix(in srgb, var(--magenta) 12%, transparent); border-radius: 99px; padding: 4px 10px; }
.rem .who { display: block; font-weight: 800; font-size: 1.05rem; margin: 9px 0 2px; color: var(--text); }
.rem .what { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rem-actions { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.rem-actions .btn.wa { flex: 1; }
.welcome { padding: 22px; }
.steps { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: center; }
.step-n { width: 30px; height: 30px; flex: none; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.rail-card h2 { font-size: .98rem; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: .78rem; font-weight: 700; }
.mini-cal .w { color: var(--muted); font-size: .68rem; padding: 3px 0; }
.mini-cal a { height: 34px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; color: var(--text); text-decoration: none; }
.mini-cal a:hover { background: var(--surface-2); }
.mini-cal a.o { color: var(--muted); opacity: .45; }
.mini-cal a.t { background: var(--grad); color: #fff; box-shadow: 0 8px 16px -8px rgba(224, 33, 138, .8); }
.mini-cal a i { position: absolute; bottom: 4px; display: flex; gap: 2px; }
.mini-cal a i b { width: 5px; height: 5px; border-radius: 9px; display: block; }
.dot-confirmed { background: var(--info); } .dot-quote { background: var(--warn-bright); } .dot-completed { background: var(--ok); }
.sr { margin-bottom: 11px; }
.sr-t { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; font-weight: 700; margin-bottom: 5px; }
.sr-t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; }
.m-ok { background: var(--grad); } .m-warn { background: var(--warn-bright); } .m-bad { background: var(--bad); }
.dev-card { display: block; color: var(--text); text-decoration: none; background: var(--grad-soft); border-color: color-mix(in srgb, var(--magenta) 16%, var(--line)); }
.dev-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dev-head b { display: block; font-size: .9rem; } .dev-head small { color: var(--muted); font-size: .74rem; }
.dev-head .count { margin-left: auto; }
.dev-card p { font-size: .84rem; margin: 0; }
.fake-input { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border-radius: 14px; padding: 8px 8px 8px 12px; font-size: .82rem; color: var(--muted); }
.fake-input .ic { width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: var(--grad); color: #fff; }

/* ---------------------------------------------------------------- booking rows */
.blist { display: flex; flex-direction: column; gap: 9px; }
.brow {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: 0 8px 22px -16px rgba(60, 20, 120, .45);
  transition: transform .12s, box-shadow .12s;
}
.brow:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.card .brow { box-shadow: none; background: var(--surface-2); border-color: transparent; }
.datebox { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 56px; border-radius: 17px; color: #fff; font-weight: 800; background: linear-gradient(140deg, #e0218a, #a12bf2); }
.datebox b { font-size: 1.25rem; line-height: 1; }
.datebox span { font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; }
.dg-confirmed { background: linear-gradient(140deg, #7b2ff7, #4f6bff); }
.dg-quote { background: linear-gradient(140deg, #ffb020, #ff7a1c); }
.dg-completed { background: linear-gradient(140deg, #12b07a, #23a6b8); }
.dg-cancelled { background: linear-gradient(140deg, #a59bb8, #857a99); }
.st-line-cancelled { opacity: .66; }
.st-line-cancelled strong { text-decoration: line-through; }
.brow-main { min-width: 0; }
.brow-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.brow-top strong { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-dot { color: var(--bad); display: inline-flex; }
.brow-sub { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 5px; background: var(--surface-3); border-radius: 99px; margin-top: 7px; overflow: hidden; max-width: 200px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.brow-money { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; font-variant-numeric: tabular-nums; }
.brow-money b { white-space: nowrap; font-weight: 800; }
.brow-money small { white-space: nowrap; font-weight: 700; font-size: .74rem; display: inline-flex; align-items: center; }
@media (max-width: 420px) {
  .brow { grid-template-columns: 46px minmax(0, 1fr); }
  .datebox { width: 46px; height: 50px; }
  .brow-money { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: baseline; }
}
.month-head { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 20px 4px 9px; }

/* ---------------------------------------------------------------- summary strip, toolbar */
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow-lift); border: 1px solid var(--line); }
.sum-cell { background: var(--surface); padding: 13px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sum-cell span { font-size: .74rem; color: var(--muted); font-weight: 700; }
.sum-cell b { font-size: 1.12rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.sum-cell.ok b { color: var(--ok); } .sum-cell.due b { color: var(--bad); } .sum-cell.due.zero b { color: var(--ok); } .sum-cell.warn b { color: var(--warn); }
.sum-note { grid-column: 1 / -1; background: var(--surface-2); margin: 0; padding: 8px 14px; font-size: .76rem; color: var(--muted); }
@media (max-width: 420px) { .sum-cell { padding: 11px 10px; } .sum-cell b { font-size: .98rem; } }
@media (min-width: 900px) { .sum-cell b { font-size: 1.4rem; } }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 10px; }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 0 14px; min-height: 48px; color: var(--muted); box-shadow: 0 8px 20px -16px rgba(60, 20, 120, .4); }
.search:focus-within { border-color: var(--violet); }
.search input { flex: 1; border: 0; background: transparent; outline: none; min-height: 44px; font-size: 16px; color: var(--text); min-width: 0; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 15px; padding: 4px; gap: 3px; flex-wrap: wrap; }
.seg button, .seg a { border: 0; background: transparent; padding: 8px 14px; border-radius: 11px; font-weight: 800; font-size: .84rem; cursor: pointer; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; }
.seg [aria-pressed="true"] { background: var(--surface); color: var(--violet); box-shadow: 0 6px 14px -8px rgba(63, 85, 232, .55); }
.seg-glass { background: rgba(255, 255, 255, .16); }
.seg-glass a { color: rgba(255, 255, 255, .85); }
.seg-glass [aria-pressed="true"] { background: #fff; color: var(--violet); }
.chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 4px; scrollbar-width: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 13px; font-weight: 800; font-size: .8rem; cursor: pointer; color: var(--text); }
.chip span { color: var(--muted); font-weight: 700; margin-left: 2px; }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; }
.chip[aria-pressed="true"] span { color: inherit; opacity: .85; }

/* ---------------------------------------------------------------- booking page */
.detail-grid { display: grid; gap: 0 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.money-card { padding: 18px; }
.money { display: flex; align-items: center; gap: 18px; }
.ring { width: 104px; height: 104px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 11; }
.ring-fg { fill: none; stroke: url(#rg); stroke-width: 11; stroke-linecap: round; }
.ring-pc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; }
.ring-pc small { font-size: .64rem; color: var(--muted); font-weight: 700; }
.mrows { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.mrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .86rem; color: var(--muted); font-weight: 700; }
.mrow b { color: var(--text); font-size: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mrow.ok b { color: var(--ok); } .mrow.due b { color: var(--bad); font-size: 1.25rem; } .mrow.due.zero b { color: var(--ok); } .mrow.warn b { color: var(--warn); }
.money-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.money-btns .btn:only-child { grid-column: 1 / -1; }
.status-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.detail-foot { margin: 6px 2px 20px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.detail-foot .link { font-weight: 700; display: inline-flex; align-items: center; }
.msg { background: var(--surface-2); padding: 11px 13px; border-radius: 14px; font-size: .88rem; border-left: 3px solid #19c160; }
.items { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.item:last-child { border-bottom: 0; }
.ii { width: 40px; height: 40px; border-radius: 13px; background: var(--grad-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--violet); flex: none; }
.item .n { flex: 1; font-weight: 700; font-size: .9rem; min-width: 0; }
.item .n small { display: block; color: var(--muted); font-weight: 600; font-size: .76rem; }
.item .p { font-weight: 800; font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.totals { border-top: 2px solid var(--line); margin-top: 6px; padding-top: 8px; display: grid; gap: 4px; }
.totals div { display: flex; justify-content: space-between; font-size: .86rem; color: var(--muted); }
.totals b { color: var(--text); font-variant-numeric: tabular-nums; }
.totals .grand { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.pays { display: flex; flex-direction: column; gap: 7px; }
.pay { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 16px; background: var(--surface-2); }
.pay-ic { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--ok-soft); color: var(--ok); }
.pay.refund .pay-ic { background: var(--bad-soft); color: var(--bad); }
.pay-amt { font-weight: 800; white-space: nowrap; color: var(--ok); font-variant-numeric: tabular-nums; }
.pay.refund .pay-amt { color: var(--bad); }
.pay-act { display: flex; } .pay-act .icon-btn { width: 34px; height: 34px; }
.problems { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.problems li { display: flex; gap: 6px; align-items: flex-start; padding: 9px 11px; border-radius: 12px; background: var(--bad-soft); }
.problems .ic-sm { color: var(--bad); margin-top: 3px; }

/* ---------------------------------------------------------------- forms */
.form-head { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; }
.form-head h1 { font-size: 1.45rem; }
.form-head .round-btn { color: var(--violet); }
.steps:not(ol) { display: flex; gap: 6px; margin: 14px 0 4px; }
div.steps i { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); }
div.steps i.on { background: var(--grad); }
@media (min-width: 900px) { div.steps, .step-label:empty { display: none; } }
.step-label { font-size: .76rem; color: var(--muted); font-weight: 800; margin: 0 0 12px; }
.fstep { display: none; }
.fstep.current { display: block; animation: rise .22s ease-out; }
.fstep h2 { margin-bottom: 14px; }
.sub-h { margin: 6px 0 10px; font-size: .9rem; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; min-width: 0; }
.field > span { font-size: .78rem; font-weight: 800; color: var(--muted); }
.field > span i { font-weight: 500; font-style: normal; }
.req { color: var(--bad); font-style: normal; }
.field input, .field select, .field textarea, .line input, .line select, .eq-num input, .date-pick input, .pw input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 15px; border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; color: var(--text);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus, .line input:focus, .line select:focus, .eq-num input:focus, .date-pick input:focus, .pw input:focus {
  border-color: var(--violet); outline: 3px solid color-mix(in srgb, var(--violet) 20%, transparent); outline-offset: 0;
}
[aria-invalid="true"] { border-color: var(--bad) !important; background: var(--bad-soft) !important; }
.field-error { color: var(--bad); font-size: .78rem; font-weight: 700; }
.hint { color: var(--muted); font-size: .78rem; margin: 0; }
.hint:empty { display: none; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
.field.inline input, .field.inline select { width: auto; min-width: 100px; }
.grid-2, .grid-3 { display: grid; gap: 0 14px; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1.4fr 1fr auto; align-items: end; }
  .span-2 { grid-column: 1 / -1; }
}
.check { display: flex; align-items: center; gap: 9px; min-height: 44px; margin-bottom: 10px; cursor: pointer; font-weight: 700; font-size: .88rem; }
.check input { width: 20px; height: 20px; accent-color: var(--violet); }
.status-seg { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
@media (max-width: 420px) { .status-seg { grid-template-columns: repeat(2, 1fr); } }
.st-opt { position: relative; cursor: pointer; background: transparent !important; }
.st-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.st-opt span { display: block; text-align: center; padding: 10px 6px; border-radius: 11px; font-weight: 800; font-size: .82rem; color: var(--muted); }
.st-opt.st-quote input:checked + span { color: var(--warn); background: var(--surface); box-shadow: 0 6px 14px -8px rgba(194, 120, 0, .6); }
.st-opt.st-confirmed input:checked + span { color: var(--info); background: var(--surface); box-shadow: 0 6px 14px -8px rgba(63, 85, 232, .6); }
.st-opt.st-completed input:checked + span { color: var(--ok); background: var(--surface); box-shadow: 0 6px 14px -8px rgba(15, 158, 110, .6); }
.st-opt.st-cancelled input:checked + span { color: var(--text); background: var(--surface); }
.st-opt input:focus-visible + span { outline: 2.5px solid var(--violet); }
.status-seg + .hint { margin-top: 8px; }

.lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.line {
  display: grid; gap: 8px 10px; align-items: end; padding: 12px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line);
  grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) 40px; grid-template-areas: "ic item item del" "qty qty price price" "total total total total" "avail avail avail avail";
  box-shadow: 0 8px 20px -16px rgba(60, 20, 120, .4);
}
.line > .ii { grid-area: ic; align-self: center; }
.line-item { grid-area: item; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.line-qty { grid-area: qty; display: flex; flex-direction: column; gap: 3px; }
.line-price { grid-area: price; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.line-qty > span, .line-price > span { font-size: .7rem; color: var(--muted); font-weight: 800; }
.qty { display: inline-flex; align-items: center; background: var(--surface-2); border-radius: 15px; overflow: hidden; width: max-content; }
.qty button { width: 42px; height: 48px; border: 0; background: transparent; color: var(--violet); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty button:active { background: var(--surface-3); }
.qty input { width: 70px; min-height: 48px; text-align: center; font-weight: 800; border: 0 !important; background: transparent !important; padding: 0 4px !important; border-radius: 0 !important; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.line-total { grid-area: total; text-align: right; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.line-del { grid-area: del; align-self: center; }
.line-avail { grid-area: avail; font-size: .8rem; font-weight: 700; display: flex; flex-direction: column; gap: 6px; }
.line-avail:empty { display: none; }
.gauge { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; display: flex; }
.gauge i { display: block; height: 100%; }
.g-others { background: color-mix(in srgb, var(--violet) 28%, var(--surface-3)); }
.line.over { border-color: color-mix(in srgb, var(--bad) 55%, transparent); background: linear-gradient(180deg, var(--surface), var(--bad-soft)); }
@media (min-width: 760px) {
  .line { grid-template-columns: auto minmax(0, 1fr) auto 150px 120px auto; grid-template-areas: "ic item qty price total del" "avail avail avail avail avail avail"; }
  .line-qty > span, .line-price > span { display: none; }
}
.add-line { width: 100%; border: 2px dashed color-mix(in srgb, var(--violet) 35%, var(--line)); background: transparent; border-radius: 18px; padding: 13px; font-weight: 800; color: var(--violet); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.add-line:hover { background: var(--surface-2); }
.extras { margin-top: 16px; }
.recap { margin-top: 6px; background: var(--grad-soft); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; font-size: .86rem; }
.recap:empty { display: none; }
.recap-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.form-bar {
  position: sticky; bottom: 0; z-index: 15; margin: 8px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter) calc(12px + var(--safe-b));
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
}
@media (min-width: 900px) { .form-bar { margin: 8px 0 0; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); bottom: 14px; } }
.fb-totals { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .76rem; color: var(--muted); font-weight: 700; }
.fb-totals span { display: flex; flex-direction: column; }
.fb-totals b { color: var(--text); font-size: 1rem; font-variant-numeric: tabular-nums; }
.fb-totals .fb-total b { font-size: 1.35rem; letter-spacing: -.02em; }
.fb-totals .due b { color: var(--bad); }
.fb-actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 520px) { .fb-actions { width: 100%; } .fb-actions .btn { flex: 1; } }

/* ---------------------------------------------------------------- calendar */
.cal-layout { display: grid; gap: 0 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .cal-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .cal-side { position: sticky; top: 20px; } }
.cal-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.cal-nav h2 { margin: 0 6px; flex: 1; text-align: center; justify-content: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: .68rem; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 4px 0; letter-spacing: .05em; }
.cal-day { min-height: 54px; border: 1.5px solid transparent; background: var(--surface-2); border-radius: 14px; padding: 5px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; min-width: 0; color: var(--text); }
.cal-day:hover { border-color: color-mix(in srgb, var(--violet) 40%, transparent); }
.cal-day.other { opacity: .4; }
.cal-day.past .dnum { color: var(--muted); }
.cal-day.today .dnum { background: var(--grad); color: #fff; border-radius: 999px; }
.cal-day.selected { border-color: var(--violet); background: var(--surface); box-shadow: 0 8px 18px -12px rgba(123, 47, 247, .7); }
.dnum { font-weight: 800; font-size: .84rem; min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.cal-items { display: none; }
.cal-dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.cal-dots i { width: 7px; height: 7px; border-radius: 99px; }
.cal-dots i.st-quote, .legend i.st-quote { background: var(--warn-bright); }
.cal-dots i.st-confirmed, .legend i.st-confirmed { background: var(--info); }
.cal-dots i.st-completed, .legend i.st-completed { background: var(--ok); }
@media (min-width: 700px) {
  .cal-day { min-height: 100px; align-items: stretch; }
  .dnum { align-self: flex-start; }
  .cal-items { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .cal-dots { display: none; }
}
.cal-chip { font-style: normal; font-size: .7rem; font-weight: 800; padding: 2px 6px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip.st-quote { outline: 1px dashed var(--warn); outline-offset: -1px; }
.cal-more { font-style: normal; font-size: .68rem; color: var(--muted); padding-left: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--muted); margin-top: 10px; font-weight: 700; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.card-head .legend { margin: 0; }

/* ---------------------------------------------------------------- equipment */
.eq-settings .check { margin-bottom: 13px; }
.date-pick { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .84rem; flex-wrap: wrap; color: var(--muted); }
.date-pick input { width: auto; }
.eq-list, .eq-group { display: flex; flex-direction: column; gap: 9px; }
.eq-group .month-head { margin-top: 12px; }
.eq-row {
  display: grid; gap: 8px 10px; align-items: center; padding: 11px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "ic name name act" "stock stock price free";
  box-shadow: 0 8px 22px -16px rgba(60, 20, 120, .45); transition: background .4s;
}
.eq-row > .ii { grid-area: ic; }
.eq-row.conflict { border-color: var(--bad); }
.eq-row.flash { background: var(--ok-soft); }
.eq-headrow { display: none; }
.eq-name { grid-area: name; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eq-name .link { font-size: .98rem; color: var(--text); font-weight: 800; }
.eq-num { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.eq-num:nth-of-type(1) { grid-area: stock; } .eq-num:nth-of-type(2) { grid-area: price; }
.eq-num span { font-size: .7rem; color: var(--muted); font-weight: 800; }
.eq-free { grid-area: free; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: .82rem; white-space: nowrap; }
.free b { font-size: 1.1rem; } .free.ok b { color: var(--ok); } .free.warn b { color: var(--warn); } .free.bad b { color: var(--bad); }
.eq-act { grid-area: act; display: flex; justify-content: flex-end; }
@media (min-width: 760px) {
  .eq-row { grid-template-columns: auto minmax(0, 1fr) 110px 130px 130px 88px; grid-template-areas: "ic name stock price free act"; }
  .eq-headrow { display: grid; background: transparent; border: 0; box-shadow: none; padding: 0 12px; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; grid-template-areas: none; }
  .eq-headrow span:first-child { width: 40px; }
  .eq-headrow span:nth-child(5) { text-align: right; }
  .eq-num span { display: none; }
}

/* ---------------------------------------------------------------- income */
.year-nav { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.chart-wrap { margin: 6px -4px 8px; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .grid.zero { stroke: var(--muted); }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .axis.strong { fill: var(--violet); font-weight: 800; }
.chart .hit { fill: transparent; }
.chart .mgroup { cursor: pointer; }
.chart .mgroup:hover .hit, .chart .mgroup.current .hit { fill: var(--surface-2); }
.chart .bar-rev { fill: var(--magenta); }
.chart .bar-exp { fill: #ffc861; }
.chart .net-line { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-linejoin: round; }
.chart .net-dot { fill: var(--surface); stroke: var(--violet); stroke-width: 2.5; }
.legend i.lg-rev { background: var(--magenta); } .legend i.lg-exp { background: #ffc861; } .legend i.lg-net { background: var(--violet); height: 3px; border-radius: 2px; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.table .num { text-align: right; white-space: nowrap; }
.table tfoot td { border-bottom: 0; color: var(--muted); }
.table tr.grand td { color: var(--text); font-weight: 800; font-size: 1.02rem; border-top: 2px solid var(--line); }
.months tr.clickable { cursor: pointer; }
.months tr.clickable:hover td { background: var(--surface-2); }
.months tr.current td:first-child { color: var(--violet); font-weight: 800; }
.months tr.selected td { background: color-mix(in srgb, var(--violet) 10%, transparent); }
@media (max-width: 520px) {
  .compact { font-size: .78rem; }
  .compact th, .compact td { padding: 8px 3px; }
  .compact th, .compact th.num { white-space: normal; font-size: .62rem; letter-spacing: .02em; }
  .compact th:first-child, .compact td:first-child { padding-left: 2px; }
  .compact tr.grand td { font-size: inherit; }
}
.sum-line { text-align: right; margin: 10px 4px 0; }

/* ---------------------------------------------------------------- settings */
.settings-grid { display: grid; gap: 0 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .settings-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.acct { display: flex; align-items: center; gap: 12px; }
.acct b { display: block; font-size: 1.05rem; } .acct small { color: var(--muted); }
.users { display: grid; gap: 8px; margin: 8px 0 10px; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: var(--surface-2); }
.user-row b { display: block; } .user-row small { color: var(--muted); font-size: .76rem; }
.sub-block { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.sub-block h3 { margin-bottom: 4px; display: flex; align-items: center; }
.danger-zone h3 { color: var(--bad); }
.preview { margin-top: 12px; display: grid; gap: 4px; }
.sync-pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 99px; font-size: .8rem; font-weight: 800; }
.sync-pill.ok { background: var(--ok-soft); color: var(--ok); } .sync-pill.warn { background: var(--warn-soft); color: var(--warn); } .sync-pill.off { background: var(--bad-soft); color: var(--bad); }

/* ---------------------------------------------------------------- help & messages */
.hero-help { padding-bottom: 24px; }
.dev { display: flex; align-items: center; gap: 12px; }
.dev b { display: block; font-size: 1.1rem; } .dev small { opacity: .88; font-size: .8rem; }
.dev .avatar { border: 2px solid rgba(255, 255, 255, .7); }
.tabs { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 15px; border-radius: 99px; font-size: .82rem; font-weight: 800; background: rgba(255, 255, 255, .18); color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tabs a.on { background: #fff; color: var(--violet); }
.tabs .count { background: var(--magenta); }
.thread { padding: 16px 0 220px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; }
.thread-empty { text-align: center; color: var(--muted); padding: 30px 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.day { align-self: center; font-size: .7rem; font-weight: 800; color: var(--muted); background: var(--surface-3); border-radius: 99px; padding: 4px 11px; text-transform: capitalize; }
.bub { max-width: 82%; padding: 10px 13px; border-radius: 20px; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.bub small { display: block; font-size: .66rem; opacity: .75; margin-top: 4px; text-align: right; font-weight: 700; }
.bub-name { display: block; font-size: .72rem; opacity: .85; margin-bottom: 2px; }
.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 10px 22px -12px rgba(224, 33, 138, .7); }
.me.failed { background: var(--bad); }
.him { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: 0 8px 20px -16px rgba(60, 20, 120, .5); }
.sys { align-self: center; max-width: 92%; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--violet) 35%, var(--line)); border-radius: 18px; padding: 9px 12px; font-size: .78rem; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.sys .ic-sm { color: var(--violet); margin-top: 2px; }
.attach { display: flex; align-items: center; background: rgba(255, 255, 255, .2); border-radius: 11px; padding: 6px 9px; margin-top: 7px; font-size: .76rem; font-weight: 700; }
.him .attach { background: var(--surface-2); }
.compose { position: fixed; left: 0; right: 0; bottom: calc(92px + var(--safe-b)); z-index: 25; padding: 14px 12px 6px; background: linear-gradient(180deg, transparent, var(--bg) 30%); }
@media (min-width: 900px) { .compose { left: 256px; bottom: 0; padding: 14px 30px 20px; } }
.compose > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.opts { display: flex; gap: 7px; margin-bottom: 8px; flex-wrap: wrap; }
.opt { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 6px 11px 6px 7px; font-size: .74rem; font-weight: 800; color: var(--text); cursor: pointer; box-shadow: 0 6px 14px -10px rgba(60, 20, 120, .5); }
.opt .tick { width: 18px; height: 18px; border-radius: 7px; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.opt .tick .ic { width: 12px; height: 12px; stroke-width: 3; }
.opt[aria-pressed="true"] .tick { background: var(--grad); border-color: transparent; color: #fff; }
.photo-chip { padding: 6px 11px; }
.photo-chip button { border: 0; background: none; cursor: pointer; font-size: 1rem; color: var(--muted); padding: 0 2px; }
.inbox { display: flex; align-items: flex-end; gap: 8px; background: var(--surface); border-radius: 24px; padding: 6px 6px 6px 14px; box-shadow: 0 14px 30px -14px rgba(60, 20, 120, .55); border: 1px solid var(--line); }
.inbox textarea { flex: 1; border: 0; outline: none; resize: none; background: transparent; padding: 11px 0; font-size: 16px; max-height: 140px; color: var(--text); overflow: hidden; }
.news { display: grid; gap: 0; max-width: 760px; margin: 0 auto; }
.news-card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.news-card.latest { border-color: color-mix(in srgb, var(--magenta) 30%, var(--line)); }

/* ---------------------------------------------------------------- sign-in */
.login { min-height: 100vh; min-height: 100dvh; margin: 0 calc(-1 * var(--gutter)); padding: 24px var(--gutter); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; background: var(--grad); }
.login::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 15% 22%, rgba(255, 255, 255, .6) 0 2px, transparent 3px), radial-gradient(circle at 82% 14%, rgba(255, 230, 120, .9) 0 3px, transparent 4px), radial-gradient(circle at 74% 82%, rgba(255, 190, 225, .9) 0 3px, transparent 4px), radial-gradient(circle at 24% 78%, rgba(255, 255, 255, .5) 0 2px, transparent 3px); }
@media (min-width: 900px) { .login { margin: 0; } }
.login .lang-btn { position: absolute; top: calc(16px + var(--safe-t)); right: 16px; z-index: 2; }
.lang-btn.glass { height: 40px; min-width: 46px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .18); color: #fff; font-weight: 800; cursor: pointer; }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 410px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); border-radius: 28px; padding: 28px 24px 22px; box-shadow: 0 30px 60px -24px rgba(40, 10, 80, .6); }
.login-logo { width: 64px; height: 64px; border-radius: 22px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; box-shadow: 0 14px 28px -10px rgba(224, 33, 138, .8); }
.login-logo .ic { width: 32px; height: 32px; }
.login-card h1 { text-align: center; font-size: 1.6rem; }
.login-card > p.muted { text-align: center; margin: 6px 0 18px; }
.pw { position: relative; }
.pw .icon-btn { position: absolute; right: 4px; top: 4px; }
.login-err { background: var(--bad-soft); color: var(--bad); border-radius: 12px; padding: 9px 12px; font-weight: 700; font-size: .86rem; }
.login-help { text-align: center; margin: 14px 0 0; }
.login-foot { position: relative; z-index: 1; color: rgba(255, 255, 255, .85); font-size: .76rem; margin-top: 18px; }
body[data-view="login"] #main { padding: 0; max-width: none; }

/* ---------------------------------------------------------------- dialogs, toast */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 10, 35, .5); backdrop-filter: blur(3px); animation: fade .15s ease-out; }
.modal { position: relative; width: 100%; max-width: 520px; max-height: 92vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); animation: rise .22s ease-out; padding-bottom: var(--safe-b); }
.modal.wide { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 6px 22px; }
.modal-head h2 { margin: 0; font-size: 1.12rem; }
.modal-body { padding: 6px 22px 8px; overflow-y: auto; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 22px 18px; flex-wrap: wrap; }
@media (min-width: 640px) { .modal-wrap { align-items: center; padding: 20px; } .modal { border-radius: 26px; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); width: max-content;
  background: rgba(28, 18, 48, .94); backdrop-filter: blur(10px); color: #fff; padding: 12px 16px; border-radius: 16px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); font-size: .88rem;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.bad { background: #b0213a; }
.toast button { background: none; border: 0; color: #ffc2e3; font-weight: 800; cursor: pointer; padding: 4px; white-space: nowrap; }
@media (min-width: 900px) { .toast { bottom: 24px; left: calc(50% + 128px); } }
body.bare .toast { bottom: calc(24px + var(--safe-b)); }

/* ---------------------------------------------------------------- printable document */
.print-bar { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 14px; }
.print-doc { position: relative; background: #fff; color: #1b1424; max-width: 820px; margin: 0 auto; padding: 36px 40px; border-radius: 10px; box-shadow: var(--shadow); font-size: 13.5px; overflow: hidden; }
.pd-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid #7b2ff7; padding-bottom: 16px; margin-bottom: 18px; border-image: linear-gradient(90deg, #e0218a, #7b2ff7, #ff9f1c) 1; }
.pd-biz h1 { font-size: 1.5rem; color: #7b2ff7; margin-bottom: 6px; }
.pd-biz p, .pd-title p { margin: 0 0 2px; color: #4a4258; }
.pd-title { text-align: right; }
.pd-title h2 { display: block; font-size: 1.35rem; letter-spacing: .08em; margin: 0 0 6px; color: #1b1424; }
.pd-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.pd-boxes > div { border: 1px solid #e3dcea; border-radius: 10px; padding: 10px 12px; }
.pd-boxes h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #7a7088; margin-bottom: 6px; }
.pd-boxes p { margin: 0 0 2px; }
.pd-table, .pd-totals { width: 100%; border-collapse: collapse; }
.pd-table th { background: #f3eef8; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px; }
.pd-table td { padding: 8px; border-bottom: 1px solid #ece6f1; }
.pd-table .num, .pd-totals .num { text-align: right; white-space: nowrap; }
.pd-totals { width: 55%; margin: 12px 0 0 auto; }
.pd-totals td { padding: 5px 8px; }
.pd-totals tr.grand td { font-weight: 800; font-size: 1.05rem; border-top: 2px solid #1b1424; }
.pd-pays, .pd-notes { margin-top: 18px; }
.pd-pays h3, .pd-notes h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #7a7088; }
.pd-pays ul { margin: 0; padding-left: 18px; }
.pd-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 46px; }
.pd-sign div { border-top: 1px solid #9a90a8; padding-top: 6px; text-align: center; color: #4a4258; min-height: 80px; }
.stamp { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-size: 4.5rem; font-weight: 900; color: rgba(226, 51, 79, .16); border: 8px solid rgba(226, 51, 79, .16); padding: 4px 28px; border-radius: 16px; letter-spacing: .1em; pointer-events: none; }
@media (max-width: 640px) {
  .print-doc { padding: 20px 16px; font-size: 12.5px; }
  .pd-head { flex-direction: column; gap: 10px; } .pd-title { text-align: left; }
  .pd-boxes { grid-template-columns: 1fr; } .pd-totals { width: 100%; }
  .pd-table th, .pd-table td { padding: 6px 3px; } .pd-table th { font-size: .62rem; white-space: normal; }
  .stamp { font-size: 2.6rem; }
}
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .side, .top, .bottom-nav, .no-print, .toast, #modal-root { display: none !important; }
  #app { display: block; } #main { padding: 0; max-width: none; }
  .print-doc { box-shadow: none; padding: 0; max-width: none; border-radius: 0; font-size: 12pt; }
  .pd-head { flex-direction: row; } .pd-title { text-align: right; } .pd-boxes { grid-template-columns: 1fr 1fr; } .pd-totals { width: 55%; }
  .pd-table tr, .pd-sign { break-inside: avoid; }
}
.adm-card.open { border-color: color-mix(in srgb, var(--violet) 45%, var(--line)); }
.adm-card .users { margin-bottom: 12px; }
