:root {
  color-scheme: light;
  font: 15px/1.5 Inter, "Segoe UI", system-ui, sans-serif;
  --ink: #15283d;
  --muted: #52647a;
  --line: #dce5ef;
  --paper: #fff;
  --canvas: #f4f7fb;
  --blue: #075b9b;
  --blue-hover: #064a81;
  --blue-soft: #eaf4ff;
  --danger: #ad2536;
  --success: #166348;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 750; }
h2 { font-size: 1.18rem; line-height: 1.25; letter-spacing: -.025em; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
input, textarea, select {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px;
  border: 1px solid #b7c7d8; border-radius: 9px; color: var(--ink); background: var(--paper);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; }
label { font-weight: 650; font-size: .88rem; }
form > label, .filter-control > label, .search-control > label { display: block; margin-bottom: 6px; }
:focus-visible { outline: 3px solid #277dbe; outline-offset: 3px; }
h1:focus, main:focus { outline: none; }
.wordmark { display: block; object-fit: contain; flex: none; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 3; inset: 12px auto auto 12px; padding: 12px; border-radius: 8px; color: var(--blue); background: white; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.wrappable { overflow-wrap: anywhere; }
.eyebrow { font-size: .72rem; line-height: 1.35; font-weight: 760; letter-spacing: .115em; text-transform: uppercase; color: var(--blue); }
.stack { display: grid; gap: 14px; align-content: start; }

.button, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-weight: 650; border: 1px solid transparent; border-radius: 9px; }
.button { padding: 9px 16px; text-align: center; transition: background-color .16s, border-color .16s; }
.primary { background: var(--blue); color: white; }
.primary:hover:not(:disabled) { background: var(--blue-hover); }
.secondary { background: white; color: var(--ink); border-color: #c8d6e4; }
.secondary:hover:not(:disabled) { background: #eef5fc; border-color: #aac1d8; }
.danger { color: white; background: var(--danger); }
.danger:hover:not(:disabled) { background: #8f1d2c; }
.text-button { padding: 7px 4px; color: var(--blue); background: transparent; text-align: left; }
.text-button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.notice { border: 1px solid; border-radius: 10px; padding: 11px 14px; overflow-wrap: anywhere; }
.notice.error { color: #8a2030; border-color: #efcbd1; background: #fff3f5; }
.notice.success { color: #16553f; border-color: #c1e3d3; background: #effbf4; }

.sign-in { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 430px); justify-content: center; align-content: center; min-height: 100dvh; padding: 36px; }
.sign-in-card, .sign-in-art { min-height: 520px; }
.sign-in-card { padding: clamp(28px, 5vw, 56px); background: white; border: 1px solid var(--line); border-radius: 23px 0 0 23px; box-shadow: 0 14px 56px #18365812; }
.sign-in-card .wordmark { margin: 0 0 30px; }
.sign-in-card .eyebrow { margin-bottom: 9px; }
.sign-in-card h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.sign-in-card h1 + p { margin-top: 10px; overflow-wrap: anywhere; }
.sign-in-card .notice, .sign-in-card > button { margin-top: 14px; }
.sign-in-card form { margin-top: 23px; }
.sign-in-card input { margin-bottom: 16px; }
.sign-in-card form > .button { width: 100%; margin-top: 4px; }
.verification-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; margin-top: 9px; }
.sign-in-art { position: relative; isolation: isolate; border-radius: 0 23px 23px 0; overflow: hidden; background: radial-gradient(circle at 65% 24%, #126aa6, #093c66 45%, #072740 82%); }
.sign-in-art::before { content: ""; position: absolute; inset: 0; opacity: .2; background: repeating-linear-gradient(0deg, transparent 0 39px, #a0ccf8 40px), repeating-linear-gradient(90deg, transparent 0 39px, #a0ccf8 40px); mask-image: radial-gradient(ellipse at 65% 40%, #000 12%, transparent 75%); }
.route-ring { position: absolute; inset: 12% -15% 12% 0; border: 1px solid #81c8f170; border-radius: 50%; transform: rotate(-34deg); }
.ring-two { inset: 20% -3% 20% 9%; transform: rotate(28deg); }
.ring-three { inset: 26% 12% 26% 14%; transform: rotate(-67deg); border-style: dashed; }
.route-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #97d8ff; box-shadow: 0 0 0 8px #97d8ff2b; }
.dot-one { top: 24%; left: 71%; }
.dot-two { top: 62%; left: 21%; width: 10px; height: 10px; }
.dot-three { top: 43%; left: 42%; background: #ff8059; box-shadow: 0 0 0 10px #ff805947; }
.art-label { position: absolute; bottom: 34px; left: 32px; font-size: 1.55rem; line-height: 1.15; font-weight: 720; letter-spacing: -.04em; color: #fff; }
.art-label span { font-size: .84rem; font-weight: 500; letter-spacing: .015em; color: #c9e2f4; }

.workspace { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { display: flex; flex-direction: column; min-width: 0; gap: 29px; position: sticky; top: 0; align-self: start; min-height: 100dvh; padding: 24px 18px 20px; border-right: 1px solid var(--line); background: white; }
.brand { display: flex; align-items: center; gap: 7px; padding: 0 3px; }
.brand-tag { border: 1px solid #d4e5f6; border-radius: 6px; padding: 3px 6px; background: #f4f9ff; color: var(--blue); font-size: .74rem; font-weight: 750; }
.navigation { display: grid; gap: 4px; }
.navigation button { display: flex; align-items: center; gap: 11px; min-height: 44px; width: 100%; border: 1px solid transparent; border-radius: 9px; padding: 9px 12px; color: var(--muted); background: transparent; font-weight: 650; text-align: left; }
.navigation button:hover { background: #f1f6fc; color: var(--blue); }
.navigation [aria-current="page"] { background: var(--blue-soft); border-color: #d9eafb; color: #0d548b; }
.nav-icon { display: block; position: relative; width: 17px; height: 17px; flex: none; }
.accounts-icon::before { content: ""; position: absolute; top: 0; left: 5px; width: 7px; height: 7px; border: 1.6px solid currentColor; border-radius: 50%; }
.accounts-icon::after { content: ""; position: absolute; inset: 9px 1px 0; border: 1.6px solid currentColor; border-radius: 8px 8px 3px 3px; }
.reports-icon { width: 15px; margin-right: 2px; border: 1.6px solid currentColor; border-radius: 3px; }
.reports-icon::before { content: ""; position: absolute; inset: 4px 3px auto; height: 1.5px; background: currentColor; box-shadow: 0 4px currentColor; }
.activity-icon { border: 1.6px solid currentColor; border-radius: 50%; }
.activity-icon::before { content: ""; position: absolute; inset: 3px 3px 6px 6px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; }
.sidebar-footer { margin-top: auto; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.owner-copy { min-width: 0; font-size: .85rem; line-height: 1.3; }
.owner-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-copy span { color: var(--muted); }
.sidebar-footer .text-button { font-size: .82rem; white-space: nowrap; }
.avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid #d7e7f9; border-radius: 10px; background: var(--blue-soft); color: #164b75; font-size: .8rem; font-weight: 720; }
#main { min-width: 0; padding: clamp(20px, 4vw, 54px); }
.content-width { max-width: 1340px; margin-inline: auto; }
.content-width > .notice { margin-bottom: 16px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.page-header .eyebrow { margin-bottom: 8px; }
.page-header h1 + p { margin-top: 9px; color: var(--muted); }
.page-header > .badge { align-self: center; }
.refresh-button { align-self: flex-end; }
.surface { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 2px 4px #19365205; min-width: 0; }
.toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 17px 18px; }
.search-control { flex: 1 1 240px; }
.filter-control { flex: 0 1 160px; }
.input-with-icon { position: relative; }
.input-with-icon input { padding-left: 36px; }
.search-icon { pointer-events: none; position: absolute; top: 14px; left: 13px; width: 13px; height: 13px; border: 1.7px solid #5f748d; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.6px; top: 9px; left: 8px; transform: rotate(45deg); background: #5f748d; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
.data-table th { text-align: left; background: #f8fafd; font-size: .76rem; color: #465971; letter-spacing: .025em; }
.data-table :is(th, td) { border-top: 1px solid var(--line); padding: 12px 13px; vertical-align: middle; }
.data-table :is(th, td):first-child { padding-left: 18px; }
.data-table :is(th, td):last-child { padding-right: 18px; text-align: right; }
.data-table tbody tr:hover { background: #f7fbff; }
.data-table td:last-child .button { min-height: 38px; padding: 6px 10px; white-space: nowrap; font-size: .84rem; }
.account-name { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.account-name .avatar { width: 35px; height: 35px; }
.account-name strong { display: block; }
.account-name small { display: block; color: var(--muted); font-size: .8rem; }
.table-message { padding: 24px 18px; border-top: 1px solid var(--line); }
.surface-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; min-height: 54px; padding: 10px 18px; border-top: 1px solid var(--line); }
.table-footnote { margin: 13px 2px 0; color: var(--muted); font-size: .84rem; }
.badge { display: inline-block; max-width: 100%; border-radius: 999px; padding: 4px 9px; border: 1px solid #dbe5f0; background: #f4f7fb; color: #42556e; font-size: .78rem; line-height: 1.2; font-weight: 700; }
.badge.active, .badge.resolved { color: #165c44; background: #eaf8f0; border-color: #d3ebdf; }
.badge.suspended { color: #98283a; background: #fceff1; border-color: #f4dce0; }
.badge.pro, .badge.max, .badge.received { color: #104e85; background: #edf5ff; border-color: #d6e6f8; }
.badge.reviewing { color: #805306; background: #fff6df; border-color: #f3e6c5; }

.record-list, .history-list { margin: 0; padding: 0; list-style: none; }
.record-list > li { display: flex; align-items: center; gap: 14px; justify-content: space-between; border-top: 1px solid var(--line); padding: 15px 18px; }
.record-content { min-width: 0; overflow-wrap: anywhere; }
.record-content strong { display: block; margin-bottom: 3px; }
.record-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .83rem; }
.record-list .button { flex: none; }
.record-reason { margin-top: 6px; white-space: pre-wrap; }
.back-link { margin-bottom: 10px; }
.back-link::before { content: ""; width: 7px; height: 7px; border-bottom: 1.7px solid currentColor; border-left: 1.7px solid currentColor; transform: rotate(45deg); }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.detail-card { padding: 19px; }
.detail-card h2 { margin-bottom: 13px; }
.detail-card :is(p, textarea) { white-space: pre-wrap; }
.detail-card #report-content > * + * { margin-top: 9px; }
.detail-card select, .detail-card textarea { margin-bottom: 13px; }
.detail-card #report-actions .button { justify-self: start; }
.report-media { display: block; width: 100%; max-height: 380px; object-fit: contain; border-radius: 10px; background: #eff4fa; }
.history-list > li + li { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); }
.history-list strong { display: block; }
.history-list p { overflow-wrap: anywhere; }

dialog { width: min(470px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 23px; overflow: auto; border: 1px solid #cbd9e8; border-radius: 16px; color: var(--ink); background: white; box-shadow: 0 20px 70px #0a1d3870; }
dialog::backdrop { background: #101e36a6; }
dialog h2 { margin: 7px 0 9px; font-size: 1.4rem; overflow-wrap: anywhere; }
dialog h2 + p { margin-bottom: 15px; }
dialog .notice { margin-bottom: 12px; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 14px; }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: 202px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .data-table :is(th, td) { padding-inline: 10px; }
}
@media (max-width: 950px) {
  .workspace { display: block; }
  .sidebar { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand owner" "nav nav"; gap: 9px 16px; min-height: auto; padding: 12px 17px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { grid-area: brand; padding: 0; }
  .sidebar-footer { grid-area: owner; margin: 0; padding: 0; border-top: 0; }
  .navigation { grid-area: nav; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .navigation button { justify-content: center; }
}
@media (max-width: 750px) {
  .sign-in { grid-template-columns: minmax(0, 440px); padding: 19px; }
  .sign-in-card { min-height: 0; border-radius: 18px; }
  .sign-in-art { display: none; }
  .report-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  #main { padding: 22px 13px; }
  .sidebar { padding: 9px 12px; gap: 8px; }
  .sidebar-footer .owner-avatar, .sidebar-footer .owner-copy { display: none; }
  .sidebar-footer { display: block; }
  .navigation button { gap: 6px; padding-inline: 4px; font-size: .87rem; }
  .page-header { margin-bottom: 18px; }
  .toolbar { padding: 13px; gap: 9px; }
  .search-control { flex-basis: 100%; }
  .filter-control { flex: 1 1 130px; }
  .data-table, .data-table tbody { display: block; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 13px; border-top: 1px solid var(--line); padding: 13px; }
  .data-table tr td { display: block; padding: 0 !important; border: 0; text-align: left !important; }
  .data-table td:first-child { grid-column: 1 / -1; }
  .data-table td::before { display: block; content: attr(data-label); font-size: .74rem; color: var(--muted); margin-bottom: 3px; }
  .data-table td:not([data-label])::before { content: none; }
  .data-table td:last-child { grid-column: 1 / -1; }
  .data-table td:last-child .button { min-height: 44px; }
  .record-list > li { flex-wrap: wrap; padding: 13px; }
  .table-message, .surface-footer { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
