:root{--bg: #f4f6f8;--surface: #ffffff;--surface-2: #eef2f6;--text: #10202b;--text-muted: #46606f;--primary: #1f6b8c;--primary-contrast: #ffffff;--border: #c9d6de;--danger: #8a1c1c;--success: #12603a;--focus: #0b4a63;--radius: 12px;--space: 16px;color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #0d161c;--surface: #14222c;--surface-2: #1b2d38;--text: #eef4f8;--text-muted: #a9c0cc;--primary: #6bb7d6;--primary-contrast: #05141c;--border: #2c414e;--danger: #ff9a9a;--success: #7fd6ac;--focus: #9ad2e8;color-scheme:dark}}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.5}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;gap:var(--space);padding:12px 20px;background:var(--surface);border-bottom:1px solid var(--border)}.brand{font-weight:700;letter-spacing:.04em}.brand small{color:var(--text-muted);font-weight:500;margin-left:8px}.center{flex:1;display:flex;align-items:center;justify-content:center;padding:var(--space)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:28px;width:100%;max-width:460px}.card.wide{max-width:680px}h1{font-size:1.5rem;margin:0 0 4px}.subtitle{color:var(--text-muted);margin:0 0 20px}label{display:block;font-weight:600;margin-bottom:6px}input[type=text],input[type=email],input[type=password],input[inputmode=numeric]{width:100%;padding:12px 14px;font-size:1rem;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);color:var(--text);margin-bottom:16px}button{font:inherit;cursor:pointer;min-height:48px;padding:0 18px;border-radius:10px;border:1px solid transparent;font-weight:600}button.primary{background:var(--primary);color:var(--primary-contrast);width:100%}button.secondary{background:var(--surface-2);color:var(--text);border-color:var(--border)}button:disabled{opacity:.6;cursor:not-allowed}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.notice{border-radius:10px;padding:12px 14px;margin-bottom:16px;border:1px solid var(--border);background:var(--surface-2)}.notice.error{border-color:var(--danger);color:var(--danger)}.notice.success{border-color:var(--success);color:var(--success)}.row{display:flex;gap:12px;flex-wrap:wrap}.row>*{flex:1}.status-grid{display:grid;grid-template-columns:1fr auto;gap:8px 16px;margin:12px 0 20px}.status-grid dt{color:var(--text-muted)}.status-grid dd{margin:0;font-weight:600;text-align:right}.codes{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:14px;margin-bottom:16px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;word-break:break-all}.spinner{width:28px;height:28px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.muted{color:var(--text-muted);font-size:.9rem}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;padding:var(--space)}.dashboard{flex:1;display:grid;grid-template-columns:260px 1fr;align-items:start;min-height:0}.sidebar{display:flex;flex-direction:column;gap:6px;padding:var(--space);background:var(--surface);border-right:1px solid var(--border);min-height:100%}.sidebar ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.nav-item{display:block;width:100%;text-align:left;background:transparent;color:var(--text);border:1px solid transparent;border-radius:10px;padding:0 14px}.nav-item:hover{background:var(--surface-2)}.nav-item.active{background:var(--surface-2);border-color:var(--border);color:var(--primary);font-weight:700}.nav-logout{margin-top:auto;color:var(--text-muted)}.dashboard-main{padding:var(--space);min-width:0}.page{width:100%;max-width:1100px}.page-head{margin-bottom:20px}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px}.toolbar-filters{display:flex;flex-wrap:wrap;gap:12px;margin-left:auto}.toolbar input[type=text],.toolbar select{margin-bottom:0;width:auto;min-width:220px}.btn-auto{width:auto}select{min-height:48px;padding:0 14px;font:inherit;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);color:var(--text)}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.wrap-anywhere{overflow-wrap:anywhere;word-break:break-word}.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius)}.data-table{width:100%;border-collapse:collapse;background:var(--surface)}.data-table th,.data-table td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--border);vertical-align:middle}.data-table thead th{background:var(--surface-2);color:var(--text-muted);font-size:.85rem;letter-spacing:.02em;white-space:nowrap}.data-table tbody tr:last-child td{border-bottom:none}.badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:.82rem;font-weight:700;border:1px solid var(--border);background:var(--surface-2);color:var(--text-muted);white-space:nowrap}.badge-pending{border-color:var(--primary);color:var(--primary)}.badge-joined{border-color:var(--success);color:var(--success)}.badge-revoked{border-color:var(--border);color:var(--text-muted)}.badge-blocked{border-color:var(--danger);color:var(--danger)}.detail-grid{display:grid;grid-template-columns:minmax(180px,auto) 1fr;gap:10px 20px;margin:0 0 20px}.detail-grid dt{color:var(--text-muted);font-weight:600}.detail-grid dd{margin:0;overflow-wrap:anywhere}@media(max-width:720px){.dashboard{grid-template-columns:1fr}.sidebar{border-right:none;border-bottom:1px solid var(--border);min-height:0}.sidebar ul{flex-direction:row;flex-wrap:wrap}.nav-item{width:auto}.nav-logout{margin-top:0;margin-left:auto}.toolbar-filters{margin-left:0;width:100%}.toolbar input[type=text],.toolbar select{min-width:0;flex:1}.detail-grid{grid-template-columns:1fr;gap:4px 0}.detail-grid dd{margin-bottom:12px}}@media print{.no-print{display:none!important}}
