:root { --navy: #142B40; --navy-2: #1B4060; --copper: #B2805F; --bg: #F3F0EB; --paper: #fff; --line: #E3DDD5; --text: #1E1813; --muted: #6F675E; --ok: #0B8A47; --ok-bg: #E4F4EA; --warn: #8E5A10; --warn-bg: #FCF0DC; --bad: #B3362A; --bad-bg: #FBE7E4; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 'Segoe UI', system-ui, sans-serif; }
button, input, select { font: inherit; color: inherit; }
input { width: 100%; padding: 8px 10px; border: 1px solid #D2CAC0; border-radius: 7px; background: #fff; }
input:focus { outline: 2px solid var(--copper); outline-offset: 0; }
button, .btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #D2CAC0; border-radius: 7px; background: #fff; cursor: pointer; text-decoration: none; color: inherit; white-space: nowrap; }
button:hover, .btn:hover { border-color: var(--copper); }
button.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
button.danger { color: var(--bad); border-color: #E7B5AE; }
button.ghost { background: transparent; border-color: transparent; color: #E8EEF5; }
button:disabled { opacity: .55; cursor: default; }
a { color: var(--navy-2); }
.sub { color: var(--muted); font-size: 12.5px; }
.hint { color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 14px; }
.sp { flex: 1; }
.boot { padding: 60px; text-align: center; color: var(--muted); }
header { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: var(--navy); color: #E8EEF5; }
header .sub { color: #9FB3C9; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 28px; height: 28px; background: #fff; border-radius: 6px; padding: 3px; }
main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px; }
h2 { font-size: 18px; color: var(--navy); margin: 0 0 6px; }
h3 { font-size: 16px; color: var(--navy); margin: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card.narrow { max-width: 440px; margin: 40px auto; }
.field { display: flex; flex-direction: column; gap: 4px; }
.lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { width: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 8px 14px; }
.tabs button.on { border-bottom-color: var(--copper); color: var(--navy); font-weight: 600; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { text-align: left; font-size: 12px; color: var(--muted); background: #EFEAE3; padding: 8px 12px; }
td { padding: 10px 12px; border-top: 1px solid #F0EBE5; vertical-align: top; }
td.actions { display: flex; flex-wrap: wrap; gap: 6px; }
td.actions button { padding: 4px 10px; font-size: 12.5px; }
.badge { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; background: #EFEBE6; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; margin-top: 10px; }
.overlay { position: fixed; inset: 0; background: rgba(20, 20, 30, .4); display: grid; place-items: center; padding: 16px; z-index: 10; }
.dialog { background: #fff; border-radius: 12px; padding: 20px; width: min(560px, 100%); max-height: 92vh; overflow: auto; }
.dialog .dh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dialog .x { border: 0; font-size: 22px; padding: 0 8px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.linkbox input { flex: 1; min-width: 200px; font-family: Consolas, monospace; font-size: 12px; }
.linkbox p { margin: 6px 0; }
.qr { width: 220px; height: 220px; align-self: center; image-rendering: pixelated; }
.codes { background: #FAF8F5; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 15px; letter-spacing: .05em; }
code { font-family: Consolas, monospace; background: #FAF8F5; padding: 1px 5px; border-radius: 4px; word-break: break-all; }
#toasts { position: fixed; bottom: 16px; right: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 20; }
.toast { background: var(--navy); color: #fff; padding: 9px 14px; border-radius: 8px; max-width: 420px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.toast.error { background: var(--bad); }
@media (max-width: 600px) { header { flex-wrap: wrap; gap: 6px; } .card.narrow { margin: 16px auto; } }
