.access-page, .admin-page { margin: 0; background: #0a1425; color: #eaf1fa; font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; color-scheme: dark; }
.access-page *, .admin-page *, .license-lock * { box-sizing: border-box; }
.access-page [hidden], .admin-page [hidden], .license-lock[hidden], .member-menu[hidden] { display: none !important; }
.access-shell { display: grid; grid-template-columns: 1fr 440px; gap: 50px 70px; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 60px; }
.wordmark { color: #f4f8ff; font-size: 22px; text-decoration: none; font-weight: 700; }
.wordmark span { margin-left: 8px; font-size: 13px; color: #91a6c4; font-weight: 400; }
.access-shell > .wordmark { grid-column: 1 / -1; }
.access-intro { padding: 24px 0; }
.eyebrow { color: #8cdddb; letter-spacing: .12em; font-size: 12px; }
.access-intro h1 { margin: 24px 0; font-size: clamp(38px, 4vw, 58px); letter-spacing: -.04em; line-height: 1.2; font-weight: 600; }
.access-intro p { max-width: 340px; color: #9fb1ca; }
.feature-tags { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.feature-tags span { border: 1px solid #29405c; border-radius: 7px; padding: 5px 12px; color: #bdd1e8; font-size: 12px; }
.access-card, .admin-card, .payment-card { padding: 28px; border: 1px solid #2a3e59; border-radius: 18px; background: #112139; box-shadow: 0 20px 50px #0002; }
.access-page h2, .admin-page h2, .payment-card h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.muted { color: #9daec5; font-size: 13px; }
.fine-print { color: #8ca0bc; font-size: 12px; line-height: 1.7; }
.access-page label, .admin-page label { display: block; font-size: 13px; margin: 16px 0 6px; color: #c3d2e6; }
.access-page input, .access-page textarea, .admin-page input, .admin-page textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid #3c526f; background: #0b192d; color: #eef7ff; border-radius: 8px; font: inherit; }
.access-page textarea, .admin-page textarea { font-size: 13px; resize: vertical; }
.access-page input:focus, .admin-page input:focus, .access-page textarea:focus, .admin-page textarea:focus { outline: 2px solid #6ecfc8; outline-offset: 2px; }
.access-page button, .admin-page button, .license-lock button, .member-menu button, .button-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #38536e; border-radius: 8px; padding: 10px 16px; color: #e2edf9; background: #1a304a; font: 600 13px/1.5 -apple-system, "PingFang SC", sans-serif; text-decoration: none; cursor: pointer; }
.access-page button:hover, .admin-page button:hover, .license-lock button:hover, .member-menu button:hover { filter: brightness(1.15); }
.access-page button:disabled, .admin-page button:disabled { opacity: .4; cursor: default; filter: none; }
.access-page .primary, .admin-page .primary, .license-lock .primary { background: #74dacf; color: #0a3034; border-color: #74dacf; }
.access-page form > button, .admin-page form > button { margin-top: 18px; }
.access-card form > button, .access-card .button-link { width: 100%; }
.notice { padding: 12px; border-radius: 9px; border: 1px solid #427075; background: #18383f; font-size: 13px; color: #bfede8; }
.notice label { margin-top: 0; }
.form-message { min-height: 1.5em; color: #f1bb98; font-size: 13px; }
.purchase-panel { grid-column: 1 / -1; border-top: 1px solid #273b53; padding-top: 30px; }
.purchase-panel h2 { margin-top: 8px; }
.plan-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 24px; }
.plan-card { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid #2b415a; border-radius: 12px; background: #102035; }
.plan-card h3 { margin: 0; font-size: 17px; }
.plan-price { font-size: 26px; font-weight: 600; margin: 4px 0 18px; }
.plan-card button { margin-top: auto; width: 100%; }
.payment-card { margin-top: 22px; max-width: 420px; }
.payment-card img { display: block; margin: 20px 0; padding: 12px; border-radius: 10px; background: #fff; }
.button-row { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.access-footer { text-align: center; font-size: 12px; color: #8298b5; padding: 24px; }
.admin-shell { width: min(1260px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 50px; }
.admin-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-heading { margin-bottom: 20px; }
.admin-page #loginPanel { width: min(420px, 100%); margin: 60px auto; }
.admin-page #loginPanel h1 { font-size: 24px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.admin-card { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row > div { min-width: 0; }
.table-wrap { overflow-x: auto; }
.admin-page table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; }
.admin-page th, .admin-page td { padding: 13px 8px; border-bottom: 1px solid #2b405a; }
.admin-page th { color: #93a8c5; font-weight: 500; white-space: nowrap; }
.table-actions { white-space: nowrap; }
.table-actions button, .plan-admin-row button { padding: 5px 8px; font-size: 11px; margin-right: 6px; }
.admin-page .danger { color: #f5b9b9; }
.plan-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 12px; }
.admin-page dialog { width: min(420px, calc(100% - 32px)); padding: 26px; border: 1px solid #38536e; border-radius: 14px; background: #112139; color: #eaf1fa; }
.admin-page dialog::backdrop { background: #020814b8; }
.member-badge { border: 1px solid #3a627a; background: #163246; color: #bde6e6; border-radius: 7px; padding: 5px 9px; font: 12px/1.4 -apple-system, "PingFang SC", sans-serif; white-space: nowrap; cursor: pointer; }
body.show-mode .member-badge, body.show-mode .member-menu, .member-menu * { box-sizing: border-box; }
.member-menu { position: fixed; z-index: 10000; width: min(300px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 18px; border: 1px solid #3b566f; border-radius: 14px; background: #102139; color: #d5e7f4; font: 13px/1.6 -apple-system, "PingFang SC", sans-serif; box-shadow: 0 16px 40px #0006; }
.member-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.member-menu-heading strong { font-size: 15px; }
.member-menu .member-menu-close { width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; background: transparent; color: #9fb1ca; font-size: 22px; line-height: 1; }
.member-menu .member-menu-details { margin: 0 0 18px; white-space: pre-line; color: #a8bed5; line-height: 1.8; font-variant-numeric: tabular-nums; }
.member-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; border-top: 1px solid #2b405a; }
.member-menu .member-menu-actions > * { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 40px; margin: 0; padding: 8px 10px; border: 1px solid #38536e; border-radius: 8px; font: 600 13px/1.5 -apple-system, "PingFang SC", sans-serif; text-decoration: none; cursor: pointer; }
.member-menu .member-menu-renew { color: #bce9f5; background: #203b57; }
.member-menu .member-menu-logout { color: #afc0d5; background: transparent; }
.member-menu a:hover { filter: brightness(1.15); }
.member-menu :is(button,a):focus-visible { outline: 2px solid #8cdddb; outline-offset: 3px; }
.license-lock { display: grid; position: fixed; inset: 0; z-index: 100000; padding: 20px; place-items: center; background: #07111be8; backdrop-filter: blur(8px); color: #eaf1fa; font: 14px/1.7 -apple-system, "PingFang SC", sans-serif; }
.license-lock-card { width: min(480px, 100%); padding: 30px; border: 1px solid #3b566f; border-radius: 16px; background: #112139; box-shadow: 0 24px 80px #0006; }
.license-lock h2 { margin: 0 0 12px; font-size: 23px; }
.license-lock p { color: #b3c6dd; }
.license-lock a { color: #8ce5dd; }
@media(max-width: 800px) { .access-shell { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; } .access-intro { padding: 0; } .access-intro h1 br { display: none; } .access-intro h1 { font-size: 34px; margin: 15px 0; } .feature-tags { margin-top: 16px; } .admin-grid { grid-template-columns: 1fr; gap: 0; } }

.user-filters { display: flex; align-items: stretch; gap: 12px; margin: 14px 0; }
.admin-page .user-filters input { flex: 1; }
.admin-page select { padding: 10px 12px; border: 1px solid #3c526f; border-radius: 8px; background: #0b192d; color: #eef7ff; font: inherit; }
.admin-page td { vertical-align: top; white-space: pre-line; }
.admin-page td.table-actions { min-width: 285px; max-width: 360px; white-space: normal; }
.table-actions button { margin: 0 6px 6px 0; }
.delivery-pending { color: #f0cb9c; white-space: nowrap !important; }
.delivery-done { color: #9edace; white-space: nowrap !important; }
@media(max-width: 500px) { .user-filters { flex-direction: column; } }

/* Keep routine delivery work visible; secondary actions open beside the row. */
.admin-page #userRows td { vertical-align: middle; }
.admin-page #userRows tr.is-delivered { background: #1a304b; }
.admin-page #userRows tr.is-delivered > td:first-child { box-shadow: inset 3px 0 #80a8d3; padding-left: 13px; }
.admin-page #userRows tr.is-delivered .delivery-done { color: #b4d7f3; }
.admin-page #userRows tr:hover { background: #15273e; }
.admin-page #userRows tr.is-delivered:hover { background: #203a56; }
.admin-page #userRows td:not(.user-identity) { white-space: nowrap; }
.admin-page #userRows .table-actions { min-width: 290px; max-width: none; }
.admin-page #userRows .table-actions button { margin-bottom: 0; }
.admin-page #userRows .table-actions button:last-child { margin-right: 0; }
.user-identity { width: 27%; min-width: 195px; }
.user-identity > strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.admin-page .user-note { display: flex; align-items: flex-start; gap: 8px; max-width: 260px; min-height: 28px; margin: 3px 0 0; padding: 3px 0; border: 0; border-radius: 3px; background: transparent; color: #aebfd5; font-family: inherit; font-size: 12px; line-height: 1.65; font-weight: 400; text-align: left; white-space: pre-line; }
.user-note > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.user-note > small { flex-shrink: 0; font-size: 11px; color: #829fbd; }
.admin-page .user-note.is-empty { color: #829fbd; }
.admin-page .user-note:hover { color: #d8e7fa; filter: none; }
.admin-page :is(.user-note,[aria-controls="userActionsMenu"]):focus-visible { outline: 2px solid #8ab6e3; outline-offset: 3px; }
.user-actions-menu { position: fixed; inset: auto; margin: 0; width: 182px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 7px; border: 1px solid #38516e; border-radius: 10px; background: #112139; color: #eaf1fa; box-shadow: 0 12px 32px #0005; }
.menu-account { padding: 6px 9px 10px; color: #8fa6c3; font-size: 11px; letter-spacing: .02em; border-bottom: 1px solid #2b405a; margin-bottom: 4px; }
.admin-page .user-actions-menu button { display: flex; justify-content: flex-start; width: 100%; margin: 0; padding: 9px; border: 0; border-radius: 5px; background: transparent; font-size: 12px; font-weight: 400; }
.admin-page .user-actions-menu button:hover, .admin-page .user-actions-menu button:focus { background: #203953; outline: 0; filter: none; }
.admin-page .user-actions-menu .menu-divider { border-top: 1px solid #2b405a; border-radius: 0 0 5px 5px; margin-top: 5px; padding-top: 12px; }
.admin-page .dialog-close { min-width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: #9fb1ca; font-size: 23px; font-weight: 400; }
.admin-page #noteDialog { width: min(460px, calc(100% - 32px)); }
.admin-page #noteDialog h2 { margin: 0; }
.admin-page #noteTarget { margin: 8px 0 16px; }
.admin-page #accountNote { min-height: 110px; line-height: 1.7; }
.admin-page #accountNote:focus { outline: 2px solid #8ab6e3; }
.note-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: #8298b5; font-size: 11px; }
.admin-page #noteDialog .primary { background: #2a527c; border-color: #42688f; color: #e6f0fc; }
