: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-logo {
    width: 36px;
    height: 36px;
    display: inline-block;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .28);
}
.brand-logo.dark {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
}
.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); }
.metric.accent-red { border-top: 3px solid var(--red); }

.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;
}
.input-with-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    margin-top: 7px;
}
.input-with-action input { margin-top: 0; }
.upload-preview {
    min-height: 0;
    display: none;
    padding: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}
.upload-preview:has(img),
.upload-preview.has-image { display: block; }
.upload-preview img {
    display: block;
    max-width: 220px;
    max-height: 120px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}
.upload-preview.banner-preview img {
    width: min(360px, 100%);
    max-width: 100%;
    max-height: 190px;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.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;
}
.download-share-box {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(22, 99, 245, .16);
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}
.download-share-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.download-share-head strong { display: block; margin-bottom: 4px; }
.download-share-box input {
    margin-top: 0;
    font-size: 12px;
    color: #334155;
    background: rgba(255,255,255,.88);
}
.download-card { overflow-x: hidden; }
.download-site-list > div { display: block; }
.download-update-status-list b {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    text-align: right;
}
.download-update-form textarea { min-height: 92px; }
.app-bind-box { margin-top: 18px; }
.app-bind-box form { margin-top: 12px; }
label small.muted { display: block; margin-top: 8px; line-height: 1.55; }
.active-soft {
    border-color: rgba(22,99,245,.38) !important;
    background: #eef4ff !important;
}
.ticket-thread {
    display: grid;
    gap: 12px;
}
.ticket-thread article {
    max-width: 860px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.ticket-thread article.admin {
    margin-left: auto;
    background: #eef4ff;
    border-color: rgba(22,99,245,.18);
}
.ticket-thread article.user {
    margin-right: auto;
}
.ticket-thread article > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}
.ticket-thread b { color: var(--text); }
.ticket-thread p {
    margin: 0;
    color: #1f2937;
    line-height: 1.8;
    word-break: break-word;
}
.attachment-list {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}
.attachment-list a {
    display: block;
    padding: 7px 9px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 12px;
    word-break: break-all;
}
.inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.inline-form input,
.inline-form select {
    margin-top: 0;
}
.settings-section {
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.settings-section:first-of-type { border-top: 0; padding-top: 4px; }
.settings-title {
    margin-bottom: 14px;
}
.settings-title span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eaf1ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}
.settings-title h3 {
    margin: 0 0 6px;
    font-size: 18px;
}
.settings-title p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}
.skin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.skin-card {
    position: relative;
    min-height: 112px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
}
.skin-card.active {
    border-color: var(--primary);
    background: #eef4ff;
    box-shadow: 0 0 0 3px rgba(22, 99, 245, .10);
}
.skin-card input { position: absolute; opacity: 0; pointer-events: none; }
.skin-swatch {
    display: block;
    width: 42px;
    height: 28px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.34);
}
.skin-card strong,
.skin-card em { display: block; }
.skin-card strong { color: var(--text); margin-bottom: 5px; }
.skin-card em { color: var(--muted); font-style: normal; font-size: 12px; line-height: 1.55; }
.ops-thumb-placeholder {
    width: 168px;
    aspect-ratio: 16 / 7;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf1ff;
    color: var(--primary);
    font-weight: 900;
}

.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: 238px minmax(0, 1fr);
    background:
        linear-gradient(135deg, rgba(22,99,245,.08), transparent 28%),
        linear-gradient(315deg, rgba(15,159,110,.07), transparent 32%),
        var(--bg);
}
.user-side {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: rgba(255,255,255,.92);
    border-right: 1px solid rgba(226,232,240,.9);
    padding: 18px 14px;
    backdrop-filter: blur(12px);
}
.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; }
.user-bottom-nav { display: none; }

.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:
        linear-gradient(135deg, rgba(37,99,235,.34), transparent 42%),
        #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; }
.license-note {
    margin: 12px 0 2px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}
.advanced-box {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px 14px;
}
.advanced-box.compact { margin-top: 12px; }
.advanced-box summary {
    cursor: pointer;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    list-style: none;
}
.advanced-box summary::-webkit-details-marker { display: none; }
.advanced-box summary::after {
    content: '+';
    float: right;
    color: var(--primary);
    font-weight: 900;
}
.advanced-box[open] summary { margin-bottom: 12px; }
.advanced-box[open] summary::after { content: '-'; }
.advanced-box label { margin-top: 0; }
.mini-list {
    display: grid;
    gap: 8px;
}
.mini-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
}
.mini-list span { color: #334155; font-size: 13px; font-weight: 800; }
.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-ops-tabs {
    position: sticky;
    top: 68px;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
    backdrop-filter: blur(10px);
}
.app-ops-tabs button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 11px 12px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    text-align: left;
    font: inherit;
}
.app-ops-tabs button strong,
.app-ops-tabs button span { display: block; }
.app-ops-tabs button strong { font-size: 14px; color: #111827; }
.app-ops-tabs button span { margin-top: 4px; font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-ops-tabs button.active {
    border-color: rgba(22, 99, 245, .28);
    background: #eef4ff;
    box-shadow: inset 0 0 0 1px rgba(22,99,245,.08);
}
body.app-ops-has-tabs [data-app-ops-section] { display: none; }
body.app-ops-has-tabs [data-app-ops-section].active { display: block; }
body.app-ops-has-tabs section.grid[data-app-ops-section].active,
body.app-ops-has-tabs .grid[data-app-ops-section].active { display: grid; }
.ops-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.ops-detail-grid article {
    min-height: 116px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.ops-detail-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.ops-detail-grid strong {
    display: block;
    margin: 9px 0 6px;
    font-size: 22px;
    color: var(--text);
    word-break: break-word;
}
.ops-detail-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}
.app-config-panel {
    border-top: 3px solid var(--primary);
}
.feature-permission-shell {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fbfcff);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
    overflow: hidden;
}
.feature-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.feature-mode-tab {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: #fff;
    min-height: 76px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: .16s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
    color: inherit;
    font: inherit;
}
.feature-mode-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}
.feature-mode-tab span { min-width: 0; }
.feature-mode-tab strong {
    display: block;
    font-size: 16px;
    color: #111827;
}
.feature-mode-tab small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feature-mode-tab em {
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
    background: #f1f5f9;
    color: #475569;
}
.feature-mode-tab.free.active {
    border-color: rgba(16, 185, 129, .38);
    background: linear-gradient(135deg, #ecfdf5, #fff);
}
.feature-mode-tab.free.active em {
    background: #dcfce7;
    color: #047857;
}
.feature-mode-tab.member.active {
    border-color: rgba(245, 158, 11, .42);
    background: linear-gradient(135deg, #fff7ed, #fff);
}
.feature-mode-tab.member.active em {
    background: #ffedd5;
    color: #c2410c;
}
.feature-mode-panel {
    display: none;
    padding: 16px;
    background: #fff;
}
.feature-mode-panel.active { display: block; }
.feature-picker-hint {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}
.feature-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.feature-card-item {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: 92px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #fbfbff);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .04);
    cursor: pointer;
    transition: .16s ease;
    overflow: hidden;
}
.feature-card-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e5e7eb;
}
.feature-card-item:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, .24);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .075);
}
.feature-card-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.feature-card-check {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    border: 2px solid #cbd5e1;
    background: #fff;
    flex-shrink: 0;
    margin-top: 2px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-card-check::after {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    opacity: 0;
    margin-top: -2px;
}
.feature-card-body {
    display: block;
    min-width: 0;
    flex: 1;
}
.feature-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.feature-card-top strong {
    display: block;
    font-size: 14px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feature-card-top em {
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    white-space: nowrap;
}
.feature-card-body small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feature-mode-panel[data-feature-panel="free"] .feature-card-item.selected {
    border-color: rgba(16, 185, 129, .42);
    background: linear-gradient(180deg, #fff, #f0fdf4);
}
.feature-mode-panel[data-feature-panel="free"] .feature-card-item.selected::before { background: #10b981; }
.feature-mode-panel[data-feature-panel="free"] .feature-card-item.selected .feature-card-check {
    background: #10b981;
    border-color: #10b981;
}
.feature-mode-panel[data-feature-panel="member"] .feature-card-item.selected {
    border-color: rgba(245, 158, 11, .46);
    background: linear-gradient(180deg, #fff, #fff7ed);
}
.feature-mode-panel[data-feature-panel="member"] .feature-card-item.selected::before { background: #f59e0b; }
.feature-mode-panel[data-feature-panel="member"] .feature-card-item.selected .feature-card-check {
    background: #f59e0b;
    border-color: #f59e0b;
}
.feature-card-item.selected .feature-card-check::after { opacity: 1; }
.feature-closed-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}
.feature-closed-note strong { color: #111827; }
.member-feature-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
}
.member-feature-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
}
.member-feature-summary .muted {
    background: #f8fafc;
    color: #64748b;
}
.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; }
    .app-ops-tabs { position: static; grid-template-columns: repeat(2, minmax(180px, 1fr)); overflow-x: auto; }
    .feature-mode-tabs { grid-template-columns: repeat(2, minmax(180px, 1fr)); overflow-x: auto; }
    .feature-card-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
    .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, .skin-grid, .ops-detail-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) {
    body { background: #f6f8fc; }
    .user-shell { padding-bottom: 76px; }
    .user-side {
        display: none;
    }
    .topbar {
        min-height: 64px;
        height: auto;
        padding: 12px 16px;
        border-bottom: 0;
        background: rgba(246, 248, 252, .96);
    }
    .topbar h1 {
        font-size: 19px;
        line-height: 1.25;
    }
    .user-main .content {
        padding: 12px 12px 18px;
    }
    .user-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        min-height: 64px;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.96);
        border-top: 1px solid rgba(226,232,240,.92);
        box-shadow: 0 -12px 32px rgba(15, 23, 42, .08);
        backdrop-filter: blur(14px);
    }
    .user-bottom-nav a {
        min-width: 0;
        min-height: 50px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        font-size: 12px;
        font-weight: 900;
    }
    .user-bottom-nav a.active {
        color: #1663f5;
        background: #eaf1ff;
    }
    .user-bottom-nav span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .panel-block,
    .card,
    .license-card,
    .service-card,
    .ops-summary-card,
    .ops-detail-grid article,
    .download-card,
    .ticket-thread,
    .report-card {
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
        overflow: hidden;
    }
    .table-wrap,
    .card {
        overflow-x: visible;
    }
    table:not(.keep-table) {
        min-width: 0 !important;
    }
    table:not(.keep-table),
    table:not(.keep-table) thead,
    table:not(.keep-table) tbody,
    table:not(.keep-table) tr,
    table:not(.keep-table) th,
    table:not(.keep-table) td {
        display: block;
        width: 100%;
    }
    table:not(.keep-table) thead {
        display: none;
    }
    table:not(.keep-table) tr {
        margin-bottom: 12px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
    }
    table:not(.keep-table) td {
        border-bottom: 0;
        padding: 7px 0;
        word-break: break-word;
    }
    table:not(.keep-table) td.actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 10px;
    }
    table:not(.keep-table) td.actions .btn {
        width: auto;
        flex: 1 1 112px;
    }
    .app-ops-tabs {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        overflow-x: auto;
        gap: 8px;
        margin: 0 -12px 12px;
        padding: 10px 12px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .055);
    }
    .app-ops-tabs button {
        flex: 0 0 auto;
        min-width: 112px;
        padding: 10px 12px;
    }
    .app-ops-tabs button span {
        display: none;
    }
    .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, .input-with-action { 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-thumb-placeholder { width: 100%; }
    .ops-actions { justify-content: flex-start; }
    .ops-summary-grid {
        gap: 8px;
        margin-bottom: 10px;
    }
    .ops-summary-card {
        min-height: 92px;
        padding: 12px;
        border-radius: 12px;
    }
    .ops-summary-card::after {
        width: 62px;
        height: 62px;
        right: -18px;
        top: -20px;
    }
    .ops-summary-card strong {
        margin-top: 5px;
        font-size: 24px;
    }
    .ops-summary-card p {
        margin: 4px 0 0;
        font-size: 12px;
        line-height: 1.45;
    }
    .download-card {
        padding: 12px;
        margin-bottom: 10px;
    }
    .download-card h2 {
        margin-top: 8px !important;
        margin-bottom: 8px;
        font-size: 15px;
        line-height: 1.35;
    }
    .download-card > .muted,
    .download-card > p.muted {
        margin: 4px 0;
        font-size: 12px;
        line-height: 1.45;
    }
    .download-card > .btn.block {
        min-height: 34px;
        margin-top: 8px;
        padding: 7px 10px;
        font-size: 13px;
    }
    .compact-download-share,
    .download-update-box {
        margin-top: 10px !important;
        padding: 10px;
        border-radius: 12px;
    }
    .download-share-head {
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }
    .download-share-head strong,
    .download-update-box > strong,
    .download-site-share > strong {
        font-size: 13px;
        line-height: 1.35;
    }
    .download-share-head .muted,
    .download-update-box > .muted,
    .download-site-share > .muted {
        display: none;
    }
    .download-share-head .btn.small {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 12px;
    }
    .compact-download-share .copy-row,
    .download-site-share .copy-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
    }
    .compact-download-share input,
    .download-site-share input {
        min-height: 32px;
        padding: 6px 8px;
        font-size: 11px;
    }
    .compact-download-share .copy-row .btn,
    .download-site-share .copy-row .btn {
        width: auto;
        min-height: 32px;
        padding: 6px 8px;
        font-size: 12px;
    }
    .download-site-share {
        margin-top: 8px !important;
        padding: 9px;
        border-radius: 10px;
    }
    .download-site-list,
    .download-update-status-list {
        gap: 6px;
        max-height: 166px;
        overflow-y: auto;
        padding-right: 2px;
    }
    .download-site-list {
        margin-top: 8px !important;
    }
    .download-site-list > div,
    .download-update-status-list > div {
        min-height: 0;
        padding: 7px;
        border-radius: 9px;
    }
    .download-site-list span,
    .download-update-status-list span {
        font-size: 12px;
        line-height: 1.35;
        word-break: break-word;
    }
    .download-update-status-list {
        margin: 8px 0 !important;
        max-height: 132px;
    }
    .download-update-status-list > div {
        align-items: flex-start;
        gap: 6px;
    }
    .download-update-status-list b {
        max-width: 52%;
        gap: 4px;
    }
    .download-update-status-list .badge {
        min-height: 20px;
        padding: 2px 7px;
        font-size: 11px;
    }
    .download-update-form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
        margin-top: 8px !important;
    }
    .download-update-form label {
        font-size: 12px;
    }
    .download-update-form input,
    .download-update-form select,
    .download-update-form textarea {
        min-height: 34px;
        margin-top: 5px;
        padding: 7px 8px;
        font-size: 12px;
        border-radius: 8px;
    }
    .download-update-form textarea {
        min-height: 58px;
        line-height: 1.45;
    }
    .download-update-form.reject textarea {
        min-height: 50px;
    }
    .download-update-form .check {
        min-height: 34px;
        padding: 7px 8px;
        font-size: 12px;
        line-height: 1.25;
    }
    .download-update-form .btn {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 13px;
    }
}
