:root {
  color-scheme: light;
  --ink: #17171c;
  --muted: #73737f;
  --line: #e8e7eb;
  --soft: #f7f7f8;
  --paper: #fff;
  --purple: #7257ff;
  --purple-deep: #5639ed;
  --green: #2caf75;
  --orange: #f29a4a;
  --red: #e65e5e;
  --blue: #4d8ef7;
  --sidebar: #151519;
  --shadow: 0 18px 45px rgba(30, 25, 56, 0.08);
}

.module-layout { display: grid; grid-template-columns: minmax(210px, 280px) minmax(0, 1fr); gap: 18px; align-items: start; }
.module-product-list { display: grid; gap: 8px; }
.module-product-item { display: grid; gap: 4px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; }
.module-product-item:hover, .module-product-item.active { border-color: var(--purple); box-shadow: 0 8px 22px rgba(114, 87, 255, .10); }
.module-product-item small, .module-editor .panel-heading p { color: var(--muted); font-size: 12px; }
.module-list { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); }
.module-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; background: var(--paper); cursor: pointer; }
.module-row span { display: grid; gap: 5px; }
.module-row small { color: var(--muted); font-size: 12px; }
.module-row input { width: 18px; height: 18px; accent-color: var(--purple); }
@media (max-width: 760px) { .module-layout { grid-template-columns: 1fr; } .module-product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Invitation access management */
.status-expired, .status-revoked, .status-exhausted { color: #78747f; background: #f1f0f3; }
.invite-banner { min-height: 176px; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 25px; padding: 30px 34px; border: 1px solid #d8e6dd; border-radius: 16px; color: #183228; background: linear-gradient(125deg, #eef8f1, #e7f3ee); }
.invite-banner h2 { margin: 8px 0 7px; font-size: 25px; letter-spacing: -.045em; }
.invite-banner p { max-width: 600px; margin: 0; color: #557167; font-size: 12px; line-height: 1.65; }
.invite-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(82px, 1fr)); gap: 8px; min-width: 300px; }
.invite-stat-grid div { padding: 15px 13px; border: 1px solid rgba(54,113,84,.13); border-radius: 11px; background: rgba(255,255,255,.58); }
.invite-stat-grid span, .invite-stat-grid strong { display: block; }
.invite-stat-grid span { color: #718a7e; font-size: 9px; }
.invite-stat-grid strong { margin-top: 8px; color: #205a42; font-size: 23px; }
.compact-section-intro { margin-bottom: 14px; }
.invite-table-card code { display: block; color: #758378; font-size: 9px; }
.invite-created-panel { display: grid; gap: 10px; margin: 8px 0 18px; padding: 18px; border: 1px solid #c8e4d4; border-radius: 12px; background: #effaf3; }
.invite-created-panel span { color: #42745a; font-size: 11px; }
.invite-created-panel code { padding: 12px; overflow-wrap: anywhere; color: #174f35; border: 1px dashed #a5cfb5; border-radius: 8px; background: white; font-size: 15px; font-weight: 750; letter-spacing: .04em; }
.invite-created-panel small { color: #718b7b; font-size: 10px; }

@media (max-width: 860px) {
  .invite-banner { align-items: flex-start; flex-direction: column; padding: 26px 24px; }
  .invite-stat-grid { width: 100%; min-width: 0; }
}

@media (max-width: 560px) {
  .invite-stat-grid { grid-template-columns: 1fr; }
  .invite-banner { padding: 22px 18px; }
}

/* Unified model center */
.model-center-intro { align-items: flex-end; }
.model-center-summary { display: flex; gap: 10px; }
.model-center-summary span { padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: 11px; }
.model-center-summary strong { color: var(--ink); font-size: 17px; margin-right: 4px; }
.model-center-grid { display: grid; gap: 14px; }
.model-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 8px 25px rgba(30,25,56,.045); transition: border-color .2s ease, box-shadow .2s ease; }
.model-card:hover, .model-card.is-expanded { border-color: #d4ccff; box-shadow: 0 14px 35px rgba(75,55,180,.09); }
.model-card-header { width: 100%; min-height: 92px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 22px; align-items: center; gap: 14px; padding: 17px 20px; border: 0; color: inherit; background: transparent; text-align: left; }
.model-type-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; font-size: 13px; font-weight: 800; background: linear-gradient(145deg, #8065ff, #5d43df); }
.type-video { background: linear-gradient(145deg,#ef8b58,#d65b69); }.type-speech { background: linear-gradient(145deg,#4c9bea,#5067d8); }
.model-card-summary, .model-card-meta { min-width: 0; display: grid; gap: 5px; }
.model-card-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.model-card-summary small, .model-card-meta small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.model-card-meta { justify-items: end; }.model-card-chevron { color: #9a94a9; transform: rotate(90deg); transition: transform .24s ease; }.is-expanded .model-card-chevron { transform: rotate(-90deg); }
.model-card-details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }.is-expanded .model-card-details { grid-template-rows: 1fr; }
.model-card-details-inner { min-height: 0; overflow: hidden; padding: 0 20px; }.is-expanded .model-card-details-inner { padding-bottom: 20px; }
.model-card-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-top: 2px; }
.model-detail-block, .model-pricing-panel, .model-card-products { padding: 15px; border: 1px solid #eeeef2; border-radius: 11px; background: #fbfbfc; }
.detail-label, .field-label { display: block; margin-bottom: 9px; color: #8b8794; font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.model-detail-block dl { display: grid; gap: 8px; margin: 0; }.model-detail-block dl div { display: flex; justify-content: space-between; gap: 12px; }.model-detail-block dt { color: #9995a0; font-size: 10px; }.model-detail-block dd { max-width: 70%; margin: 0; overflow: hidden; color: #35333d; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.model-pricing-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }.model-pricing-panel strong { display: block; font-size: 13px; }.model-pricing-panel small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.model-card-products { display: grid; gap: 14px; margin-top: 12px; }.model-products-heading { display: grid; gap: 9px; }.model-product-list { display: flex; flex-wrap: wrap; gap: 8px; }.model-product-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 35px; padding: 5px 8px 5px 5px; border: 1px solid #e7e5ed; border-radius: 999px; background: #fff; }.model-product-chip small { color: #4b4853; font-size: 10px; }.model-product-logo { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--product-accent); font-size: 10px; font-weight: 750; }.model-product-duration { min-height: 24px; padding: 0 8px; border: 1px solid #ded9f7; border-radius: 999px; color: #5f50ad; background: #f7f5ff; font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; }.model-product-duration:hover { border-color: #9d8ce8; background: #efecff; }.model-add-product { display: flex; gap: 8px; }.model-add-product select { min-width: 0; flex: 1; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; }.muted-note { color: #aaa6b1; font-size: 10px; }.model-card-actions { display: flex; gap: 8px; margin-top: 12px; }.model-card-actions .button { min-height: 36px; font-size: 11px; }.button-danger-ghost { border: 1px solid #f0d5d1; color: #b0443b; background: #fffafa; }.button-danger-ghost:hover { border-color: #d8897f; color: #96362e; background: #fff2f0; }
.pricing-mode-fields { padding: 12px; border: 1px solid #eceaf2; border-radius: 10px; background: #faf9ff; }
@media (max-width: 680px) { .model-center-intro { align-items: flex-start; flex-direction: column; }.model-center-summary { width: 100%; }.model-center-summary span { flex: 1; }.model-card-header { grid-template-columns: 38px minmax(0,1fr) 20px; padding: 14px; gap: 10px; }.model-type-mark { width: 36px; height: 36px; }.model-card-meta { display: none; }.model-card-details-inner { padding-inline: 14px; }.model-card-detail-grid { grid-template-columns: 1fr; }.model-pricing-panel { align-items: flex-start; flex-direction: column; }.model-add-product { flex-direction: column; }.model-add-product .button { width: 100%; }.model-card-actions { flex-direction: column; }.model-card-actions .button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .model-card-details, .model-card-chevron, .model-card { transition: none; } }

* { box-sizing: border-box; }
html { min-width: 320px; background: #f3f3f5; }
body { margin: 0; overflow-x: hidden; color: var(--ink); font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; background: #f3f3f5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#i-grid path:first-child { fill: currentColor; stroke: none; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 90px 24px 60px; position: relative; overflow: hidden; color: white; background: radial-gradient(circle at 49% 8%, #342760 0, #1b1826 33%, #111115 72%); }
.login-screen::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(circle at center, black, transparent 68%); }
.login-orbit { position: absolute; border: 1px solid rgba(152,129,255,.16); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 680px; height: 680px; top: -340px; right: -160px; }
.orbit-two { width: 520px; height: 520px; bottom: -340px; left: -120px; }
.login-brand { position: absolute; top: 34px; left: 42px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 650; letter-spacing: .02em; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 12px; color: white; font-size: 18px; font-weight: 760; background: linear-gradient(145deg, #917cff, #5b39f2); box-shadow: inset 0 1px rgba(255,255,255,.3), 0 9px 24px rgba(93,63,238,.3); }
.brand-mark::after { content: ""; width: 24px; height: 24px; border-radius: 50%; position: absolute; right: -11px; bottom: -10px; background: rgba(255,255,255,.22); }
.brand-mark span { position: relative; z-index: 1; }
.brand-mark-large { width: 42px; height: 42px; }
.login-card { width: min(460px, 100%); position: relative; z-index: 1; padding: 44px 46px 38px; border: 1px solid rgba(255,255,255,.13); border-radius: 28px; background: linear-gradient(155deg, rgba(39,36,51,.92), rgba(24,23,30,.88)); box-shadow: 0 40px 100px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(22px); }
.eyebrow, .section-kicker { font-size: 10px; font-weight: 760; letter-spacing: .18em; color: #8b73ff; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #a895ff; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #886cff; box-shadow: 0 0 0 5px rgba(126,98,255,.1); }
.login-card h1 { margin: 18px 0 12px; font-size: clamp(34px, 6vw, 46px); line-height: 1.13; letter-spacing: -.055em; }
.login-card > p { margin: 0 0 34px; color: #aaa7b5; line-height: 1.7; font-size: 14px; }
.login-card label, .modal label { display: grid; gap: 9px; margin-bottom: 18px; }
.login-card label { color: #c9c6d0; font-size: 12px; }
.password-field { position: relative; }
.login-card input { width: 100%; height: 50px; padding: 0 48px 0 16px; color: white; outline: none; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(10,10,14,.42); transition: .2s ease; }
.login-card input:focus { border-color: #8069f9; box-shadow: 0 0 0 4px rgba(117,87,255,.12); }
.field-icon { position: absolute; top: 0; right: 4px; height: 50px; width: 42px; border: 0; color: #9996a5; background: transparent; }
.field-icon svg { width: 17px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 0; border-radius: 11px; font-size: 13px; font-weight: 650; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: linear-gradient(135deg, #8065ff, #6041ec); box-shadow: 0 8px 22px rgba(95,64,235,.22); }
.button-primary:hover { box-shadow: 0 11px 25px rgba(95,64,235,.3); }
.button-secondary { border: 1px solid var(--line); background: white; }
.button-ghost { color: var(--muted); background: #f4f4f6; }
.button svg { width: 17px; height: 17px; }
.login-submit { width: 100%; height: 50px; margin-top: 4px; }
.login-submit svg { margin-left: auto; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 25px; color: #7f7c89; font-size: 11px; }
.login-security svg { width: 14px; color: #7762de; }
.login-foot { position: absolute; z-index: 1; bottom: 22px; color: #5f5c68; font-size: 10px; text-transform: uppercase; letter-spacing: .17em; }
.login-foot span { margin: 0 8px; }
.form-message { margin: 12px 0 0 !important; padding: 10px 12px; border-radius: 9px; color: #eb8989 !important; font-size: 12px !important; line-height: 1.45 !important; background: rgba(207,68,68,.1); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 26px 18px 18px; color: #e9e7ee; background: linear-gradient(180deg, #17171c, #111115); border-right: 1px solid #27272c; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 31px; }
.sidebar-brand > div:last-child { display: grid; gap: 2px; }
.sidebar-brand strong { font-size: 17px; letter-spacing: -.02em; }
.sidebar-brand small { color: #6f6c78; font-size: 8px; font-weight: 750; letter-spacing: .23em; }
.main-nav { display: grid; gap: 5px; }
.nav-item { width: 100%; height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-radius: 10px; color: #85828e; background: transparent; text-align: left; font-size: 13px; transition: .18s ease; }
.nav-item:hover { color: #d9d6e0; background: rgba(255,255,255,.035); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(117,86,255,.22), rgba(117,86,255,.08)); box-shadow: inset 2px 0 #7d62ff; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item em { margin-left: auto; min-width: 22px; height: 20px; display: grid; place-items: center; color: #a79cf1; border-radius: 7px; font-size: 10px; font-style: normal; background: rgba(122,95,255,.13); }
.nav-divider { height: 1px; margin: 12px 10px; background: #29282f; }
.sidebar-bottom { margin-top: auto; }
.system-state { display: flex; align-items: center; gap: 10px; margin: 0 7px 15px; padding: 12px 4px; border-bottom: 1px solid #29282f; }
.system-state > span { width: 7px; height: 7px; border-radius: 50%; background: #4dcc88; box-shadow: 0 0 0 4px rgba(77,204,136,.08); }
.system-state div { display: grid; gap: 3px; }
.system-state strong { color: #bdbac5; font-size: 10px; font-weight: 600; }
.system-state small { color: #5f5c67; font-size: 8px; letter-spacing: .08em; }
.owner-card { width: 100%; display: grid; grid-template-columns: 34px 1fr 16px; align-items: center; gap: 10px; padding: 11px; border: 0; border-radius: 11px; color: #aaa7b2; background: rgba(255,255,255,.035); text-align: left; }
.owner-card:hover { background: rgba(255,255,255,.06); }
.owner-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #d9d3ff; font-size: 12px; font-weight: 700; background: #2c2741; }
.owner-card > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.owner-card strong { color: #d5d2da; font-size: 11px; }
.owner-card small { color: #6e6b75; font-size: 9px; }
.owner-card svg { width: 15px; }

.workspace { min-width: 0; padding: 0 34px 54px; background: #f5f5f7; }
.topbar { height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar > div:first-child { display: grid; gap: 5px; }
.topbar span#breadcrumb { color: #9a98a2; font-size: 10px; }
.topbar h1 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.today-label { margin-right: 7px; color: #92909a; font-size: 11px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #77747f; background: white; }
.icon-button:hover { color: var(--purple); }
.icon-button.loading svg { animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.view { display: none; animation: enter .28s ease; }
.active-view { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } }

.hero-panel { min-height: 244px; display: grid; grid-template-columns: 1.2fr .8fr; overflow: hidden; position: relative; border-radius: 20px; color: white; background: radial-gradient(circle at 78% 50%, #342b5e 0, #201d2e 34%, #19181f 72%); box-shadow: 0 18px 48px rgba(30,28,48,.12); }
.hero-panel::before { content: ""; position: absolute; inset: 0; opacity: .11; background-image: linear-gradient(rgba(255,255,255,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.17) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent, black); }
.hero-copy { position: relative; z-index: 1; padding: 40px 46px; }
.hero-copy h2 { margin: 13px 0 12px; font-size: clamp(27px, 3.3vw, 39px); line-height: 1.18; letter-spacing: -.055em; }
.hero-copy p { max-width: 480px; margin: 0; color: #aaa7b6; font-size: 13px; line-height: 1.7; }
.hero-visual { min-height: 244px; position: relative; }
.orbit-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(155,132,255,.25); border-radius: 50%; transform: translate(-50%, -50%) rotate(-14deg); }
.ring-a { width: 250px; height: 125px; }
.ring-b { width: 330px; height: 185px; opacity: .55; }
.core-node { width: 78px; height: 78px; position: absolute; left: 50%; top: 50%; display: grid; place-items: center; align-content: center; gap: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 25px; background: linear-gradient(145deg, #8268ff, #5032d9); box-shadow: 0 15px 42px rgba(94,60,239,.45), inset 0 1px rgba(255,255,255,.28); transform: translate(-50%, -50%) rotate(-7deg); }
.core-node span { font-size: 27px; font-weight: 760; }
.core-node small { font-size: 6px; letter-spacing: .13em; opacity: .68; }
.satellite { position: absolute; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; color: #b7b2c2; font-size: 9px; background: rgba(17,15,24,.75); box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.satellite i { width: 6px; height: 6px; border-radius: 50%; background: #7a61ff; box-shadow: 0 0 8px #7a61ff; }
.sat-one { left: 5%; top: 24%; }.sat-two { right: 7%; top: 28%; }.sat-three { right: 17%; bottom: 18%; opacity: .65; }.sat-two i { background: #ff7458; box-shadow: 0 0 8px #ff7458; }.sat-three i { background: #696673; box-shadow: none; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 15px; }
.metric-card { min-width: 0; padding: 21px 21px 19px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 8px 24px rgba(20,19,30,.025); }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #77747e; font-size: 11px; }
.metric-head i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; }
.metric-head svg { width: 15px; height: 15px; }
.tone-purple { color: var(--purple); background: #f0edff; }.tone-blue { color: var(--blue); background: #edf4ff; }.tone-green { color: var(--green); background: #edf9f3; }.tone-orange { color: var(--orange); background: #fff4e9; }
.metric-card > strong { display: block; margin: 10px 0 4px; font-size: 27px; letter-spacing: -.045em; }
.metric-card > small { display: block; overflow: hidden; color: #a3a1aa; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.overview-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 15px; margin-top: 15px; }
.panel, .table-card { border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 25px rgba(25,23,37,.025); }
.panel { padding: 24px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.panel-heading h3 { margin: 6px 0 0; font-size: 15px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 4px; border: 0; color: #8b8894; background: transparent; font-size: 10px; }
.text-button:hover { color: var(--purple); }
.text-button svg { width: 13px; height: 13px; }
.health-list { display: grid; }
.health-row { display: grid; grid-template-columns: minmax(150px, 1.5fr) minmax(90px, .8fr) minmax(80px, .65fr) auto; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid #f0eff2; }
.health-product { min-width: 0; display: flex; align-items: center; gap: 11px; }
.product-glyph { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: white; font-size: 12px; font-weight: 750; background: #7257ff; }
.accent-1 { background: #f16648; }.accent-2 { background: #3293a8; }.accent-3 { background: #ad6a35; }.accent-4 { background: #426ec4; }
.health-product div, .health-info { min-width: 0; display: grid; gap: 3px; }
.health-product strong, .health-info strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.health-product small, .health-info small { overflow: hidden; color: #a09ea7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { width: fit-content; display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 650; background: #f2f1f4; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #aaa7b0; }
.status-active, .status-succeeded, .status-healthy { color: #25865b; background: #ebf8f1; }.status-active::before, .status-succeeded::before, .status-healthy::before { background: #33b778; }
.status-degraded, .status-pending, .status-running { color: #ad782e; background: #fff6e7; }.status-degraded::before, .status-pending::before, .status-running::before { background: #e8a94b; }
.status-building, .status-queued { color: #6c5abb; background: #f1effc; }.status-building::before, .status-queued::before { background: #8068dd; }
.status-failed, .status-unavailable, .status-paused, .status-disabled { color: #bd5454; background: #fceeee; }.status-failed::before, .status-unavailable::before, .status-paused::before, .status-disabled::before { background: #dd6969; }
.health-row .icon-button { width: 30px; height: 30px; border-radius: 8px; background: #fafafa; }
.health-row .icon-button svg { width: 14px; height: 14px; }
.activity-list { min-height: 125px; display: grid; align-content: center; }
.activity-item { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #f0eff2; }
.activity-item > i { width: 7px; height: 7px; border-radius: 50%; background: #8372df; }
.activity-item div { min-width: 0; display: grid; gap: 3px; }
.activity-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.activity-item small, .activity-item time { color: #9f9da6; font-size: 9px; }
.skeleton-row { height: 58px; margin-top: 7px; border-radius: 10px; background: linear-gradient(90deg, #f5f5f6 25%, #fafafa 50%, #f5f5f6 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 5px 0 25px; }
.section-intro h2, .finance-banner h2, .audit-summary h2 { margin: 8px 0 7px; font-size: 25px; letter-spacing: -.045em; }
.section-intro p, .finance-banner p, .audit-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.legend { display: flex; gap: 14px; color: #96939d; font-size: 9px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #a5a2aa; }.dot.online { background: var(--green); }.dot.pending { background: var(--orange); }.dot.building { background: var(--purple); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { min-height: 247px; position: relative; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 9px 28px rgba(24,22,36,.03); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card::after { content: ""; width: 120px; height: 120px; position: absolute; right: -55px; top: -55px; border-radius: 50%; background: rgba(115,87,255,.055); }
.product-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.product-card .product-glyph { width: 44px; height: 44px; border-radius: 13px; font-size: 15px; }
.more-button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #9996a0; background: #f7f7f8; }
.more-button svg { width: 17px; }
.product-card h3 { margin: 19px 0 5px; font-size: 16px; }
.product-code { color: #aaa7b0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.product-card > p { height: 36px; margin: 13px 0 16px; overflow: hidden; color: #77747f; font-size: 10px; line-height: 1.65; }
.product-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; border-top: 1px solid #f0eff2; }
.product-meta small { color: #aaa7b0; font-size: 9px; }
.product-card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.product-card-actions button { flex: 1 1 92px; min-height: 34px; font-size: 10px; }
.add-product-card { min-height: 247px; display: grid; place-items: center; align-content: center; gap: 11px; border: 1px dashed #d4d1dc; border-radius: 17px; color: #96939d; background: rgba(255,255,255,.5); }
.add-product-card:hover { color: var(--purple); border-color: #a99cf0; background: white; }
.add-product-card span:first-child { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: #eeecf6; }
.add-product-card svg { width: 18px; }.add-product-card strong { font-size: 12px; }.add-product-card small { font-size: 9px; }

.subnav { display: flex; gap: 6px; margin-bottom: 20px; padding: 4px; width: fit-content; border-radius: 11px; background: #eae9ed; }
.subnav-button { min-width: 115px; height: 34px; padding: 0 14px; border: 0; border-radius: 8px; color: #77747e; background: transparent; font-size: 11px; }
.subnav-button.active { color: var(--ink); background: white; box-shadow: 0 3px 10px rgba(27,25,36,.08); }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.filter-field { width: min(330px, 100%); height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.filter-field.wide { width: min(430px, 100%); }
.filter-field svg { width: 15px; color: #9c99a3; }
.filter-field input { width: 100%; min-width: 0; border: 0; outline: none; font-size: 11px; }
.toolbar select { height: 42px; padding: 0 32px 0 13px; border: 1px solid var(--line); border-radius: 10px; color: #686570; outline: none; background: white; font-size: 11px; }
.table-card { overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { height: 43px; padding: 0 17px; color: #96939d; background: #fafafa; text-align: left; font-size: 9px; font-weight: 650; letter-spacing: .04em; }
td { height: 58px; padding: 0 17px; border-top: 1px solid #f0eff2; color: #5f5c66; font-size: 10px; }
td strong { display: block; color: #35333b; font-size: 10px; }
td small { color: #aaa7b0; font-size: 8px; }
.table-product { display: flex; align-items: center; gap: 8px; }.table-product .product-glyph { width: 25px; height: 25px; border-radius: 7px; font-size: 8px; }
.empty-state { padding: 62px 24px; color: #9b98a2; text-align: center; font-size: 11px; }
.empty-state strong { display: block; margin-bottom: 6px; color: #5d5a64; font-size: 13px; }
.provider-intro { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 15px; margin-bottom: 17px; padding: 18px 20px; border: 1px solid #e3dffa; border-radius: 14px; background: #f6f3ff; }
.provider-intro > div { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--purple); background: white; }
.provider-intro p { margin: 0; color: #777180; font-size: 10px; line-height: 1.55; }.provider-intro strong { color: #474150; }
.provider-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.provider-card { padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.provider-card-head { display: flex; align-items: center; justify-content: space-between; }
.provider-logo { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: var(--purple); background: #f0edff; font-weight: 760; }
.provider-card h3 { margin: 15px 0 5px; font-size: 14px; }
.provider-url { display: block; overflow: hidden; color: #9996a0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.key-hint { display: flex; align-items: center; gap: 7px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0eff2; color: #696671; font-family: ui-monospace, monospace; font-size: 9px; }.key-hint svg { width: 13px; color: #9a8fd2; }
.provider-section { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 1px 2px rgba(24,32,29,.025); }
.provider-section-head { min-height: 68px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #f8faf9; }
.provider-section-head h3 { margin: 0 0 3px; font-size: 13px; }.provider-section-head small { display: block; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.provider-model-list { display: grid; }
.catalog-model-row { min-height: 72px; display: grid; grid-template-columns: minmax(190px,1.4fr) minmax(165px,1fr) minmax(145px,.8fr) auto; align-items: center; gap: 18px; padding: 11px 16px; border-top: 1px solid #eef2f0; }
.catalog-model-row:first-child { border-top: 0; }
.catalog-model-main, .catalog-price { min-width: 0; display: grid; gap: 4px; }.catalog-model-main strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.catalog-model-main small, .catalog-price small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-key-state { min-width: 0; display: flex; align-items: center; gap: 7px; color: #57645f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }.catalog-key-state svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--purple); }.catalog-key-state span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-price strong { color: #3e4945; font-size: 10px; font-weight: 650; }.catalog-model-row .button { min-width: 82px; }
.provider-model-empty { padding: 22px 16px; color: var(--muted); font-size: 10px; text-align: center; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }.row-actions button { border: 0; padding: 4px 0; color: var(--purple); background: transparent; font-size: 9px; }.row-actions .danger-link { color: #b75b5b; }
.duration-chips { display: flex; flex-wrap: wrap; gap: 5px; }.duration-chips span { min-width: 31px; padding: 4px 7px; border: 1px solid #ded9f7; border-radius: 999px; color: #5f50ad; background: #f7f5ff; font-size: 8px; font-weight: 700; text-align: center; }.duration-chips small { color: var(--muted); font-size: 9px; }

.finance-banner { min-height: 156px; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 14px; padding: 28px 32px; border-radius: 16px; color: white; background: linear-gradient(125deg, #1d1c25, #2c2744); }
.finance-banner p { color: #aaa7b6; }.finance-banner .section-kicker { color: #9b8aff; }
.finance-total { min-width: 250px; padding: 19px 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.055); }
.finance-total span, .finance-total small { display: block; color: #9f9aa9; font-size: 9px; }.finance-total strong { display: block; margin: 8px 0 4px; font-size: 25px; }
.finance-toolbar { justify-content: space-between; }
.directory-count { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #dce6e2; border-radius: 999px; color: #64716c; background: #f7faf9; font-size: 9px; font-weight: 650; }
.account-directory-card table { min-width: 890px; }
.account-directory-card th:last-child, .account-directory-card td:last-child { width: 132px; text-align: right; }
.account-cell { min-width: 0; display: flex; align-items: center; gap: 10px; }
.account-cell > span:last-child { min-width: 0; }
.account-avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: white; font-size: 10px; font-weight: 750; background: #187866; }
.account-cell strong, .account-cell small, .account-directory-card td strong, .account-directory-card td small { overflow: hidden; max-width: 240px; text-overflow: ellipsis; white-space: nowrap; }
.account-directory-card td small { display: block; margin-top: 3px; }
.account-adjust-button { min-width: 96px; min-height: 34px; padding-inline: 11px; font-size: 9px; }
.audit-summary { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; padding: 26px 30px; border: 1px solid #e4e0fa; border-radius: 16px; background: linear-gradient(105deg, #f8f6ff, #fff); }
.audit-shield { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; color: var(--purple); background: white; box-shadow: 0 8px 24px rgba(104,82,212,.1); }.audit-shield svg { width: 23px; height: 23px; }

.modal { width: min(620px, calc(100vw - 28px)); max-height: calc(100vh - 40px); overflow: auto; padding: 0; border: 0; border-radius: 19px; color: var(--ink); background: white; box-shadow: 0 35px 100px rgba(20,18,32,.3); }
.compact-modal { width: min(520px, calc(100vw - 28px)); }
.modal::backdrop { background: rgba(16,15,21,.58); backdrop-filter: blur(5px); }
.modal form { padding: 29px 31px 26px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 27px; }
.modal-heading h2 { margin: 7px 0 0; font-size: 22px; letter-spacing: -.04em; }
.modal-close { width: 32px; height: 32px; border: 0; border-radius: 9px; color: #8c8993; background: #f4f4f5; font-size: 20px; }
.modal label > span, .form-section-title span { color: #5f5c66; font-size: 10px; font-weight: 650; }
.modal input, .modal select, .modal textarea { width: 100%; padding: 0 12px; border: 1px solid #dfdee3; border-radius: 9px; color: var(--ink); outline: none; background: white; font-size: 11px; transition: .18s ease; }
.modal input, .modal select { height: 42px; }.modal textarea { padding-top: 11px; resize: vertical; line-height: 1.5; }
.modal input:focus, .modal select:focus, .modal textarea:focus { border-color: #8d79ed; box-shadow: 0 0 0 3px rgba(117,87,255,.09); }
.form-grid { display: grid; gap: 12px; }.form-grid.two-columns { grid-template-columns: 1fr 1fr; }.form-grid.three-columns { grid-template-columns: 1fr 1fr 1fr; }
.form-section-title { display: flex; align-items: center; justify-content: space-between; margin: 25px 0 15px; padding-top: 20px; border-top: 1px solid #eeedf0; }.form-section-title em { color: #aaa7b0; font-size: 9px; font-style: normal; }
.check-row { grid-template-columns: 17px 1fr; align-items: center; gap: 10px !important; padding: 11px 12px; border: 1px solid #e5e3ea; border-radius: 10px; background: #fafafa; }
.check-row input { width: 15px; height: 15px; margin: 0; accent-color: var(--purple); }
.check-row > span { display: grid; gap: 2px; }.check-row strong { color: #4a4750; font-size: 10px; }.check-row small { color: #9b98a2; font-size: 8px; }
.field-label { display: block; margin-bottom: 9px; color: #5f5c66; font-size: 10px; font-weight: 650; }.duration-model-summary { display: grid; gap: 5px; margin-bottom: 20px; padding: 15px 16px; border: 1px solid #e4e0f8; border-radius: 12px; background: #faf9ff; }.duration-model-summary span, .duration-model-summary small { color: #8a8692; font-size: 9px; }.duration-model-summary strong { color: var(--ink); font-size: 14px; }.duration-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.duration-option { min-width: 0; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 10px !important; margin: 0 !important; padding: 12px 13px; border: 1px solid #e4e1eb; border-radius: 11px; background: #fff; cursor: pointer; }.duration-option:has(input:checked) { border-color: #9d8ce8; background: #f8f6ff; box-shadow: 0 0 0 2px rgba(117,87,255,.06); }.duration-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--purple); }.duration-option span { min-width: 0; display: grid; gap: 3px; }.duration-option strong { color: #45414c; font-size: 11px; }.duration-option small { overflow: hidden; color: #96929e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; padding-top: 19px; border-top: 1px solid #efedf1; }
.pairing-setup { margin: 4px 0 18px; padding: 13px 14px; border: 1px solid #cfe0da; border-radius: 12px; background: #f1f8f5; }
.pairing-setup div { display: grid; gap: 4px; }
.pairing-setup strong { color: #1e5548; font-size: 11px; }
.pairing-setup small { color: #668078; font-size: 9px; line-height: 1.55; }
.pairing-dialog-content { padding: 29px 31px 26px; }
.pairing-description { margin: -8px 0 20px; color: #716e78; font-size: 11px; line-height: 1.7; }
.pairing-state { display: flex; align-items: center; gap: 11px; padding: 15px; border: 1px solid #e0dee5; border-radius: 13px; color: #4e4b54; background: #f7f7f8; font-size: 11px; font-weight: 650; }
.pairing-state-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #8a70ef; box-shadow: 0 0 0 5px rgba(124,96,235,.1); animation: pairing-pulse 1.4s ease-in-out infinite; }
.pairing-state.success { color: #1d6452; border-color: #bfdbd2; background: #eff8f4; }
.pairing-state.success .pairing-state-dot { background: #25836c; box-shadow: 0 0 0 5px rgba(37,131,108,.1); animation: none; }
.pairing-state.failed { color: #9a3f46; border-color: #e8c9cc; background: #fff4f4; }
.pairing-state.failed .pairing-state-dot { background: #bb4f58; box-shadow: 0 0 0 5px rgba(187,79,88,.1); animation: none; }
.pairing-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.pairing-actions .button { flex: 1 1 180px; }
.pairing-help { margin: 14px 0 0; color: #97949d; font-size: 9px; line-height: 1.6; }
@keyframes pairing-pulse { 50% { opacity: .48; transform: scale(.82); } }
.field-note { margin: -6px 0 0; color: #9a97a1; font-size: 9px; line-height: 1.6; }
.balance-preview { margin-bottom: 10px; padding: 17px 18px; border: 1px solid #d9e9e2; border-radius: 12px; background: #f1f8f5; }.balance-preview span { display: block; color: #78857f; font-size: 9px; }.balance-preview strong { display: block; margin-top: 5px; font-size: 17px; }.balance-preview small { display: block; margin-top: 4px; color: #82908a; font-size: 9px; }.balance-preview b { display: block; margin-top: 12px; color: #173e33; font-size: 22px; letter-spacing: -.035em; }
.wallet-dialog-route { display: grid; gap: 4px; margin-bottom: 20px; padding: 13px 16px; border: 1px solid #e3e9e6; border-radius: 11px; background: #fafcfb; }.wallet-dialog-route span { color: #89938f; font-size: 8px; }.wallet-dialog-route strong { color: #37443f; font-size: 11px; }.wallet-dialog-route small { color: #9ba4a0; font-size: 8px; }
.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 9px; }
.toast { min-width: 250px; display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid #dbd8e4; border-radius: 11px; color: #4c4952; background: white; box-shadow: 0 15px 45px rgba(26,23,40,.16); font-size: 11px; animation: toast-in .25s ease; }.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }.toast.error::before { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 205px minmax(0,1fr); }.workspace { padding-inline: 24px; }.metric-grid { grid-template-columns: repeat(2, 1fr); }.product-grid { grid-template-columns: repeat(2, 1fr); }.provider-grid { grid-template-columns: 1fr; }.hero-panel { grid-template-columns: 1fr .7fr; }.overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .catalog-model-row { grid-template-columns: minmax(170px,1.3fr) minmax(145px,1fr) auto; }
  .catalog-price { display: none; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }.sidebar { height: auto; position: static; padding: 14px; }.sidebar-brand { padding-bottom: 13px; }.main-nav { grid-template-columns: repeat(3, 1fr); }.nav-item { justify-content: center; padding: 0 8px; }.nav-item span { display: none; }.nav-divider, .system-state { display: none; }.sidebar-bottom { margin-top: 12px; }.owner-card { max-width: 180px; }.workspace { padding: 0 15px 35px; }.topbar { height: 88px; }.today-label { display: none; }.hero-panel { grid-template-columns: 1fr; }.hero-visual { display: none; }.hero-copy { padding: 34px 28px; }.metric-grid, .product-grid, .provider-grid { grid-template-columns: 1fr; }.health-row { grid-template-columns: 1.3fr .8fr auto; }.health-row .health-info:nth-child(3) { display: none; }.section-intro { align-items: flex-start; flex-direction: column; }.toolbar { align-items: stretch; flex-direction: column; }.filter-field, .filter-field.wide { width: 100%; }.toolbar select { width: 100%; }.table-card { overflow-x: auto; } table { min-width: 720px; }.finance-banner { align-items: flex-start; flex-direction: column; padding: 26px 24px; }.finance-total { width: 100%; min-width: 0; }.finance-toolbar { align-items: stretch; }.directory-count { width: fit-content; }.form-grid.two-columns, .form-grid.three-columns { grid-template-columns: 1fr; }.login-brand { left: 24px; }.login-card { padding: 38px 28px 31px; }.provider-intro { grid-template-columns: 38px 1fr; }.provider-intro .button { grid-column: 1 / -1; }.topbar .button span { display: none; }
}
@media (max-width: 640px) {
  .catalog-model-row { grid-template-columns: 1fr auto; gap: 10px; }
  .catalog-key-state { grid-column: 1 / -1; grid-row: 2; }
  .provider-section-head { grid-template-columns: 38px 1fr; }.provider-section-head .button { grid-column: 1 / -1; }
}

/* 2026-09-20 visual rebuild: calm, operational, and file-preview safe */
:root {
  --purple: #187866;
  --purple-deep: #105c4e;
  --sidebar: #171c1a;
  --canvas: #f3f6f4;
  --line: #dde4e0;
  --soft: #f7f9f8;
}

.login-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  color: var(--ink);
  background: #edf1ee;
}
.login-screen::before, .login-orbit, .login-foot { display: none; }
.login-shell {
  width: min(1180px, 100%);
  min-height: min(760px, calc(100dvh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, .84fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 36px 100px rgba(21,32,28,.16);
}
.login-story {
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 46px 52px 40px;
  color: #f7faf8;
  background: #17201d;
}
.login-story::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(135deg, #000, transparent 70%);
}
.login-story::after {
  content: "";
  width: 430px;
  height: 430px;
  position: absolute;
  right: -190px;
  bottom: -205px;
  border: 1px solid rgba(89,199,166,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 68px rgba(89,199,166,.035), 0 0 0 136px rgba(89,199,166,.025);
}
.login-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  inset: auto;
}
.login-brand > div:last-child { display: grid; gap: 3px; }
.login-brand strong { color: #f3f7f5; font-size: 17px; line-height: 1; }
.login-brand small { color: #71827b; font-size: 8px; font-weight: 750; letter-spacing: .22em; }
.login-story .brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 13px;
  background: linear-gradient(145deg, #248a77, #126050);
  box-shadow: 0 8px 20px rgba(8,55,46,.24), inset 0 1px rgba(255,255,255,.18);
}
.login-story-copy { max-width: 540px; position: relative; z-index: 2; margin-top: auto; padding-top: 70px; }
.login-story .eyebrow { color: #73baa6; }
.login-story h1 { margin: 20px 0 18px; font-size: clamp(41px, 4.5vw, 62px); font-weight: 650; line-height: 1.13; letter-spacing: -.06em; }
.login-story-copy > p { max-width: 500px; margin: 0; color: #94a39d; font-size: 14px; line-height: 1.85; }
.login-product-preview {
  position: relative;
  z-index: 2;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(15px);
}
.preview-heading { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.075); }
.preview-heading span { color: #d6dfdb; font-size: 11px; font-weight: 650; }
.preview-heading small { color: #596b64; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.preview-product { min-height: 58px; display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 11px; padding: 8px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.preview-logo { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: white; font-size: 10px; font-weight: 700; background: #6756cf; }
.preview-logo.boom { background: #d8664c; }
.preview-product div { min-width: 0; }
.preview-product strong, .preview-product small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-product strong { color: #dfe6e3; font-size: 10px; }
.preview-product small { margin-top: 2px; color: #697a73; font-size: 8px; }
.preview-state { border-radius: 999px; padding: 4px 7px; color: #c49b5b; background: rgba(201,145,69,.1); font-size: 7px; font-style: normal; font-weight: 650; }
.preview-state.building { color: #9183df; background: rgba(103,86,207,.12); }
.preview-flow { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #596861; font-size: 7px; font-weight: 650; letter-spacing: .04em; }
.preview-flow i { width: 28px; height: 1px; background: #33403b; }
.preview-flow strong { color: #72b8a4; }
.login-trust { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 20px; margin-top: 25px; color: #677871; font-size: 9px; }
.login-trust span { display: flex; align-items: center; gap: 6px; }
.login-trust svg { width: 13px; height: 13px; color: #559881; }
.login-panel { display: grid; align-content: center; position: relative; padding: 70px 64px; background: #fbfcfb; }
.login-panel .login-card { width: 100%; max-width: 370px; margin: 0 auto; padding: 0; border: 0; border-radius: 0; color: var(--ink); background: transparent; box-shadow: none; backdrop-filter: none; }
.login-card-mark { display: none; }
.login-card-heading { margin-bottom: 37px; }
.login-card-heading h2 { margin: 10px 0 7px; color: var(--ink); font-size: 30px; font-weight: 650; letter-spacing: -.045em; }
.login-card-heading p { margin: 0; color: #71807a; font-size: 12px; }
.login-panel .section-kicker { color: #187866; }
.login-panel .login-card label { color: #35423d; font-size: 11px; font-weight: 620; }
.login-panel .login-card input { color: #18201d; border-color: #d7dfdb; background: #fff; }
.login-panel .login-card input:focus { border-color: #6bab98; box-shadow: 0 0 0 4px rgba(24,120,102,.09); }
.login-panel .button-primary { background: #187866; box-shadow: 0 8px 20px rgba(24,120,102,.16); }
.login-panel .button-primary:hover { background: #105c4e; }
.login-panel .login-security { color: #929e98; }
.login-panel .login-security svg { color: #679f8c; }
.login-panel-foot { position: absolute; right: 0; bottom: 26px; left: 0; margin: 0; color: #adb5b1; font-size: 8px; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.login-panel .preview-message { border-color: #d8e6e0; color: #5e756c !important; background: #f0f7f4; }

.sidebar { background: #171c1a; border-right-color: #242b28; }
.sidebar .brand-mark { background: linear-gradient(145deg, #248a77, #126050); }
.nav-label { margin: 10px 12px 7px; color: #5f6c67; font-size: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav-label:first-child { margin-top: 0; }
.nav-label-spaced { margin-top: 18px; }
.nav-item.active { color: #eff7f4; background: #242d29; box-shadow: inset 2px 0 #4bab90; }
.workspace { background: #f3f6f4; }
.button-primary { background: #187866; box-shadow: 0 8px 20px rgba(24,120,102,.16); }
.button-primary:hover { background: #105c4e; }
.overview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 8px 0 21px; }
.overview-heading h2 { margin: 8px 0 5px; font-size: 29px; font-weight: 650; letter-spacing: -.05em; }
.overview-heading p { margin: 0; color: #71807a; font-size: 11px; }
.control-status { min-width: 210px; display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid #d9e8e1; border-radius: 11px; background: rgba(255,255,255,.8); }
.control-status > span { width: 8px; height: 8px; border-radius: 50%; background: #35a77c; box-shadow: 0 0 0 5px rgba(53,167,124,.09); }
.control-status div { display: grid; gap: 2px; }
.control-status strong { color: #35423d; font-size: 9px; }
.control-status small { color: #9aa59f; font-size: 8px; }
.hero-panel { min-height: 230px; grid-template-columns: minmax(0,1.08fr) minmax(310px,.92fr); border-color: #27352f; border-radius: 18px; background: linear-gradient(120deg,#18221f,#1d2d27 58%,#20372f); box-shadow: 0 15px 40px rgba(23,39,33,.11); }
.hero-panel::before { opacity: .09; background-size: 38px 38px; mask-image: linear-gradient(90deg,transparent 5%,#000 95%); }
.hero-copy { padding: 33px 39px; }
.hero-badge { width: fit-content; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(117,194,168,.2); border-radius: 999px; padding: 5px 9px; color: #8dc9b5; background: rgba(85,168,140,.08); font-size: 8px; font-weight: 650; }
.hero-badge svg { width: 12px; height: 12px; }
.hero-copy h2 { margin: 15px 0 10px; font-size: clamp(26px,3vw,37px); font-weight: 620; line-height: 1.2; letter-spacing: -.05em; }
.hero-copy p { max-width: 490px; color: #91a49c; font-size: 11px; }
.hero-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; border: 0; padding: 0; color: #acd6c7; background: transparent; font-size: 9px; font-weight: 650; }
.hero-action:hover { color: white; }
.hero-action svg { width: 13px; height: 13px; }
.hero-visual { min-height: 230px; }
.connection-map { position: absolute; inset: 22px 20px 18px 0; }
.map-core { width: 76px; height: 76px; display: grid; place-items: center; align-content: center; position: absolute; left: 49%; top: 50%; z-index: 3; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; color: white; background: linear-gradient(145deg,#2b8d77,#135b4d); box-shadow: 0 16px 36px rgba(6,37,31,.35), inset 0 1px rgba(255,255,255,.2); transform: translate(-50%,-50%); }
.map-core span { font-size: 25px; font-weight: 700; line-height: 1; }
.map-core small { margin-top: 4px; color: #8bc6b3; font-size: 6px; letter-spacing: .12em; }
.map-product { min-width: 117px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; position: absolute; z-index: 2; padding: 8px 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: rgba(12,20,17,.55); backdrop-filter: blur(10px); }
.map-product > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: white; background: #6556c4; font-size: 9px; font-weight: 700; }
.map-product > div { display: grid; gap: 1px; }
.map-product strong { color: #dbe5e1; font-size: 8px; }
.map-product small { color: #65776f; font-size: 7px; }
.map-studio { left: 3%; top: 17%; }
.map-boom { right: 0; top: 20%; }
.map-boom > span { background: #d8664c; }
.map-next { right: 4%; bottom: 8%; opacity: .7; }
.map-next > span { color: #789087; background: #293a34; }
.map-line { height: 1px; position: absolute; z-index: 1; background: linear-gradient(90deg,rgba(75,157,132,.08),rgba(75,157,132,.6),rgba(75,157,132,.08)); transform-origin: left center; }
.line-one { width: 128px; left: 29%; top: 39%; transform: rotate(17deg); }
.line-two { width: 125px; left: 58%; top: 51%; transform: rotate(-17deg); }
.metric-card, .panel, .table-card, .product-card, .provider-card { border-color: #dde4e0; box-shadow: 0 1px 2px rgba(24,32,29,.025),0 8px 24px rgba(24,32,29,.035); }
.status-active, .status-succeeded, .status-healthy { color: #26775a; background: #e9f5ef; }
.status-active::before, .status-succeeded::before, .status-healthy::before { background: #35a579; }
.provider-intro, .audit-summary { border-color: #d7e8e1; background: linear-gradient(105deg,#edf7f3,#fff); }
.provider-intro > div, .audit-shield { color: #187866; }
.finance-banner { background: linear-gradient(125deg,#17201d,#1d342b); }
.owner-card b { color: #a7d4c4; font-size: 8px; font-weight: 500; }
.security-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 8px 0 22px; }
.security-page-heading h2 { margin: 8px 0 6px; font-size: 25px; font-weight: 650; letter-spacing: -.045em; }
.security-page-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.security-grade { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #d7e8e1; border-radius: 9px; color: #26775a; background: #edf7f3; font-size: 9px; font-weight: 650; }
.security-grade svg { width: 14px; height: 14px; }
.security-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; }
.identity-card { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 11px; background: var(--surface-soft); }
.identity-avatar { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#248a77,#126050); font-size: 16px; font-weight: 700; }
.identity-card div { min-width: 0; display: grid; gap: 3px; }.identity-card small { color: var(--muted-2); font-size: 8px; }.identity-card strong { overflow: hidden; color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.identity-card em { border-radius: 999px; padding: 4px 7px; color: #6d5abf; background: #f0eefb; font-size: 7px; font-style: normal; font-weight: 700; letter-spacing: .08em; }
.security-facts { display: grid; gap: 0; margin: 19px 0 0; }.security-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 11px 0; border-top: 1px solid var(--line-soft); }.security-facts dt { color: var(--muted); font-size: 9px; }.security-facts dd { margin: 0; color: var(--ink-soft); font-size: 9px; text-align: right; }.password-panel form { margin-top: 4px; }.password-panel label { margin-bottom: 14px; }.password-panel label > span { color: var(--ink-soft); font-size: 9px; font-weight: 650; }.password-panel input { height: 40px; }.password-policy { display: grid; gap: 3px; margin: 3px 0 16px; padding: 10px 11px; border-radius: 8px; color: var(--muted); background: #f4f7f5; font-size: 8px; line-height: 1.55; }.password-policy strong { color: var(--ink-soft); font-size: 9px; }.password-panel .button { width: 100%; margin-top: 5px; }.session-warning { display: flex; align-items: flex-start; gap: 11px; margin-top: 14px; padding: 15px 17px; border: 1px solid #e7e4d2; border-radius: 11px; color: #776e46; background: #fbfaf1; }.session-warning svg { width: 17px; height: 17px; flex: 0 0 auto; color: #9a8b43; }.session-warning strong { display: block; color: #695f38; font-size: 9px; }.session-warning p { margin: 4px 0 0; font-size: 8px; line-height: 1.6; }

@media (max-width: 900px) {
  .login-screen { padding: 0; }
  .login-shell { min-height: 100dvh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .login-story { min-height: 365px; padding: 31px 28px 27px; }
  .login-story-copy { margin-top: 52px; padding-top: 0; }
  .login-story h1 { font-size: 39px; }
  .login-product-preview { display: none; }
  .login-trust { margin-top: auto; }
  .login-panel { min-height: 410px; padding: 52px 28px 66px; }
}

@media (max-width: 760px) {
  .nav-label { display: none; }
  .overview-heading { align-items: flex-start; flex-direction: column; }
  .control-status { width: 100%; }
  .security-page-heading { align-items: flex-start; flex-direction: column; }.security-grade { width: 100%; }.security-layout { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .login-story { min-height: 335px; }
  .login-story h1 { font-size: 34px; }
  .login-story-copy > p { font-size: 12px; }
  .login-trust { gap: 11px; }
  .login-trust span:nth-child(3) { display: none; }
}

/* Console layout safety: the content area must remain usable before it
   reaches the phone breakpoint. The old 760px breakpoint left a 205px
   sidebar beside a 575px canvas, which made provider cards collapse. */
@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar { height: auto; min-height: 0; position: relative; padding: 13px 15px 11px; }
  .sidebar-brand { padding: 0 7px 12px; }
  .main-nav { display: flex; gap: 6px; overflow-x: auto; padding: 0 1px 2px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-label, .nav-divider, .system-state { display: none; }
  .nav-item { width: auto; min-width: 112px; flex: 0 0 auto; justify-content: center; gap: 7px; padding: 0 10px; font-size: 11px; }
  .nav-item span { display: inline; }
  .nav-item em { margin-left: 2px; }
  .sidebar-bottom { position: absolute; top: 13px; right: 15px; margin: 0; }
  .owner-card { width: 205px; padding-block: 6px; }
  .workspace { padding: 0 20px 35px; }
  .topbar { min-height: 86px; height: auto; padding: 16px 0; }
  .topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
  .today-label { display: none; }
  .provider-grid { grid-template-columns: 1fr; }
  .provider-section-head { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .catalog-model-row { grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) auto; }
}

@media (max-width: 560px) {
  .sidebar { padding-inline: 12px; }
  .sidebar-brand { padding-left: 3px; }
  .sidebar-bottom { right: 12px; }
  .owner-card { width: 42px; grid-template-columns: 1fr; padding: 5px; }
  .owner-card > span:nth-child(2), .owner-card > svg { display: none; }
  .nav-item { min-width: 102px; }
  .workspace { padding-inline: 14px; }
  .topbar { align-items: flex-start; }
  .topbar h1 { font-size: 20px; }
  .topbar-actions { gap: 7px; }
  .topbar-actions .button { min-height: 38px; padding-inline: 11px; font-size: 11px; }
  .topbar-actions .icon-button { width: 38px; height: 38px; }
  .section-intro { margin-bottom: 17px; }
  .section-intro h2 { font-size: 22px; }
  .provider-intro { grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 14px; }
  .provider-intro .button { grid-column: 1 / -1; width: 100%; }
  .provider-section-head { grid-template-columns: 34px minmax(0, 1fr); padding: 12px; }
  .provider-section-head .button { grid-column: 1 / -1; width: 100%; }
  .catalog-model-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 12px; }
  .catalog-key-state { grid-column: 1 / -1; grid-row: 2; }
  .catalog-model-row .button { min-width: 72px; padding-inline: 9px; }
  .form-grid.two-columns, .form-grid.three-columns { grid-template-columns: 1fr; }
  .modal { width: min(620px, calc(100vw - 20px)); border-radius: 15px; }
  .compact-modal { width: min(520px, calc(100vw - 20px)); }
  .modal form { padding: 22px 18px 19px; }
  .modal-heading { margin-bottom: 20px; }
  .modal-heading h2 { font-size: 19px; }
  .duration-options { grid-template-columns: 1fr; }
  .table-card { overflow: hidden; }
  .table-card table { min-width: 0; }
  .table-card thead { display: none; }
  .table-card tbody, .table-card tr, .table-card td { display: block; width: 100%; }
  .table-card tr { padding: 12px 13px; border-top: 1px solid #e8eeeb; }
  .table-card tr:first-child { border-top: 0; }
  .table-card td { min-height: 0; padding: 4px 0; border: 0; font-size: 10px; }
  .table-card td[data-label] { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 10px; }
  .table-card td[data-label]::before { content: attr(data-label); color: #87928d; font-size: 8px; font-weight: 650; }
  .table-card td[data-label="任务"], .table-card td[data-label="模型"], .table-card td[data-label="操作"], .table-card td[data-label="说明"] { display: block; }
  .table-card td[data-label="任务"]::before, .table-card td[data-label="模型"]::before, .table-card td[data-label="操作"]::before, .table-card td[data-label="说明"]::before { display: block; margin-bottom: 4px; }
  .table-card td[data-label="说明"] { color: #575f5b; line-height: 1.55; }
  .table-card .table-product { justify-content: flex-start; }
  .account-directory-card table { min-width: 0; }
  .account-directory-card td[data-label="账号"] { display: block; }
  .account-directory-card td[data-label="账号"]::before { display: block; margin-bottom: 6px; }
  .account-directory-card th:last-child, .account-directory-card td:last-child { width: auto; text-align: left; }
  .account-adjust-button { width: 100%; margin-top: 4px; }
  .account-cell strong, .account-cell small, .account-directory-card td strong, .account-directory-card td small { max-width: none; }
  .row-actions { gap: 18px; }
}
