:root { --surface: #111e30; --surface-raised: #17273a; --line: #28384b; --muted: #92a5bd; --mint: #8be4d1; --blue: #73a7ff; }
.admin-body, .receive-body { background: #0b1523; color: #ecf2fa; font-family: "Yu Gothic UI", "Meiryo", system-ui, sans-serif; }
.admin-body { display: grid; grid-template-columns: 218px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 31px 19px 24px; background: #0e1a2b; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; color: #f2f7fe; text-decoration: none; font-size: 27px; font-weight: 750; letter-spacing: -1px; }
.brand small { display: block; margin-top: 6px; font-size: 8px; font-weight: 600; letter-spacing: 1.8px; color: var(--muted); }
.brand-mark { display: grid; grid-template-columns: repeat(2, 12px); gap: 4px; transform: rotate(-8deg); }
.brand-mark i { width: 12px; height: 12px; background: var(--mint); border-radius: 3px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: var(--blue); }
.nav-label { margin: 47px 13px 14px; font-size: 9px; font-weight: 700; color: #71869f; letter-spacing: 1.7px; }
.sidebar nav { display: grid; gap: 8px; }
.nav-item { text-decoration: none; color: #a9b8cb; display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; padding: 13px 15px; border-radius: 7px; }
.nav-item span { font-size: 21px; width: 22px; text-align: center; line-height: 1; }
.nav-item:hover { color: #fff; background: #182b40; }
.nav-item.active { color: var(--mint); background: #193238; }
.sidebar-foot { margin-top: auto; padding: 15px 10px 0; color: #b6c7d9; font-size: 11px; border-top: 1px solid var(--line); }
.sidebar-foot small { display: block; color: #71869f; font-size: 10px; margin: 9px 0 0 12px; }
.environment-dot { display: inline-block; height: 5px; width: 5px; background: var(--mint); border-radius: 50%; margin-right: 7px; vertical-align: middle; }
main.admin-main { width: min(1240px, 100%); padding: 38px 42px 22px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.admin-main h1, .receive-main h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: .015em; margin: 8px 0 10px; }
.admin-main h2, .receive-main h2 { font-size: 18px; font-weight: 650; letter-spacing: .02em; margin: 5px 0; }
.admin-main p, .receive-main p { line-height: 1.7; }
.admin-main .eyebrow, .receive-main .eyebrow { color: #759ab4; font-size: 9px; font-weight: 750; letter-spacing: 1.7px; margin: 0; }
.subheading { color: var(--muted); font-size: 12px; margin: 0; }
.environment-banner { display: flex; align-items: center; gap: 13px; border: 1px solid #584b31; background: #25261f; color: #d5c6a0; padding: 11px 15px; border-radius: 7px; font-size: 11px; line-height: 1.6; }
.environment-banner b { color: #6c634e; margin: 0 7px; font-weight: 400; }
.volatile-warning { margin: 9px 1px 0; color: #bda982; font-size: 10px; line-height: 1.7; }
.receiver-scope { margin-top: 12px; border-color: #37506a; background: #15283e; color: #b9d1ec; line-height: 1.85; }
.badge { display: inline-flex; white-space: nowrap; align-items: center; border-radius: 4px; padding: 4px 7px; font-size: 10px; font-weight: 650; }
.badge.amber { color: #e1c075; background: #393222; }
.badge.mint { color: #8de5cf; background: #1c3d3e; }
.badge.blue { color: #96bdff; background: #233a58; }
.badge.gray { color: #9cacc0; background: #243143; }
.badge.red { color: #eea1aa; background: #432835; }
.notice { padding: 12px 0; font-size: 12px; color: var(--muted); line-height: 1.75; min-height: 44px; }
.notice.error { color: #ffb1bb; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; scroll-margin-top: 25px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 18px 21px 14px; }
.metric-label { display: flex; justify-content: space-between; align-items: center; color: #bbc9d9; font-size: 12px; }
.metric-symbol { color: #7897b4; font-size: 19px; }
.metric strong { font-size: 33px; font-weight: 600; display: block; margin-top: 9px; line-height: 1.3; }
.metric p { margin: 4px 0 0; color: #7890a8; font-size: 10px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 18px; margin-top: 21px; }
.admin-main .panel, .receive-main .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 23px; margin: 0 0 21px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 11px; }
.section-description { font-size: 11px; color: var(--muted); margin: 0 0 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; align-items: start; }
.admin-main label, .buyer-email label { display: block; font-size: 11px; font-weight: 600; color: #b9c8db; }
.optional { color: #778ca3; font-size: 9px; margin-left: 5px; font-weight: 400; }
input, select { display: block; width: 100%; color: #e4edf8; background: #0d1929; border: 1px solid #35475b; border-radius: 5px; padding: 11px 12px; font: inherit; font-size: 12px; margin-top: 9px; min-height: 40px; }
input::placeholder { color: #61758d; }
input:focus, select:focus { outline: 2px solid #73a7ff; outline-offset: 2px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.field-hint { font-size: 10px; color: #7c94ac; margin: 9px 0 20px; }
.offer-selection { border: 0; margin: 0; padding: 0; min-width: 0; }
.offer-selection legend { font-size: 11px; color: #b9c8db; font-weight: 600; margin-bottom: 8px; padding: 0; }
.offer-selection label { display: flex; align-items: center; gap: 8px; border: 1px solid #345349; background: #142a2e; padding: 9px 10px; border-radius: 5px; margin-bottom: 7px; font-size: 11px; }
.offer-selection input { display: inline-block; width: 14px; min-height: 14px; margin: 0; accent-color: var(--mint); }
.admin-main button, .receive-main button, .receive-main .download { border-radius: 5px; padding: 10px 15px; font-size: 11px; font-weight: 650; background: var(--mint); color: #102c2b; }
.admin-main button:hover:not(:disabled), .receive-main button:hover:not(:disabled) { filter: brightness(1.09); }
.admin-main .secondary, .receive-main .secondary { background: #192a3e; border: 1px solid #30455c; color: #c2d1e2; }
.admin-main button:disabled, .receive-main button:disabled { cursor: not-allowed; opacity: .4; }
.admin-main .wide { width: 100%; display: flex; justify-content: space-between; margin-top: 17px; padding: 12px 16px; }
.result-panel { border: 1px solid #345b54; padding: 13px; border-radius: 6px; background: #132b2c; margin-top: 16px; font-size: 12px; }
.result-panel p { font-size: 10px; color: #91b5ac; margin: 5px 0 10px; }
.copy-field { display: flex; gap: 7px; }
.copy-field input { min-width: 0; margin: 0; font-family: ui-monospace, monospace; font-size: 10px; }
.delivery-readiness h2 { margin-bottom: 21px; }
.readiness-item { display: flex; gap: 12px; margin-top: 21px; }
.readiness-icon { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; }
.readiness-icon.ready { background: #1c3d3e; color: var(--mint); }
.readiness-icon.pending { border: 1px solid #3b4a5c; color: #8497af; }
.readiness-item strong { display: block; font-size: 11px; font-weight: 600; padding-top: 3px; }
.readiness-item p { color: #8097af; font-size: 10px; margin: 5px 0 0; }
.readiness-note { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; color: #8097af; font-size: 10px; line-height: 1.9; }
.admin-main .table-panel { padding-bottom: 8px; scroll-margin-top: 25px; }
.table-note { color: #7c94ac; font-size: 10px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 11px; }
th { font-size: 10px; color: #7f95ae; font-weight: 500; padding: 13px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 15px 10px; border-bottom: 1px solid #203044; vertical-align: middle; color: #c1cfdf; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
.row-secondary { display: block; font-size: 10px; color: #7890a8; margin-top: 4px; }
.row-id { font-family: ui-monospace, monospace; color: #7f99b4; font-size: 10px; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.row-actions button { white-space: nowrap; padding: 6px 9px; font-size: 10px; }
.row-actions .danger { color: #e8a1ad; border-color: #543548; background: #302330; }
.empty-state { text-align: center; padding: 28px 16px 33px; }
.empty-state > span { color: #567694; font-size: 24px; display: block; margin-bottom: 9px; }
.empty-state strong { color: #a9bdd1; font-size: 12px; font-weight: 550; }
.empty-state p { color: #6f8aa5; font-size: 10px; margin: 7px 0 0; }
.page-footer { display: flex; justify-content: space-between; color: #5c7691; font-size: 9px; padding: 2px 1px; }
.portal-dialog { width: min(490px, calc(100% - 30px)); border: 1px solid #3b5067; border-radius: 12px; padding: 27px; background: #112136; color: #e9f0f8; box-shadow: 0 20px 80px #0007; }
.portal-dialog::backdrop { background: #020914c9; backdrop-filter: blur(3px); }
.portal-dialog h2 { font-size: 20px; margin: 10px 0 15px; }
.portal-dialog p { font-size: 12px; line-height: 1.8; color: #aac0d8; }
.portal-dialog .eyebrow { font-size: 9px; color: var(--mint); }
.portal-dialog button { font-size: 12px; background: #8be4d1; color: #102c2b; }
.portal-dialog .secondary { background: #20334a; color: #c5d5e7; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 25px; }
.mail-dialog { width: min(730px, calc(100% - 30px)); }
.mail-meta { display: grid; grid-template-columns: 45px 1fr; gap: 10px; font-size: 12px; border-block: 1px solid var(--line); padding: 16px 0; }
.mail-meta dt { color: #7f99b4; }
.mail-meta dd { margin: 0; overflow-wrap: anywhere; }
.mail-dialog pre { font: 12px/1.9 "Yu Gothic UI", "Meiryo", sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; color: #c1d1e3; max-height: 45vh; overflow-y: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.receive-main { width: min(760px, calc(100% - 36px)); padding-top: 33px; }
.receive-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 45px; }
.receive-heading { margin-bottom: 27px; }
.receive-main .secret-row { margin: 20px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.receive-main code { background: #091321; color: #a6e7d7; font-size: 12px; line-height: 1.8; border: 1px solid #2a4650; }
.step-line { display: flex; gap: 13px; margin: 20px 0; align-items: flex-start; }
.step-number { display: grid; place-items: center; border: 1px solid #365166; background: #1b3044; color: var(--mint); width: 27px; height: 27px; flex: none; font-size: 12px; border-radius: 50%; }
.step-line h3 { font-size: 13px; margin: 4px 0 5px; }
.step-line p { font-size: 11px; color: var(--muted); margin: 0; }
.receive-main .hint { color: var(--muted); font-size: 11px; }
.download-disabled { display: block; padding: 13px; background: #152336; border: 1px dashed #34475c; color: #8fa4bc; text-align: center; border-radius: 6px; font-size: 12px; margin: 18px 0 8px; }
.buyer-email { margin: 0 0 23px; max-width: 450px; }
.buyer-email label { font-size: 13px; }
.buyer-email .hint { font-size: 11px; line-height: 1.7; }
.hidden { display: none !important; }
@media (min-width: 1550px) { main.admin-main { padding-top: 46px; } }
@media (max-width: 1100px) { main.admin-main { padding: 28px 23px 20px; } .admin-grid { grid-template-columns: minmax(0, 1fr); } .delivery-readiness { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; } .delivery-readiness > .eyebrow, .delivery-readiness > h2, .readiness-note { grid-column: 1/-1; } .delivery-readiness h2 { margin-bottom: 0; } }
@media (max-width: 780px) { .admin-body { display: block; } .sidebar { position: relative; height: auto; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); } .brand { font-size: 24px; } .sidebar nav { display: flex; margin-top: 20px; gap: 5px; flex-wrap: wrap; } .nav-item { padding: 9px 12px; font-size: 11px; gap: 7px; } .nav-item span { font-size: 17px; } .nav-label, .sidebar-foot { display: none; } main.admin-main { padding: 27px 18px; } .environment-banner { align-items: start; flex-direction: column; gap: 8px; } .metric-grid { gap: 8px; } .metric { padding: 14px 12px; } .metric-label { font-size: 10px; } .metric-symbol { display: none; } .metric strong { font-size: 27px; } .metric p { font-size: 8px; } .admin-main .panel { padding: 19px; } .table-note { display: none; } .table-scroll { margin: 0 -7px; } th, td { padding: 12px 8px; } table { min-width: 560px; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 14px; } .delivery-readiness { display: block; } .page-heading { gap: 8px; } .page-heading .secondary { padding: 9px; } .receive-top { margin-bottom: 32px; } .receive-main .secret-row { grid-template-columns: minmax(0,1fr); } .page-footer { flex-direction: column; gap: 7px; } }
