/* MeiDao Pay Demo — Modern UI v7 */
:root {
    --bg: #f4f6fb;
    --bg-elevated: #ffffff;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.12);
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --accent: #06b6d4;
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.08);
    --warning-bg: rgba(245, 158, 11, 0.1);
    --warning-border: rgba(245, 158, 11, 0.3);
    --info-bg: rgba(99, 102, 241, 0.08);
    --info-border: rgba(99, 102, 241, 0.2);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
    --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
    --sidebar-width: 248px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* 背景装饰 */
.app-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 10% -10%, rgba(99, 102, 241, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 50% at 90% 0%, rgba(6, 182, 212, 0.1), transparent 45%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(139, 92, 246, 0.06), transparent 50%),
        var(--bg);
}

/* 整体布局 */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* 左侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid var(--border);
    box-shadow: 2px 0 24px rgba(15, 23, 42, 0.04);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand h1 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.sidebar-brand .sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--primary-glow);
    flex-shrink: 0;
}

.brand-logo svg { width: 20px; height: 20px; }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px 24px;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.1); border-radius: 2px; }

.nav-group { margin-bottom: 20px; }

.nav-group-label {
    padding: 0 12px 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 2px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.65;
    transition: opacity var(--transition);
}

.nav-item:hover {
    color: var(--text);
    background: rgba(99, 102, 241, 0.06);
}

.nav-item:hover .nav-icon { opacity: 1; }

.nav-item.active {
    color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    box-shadow: inset 3px 0 0 var(--primary);
}

.nav-item.active .nav-icon {
    opacity: 1;
    color: var(--primary);
}

/* 右侧主区域 */
.main-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 28px;
    background: rgba(244, 246, 251, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.topbar-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.topbar-logout {
    text-decoration: none;
}
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    animation: pulse 2s ease infinite;
}

.status-dot.ok {
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 主内容 */
.page-main {
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 28px 56px;
}

.page-panel { display: none; }
.page-panel.is-active {
    display: block;
    animation: fadeUp 0.35s ease;
}

[hidden] { display: none !important; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-title {
    display: none;
}

.page-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

/* 卡片 */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.card:hover { box-shadow: var(--shadow-lg); }

.card-title {
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.8), transparent);
}

.card-body { padding: 20px; }

.notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.notice-warn {
    background: var(--warning-bg);
    border-color: var(--warning-border);
}

/* 表单 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.form-row.single { grid-template-columns: 1fr; }

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field.span-all { grid-column: 1 / -1; }

.field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.field label em {
    color: var(--danger);
    font-style: normal;
}

.field input,
.field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #f8fafc;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field input::placeholder { color: var(--text-muted); }

.field input:hover,
.field select:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.field input[readonly] {
    background: #f1f5f9;
    color: var(--text-muted);
    cursor: default;
}

.field-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.field-btns {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn:active:not(:disabled) { transform: scale(0.98); }

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 4px 16px var(--primary-glow);
    filter: brightness(1.05);
}

.btn-secondary {
    color: var(--text);
    background: #fff;
    border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--primary-light);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.04);
}

.btn-danger {
    color: var(--danger);
    background: var(--danger-bg);
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.14);
}

.btn-success {
    color: #fff;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.88;
    gap: 8px;
}

.btn.is-loading.btn-primary {
    opacity: 0.95;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-spinner,
.result-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    flex-shrink: 0;
    vertical-align: middle;
}

.btn.is-loading .btn-spinner {
    width: 15px;
    height: 15px;
}

.result-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

.result-box.is-loading {
    background: #f8fafc;
    color: var(--text-secondary);
    border: 1px dashed var(--border-strong);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-box.is-loading .result-loading {
    padding: 0;
}

/* 结果区 */
.result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tag.ok {
    background: var(--success-bg);
    color: #059669;
}

.tag.err {
    background: var(--danger-bg);
    color: var(--danger);
}

.code {
    display: block;
    width: 100%;
    padding: 16px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 420px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.code::-webkit-scrollbar { width: 6px; height: 6px; }
.code::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* 签名工具 */
.sign-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.sign-line {
    display: grid;
    grid-template-columns: 1fr 1fr 40px;
    gap: 10px;
    align-items: center;
}

.sign-line input {
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: #f8fafc;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.sign-line input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* 通知列表 */
.notify-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notify-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.notify-item:hover { box-shadow: var(--shadow); }

.notify-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    gap: 8px;
    flex-wrap: wrap;
}

.notify-badge {
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
}

.notify-badge.payment_notify { background: rgba(99, 102, 241, 0.12); color: var(--primary-dark); }
.notify-badge.dfpay_notify { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.notify-badge.payment_callback { background: var(--success-bg); color: #059669; }

.notify-time { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.notify-body { padding: 12px 16px; }

.sign-ok { color: var(--success); font-size: 11px; margin-left: 8px; font-weight: 500; }
.sign-fail { color: var(--danger); font-size: 11px; margin-left: 8px; font-weight: 500; }

.empty-tip {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 14px;
}

/* 操作日志 */
.log-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.log-tools input[type=search] {
    padding: 9px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    width: 200px;
    font-size: 13px;
    font-family: inherit;
    background: #f8fafc;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.log-tools input[type=search]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: #fff;
}

.log-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-chip {
    padding: 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.filter-chip:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.filter-chip.on {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-color: transparent;
    box-shadow: 0 2px 6px var(--primary-glow);
}

.log-tools-right {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.log-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.log-table th {
    text-align: left;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.log-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.log-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

.log-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.log-table tbody tr {
    transition: background var(--transition);
}

.log-table tbody tr:hover td {
    background: rgba(99, 102, 241, 0.03);
}

.log-table tbody tr:last-child td:first-child { border-radius: 0 0 0 var(--radius-sm); }
.log-table tbody tr:last-child td:last-child { border-radius: 0 0 var(--radius-sm) 0; }

.log-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 32px !important;
}

.st-ok { color: var(--success); font-weight: 600; }
.st-fail { color: var(--danger); font-weight: 600; }
.st-neutral { color: var(--text-muted); }

.text-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    transition: color var(--transition);
}

.text-link:hover { color: var(--primary-dark); }

.text-clip {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    color: var(--text-secondary);
    vertical-align: bottom;
}

/* 弹窗 */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.overlay.open { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dialog {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.dialog-head h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.dialog-head p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.dialog-close {
    border: none;
    background: #f1f5f9;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    color: var(--text-secondary);
    transition: background var(--transition);
}

.dialog-close:hover {
    background: #e2e8f0;
    color: var(--text);
}

.dialog-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 20px 0;
    border-bottom: 1px solid var(--border);
}

.dialog-tab {
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition), border-color var(--transition);
}

.dialog-tab.on {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.dialog-body {
    padding: 16px 20px 20px;
    overflow: auto;
}

/* 回调页 */
.callback-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg);
}

.callback-box {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.callback-icon {
    width: 56px;
    height: 56px;
    background: var(--success-bg);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.08);
}

/* 登录页 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 40px 36px 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-logo {
    margin: 0 auto 20px;
}

.login-card h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.login-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.login-error {
    padding: 10px 14px;
    margin-bottom: 16px;
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 13px;
    text-align: left;
}

.login-form {
    text-align: left;
}

.login-form .field {
    margin-bottom: 20px;
}

.login-submit {
    width: 100%;
    padding: 12px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 72px;
    }

    .sidebar-brand {
        padding: 16px 12px;
        justify-content: center;
    }

    .sidebar-brand > div:last-child,
    .nav-group-label,
    .nav-text {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 12px;
    }

    .nav-item.active {
        box-shadow: none;
        background: rgba(99, 102, 241, 0.15);
    }

    .main-area { margin-left: 72px; }

    .topbar { padding: 12px 16px; }
    .topbar-title { font-size: 15px; }

    .page-main { padding: 16px 14px 48px; }
    .page-title { font-size: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .field.span-all { grid-column: 1; }
    .log-tools-right { margin-left: 0; width: 100%; }
    .log-tools input[type=search] { width: 100%; }
}
