/* ==========================================================================
   SD-WAN 管理面样式 —— 现代简约风格
   设计要点：中性色为底、单一强调色、克制的阴影、充足留白、清晰层级
   ========================================================================== */

:root {
    /* 色板
       说明：强调色取品牌橙（Logo 实测主色 ≈#EB6F08）的深一档，
       既呼应品牌又满足正文级对比度；成功/警示色同样加深以保证可读性。 */
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-hover: #f2f4f7;
    --border: #ebedf0;
    --border-strong: #dfe3e8;
    --text: #0f1729;
    --text-muted: #5b6472;
    --text-faint: #6b7280;
    --primary: #14161f;
    --primary-hover: #262a38;
    --brand: #eb6f08;
    --accent: #c25500;
    --accent-hover: #a84800;
    --success: #0a7a55;
    --success-bg: #e9f8f1;
    --danger: #c0332e;
    --danger-bg: #fdeeee;
    --warning: #9a5b00;
    --warning-bg: #fdf4e7;

    /* 左侧菜单（深色）+ 顶栏 */
    --sidebar-w: 216px;
    --sidebar-w-collapsed: 64px;
    --sidebar-bg: #1c1f27;
    --sidebar-bg-hover: #272b36;
    --sidebar-bg-active: #2c313d;
    --sidebar-border: #2a2e39;
    --sidebar-text: #9aa3b2;
    --sidebar-text-hover: #e6e9ef;
    --topbar-h: 58px;

    /* 圆角与阴影 */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 41, .04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 41, .05), 0 1px 2px rgba(15, 23, 41, .03);
    --shadow-md: 0 4px 14px rgba(15, 23, 41, .07);
    --shadow-lg: 0 16px 48px rgba(15, 23, 41, .14);

    /* 过渡 */
    --ease: cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── 整体骨架：左侧菜单 + 右侧顶栏/内容区 ── */
.layout { display: flex; min-height: 100vh; }

/* ── 左侧菜单（深色） ── */
.sidebar {
    position: sticky;
    top: 0;
    z-index: 200;
    flex: none;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    overflow: hidden;
    transition: width .2s var(--ease);
}
.sidebar-brand {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--topbar-h);
    padding: 0 16px;
    border-bottom: 1px solid var(--sidebar-border);
}
.sidebar-brand img {
    display: block;
    width: auto;
    height: 30px;
    transition: height .2s var(--ease);
}
.sidebar-menu { flex: 1; padding: 12px 10px; overflow-x: hidden; overflow-y: auto; }

.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    height: 42px;
    padding: 0 12px;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .16s var(--ease), color .16s var(--ease);
}
.menu-item:hover { background: var(--sidebar-bg-hover); color: var(--sidebar-text-hover); }
.menu-item.active {
    background: var(--sidebar-bg-active);
    color: #fff;
    font-weight: 520;
}
/* 当前项左侧品牌橙指示条 */
.menu-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 20px;
    margin-top: -10px;
    border-radius: 0 3px 3px 0;
    background: var(--brand);
}
.menu-icon { flex: none; display: flex; width: 20px; height: 20px; }
.menu-icon svg { width: 20px; height: 20px; }
.menu-text { flex: 1; overflow: hidden; text-overflow: ellipsis; }

/* 收起态：仅保留图标 */
html.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
html.sidebar-collapsed .sidebar-brand { padding: 0 12px; }
html.sidebar-collapsed .sidebar-brand img { height: 18px; }
html.sidebar-collapsed .menu-item { justify-content: center; padding: 0; }
html.sidebar-collapsed .menu-text { display: none; }

/* 窄屏浮层遮罩（仅窄屏展开时显示） */
.sidebar-mask { display: none; }

/* ── 主区：顶栏 + 内容 ── */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 150;
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    height: var(--topbar-h);
    padding: 0 24px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.icon-btn {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    transition: background .16s var(--ease), color .16s var(--ease);
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }
.crumb {
    flex: 1;
    font-size: 14.5px;
    font-weight: 560;
    letter-spacing: -.01em;
    color: var(--text);
}
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-right .user-name { color: var(--text-muted); font-size: 13px; }
.topbar-right .logout {
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    color: var(--text-faint);
    font-size: 13px;
    text-decoration: none;
    transition: background .16s var(--ease), color .16s var(--ease);
}
.topbar-right .logout:hover { background: var(--danger-bg); color: var(--danger); }

/* ── 内容区 ── */
.content { flex: 1; min-width: 0; padding: 24px 28px 56px; }

/* 页面工具栏：左侧说明文案 + 右侧操作按钮 */
.page-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.page-desc {
    max-width: 820px;
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.75;
}
/* 页头右侧操作区：横向排列、居中，且自身不随弹性父容器收缩，
   否则窄窗口下会被压窄导致按钮文字逐字换行、并被 stretch 拉成高窄条。 */
.page-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
}

/* ── 表格（卡片式，无竖线） ── */
.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    /* 列多时可横向滚动，避免「操作」列被永久裁掉导致按钮不可点；
       overflow-y 保持 hidden 以保留圆角裁切。 */
    overflow-x: auto;
    overflow-y: hidden;
}
table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 13px 18px;
    text-align: left;
    font-size: 13.5px;
    vertical-align: middle;
}
th {
    background: #fbfcfd;
    border-bottom: 1px solid var(--border);
    font-weight: 560;
    font-size: 12.5px;
    letter-spacing: .01em;
    color: var(--text-muted);
    white-space: nowrap;
}
td { border-bottom: 1px solid #f4f5f7; color: #2c3444; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .14s var(--ease); }
tbody tr:hover { background: var(--surface-hover); }
.empty-row td {
    padding: 52px 18px;
    text-align: center;
    color: var(--text-faint);
    font-size: 13.5px;
}
td a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
td a:hover { text-decoration: underline; }

/* ── 按钮 ── */
button { font-family: inherit; cursor: pointer; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: #374151;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    /* 按钮文字不换行、不随弹性父容器收缩，避免被压成逐字竖排的高窄条 */
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.btn:hover { background: #f8f9fb; border-color: #c9cfd8; }
.btn:active { background: #f1f3f6; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13.5px;
    font-weight: 520;
    line-height: 1.4;
    text-decoration: none;
    /* 同 .btn：文字不换行、不随弹性父容器收缩 */
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .16s var(--ease), box-shadow .16s var(--ease), transform .1s var(--ease);
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(1px); }

.btn-danger { color: var(--danger); border-color: #f0c8c8; }
.btn-danger:hover { background: var(--danger-bg); border-color: #e5aaaa; }

/* 弹窗内主操作：危险动作用实心红，与表单主按钮保持同等视觉权重 */
.btn-danger-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: var(--danger);
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13.5px;
    font-weight: 520;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .16s var(--ease), box-shadow .16s var(--ease), transform .1s var(--ease);
}
.btn-danger-solid:hover {
    background: #a82a26;
    box-shadow: var(--shadow-md);
}
.btn-danger-solid:active { transform: translateY(1px); }

.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: var(--radius-xs); }

.btn:disabled, .btn-primary:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ── 状态徽章 ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 520;
    white-space: nowrap;
}
.badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .75;
}
.badge-active, .badge-online { background: var(--success-bg); color: var(--success); }
.badge-creating, .badge-deleting { background: var(--warning-bg); color: var(--warning); }
.badge-stopped, .badge-bound, .badge-registered { background: #f1f3f6; color: #5c6675; }
.badge-failed { background: var(--danger-bg); color: var(--danger); }
.badge-deleted, .badge-decommissioned { background: #f4f5f7; color: var(--text-faint); }

/* ── 表单 ── */
.form-row { margin-bottom: 18px; }
.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 520;
    color: #3c4658;
}
.form-input {
    width: 100%;
    padding: 9px 13px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.form-input::placeholder { color: #8c95a5; }
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 22, 31, .07);
}
.form-hint { margin-top: 7px; font-size: 12.5px; color: var(--text-faint); line-height: 1.65; }
.form-error { margin-top: 6px; font-size: 12.5px; color: var(--danger); min-height: 1.1em; }
.req { color: var(--danger); }

/* ── 内联面板 ── */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    animation: panel-in .22s var(--ease);
}
@keyframes panel-in {
    from { opacity: 0; transform: translateY(-6px); }
}
.panel-title {
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
}
.panel-actions { display: flex; gap: 10px; margin-top: 4px; }
.panel-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    line-height: 1.75;
}

/* ── 行内代码 ── */
code {
    padding: 2px 6px;
    background: #f4f5f7;
    border-radius: var(--radius-xs);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
    font-size: 12.5px;
    color: #3c4658;
}

/* ── 失败原因 ── */
.fail-reason {
    display: block;
    max-width: 320px;
    margin-top: 5px;
    color: var(--danger);
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
}

/* ── 登录页 ── */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 独立布局，整屏居中 */
    min-height: 100vh;
    padding: 20px;
}
.login-box {
    width: 100%;
    max-width: 396px;
    padding: 40px 36px 34px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.login-logo {
    display: block;
    height: 40px;
    width: auto;
    margin: 0 auto 22px;
}
.login-box h2 {
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 620;
}
.subtitle { margin-bottom: 28px; color: var(--text-muted); font-size: 13.5px; }
.hint {
    margin-top: 20px;
    color: var(--text-faint);
    font-size: 12.5px;
    line-height: 1.7;
}

/* ── 提示条 ── */
.alert-error {
    margin-bottom: 22px;
    padding: 11px 14px;
    background: var(--danger-bg);
    border: 1px solid #f3cfcf;
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 13px;
    text-align: left;
    line-height: 1.6;
}
.alert-warn {
    margin-bottom: 22px;
    padding: 11px 14px;
    background: var(--warning-bg);
    border: 1px solid #f0dcbc;
    border-radius: var(--radius-sm);
    color: var(--warning);
    font-size: 13px;
    text-align: left;
    line-height: 1.6;
}

/* ── Toast ── */
#toast-box {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    min-width: 240px;
    max-width: 400px;
    padding: 13px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 13.5px;
    line-height: 1.55;
    animation: toast-in .22s var(--ease);
}
.toast::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.toast { position: relative; overflow: hidden; }
.toast-success::before { background: var(--success); }
.toast-error::before { background: var(--danger); }
.toast-info::before { background: var(--primary); }
.toast-out { opacity: 0; transform: translateX(14px); transition: all .28s var(--ease); }
@keyframes toast-in {
    from { opacity: 0; transform: translateX(14px); }
}

/* ── 全屏进度遮罩 ── */
#overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 41, .42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.overlay-card {
    min-width: 340px;
    padding: 38px 44px 32px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 20px;
    border: 2.5px solid #eceef2;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.overlay-title { margin-bottom: 9px; font-size: 15px; font-weight: 600; }
.overlay-tip { min-height: 1.5em; color: var(--text-muted); font-size: 13.5px; }
/* 无阶段提示时（如会话失效跳转）不留空白 */
.overlay-tip:empty { display: none; }
.overlay-hint { margin-top: 18px; color: var(--text-faint); font-size: 12px; }

/* ── 确认弹窗 ── */
.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 3500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 41, .38);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: fade-in .16s var(--ease);
}
@keyframes fade-in { from { opacity: 0; } }
.modal-card {
    width: 428px;
    padding: 26px 26px 22px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: modal-in .2s var(--ease);
}
@keyframes modal-in {
    from { opacity: 0; transform: scale(.97) translateY(6px); }
}
.modal-title { margin-bottom: 12px; font-size: 15.5px; font-weight: 620; }
.modal-body {
    margin-bottom: 18px;
    color: #4a5464;
    font-size: 13.5px;
    line-height: 1.75;
}
.modal-input {
    width: 100%;
    margin-bottom: 20px;
    padding: 9px 13px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.modal-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 22, 31, .07);
}
.modal-input::placeholder { color: #8c95a5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ── 一次性凭证（账号 / 密码）── */
.cred-list {
    margin-bottom: 20px;
    padding: 4px 0;
    background: #f8f9fb;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.cred-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
}
.cred-row + .cred-row { border-top: 1px solid var(--border); }
.cred-label {
    flex: none;
    width: 72px;
    color: var(--text-muted);
    font-size: 12.5px;
}
.cred-value {
    flex: 1;
    padding: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 520;
    color: var(--text);
    word-break: break-all;
    user-select: all;
}

/* ── 租户平台：统计卡片 ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.stat-card {
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}
.stat-label { margin-bottom: 8px; color: var(--text-muted); font-size: 12.5px; }
.stat-value {
    font-size: 26px;
    font-weight: 620;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.stat-value .unit { margin-left: 4px; font-size: 14px; font-weight: 500; color: var(--text-faint); }

/* 租户平台登录页：显示当前租户名 */
.login-tenant {
    margin-bottom: 24px;
    color: var(--text);
    font-size: 15px;
    font-weight: 560;
}

/* ── 代码编辑器（策略 / 密钥明文）── */
.code-editor {
    width: 100%;
    min-height: 360px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text);
    resize: vertical;
    tab-size: 2;
}
.code-editor:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 22, 31, .07);
}

/* ── DERP 管理页 ── */
/* 表单栅格：区域/节点属性较多，双列排布更紧凑 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}
.form-grid .form-row { margin-bottom: 0; }
.form-grid .form-span2 { grid-column: 1 / -1; }
.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    color: #3c4658;
    cursor: pointer;
}
select.form-input { height: 40px; }

/* 探测 / 下发结果着色 */
.probe-ok { color: var(--success); font-weight: 550; }
.probe-bad { color: var(--danger); font-weight: 550; }

/* 下发结果里的租户选择器 */
.tenant-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 4px 0;
}
.rolled-log {
    max-height: 200px;
    margin-top: 6px;
    padding: 10px 12px;
    background: #0f1420;
    color: #d6dde8;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
    font-size: 11.5px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-all;
    overflow: auto;
}
.map-preview {
    max-height: 320px;
    margin-top: 12px;
    padding: 14px 16px;
    background: #fbfcfd;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.6;
    white-space: pre;
    overflow: auto;
}
.warn-note {
    margin-bottom: 16px;
    padding: 11px 14px;
    background: var(--warning-bg);
    border: 1px solid #f0e0c0;
    border-radius: var(--radius-sm);
    color: #8a5a12;
    font-size: 13px;
    line-height: 1.7;
}

/* ── 窄屏：侧边栏脱离文档流，默认收起为图标条，展开时浮在内容之上 ── */
@media (max-width: 900px) {
    .sidebar { position: fixed; left: 0; top: 0; }
    .main { margin-left: var(--sidebar-w-collapsed); }
    html:not(.sidebar-collapsed) .sidebar {
        width: var(--sidebar-w);
        box-shadow: var(--shadow-lg);
    }
    html:not(.sidebar-collapsed) .sidebar-mask {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 190;
        background: rgba(15, 23, 41, .42);
    }
    .content { padding: 20px 18px 48px; }
    .topbar { padding: 0 18px; }
}

/* ── 小屏适配 ── */
@media (max-width: 720px) {
    .page-bar { flex-direction: column; align-items: stretch; }
    th, td { padding: 11px 12px; font-size: 13px; }
    .table-wrap { overflow-x: auto; }
    .login-box { padding: 32px 24px 28px; }
}
