/* =====================================================================
   EasyReceive Vision – EasyReceive Standarddesign
   Weich fließender Verlauf (Blau, Violett, Rosa, Pfirsich), Glas-Karten,
   ruhige Farben, keine farbigen Ränder.
   ===================================================================== */
:root {
  --er-blue: #9db8ff; --er-violet: #c3aefc; --er-pink: #f9bcd8; --er-peach: #ffd5b8; --er-base: #f5f2fb;
  --ink: #1d1b2c; --ink-2: #4a4760; --ink-3: #6f6b86;
  --line: rgba(29, 27, 44, 0.07); --line-strong: rgba(29, 27, 44, 0.12);
  --glass: rgba(255, 255, 255, 0.68); --glass-strong: rgba(255, 255, 255, 0.86); --glass-edge: rgba(255, 255, 255, 0.75);
  --shadow-sm: 0 1px 2px rgba(29, 27, 44, 0.04);
  --shadow: 0 1px 2px rgba(29, 27, 44, 0.04), 0 10px 36px -8px rgba(76, 58, 140, 0.12);
  --shadow-lg: 0 2px 4px rgba(29, 27, 44, 0.04), 0 24px 60px -12px rgba(76, 58, 140, 0.22);
  --ok-bg: #e5f3ea; --ok: #22663f; --warn-bg: #fbf0dc; --warn: #8a5a12; --bad-bg: #fbe4e6; --bad: #9b2c3a;
  --info-bg: #e9e8fb; --info: #3f3a8f; --mute-bg: #eeedf3; --mute: #5d5a70;
  --radius: 20px; --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--er-base); min-height: 100vh; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

.er-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, var(--er-blue) 0%, transparent 55%), radial-gradient(90% 80% at 100% 0%, var(--er-violet) 0%, transparent 55%),
    radial-gradient(100% 90% at 100% 100%, var(--er-peach) 0%, transparent 55%), radial-gradient(90% 90% at 0% 100%, var(--er-pink) 0%, transparent 55%), var(--er-base); }
.er-backdrop span { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: transform; }
.er-backdrop span:nth-child(1) { background: var(--er-blue); top: -20vmax; left: -10vmax; animation: drift-a 28s var(--ease) infinite alternate; }
.er-backdrop span:nth-child(2) { background: var(--er-violet); top: -15vmax; right: -20vmax; animation: drift-b 34s var(--ease) infinite alternate; }
.er-backdrop span:nth-child(3) { background: var(--er-pink); bottom: -25vmax; left: 10vmax; animation: drift-c 30s var(--ease) infinite alternate; }
.er-backdrop span:nth-child(4) { background: var(--er-peach); bottom: -20vmax; right: -10vmax; animation: drift-a 38s var(--ease) infinite alternate-reverse; }
.er-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.32)); }
@keyframes drift-a { from { transform: translate(0,0) scale(1); } to { transform: translate(8vmax,6vmax) scale(1.12); } }
@keyframes drift-b { from { transform: translate(0,0) scale(1.05); } to { transform: translate(-10vmax,8vmax) scale(.95); } }
@keyframes drift-c { from { transform: translate(0,0) scale(1); } to { transform: translate(6vmax,-8vmax) scale(1.1); } }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 650; color: var(--ink); }
h1 { font-size: 28px; line-height: 1.2; } h2 { font-size: 17px; line-height: 1.3; } h3 { font-size: 15px; }
p { margin: 0; } a { color: inherit; text-decoration: none; }
.muted { color: var(--ink-3); } .small { font-size: 13px; } .mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; } .num { font-variant-numeric: tabular-nums; }

.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 20px; padding: 20px; min-height: 100vh; }
.sidebar { position: sticky; top: 20px; height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: radial-gradient(circle at 25% 25%, var(--er-blue), transparent 60%), radial-gradient(circle at 80% 30%, var(--er-violet), transparent 60%),
    radial-gradient(circle at 70% 85%, var(--er-peach), transparent 60%), radial-gradient(circle at 20% 80%, var(--er-pink), transparent 60%), #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 4px 14px -4px rgba(76,58,140,.35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; } .brand-text span { font-size: 12px; color: var(--ink-3); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 14px 10px 6px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14px;
  transition: background .25s var(--ease), color .25s var(--ease); }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .75; }
.nav a:hover { background: rgba(255,255,255,.6); color: var(--ink); }
.nav a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); } .nav a[aria-current="page"] svg { opacity: 1; }
.nav a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav .soon { margin-left: auto; font-size: 10.5px; color: var(--ink-3); background: rgba(29,27,44,.05); padding: 1px 7px; border-radius: 99px; }
.sidebar-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 650; font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow-sm); flex: none; }
.sidebar-foot .who { min-width: 0; flex: 1; line-height: 1.2; }
.sidebar-foot .who strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .who span { font-size: 11.5px; color: var(--ink-3); }
.main { min-width: 0; padding: 8px 8px 40px; }

.page { animation: page-in .5s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.stagger > * { animation: rise-in .55s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .05s; } .stagger > *:nth-child(3) { animation-delay: .1s; } .stagger > *:nth-child(4) { animation-delay: .15s; } .stagger > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .er-backdrop span, .page, .stagger > *, .bar > span { animation: none !important; } * { transition-duration: .01ms !important; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 22px; flex-wrap: wrap; }
.page-head .eyebrow { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; } .page-head .eyebrow a:hover { color: var(--ink); }
.page-head p.lead { color: var(--ink-2); margin-top: 6px; max-width: 680px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); padding: 20px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head p { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.card + .card { margin-top: 16px; } .grid > .card + .card, .row > .card + .card, aside > .card + .card { margin-top: 0; }
aside { display: grid; gap: 16px; align-content: start; }
.card.flush { padding: 0; overflow: hidden; } .card.flush > .card-head { padding: 18px 20px 0; }
.grid { display: grid; gap: 16px; } .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .grid-main { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); align-items: start; }
.section { margin-top: 16px; }

.kpi { display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi-label { font-size: 13px; color: var(--ink-3); font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.kpi-value { font-size: 32px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12.5px; color: var(--ink-3); } .kpi-split { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 550; white-space: nowrap; background: var(--mute-bg); color: var(--mute); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--info); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--mute); flex: none; }
.dot.ok { background: #3aa66a; box-shadow: 0 0 0 4px rgba(58,166,106,.14); } .dot.warn { background: #d99a2b; box-shadow: 0 0 0 4px rgba(217,154,43,.16); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 550; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; } .table tbody tr:hover { background: rgba(255,255,255,.55); }
.table .row-link { font-weight: 600; } .table .row-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-3); } .empty strong { display: block; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.list-item:last-child { border-bottom: none; } .list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 550; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .meta { font-size: 12.5px; color: var(--ink-3); }
a.list-item:hover .title { text-decoration: underline; text-underline-offset: 3px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 11px; border: none; font: inherit; font-size: 14px; font-weight: 550;
  cursor: pointer; white-space: nowrap; color: var(--ink); background: rgba(255,255,255,.85); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), opacity .2s; }
.btn:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 6px 18px -6px rgba(76,58,140,.25), inset 0 0 0 1px var(--line); }
.btn:disabled { opacity: .55; cursor: default; transform: none; } .btn svg { width: 16px; height: 16px; }
.btn:focus-visible, .link-button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px -8px rgba(29,27,44,.6); } .btn-primary:hover { background: #2c2943; color: #fff; }
.btn-danger { color: var(--bad); } .btn-danger.btn-primary { background: #a3313f; color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; } .btn-block { width: 100%; height: 44px; }
.btn-google { height: 48px; width: 100%; font-size: 15px; background: #fff; }
.link-button { background: none; border: none; padding: 0; font: inherit; color: var(--ink-3); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--ink); } .link-button.bad { color: var(--bad); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 16px; } .form-grid .full { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 14px; } .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 550; color: var(--ink-2); } .field > small { font-size: 12px; color: var(--ink-3); }
.input, .field input, .field select, .field textarea, .filters input, .filters select { width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: none;
  background: rgba(255,255,255,.88); box-shadow: inset 0 0 0 1px var(--line-strong); font: inherit; font-size: 14px; color: var(--ink);
  transition: box-shadow .2s var(--ease), background .2s var(--ease); appearance: none; -webkit-appearance: none; }
.field input[type=checkbox] { width: 18px; height: 18px; appearance: auto; -webkit-appearance: checkbox; box-shadow: none; }
.field select, .filters select, select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c7891' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1px rgba(29,27,44,.22), 0 0 0 4px rgba(157,140,240,.18); }
.checkbox { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; } .checkbox input { width: 18px; height: 18px; accent-color: var(--ink); }
.form-error { color: var(--bad); background: var(--bad-bg); padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.form-ok { color: var(--ok); background: var(--ok-bg); padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .filters input[type="search"] { flex: 1 1 240px; } .filters select { width: auto; min-width: 150px; flex: 0 1 auto; }

details.reveal > summary { list-style: none; cursor: pointer; } details.reveal > summary::-webkit-details-marker { display: none; }
details.reveal[open] > .reveal-body { animation: rise-in .35s var(--ease) both; }
.reveal-body { margin-top: 12px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--line); }

.product { display: flex; flex-direction: column; gap: 12px; }
.product-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.product-name { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.product-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); }
.product-icon svg { width: 16px; height: 16px; color: var(--ink-2); }
.product-meta { font-size: 13px; color: var(--ink-2); display: grid; gap: 3px; }
.price-lines { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.55); font-size: 13px; }
.price-line { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.price-line.total { color: var(--ink); font-weight: 600; padding-top: 6px; margin-top: 2px; border-top: 1px solid var(--line); }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; padding: 34px 32px 26px; border-radius: 26px; background: rgba(255,255,255,.74); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%); animation: page-in .6s var(--ease) both; }
.auth-card .brand { padding: 0 0 26px; } .auth-card h1 { font-size: 24px; } .auth-card .subtitle { color: var(--ink-2); margin: 8px 0 22px; font-size: 14.5px; }
.auth-secondary { margin-top: 18px; text-align: center; } .auth-foot { margin-top: 22px; font-size: 12px; color: var(--ink-3); text-align: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; margin: 16px 0; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.notice { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; background: var(--info-bg); color: var(--info); }
.notice.bad { background: var(--bad-bg); color: var(--bad); } .notice.warn { background: var(--warn-bg); color: var(--warn); }
.enroll { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr { width: 184px; height: 184px; border-radius: 16px; background: #fff; padding: 10px; box-shadow: var(--shadow); }
.secret { font-size: 13px; color: var(--ink-2); text-align: center; } .secret summary { cursor: pointer; color: var(--ink-3); }
.secret code { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12.5px; background: #fff; padding: 8px; border-radius: 8px; word-break: break-all; }
.code-input { text-align: center; font-size: 22px !important; letter-spacing: .3em; height: 52px !important; font-variant-numeric: tabular-nums; }
.steps { margin: 0 0 6px; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.shimmer { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.4) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.bar { height: 8px; border-radius: 99px; background: rgba(29,27,44,.06); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--er-blue), var(--er-violet), var(--er-pink)); transform-origin: left; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* Funktionen */
.industry-grid { display: grid; gap: 16px; } .industry-grid > .card { margin: 0; }
a.card { color: inherit; text-decoration: none; } .industry-card { display: grid; gap: 12px; transition: transform .2s var(--ease); } a.industry-card:hover { transform: translateY(-1px); }
.industry-card.planned { opacity: .7; }
.configurator { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; align-items: start; }
.cfg-main { min-width: 0; display: grid; gap: 18px; } .cfg-side { position: sticky; top: 20px; display: grid; gap: 16px; min-width: 0; }
.cfg-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .cfg-search { flex: 1 1 260px; }
.segmented { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px var(--line); }
.segmented button { border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink-2); padding: 7px 12px; border-radius: 10px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.segmented button:hover { background: rgba(255,255,255,.7); } .segmented button.on { background: #fff; color: var(--ink); font-weight: 550; box-shadow: var(--shadow-sm); }
.segmented .count { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cfg-notice { font-size: 13px; color: var(--ink-2); background: rgba(255,255,255,.7); padding: 10px 14px; border-radius: 12px; margin: 0; }
.cfg-group { display: grid; gap: 10px; } .cfg-group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 2px; }
.cfg-group-head h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; margin: 0; }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.module { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; min-width: 0; background: rgba(255,255,255,.45); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s var(--ease); }
.module.on { background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.module-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .module-head strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.module p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; } .module:not(.on) strong { color: var(--ink-2); }
.module-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; } .module-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; color: var(--ink-2); background: rgba(29,27,44,.05); padding: 2px 8px; border-radius: 99px; }
.tag.warn { color: var(--warn); background: var(--warn-bg); } .tag.ok { color: var(--ok); background: var(--ok-bg); }
.switch { flex: none; position: relative; width: 38px; height: 22px; border-radius: 99px; border: 0; padding: 0; cursor: pointer; background: rgba(29,27,44,.14); transition: background .2s var(--ease); }
.switch span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(29,27,44,.25); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--ink); } .switch[aria-checked="true"] span { transform: translateX(16px); }
.switch:disabled { cursor: default; opacity: .45; } .switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cfg-summary { display: grid; gap: 10px; margin: 0; } .cfg-big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.cfg-big span { font-size: 14px; font-weight: 450; color: var(--ink-3); letter-spacing: 0; }
.cfg-meter { height: 6px; border-radius: 99px; background: rgba(29,27,44,.07); overflow: hidden; }
.cfg-meter span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--er-blue), var(--er-violet), var(--er-pink)); transition: width .3s var(--ease); }
.cfg-changes { display: grid; gap: 4px; font-size: 13px; padding-top: 10px; border-top: 1px solid var(--line); } .cfg-changes .chg.off { color: var(--ink-3); }
.branch-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.branch-card { position: relative; display: grid; gap: 6px; padding: 16px; border-radius: 16px; cursor: pointer; background: rgba(255,255,255,.45); box-shadow: inset 0 0 0 1px var(--line); }
.branch-card input { position: absolute; opacity: 0; pointer-events: none; } .branch-card strong { font-size: 14px; } .branch-card small { font-size: 12px; color: var(--ink-3); }
.branch-card:has(input:checked) { background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--ink); } .branch-card:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.logo-box { width: 150px; height: 74px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-strong); }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 550; font-size: 14px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); animation: rise-in .3s var(--ease) both; }
.toast.err { background: #a3313f; }

@media (max-width: 1180px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-main { grid-template-columns: minmax(0,1fr); } .configurator { grid-template-columns: 1fr; } .cfg-side { position: static; order: -1; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0,1fr); padding: 12px; gap: 12px; }
  .sidebar { position: sticky; top: 12px; z-index: 10; height: auto; flex-direction: row; align-items: center; padding: 8px 10px; gap: 8px; }
  .brand { padding: 0 4px; } .brand-text span { display: none; }
  .nav { flex-direction: row; overflow-x: auto; flex: 1; scrollbar-width: none; } .nav::-webkit-scrollbar { display: none; }
  .nav-label, .nav .soon { display: none; } .nav a { padding: 8px 10px; white-space: nowrap; }
  .sidebar-foot { margin: 0; padding: 0; border: none; } .sidebar-foot .who { display: none; }
  .main { padding: 4px 2px 32px; } .grid-2, .grid-3 { grid-template-columns: minmax(0,1fr); } h1 { font-size: 24px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; } .form-grid { grid-template-columns: minmax(0,1fr); }
  .card { padding: 16px; border-radius: 18px; } .kpi-value { font-size: 26px; }
  .nav { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; justify-content: space-around; padding: 6px; border-radius: 18px;
    background: rgba(255,255,255,.9); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lg); overflow-x: auto; }
  .nav a { flex-direction: column; gap: 2px; padding: 10px 8px; font-size: 10.5px; flex: 0 0 auto; }
  .nav a svg { width: 20px; height: 20px; } .nav a span.label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sidebar { justify-content: space-between; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.86); }
  .main { padding-bottom: 96px; } .auth-card { padding: 28px 22px 22px; }
}
