/* 项目出租率 · 独立系统
   设计：深林绿 / 米纸 / 陶土红，编辑式仪表盘 */
:root {
  --forest: #173f35;
  --forest-deep: #0d2b23;
  --forest-soft: #24584a;
  --sage: #8fa99d;
  --cream: #f4efe4;
  --cream-deep: #ebe3d4;
  --paper: #fffdf8;
  --paper-soft: #faf6ed;
  --ink: #1d2922;
  --ink-soft: #43524a;
  --muted: #778078;
  --line: #e3dac9;
  --line-soft: #eee7da;
  --clay: #b24a34;
  --clay-deep: #943a26;
  --clay-soft: #f8e6df;
  --gold: #c7a252;
  --gold-soft: #efe3c6;
  --green-soft: #e3ece6;
  --shadow-sm: 0 1px 2px rgba(34, 42, 36, .05), 0 6px 18px rgba(34, 42, 36, .04);
  --shadow-md: 0 16px 40px rgba(34, 42, 36, .09);
  --shadow-lg: 0 30px 80px rgba(22, 32, 26, .18);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 252px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 88% -10%, rgba(199, 162, 82, .12), transparent 60%),
    radial-gradient(800px 460px at -8% 40%, rgba(23, 63, 53, .06), transparent 60%),
    var(--cream);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
::selection { background: var(--gold-soft); color: var(--forest-deep); }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- boot */
.boot {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.boot-inner { text-align: center; animation: fadeUp .5s ease both; }
.boot-mark {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--forest); color: var(--gold);
  font-family: var(--font-serif); font-size: 30px; font-weight: 700;
  box-shadow: 0 14px 34px rgba(23, 63, 53, .24);
  animation: breathe 1.8s ease-in-out infinite;
}
.boot-title { font-family: var(--font-serif); font-size: 21px; letter-spacing: 3px; color: var(--forest); }
.boot-sub { margin-top: 4px; font-size: 11px; letter-spacing: 2.4px; color: var(--muted); text-transform: uppercase; }
.boot-line { width: 96px; height: 2px; margin: 18px auto 0; background: var(--line); overflow: hidden; border-radius: 2px; }
.boot-line::after { content: ""; display: block; width: 44%; height: 100%; background: var(--gold); animation: slide 1.1s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(330%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- shell */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--sidebar);
  display: flex; flex-direction: column;
  color: rgba(255, 253, 246, .82);
  background:
    radial-gradient(520px 300px at 10% 0%, rgba(199, 162, 82, .16), transparent 62%),
    linear-gradient(168deg, #1a453a 0%, var(--forest) 46%, var(--forest-deep) 100%);
  border-right: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
}
.sidebar::after {
  content: ""; position: absolute; inset: auto -70px -90px auto;
  width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(199, 162, 82, .16);
  box-shadow: 0 0 0 36px rgba(199, 162, 82, .035), 0 0 0 74px rgba(199, 162, 82, .025);
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 26px 22px 18px; position: relative; z-index: 1; }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #d8b76c, var(--gold));
  color: var(--forest-deep); font-family: var(--font-serif); font-size: 22px; font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
.brand-name { color: #fffdf6; font-family: var(--font-serif); font-size: 17px; font-weight: 700; letter-spacing: 1.6px; line-height: 1.3; }
.brand-en { font-size: 8px; letter-spacing: 2.4px; color: rgba(255, 253, 246, .45); text-transform: uppercase; margin-top: 2px; }
.side-label { padding: 2px 24px 8px; font-size: 9px; letter-spacing: 2.2px; color: rgba(255, 253, 246, .34); text-transform: uppercase; }
.nav { padding: 4px 12px; position: relative; z-index: 1; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; margin-bottom: 3px; border-radius: 9px;
  font-size: 13.5px; color: rgba(255, 253, 246, .63);
  transition: background .16s, color .16s, transform .16s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .065); }
.nav-link.active { color: #fffdf6; background: rgba(255, 255, 255, .11); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .045); }
.nav-link.active::before {
  content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px;
  background: var(--gold); border-radius: 0 3px 3px 0;
}
.nav-link .ico { opacity: .82; flex: 0 0 auto; }
.nav-link.active .ico { opacity: 1; color: var(--gold); }
.nav-badge {
  margin-left: auto; min-width: 19px; height: 19px; padding: 0 6px;
  border-radius: 20px; display: inline-grid; place-items: center;
  background: #c4442d; color: #fff; font-size: 10.5px; font-weight: 700;
  box-shadow: 0 0 0 3px rgba(196, 68, 45, .16);
}
.sidebar-foot { margin-top: auto; padding: 14px 14px 18px; position: relative; z-index: 1; }
.side-divider { height: 1px; background: rgba(255, 253, 246, .09); margin: 0 8px 12px; }
.mini-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; width: 100%; border: 0; background: transparent; color: inherit; text-align: left; }
.mini-user:hover { background: rgba(255, 255, 255, .06); }
.avatar {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(199, 162, 82, .2); color: var(--gold-soft);
  border: 1px solid rgba(199, 162, 82, .28);
  font-size: 13px; font-weight: 700;
}
.mini-user-name { display: block; color: #fffdf6; font-size: 12.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-user-role { display: block; font-size: 10px; color: rgba(255, 253, 246, .44); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-user > span:nth-child(2) { min-width: 0; }
.mini-user-more { margin-left: auto; color: rgba(255, 253, 246, .38); }
.side-logout { display: flex; align-items: center; gap: 7px; width: 100%; margin-top: 4px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: rgba(255, 253, 246, .55); font-size: 11px; text-align: left; }
.side-logout:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.version { padding: 10px 8px 0; font-size: 9px; letter-spacing: 1px; color: rgba(255, 253, 246, .26); }

.main { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  min-height: 72px; padding: 0 40px;
  display: flex; align-items: center; gap: 18px;
  background: rgba(244, 239, 228, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 218, 201, .72);
}
.topbar-title { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); letter-spacing: .3px; }
.topbar-title strong { color: var(--ink); font-weight: 600; }
.topbar-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.today-label { font-size: 11.5px; color: var(--muted); margin-right: 5px; font-variant-numeric: tabular-nums; }
.mobile-brand { display: none; align-items: center; gap: 9px; font-family: var(--font-serif); font-weight: 700; color: var(--forest); letter-spacing: 1px; flex-shrink: 0; white-space: nowrap; }
.mobile-brand .brand-mark { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; font-size: 17px; }

.icon-btn {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  display: inline-grid; place-items: center; background: rgba(255, 253, 248, .72); color: var(--ink-soft);
  position: relative; transition: .16s;
}
.icon-btn:hover { background: var(--paper); border-color: #d5c9b4; color: var(--forest); transform: translateY(-1px); }
.logout-btn { width: auto; min-width: 38px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.logout-text { line-height: 1; white-space: nowrap; }
.icon-btn .dot-badge {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 20px; background: #c4442d; color: white; font-size: 9.5px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--cream);
}
.avatar-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; }
.avatar-btn .avatar { width: 38px; height: 38px; flex-basis: 38px; background: var(--forest); color: var(--gold-soft); border-color: var(--forest); }

.content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 30px 40px 64px; flex: 1; }
.page { animation: fadeUp .34s ease both; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { font-size: 9.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--clay); font-weight: 700; margin-bottom: 7px; }
.page-title { font-family: var(--font-serif); font-size: 31px; line-height: 1.2; letter-spacing: -.4px; font-weight: 700; color: var(--forest-deep); }
.page-sub { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 12px; transition: color .15s; }
.back-link:hover { color: var(--forest); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 8px 15px; border-radius: 9px;
  border: 1px solid transparent; background: transparent;
  font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: transform .14s, background .14s, border-color .14s, color .14s, box-shadow .14s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--forest); color: #fffdf6; box-shadow: 0 6px 16px rgba(23, 63, 53, .18); }
.btn-primary:hover { background: var(--forest-soft); box-shadow: 0 8px 22px rgba(23, 63, 53, .22); }
.btn-clay { background: var(--clay); color: #fff; box-shadow: 0 6px 16px rgba(178, 74, 52, .2); }
.btn-clay:hover { background: var(--clay-deep); }
.btn-ghost { border-color: var(--line); background: rgba(255, 253, 248, .6); color: var(--ink-soft); }
.btn-ghost:hover { background: var(--paper); border-color: #d2c5af; color: var(--forest); }
.btn-soft { background: var(--paper-soft); color: var(--forest); border-color: var(--line-soft); }
.btn-soft:hover { background: var(--green-soft); }
.btn-danger-soft { background: var(--clay-soft); color: var(--clay-deep); border-color: #efd2c7; }
.btn-danger-soft:hover { background: #f4d9d0; }
.btn-light { background: #fff7ea; color: var(--clay-deep); box-shadow: 0 5px 14px rgba(0, 0, 0, .12); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 30px; padding: 5px 10px; font-size: 11.5px; border-radius: 7px; gap: 5px; }
.btn-xs { min-height: 27px; padding: 4px 8px; font-size: 11px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-icon-only { width: 32px; height: 32px; min-height: 0; padding: 0; }
.link-btn { border: 0; background: none; padding: 0; color: var(--forest); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.link-btn:hover { color: var(--clay); }
.link-btn.danger { color: var(--clay); }

/* ---------------------------------------------------------------- cards / common */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.muted { color: var(--muted); }
.tiny { font-size: 10.5px; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.section-title { font-family: var(--font-serif); font-size: 18px; color: var(--forest-deep); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title .count { font-family: var(--font-sans); font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .4px; }
.section-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.hr { height: 1px; background: var(--line-soft); border: 0; margin: 18px 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 5px; font-size: 10px; font-weight: 600; background: var(--paper-soft); color: var(--muted); border: 1px solid var(--line-soft); white-space: nowrap; }
.tag-gold { background: #f8efd9; color: #82651e; border-color: #ecdcb6; }
.tag-red { background: var(--clay-soft); color: var(--clay-deep); border-color: #efd1c5; }
.tag-green { background: var(--green-soft); color: #2e614b; border-color: #d2e1d7; }
.tag-gray { background: #f2f0ea; color: #777; border-color: #e7e2d7; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 20px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-vacant { background: #edf3ee; color: #3e7257; }
.pill-leased { background: #f6ebd3; color: #82651e; }
.pill-inactive { background: #f0eeea; color: #8c8b86; }
.pill-active { background: #e5efe8; color: #2e614b; }
.pill-admin { background: #e5efe8; color: #2e614b; }
.pill-staff { background: #eef1ec; color: #55705f; }
.pill-agent { background: #f6ebd3; color: #82651e; }
.pill-ended { background: #f1ede4; color: #82755f; }
.pill-terminated { background: #f8e7e1; color: #9b432e; }
.pill-overdue { background: #c4442d; color: #fff; }
.pill-today { background: #b24a34; color: #fff; }
.pill-upcoming { background: #f2e2c8; color: #80601d; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* ---------------------------------------------------------------- alert banner */
.alert-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 18px;
  padding: 19px 22px; margin-bottom: 20px;
  border-radius: 17px;
  color: #fff8ef;
  background: linear-gradient(112deg, #a8422c 0%, #b24a34 54%, #8f3522 100%);
  box-shadow: 0 18px 34px -16px rgba(148, 58, 38, .55);
  animation: fadeUp .42s ease both;
}
.alert-banner::after {
  content: ""; position: absolute; right: -40px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(255, 248, 239, .16); box-shadow: 0 0 0 34px rgba(255, 248, 239, .035), 0 0 0 68px rgba(255, 248, 239, .02);
}
.alert-icon {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(255, 248, 239, .15); border: 1px solid rgba(255, 248, 239, .18);
}
.alert-body { min-width: 0; flex: 1; position: relative; z-index: 1; }
.alert-title { font-family: var(--font-serif); font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.alert-title b { font-family: var(--font-sans); font-size: 21px; background: #fff3e2; color: var(--clay-deep); border-radius: 7px; padding: 0 8px; line-height: 1.5; }
.alert-sub { margin-top: 4px; font-size: 11.5px; color: rgba(255, 248, 239, .78); }
.alert-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.alert-chip { padding: 3px 8px; border-radius: 5px; font-size: 10px; background: rgba(255, 255, 255, .1); color: rgba(255, 248, 239, .92); border: 1px solid rgba(255, 255, 255, .1); }
.alert-actions { position: relative; z-index: 1; flex: 0 0 auto; }
.calm-banner {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 16px;
  border: 1px solid #d7e2d8; background: rgba(255, 253, 248, .65); border-radius: 11px;
  color: #4f6c5b; font-size: 12px;
}
.calm-banner .ico { color: #6e927d; }
.calm-banner b { color: var(--forest); }

/* ---------------------------------------------------------------- dashboard */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .8fr); gap: 16px; align-items: stretch; }
.overview-card {
  position: relative; overflow: hidden;
  min-height: 248px; padding: 27px 29px;
  display: grid; grid-template-columns: minmax(0, 1fr) 216px; align-items: center; gap: 16px;
  color: #fffdf6;
  background:
    radial-gradient(420px 260px at 105% 110%, rgba(199, 162, 82, .18), transparent 62%),
    linear-gradient(128deg, #1c4a3e 0%, #173f35 52%, #0e2f26 100%);
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: var(--radius); box-shadow: 0 20px 45px -18px rgba(16, 44, 35, .5);
}
.overview-card::before {
  content: ""; position: absolute; right: 150px; top: -80px;
  width: 250px; height: 250px; border-radius: 50%;
  border: 1px solid rgba(199, 162, 82, .13);
  box-shadow: 0 0 0 32px rgba(199, 162, 82, .026), 0 0 0 64px rgba(199, 162, 82, .018);
  pointer-events: none;
}
.overview-copy { position: relative; z-index: 1; }
.overview-kicker { font-size: 9px; letter-spacing: 2.4px; text-transform: uppercase; color: rgba(239, 227, 198, .6); margin-bottom: 7px; }
.overview-rate { font-family: var(--font-serif); font-size: 58px; line-height: 1; letter-spacing: -2px; color: #fffdf6; }
.overview-rate span { font-size: 20px; letter-spacing: 0; color: var(--gold-soft); margin-left: 3px; }
.overview-desc { margin-top: 8px; font-size: 11.5px; color: rgba(255, 253, 246, .62); }
.overview-desc b { color: rgba(255, 253, 246, .95); font-weight: 600; }
.overview-dual { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.overview-dual .dual {
  padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .075); min-width: 104px;
}
.dual-label { font-size: 9.5px; color: rgba(255, 253, 246, .5); }
.dual-value { margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.ring-wrap { position: relative; z-index: 1; display: grid; place-items: center; }
.ring { position: relative; width: 190px; height: 190px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: rgba(255, 253, 246, .11); }
.ring .progress { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.22, 1, .36, 1); filter: drop-shadow(0 0 5px rgba(199, 162, 82, .25)); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-center .ring-num { font-family: var(--font-serif); font-size: 34px; line-height: 1; color: #fffdf6; }
.ring-center .ring-num span { font-size: 13px; color: var(--gold-soft); }
.ring-center .ring-cap { margin-top: 5px; font-size: 9.5px; letter-spacing: 1.4px; color: rgba(255, 253, 246, .5); text-transform: uppercase; }
.ring-center .ring-sub { margin-top: 2px; font-size: 10px; color: rgba(255, 253, 246, .75); }

.stat-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card {
  position: relative; min-height: 118px; padding: 16px 17px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .16s, box-shadow .16s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: var(--green-soft); color: var(--forest); }
.stat-card.clay .stat-icon { background: var(--clay-soft); color: var(--clay); }
.stat-card.gold .stat-icon { background: var(--gold-soft); color: #7d6222; }
.stat-label { margin-top: 10px; font-size: 10.5px; color: var(--muted); letter-spacing: .2px; }
.stat-value { margin-top: 1px; font-family: var(--font-serif); font-size: 24px; line-height: 1.15; color: var(--forest-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-value small { font-family: var(--font-sans); font-size: 10px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat-note { margin-top: 2px; font-size: 9.5px; color: #9a9f97; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project-card {
  position: relative; overflow: hidden;
  display: block; padding: 19px 19px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.project-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--accent, var(--forest)); opacity: .82; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d8cbb8; }
.project-card.a1 { --accent: #2e6a57; } .project-card.a2 { --accent: #a2702f; }
.project-card.a3 { --accent: #5c7066; } .project-card.a4 { --accent: #a6543e; }
.project-card.a5 { --accent: #566b4d; } .project-card.a6 { --accent: #7b6548; }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.district { font-size: 9.5px; letter-spacing: 1px; color: var(--muted); margin-bottom: 3px; }
.project-name { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.35; font-weight: 700; color: var(--forest-deep); }
.project-arrow { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); flex: 0 0 auto; }
.project-card:hover .project-arrow { background: var(--forest); color: #fff; border-color: var(--forest); }
.project-rate-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 15px 0 11px; }
.project-rate { display: flex; align-items: baseline; gap: 4px; }
.rate-number { font-family: var(--font-serif); font-size: 33px; line-height: 1; font-weight: 700; color: var(--forest-deep); letter-spacing: -.8px; }
.rate-symbol { font-size: 12px; color: var(--muted); }
.rate-caption { font-size: 9.5px; color: var(--muted); text-align: right; line-height: 1.4; }
.rate-caption b { display: block; color: var(--ink-soft); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 38px; align-items: center; gap: 7px; }
.bar-label { font-size: 9.5px; color: var(--muted); }
.bar-track { height: 5px; border-radius: 5px; background: #eee8dc; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: var(--accent, var(--forest)); transition: width .7s cubic-bezier(.22, 1, .36, 1); }
.bar-fill.soft { background: var(--sage); }
.bar-val { text-align: right; font-size: 9.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.project-foot { border-top: 1px dashed var(--line-soft); margin-top: 13px; padding-top: 10px; font-size: 9.5px; color: var(--muted); }
.project-foot b { color: var(--ink-soft); font-weight: 600; }
.project-foot .alert-dot { color: var(--clay); font-weight: 700; }
.foot-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; line-height: 1.55; }
.fact-area { flex: 1 1 100%; font-size: 9.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fact-area b { color: var(--ink); font-size: 11px; }
.fact-sep { color: var(--line); margin: 0 1px; }
.foot-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 7px; border-top: 1px dotted var(--line-soft); }
.foot-total { display: flex; align-items: center; gap: 6px; }
.vacant-badge { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 999px; background: #f8e3dc; color: var(--clay); font-weight: 600; line-height: 1.6; }
.vacant-badge b { color: var(--clay); font-weight: 700; }

/* ---------------------------------------------------------------- summary strip */
.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.summary-item { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.summary-item .lab { font-size: 9.5px; color: var(--muted); letter-spacing: .4px; }
.summary-item .val { margin-top: 2px; font-family: var(--font-serif); font-size: 21px; font-weight: 700; color: var(--forest-deep); font-variant-numeric: tabular-nums; }
.summary-item .val small { font-family: var(--font-sans); font-size: 9.5px; color: var(--muted); font-weight: 400; margin-left: 2px; }

/* ---------------------------------------------------------------- filters / forms */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
  padding: 14px 15px; margin-bottom: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm);
}
.toolbar .field { margin: 0; min-width: 135px; }
.toolbar .field.grow { flex: 1 1 180px; }
.toolbar .spacer { flex: 1; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .field-label { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: .2px; }
.field > label .req { color: var(--clay); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 39px; padding: 8px 11px;
  background: #fffefb; border: 1px solid #ddd3c1; border-radius: 8px;
  font-size: 12.5px; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.textarea { min-height: 76px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: #b1ad9f; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(23, 63, 53, .09); background: #fff; }
.input:disabled, .select:disabled, .textarea:disabled { background: #f6f3eb; color: #9b998f; cursor: not-allowed; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23778078' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 28px; }
.input-sm { min-height: 32px; padding: 5px 9px; font-size: 11.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.form-section { margin: 0 0 22px; }
.form-section:last-child { margin-bottom: 0; }
.form-section-title { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--forest); text-transform: uppercase; }
.form-section-title::after { content: ""; height: 1px; flex: 1; background: var(--line-soft); }
.hint { font-size: 10px; color: var(--muted); line-height: 1.45; }
.hint.gold { color: #8b6f2e; }
.form-error, .alert-error {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 12px; margin-bottom: 14px; border-radius: 8px;
  background: var(--clay-soft); color: #943a26; border: 1px solid #efcfc3; font-size: 11.5px;
}
.form-error:empty { display: none; }
.form-error ul { padding-left: 15px; }
.form-error li { list-style: disc; }
.checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: var(--ink-soft); cursor: pointer; line-height: 1.5; }
.checkbox input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--forest); flex: 0 0 auto; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.checkbox-card { padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--paper-soft); }
.checkbox-card:hover { border-color: #d3c6b0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; background: var(--paper-soft); border: 1px solid var(--line-soft); border-radius: 8px; }
.switch { position: relative; width: 36px; height: 20px; flex: 0 0 36px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 20px; background: #d7d1c4; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 14px; height: 14px; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.switch input:checked + span { background: var(--forest); }
.switch input:checked + span::after { transform: translateX(16px); }

/* ---------------------------------------------------------------- segmented / tabs */
.segmented { display: inline-flex; padding: 3px; background: #eee8dc; border-radius: 9px; gap: 2px; }
.segmented button { border: 0; background: transparent; padding: 5px 10px; border-radius: 7px; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.segmented button.active { background: var(--paper); color: var(--forest); box-shadow: 0 1px 4px rgba(30, 40, 33, .1); }
.tabs { display: inline-flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { position: relative; padding: 9px 16px 10px; font-size: 12px; color: var(--muted); font-weight: 600; border: 0; background: transparent; }
.tab.active { color: var(--forest); }
.tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--forest); }
.tab .tab-count { margin-left: 5px; padding: 1px 5px; border-radius: 4px; background: var(--clay-soft); color: var(--clay-deep); font-size: 9px; }

/* ---------------------------------------------------------------- tables */
.table-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th {
  padding: 10px 13px; text-align: left; white-space: nowrap;
  font-size: 9.5px; font-weight: 700; letter-spacing: .8px; color: #8b8e86;
  background: #faf7f0; border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}
.data-table td { padding: 11px 13px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: var(--ink-soft); }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: #fcf9f2; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tr.row-red { background: #fdf1ec; box-shadow: inset 3px 0 0 var(--clay); }
.data-table tr.row-red:hover { background: #fbe9e2; }
.data-table tr.row-inactive { opacity: .62; }
.data-table .cell-main { color: var(--ink); font-weight: 600; font-size: 12px; line-height: 1.4; }
.data-table .cell-sub { color: var(--muted); font-size: 10px; line-height: 1.4; margin-top: 1px; }
.data-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .actions { display: flex; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
.room-label { display: flex; align-items: center; gap: 7px; }
.room-chip { width: 44px; height: 30px; border-radius: 7px; background: var(--green-soft); color: var(--forest); display: grid; place-items: center; padding: 0 4px; font-size: 10px; font-weight: 700; line-height: 1.1; text-align: center; white-space: nowrap; flex: 0 0 44px; }
.room-chip.vacant { background: #eef1e8; color: #66774f; }
.room-chip.leased { background: var(--gold-soft); color: #7d6120; }
.room-chip.inactive { background: #eeece7; color: #8d8a80; }
.overdue-text { color: var(--clay); font-weight: 700; }
.due-soon { color: #9a7022; font-weight: 600; }

.status-line { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line-soft); background: #fcfaf4; }
.pagination-info { font-size: 10.5px; color: var(--muted); }
.pagination-btns { display: flex; gap: 4px; }
.page-btn { min-width: 27px; height: 27px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink-soft); font-size: 10.5px; }
.page-btn:hover { border-color: var(--sage); }
.page-btn.active { background: var(--forest); color: white; border-color: var(--forest); }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ---------------------------------------------------------------- empty / skeleton */
.empty { padding: 52px 22px; text-align: center; }
.empty-icon { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--forest); }
.empty-title { font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: var(--forest-deep); }
.empty-text { max-width: 360px; margin: 5px auto 0; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.empty .btn { margin-top: 14px; }
.skeleton-page { animation: fadeUp .2s ease both; }
.sk { background: linear-gradient(100deg, #ece5d8 25%, #f5efe4 40%, #ece5d8 55%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 8px; }
.sk-title { width: 210px; height: 30px; margin-bottom: 9px; }
.sk-sub { width: 300px; height: 13px; margin-bottom: 24px; }
.sk-hero { height: 240px; border-radius: 16px; margin-bottom: 20px; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sk-card { height: 185px; border-radius: 14px; }
@keyframes shimmer { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }

/* ---------------------------------------------------------------- reminders */
.reminder-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.rem-sum { position: relative; overflow: hidden; padding: 15px 16px; border-radius: 13px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.rem-sum .lab { font-size: 10px; color: var(--muted); }
.rem-sum .val { margin-top: 2px; font-family: var(--font-serif); font-size: 26px; line-height: 1.15; font-weight: 700; color: var(--forest-deep); font-variant-numeric: tabular-nums; }
.rem-sum .val small { font-family: var(--font-sans); font-size: 10px; color: var(--muted); font-weight: 400; }
.rem-sum.overdue { border-color: #e6c1b5; background: #fdf2ed; }
.rem-sum.overdue .val { color: var(--clay); }
.rem-sum.today { border-color: #e7d3b1; background: #fbf5e9; }
.rem-sum.today .val { color: #95691e; }
.rem-sum .bar { height: 3px; margin-top: 10px; border-radius: 3px; background: #ece6d9; overflow: hidden; }
.rem-sum .bar i { display: block; height: 100%; background: var(--clay); border-radius: 3px; }
.reminder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reminder-card {
  position: relative; padding: 17px 18px 15px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.reminder-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--clay); }
.reminder-card.today::before { background: #b8862e; }
.reminder-card.upcoming::before { background: #c3a260; }
.reminder-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reminder-due { font-size: 10px; color: var(--muted); }
.reminder-customer { margin-top: 10px; font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--forest-deep); line-height: 1.3; }
.reminder-place { margin-top: 2px; font-size: 11px; color: var(--muted); }
.reminder-money { display: flex; align-items: baseline; gap: 7px; margin-top: 10px; }
.reminder-money b { font-family: var(--font-serif); font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.reminder-money span { font-size: 10px; color: var(--muted); }
.reminder-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin: 11px 0 12px; padding-top: 10px; border-top: 1px dashed var(--line-soft); }
.reminder-meta dt { font-size: 9px; color: var(--muted); }
.reminder-meta dd { font-size: 10.5px; color: var(--ink-soft); margin-top: 1px; }
.reminder-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reminder-note { font-size: 10px; color: var(--muted); }
.history-list { display: grid; gap: 8px; }
.history-item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; }
.history-icon { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--forest); }
.history-main { flex: 1; min-width: 0; }
.history-title { font-size: 12px; font-weight: 600; color: var(--ink); }
.history-sub { font-size: 10px; color: var(--muted); margin-top: 2px; }
.history-note { font-size: 10.5px; color: var(--ink-soft); margin-top: 4px; white-space: pre-wrap; }

/* ---------------------------------------------------------------- modal */
.modal-root { position: fixed; inset: 0; z-index: 100; display: none; }
.modal-root.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 30, 24, .46); backdrop-filter: blur(4px); animation: fadeIn .18s ease both; }
.modal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(640px, calc(100vw - 32px)); max-height: min(88vh, 920px);
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-lg);
  animation: modalIn .24s cubic-bezier(.22, 1, .36, 1) both; overflow: hidden;
}
.modal.modal-lg { width: min(840px, calc(100vw - 32px)); }
.modal.modal-sm { width: min(430px, calc(100vw - 32px)); }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 15px; border-bottom: 1px solid var(--line-soft); }
.modal-head-main { flex: 1; min-width: 0; }
.modal-kicker { font-size: 9px; letter-spacing: 2px; color: var(--clay); text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.modal-title { font-family: var(--font-serif); font-size: 21px; font-weight: 700; color: var(--forest-deep); line-height: 1.25; }
.modal-sub { margin-top: 3px; font-size: 11px; color: var(--muted); }
.modal-close { width: 30px; height: 30px; flex: 0 0 30px; border: 0; border-radius: 50%; background: var(--paper-soft); color: var(--muted); display: grid; place-items: center; }
.modal-close:hover { background: var(--clay-soft); color: var(--clay); }
.modal-body { padding: 20px 22px; overflow-y: auto; overscroll-behavior: contain; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line-soft); background: #fcfaf5; }
.modal-foot .left { margin-right: auto; }
body.modal-open { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -47%) scale(.985); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 20px; }
.detail-item { min-width: 0; }
.detail-item.span-2 { grid-column: span 2; }
.detail-label { font-size: 9.5px; color: var(--muted); letter-spacing: .3px; }
.detail-value { margin-top: 2px; font-size: 12px; color: var(--ink); word-break: break-word; }
.detail-value.strong { font-weight: 700; font-size: 13px; }
.detail-value.money { font-family: var(--font-serif); font-size: 16px; font-weight: 700; }
.detail-note { padding: 9px 11px; background: var(--paper-soft); border: 1px solid var(--line-soft); border-radius: 8px; font-size: 11px; white-space: pre-wrap; line-height: 1.65; }
.detail-alert { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; margin-bottom: 16px; border-radius: 9px; background: var(--clay-soft); border: 1px solid #efcfc3; color: #8e3925; font-size: 11.5px; }
.detail-alert .ico { flex: 0 0 auto; margin-top: 1px; }
.detail-section { margin-top: 20px; }
.detail-section-title { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--forest); font-weight: 700; margin-bottom: 9px; display: flex; align-items: center; gap: 7px; }
.detail-section-title::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

/* ---------------------------------------------------------------- toast */
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 13px; border-radius: 10px; color: #fffdf6;
  background: var(--forest-deep); box-shadow: 0 12px 30px rgba(20, 30, 24, .26);
  font-size: 12px; line-height: 1.5; animation: toastIn .22s ease both;
}
.toast.error { background: #8d3522; }
.toast .ico { flex: 0 0 auto; margin-top: 1px; color: var(--gold-soft); }
.toast.error .ico { color: #ffd7ca; }
.toast.out { animation: toastOut .2s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------------------------------------------------------------- login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; }
.login-brand {
  position: relative; overflow: hidden; padding: 46px 54px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fffdf6;
  background:
    radial-gradient(700px 460px at 85% 12%, rgba(199, 162, 82, .18), transparent 60%),
    radial-gradient(600px 400px at 10% 100%, rgba(96, 137, 117, .15), transparent 60%),
    linear-gradient(152deg, #1d4c3f 0%, #153c32 48%, #0b2821 100%);
}
.login-brand::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -190px; bottom: -210px;
  border-radius: 50%; border: 1px solid rgba(199, 162, 82, .18);
  box-shadow: 0 0 0 50px rgba(199, 162, 82, .035), 0 0 0 110px rgba(199, 162, 82, .02);
}
.login-brand .brand { padding: 0; }
.login-brand .brand-name { font-size: 18px; }
.login-hero { position: relative; z-index: 1; margin: 34px 0 auto; max-width: 540px; }
.login-kicker { font-size: 9px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin-bottom: 15px; }
.login-headline { font-family: var(--font-serif); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.28; font-weight: 700; letter-spacing: -.4px; }
.login-headline em { font-style: normal; color: #e4c987; }
.login-lede { margin-top: 15px; max-width: 430px; color: rgba(255, 253, 246, .62); font-size: 12.5px; line-height: 1.9; }
.login-art { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 7px; height: 120px; margin: 30px 0 8px; opacity: .9; }
.tower { position: relative; width: 34px; border: 1px solid rgba(255, 253, 246, .18); border-bottom: 0; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, rgba(255, 253, 246, .08), rgba(255, 253, 246, .015)); }
.tower::before { content: ""; position: absolute; inset: 7px 5px; background-image: radial-gradient(rgba(255, 253, 246, .35) 1px, transparent 1px); background-size: 6px 8px; opacity: .7; }
.tower:nth-child(1) { height: 48px; } .tower:nth-child(2) { height: 78px; width: 42px; }
.tower:nth-child(3) { height: 62px; } .tower:nth-child(4) { height: 105px; width: 38px; }
.tower:nth-child(5) { height: 84px; } .tower:nth-child(6) { height: 58px; width: 28px; } .tower:nth-child(7) { height: 38px; }
.login-stats { position: relative; z-index: 1; display: flex; gap: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 253, 246, .13); }
.login-stat b { display: block; font-family: var(--font-serif); font-size: 20px; color: #fffdf6; }
.login-stat span { font-size: 9px; letter-spacing: 1px; color: rgba(255, 253, 246, .44); }
.login-foot { position: relative; z-index: 1; margin-top: 26px; font-size: 9px; letter-spacing: 1px; color: rgba(255, 253, 246, .28); }
.login-panel { display: grid; place-items: center; padding: 40px 28px; background: var(--cream); }
.login-card { width: min(410px, 100%); animation: fadeUp .5s ease both; }
.login-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 30px; }
.login-title { font-family: var(--font-serif); font-size: 28px; color: var(--forest-deep); font-weight: 700; letter-spacing: -.3px; }
.login-sub { margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.login-form { margin-top: 28px; display: grid; gap: 15px; }
.login-form .field > label { font-size: 11px; }
.login-form .input { min-height: 46px; background: var(--paper); border-color: #d9cebc; }
.login-form .input:focus { border-color: var(--forest); }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 44px; }
.password-eye { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.password-eye:hover { background: var(--paper-soft); color: var(--forest); }
.login-submit { margin-top: 4px; min-height: 46px; font-size: 13px; letter-spacing: .5px; }
.login-note { margin-top: 18px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 253, 248, .6); border: 1px solid var(--line-soft); font-size: 10px; color: var(--muted); line-height: 1.7; }
.login-help { margin-top: 22px; text-align: center; font-size: 10px; color: #a3a297; }
.login-error { margin-top: 2px; }
.login-brand-mobile { display: none; }

/* ---------------------------------------------------------------- detail pages / help */
.project-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 18px; }
.project-identity { position: relative; overflow: hidden; padding: 24px 26px; border-radius: var(--radius); color: #fffdf6; background: linear-gradient(125deg, var(--forest) 0%, var(--forest-deep) 100%); box-shadow: 0 18px 40px -20px rgba(16, 44, 35, .45); }
.project-identity::after { content: ""; position: absolute; right: -50px; bottom: -100px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(199, 162, 82, .15); box-shadow: 0 0 0 34px rgba(199, 162, 82, .03); }
.project-identity .district { color: rgba(239, 227, 198, .65); }
.project-identity h2 { font-family: var(--font-serif); font-size: 25px; margin-top: 2px; position: relative; z-index: 1; }
.project-identity .identity-sub { margin-top: 6px; font-size: 11px; color: rgba(255, 253, 246, .55); }
.project-rates { display: flex; gap: 26px; margin-top: 20px; position: relative; z-index: 1; }
.project-rates .pr b { font-family: var(--font-serif); font-size: 27px; line-height: 1.1; color: var(--gold-soft); }
.project-rates .pr span { display: block; font-size: 9px; color: rgba(255, 253, 246, .45); margin-top: 3px; }
.project-identity-bars { position: relative; z-index: 1; margin-top: 17px; display: grid; gap: 7px; }
.project-identity-bars .bar-label { color: rgba(255, 253, 246, .46); }
.project-identity-bars .bar-track { background: rgba(255, 253, 246, .12); }
.project-identity-bars .bar-fill { background: var(--gold); }
.project-identity-bars .bar-val { color: rgba(255, 253, 246, .72); }
.project-side-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-stat { padding: 14px 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); }
.side-stat .lab { font-size: 9.5px; color: var(--muted); }
.side-stat .val { margin-top: 2px; font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--forest-deep); }
.side-stat .val small { font-family: var(--font-sans); font-size: 9px; color: var(--muted); font-weight: 400; }
.filter-inline { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.filter-inline .input { width: 210px; min-height: 34px; }
.count-hint { font-size: 10.5px; color: var(--muted); }

.help { max-width: 980px; }
.help-intro { padding: 26px 28px; margin-bottom: 20px; border-radius: var(--radius); color: #fffdf6; background: linear-gradient(120deg, var(--forest) 0%, var(--forest-deep) 100%); }
.help-intro h2 { font-family: var(--font-serif); font-size: 23px; }
.help-intro p { margin-top: 7px; max-width: 640px; color: rgba(255, 253, 246, .6); font-size: 12px; line-height: 1.8; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.help-card { padding: 20px 21px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.help-card h3 { font-family: var(--font-serif); font-size: 16px; color: var(--forest-deep); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.help-card p, .help-card li { font-size: 11.5px; color: var(--ink-soft); line-height: 1.8; }
.help-card ul { margin-top: 5px; }
.help-card li { position: relative; padding-left: 12px; }
.help-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.help-card .formula { margin-top: 7px; padding: 9px 11px; border-radius: 7px; background: var(--paper-soft); border: 1px solid var(--line-soft); font-size: 11px; color: var(--forest); }
.help-wide { grid-column: span 2; }
.help-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 10.5px; }
.help-table th, .help-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.help-table th { color: var(--muted); font-weight: 600; font-size: 9.5px; }
.help-steps { counter-reset: step; display: grid; gap: 8px; margin-top: 6px; }
.help-step { display: flex; gap: 10px; font-size: 11.5px; color: var(--ink-soft); line-height: 1.7; }
.help-step::before { counter-increment: step; content: counter(step); width: 19px; height: 19px; flex: 0 0 19px; border-radius: 50%; background: var(--gold-soft); color: #7b6122; display: grid; place-items: center; font-size: 9px; font-weight: 700; margin-top: 1px; }
.kv-list { display: grid; gap: 7px; margin-top: 7px; }
.kv-row { display: flex; justify-content: space-between; gap: 14px; font-size: 11px; padding-bottom: 6px; border-bottom: 1px dashed var(--line-soft); }
.kv-row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv-row span { color: var(--muted); }
.kv-row b { font-weight: 600; color: var(--ink); text-align: right; }

.account-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.account-head .avatar { width: 50px; height: 50px; flex-basis: 50px; background: var(--forest); color: var(--gold-soft); font-size: 18px; }
.account-head h3 { font-family: var(--font-serif); font-size: 19px; color: var(--forest-deep); }
.account-head p { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }

/* ---------------------------------------------------------------- extended components */
.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.mini-stat {
  display: flex; align-items: baseline; gap: 8px; padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm);
}
.mini-stat b { font-family: var(--font-serif); font-size: 24px; line-height: 1; color: var(--forest-deep); font-variant-numeric: tabular-nums; }
.mini-stat span { font-size: 10px; color: var(--muted); }
.page-title .count-hint { margin-left: 8px; vertical-align: middle; font-family: var(--font-sans); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.filter-actions { margin-left: auto; display: flex; align-items: flex-end; gap: 6px; }
.lease-filter { align-items: flex-end; }
.lease-filter .field { min-width: 132px; }
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; }

.lease-table { min-width: 880px; }
.compact-table { min-width: 540px; }
.compact-table th { padding: 7px 9px; font-size: 8.5px; }
.compact-table td { padding: 8px 9px; font-size: 10.5px; }
.compact-table .cell-sub { font-size: 9px; }

.rs-item { padding: 10px 13px; border-radius: 9px; background: var(--paper-soft); border: 1px solid var(--line-soft); }
.rs-item.overdue { background: #fdf1ec; border-color: #eccfc4; }
.rs-item.today { background: #fbf4e5; border-color: #ead9b8; }
.rs-item.amount { background: #f3f6f2; border-color: #dbe5dc; }
.rs-num { font-family: var(--font-serif); font-size: 21px; line-height: 1.15; font-weight: 700; color: var(--forest-deep); font-variant-numeric: tabular-nums; }
.rs-item.overdue .rs-num { color: var(--clay); }
.rs-item.today .rs-num { color: #95691e; }
.rs-label { margin-top: 2px; font-size: 9.5px; color: var(--muted); }

.reminder-card .rc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reminder-card .rc-due { font-size: 10px; color: var(--muted); white-space: nowrap; }
.reminder-card .rc-customer { margin-top: 9px; font-family: var(--font-serif); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--forest-deep); }
.reminder-card .rc-project { margin-top: 2px; font-size: 11px; color: var(--muted); }
.reminder-card .rc-amount { display: flex; align-items: baseline; gap: 7px; margin-top: 10px; font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.reminder-card .rc-amount span { font-family: var(--font-sans); font-size: 10px; font-weight: 400; color: var(--muted); }
.reminder-card .rc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin: 11px 0 12px; padding-top: 10px; border-top: 1px dashed var(--line-soft); }
.reminder-card .rc-meta span { display: block; font-size: 9px; color: var(--muted); }
.reminder-card .rc-meta b { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 500; color: var(--ink-soft); }
.reminder-card .rc-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line-soft); font-size: 10px; color: var(--muted); }
.rc-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.template-status { display: grid; gap: 4px; margin: 12px 0; padding: 11px 13px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fbf8f1; font-size: 10.5px; color: var(--muted); }
.template-status > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--ink-soft); }
.template-status b { font-size: 12px; color: var(--forest-deep); }
.placeholder-details { margin: 12px 0; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.placeholder-details summary { cursor: pointer; font-size: 11px; font-weight: 600; color: var(--forest); }
.placeholder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; max-height: 190px; overflow: auto; margin-top: 9px; padding-right: 3px; }
.placeholder-item { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 7px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--paper-soft); }
.placeholder-item code { flex: 0 0 auto; font-family: var(--font-mono, monospace); font-size: 9px; color: var(--clay); }
.placeholder-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; color: var(--muted); }
.form-actions-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.alert-banner.compact { padding: 12px 15px; margin-bottom: 15px; border-radius: 12px; gap: 11px; }
.alert-banner.compact .alert-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; }
.alert-banner.compact .alert-title { font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; }
.alert-banner.compact .alert-sub { margin-top: 2px; font-size: 10.5px; }
.alert-banner.compact .btn { white-space: nowrap; }

.detail-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 4px 0 16px; border-bottom: 1px solid var(--line-soft); }
.detail-hero-right { flex: 0 0 auto; text-align: right; }
.detail-kicker { font-size: 9.5px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.detail-name { margin-top: 3px; font-family: var(--font-serif); font-size: 25px; line-height: 1.25; font-weight: 700; color: var(--forest-deep); }
.detail-meta { margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.confirm-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }
.confirm-summary > div { padding: 10px 12px; background: var(--paper-soft); }
.confirm-summary span { display: block; font-size: 9.5px; color: var(--muted); }
.confirm-summary b { display: block; margin-top: 2px; font-size: 12px; color: var(--forest-deep); font-variant-numeric: tabular-nums; }

.notice, .note-panel {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 13px; border-radius: 9px;
  background: var(--green-soft); border: 1px solid #d6e2d8;
  color: #3f5d4e; font-size: 11px; line-height: 1.7;
}
.notice .ico, .note-panel .ico { flex: 0 0 auto; margin-top: 1px; }
.notice-clay { background: var(--clay-soft); border-color: #efcfc3; color: #8e3925; }
.notice b, .note-panel b { color: var(--forest); }
.notice p, .note-panel p { margin-top: 2px; color: var(--ink-soft); }
.note-panel { margin-top: 16px; padding: 13px 15px; }
.note-panel > div { min-width: 0; }

.readonly-box {
  min-height: 39px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  padding: 8px 11px; border: 1px solid var(--line-soft); border-radius: 8px;
  background: #f7f3ea; color: var(--ink-soft); font-size: 12px;
}
.remind-row { display: flex; align-items: center; gap: 7px; }
.remind-row .select { flex: 1 1 auto; }
.next-due-row .input { flex: 1 1 auto; min-width: 0; }
.next-due-row .calc-btn { flex: 0 0 auto; white-space: nowrap; }
.logout-btn:hover { color: var(--clay); border-color: rgba(178, 74, 52, .35); }
.switch-line { display: flex; align-items: center; gap: 8px; min-height: 39px; font-size: 11.5px; color: var(--ink-soft); cursor: pointer; }
.switch-line input { width: 15px; height: 15px; accent-color: var(--forest); }
.free-trigger { display: flex; align-items: center; gap: 9px; min-height: 39px; }
.free-summary { font-size: 11px; color: var(--muted); }
.free-summary:not(:empty) { color: var(--forest); font-weight: 600; }
.free-panel { margin-top: 12px; padding: 12px 13px 9px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fbf8f1; }
.free-panel .hint { margin-top: 7px; }

.upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 160px; margin-top: 16px; padding: 22px; text-align: center; cursor: pointer;
  border: 1.5px dashed #cbbfa9; border-radius: 12px; background: #fbf8f1;
  color: var(--muted); transition: border-color .15s, background .15s, transform .15s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--forest); background: var(--green-soft); }
.upload-zone.has-file { border-color: #7e9c88; background: #f1f7f1; color: var(--forest); }
.upload-zone .ico { color: var(--forest); margin-bottom: 3px; }
.upload-icon { display: inline-flex; color: var(--forest); margin-bottom: 3px; }
.upload-title { font-size: 12.5px; font-weight: 700; color: var(--forest); }
.upload-sub { font-size: 10px; color: var(--muted); }
.import-steps { display: grid; gap: 9px; }
.import-step { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 9px; background: var(--paper-soft); border: 1px solid var(--line-soft); }
.import-step > span { width: 21px; height: 21px; flex: 0 0 21px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: #fff; font-size: 9.5px; font-weight: 700; margin-top: 1px; }
.import-step > div { min-width: 0; }
.import-step b { font-size: 11.5px; color: var(--forest-deep); }
.import-step p { margin: 1px 0 5px; font-size: 10.5px; color: var(--muted); line-height: 1.6; }

.more-list { display: grid; gap: 3px; }
.more-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); text-align: left; }
.more-item:hover { background: var(--paper-soft); }
.more-item > span:nth-child(2) { flex: 1; min-width: 0; }
.more-item b { display: block; font-size: 12px; color: var(--ink); }
.more-item small { display: block; margin-top: 1px; font-size: 9.5px; color: var(--muted); }
.more-icon { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--forest); }
.more-item.danger { color: var(--clay); }
.more-item.danger .more-icon { background: var(--clay-soft); color: var(--clay); }
.more-item.danger b { color: var(--clay-deep); }

.account-name { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--forest-deep); }
.account-role { margin-top: 1px; font-size: 10.5px; color: var(--muted); }
.account-projects { margin-top: 3px; font-size: 10.5px; color: var(--ink-soft); }
.avatar-lg { width: 50px; height: 50px; flex-basis: 50px; font-size: 18px; background: var(--forest); color: var(--gold-soft); }
.avatar-sm { width: 30px; height: 30px; flex-basis: 30px; font-size: 11px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 2px; }
.check-item { display: flex; align-items: flex-start; gap: 7px; padding: 7px 9px; border: 1px solid var(--line-soft); border-radius: 7px; background: var(--paper-soft); font-size: 10.5px; color: var(--ink-soft); cursor: pointer; line-height: 1.5; }
.check-item:hover { border-color: #d2c5af; }
.check-item input { width: 14px; height: 14px; margin: 1px 0 0; accent-color: var(--forest); flex: 0 0 auto; }
.user-cell { display: flex; align-items: center; gap: 8px; }
.project-tags { font-size: 10.5px; color: var(--ink-soft); line-height: 1.6; }
.empty-actions { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.empty-actions .btn { margin-top: 0; }

.help-page { max-width: 1000px; }
.help-icon { width: 37px; height: 37px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 10px; background: var(--green-soft); color: var(--forest); }
.help-card h2 { margin-bottom: 7px; font-family: var(--font-serif); font-size: 16px; line-height: 1.35; color: var(--forest-deep); }
.help-contact { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); font-size: 11.5px; color: var(--ink-soft); }
.help-contact b { display: block; font-size: 12px; color: var(--forest); }
.help-contact span { display: block; margin-top: 1px; color: var(--muted); font-size: 10.5px; }

.toast.success { background: #1f5a47; }
.modal.modal-md { width: min(560px, calc(100vw - 32px)); }
.form-grid.two { grid-template-columns: 1fr 1fr; }

@media (max-width: 900px) {
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .reminder-grid { grid-template-columns: 1fr; }
  .help-contact { flex-direction: column; align-items: flex-start; }
  .vacancy-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .page-title .count-hint { display: inline-block; margin: 4px 0 0; }
  .vacancy-overview { padding: 15px 14px; }
  .vacancy-overview-head { flex-direction: column; align-items: flex-start; gap: 5px; }
  .vacancy-overview-head h2 { font-size: 19px; }
  .vacancy-card { padding: 10px 11px; }
  .vacancy-card-name { font-size: 13.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.7em; line-height: 1.25; }
  .vacancy-card-stats b { font-size: 23px; }
  .vacancy-card-stats > span { font-size: 9.5px; }
  .filter-actions { width: 100%; margin-left: 0; }
  .filter-actions .btn { flex: 1; }
  .reminder-summary { grid-template-columns: 1fr 1fr; }
  .detail-hero { flex-direction: column; gap: 9px; }
  .detail-hero-right { text-align: left; }
  .detail-name { font-size: 21px; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid.two { grid-template-columns: 1fr; }
  .confirm-summary { grid-template-columns: 1fr; }
  .rc-meta { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .alert-banner.compact { align-items: flex-start; flex-wrap: wrap; }
  .alert-banner.compact .btn { width: 100%; justify-content: center; }
  .help-card h2 { font-size: 15px; }
  .help-contact { font-size: 10.5px; }
  .account-head { align-items: flex-start; }
}

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

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .hero-grid { grid-template-columns: 1fr; }
  .overview-card { min-height: 230px; }
  .stat-stack { grid-template-columns: repeat(4, 1fr); }
  .stat-card { min-height: 105px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  :root { --sidebar: 224px; }
  .content { padding: 26px 28px 56px; }
  .topbar { padding: 0 28px; }
  .overview-card { grid-template-columns: minmax(0, 1fr) 188px; }
  .ring { width: 168px; height: 168px; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: 66px; }
  .content { padding: 22px 22px 52px; }
  .topbar { min-height: 62px; padding: 0 22px; }
  .mobile-brand { display: flex; }
  .topbar-title { display: none; }
  .today-label { display: none; }
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    height: 62px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 248, .95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 22px rgba(30, 40, 33, .06);
  }
  .bottom-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 9.5px; color: #96978e; border-radius: 9px; }
  .bottom-link.active { color: var(--forest); }
  .bottom-link.active .ico { color: var(--forest); }
  .bottom-link .nav-badge { position: absolute; top: 0; left: calc(50% + 3px); margin: 0; min-width: 16px; height: 16px; font-size: 8.5px; padding: 0 4px; box-shadow: none; }
  .login { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { padding: 34px 22px; align-items: flex-start; }
  .login-mobile-brand { display: flex; }
  .login-card { margin-top: 6vh; }
  .project-hero { grid-template-columns: 1fr; }
  .project-side-stats { grid-template-columns: repeat(4, 1fr); }
  .reminder-grid { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .help-wide { grid-column: span 1; }
  .toast-region { right: 16px; bottom: 76px; }
}
@media (max-width: 760px) {
  .page-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .head-actions { width: 100%; justify-content: flex-start; }
  .page-title { font-size: 26px; }
  .overview-card { grid-template-columns: 1fr; padding: 22px; min-height: 0; }
  .ring-wrap { display: none; }
  .overview-rate { font-size: 50px; }
  .stat-stack { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-rate-row { margin-top: 12px; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .reminder-summary { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .toolbar { align-items: stretch; }
  .toolbar .field { flex: 1 1 45%; min-width: 0; }
  .toolbar .field.grow { flex-basis: 100%; }
  .toolbar .spacer { display: none; }
  .filter-inline { width: 100%; }
  .filter-inline .input { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-item.span-2 { grid-column: span 1; }
  .project-side-stats { grid-template-columns: 1fr 1fr; }
  .lease-table { min-width: 0; }
  .data-table.responsive thead { display: none; }
  .data-table.responsive, .data-table.responsive tbody, .data-table.responsive tr, .data-table.responsive td { display: block; width: 100%; }
  .data-table.responsive tr { padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .data-table.responsive tr:last-child { border-bottom: 0; }
  .data-table.responsive tr:hover { background: #fcf9f2; }
  .data-table.responsive tr.row-red { background: #fdf1ec; box-shadow: inset 3px 0 0 var(--clay); }
  .data-table.responsive td { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border: 0; padding: 4px 0; font-size: 11.5px; text-align: right; }
  .data-table.responsive td::before { content: attr(data-label); flex: 0 0 auto; color: var(--muted); font-size: 10px; text-align: left; padding-top: 1px; }
  .data-table.responsive td:first-child { padding-top: 0; }
  .data-table.responsive td:last-child { padding-top: 9px; margin-top: 5px; border-top: 1px dashed var(--line-soft); }
  .data-table.responsive td .actions { justify-content: flex-end; }
  .data-table.responsive td[data-label=""]::before { display: none; }
  .data-table.responsive td[data-label=""] { justify-content: flex-start; }
  .pagination { flex-wrap: wrap; }
  .modal { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; animation: sheetIn .26s cubic-bezier(.22, 1, .36, 1) both; }
  .modal-body { padding: 17px 18px; }
  .modal-head { padding: 18px 18px 13px; }
  .modal-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .modal-foot .btn { flex: 1; }
  .modal-foot .left { flex: 0 0 auto; margin-right: 0; }
  @keyframes sheetIn { from { opacity: .5; transform: translateY(30px); } to { opacity: 1; transform: none; } }
  .login-card { margin-top: 2vh; }
  .alert-banner { flex-wrap: wrap; padding: 17px 17px; gap: 12px; }
  .alert-body { flex-basis: calc(100% - 60px); }
  .alert-actions { width: 100%; padding-left: 58px; }
  .alert-actions .btn { width: 100%; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .pagination-btns { flex-wrap: wrap; }
}
@media (max-width: 430px) {
  .content { padding: 18px 14px 46px; }
  .topbar { padding: 0 14px; }
  .overview-dual .dual { flex: 1 1 45%; min-width: 0; }
  .stat-stack { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { min-height: 100px; padding: 13px; }
  .stat-value { font-size: 21px; }
  .toolbar .field { flex-basis: 100%; }
  .segmented { width: 100%; overflow-x: auto; }
  .segmented button { flex: 1; white-space: nowrap; }
  .login-panel { padding: 24px 18px; }
  .login-title { font-size: 25px; }
  .calm-banner { align-items: flex-start; }
}

@media (max-width: 760px) {
  .placeholder-grid { grid-template-columns: 1fr; max-height: 230px; }
  .rc-foot > span { width: 100%; }
  .rc-actions { width: 100%; justify-content: flex-start; }
  .rc-actions .btn { flex: 1 1 46%; justify-content: center; }
  .form-actions-inline .btn { flex: 1 1 auto; justify-content: center; }
}

/* 房源信息 / 备注确认 */
.text-clay { color: var(--clay); }
.vacancy-overview { margin-bottom: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 248, .72); box-shadow: var(--shadow-sm); }
.vacancy-overview-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.vacancy-overview-head h2 { margin-top: 3px; font-family: var(--font-serif); font-size: 21px; color: var(--forest-deep); }
.vacancy-overview-head p { margin-top: 3px; font-size: 11px; color: var(--muted); }
.section-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--clay); }
.vacancy-total { font-size: 11px; color: var(--muted); white-space: nowrap; }
.vacancy-total b { color: var(--forest); font-size: 15px; font-variant-numeric: tabular-nums; }
.vacancy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.vacancy-card {
  display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  text-align: left; transition: .16s; color: var(--ink);
}
.vacancy-card:hover { transform: translateY(-1px); border-color: #cbbd9e; box-shadow: 0 5px 14px rgba(37, 49, 40, .06); }
.vacancy-card.active { border-color: var(--gold); background: #fffaf0; box-shadow: 0 0 0 1px rgba(199, 162, 82, .28); }
.vacancy-card-top { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: var(--muted); }
.vacancy-card-arrow { color: var(--gold-deep); display: inline-flex; }
.vacancy-card-name { font-family: var(--font-serif); font-size: 15px; font-weight: 700; color: var(--forest-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vacancy-card-stats { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.vacancy-card-stats b { font-family: var(--font-serif); font-size: 27px; line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums; }
.vacancy-card-stats em { font-style: normal; font-size: 10px; color: var(--muted); }
.vacancy-card-stats > span { margin-left: auto; font-size: 10.5px; color: var(--clay); white-space: nowrap; font-variant-numeric: tabular-nums; }
.room-info-table { width: 100%; }
@media (max-width: 900px) {
  .vacancy-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .vacancy-card-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.7em; line-height: 1.25; }
  .vacancy-card-stats em { font-size: 9px; }
  .vacancy-card-stats > span { font-size: 9px; }
}
.nav-badge.note-badge { background: var(--gold); color: var(--forest-deep); }
.mini-stat-alert { border-color: #e8c9bd; background: #fff9f5; }
.mini-stat-alert b { color: var(--clay-deep); }
.note-review {
  margin-bottom: 16px; padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid #e8d5c8; border-left: 4px solid var(--clay);
  background: linear-gradient(100deg, #fffaf5, var(--paper) 60%);
  box-shadow: var(--shadow-sm);
}
.note-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.note-review-kicker { font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--clay); }
.note-review-head h2 { margin-top: 3px; font-family: var(--font-serif); font-size: 22px; color: var(--forest-deep); display: flex; align-items: center; gap: 8px; }
.note-review-head p { margin-top: 3px; font-size: 11px; color: var(--muted); }
.note-review-list { display: grid; gap: 8px; }
.note-review-item {
  display: grid; grid-template-columns: minmax(190px, .9fr) minmax(260px, 1.6fr) auto;
  gap: 14px; align-items: center; padding: 11px 12px;
  border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255, 255, 255, .58);
}
.note-review-main { min-width: 0; }
.note-review-diff { display: grid; gap: 4px; min-width: 0; font-size: 11px; color: var(--ink-soft); }
.note-review-diff > div { display: flex; gap: 8px; min-width: 0; }
.note-review-diff > div > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-diff-label { flex: 0 0 52px; color: var(--muted); font-size: 10px; }
.note-diff-label.proposed { color: var(--clay); font-weight: 700; }
.note-review-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-note-pending { background: #fffbf2; }
.row-note-pending:hover { background: #fdf6e6; }
.note-cell-text { color: var(--ink-soft); }
.note-proposal { margin-top: 3px; color: var(--clay-deep); font-size: 10.5px; line-height: 1.5; }
.note-current { padding: 10px 12px; margin-bottom: 13px; border-radius: 9px; border: 1px dashed var(--line); background: var(--paper-soft); }
.note-current span { display: block; font-size: 9px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.note-current p { margin-top: 3px; white-space: pre-wrap; color: var(--ink-soft); font-size: 12px; }
.note-tip { margin-top: 11px; padding: 9px 11px; border-radius: 8px; background: #f7f2e5; color: #796647; font-size: 11px; }
.tag-warn { background: #fbf0d4; color: #8b6514; border-color: #ebd8aa; }

@media (max-width: 900px) {
  .note-review-item { grid-template-columns: 1fr; gap: 9px; }
  .note-review-actions { justify-content: flex-start; }
  .note-review-diff > div > span:last-child { white-space: normal; }
}
@media (max-width: 760px) {
  .note-review { padding: 15px 14px; }
  .note-review-head h2 { font-size: 19px; }
  .note-review-actions { width: 100%; }
  .note-review-actions .btn { flex: 1; justify-content: center; }
  .mini-stat-alert { background: #fff9f5; }
}

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