:root {
  --bg: #f4efe7;
  --bg-soft: #fffaf5;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --text: #1b2430;
  --muted: #6f7a86;
  --line: rgba(36, 44, 57, 0.08);
  --accent: #d95d39;
  --accent-dark: #b74727;
  --success: #1f8f63;
  --danger: #ca3b2d;
  --warning: #b67a17;
  --shadow: 0 24px 80px rgba(48, 36, 27, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; font-family: var(--font); color: var(--text); background: radial-gradient(circle at top left, #fff4e8 0%, #f4efe7 45%, #efe7dc 100%); }
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
.hidden { display: none !important; }
.super-hidden { display: none !important; }
.full-width { width: 100%; }
.grow { flex: 1; }

.api-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(202, 59, 45, 0.92);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 32px);
  text-align: center;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 10%, rgba(121, 178, 255, 0.2), transparent 32%),
    radial-gradient(circle at 88% 84%, rgba(69, 123, 245, 0.22), transparent 34%),
    linear-gradient(155deg, #0f2f83 0%, #17439f 54%, #0f2f7e 100%);
}

.login-panel {
  width: min(560px, 100%);
  padding: 42px 42px 36px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(222, 233, 250, 0.9);
  box-shadow:
    0 26px 64px rgba(6, 31, 92, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.96) inset;
  backdrop-filter: blur(8px);
}
.login-panel::before,
.login-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.login-panel::before {
  width: 300px;
  height: 300px;
  right: -180px;
  top: -180px;
  background: radial-gradient(circle at 34% 34%, rgba(72, 130, 247, 0.12), rgba(72, 130, 247, 0));
}
.login-panel::after {
  width: 260px;
  height: 260px;
  left: -160px;
  bottom: -190px;
  background: radial-gradient(circle at 42% 42%, rgba(141, 191, 255, 0.16), rgba(141, 191, 255, 0));
}
.login-panel > * {
  position: relative;
  z-index: 1;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(71, 142, 252, 0.12), rgba(123, 182, 255, 0.18));
  color: #2d69d4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  border: 1px solid rgba(71, 142, 252, 0.24);
  box-shadow: 0 6px 16px rgba(42, 96, 191, 0.14);
}
.login-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #62b6ff 0%, #3e88f4 100%);
  box-shadow: 0 0 0 3px rgba(98, 182, 255, 0.22);
}

.login-panel h1 {
  margin: 0;
  font-size: 52px;
  color: #495263;
  letter-spacing: 0.02em;
  line-height: 1.06;
}
.login-panel p {
  margin: 14px 0 0;
  color: #657089;
  line-height: 1.68;
  font-size: 21px;
  max-width: 98%;
}
.setup-status {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 16px 18px 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(36, 44, 57, 0.12);
  border-left: 4px solid rgba(36, 44, 57, 0.2);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 24px rgba(44, 50, 62, 0.06);
}
.setup-status strong { font-size: 15px; }
.setup-status span { color: var(--muted); line-height: 1.6; font-size: 14px; }
.setup-status.warning { background: rgba(255, 247, 234, 0.96); border-color: rgba(182, 122, 23, 0.16); border-left-color: rgba(182, 122, 23, 0.48); }
.setup-status.warning strong { color: var(--warning); }
.setup-status.danger { background: rgba(255, 241, 239, 0.96); border-color: rgba(202, 59, 45, 0.16); border-left-color: rgba(202, 59, 45, 0.52); }
.setup-status.danger strong { color: var(--danger); }
.setup-status.success { background: rgba(241, 251, 246, 0.96); border-color: rgba(31, 143, 99, 0.16); border-left-color: rgba(31, 143, 99, 0.5); }
.setup-status.success strong { color: var(--success); }
.login-form { display: grid; gap: 18px; margin-top: 30px; }
.login-form label { display: grid; gap: 10px; }
.login-form span {
  font-size: 13px;
  color: #5d6980;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.login-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(100, 123, 163, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.95) 100%);
  font-size: 15px;
  color: #1f2b3d;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.login-form input::placeholder {
  color: #9ca8bc;
}
.login-form input:hover {
  border-color: rgba(72, 130, 247, 0.42);
}
.login-form input:focus {
  outline: none;
  border-color: rgba(72, 130, 247, 0.86);
  box-shadow:
    0 0 0 4px rgba(72, 130, 247, 0.16),
    0 10px 20px rgba(46, 103, 214, 0.12);
  transform: translateY(-1px);
}
.login-form .primary-btn {
  margin-top: 4px;
  min-height: 50px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  border-color: rgba(56, 112, 214, 0.72);
  background: linear-gradient(135deg, #4ea1ff 0%, #3f8df3 100%);
  box-shadow: 0 12px 24px rgba(58, 122, 228, 0.3);
}
.login-form .primary-btn:hover {
  background: linear-gradient(135deg, #61adff 0%, #4c99fc 100%);
  box-shadow: 0 14px 28px rgba(56, 117, 222, 0.34);
}
.login-error { min-height: 20px; color: var(--danger); font-size: 14px; }
.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 16px;
  color: #76839a;
  font-size: 13px;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(92, 120, 168, 0.26) 50%, transparent 100%);
}
.scan-login-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(249, 252, 255, 0.96) 0%, rgba(241, 248, 255, 0.96) 100%);
  border: 1px solid rgba(109, 144, 205, 0.2);
  display: grid;
  gap: 16px;
  box-shadow: 0 14px 26px rgba(27, 63, 132, 0.1);
}
.scan-login-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.scan-login-head strong {
  display: block;
  font-size: 16px;
}
.scan-login-head span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}
.scan-close-btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #60708a;
  border: 1px solid rgba(109, 144, 205, 0.32);
}
.scan-login-body {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.scan-login-qr-wrap {
  width: 188px;
  height: 188px;
  border-radius: 20px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(36, 44, 57, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
  display: grid;
  place-items: center;
}
.scan-login-qrcode {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.scan-login-status {
  min-height: 96px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(36, 44, 57, 0.08);
  color: var(--muted);
  line-height: 1.7;
  display: flex;
  align-items: center;
}
.scan-login-status.pending {
  color: var(--text);
}
.scan-login-status.success {
  color: var(--success);
  background: rgba(241, 251, 246, 0.98);
}
.scan-login-status.warning {
  color: var(--warning);
  background: rgba(255, 247, 234, 0.98);
}
.scan-login-status.error {
  color: var(--danger);
  background: rgba(255, 241, 239, 0.98);
}
.scan-login-actions {
  display: flex;
  justify-content: flex-end;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  padding: 26px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(27, 36, 48, 0.96) 0%, rgba(40, 52, 68, 0.97) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff9b62 0%, #d95d39 100%);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  overflow: hidden;
}
.brand-mark.has-image {
  background: rgba(255,255,255,0.12);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-nav { display: grid; gap: 10px; }
.nav-link {
  padding: 14px 16px;
  border-radius: 14px;
  background: transparent;
  color: rgba(255,255,255,0.82);
  text-align: left;
  transition: 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: translateX(4px);
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
#admin-summary { color: rgba(255,255,255,0.74); font-size: 14px; }

.main-shell { padding: 28px; display: grid; gap: 24px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.topbar h2 { margin: 0; font-size: 30px; }
.topbar p { margin: 10px 0 0; color: var(--muted); }
.topbar-actions { display: flex; gap: 12px; }

.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.toolbar-group { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.toolbar-note {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(27, 36, 48, 0.08);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}

.view-panel { display: none; }
.view-panel.active { display: block; animation: fadeIn 0.25s ease; }

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.primary-btn, .ghost-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  transition: 0.2s ease;
}
.primary-btn { background: linear-gradient(135deg, var(--accent) 0%, #f18b59 100%); color: #fff; box-shadow: 0 18px 32px rgba(217, 93, 57, 0.2); }
.primary-btn:hover { transform: translateY(-1px); }
.ghost-btn { background: rgba(255, 255, 255, 0.7); color: var(--text); border: 1px solid var(--line); }
.ghost-btn:hover { background: #fff; }
.ghost-btn.danger-soft,
.mini-btn.danger-soft {
  background: rgba(202, 59, 45, 0.08);
  color: var(--danger);
  border-color: rgba(202, 59, 45, 0.18);
}
.text-input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.82);
  min-width: 180px;
}
.text-input:focus, textarea:focus { outline: 2px solid rgba(217, 93, 57, 0.16); border-color: rgba(217, 93, 57, 0.32); }
.compact-select { min-width: 140px; }

.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.compact-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { padding: 22px; }
.metric-card { padding: 18px 20px; }
.stat-card strong { display: block; font-size: 14px; color: var(--muted); }
.metric-card strong { display: block; font-size: 13px; color: var(--muted); }
.stat-card span { display: block; margin-top: 12px; font-size: 34px; font-weight: 800; }
.metric-card span { display: block; margin-top: 10px; font-size: 28px; font-weight: 800; }
.stat-card small { display: block; margin-top: 8px; color: var(--muted); }
.metric-card small { display: block; margin-top: 8px; color: var(--muted); }
.stat-card-jump {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.stat-card-jump:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 93, 57, 0.28);
  box-shadow: 0 18px 32px rgba(27, 36, 48, 0.12);
}
.stat-card-jump:focus-visible {
  outline: 2px solid rgba(217, 93, 57, 0.32);
  outline-offset: 1px;
}

.hero-card { padding: 28px; margin-bottom: 18px; background: linear-gradient(135deg, rgba(217, 93, 57, 0.95) 0%, rgba(245, 156, 88, 0.94) 55%, rgba(255, 238, 218, 0.96) 130%); color: #fff; }
.hero-card h3 { margin: 0; font-size: 28px; }
.hero-card p { margin: 12px 0 0; max-width: 760px; line-height: 1.75; color: rgba(255,255,255,0.9); }
.dual-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 18px; }
.tri-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h3, .panel-head h4 { margin: 0; }
.list-card { padding: 20px; }
.inline-list { display: grid; gap: 10px; }
.inline-item { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.68); border: 1px solid rgba(36,44,57,0.06); }
.inline-item strong { display: block; }
.inline-item span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.module-card {
  padding: 20px;
  display: grid;
  gap: 14px;
}
.module-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.table-card { overflow: hidden; }
.admin-account-table-card { margin-bottom: 0; }
.admin-section-gap {
  height: 32px;
  pointer-events: none;
}
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 920px; }
.table-wrap th, .table-wrap td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap th { font-size: 13px; color: var(--muted); font-weight: 700; background: rgba(255,255,255,0.56); }
.table-wrap tr:hover td { background: rgba(255,255,255,0.38); }
.table-subtle { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.admin-log-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
}
.admin-log-head {
  align-items: flex-start;
  margin-bottom: 12px;
}
.admin-log-head-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-log-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(36, 44, 57, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: #3f4a58;
  font-size: 12px;
  font-weight: 700;
}
.admin-log-badge.muted {
  background: rgba(104, 120, 139, 0.12);
  color: #4c5e74;
}
.admin-log-badge.success {
  background: rgba(31, 143, 99, 0.12);
  color: var(--success);
}
.admin-log-badge.danger {
  background: rgba(202, 59, 45, 0.12);
  color: var(--danger);
}
.admin-log-toolbar {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(36, 44, 57, 0.08);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.78) 0%, rgba(248, 243, 236, 0.95) 100%);
}
.admin-log-filters {
  gap: 10px;
}
.admin-log-search-input {
  min-width: 280px;
  flex: 1 1 320px;
}
.admin-log-filter-input {
  min-width: 136px;
}
.admin-log-table-wrap {
  border-radius: 16px;
  border: 1px solid rgba(36, 44, 57, 0.08);
  background: rgba(255, 255, 255, 0.72);
}
.admin-log-table {
  min-width: 1240px;
}
.admin-log-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(247, 241, 233, 0.98);
  backdrop-filter: blur(8px);
}
.admin-log-row td {
  transition: background 0.2s ease;
}
.admin-log-row:hover td {
  background: rgba(255, 255, 255, 0.62);
}
.admin-log-time {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.admin-log-user strong {
  display: block;
  font-size: 15px;
}
.admin-log-user-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.admin-log-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(70, 96, 148, 0.1);
  color: #35558d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.admin-log-chip.action {
  background: rgba(217, 93, 57, 0.12);
  color: var(--accent-dark);
}
.admin-log-content {
  max-width: 260px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.admin-log-payload {
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(36, 44, 57, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #49576a;
  font-size: 12px;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.admin-log-error {
  margin-top: 8px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.4;
}
.table-thumb {
  width: 86px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(36, 44, 57, 0.08);
  background: #fff;
}
.thumb-placeholder {
  width: 86px;
  height: 64px;
  border-radius: 14px;
  border: 1px dashed rgba(36, 44, 57, 0.12);
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 12px;
}
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  color: var(--text);
}
.mini-btn.danger { color: var(--danger); }
.mini-btn.primary { color: var(--accent-dark); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status-pill.pending { background: rgba(182, 122, 23, 0.12); color: var(--warning); }
.status-pill.accepted, .status-pill.completed { background: rgba(31, 143, 99, 0.12); color: var(--success); }
.status-pill.rejected, .status-pill.cancelled, .status-pill.retired { background: rgba(202, 59, 45, 0.12); color: var(--danger); }
.status-pill.reported, .status-pill.assigned { background: rgba(70, 96, 148, 0.14); color: #35558d; }

.empty-state { padding: 44px 20px; text-align: center; color: var(--muted); }

.modal-layer, .drawer-layer {
  position: fixed;
  inset: 0;
  background: rgba(19, 24, 31, 0.42);
  display: grid;
  place-items: center;
  padding: 24px;
}
.drawer-layer {
  z-index: 60;
}
.modal-layer {
  z-index: 65;
}
.modal-card {
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--panel-strong);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.drawer-panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  margin-left: auto;
  background: var(--panel-strong);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  overflow: auto;
}
.modal-head, .drawer-head {
  position: sticky;
  top: -24px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: -24px -24px 18px;
  padding: 24px 24px 18px;
  background: var(--panel-strong);
  border-bottom: 1px solid rgba(16, 24, 40, 0.05);
}
.modal-head h3, .drawer-head h3 { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); }
textarea.text-input { min-height: 120px; padding: 12px 14px; }
textarea.text-input.giant-textarea { min-height: 220px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 220px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.checkbox-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #fff; }
.switch-line { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); }
.asset-input-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.asset-preview-row {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.asset-preview {
  width: min(100%, 240px);
  min-height: 120px;
  max-height: 180px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(36, 44, 57, 0.08);
  background: #fff;
}
.asset-preview-placeholder {
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(36, 44, 57, 0.12);
  background: rgba(255,255,255,0.7);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.asset-preview-file {
  justify-content: space-between;
  gap: 16px;
}
.asset-preview-file a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 700;
}
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.meta-item { padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); }
.meta-item strong { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.user-profile-card { margin-bottom: 16px; }
.user-profile-kv { border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.72); overflow: hidden; }
.user-profile-kv-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.2fr); align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.user-profile-kv-row:last-child { border-bottom: 0; }
.user-profile-kv-label { color: var(--muted); font-size: 14px; }
.user-profile-kv-value { text-align: right; font-weight: 700; color: var(--text); line-height: 1.55; word-break: break-word; }
.user-profile-extra-grid .meta-item { min-height: 80px; }
.report-list { display: grid; gap: 12px; margin-top: 16px; }
.report-card { padding: 14px; border-radius: 16px; background: var(--bg-soft); }
.report-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.report-photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.report-photo-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
}
.report-photo-file.disabled {
  color: var(--muted);
  background: rgba(255,255,255,0.72);
}
.task-report-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 176px;
}
.task-report-summary strong {
  font-size: 13px;
  color: var(--text);
}
.task-report-summary.has-report strong {
  color: #1f4b88;
}
.task-report-summary span {
  font-size: 12px;
  color: var(--muted);
}
.task-report-summary .mini-btn {
  margin-top: 2px;
}
.task-report-viewer {
  display: grid;
  gap: 14px;
}
.task-report-viewer-head {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
}
.task-report-viewer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.task-report-viewer-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 13px;
}
.task-report-card {
  border: 1px solid rgba(16, 24, 40, 0.06);
  background: rgba(255,255,255,0.86);
}
.task-report-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.task-report-card-head span {
  font-size: 12px;
  color: var(--muted);
}
.task-report-card-content {
  margin-top: 8px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}
.modal-actions {
  position: sticky;
  bottom: -24px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 20px -24px -24px;
  padding: 16px 24px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.96) 24%, rgba(255,255,255,1) 100%);
  border-top: 1px solid rgba(16, 24, 40, 0.05);
  backdrop-filter: blur(6px);
}
.helper-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(217, 93, 57, 0.08);
  color: var(--muted);
  line-height: 1.7;
}
.builder-stack { display: grid; gap: 16px; }
.builder-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
}
.cert-designer-field {
  margin-top: 4px;
}
.cert-visual-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.cert-visual-toolbar .mini-btn.active,
.cert-visual-toolbar .mini-btn.primary.active {
  background: linear-gradient(135deg, var(--accent) 0%, #f18b59 100%);
  color: #fff;
  border-color: transparent;
}
.cert-visual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.cert-visual-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.cert-visual-chip strong {
  color: var(--text);
}
.cert-visual-workbench {
  margin-top: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,243,236,0.9) 100%);
  padding: 18px;
}
.cert-visual-empty {
  min-height: 180px;
}
.cert-visual-stage {
  position: relative;
  width: min(100%, 820px);
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #f7f3ec;
  box-shadow: inset 0 0 0 1px rgba(36, 44, 57, 0.06);
  user-select: none;
}
.cert-visual-bg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  background: #fff;
}
.cert-visual-layer {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 14px;
  border: 2px dashed rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.16);
  cursor: grab;
  transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
.cert-visual-layer.active {
  border-style: solid;
  box-shadow: 0 14px 24px rgba(16, 24, 40, 0.18);
  transform: translateY(-1px);
}
.cert-visual-layer.inactive {
  opacity: 0.82;
}
.cert-visual-layer.cert-no {
  border-color: rgba(255, 152, 0, 0.96);
}
.cert-visual-layer.name {
  border-color: rgba(32, 201, 151, 0.96);
}
.cert-visual-layer.qr {
  border-color: rgba(217, 93, 57, 0.96);
  background: rgba(255,255,255,0.22);
}
.cert-visual-badge {
  position: absolute;
  top: -14px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(19, 24, 31, 0.84);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-visual-content {
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  word-break: normal;
  pointer-events: none;
}
.cert-visual-qr {
  padding: 10px;
}
.cert-visual-qr-grid {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.9) 10%, transparent 10%, transparent 20%, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.9) 30%, transparent 30%, transparent 40%, rgba(0,0,0,0.9) 40%, rgba(0,0,0,0.9) 50%, transparent 50%, transparent 60%, rgba(0,0,0,0.9) 60%, rgba(0,0,0,0.9) 70%, transparent 70%, transparent 80%, rgba(0,0,0,0.9) 80%, rgba(0,0,0,0.9) 90%, transparent 90%),
    linear-gradient(rgba(0,0,0,0.92) 10%, transparent 10%, transparent 20%, rgba(0,0,0,0.92) 20%, rgba(0,0,0,0.92) 30%, transparent 30%, transparent 40%, rgba(0,0,0,0.92) 40%, rgba(0,0,0,0.92) 50%, transparent 50%, transparent 60%, rgba(0,0,0,0.92) 60%, rgba(0,0,0,0.92) 70%, transparent 70%, transparent 80%, rgba(0,0,0,0.92) 80%, rgba(0,0,0,0.92) 90%, transparent 90%);
  background-size: 22px 22px;
  background-position: center;
  box-shadow: inset 0 0 0 8px #fff;
}
.cert-visual-handle {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(217, 93, 57, 0.25);
  cursor: nwse-resize;
}
.cert-visual-helper {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.cert-advanced {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  padding: 14px 16px 16px;
}
.cert-advanced summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}
.cert-advanced-grid {
  margin-top: 14px;
}
.builder-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.builder-head h4 { margin: 0; }
.builder-view-bar {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.builder-view-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  width: fit-content;
}
.builder-view-switch .mini-btn {
  border-radius: 999px;
}
.builder-view-switch .mini-btn.active,
.builder-view-switch .mini-btn.primary.active {
  background: linear-gradient(135deg, var(--accent) 0%, #f18b59 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(217, 93, 57, 0.24);
}
.builder-view-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.builder-list { display: grid; gap: 12px; }
.builder-field {
  border: 1px solid rgba(36, 44, 57, 0.08);
  border-radius: 16px;
  padding: 14px;
  background: var(--bg-soft);
}
.builder-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.builder-foot.spread {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.builder-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.task-location-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.task-location-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.task-member-picker {
  width: 100%;
  border: 1px solid rgba(36, 44, 57, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.66);
  overflow: hidden;
}

.task-member-picker summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-member-picker summary::-webkit-details-marker {
  display: none;
}

.task-member-picker summary::after {
  content: "展开";
  min-width: 46px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(36, 44, 57, 0.06);
  text-align: center;
}

.task-member-picker[open] summary::after {
  content: "收起";
}

.task-member-picker-body {
  padding: 0 18px 18px;
  display: grid;
  gap: 14px;
}

.task-member-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.task-member-search {
  width: 100%;
}

.task-member-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 24px;
}

.task-member-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(217, 93, 57, 0.12);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
}

.task-member-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.task-member-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "check name"
    "check meta";
  gap: 4px 12px;
  align-items: center;
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(36, 44, 57, 0.08);
  background: var(--bg-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.task-member-option:hover {
  border-color: rgba(217, 93, 57, 0.22);
  transform: translateY(-1px);
}

.task-member-option.selected {
  border-color: rgba(217, 93, 57, 0.28);
  background: rgba(255, 245, 239, 0.94);
  box-shadow: 0 12px 24px rgba(217, 93, 57, 0.08);
}

.task-member-option-check {
  grid-area: check;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(36, 44, 57, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.task-member-option.selected .task-member-option-check {
  background: rgba(217, 93, 57, 0.14);
  color: var(--accent-dark);
}

.task-member-option-main {
  grid-area: name;
  font-weight: 700;
  color: var(--text);
}

.task-member-option-meta {
  grid-area: meta;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.submodal-layer {
  position: fixed;
  inset: 0;
  z-index: 66;
  background: rgba(19, 24, 31, 0.34);
  display: grid;
  place-items: center;
  padding: 28px;
}

.submodal-card {
  width: min(1200px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  background: var(--panel-strong);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.location-picker-card {
  width: min(1280px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.submodal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.submodal-head h4 {
  margin: 0;
  font-size: 22px;
}

.submodal-head span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.location-picker-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  min-height: 560px;
  min-width: 0;
  align-items: stretch;
}

.location-picker-side,
.location-picker-map-shell {
  border: 1px solid rgba(36, 44, 57, 0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.82);
  padding: 16px;
}

.location-picker-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.location-picker-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.location-picker-summary {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg-soft);
  display: grid;
  gap: 6px;
}

.location-picker-summary strong {
  font-size: 15px;
}

.location-picker-summary span {
  color: var(--muted);
  line-height: 1.55;
}

.location-picker-results {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}

.location-result-btn {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(36, 44, 57, 0.08);
  background: var(--bg-soft);
  text-align: left;
}

.location-result-btn strong {
  color: var(--text);
}

.location-result-btn span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.location-result-btn:hover {
  border-color: rgba(217, 93, 57, 0.22);
  background: rgba(255, 245, 239, 0.92);
}

.location-picker-map-shell {
  min-height: 560px;
  min-width: 0;
  overflow: hidden;
}

.location-picker-map {
  width: 100%;
  height: 100%;
  min-height: 528px;
  border-radius: 16px;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.compact-empty {
  padding: 18px 14px;
  border: 1px dashed rgba(36, 44, 57, 0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.64);
}

.recruitment-settings-card {
  gap: 18px;
}

.recruitment-section-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,249,244,0.96) 100%);
}

.recruitment-section-preview {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.recruitment-section-preview:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 93, 57, 0.24);
  box-shadow: 0 14px 24px rgba(27, 36, 48, 0.08);
}

.recruitment-section-focus {
  border-color: rgba(217, 93, 57, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(217, 93, 57, 0.12), 0 16px 28px rgba(27, 36, 48, 0.12) !important;
}

.recruitment-field-card {
  display: grid;
  gap: 14px;
}

.recruitment-field-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.recruitment-field-head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.recruitment-inline-switch {
  padding: 0 4px;
}

.recruitment-field-body {
  align-items: start;
}

.builder-add-inline {
  min-height: 48px;
  border-radius: 16px;
  border: 1px dashed rgba(36, 44, 57, 0.16);
  background: rgba(255,255,255,0.72);
  color: #377dff;
  font-weight: 700;
}

.builder-add-inline:hover {
  border-color: rgba(55, 125, 255, 0.24);
  background: rgba(244, 248, 255, 0.96);
}

.loading-mask {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(19, 24, 31, 0.28);
  display: grid;
  place-items: center;
}
.loading-card { background: rgba(27,36,48,0.92); color: #fff; padding: 16px 22px; border-radius: 16px; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  background: rgba(27, 36, 48, 0.96);
  box-shadow: var(--shadow);
  animation: fadeUp 0.25s ease;
}
.toast.success { background: rgba(31, 143, 99, 0.94); }
.toast.error { background: rgba(202, 59, 45, 0.94); }
.toast.warning { background: rgba(182, 122, 23, 0.94); }

.activity-config-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 250, 245, 0.96);
  border: 1px solid rgba(217, 93, 57, 0.12);
  color: var(--muted);
  line-height: 1.7;
}

.activity-field-type-card {
  width: min(760px, 100%);
}

.activity-field-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.activity-type-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  display: grid;
  gap: 8px;
  text-align: left;
  transition: 0.2s ease;
}

.activity-type-card:hover {
  border-color: rgba(217, 93, 57, 0.3);
  box-shadow: 0 14px 28px rgba(48, 36, 27, 0.08);
  transform: translateY(-2px);
}

.activity-type-card strong {
  font-size: 16px;
}

.activity-type-card span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.mini-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .stats-grid, .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dual-grid, .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .scan-login-body { grid-template-columns: 1fr; }
  .scan-login-qr-wrap { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1 / 1; margin: 0 auto; }
  .admin-log-head { flex-direction: column; align-items: stretch; }
  .admin-log-head-badges { justify-content: flex-start; }
  .admin-log-search-input { min-width: 220px; flex-basis: 100%; }
}

@media (max-width: 720px) {
  .main-shell { padding: 18px; }
  .topbar, .section-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-group, .topbar-actions { width: 100%; }
  .toolbar-group .text-input, .toolbar-group button { width: 100%; }
  .asset-input-line { grid-template-columns: 1fr; }
  .stats-grid, .summary-strip, .form-grid, .meta-grid, .checkbox-grid, .compact-grid, .tri-grid { grid-template-columns: 1fr; }
  .login-panel { padding: 28px; }
  .login-panel h1 { font-size: 42px; }
  .login-panel p { font-size: 18px; }
  .login-form input { min-height: 48px; }
  .scan-login-head { flex-direction: column; }
  .scan-close-btn, .scan-login-actions .ghost-btn { width: 100%; }
  .builder-inline { grid-template-columns: 1fr; }
  .task-location-toolbar,
  .task-member-toolbar,
  .task-member-list,
  .location-picker-layout,
  .location-picker-toolbar,
  .recruitment-field-head,
  .activity-field-type-grid { grid-template-columns: 1fr; }
  .task-location-meta { align-items: stretch; }
  .task-location-meta .mini-btn,
  .task-location-toolbar .ghost-btn,
  .task-member-toolbar .ghost-btn { width: 100%; }
  .submodal-layer { padding: 18px; }
  .submodal-card { padding: 18px; }
  .location-picker-map-shell { min-height: 360px; }
  .location-picker-map { min-height: 320px; }
  .recruitment-field-head-actions { justify-content: space-between; }
  .cert-visual-toolbar { flex-direction: column; }
  .cert-visual-chip { width: 100%; justify-content: space-between; }
  .cert-visual-workbench { padding: 14px; }
  .cert-visual-handle { width: 20px; height: 20px; right: -8px; bottom: -8px; }
  .admin-log-toolbar { padding: 10px; }
  .admin-log-filters, .admin-log-actions { width: 100%; }
  .admin-log-actions .ghost-btn { width: 100%; }
  .admin-log-search-input, .admin-log-filter-input { width: 100%; min-width: 0; }
  .admin-log-content, .admin-log-payload { max-width: none; }
  .user-profile-kv-row { grid-template-columns: 1fr; gap: 6px; }
  .user-profile-kv-value { text-align: left; }
}
.modal-card.wide { width: min(1240px, 100%); }
.drawer-panel h4 { margin: 0 0 12px; }
