/* cenik.si — Apple-grade system UI with a Raycast-style command layer. */

:root {
  --bg: #ffffff;
  --bg-grouped: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --fill: rgba(120, 120, 128, 0.12);
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #aeaeb2;
  --sep: rgba(60, 60, 67, 0.16);
  --tint: #0071e3;
  --tint-hover: #0077ed;
  --tint-soft: rgba(0, 113, 227, 0.1);
  --danger: #d70015;
  --ok: #248a3d;
  --ok-soft: rgba(52, 199, 89, 0.14);
  --danger-soft: rgba(255, 59, 48, 0.12);
  --bar: rgba(255, 255, 255, 0.72);
  --shadow-pop: 0 24px 60px -12px rgba(0, 0, 0, 0.25), 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --r-group: 12px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-grouped: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --fill: rgba(120, 120, 128, 0.24);
    --ink: #f5f5f7;
    --ink-2: #98989d;
    --ink-3: #636366;
    --sep: rgba(84, 84, 88, 0.6);
    --tint: #2997ff;
    --tint-hover: #47a6ff;
    --tint-soft: rgba(41, 151, 255, 0.16);
    --danger: #ff453a;
    --ok: #30d158;
    --ok-soft: rgba(48, 209, 88, 0.16);
    --danger-soft: rgba(255, 69, 58, 0.16);
    --bar: rgba(22, 22, 23, 0.72);
    --shadow-pop: 0 24px 60px -12px rgba(0, 0, 0, 0.7), 0 0 0 0.5px rgba(255, 255, 255, 0.12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.022em;
}
body.grouped { background: var(--bg-grouped); }
a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--tint) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; letter-spacing: -0.01em; }
.inline { display: inline; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Global nav ------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--bar);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--sep);
}
.nav-inner {
  max-width: 1024px; margin: 0 auto; height: 52px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; }
.brand-tld { color: var(--ink-2); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.nav-links a:not(.btn), .nav-links button.link { color: var(--ink); opacity: 0.8; font-size: 14px; }
.nav-links a:not(.btn):hover, .nav-links button.link:hover { opacity: 1; text-decoration: none; }

/* --- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 980px;
  background: var(--tint); color: #fff; font: 500 17px/1 var(--font); letter-spacing: -0.02em;
  cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.btn:hover { background: var(--tint-hover); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-small { min-height: 32px; padding: 0 14px; font-size: 14px; }
.btn-tinted { background: var(--tint-soft); color: var(--tint); }
.btn-tinted:hover { background: color-mix(in srgb, var(--tint) 18%, transparent); }
.btn-gray { background: var(--fill); color: var(--ink); }
.btn-gray:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 20%, transparent); }
.btn-block { width: 100%; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--tint); cursor: pointer; letter-spacing: inherit; }
button.link:hover { text-decoration: underline; }
button.link.danger { color: var(--danger); }
.chev::after { content: "›"; display: inline-block; margin-left: 4px; font-size: 1.15em; line-height: 0; transform: translateY(1px); }

/* --- Forms ----------------------------------------------------------- */
:where(input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"]), textarea, select) {
  font: inherit; letter-spacing: inherit; color: var(--ink);
  background: var(--surface); border: 0; border-radius: 10px; width: 100%;
  padding: 11px 14px; min-height: 44px; box-shadow: inset 0 0 0 1px var(--sep);
  transition: box-shadow 0.15s;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
:where(input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"]), textarea):focus { outline: none; box-shadow: inset 0 0 0 1px var(--tint), 0 0 0 4px var(--tint-soft); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--ink-2); padding-left: 4px; letter-spacing: -0.005em; }
.hint { font-size: 13px; color: var(--ink-2); padding-left: 4px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .grid2 { grid-template-columns: 1fr; } }
.prefix-input { display: flex; align-items: center; background: var(--surface); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--sep); }
.prefix-input:focus-within { box-shadow: inset 0 0 0 1px var(--tint), 0 0 0 4px var(--tint-soft); }
.prefix-input span { padding-left: 14px; color: var(--ink-2); white-space: nowrap; }
.prefix-input input { box-shadow: none !important; padding-left: 1px; background: transparent; }

/* iOS switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; min-height: 0; padding: 0; border-radius: 999px; background: var(--fill); box-shadow: none; position: relative; cursor: pointer; flex-shrink: 0; transition: background 0.25s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 3px 1px rgba(0,0,0,.06); transition: transform 0.25s var(--ease); }
.switch input:checked { background: #34c759; }
.switch input:checked::after { transform: translateX(20px); }
.switch input:focus-visible { outline: 3px solid var(--tint-soft); outline-offset: 2px; }

.toast {
  margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r-group); font-size: 15px; font-weight: 500;
}
.toast-error { background: var(--danger-soft); color: var(--danger); }
.toast-ok { background: var(--ok-soft); color: var(--ok); }

/* --- Shells ---------------------------------------------------------- */
.shell-narrow { max-width: 400px; margin: 0 auto; padding: 56px 16px 80px; }
.large-title { font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 20px; }
.back { display: inline-flex; align-items: center; gap: 2px; font-size: 17px; margin-bottom: 4px; }
.back::before { content: "‹"; font-size: 28px; line-height: 0.6; margin-right: 4px; transform: translateY(-1px); }

/* --- Landing --------------------------------------------------------- */
.hero { text-align: center; padding: 88px 20px 56px; max-width: 980px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(44px, 9vw, 88px); line-height: 1.04; font-weight: 700; letter-spacing: -0.045em;
  max-width: 12ch; margin: 0 auto;
}
.hero-sub { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.38; color: var(--ink-2); max-width: 34ch; margin: 22px auto 0; letter-spacing: -0.02em; }
.hero-cta { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.hero-cta .btn { min-height: 50px; padding: 0 28px; }
.hero-cta .link-lg { font-size: 19px; }

.stage { position: relative; padding: 24px 16px 96px; overflow: hidden; }
.stage::before {
  content: ""; position: absolute; left: 50%; top: 10%; width: min(1100px, 140vw); height: 70%; transform: translateX(-50%);
  background:
    radial-gradient(40% 50% at 30% 50%, rgba(255, 99, 99, 0.28), transparent 70%),
    radial-gradient(40% 50% at 70% 50%, rgba(41, 151, 255, 0.28), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.stage-inner { position: relative; max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; }
@media (max-width: 860px) { .stage-inner { grid-template-columns: 1fr; justify-items: center; gap: 40px; } }

/* Raycast-style window (always dark) */
.rc {
  --rc-bg: #1a1a1c; --rc-ink: #ececee; --rc-ink-2: #8e8e93; --rc-sep: rgba(255, 255, 255, 0.08); --rc-sel: rgba(255, 255, 255, 0.07);
  width: 100%; max-width: 620px; border-radius: 16px; background: var(--rc-bg); color: var(--rc-ink);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.14) inset, 0 40px 80px -20px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(0, 0, 0, 0.6);
  overflow: hidden; text-align: left;
}
.rc-top { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 62px; border-bottom: 0.5px solid var(--rc-sep); }
.rc-top input { flex: 1; background: transparent; border: 0; box-shadow: none !important; color: var(--rc-ink); font-size: 19px; padding: 0; min-height: 0; }
.rc-top input::placeholder { color: var(--rc-ink-2); }
.rc-top svg { width: 20px; height: 20px; color: var(--rc-ink-2); flex-shrink: 0; }
.rc-list { list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow-y: auto; }
.rc-section { font-size: 12px; color: var(--rc-ink-2); padding: 10px 12px 4px; font-weight: 500; letter-spacing: 0; }
.rc-item { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 9px; font-size: 15px; }
.rc-item:focus-within, .rc-item.is-new { background: var(--rc-sel); }
.rc-item .ico { width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.rc-item .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-item input {
  width: 88px; min-height: 30px; padding: 4px 8px; text-align: right; border-radius: 7px; font-size: 15px;
  background: rgba(255, 255, 255, 0.06); color: var(--rc-ink); box-shadow: inset 0 0 0 0.5px var(--rc-sep); font-variant-numeric: tabular-nums;
}
.rc-item input:focus { box-shadow: inset 0 0 0 1px #2997ff, 0 0 0 3px rgba(41, 151, 255, 0.25); }
.rc-item .eur { color: var(--rc-ink-2); font-size: 14px; }
.rc-foot { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 14px; border-top: 0.5px solid var(--rc-sep); font-size: 13px; color: var(--rc-ink-2); background: rgba(255, 255, 255, 0.02); }
.rc-foot span { display: inline-flex; align-items: center; gap: 6px; }
.rc kbd { background: rgba(255, 255, 255, 0.1); color: var(--rc-ink); box-shadow: none; }
.rc-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--rc-ink); font-weight: 500; }
.rc-brand img { width: 18px; height: 18px; border-radius: 5px; }

/* Phone */
.phone {
  width: 300px; height: 612px; border-radius: 54px; padding: 11px; background: #1d1d1f; flex-shrink: 0;
  box-shadow: 0 0 0 1.5px #3a3a3c inset, 0 50px 90px -30px rgba(0, 0, 0, 0.5);
}
.phone-screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: #f2f2f7; color: #1d1d1f; }
.phone-screen::before { content: ""; position: absolute; top: 11px; left: 50%; width: 96px; height: 28px; border-radius: 20px; background: #000; transform: translateX(-50%); z-index: 2; }
.phone-scroll { height: 100%; overflow-y: auto; padding: 56px 14px 24px; scrollbar-width: none; }
.phone-scroll::-webkit-scrollbar { display: none; }
.phone h4 { font: 700 26px/1.1 var(--font-display); letter-spacing: -0.03em; margin: 0 4px 4px; }
.phone .p-sub { font-size: 13px; color: #6e6e73; margin: 0 4px 16px; }
.phone .p-sec { font-size: 15px; font-weight: 700; margin: 14px 4px 6px; letter-spacing: -0.02em; }
.phone .p-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 12px; overflow: hidden; }
.phone .p-list li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: 14px; position: relative; letter-spacing: -0.015em; }
.phone .p-list li + li::before { content: ""; position: absolute; top: 0; left: 12px; right: 0; height: 0.5px; background: rgba(60, 60, 67, 0.16); }
.phone .p-list b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color 0.3s; }
.phone .p-list b.changed { color: #0071e3; }
.phone .p-list li.is-new { animation: flash-in 0.9s var(--ease); }
@keyframes flash-in { from { background: rgba(0, 113, 227, 0.14); } }

.stage-caption { text-align: center; color: var(--ink-2); font-size: 15px; margin-top: 28px; position: relative; }

/* Feature rows */
.features { max-width: 980px; margin: 0 auto; padding: 32px 20px 96px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; gap: 36px; } }
.feature-ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.feature-ico svg { width: 24px; height: 24px; }
.features h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 6px; }
.features p { color: var(--ink-2); font-size: 17px; }

/* Pricing */
.pricing { background: var(--surface-2); padding: 88px 20px; }
.pricing h2 { text-align: center; font-size: clamp(34px, 5vw, 48px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; }
.pricing > p { text-align: center; color: var(--ink-2); font-size: 19px; margin-top: 12px; }
.plans { max-width: 760px; margin: 44px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.plan h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.plan-price { font: 700 48px/1 var(--font-display); letter-spacing: -0.04em; margin: 14px 0 4px; }
.plan-price small { font-size: 17px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.01em; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; border-radius: 50%; background: var(--tint-soft) center/10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%230071e3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-pro { box-shadow: 0 0 0 2px var(--tint); }

.footer { max-width: 980px; margin: 0 auto; padding: 20px; font-size: 12px; color: var(--ink-2); border-top: 0.5px solid var(--sep); display: flex; justify-content: space-between; letter-spacing: -0.005em; }

/* --- Print ----------------------------------------------------------- */
body.print { background: #fff; color: #1d1d1f; color-scheme: light; }
.print-bar { position: sticky; top: 0; display: flex; gap: 16px; align-items: center; justify-content: center; padding: 12px; background: rgba(255,255,255,.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 0.5px solid rgba(60,60,67,.16); }
.sheet { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 24px; border-bottom: 2px solid #1d1d1f; margin-bottom: 8px; }
.sheet-head h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.sheet-head p { color: #6e6e73; margin-top: 6px; font-size: 15px; }
.sheet-contact { font-size: 13px; color: #6e6e73; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sheet-qr { text-align: center; font-size: 11px; color: #6e6e73; flex-shrink: 0; }
.sheet-qr svg { width: 104px; height: 104px; display: block; margin-bottom: 4px; }
.sheet section { padding-top: 24px; break-inside: avoid; }
.sheet h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 0.5px solid rgba(60,60,67,.2); font-size: 15px; }
.sheet li small { display: block; color: #6e6e73; font-size: 13px; }
.sheet .price, .sheet .price .unit, .sheet .price .from { color: #1d1d1f; }
.sheet-foot { margin-top: 32px; font-size: 12px; color: #6e6e73; display: flex; justify-content: space-between; gap: 16px; }
@media print {
  @page { size: A4; margin: 14mm; }
  .no-print { display: none !important; }
  .sheet { padding: 0; max-width: none; }
  a { color: inherit; }
}

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


/* ===================================================================== */
/* App (signed in): dense, keyboard-first workspace.                      */
/* ===================================================================== */

body.app {
  --bg: #f7f7f6;
  --surface: #ffffff;
  --surface-2: #f2f2f1;
  --fill: rgba(24, 24, 27, 0.06);
  --ink: #18181b;
  --ink-2: #6b6b72;
  --ink-3: #a3a3a9;
  --sep: #e6e6e3;
  --tint: #ff5f57;
  --tint-hover: #ff4d44;
  --tint-soft: rgba(255, 95, 87, 0.12);
  --hover: rgba(24, 24, 27, 0.04);
  --shadow-pop: 0 16px 48px -12px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.006em;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.app {
    --bg: #0d0d0f;
    --surface: #151518;
    --surface-2: #1c1c20;
    --fill: rgba(255, 255, 255, 0.07);
    --ink: #ececef;
    --ink-2: #9b9ba3;
    --ink-3: #5f5f66;
    --sep: #26262b;
    --tint: #ff6b63;
    --tint-hover: #ff8079;
    --tint-soft: rgba(255, 107, 99, 0.14);
    --hover: rgba(255, 255, 255, 0.04);
    --shadow-pop: 0 16px 48px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}
:where(body.app) a { color: var(--ink); }
:where(body.app) a:hover { text-decoration: none; }
:where(body.app) :where(input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"]), textarea, select) {
  min-height: 34px; padding: 6px 10px; border-radius: 7px; font-size: 14px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--sep);
}
:where(body.app) :where(input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"]), textarea, select):focus { box-shadow: inset 0 0 0 1px var(--tint), 0 0 0 3px var(--tint-soft); }
body.app .field > span { font-size: 12px; font-weight: 500; padding: 0; }
:where(body.app) .hint { padding: 0; font-size: 12px; }
body.app .switch input { width: 36px; height: 20px; }
body.app .switch input::after { width: 16px; height: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
body.app .switch input:not(:checked) { background: color-mix(in srgb, var(--ink) 18%, transparent); }
body.app .switch input:checked { background: var(--tint); }
body.app .switch input:checked::after { transform: translateX(16px); }
body.app .segmented span { padding: 4px 8px; font-size: 13px; }
body.app .segmented { border-radius: 8px; }
body.app .segmented input:checked + span { box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 0.5px rgba(0,0,0,.06); }

/* Buttons */
body.app .btn { min-height: 32px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 500; letter-spacing: -0.005em; background: var(--ink); color: var(--bg); }
body.app .btn:hover { background: color-mix(in srgb, var(--ink) 85%, var(--bg)); }
body.app .btn-sm { min-height: 28px; padding: 0 10px; }
body.app .btn-accent { background: var(--tint); color: #fff; }
body.app .btn-accent:hover { background: var(--tint-hover); }
body.app .btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--sep); }
body.app .btn-ghost:hover { background: var(--hover); }
body.app .btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 35%, transparent); }
body.app .btn-danger:hover { background: var(--danger-soft); }
body.app kbd { font-size: 11px; padding: 2px 5px; border-radius: 4px; }

/* Shell */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  padding: 14px 10px; border-right: 1px solid var(--sep); background: var(--bg);
}
.side-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; font-weight: 600; font-size: 14px; }
.side-brand img { border-radius: 5px; }
.side-switch { position: relative; margin-bottom: 8px; }
.side-switch > summary {
  list-style: none; cursor: pointer; display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--sep);
}
.side-switch > summary::-webkit-details-marker { display: none; }
.side-switch > summary::after { content: "⌄"; position: absolute; right: 10px; top: 8px; color: var(--ink-3); }
.side-switch-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 16px; }
.side-switch-url { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-switch-pop {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; padding: 4px; border-radius: 10px;
  background: var(--surface); box-shadow: var(--shadow-pop); display: flex; flex-direction: column;
}
.side-switch-pop a { padding: 6px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-switch-pop a:hover { background: var(--hover); }
.side-switch-pop a[aria-current] { font-weight: 600; }
.side-switch-pop a.muted { color: var(--ink-2); border-top: 1px solid var(--sep); border-radius: 0 0 6px 6px; margin-top: 4px; padding-top: 8px; }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 7px; color: var(--ink-2); font-weight: 500; }
.side-nav a:hover { background: var(--hover); color: var(--ink); }
.side-nav a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--sep), 0 1px 2px rgba(0,0,0,.04); }
.side-nav a[aria-current] svg { color: var(--tint); }
.side-nav svg { width: 16px; height: 16px; flex-shrink: 0; }
.side-nav .side-ext { margin-top: 8px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.side-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 6px 10px; border: 0; border-radius: 7px;
  background: none; color: var(--ink-2); font: inherit; font-weight: 500; cursor: pointer; text-align: left;
}
.side-link:hover { background: var(--hover); color: var(--ink); }
.main { padding: 28px 40px 96px; max-width: 920px; width: 100%; }
.main-wide { max-width: 1320px; }
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; }
  .side { position: sticky; z-index: 25; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--sep); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .side-brand { padding: 4px; }
  .side-switch { flex: 1; min-width: 0; margin: 0; }
  .side-switch > summary { padding: 4px 10px; }
  .side-switch-url { display: none; }
  .side-switch > summary::after { top: 4px; }
  .side-nav { order: 3; flex-direction: row; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { white-space: nowrap; padding: 5px 9px; }
  .side-nav .side-ext { margin-top: 0; }
  .side-foot { margin: 0; flex-direction: row; }
  .main { padding: 20px 14px 80px; }
}

/* Page header */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.page-sub { color: var(--ink-2); margin-top: 2px; max-width: 64ch; }
.page-sub a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--sep); text-underline-offset: 3px; }
.page-actions { display: flex; gap: 8px; align-items: center; }

.notice { padding: 8px 12px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; font-size: 13px; }
.notice-ok { background: var(--ok-soft); color: var(--ok); }
.notice-error { background: var(--danger-soft); color: var(--danger); }

/* Panels */
.panel { background: var(--surface); border-radius: 10px; box-shadow: 0 0 0 1px var(--sep), 0 1px 2px rgba(0,0,0,.03); margin-bottom: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--sep); }
.panel-head h2 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.panel-head .count { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.panel-body { padding: 14px; }
.panel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; border-bottom: 1px solid var(--sep); background: var(--surface-2); }
.panel-bar p { flex: 1; min-width: 220px; color: var(--ink-2); font-size: 13px; }
.panel-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; }
.sticky-actions { position: sticky; bottom: 0; padding: 10px 14px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--sep); border-radius: 0 0 10px 10px; }
.empty { padding: 28px 14px; color: var(--ink-2); text-align: center; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.check-inline input { width: auto; min-height: 0; box-shadow: none; accent-color: var(--tint); }

/* Rows (items, lists) */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li + li { border-top: 1px solid var(--sep); }
.line { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 7px 14px; }
a.line:hover, details.it > summary:hover { background: var(--hover); }
.line-main { flex: 1; min-width: 0; }
.line-title { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-sub { display: block; color: var(--ink-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-meta { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.line-price { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.line-price .from, .line-price .unit { color: var(--ink-2); font-weight: 400; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; background: var(--fill); color: var(--ink-2); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }

details.it > summary { list-style: none; cursor: pointer; }
details.it > summary::-webkit-details-marker { display: none; }
details.it[open] > summary { background: var(--surface-2); }
.it-edit { padding: 10px 14px 12px; background: var(--surface-2); border-top: 1px solid var(--sep); animation: reveal 0.2s var(--ease); }
.it-main { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.it-price { text-align: right; font-variant-numeric: tabular-nums; }
.it-more { grid-column: 1 / -1; }
.it-more > summary { list-style: none; cursor: pointer; color: var(--ink-2); font-size: 13px; padding: 2px 0; width: max-content; }
.it-more > summary::-webkit-details-marker { display: none; }
.it-more > summary::before { content: "+ "; }
.it-more[open] > summary::before { content: "− "; }
.it-more-body { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.it-block { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.it-block:disabled { opacity: 0.45; }
.it-block legend { padding: 0; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.it-row2 { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.variants { display: flex; flex-direction: column; gap: 6px; }
.variant-row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.it-block > .btn { align-self: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--sep); background: var(--surface); }
.chip span b { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip:hover span { color: var(--ink); }
.chip input:checked + span { color: var(--tint); background: var(--tint-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 45%, transparent); }
.chip input:checked + span b { color: var(--tint); }
.chip input:focus-visible + span { outline: 2px solid var(--tint); outline-offset: 1px; }
.chip-sep { width: 1px; background: var(--sep); margin: 2px 4px; }
.tag { margin-left: 6px; vertical-align: 1px; }
.tag-accent { background: var(--tint-soft); color: var(--tint); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.tag-warn { background: rgba(255, 159, 10, 0.16); color: #b25f00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag-warn { color: #ffb340; } }
.line-price .was { color: var(--ink-3); font-weight: 400; }
.line-price .now { color: var(--tint); }
.allergen-nums { color: var(--ink-3); }
.is-hidden-item .line-title, .is-hidden-item .line-price { opacity: 0.45; }
.it-actions { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.spacer { flex: 1; }
body.app .danger-text { color: var(--danger); box-shadow: none; }
@media (max-width: 560px) {
  .it-main { grid-template-columns: 1fr 96px; }
  .it-row2 { grid-template-columns: 1fr; }
  .variant-row { grid-template-columns: 1fr 96px; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(-3px); } }
.move { display: inline-flex; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--sep); }
.move button { width: 28px; height: 28px; border: 0; background: none; color: var(--ink-2); cursor: pointer; font-size: 13px; }
.move button:hover:not(:disabled) { color: var(--ink); background: var(--hover); }
.move button:disabled { opacity: 0.3; cursor: default; }
.move button + button { box-shadow: -1px 0 0 var(--sep); }

.add-line { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-top: 1px solid var(--sep); }
.add-line input { flex: 1; min-width: 0; box-shadow: none; background: transparent; padding-left: 0; }
.add-line input:focus { box-shadow: none; }
.add-line .price-input { flex: 0 0 96px; text-align: right; }
.add-line::before { content: "+"; color: var(--ink-3); font-size: 16px; width: 14px; }
.add-line:not(:focus-within) .btn { opacity: 0; pointer-events: none; }
.add-line:focus-within { background: var(--surface-2); }
.flash-target { animation: flash 1.4s var(--ease); }
@keyframes flash { from { background: var(--tint-soft); } }

/* Section menu */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--ink-2); font-weight: 700; letter-spacing: 0.05em; }
.menu > summary:hover, .menu[open] > summary { background: var(--hover); color: var(--ink); }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 34px; z-index: 10; width: 260px; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 12px; display: flex; flex-direction: column; gap: 10px; animation: pop 0.16s var(--ease); }
.menu-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Dashboard */
.lists-table .line { min-height: 52px; }
.list-dot { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--tint-soft); color: var(--tint); font-weight: 700; font-size: 13px; flex-shrink: 0; }

/* Share page */
.share-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
@media (max-width: 640px) { .share-grid { grid-template-columns: 1fr; } }
.share-qr { background: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 0 0 1px var(--sep); }
.share-qr img { display: block; width: 100%; height: auto; }
.copy-field { display: flex; gap: 6px; }
.copy-field input { font-family: var(--mono); font-size: 13px; }
.actions-col { display: flex; flex-direction: column; gap: 14px; }

/* Languages */
.flag { display: block; flex-shrink: 0; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang-list .line { min-height: 54px; }
.lang-list label.line { cursor: pointer; }
.lang-list label.line:hover { background: var(--hover); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.tabs a:hover { background: var(--hover); color: var(--ink); }
.tabs a[aria-current] { background: var(--fill); color: var(--ink); }
.meter { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 6px; }
.meter::before { content: ""; width: 64px; height: 4px; border-radius: 2px; background: var(--fill); }
.meter span { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--tint); max-width: 64px; }
.tr-table { display: flex; flex-direction: column; }
.tr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; padding: 6px 14px; border-bottom: 1px solid var(--sep); }
.tr-headrow { font-size: 12px; font-weight: 600; color: var(--ink-2); padding-top: 10px; padding-bottom: 8px; }
.tr-row.is-section { background: var(--surface-2); }
.tr-row.is-section .tr-orig { font-weight: 600; }
.tr-orig { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.tr-orig small { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.tr-row input { background: transparent; box-shadow: none; }
.tr-row input:hover { box-shadow: inset 0 0 0 1px var(--sep); }
@media (max-width: 640px) { .tr-row { grid-template-columns: 1fr; gap: 4px; } .tr-headrow { display: none; } }
form[data-busy].is-busy { opacity: 0.6; pointer-events: none; }

/* Appearance */
.ap { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .ap { grid-template-columns: 1fr; } .ap-preview { order: -1; } }
.ap-preview { position: sticky; top: 20px; }
@media (max-width: 1000px) { .ap-preview { position: static; } }
.ap-frame { border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--sep), 0 24px 48px -24px rgba(0,0,0,.25); }
.ap-frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--sep); background: var(--surface-2); }
.ap-frame-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--fill); }
.ap-frame-bar p { flex: 1; text-align: center; font-size: 12px; color: var(--ink-2); margin-right: 36px; }
.ap-frame-body { height: calc(100vh - 110px); overflow-y: auto; }
@media (max-width: 1000px) { .ap-frame-body { height: 460px; } }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.tpl-card { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 4px 4px 8px; border-radius: 9px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--sep); }
.tpl-card:hover { background: var(--hover); }
.tpl-card:has(input:checked) { box-shadow: inset 0 0 0 2px var(--tint); }
.tpl-card:has(input:focus-visible) { outline: 3px solid var(--tint-soft); }
.tpl-card input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-card .tp-thumb { height: 120px; border-radius: 6px; margin-bottom: 6px; }
.tpl-card .tp-thumb .tp-root { transform: scale(0.34); width: 400px; }
.tpl-name { font-size: 13px; font-weight: 600; padding: 0 4px; }
.tpl-hint { font-size: 11px; color: var(--ink-2); padding: 0 4px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 14px; border-top: 1px solid var(--sep); }
.opt:first-child { border-top: 0; }
.opt > span:first-child { color: var(--ink-2); font-weight: 500; flex-shrink: 0; }
.opt .segmented { min-width: 0; flex: 0 1 260px; }
.opt select { width: auto; min-width: 150px; }
.opt.switch { cursor: pointer; }
.row-inline { display: flex; align-items: center; gap: 6px; }
input[type="color"] { width: 28px; height: 28px; min-height: 0 !important; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--sep); cursor: pointer; overflow: hidden; background: none; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
input[type="color"]::-moz-color-swatch { border: 0; border-radius: 50%; }
.swatches { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 1px var(--sep); }
.swatch.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--c); }
.swatches input[type="color"] { width: 20px; height: 20px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fill); padding: 2px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; text-align: center; font-weight: 500; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.segmented input:checked + span { background: var(--surface); }
.segmented input:focus-visible + span { outline: 2px solid var(--tint); }
select { appearance: none; -webkit-appearance: none; padding-right: 28px !important; background: var(--surface) right 10px center / 9px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238e8e93' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); cursor: pointer; }
.upload { display: flex; align-items: center; gap: 10px; }
.upload-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; box-shadow: 0 0 0 1px var(--sep); background: var(--surface-2); flex-shrink: 0; }
.upload-thumb.is-wide { width: 72px; }
.upload input[type="file"] { display: none; }
.ap-save { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 35%); }

details.more > summary { list-style: none; cursor: pointer; border-bottom: 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary h2::after { content: "⌄"; margin-left: 6px; color: var(--ink-3); font-weight: 400; display: inline-block; transition: transform 0.2s; }
details.more[open] > summary h2::after { transform: rotate(180deg); }
details.more[open] > summary { border-bottom: 1px solid var(--sep); }
.opt-checks { align-items: flex-start; }
.checks { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.checks .check-inline { color: var(--ink); }
@media (max-width: 520px) {
  .opt { flex-wrap: wrap; }
  .opt .segmented { flex: 1 1 100%; }
  .upload { margin-left: auto; }
}
/* Anchored rows land below the sticky mobile bar instead of under it. */
body.app [id^="i-"], body.app [id^="s-"] { scroll-margin-top: 24px; }
@media (max-width: 820px) { body.app [id^="i-"], body.app [id^="s-"] { scroll-margin-top: 120px; } }

/* Item photos and plan hints */
.line-thumb { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px var(--sep); }
.it-photo { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.it-photo input[type="file"] { display: none; }
.pro-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--tint-soft); color: var(--tint); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; vertical-align: 1px; }
.pro-hint { color: var(--ink-2) !important; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.pro-hint:hover { color: var(--ink) !important; }
.limit-line { color: var(--ink-2) !important; font-size: 13px; gap: 6px; }
.limit-line::before { content: "" !important; width: 0 !important; }
.is-locked { opacity: 0.55; }

/* Plans */
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 640px) { .plans-grid { grid-template-columns: 1fr; } }
.plan-card { margin: 0; }
.plan-card h2 { font-size: 15px; font-weight: 600; }
.plan-card.is-pro { box-shadow: 0 0 0 1.5px var(--tint), 0 8px 24px -12px color-mix(in srgb, var(--tint) 50%, transparent); }
.plan-price { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 14px; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.plan-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-list li { display: flex; gap: 8px; }
.plan-list li::before { content: "✓"; color: var(--tint); font-weight: 700; }
.plan-current { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.notice-warn { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: rgba(255, 159, 10, 0.12); color: var(--ink); }

.side-lang { display: flex; gap: 2px; padding: 0 6px 6px; }
.side-lang button { border: 0; background: none; padding: 3px 7px; border-radius: 6px; font: 600 11px/1.3 var(--font); letter-spacing: 0.04em; color: var(--ink-3); cursor: pointer; }
.side-lang button:hover { color: var(--ink); background: var(--hover); }
.side-lang button[aria-pressed="true"] { color: var(--ink); background: var(--fill); }
@media (max-width: 820px) { .side-lang { padding: 0; } }

/* Croatian anchor price */
.it-main.has-anchor { grid-template-columns: 1fr 110px 130px; }
.anchor-field { display: flex; flex-direction: column; gap: 2px; }
.anchor-field .hint { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.variant-row.has-anchor { grid-template-columns: 1fr 100px 110px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) {
  .it-main.has-anchor { grid-template-columns: 1fr 96px; }
  .it-main.has-anchor .anchor-field { grid-column: 1 / -1; }
  .variant-row.has-anchor { grid-template-columns: 1fr 80px 90px; }
  .grid3 { grid-template-columns: 1fr; }
}
.mono { font-family: var(--mono); font-size: 12px; }
.feed-list { border-top: 1px solid var(--sep); }
.feed-settings { padding-top: 6px; border-top: 1px solid var(--sep); }
.sheet li { flex-wrap: wrap; }
.sheet-anchor { flex-basis: 100%; text-align: right; font-size: 12px; color: #6e6e73; }

/* QA fixes */
.ap-frame-body > .tp-root { min-height: 100%; }
.it-row2.sale-row { grid-template-columns: 140px 1fr; }
@media (max-width: 640px) { .it-row2.sale-row { grid-template-columns: 1fr; } }
.tag-accent { background: rgba(10, 132, 255, 0.14); color: #0a6fd8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag-accent { color: #64b0ff; } }
.chip input[type="radio"]:checked + span { color: var(--ink); background: var(--fill); box-shadow: inset 0 0 0 1px var(--ink-3); }
@media (max-width: 640px) {
  .line-title { white-space: normal; }
  .line-title .tag { margin: 2px 4px 0 0; }
}
.add-line:not(:focus-within) .btn { opacity: 0.55; pointer-events: auto; }
.add-line input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--danger) !important; border-radius: 6px; }
body.app input[pattern]:invalid:not(:placeholder-shown) { box-shadow: inset 0 0 0 1px var(--danger) !important; }
.saved-tag { animation: fade-out 2.5s 1.5s forwards; }
@keyframes fade-out { to { opacity: 0; } }
.onboard { padding: 16px 18px; }
.onboard h2 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.onboard ol { margin: 0; padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.pro-next { list-style: none; margin: 0; padding: 0; }
.pro-next a { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--sep); }
.pro-next a:hover { background: var(--hover); }
.pro-next a::after { content: "›"; color: var(--ink-3); }

/* Print: prices may carry notes (30-day lowest, anchor); let them wrap inside the right column. */
.sheet li > .price { max-width: 55%; text-align: right; white-space: normal; }
.sheet li > .price small { white-space: normal; }
.sheet-legend { margin-top: 24px; font-size: 11px; color: #6e6e73; line-height: 1.5; }
body.print .print-bar .btn { background: #111; color: #fff; }
body.print .print-bar a:not(.btn) { color: #111; }
@media (max-width: 1000px) { .ap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatches { justify-content: flex-start; }
  .lists-table .line { flex-wrap: wrap; row-gap: 4px; }
  .lists-table .line-main { flex-basis: calc(100% - 40px); }
  .lists-table .line-meta:last-child { display: none; }
}
