@import url("../assets/eiz9r.css");

.control-body { background: #eef2f7; }
.control-topbar { position: sticky; top: 0; z-index: 20; width: 100%; border-bottom: 1px solid var(--line); background: rgba(245,247,250,.9); backdrop-filter: blur(16px); }
.control-topbar .shell { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.control-actions { display: flex; align-items: center; gap: 9px; }
.control-actions form { margin: 0; }
.control-main { padding: 30px 0 70px; }
.control-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.control-heading h1 { font-size: clamp(34px, 5vw, 58px); }
.control-heading p { max-width: 560px; margin: 0; color: var(--muted); }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.status-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: 0 10px 32px rgba(38,52,74,.08); }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--project-color); color: white; font-weight: 950; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; box-shadow: 0 0 0 4px rgba(156,163,175,.15); }
.status-card.is-online .status-dot { background: var(--good); box-shadow: 0 0 0 4px rgba(22,116,93,.14); }
.status-card.is-offline .status-dot { background: var(--bad); box-shadow: 0 0 0 4px rgba(179,58,71,.13); }
.status-card h2 { margin: 14px 0 4px; font-size: 17px; }
.status-text { min-height: 42px; margin: 0; color: var(--muted); font-size: 12px; }
.status-meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin: 15px 0; color: var(--muted); font-size: 11px; }
.status-meta strong { overflow: hidden; color: var(--ink); text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.status-links { display: flex; flex-wrap: wrap; gap: 7px; }
.mini-link { padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; text-decoration: none; font-size: 11px; font-weight: 850; }
.control-section { margin-top: 28px; padding: 25px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 14px 42px rgba(38,52,74,.08); }
.section-title { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-title h2 { margin: 0 0 5px; font-size: 23px; }
.section-title p { margin: 0; color: var(--muted); }
.upload-form { display: flex; align-items: end; gap: 12px; padding: 16px; border: 1px dashed rgba(49,95,221,.35); border-radius: 16px; background: #f7f9ff; }
.upload-form label { flex: 1; }
.updater-note { margin-bottom: 14px; padding: 13px 15px; border: 1px solid rgba(22,116,93,.22); border-radius: 14px; background: rgba(22,116,93,.07); color: var(--muted); font-size: 13px; line-height: 1.55; }
.updater-note strong { color: var(--ink); }
.bundle-list { display: grid; gap: 14px; margin-top: 20px; }
.bundle-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfe; }
.bundle-top { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.bundle-top h3 { margin: 0; font-size: 18px; }
.bundle-top p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.package-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.package-option { display: inline-flex; grid-template-columns: auto 1fr; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 11px; }
.package-option input { width: auto; min-height: 0; }
.package-option span { display: grid; }
.package-option small { color: var(--muted); }
.deployment-form { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.deployment-form .button { min-height: 40px; }
.settings-grid { display: grid; gap: 12px; }
.settings-row { display: grid; grid-template-columns: 130px 1fr 1fr auto; align-items: end; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.settings-row > strong { align-self: center; }
.settings-row label { font-size: 11px; }
.settings-row input { min-height: 40px; }
.audit-list { display: grid; gap: 7px; padding: 0; list-style: none; }
.audit-list li { display: grid; grid-template-columns: 160px 210px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.audit-list code { color: var(--blue-dark); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(440px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 25px; background: white; box-shadow: var(--shadow); }
.login-card h1 { font-size: 34px; }
.rollback-slot form { margin-top: 8px; }
.rollback-slot .button { min-height: 34px; width: 100%; font-size: 11px; }
.control-insight-card { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; align-items: center; gap: 22px; margin: 0 0 18px; padding: 20px; border: 1px solid rgba(49,95,221,.2); border-radius: 22px; background: linear-gradient(135deg,#f7f9ff,#fff 58%,#edf8f6); box-shadow: 0 14px 36px rgba(38,52,74,.08); }
.control-insight-card h2 { margin: 3px 0 5px; font-size: 22px; }
.control-insight-card p { margin: 0; color: var(--muted); }
.control-insight-card .button { width: auto; white-space: nowrap; }
.control-insight-card__visual { height: 82px; display: flex; align-items: end; justify-content: center; gap: 8px; padding: 12px; border-radius: 16px; background: #17243b; }
.control-insight-card__visual span { width: 13px; min-height: 9px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg,#67e8f9,#315fdd); box-shadow: 0 0 18px rgba(103,232,249,.25); }

.analytics-shell { --analytics-surface: rgba(255,255,255,.92); --analytics-soft: #f4f7fb; }
.analytics-heading { align-items: start; margin-bottom: 24px; }
.analytics-heading h1 { max-width: 760px; }
.analytics-toolbar { position: sticky; top: 82px; z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 10px; border: 1px solid rgba(123,143,172,.22); border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: 0 12px 28px rgba(36,51,75,.08); backdrop-filter: blur(16px); }
.analytics-toolbar .button { min-height: 38px; width: auto; }
.analytics-range { display: flex; flex-wrap: wrap; gap: 7px; }
.analytics-range__button { min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; color: var(--muted); font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.analytics-range__button:hover, .analytics-range__button:focus-visible { border-color: rgba(49,95,221,.38); color: var(--blue-dark); }
.analytics-range__button.is-active { border-color: #315fdd; background: #315fdd; color: white; box-shadow: 0 7px 18px rgba(49,95,221,.24); }
.analytics-overview { display: grid; grid-template-columns: minmax(220px,.75fr) minmax(0,2.25fr); gap: 22px; align-items: center; padding: 23px; border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: linear-gradient(125deg,#17243b,#263a5b 62%,#315fdd); color: white; box-shadow: 0 20px 48px rgba(24,36,59,.2); }
.analytics-overview h2 { margin: 3px 0 6px; color: white; font-size: 28px; }
.analytics-overview p { margin: 0; color: rgba(255,255,255,.7); }
.analytics-overview .eyebrow { color: #9fb8ff; }
.analytics-overview__metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin: 0; }
.analytics-overview__metrics div { min-width: 0; padding: 13px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(255,255,255,.08); }
.analytics-overview__metrics dt { color: rgba(255,255,255,.62); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.analytics-overview__metrics dd { overflow: hidden; margin: 5px 0 0; color: white; font-size: clamp(20px,3vw,30px); font-weight: 950; text-overflow: ellipsis; }
.analytics-project-tabs { display: flex; gap: 8px; margin: 18px 0 12px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: thin; }
.analytics-project-tab { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.82); color: var(--muted); font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.analytics-project-tab > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb,var(--project-color) 14%,white); }
.analytics-project-tab > i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.analytics-project-tab > i.is-ok { background: #16a36f; box-shadow: 0 0 0 3px rgba(22,163,111,.13); }
.analytics-project-tab > i.is-error { background: #c24151; box-shadow: 0 0 0 3px rgba(194,65,81,.12); }
.analytics-project-tab:hover, .analytics-project-tab:focus-visible { border-color: color-mix(in srgb,var(--project-color) 38%,var(--line)); color: var(--ink); }
.analytics-project-tab.is-active { border-color: color-mix(in srgb,var(--project-color) 55%,var(--line)); background: white; color: var(--ink); box-shadow: inset 0 -3px 0 var(--project-color),0 8px 24px rgba(36,51,75,.08); }
.analytics-project { padding: 24px; border: 1px solid var(--line); border-radius: 26px; background: var(--analytics-surface); box-shadow: 0 18px 50px rgba(36,51,75,.1); }
.analytics-project[hidden] { display: none; }
.analytics-project__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.analytics-project__identity { display: flex; align-items: center; gap: 14px; }
.analytics-project__identity h2 { margin: 2px 0 3px; font-size: 27px; }
.analytics-project__identity p { margin: 0; color: var(--muted); }
.analytics-project__icon { width: 58px; height: 58px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 18px; background: color-mix(in srgb,var(--project-color) 14%,white); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--project-color) 22%,transparent); font-size: 29px; }
.analytics-project__freshness { display: grid; justify-items: end; gap: 3px; text-align: right; }
.analytics-project__freshness span { display: inline-flex; align-items: center; gap: 6px; color: #16745d; font-size: 12px; font-weight: 900; }
.analytics-project__freshness span::before { width: 8px; height: 8px; border-radius: 50%; background: currentColor; content: ""; box-shadow: 0 0 0 4px rgba(22,116,93,.12); }
.analytics-project__freshness small { color: var(--muted); }
.analytics-error { margin-bottom: 16px; padding: 13px 15px; border: 1px solid rgba(179,58,71,.24); border-radius: 14px; background: rgba(179,58,71,.07); color: #8f2633; font-size: 13px; }
.analytics-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0 0 14px; }
.analytics-metrics > div { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--analytics-soft); }
.analytics-metrics dt { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.analytics-metrics dd { margin: 5px 0 1px; color: var(--ink); font-size: clamp(24px,3.4vw,34px); font-weight: 950; letter-spacing: -.04em; }
.analytics-metrics small { display: block; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.analytics-panel { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.analytics-panel--wide { grid-column: 1 / -1; }
.analytics-panel__title { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.analytics-panel__title h3 { margin: 2px 0 0; font-size: 17px; }
.analytics-legend { display: flex; flex-wrap: wrap; justify-content: end; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 800; }
.analytics-legend span { display: inline-flex; align-items: center; gap: 5px; }
.analytics-legend i { width: 17px; height: 3px; border-radius: 99px; }
.analytics-legend i.views { background: var(--project-color); }
.analytics-legend i.sessions { background: #38bdf8; }
.analytics-chart { min-height: 220px; overflow: hidden; border-radius: 12px; background: linear-gradient(180deg,#fbfdff,#f5f8fc); }
.analytics-chart svg { display: block; width: 100%; height: 220px; }
.analytics-chart__grid { stroke: #dce4ee; stroke-width: 1; }
.analytics-chart__label { fill: #718096; font-size: 10px; font-weight: 700; }
.analytics-chart__line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; vector-effect: non-scaling-stroke; }
.analytics-chart__line--views { stroke: var(--project-color); }
.analytics-chart__line--sessions { stroke: #38bdf8; stroke-dasharray: 7 5; }
.analytics-devices { display: grid; grid-template-columns: 118px 1fr; gap: 18px; align-items: center; min-height: 176px; }
.analytics-donut { width: 116px; height: 116px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#334155 0 100%); }
.analytics-donut::before { grid-area: 1 / 1; width: 76px; height: 76px; border-radius: 50%; background: white; content: ""; }
.analytics-donut span { z-index: 1; grid-area: 1 / 1; color: var(--ink); font-size: 22px; font-weight: 950; }
.analytics-devices ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.analytics-devices li { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.analytics-devices li span { display: inline-flex; align-items: center; gap: 6px; }
.analytics-devices li i { width: 8px; height: 8px; border-radius: 50%; }
.analytics-devices li strong { color: var(--ink); font-size: 11px; }
.analytics-bars { display: grid; gap: 10px; min-height: 176px; align-content: start; }
.analytics-bar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; color: var(--muted); font-size: 11px; }
.analytics-bar strong { color: var(--ink); }
.analytics-bar > i { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 999px; background: #e9eef5; }
.analytics-bar > i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--project-color),color-mix(in srgb,var(--project-color) 62%,#38bdf8)); }
.analytics-empty { margin: 0; padding: 28px 12px; color: var(--muted); text-align: center; font-size: 12px; }
.analytics-panel--privacy { background: linear-gradient(145deg,#f6f9ff,#f2f7f4); }
.analytics-panel--privacy ul { display: grid; gap: 8px; margin: 0; padding: 0; color: var(--muted); font-size: 12px; list-style: none; }
.analytics-panel--privacy li { position: relative; padding-left: 20px; }
.analytics-panel--privacy li::before { position: absolute; left: 0; color: #16745d; font-weight: 950; content: "✓"; }
.analytics-footnote { margin: 14px 4px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

@media (max-width: 1050px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .analytics-overview { grid-template-columns: 1fr; }
  .analytics-overview__metrics { grid-template-columns: repeat(5,minmax(120px,1fr)); overflow-x: auto; }
  .analytics-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .control-heading, .section-title, .bundle-top, .deployment-form, .upload-form { display: grid; }
  .status-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .settings-row { grid-template-columns: 1fr; }
  .audit-list li { grid-template-columns: 1fr; gap: 2px; }
  .control-insight-card { grid-template-columns: 105px 1fr; }
  .control-insight-card .button { grid-column: 1 / -1; width: 100%; }
  .analytics-toolbar { position: static; display: grid; }
  .analytics-toolbar .button { width: 100%; }
  .analytics-range { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .analytics-range__button { padding: 7px 5px; }
  .analytics-overview { padding: 19px; }
  .analytics-overview__metrics { grid-template-columns: repeat(5,130px); margin-right: -8px; padding-bottom: 5px; }
  .analytics-project { padding: 18px; border-radius: 21px; }
  .analytics-project__header { align-items: start; }
  .analytics-project__freshness { display: none; }
  .analytics-detail-grid { grid-template-columns: 1fr; }
  .analytics-panel--wide { grid-column: auto; }
  .analytics-chart, .analytics-chart svg { min-height: 190px; height: 190px; }
}
@media (max-width: 480px) {
  .status-grid { grid-template-columns: 1fr; }
  .control-actions .home-label { display: none; }
  .control-insight-card { grid-template-columns: 1fr; }
  .control-insight-card__visual { height: 68px; }
  .control-actions .design-toggle { display: none; }
  .analytics-heading h1 { font-size: 36px; }
  .analytics-overview__metrics { grid-template-columns: repeat(5,118px); }
  .analytics-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .analytics-metrics > div { padding: 12px; }
  .analytics-metrics dd { font-size: 27px; }
  .analytics-metrics small { white-space: normal; }
  .analytics-devices { grid-template-columns: 95px 1fr; gap: 12px; }
  .analytics-donut { width: 94px; height: 94px; }
  .analytics-donut::before { width: 61px; height: 61px; }
  .analytics-donut span { font-size: 18px; }
}
