:root {
    --bg: #f3f6fb;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --line: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #1663f5;
    --primary-dark: #0f46b8;
    --green: #0f9f6e;
    --amber: #d97706;
    --red: #e11d48;
    --purple: #7c3aed;
    --shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

[v-cloak] { display: none !important; }

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.muted { color: var(--muted); font-size: 13px; line-height: 1.7; }
.hide-mobile { display: inline; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.admin-side {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 18px 14px;
    background: #111827;
    color: #dbe4f0;
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 8px 8px 18px; }
.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-weight: 800;
}
.brand-mark.dark { background: #111827; color: #fff; }
.brand-title { color: #fff; font-size: 16px; font-weight: 800; }
.brand-sub { color: #94a3b8; font-size: 12px; margin-top: 2px; }
.nav-group { margin: 10px 0 16px; }
.nav-title { color: #7f8ea3; font-size: 12px; padding: 8px 10px; }
.admin-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #cbd5e1;
    border-radius: 8px;
    padding: 10px 11px;
    margin: 3px 0;
    font-size: 14px;
}
.admin-nav a:hover, .admin-nav a.active { background: #1f2937; color: #fff; }
.admin-main { min-width: 0; }
.topbar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 28px;
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar h1 { margin: 0; font-size: 22px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.content { padding: 24px 28px 36px; }

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}
.card.compact { padding: 14px; }
.card h2, h2 { font-size: 16px; margin: 0 0 14px; }
h1 { font-size: 22px; margin: 0; }

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.page-head h2 { margin: 0 0 6px; font-size: 20px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.full { grid-column: 1 / -1; }

.metric {
    position: relative;
    min-height: 114px;
    overflow: hidden;
}
.metric .muted { margin-bottom: 10px; }
.metric strong { display: block; font-size: 30px; line-height: 1.1; }
.metric.accent-blue { border-top: 3px solid var(--primary); }
.metric.accent-green { border-top: 3px solid var(--green); }
.metric.accent-amber { border-top: 3px solid var(--amber); }
.metric.accent-purple { border-top: 3px solid var(--purple); }

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.toolbar form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    padding: 9px 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}
.btn:hover { color: #fff; background: var(--primary-dark); }
.btn.gray { background: #eef2f7; color: #334155; }
.btn.gray:hover { background: #e2e8f0; color: #111827; }
.btn.red { background: var(--red); }
.btn.green { background: var(--green); }
.btn.small { min-height: 30px; padding: 6px 10px; font-size: 12px; }
.btn.block { width: 100%; }

label { display: block; color: #334155; font-size: 13px; font-weight: 600; }
input, select, textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 11px;
    font-size: 14px;
    background: #fff;
    color: var(--text);
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 99, 245, .12);
}
textarea { min-height: 118px; resize: vertical; }
input[type="color"] { min-height: 42px; padding: 4px; }

.form-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.check {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    font-weight: 600;
}
.check input { width: auto; margin: 0; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
.card > table { min-width: 760px; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 11px 10px; vertical-align: top; }
th { background: #f8fafc; color: #475569; font-weight: 800; white-space: nowrap; }
td.actions { white-space: nowrap; }

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 700;
    background: #eaf1ff;
    color: #174ea6;
}
.badge.ok { background: #e8fff5; color: #057a55; }
.badge.warn { background: #fff7ed; color: #b45309; }
.badge.off { background: #eef2f7; color: #64748b; }
.badge.red { background: #fff1f2; color: #be123c; }

.code {
    display: inline-block;
    max-width: 100%;
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 5px 7px;
    word-break: break-all;
    color: #1e293b;
}
.copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.flash {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
}
.flash.success { background: #ecfdf3; color: #067647; border: 1px solid #bbf7d0; }
.flash.error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

.empty {
    display: grid;
    place-items: center;
    min-height: 160px;
    text-align: center;
    color: var(--muted);
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.info-box {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    margin-top: 16px;
}

.upgrade-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
    padding: 24px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    box-shadow: var(--shadow);
}
.upgrade-hero h2 { margin: 0 0 10px; font-size: 24px; }
.upgrade-hero p { margin: 0; color: #cbd5e1; line-height: 1.8; }
.upgrade-hero .code { background: rgba(255,255,255,.08); color: #e2e8f0; border-color: rgba(255,255,255,.16); }
.upgrade-status {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 130px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    text-align: center;
}
.upgrade-status span { color: #cbd5e1; font-size: 13px; font-weight: 800; }
.upgrade-status strong { font-size: 24px; }
.upgrade-status strong.ok { color: #86efac; }
.upgrade-status strong.bad { color: #fda4af; }
.upgrade-drop {
    display: grid;
    place-items: center;
    min-height: 176px;
    margin-top: 0;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
}
.upgrade-drop input {
    width: min(340px, 100%);
    margin: 0 0 12px;
    background: #fff;
}
.drop-title { display: block; font-size: 16px; color: var(--text); font-weight: 900; }
.drop-text { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.upgrade-kv { display: grid; gap: 10px; }
.upgrade-kv div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
}
.upgrade-kv span { color: var(--muted); font-size: 13px; font-weight: 700; }
.upgrade-kv strong { color: var(--text); font-size: 14px; }
.upgrade-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.upgrade-steps div {
    min-height: 116px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.upgrade-steps b { display: block; margin-bottom: 10px; }
.upgrade-steps span { color: var(--muted); line-height: 1.8; font-size: 13px; }
.upgrade-log {
    display: grid;
    gap: 8px;
    max-height: 330px;
    overflow: auto;
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: 12px;
}
.upgrade-log div {
    padding: 9px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--line);
    word-break: break-all;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px 16px;
    background:
        linear-gradient(135deg, rgba(22,99,245,.10), transparent 34%),
        linear-gradient(315deg, rgba(15,159,110,.10), transparent 38%),
        #f3f6fb;
}
.auth-card {
    width: 430px;
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    box-shadow: var(--shadow);
}
.auth-card h1 { margin-bottom: 10px; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, .95fr) minmax(360px, 520px);
    background: #f4f7fb;
}
.auth-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 68px;
    background: #101827;
    color: #fff;
}
.brand-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    margin-bottom: 34px;
}
.auth-hero h1 {
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 18px;
}
.auth-hero p {
    max-width: 620px;
    color: #cbd5e1;
    line-height: 1.9;
    margin: 0;
}
.auth-points {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.auth-points span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.12);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 800;
}
.auth-panel {
    align-self: center;
    width: min(430px, calc(100% - 48px));
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}
.auth-panel.wide { width: min(680px, calc(100% - 48px)); }
.auth-panel h2 {
    font-size: 26px;
    margin: 0 0 8px;
}
.auth-foot {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 18px;
}

.front-shell { min-height: 100vh; background: #f5f7fb; }
.front-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px;
}
.front-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.front-main { max-width: 1180px; margin: 0 auto; padding: 0 20px 46px; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 24px;
    align-items: stretch;
    padding: 28px 0 22px;
}
.hero-copy {
    background: #111827;
    color: #fff;
    border-radius: 8px;
    padding: 34px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-copy h1 { font-size: 38px; line-height: 1.15; margin-bottom: 16px; }
.hero-copy p { color: #cbd5e1; font-size: 15px; line-height: 1.9; max-width: 720px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--shadow);
}
.flow-list { display: grid; gap: 12px; margin-top: 18px; }
.flow-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.flow-no {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #eaf1ff;
    color: var(--primary);
    font-weight: 800;
}

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-card { display: flex; flex-direction: column; gap: 12px; min-height: 238px; }
.price { font-size: 30px; font-weight: 900; }
.price small { font-size: 13px; color: var(--muted); font-weight: 600; }

.user-shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.user-side { background: #ffffff; border-right: 1px solid var(--line); padding: 18px 14px; }
.user-nav a {
    display: block;
    color: #334155;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 4px 0;
    font-size: 14px;
    font-weight: 700;
}
.user-nav a:hover, .user-nav a.active { color: var(--primary); background: #eaf1ff; }
.user-main { min-width: 0; }

.panel-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.commerce-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
}
.commerce-copy {
    min-height: 280px;
    padding: 34px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.commerce-copy h2 { font-size: 32px; line-height: 1.18; margin: 0 0 12px; }
.commerce-copy p { color: #cbd5e1; line-height: 1.9; margin: 0; max-width: 760px; }
.eyebrow.light { background: rgba(255,255,255,.1); color: #bfdbfe; }
.eyebrow.plain {
    display: inline-flex;
    width: auto;
    margin-bottom: 9px;
    background: #eaf1ff;
    color: var(--primary);
}
.quota-board {
    min-height: 280px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 24px;
    display: grid;
    place-items: center;
    gap: 18px;
}
.quota-ring {
    width: 156px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    background:
        radial-gradient(circle at center, #fff 58%, transparent 60%),
        conic-gradient(var(--green) calc(var(--value) * 1%), #e2e8f0 0);
}
.quota-ring strong { display: block; font-size: 38px; line-height: 1; }
.quota-ring span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; margin-top: 8px; }
.quota-lines {
    width: 100%;
    display: grid;
    gap: 10px;
}
.quota-lines div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
}
.quota-lines span { color: var(--muted); font-size: 13px; font-weight: 700; }
.quota-lines b { font-size: 18px; }
.quota-lines.standalone { margin-top: 12px; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.service-card {
    min-height: 126px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
}
.service-card.accent-green { border-top-color: var(--green); }
.service-card.accent-amber { border-top-color: var(--amber); }
.service-card.accent-purple { border-top-color: var(--purple); }
.service-card span { color: var(--muted); font-size: 13px; font-weight: 800; }
.service-card strong { display: block; font-size: 32px; margin: 8px 0 4px; }
.service-card p { margin: 0; color: var(--muted); font-size: 13px; }
.dashboard-split,
.detail-grid,
.create-license-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 16px;
    align-items: start;
}
.entitlement-list,
.license-list,
.order-strip,
.stepper {
    display: grid;
    gap: 10px;
}
.entitlement-list article,
.license-tile,
.order-strip article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    min-height: 68px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.entitlement-list b,
.license-tile b { display: block; margin-bottom: 4px; }
.quota-mini { text-align: right; }
.quota-mini strong { display: block; }
.quota-mini span { color: var(--muted); font-size: 12px; }
.order-strip article {
    grid-template-columns: minmax(170px, 1fr) minmax(120px, 1fr) auto auto;
    background: #fff;
}
.license-head,
.license-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.license-head h2,
.license-detail-head h2 { margin: 0 0 6px; font-size: 24px; }
.license-actions,
.license-state {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.quota-chip {
    min-width: 120px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8fafc;
}
.quota-chip span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.quota-chip strong { font-size: 24px; }
.entitlement-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.entitlement-pills article {
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    box-shadow: var(--shadow);
}
.entitlement-pills b,
.entitlement-pills span,
.entitlement-pills small { display: block; }
.entitlement-pills span { margin: 8px 0 4px; font-weight: 900; }
.entitlement-pills small { color: var(--muted); }
.license-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.license-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.license-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.license-top h3 { margin: 0 0 6px; font-size: 18px; }
.license-top p { margin: 0; color: var(--muted); word-break: break-all; }
.license-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
    margin: 16px 0;
}
.license-meta div,
.status-matrix div {
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px;
}
.license-meta span,
.status-matrix span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}
.license-meta b,
.status-matrix b { word-break: break-word; }
.copy-line { margin: 12px 0; }
.config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}
.status-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}
.feature-tags.large span {
    border-radius: 8px;
    padding: 9px 11px;
}
.feature-tags span.enabled { background: #e8fff5; color: #057a55; }
.feature-tags span.disabled { background: #eef2f7; color: #64748b; }
.stepper div {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    gap: 6px 10px;
    align-items: start;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.stepper i {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf1ff;
    color: var(--primary);
    font-style: normal;
    font-weight: 900;
}
.stepper p { margin: 0; color: var(--muted); }
.plan-select-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.site-switch {
    min-width: 260px;
}
.site-switch select {
    margin-top: 0;
    min-height: 42px;
    background: #fff;
}
.ops-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.ops-summary-card {
    position: relative;
    min-height: 132px;
    overflow: hidden;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}
.ops-summary-card::after {
    content: '';
    position: absolute;
    right: -22px;
    top: -28px;
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: #eaf1ff;
}
.ops-summary-card.accent-green::after { background: #dcfce7; }
.ops-summary-card.accent-amber::after { background: #fef3c7; }
.ops-summary-card.accent-purple::after { background: #f3e8ff; }
.ops-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.ops-summary-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin: 10px 0 6px;
    font-size: 25px;
    line-height: 1.16;
    word-break: break-word;
}
.ops-summary-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.app-config-panel {
    border-top: 3px solid var(--primary);
}
.ops-hint-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.ops-hint-grid div {
    min-height: 92px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f8fafc;
}
.ops-hint-grid strong {
    display: block;
    margin-bottom: 7px;
}
.ops-hint-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}
.ops-list {
    display: grid;
    gap: 12px;
}
.ops-item {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.ops-item img {
    width: 168px;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: 8px;
    background: #e2e8f0;
}
.ops-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}
.ops-item p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.6;
}
.ops-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.order-cards {
    display: grid;
    gap: 12px;
}
.order-card {
    display: grid;
    grid-template-columns: minmax(260px,1fr) auto minmax(120px,auto) minmax(110px,auto) minmax(150px,auto);
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow);
}
.order-card h3 { margin: 9px 0 4px; font-size: 17px; }
.order-money { font-size: 22px; font-weight: 900; }
.order-entitlement b { display: block; font-size: 18px; }
.order-entitlement span { color: var(--muted); font-size: 12px; font-weight: 800; }

.site-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 24px;
    align-items: stretch;
    padding: 20px 0 30px;
}
.site-hero-copy {
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px;
    border-radius: 8px;
    background: #101827;
    color: #fff;
}
.eyebrow {
    width: fit-content;
    margin-bottom: 18px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 900;
}
.site-hero h1 {
    font-size: 46px;
    line-height: 1.1;
    margin: 0 0 18px;
}
.site-hero p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
}
.site-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn.ghost-light {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
}
.btn.ghost-light:hover { background: rgba(255,255,255,.18); }
.site-hero-board {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 460px;
    border-radius: 8px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.board-head { display: flex; gap: 7px; }
.board-head span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.board-head span:first-child { background: #ef4444; }
.board-head span:nth-child(2) { background: #f59e0b; }
.board-head span:nth-child(3) { background: #22c55e; }
.board-metric {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.board-metric strong { display: block; font-size: 42px; }
.board-metric small { color: var(--muted); font-weight: 700; }
.board-list { display: grid; gap: 12px; }
.board-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: #f8fafc;
}
.site-section { padding: 34px 0; }
.section-title {
    max-width: 720px;
    margin: 0 auto 20px;
    text-align: center;
}
.section-title.left { margin: 0 0 20px; text-align: left; }
.section-title span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}
.section-title h2 { font-size: 28px; margin: 0 0 8px; }
.section-title p { color: var(--muted); line-height: 1.8; margin: 0; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.feature-grid article,
.integration-card,
.plan-card-official {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.feature-grid b { display: block; font-size: 17px; margin-bottom: 8px; }
.feature-grid p,
.plan-card-official p,
.stack-row p,
.timeline p { margin: 0; color: var(--muted); line-height: 1.7; }
.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 18px;
    align-items: start;
}
.timeline { display: grid; gap: 12px; }
.timeline div {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr);
    gap: 10px 14px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}
.timeline i {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #eaf1ff;
    color: var(--primary);
    font-style: normal;
    font-weight: 900;
}
.timeline b { align-self: end; }
.integration-card h2 { font-size: 22px; margin: 0 0 14px; }
.stack-row {
    display: grid;
    grid-template-columns: 78px minmax(0,1fr);
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.stack-row span { color: var(--primary); font-weight: 900; }
.plan-grid.official { align-items: stretch; }
.plan-card-official {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.plan-card-official h3 { font-size: 22px; margin: 12px 0 8px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.feature-tags span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .admin-shell, .user-shell { display: block; }
    .admin-side, .user-side { position: static; height: auto; }
    .admin-nav, .user-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
    .admin-nav a, .user-nav a { white-space: nowrap; }
    .nav-title { display: none; }
    .topbar { position: static; padding: 0 16px; }
    .content, .front-main { padding-left: 16px; padding-right: 16px; }
    .grid, .grid3, .grid4, .check-grid, .plan-grid, .hero, .upgrade-hero, .upgrade-steps { grid-template-columns: 1fr; }
    .auth-shell, .site-hero, .feature-grid, .split-section, .commerce-hero, .dashboard-split, .detail-grid, .create-license-layout, .license-grid, .service-grid, .config-grid, .plan-select-grid, .order-card, .ops-summary-grid, .ops-item, .ops-hint-grid { grid-template-columns: 1fr; }
    .auth-hero { min-height: auto; padding: 34px 24px; }
    .auth-panel { margin: 24px auto; }
    .site-hero-copy, .site-hero-board { min-height: auto; }
    .site-hero h1, .auth-hero h1 { font-size: 34px; }
    .hero-copy { min-height: auto; padding: 26px; }
    .hero-copy h1 { font-size: 30px; }
    .commerce-copy { min-height: auto; padding: 26px; }
    .commerce-copy h2 { font-size: 28px; }
    .quota-board { min-height: auto; }
    .hide-mobile { display: none; }
}

@media (max-width: 560px) {
    .toolbar, .page-head, .top-actions, .license-head, .license-detail-head { align-items: stretch; flex-direction: column; }
    .toolbar form, .front-links { width: 100%; }
    .btn { width: 100%; }
    .btn.small { width: auto; }
    .content { padding: 16px; }
    .card { padding: 14px; }
    .copy-row { grid-template-columns: 1fr; }
    .panel-block { padding: 14px; }
    .entitlement-list article, .license-tile, .order-strip article, .license-meta, .status-matrix { grid-template-columns: 1fr; }
    .license-actions, .license-state { width: 100%; }
    .license-actions .btn, .license-state .btn { width: 100%; }
    .ops-item img { width: 100%; }
    .ops-actions { justify-content: flex-start; }
}
