:root {
    --ink: #17211d;
    --muted: #66726c;
    --line: #dfe5e1;
    --soft: #f3f6f4;
    --paper: #ffffff;
    --accent: #15a369;
    --accent-dark: #087a4b;
    --lime: #d9f99d;
    --danger: #c83a4b;
    --sidebar: #101b17;
    --shadow: 0 18px 50px rgba(23, 33, 29, .1);
    --radius: 8px;
}

* { box-sizing: border-box; }
html { font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: var(--ink); background: var(--soft); }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { letter-spacing: 0; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }
:focus-visible { outline: 3px solid rgba(21, 163, 105, .28); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.eyebrow { margin: 0 0 7px; color: var(--accent-dark); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; }

.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; text-decoration: none; transition: background .16s, color .16s, border-color .16s, transform .16s; }
.button { min-height: 42px; gap: 8px; padding: 0 17px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 7px 18px rgba(21, 163, 105, .2); }
.button-primary:hover { background: var(--accent-dark); }
.button-ghost { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.button-ghost:hover { background: var(--soft); }
.button-block { width: 100%; }
.icon-button { width: 36px; height: 36px; flex: 0 0 36px; padding: 0; color: var(--muted); background: transparent; border-radius: 6px; }
.icon-button:hover { color: var(--ink); background: #edf2ef; }
.icon-button.bordered { border: 1px solid var(--line); background: #fff; }
.icon-button.danger:hover { color: var(--danger); background: #fff0f1; }

.brand, .auth-brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-size: 18px; font-weight: 700; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 7px; color: #0c2419; background: var(--lime); }
.brand-mark svg { width: 19px; height: 19px; stroke-width: 2.4; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; width: 238px; padding: 24px 18px; color: #eaf4ef; background: var(--sidebar); }
.sidebar .brand { padding: 0 9px; }
.nav { margin-top: 46px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; color: #95a79e; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-item.active { color: #fff; background: rgba(217, 249, 157, .1); }
.nav-item.active svg { color: var(--lime); }
.sidebar-foot { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-foot .icon-button:hover { color: #fff; background: rgba(255,255,255,.1); }
.admin-chip { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.admin-chip > span:last-child { display: flex; flex-direction: column; }
.admin-chip strong { font-size: 13px; }
.admin-chip small { margin-top: 2px; color: #82938b; font-size: 11px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: #173025; background: #e6efe9; border-radius: 50%; font-size: 12px; font-weight: 700; }

.main-content { min-height: 100vh; margin-left: 238px; padding: 34px clamp(24px, 4vw, 60px) 56px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.topbar > div { min-width: 0; }
.topbar h1 { margin: 0; font-size: 27px; line-height: 1.2; letter-spacing: 0; }
.mobile-menu { display: none; }

.alert { display: flex; align-items: center; gap: 10px; min-height: 46px; margin: 0 0 18px; padding: 9px 12px 9px 14px; border: 1px solid; border-radius: var(--radius); font-size: 13px; }
.alert > span { flex: 1; }
.alert-success { color: #14613f; background: #e9f8f0; border-color: #bce7cf; }
.alert-error { color: #8f2632; background: #fff1f2; border-color: #f2c5ca; }
.alert .icon-button { margin-left: auto; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric { min-height: 148px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.metric-dark { color: #fff; background: var(--sidebar); border-color: var(--sidebar); }
.metric-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; }
.metric-dark .metric-head { color: #9caea5; }
.metric-head svg { width: 17px; }
.metric strong { display: block; margin-top: 19px; font-size: 30px; line-height: 1; letter-spacing: 0; }
.metric small { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; }
.metric-dark small { color: #84978e; }
.mini-chart { display: flex; align-items: flex-end; gap: 5px; height: 57px; margin-top: 18px; }
.bar-wrap { display: flex; align-items: flex-end; height: 100%; flex: 1; }
.bar { display: block; width: 100%; min-height: 6px; background: var(--accent); border-radius: 2px 2px 0 0; }
.bar-wrap:nth-child(odd) .bar { background: #9bd6b9; }

.workspace { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 82px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: 17px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.filters { display: flex; align-items: center; gap: 8px; }
.search { display: flex; align-items: center; gap: 8px; width: min(290px, 25vw); height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21,163,105,.1); }
.search svg { width: 16px; color: #8c9892; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.filters select { height: 38px; padding: 0 30px 0 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 43px; padding: 0 14px; color: #77827d; background: #fafbfa; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-size: 10px; font-weight: 600; text-transform: uppercase; }
td { min-height: 76px; padding: 14px; border-bottom: 1px solid #edf0ee; color: #4f5b55; white-space: nowrap; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdfc; }
.link-cell { display: flex; align-items: center; gap: 11px; width: 37%; min-width: 320px; white-space: normal; }
.link-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; color: var(--accent-dark); background: #eaf7f0; border-radius: 7px; }
.link-icon.large { width: 42px; height: 42px; }
.link-info { display: flex; flex-direction: column; min-width: 0; }
.link-info strong { margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.short-line { display: flex; align-items: center; gap: 4px; }
.short-line a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: #7b8881; background: transparent; border: 0; border-radius: 4px; cursor: pointer; }
.copy-button:hover { color: var(--accent-dark); background: #eaf7f0; }
.copy-button svg { width: 13px; }
.link-info small { display: block; max-width: 390px; margin-top: 3px; color: #929d97; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-active { color: #087a4b; background: #e7f7ee; }
.status-muted { color: #707b76; background: #edf0ee; }
.click-count { display: block; color: var(--ink); font-size: 13px; }
.cell-label { display: block; margin-top: 2px; color: #9aa49f; font-size: 9px; }
.visit-link { display: inline-block; text-decoration: none; }
.visit-link:hover .click-count, .visit-link:hover .cell-label { color: var(--accent-dark); }
.actions { text-align: right; }
.actions form, .actions > a { display: inline-flex; vertical-align: middle; }
.empty-state { display: flex; align-items: center; flex-direction: column; padding: 58px 24px 62px; text-align: center; }
.empty-state > span { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; color: var(--accent-dark); background: #e9f6ef; border-radius: 50%; }
.empty-state h3 { margin: 16px 0 5px; font-size: 16px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }

.create-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.create-dialog::backdrop { background: rgba(10, 20, 16, .55); backdrop-filter: blur(2px); }
.dialog-panel { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; width: min(520px, 100%); min-height: 100%; background: #fff; box-shadow: -22px 0 55px rgba(0,0,0,.15); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 27px 28px 22px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 21px; }
.dialog-body { display: flex; flex-direction: column; gap: 20px; padding: 28px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 9px; margin-top: auto; padding: 20px 28px; border-top: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 8px; color: #46514c; font-size: 12px; font-weight: 600; }
.field b { color: var(--danger); }
.field input { width: 100%; height: 42px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid #d7ded9; border-radius: 6px; outline: 0; font-size: 13px; font-weight: 400; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21,163,105,.1); }
.field input::placeholder { color: #abb4af; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prefix-input, .input-wrap { position: relative; display: flex; align-items: center; }
.prefix-input em { position: absolute; left: 12px; z-index: 1; color: #849089; font-style: normal; font-weight: 500; }
.prefix-input input { padding-left: 25px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; align-items: center; gap: 8px; padding: 11px 15px; color: #fff; background: var(--sidebar); border-radius: 6px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; font-size: 12px; }
.toast.visible { opacity: 1; transform: translateY(0); }

.narrow-content { max-width: 1040px; }
.back-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-size: 12px; }
.back-link:hover { color: var(--accent-dark); }
.back-link svg { width: 14px; }
.edit-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.edit-summary { display: flex; align-items: center; gap: 13px; padding: 20px 24px; background: #f9fbfa; border-bottom: 1px solid var(--line); }
.edit-summary p { margin: 0 0 3px; color: var(--muted); font-size: 11px; }
.edit-summary a { color: var(--accent-dark); font-size: 13px; font-weight: 600; text-decoration: none; }
.edit-form { display: flex; flex-direction: column; gap: 20px; padding: 26px 24px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.visit-summary { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px; align-items: stretch; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.visit-summary-main { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 24px 26px; }
.visit-summary-main div { min-width: 0; }
.visit-summary-main strong, .visit-summary-main a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visit-summary-main strong { margin-top: 3px; font-size: 18px; }
.visit-summary-main a { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; color: var(--accent-dark); font-size: 13px; font-weight: 600; text-decoration: none; }
.visit-summary-main a svg { width: 14px; height: 14px; }
.summary-label { color: var(--muted); font-size: 12px; font-weight: 500; }
.visit-link-mark { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 48px; color: #10221a; background: var(--lime); border-radius: 7px; }
.visit-link-mark svg { width: 22px; height: 22px; stroke-width: 2.2; }
.visit-stat { display: flex; flex-direction: column; justify-content: center; padding: 20px 24px; background: #f9fbfa; border-left: 1px solid var(--line); }
.visit-stat strong { display: block; margin-top: 7px; color: var(--ink); font-size: 28px; line-height: 1; }
.visit-stat span { color: var(--muted); font-size: 12px; font-weight: 500; }
.visits-panel { margin-top: 20px; }
.record-count { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.record-count svg { width: 16px; }
.visit-list-head, .visit-row { display: grid; grid-template-columns: minmax(190px, .9fr) 170px minmax(180px, 1fr) minmax(210px, 1.1fr); column-gap: 22px; align-items: center; }
.visit-list-head { min-width: 880px; padding: 13px 24px; color: #79847e; background: #f8faf9; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.visit-list { overflow-x: auto; }
.visit-row { min-width: 880px; min-height: 86px; padding: 16px 24px; border-bottom: 1px solid #edf0ee; }
.visit-row:last-child { border-bottom: 0; }
.visit-row:hover { background: #fbfdfc; }
.visit-ip-cell, .visit-source, .visit-device { display: flex; align-items: center; gap: 11px; min-width: 0; }
.visit-ip-cell > div, .visit-source > div, .visit-device > div { min-width: 0; }
.ip-status { width: 8px; height: 8px; flex: 0 0 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px #e7f7ee; }
.ip-status.unknown { background: #a2aaa6; box-shadow: 0 0 0 4px #eef1ef; }
.ip-address { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 16px; font-weight: 700; }
.visit-row strong { display: block; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.visit-row small { display: block; margin-top: 5px; overflow: hidden; color: #89938e; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.visit-time strong { font-size: 14px; }
.source-icon, .device-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; color: var(--accent-dark); background: #eef7f2; border-radius: 6px; }
.source-icon svg, .device-icon svg { width: 16px; height: 16px; }
.device-icon { color: #53605a; background: #f0f2f1; }
.traffic-summary { display: grid; grid-template-columns: minmax(0, 1fr) 180px 180px; overflow: hidden; background: var(--sidebar); border-radius: var(--radius); color: #fff; }
.traffic-summary > div { display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 22px 26px; }
.traffic-summary > div:first-child p { margin: 0; }
.traffic-summary > div:first-child strong, .traffic-summary > div:first-child small { display: block; }
.traffic-summary > div:first-child strong { font-size: 17px; }
.traffic-summary > div:first-child small { margin-top: 5px; color: #93a49b; font-size: 12px; }
.traffic-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; color: #10221a; background: var(--lime); border-radius: 7px; }
.traffic-stat { flex-direction: column; align-items: flex-start !important; justify-content: center; gap: 8px !important; background: rgba(255,255,255,.04); border-left: 1px solid rgba(255,255,255,.1); }
.traffic-stat span { color: #9baba3; font-size: 12px; }
.traffic-stat strong { font-size: 28px; line-height: 1; }
.recent-visit-list .visit-list-head, .recent-visit-list .visit-row { grid-template-columns: minmax(180px, 1.1fr) minmax(155px, .8fr) minmax(160px, .95fr) 140px minmax(150px, .85fr); column-gap: 16px; min-width: 900px; }
.visited-link { display: flex; align-items: center; gap: 11px; min-width: 0; }
.visited-link > div { min-width: 0; }
.visited-link a { display: block; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; text-decoration: none; }
.visited-link a:hover { color: var(--accent-dark); }

.auth-page { background: #fff; }
.auth-shell { display: grid; grid-template-columns: minmax(400px, 44%) 1fr; min-height: 100vh; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 470px; margin: 0 auto; padding: 48px clamp(34px, 5vw, 74px); }
.auth-brand { position: absolute; top: 36px; }
.auth-copy { margin-bottom: 30px; }
.auth-copy h1 { margin: 0 0 9px; font-size: 29px; letter-spacing: 0; }
.auth-copy > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.stack-form { display: flex; flex-direction: column; gap: 17px; }
.input-wrap svg { position: absolute; left: 12px; width: 16px; color: #859089; }
.input-wrap input { padding-left: 39px; }
.auth-foot { margin: 23px 0 0; color: #8b9690; text-align: center; font-size: 10px; }
.auth-foot code { color: #5c6862; background: #f1f4f2; padding: 2px 4px; border-radius: 3px; }
.auth-visual { position: relative; display: flex; align-items: flex-end; overflow: hidden; margin: 14px; padding: 56px; color: #fff; background: #14251e; border-radius: 8px; }
.auth-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, black); }
.auth-visual::after { content: ""; position: absolute; width: 420px; height: 420px; right: -100px; top: -80px; border: 1px solid rgba(217,249,157,.28); border-radius: 50%; box-shadow: 0 0 0 80px rgba(217,249,157,.03), 0 0 0 160px rgba(217,249,157,.02); }
.visual-content { position: relative; z-index: 1; }
.visual-content > p { color: var(--lime); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.visual-content > strong { display: block; margin: 14px 0 34px; font-size: clamp(32px, 4vw, 58px); line-height: 1.25; letter-spacing: 0; }
.route-demo { display: inline-flex; align-items: center; gap: 34px; min-width: 290px; padding: 15px 17px; color: #17251f; background: var(--lime); border-radius: 6px; font-size: 12px; font-weight: 700; }
.route-demo svg { margin-left: auto; }

.message-page { background: var(--sidebar); }
.message-shell { min-height: 100vh; padding: 35px clamp(22px, 5vw, 70px); color: #fff; }
.message-panel { max-width: 680px; margin: 15vh auto 0; }
.message-code { color: var(--lime); font-size: 72px; font-weight: 700; line-height: 1; }
.message-panel h1 { margin: 20px 0 10px; font-size: 35px; }
.message-panel p { margin: 0 0 28px; color: #a2b2aa; }

@media (max-width: 1100px) {
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-shell { grid-template-columns: minmax(390px, 48%) 1fr; }
    .auth-visual { padding: 34px; }
}

@media (max-width: 760px) {
    .sidebar { width: 220px; transform: translateX(-100%); transition: transform .2s; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 22px 16px 40px; }
    .mobile-menu { display: inline-flex; margin: 0 0 10px -7px; }
    .topbar { align-items: flex-end; }
    .topbar h1 { font-size: 23px; }
    .topbar .button { padding: 0 12px; }
    .section-heading { align-items: stretch; flex-direction: column; }
    .filters { width: 100%; }
    .search { width: auto; flex: 1; }
    .filters select { max-width: 112px; }
    .auth-shell { display: block; }
    .auth-panel { min-height: 100vh; max-width: 520px; padding: 96px 25px 40px; }
    .auth-brand { top: 28px; }
    .auth-visual { display: none; }
    .visit-summary { grid-template-columns: 1fr 1fr; }
    .visit-summary-main { grid-column: 1 / -1; }
    .visit-stat { min-height: 88px; border-top: 1px solid var(--line); }
    .visit-stat:nth-child(2) { border-left: 0; }
    .visit-list-head { display: none; }
    .visit-list { overflow: visible; padding: 10px; }
    .visit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; min-width: 0; min-height: 0; margin-bottom: 10px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
    .visit-row:last-child { margin-bottom: 0; border-bottom: 1px solid var(--line); }
    .visit-row > div::before { content: attr(data-label); display: block; margin-bottom: 8px; color: #8a958f; font-size: 11px; font-weight: 700; }
    .visit-ip-cell, .visit-source, .visit-device { display: block; }
    .visit-ip-cell .ip-status, .source-icon, .device-icon { display: none; }
    .traffic-summary { grid-template-columns: 1fr 1fr; }
    .traffic-summary > div:first-child { grid-column: 1 / -1; }
    .traffic-stat { min-height: 88px !important; border-top: 1px solid rgba(255,255,255,.1); }
    .traffic-stat:nth-child(2) { border-left: 0; }
    .recent-visit-list .visit-row { grid-template-columns: 1fr 1fr; min-width: 0; }
    .recent-visit-list .visited-link { display: block; grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .metrics { grid-template-columns: 1fr 1fr; gap: 9px; }
    .metric { min-height: 130px; padding: 15px; }
    .metric strong { margin-top: 17px; font-size: 25px; }
    .chart-card { display: none; }
    .metrics .metric:first-child { grid-column: span 2; }
    .topbar .button { width: 42px; padding: 0; }
    .topbar .button svg { margin: 0; }
    .topbar .button { font-size: 0; }
    .filters { flex-wrap: wrap; }
    .search { flex-basis: calc(100% - 46px); }
    .filters select { flex: 1; max-width: none; }
    .form-grid { grid-template-columns: 1fr; }
    .dialog-head, .dialog-body, .dialog-foot { padding-left: 19px; padding-right: 19px; }
    .message-code { font-size: 55px; }
    .message-panel h1 { font-size: 27px; }
    .visit-summary-main { padding: 20px; }
    .visit-stat { padding: 17px 20px; }
    .visit-stat strong { font-size: 25px; }
    .visit-row { grid-template-columns: 1fr; }
    .ip-address { font-size: 17px; }
    .traffic-summary > div { padding: 19px 20px; }
    .recent-visit-list .visit-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

