:root {
    --ink: #0f172a;
    --muted: #64748b;
    --canvas: #f5f7fa;
    --line: #e6ebf1;
    --accent: #2463eb;
    --bs-primary: #2463eb;
    --bs-body-color: #172337;
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); font-size: 14px; }
a { text-decoration: none; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { color: var(--ink); font-weight: 650; letter-spacing: -.035em; }
h1 { font-size: clamp(25px, 2.4vw, 33px); margin-bottom: 10px; }
h2 { font-size: 18px; letter-spacing: -.025em; }
h3 { font-size: 18px; }
.btn { border-radius: 8px; font-size: 13px; font-weight: 600; padding: 11px 17px; }
.btn-primary { --bs-btn-bg: #2463eb; --bs-btn-border-color: #2463eb; --bs-btn-hover-bg: #1c50c5; --bs-btn-hover-border-color: #1c50c5; box-shadow: 0 3px 6px #2463eb14; }
.btn-outline-secondary { --bs-btn-color: #475569; --bs-btn-border-color: #d7dfe9; --bs-btn-hover-bg: #f1f5f9; --bs-btn-hover-color: #0f172a; --bs-btn-hover-border-color: #c1cddd; }
.btn-lg { font-size: 14px; padding: 14px 20px; }
.btn-sm { padding: 7px 11px; font-size: 12px; }
.form-label, .stack-form > label { font-size: 13px; font-weight: 600; }
.form-control, .form-select { min-height: 44px; border-color: #dce3ec; border-radius: 7px; font-size: 14px; color: var(--ink); background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: #90b4ff; box-shadow: 0 0 0 3px #2463eb16; }
.form-control::placeholder { color: #94a0b1; }
.form-text { font-size: 12px; line-height: 1.7; }
.optional { color: var(--muted); font-size: 11px; font-weight: 400; margin-left: 5px; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .15em; color: #64748b; display: inline-block; margin-bottom: 13px; }
.eyebrow.light { color: #a8c1f4; }
.text-link { font-size: 12px; font-weight: 650; color: #345c97; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
.stack-form { display: flex; flex-direction: column; gap: 20px; }
.skip-link { position: fixed; top: -70px; left: 15px; z-index: 200; padding: 12px; background: white; }
.skip-link:focus { top: 10px; }
.sidebar { width: 246px; position: fixed; inset: 0 auto 0 0; background: #101c30; color: #ced7e5; display: flex; flex-direction: column; z-index: 50; overflow-y: auto; }
.sidebar-brand { display: block; padding: 21px 10px 22px; border-bottom: 1px solid #263147; }
.sidebar-brand img { display: block; width: 100%; height: 90px; }
.sidebar-caption { font-size: 9px; letter-spacing: .14em; color: #8090a8; font-weight: 700; margin: 29px 23px 14px; }
.sidebar-nav { padding: 0 14px; }
.sidebar-nav .sidebar-caption { margin-left: 10px; }
.nav-item { display: flex; align-items: center; gap: 13px; padding: 12px 14px; margin: 4px 0; color: #aebbd0; border-radius: 7px; font-weight: 500; font-size: 13px; transition: background .15s, color .15s; }
.nav-item:hover { color: white; background: #1b2940; }
.nav-item.active { color: #fff; background: #254369; box-shadow: inset 3px 0 #75a5ff; }
.nav-symbol { display: inline-flex; align-items: center; justify-content: center; width: 18px; font-size: 21px; line-height: 1; }
.sidebar-bottom { margin-top: auto; padding: 30px 24px; font-size: 11px; color: #c7d2e2; }
.sidebar-bottom > div { margin-top: 8px; color: #8191a9; font-size: 10px; }
.status-dot { width: 6px; height: 6px; background: #63cda6; border-radius: 50%; display: inline-block; margin-right: 5px; }
.workspace { margin-left: 246px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 78px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--line); background: #fff; gap: 15px; }
.breadcrumb-label { font-size: 12px; color: #65748a; }
.breadcrumb-label > span { margin: 0 13px; color: #c4cedd; }
.account-area { display: flex; align-items: center; gap: 11px; }
.account-name { font-size: 12px; font-weight: 600; line-height: 1.5; margin-right: 8px; }
.account-name small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eaf0fb; color: #3f618e; font-weight: 650; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 3px 9px; font-size: 21px; }
.main-content { width: 100%; max-width: 1680px; margin: 0 auto; padding: 37px 38px 44px; flex: 1; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.page-heading p { font-size: 13px; color: var(--muted); margin-bottom: 0; line-height: 1.7; }
.panel { border: 1px solid var(--line); background: #fff; border-radius: 11px; box-shadow: 0 2px 3px #0f172a02; overflow: hidden; }
.panel-heading { padding: 23px 25px 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading h2 { margin: 0 0 6px; font-size: 16px; }
.panel-heading p { font-size: 12px; margin: 0; color: var(--muted); }
.form-panel { padding: 28px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.metric-card { border: 1px solid var(--line); border-radius: 10px; padding: 23px 22px 17px; background: #fff; color: var(--ink); display: flex; flex-direction: column; transition: border-color .2s; }
.metric-card:hover { border-color: #93b5ee; }
.metric-card > span { font-size: 12px; font-weight: 500; color: #65738a; }
.metric-card strong { font-size: 35px; font-weight: 650; margin: 14px 0 16px; line-height: 1; letter-spacing: -.05em; }
.metric-card small { font-size: 10px; color: #8090a4; border-top: 1px solid #eff2f6; padding-top: 12px; display: flex; justify-content: space-between; }
.metric-card small span { font-size: 15px; color: #7293c7; }
.table { font-size: 12px; margin: 0; --bs-table-border-color: #edf0f5; }
.table-responsive { position: relative; }
.table th { padding: 13px 24px; color: #79869a; background: #fafbfd; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; white-space: nowrap; }
.table td { padding: 19px 24px; vertical-align: middle; }
.table td strong { font-weight: 600; font-size: 12px; }
.cell-sub { display: block; font-size: 11px; color: #8290a2; margin-top: 5px; max-width: 450px; overflow-wrap: anywhere; }
.tag { padding: 5px 9px; display: inline-block; border-radius: 5px; background: #edf1f7; color: #586980; font-size: 10px; font-weight: 600; white-space: nowrap; }
.tag-green { background: #edf8f3; color: #267858; }
.tag-red { background: #fceff0; color: #b13d4c; }
.large-tag { padding: 9px 14px; font-size: 12px; }
.empty-state { text-align: center; padding: 52px 24px; color: var(--muted); }
.empty-state p { font-size: 12px; }
.empty-symbol { width: 48px; height: 48px; margin: 0 auto 19px; border-radius: 12px; display: grid; place-items: center; background: #eef3fa; color: #6f88a9; font-size: 30px; }
.activity-panel { height: 100%; padding-bottom: 23px; }
.activity-panel > .text-link { margin-left: 25px; }
.activity-list { list-style: none; margin: 10px 25px 25px 33px; padding-left: 17px; border-left: 1px solid #e4eaf2; }
.activity-list li { position: relative; padding: 0 0 22px; }
.activity-list li:last-child { padding-bottom: 0; }
.activity-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #9ab3d6; position: absolute; left: -21px; top: 5px; border: 2px solid #fff; box-sizing: content-box; }
.activity-list strong, .activity-list span, .activity-list small { display: block; }
.activity-list strong { font-size: 11px; font-weight: 600; }
.activity-list span { font-size: 10px; color: #6d7e96; margin-top: 4px; }
.activity-list small { font-size: 10px; color: #95a1b2; margin-top: 4px; }
.brand-banner { margin-top: 29px; display: flex; align-items: center; gap: 25px; border: 1px solid #e1e8f2; background: #edf2f9; border-radius: 10px; padding: 19px 25px; }
.brand-banner img { width: 310px; max-width: 42%; }
.brand-banner strong { font-size: 12px; color: #3b4e69; }
.brand-banner p { font-size: 11px; line-height: 1.7; margin: 6px 0 0; color: #72829a; }
.workspace-footer { padding: 18px 38px; display: flex; justify-content: space-between; font-size: 10px; color: #94a0b1; border-top: 1px solid var(--line); }
.filter-bar { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.search-field { flex: 1; min-width: 190px; }
.filter-select { width: auto; max-width: 220px; min-width: 135px; }
.filter-bar .form-control, .filter-bar .form-select { font-size: 12px; min-height: 39px; }
.pagination-bar { padding: 16px 24px; display: flex; justify-content: space-between; gap: 15px; align-items: center; color: #8491a4; font-size: 11px; }
.section-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 21px; }
.section-heading span { font-size: 10px; color: #607fa9; background: #eff4fc; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; }
.section-heading h2 { margin: 0; font-size: 16px; }
.form-footer { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.product-card { padding: 25px; height: 100%; }
.product-symbol { width: 36px; height: 36px; border-radius: 8px; background: #eff3fa; display: grid; place-items: center; font-size: 25px; color: #5e7b9f; }
.product-logo { width: 100%; max-width: 450px; height: 85px; margin: 18px 0 12px; object-fit: contain; object-position: left; }
.product-card > p { color: var(--muted); font-size: 12px; }
.product-footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.product-footer > span { font-size: 12px; font-weight: 600; }
.product-footer small { display: block; font-weight: 400; color: var(--muted); font-size: 10px; margin-top: 5px; }
.capability-row { padding: 15px 0; border-bottom: 1px solid var(--line); }
.capability-row strong { font-size: 12px; }
.capability-row code, .capability-row small { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.note-box { border: 1px solid #dfe8f6; border-radius: 7px; background: #f5f8fd; padding: 15px; font-size: 12px; color: #5d7392; line-height: 1.8; }
.choice-card { display: flex; align-items: flex-start; gap: 12px; padding: 18px 15px; border: 1px solid #dce4ef; border-radius: 8px; cursor: pointer; height: 100%; }
.choice-card:has(input:checked) { border-color: #5489ed; background: #f7faff; }
.choice-card input { margin-top: 3px; accent-color: var(--accent); }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { font-size: 13px; }
.choice-card small { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature-choice { display: flex; align-items: flex-start; gap: 11px; padding: 14px; background: #fafbfd; border: 1px solid #e8edf4; border-radius: 7px; font-size: 12px; cursor: pointer; }
.feature-choice small { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.feature-choice input { flex: 0 0 auto; margin-top: 2px; }
.check-list { list-style: none; padding: 8px 0 6px; }
.check-list li { font-size: 12px; margin: 17px 0; color: #62738b; padding-left: 22px; position: relative; }
.check-list li::before { content: '✓'; color: #39866c; position: absolute; left: 0; }
.sticky-summary { position: sticky; top: 25px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; margin: 29px 0; }
.detail-grid .wide { grid-column: 1/-1; }
.detail-grid dt { font-size: 11px; font-weight: 500; color: #8693a7; margin-bottom: 7px; }
.detail-grid dd { font-size: 13px; font-weight: 500; margin: 0; }
.danger-panel { border-color: #f1d9dd; }
.danger-panel summary { color: #aa3b4d; }
summary { font-size: 12px; font-weight: 600; color: #466d9f; cursor: pointer; }
.audit-detail { padding-top: 15px; max-width: 300px; }
.audit-detail dt { font-size: 10px; color: var(--muted); font-weight: 400; }
.audit-detail dd { font-size: 11px; overflow-wrap: anywhere; }
.user-record { padding: 24px; border-top: 1px solid var(--line); }
.user-role-line { color: #789; font-size: 11px; margin: 15px 0; }
.user-role-line span { margin: 0 8px; }
.security-form, .issuance-panel, .recovery-panel { max-width: 760px; }
.success-emblem { background: #ebf7f1; color: #2c8260; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; font-size: 23px; margin-bottom: 20px; }
.issuance-panel > p { color: var(--muted); font-size: 13px; }
.secret-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.recovery-panel { padding: 28px; }
.recovery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.recovery-grid code { background: #f2f5fa; color: #334b6a; border-radius: 6px; padding: 15px; letter-spacing: .05em; font-size: 13px; text-align: center; }
.alert { font-size: 12px; line-height: 1.75; border-radius: 8px; }
.error-state { max-width: 640px; margin: 55px auto; }
.error-state p { line-height: 1.8; color: var(--muted); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-brand-panel { background: #102036; padding: 55px clamp(30px, 5vw, 90px) 30px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-brand-panel::after { content: ''; width: 400px; height: 400px; border: 1px solid #28415d; border-radius: 90px; position: absolute; right: -310px; bottom: 150px; transform: rotate(35deg); pointer-events: none; }
.auth-logo { width: 100%; max-width: 560px; }
.auth-intro { margin: auto 0; padding: 60px 0 70px; }
.auth-intro h1 { color: #fff; font-size: clamp(35px, 3.8vw, 58px); letter-spacing: -.045em; line-height: 1.2; font-weight: 600; }
.auth-intro > p { color: #99abc2; font-size: 14px; line-height: 1.9; max-width: 345px; margin: 28px 0 40px; }
.auth-proof { display: flex; align-items: center; gap: 17px; color: #cbd7e7; font-size: 12px; }
.auth-proof > span { border: 1px solid #3d536e; border-radius: 8px; padding: 10px; color: #9bb6d8; }
.auth-proof small { display: block; color: #8097b3; font-size: 11px; margin-top: 6px; }
.auth-brand-panel footer { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: #cbd6e7; }
.auth-brand-panel footer > span { color: #7d94b0; }
.auth-form-panel { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 50px 40px 25px; background: #fff; }
.auth-form-wrap { width: 100%; max-width: 400px; margin: auto; padding: 45px 0; }
.auth-title { font-size: 29px; margin-bottom: 14px; }
.auth-form-wrap > p { font-size: 13px; line-height: 1.8; }
.auth-note { margin-top: 33px; border-top: 1px solid var(--line); padding-top: 24px; display: flex; align-items: flex-start; gap: 12px; color: #8290a2; }
.auth-note p { font-size: 11px; line-height: 1.8; margin: 0; }
.auth-note small { display: block; font-size: 10px; }
.secure-mark { color: #597b9c; border: 1px solid #d6e2ee; border-radius: 50%; padding: 0 4px; font-size: 10px; margin-top: 2px; }
.auth-footnote { font-size: 10px; color: #9aa6b6; margin: 0; padding-top: 15px; }
.mobile-brand { display: none; }
.qr-wrap { text-align: center; padding: 10px; }
.qr-wrap img { max-width: 100%; }
.secret-code { display: block; padding: 13px; background: #f2f5f9; color: #364e70; font-size: 11px; overflow-wrap: anywhere; margin-top: 10px; }
.code-input { font-family: ui-monospace, monospace; letter-spacing: .15em; }
.service-message { max-width: 640px; margin: 10vh auto; padding: 30px; background: #fff; border-radius: 15px; font-family: sans-serif; }
.service-message img { width: 100%; margin-bottom: 30px; }
.service-message p, .service-message small { color: #64748b; line-height: 1.8; }
@media (min-width: 1600px) { .main-content { padding-top: 48px; } }
@media (max-width: 1200px) { .metric-grid { gap: 12px; } .metric-card { padding: 19px 16px; } .main-content { padding: 28px 24px; } .topbar { padding: 0 24px; } .brand-banner { flex-direction: column; align-items: flex-start; } .brand-banner img { max-width: 100%; } }
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s; }
    .sidebar.is-open { transform: translateX(0); box-shadow: 20px 0 60px #0f172a44; }
    .workspace { margin-left: 0; } .menu-toggle { display: block; }
    .auth-brand-panel { padding: 30px; } .auth-brand-panel footer > span { display: none; }
    .auth-intro h1 { font-size: 40px; } .auth-form-panel { padding: 35px 30px 20px; }
}
@media (max-width: 767px) {
    .auth-shell { grid-template-columns: 1fr; } .auth-brand-panel { display: none; }
    .auth-form-panel { min-height: 100vh; padding: 30px 24px 20px; }
    .mobile-brand { display: block; width: min(100%, 430px); } .mobile-brand img { width: 100%; }
    .auth-form-wrap { padding: 35px 0; } .auth-title { font-size: 26px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 24px; }
    .topbar { height: 66px; padding: 0 18px; } .breadcrumb-label { display: none; }
    .account-name { display: none; } .account-area { gap: 9px; }
    .main-content { padding: 25px 17px 35px; } .workspace-footer { padding: 17px; }
    .workspace-footer span { display: none; } .form-panel { padding: 22px; }
    .filter-bar { flex-wrap: wrap; padding: 17px; } .filter-select { flex: 1; max-width: none; }
    .pagination-bar { padding: 15px; } .feature-grid { grid-template-columns: 1fr; }
    .detail-grid { gap: 23px 15px; } .detail-grid dd { font-size: 12px; }
    .brand-banner { padding: 20px; } .brand-banner img { width: 100%; }
    .recovery-grid { grid-template-columns: 1fr; } .recovery-panel { padding: 22px; }
    .table td, .table th { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
