/* ===========================================================
   AEXO — App / "Inside" Dashboard
   Erste Ansicht nach kostenloser Konfiguration
   Baut auf styles.css (Tokens, Buttons, Icons) auf.
   =========================================================== */

:root {
  --shop: #1E3A6E;            /* Brand-Farbe des verbundenen Shops (aus Konfigurator) */
  --shop-soft: color-mix(in srgb, var(--shop) 10%, #fff);
  --sidebar-w: 248px;
  --topbar-h: 68px;
}

body { background: var(--surface-2); overflow: hidden; }

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
}

/* ===================== Sidebar ===================== */
.side {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 14px 14px;
  height: 100vh;
}
.side-logo { display: flex; align-items: flex-start; gap: 10px; padding: 0 8px 4px; height: var(--topbar-h); }
.side-logo img { height: 36px; width: auto; margin-top: 0; }

.side-group { margin-top: 14px; }
.side-group + .side-group { margin-top: 4px; }
.side-cap {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); padding: 0 10px 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 10px; border-radius: 10px; border: 0; background: transparent;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-align: left;
  transition: background .13s, color .13s;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink-1); }
.nav-item.active { background: var(--shop-soft); color: var(--shop); }
.nav-item svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav-item .label { flex: 1; }
.nav-item .pill {
  font-size: 11px; font-weight: 800; line-height: 1; padding: 4px 7px;
  border-radius: 999px; background: var(--shop); color: #fff;
}
.nav-item.active .pill { background: var(--shop); }

.side-spacer { flex: 1; }

.side-upsell {
  background: var(--ink-1); color: #fff; border-radius: 14px;
  padding: 16px; margin: 8px 4px 12px;
}
.side-upsell .su-t { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.side-upsell .su-d { font-size: 12.5px; color: rgba(255,255,255,0.66); margin-top: 4px; line-height: 1.45; }
.side-upsell .su-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.16); margin: 12px 0 8px; overflow: hidden; }
.side-upsell .su-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent-bright); }
.side-upsell .su-meta { font-size: 11.5px; color: rgba(255,255,255,0.55); }
.side-upsell .btn { width: 100%; margin-top: 12px; height: 38px; font-size: 13.5px; }

.side-user {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border-top: 1px solid var(--border); border-radius: 0;
}
.side-user .ava {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--shop); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
}
.side-user .su-name { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.side-user .su-mail { font-size: 12px; color: var(--ink-3); }
.side-user .su-more { margin-left: auto; color: var(--ink-3); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; }
.side-user .su-more:hover { background: var(--surface-2); color: var(--ink-1); }

/* ===================== Main column ===================== */
.main { display: flex; flex-direction: column; height: 100vh; min-width: 0; }

.topbar {
  height: var(--topbar-h); flex-shrink: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 0 26px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
}
.shop-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 8px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface);
}
.shop-pill:hover { border-color: var(--border-strong); }
.shop-pill .dot { width: 28px; height: 28px; border-radius: 8px; background: var(--shop); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.shop-pill .nm { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.shop-pill .plat { font-size: 11px; font-weight: 700; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.shop-pill .plat svg { width: 12px; height: 12px; }
.shop-pill > svg { width: 16px; height: 16px; color: var(--ink-3); }

.topsearch {
  flex: 1; max-width: 360px; display: flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 14px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-3);
}
.topsearch svg { width: 17px; height: 17px; }
.topsearch input { border: 0; background: transparent; outline: 0; flex: 1; font-size: 14px; color: var(--ink-1); }
.topsearch .kbd { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; background: var(--surface); }

.topbar .spacer { flex: 1; }
.top-period {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 11px; border: 1px solid var(--border); background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--ink-1);
}
.top-period svg { width: 16px; height: 16px; color: var(--ink-3); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); display: grid; place-items: center; color: var(--ink-2);
  position: relative;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--ink-1); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .ping { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 999px; background: var(--bad-fg); border: 2px solid var(--surface); }

/* ===================== Scroll area ===================== */
.scroll { flex: 1; overflow-y: auto; padding: 24px 26px 60px; }
.scroll::-webkit-scrollbar { width: 10px; }
.scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid var(--surface-2); }

/* freshly-connected banner */
.connected {
  display: flex; align-items: center; gap: 14px;
  background: var(--good-bg); border: 1px solid color-mix(in srgb, var(--good-fg) 22%, transparent);
  border-radius: 14px; padding: 13px 16px; margin-bottom: 22px;
}
.connected .cc-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--good-fg); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.connected .cc-ic svg { width: 19px; height: 19px; }
.connected .cc-t { font-size: 14px; font-weight: 700; color: var(--good-fg); }
.connected .cc-d { font-size: 13px; color: color-mix(in srgb, var(--good-fg) 75%, var(--ink-1)); margin-top: 1px; }
.connected .cc-x { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--good-fg); display: grid; place-items: center; }
.connected .cc-x:hover { background: color-mix(in srgb, var(--good-fg) 12%, transparent); }
.connected .cc-x svg { width: 16px; height: 16px; }

/* greeting */
.greet { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.greet h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.greet p { font-size: 14.5px; color: var(--ink-2); margin: 5px 0 0; }
.greet .g-actions { margin-left: auto; display: flex; gap: 9px; }

/* ===================== KPI row ===================== */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
}
.kpi-c .kc-top { display: flex; align-items: center; gap: 9px; }
.kpi-c .kc-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--shop-soft); color: var(--shop); display: grid; place-items: center; }
.kpi-c .kc-ic svg { width: 17px; height: 17px; }
.kpi-c .kc-l { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.kpi-c .kc-v { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; margin: 12px 0 0; font-variant-numeric: tabular-nums; }
.kpi-c .kc-foot { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.delta svg { width: 13px; height: 13px; }
.delta.up { color: var(--good-fg); background: var(--good-bg); }
.delta.down { color: var(--bad-fg); background: var(--bad-bg); }
.delta.flat { color: var(--ink-2); background: var(--surface-3); }
.kpi-c .kc-vs { font-size: 12px; color: var(--ink-3); }

/* sparkline */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 30px; margin-top: 12px; }
.spark i { flex: 1; border-radius: 3px 3px 1px 1px; background: var(--shop); opacity: 0.18; }
.spark i.hi { opacity: 0.9; }

/* ===================== Content grid ===================== */
.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.card-h h2 { font-size: 16px; font-weight: 800; letter-spacing: -0.015em; margin: 0; flex-shrink: 0; white-space: nowrap; }
.card-h .sub { font-size: 13px; color: var(--ink-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-h .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chip {
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-2);
}
.chip.active { background: var(--ink-1); color: #fff; border-color: var(--ink-1); }
.link-arrow { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--shop); }
.link-arrow svg { width: 15px; height: 15px; }

/* revenue chart */
.rev-head { display: flex; align-items: flex-end; gap: 14px; margin: 14px 0 18px; }
.rev-head .big { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rev-head .delta { margin-bottom: 6px; }
.rev-chart { position: relative; height: 200px; }
.rev-bars { display: flex; align-items: flex-end; gap: 7px; height: 100%; padding-top: 8px; }
.rev-bars .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 0; position: relative; height: 100%; }
.rev-bars .col .b { width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--shop) 62%, #fff), var(--shop)); transition: height .5s cubic-bezier(.22,.61,.36,1); }
.rev-bars .col.dim .b { background: var(--surface-3); }
.rev-bars .col:hover .b { filter: brightness(1.08); }
.rev-bars .col .tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--ink-1); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 8px; border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .12s; font-variant-numeric: tabular-nums;
}
.rev-bars .col:hover .tip { opacity: 1; }
.rev-x { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

/* support agent card */
.agent-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 14px 0 16px; }
.agent-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 13px; }
.agent-stat .l { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.agent-stat .v { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.agent-feed { display: grid; gap: 2px; }
.feed-row { display: flex; align-items: center; gap: 11px; padding: 10px 4px; border-top: 1px solid var(--border); }
.feed-row:first-child { border-top: 0; }
.feed-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.feed-ic.bot { background: var(--shop-soft); color: var(--shop); }
.feed-ic.esc { background: var(--warn-bg); color: var(--warn-fg); }
.feed-ic svg { width: 16px; height: 16px; }
.feed-q { font-size: 13.5px; font-weight: 600; color: var(--ink-1); line-height: 1.35; }
.feed-m { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.feed-badge { margin-left: auto; flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.feed-badge.ok { color: var(--good-fg); background: var(--good-bg); }
.feed-badge.esc { color: var(--warn-fg); background: var(--warn-bg); }

/* ===================== KI-Empfehlungen (the differentiator) ===================== */
.recos { display: grid; gap: 12px; }
.reco {
  border: 1px solid var(--border); border-radius: 15px; padding: 16px;
  background: var(--surface); transition: border-color .15s, box-shadow .15s, opacity .3s, transform .3s;
}
.reco:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.reco.done { opacity: 0.5; }
.reco-top { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.reco-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.02em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.reco-tag svg { width: 12px; height: 12px; }
.reco-tag.opp { color: var(--shop); background: var(--shop-soft); }
.reco-tag.warn { color: var(--warn-fg); background: var(--warn-bg); }
.reco-tag.risk { color: var(--bad-fg); background: var(--bad-bg); }
.reco-impact { margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--good-fg); font-variant-numeric: tabular-nums; }
.reco h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin: 0; line-height: 1.35; }
.reco p { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; line-height: 1.5; }
.reco-action { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.reco-action .btn { height: 38px; font-size: 13.5px; padding: 0 15px; }
.reco-action .dismiss { font-size: 13px; font-weight: 600; color: var(--ink-3); background: transparent; border: 0; padding: 8px; }
.reco-action .dismiss:hover { color: var(--ink-1); }
.reco-action .done-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--good-fg); }
.reco-action .done-tag svg { width: 16px; height: 16px; }

.btn-shop { background: var(--shop); color: #fff; box-shadow: var(--shadow-navy); }
.btn-shop:hover { filter: brightness(0.93); }

/* anomaly / detail mini list on right */
.mini { margin-top: 18px; }
.mini-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--border); }
.mini-row:first-of-type { border-top: 0; }
.mini-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink-2); flex-shrink: 0; }
.mini-ic svg { width: 16px; height: 16px; }
.mini-t { font-size: 13.5px; font-weight: 700; }
.mini-d { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.mini-v { margin-left: auto; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }

.section-gap { margin-top: 18px; }

/* ===================== Top products table ===================== */
.tbl { width: 100%; border-collapse: collapse; margin-top: 6px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.tbl th.num, .tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--surface-2); }
.prod { display: flex; align-items: center; gap: 11px; }
.prod .ph { width: 36px; height: 36px; border-radius: 9px; background: repeating-linear-gradient(135deg, var(--surface-3), var(--surface-3) 6px, var(--surface-2) 6px, var(--surface-2) 12px); border: 1px solid var(--border); flex-shrink: 0; }
.prod .pn { font-size: 14px; font-weight: 700; }
.prod .ps { font-size: 12px; color: var(--ink-3); }
.bar-mini { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; width: 90px; display: inline-block; }
.bar-mini > span { display: block; height: 100%; background: var(--shop); border-radius: 999px; }

/* responsive-ish (app stays wide; collapse sidebar on small) */
@media (max-width: 1100px) {
  .grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
}

/* ===========================================================
   SUB-SEITEN (Analyse, Empfehlungen, Support, Produkte, Marke, Einstellungen)
   =========================================================== */

/* Segment-Tabs (Unterstrich) */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab { padding: 11px 14px; font-size: 14px; font-weight: 700; color: var(--ink-3); border: 0; background: transparent; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px; }
.tab:hover { color: var(--ink-1); }
.tab.active { color: var(--shop); border-bottom-color: var(--shop); }
.tab .count { font-size: 11px; font-weight: 800; background: var(--surface-3); color: var(--ink-2); padding: 2px 7px; border-radius: 999px; }
.tab.active .count { background: var(--shop-soft); color: var(--shop); }

/* Filterleiste */
.filterbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filterbar .spacer { flex: 1; }

/* generische Status-Tags */
.tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.tag svg { width: 12px; height: 12px; }
.tag.ok { color: var(--good-fg); background: var(--good-bg); }
.tag.warn { color: var(--warn-fg); background: var(--warn-bg); }
.tag.bad { color: var(--bad-fg); background: var(--bad-bg); }
.tag.neutral { color: var(--ink-2); background: var(--surface-3); }
.tag.shop { color: var(--shop); background: var(--shop-soft); }

/* Funnel */
.funnel { display: grid; gap: 9px; }
.funnel-row .fl { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 5px; }
.funnel-row .fl .nm { font-weight: 700; color: var(--ink-1); white-space: nowrap; }
.funnel-row .fl .vv { color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.funnel-track { height: 36px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.funnel-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, color-mix(in srgb, var(--shop) 72%, #fff), var(--shop)); display: flex; align-items: center; padding: 0 12px; color: #fff; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; transition: width .5s cubic-bezier(.22,.61,.36,1); }
.funnel-drop { font-size: 11.5px; color: var(--bad-fg); font-weight: 700; margin-top: 4px; }

/* Donut (conic-gradient) + Legende */
.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut { width: 150px; height: 150px; border-radius: 50%; flex-shrink: 0; position: relative; }
.donut::after { content: ""; position: absolute; inset: 26px; background: var(--surface); border-radius: 50%; }
.donut .center { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; }
.donut .center .v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.donut .center .l { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.legend { display: grid; gap: 10px; flex: 1; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.legend-row .sw { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.legend-row .nm { font-weight: 600; }
.legend-row .vv { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Einstellungs-Zeilen */
.set-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.set-row:first-child { border-top: 0; }
.set-row .st { font-size: 14.5px; font-weight: 700; }
.set-row .sd { font-size: 13px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }
.set-row .ctrl { margin-left: auto; flex-shrink: 0; }

/* Toggle-Switch */
.toggle { width: 44px; height: 26px; border-radius: 999px; background: var(--surface-3); position: relative; border: 0; transition: background .16s; flex-shrink: 0; }
.toggle.on { background: var(--shop); }
.toggle i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: left .16s; }
.toggle.on i { left: 21px; }

/* Eingabefelder */
.field-label { font-size: 13px; font-weight: 700; margin-bottom: 7px; display: block; color: var(--ink-1); }
.field { height: 44px; width: 100%; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 11px; font-size: 14px; background: var(--surface); color: var(--ink-1); outline: 0; }
.field:focus { border-color: var(--shop); box-shadow: 0 0 0 4px var(--shop-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: -0.01em; }

/* Integrations-Zeile */
.intg { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-top: 1px solid var(--border); }
.intg:first-child { border-top: 0; }
.intg .logo { width: 42px; height: 42px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink-2); flex-shrink: 0; }
.intg .logo svg { width: 21px; height: 21px; }
.intg .it { font-size: 14.5px; font-weight: 700; }
.intg .id { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.intg .ic-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Marke & Widget */
.brand-grid { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.widget-frame { background: linear-gradient(160deg, var(--surface-2), var(--surface-3)); border: 1px solid var(--border); border-radius: 18px; padding: 22px; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.widget-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-3); overflow: hidden; }
.widget-top { padding: 14px 16px; display: flex; align-items: center; gap: 10px; color: #fff; }
.widget-top .wa { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,0.2); display: grid; place-items: center; }
.widget-top .wa svg { width: 17px; height: 17px; }
.widget-top .wt { font-size: 14px; font-weight: 800; white-space: nowrap; }
.widget-top .ws { font-size: 11.5px; opacity: 0.85; white-space: nowrap; }
.widget-body { padding: 16px; display: grid; gap: 10px; background: var(--surface-2); }
.widget-launcher { position: absolute; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-3); }
.widget-launcher svg { width: 24px; height: 24px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 4px; }

@media (max-width: 1100px) {
  .brand-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
