:root {
  --bg: #f2f6f5;
  --surface: #ffffff;
  --ink: #172522;
  --muted: #6f817c;
  --line: #e1eae7;
  --line-strong: #d1dfdb;
  --brand: #0f6b5f;
  --brand-dark: #0a2f2b;
  --brand-soft: #e6f3ef;
  --amber: #c78728;
  --amber-soft: #fbf1df;
  --danger: #b94c46;
  --shadow: 0 18px 50px rgba(15, 55, 48, .09);
  --radius: 18px;
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(15,107,95,.25); outline-offset: 2px; }
[hidden] { display: none !important; }

/* login */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 450px at 85% -10%, rgba(94,210,171,.23), transparent 62%), linear-gradient(155deg, #0c3733, #082724); }
.login-card { width: min(440px, 100%); padding: 34px; color: #e9f5f1; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.13); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.23); backdrop-filter: blur(18px); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.login-brand strong { display: block; font-size: 15px; letter-spacing: .05em; }
.login-brand span { display: block; margin-top: 4px; color: #8db7ae; font-size: 10px; letter-spacing: .16em; }
.logo-mark { width: 46px; height: 46px; flex: none; display: grid; place-items: center; color: #15372f; background: linear-gradient(145deg, #efc572, #d99b33); border-radius: 14px 14px 14px 4px; font-size: 28px; font-weight: 750; box-shadow: 0 10px 25px rgba(217,155,51,.22); }
.logo-mark.small { width: 38px; height: 38px; border-radius: 11px 11px 11px 3px; font-size: 23px; }
.login-card h1 { font-size: 36px; letter-spacing: -.03em; }
.login-desc { margin-top: 10px; color: #a3c3bb; font-size: 13px; line-height: 1.8; }
.login-label { display: block; margin: 24px 0 8px; color: #bdd8d1; font-size: 12px; }
.login-label.second { margin-top: 13px; }
.login-input { width: 100%; height: 48px; padding: 0 14px; color: #eaf6f2; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; outline: 0; font-size: 14px; }
.login-input:focus { border-color: #79b9ab; box-shadow: 0 0 0 4px rgba(121,185,171,.12); }
.login-input::placeholder { color: #7faaa1; }
.login-submit { width: 100%; height: 48px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 650; white-space: nowrap; transition: .16s ease; }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 8px 18px rgba(15,107,95,.18); }
.btn-primary:hover { background: #0b5148; }
.btn-ghost { color: #38514b; background: #fff; border-color: var(--line-strong); }
.btn-ghost:hover { border-color: #b4c9c3; background: #fbfdfc; }
.btn-danger { color: #fff; background: var(--danger); }
.btn-danger:hover { background: #a33f39; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.login-error { margin-top: 12px; padding: 10px 12px; color: #ffd5cf; background: rgba(185,76,70,.16); border: 1px solid rgba(255,150,140,.25); border-radius: 8px; font-size: 12px; line-height: 1.6; }
.login-foot { margin-top: 30px; color: #6f9c92; font-size: 10px; line-height: 1.7; text-align: center; }

/* app shell */
.app { min-height: 100vh; }
.titlebar { position: sticky; top: 0; z-index: 40; background: linear-gradient(100deg, #0a302b, #0d3c36); border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 5px 18px rgba(8,40,34,.08); }
.titlebar-inner { width: 100%; max-width: 1320px; margin: 0 auto; height: 54px; display: flex; align-items: center; padding: 0 26px; }
.titlebar h1 { overflow: hidden; color: #eef8f4; font-size: 19px; font-weight: 650; letter-spacing: .01em; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.control-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 13px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.control-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.control-bar .conn-status { margin-left: 8px; }
.control-actions .icon-btn { min-width: 38px; height: 34px; padding: 0 9px; font-size: 10.5px; }
.control-actions .btn-primary { min-height: 34px; padding: 0 13px; font-size: 11px; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(242,246,245,.9); border-bottom: 1px solid rgba(211,223,220,.8); backdrop-filter: blur(16px); }
.topbar-inner { max-width: 1320px; margin: 0 auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 26px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-text strong { display: block; font-size: 15px; letter-spacing: .03em; }
.brand-text span { display: block; margin-top: 3px; color: #7e938d; font-size: 10px; letter-spacing: .12em; }
.current-user { display: flex; align-items: center; gap: 9px; min-width: 0; }
.user-avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; color: #15554a; background: linear-gradient(145deg, #d9f0e8, #b9ddd2); border: 1px solid #cce5dd; border-radius: 11px; font-size: 13px; font-weight: 750; }
.current-user-copy { min-width: 0; }
.current-user-copy strong { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #233a33; font-size: 13px; line-height: 1.4; }
.current-user-copy span { display: block; margin-top: 2px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #7e938d; font-size: 9px; letter-spacing: .02em; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.conn-status { display: inline-flex; align-items: center; margin-right: 7px; color: #63837b; font-size: 11px; white-space: nowrap; }
.conn-status i { width: 7px; height: 7px; margin-right: 6px; background: #d1a04e; border-radius: 50%; }
.conn-status.on i { background: #39b38d; box-shadow: 0 0 0 4px rgba(57,179,141,.1); }
.conn-status.error { color: #a95751; }
.conn-status.error i { background: #c75b53; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 11px; color: #405750; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 12px; }
.icon-btn:hover { background: #fbfdfc; }
.icon-btn.logout { color: #8a6a66; }
.main { width: 100%; max-width: 1320px; margin: 0 auto; padding: 25px 26px 50px; }
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 30px 32px; color: #eaf6f2; background: radial-gradient(500px 260px at 100% 0, rgba(96,204,177,.22), transparent 66%), linear-gradient(150deg, #0d3b36, #092e2a); border-radius: 20px; }
.hero::after { content: ""; position: absolute; right: -70px; bottom: -160px; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 55rpx rgba(255,255,255,.02); }
.eyebrow { color: #7fb5aa; font-size: 9px; font-weight: 650; letter-spacing: .18em; }
.hero h1 { margin-top: 8px; font-size: 29px; letter-spacing: -.03em; }
.hero-sub { margin-top: 7px; color: #9ec1ba; font-size: 12px; }
.hero-count { position: relative; z-index: 1; flex: none; text-align: right; }
.hero-count b { display: block; color: #efc476; font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.hero-count span { display: block; margin-top: 6px; color: #93b8b0; font-size: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 15px; }
.stat-card { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.stat-card span { display: block; color: #6f817c; font-size: 10.5px; }
.stat-card b { display: block; margin: 3px 0 2px; font-size: 26px; line-height: 1.1; letter-spacing: -.03em; }
.stat-card small { display: block; color: #9aa9a5; font-size: 9.5px; }
.stat-card small i { font-style: normal; color: #56736c; }

.toolbar-card { display: flex; gap: 10px; align-items: center; margin-top: 15px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.search-wrap { position: relative; flex: 1; min-width: 160px; }
.search-wrap input { width: 100%; height: 40px; padding: 0 34px 0 34px; background: #f7faf9; border: 1px solid var(--line); border-radius: 9px; outline: 0; font-size: 12px; }
.search-wrap input:focus { background: #fff; border-color: #9fc4bd; box-shadow: 0 0 0 4px rgba(15,107,95,.06); }
.search-icon { position: absolute; left: 12px; top: 9px; color: #8da29b; font-size: 19px; line-height: 1; }
.clear-search { position: absolute; right: 6px; top: 5px; width: 30px; height: 30px; color: #8b9d97; background: transparent; border: 0; font-size: 20px; }
.filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filters select { height: 40px; padding: 0 28px 0 11px; color: #405750; background: #fff; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; font-size: 11.5px; }
.segment { display: inline-flex; gap: 2px; padding: 3px; background: #f0f5f3; border-radius: 9px; }
.segment button { height: 34px; padding: 0 10px; color: #657a73; background: transparent; border: 0; border-radius: 7px; font-size: 10.5px; white-space: nowrap; }
.segment button.active { color: var(--brand); background: #fff; box-shadow: 0 2px 6px rgba(20,55,48,.09); font-weight: 650; }
.text-btn { height: 36px; padding: 0 5px; color: var(--brand); background: transparent; border: 0; font-size: 10.5px; }
.text-btn:hover { text-decoration: underline; }
.list-meta { display: flex; align-items: center; justify-content: space-between; margin: 16px 3px 10px; color: #7c9089; font-size: 11px; }
.list-meta span:first-child { color: #38514b; font-weight: 600; }

.town-group + .town-group { margin-top: 22px; }
.town-group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 3px 9px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.town-group-head h3 { font-size: 15px; letter-spacing: -.01em; }
.town-group-head h3::before { content: ""; display: inline-block; width: 5px; height: 15px; margin-right: 8px; vertical-align: -2px; background: #d7a64f; border-radius: 3px; }
.town-group-head p { margin-top: 4px; color: #83968f; font-size: 9.5px; }
.town-group-head > b { flex: none; color: #315d53; font-size: 18px; font-weight: 650; }
.town-group-head > b span { margin-left: 2px; color: #92a49e; font-size: 9px; font-weight: 400; }
.clinic-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.clinic-card { position: relative; overflow: hidden; padding: 17px 18px 14px; background: #fff; border: 1px solid var(--line); border-radius: 15px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.clinic-card:hover { border-color: #c6d9d4; box-shadow: 0 8px 24px rgba(20,55,48,.06); transform: translateY(-1px); }
.card-top { display: flex; align-items: flex-start; gap: 10px; }
.avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 10px; font-size: 12px; font-weight: 750; }
.card-title-wrap { flex: 1; min-width: 0; }
.card-title { display: block; margin-top: 1px; color: #1b2e29; font-size: 13px; font-weight: 700; line-height: 1.5; }
.card-code { display: block; margin-top: 2px; color: #9aa8a4; font-size: 9px; letter-spacing: .03em; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; color: #5b716a; background: #f2f7f5; border-radius: 5px; font-size: 9.5px; }
.tag.v1700 { color: #1d675a; background: #e5f2ee; font-weight: 650; }
.tag.v665 { color: #90651e; background: #fbf1df; font-weight: 650; }
.tag.vnone { color: #7d8f89; background: #f1f4f3; }
.card-info { display: flex; gap: 7px; margin-top: 10px; color: #62766f; font-size: 10.5px; line-height: 1.6; }
.card-info .ico { width: 15px; flex: none; color: #8fa19c; }
.card-info .value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-net { display: flex; gap: 14px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #f0f4f2; }
.net-item { flex: 1; min-width: 0; }
.net-item span { display: block; color: #9aa9a5; font-size: 8.5px; }
.net-item b { display: block; margin-top: 2px; color: #3e574f; font-family: "Cascadia Mono", Consolas, monospace; font-size: 10px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.card-foot .olt { min-width: 0; color: #7b8e88; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-btn { flex: none; height: 27px; padding: 0 10px; color: var(--brand); background: #f3f9f7; border: 1px solid #dcebe7; border-radius: 7px; font-size: 9.5px; font-weight: 600; }
.edit-btn:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.empty { padding: 70px 20px; background: #fff; border: 1px solid var(--line); border-radius: 15px; text-align: center; }
.empty-icon { width: 52px; height: 52px; margin: 0 auto 11px; display: grid; place-items: center; color: #8fa49e; background: #f0f5f3; border-radius: 50%; font-size: 26px; }
.empty h2 { font-size: 15px; }
.empty p { margin: 6px 0 15px; color: #7a8d87; font-size: 11.5px; }
.load-more-wrap { display: flex; justify-content: center; padding: 18px 0; }
.load-more-wrap .btn { min-width: 120px; }
.page-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 24px 4px 0; color: #8ea09a; font-size: 9.5px; }

/* drawer */
.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(8,30,27,.4); backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; right: 0; z-index: 90; width: min(580px,100vw); height: 100vh; display: flex; flex-direction: column; background: #fff; box-shadow: -18px 0 60px rgba(5,30,25,.18); transform: translateX(102%); visibility: hidden; transition: transform .25s cubic-bezier(.22,.75,.25,1), visibility .25s; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin-top: 5px; font-size: 19px; letter-spacing: -.02em; }
.drawer-head p { margin-top: 4px; color: #7e918b; font-size: 10.5px; }
.drawer-head .icon-btn { min-width: 36px; height: 36px; font-size: 22px; font-weight: 300; }
.drawer form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px 25px; }
.form-section + .form-section { margin-top: 24px; padding-top: 21px; border-top: 1px dashed var(--line); }
.section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.section-title span { width: 23px; height: 23px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 7px; font-size: 8px; font-weight: 750; }
.section-title h3 { font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.field.span-2 { grid-column: span 2; }
.field > span { color: #5e726b; font-size: 10px; font-weight: 600; }
.field > span em { color: var(--danger); font-style: normal; }
.field input, .field select { width: 100%; height: 39px; padding: 0 10px; color: #1e312c; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; font-size: 12px; }
.field input:focus, .field select:focus { border-color: #8dbbB2; box-shadow: 0 0 0 4px rgba(15,107,95,.06); }
.field input::placeholder { color: #afbbb7; }
.form-tip { margin-top: 14px; padding: 10px 11px; color: #806637; background: #fdf8ee; border: 1px solid #f2e6cc; border-radius: 8px; font-size: 9.5px; line-height: 1.6; }
.drawer-foot { display: flex; align-items: center; gap: 8px; padding: 13px 24px; background: #fbfdfc; border-top: 1px solid var(--line); }
.foot-right { display: flex; gap: 8px; margin-left: auto; }
.drawer-foot .btn { min-height: 38px; }

/* stats modal */
.modal-backdrop { display: grid; place-items: center; padding: 20px; }
.stats-modal { width: min(620px,100%); max-height: min(780px,90vh); overflow-y: auto; padding: 22px 24px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.modal-head h2 { font-size: 18px; }
.modal-head .icon-btn { min-width: 34px; height: 34px; font-size: 21px; }
.stats-town { display: flex; flex-direction: column; gap: 7px; }
.town-row { display: grid; grid-template-columns: 60px 1fr 58px; gap: 11px; align-items: center; }
.town-row b { font-size: 10.5px; }
.town-row span { color: #778b85; font-size: 9.5px; text-align: right; }
.town-bar { height: 7px; overflow: hidden; background: #edf3f1; border-radius: 5px; }
.town-bar i { display: block; height: 100%; background: linear-gradient(90deg, #188476, #63b7a4); border-radius: inherit; }
.stats-sub { margin: 22px 0 10px; color: #60766e; font-size: 11px; font-weight: 700; }
.stats-checks { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.stats-check { padding: 9px 10px; background: #f8fbfa; border: 1px solid #edf2f0; border-radius: 8px; }
.stats-check span { display: block; color: #869a94; font-size: 9px; }
.stats-check b { display: block; margin-top: 2px; font-size: 15px; }

.password-modal { width: min(430px,100%); max-height: 90vh; overflow-y: auto; padding: 21px 23px 20px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.password-modal .modal-head { align-items: flex-start; margin-bottom: 14px; }
.password-modal .modal-head h2 { font-size: 18px; }
.password-modal .modal-head p { margin-top: 5px; color: #82948e; font-size: 10px; line-height: 1.6; }
.password-modal .field + .field { margin-top: 11px; }
.password-modal .field input { height: 40px; }
.modal-error { margin-top: 10px; padding: 8px 10px; color: #9a3e38; background: #fdf1ef; border: 1px solid #f0d6d2; border-radius: 7px; font-size: 10.5px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.modal-actions .btn { min-height: 38px; }
.toast { position: fixed; left: 50%; bottom: 27px; z-index: 120; max-width: calc(100vw - 32px); padding: 11px 18px; color: #fff; background: #183a34; border-radius: 9px; box-shadow: 0 12px 30px rgba(5,30,26,.24); font-size: 12px; transform: translate(-50%,16px); opacity: 0; pointer-events: none; transition: .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.toast.error { background: #8f3732; }

@media (max-width: 900px) {
  .clinic-grid { grid-template-columns: 1fr; }
  .town-group + .town-group { margin-top: 18px; }
  .town-group-head h3 { font-size: 14px; }
  .toolbar-card { flex-direction: column; align-items: stretch; }
  .filters { justify-content: space-between; }
  .segment { flex: 1; overflow-x: auto; }
  .segment button { flex: 1; }
  .top-actions .conn-status { display: none; }
}
@media (max-width: 620px) {
  .main { padding: 12px 10px 35px; }
  .titlebar-inner { height: 48px; padding: 0 12px; }
  .titlebar h1 { font-size: 16.5px; letter-spacing: 0; }
  .control-bar { flex-wrap: wrap; gap: 7px; margin-top: 10px; padding: 9px 11px; border-radius: 11px; }
  .control-bar .current-user { width: 100%; }
  .control-bar .conn-status { margin-left: auto; margin-right: 0; }
  .control-actions { width: 100%; justify-content: flex-start; gap: 5px; }
  .control-actions .icon-btn { min-width: 36px; height: 33px; padding: 0 8px; font-size: 10px; }
  .control-actions .btn-primary { min-height: 33px; padding: 0 10px; font-size: 10.5px; }
  .topbar-inner { min-height: 62px; padding: 9px 12px; }
  .brand-text span { display: none; }
  .brand-text strong { font-size: 13px; }
  .current-user { gap: 8px; }
  .user-avatar { width: 33px; height: 33px; border-radius: 10px; font-size: 12px; }
  .current-user-copy strong { max-width: 78px; font-size: 12px; }
  .current-user-copy span { max-width: 92px; font-size: 8px; }
  .top-actions { gap: 5px; }
  .top-actions .icon-btn { min-width: 36px; height: 36px; padding: 0 8px; font-size: 10.5px; }
  .top-actions .btn-primary { min-height: 36px; padding: 0 11px; font-size: 11px; }
  .top-actions .logout { display: none; }
  .hero { padding: 22px 19px; border-radius: 15px; }
  .hero h1 { font-size: 21px; line-height: 1.35; }
  .hero-sub { font-size: 10.5px; }
  .hero-count b { font-size: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
  .stat-card { padding: 12px 13px; border-radius: 11px; }
  .stat-card b { font-size: 22px; }
  .stat-card small { display: none; }
  .toolbar-card { padding: 9px; gap: 8px; }
  .filters { gap: 6px; }
  .filters select { flex: 1; min-width: 100px; }
  .segment { flex: 0 0 100%; order: 3; }
  .segment button { flex: 1; }
  .text-btn { order: 2; font-size: 9.5px; }
  .list-meta { margin-top: 12px; font-size: 10px; }
  .clinic-card { padding: 14px 14px 12px; border-radius: 12px; }
  .card-title { font-size: 12.5px; }
  .card-net { gap: 9px; }
  .page-foot { display: none; }
  .drawer { width: 100%; }
  .drawer-head { padding: 17px 17px 14px; }
  .drawer-body { padding: 16px 17px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .drawer-foot { padding: 11px 17px; }
  .stats-modal { padding: 18px 16px; }
  .stats-checks { grid-template-columns: 1fr 1fr; }
  .password-modal { padding: 18px 16px; }
}
@media (max-width: 380px) {
  .top-actions .btn-primary { font-size: 0; gap: 0; width: 36px; padding: 0; }
  .top-actions .btn-primary::after { content: "＋"; font-size: 19px; }
  .segment button { padding: 0 6px; font-size: 9.5px; }
}
