/* ThirdHands: L2-inspired midnight steel and antique gold. */
:root {
    color-scheme: dark;
    font-family: "Segoe UI Variable", "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    color: #e7e6df; background: #1b222c; font-synthesis: none; line-height: 1.6;
    --accent: #c6a369; --accent-dark: #dbb87a; --line: #323d4b; --sidebar: #101720;
}
* { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; transition: background .16s, color .16s, box-shadow .16s; }
button, a { -webkit-tap-highlight-color: transparent; }
button: focus-visible, a:focus-visible { outline: 3px solid #323d4b; outline-offset: 4px; }
svg { flex-shrink: 0; }
.ui-icon { width: 20px; height: 20px; vertical-align: middle; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; }
.brand-symbol { width: 36px; height: 36px; background: var(--accent); border-radius: 10px; display: inline-flex; justify-content: center; align-items: center; gap: 3px; flex-shrink: 0; box-shadow: 0 3px 8px #06090e13; }
.brand-symbol i { width: 4px; height: 16px; border-radius: 2px; background: #1b222c; transform: skewY(-25deg); }
.brand-symbol i: nth-child(2) { height: 23px; }
.brand-symbol i: nth-child(3) { height: 12px; }
.brand-wordmark { font-size: 22px; font-weight: 650; letter-spacing: -.8px; }
.brand-period { color: #d5b77e; }
.brand-light { color: #f0ede5; }
.brand-light .brand-symbol { background: #1b222c15; border: 1px solid #323d4b16; }
.section-label, .page-kicker { display: block; font-size: 10px; letter-spacing: 1.6px; font-weight: 600; color: #aeb7c5; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 17px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.primary-button { color: #f0ede5; background: var(--accent); box-shadow: 0 3px 6px #06090e1c; }
.primary-button: hover { background: var(--accent-dark); box-shadow: 0 5px 12px #06090e2b; }
.primary-button .ui-icon, .secondary-button .ui-icon { width: 17px; height: 17px; }
.secondary-button { background: #1b222c; color: #e7e6df; border-color: #323d4b; }
.secondary-button: hover { background: #1b222c; border-color: #323d4b; color: var(--accent-dark); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #62b99a; flex-shrink: 0; }
.footer-dot { display: inline-block; width: 3px; height: 3px; background: #1b222c; border-radius: 50%; margin: 0 9px; vertical-align: middle; }
.skip-link { position: fixed; z-index: 20; top: -60px; left: 20px; background: var(--accent); color: #f0ede5; padding: 10px 20px; border-radius: 6px; }
.skip-link: focus { top: 12px; }

/* Login */
.login-shell { display: grid; grid-template-columns: 46% 54%; min-height: 100dvh; }
.login-visual { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; background: #101720; color: #f0ede5; padding: 42px 52px 28px; }
.login-visual::before { content: ""; position: absolute; z-index: -1; width: 650px; height: 650px; left: -280px; top: 12%; background: radial-gradient(circle, #b9955836, transparent 68%); }
.login-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(#1b222c13 1px, transparent 1px); background-size: 25px 25px; mask-image: linear-gradient(transparent, black 70%); }
.login-visual-content { margin: auto 0; padding: 58px 0 25px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 600; letter-spacing: 2px; color: #d5b77e; }
.eyebrow > span { width: 16px; height: 1px; background: #1b222c; }
.login-visual h1 { font-size: clamp(34px, 3.35vw, 54px); font-weight: 550; line-height: 1.37; letter-spacing: -2px; margin: 24px 0 19px; }
.login-visual h1 > span { color: #d5b77e; }
.login-visual-content > p { font-size: 14px; color: #aeb7c5; line-height: 1.95; letter-spacing: -.2px; }
.control-visual { position: relative; width: 100%; max-width: 340px; height: 265px; margin: 26px auto 0; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid #323d4b1e; border-radius: 50%; }
.orbit-one { width: 180px; height: 180px; }
.orbit-two { width: 280px; height: 280px; transform: rotateX(20deg); }
.control-core { width: 91px; height: 91px; display: grid; place-items: center; border-radius: 23px; background: linear-gradient(145deg, #b99558, #101720); box-shadow: 0 20px 50px #06090e5e, inset 0 1px 0 #06090e30; transform: rotate(-9deg); }
.control-core .brand-symbol { background: transparent; box-shadow: none; transform: rotate(9deg) scale(1.6); }
.orbit-node { position: absolute; display: grid; place-items: center; width: 41px; height: 41px; background: #101720; border: 1px solid #293441; border-radius: 12px; color: #d5b77e; box-shadow: 0 8px 15px #06090e22; }
.orbit-node .ui-icon { width: 19px; height: 19px; }
.node-one { left: 13%; top: 23%; transform: rotate(-9deg); }
.node-two { right: 5%; top: 34%; transform: rotate(12deg); }
.node-three { left: 28%; bottom: 2%; transform: rotate(7deg); }
.visual-caption { position: absolute; top: 74%; right: -2%; display: flex; align-items: center; gap: 9px; background: #101720; border: 1px solid #293441; box-shadow: 0 12px 24px #06090e2b; padding: 11px 13px; border-radius: 8px; color: #d5b77e; font-size: 9px; letter-spacing: 1.2px; }
.visual-caption .ui-icon { width: 15px; height: 15px; color: #d5b77e; }
.visual-caption-dot { height: 5px; width: 5px; border-radius: 50%; background: #1b222c; margin-left: 7px; }
.login-visual-footer { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #aeb7c5; }
.login-visual-footer > span: last-child { font-size: 10px; letter-spacing: 1px; }
.login-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; background: #1b222c; padding: 55px 55px 26px; }
.login-mobile-brand { display: none; }
.login-card { width: 100%; max-width: 370px; margin: auto; }
.login-icon { width: 46px; height: 46px; border-radius: 13px; border: 1px solid #323d4b; background: #1b222c; color: #d5b77e; display: grid; place-items: center; margin-bottom: 27px; }
.login-icon .ui-icon { width: 23px; height: 23px; }
.login-card .section-label { font-size: 10px; letter-spacing: 1.4px; color: #aeb7c5; }
.login-card h2 { font-size: 30px; line-height: 1.4; letter-spacing: -1.2px; font-weight: 650; margin: 10px 0 10px; }
.login-description { font-size: 14px; color: #aeb7c5; margin: 0 0 34px; }
.form-stack { display: flex; flex-direction: column; gap: 23px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-size: 13px; font-weight: 600; color: #e7e6df; }
.input-wrap { display: flex; align-items: center; position: relative; min-width: 0; }
.input-wrap > .ui-icon { position: absolute; left: 14px; width: 17px; height: 17px; color: #aeb7c5; pointer-events: none; }
.input-wrap input { min-width: 0; width: 100%; height: 48px; border: 1px solid #323d4b; border-radius: 8px; padding: 0 43px 0 14px; background: #1b222c; font-size: 14px; color: #e7e6df; transition: border-color .15s, box-shadow .15s; outline: none; }
.input-wrap > .ui-icon + input { padding-left: 41px; }
.input-wrap input::placeholder { color: #aeb7c5; font-size: 13px; }
.input-wrap input: focus { border-color: #323d4b; box-shadow: 0 0 0 3px #06090e13; }
.input-wrap input[aria-invalid="true"] { border-color: #323d4b; }
.password-toggle { position: absolute; right: 5px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #aeb7c5; }
.password-toggle .ui-icon { width: 18px; height: 18px; }
.password-toggle: hover, .password-toggle[aria-pressed="true"] { background: #1b222c; color: #d5b77e; }
.login-submit { justify-content: space-between; height: 48px; margin-top: 4px; }
.login-submit .ui-icon { width: 18px; height: 18px; }
.login-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 28px; padding-top: 23px; border-top: 1px solid #323d4b; }
.login-note > .ui-icon { width: 17px; height: 17px; margin-top: 2px; color: #aeb7c5; }
.login-note p { font-size: 11px; color: #aeb7c5; margin: 0; line-height: 1.9; }
.login-note p span { color: #aeb7c5; }
.login-footer { width: 100%; display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: #aeb7c5; margin-top: 50px; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 7px; font-size: 12px; line-height: 1.75; margin: 0 0 22px; border: 1px solid transparent; }
.notice .ui-icon { width: 16px; height: 16px; margin-top: 2px; }
.notice.error { background: #342127; border-color: #323d4b; color: #efadb0; }
.notice.success { background: #182e2a; border-color: #323d4b; color: #8dceb3; }

/* Workspace shell */
.workspace { display: flex; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; width: 248px; height: 100dvh; flex-shrink: 0; display: flex; flex-direction: column; padding: 32px 18px 17px; background: var(--sidebar); color: #f0ede5; }
.sidebar-brand { display: inline-block; padding: 0 12px; margin-bottom: 34px; }
.sidebar .brand-symbol { width: 32px; height: 32px; border-radius: 9px; }
.sidebar .brand-wordmark { font-size: 21px; }
.sidebar .brand-lockup { gap: 9px; }
.workspace-switch { display: flex; align-items: center; gap: 10px; background: #1b222c06; border: 1px solid #323d4b0c; border-radius: 8px; padding: 13px 10px; margin: 0 4px 30px; }
.workspace-icon { width: 30px; height: 30px; display: grid; place-items: center; background: #101720; border: 1px solid #323d4b0e; border-radius: 7px; color: #d5b77e; font-size: 13px; font-weight: 600; }
.workspace-switch > div { display: flex; flex-direction: column; }
.workspace-switch strong { font-size: 12px; font-weight: 500; color: #aeb7c5; }
.workspace-switch div > span { font-size: 10px; color: #aeb7c5; margin-top: 2px; }
.workspace-badge { display: none; }
.workspace-switch div > span { white-space: nowrap; }
.nav-caption { font-size: 9px; letter-spacing: 1.8px; color: #aeb7c5; padding: 0 16px; margin-bottom: 12px; }
.main-nav { display: flex; flex-direction: column; gap: 6px; }
.main-nav > a { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 11px 15px; color: #aeb7c5; font-size: 13px; border: 1px solid transparent; border-radius: 7px; transition: background .15s, color .15s; }
.main-nav > a > .ui-icon { width: 18px; height: 18px; }
.main-nav > a: hover { background: #1b222c06; color: #d5b77e; }
.main-nav > a.active { background: #b9955826; border-color: #323d4b1a; color: #d5b77e; }
.nav-indicator { width: 5px; height: 5px; border-radius: 50%; background: transparent; margin-left: auto; }
.active .nav-indicator { background: #1b222c; }
.sidebar-bottom { margin-top: auto; }
.private-label { display: flex; align-items: center; gap: 9px; color: #aeb7c5; font-size: 11px; padding: 20px 15px; }
.private-label .ui-icon { width: 15px; height: 15px; }
.sidebar-account { display: flex; align-items: center; gap: 10px; border-top: 1px solid #323d4b0d; padding: 18px 7px 4px; }
.avatar { display: grid; place-items: center; border-radius: 50%; width: 34px; height: 34px; flex-shrink: 0; background: #101720; color: #d5b77e; font-size: 12px; font-weight: 600; }
.sidebar-account-copy { display: flex; flex-direction: column; min-width: 0; }
.sidebar-account-copy strong { font-size: 11px; color: #aeb7c5; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.sidebar-account-copy > span { font-size: 10px; color: #aeb7c5; margin-top: 2px; }
.sidebar-account > .ui-icon { margin-left: auto; height: 13px; width: 13px; color: #aeb7c5; }
.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 76px; background: #1b222c; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 0 36px; }
.breadcrumb { display: flex; align-items: center; gap: 15px; font-size: 12px; color: #aeb7c5; }
.breadcrumb .ui-icon { width: 10px; height: 10px; color: #aeb7c5; }
.breadcrumb strong { font-weight: 500; color: #e7e6df; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.access-badge { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #aeb7c5; }
.access-badge .ui-icon { width: 14px; height: 14px; color: #aeb7c5; }
.topbar-divider { width: 1px; height: 18px; background: var(--line); }
.logout-button { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #aeb7c5; background: transparent; border: 0; padding: 9px 0; }
.logout-button .ui-icon { height: 15px; width: 15px; }
.logout-button: hover { color: var(--accent); }
.page-content { width: 100%; max-width: 1430px; padding: 35px 36px 40px; margin: 0 auto; flex: 1; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.page-kicker { font-size: 9px; letter-spacing: 1.5px; color: #aeb7c5; margin-bottom: 7px; }
.page-heading h1 { font-size: 28px; line-height: 1.45; letter-spacing: -1px; font-weight: 650; margin: 0 0 7px; }
.page-heading p { font-size: 12px; color: #aeb7c5; margin: 0; }
.page-heading > .secondary-button { min-height: 38px; padding: 8px 13px; font-size: 11px; }
.page-heading > .secondary-button .ui-icon { width: 15px; height: 15px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; padding: 19px 36px; color: #aeb7c5; font-size: 10px; border-top: 1px solid var(--line); }
.surface { border: 1px solid #323d4b; background: #1b222c; border-radius: 11px; box-shadow: 0 2px 4px #06090e02; }

/* Overview */
.welcome-banner { display: flex; align-items: center; position: relative; overflow: hidden; min-height: 183px; padding: 29px 31px; border: 1px solid #323d4b; border-radius: 11px; background: #1b222c; }
.welcome-copy { z-index: 1; }
.welcome-eyebrow { font-size: 9px; font-weight: 600; letter-spacing: 1.6px; color: #d5b77e; }
.welcome-banner h2 { margin: 10px 0 8px; font-size: 26px; color: #e7e6df; letter-spacing: -1px; font-weight: 600; }
.welcome-banner p { margin: 0; font-size: 12px; color: #aeb7c5; }
.mobile-break { display: none; }
.welcome-label { position: absolute; right: 23px; top: 19px; display: flex; align-items: center; gap: 7px; font-size: 8px; letter-spacing: 1px; color: #aeb7c5; }
.welcome-label .ui-icon { width: 12px; height: 12px; }
.banner-emblem { position: absolute; width: 280px; height: 280px; right: 0; top: -18px; display: grid; place-items: center; }
.emblem-ring { position: absolute; inset: 16px; border: 1px solid #323d4b50; border-radius: 50%; box-shadow: 0 0 0 30px #06090e20, 0 0 0 60px #06090e12; }
.banner-emblem > .brand-symbol { width: 90px; height: 90px; border-radius: 23px; transform: rotate(-12deg); background: linear-gradient(140deg, #1b222c, #1b222c); box-shadow: 12px 15px 28px #06090e35, inset 0 2px 1px #06090e60; gap: 8px; }
.banner-emblem .brand-symbol i { width: 9px; height: 34px; background: #1b222cd1; }
.banner-emblem .brand-symbol i: nth-child(2) { height: 49px; }
.banner-emblem .brand-symbol i: nth-child(3) { height: 25px; }
.overview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 23px 0; }
.stat-card { display: flex; position: relative; align-items: center; gap: 15px; background: #1b222c; border: 1px solid #323d4b; border-radius: 10px; min-height: 116px; padding: 22px; }
.stat-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; flex-shrink: 0; }
.stat-icon .ui-icon { height: 20px; width: 20px; }
.violet { background: #1b222c; color: #d5b77e; }
.green { background: #182e2a; color: #8dceb3; }
.blue { background: #1b222c; color: #d5b77e; }
.stat-label { font-size: 11px; color: #aeb7c5; }
.stat-value { color: #e7e6df; font-size: 29px; line-height: 1.4; font-weight: 600; margin-top: 3px; letter-spacing: -.8px; }
.stat-value > span { color: #aeb7c5; font-size: 12px; font-weight: 400; margin-left: 7px; }
.stat-value.role-value { font-size: 17px; letter-spacing: -.3px; margin-top: 7px; }
.stat-detail { position: absolute; right: 17px; top: 21px; font-size: 9px; color: #aeb7c5; display: flex; align-items: center; gap: 5px; }
.stat-detail .status-dot { width: 4px; height: 4px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 22px; align-items: start; }
.account-list { overflow: hidden; }
.surface-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 25px 21px; }
.surface-heading h2 { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; letter-spacing: -.3px; margin: 0 0 6px; }
.surface-heading p { margin: 0; font-size: 11px; color: #aeb7c5; }
.count-badge { display: inline-grid; place-items: center; min-width: 21px; padding: 1px 6px; border-radius: 5px; background: #1b222c; color: #d5b77e; font-size: 10px; }
.quiet-icon { color: #aeb7c5; }
.quiet-icon .ui-icon { height: 18px; width: 18px; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.admin-table th { font-size: 11px; font-weight: 500; color: #aeb7c5; background: #1b222c; border-top: 1px solid #323d4b; border-bottom: 1px solid #323d4b; padding: 13px 25px; }
.admin-table td { padding: 20px 25px; border-bottom: 1px solid #323d4b; }
.table-timezone { font-size: 8px; margin-left: 3px; color: #aeb7c5; }
.table-account { display: flex; align-items: center; gap: 10px; }
.table-avatar { background: #1b222c; color: #d5b77e; width: 32px; height: 32px; font-size: 11px; }
.table-account > div { display: flex; flex-direction: column; }
.table-account strong { font-size: 12px; font-weight: 550; color: #e7e6df; display: flex; align-items: center; gap: 6px; }
.table-account div > span { font-size: 10px; color: #aeb7c5; margin-top: 2px; }
.you-badge { font-size: 9px; padding: 1px 4px; border: 1px solid #323d4b; color: #d5b77e; border-radius: 3px; }
.state-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; font-size: 10px; }
.state-badge > span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.state-badge.active { background: #182e2a; color: #8dceb3; }
.state-badge.inactive { background: #1b222c; color: #aeb7c5; }
.date-cell { font-size: 11px; color: #aeb7c5; font-variant-numeric: tabular-nums; }
.table-footer { display: flex; align-items: center; gap: 7px; padding: 16px 25px; color: #aeb7c5; font-size: 10px; }
.table-footer .ui-icon { width: 14px; height: 14px; }
.security-summary { padding: 27px; overflow: hidden; }
.security-illustration { position: relative; display: grid; place-items: center; width: 56px; height: 56px; color: #d5b77e; margin-bottom: 21px; }
.security-illustration > .ui-icon { width: 31px; height: 31px; z-index: 1; stroke-width: 1.3; }
.security-orbit { position: absolute; inset: 0; border-radius: 16px; background: #1b222c; transform: rotate(-9deg); }
.security-summary > .section-label { font-size: 8px; letter-spacing: 1.2px; color: #aeb7c5; }
.security-summary h2 { font-size: 21px; line-height: 1.55; letter-spacing: -.6px; color: #e7e6df; font-weight: 600; margin: 11px 0; }
.security-summary > p { font-size: 12px; line-height: 1.9; color: #aeb7c5; margin: 0; }
.last-change { display: flex; align-items: center; gap: 9px; border-top: 1px solid #323d4b; margin-top: 23px; padding-top: 18px; color: #aeb7c5; }
.last-change > .ui-icon { width: 15px; height: 15px; }
.last-change > div { display: flex; flex-direction: column; gap: 4px; }
.last-change span { font-size: 10px; }
.last-change strong { font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; color: #aeb7c5; }
.security-summary > .secondary-button { display: flex; margin-top: 21px; justify-content: space-between; font-size: 11px; min-height: 37px; padding: 8px 12px; }

/* Account preferences */
.settings-tabs { border-bottom: 1px solid #323d4b; margin: 4px 0 25px; display: flex; }
.settings-tabs > span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 3px 15px; }
.settings-tabs .ui-icon { width: 17px; height: 17px; }
.settings-tabs .selected { color: #d5b77e; border-bottom: 2px solid #323d4b; margin-bottom: -1px; }
.profile-card { display: flex; align-items: center; gap: 17px; padding: 24px 28px; margin-bottom: 23px; }
.profile-avatar { width: 50px; height: 50px; color: #d5b77e; background: #1b222c; border: 4px solid #323d4b; font-size: 16px; }
.profile-copy h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: #e7e6df; }
.profile-copy p { margin: 0; font-size: 12px; color: #aeb7c5; }
.role-badge { display: flex; align-items: center; gap: 6px; font-size: 10px; background: #1b222c; border: 1px solid #323d4b; color: #d5b77e; border-radius: 5px; padding: 5px 9px; margin-left: auto; }
.role-badge .ui-icon { width: 13px; height: 13px; }
.settings-security { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr); padding: 35px; gap: 55px; }
.setting-section-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #323d4b; background: #1b222c; color: #d5b77e; border-radius: 10px; margin-bottom: 16px; }
.setting-section-icon .ui-icon { width: 19px; height: 19px; }
.settings-intro h2 { font-size: 18px; letter-spacing: -.5px; color: #e7e6df; margin: 0 0 11px; font-weight: 600; }
.settings-intro > p { font-size: 12px; color: #aeb7c5; line-height: 1.9; margin: 0; }
.settings-hint { display: flex; align-items: flex-start; gap: 8px; background: #1b222c; border: 1px solid #323d4b; border-radius: 8px; padding: 13px; margin-top: 26px; max-width: 270px; color: #aeb7c5; }
.settings-hint > .ui-icon { width: 15px; height: 15px; margin-top: 2px; }
.settings-hint p { font-size: 11px; line-height: 1.8; margin: 0; }
.settings-form { max-width: 480px; width: 100%; }
.profile-settings { margin-bottom: 23px; }
.input-wrap input[readonly] { background: #1b222c; color: #aeb7c5; }
.settings-form .form-stack { gap: 23px; }
.settings-form .field > label { font-size: 12px; }
.settings-form .input-wrap input { height: 46px; font-size: 13px; }
.settings-form .input-wrap input::placeholder { font-size: 12px; }
.field-help { font-size: 11px; color: #aeb7c5; min-height: 16px; }
.field-help.invalid { color: #efadb0; }
.field-help.valid { color: #8dceb3; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #323d4b; padding-top: 23px; margin-top: 2px; }
.form-actions .secondary-button, .form-actions .primary-button { font-size: 12px; min-height: 40px; }

/* Secondary copy remains readable on dark surfaces. */
.page-heading p, .surface-heading p, .profile-copy p,
.settings-intro > p, .settings-hint, .field-help, .login-description,
.date-cell, .table-account div > span, .table-footer { color: #aeb7c5; }
@media (max-height: 760px) and (min-width: 761px) {
    .login-visual-content { padding-top: 38px; padding-bottom: 12px; }
    .control-visual { height: 225px; margin-top: 10px; }
    .orbit-two { width: 245px; height: 245px; }
}
@media (min-width: 1550px) {
    .login-visual { padding: 48px 75px 30px; }
    .login-panel { padding-left: 75px; padding-right: 75px; }
    .control-visual { margin-top: 45px; }
}
@media (max-width: 1200px) {
    .sidebar { width: 222px; }
    .page-content { padding: 30px 26px 35px; }
    .topbar { padding: 0 26px; }
    .page-footer { padding: 18px 26px; }
    .dashboard-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; }
    .security-summary { padding: 22px; }
    .stat-card { padding: 20px 16px; gap: 11px; }
    .stat-detail { display: none; }
    .admin-table td, .admin-table th { padding-left: 19px; padding-right: 19px; }
    .settings-security { gap: 30px; padding: 28px; }
}
@media (max-width: 1000px) {
    .sidebar { width: 200px; padding-left: 13px; padding-right: 13px; }
    .sidebar .brand-wordmark { font-size: 18px; }
    .sidebar .brand-symbol { width: 28px; height: 28px; }
    .workspace-badge { display: none; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .security-summary { display: grid; grid-template-columns: 65px 1fr 1fr; column-gap: 20px; align-items: center; }
    .security-illustration { grid-row: 1 / 4; margin: 0; }
    .security-summary > .section-label { grid-column: 2; }
    .security-summary h2 { grid-column: 2; font-size: 18px; margin: 5px 0; }
    .security-summary h2 br, .security-summary > p br { display: none; }
    .security-summary > p { grid-column: 2; }
    .last-change { grid-column: 3; grid-row: 1 / 3; border-top: 0; margin: 0; padding: 0; }
    .security-summary > .secondary-button { grid-column: 3; grid-row: 3; margin: 12px 0 0; }
    .overview-stats { gap: 12px; }
    .stat-icon { width: 35px; height: 35px; border-radius: 10px; }
    .stat-value { font-size: 25px; }
    .stat-value.role-value { font-size: 13px; }
    .settings-security { grid-template-columns: 1fr; gap: 28px; }
    .settings-intro { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
    .setting-section-icon { grid-row: 1 / 3; margin: 0; }
    .settings-intro h2 { margin-bottom: 4px; }
    .settings-intro > p br { display: none; }
    .settings-hint { grid-column: 1 / -1; max-width: none; margin-top: 17px; }
    .settings-form { max-width: none; }
    .login-visual { padding: 35px 32px 25px; }
    .login-visual h1 { font-size: 35px; }
    .login-panel { padding: 45px 40px 25px; }
    .control-visual { transform: scale(.9); margin-left: -10px; }
}
@media (max-width: 760px) {
    .login-shell { grid-template-columns: 1fr; min-height: 100dvh; background: #1b222c; }
    .login-visual { display: none; }
    .login-panel { min-height: 100dvh; padding: 27px 28px 23px; }
    .login-mobile-brand { display: block; align-self: flex-start; margin-bottom: 50px; }
    .login-mobile-brand .brand-wordmark { font-size: 21px; }
    .login-mobile-brand .brand-symbol { width: 32px; height: 32px; }
    .login-card { max-width: 380px; padding: 15px 0 25px; }
    .login-icon { margin-bottom: 24px; }
    .login-card h2 { font-size: 28px; }
    .login-footer { margin-top: 45px; font-size: 9px; }
    .workspace { flex-direction: column; }
    .sidebar { position: static; height: auto; width: 100%; padding: 20px 20px 0; }
    .sidebar-brand { padding: 0; margin-bottom: 19px; }
    .sidebar .brand-wordmark { font-size: 21px; }
    .sidebar .brand-symbol { width: 30px; height: 30px; }
    .workspace-switch, .nav-caption, .sidebar-bottom { display: none; }
    .main-nav { flex-direction: row; gap: 23px; }
    .main-nav > a { padding: 9px 2px 14px; gap: 8px; border-radius: 0; border: 0; border-bottom: 2px solid transparent; font-size: 12px; }
    .main-nav > a.active { background: none; border-color: #323d4b; color: #d5b77e; }
    .main-nav > a .ui-icon { width: 17px; height: 17px; }
    .nav-indicator { display: none; }
    .topbar { min-height: 55px; padding: 0 20px; }
    .breadcrumb { gap: 9px; font-size: 10px; }
    .topbar-actions { gap: 12px; }
    .access-badge { font-size: 10px; }
    .topbar-divider { display: none; }
    .logout-button { font-size: 10px; }
    .page-content { padding: 27px 20px 32px; }
    .page-heading { margin-bottom: 22px; }
    .page-heading h1 { font-size: 26px; }
    .page-heading p { font-size: 11px; }
    .page-heading > .secondary-button { font-size: 10px; gap: 6px; padding: 7px 9px; }
    .page-heading > .secondary-button .ui-icon: last-child { display: none; }
    .welcome-banner { padding: 25px; min-height: 165px; }
    .welcome-banner h2 { font-size: 23px; }
    .welcome-label { display: none; }
    .banner-emblem { width: 200px; height: 200px; right: -40px; top: 0; }
    .banner-emblem > .brand-symbol { width: 65px; height: 65px; border-radius: 18px; gap: 5px; }
    .banner-emblem .brand-symbol i { width: 6px; height: 26px; }
    .banner-emblem .brand-symbol i: nth-child(2) { height: 35px; }
    .banner-emblem .brand-symbol i: nth-child(3) { height: 18px; }
    .welcome-copy { max-width: 75%; }
    .overview-stats { gap: 10px; margin: 17px 0; grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 18px 15px; min-height: 100px; }
    .account-stat { display: none; }
    .stat-value { font-size: 27px; }
    .stat-label { font-size: 10px; }
    .surface-heading { padding: 20px; }
    .surface-heading h2 { font-size: 14px; }
    .surface-heading p { font-size: 10px; }
    .admin-table { min-width: 510px; }
    .admin-table th, .admin-table td { padding-left: 20px; padding-right: 20px; }
    .table-footer { padding: 14px 20px; font-size: 10px; }
    .security-summary { grid-template-columns: 50px 1fr; gap: 0 17px; padding: 22px; }
    .security-illustration { grid-row: 1 / 4; width: 47px; height: 47px; }
    .last-change { grid-column: 1 / -1; grid-row: 4; border-top: 1px solid #323d4b; padding-top: 17px; margin-top: 19px; }
    .security-summary > .secondary-button { grid-column: 1 / -1; grid-row: 5; margin-top: 17px; }
    .page-footer { font-size: 9px; padding: 18px 20px; gap: 12px; }
    .page-footer > span: last-child { font-size: 8px; }
    .profile-card { padding: 19px; gap: 12px; }
    .profile-avatar { width: 43px; height: 43px; font-size: 13px; }
    .profile-copy h2 { font-size: 13px; }
    .profile-copy p { font-size: 10px; }
    .role-badge { font-size: 8px; padding: 4px 6px; }
    .role-badge .ui-icon { display: none; }
    .settings-security { padding: 23px 20px; gap: 25px; }
}
@media (max-width: 390px) {
    .login-panel { padding-left: 23px; padding-right: 23px; }
    .login-footer > span: last-child { font-size: 8px; }
    .topbar .access-badge { display: none; }
    .page-content { padding-left: 16px; padding-right: 16px; }
    .mobile-break { display: initial; }
    .welcome-banner h2 { font-size: 21px; }
    .banner-emblem { right: -60px; }
    .welcome-banner p { font-size: 11px; }
    .stat-card { gap: 10px; padding: 16px 12px; }
    .stat-icon { width: 30px; height: 30px; }
    .role-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Public service site — deliberately separate from the authenticated console. */
.public-site { background: #1b222c; color: #e7e6df; }
.site-header, .site-footer { max-width: 1260px; margin: 0 auto; padding: 27px 45px; display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.site-header { border-bottom: 1px solid #323d4b; }
.site-header nav { display: flex; gap: 32px; font-size: 12px; color: #aeb7c5; margin-left: auto; margin-right: 35px; }
.site-header nav a: hover, .site-admin-link:hover { color: var(--accent); }
.site-admin-link { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #323d4b; border-radius: 7px; padding: 8px 12px; font-size: 11px; color: #aeb7c5; }
.site-admin-link .ui-icon { width: 13px; height: 13px; }
.site-hero { max-width: 1260px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; min-height: 585px; align-items: center; padding: 70px 45px 85px; gap: 35px; overflow: hidden; }
.site-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: 1.7px; color: #d5b77e; font-weight: 600; }
.site-eyebrow > span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #1b222c; }
.site-hero h1 { font-size: clamp(40px, 4.2vw, 62px); line-height: 1.3; letter-spacing: -2.5px; font-weight: 650; margin: 22px 0; }
.site-hero h1 > span { color: #d5b77e; }
.site-hero-copy > p { color: #aeb7c5; font-size: 14px; line-height: 1.9; }
.site-cta { margin-top: 23px; gap: 30px; min-height: 46px; font-size: 12px; padding: 12px 20px; }
.hero-footnote { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #aeb7c5; margin-top: 22px; }
.hero-footnote .ui-icon { width: 13px; height: 13px; }
.site-hero-art { position: relative; height: 365px; display: grid; place-items: center; isolation: isolate; }
.site-hero-art::before { content: ""; position: absolute; width: 400px; height: 400px; z-index: -2; border-radius: 50%; background: radial-gradient(circle, #1b222c, #1b222c 55%, transparent 72%); }
.hero-orbit { position: absolute; width: 310px; height: 310px; border: 1px solid #323d4b; border-radius: 50%; z-index: -1; }
.hero-orbit.second { width: 400px; height: 400px; border-style: dashed; border-color: #323d4b; }
.hero-product-card { width: 370px; background: #1b222c; border: 1px solid #323d4b; border-radius: 15px; box-shadow: 0 25px 65px #06090e16, 0 6px 14px #06090e0c; transform: rotate(-5deg); }
.product-card-top { display: flex; align-items: center; justify-content: space-between; padding: 21px; border-bottom: 1px solid #323d4b; }
.product-card-top .brand-wordmark { font-size: 15px; }
.product-card-top .brand-symbol { width: 25px; height: 25px; border-radius: 7px; transform: scale(.85); }
.product-card-top .brand-lockup { gap: 5px; }
.product-card-top > span { font-size: 7px; letter-spacing: 1px; color: #aeb7c5; }
.product-card-body { display: flex; align-items: center; gap: 17px; padding: 32px 24px; }
.game-tile { display: grid; place-items: center; width: 65px; height: 75px; border-radius: 9px; background: linear-gradient(145deg, #101720, #101720); font-size: 25px; color: #d5b77e; font-family: Georgia, serif; box-shadow: 0 5px 13px #06090e20; }
.product-card-body > div { display: flex; flex-direction: column; }
.product-card-body small { font-size: 7px; color: #aeb7c5; letter-spacing: 1px; }
.product-card-body strong { font-size: 22px; color: #e7e6df; letter-spacing: -.7px; margin: 3px 0; font-weight: 600; }
.product-card-body div > span { font-size: 10px; color: #aeb7c5; }
.product-card-body > .ui-icon { margin-left: auto; color: #d5b77e; width: 17px; height: 17px; }
.product-card-bottom { display: flex; justify-content: space-between; align-items: center; padding: 14px 23px; background: #1b222c; border-radius: 0 0 15px 15px; border-top: 1px solid #323d4b; color: #aeb7c5; font-size: 9px; }
.preview-label { color: #d5b77e; background: #1b222c; padding: 3px 8px; border-radius: 4px; }
.hero-floating-note { display: flex; align-items: center; gap: 11px; position: absolute; bottom: 4px; right: 0; padding: 15px 20px; background: #1b222c; box-shadow: 0 12px 35px #06090e10; border: 1px solid #323d4b; border-radius: 10px; transform: rotate(3deg); }
.floating-note-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #d5b77e; background: #1b222c; }
.floating-note-icon .ui-icon { width: 19px; height: 19px; }
.hero-floating-note > div { display: flex; flex-direction: column; gap: 3px; }
.hero-floating-note strong { font-size: 11px; color: #aeb7c5; font-weight: 500; }
.hero-floating-note div > span { font-size: 9px; color: #aeb7c5; }
.hero-decoration { position: absolute; border-radius: 5px; }
.deco-one { width: 23px; height: 23px; background: #b99558; transform: rotate(20deg); top: 1%; right: 16%; box-shadow: inset 0 1px 0 #06090e50; }
.deco-two { width: 12px; height: 12px; background: #1b222c; transform: rotate(-17deg); left: 6%; bottom: 9%; }
.site-services { scroll-margin-top: 35px; background: #1b222c; border-top: 1px solid #323d4b; border-bottom: 1px solid #323d4b; padding: 66px max(45px, calc((100vw - 1170px) / 2)) 75px; }
.site-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.site-section-heading h2 { font-size: 30px; letter-spacing: -1.1px; font-weight: 600; margin: 10px 0 0; }
.site-section-heading h2 > span { color: #d5b77e; }
.site-section-heading > p { font-size: 12px; color: #aeb7c5; margin-bottom: 3px; }
.game-service-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 25px; }
.game-service-card { background: #1b222c; border: 1px solid #323d4b; border-radius: 13px; overflow: hidden; }
.game-card-cover { position: relative; overflow: hidden; min-height: 172px; padding: 27px; display: flex; flex-direction: column; justify-content: center; background: #101720; color: #f0ede5; isolation: isolate; }
.game-card-cover::after { content: ""; position: absolute; width: 200px; height: 200px; border: 1px solid #323d4b17; border-radius: 50%; right: -50px; top: -90px; box-shadow: 0 0 0 30px #06090e06, 0 0 0 60px #06090e04; z-index: -1; }
.game-card-label { font-size: 8px; letter-spacing: 2px; color: #aeb7c5; }
.game-card-cover > strong { font-size: 30px; letter-spacing: -1.2px; font-weight: 500; margin-top: 8px; }
.game-cover-code { position: absolute; right: 31px; bottom: 9px; font-family: Georgia, serif; font-size: 105px; letter-spacing: -10px; color: #aeb7c53b; z-index: -1; }
.game-status { position: absolute; top: 20px; right: 20px; padding: 4px 8px; font-size: 9px; border: 1px solid #323d4b23; border-radius: 5px; color: #d5b77e; background: #1b222c05; }
.game-card-content { padding: 25px 27px; }
.game-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-title-row h3 { font-size: 18px; font-weight: 600; margin: 0; }
.game-title-row > span { font-size: 8px; letter-spacing: 1px; color: #aeb7c5; }
.game-card-content > p { font-size: 12px; color: #aeb7c5; line-height: 1.9; margin: 15px 0 23px; }
.game-details { border-top: 1px solid #323d4b; padding-top: 17px; }
.game-details summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #d5b77e; list-style: none; }
.game-details summary::-webkit-details-marker { display: none; }
.game-details summary .ui-icon { width: 14px; height: 14px; transition: transform .15s; }
.game-details[open] summary .ui-icon { transform: rotate(90deg); }
.game-details ul { list-style: none; padding: 6px 0 0; margin: 11px 0 0; display: grid; gap: 9px; }
.game-details li { display: flex; align-items: center; gap: 9px; color: #aeb7c5; font-size: 11px; }
.game-details li .ui-icon { width: 13px; height: 13px; color: #d5b77e; }
.more-games-card { padding: 35px; border: 1px dashed #323d4b; border-radius: 13px; display: flex; flex-direction: column; justify-content: center; background: #1b222c; }
.more-games-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #323d4b; background: #1b222c; color: #d5b77e; border-radius: 12px; margin-bottom: 25px; }
.more-games-card .site-eyebrow { font-size: 8px; color: #aeb7c5; }
.more-games-card h3 { font-size: 27px; font-weight: 500; letter-spacing: -1px; color: #aeb7c5; line-height: 1.5; margin: 12px 0; }
.more-games-card p { font-size: 12px; color: #aeb7c5; line-height: 1.9; margin: 0; }
.more-games-rule { width: 25px; height: 1px; background: #1b222c; margin: 25px 0 13px; }
.more-games-footer { font-size: 10px; color: #aeb7c5; }
.site-guide { max-width: 1260px; padding: 68px 45px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; scroll-margin-top: 30px; }
.site-guide h2 { font-size: 27px; letter-spacing: -1px; font-weight: 600; margin: 13px 0; }
.site-guide p { font-size: 12px; color: #aeb7c5; line-height: 1.9; margin: 0; }
.site-guide > .secondary-button { font-size: 11px; }
.site-footer { border-top: 1px solid #323d4b; padding-top: 32px; padding-bottom: 33px; }
.site-footer .brand-wordmark { font-size: 18px; color: #aeb7c5; }
.site-footer .brand-symbol { width: 29px; height: 29px; transform: scale(.85); background: #1b222c; }
.site-footer .brand-lockup { gap: 5px; }
.site-footer p { color: #aeb7c5; font-size: 10px; margin: 8px 0 0; }
.site-footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-size: 9px; color: #aeb7c5; }
.site-footer-right a { font-size: 10px; color: #aeb7c5; }
.site-footer-right .ui-icon { width: 11px; height: 11px; margin-left: 5px; }
@media (max-width: 1000px) {
    .site-hero { padding: 55px 35px 65px; gap: 15px; min-height: 530px; }
    .site-hero-art { transform: scale(.85); transform-origin: center right; }
    .site-hero-copy { min-width: 0; }
    .site-hero h1 { font-size: 43px; }
    .site-hero-copy > p { font-size: 12px; }
    .site-header, .site-footer { padding-left: 35px; padding-right: 35px; }
    .site-services { padding-left: 35px; padding-right: 35px; }
    .site-header nav { margin-right: 15px; gap: 22px; }
}
@media (max-width: 760px) {
    .site-header { padding: 21px 23px; gap: 12px; }
    .site-header .brand-wordmark { font-size: 20px; }
    .site-header .brand-symbol { width: 30px; height: 30px; }
    .site-header nav { display: none; }
    .site-admin-link { font-size: 9px; padding: 7px 9px; margin-left: auto; }
    .site-admin-link .ui-icon { width: 11px; height: 11px; }
    .site-hero { grid-template-columns: 1fr; padding: 48px 25px 35px; gap: 18px; }
    .site-hero h1 { font-size: 43px; letter-spacing: -1.8px; margin-top: 19px; }
    .site-hero-copy > p { font-size: 12px; }
    .site-hero-art { height: 295px; transform: scale(.82); transform-origin: center; margin: 0 -25px; }
    .hero-product-card { width: 345px; }
    .hero-floating-note { right: 10px; bottom: -5px; }
    .hero-orbit.second { width: 340px; height: 340px; }
    .site-services { padding: 45px 23px; }
    .site-section-heading { display: block; margin-bottom: 23px; }
    .site-section-heading h2 { font-size: 25px; }
    .site-section-heading > p { font-size: 11px; margin-top: 12px; }
    .game-service-grid { grid-template-columns: 1fr; gap: 18px; }
    .game-card-cover { min-height: 155px; padding: 25px; }
    .game-card-content { padding: 24px; }
    .more-games-card { padding: 28px; }
    .more-games-card h3 { font-size: 23px; }
    .more-games-icon { margin-bottom: 19px; }
    .site-guide { display: block; padding: 45px 25px; }
    .site-guide h2 { font-size: 24px; }
    .site-guide > .secondary-button { margin-top: 23px; }
    .site-guide p { font-size: 11px; }
    .site-footer { padding: 26px 23px; gap: 20px; align-items: flex-start; }
    .site-footer .brand-wordmark { font-size: 17px; }
    .site-footer-right { font-size: 8px; gap: 10px; max-width: 145px; text-align: right; }
}

/* Public language preferences are submitted through a CSRF-protected form. */
.site-language-switch { display: inline-flex; align-items: center; gap: 3px; border: 1px solid #323d4b; border-radius: 7px; padding: 4px; flex-shrink: 0; }
.site-language-switch button { padding: 5px 7px; border: 0; background: transparent; color: #aeb7c5; border-radius: 4px; font-size: 10px; }
.site-language-switch button: hover { color: #d5b77e; background: #1b222c; }
.site-language-switch button.selected { background: #1b222c; color: #d5b77e; }
.site-language-switch > span { height: 11px; width: 1px; background: #1b222c; }
.site-header nav { margin-right: 8px; }
html[lang="zh-CN"] { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif; }
html[lang="zh-CN"] .site-hero h1 { letter-spacing: -1px; }
@media (max-width: 1000px) {
    .site-header { gap: 16px; }
    .site-header nav { gap: 18px; }
}
@media (max-width: 760px) {
    .site-header { flex-wrap: wrap; padding: 20px 23px 15px; gap: 12px; }
    .site-header > a: first-child { margin-right: auto; }
    .site-language-switch { order: 3; margin-left: auto; padding: 2px; }
    .site-language-switch button { padding: 4px 6px; font-size: 10px; }
    .site-admin-link { margin-left: 0; }
}

/* Material accents shared by public pages and the private console. */
:root { background: #0d131b; --sidebar: #0b1119; }
body { background: #0d131b; }
.public-site { background: radial-gradient(ellipse at 85% 8%, #26313e55, transparent 42%), #0d131b; }
.site-services { background: #101720; }
.surface, .stat-card, .hero-product-card, .game-service-card { background: #171f29; box-shadow: 0 12px 35px #00000020; }
.topbar, .login-panel { background: #111923; }
.brand-symbol { background: linear-gradient(145deg, #dbbe85, #94723d); box-shadow: 0 4px 18px #b48b3b18; }
.brand-symbol i { background: #141a23; }
.brand-period { color: #d5b77e; }
.primary-button { color: #141a23; background: linear-gradient(135deg, #d6b77e, #b28c4f); border-color: #ddc18d55; }
.primary-button:hover { background: #e0c38b; box-shadow: 0 5px 20px #ba934324; }
.secondary-button { background: #1a2430; color: #d5c5a6; }
.secondary-button:hover { background: #25303d; color: #f0d59e; }
.brand-light .brand-symbol i { background: #d5b77e; }
.login-visual { background: radial-gradient(ellipse at 15% 50%, #3d342450, transparent 70%), #0b121b; }
.login-visual h1 > span, .site-hero h1 > span { color: #d5b77e; }
.welcome-banner { background: linear-gradient(115deg, #252a2b, #18232f); border-color: #67583b; }
.banner-emblem > .brand-symbol { background: linear-gradient(140deg, #d4b478, #715530); }
.game-card-cover { background: radial-gradient(ellipse at 85% 85%, #5e4a2c70, transparent 65%), linear-gradient(125deg, #101b29, #1d2632); }
.game-card-cover > strong, .game-tile, .game-cover-code { font-family: Georgia, "Malgun Gothic", serif; }
.game-tile { color: #e0bf81; border: 1px solid #806944; background: linear-gradient(145deg, #28303a, #111a25); }
.game-cover-code { color: #d5b77e25; }
.hero-orbit { border-color: #b4965b30; }
.hero-orbit.second { border-color: #b4965b20; }
.site-hero-art::before { background: radial-gradient(circle, #ac864a15, #17233144 55%, transparent 72%); }
.control-core { background: linear-gradient(145deg, #93713e, #302b26); }
.input-wrap input { background: #0e1721; border-color: #3b4655; color: #e7e6df; }
.input-wrap input::placeholder { color: #909cad; }
.input-wrap input:focus { border-color: #c6a369; box-shadow: 0 0 0 3px #c6a36920; }
.input-wrap input[readonly] { background: #141c26; color: #a6b0bf; }
.main-nav > a.active { background: #c6a36916; color: #e2c48e; border-color: #a78a5750; }
.site-language-switch button.selected { background: #c6a36920; color: #e2c48e; }
::selection { background: #a98b5055; color: #fff4dc; }
.site-session-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.site-session-actions form { margin: 0; }
.site-session-actions button { background: transparent; }
.site-session-name { font-size: 11px; color: #aeb7c5; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Publisher selection, game expansion, and public service details. */
[hidden] { display: none !important; }
.catalog-step { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.catalog-step > span { font-size: 10px; color: #d5b77e; border: 1px solid #68583c; border-radius: 50%; display: grid; place-items: center; width: 28px; height: 28px; }
.catalog-step h3 { margin: 0; font-size: 15px; font-weight: 550; }
.catalog-step > p { margin: 0 0 0 auto; color: #98a5b5; font-size: 11px; }
.publisher-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.publisher-counter { display: flex; gap: 9px; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: 1px; margin-right: 12px; }
.publisher-counter strong { color: #ddc18b; font-weight: 500; }
.publisher-counter > span { color: #8190a3; }
.publisher-controls button { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 1px solid #3c495a; border-radius: 50%; background: #151f2a; color: #d1bb94; }
.publisher-controls button:hover { border-color: #b69b68; background: #29313a; }
.publisher-controls button .ui-icon { width: 13px; height: 13px; }
.publisher-controls [data-publisher-prev] .ui-icon { transform: rotate(180deg); }
.publisher-slider { position: relative; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 8px; }
.publisher-slider::-webkit-scrollbar { display: none; }
.publisher-slider::after { content: ""; flex: 0 0 68px; }
.publisher-slide { flex: 0 0 calc(100% - 88px); min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; transition: opacity .3s; opacity: .5; }
.publisher-slide:first-child, .publisher-slide.in-view { opacity: 1; }
.publisher-slider:has(.in-view:not(:first-child)) .publisher-slide:first-child:not(.in-view) { opacity: .5; }
.publisher-brand-select { display: grid; grid-template-columns: minmax(160px, .9fr) 1.1fr; align-items: center; gap: 50px; position: relative; overflow: hidden; width: 100%; min-height: 250px; padding: 38px 54px; border: 1px solid #364556; border-radius: 8px; color: #e7e6df; background: radial-gradient(ellipse at 18% 55%, #39465365, transparent 57%), linear-gradient(110deg, #1b2836, #121d29); text-align: left; }
.publisher-brand-select:hover { border-color: #88754f; }
.publisher-brand-select.selected { border-color: #c6a369; background: radial-gradient(ellipse at 18% 55%, #7a674026, transparent 57%), linear-gradient(110deg, #232f39, #141f2b); }
.publisher-logo { display: flex; align-items: center; justify-content: center; min-height: 140px; padding-right: 35px; border-right: 1px solid #a4b1bf22; }
.publisher-logo img { display: block; width: min(230px, 100%); height: 110px; object-fit: contain; }
.publisher-featured { display: flex; flex-direction: column; align-items: flex-start; z-index: 1; }
.publisher-featured > small { color: #9cabbc; font-size: 9px; letter-spacing: 1.8px; }
.publisher-featured > strong { color: #eae9e4; font-size: 28px; font-weight: 550; letter-spacing: -.7px; margin: 11px 0 7px; }
.publisher-featured > span { font-size: 13px; color: #b1bece; }
.publisher-featured em { display: inline-flex; align-items: center; gap: 25px; margin-top: 25px; font-style: normal; font-size: 11px; color: #d8bc84; }
.publisher-featured em .ui-icon { width: 17px; }
.publisher-slide-number { position: absolute; font-family: Georgia, serif; font-size: 150px; line-height: 1; color: #a1b4c00a; right: 15px; bottom: -9px; }
.publisher-slider-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 0 23px; }
.publisher-slider-footer > span { color: #8e9eb1; font-size: 10px; }
.publisher-pagination { display: flex; gap: 4px; }
.publisher-pagination button { display: flex; align-items: center; padding: 9px 3px; background: none; border: 0; }
.publisher-pagination button span { width: 15px; height: 3px; border-radius: 3px; background: #455263; transition: width .3s, background .3s; }
.publisher-pagination button[aria-current="true"] span { width: 35px; background: #c6a369; }
.publisher-playback { display: flex; align-items: center; gap: 10px; min-width: 0; }
.publisher-playback-dot { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: #77869a; }
.publisher-playback-label { color: #b7c0cd; font-size: 10px; min-width: 58px; }
.publisher-progress { width: 145px; height: 3px; overflow: hidden; border-radius: 3px; background: #35414f; }
.publisher-progress > span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #937847, #edd6a2); }
.publisher-seconds { color: #c9b17e; font-size: 10px; font-variant-numeric: tabular-nums; min-width: 17px; }
.publisher-playback.is-playing .publisher-playback-dot { background: #d5b77e; box-shadow: 0 0 8px #d5b77e55; animation: playback-pulse 1.8s ease-in-out infinite; }
.publisher-playback:not(.is-playing) .publisher-progress > span { opacity: .45; }
.contact-copy .site-eyebrow { flex-wrap: wrap; align-items: baseline; }
.contact-copy .site-eyebrow > [data-contact-game-name] { display: inline; font: inherit; letter-spacing: .5px; white-space: nowrap; }
.service-art-scene { width: 100%; height: 100%; overflow: visible; }
.service-art-core { transform-origin: 280px 226px; animation: service-float 7s ease-in-out infinite; }
.service-art-satellite { animation: service-float 9s ease-in-out infinite reverse; }
.service-art-orbit { transform-origin: 280px 226px; animation: service-orbit 80s linear infinite; }
.service-art-caption { position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; color: #b6a686; font-size: 8px; letter-spacing: 2.2px; white-space: nowrap; }
.service-art-caption > span { width: 22px; height: 1px; background: #c6a36955; }
@keyframes service-float { 50% { transform: translateY(-7px); } }
@keyframes service-orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .service-art-core, .service-art-satellite, .service-art-orbit { animation: none; } }
.publisher-controls [data-publisher-play] span { display: grid; place-items: center; }
.publisher-controls [data-publisher-play] { border-color: #77633f; margin-right: 4px; }
@keyframes playback-pulse { 50% { opacity: .45; } }
@media (max-width: 760px) { .publisher-progress { width: 60px; } .publisher-playback { gap: 7px; } .publisher-playback-label { font-size: 9px; } .publisher-counter { gap: 5px; } }
@media (prefers-reduced-motion: reduce) { .publisher-playback.is-playing .publisher-playback-dot { animation: none; } }
.catalog-contact-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; color: #d5b77e; font-size: 11px; padding: 0; background: none; border: 0; }
.catalog-contact-link .ui-icon { width: 13px; }
.site-header nav > button { font: inherit; color: inherit; background: none; padding: 0; border: 0; }
.game-catalogue .site-contact { max-width: none; margin: 28px 0 0; }
.catalog-publisher-panel:not([hidden]), .catalog-game-content:not([hidden]), [data-catalog-contact]:not([hidden]) { animation: catalog-reveal .3s ease-out both; }
@keyframes catalog-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .catalog-publisher-panel, .catalog-game-content, [data-catalog-contact] { animation: none !important; } }
.catalog-empty { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 35px 20px; border: 1px dashed #334050; border-radius: 9px; color: #a3afbf; font-size: 12px; }
.catalog-empty .ui-icon { color: #baa16f; }
.catalog-publisher-panel { border-top: 1px solid #303b48; padding-top: 26px; margin-top: 12px; }
.catalog-game-list { display: flex; gap: 12px; flex-wrap: wrap; }
.catalog-game-button { display: flex; gap: 15px; align-items: center; min-width: 270px; padding: 18px; color: #e7e6df; border: 1px solid #364253; border-radius: 9px; background: #17212d; text-align: left; }
.catalog-game-button:hover, .catalog-game-button.selected { border-color: #b4955c; background: #242b30; }
.catalog-game-code { display: grid; place-items: center; width: 42px; height: 48px; background: #0e1824; border: 1px solid #66583f; border-radius: 6px; color: #d5b77e; font-family: Georgia, serif; font-size: 20px; flex-shrink: 0; }
.catalog-game-button > span:nth-child(2) { display: flex; flex-direction: column; gap: 5px; }
.catalog-game-button strong { font-size: 14px; font-weight: 550; }
.catalog-game-button small { font-size: 10px; color: #a6b3c2; }
.catalog-game-button > .ui-icon { margin-left: auto; width: 14px; color: #c6a369; }
.catalog-game-hint { margin-top: 18px; color: #a6b3c2; font-size: 12px; }
.catalog-game-content { margin-top: 25px; background: #141e29; border: 1px solid #394556; border-radius: 12px; overflow: hidden; }
.catalog-content-header { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 30px; background: radial-gradient(ellipse at 100% 20%, #74603a25, transparent 60%), #182431; border-bottom: 1px solid #344152; }
.catalog-content-header h3 { font-size: 27px; margin: 9px 0; font-weight: 550; letter-spacing: -.7px; }
.catalog-content-header p { margin: 0; font-size: 12px; color: #b5bfcc; line-height: 1.9; }
.catalog-content-grid { display: grid; grid-template-columns: 1fr 1.2fr; }
.catalog-guide, .catalog-pricing { padding: 29px 30px; }
.catalog-guide { border-right: 1px solid #303c4a; }
.catalog-content-grid h4 { font-size: 16px; font-weight: 550; margin: 11px 0 17px; }
.catalog-guide > p { font-size: 12px; line-height: 2; color: #b0bbc9; white-space: pre-line; }
.catalog-guide > a { display: inline-flex; gap: 6px; align-items: center; color: #d5b77e; font-size: 11px; margin-top: 16px; }
.catalog-guide > a .ui-icon { width: 13px; }
.catalog-price-pending { padding: 20px; border: 1px dashed #46505a; border-radius: 8px; color: #b2bdca; }
.catalog-price-pending > .ui-icon { color: #c6a369; }
.catalog-price-pending p { font-size: 12px; margin: 10px 0 4px; }
.catalog-price-pending span { font-size: 11px; color: #98a6b8; }
.catalog-price-list { display: grid; gap: 12px; }
.catalog-price { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; border: 1px solid #46503f; background: #2a2d2533; padding: 18px; border-radius: 8px; }
.catalog-price > div { display: flex; flex-direction: column; gap: 5px; }
.catalog-price > div strong { font-size: 13px; font-weight: 550; }
.catalog-price > div span { font-size: 11px; color: #a9b5c4; }
.catalog-price-amount { font-size: 24px; color: #dfc18a; font-weight: 550; }
.catalog-price-amount small { font-size: 10px; color: #b5ac95; margin-left: 7px; }
.catalog-price > p { flex-basis: 100%; margin: 0; color: #b1bac5; font-size: 11px; }

/* WeChat contact uses the unmodified supplied QR on a white quiet zone. */
.site-contact { max-width: 1170px; margin: 0 auto 65px; padding: 50px 55px; display: flex; align-items: center; justify-content: space-between; gap: 40px; background: linear-gradient(120deg, #1d2935, #141e28); border: 1px solid #4b4b3c; border-radius: 13px; scroll-margin-top: 25px; }
.contact-copy h2 { font-size: 32px; font-weight: 550; line-height: 1.5; letter-spacing: -1px; margin: 17px 0; }
.contact-copy h2 > span { color: #d5b77e; }
.contact-copy > p { font-size: 12px; color: #aebdce; line-height: 1.95; }
.wechat-id { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; padding-top: 19px; }
.wechat-id > span { color: #aeb8c6; font-size: 11px; }
.wechat-id strong { font-size: 20px; color: #e2c48e; font-weight: 550; user-select: all; }
.wechat-id .secondary-button { font-size: 11px; min-height: 33px; padding: 5px 11px; }
.contact-feedback { display: block; min-height: 24px; font-size: 11px; color: #acd3b7; margin-top: 10px; }
.wechat-qr-card { margin: 0; flex: 0 0 238px; background: #111b25; border: 1px solid #3d4958; border-radius: 11px; padding: 21px; text-align: center; }
.wechat-qr-card > .section-label { color: #c9b186; font-size: 9px; margin-bottom: 15px; }
.wechat-qr-open { display: block; width: 100%; padding: 13px; background: #fff; border: 0; border-radius: 5px; }
.wechat-qr-open img { display: block; width: 100%; height: auto; }
.wechat-qr-card figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 15px; }
.wechat-qr-card figcaption strong { font-size: 13px; font-weight: 550; }
.wechat-qr-card figcaption span { color: #a7b5c5; font-size: 10px; }
.wechat-dialog { width: min(92vw, 480px); max-height: 90dvh; overflow-y: auto; padding: 24px; border: 1px solid #685b44; border-radius: 13px; background: #15202c; color: #e7e6df; }
.wechat-dialog::backdrop { background: #05090edb; }
.wechat-dialog form { display: flex; justify-content: flex-end; }
.wechat-dialog h2 { font-size: 20px; font-weight: 550; color: #d5b77e; }
.wechat-dialog > img { width: 100%; height: auto; padding: 20px; background: #fff; border-radius: 5px; }
.wechat-dialog > p { font-size: 12px; color: #b4bfcd; }

/* Admin price editor. */
.price-editor, .price-records { margin-bottom: 24px; }
.price-editor-form { padding: 0 25px 25px; }
.price-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field select { min-height: 48px; background: #0e1721; color: #e7e6df; padding: 0 13px; border: 1px solid #3b4655; border-radius: 8px; width: 100%; font: inherit; font-size: 13px; }
.field select:focus { outline: 2px solid #b4955c; outline-offset: 2px; }
.price-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; padding-top: 22px; border-top: 1px solid #323d4b; }
.price-editor-actions > div { display: flex; gap: 10px; }
.price-visibility { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #b6c0cc; }
.price-visibility input { accent-color: #c6a369; width: 16px; height: 16px; }
.price-empty { margin: 0; padding: 0 25px 30px; font-size: 12px; color: #abb8c8; }
@media (max-width: 1000px) { .site-contact { margin-left: 35px; margin-right: 35px; padding: 35px; } }
@media (max-width: 760px) {
    .catalog-step > p { display: none; }
    .publisher-slide { flex-basis: calc(100% - 32px); }
    .publisher-slider::after { flex-basis: 12px; }
    .publisher-brand-select { grid-template-columns: 1fr; gap: 18px; padding: 28px; min-height: 310px; }
    .publisher-logo { justify-content: flex-start; min-height: 70px; padding: 0; border-right: 0; }
    .publisher-logo img { width: 150px; height: 75px; }
    .publisher-featured > strong { font-size: 22px; margin: 7px 0 4px; }
    .publisher-featured em { margin-top: 18px; }
    .publisher-counter { margin-right: 5px; }
    .publisher-controls button { width: 30px; height: 30px; }
    .publisher-controls { gap: 5px; }
    .catalog-step { gap: 8px; }
    .catalog-step h3 { font-size: 13px; }
    .catalog-game-list { display: grid; grid-template-columns: 1fr; }
    .catalog-game-button { min-width: 0; width: 100%; }
    .catalog-content-header { flex-direction: column; align-items: flex-start; padding: 23px; gap: 18px; }
    .catalog-content-header h3 { font-size: 24px; }
    .catalog-content-grid { grid-template-columns: 1fr; }
    .catalog-guide, .catalog-pricing { padding: 24px; }
    .catalog-guide { border-right: 0; border-bottom: 1px solid #303c4a; }
    .site-contact { margin: 0 23px 40px; padding: 28px 24px; flex-direction: column; align-items: stretch; gap: 25px; }
    .contact-copy h2 { font-size: 28px; }
    .wechat-qr-card { flex-basis: auto; align-self: center; width: 238px; }
    .price-editor-grid { grid-template-columns: 1fr; }
    .price-editor-actions { align-items: flex-start; flex-direction: column; }
    .price-editor-actions > div { width: 100%; justify-content: flex-end; }
}
