﻿/* ==========================================================================
   悠信运维 · 变电站运维记录与报告系统
   ========================================================================== */
:root {
  --navy-950: #102e2c;
  --navy-900: #173f3c;
  --navy-800: #1f5350;
  --navy-700: #2a6a65;
  --blue-600: #2f8f87;
  --blue-500: #57AFA8;
  --blue-100: #e8f5f3;
  --cyan-500: #57AFA8;
  --cyan-100: #eaf7f5;
  --amber-500: #f0a31a;
  --amber-100: #fff3dc;
  --green-600: #168a52;
  --green-100: #e6f7ee;
  --red-600: #c94242;
  --red-100: #fdecec;
  --ink-900: #152b2a;
  --ink-700: #334a48;
  --ink-500: #5e7472;
  --ink-400: #8a9c9a;
  --line: #dfecea;
  --line-strong: #cbdedb;
  --bg: #f2f8f7;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(17, 38, 68, .04), 0 4px 12px rgba(17, 38, 68, .04);
  --shadow-md: 0 10px 30px rgba(17, 38, 68, .08), 0 2px 6px rgba(17, 38, 68, .04);
  --shadow-lg: 0 24px 60px rgba(7, 26, 48, .18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --sidebar-w: 248px;
  --font: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 14px;
  line-height: 1.55;
}
body.modal-open { overflow: hidden; }
a { color: var(--blue-600); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: rgba(87, 175, 168, .18); }
[hidden] { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c5d1e2; border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #a9bad2; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================== boot ==================================== */
.boot-screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; background:
    radial-gradient(900px 500px at 15% 0%, rgba(87, 175, 168, .18), transparent 60%),
    radial-gradient(700px 500px at 90% 100%, rgba(87, 175, 168, .12), transparent 60%),
    var(--navy-950);
  color: #fff;
}
.boot-mark { width: 86px; height: 86px; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 42px rgba(0, 0, 0, .3); animation: bootFloat 2.4s ease-in-out infinite; }
.boot-name { font-size: 25px; font-weight: 800; letter-spacing: 3px; margin-top: 18px; }
.boot-text { color: rgba(255, 255, 255, .58); font-size: 12px; letter-spacing: .5px; }
.boot-bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: 16px; }
.boot-bar span { display: block; width: 45%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue-500), #48d2e8); animation: bootBar 1.2s ease-in-out infinite; }
@keyframes bootBar { 0% { transform: translateX(-110%); } 100% { transform: translateX(280%); } }
@keyframes bootFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ============================== login =================================== */
.login-page { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(420px, 46%) 1fr; background: #fff; }
.login-brand {
  position: relative; overflow: hidden; padding: 58px 64px;
  background:
    radial-gradient(800px 600px at 90% 5%, rgba(87, 175, 168, .32), transparent 60%),
    radial-gradient(600px 500px at 10% 100%, rgba(87, 175, 168, .16), transparent 65%),
    linear-gradient(145deg, #102e2c, #1f5350 55%, #2a6a65);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
}
.login-brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 30% 20%, #000, transparent 75%);
}
.login-brand-top, .login-brand-copy, .login-brand-foot { position: relative; z-index: 1; }
.brand-lockup { display: flex; align-items: center; gap: 13px; }
.brand-logo { width: 46px; height: 46px; border-radius: 13px; overflow: hidden; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.brand-lockup .cn { font-size: 19px; font-weight: 800; letter-spacing: 1.2px; line-height: 1.2; }
.brand-lockup .brand-wordmark { width: 126px; height: auto; display: block; margin: 2px 0 5px; }
.brand-lockup .en { font-size: 10px; color: rgba(255,255,255,.48); letter-spacing: 1.6px; text-transform: uppercase; margin-top: 3px; }
.login-brand-copy { max-width: 520px; }
.login-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1.6px; color: #7fd6e8; padding: 7px 12px; border: 1px solid rgba(127, 214, 232, .26); border-radius: 99px; background: rgba(87, 175, 168, .08); }
.login-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #48d2e8; box-shadow: 0 0 0 4px rgba(72, 210, 232, .12); }
.login-brand h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.22; margin: 26px 0 18px; letter-spacing: 1px; font-weight: 800; }
.login-brand h1 em { font-style: normal; color: #5ed6ea; }
.login-brand p { color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.9; max-width: 410px; margin: 0; }
.login-features { display: grid; gap: 14px; margin-top: 42px; max-width: 410px; }
.login-feature { display: flex; gap: 13px; align-items: flex-start; }
.login-feature .fi { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); color: #7fd6e8; }
.login-feature b { display: block; font-size: 13px; color: rgba(255,255,255,.9); font-weight: 600; }
.login-feature span { font-size: 11.5px; color: rgba(255,255,255,.46); }
.login-brand-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: rgba(255,255,255,.34); }
.login-brand-foot .dot-line { display: flex; align-items: center; gap: 8px; }
.login-brand-foot .dot-line::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #48d2e8; }
.login-panel { display: grid; place-items: center; padding: 40px 28px; background: #fbfcfe; }
.login-card { width: min(410px, 100%); }
.login-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 30px; }
.login-mobile-brand img { width: 40px; height: 40px; border-radius: 11px; }
.login-mobile-brand .mobile-wordmark { width: 104px; height: auto; border-radius: 0; }
.login-mobile-brand span { font-size: 11px; color: var(--ink-400); border-left: 1px solid var(--line); padding-left: 9px; }
.login-mobile-brand b { font-size: 18px; letter-spacing: 1px; }
.login-heading { font-size: 26px; font-weight: 800; letter-spacing: .5px; margin: 0 0 7px; }
.login-sub { color: var(--ink-500); font-size: 13px; margin: 0 0 30px; }
.login-form { display: grid; gap: 18px; }
.field-group { display: grid; gap: 7px; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--ink-700); display: flex; justify-content: space-between; align-items: center; }
.field-label .optional { color: var(--ink-400); font-weight: 400; font-size: 11px; }
.field-label .required { color: var(--red-600); font-weight: 700; margin-left: 3px; margin-right: auto; }
.member-select { position: relative; }
.member-trigger { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: #fff; }
.member-trigger.open { border-color: #8db8ef; box-shadow: 0 0 0 2px rgba(20,102,216,.1); }
.member-caret { color: var(--ink-400); font-size: 12px; }
.member-menu { position: absolute; z-index: 80; top: calc(100% + 5px); left: 0; right: 0; background: #fff; border: 1px solid #d7e2f0; border-radius: 11px; box-shadow: 0 14px 34px rgba(20,40,70,.16); overflow: hidden; }
.member-search { padding: 8px; border-bottom: 1px solid var(--line); }
.member-search .input { padding: 7px 9px; font-size: 11px; }
.member-options { max-height: 190px; overflow: auto; padding: 4px; }
.member-menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border-top: 1px solid var(--line); background: #f8fbff; font-size: 10.5px; color: var(--ink-500); }
.member-menu-foot .btn { flex: 0 0 auto; }
.member-option { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; cursor: pointer; font-size: 11.5px; }
.member-option:hover { background: #f3f8ff; }
.member-option input { accent-color: var(--blue-600); }
.member-name { color: var(--ink-800); font-weight: 500; }
.member-org { margin-left: auto; color: var(--ink-400); font-size: 9.5px; }
.member-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.member-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 20px; background: #eaf2fb; color: var(--blue-700); font-size: 10px; padding: 3px 5px 3px 9px; }
.member-chip button { border: 0; background: transparent; color: var(--blue-700); font-size: 14px; line-height: 1; padding: 0 3px; cursor: pointer; }
.input-wrap { position: relative; }
.input-wrap .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-400); pointer-events: none; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-900);
  border-radius: 11px; padding: 11px 13px; outline: none; transition: border-color .16s, box-shadow .16s, background .16s;
  font-size: 14px;
}
.input-wrap .input { padding-left: 42px; }
.input::placeholder, .textarea::placeholder { color: #a9b4c5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(87, 175, 168, .11); }
.textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2362718a' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--ink-400); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.password-toggle:hover { background: var(--bg); color: var(--ink-700); }
.login-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-500); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--blue-600); }
.btn-login { width: 100%; padding: 13px; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--blue-600), #3a9f97); color: #fff; font-weight: 650; font-size: 14.5px; letter-spacing: 1px; box-shadow: 0 10px 22px rgba(20, 102, 216, .24); transition: transform .15s, box-shadow .15s; }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(20, 102, 216, .3); }
.btn-login:active { transform: translateY(0); }
.login-error { display: none; background: var(--red-100); color: var(--red-600); border: 1px solid #f6caca; border-radius: 10px; padding: 10px 13px; font-size: 12.5px; }
.login-error.show { display: block; animation: shake .3s ease; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.login-hint { margin-top: 26px; padding: 13px 15px; border-radius: 11px; background: #f0f5ff; border: 1px solid #dce8fb; color: var(--ink-500); font-size: 11.5px; line-height: 1.8; }
.login-hint b { color: var(--blue-600); font-family: var(--mono); font-size: 11px; }
.login-foot { margin-top: 26px; color: var(--ink-400); font-size: 10.5px; text-align: center; }
.login-support { margin-top: 14px; font-size: 11px; color: var(--ink-400); text-align: center; }

/* ============================== shell =================================== */
.layout { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  background:
    radial-gradient(360px 260px at 100% 0%, rgba(87, 175, 168, .2), transparent 65%),
    linear-gradient(180deg, #102e2c, #173f3c 55%, #153835);
  color: #fff; display: flex; flex-direction: column; padding: 22px 15px 16px;
  border-right: 1px solid rgba(255,255,255,.05);
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; margin: 0 2px 16px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); box-shadow: 0 8px 22px rgba(4,24,22,.18); }
.side-brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.side-brand > img:first-child { background: #F7FFFD; padding: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 8px 20px rgba(0,0,0,.18); }
.side-brand .name { font-size: 16px; font-weight: 800; letter-spacing: 1.2px; line-height: 1.15; }
.side-brand .side-wordmark { width: 94px; height: auto; display: block; margin: 2px 0 4px; }
.side-brand .sub { font-size: 9px; color: rgba(255,255,255,.35); letter-spacing: 1.4px; margin-top: 3px; }
.side-section { font-size: 9.5px; letter-spacing: 1.4px; color: rgba(255,255,255,.28); padding: 12px 12px 7px; text-transform: uppercase; }
.side-nav { display: grid; gap: 3px; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: rgba(255,255,255,.62); font-size: 13px; font-weight: 500; transition: background .15s, color .15s;
  position: relative; border: 1px solid transparent;
}
.side-link .icon { width: 18px; height: 18px; opacity: .85; }
.side-link.active .icon { opacity: 1; filter: drop-shadow(0 0 5px rgba(143,227,220,.55)); }
.side-link:hover { background: rgba(255,255,255,.055); color: rgba(255,255,255,.9); }
.side-link.active { background: linear-gradient(90deg, rgba(87,175,168,.42), rgba(87,175,168,.14)); color: #fff; border-color: rgba(143,227,220,.5); box-shadow: inset 0 0 0 1px rgba(143,227,220,.16), 0 8px 18px rgba(4,28,26,.22); font-weight: 650; }
.side-link.active::before { content: ""; position: absolute; left: -15px; top: 7px; bottom: 7px; width: 5px; border-radius: 0 4px 4px 0; background: #8FE3DC; box-shadow: 0 0 16px rgba(143,227,220,.85); }
.side-link .badge-mini { margin-left: auto; background: rgba(240,163,26,.18); color: #ffca6b; border-radius: 99px; padding: 1px 7px; font-size: 9.5px; }
.sidebar-foot { margin-top: auto; padding-top: 16px; }
.side-help { border-radius: 12px; padding: 13px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); }
.side-help b { font-size: 11px; display: block; color: rgba(255,255,255,.8); }
.side-help span { font-size: 10px; color: rgba(255,255,255,.38); line-height: 1.65; display: block; margin-top: 4px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; border-top: 1px solid rgba(255,255,255,.07); margin-top: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #2f8f87, #57AFA8); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-user .u-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9); line-height: 1.3; }
.side-user .u-role { font-size: 10px; color: rgba(255,255,255,.36); }
.side-user .logout-btn { margin-left: auto; color: rgba(255,255,255,.4); border: 0; background: transparent; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.side-user .logout-btn:hover { background: rgba(255,255,255,.08); color: #fff; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 74px; padding: 0 32px; display: flex; align-items: center; gap: 18px;
  position: sticky; top: 0; z-index: 30;
  background: rgba(243, 246, 251, .82); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(210, 221, 236, .65);
}
.topbar-title h1 { font-size: 19px; font-weight: 750; margin: 0; letter-spacing: .3px; line-height: 1.2; }
.topbar-title p { margin: 2px 0 0; font-size: 11px; color: var(--ink-400); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-date { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-500); background: #fff; border: 1px solid var(--line); padding: 7px 11px; border-radius: 9px; }
.top-date .icon { width: 14px; height: 14px; }
.top-avatar { display: flex; align-items: center; gap: 9px; padding: 4px 5px 4px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.top-avatar .t-name { font-size: 11.5px; font-weight: 600; }
.top-avatar .avatar { width: 29px; height: 29px; border-radius: 50%; font-size: 11px; }
.mobile-top-logo { display: none; }
.content { padding: 26px 32px 44px; max-width: 1380px; width: 100%; margin: 0 auto; flex: 1; }

/* ============================== bottom nav ============================== */
.bottom-nav { display: none; }
.mobile-fab { display: none; }

/* ============================== generic ================================= */
.page-stack { display: grid; gap: 18px; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 2px; }
.page-hero h2 { margin: 0; font-size: 24px; letter-spacing: .2px; }
.page-hero p { margin: 4px 0 0; color: var(--ink-500); font-size: 12px; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; background: #fff; color: var(--ink-700); border-radius: 10px;
  padding: 9px 14px; font-size: 12.5px; font-weight: 600; line-height: 1.2;
  transition: transform .14s, box-shadow .14s, background .14s, border-color .14s; white-space: nowrap;
}
.btn .icon { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue-600), #3a9f97); color: #fff; box-shadow: 0 7px 16px rgba(20,102,216,.2); }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(20,102,216,.26); }
.btn-secondary { background: #fff; border-color: var(--line-strong); color: var(--ink-700); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #b9c8dc; }
.btn-ghost { background: transparent; color: var(--ink-500); }
.btn-ghost:hover { background: rgba(20,102,216,.06); color: var(--blue-600); }
.btn-danger { background: #fff; border-color: #f1caca; color: var(--red-600); }
.btn-danger:hover { background: var(--red-100); }
.btn-soft { background: var(--blue-100); color: var(--blue-600); }
.btn-soft:hover { background: #d8e7ff; }
.btn-sm { padding: 6px 10px; font-size: 11.5px; border-radius: 8px; }
.btn-lg { padding: 12px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .45; pointer-events: none; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--ink-400); display: inline-grid; place-items: center; }
.icon-btn:hover { background: #fff; border-color: var(--line); color: var(--ink-700); }
.icon-btn.danger:hover { color: var(--red-600); border-color: #f1caca; background: var(--red-100); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px 0; }
.card-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.card-head p { margin: 2px 0 0; color: var(--ink-400); font-size: 11px; }
.card-body { padding: 18px 20px 20px; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.section-title h3 { font-size: 14px; margin: 0; font-weight: 700; }
.section-title .line { flex: 1; height: 1px; background: var(--line); }
.muted { color: var(--ink-500); }
.tiny { font-size: 10.5px; color: var(--ink-400); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-14 { gap: 14px; }
.ml-auto { margin-left: auto; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }

.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 3px 9px; font-size: 10.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--green-100); color: var(--green-600); }
.badge-blue { background: var(--blue-100); color: var(--blue-600); }
.badge-amber { background: var(--amber-100); color: #a86b00; }
.badge-red { background: var(--red-100); color: var(--red-600); }
.badge-gray { background: #eff3f8; color: var(--ink-500); }
.badge-cyan { background: var(--cyan-100); color: #2f8f87; }
.badge-outline { background: transparent; border: 1px dashed var(--line-strong); color: var(--ink-400); }

.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #f8fafd; border-radius: 7px; padding: 3px 8px; font-size: 11px; color: var(--ink-700); }
.chip .org { color: var(--ink-400); font-size: 10px; }
.chip-blue { background: var(--blue-100); border-color: #d5e5ff; color: #1c5fb8; }
.chip-amber { background: var(--amber-100); border-color: #f7e2b8; color: #8a5a00; }

.empty { text-align: center; padding: 46px 20px; color: var(--ink-400); }
.empty .empty-icon { width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: #eef3fa; color: #9fb0c8; }
.empty b { display: block; color: var(--ink-700); font-size: 13.5px; margin-bottom: 4px; }
.empty p { margin: 0; font-size: 11.5px; }

/* ============================== dashboard =============================== */
.dash-hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 24px 28px;
  background:
    radial-gradient(600px 240px at 98% -20%, rgba(72, 210, 232, .3), transparent 65%),
    radial-gradient(500px 260px at 40% 120%, rgba(87, 175, 168, .35), transparent 70%),
    linear-gradient(115deg, #173f3c, #1f5350 60%, #2a6a65);
  color: #fff; display: flex; align-items: center; gap: 26px; box-shadow: 0 16px 34px rgba(9, 35, 66, .18);
}
.dash-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, rgba(255,255,255,.03)); pointer-events: none; }
.dash-hero-main { position: relative; z-index: 1; min-width: 0; }
.dash-greet { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: 1px; }
.dash-hero h2 { margin: 6px 0 7px; font-size: 25px; font-weight: 800; letter-spacing: .5px; }
.dash-hero p { margin: 0; color: rgba(255,255,255,.58); font-size: 12px; }
.dash-hero-actions { position: relative; z-index: 1; margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }
.dash-hero .btn-secondary { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.dash-hero .btn-secondary:hover { background: rgba(255,255,255,.17); }
.dash-hero .btn-primary { background: #fff; color: var(--navy-900); box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.dash-hero .btn-primary:hover { background: #eef7ff; }
.dash-hero-mark { position: absolute; right: 27px; bottom: -32px; width: 150px; opacity: .08; pointer-events: none; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px;
  display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.metric::after { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: currentColor; opacity: .045; }
.metric-icon { flex: 0 0 39px; width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; }
.metric-icon .icon { width: 19px; height: 19px; }
.metric-blue .metric-icon { background: var(--blue-100); color: var(--blue-600); }
.metric-cyan .metric-icon { background: var(--cyan-100); color: #2f8f87; }
.metric-amber .metric-icon { background: var(--amber-100); color: #a86b00; }
.metric-green .metric-icon { background: var(--green-100); color: var(--green-600); }
.metric-val { font-size: 23px; font-weight: 800; line-height: 1.15; letter-spacing: -.4px; }
.metric-val small { font-size: 11px; font-weight: 500; color: var(--ink-400); margin-left: 2px; letter-spacing: 0; }
.metric-label { font-size: 10.5px; color: var(--ink-400); margin-top: 2px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.dash-list { display: grid; gap: 2px; padding: 4px 0; }
.dash-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid #f0f4fa; transition: background .14s; }
.dash-row:first-child { border-top: 0; }
.dash-row:hover { background: #fafcff; }
.station-avatar { width: 37px; height: 37px; border-radius: 10px; background: linear-gradient(135deg, #eaf2ff, #d8e9ff); color: #2364b5; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.station-avatar.green { background: linear-gradient(135deg, #e6f8ef, #cff1df); color: #168a52; }
.station-avatar.amber { background: linear-gradient(135deg, #fff5df, #ffe8ba); color: #9a6200; }
.dash-row-main { min-width: 0; }
.dash-row-main b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-row-main span { display: block; color: var(--ink-400); font-size: 10.5px; margin-top: 2px; }
.dash-row-side { margin-left: auto; text-align: right; }
.dash-row-side b { display: block; font-size: 12px; }
.dash-row-side span { font-size: 10px; color: var(--ink-400); }
.dash-todo { display: grid; gap: 9px; }
.todo-card { display: flex; gap: 11px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; }
.todo-card .ti { width: 30px; height: 30px; border-radius: 9px; background: var(--amber-100); color: #a86b00; display: grid; place-items: center; flex: 0 0 auto; }
.todo-card b { font-size: 12px; display: block; }
.todo-card span { font-size: 10.5px; color: var(--ink-400); display: block; margin-top: 2px; }
.todo-card .go { margin-left: auto; color: var(--ink-400); }
.install-banner { display: flex; align-items: center; gap: 13px; padding: 15px 17px; border: 1px dashed #b9d3f5; border-radius: var(--radius); background: linear-gradient(120deg, #f2f7ff, #fff); }
.install-banner .ib-icon { width: 38px; height: 38px; border-radius: 11px; background: #fff; border: 1px solid #d9e8fb; display: grid; place-items: center; color: var(--blue-600); }
.install-banner b { display: block; font-size: 12.5px; }
.install-banner span { display: block; font-size: 10.5px; color: var(--ink-500); margin-top: 2px; }
.install-banner .btn { margin-left: auto; }

/* ============================== project cards ========================== */
.filter-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.filter-pills { display: inline-flex; background: #eaf0f8; padding: 3px; border-radius: 10px; gap: 2px; }
.filter-pill { border: 0; background: transparent; color: var(--ink-500); border-radius: 8px; padding: 7px 12px; font-size: 11.5px; font-weight: 600; }
.filter-pill.active { background: #fff; color: var(--blue-600); box-shadow: 0 2px 6px rgba(17, 38, 68, .08); }
.filter-pill .n { font-size: 9.5px; opacity: .7; margin-left: 2px; }
.search-box { position: relative; min-width: 210px; }
.search-box .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--ink-400); }
.search-box .input { padding: 8px 12px 8px 33px; font-size: 12px; border-radius: 9px; }
.filter-select { width: auto; padding: 8px 31px 8px 11px; font-size: 11.5px; border-radius: 9px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; display: flex; flex-direction: column; min-height: 186px; }
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cddcf0; }
.project-top { display: flex; align-items: flex-start; gap: 11px; }
.project-title { min-width: 0; flex: 1; }
.project-title h3 { margin: 0; font-size: 15.5px; letter-spacing: .2px; }
.project-title h3 span { font-weight: 500; color: var(--ink-400); font-size: 11px; margin-left: 3px; }
.project-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.project-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 17px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pstat b { display: block; font-size: 16px; font-weight: 750; line-height: 1.2; }
.pstat span { display: block; font-size: 9.5px; color: var(--ink-400); margin-top: 2px; }
.project-foot { margin-top: auto; padding-top: 13px; display: flex; align-items: center; gap: 8px; }
.project-foot .date { font-size: 10px; color: var(--ink-400); display: flex; align-items: center; gap: 4px; }
.project-foot .date .icon { width: 12px; height: 12px; }
.missing-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-500); box-shadow: 0 0 0 3px rgba(240,163,26,.13); }
.project-card.add-card { border: 1px dashed #c5d5ea; background: #fbfdff; align-items: center; justify-content: center; color: var(--ink-400); gap: 8px; box-shadow: none; }
.project-card.add-card:hover { border-color: var(--blue-500); color: var(--blue-600); background: #f7fbff; }
.add-round { width: 38px; height: 38px; border-radius: 50%; border: 1px dashed currentColor; display: grid; place-items: center; }

/* ============================== project detail ========================= */
.detail-head { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--ink-400); margin-bottom: 13px; }
.breadcrumb a { color: var(--ink-400); }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb .sep { opacity: .5; }
.detail-title-row { display: flex; align-items: flex-start; gap: 14px; }
.detail-title-row h2 { margin: 0; font-size: 24px; letter-spacing: .3px; }
.detail-title-row h2 small { font-size: 11px; color: var(--ink-400); font-weight: 500; margin-left: 5px; }
.detail-sub { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.detail-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.detail-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; padding-top: 15px; border-top: 1px dashed var(--line); }
.dstat b { display: block; font-size: 17px; font-weight: 750; }
.dstat span { display: block; font-size: 9.5px; color: var(--ink-400); margin-top: 2px; }
.detail-tabs { display: flex; gap: 3px; margin-top: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.detail-tabs::-webkit-scrollbar { display: none; }
.dtab { border: 0; background: transparent; padding: 10px 14px; color: var(--ink-500); font-size: 12.5px; font-weight: 600; position: relative; white-space: nowrap; }
.dtab:hover { color: var(--ink-900); }
.dtab.active { color: var(--blue-600); }
.dtab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--blue-600); }
.dtab .count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; border-radius: 99px; background: #eef3fa; color: var(--ink-500); font-size: 9.5px; padding: 0 4px; margin-left: 4px; }
.dtab.active .count { background: var(--blue-100); color: var(--blue-600); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr); gap: 16px; align-items: start; }
.completion-banner { display: flex; align-items: flex-start; gap: 12px; padding: 15px 17px; border-radius: 13px; border: 1px solid #cfe9da; background: linear-gradient(120deg, #f0fbf5, #fbfefc); }
.completion-banner.pending { border-color: #f2ddb7; background: linear-gradient(120deg, #fff9ed, #fffdf9); }
.completion-banner .cb-icon { width: 35px; height: 35px; border-radius: 10px; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; flex: 0 0 auto; }
.completion-banner.pending .cb-icon { background: var(--amber-100); color: #a86b00; }
.completion-banner b { display: block; font-size: 12.5px; }
.completion-banner span { display: block; font-size: 10.5px; color: var(--ink-500); margin-top: 2px; line-height: 1.6; }
.completion-banner .btn { margin-left: auto; flex: 0 0 auto; }
.file-checklist { display: grid; gap: 10px; }
.file-check { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdff; }
.file-check .fc-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #eef3fa; color: var(--ink-500); flex: 0 0 auto; }
.file-check.done .fc-icon { background: var(--green-100); color: var(--green-600); }
.file-check.missing .fc-icon { background: var(--amber-100); color: #a86b00; }
.file-check b { display: block; font-size: 11.5px; }
.file-check span { display: block; font-size: 10px; color: var(--ink-400); margin-top: 1px; }
.file-check .st { margin-left: auto; font-size: 10px; font-weight: 600; }
.file-check.done .st { color: var(--green-600); }
.file-check.missing .st { color: #a86b00; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 18px 29px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 3px; top: 5px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: var(--blue-500); box-shadow: 0 0 0 1px #b9d3f5; }
.tl-item.done::before { background: var(--green-600); box-shadow: 0 0 0 1px #b7e2ca; }
.tl-date { font-size: 11px; font-weight: 700; color: var(--ink-700); }
.tl-desc { font-size: 10.5px; color: var(--ink-400); margin-top: 2px; }
.tl-people { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

.workday-list { display: grid; gap: 11px; }
.workday-card { border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 15px 16px; }
.workday-head { display: flex; align-items: flex-start; gap: 12px; }
.date-block { flex: 0 0 52px; text-align: center; border-radius: 10px; background: linear-gradient(160deg, #eef5ff, #f8fbff); border: 1px solid #dce9fb; padding: 6px 3px; }
.date-block .d { font-size: 20px; font-weight: 800; color: var(--blue-600); line-height: 1.1; }
.date-block .m { font-size: 9px; color: var(--ink-400); margin-top: 2px; }
.workday-main { min-width: 0; flex: 1; }
.workday-main h4 { margin: 0; font-size: 12.5px; }
.workday-main .time { font-size: 10.5px; color: var(--ink-400); margin-top: 2px; display: flex; gap: 9px; flex-wrap: wrap; }
.workday-side { text-align: right; flex: 0 0 auto; }
.workday-side b { font-size: 14px; font-weight: 750; }
.workday-side span { display: block; font-size: 9.5px; color: var(--ink-400); }
.people-cloud { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tickets-row { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.ticket-thumb { width: 54px; height: 54px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); position: relative; background: #f1f5fa; }
.ticket-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ticket-thumb button { position: absolute; top: 2px; right: 2px; width: 17px; height: 17px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: 0; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.ticket-thumb:hover button { opacity: 1; }

.file-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.file-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px; display: flex; flex-direction: column; min-height: 200px; }
.file-card-head { display: flex; align-items: flex-start; gap: 11px; }
.file-type-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; }
.file-type-icon.doc { background: #e8f1ff; color: #2364b5; }
.file-type-icon.xls { background: #e6f7ee; color: #168a52; }
.file-card h4 { margin: 0; font-size: 12.5px; line-height: 1.45; }
.file-card .req { font-size: 9.5px; color: var(--ink-400); margin-top: 3px; }
.file-current { margin-top: 15px; padding: 10px; border-radius: 9px; background: #f7fafd; border: 1px solid #edf2f8; }
.file-current .fname { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-current .fmeta { font-size: 9.5px; color: var(--ink-400); margin-top: 3px; }
.file-empty { margin-top: 15px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 9px; color: var(--ink-400); font-size: 11px; text-align: center; background: #fbfdff; }
.file-actions { margin-top: auto; padding-top: 14px; display: flex; gap: 7px; }
.file-actions .btn { flex: 1; }
.partner-note { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 11px; background: var(--amber-100); border: 1px solid #f3dfb8; color: #7a5300; font-size: 11.5px; line-height: 1.65; }
.partner-note .icon { flex: 0 0 auto; margin-top: 1px; }
.report-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.report-action { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: linear-gradient(160deg, #fff, #fbfdff); }
.report-action .ra-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; }
.report-action h4 { margin: 0; font-size: 13.5px; }
.report-action p { margin: 5px 0 14px; font-size: 10.5px; color: var(--ink-500); line-height: 1.65; }
.report-action .btn { width: 100%; }
.report-list { display: grid; gap: 8px; }
.report-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.report-row .ri { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #eef3fa; color: var(--ink-500); flex: 0 0 auto; }
.report-row .rname { font-size: 11.5px; font-weight: 600; word-break: break-all; }
.report-row .rmeta { font-size: 9.5px; color: var(--ink-400); margin-top: 1px; }
.report-row .racts { margin-left: auto; display: flex; gap: 4px; }

/* ============================== personnel / users ======================= */
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.data-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 12px; }
table.data th { text-align: left; font-size: 10px; letter-spacing: .4px; color: var(--ink-400); font-weight: 600; background: #f8fafd; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 11px 14px; border-bottom: 1px solid #f0f4fa; vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fbfdff; }
.table-user { display: flex; align-items: center; gap: 9px; }
.table-user b { font-size: 12px; display: block; }
.table-user span { font-size: 9.5px; color: var(--ink-400); display: block; }
.org-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; padding: 3px 8px; border-radius: 99px; background: #f1f5fa; color: var(--ink-700); }
.person-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.person-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 15px; display: flex; gap: 11px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.person-card.inactive { opacity: .55; filter: grayscale(.4); }
.person-avatar { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 750; color: #fff; flex: 0 0 auto; background: linear-gradient(135deg, #2f8f87, #57AFA8); }
.person-card:nth-child(3n+2) .person-avatar { background: linear-gradient(135deg, #168a52, #4cc38a); }
.person-card:nth-child(3n) .person-avatar { background: linear-gradient(135deg, #b87312, #f0a31a); }
.person-card b { font-size: 12.5px; display: block; }
.person-card .p-org { font-size: 10px; color: var(--ink-400); margin-top: 2px; }
.person-card .p-phone { font-size: 10px; color: var(--ink-500); margin-top: 5px; display: flex; gap: 5px; align-items: center; }
.person-card .p-actions { margin-left: auto; display: flex; gap: 2px; }
.person-stats { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 2px; }
.person-stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 13px; font-size: 11px; color: var(--ink-500); }
.person-stat b { color: var(--ink-900); font-size: 13px; margin-right: 4px; }

/* ============================== profile ================================ */
.profile-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.6fr); gap: 16px; align-items: start; }
.profile-card { text-align: center; padding: 30px 22px 24px; }
.profile-avatar { width: 78px; height: 78px; border-radius: 24px; margin: 0 auto 14px; background: linear-gradient(135deg, #2f8f87, #57AFA8); color: #fff; font-size: 28px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(47,143,135,.24); }
.profile-card h2 { margin: 0; font-size: 19px; }
.profile-card .p-role { color: var(--ink-400); font-size: 11px; margin-top: 3px; }
.profile-info { display: grid; gap: 0; margin-top: 20px; text-align: left; border-top: 1px solid var(--line); }
.profile-info div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f2f5fa; font-size: 11.5px; }
.profile-info span { color: var(--ink-400); }
.profile-info b { font-weight: 600; }
.menu-list { display: grid; gap: 2px; padding: 6px 0; }
.menu-item { display: flex; align-items: center; gap: 11px; padding: 12px 18px; border: 0; background: transparent; text-align: left; width: 100%; font-size: 12.5px; color: var(--ink-700); }
.menu-item:hover { background: #fafcff; }
.menu-item .mi { width: 32px; height: 32px; border-radius: 9px; background: #f0f5fc; color: var(--blue-600); display: grid; place-items: center; }
.menu-item .chev { margin-left: auto; color: var(--ink-400); }
.menu-item.danger { color: var(--red-600); }
.about-box { padding: 15px 18px; font-size: 10.5px; color: var(--ink-400); line-height: 1.8; }

/* ============================== forms / modal ========================== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(7, 20, 37, .55); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 24px; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(520px, 100%); max-height: calc(100vh - 48px); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: modalIn .22s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.modal.wide { width: min(720px, 100%); }
.modal.narrow { width: min(420px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 750; }
.modal-head p { margin: 4px 0 0; font-size: 11px; color: var(--ink-400); }
.modal-head .icon-btn { margin-left: auto; flex: 0 0 auto; }
.modal-body { padding: 18px 22px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
@media (min-width: 901px) { .modal-body { max-height: calc(100vh - 190px); } }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 22px 20px; border-top: 1px solid #f1f5fa; background: #fcfdff; flex: 0 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; margin-top: 7px; }
.permission-item { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; font-size: 11px; }
.permission-item input { accent-color: var(--blue-600); }
.archive-perm-table { margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.apt-head, .apt-row { display: grid; grid-template-columns: 1fr 84px 84px; gap: 8px; align-items: center; padding: 8px 10px; font-size: 10.5px; }
.apt-head { background: #eef5ff; color: var(--ink-500); font-weight: 600; }
.apt-row { border-top: 1px solid #eef3fa; }
.apt-row b { font-weight: 500; color: var(--ink-700); }
.apt-row label { display: flex; align-items: center; gap: 4px; color: var(--ink-500); }
.apt-row input { accent-color: var(--blue-600); }
.form-grid .full { grid-column: 1 / -1; }
.form-hint { font-size: 10.5px; color: var(--ink-400); margin-top: 5px; line-height: 1.6; }
.form-error { display: none; background: var(--red-100); color: var(--red-600); border: 1px solid #f5cccc; padding: 9px 12px; border-radius: 9px; font-size: 11.5px; margin-bottom: 13px; }
.form-error.show { display: block; }
.modal-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; }
.modal-icon.amber { background: var(--amber-100); color: #a86b00; }
.modal-icon.red { background: var(--red-100); color: var(--red-600); }
.modal-icon.blue { background: var(--blue-100); color: var(--blue-600); }
.modal-icon.green { background: var(--green-100); color: var(--green-600); }
.modal-lede { font-size: 12.5px; color: var(--ink-500); line-height: 1.8; margin: 0 0 16px; }
.confirm-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; font-size: 11.5px; color: var(--ink-700); line-height: 1.7; }
.confirm-box input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--blue-600); flex: 0 0 auto; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 9px; font-size: 12px; color: var(--ink-500); cursor: pointer; transition: all .15s; }
.radio-pill input:checked + span { border-color: var(--blue-500); background: var(--blue-100); color: var(--blue-600); font-weight: 600; box-shadow: 0 0 0 3px rgba(43,124,240,.08); }
.people-picker { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.people-picker-head { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: #f8fafd; border-bottom: 1px solid var(--line); }
.people-picker-head .search-box { flex: 1; min-width: 0; }
.people-picker-head .input { padding-top: 6px; padding-bottom: 6px; background: #fff; }
.people-list { max-height: 225px; overflow-y: auto; padding: 7px; display: grid; gap: 2px; }
.people-group { font-size: 9.5px; color: var(--ink-400); letter-spacing: .4px; padding: 7px 7px 3px; }
.person-option { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; cursor: pointer; font-size: 11.5px; }
.person-option:hover { background: #f5f9ff; }
.person-option input { width: 15px; height: 15px; accent-color: var(--blue-600); }
.person-option .org { margin-left: auto; font-size: 9.5px; color: var(--ink-400); }
.selected-summary { display: flex; align-items: center; gap: 10px; padding: 10px 11px; background: #f9fbfe; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-500); }
.selected-summary b { color: var(--blue-600); font-size: 14px; }
.upload-zone { border: 1.5px dashed #c7d7eb; border-radius: 12px; padding: 26px 18px; text-align: center; background: #fbfdff; transition: border-color .15s, background .15s; }
.upload-zone:hover, .upload-zone.drag { border-color: var(--blue-500); background: #f5faff; }
.upload-zone .uz-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; margin: 0 auto 10px; }
.upload-zone b { display: block; font-size: 12.5px; }
.upload-zone span { display: block; font-size: 10.5px; color: var(--ink-400); margin-top: 3px; }
.progress-overlay { position: fixed; inset: 0; background: rgba(7, 20, 37, .5); backdrop-filter: blur(3px); z-index: 140; display: grid; place-items: center; }
.progress-card { background: #fff; border-radius: 16px; padding: 24px 28px; width: min(330px, 86vw); text-align: center; box-shadow: var(--shadow-lg); }
.progress-card b { display: block; font-size: 13px; margin-bottom: 4px; }
.progress-card span { display: block; font-size: 10.5px; color: var(--ink-400); }
.progress-track { height: 5px; border-radius: 4px; background: #eaf0f8; overflow: hidden; margin-top: 16px; }
.progress-track i { display: block; height: 100%; width: 35%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-600), #48d2e8); animation: indeterminate 1.15s ease-in-out infinite; }
@keyframes indeterminate { 0% { transform: translateX(-120%); } 100% { transform: translateX(380%); } }
.image-viewer { position: fixed; inset: 0; z-index: 150; background: rgba(4, 12, 23, .93); display: grid; place-items: center; padding: 24px; }
.image-viewer img { max-width: 96vw; max-height: 88vh; border-radius: 6px; box-shadow: 0 22px 70px rgba(0,0,0,.5); }
.image-viewer button { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }

/* toast */
.toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(430px, calc(100vw - 28px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 9px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); border-radius: 11px; padding: 11px 13px; font-size: 12px; color: var(--ink-700); animation: toastIn .25s ease; pointer-events: auto; }
.toast .icon { flex: 0 0 auto; margin-top: 1px; }
.toast.success { border-color: #c6e9d6; background: #f5fdf8; color: #146c40; }
.toast.error { border-color: #f3caca; background: #fff8f8; color: #a52f2f; }
.toast.info { border-color: #cfe2fb; background: #f7fbff; color: #1b5da9; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* skeleton */
.skeleton { border-radius: 8px; background: linear-gradient(90deg, #eef2f8 25%, #f7f9fc 37%, #eef2f8 63%); background-size: 400% 100%; animation: shimmer 1.25s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ============================== dashboard hours ======================= */
.hours-board { overflow: hidden; }
.hours-head { align-items: flex-start; gap: 14px; }
.hours-head h3 { display: flex; align-items: center; gap: 8px; }
.hours-head .badge { font-size: 10px; padding: 2px 8px; }
.hours-tools { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.hours-tools .filter-select { max-width: 138px; }
.month-range { display: flex; align-items: center; gap: 4px; color: var(--ink-400); font-size: 10.5px; }
.month-range .mr-label { color: var(--ink-400); font-size: 10px; }
.month-range .input { width: 116px; height: 32px; padding: 0 7px; font-size: 10.5px; border-radius: 8px; color: var(--ink-700); }
.hours-summary-bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 10px;
  padding: 9px 12px; border-radius: 9px; background: #f5f9fe; border: 1px solid #e4eef9;
  font-size: 10.5px; color: var(--ink-400);
}
.hours-summary-bar b { color: var(--ink-800); font-size: 13px; }
.hours-summary-bar .hours-total { margin-left: auto; color: var(--blue-700); }
.hours-summary-bar .hours-total b { color: var(--blue-700); font-size: 15px; }
.hours-table-wrap { border: 1px solid var(--line); border-radius: 10px; }
.hours-table { min-width: 980px; table-layout: fixed; }
.hours-table th { padding: 8px 7px; font-size: 10px; }
.hours-table td { padding: 9px 7px; font-size: 10.5px; }
.hours-table td b { color: var(--blue-700); }
.hours-table th:nth-child(1) { width: 42px; }
.hours-table th:nth-child(2) { width: 92px; }
.hours-table th:nth-child(3) { width: 64px; }
.hours-table th:nth-child(4) { width: 76px; }
.hours-table th:nth-child(5) { width: 105px; }
.hours-table th:nth-child(6) { width: 150px; }
.hours-table th:nth-child(7) { width: 142px; }
.hours-table th:nth-child(8) { width: 48px; }
.hours-table th:nth-child(9) { width: 66px; }
.hours-table th:nth-child(10) { width: 78px; }
.hours-people { width: 150px; line-height: 1.55; white-space: normal; }
.hours-org { width: 142px; color: var(--ink-500); font-size: 9.5px; line-height: 1.55; white-space: normal; }
.hours-mobile-cards { display: none; gap: 9px; }
.hours-mobile-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.hmc-top { display: flex; align-items: center; gap: 8px; }
.hmc-top b { font-size: 13px; }
.hmc-top .badge { margin-left: auto; }
.hmc-meta { font-size: 10px; color: var(--ink-400); margin-top: 5px; }
.hmc-people { font-size: 11px; color: var(--ink-700); margin-top: 7px; line-height: 1.6; }
.hmc-bottom { display: flex; align-items: center; gap: 8px; justify-content: space-between; border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 7px; font-size: 10px; color: var(--ink-400); }

/* ============================== personnel hours ======================= */
.personnel-metrics { margin-top: 0; }
.personnel-hours-head { align-items: flex-start; gap: 14px; }
.personnel-hours-head h3 { display: flex; align-items: center; gap: 8px; }
.personnel-hours-tools { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.personnel-hours-tools .filter-select { max-width: 155px; }
.multi-picker { position: relative; }
.multi-picker summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 34px; min-width: 118px; max-width: 170px; padding: 0 9px 0 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink-700); font-size: 11.5px; white-space: nowrap; }
.multi-picker summary::-webkit-details-marker { display: none; }
.multi-picker summary .icon { flex: 0 0 auto; opacity: .55; }
.multi-picker[open] summary { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(87,175,168,.12); }
.multi-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; width: 230px; max-height: 270px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--line-strong); border-radius: 11px; box-shadow: 0 16px 34px rgba(16,46,44,.18); }
.multi-option { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; font-size: 11.5px; color: var(--ink-700); cursor: pointer; }
.multi-option:hover { background: var(--blue-100); }
.multi-option input { accent-color: var(--blue-500); margin: 0; }
.multi-empty { padding: 10px 8px; font-size: 11px; color: var(--ink-400); }
.personnel-hours-tools .multi-hint { width: 100%; text-align: right; color: var(--ink-400); font-size: 10px; margin-top: -2px; }
.personnel-summary-bar { display: flex; align-items: center; gap: 17px; flex-wrap: wrap; padding: 9px 12px; margin-bottom: 10px; border-radius: 9px; background: #f5f9fe; border: 1px solid #e4eef9; font-size: 10.5px; color: var(--ink-400); }
.personnel-summary-bar b { color: var(--ink-800); font-size: 13px; }
.personnel-summary-bar .personnel-total { margin-left: auto; color: var(--blue-700); }
.personnel-summary-bar .personnel-total b { color: var(--blue-700); font-size: 15px; }
.personnel-hours-table-wrap { border: 1px solid var(--line); border-radius: 10px; }
.personnel-hours-table { min-width: 900px; }
.personnel-hours-table th { padding: 9px 10px; }
.personnel-hours-table td { padding: 10px; font-size: 11px; }
.personnel-hours-table td b { color: var(--blue-700); }
.personnel-hours-cards { display: none; gap: 9px; }
.personnel-hours-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.phc-top { display: flex; align-items: center; gap: 8px; }
.phc-top b { font-size: 13px; }
.phc-top .badge { margin-left: auto; }
.phc-meta { font-size: 10px; color: var(--ink-400); margin-top: 5px; }
.phc-bottom { display: flex; gap: 8px; justify-content: space-between; border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 7px; font-size: 9.5px; color: var(--ink-400); flex-wrap: wrap; }

/* ============================== archive center ========================= */
.archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.archive-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: linear-gradient(180deg,#fff,#fbfdff); display: flex; flex-direction: column; gap: 10px; min-height: 185px; }
.archive-card-head { display: flex; align-items: flex-start; gap: 9px; }
.archive-card-head h4 { margin: 0; font-size: 12.5px; }
.archive-card-head p { margin: 2px 0 0; font-size: 9.5px; color: var(--ink-400); }
.archive-icon { width: 34px; height: 34px; border-radius: 10px; background: #eaf2fb; color: var(--blue-600); display: grid; place-items: center; flex: 0 0 auto; }
.archive-file { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 10px; color: var(--ink-500); min-height: 22px; }
.archive-file b { font-weight: 500; color: var(--ink-700); overflow-wrap: anywhere; }
.archive-select { width: 100%; font-size: 10px; }
.archive-btn { margin-top: auto; width: 100%; justify-content: center; cursor: pointer; flex-direction: row; font-size: 11px; }
.archive-btn .icon { flex: 0 0 auto; }
.archive-btn.disabled { opacity: .5; pointer-events: none; }

/* ============================== dashboard issues ======================= */
.issue-board { overflow: hidden; }
.issue-head { align-items: flex-start; gap: 14px; }
.issue-head h3 { display: flex; align-items: center; gap: 8px; }
.issue-head .badge { font-size: 10px; padding: 2px 8px; }
.issue-tools { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.issue-tools .filter-select { max-width: 132px; }
.issue-loading { display: grid; gap: 8px; }
.issue-table-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 10.5px; color: var(--ink-400); margin-bottom: 9px; }
.issue-table-meta b { color: var(--ink-700); font-size: 13px; }
.issue-overdue-tip { display: inline-flex; align-items: center; gap: 4px; color: var(--red-600); }
.issue-table-wrap { border: 1px solid var(--line); border-radius: 10px; }
.issue-table { min-width: 980px; }
.issue-table th { padding: 9px 11px; }
.issue-table td { padding: 10px 11px; font-size: 11px; }
.issue-table a { color: var(--ink-900); }
.issue-table a:hover { color: var(--blue-600); }
.issue-desc { max-width: 285px; line-height: 1.65; }
.issue-desc a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.issue-resolution { color: var(--ink-500); font-size: 10px; margin-top: 3px; font-weight: 400; }
.overdue { color: var(--red-600); font-weight: 600; }
.issue-table .btn-sm { padding: 4px 7px; }
.issue-table .icon-btn { vertical-align: middle; }
.issue-mobile-list { display: none; gap: 9px; }
.issue-mobile-card {
  display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  background: #fff; color: inherit; box-shadow: var(--shadow-sm);
}
.issue-mobile-card:hover { border-color: #cddcf0; }
.imc-top { display: flex; align-items: center; gap: 7px; }
.imc-top .badge { margin-left: 3px; }
.imc-station { font-size: 12px; font-weight: 700; }
.imc-desc { font-size: 12.5px; line-height: 1.65; margin: 7px 0 5px; color: var(--ink-900); }
.imc-meta { font-size: 10px; color: var(--ink-400); line-height: 1.6; }
.imc-suggestion { font-size: 10.5px; color: var(--ink-500); line-height: 1.6; margin-top: 6px; padding: 6px 8px; background: #f7fafd; border-radius: 7px; }
.imc-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 10px; color: var(--ink-500); flex-wrap: wrap; }
.imc-foot .badge { margin-left: auto; }
.imc-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); }
.imc-actions .btn { flex: 1; }

/* ============================== mobile fab ============================= */
.mobile-fab {
  display: none;
}
.must-change-banner {
  display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 10px 14px;
  border: 1px solid #f2ddb7; background: #fff8ea; color: #7a5300; border-radius: 11px; font-size: 11.5px;
}
.must-change-banner .btn { margin-left: auto; flex: 0 0 auto; }
.project-card { text-decoration: none; color: inherit; }
.report-row .rname { word-break: break-all; }
.confirm-box label { cursor: pointer; }

/* ============================== responsive ============================= */
@media (max-width: 1180px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .file-cards { grid-template-columns: 1fr; }
  .overview-grid, .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  body { font-size: 13.5px; }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .topbar { height: 62px; padding: 0 16px; gap: 10px; background: rgba(255,255,255,.9); }
  .topbar-title h1 { font-size: 16px; }
  .topbar-title p { display: none; }
  .top-date { display: none; }
  .top-avatar { padding: 3px; border: 0; background: transparent; }
  .top-avatar .t-name { display: none; }
  .top-avatar .avatar { width: 32px; height: 32px; }
  .topbar-actions .btn { display: none; }
  .mobile-top-logo { display: block; width: 30px; height: 30px; border-radius: 8px; }
  .content { padding: 15px 14px calc(86px + env(safe-area-inset-bottom)); }
  .page-hero h2 { font-size: 21px; }
  .page-hero p { font-size: 11px; }
  .dash-hero { padding: 19px 18px; border-radius: 17px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .dash-hero h2 { font-size: 21px; }
  .dash-hero-actions { margin-left: 0; width: 100%; }
  .dash-hero-actions .btn { flex: 1; }
  .dash-hero-mark { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric { padding: 12px; gap: 9px; }
  .metric-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 9px; }
  .metric-val { font-size: 19px; }
  .metric-label { font-size: 9.5px; }
  .project-grid { grid-template-columns: 1fr; gap: 10px; }
  .project-card { min-height: 0; padding: 15px; }
  .project-stats { margin-top: 14px; padding-top: 12px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .filter-bar { gap: 7px; }
  .search-box { min-width: 100%; order: 5; }
  .filter-pills { flex: 1; }
  .filter-pill { flex: 1; padding: 7px 8px; }
  .detail-head { padding: 16px; border-radius: 16px; }
  .detail-title-row { flex-wrap: wrap; }
  .detail-title-row h2 { font-size: 21px; }
  .detail-actions { margin-left: 0; width: 100%; justify-content: flex-start; }
  .detail-stats { gap: 18px; }
  .detail-tabs { margin-top: 13px; }
  .dtab { padding: 10px 11px; font-size: 12px; }
  .report-actions { grid-template-columns: 1fr; }
  .person-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .profile-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal, .modal.wide, .modal.narrow { width: 100%; height: 100%; max-height: 100%; border-radius: 0; animation: sheetIn .28s cubic-bezier(.2,.8,.2,1); }
  @keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
  .modal-head { padding: 17px 18px 0; flex: 0 0 auto; }
  .modal-body { padding: 15px 18px calc(104px + env(safe-area-inset-bottom)); flex: 1 1 auto; min-height: 0; overflow-y: auto; scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .modal-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); flex: 0 0 auto; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: #fff; box-shadow: 0 -8px 20px rgba(14,35,62,.10); }
  .modal-foot .btn { flex: 1; }
  .member-menu { position: static; margin-top: 6px; max-height: none; box-shadow: none; }
  .permission-grid { grid-template-columns: 1fr 1fr; }
  .apt-head, .apt-row { grid-template-columns: 1fr 66px 66px; }
  .member-options { max-height: 220px; }
  .toast-root { top: auto; bottom: calc(74px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255,255,255,.94); backdrop-filter: blur(18px);
    border-top: 1px solid rgba(210,221,236,.7);
    padding: 6px 8px calc(5px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: transparent; color: var(--ink-400); font-size: 9px; padding: 5px 2px; border-radius: 9px; position: relative; }
  .bn-item .icon { width: 21px; height: 21px; }
  .bn-item.active { color: var(--blue-600); }
  .bn-item.active::before { content: ""; position: absolute; top: -6px; width: 20px; height: 2.5px; border-radius: 2px; background: var(--blue-600); }
  .bn-fab { flex: 0 0 54px; display: flex; align-items: center; justify-content: center; }
  .bn-fab button { width: 46px; height: 46px; border-radius: 15px; border: 0; background: linear-gradient(135deg, var(--blue-600), #3a9f97); color: #fff; box-shadow: 0 9px 22px rgba(20,102,216,.32); display: grid; place-items: center; margin-top: -19px; }
  .bn-fab button .icon { width: 23px; height: 23px; }
  .mobile-fab {
    display: grid; place-items: center; position: fixed; right: 17px; bottom: calc(82px + env(safe-area-inset-bottom));
    width: 50px; height: 50px; border-radius: 16px; border: 0; z-index: 55;
    background: linear-gradient(135deg, var(--blue-600), #3a9f97); color: #fff;
    box-shadow: 0 12px 26px rgba(20,102,216,.34);
  }
  .mobile-fab:active { transform: scale(.96); }
  .must-change-banner { align-items: flex-start; flex-wrap: wrap; }
  .must-change-banner .btn { margin-left: 25px; }
  .hours-head { flex-direction: column; }
  .hours-tools { width: 100%; margin-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .hours-tools .filter-select { max-width: none; width: 100%; }
  .month-range { grid-column: 1 / -1; width: 100%; }
  .month-range .input { flex: 1; width: auto; }
  .hours-tools .btn { grid-column: 1 / -1; width: 100%; }
  .hours-table-wrap { display: none; }
  .hours-mobile-cards { display: grid; }
  .hours-summary-bar { gap: 10px 16px; }
  .hours-summary-bar .hours-total { margin-left: 0; width: 100%; }
  .personnel-hours-head { flex-direction: column; }
  .personnel-hours-tools { width: 100%; margin-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .personnel-hours-tools .filter-select { max-width: none; width: 100%; }
  .personnel-hours-tools .multi-picker { width: 100%; }
  .personnel-hours-tools .multi-picker summary { max-width: none; width: 100%; }
  .personnel-hours-tools .multi-menu { left: 0; right: auto; width: 100%; }
  .import-guide { flex-direction: column; }
  .import-actions .btn { flex: 1; }
  .import-table-wrap { max-height: 42vh; }
  .personnel-hours-tools .btn { grid-column: 1 / -1; width: 100%; }
  .personnel-summary-bar { gap: 9px 14px; }
  .personnel-summary-bar .personnel-total { margin-left: 0; width: 100%; }
  .personnel-hours-table-wrap { display: none; }
  .personnel-hours-cards { display: grid; }
  .archive-grid { grid-template-columns: 1fr; }
  .bn-item { font-size: 8.5px; }
  .issue-head { flex-direction: column; }
  .issue-tools { width: 100%; justify-content: stretch; margin-left: 0; }
  .issue-tools .filter-select { flex: 1; max-width: none; width: auto; }
  .issue-tools .btn { flex: 0 0 auto; }
  .issue-table { min-width: 900px; }
  .issue-table-wrap { display: none; }
  .issue-mobile-list { display: grid; }
  .issue-mobile-card { color: inherit; }
  .workday-side { flex-basis: auto; }
  .person-card { padding: 12px; }
  .person-card .p-actions { display: none; }
  .table-wrap table.data { min-width: 620px; }
  .install-banner { align-items: flex-start; flex-wrap: wrap; }
  .install-banner .btn { margin-left: 51px; }
}
@media (max-width: 480px) {
  .login-page { display: block; }
  .login-brand { display: none; }
  .login-panel { padding: 28px 22px; min-height: 100dvh; align-items: start; padding-top: 12vh; background: #fff; }
  .login-mobile-brand { display: flex; }
  .login-card { width: 100%; }
  .login-heading { font-size: 24px; }
  .person-grid { grid-template-columns: 1fr; }
  .filter-pills { flex-wrap: nowrap; overflow-x: auto; }
  .filter-pill { flex: 0 0 auto; }
  .topbar-actions .btn span { display: none; }
  .topbar-actions .btn { padding: 8px; }
  .topbar-actions .btn { display: none; }
  .detail-stats { gap: 10px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-stats .date-stat { display: none; }
  .detail-stats .dstat b { font-size: 15px; }
  .dstat span { font-size: 9px; }
  .detail-stats { gap: 14px; justify-content: space-between; }
  .dstat b { font-size: 15px; }
  .date-block { flex-basis: 46px; }
  .modal-body { padding-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
  .sidebar, .topbar, .bottom-nav, .page-actions, .detail-actions, .detail-tabs { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; }
  .card, .detail-head { box-shadow: none; border-color: #ddd; }
}

/* ============================== asset ledger =========================== */
.cat-station { --cat: #2f8f87; --cat-bg: #e7f0ff; }
.cat-cabinet { --cat: #2f8f87; --cat-bg: #e2f8fc; }
.cat-circuit { --cat: #168a52; --cat-bg: #e6f7ee; }
.cat-breaker { --cat: #a86b00; --cat-bg: #fff3dc; }
.cat-component { --cat: #62718a; --cat-bg: #eff3f8; }
.asset-metric .metric-icon, .asset-ico, .asset-cat-tag { color: var(--cat); background: var(--cat-bg); }
.asset-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.asset-cat-tag { display: inline-flex; align-items: center; border-radius: 99px; padding: 2px 8px; font-size: 10px; font-weight: 600; }
.asset-list { display: grid; gap: 8px; }
.asset-row { display: grid; grid-template-columns: 34px minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: inherit; transition: border-color .15s, box-shadow .15s; }
.asset-row:hover { border-color: #bcd6f6; box-shadow: var(--shadow-sm); }
.asset-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: 0 0 auto; }
.asset-ico.lg { width: 46px; height: 46px; border-radius: 13px; font-size: 16px; }
.asset-main { min-width: 0; }
.asset-main b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-main span { display: block; color: var(--ink-400); font-size: 10.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-tech { font-size: 10.5px; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-side { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.asset-due { font-size: 9.5px; color: var(--ink-400); }
.asset-count { font-size: 10.5px; color: var(--ink-400); }
.asset-more { display: flex; justify-content: center; }
.asset-crumb { display: flex; gap: 7px; flex-wrap: wrap; font-size: 11px; color: var(--ink-400); align-items: center; }
.asset-crumb b { color: var(--ink-700); }
.asset-hero { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; background: linear-gradient(135deg, #fff, #f7fbff); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.asset-hero-main { display: flex; gap: 13px; align-items: center; min-width: 0; }
.asset-hero h2 { margin: 0; font-size: 20px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.asset-hero p { margin: 4px 0 0; font-size: 11px; color: var(--ink-500); }
.asset-hero-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.asset-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 262px; gap: 16px; align-items: start; }
.asset-aside { display: grid; gap: 14px; position: sticky; top: 16px; }
.asset-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.asset-info span { display: block; font-size: 10px; color: var(--ink-400); }
.asset-info b { display: block; font-size: 12px; font-weight: 600; margin-top: 2px; word-break: break-all; }
.asset-note { background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 11.5px; color: var(--ink-700); margin: 0; }
.asset-aliases { margin-top: 10px; font-size: 10.5px; color: var(--ink-400); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.asset-children { display: grid; gap: 7px; }
.asset-row.compact { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 9px 11px; }
.asset-issue { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f4fa; align-items: flex-start; }
.asset-issue:last-child { border-bottom: 0; }
.asset-issue b { font-size: 12px; }
.asset-issue span { display: block; font-size: 10px; color: var(--ink-400); margin-top: 2px; }
.asset-timeline .tl-title { font-size: 12.5px; }
.asset-timeline .tl-result { font-size: 11px; color: var(--green-600); margin-top: 3px; }
.asset-timeline .tl-item.warn::before { background: var(--red-600); box-shadow: 0 0 0 1px #f3c3c3; }
.asset-summary { display: grid; gap: 9px; }
.asset-summary div { display: flex; justify-content: space-between; font-size: 11.5px; }
.asset-summary span { color: var(--ink-400); }
.asset-summary b.danger { color: var(--red-600); }
.camera-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #0a1626; border-radius: 12px; overflow: hidden; }
.camera-frame video { width: 100%; height: 100%; object-fit: cover; }
.camera-line { position: absolute; left: 8%; right: 8%; height: 2px; background: #48d2e8; box-shadow: 0 0 12px #48d2e8; animation: cameraline 2.2s ease-in-out infinite; }
@keyframes cameraline { 0%, 100% { top: 18%; } 50% { top: 82%; } }

@media (max-width: 900px) {
  .asset-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-detail-grid { grid-template-columns: 1fr; }
  .asset-aside { position: static; }
  .asset-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .asset-tech { display: none; }
  .asset-hero { flex-direction: column; }
  .asset-hero-actions { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .asset-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-info-grid { grid-template-columns: 1fr 1fr; }
  .asset-row { padding: 10px 11px; gap: 9px; }
  .asset-side .asset-due { display: none; }
}

.asset-row.compact .asset-tech { display: none; }
.asset-row.compact .asset-side { flex-wrap: nowrap; }

/* asset list columns: 上次运维 / 未处理缺陷 */
.asset-list-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.55fr) minmax(0, 0.95fr) 104px 92px;
  gap: 12px;
  padding: 9px 15px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-500);
  background: #f6f9fd;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 1px;
}
.asset-list-head .alh-main { grid-column: 1 / 3; }
.asset-list-head .alh-defects { text-align: left; }
.asset-row { grid-template-columns: 34px minmax(0, 1.55fr) minmax(0, 0.95fr) 104px 92px; }
.asset-row.compact { grid-template-columns: 30px minmax(0, 1fr) auto; }
.asset-row.compact .asset-tech,
.asset-row.compact .asset-service { display: none; }
.asset-service, .asset-defects { min-width: 0; font-size: 11.5px; color: var(--ink-700); display: flex; align-items: center; }
.asset-service b { font-weight: 600; }
.asset-defects { gap: 5px; }
.asset-col-label { display: none; font-size: 9.5px; font-weight: 400; color: var(--ink-400); }
.asset-none { color: var(--ink-400); }
.asset-main .asset-service-inline { display: none; color: var(--ink-400); font-size: 10px; margin-top: 2px; }
.asset-main .asset-meta-inline { display: block; color: var(--ink-400); font-size: 10px; margin-top: 2px; }
.import-guide { display:flex; gap:8px; margin-bottom:14px; }
.import-guide-step { flex:1; display:flex; align-items:center; gap:7px; padding:9px 10px; border-radius:9px; background:var(--bg); border:1px solid var(--line); font-size:10.5px; color:var(--ink-500); }
.import-guide-step b { width:20px; height:20px; border-radius:50%; display:grid; place-items:center; background:var(--blue-500); color:#fff; font-size:10px; flex:0 0 auto; }
.import-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.import-pick { cursor:pointer; }
.import-loading { display:grid; gap:8px; }
.import-result { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 13px; border-radius:10px; border:1px solid var(--line); background:var(--bg); margin-bottom:10px; }
.import-result.ok { border-color:#c9e9e4; background:#f4fbf9; }
.import-result.empty, .import-result.error { border-color:#f1d9b0; background:#fffaf0; }
.import-result b { display:block; font-size:12px; color:var(--ink-900); margin-bottom:2px; }
.import-result span { font-size:11px; color:var(--ink-500); }
.import-warnings { margin:0 0 12px; padding:8px 10px; border-radius:9px; background:#fff8e8; border:1px solid #f0dfb9; display:grid; gap:5px; }
.import-warnings div { display:flex; gap:6px; align-items:flex-start; font-size:10.5px; color:#8a5b11; line-height:1.6; }
.import-warnings .icon { flex:0 0 auto; margin-top:1px; }
.import-preview-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:4px 0 8px; }
.import-preview-head b { font-size:12px; }
.import-preview-head span { font-size:10.5px; color:var(--ink-400); }
.import-table-wrap { max-height:310px; border:1px solid var(--line); border-radius:9px; }
.import-table { min-width:720px; }
.import-table th { position:sticky; top:0; z-index:1; background:#f6fbfa; }
.import-table td { font-size:10.5px; }.asset-settings-list { display: grid; gap: 10px; }
.asset-setting-row { display: grid; grid-template-columns: minmax(0,1fr) 180px 180px; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdff; }
.asr-name b { display: block; font-size: 12.5px; }
.asr-name span { display: block; color: var(--ink-400); font-size: 10px; margin-top: 2px; }
.asr-field { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-500); }
.asr-field .input { width: 78px; padding: 7px 9px; }
@media (max-width: 900px) {
  .asset-setting-row { grid-template-columns: 1fr 1fr; }
  .asr-name { grid-column: 1 / -1; }
}
.asset-main b .badge { margin-left: 4px; vertical-align: 1px; }

@media (max-width: 1180px) {
  .asset-list-head { grid-template-columns: 34px minmax(0, 1fr) 104px 92px; }
  .asset-list-head .alh-tech { display: none; }
  .asset-row { grid-template-columns: 34px minmax(0, 1fr) 104px 92px; }
  .asset-row .asset-tech { display: none; }
}
@media (max-width: 900px) {
  .asset-list-head { display: none; }
  .asset-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .asset-row .asset-tech, .asset-row .asset-service { display: none; }
  .asset-main .asset-service-inline { display: block; }
  .asset-col-label { display: inline; }
  .asset-defects { justify-content: flex-end; }
  .asset-row.compact { grid-template-columns: 30px minmax(0, 1fr) auto; }
}

@media (max-width: 900px) {
  .asset-row.compact .asset-col-label { display: none; }
}

/* full-page member picker */
.member-page {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.member-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 20px 10px; }
.member-page-head h3 { margin: 0; font-size: 19px; }
.member-page-head p { margin: 4px 0 0; font-size: 11px; color: var(--ink-400); }
.member-page-search { padding: 6px 20px 12px; border-bottom: 1px solid var(--line); }
.member-page-options { flex: 1; overflow: auto; padding: 4px 20px 12px; }
.member-page .member-option { padding: 13px 4px; border-bottom: 1px solid #f1f5fa; font-size: 13px; }
.member-page-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.member-page-foot span { font-size: 12px; color: var(--ink-500); }
@media (min-width: 720px) {
  .member-page { left: 50%; top: 50%; width: min(560px, 92vw); height: min(680px, 88vh); transform: translate(-50%, -50%); border-radius: 18px; box-shadow: var(--shadow-lg); }
}

.complete-ticket-box { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; border: 1px dashed #b9d3f5; border-radius: 12px; background: #f7fbff; }
.complete-ticket-box > div:first-child b { display: block; font-size: 12.5px; }
.complete-ticket-box > div:first-child span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--ink-400); }
.complete-ticket-actions { display: flex; gap: 7px; flex-wrap: wrap; }

.text-danger { color: var(--red-600); }
.asset-expand { margin-left: 6px; color: var(--blue-600); font-size: 10.5px; cursor: pointer; user-select: none; }
.asset-expand:hover { text-decoration: underline; }
.asset-inline-children { display: grid; gap: 6px; padding: 4px 0 6px 46px; }
.asset-inline-empty { padding: 12px 14px; font-size: 11px; color: var(--ink-400); }
@media (max-width: 900px) {
  .asset-inline-children { padding-left: 12px; }
}

.asset-metric[href] { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.asset-metric[href]:hover { border-color: #bcd6f6; box-shadow: var(--shadow-md); }













