:root {
  --teal: #0b9fa6;
  --teal-deep: #087d85;
  --teal-soft: #e5f6f7;
  --ink: #142333;
  --muted: #6b7c8f;
  --line: #e3eaf0;
  --surface: #ffffff;
  --canvas: #f4f8fa;
  --navy: #122334;
  --navy-soft: #1b3144;
  --success: #16a478;
  --warning: #d99029;
  --violet: #7866d9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; background: var(--canvas); overflow-x: hidden; }
body.is-authenticated { background: var(--canvas); }
body.is-authenticated .login-screen { display: none; }
body:not(.is-authenticated) .app-shell { display: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); background: #081b2b; color: #fff; }
.login-visual { min-height: 100vh; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(32px, 7vw, 96px); background: radial-gradient(circle at 52% 34%, rgba(11,159,166,.3), transparent 25%), linear-gradient(138deg, #071421 0%, #0b2c3e 48%, #087d85 150%); }
.login-grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to top, #000, transparent 80%); }
.login-orbit { position: absolute; border: 1px solid rgba(115,235,230,.32); border-radius: 50%; left: 50%; top: 37%; transform: translate(-50%, -50%); box-shadow: 0 0 45px rgba(11,159,166,.18); }
.login-orbit-one { width: min(44vw, 520px); height: min(44vw, 520px); }
.login-orbit-two { width: min(28vw, 330px); height: min(28vw, 330px); border-style: dashed; border-color: rgba(255,255,255,.28); }
.login-signal { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #8bf2ed; box-shadow: 0 0 0 7px rgba(139,242,237,.12), 0 0 28px #8bf2ed; }
.signal-one { left: 26%; top: 29%; }.signal-two { left: 73%; top: 43%; }
.login-visual-copy { position: relative; max-width: 620px; z-index: 1; }
.login-kicker { color: #8bf2ed; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.login-visual-copy h2 { max-width: 600px; margin: 18px 0 16px; font-size: clamp(36px, 5vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.login-visual-copy p { max-width: 480px; margin: 0; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.65; }
.login-panel { min-height: 100vh; padding: clamp(34px, 7vw, 92px) clamp(28px, 6vw, 92px); display: flex; flex-direction: column; justify-content: center; background: #f8fbfc; color: var(--ink); }
.login-brand { display: flex; flex-direction: column; gap: 13px; margin-bottom: clamp(52px, 9vh, 100px); }
.login-brand img { width: min(230px, 70%); height: auto; }.login-brand span { color: var(--teal-deep); font-size: 10px; font-weight: 850; letter-spacing: .22em; }
.login-copy { max-width: 420px; }.login-copy h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; margin-bottom: 12px; }.login-copy p { color: var(--muted); margin-bottom: 30px; }
.login-form { max-width: 420px; display: grid; gap: 9px; }.login-form label { color: #315064; font-weight: 700; font-size: 12px; margin-top: 8px; }.login-form input { width: 100%; min-height: 48px; border: 1px solid #cddce4; border-radius: 10px; padding: 0 14px; color: var(--ink); background: #fff; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }.login-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11,159,166,.12); }.login-meta { display: flex; align-items: center; gap: 8px; color: #8093a0; font-size: 11px; margin: 9px 0 13px; }.login-security-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(22,164,120,.12); }.login-button { min-height: 50px; display: flex; justify-content: center; gap: 9px; border-radius: 10px; }.login-error { border: 1px solid #f2c5c5; background: #fff2f2; color: #b84040; border-radius: 9px; padding: 11px 13px; font-size: 12px; line-height: 1.4; }.login-setup-note { border: 1px solid #f2deb0; background: #fff8e8; color: #8d641e; border-radius: 9px; padding: 11px 13px; font-size: 12px; line-height: 1.4; }.login-footer { max-width: 420px; margin-top: 46px; color: #9aabb5; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 248px; height: 100vh; overflow-y: auto; overscroll-behavior: contain; flex: 0 0 248px; background: linear-gradient(180deg, #122334 0%, #0d1b29 100%); color: #fff; padding: 28px 18px 20px; display: flex; flex-direction: column; }
.brand-lockup { padding: 4px 12px 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-logo { width: 170px; height: auto; display: block; }
.brand-product { display: block; color: #92b6bd; font-size: 10px; letter-spacing: .18em; margin-top: 16px; font-weight: 700; }
.side-nav { display: grid; gap: 7px; margin-top: 28px; }
.nav-item { border: 0; color: #a8bbc9; background: transparent; min-height: 48px; padding: 0 14px; border-radius: 11px; display: flex; align-items: center; gap: 13px; text-align: left; transition: .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.is-active { background: linear-gradient(90deg, rgba(11,159,166,.95), rgba(11,159,166,.5)); color: #fff; box-shadow: 0 9px 22px rgba(0,0,0,.16); }
.nav-icon { width: 22px; text-align: center; font-size: 20px; color: #7fd7d9; }
.nav-item.is-active .nav-icon { color: #fff; }
.sidebar-footer { display: flex; align-items: center; gap: 7px; margin-top: auto; padding: 15px 12px 2px; color: #89a5b4; font-size: 11px; border-top: 1px solid rgba(255,255,255,.1); }
.version-label { margin-left: auto; color: #5c7586; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; box-shadow: 0 0 0 4px rgba(22,164,120,.15); }
.main-shell { min-width: 0; flex: 1; margin-left: 248px; padding: 34px clamp(22px, 4vw, 62px) 60px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--teal-deep); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(25px, 3vw, 34px); margin-bottom: 0; letter-spacing: -.04em; }
h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.05; letter-spacing: -.045em; margin-bottom: 10px; }
h3 { font-size: 18px; margin-bottom: 0; letter-spacing: -.02em; }
.topbar-actions { display: flex; align-items: center; gap: 14px; padding-top: 12px; flex-wrap: wrap; justify-content: flex-end; }.topbar-user { display: flex; align-items: center; gap: 9px; }.topbar-user-name { color: var(--ink); font-size: 12px; font-weight: 750; }.logout-button { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 7px 0; }.logout-button:hover { color: var(--teal-deep); }
.runtime-badge, .status-chip { border-radius: 100px; font-size: 11px; font-weight: 800; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; }
.runtime-badge { color: var(--teal-deep); background: var(--teal-soft); }
.icon-button, .close-button { border: 0; background: transparent; color: var(--muted); font-size: 25px; width: 38px; height: 38px; border-radius: 10px; }
.icon-button:hover, .close-button:hover { background: var(--teal-soft); color: var(--teal-deep); }
.view { display: none; animation: rise .25s ease; }
.view.is-visible { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.hero-panel { min-height: 286px; background: linear-gradient(116deg, #0e7e88 0%, #0b9fa6 53%, #12b4ac 100%); border-radius: 22px; color: #fff; padding: clamp(28px, 4vw, 52px); position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 20px 40px rgba(11,159,166,.18); }
.hero-panel::after { content: ""; position: absolute; width: 430px; height: 430px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; right: -190px; top: -210px; }
.hero-kicker { font-size: 10px; letter-spacing: .22em; font-weight: 800; opacity: .75; }
.hero-panel h2 { max-width: 570px; margin-bottom: 14px; font-size: clamp(28px, 4vw, 48px); }
.hero-copy { max-width: 590px; color: rgba(255,255,255,.82); line-height: 1.6; font-size: 14px; margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.primary-button, .ghost-button { border-radius: 9px; min-height: 42px; padding: 0 17px; border: 1px solid transparent; font-weight: 750; font-size: 13px; transition: .2s ease; }
.primary-button { color: #fff; background: var(--teal); box-shadow: 0 7px 16px rgba(11,159,166,.18); }
.hero-panel .primary-button { background: #fff; color: var(--teal-deep); }
.primary-button:hover { background: var(--teal-deep); transform: translateY(-1px); }
.hero-panel .primary-button:hover { background: #efffff; color: #056b73; }
.ghost-button { color: var(--teal-deep); background: #fff; border-color: var(--line); }
.hero-panel .ghost-button { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }
.ghost-button:hover { border-color: var(--teal); background: var(--teal-soft); }
.hero-panel .ghost-button:hover { background: rgba(255,255,255,.2); color: #fff; }
.small-button { min-height: 34px; padding: 0 12px; font-size: 12px; }
.hero-orbit { width: 260px; height: 220px; position: relative; flex: 0 0 260px; margin-right: 20px; }
.orbit-ring { position: absolute; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.ring-one { width: 178px; height: 178px; }.ring-two { width: 112px; height: 112px; border-style: dashed; }
.orbit-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--teal-deep); font-size: 17px; font-weight: 900; box-shadow: 0 0 0 11px rgba(255,255,255,.12); }
.orbit-label { position: absolute; color: rgba(255,255,255,.8); font-size: 9px; letter-spacing: .14em; font-weight: 800; }.label-one { top: 13px; left: 92px; }.label-two { bottom: 20px; left: 22px; }.label-three { right: 8px; top: 98px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 18px 0; }
.metric-card, .surface-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 8px 24px rgba(18,35,52,.035); }
.metric-card { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }.metric-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 21px; font-weight: 800; }.metric-icon.teal { color: var(--teal-deep); background: var(--teal-soft); }.metric-icon.blue { color: #337ec6; background: #eaf3ff; }.metric-icon.violet { color: var(--violet); background: #f0edff; }.metric-icon.amber { color: var(--warning); background: #fff5e5; }
.metric-label, .metric-card small { display: block; color: var(--muted); font-size: 11px; }.metric-card strong { display: block; font-size: 27px; margin: 3px 0 4px; letter-spacing: -.05em; }.metric-card small { font-size: 10px; color: #9aa9b5; }.metric-status { font-size: 17px !important; color: var(--warning); margin: 10px 0 11px !important; }
.content-grid { display: grid; gap: 18px; }.two-columns { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }.surface-card { padding: 26px; }.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 22px; }.status-chip.success { background: #e6f8f0; color: #0d8b67; }.status-chip.warning { background: #fff1db; color: #a9670d; }.status-chip.neutral { background: #eef3f6; color: #708394; }
.flow-list { display: grid; gap: 0; }.flow-step { display: flex; gap: 15px; border-bottom: 1px solid var(--line); padding: 15px 0; }.flow-step:first-child { padding-top: 0; }.flow-step:last-child { border-bottom: 0; padding-bottom: 0; }.step-number { color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .1em; padding-top: 2px; }.flow-step strong { font-size: 13px; }.flow-step p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.status-list { display: grid; gap: 15px; }.status-list > div { display: flex; align-items: center; gap: 10px; font-size: 13px; }.status-list strong { margin-left: auto; color: var(--muted); font-size: 10px; letter-spacing: .08em; }.status-bullet { width: 8px; height: 8px; border-radius: 50%; }.status-bullet.success { background: var(--success); }.status-bullet.warning { background: var(--warning); }.security-note { display: flex; gap: 10px; margin-top: 24px; padding: 12px; border-radius: 10px; background: #f7fbfc; color: var(--teal-deep); }.security-note span { font-size: 17px; }.security-note p { margin: 0; font-size: 11px; line-height: 1.45; color: var(--muted); }
.view-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 25px; }.view-heading h2 { margin-bottom: 7px; }.view-heading p:not(.eyebrow) { color: var(--muted); margin-bottom: 0; font-size: 14px; }.view-heading > .primary-button { margin-bottom: 4px; }
.table-card { padding: 0; overflow: hidden; }.table-toolbar { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }.search-box { display: flex; gap: 10px; align-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; width: min(100%, 320px); }.search-box input { border: 0; outline: 0; min-height: 37px; width: 100%; color: var(--ink); background: transparent; font-size: 13px; }.table-count { color: var(--muted); font-size: 12px; }.table-wrap { overflow-x: auto; } table { border-collapse: collapse; width: 100%; min-width: 700px; } th, td { text-align: left; padding: 17px 22px; border-bottom: 1px solid var(--line); font-size: 12px; white-space: nowrap; } th { color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-size: 10px; background: #fbfcfd; } td { color: #3b4e5e; } td strong { color: var(--ink); font-size: 13px; display: block; }.sub-text { color: var(--muted); font-size: 11px; margin-top: 4px; display: block; }.row-actions { display: flex; gap: 5px; justify-content: flex-end; }.table-action { border: 0; border-radius: 7px; color: var(--muted); background: transparent; padding: 7px 9px; }.table-action:hover { color: var(--teal-deep); background: var(--teal-soft); }.table-action.danger:hover { color: #bc4f55; background: #fff0f0; }
.empty-state { text-align: center; padding: 70px 25px; color: var(--muted); }.empty-state h3 { color: var(--ink); margin-bottom: 8px; }.empty-state p { font-size: 13px; margin-bottom: 22px; }.empty-icon { width: 58px; height: 58px; border-radius: 18px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin: 0 auto 16px; font-size: 29px; }.standalone { background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.dashboard-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 17px; }.dashboard-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 21px; min-height: 190px; display: flex; flex-direction: column; transition: .2s ease; }.dashboard-card:hover { border-color: rgba(11,159,166,.55); box-shadow: 0 12px 28px rgba(11,159,166,.09); transform: translateY(-2px); }.dashboard-card-top { display: flex; justify-content: space-between; gap: 10px; }.dashboard-card h3 { margin: 0; }.dashboard-card p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 12px 0 18px; }.widget-preview { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; }.widget-pill { border-radius: 6px; padding: 6px 8px; background: #f1f7f8; color: var(--teal-deep); font-size: 10px; font-weight: 700; }.dashboard-actions { margin-top: 18px; display: flex; gap: 7px; }.dashboard-actions button { flex: 1; min-width: 0; padding-inline: 8px; }.dashboard-workspace { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }.workspace-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }.workspace-toolbar h3 { font-size: 21px; margin-bottom: 5px; }.workspace-toolbar p:not(.eyebrow) { color: var(--muted); font-size: 12px; margin: 0; }.dashboard-canvas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 76px; gap: 12px; min-height: 360px; padding: 13px; background: linear-gradient(90deg, rgba(11,159,166,.035) 1px, transparent 1px), linear-gradient(rgba(11,159,166,.035) 1px, transparent 1px), #f7fbfc; background-size: calc(100% / 12) 100%, 100% 76px; border-radius: 12px; }.runtime-widget { grid-column: span var(--widget-width); grid-row: span var(--widget-height); min-width: 0; padding: 16px; border: 1px solid #d9e7eb; border-radius: 12px; background: #fff; box-shadow: 0 8px 18px rgba(18,35,52,.05); overflow: hidden; }.runtime-widget-type { color: var(--teal-deep); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }.runtime-widget h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 10px 0 13px; font-size: 15px; }.runtime-widget strong { display: block; color: var(--ink); font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.runtime-widget small { display: block; color: var(--muted); font-size: 10px; line-height: 1.4; margin-top: 10px; }.widget-trend { border-top: 3px solid #7866d9; }.widget-gauge { border-top: 3px solid var(--teal); }.widget-status { border-top: 3px solid var(--success); }.widget-table { border-top: 3px solid var(--warning); }
.publish-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; }.publish-card { background: linear-gradient(145deg, #132a3c, #1b4257); color: #fff; border: 0; }.publish-card .eyebrow { color: #8de0dc; }.publish-card h3 { font-size: 25px; margin-bottom: 12px; }.publish-card > p:not(.eyebrow) { color: #b5cbd4; font-size: 13px; line-height: 1.6; }.publish-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.12); font-size: 22px; margin-bottom: 22px; }.publish-state { display: flex; align-items: center; gap: 10px; margin: 24px 0; color: #b5cbd4; font-size: 11px; }.publish-actions { display: grid; gap: 9px; }.publish-actions .ghost-button { border-color: rgba(255,255,255,.26); color: #fff; }.publish-actions .ghost-button:disabled { opacity: .42; cursor: not-allowed; }.agent-result { display: grid; gap: 4px; margin-top: 14px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: #b5cbd4; font-size: 11px; }.agent-result strong { color: #f4d38a; }.agent-result span { line-height: 1.4; word-break: break-word; }.agent-result.is-success strong { color: #9df0d6; }.agent-result.is-error strong { color: #ffb4a8; }.disabled-button { opacity: .45; box-shadow: none; }.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }.impact-grid div { background: #f6fafb; border-radius: 11px; padding: 17px; }.impact-grid strong { display: block; font-size: 29px; letter-spacing: -.06em; }.impact-grid span { color: var(--muted); font-size: 11px; }.warning-list { display: grid; gap: 10px; }.warning-item { display: flex; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.4; }.warning-item span { color: var(--warning); }
.modal { border: 0; padding: 0; border-radius: 17px; width: min(720px, calc(100% - 28px)); max-height: min(90vh, 760px); box-shadow: 0 25px 80px rgba(8,22,34,.25); }.modal::backdrop { background: rgba(6,18,27,.56); backdrop-filter: blur(4px); }.modal form { padding: 28px; }.modal-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 26px; }.modal-header h2 { font-size: 27px; margin-bottom: 0; }.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }.form-grid label { display: grid; gap: 7px; color: #405468; font-size: 12px; font-weight: 750; }.form-grid input, .form-grid textarea, .channel-row input, .channel-row select, .widget-row input, .widget-row select { width: 100%; min-height: 39px; border: 1px solid var(--line); border-radius: 8px; outline: 0; padding: 0 11px; color: var(--ink); background: #fff; font-size: 12px; }.form-grid textarea { padding-top: 9px; resize: vertical; }.form-grid input:focus, .form-grid textarea:focus, .channel-row input:focus, .channel-row select:focus, .widget-row input:focus, .widget-row select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,159,166,.1); }.span-two { grid-column: span 2; }.channels-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 27px 0 14px; }.channels-heading h3 { font-size: 15px; }.channel-list, .widget-draft-list { display: grid; gap: 9px; max-height: 270px; overflow: auto; padding-right: 3px; }.channel-row, .widget-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr .7fr 1fr 34px; gap: 7px; align-items: center; padding: 9px; border: 1px solid var(--line); background: #fbfcfd; border-radius: 9px; }.channel-row input, .channel-row select, .widget-row input, .widget-row select { min-height: 34px; padding: 0 7px; font-size: 11px; }.remove-button { width: 30px; height: 30px; border: 0; border-radius: 7px; color: #a1b0ba; background: transparent; }.remove-button:hover { color: #bc4f55; background: #fff0f0; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); margin-top: 25px; padding-top: 20px; }.app-alert { position: fixed; z-index: 20; top: 22px; left: 50%; transform: translateX(-50%); background: #132a3c; color: #fff; border-radius: 9px; padding: 12px 18px; font-size: 12px; box-shadow: 0 13px 30px rgba(0,0,0,.16); }.app-alert.is-error { background: #9d4b50; }
.modal { overflow: hidden; }.modal form { overflow-y: auto; max-height: min(90vh, 820px); }.modal-subtitle { color: var(--muted); font-size: 12px; line-height: 1.5; max-width: 620px; margin: 8px 0 0; }.admin-section { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 13px; background: #fcfefe; }.admin-section > summary { cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 800; list-style-position: inside; }.admin-section[open] > summary { margin-bottom: 16px; color: var(--teal-deep); }.admin-section .section-heading { margin-bottom: 14px; }.compact-form { gap: 12px; }.rich-list { max-height: 390px; }.rich-channel-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }.channel-row-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding-bottom: 2px; color: var(--teal-deep); }.channel-row-title strong { font-size: 12px; }.channel-row-title span { color: var(--muted); font-size: 10px; }.channel-row-title .remove-button { margin-left: auto; }.command-list { display: grid; gap: 8px; max-height: 220px; overflow: auto; }.command-row { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr .7fr 1fr .7fr auto 34px; gap: 7px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; }.command-row input, .command-row select { min-height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 7px; font-size: 11px; color: var(--ink); background: #fff; }.command-row input:focus, .command-row select:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,159,166,.1); }
@media (max-width: 1050px) { .sidebar { width: 205px; flex-basis: 205px; }.main-shell { margin-left: 205px; }.metric-grid { grid-template-columns: repeat(2, 1fr); }.hero-orbit { transform: scale(.8); margin-right: -10px; } }
.primary-button.is-loading { opacity: .7; pointer-events: none; }.stage-result { display: grid; gap: 3px; margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.08); }.stage-result strong { color: #9df0d6; font-size: 12px; }.stage-result span { color: #fff; font-size: 11px; word-break: break-all; }.stage-result small { color: #b5cbd4; font-size: 10px; }
.runtime-widget { grid-column: calc(var(--widget-x, 0) + 1) / span var(--widget-width); grid-row: calc(var(--widget-y, 0) + 1) / span var(--widget-height); cursor: grab; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.runtime-widget:active { cursor: grabbing; }.runtime-widget.is-dragging { opacity: .45; transform: scale(.98); }.runtime-widget.is-drop-target { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,159,166,.16); }.runtime-widget-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.widget-edit-button { border: 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }.widget-edit-button:hover { color: var(--teal-deep); }.trend-lines { display: flex; align-items: end; gap: 4px; height: 34px; margin-top: 12px; }.trend-lines i { display: block; flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(#7866d9, #b9b0ff); }.trend-lines i:nth-child(1) { height: 38%; }.trend-lines i:nth-child(2) { height: 62%; }.trend-lines i:nth-child(3) { height: 48%; }.trend-lines i:nth-child(4) { height: 82%; }.trend-lines i:nth-child(5) { height: 70%; }.gauge-track { height: 8px; margin-top: 15px; border-radius: 99px; background: #e7f2f4; overflow: hidden; }.gauge-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f0b354, var(--teal)); }.mini-table { display: flex; justify-content: space-between; gap: 8px; margin-top: 13px; padding: 9px 10px; border: 1px solid #edf1f2; border-radius: 8px; color: var(--muted); font-size: 10px; }.mini-table strong { font-size: 11px; }.table-empty { padding: 30px; text-align: center; color: var(--muted); }
.workspace-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }.workspace-note { margin: 12px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.check-field, .inline-check { display: flex !important; align-items: center; gap: 8px; min-height: 39px; color: var(--muted) !important; font-weight: 650 !important; }.check-field input, .inline-check input { width: auto !important; min-height: auto !important; accent-color: var(--teal); }.inline-check { font-size: 10px; white-space: nowrap; }.audit-action { display: inline-flex; padding: 5px 7px; border-radius: 6px; background: var(--teal-soft); color: var(--teal-deep); font-size: 10px; font-weight: 750; }
@media (max-width: 760px) { .runtime-widget { grid-column: 1 / -1; grid-row: auto; }.workspace-toolbar-actions { width: 100%; justify-content: stretch; }.workspace-toolbar-actions button { flex: 1; } }
@media (max-width: 760px) { .login-screen { display: block; min-height: 100svh; }.login-visual { min-height: 31svh; padding: 32px 28px; align-items: flex-end; }.login-visual-copy h2 { font-size: clamp(29px, 9vw, 43px); margin: 11px 0 0; }.login-visual-copy p { display: none; }.login-orbit-one { width: 290px; height: 290px; top: 35%; }.login-orbit-two { width: 180px; height: 180px; top: 35%; }.login-panel { min-height: 69svh; padding: 38px 28px 28px; justify-content: flex-start; }.login-brand { margin-bottom: 42px; }.login-brand img { width: 180px; }.login-copy h1 { font-size: 30px; }.workspace-toolbar { align-items: flex-start; flex-direction: column; }.workspace-toolbar button { width: 100%; }.dashboard-canvas { grid-template-columns: repeat(4, minmax(0, 1fr)); background-size: 25% 100%, 100% 76px; }.runtime-widget { grid-column: span 4; } }
@media (max-width: 760px) { .app-shell { display: block; }.sidebar { position: static; width: 100%; height: auto; max-height: none; overflow: visible; padding: 14px 16px; }.brand-lockup { padding: 0 4px 13px; border-bottom: 0; display: flex; align-items: center; gap: 15px; }.brand-logo { width: 145px; }.brand-product { margin: 0; }.side-nav { display: flex; margin: 10px 0 0; overflow-x: auto; padding-bottom: 2px; }.nav-item { min-height: 39px; padding: 0 11px; flex: 0 0 auto; }.nav-item span:last-child { font-size: 11px; }.sidebar-footer { display: none; }.main-shell { margin-left: 0; padding: 24px 15px 40px; }.topbar { margin-bottom: 23px; }.topbar-actions { padding-top: 0; }.runtime-badge { font-size: 0; padding: 9px; }.runtime-badge .pulse-dot { margin: 0; }.hero-panel { min-height: 0; padding: 28px 23px; }.hero-orbit { display: none; }.metric-grid { gap: 9px; }.metric-card { padding: 14px; gap: 9px; }.metric-icon { width: 32px; height: 32px; font-size: 17px; }.metric-card strong { font-size: 22px; }.two-columns, .publish-layout { grid-template-columns: 1fr; }.view-heading { align-items: flex-start; flex-direction: column; gap: 12px; }.view-heading > button { width: 100%; }.surface-card { padding: 19px; }.table-toolbar { align-items: flex-start; flex-direction: column; }.form-grid { grid-template-columns: 1fr; }.span-two { grid-column: auto; }.channel-row { grid-template-columns: 1fr 1fr 1fr 1fr; }.channel-row input:nth-child(2), .channel-row input:nth-child(3) { grid-column: span 2; }.channel-row select:nth-child(4), .channel-row input:nth-child(5) { grid-column: span 2; }.channel-row .remove-button { grid-column: 4; grid-row: 1; justify-self: end; }.widget-row { grid-template-columns: 1fr 1fr 34px; }.widget-row input:nth-child(2), .widget-row select:nth-child(3) { grid-column: span 2; }.widget-row .remove-button { grid-column: 3; grid-row: 1; justify-self: end; } }
@media (max-width: 760px) { .rich-channel-row { grid-template-columns: 1fr 1fr; }.rich-channel-row .channel-row-title, .rich-channel-row input[data-channel-field="formula"], .rich-channel-row input[data-channel-field="unitCode"] { grid-column: 1 / -1; }.command-row { grid-template-columns: 1fr 1fr; }.command-row .remove-button { justify-self: end; }.command-row .inline-check { grid-column: 1 / -1; } }
