:root { color-scheme: light; --ink: #17233c; --muted: #647083; --line: #dce2ea; --paper: #fff; --wash: #f4f7fa; --blue: #155eef; --blue-dark: #0d46bb; --red: #b42318; --green: #067647; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--wash); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue-dark); }
.shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: #101828; color: #fff; }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
nav { display: flex; gap: 8px; }
nav a { color: #cbd5e1; padding: 8px 10px; text-decoration: none; border-radius: 6px; }
nav a.active, nav a:hover { background: #26344f; color: #fff; }
.account { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.account form { margin: 0; }
.link-button { padding: 0; background: none; border: 0; color: #dbeafe; text-decoration: underline; }
.page { padding-top: 34px; padding-bottom: 64px; }
h1, h2 { line-height: 1.2; margin: 0; }
h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.025em; }
h2 { font-size: 20px; }
.eyebrow { color: var(--blue-dark); font-size: 12px; font-weight: 800; letter-spacing: .12em; margin: 0 0 7px; text-transform: uppercase; }
.muted, .hint { color: var(--muted); }
.small { font-size: 13px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
button, .button { appearance: none; border: 0; border-radius: 7px; background: var(--blue); color: #fff; cursor: pointer; display: inline-block; font: inherit; font-weight: 700; padding: 11px 17px; text-decoration: none; }
button:hover, .button:hover { background: var(--blue-dark); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #84adff; outline-offset: 2px; }
.auth-card, .panel-form, fieldset, .danger-zone { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 3px rgb(16 24 40 / 5%); }
.auth-card { margin: 8vh auto 0; max-width: 500px; padding: clamp(24px, 5vw, 44px); }
.auth-card .muted { margin: 13px 0 28px; }
.stack { display: grid; gap: 10px; }
.stack button { margin-top: 8px; width: 100%; }
.secondary-link { display: inline-block; margin-top: 22px; font-size: 14px; }
label, legend { font-weight: 700; }
input, textarea { background: #fff; border: 1px solid #aeb8c6; border-radius: 7px; color: var(--ink); font: inherit; padding: 10px 11px; width: 100%; }
input[type="checkbox"] { height: 18px; width: 18px; }
.code-input { font-size: 28px; letter-spacing: .35em; text-align: center; }
.alert { border: 1px solid; border-radius: 8px; margin-bottom: 22px; padding: 13px 16px; }
.alert ul { margin-bottom: 0; }
.alert.success { background: #ecfdf3; border-color: #abefc6; color: var(--green); }
.alert.error { background: #fef3f2; border-color: #fecdca; color: var(--red); }
.search-form { display: flex; gap: 10px; margin-bottom: 20px; max-width: 700px; align-items: center; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { background: #f8fafc; color: #475467; font-size: 12px; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 15px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.actions { text-align: right; }
.audit-table { min-width: 1050px; }
.audit-table time { white-space: nowrap; }
.audit-details { max-width: 320px; }
.audit-action { border-radius: 10px; display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 8px; text-transform: uppercase; white-space: nowrap; }
.audit-action-login { background: #eaf2ff; color: var(--blue-dark); }
.audit-action-created { background: #dcfae6; color: var(--green); }
.audit-action-updated { background: #fff4e5; color: #93370d; }
.audit-action-deleted { background: #fee4e2; color: var(--red); }
.empty { color: var(--muted); padding: 40px; text-align: center; }
.logo-thumb, .logo-placeholder { border-radius: 7px; height: 44px; object-fit: contain; width: 44px; }
.logo-placeholder { align-items: center; background: #e8eef8; color: #344054; display: inline-flex; font-weight: 800; justify-content: center; }
.badge { background: #eaf2ff; border-radius: 10px; color: var(--blue-dark); font-size: 11px; margin-left: 5px; padding: 2px 7px; text-transform: uppercase; }
.pagination { align-items: center; justify-content: center; margin-top: 22px; }
.pagination span, .pagination a { color: var(--muted); padding: 7px 10px; }
.pagination a { color: var(--blue-dark); }
.form-grid { display: grid; gap: 20px; }
fieldset { border: 1px solid var(--line); display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 24px; }
legend { background: #fff; font-size: 18px; padding: 0 7px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.span-2 { grid-column: span 2; }
.hint { font-size: 12px; font-weight: 400; }
.check { align-items: center; display: flex; gap: 9px; }
.current-logo { align-items: center; display: flex; gap: 14px; grid-column: span 2; }
.current-logo img { background: var(--wash); border: 1px solid var(--line); height: 90px; object-fit: contain; width: 130px; }
.form-actions { align-items: center; display: flex; gap: 18px; margin-top: 22px; }
.privacy-link-panel { align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; display: flex; gap: 12px; margin-bottom: 22px; padding: 14px 16px; }
.privacy-link-content { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.privacy-link-label { font-size: 13px; font-weight: 700; }
.privacy-link-content a { overflow-wrap: anywhere; }
.copy-button { align-items: center; background: #eaf2ff; color: var(--blue-dark); display: inline-flex; flex: 0 0 auto; justify-content: center; padding: 9px; }
.copy-button:hover { background: #dbe8ff; }
.copy-button svg { height: 20px; width: 20px; }
.copy-button.copied { background: #dcfae6; color: var(--green); }
.copy-status { color: var(--green); flex: 0 0 auto; font-size: 13px; font-weight: 700; min-width: 46px; }
.copy-helper { height: 1px; opacity: 0; pointer-events: none; position: fixed; width: 1px; }
.panel-form { display: grid; gap: 18px; max-width: 650px; padding: 24px; }
.panel-form .form-actions { margin-top: 4px; }
.danger-zone { border-color: #fecdca; margin-top: 36px; max-width: 650px; padding: 24px; }
.danger-zone p { color: var(--muted); }
button.danger { background: var(--red); }
.secondary-button { background: #e8eef8; color: var(--ink); }
.secondary-button:hover { background: #dce4ef; }
.modal { background: transparent; border: 0; max-width: min(480px, calc(100% - 32px)); padding: 0; width: 100%; }
.modal::backdrop { background: rgb(16 24 40 / 68%); }
.modal-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px rgb(16 24 40 / 24%); padding: 26px; }
.modal-card p { color: var(--muted); margin: 12px 0 24px; }
.modal-actions { align-items: center; display: flex; gap: 12px; justify-content: flex-end; }
.modal-actions form { margin: 0; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 700px) { .header-inner { align-items: flex-start; flex-wrap: wrap; gap: 10px 18px; padding: 14px 0; } .account { width: 100%; } .page-heading { align-items: flex-start; } fieldset { grid-template-columns: 1fr; padding: 18px; } .span-2, .current-logo { grid-column: span 1; } .search-form { align-items: stretch; flex-direction: column; } .privacy-link-panel { align-items: flex-start; flex-wrap: wrap; } .copy-status { align-self: center; } .modal-actions { align-items: stretch; flex-direction: column-reverse; } .modal-actions button, .modal-actions form { width: 100%; } .modal-actions form button { width: 100%; } th:nth-child(3), td:nth-child(3), th:nth-child(5), td:nth-child(5) { display: none; } }
