/* ==========================================================
   机械铸造 ERP  —— 轻量样式（无外部依赖，可离线运行）
   ========================================================== */
:root {
    --primary: #b7772a;
    --primary-dark: #8f591e;
    --bg: #f1f3f5;
    --panel: #ffffff;
    --border: #e2e7ef;
    --text: #18222d;
    --muted: #74808d;
    --green: #2e9e6b;
    --red: #d9534f;
    --orange: #e08a2c;
    --sidebar: #0c1620;
    --sidebar-hover: #162534;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; }

/* ---------- 布局 ---------- */
.layout { display: flex; width: 100%; min-height: 100vh; }
.sidebar {
    width: 216px; flex: 0 0 216px; background: var(--sidebar); color: #cfd8e3;
    position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid #2c3948; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 8px; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
}
.brand-mark.big { width: 52px; height: 52px; font-size: 24px; margin: 0 auto 10px; }
.brand-text strong { display: block; color: #fff; font-size: 15px; }
.brand-text span { display: block; font-size: 11px; color: #8d9aab; }
.menu { padding: 8px 0 24px; }
.menu-group { margin-bottom: 2px; }
.menu-title {
    display: flex; align-items: center; gap: 8px; padding: 9px 16px; cursor: pointer;
    font-size: 13px; color: #aeb9c8; user-select: none;
}
.menu-title:hover { background: var(--sidebar-hover); color: #fff; }
.menu-icon {
    width: 20px; height: 20px; border-radius: 5px; background: #33455a; color: #cfe0f2;
    display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px;
}
.menu-title .arrow { margin-left: auto; border: 4px solid transparent; border-top-color: #7c8899; transform: translateY(3px); }
.menu-group.open .menu-title .arrow { transform: rotate(180deg) translateY(-2px); }
.menu-items { list-style: none; margin: 0; padding: 0; display: none; }
.menu-group.open .menu-items { display: block; }
.menu-items li a {
    display: block; padding: 7px 16px 7px 44px; color: #b8c4d2; font-size: 13px;
}
.menu-items li a:hover { background: var(--sidebar-hover); color: #fff; text-decoration: none; }
.menu-items li a.active { background: var(--primary); color: #fff; }

.main { flex: 1; margin-left: 216px; display: flex; flex-direction: column; min-width: 0; }
.topbar {
    height: 54px; background: #fff; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
    position: sticky; top: 0; z-index: 10;
}
.crumb-mod { color: var(--muted); font-size: 13px; }
.crumb-sep { color: #c6cedb; margin: 0 6px; }
.crumb-page { font-weight: 600; }
.user-box { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.user-role { color: var(--muted); }
.content { padding: 18px 20px 30px; flex: 1; }
.footer { padding: 12px 20px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); background: #fff; }

/* ---------- 通用组件 ---------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 16px; }
.card-head {
    padding: 11px 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px;
    background: #fafbfd; border-radius: 8px 8px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.card-body { padding: 14px 16px; }
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.page-title { font-size: 19px; }
.page-sub { color: var(--muted); font-size: 12px; margin-left: 10px; }
.toolbar-right { display: flex; gap: 8px; }

.btn {
    display: inline-block; padding: 6px 14px; border-radius: 5px; border: 1px solid var(--border);
    background: #fff; color: var(--text); cursor: pointer; font-size: 13px; line-height: 1.5;
}
.btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-danger { background: #fff; border-color: #e6b3b1; color: var(--red); }
.btn-danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-mini { padding: 3px 9px; font-size: 12px; }
.btn-outline { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-block { display: block; width: 100%; padding: 9px; font-size: 15px; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { background: #f7f9fc; color: #566275; font-weight: 600; white-space: nowrap; }
.table tbody tr:hover { background: #fafcff; }
.table.mini th, .table.mini td { padding: 5px 8px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
.col-ops { white-space: nowrap; width: 1%; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }

.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; line-height: 18px; white-space: nowrap; }
.badge-gray { background: #eef1f6; color: #6b7688; }
.badge-blue { background: #e5eff9; color: #2f6fb5; }
.badge-green { background: #e4f5ec; color: #2e9e6b; }
.badge-orange { background: #fdf1e0; color: #d1802a; }
.badge-red { background: #fbeaea; color: #d9534f; }

.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 13px; }
.alert-success { background: #e9f7ef; color: #22795a; border: 1px solid #c6e9d7; }
.alert-danger { background: #fbeceb; color: #b5443f; border: 1px solid #f2cdcb; }
.alert-warning { background: #fdf5e8; color: #96631a; border: 1px solid #f0dcb8; }

/* ---------- 表单 ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filter-bar .form-control { width: auto; min-width: 150px; }
.form-grid { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.form-item { padding: 0 8px 12px; width: 50%; }
.form-item.col-12 { width: 100%; }
.form-item.col-4 { width: 33.33%; }
.form-item.col-3 { width: 25%; }
.form-item label { display: block; font-size: 12px; color: #566275; margin-bottom: 4px; }
.form-item label em { color: var(--red); font-style: normal; }
.form-control {
    width: 100%; padding: 6px 9px; border: 1px solid #d5dce6; border-radius: 5px; font-size: 13px;
    background: #fff; color: var(--text); height: 32px;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(47,111,181,.12); }
textarea.form-control { height: auto; min-height: 62px; resize: vertical; }
select.form-control { padding: 4px 6px; }
.form-actions { padding: 4px 0 20px; display: flex; gap: 10px; }
.inline-form { display: inline; }
.lines .form-control { min-width: 110px; }
.lines td { padding: 6px; }
.lines .form-item { width: 100%; padding: 0; }
.lines .form-item label { display: none; }

/* ---------- 看板 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi {
    background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px;
    display: flex; flex-direction: column; gap: 2px;
}
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-value { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.kpi-sub { font-size: 12px; color: var(--muted); font-style: normal; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart { display: block; max-width: 100%; }
.chart-inline { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.legend { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend b { margin-left: auto; }
.progress { height: 8px; background: #eef1f6; border-radius: 5px; overflow: hidden; min-width: 90px; }
.progress.big { height: 12px; }
.progress-bar { height: 100%; background: var(--primary); }
.progress-bar.warn { background: var(--orange); }
.progress-text { font-size: 12px; color: var(--muted); }

.board { columns: 2; column-gap: 16px; }
.board-card { break-inside: avoid; margin-bottom: 16px; }
.board-sub { color: var(--muted); font-weight: 400; font-size: 12px; }
.board-meta { font-size: 12px; color: var(--muted); margin: 6px 0 10px; }

.pager { padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.pager-info { color: var(--muted); font-size: 12px; }

/* ---------- 登录 / 错误页 ---------- */
.plain-page { background: linear-gradient(135deg, #eef2f7, #dfe7f1); min-height: 100vh; }
.plain-box { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card { width: 380px; background: #fff; border-radius: 10px; padding: 28px; box-shadow: 0 8px 30px rgba(31,42,55,.12); }
.login-head { text-align: center; margin-bottom: 18px; }
.login-head h2 { font-size: 18px; margin-bottom: 4px; }
.login-head p { color: var(--muted); font-size: 12px; margin: 0; }
.login-tip { text-align: center; color: var(--muted); font-size: 12px; margin: 14px 0 0; }
.login-card .form-item { width: 100%; padding: 0 0 12px; }
.error-box { background: #fff; border-radius: 10px; padding: 30px 36px; max-width: 640px; box-shadow: 0 8px 30px rgba(31,42,55,.12); }
.error-box h2 { margin-bottom: 10px; }
.err-msg { color: var(--red); }
.err-detail { background: #f7f9fc; padding: 10px; border-radius: 6px; font-size: 12px; color: var(--muted); white-space: pre-wrap; }

@media (max-width: 1200px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .board { columns: 1; }
}
@media (max-width: 900px) {
    .sidebar { width: 60px; flex-basis: 60px; }
    .brand-text, .menu-items li a { display: none; }
    .menu-group.open .menu-items li a { display: block; padding-left: 16px; }
    .main { margin-left: 60px; }
    .form-item { width: 100%; }
}

/* ==========================================================
   2026 经营中台视觉升级：登录、主导航、经营看板
   ========================================================== */

/* ---------- 主框架与导航 ---------- */
.sidebar {
    width: 248px;
    flex: 0 0 248px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(circle at 0 0, rgba(183,119,42,.18), transparent 30%),
        linear-gradient(180deg, #111e2b 0%, #09121b 100%);
    border-right: 1px solid rgba(255,255,255,.055);
    box-shadow: 12px 0 36px rgba(8,18,27,.08);
    z-index: 40;
}
.brand {
    min-height: 92px;
    padding: 18px 18px 16px;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(135deg, rgba(255,255,255,.035), transparent);
}
.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px 4px 12px 4px;
    color: #fff8ee;
    font-size: 21px;
    background: linear-gradient(145deg, #d49a4d, #985d1f);
    box-shadow: 0 8px 22px rgba(183,119,42,.3), inset 0 1px 0 rgba(255,255,255,.32);
}
.brand-text { min-width: 0; }
.brand-text .brand-kicker {
    color: #c89655;
    font-size: 9px;
    line-height: 1;
    letter-spacing: 1.7px;
    margin-bottom: 5px;
}
.brand-text strong { font-size: 15px; letter-spacing: .4px; line-height: 1.25; }
.brand-text span:last-child { color: #728191; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-caption {
    padding: 18px 20px 7px;
    color: #536273;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}
.menu {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 2px 10px 18px;
    scrollbar-width: thin;
    scrollbar-color: #344250 transparent;
}
.menu-group { margin: 3px 0; }
.menu-title {
    width: 100%;
    min-height: 43px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #91a0b0;
    padding: 8px 11px;
    font-family: inherit;
    text-align: left;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}
.menu-title:hover,
.menu-group.open > .menu-title {
    color: #f4f7fa;
    background: rgba(255,255,255,.055);
}
.menu-title:focus-visible { outline: 2px solid #c58a3d; outline-offset: 1px; }
.menu-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px 3px 7px 3px;
    color: #c7d0d9;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.055);
    transition: color .2s ease, background .2s ease;
}
.menu-group.open .menu-icon {
    color: #ffe2b5;
    background: rgba(183,119,42,.22);
    border-color: rgba(218,159,82,.18);
}
.menu-title .arrow {
    width: 7px;
    height: 7px;
    border: 0;
    border-right: 1px solid #687787;
    border-bottom: 1px solid #687787;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}
.menu-group.open .menu-title .arrow { transform: rotate(225deg) translate(-1px,-1px); }
.menu-items { margin: 3px 0 7px; padding: 1px 0 1px 42px; position: relative; }
.menu-items::before { content: ""; position: absolute; left: 23px; top: 1px; bottom: 1px; width: 1px; background: rgba(255,255,255,.08); }
.menu-items li { position: relative; }
.menu-items li a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 35px;
    padding: 7px 10px 7px 12px;
    border-radius: 6px;
    color: #8391a0;
    font-size: 12px;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.menu-items li a:hover { background: rgba(255,255,255,.045); color: #eef2f5; text-decoration: none; transform: translateX(2px); }
.menu-items li a.active {
    color: #fff7ea;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(183,119,42,.32), rgba(183,119,42,.09));
    box-shadow: inset 2px 0 0 #d89b4c;
}
.menu-items li a.active i { width: 5px; height: 5px; border-radius: 50%; background: #e4ae67; box-shadow: 0 0 8px rgba(228,174,103,.8); }
.sidebar-foot {
    margin: 0 12px 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 9px;
    color: #718091;
    background: rgba(255,255,255,.025);
}
.sidebar-foot-icon { color: #68b593; font-size: 18px; }
.sidebar-foot strong, .sidebar-foot span { display: block; }
.sidebar-foot strong { color: #aeb9c3; font-size: 11px; font-weight: 600; }
.sidebar-foot span { font-size: 9px; margin-top: 1px; }
.sidebar-logout { display: none; }
.sidebar-backdrop { display: none; }

/* 浅色主导航：与白蓝登录页统一，并提高文字对比度。 */
.sidebar {
    color: #344863;
    background: #f6f9ff;
    border-right: 1px solid #dce5f1;
    box-shadow: 6px 0 24px rgba(41, 68, 108, .035);
}
.sidebar .brand { background: #fff; border-bottom-color: #e0e8f3; }
.sidebar .brand-mark { color: #fff; background: #3168fa; box-shadow: 0 6px 16px rgba(49,104,250,.16); }
.sidebar .brand-text strong { color: #20334d; }
.sidebar .brand-text .brand-kicker { color: #4768a1; }
.sidebar .brand-text span:last-child { color: #657891; }
.sidebar .menu-caption { color: #687d97; }
.sidebar .menu { scrollbar-color: #bdcbe0 transparent; }
.sidebar .menu-title { color: #405672; font-size: 14px; }
.sidebar .menu-title:hover { color: #2255d5; background: #eaf0fb; }
.sidebar .menu-group.open > .menu-title { color: #244d9e; background: #eaf0fb; }
.sidebar .menu-title:focus-visible { outline-color: #3168fa; }
.sidebar .menu-icon { color: #526b8c; background: #e9eff8; border-color: #d9e3f1; font-size: 13px; }
.sidebar .menu-group.open .menu-icon { color: #2c5ddb; background: #dde8ff; border-color: #c8d9ff; }
.sidebar .menu-title .arrow { border-right-color: #778ba6; border-bottom-color: #778ba6; }
.sidebar .menu-items::before { background: #d4deec; }
.sidebar .menu-items li a { color: #4b6180; font-size: 13px; }
.sidebar .menu-items li a:hover { color: #2458da; background: #e9f0ff; }
.sidebar .menu-items li a.active { color: #fff; background: #3168fa; box-shadow: 0 4px 12px rgba(49,104,250,.15); }
.sidebar .menu-items li a.active i { background: #fff; box-shadow: none; }
.sidebar .sidebar-foot { border-color: #dce6f3; color: #60738c; background: #edf3fc; }
.sidebar .sidebar-foot-icon { color: #2c8064; }
.sidebar .sidebar-foot strong { color: #405b7a; }
.sidebar .sidebar-logout { color: #315ead; border-color: #d1def3; background: #eaf1ff; }
.sidebar .sidebar-logout:hover { color: #204bd3; background: #dee9ff; }

.main { margin-left: 248px; }
.topbar {
    height: 66px;
    padding: 0 24px;
    border-color: #e6e9ed;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 3px 14px rgba(15,27,39,.035);
}
.topbar-start { display: flex; align-items: center; gap: 14px; }
.sidebar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    padding: 9px;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.sidebar-toggle span { display: block; height: 2px; margin: 3px 0; border-radius: 2px; background: #374451; }
.crumb { display: flex; align-items: center; }
.crumb-mod { color: #8a949e; font-size: 12px; }
.crumb-sep { color: #c4cbd2; margin: 0 8px; }
.crumb-page { color: #1c2732; font-size: 14px; }
.user-box { gap: 9px; }
.user-avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px 3px 9px 3px;
    color: #fff9f0;
    font-weight: 700;
    background: linear-gradient(145deg, #ca8c3e, #9c6324);
}
.user-meta { display: flex; min-width: 64px; flex-direction: column; line-height: 1.25; }
.user-name { color: #27323d; font-size: 12px; }
.user-role { color: #929ba5; font-size: 10px; margin-top: 2px; }
.logout-link { margin-left: 5px; padding-left: 14px; border-left: 1px solid #e6e9ed; color: #65717d; font-size: 12px; }
.logout-link:hover { color: var(--primary); text-decoration: none; }
.content { width: 100%; min-width: 0; max-width: none; padding: 24px 26px 36px; }
.footer { display: flex; justify-content: space-between; background: transparent; border-top-color: #e2e6ea; padding: 13px 26px; }

/* ---------- 登录页 ---------- */
.plain-page {
    background:
        radial-gradient(circle at 12% 16%, rgba(200,139,60,.13), transparent 26%),
        #0b151f;
}
.plain-box { min-height: 100vh; padding: 0; flex-direction: column; }
.plain-box > .alert { position: fixed; top: 20px; left: 50%; z-index: 80; min-width: 300px; transform: translateX(-50%); box-shadow: 0 12px 36px rgba(0,0,0,.2); }
.auth-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(520px, 1.15fr) minmax(430px, .85fr);
    background: #f7f7f5;
}
.auth-brand-panel {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 46px clamp(48px, 6vw, 92px) 34px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(8,17,25,.18), rgba(8,17,25,.82)),
        radial-gradient(circle at 74% 34%, rgba(194,129,48,.26), transparent 24%),
        linear-gradient(145deg, #172b3b 0%, #0c1823 50%, #07111a 100%);
}
.auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .2;
    background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom right, #000, transparent 72%);
}
.auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -210px;
    bottom: -190px;
    border: 1px solid rgba(218,158,79,.28);
    border-radius: 50%;
    box-shadow: 0 0 0 54px rgba(218,158,79,.035), 0 0 0 108px rgba(218,158,79,.025);
}
.auth-brand-top, .auth-brand-copy, .auth-capabilities, .auth-brand-footer { position: relative; z-index: 1; }
.auth-brand-top { display: flex; align-items: center; gap: 14px; }
.auth-brand-mark {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px 5px 15px 5px;
    font-size: 25px;
    font-weight: 700;
    color: #fff8ec;
    background: linear-gradient(145deg, #d29a51, #9a5c1f);
    box-shadow: 0 14px 32px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.35);
}
.auth-brand-top strong { display: block; margin-top: 3px; font-size: 17px; letter-spacing: .7px; }
.auth-eyebrow { display: block; color: #b98546; font-size: 9px; letter-spacing: 2.5px; }
.auth-brand-copy { max-width: 660px; margin: auto 0 46px; }
.auth-kicker { display: inline-flex; align-items: center; gap: 12px; color: #c99351; font-size: 12px; letter-spacing: 1px; }
.auth-kicker::before { content: ""; width: 32px; height: 1px; background: #c99351; }
.auth-brand-copy h1 { margin: 22px 0 22px; font-size: clamp(42px, 4.2vw, 66px); line-height: 1.16; letter-spacing: 1px; font-weight: 600; }
.auth-brand-copy p { max-width: 570px; margin: 0; color: #8f9dab; font-size: 15px; line-height: 2; }
.auth-capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 40px; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.auth-capabilities div { padding: 20px 20px 20px 0; }
.auth-capabilities div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.1); }
.auth-capabilities span { display: block; color: #a66c2b; font: 600 10px/1 Arial, sans-serif; letter-spacing: 1px; }
.auth-capabilities strong { display: block; margin: 8px 0 4px; font-size: 13px; color: #e6eaed; }
.auth-capabilities small { color: #6f7e8c; font-size: 10px; }
.auth-brand-footer { display: flex; align-items: center; gap: 9px; color: #647482; font-size: 10px; letter-spacing: .5px; }
.auth-brand-footer i { width: 1px; height: 12px; background: rgba(255,255,255,.13); }
.auth-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #6fbd98; box-shadow: 0 0 10px rgba(111,189,152,.65); }
.auth-form-panel { display: flex; align-items: center; justify-content: center; padding: 48px clamp(42px, 5vw, 86px); background: #f7f7f5; }
.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-form-head { margin-bottom: 40px; }
.auth-form-kicker { color: #b47a32; font: 700 10px/1 Arial, sans-serif; letter-spacing: 2.4px; }
.auth-form-head h2 { margin: 13px 0 8px; color: #17232e; font-size: 30px; letter-spacing: 1px; }
.auth-form-head p { margin: 0; color: #8a949c; font-size: 13px; }
.auth-field { margin-bottom: 21px; }
.auth-field label { display: block; margin-bottom: 8px; color: #4b5863; font-size: 12px; font-weight: 600; }
.auth-input-wrap { position: relative; }
.auth-input-wrap .form-control {
    height: 50px;
    padding: 10px 64px 10px 46px;
    border-color: #dfe3e5;
    border-radius: 6px;
    color: #202b35;
    font-size: 14px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-input-wrap .form-control:focus { border-color: #bd8137; box-shadow: 0 0 0 3px rgba(183,119,42,.11); }
.auth-input-icon { position: absolute; left: 16px; top: 50%; z-index: 1; transform: translateY(-50%); color: #9c713d; font-size: 12px; }
.auth-password-toggle { position: absolute; right: 14px; top: 50%; z-index: 2; transform: translateY(-50%); border: 0; padding: 5px; color: #a16d2e; font: 12px/1.2 inherit; background: transparent; cursor: pointer; }
.auth-password-toggle:hover { color: #6f4619; }
.auth-submit {
    width: 100%;
    height: 52px;
    margin-top: 10px;
    padding: 0 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 6px;
    color: #fffaf2;
    font: 600 14px/1 inherit;
    letter-spacing: .5px;
    background: linear-gradient(100deg, #ae6f25, #c88b3d);
    box-shadow: 0 12px 26px rgba(166,104,33,.22);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(166,104,33,.28); }
.auth-submit:focus-visible { outline: 3px solid rgba(183,119,42,.28); outline-offset: 3px; }
.auth-security { margin: 25px 0 0; text-align: center; color: #a4acb2; font-size: 10px; letter-spacing: .4px; }
.auth-security span { color: #b67b33; }

/* ---------- 经营看板 ---------- */
.dashboard-shell { width: 100%; min-width: 0; max-width: none; margin: 0; }
.dashboard-hero {
    position: relative;
    overflow: hidden;
    min-height: 156px;
    margin-bottom: 18px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    border-radius: 14px 5px 14px 5px;
    background:
        radial-gradient(circle at 78% 20%, rgba(205,148,72,.24), transparent 28%),
        linear-gradient(115deg, #132838, #0d1924 72%);
    box-shadow: 0 14px 34px rgba(12,26,38,.12);
}
.dashboard-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -82px; top: -116px; border: 1px solid rgba(216,155,75,.23); border-radius: 50%; box-shadow: 0 0 0 36px rgba(216,155,75,.035), 0 0 0 72px rgba(216,155,75,.025); }
.dashboard-hero > * { position: relative; z-index: 1; }
.dashboard-eyebrow { color: #c79250; font: 700 9px/1 Arial, sans-serif; letter-spacing: 2.4px; }
.dashboard-hero h1 { margin: 8px 0 6px; font-size: 29px; letter-spacing: 1px; }
.dashboard-hero p { margin: 0; color: #8f9ba5; font-size: 12px; }
.dashboard-date { min-width: 150px; padding-left: 25px; border-left: 1px solid rgba(255,255,255,.12); }
.dashboard-date span, .dashboard-date strong { display: block; }
.dashboard-date span { color: #8a98a4; font-size: 10px; }
.dashboard-date strong { margin-top: 5px; color: #e6e9eb; font-size: 15px; font-weight: 500; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.dashboard-metric {
    position: relative;
    min-height: 126px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    border: 1px solid #e5e8eb;
    border-radius: 10px 3px 10px 3px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(20,32,43,.035);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dashboard-metric:hover { transform: translateY(-2px); border-color: #d8dde1; box-shadow: 0 10px 25px rgba(20,32,43,.07); }
.dashboard-metric-icon { width: 35px; height: 35px; flex: 0 0 35px; display: flex; align-items: center; justify-content: center; border-radius: 9px 3px 9px 3px; color: #8e642f; font-size: 12px; font-weight: 700; background: #faf2e7; border: 1px solid #f0dfc8; }
.dashboard-metric-main { min-width: 0; display: flex; flex-direction: column; }
.dashboard-metric-main > span { color: #7d8791; font-size: 11px; }
.dashboard-metric-main > strong { margin: 4px 0 3px; color: #17232e; font-size: 23px; line-height: 1.25; letter-spacing: .2px; }
.dashboard-metric-main > small { color: #9ba3aa; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-metric-index { position: absolute; right: 13px; top: 10px; color: #edf0f2; font: 700 22px/1 Arial, sans-serif; }
.dashboard-metric--primary { color: #fff; border-color: #142a3b; background: linear-gradient(140deg, #173247, #0f202e); }
.dashboard-metric--primary .dashboard-metric-icon { color: #ffe3b6; background: rgba(196,132,49,.2); border-color: rgba(221,163,88,.18); }
.dashboard-metric--primary .dashboard-metric-main > span { color: #92a2af; }
.dashboard-metric--primary .dashboard-metric-main > strong { color: #fff; }
.dashboard-metric--primary .dashboard-metric-main > small { color: #708393; }
.dashboard-metric--primary .dashboard-metric-index { color: rgba(255,255,255,.055); }
.dashboard-metric--success .dashboard-metric-icon { color: #257556; background: #eaf6f0; border-color: #d5ecdf; }
.dashboard-metric--warning .dashboard-metric-icon { color: #b56f1c; background: #fff5e7; border-color: #f6e2c2; }
.dashboard-metric--danger .dashboard-metric-icon { color: #a94943; background: #fdf0ef; border-color: #f3d8d5; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dashboard-grid--charts { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.dashboard-panel { min-width: 0; overflow: hidden; border: 1px solid #e4e8eb; border-radius: 11px 3px 11px 3px; background: #fff; box-shadow: 0 5px 18px rgba(20,32,43,.035); }
.dashboard-panel-head { min-height: 66px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #edf0f2; background: #fff; }
.dashboard-panel-head div > span { display: block; margin-bottom: 4px; color: #b17a37; font: 700 8px/1 Arial, sans-serif; letter-spacing: 1.6px; }
.dashboard-panel-head h2 { color: #26323d; font-size: 14px; font-weight: 600; }
.dashboard-panel-head em { color: #a0a8af; font-size: 10px; font-style: normal; }
.dashboard-panel-status { padding: 2px 8px; border-radius: 10px; color: #698575; font-size: 9px; background: #eef6f1; }
.dashboard-panel-body { padding: 16px 18px; }
.dashboard-panel-body--flush { padding: 0; }
.dashboard-chart-body { min-height: 258px; display: flex; align-items: center; }
.dashboard-chart-body .chart { width: 100%; }
.dashboard-donut { min-height: 258px; justify-content: center; }
.dashboard-donut .legend { flex: 1; min-width: 130px; }
.dashboard-donut .legend li { padding: 5px 0; color: #7d8790; font-size: 11px; border-bottom: 1px dashed #edf0f2; }
.dashboard-donut .legend i { width: 8px; height: 8px; border-radius: 50%; }
.dashboard-donut .legend b { color: #303b45; }
.dashboard-donut .empty-state { justify-content: center; border: 0; color: #a3abb2; }
.dashboard-table-wrap { width: 100%; overflow-x: auto; }
.dashboard-table { min-width: 520px; }
.dashboard-table th, .dashboard-table td { padding: 11px 16px; border-color: #edf0f2; }
.dashboard-table th { color: #8a949d; font-size: 10px; font-weight: 600; letter-spacing: .2px; background: #fafbfb; }
.dashboard-table td { color: #5a6671; font-size: 11px; }
.dashboard-table tbody tr:hover { background: #fcfaf7; }
.dashboard-table a { color: #9b6425; font-weight: 600; }
.dashboard-table .progress { height: 5px; background: #edf0f2; }
.dashboard-table .progress-bar { background: linear-gradient(90deg, #a76722, #d49a4d); }
.dashboard-table .progress-text { font-size: 9px; }
.dashboard-panel--reports { margin-bottom: 0; }

@media (max-width: 1280px) {
    .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid--charts { grid-template-columns: 1fr; }
    .dashboard-donut { min-height: 220px; }
}

@media (max-width: 960px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand-panel { min-height: auto; padding: 30px 32px 34px; }
    .auth-brand-copy { margin: 58px 0 34px; }
    .auth-brand-copy h1 { font-size: 42px; }
    .auth-capabilities, .auth-brand-footer { display: none; }
    .auth-form-panel { min-height: 560px; padding: 54px 32px; }
}

@media (max-width: 900px) {
    body.sidebar-open { overflow: hidden; }
    .sidebar {
        width: 260px;
        flex-basis: 260px;
        transform: translateX(-102%);
        transition: transform .25s ease;
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .brand-text { display: block; }
    .menu-items li a,
    .menu-group.open .menu-items li a { display: flex; padding: 7px 10px 7px 12px; }
    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 35;
        display: block;
        border: 0;
        visibility: hidden;
        opacity: 0;
        background: rgba(6,13,20,.58);
        backdrop-filter: blur(2px);
        transition: opacity .25s ease, visibility .25s ease;
    }
    body.sidebar-open .sidebar-backdrop { visibility: visible; opacity: 1; }
    .sidebar-logout {
        margin: -3px 12px 14px;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid rgba(211,145,62,.18);
        border-radius: 8px;
        color: #d6a566;
        font-size: 11px;
        background: rgba(183,119,42,.08);
    }
    .sidebar-logout:hover { color: #ffe5bf; text-decoration: none; background: rgba(183,119,42,.14); }
    .main { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .topbar { padding: 0 15px; }
    .content { padding: 18px 15px 28px; }
    .footer { padding: 12px 15px; }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .topbar { height: 60px; }
    .crumb-mod, .crumb-sep, .user-role, .logout-link { display: none; }
    .user-meta { min-width: 0; }
    .user-box { gap: 7px; }
    .footer { flex-direction: column; gap: 2px; }
    .auth-brand-panel { padding: 24px 22px 28px; }
    .auth-brand-mark { width: 46px; height: 46px; font-size: 21px; }
    .auth-brand-copy { margin: 44px 0 10px; }
    .auth-brand-copy h1 { margin: 16px 0 14px; font-size: 34px; }
    .auth-brand-copy p { font-size: 12px; line-height: 1.8; }
    .auth-form-panel { min-height: 520px; padding: 44px 22px; }
    .auth-form-head { margin-bottom: 30px; }
    .auth-form-head h2 { font-size: 26px; }
    .dashboard-hero { min-height: 170px; padding: 24px; align-items: flex-start; flex-direction: column; }
    .dashboard-hero p { line-height: 1.7; }
    .dashboard-date { margin-top: 18px; padding: 10px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
    .dashboard-date strong { font-size: 12px; }
    .dashboard-metrics { grid-template-columns: 1fr; }
    .dashboard-metric { min-height: 112px; }
    .dashboard-panel-head { padding: 14px; }
    .dashboard-panel-body { padding: 14px; }
    .dashboard-panel-body--flush { padding: 0; }
}

/* ---------- 系统设置 / 缓存管理 ---------- */
.cache-toolbar { margin-bottom: 18px; }
.cache-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.cache-summary-card {
    position: relative;
    min-height: 128px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #e3e7ea;
    border-radius: 11px 3px 11px 3px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(20,32,43,.04);
}
.cache-summary-card::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    right: -48px;
    bottom: -54px;
    border: 1px solid rgba(183,119,42,.13);
    border-radius: 50%;
}
.cache-summary-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 4px 12px 4px;
    color: #9a6528;
    font-size: 15px;
    font-weight: 700;
    background: #faf1e5;
    border: 1px solid #eedbc2;
}
.cache-summary-icon--php { color: #405d7d; font-size: 10px; background: #edf3f8; border-color: #d9e4ee; }
.cache-summary-icon--path { color: #39745c; background: #ebf5f0; border-color: #d6e9df; }
.cache-summary-card > div:nth-child(2) { min-width: 0; }
.cache-summary-card span,
.cache-summary-card strong,
.cache-summary-card small { display: block; }
.cache-summary-card span { color: #7e8993; font-size: 11px; }
.cache-summary-card strong { margin: 4px 0 2px; color: #1c2833; font-size: 21px; line-height: 1.3; }
.cache-summary-card small { color: #a0a8af; font-size: 9px; }
.cache-summary-card em {
    position: absolute;
    right: 14px;
    top: 13px;
    padding: 2px 7px;
    border-radius: 9px;
    font-size: 9px;
    font-style: normal;
}
.cache-summary-card em.is-ready { color: #36785d; background: #eaf5ef; }
.cache-summary-card em.is-warning { color: #a65f20; background: #fff0df; }
.cache-summary-card em.is-neutral { color: #677786; background: #eef2f5; }
.cache-action-card { border-radius: 11px 3px 11px 3px; box-shadow: 0 6px 20px rgba(20,32,43,.04); }
.cache-action-layout { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 6px 2px; }
.cache-action-copy { max-width: 720px; }
.cache-action-copy h2 { margin: 0 0 8px; color: #22303b; font-size: 17px; }
.cache-action-copy p { margin: 0 0 12px; color: #717d87; font-size: 12px; }
.cache-action-copy ul { margin: 0; padding-left: 18px; color: #8b949c; font-size: 11px; }
.cache-action-copy li { margin: 3px 0; }
.cache-clear-btn { min-width: 150px; padding: 10px 18px; border-radius: 7px; box-shadow: 0 8px 20px rgba(166,104,33,.18); }
.cache-safety-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid #e2e7e4;
    border-radius: 8px;
    color: #718079;
    font-size: 11px;
    background: #f8faf9;
}
.cache-safety-note strong { color: #3d6f59; }
.cache-safety-note code { color: #8e642f; font-family: Consolas, monospace; }

.maintenance-count { color: #5a7497; padding: 7px 12px; border: 1px solid #d9e5f7; border-radius: 8px; background: #edf4ff; font-size: 12px; }
.maintenance-filters { align-items: flex-end; padding: 16px; border: 1px solid #e0e7ef; border-radius: 9px; background: #fff; }
.maintenance-filters label { display: flex; flex-direction: column; gap: 6px; color: #5c7089; font-size: 11px; }
.maintenance-table { min-width: 900px; }
.maintenance-table th { padding: 13px 15px; }
.maintenance-table td { padding: 14px 15px; font-size: 12px; }
.maintenance-sub { display: block; margin-top: 4px; color: #7d8ba0; font-size: 10px; }
.maintenance-ip { max-width: 210px; overflow-wrap: anywhere; font-family: Consolas, monospace; }
.maintenance-nowrap { white-space: nowrap; }
.maintenance-note { padding: 13px 16px; border: 1px solid #dce7f6; border-radius: 8px; background: #f2f7ff; color: #627999; font-size: 11px; line-height: 1.9; }
.backup-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.backup-overview > div { padding: 23px; border: 1px solid #dfe7f3; border-radius: 10px; background: #fff; }
.backup-overview span, .backup-overview strong, .backup-overview small { display: block; }
.backup-overview span { font-size: 11px; color: #6b7f99; }
.backup-overview strong { margin: 8px 0; font-size: 24px; color: #25446d; }
.backup-overview strong em { font-size: 12px; font-style: normal; margin-left: 6px; color: #75879f; }
.backup-overview small { font-size: 10px; color: #8290a3; }
.backup-create-form button:disabled { cursor: wait; opacity: .65; }
@media (max-width: 800px) { .backup-overview { grid-template-columns: 1fr; } }

/* ---------- 已选定的“极简白蓝”管理入口（独立作用域） ---------- */
.auth-shell[data-login-theme="cloud"] {
    --cloud-blue: #3168fa;
    --cloud-ink: #182337;
    --cloud-muted: #77869a;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    padding: 36px 5.5vw 26px;
    color: var(--cloud-ink);
    background: #f5f8ff;
    font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
}
.auth-shell[data-login-theme="cloud"]::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 68vw;
    height: 70vw;
    top: -25vw;
    left: -18vw;
    border-radius: 50%;
    background: radial-gradient(circle, #e2edff 0, transparent 66%);
    pointer-events: none;
}
.cloud-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: 100%; max-width: 1220px; margin: 0 auto; }
.cloud-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cloud-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 11px; background: var(--cloud-blue); color: #fff; font-size: 22px; font-weight: 700; }
.cloud-brand-name { min-width: 0; }
.cloud-brand-name strong { display: block; font-size: 15px; letter-spacing: .2px; }
.cloud-brand-name small { display: block; margin-top: 3px; color: #7a8ba4; font: 10px/1.5 Consolas, monospace; letter-spacing: 2px; }
.cloud-top-label { flex-shrink: 0; color: #8a98b0; font: 10px/1.5 Consolas, monospace; letter-spacing: 2px; }
.cloud-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 9vw; width: 100%; max-width: 1220px; margin: auto; padding: 38px 0; }
.cloud-hero { min-width: 0; position: relative; }
.cloud-eyebrow { display: block; color: #5d7db3; font: 11px/1.5 Consolas, monospace; letter-spacing: 2px; }
.cloud-hero h1 { margin: 24px 0 0; color: var(--cloud-ink); font-size: clamp(40px, 4vw, 60px); line-height: 1.25; letter-spacing: -1.5px; font-weight: 650; }
.cloud-hero h1 em { color: var(--cloud-blue); font-style: normal; }
.cloud-lead { margin: 20px 0 0; max-width: 420px; font-size: 13px; line-height: 2; color: #77869a; }
.cloud-visual { position: relative; height: 224px; width: 450px; max-width: 100%; margin-top: 40px; }
.cloud-orbit { position: absolute; width: 250px; height: 170px; border: 1px solid #bcd0ff; border-radius: 50%; transform: rotate(-23deg); left: 82px; top: 22px; }
.cloud-orbit::before { content: ""; position: absolute; inset: 18px -28px; border: 1px solid #d0ddfb; border-radius: 50%; transform: rotate(50deg); }
.cloud-core { position: absolute; left: 159px; top: 62px; width: 89px; height: 89px; display: grid; place-items: center; border-radius: 24px; background: linear-gradient(140deg, #80a9ff, #2b5bef); box-shadow: 0 22px 40px #3e74fa32, inset 0 2px 2px #ffffff8a; transform: rotate(-10deg); color: #fff; font-size: 38px; font-weight: 600; }
.cloud-module { position: absolute; display: flex; align-items: center; gap: 10px; padding: 13px 19px; border: 1px solid #ffffffcc; background: #ffffffd9; backdrop-filter: blur(8px); border-radius: 13px; box-shadow: 0 10px 30px #3168fa0d; font-size: 12px; }
.cloud-module i { display: grid; place-items: center; width: 24px; height: 24px; color: #4676e2; background: #eef3ff; border-radius: 7px; font-size: 11px; font-style: normal; }
.cloud-module--sales { left: 0; top: 24px; }
.cloud-module--production { right: 0; top: 80px; }
.cloud-module--quality { left: 48px; bottom: 2px; }
.cloud-login { min-width: 0; width: 100%; max-width: 438px; justify-self: end; padding: 43px 38px 34px; border: 1px solid #eaf0fc; border-radius: 22px; background: #fff; box-shadow: 0 28px 85px #2f5c9b0b; }
.cloud-login-head .cloud-eyebrow { color: var(--cloud-blue); font-size: 10px; margin-bottom: 15px; }
.cloud-login-head h2 { margin: 0; color: var(--cloud-ink); font-size: 28px; line-height: 1.4; font-weight: 650; letter-spacing: .5px; }
.cloud-login-head p { margin: 9px 0 30px; color: var(--cloud-muted); font-size: 12px; line-height: 1.9; }
.cloud-field { margin-top: 20px; }
.cloud-field label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 550; }
.cloud-input-wrap { position: relative; }
.cloud-input-wrap input { display: block; width: 100%; height: 52px; border: 1px solid #e4e9f0; border-radius: 10px; padding: 0 16px; background: #f8faff; color: var(--cloud-ink); outline: none; font-family: inherit; font-size: 13px; transition: box-shadow .2s, border-color .2s; }
.cloud-input-wrap input::placeholder { color: #8a97a8; }
.cloud-input-wrap input:focus { border-color: var(--cloud-blue); box-shadow: 0 0 0 3px #3168fa18; }
.cloud-input-wrap--password input { padding-right: 55px; }
.cloud-password-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 7px 5px; border: 0; color: #647b9d; background: transparent; font-family: inherit; font-size: 11px; cursor: pointer; }
.cloud-password-toggle:hover { color: var(--cloud-blue); }
.cloud-form-note { margin: 15px 0 0; display: flex; align-items: center; gap: 7px; color: var(--cloud-muted); font-size: 11px; }
.cloud-form-note svg { flex: 0 0 12px; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cloud-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 52px; padding: 0 18px; margin-top: 28px; border: 0; border-radius: 10px; background: var(--cloud-blue); box-shadow: 0 10px 22px #3168fa22; color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: filter .2s, transform .2s; }
.cloud-submit span:last-child { font-size: 20px; font-weight: 400; }
.cloud-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cloud-submit:focus-visible, .cloud-password-toggle:focus-visible { outline: 3px solid #3168fa55; outline-offset: 3px; }
.cloud-account-help { margin: 23px 0 0; text-align: center; font-size: 11px; color: var(--cloud-muted); }
.cloud-account-help span { color: var(--cloud-ink); }
.cloud-footer { display: flex; justify-content: flex-end; gap: 20px; font-size: 10px; color: var(--cloud-muted); }
@media (max-width: 1100px) {
    .cloud-body { gap: 5vw; }
    .cloud-login { padding: 34px 28px; }
    .cloud-top-label { font-size: 8px; letter-spacing: 1px; }
}
@media (min-width: 761px) and (max-width: 960px) {
    .cloud-orbit { left: 30px; }
    .cloud-core { left: 110px; }
    .cloud-module { padding: 10px 12px; font-size: 11px; }
    .cloud-module--quality { left: 10px; }
    .cloud-brand-name strong { font-size: 13px; }
    .cloud-top-label { display: none; }
}
@media (max-width: 760px) {
    .auth-shell[data-login-theme="cloud"] { padding: 22px; }
    .cloud-top { gap: 12px; }
    .cloud-top-label { display: none; }
    .cloud-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 19px; }
    .cloud-brand-name strong { font-size: 12px; }
    .cloud-brand-name small { font-size: 8px; }
    .cloud-body { grid-template-columns: minmax(0, 1fr); padding: 40px 0; gap: 28px; }
    .cloud-hero > .cloud-eyebrow { font-size: 9px; }
    .cloud-hero h1 { margin-top: 15px; font-size: 34px; letter-spacing: -.5px; }
    .cloud-lead { margin-top: 13px; font-size: 11px; }
    .cloud-visual { display: none; }
    .cloud-login { max-width: none; justify-self: stretch; padding: 28px 24px; }
    .cloud-login-head p { font-size: 11px; }
    .cloud-field { margin-top: 18px; }
    .cloud-footer { flex-direction: column; gap: 4px; font-size: 9px; }
}
@media (max-width: 360px) {
    .auth-shell[data-login-theme="cloud"] { padding: 18px; }
    .cloud-login { padding: 25px 19px; }
    .cloud-hero h1 { font-size: 30px; }
    .cloud-brand-name strong { font-size: 11px; }
    .cloud-form-note { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .cloud-submit, .cloud-input-wrap input { transition: none; }
}

@media (max-width: 1100px) {
    .cache-overview { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .cache-action-layout { align-items: stretch; flex-direction: column; gap: 20px; }
    .cache-action-layout form, .cache-clear-btn { width: 100%; }
    .cache-safety-note { align-items: flex-start; flex-direction: column; gap: 3px; }
}
