:root {
  color-scheme: dark;
  --night: #0b141c;
  --night-deep: #081018;
  --surface: #14232d;
  --surface-raised: #1b2d38;
  --line: #304650;
  --ink: #f0f7f5;
  --muted: #9bb0b7;
  --mint: #9ee0cf;
  --mint-deep: #6ac9b4;
  --gold: #d8ae75;
  --danger: #f0a4a0;
}
* { box-sizing: border-box; }
html { background: var(--night); color: var(--ink); font-family: 'Segoe UI', Arial, sans-serif; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(circle at 18% 40%, #18343e 0, transparent 33%), linear-gradient(145deg, var(--night), var(--night-deep)); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mint); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }

.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 80px); border-bottom: 1px solid rgba(158, 224, 207, .13); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: 'Trebuchet MS', Arial, sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.055em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(158, 224, 207, .55); border-radius: 11px; color: var(--mint); font-size: 25px; line-height: 1; box-shadow: inset 0 0 18px rgba(158, 224, 207, .12); }
.header-link { display: inline-flex; align-items: center; gap: 10px; color: #d4e3e3; font-size: 14px; font-weight: 600; }
.header-link span { color: var(--mint); font-size: 20px; }

.buyer-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(370px, .82fr); align-items: center; gap: clamp(48px, 8vw, 140px); width: min(1320px, 100%); margin: auto; padding: 74px clamp(24px, 5vw, 80px) 94px; }
.buyer-main::before { content: ''; position: absolute; left: -260px; top: 22%; width: 460px; height: 460px; border: 1px solid rgba(158, 224, 207, .08); border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 82px rgba(158, 224, 207, .025), 0 0 0 166px rgba(158, 224, 207, .015); }
.intro { position: relative; max-width: 620px; }
.signal { display: flex; align-items: flex-end; gap: 6px; height: 42px; margin-bottom: 42px; }
.signal span { width: 8px; background: var(--mint); border-radius: 8px; box-shadow: 0 0 16px rgba(158, 224, 207, .24); }
.signal span:nth-child(1) { height: 17px; opacity: .5; }
.signal span:nth-child(2) { height: 29px; opacity: .8; }
.signal span:nth-child(3) { height: 42px; }
.kicker { margin: 0 0 23px; color: var(--mint); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.intro h1, .admin-heading h1 { margin: 0 0 32px; font-family: 'Trebuchet MS', Arial, sans-serif; font-size: clamp(60px, 7.7vw, 106px); font-weight: 700; line-height: .97; letter-spacing: -.08em; text-wrap: balance; }
.intro > p:not(.kicker), .admin-heading > p:not(.kicker) { max-width: 500px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.intro-foot { display: flex; align-items: center; gap: 10px; margin-top: 46px; color: #bfd0d0; font-size: 13px; }
.status-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(158, 224, 207, .1); }

.lookup-panel, .admin-card { position: relative; background: linear-gradient(150deg, #1a2c36, var(--surface)); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 26px 80px rgba(0, 0, 0, .28); }
.lookup-panel { padding: clamp(28px, 3.5vw, 48px); overflow: hidden; }
.lookup-panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--mint), transparent); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.panel-caption { margin: 0 0 8px; color: var(--mint); font-size: 12px; font-weight: 700; }
.panel-head h2, .admin-card h2 { margin: 0; font-family: 'Trebuchet MS', Arial, sans-serif; font-size: 25px; letter-spacing: -.045em; }
.panel-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid #4a706f; border-radius: 50%; color: var(--mint); font-size: 24px; }
form { display: flex; flex-direction: column; }
label { margin: 0 0 10px; color: #d9e7e6; font-size: 13px; font-weight: 700; }
input, select { width: 100%; height: 54px; margin-bottom: 24px; padding: 0 15px; border: 1px solid #3a535e; border-radius: 9px; background: #10202a; color: var(--ink); outline: none; }
input::placeholder { color: #78909a; }
input:focus, select:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(158, 224, 207, .12); }
form > button, .secondary { min-height: 54px; padding: 0 20px; border: 0; border-radius: 9px; background: var(--mint); color: #0b2024; font-weight: 800; }
form > button:hover, .secondary:hover { background: #b6f1e2; }
form > button span { float: right; font-size: 19px; }
.panel-note { margin: 25px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.result { display: none; }
.result.visible, .result.loading { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; padding: 20px; border: 1px solid #3c7068; border-radius: 10px; background: rgba(74, 145, 127, .15); line-height: 1.5; }
.result strong { color: var(--mint); font-family: 'Trebuchet MS', Arial, sans-serif; font-size: 44px; letter-spacing: .14em; }
.result span { font-size: 13px; font-weight: 700; }
.result small { color: var(--muted); font-size: 12px; }
.result.error { border-color: #865352; background: rgba(145, 66, 65, .14); color: #f4c0bc; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 23px clamp(24px, 5vw, 80px); border-top: 1px solid rgba(158, 224, 207, .13); color: #8299a2; font-size: 12px; }

.admin-main { flex: 1; width: min(1160px, 100%); margin: 0 auto; padding: 66px 24px 100px; }
.admin-heading { margin-bottom: 42px; }
.admin-heading h1 { margin-bottom: 20px; font-size: clamp(48px, 6vw, 76px); }
.admin-heading > p:not(.kicker) { max-width: 700px; font-size: 16px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.admin-card { padding: 32px; }
.admin-card h2 { margin-bottom: 10px; }
.admin-card > p, .list-title p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.admin-card form { margin-top: 28px; }
.admin-card form > button { align-self: flex-start; min-width: 180px; }
.admin-card.narrow { max-width: 480px; }
.address-input { display: flex; align-items: center; margin-bottom: 24px; overflow: hidden; border: 1px solid #3a535e; border-radius: 9px; background: #10202a; }
.address-input:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(158, 224, 207, .12); }
.address-input input { min-width: 0; margin: 0; border: 0; box-shadow: none; }
.address-input span { padding: 0 14px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.message { min-height: 18px; margin: 14px 0 0; color: var(--mint); font-size: 13px; }
.message.error { color: var(--danger); }
.key-display { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; padding: 18px; border: 1px solid #3c7068; border-radius: 10px; background: rgba(74, 145, 127, .15); }
.key-display strong { font-size: 13px; }
.key-display code { color: var(--mint); font-size: 15px; overflow-wrap: anywhere; }
.key-display .secondary { align-self: flex-start; min-height: 38px; font-size: 13px; }
.key-display p { margin: 0; color: var(--muted); font-size: 12px; }
.list-card { margin-top: 22px; }
.list-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.list-title p { margin: 0 0 10px; }
.count { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; background: #244b4b; color: var(--mint); font-size: 14px; font-weight: 700; }
.alias-row { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.alias-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.alias-info strong { font-size: 15px; overflow-wrap: anywhere; }
.alias-info span { color: var(--muted); font-size: 12px; }
.row-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.text-button { padding: 7px 0; border: 0; background: none; color: var(--mint); font-size: 13px; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.text-button.danger { color: var(--danger); }
.empty { padding: 14px 0; color: var(--muted); font-size: 14px; }
@media (max-width: 880px) { .buyer-main { grid-template-columns: 1fr; max-width: 660px; padding-top: 56px; } .intro h1 { font-size: clamp(60px, 11vw, 84px); } .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .site-header { min-height: 72px; } .buyer-main { gap: 40px; padding-bottom: 64px; } .buyer-main::before { display: none; } .intro h1 { font-size: 58px; } .intro > p:not(.kicker) { font-size: 16px; } .intro-foot { margin-top: 28px; } .lookup-panel, .admin-card { padding: 24px; } .admin-main { padding-top: 44px; } .alias-row { flex-direction: column; gap: 8px; } footer { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

.inbox-address { text-align: left; font-size: 15px; overflow-wrap: anywhere; }
#inbox { scroll-margin-top: 24px; }
#inbox-address { overflow-wrap: anywhere; }
.inbox-layout { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr); gap: 24px; margin-top: 20px; }
.message-list { max-height: 650px; overflow-y: auto; }
.mail-row { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 18px; text-align: left; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 10px; background: var(--night); color: var(--ink); overflow-wrap: anywhere; }
.mail-row:hover, .mail-row[aria-pressed="true"] { border-color: var(--mint); background: var(--surface-raised); }
.mail-row.unread { border-left: 4px solid var(--mint); }
.mail-row span, .mail-row small { color: var(--muted); font-size: 12px; }
.mail-row:not(.unread) strong { font-weight: 400; }
.message-detail { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--night); }
.message-detail h3 { margin-top: 0; overflow-wrap: anywhere; }
.mail-meta { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; line-height: 1.7; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; }
.mail-body a { color: var(--mint); text-decoration: underline; }
button:disabled { opacity: .5; cursor: wait; }
@media (max-width: 760px) { .inbox-layout { grid-template-columns: 1fr; } .message-list { max-height: 350px; } }

.accounts-section { margin-bottom: 22px; }
.accounts-section .list-title { flex-wrap: wrap; }
.accounts-section .secondary { min-height: 44px; }
.account-fields, .account-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; }
.account-fields label, .account-filters label { display: block; }
.account-filters { margin-top: 26px; }
#account-form { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--night); }
#account-form h3 { margin: 0 0 24px; }
#account-form textarea { width: 100%; padding: 14px; margin-bottom: 24px; border: 1px solid #3a535e; border-radius: 9px; background: #10202a; color: var(--ink); font: inherit; resize: vertical; }
#account-form textarea:focus { outline-color: var(--mint); }
.checkbox-label { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; cursor: pointer; }
.checkbox-label input { width: 20px; height: 20px; margin: 0; accent-color: var(--mint); }
.account-password-field { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.account-password-field input { margin: 0; min-width: 0; }
.account-password-field button { flex: none; }
.account-state { color: var(--gold) !important; }
.account-state.sold { color: var(--mint) !important; }
.account-row .alias-info span { overflow-wrap: anywhere; }
@media (max-width: 650px) { .account-fields, .account-filters { grid-template-columns: minmax(0, 1fr); } .account-row { flex-direction: column; } #account-form { padding: 16px; } }

/* Admin workspace */
body[data-page="admin"] { background: #0c171f; }
body[data-page="admin"] .site-header { min-height: 74px; padding: 0 32px; background: #0a131b; }
.admin-label { margin-left: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font: 600 11px 'Segoe UI', sans-serif; letter-spacing: .02em; }
body[data-page="admin"] .admin-main { width: min(1800px, 100%); padding: 26px 32px 48px; }
#login-intro { padding-top: 40px; max-width: 650px; }
#login-intro h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.055em; }
.admin-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 36px; align-items: start; }
.admin-sidebar { position: sticky; top: 26px; display: flex; flex-direction: column; min-height: calc(100vh - 150px); padding: 20px 16px; border: 1px solid #253943; border-radius: 14px; background: #101f29; }
.sidebar-caption { margin: 0 12px 18px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 8px; }
.admin-nav-link { display: flex; align-items: center; gap: 10px; padding: 13px 12px; border: 1px solid transparent; border-radius: 8px; color: #adbec4; font-size: 13px; font-weight: 600; }
.admin-nav-link span { color: var(--muted); font-size: 19px; }
.admin-nav-link:hover { background: #192e38; }
.admin-nav-link[aria-current="page"] { border-color: #3b6c64; background: #21443f; color: #c2f4e5; }
.admin-nav-link[aria-current="page"] span { color: var(--mint); }
.sidebar-bottom { margin-top: auto; padding-top: 48px; }
.sidebar-bottom > p { margin: 20px 12px 0; color: #6e8993; font-size: 11px; }
.admin-workspace, .admin-view { min-width: 0; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 10px 0 28px; }
.workspace-heading .kicker { margin: 0 0 10px; font-size: 10px; letter-spacing: .12em; }
.workspace-heading h1 { margin: 0 0 10px; font: 700 clamp(27px, 3vw, 37px)/1.15 'Trebuchet MS', sans-serif; letter-spacing: -.045em; }
.workspace-heading p:not(.kicker) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.workspace-heading > button { flex: none; min-height: 44px; font-size: 13px; }
body[data-page="admin"] .admin-card { border-radius: 13px; padding: 24px; box-shadow: none; background: #12232e; border-color: #2a3e49; }
body[data-page="admin"] .admin-card h2 { font-size: 20px; letter-spacing: -.025em; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric { display: flex; flex-direction: column; gap: 15px; padding: 20px; border: 1px solid #2b414b; border-radius: 12px; background: #132630; }
.metric span { color: #9cb3bb; font-size: 12px; }
.metric strong { font-size: 28px; font-weight: 650; letter-spacing: -.035em; overflow-wrap: anywhere; }
.metric:last-child strong { color: var(--mint); }
.accounts-section { margin: 0; }
.accounts-section .account-filters { grid-template-columns: minmax(0, 1fr) 210px; margin: 0; gap: 20px; }
body[data-page="admin"] input, body[data-page="admin"] select { height: 44px; font-size: 13px; margin-bottom: 20px; }
.account-table-scroll { overflow-x: auto; }
.account-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.account-table th { padding: 14px 12px; border-bottom: 1px solid var(--line); color: #94acb5; font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.account-table td { padding: 21px 12px; border-bottom: 1px solid #263b46; vertical-align: middle; }
.account-table td:first-child, .account-table th:first-child { padding-left: 0; }
.account-table td:last-child, .account-table th:last-child { padding-right: 0; }
.account-table tr:last-child td { border-bottom: 0; }
.account-table .alias-info { max-width: 290px; gap: 7px; }
.account-table .alias-info strong { font-size: 14px; }
.account-table .alias-info span { line-height: 1.6; }
.account-table .row-actions { gap: 6px; align-items: flex-start; flex-direction: column; }
.account-table .text-button { font-size: 11px; padding: 4px 0; white-space: nowrap; }
.account-table .price-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-table .empty { text-align: center; padding: 48px 16px; }
.status-badge { display: inline-flex; padding: 5px 8px; border-radius: 5px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.status-badge.is-available { color: #e2c18b; background: #473d29; }
.status-badge.is-sold { color: #b6e8d9; background: #21443d; }
.mail-workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.mail-reading-panel { min-width: 0; }
body[data-page="admin"] .address-panel { padding: 20px 14px; }
.address-panel .list-title { padding: 0 6px; align-items: center; margin-bottom: 20px; }
.address-panel #alias-search { margin-bottom: 10px; }
.address-panel .count { min-width: 28px; height: 28px; font-size: 12px; }
.address-panel .alias-list { max-height: 640px; overflow-y: auto; }
.address-panel .alias-row { display: block; padding: 14px 12px; border: 1px solid transparent; border-bottom-color: #273e49; border-radius: 7px; }
.address-panel .alias-row.selected { border-color: #49776c; background: #1d3b38; }
.address-panel .inbox-address { padding: 0; font-size: 12px; line-height: 1.6; }
.address-panel .alias-info span { font-size: 10px; }
.address-actions { margin-top: 10px; font-size: 10px; color: var(--muted); }
.address-actions summary { cursor: pointer; width: fit-content; }
.address-actions .text-button { display: block; margin-top: 7px; font-size: 10px; }
.mail-placeholder { min-height: 460px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.placeholder-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 18px; background: #1c393b; color: var(--mint); font-size: 32px; }
.mail-placeholder p { max-width: 310px; margin: 0; }
#inbox .kicker { font-size: 10px; margin-bottom: 10px; }
#inbox-address { font-size: 12px; margin-bottom: 0; }
#inbox .inbox-layout { grid-template-columns: minmax(180px, .75fr) minmax(0, 1.25fr); gap: 16px; }
#inbox .mail-row { padding: 14px; font-size: 12px; }
#inbox .mail-row small { font-size: 10px; }
#inbox .message-detail { padding: 18px; }
#inbox .mail-body { font-size: 13px; }
#inbox .list-title { flex-wrap: wrap; }
.settings-card { max-width: 560px; }
.admin-dialog { width: min(740px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #3c5965; border-radius: 16px; background: #12232e; color: var(--ink); box-shadow: 0 28px 100px #0009; }
.admin-dialog::backdrop { background: #030a10b8; backdrop-filter: blur(5px); }
body:has(.admin-dialog[open]) { overflow: hidden; }
.admin-dialog #account-form { padding: 28px; margin: 0; border: 0; background: transparent; border-radius: 0; }
.editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.editor-heading .kicker { font-size: 10px; margin: 0 0 8px; }
.editor-heading h2 { font-size: 25px; margin: 0; letter-spacing: -.035em; }
.icon-button { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); font-size: 24px; }
.icon-button:hover { color: var(--ink); border-color: var(--mint); }
.form-section-title { margin: 2px 0 20px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; }
body[data-page="admin"] .checkbox-label input { width: 18px; height: 18px; margin: 0; }
body[data-page="admin"] .account-password-field input { margin: 0; }
.address-dialog { max-width: 480px; padding: 28px; }
.address-dialog > p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.address-dialog form { margin-top: 24px; }
.address-dialog .address-input input { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1350px) { .admin-shell { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; } .mail-workspace { grid-template-columns: 235px minmax(0, 1fr); } #inbox .inbox-layout { grid-template-columns: 1fr; } #inbox .message-list { max-height: 290px; } .account-table { min-width: 730px; } }
@media (max-width: 1100px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .workspace-heading { align-items: flex-start; flex-wrap: wrap; } .admin-sidebar { padding: 16px 10px; } }
@media (max-width: 900px) { .admin-shell { grid-template-columns: minmax(0, 1fr); gap: 26px; } .admin-sidebar { position: static; min-height: 0; padding: 12px; } .admin-sidebar nav { flex-direction: row; } .admin-sidebar nav > a { flex: 1; } .sidebar-caption, .sidebar-bottom > p { display: none; } .sidebar-bottom { padding-top: 0; margin-top: 6px; } .sidebar-bottom a { font-size: 11px; padding: 6px 12px; } .sidebar-bottom a span { font-size: 15px; } .mail-workspace { grid-template-columns: 240px minmax(0, 1fr); } body[data-page="admin"] .admin-main { padding: 20px; } }
@media (max-width: 650px) { body[data-page="admin"] .site-header { padding: 0 18px; min-height: 68px; } body[data-page="admin"] .brand { font-size: 19px; gap: 8px; } body[data-page="admin"] .header-link { font-size: 11px; } .admin-label { display: none; } body[data-page="admin"] .admin-main { padding: 16px; } .workspace-heading { margin-top: 0; margin-bottom: 22px; } .workspace-heading h1 { font-size: 29px; } .workspace-heading p:not(.kicker) { font-size: 13px; } .admin-nav-link { font-size: 12px; padding: 12px 9px; gap: 8px; } .metric { padding: 16px; gap: 12px; } .metric span { font-size: 11px; } .metric strong { font-size: 24px; } .metric-grid { gap: 10px; margin-bottom: 18px; } body[data-page="admin"] .admin-card { padding: 18px; } .accounts-section .account-filters { grid-template-columns: minmax(0, 1fr); gap: 0; } .account-table { min-width: 0; display: block; } .account-table thead { display: none; } .account-table tbody { display: block; } .account-table .account-row { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); } .account-table .account-row:last-child { border-bottom: 0; } .account-table .account-row td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; border: 0; font-size: 12px; } .account-table .account-row td:first-child { display: block; padding: 0 0 16px; } .account-table .account-row td:not(:first-child)::before { content: attr(data-label); color: var(--muted); font-size: 11px; } .account-table .alias-info { max-width: 100%; } .account-table .row-actions { flex-direction: row; gap: 18px; } .account-table td.empty { display: block; line-height: 1.8; } .mail-workspace { grid-template-columns: minmax(0, 1fr); } .address-panel .alias-list { max-height: 275px; } .mail-placeholder { min-height: 280px; } .admin-dialog #account-form { padding: 20px; } .address-dialog { padding: 22px; } }

.fee-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px; margin: 0 0 14px; border: 1px solid #3a6159; border-radius: 10px; background: #16342f; }
.fee-preview > div { display: flex; flex-direction: column; gap: 9px; }
.fee-preview span { color: #b3cbc7; font-size: 11px; }
.fee-preview strong { font-size: 19px; overflow-wrap: anywhere; }
.fee-preview .net-preview strong { color: var(--mint); }
.fee-note { margin: 8px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.fee-note a { color: var(--mint); text-decoration: underline; }
.metric small { font-size: 11px; color: var(--muted); }
.price-breakdown { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.price-breakdown small { font-size: 10px; color: var(--muted); }
.price-breakdown strong { color: var(--mint); font-size: 13px; }
@media (max-width: 650px) { .fee-preview { grid-template-columns: minmax(0, 1fr); } .fee-preview > div { flex-direction: row; justify-content: space-between; align-items: center; gap: 14px; } .fee-preview strong { font-size: 17px; white-space: nowrap; } .price-breakdown { text-align: right; } }

/* Use the full browser width, with navigation fixed against the left edge. */
body[data-page="admin"] { --admin-sidebar-width: 232px; }
body[data-page="admin"] .site-header { position: sticky; top: 0; z-index: 20; height: 74px; }
body[data-page="admin"] .admin-main { width: 100%; max-width: none; margin: 0; padding: 0; }
body[data-page="admin"] .admin-main:has(#admin-content[hidden]) { padding: 32px; }
.admin-shell { grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr); gap: 0; min-height: calc(100dvh - 74px); }
.admin-sidebar { position: fixed; inset: 74px auto 0 0; z-index: 10; width: var(--admin-sidebar-width); min-height: 0; overflow-y: auto; padding: 26px 16px; border: 0; border-right: 1px solid #253943; border-radius: 0; }
.admin-workspace { grid-column: 2; padding: 28px 32px 40px; }
@media (min-width: 901px) {
  .mail-workspace > .address-panel, .mail-placeholder, #inbox { min-height: max(360px, calc(100dvh - 250px)); }
}
@media (min-width: 901px) and (max-width: 1350px) {
  body[data-page="admin"] { --admin-sidebar-width: 216px; }
  .admin-workspace { padding: 24px; }
}
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .admin-sidebar { position: static; inset: auto; width: 100%; padding: 12px 20px; border-right: 0; border-bottom: 1px solid #253943; }
  .admin-workspace { grid-column: 1; padding: 24px 20px 40px; }
}
@media (max-width: 650px) {
  body[data-page="admin"] .site-header { height: 68px; }
  .admin-shell { min-height: calc(100dvh - 68px); }
  .admin-sidebar { padding: 12px 16px; }
  .admin-workspace { padding: 24px 16px 32px; }
  body[data-page="admin"] .admin-main:has(#admin-content[hidden]) { padding: 16px; }
}

.outline-button { min-height: 44px; padding: 10px 16px; border: 1px solid #4d726e; border-radius: 8px; background: transparent; color: var(--mint); font-size: 12px; font-weight: 600; }
.outline-button:hover { background: #1c393b; }
.logout-button { width: 100%; background: transparent; text-align: left; margin-top: 8px; cursor: pointer; }
.sale-meta { display: block; max-width: 180px; margin-top: 9px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; line-height: 1.6; }
.status-badge.is-reserved { color: #ded1ff; background: #40335d; }
.status-badge.is-dispute { color: #ffc8bd; background: #58372f; }
.status-badge.is-available { color: #e2c18b; background: #473d29; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.report-grid > section { min-width: 0; }
.report-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; margin-top: 22px; }
.report-table th { color: var(--muted); font-size: 11px; padding: 12px; border-bottom: 1px solid var(--line); }
.report-table td { padding: 16px 12px; border-bottom: 1px solid #263b46; white-space: nowrap; }
.report-chart { margin-top: 24px; display: grid; gap: 12px; }
.report-bar { display: grid; grid-template-columns: 112px minmax(40px, 1fr) 95px; align-items: center; gap: 12px; font-size: 11px; }
.report-bar span { color: var(--muted); }
.report-bar strong { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.report-bar progress { width: 100%; height: 9px; accent-color: var(--mint); }
.import-content { padding: 28px; }
.import-content > p, #import-preview p { font-size: 12px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.import-content > label { display: block; margin-top: 24px; }
#import-file { height: auto; padding: 12px; }
#import-preview { max-height: 260px; overflow-y: auto; margin: 18px 0; }
#two-factor-qr { display: block; max-width: 100%; height: auto; border-radius: 8px; margin-bottom: 24px; }
#recovery-codes-panel { padding: 18px; margin-top: 20px; border: 1px solid #49776c; border-radius: 10px; }
#recovery-codes-panel p { font-size: 12px; line-height: 1.6; color: var(--muted); }
#recovery-codes { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; color: var(--mint); }
.backup-files { display: flex; flex-direction: column; gap: 12px; }
.backup-link { color: var(--mint); font-size: 11px; overflow-wrap: anywhere; }
@media (max-width: 1200px) { .report-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .admin-sidebar nav { flex-wrap: wrap; } .admin-sidebar nav > a { flex: 1 1 150px; } .logout-button { width: auto; font-size: 11px; padding: 6px 12px; } .sidebar-bottom { display: flex; flex-wrap: wrap; align-items: center; } }
@media (max-width: 650px) { .report-bar { grid-template-columns: 95px minmax(20px, 1fr) 84px; gap: 7px; font-size: 10px; } .report-table { min-width: 560px; } .import-content { padding: 20px; } }
.backup-key-details, .csv-help { margin-top: 24px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.backup-key-details summary, .csv-help summary { cursor: pointer; color: var(--mint); }
.backup-key-details form > button { min-width: 0; max-width: 100%; height: auto; padding: 12px 16px; font-size: 12px; }

.lookup-guide { margin: -10px 0 28px; padding: 18px 20px; border: 1px solid #345851; border-radius: 10px; background: rgba(74, 145, 127, .09); }
.lookup-guide h3 { margin: 0 0 12px; color: var(--ink); font-size: 14px; }
.lookup-guide ol { margin: 0; padding-left: 21px; color: #b7cbcD; font-size: 13px; line-height: 1.6; }
.lookup-guide li + li { margin-top: 8px; }
.lookup-guide li::marker { color: var(--mint); font-weight: 700; }

/* Riot account access: an original dark-blue and antique-gold game-inspired theme. */
body[data-page="buyer"] { --mint: #c8aa6e; --gold: #e6cd92; --ink: #f0e8d6; --muted: #9baeb7; --line: #354750; background: radial-gradient(ellipse at 18% 45%, #103341 0, transparent 48%), radial-gradient(ellipse at 90% 0%, #102935 0, transparent 38%), #07121c; overflow-x: clip; }
body[data-page="buyer"] .site-header { min-height: 88px; border-bottom: 1px solid #725f393d; background: #050d15b8; }
body[data-page="buyer"] .brand { color: #e0c58a; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; font-size: 23px; letter-spacing: .08em; }
body[data-page="buyer"] .brand-mark { width: 35px; height: 35px; border-radius: 0; border-color: #917644; box-shadow: inset 0 0 20px #c8aa6e14; font-family: Georgia, serif; }
.buyer-header-caption { color: #9eaeaf; font-size: 12px; text-transform: none; letter-spacing: .04em; }
.buyer-header-caption span { color: #8a7145; margin: 0 15px; }
body[data-page="buyer"] .buyer-main { width: min(1480px, 100%); grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(40px, 5vw, 80px); padding: 64px clamp(24px, 5vw, 72px) 72px; overflow: clip; }
body[data-page="buyer"] .buyer-main::before { display: none; }
body[data-page="buyer"] .intro { isolation: isolate; max-width: none; padding: 28px 0; }
.rift-art { position: absolute; width: 720px; max-width: none; top: 48%; left: 37%; transform: translate(-50%, -50%); opacity: .18; z-index: -1; pointer-events: none; }
.rift-art svg { display: block; width: 100%; }
body[data-page="buyer"] .intro .kicker { font-size: 12px; letter-spacing: .09em; margin-bottom: 26px; line-height: 1.8; }
body[data-page="buyer"] .intro .kicker span { margin-right: 8px; font-size: 8px; }
body[data-page="buyer"] .intro h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(48px, 5.5vw, 76px); font-weight: 400; line-height: 1.1; letter-spacing: -.045em; margin-bottom: 30px; text-shadow: 0 4px 25px #020a11; text-wrap: initial; }
body[data-page="buyer"] .intro h1 span { color: #d3b577; }
body[data-page="buyer"] .intro > p:not(.kicker) { max-width: 500px; color: #d2dee3; font-size: 18px; line-height: 1.8; text-shadow: 0 2px 12px #06121c; }
.game-tags { display: flex; align-items: center; gap: 24px; margin-top: 32px; color: #d7c495; font-family: Georgia, serif; font-size: 14px; letter-spacing: .04em; text-transform: none; }
.game-tags span + span { padding-left: 24px; border-left: 1px solid #7b68437a; font-family: 'Segoe UI', Arial, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .19em; }
body[data-page="buyer"] .intro-foot { margin-top: 46px; color: #b8ccd5; font-size: 13px; letter-spacing: .015em; line-height: 1.9; }
body[data-page="buyer"] .status-dot { width: 5px; height: 5px; background: #81b8bb; box-shadow: 0 0 0 4px #4b9da91c, 0 0 15px #4b9da930; }
.foot-divider { display: inline-block; margin: 0 9px; color: #8a7145; }
body[data-page="buyer"] .lookup-panel { padding: 34px; background: linear-gradient(155deg, #102833ed, #091823fa 80%); border: 1px solid #776344b3; border-radius: 2px; box-shadow: 0 28px 90px #0005, 0 0 0 5px #07121c99, 0 0 0 6px #7d68421f; }
body[data-page="buyer"] .lookup-panel::before { left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #d1b778, transparent); }
body[data-page="buyer"] .panel-head { margin-bottom: 26px; gap: 12px; }
body[data-page="buyer"] .panel-caption { color: #dcc28e; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 10px; }
body[data-page="buyer"] .panel-head h2 { color: #ece1c8; font-family: Georgia, serif; font-size: 28px; font-weight: 400; letter-spacing: -.025em; }
body[data-page="buyer"] .panel-icon { border-radius: 0; width: 37px; height: 37px; border: 1px solid #806c46; color: #c8aa6e; font-size: 26px; }
body[data-page="buyer"] .lookup-guide { margin: 0 0 26px; padding: 18px 20px; background: #081923; border: 1px solid #354b4d; border-left: 2px solid #9e824d; border-radius: 0; }
body[data-page="buyer"] .lookup-guide h3 { margin-bottom: 14px; color: #e5cd9b; font-size: 15px; font-weight: 600; letter-spacing: .01em; text-transform: none; }
body[data-page="buyer"] .lookup-guide ol { padding-left: 22px; font-size: 15px; color: #e3e9e8; line-height: 1.7; }
body[data-page="buyer"] .lookup-guide li + li { margin-top: 16px; }
body[data-page="buyer"] .lookup-guide li::marker { color: #dec18a; font-size: 14px; }
body[data-page="buyer"] .lookup-guide strong { display: block; color: #edf1ec; font-size: 15px; font-weight: 600; }
body[data-page="buyer"] .lookup-guide li span { display: block; color: #bacdd5; font-size: 14px; }
body[data-page="buyer"] #lookup-form label { margin-bottom: 9px; color: #e0e8e8; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
body[data-page="buyer"] #lookup-form input { height: 54px; margin-bottom: 20px; padding: 0 14px; background: #07151f; border-color: #3a4d53; border-radius: 1px; font-size: 16px; color: #f2efe5; }
body[data-page="buyer"] #lookup-form input::placeholder { color: #a5bdc9; }
body[data-page="buyer"] #lookup-form input:focus { border-color: #b99a5e; box-shadow: 0 0 0 2px #b99a5e14; }
body[data-page="buyer"] #lookup-form button { min-height: 50px; padding: 0 18px; margin-top: 4px; border: 1px solid #d5bd82; border-radius: 1px; background: linear-gradient(110deg, #b89a5f, #dfc689); color: #152126; text-align: left; font-size: 15px; letter-spacing: .02em; text-transform: none; font-weight: 700; }
body[data-page="buyer"] #lookup-form button:hover { background: linear-gradient(110deg, #d0b174, #f0dba7); }
body[data-page="buyer"] #lookup-form button span { font-size: 18px; line-height: 1; }
body[data-page="buyer"] .panel-note { display: flex; gap: 10px; margin-top: 20px; color: #b5c8d0; font-size: 13px; line-height: 1.7; }
body[data-page="buyer"] .panel-note > span { color: #a48a56; font-size: 14px; }
body[data-page="buyer"] .result.visible, body[data-page="buyer"] .result.loading { border-color: #7b6c49; border-radius: 1px; background: #19343b; }
body[data-page="buyer"] .result span { font-size: 14px; }
body[data-page="buyer"] .result strong { color: #ead29c; font-family: Consolas, monospace; font-size: 38px; letter-spacing: .16em; }
body[data-page="buyer"] .result.error { color: #f1bbb2; border-color: #865352; background: #382a2a; }
body[data-page="buyer"] footer { border-color: #725f393d; color: #abc0cb; font-size: 12px; letter-spacing: .01em; line-height: 1.8; }
.footer-divider { margin: 0 10px; color: #aa8e58; }
@media (max-width: 1020px) { body[data-page="buyer"] .buyer-main { grid-template-columns: minmax(0, 1fr); width: min(680px, 100%); gap: 40px; padding-top: 42px; } body[data-page="buyer"] .intro { padding: 12px 0; } body[data-page="buyer"] .intro h1 { font-size: clamp(44px, 8vw, 66px); } .rift-art { left: 40%; top: 50%; width: 600px; opacity: .14; } body[data-page="buyer"] .intro-foot { margin-top: 28px; } }
@media (max-width: 650px) { body[data-page="buyer"] .site-header { min-height: 72px; padding: 0 24px; } .buyer-header-caption { max-width: 150px; text-align: right; font-size: 11px; line-height: 1.6; letter-spacing: .01em; } .buyer-header-caption span { display: none; } body[data-page="buyer"] .brand { font-size: 19px; } body[data-page="buyer"] .brand-mark { width: 30px; height: 30px; font-size: 22px; } body[data-page="buyer"] .buyer-main { padding: 32px 24px 48px; gap: 28px; } body[data-page="buyer"] .intro h1 { font-size: clamp(36px, 10.6vw, 58px); margin-bottom: 22px; } body[data-page="buyer"] .intro .kicker { font-size: 11px; letter-spacing: .05em; margin-bottom: 20px; } body[data-page="buyer"] .intro > p:not(.kicker) { font-size: 16px; line-height: 1.8; } .game-tags { margin-top: 24px; gap: 16px; font-size: 14px; } .game-tags span + span { padding-left: 16px; font-size: 9px; } body[data-page="buyer"] .lookup-panel { padding: 25px 22px; } body[data-page="buyer"] .panel-head h2 { font-size: 25px; } body[data-page="buyer"] .lookup-guide { padding: 16px 15px; } body[data-page="buyer"] .intro-foot { font-size: 12px; } body[data-page="buyer"] footer { flex-direction: column; gap: 8px; padding: 20px 24px; } }
@media (max-width: 360px) { body[data-page="buyer"] .site-header { padding: 0 18px; } body[data-page="buyer"] .brand { font-size: 17px; gap: 8px; } .buyer-header-caption { max-width: 110px; font-size: 10px; } body[data-page="buyer"] .buyer-main { padding-left: 18px; padding-right: 18px; } body[data-page="buyer"] .lookup-panel { padding: 23px 18px; } body[data-page="buyer"] .panel-head h2 { font-size: 22px; } body[data-page="buyer"] .panel-icon { width: 30px; height: 30px; font-size: 21px; } body[data-page="buyer"] .result strong { font-size: 31px; } .foot-divider { margin: 0 5px; } }

body[data-page="buyer"] .result small { color: #c2d3da; font-size: 13px; line-height: 1.6; }

.brand-logo { display: block; width: 175px; height: 40px; flex: none; }
body[data-page="buyer"] .brand { letter-spacing: normal; }
@media (max-width: 650px) { .brand-logo { width: 157.5px; height: 36px; } }
@media (max-width: 360px) { .brand-logo { width: 140px; height: 32px; } }
