/* Adapted from Brclio Design System app template and table/modal/CTA components. */
:root { --_brclio-ds: "brclio-v1"; --blue: #2b7fd8; --blue-deep: #1e5ba8; --yellow: #f4d758; --red: #b83248; --cream: #fefcf6; --paper: #fffdf8; --ink: #1a1a2e; --muted: #656574; --line: rgba(26,26,46,.13); --serif: "Noto Serif SC", "Songti SC", "SimSun", serif; --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; font: 14px/1.65 var(--sans); color: var(--ink); background: var(--cream); }
::selection { background: var(--yellow); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; }
h1, h2 { font-size: 1.18rem; line-height: 1.5; }
h3 { font-size: 1rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -70px; z-index: 1000; padding: 10px 20px; background: var(--yellow); }
.skip-link:focus { top: 8px; }
.app-header { position: sticky; top: 0; z-index: 20; min-height: 66px; padding: 10px clamp(16px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: var(--cream); }
.brand { display: flex; gap: 13px; align-items: center; color: var(--ink); font-size: .95rem; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--blue); color: var(--cream); font: italic 700 24px var(--serif); border-radius: 10px 10px 3px 10px; }
.brand-divider { padding: 0 9px; color: #92929b; }
.header-actions { display: flex; align-items: center; gap: 12px; font-size: .8rem; }
#admin-email { max-width: 250px; overflow-wrap: anywhere; }
.app-content { max-width: 1320px; margin: 0 auto; padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px); min-height: calc(100vh - 140px); }
.muted, .field-help { color: var(--muted); }
.field-help { font-size: .78rem; }
.eyebrow { display: block; color: var(--blue-deep); font-size: .66rem; letter-spacing: .12em; font-weight: 700; margin-bottom: 6px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 17px; border: 1px solid transparent; border-radius: 7px; background: var(--blue-deep); color: var(--cream); font-weight: 600; font-size: .83rem; line-height: 1.5; white-space: nowrap; transition: background .15s, border-color .15s; }
.button:hover { background: #184e90; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .55; cursor: wait; }
.button-secondary { color: var(--ink); background: var(--paper); border-color: var(--line); }
.button-secondary:hover { background: #f5f0e3; border-color: rgba(26,26,46,.28); }
.button-quiet { color: var(--blue-deep); background: transparent; padding-inline: 10px; }
.button-quiet:hover { background: #e9f1f8; }
.button-danger { color: var(--red); background: #fcf0ed; border-color: #e8b7bf; }
.button-danger:hover { background: #f9e0e0; }
.button-small { min-height: 32px; padding: 5px 10px; font-size: .76rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .81rem; font-weight: 600; }
input, select, textarea { width: 100%; min-width: 0; min-height: 42px; padding: 9px 12px; border: 1px solid rgba(26,26,46,.22); border-radius: 6px; background: var(--paper); line-height: 1.5; font-size: .88rem; font-weight: 400; }
input::placeholder, textarea::placeholder { color: #777781; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); outline-color: var(--blue); }
textarea { resize: vertical; }
.form-stack { display: grid; gap: 17px; }
.notice { position: sticky; top: 78px; z-index: 25; padding: 13px 17px; margin-bottom: 20px; background: #edf4fb; border: 1px solid #bacfe8; border-radius: 7px; color: #184e90; overflow-wrap: anywhere; }
.notice[data-tone="error"] { background: #fcf0ed; border-color: #e7bbc3; color: var(--red); }
.notice[data-tone="success"] { background: #f5f3df; border-color: #d9ce92; color: #545024; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 65vh; align-items: center; gap: clamp(40px, 7vw, 100px); padding: 40px 3%; }
.login-context h1 { margin: 10px 0 20px; font-size: clamp(1.4rem, 2.8vw, 2.2rem); max-width: 410px; }
.login-context > p { max-width: 340px; color: var(--muted); }
.login-caption { display: flex; align-items: center; gap: 9px; margin-top: 48px; color: var(--muted); font-size: .78rem; }
.caption-dot { display: block; width: 10px; height: 10px; background: var(--yellow); border-radius: 3px; }
.login-form-panel { border-top: 3px solid var(--ink); padding-top: 25px; max-width: 430px; }
.login-form-panel > p { margin: 10px 0 25px; font-size: .83rem; }
.code-field { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; }
.login-form-panel .login-footnote { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; margin-bottom: 0; font-size: .75rem; color: var(--muted); }
.workspace-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.workspace-heading > p { font-size: .78rem; }
.tab-bar { display: flex; gap: 10px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 27px; }
.tab { position: relative; padding: 11px 15px 14px; border: 0; background: transparent; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.tab:first-child { padding-left: 0; }
.tab.active { color: var(--blue-deep); font-weight: 700; }
.tab.active::after { content: ""; position: absolute; height: 3px; bottom: 0; left: 15px; right: 15px; background: var(--blue); }
.tab:first-child.active::after { left: 0; }
.tab:hover { color: var(--blue-deep); }
.search-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
.search-label { white-space: nowrap; margin-right: 3px; }
.search-bar input { max-width: 480px; }
.user-layout { display: grid; grid-template-columns: minmax(225px, .34fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 35px); align-items: start; }
.user-list-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); overflow: hidden; }
.user-list-panel > .panel-heading { padding: 15px 17px; margin: 0; border-bottom: 1px solid var(--line); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.panel-heading .muted { font-size: .76rem; margin-top: 4px; }
.users-list { max-height: 580px; overflow-y: auto; }
.user-item { display: block; width: 100%; padding: 14px 17px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; overflow-wrap: anywhere; }
.user-item:last-child { border-bottom: 0; }
.user-item:hover { background: #f4f0e7; }
.user-item[aria-current="true"] { background: #eaf2fb; box-shadow: inset 3px 0 var(--blue); }
.user-item strong { display: block; font-size: .83rem; line-height: 1.6; margin-bottom: 6px; }
.user-item .small-text { margin-top: 6px; }
.small-text { display: block; font-size: .73rem; color: var(--muted); overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 3px 8px; color: var(--blue-deep); background: #eaf2fb; border-radius: 5px; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.badge-gold { color: #60521d; background: #f6eaba; }
.badge-muted { color: #5a5963; background: #eeece5; }
.badge-danger { color: var(--red); background: #fbe7e6; }
.user-detail { min-width: 0; }
.empty-state { display: grid; place-content: center; min-height: 300px; padding: 30px; text-align: center; color: var(--muted); background: #faf6eb; border-radius: 7px; }
.empty-state h2 { color: var(--ink); margin-bottom: 8px; }
.empty-state p { font-size: .82rem; }
.empty-symbol { font-family: var(--serif); font-size: 2.5rem; color: var(--blue); margin-bottom: 8px; }
.empty-inline { padding: 23px 17px; color: var(--muted); font-size: .82rem; }
.detail-identity { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.detail-identity h2 { overflow-wrap: anywhere; }
.detail-identity .small-text { margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 23px 0 28px; }
.facts dt { color: var(--muted); font-size: .74rem; margin-bottom: 5px; }
.facts dd { margin: 0; font-size: .83rem; overflow-wrap: anywhere; }
.detail-section { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.detail-section > h3 { margin-bottom: 13px; }
.membership-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; background: #faf6eb; padding: 20px; border-radius: 7px; }
.wide-field { grid-column: 1 / -1; }
.membership-form .button { justify-self: start; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .78rem; }
.data-table th { padding: 11px 13px; color: var(--muted); font-size: .72rem; font-weight: 600; background: #faf6eb; white-space: nowrap; }
.data-table td { vertical-align: top; padding: 13px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.data-table td .small-text { margin-top: 4px; }
.data-table .record-id { max-width: 220px; }
.device-table { min-width: 610px; }
.codes-table { min-width: 620px; }
.audit-table { min-width: 690px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 17px; color: var(--muted); font-size: .75rem; }
.user-list-panel .pagination { margin: 0; padding: 10px; border-top: 1px solid var(--line); }
.pagination:empty { display: none; }
.codes-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(25px, 4vw, 50px); }
.generate-panel { padding: 20px; background: #faf6eb; border-radius: 7px; align-self: start; }
.generate-panel > p { font-size: .78rem; margin: 7px 0 20px; }
.code-results { min-width: 0; }
.filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; align-items: end; gap: 10px; margin-bottom: 17px; }
.generated-panel { background: #faf5dc; border: 1px solid #e3d697; border-radius: 7px; padding: 20px; margin-bottom: 30px; }
.generated-panel > p { margin-bottom: 15px; font-size: .78rem; }
.generated-panel .button-row { margin-top: 14px; }
#generated-raw { font-family: var(--sans); font-size: .8rem; }
details { max-width: 500px; }
summary { cursor: pointer; color: var(--blue-deep); font-size: .77rem; }
summary:hover { text-decoration: underline; }
pre { margin: 10px 0 0; max-height: 300px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #f5f0e5; padding: 12px; border-radius: 5px; font: .73rem/1.7 var(--sans); }
.history-list { display: grid; margin: 0; padding: 0; list-style: none; }
.history-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.history-item:first-child { padding-top: 0; }
.history-item .small-text { margin: 5px 0; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.status-card { padding: 25px; background: #faf6eb; border-radius: 7px; }
.status-card .panel-heading { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.status-facts { margin: 0; }
.status-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 15px; padding: 9px 0; }
.status-facts dt { color: var(--muted); font-size: .8rem; }
.status-facts dd { margin: 0; overflow-wrap: anywhere; font-size: .8rem; }
.status-caption { color: var(--muted); font-size: .78rem; margin: 20px 0; }
.app-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; max-width: 1320px; padding: 22px clamp(16px, 3vw, 40px); margin: 0 auto; font-size: .7rem; color: var(--muted); }
.app-footer a { color: var(--muted); }
dialog { width: min(500px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: clamp(22px, 4vw, 32px); border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); }
dialog::backdrop { background: rgba(26,26,46,.4); }
.dialog-heading { margin-bottom: 18px; }
#dialog-message { white-space: pre-line; overflow-wrap: anywhere; color: var(--muted); margin-bottom: 20px; font-size: .88rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
@media (max-width: 900px) { .login-layout { gap: 35px; padding-inline: 0; } .user-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 20px; } .facts { grid-template-columns: 1fr 1fr; } .codes-layout { grid-template-columns: 1fr; gap: 30px; } .generate-panel .form-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .generate-panel .field-help, .generate-panel label:has(textarea) { grid-column: 1 / -1; } .generate-panel .button { justify-self: start; } .status-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .app-header { align-items: start; gap: 10px; } .brand { gap: 8px; font-size: .8rem; } .brand-divider { padding: 0 3px; } .header-actions { flex-direction: column; align-items: end; gap: 0; } #admin-email { max-width: 130px; font-size: .65rem; } .header-actions .button { min-height: 29px; padding: 3px 0; font-size: .72rem; } .login-layout { grid-template-columns: 1fr; min-height: auto; padding-block: 15px 35px; } .login-context h1 { max-width: none; } .login-caption { margin-top: 20px; } .login-form-panel { max-width: none; } .workspace-heading { align-items: start; flex-direction: column; gap: 6px; } .tab-bar { gap: 0; } .tab { padding-inline: 12px; font-size: .82rem; } .search-bar { flex-wrap: wrap; gap: 8px; } .search-label { flex-basis: 100%; } .search-bar input { flex: 1; min-width: 140px; } .user-layout { grid-template-columns: 1fr; } .users-list { max-height: 245px; } .user-detail { margin-top: 5px; } .detail-identity { flex-wrap: wrap; } .membership-form { padding: 15px; grid-template-columns: 1fr; } .membership-form .wide-field { grid-column: auto; } .facts { gap: 16px; } .generate-panel .form-stack { grid-template-columns: 1fr; } .filter-bar { grid-template-columns: minmax(0, 1fr) 125px; } .filter-bar > .button { grid-column: 1 / -1; justify-self: end; } .generated-panel { padding: 15px; } .generated-panel .panel-heading { align-items: start; flex-direction: column; gap: 5px; } .status-facts > div { grid-template-columns: 95px minmax(0, 1fr); } .panel-heading { align-items: start; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.notice-actions { margin-top: 10px; }
.pending-device-results { margin-top: 16px; }
.pending-device-table { min-width: 650px; }
.feedback-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.feedback-list-item { text-align: left; }
.feedback-description { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.feedback-messages { display: grid; gap: 12px; margin: 20px 0; padding: 0; list-style: none; }
.feedback-message { min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 7px; background: #faf6eb; }
.feedback-message-admin { background: #faf5dc; border-color: #d8c786; }
.feedback-message-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font-size: .78rem; }
.feedback-message-meta time { color: var(--muted); }
.feedback-message-content { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: .88rem; }
.feedback-reply-form { display: grid; gap: 10px; margin-top: 20px; }
.feedback-reply-form textarea { min-height: 125px; }
.feedback-reply-form .button { justify-self: start; }
.feedback-log-section .button-row { margin-block: 18px 12px; }
.feedback-log-preview { max-height: 480px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .72rem; }
.feedback-status-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-block: 15px 20px; }
.feedback-status-form label { min-width: 180px; }
.feedback-copy-fallback { margin-top: 14px; min-height: 160px; }
.issue-shortcut { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; margin-bottom: 22px; border-block: 1px solid var(--line); }
.issue-shortcut h3 { font-size: .93rem; margin-bottom: 5px; }
.email-issue-panel { scroll-margin-top: 160px; padding-bottom: clamp(28px, 4vw, 44px); margin-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.email-issue-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.recipient-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-bottom: 18px; }
.issue-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.issue-form > .button { justify-self: start; }
.issue-preview { min-width: 0; padding: clamp(20px, 2.5vw, 30px); border-radius: 8px; background: #faf5dc; }
.issue-empty { min-height: 275px; display: flex; flex-direction: column; justify-content: center; }
.issue-empty h3 { margin: 4px 0 12px; }
.issue-empty p { font-size: .82rem; max-width: 340px; }
.issue-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin: 20px 0; }
.issue-facts > div:first-child { grid-column: 1 / -1; }
.issue-facts dt { color: var(--muted); font-size: .74rem; margin-bottom: 4px; }
.issue-facts dd { margin: 0; font-size: .87rem; overflow-wrap: anywhere; }
.issue-facts > div:first-child dd { font-weight: 700; font-size: 1rem; }
.issue-record { margin: 10px 0 18px; }
.issue-preview > .field-help { margin-top: 12px; }
.issue-preview .button { white-space: normal; }
.code-actions { min-width: 122px; }
@media (max-width: 900px) { .email-issue-layout { grid-template-columns: 1fr; } .issue-empty { min-height: 140px; } }
@media (max-width: 600px) { .issue-shortcut { align-items: start; flex-direction: column; gap: 12px; } .email-issue-panel > .panel-heading { flex-direction: column; gap: 10px; } .recipient-search { grid-template-columns: 1fr; } .recipient-search .button { justify-self: start; } .issue-form { grid-template-columns: 1fr; } .issue-form .wide-field { grid-column: auto; } .issue-preview .panel-heading { flex-wrap: wrap; } .issue-facts { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .feedback-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 20px; } }
@media (max-width: 600px) { .feedback-layout { grid-template-columns: 1fr; } .feedback-log-section .button { white-space: normal; } }
