:root {
  color-scheme: light;
  --ink: #18231f;
  --muted: #6f7874;
  --line: #e3e7e5;
  --paper: #f7f8f7;
  --card: #ffffff;
  --green-950: #082b22;
  --green-900: #0d3a2e;
  --green: #126447;
  --green-600: #197454;
  --green-soft: #ebf5f0;
  --sand: #d9b879;
  --amber: #d98917;
  --red: #c3483e;
  --red-soft: #fae9e7;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #55a585;
  outline-offset: 2px;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 46.1% 53.9%;
  min-height: 100vh;
  overflow: auto;
  background: #f8f9f8;
}
.login-screen[hidden] { display: none; }
.login-brand-panel {
  position: relative;
  min-height: 100vh;
  padding: 148px 54px 72px 104px;
  overflow: hidden;
  color: #f8f5ed;
  background: #082b22 url('/admin/login-brand-texture.png') center / cover no-repeat;
}
.login-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(1, 27, 21, .18);
}
.login-brand-lockup,
.login-film,
.login-watermark { position: relative; z-index: 1; }
.login-brand-lockup { display: flex; align-items: center; gap: 32px; }
.login-mark {
  display: grid;
  place-items: center;
  width: 132px;
  height: 138px;
  flex: 0 0 132px;
  border-radius: 30px;
  color: #0b3026;
  background: #ddb96f;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
  font: 800 68px/1 "STSong", "Songti SC", serif;
}
.login-brand-lockup strong { display: block; font-size: 40px; line-height: 1.25; letter-spacing: .025em; white-space: nowrap; }
.login-brand-lockup p { margin: 16px 0 0; color: #eee8dc; font-size: 22px; letter-spacing: .04em; white-space: nowrap; }
.login-film {
  width: 222px;
  margin-top: 32px;
  padding: 0;
}
.login-film img {
  display: block;
  width: 222px;
  height: 190px;
  margin-bottom: 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}
.login-film img:nth-child(1) { object-position: 50% 36%; }
.login-film img:nth-child(2) { height: 201px; }
.login-film img:nth-child(3) { height: 195px; margin-bottom: 0; }
.login-watermark {
  position: absolute;
  right: 42px;
  bottom: 180px;
  color: #d7b670;
  font: 700 116px/1.1 "STSong", "Songti SC", serif;
  letter-spacing: -.18em;
  opacity: .075;
  writing-mode: vertical-rl;
  transform: rotate(12deg);
}
.login-form-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 100vh;
  padding: 56px;
  background: #fafbfa;
}
.login-card {
  width: min(548px, 100%);
  min-height: 720px;
  padding: 43px 42px 38px;
  border: 1px solid #d7dcda;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(24, 48, 39, .07);
}
.login-eyebrow { display: flex; align-items: center; gap: 9px; color: #18845e; font-size: 15px; font-weight: 600; }
.login-eyebrow .ph { font-size: 20px; }
.login-card h1 { margin: 34px 0 8px; font-size: 38px; line-height: 1.22; letter-spacing: -.035em; }
.login-card .login-description { margin: 0 0 36px; color: #5e6864; font-size: 15px; }
.login-card > label { display: block; margin: 0 0 9px; color: #202925; font-size: 15px; font-weight: 600; }
.login-card > label:not(:first-of-type) { margin-top: 27px; }
.login-card input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #cfd5d2;
  border-radius: 8px;
  color: #1c2622;
  background: #fff;
  outline: none;
  font-size: 15px;
}
.login-card input::placeholder { color: #abb1ae; }
.login-card input:focus { border-color: #4b9c7d; box-shadow: 0 0 0 3px #eaf5f0; }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-field button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 7px;
  color: #69736e;
  background: transparent;
}
.password-field button:hover { color: var(--green); background: #f0f5f2; }
.password-field .ph { font-size: 21px; }
.login-options { display: flex; align-items: center; justify-content: space-between; margin-top: 31px; }
.remember-option { display: flex; align-items: center; gap: 10px; color: #36413c; cursor: pointer; }
.remember-option input { width: 22px; height: 22px; margin: 0; padding: 0; accent-color: var(--green); }
.forgot-password { border: 0; color: #187b59; background: transparent; font-weight: 600; }
.forgot-password:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-card .login-error { margin: 12px 0 -4px; color: var(--red); font-size: 12px; font-weight: 500; }
.login-card .login-submit {
  width: 100%;
  height: 58px;
  margin-top: 28px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #126447;
  box-shadow: 0 8px 18px rgba(18, 100, 71, .14);
  font-size: 17px;
  font-weight: 700;
}
.login-card .login-submit:hover { background: #0f7150; }
.login-card .login-submit:disabled { cursor: wait; opacity: .6; }
.login-security-note { display: flex; align-items: center; gap: 12px; margin-top: 39px; color: #bcc4c0; }
.login-security-note::before,
.login-security-note::after { content: ""; height: 1px; flex: 1; background: #dfe3e1; }
.login-security-note .ph { font-size: 21px; }
.login-restriction { margin: 20px 0 0; color: #838c87; text-align: center; font-size: 13px; }

@media (max-width: 1180px) {
  .login-brand-panel { padding-left: 64px; }
  .login-brand-lockup { gap: 22px; }
  .login-mark { width: 106px; height: 112px; flex-basis: 106px; border-radius: 25px; font-size: 56px; }
  .login-brand-lockup strong { font-size: 31px; }
  .login-brand-lockup p { font-size: 17px; }
  .login-form-panel { padding: 42px; }
}

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 40% 60%; }
  .login-brand-panel { padding: 70px 30px; }
  .login-brand-lockup { display: block; }
  .login-brand-lockup > div { margin-top: 22px; }
  .login-brand-lockup strong { white-space: normal; }
  .login-brand-lockup p { white-space: normal; }
  .login-film { width: 100%; margin-top: 50px; }
  .login-film img { width: 100%; height: 150px; }
  .login-film img:nth-child(n) { height: 150px; }
  .login-form-panel { padding: 28px; }
  .login-card { min-height: 0; padding: 36px 30px; }
}

@media (max-width: 680px) {
  .login-screen { display: block; background: #fff; }
  .login-brand-panel { min-height: 228px; padding: 36px 28px; }
  .login-brand-lockup { display: flex; }
  .login-brand-lockup > div { margin-top: 0; }
  .login-mark { width: 78px; height: 82px; flex-basis: 78px; border-radius: 19px; font-size: 42px; }
  .login-brand-lockup strong { font-size: 25px; }
  .login-brand-lockup p { margin-top: 8px; font-size: 13px; }
  .login-film, .login-watermark { display: none; }
  .login-form-panel { min-height: auto; padding: 0; }
  .login-card { width: 100%; min-height: calc(100vh - 228px); padding: 36px 26px; border: 0; border-radius: 0; box-shadow: none; }
  .login-card h1 { margin-top: 26px; font-size: 32px; }
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: 224px;
  padding: 28px 16px 20px;
  background:
    radial-gradient(circle at 15% 8%, rgba(28, 112, 82, .24), transparent 34%),
    linear-gradient(155deg, var(--green-950), #06271f 72%);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px;
  margin-bottom: 34px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 13px;
  color: #11291f;
  background: linear-gradient(145deg, #edce8e, #caa45c);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .17);
  font: 800 24px/1 "STSong", "Songti SC", serif;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .02em; white-space: nowrap; }
.brand small { margin-top: 4px; color: #9eb7ad; font-size: 12px; }
nav { display: grid; gap: 8px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 13px 15px;
  color: #afc2ba;
  background: transparent;
  text-align: left;
  font-weight: 600;
}
.nav-item .ph { font-size: 21px; }
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, #0e6048, #0d5943);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.nav-item:disabled { cursor: not-allowed; opacity: .75; }
.sidebar-bottom { margin-top: auto; }
.shared-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border: 1px solid rgba(118, 177, 153, .34);
  border-radius: 11px;
  color: #eef7f3;
  background: rgba(5, 42, 32, .35);
}
.shared-note > .ph { margin-top: 2px; color: var(--sand); font-size: 18px; }
.shared-note strong { font-size: 13px; }
.shared-note p { margin: 6px 0 0; color: #a3bbb1; font-size: 11px; line-height: 1.7; }
.operator {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 22px;
  padding: 10px 4px;
  border: 0;
  color: #fff;
  background: transparent;
  text-align: left;
}
.operator img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.operator strong, .operator small { display: block; }
.operator small { margin-top: 2px; color: #9eb4ab; font-size: 11px; }

.workspace {
  min-height: 100vh;
  margin-left: 224px;
  display: grid;
  grid-template-columns: minmax(680px, 1fr) 352px;
}
.content { min-width: 0; padding: 30px 22px 46px 32px; }
.topbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}
h1 { margin: 0; font-size: 27px; line-height: 1.2; letter-spacing: -.025em; }
.topbar-controls { display: flex; align-items: center; gap: 14px; }
.app-switch {
  display: flex;
  padding: 2px;
  border: 1px solid #dce1df;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(21, 53, 42, .035);
}
.app-switch button {
  min-width: 104px;
  height: 38px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #555f5b;
  font-weight: 600;
}
.app-switch button.active {
  color: #fff;
  background: linear-gradient(180deg, #187356, #0e5d44);
  box-shadow: 0 2px 6px rgba(13, 84, 62, .18);
}
.app-id { color: #7e8582; font-size: 12px; white-space: nowrap; }
.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d8ddda;
  border-radius: 8px;
  background: #fff;
  color: #2f3935;
}
.icon-button .ph { font-size: 19px; }
.icon-button.loading .ph { animation: spin .7s linear infinite; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 8px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.stats button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  border: 0;
  border-right: 1px solid #e9ecea;
  background: transparent;
  color: #646d69;
}
.stats button:last-child { border-right: 0; }
.stats button.active { color: var(--green); font-weight: 600; }
.stats .ph { font-size: 17px; }
.stats strong { font-size: 16px; font-weight: 500; }
.pending-dot { color: #159466; font-size: 9px !important; }
.approved-dot { color: #36a978; }
.rejected-dot { color: #dc6157; }
.neutral-dot { color: #7f8a85; }

.panel {
  min-height: 584px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 62px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.toolbar label { display: flex; align-items: center; gap: 10px; color: #59625e; }
.toolbar select {
  min-width: 140px;
  height: 36px;
  padding: 0 34px 0 12px;
  border: 1px solid #dde2df;
  border-radius: 7px;
  color: #37413d;
  background: #fff;
}
.reset-button {
  height: 36px;
  padding: 0 15px;
  border: 1px solid #dbe0dd;
  border-radius: 7px;
  color: #46504c;
  background: #fff;
}
.result-count { margin-left: auto; color: #8a918e; font-size: 12px; }
.feedback { margin: 12px 16px 0; padding: 10px 12px; border-radius: 7px; color: #9d5216; background: #fff3e7; }
.table-wrap { position: relative; min-height: 520px; overflow: auto; }
table { width: 100%; min-width: 810px; border-collapse: collapse; table-layout: fixed; }
th, td { padding: 14px 14px; border-bottom: 1px solid #e9ecea; text-align: left; vertical-align: middle; }
th {
  height: 48px;
  color: #737c78;
  background: #fbfcfb;
  font-size: 12px;
  font-weight: 500;
}
th:nth-child(1) { width: 24%; }
th:nth-child(2) { width: 9%; }
th:nth-child(3) { width: 18%; }
th:nth-child(4) { width: 14%; }
th:nth-child(5) { width: 12%; }
th:nth-child(6) { width: 11%; }
th:nth-child(7) { width: 12%; }
tbody tr { transition: background .18s, box-shadow .18s; }
tbody tr:hover { background: #fbfdfc; }
tbody tr.selected {
  background: #f0f7f4;
  box-shadow: inset 2px 0 var(--green-600), inset 0 0 0 1px #90c5b1;
}
.person { display: flex; align-items: center; gap: 10px; }
.person img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: #e8ecea; }
.person strong, .person span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person strong { max-width: 126px; font-size: 13px; }
.person span { color: #77807c; font-size: 11px; }
.style-tag {
  display: inline-block;
  margin: 2px 3px 2px 0;
  padding: 3px 7px;
  border-radius: 5px;
  color: #53605a;
  background: #f0f2f1;
  font-size: 11px;
}
.datetime span { display: block; white-space: nowrap; }
.completeness { font-weight: 500; }
.completeness.high { color: #159466; }
.completeness.medium { color: #e38717; }
.status { display: inline-flex; align-items: center; gap: 6px; color: #69716e; font-size: 12px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { color: #d58515; }
.status-approved { color: #16865e; }
.status-rejected { color: #c74d44; }
.review-link {
  min-width: 70px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dbe0dd;
  border-radius: 7px;
  color: var(--green);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.review-link.primary-row {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}
.empty {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 400px;
  color: #8b938f;
}
.empty[hidden] { display: none; }
.empty .ph { margin-bottom: 10px; color: #9cb6ac; font-size: 32px; }
.empty strong { color: #34413b; }
.empty span { margin-top: 3px; font-size: 12px; }
.empty button { margin-top: 16px; border: 0; color: var(--green); background: transparent; font-weight: 600; }
.loading-cell { padding: 44px 18px; color: #77817c; text-align: center; }

.review-drawer {
  position: sticky;
  top: 0;
  height: 100vh;
  border-left: 1px solid #dfe4e1;
  background: #fff;
  overflow-y: auto;
}
.drawer-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  height: 100%;
  padding: 32px;
  color: #87918c;
  text-align: center;
}
.drawer-empty .ph { margin-bottom: 12px; color: #a9b9b2; font-size: 40px; }
.drawer-empty strong { color: #34403b; }
.drawer-empty span { max-width: 220px; margin-top: 5px; font-size: 12px; }
.drawer-title {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
}
.drawer-title h2 { margin: 0; font-size: 16px; }
.drawer-title button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  color: #606a66;
  background: transparent;
}
.drawer-title button:hover { background: #f1f3f2; }
.drawer-title .ph { font-size: 20px; }
.applicant { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.applicant-top { display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center; }
.applicant-top img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }
.applicant-top strong, .applicant-top small { display: block; }
.applicant-top small { margin-top: 3px; color: #737d78; }
.mini-status { align-self: start; padding: 5px 9px; border-radius: 7px; font-size: 11px; }
.mini-status.status-pending { color: #d67d09; background: #fff2de; }
.mini-status.status-approved { color: #177c59; background: #e9f5ef; }
.mini-status.status-rejected { color: #bc4b43; background: #faeae8; }
.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; margin-top: 14px; }
.meta-grid span, .meta-grid strong { display: block; }
.meta-grid span { margin-bottom: 4px; color: #8b928f; font-size: 10px; }
.meta-grid strong { font-size: 12px; font-weight: 500; }
.drawer-section { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-section h3 { margin: 0 0 10px; font-size: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; }
.section-heading span { color: #848d89; font-size: 11px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.portfolio-grid img { width: 100%; aspect-ratio: 1 / 1; border-radius: 6px; object-fit: cover; background: #e8ecea; }
.detail-block p { margin: 4px 0 11px; color: #39433f; font-size: 12px; line-height: 1.6; }
.detail-block p:last-child { margin-bottom: 0; }
.drawer-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.checklist { display: grid; gap: 7px; }
.check-item { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 6px; font-size: 11px; }
.check-item .ph { color: #169565; font-size: 14px; }
.check-item > span:last-child { color: #169565; }
.audit-history { display: flex; align-items: flex-start; gap: 9px; color: #78817d; font-size: 11px; }
.audit-history .ph { margin-top: 1px; color: #9ca6a1; }
.reject-section label { display: block; margin-bottom: 8px; color: #303a36; font-size: 12px; font-weight: 600; }
.reject-section label span { color: #7f8984; font-weight: 400; }
.reject-section textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid #dde2df;
  border-radius: 7px;
  color: #313b37;
  outline: none;
}
.reject-section textarea:focus { border-color: #4b9c7d; box-shadow: 0 0 0 3px #eaf5f0; }
.reject-section textarea.invalid { border-color: var(--red); }
.field-error { margin: 5px 0 0; color: var(--red); font-size: 11px; }
.drawer-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 10px;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}
.drawer-actions button {
  height: 42px;
  border: 0;
  border-radius: 7px;
  font-weight: 600;
}
.drawer-actions .danger { color: #bd433b; background: var(--red-soft); }
.drawer-actions .primary { color: #fff; background: linear-gradient(180deg, #13825b, #0d684a); box-shadow: 0 5px 14px rgba(16, 111, 78, .18); }
.drawer-actions .ph { margin-right: 5px; }
.drawer-actions button:disabled { cursor: wait; opacity: .55; }
.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: #153c30;
  box-shadow: 0 12px 36px rgba(9, 44, 33, .24);
}
.toast[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: minmax(620px, 1fr) 320px; }
  .content { padding-left: 24px; }
  .app-id { display: none; }
}
@media (max-width: 980px) {
  .sidebar { width: 76px; padding-inline: 12px; }
  .brand { justify-content: center; }
  .brand-mark { width: 46px; height: 46px; flex-basis: 46px; }
  .brand > div, .nav-item span, .shared-note, .operator span, .operator > .ph { display: none; }
  .nav-item { justify-content: center; padding-inline: 0; }
  .operator { display: flex; justify-content: center; }
  .workspace { margin-left: 76px; }
}
@media (max-width: 820px) {
  .workspace { display: block; }
  .content { padding: 22px 18px 36px; }
  .review-drawer {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    width: min(390px, calc(100vw - 36px));
    transform: translateX(100%);
    box-shadow: -24px 0 60px rgba(13, 45, 34, .16);
    transition: transform .24s ease;
  }
  .review-drawer.open { transform: translateX(0); }
  .topbar { align-items: flex-start; }
  .topbar-controls { flex-wrap: wrap; justify-content: flex-end; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats button:nth-child(2) { border-right: 0; }
  .stats button:nth-child(-n+2) { border-bottom: 1px solid #e9ecea; }
}
@media (max-width: 620px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: 68px;
    padding: 11px 16px;
    display: block;
  }
  .brand { justify-content: flex-start; margin: 0; }
  .brand > div { display: block; }
  .brand-mark { width: 44px; height: 44px; flex-basis: 44px; font-size: 20px; }
  .sidebar nav, .sidebar-bottom { display: none; }
  .workspace { margin-left: 0; }
  .topbar { display: block; }
  h1 { margin-bottom: 16px; }
  .topbar-controls { justify-content: flex-start; }
  .app-switch { width: calc(100% - 52px); }
  .app-switch button { flex: 1; min-width: 0; }
  .toolbar { gap: 10px; flex-wrap: wrap; }
  .toolbar label { flex: 1; }
  .toolbar select { min-width: 0; width: 100%; }
  .result-count { width: 100%; margin-left: 0; }
}
