@font-face { font-family: "Inter X"; src: url(fonts/Inter.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Montserrat X"; src: url(fonts/Montserrat.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Bebas Neue X"; src: url(fonts/BebasNeue.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Oswald X"; src: url(fonts/Oswald.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Playfair X"; src: url(fonts/PlayfairDisplay.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Roboto Slab X"; src: url(fonts/RobotoSlab.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Abril X"; src: url(fonts/AbrilFatface.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Pacifico X"; src: url(fonts/Pacifico.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Lobster X"; src: url(fonts/Lobster.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Marker X"; src: url(fonts/PermanentMarker.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Bungee X"; src: url(fonts/Bungee.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Black Ops X"; src: url(fonts/BlackOpsOne.woff2) format("woff2"); font-display: swap; }

:root {
  --bg: #08080f;
  --fg: #f5f5fa;
  --muted: rgba(245, 245, 250, .62);
  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .13);
  --stroke: rgba(255, 255, 255, .16);
  --hi: rgba(255, 255, 255, .38);
  --accent: #8a7dff;
  --accent2: #5ad1ff;
  --ok: #4ade80;
  --warn: #fbbf24;
  --radius: 28px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter X", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
  min-height: 100dvh;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  gap: 12px;
}

/* bewegter Farbhintergrund hinter dem Glas */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; filter: blur(70px) saturate(140%); }
.aurora i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; opacity: .55; animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: #5b4bff; left: -15vmax; top: -20vmax; }
.aurora i:nth-child(2) { background: #00b3ff; right: -20vmax; top: -10vmax; animation-delay: -7s; opacity: .4; }
.aurora i:nth-child(3) { background: #ff4fa3; left: 20vmax; bottom: -30vmax; animation-delay: -14s; opacity: .35; }
.aurora i:nth-child(4) { background: #18d2a0; right: -10vmax; bottom: -25vmax; animation-delay: -20s; opacity: .25; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

/* Liquid Glass */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--hi), inset 0 -1px 0 rgba(255,255,255,.05), 0 20px 50px rgba(0,0,0,.35);
  position: relative;
}

.top { display: flex; align-items: center; gap: 16px; padding: 10px 14px 10px 18px; border-radius: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: -.01em; font-weight: 600; }
.brand b { background: linear-gradient(90deg, var(--accent2), var(--accent), #ff7ac6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { border-radius: 8px; }
.privacy {  font-size: 13px; color: var(--muted); white-space: nowrap; }

.seg { position: relative; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; background: rgba(0,0,0,.25); border-radius: 999px; padding: 3px; border: 1px solid rgba(255,255,255,.08); }
.seg button { position: relative; z-index: 1; appearance: none; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; padding: 7px 22px; border-radius: 999px; cursor: pointer; transition: color .25s; }
.seg button[aria-selected="true"] { color: #fff; }
.seg-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 2)); border-radius: 999px; background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--hi), 0 4px 14px rgba(0,0,0,.3); transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.seg[data-mode="text"] .seg-pill, .seg[data-mode="cut"] .seg-pill, .seg[data-mode="3d"] .seg-pill { transform: translateX(100%); }
.seg[data-mode="mono"] .seg-pill { transform: translateX(200%); }
.top .seg { --n: 4; }

.layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; min-height: 0; }
.stage { overflow: hidden; min-height: 360px; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.stage-hud { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.12); font-variant-numeric: tabular-nums; }
.chip.ok { color: var(--ok); } .chip.warn { color: var(--warn); }
.icon-btn { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; color: var(--fg); font-size: 18px; cursor: pointer; }

.drop { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(8,8,15,.25); transition: background .2s; }
.drop.over { background: rgba(138,125,255,.18); }
.drop-card { text-align: center; max-width: 380px; padding: 34px 28px; border-radius: var(--radius); border: 1.5px dashed rgba(255,255,255,.3); background: rgba(255,255,255,.05); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.drop-card h1 { font-size: 24px; margin: 8px 0 6px; letter-spacing: -.02em; }
.drop-card p { color: var(--muted); margin: 0 0 18px; }
.drop-card small { display: block; color: var(--muted); margin-top: 12px; }
.drop-icon { font-size: 30px; width: 64px; height: 64px; margin: 0 auto; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg, var(--accent2), var(--accent)); box-shadow: 0 10px 30px rgba(138,125,255,.45); }

.panel { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.panel h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.panel h3 { margin: 8px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.pane { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--muted); margin: 2px 0 8px; } .tiny { font-size: 12px; text-align: center; margin: 8px 0 0; }
.thumb-row { display: flex; gap: 14px; align-items: center; }
#mask { width: 84px; height: 84px; border-radius: 18px; background: rgba(255,255,255,.9); border: 1px solid var(--stroke); flex: none; object-fit: contain; }
#file-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 14px; }
.row output { color: var(--muted); font-variant-numeric: tabular-nums; }
.row input { grid-column: 1 / -1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); outline: none; margin: 6px 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4), inset 0 -2px 0 rgba(0,0,0,.08); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); }

.switch { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 46px; height: 28px; border-radius: 99px; background: rgba(255,255,255,.16); position: relative; transition: background .25s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.switch input:checked + span { background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.sub { padding-left: 14px; border-left: 2px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 10px; }

textarea { width: 100%; resize: vertical; font-size: 22px; line-height: 1.3; font-family: inherit; color: var(--fg); background: rgba(0,0,0,.25); border: 1px solid var(--stroke); border-radius: 16px; padding: 12px 14px; outline: none; }
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(138,125,255,.25); }
.fonts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fonts button { appearance: none; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: var(--fg); border-radius: 14px; padding: 10px 4px 7px; cursor: pointer; transition: transform .15s, background .2s, border-color .2s; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.fonts button b { font-size: 22px; line-height: 1.1; font-weight: inherit; }
.fonts button small { font: 11px -apple-system, BlinkMacSystemFont, sans-serif; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fonts button:hover { background: rgba(255,255,255,.1); }
.fonts button:active { transform: scale(.96); }
.fonts button[aria-checked="true"] { background: rgba(138,125,255,.25); border-color: var(--accent); box-shadow: inset 0 1px 0 var(--hi); }

.btn { appearance: none; border: 1px solid var(--stroke); background: var(--glass-strong); color: var(--fg); font: inherit; font-weight: 600; padding: 11px 20px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: inset 0 1px 0 var(--hi); transition: transform .15s, filter .2s, opacity .2s; }
.btn:hover { filter: brightness(1.12); } .btn:active { transform: scale(.97); }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn.primary { background: linear-gradient(135deg, var(--accent2), var(--accent) 55%, #c56bff); border-color: rgba(255,255,255,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 30px rgba(138,125,255,.4); color: #fff; }
.btn.big { width: 100%; padding: 16px; font-size: 17px; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.cta { margin: auto -20px -20px; padding: 14px 20px 16px; position: sticky; bottom: -20px; z-index: 2; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(to top, rgba(14,14,26,.92) 60%, rgba(14,14,26,0)); }

.foot { text-align: center; color: var(--muted); font-size: 12px; }

@media (max-width: 860px) {
  body { padding: 8px; gap: 8px; }
  .layout { grid-template-columns: 1fr; grid-template-rows: 46vh auto; }
  .stage { min-height: 300px; }
  .privacy { display: none; }
  .top { padding: 8px 8px 8px 14px; } .seg { margin-left: auto; }
  .seg button { padding: 7px 16px; }
  .panel { overflow: visible; }
  .cta { bottom: 0; margin: auto -20px -20px; }
}

/* Monogramm */
#edit { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#edit:active { cursor: grabbing; }
.viewseg { position: absolute; left: 14px; top: 14px; z-index: 3; }
.viewseg button { padding: 6px 14px; font-size: 13px; }
.edit-hint { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 12px; color: var(--muted); pointer-events: none; white-space: nowrap; }
.pair { display: flex; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.field.grow { flex: 1; }
.field input, .field select { font: 600 16px/1.2 inherit; font-family: inherit; color: var(--fg); background: rgba(0,0,0,.25); border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 12px; outline: none; width: 100%; min-width: 0; }
#m-letter { width: 72px; text-align: center; font-size: 20px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.field select option { background: #1b1a2b; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(138,125,255,.25); }
.seg.mini { align-self: stretch; }
.seg.mini button { padding: 7px 10px; font-size: 13px; }
.patches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.patches button { appearance: none; aspect-ratio: 1; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); cursor: pointer; padding: 6px; display: grid; place-items: center; transition: transform .15s, background .2s; }
.patches button:hover { background: rgba(138,125,255,.25); } .patches button:active { transform: scale(.92); }
.patches img { width: 100%; height: 100%; object-fit: contain; }
.selbox { border-radius: 18px; padding: 12px 14px; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 8px; }
.selhead { display: flex; align-items: center; justify-content: space-between; }
.btn.ghost { background: transparent; box-shadow: none; }
#download-parts { margin-top: 8px; padding: 12px; font-size: 15px; }

/* Paywall */
.paywall { width: min(420px, calc(100vw - 32px)); padding: 30px 26px 22px; color: var(--fg); text-align: center; background: linear-gradient(160deg, rgba(40,36,70,.92), rgba(18,18,32,.94)); }
.paywall::backdrop { background: rgba(5,5,12,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.paywall h2 { margin: 12px 0 4px; font-size: 24px; letter-spacing: -.02em; }
.pw-icon { width: 60px; height: 60px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, var(--accent2), var(--accent) 55%, #ff7ac6); box-shadow: 0 10px 30px rgba(138,125,255,.45); }
.price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 6px; background: linear-gradient(90deg, #fff, #d9d2ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.pw-list { list-style: none; padding: 0; margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.pw-cancel { margin-top: 8px; }
@media (max-width: 860px) { .top .seg button { padding: 7px 10px; font-size: 14px; } .brand span { display: none; } .edit-hint { display: none; } }

/* Bild-Erkennung */
#segview { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.sub-plain { display: flex; flex-direction: column; gap: 10px; }
.tiny-left { font-size: 12px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { appearance: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--muted); font: 600 12px/1 inherit; font-family: inherit; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chip-btn i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.chip-btn[aria-pressed="true"] { color: #fff; border-color: var(--accent); background: rgba(138,125,255,.25); }
.chip-btn[aria-pressed="false"] i { opacity: .45; }

.seg.three { --n: 3; }
.seg[data-idx="1"] .seg-pill { transform: translateX(100%); }
.seg[data-idx="2"] .seg-pill { transform: translateX(200%); }
#height-row span { font-size: 14px; }

/* Editor-Werkzeuge, Ebenen, Palette */
.stage-tools { position: absolute; right: 62px; top: 14px; display: flex; gap: 8px; z-index: 3; }
.stage-tools .icon-btn { position: static; }
.icon-btn:disabled { opacity: .35; cursor: default; }
#edit:focus { outline: none; }
.busy { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; z-index: 3; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.layers { display: flex; flex-direction: column; gap: 4px; max-height: 210px; overflow-y: auto; }
.layer { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; font-size: 14px; transition: background .15s; }
.layer:hover { background: rgba(255,255,255,.06); }
.layer[aria-selected="true"] { background: rgba(138,125,255,.22); border-color: rgba(138,125,255,.6); }
.layer i { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); flex: none; }
.layer span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ldel { appearance: none; border: 0; background: none; color: var(--muted); width: 26px; height: 26px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.ldel:hover { background: rgba(255,77,109,.2); color: #ff8fa3; }
.selbtns { display: flex; gap: 6px; }
.btn.danger:hover { color: #ff8fa3; }
.field-label { font-size: 13px; color: var(--muted); }
.palette { display: flex; flex-direction: column; gap: 10px; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.swatches button { appearance: none; aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 2px 6px rgba(0,0,0,.25); transition: transform .12s; }
.swatches button:hover { transform: scale(1.1); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff; }
.hexrow { display: flex; gap: 8px; align-items: stretch; }
.hexfield { flex: 1; display: flex; align-items: center; gap: 4px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); border-radius: 12px; padding: 0 10px; }
.hexfield span { color: var(--muted); font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; }
.hexfield input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--fg); font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; padding: 9px 0; }
.hexfield:focus-within { border-color: var(--accent); }
.hexfield input.bad { color: #ff8fa3; }
.picker { width: 44px; border-radius: 12px; overflow: hidden; border: 1px solid var(--stroke); background: var(--cur, #fff); position: relative; cursor: pointer; }
.picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.picker::after { content: "🎨"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; pointer-events: none; mix-blend-mode: luminosity; }

.seg[data-mode="ki"] .seg-pill { transform: translateX(300%); }
#k-thumb { width: 84px; height: 84px; border-radius: 18px; background: rgba(255,255,255,.9); border: 1px solid var(--stroke); flex: none; }
.kprog { display: flex; flex-direction: column; gap: 6px; }
.kbar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.kbar i { display: block; height: 100%; width: 3%; border-radius: 99px; background: linear-gradient(90deg, var(--accent2), var(--accent), #ff7ac6); transition: width .6s ease; }
@media (max-width: 860px) { .top .seg button { padding: 7px 6px; font-size: 13px; } }

/* Kostenrechner */
.hdr-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; appearance: none; border: 1px solid var(--stroke); background: var(--glass-strong); color: var(--fg); font: 600 14px/1 inherit; font-family: inherit; padding: 9px 14px; border-radius: 999px; cursor: pointer; box-shadow: inset 0 1px 0 var(--hi); }
.hdr-btn:hover { filter: brightness(1.15); }
.calc { width: min(1080px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 22px; color: var(--fg); background: linear-gradient(160deg, rgba(36,33,62,.96), rgba(16,16,28,.97)); overflow-y: auto; }
.calc::backdrop { background: rgba(5,5,12,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.calc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.calc-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.calc-x { position: static; margin-left: auto; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.kpis > div { border-radius: 18px; padding: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 4px; }
.kpis > div:first-child { background: linear-gradient(135deg, rgba(90,209,255,.22), rgba(138,125,255,.28)); border-color: rgba(138,125,255,.6); }
.kpis span { font-size: 12px; color: var(--muted); } .kpis b { font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .kpis small { font-size: 12px; color: var(--muted); }
.calc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-top: 12px; }
.calc-in { display: flex; flex-direction: column; gap: 10px; }
.calc-in input, .calc-in select { font-size: 15px; }
.crows { display: flex; flex-direction: column; gap: 6px; }
.crow { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr auto; align-items: center; gap: 10px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.crow i { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent2), var(--accent)); width: var(--w, 0); }
.crow b { font-variant-numeric: tabular-nums; }
.crow.total { font-weight: 700; border-bottom: 0; padding-top: 10px; }
.crow.total span, .crow.total b { font-size: 16px; }
@media (max-width: 860px) { .kpis { grid-template-columns: 1fr 1fr; } .calc-grid { grid-template-columns: 1fr; } .hdr-btn span { display: none; } .hdr-btn { padding: 9px; } }
