:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --line: #dbe4ef;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #1d4ed8;
  --primary-strong: #1e40af;
  --accent: #0f766e;
  --danger: #b42318;
  --shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #eef4fb 0%, #f7f9fc 100%);
  color: var(--text);
}

.review-page-body {
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.shell.page-watermark-active {
  position: relative;
}

.shell.page-watermark-active::before {
  content: attr(data-watermark);
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.7;
  letter-spacing: 0;
  color: rgba(71, 85, 105, 0.1);
  transform: rotate(-28deg);
  pointer-events: none;
  white-space: pre-wrap;
  text-align: center;
  z-index: 40;
}

.shell.app-loading {
  position: relative;
  overflow: hidden;
}

.shell.app-loading::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #eef4fb 0%, #f7f9fc 100%);
  z-index: 999;
}

.shell.app-loading::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 999px;
  border: 3px solid rgba(29, 78, 216, 0.14);
  border-top-color: rgba(29, 78, 216, 0.88);
  z-index: 1000;
  animation: app-loading-spin 0.85s linear infinite;
}

@keyframes app-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  background: #0f172a;
  color: #f8fafc;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guest-sidebar-shell,
.user-sidebar-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-height: 0;
}

.guest-sidebar-shell {
  align-items: stretch;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(30, 41, 59, 0.08));
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.brand h1,
.brand p {
  margin: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.brand h1 {
  font-size: 16px;
  line-height: 1.18;
}

.brand p {
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.35;
}

.review-shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 32px 20px;
}

.review-record-footer {
  padding-bottom: 0;
}

.review-card {
  width: min(460px, 100%);
  padding: 34px 28px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.review-logo-wrap {
  width: 90px;
  height: 90px;
  padding: 8px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.review-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1d4ed8;
  font-size: 12px;
}

.review-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
  color: #0f172a;
}

.review-link {
  min-width: 168px;
  text-decoration: none;
  justify-content: center;
}

.brand-logo-wrap {
  width: 48px;
  height: 48px;
  padding: 3px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.nav {
  display: grid;
  gap: 8px;
}

.guest-sidebar-panel {
  display: grid;
  gap: 10px;
  padding: 16px 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.18);
}

.guest-sidebar-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.guest-sidebar-panel h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: #f8fafc;
}

.guest-sidebar-panel p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.7;
}

.guest-sidebar-list-panel {
  gap: 0;
  padding: 8px 0;
}

.guest-sidebar-list {
  display: grid;
}

.guest-sidebar-list-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
}

.guest-sidebar-list-item + .guest-sidebar-list-item {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.guest-sidebar-list-item strong {
  font-size: 14px;
  line-height: 1.4;
  color: #f8fafc;
}

.guest-sidebar-list-item span {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.65;
}

.guest-sidebar-note {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.16);
  color: #cdece8;
  font-size: 12px;
  line-height: 1.7;
}

.nav-item {
  border: 1px solid transparent;
  background: rgba(148, 163, 184, 0.08);
  color: #dbe5f3;
  padding: 12px 14px;
  border-radius: 8px;
  text-align: left;
}

.nav-with-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-indicator {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.nav-item.active {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(96, 165, 250, 0.45);
}

.nav-item.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 14px;
}

.user-chip {
  display: grid;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

.badge.subtle {
  background: #eef4fb;
  color: #516176;
  border-color: #d6e2f1;
}

.main {
  padding: 28px;
  display: grid;
  gap: 20px;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
}

.site-record-footer {
  display: flex;
  justify-content: center;
  padding: 0 8px 12px;
}

.site-record-footer-inner {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.site-record-link {
  color: #475569;
  text-decoration: none;
}

.site-record-link:hover {
  color: #1d4ed8;
}

.site-record-placeholder {
  color: #94a3b8;
}

.auth-shell,
.app-shell {
  display: grid;
  gap: 20px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.topbar.hidden {
  display: none !important;
}

.topbar h2,
.topbar p {
  margin: 0;
}

.topbar h2 {
  font-size: 28px;
}

.topbar p {
  margin-top: 8px;
  color: var(--muted);
}

.mobile-nav-bar {
  display: none;
}

.mobile-nav-dock {
  display: grid;
  justify-items: end;
}

.mobile-nav-toggle,
.mobile-nav-item {
  font: inherit;
}

.mobile-nav-kicker {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  line-height: 1;
  color: #64748b;
  font-weight: 700;
}

.mobile-nav-toggle {
  width: auto;
  min-width: 156px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  text-align: left;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.4), 0 0 0 5px rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.mobile-nav-toggle strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.mobile-nav-caret {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 14px;
  transition: transform 0.18s ease;
  flex: 0 0 auto;
}

.mobile-nav-toggle.open .mobile-nav-caret {
  transform: rotate(180deg);
}

.mobile-nav-menu {
  margin-top: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  border: 1px solid #d9e4f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
}

.mobile-nav-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #e0e8f3;
  border-radius: 9px;
  background: #f8fbff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.mobile-nav-item.active {
  border-color: rgba(37, 99, 235, 0.38);
  background: #eaf3ff;
  color: #1d4ed8;
}

.mobile-nav-item-logout {
  grid-column: 1 / -1;
  justify-content: center;
  background: #fff7f7;
  border-color: #f3d0d0;
  color: #b42318;
  text-align: center;
}

.mobile-nav-item-logout:hover {
  background: #fff1f1;
}

.mobile-nav-item-logout-copy {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 2px;
  justify-items: center;
}

.mobile-nav-item-logout-copy strong {
  font-size: 13px;
  line-height: 1.2;
}

.mobile-nav-item-logout-copy small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  color: rgba(180, 35, 24, 0.76);
}

.mobile-nav-item em {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  flex: 0 0 auto;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.checkbox-inline input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.auth-panel {
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.auth-brand-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #d7e1cf;
  border-radius: 12px;
  padding: 16px 20px;
  background:
    radial-gradient(circle at top right, rgba(250, 222, 133, 0.26), transparent 34%),
    linear-gradient(135deg, #123b31 0%, #0f5145 42%, #0f172a 100%);
  color: #f8fafc;
}

.auth-brand-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.auth-brand-hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.auth-brand-logo-wrap {
  width: 100px;
  height: 100px;
  padding: 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
}

.auth-brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

.auth-brand-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.auth-brand-copy h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  color: #fff7dd;
}

.auth-brand-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #eff6ff;
}

.auth-brand-description {
  margin: 0;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.62;
  color: rgba(241, 245, 249, 0.86);
}

.auth-brand-support {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(220, 238, 231, 0.82);
}

.forgot-success-card {
  border: 1px solid #b7e4c7;
  background: #f0fdf4;
  border-radius: 10px;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}

.forgot-success-card.hidden {
  display: none;
}

.forgot-success-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #166534;
}

.forgot-success-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.forgot-success-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #15803d;
  flex: 0 0 auto;
}

.forgot-success-icon svg {
  width: 18px;
  height: 18px;
}

.forgot-success-email {
  font-size: 13px;
  color: #15803d;
}

.forgot-success-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #166534;
}

.forgot-success-sent-at {
  font-size: 12px;
  line-height: 1.6;
  color: #16a34a;
}

.forgot-success-mail-hint {
  font-size: 13px;
  line-height: 1.7;
  color: #15803d;
}

.forgot-success-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}

.auth-header-copy {
  min-width: 0;
}

.auth-header h3,
.section-head h3 {
  margin: 0;
  font-size: 18px;
}

.auth-header p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  margin-top: -2px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
  background: #edf2f8;
  padding: 4px;
  border-radius: 8px;
}

.segment {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.segment.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.segment input[type="radio"] {
  display: none;
}

.form-grid,
.filter-grid {
  display: grid;
  gap: 14px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.confidential-filter-grid {
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 0.8fr)) auto;
  align-items: end;
  margin-bottom: 0;
}

.form-grid label,
.filter-grid label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.full-span {
  grid-column: 1 / -1;
}

.checkbox-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--text) !important;
}

.checkbox-inline input[type="checkbox"] {
  width: auto;
}

.confidential-filter-mine {
  align-self: end;
  min-height: 42px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.primary-btn,
.secondary-btn,
.text-btn,
.icon-btn {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  padding: 0 16px;
}

.primary-btn:hover {
  background: var(--primary-strong);
}

.secondary-btn {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
  padding: 0 16px;
}

.text-btn {
  background: transparent;
  color: var(--primary);
  border: 0;
  min-height: auto;
  padding: 0;
}

.him-desktop-temporal-picker {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  background: #ffffff;
}

.him-picker-date,
.him-picker-month {
  width: 320px;
}

.him-picker-datetime-local {
  width: 340px;
}

.him-picker-time {
  width: 260px;
}

.flatpickr-him-header {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px 6px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.95);
  background: rgba(248, 250, 252, 0.72);
}

.flatpickr-him-title {
  font-size: 13px;
  line-height: 1.2;
  color: #334155;
  font-weight: 700;
}

.him-desktop-temporal-picker .flatpickr-months {
  padding-top: 2px;
}

.him-picker-datetime-local .flatpickr-months,
.him-picker-date .flatpickr-months,
.him-picker-month .flatpickr-months {
  padding-top: 6px;
}

.him-desktop-temporal-picker .flatpickr-current-month {
  padding-top: 2px;
}

.him-desktop-temporal-picker .flatpickr-current-month .flatpickr-monthDropdown-months,
.him-desktop-temporal-picker .flatpickr-current-month input.cur-year {
  font-weight: 700;
}

.him-desktop-temporal-picker .flatpickr-day.selected,
.him-desktop-temporal-picker .flatpickr-day.startRange,
.him-desktop-temporal-picker .flatpickr-day.endRange,
.him-desktop-temporal-picker .flatpickr-day.selected.inRange,
.him-desktop-temporal-picker .flatpickr-day.startRange.inRange,
.him-desktop-temporal-picker .flatpickr-day.endRange.inRange {
  background: #2563eb;
  border-color: #2563eb;
}

.him-desktop-temporal-picker .flatpickr-time input:hover,
.him-desktop-temporal-picker .flatpickr-time .flatpickr-am-pm:hover,
.him-desktop-temporal-picker .numInputWrapper:hover {
  background: rgba(37, 99, 235, 0.06);
}

.him-desktop-temporal-picker .flatpickr-time {
  border-top-color: rgba(226, 232, 240, 0.9);
  min-height: 44px;
  margin-top: 6px;
  background: rgba(248, 250, 252, 0.82);
}

.him-picker-datetime-local .flatpickr-innerContainer {
  padding-bottom: 4px;
}

.him-picker-datetime-local .flatpickr-days {
  border-bottom: 1px solid rgba(241, 245, 249, 0.95);
}

.him-picker-datetime-local .flatpickr-time {
  padding-top: 6px;
}

.him-picker-datetime-local .flatpickr-time .numInputWrapper {
  border-radius: 8px;
  overflow: hidden;
}

.him-picker-time .flatpickr-time {
  min-height: 52px;
  margin-top: 2px;
  padding: 8px 6px 0;
}

.him-picker-time .flatpickr-time .numInputWrapper {
  border-radius: 8px;
  overflow: hidden;
}

.him-desktop-temporal-picker .flatpickr-monthSelect-month {
  border-radius: 8px;
  border-color: rgba(219, 228, 239, 0.9);
  min-height: 34px;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.him-desktop-temporal-picker .flatpickr-monthSelect-month.selected,
.him-desktop-temporal-picker .flatpickr-monthSelect-month.startRange,
.him-desktop-temporal-picker .flatpickr-monthSelect-month.endRange {
  background: #2563eb;
  border-color: #2563eb;
}

.him-picker-month .flatpickr-months {
  margin-bottom: 2px;
}

.him-picker-month .flatpickr-innerContainer {
  padding: 0 10px 0;
}

.him-picker-month .flatpickr-days {
  width: 100%;
}

.him-picker-month .monthSelector {
  gap: 6px;
}

.him-picker-month .flatpickr-monthSelect-months {
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.him-picker-month .flatpickr-monthSelect-month {
  width: 100%;
  margin: 0;
}

.flatpickr-him-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.92);
}

.him-picker-date .flatpickr-him-actions,
.him-picker-month .flatpickr-him-actions,
.him-picker-time .flatpickr-him-actions {
  min-height: 46px;
}

.him-picker-date .flatpickr-him-header,
.him-picker-month .flatpickr-him-header {
  background: rgba(248, 250, 252, 0.64);
}

.flatpickr-him-action {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 14px;
  line-height: 1.2;
  padding: 4px 6px;
  cursor: pointer;
}

.flatpickr-him-confirm {
  margin-left: auto;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.96);
  color: #334155;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.flatpickr-him-confirm:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #ffffff;
}

.flatpickr-him-clear:hover {
  color: #1d4ed8;
}

.icon-btn {
  background: #fff;
  border-color: var(--line);
  width: 40px;
  padding: 0;
}

.small {
  min-height: 34px;
  font-size: 14px;
}

.full-width {
  width: 100%;
}

.view {
  display: grid;
  gap: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

#dashboard-view {
  gap: 18px;
}

#dashboard-view .dashboard-role-hero {
  padding: 18px 20px;
  border-color: #dfe7f1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

#dashboard-view .dashboard-role-hero::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #0f766e 100%);
  opacity: 0.82;
}

.dashboard-role-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.dashboard-role-copy {
  display: grid;
  gap: 8px;
}

.dashboard-role-copy h3,
.dashboard-role-copy p {
  margin: 0;
}

.dashboard-role-copy h3 {
  font-size: 22px;
  line-height: 1.25;
}

.dashboard-role-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 760px;
}

.dashboard-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

#dashboard-view .stats-grid {
  gap: 14px;
}

#dashboard-view .stat-card,
#dashboard-view .dashboard-grid > .card {
  border-color: #dfe7f1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

#dashboard-view .dashboard-grid > .card {
  padding: 18px 20px;
}

#dashboard-view .dashboard-grid > .card::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #0f766e 100%);
  opacity: 0.82;
}

#dashboard-view .section-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

#dashboard-view .section-head h3 {
  font-size: 16px;
}

#dashboard-view .text-btn {
  font-size: 12px;
}

#dashboard-view .dashboard-role-grid {
  align-items: stretch;
}

#dashboard-view .dashboard-role-grid > .card {
  min-height: 280px;
}

.dashboard-audit-card {
  padding: 16px 18px;
  border-color: #dfe7f1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.dashboard-audit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-audit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dashboard-audit-copy {
  display: grid;
  gap: 8px;
}

.dashboard-audit-copy strong {
  font-size: 16px;
  line-height: 1.3;
  color: #0f172a;
}

.dashboard-audit-summary {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.dashboard-audit-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-audit-list {
  margin-top: 12px;
}

.metric-audit-command-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.metric-audit-command-box {
  display: grid;
  gap: 8px;
}

.metric-audit-command-box strong {
  font-size: 13px;
  color: #0f172a;
}

.metric-audit-command-box pre {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #dfe7f1;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.metric-audit-command-box code {
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
}

.metric-audit-list .list-item {
  border-color: #dfe7f1;
  background: #ffffff;
}

.metric-audit-list .item-title {
  font-size: 14px;
}

.metric-audit-list .item-meta {
  font-size: 12px;
  line-height: 1.55;
}

.stat-card {
  background: linear-gradient(160deg, #ffffff, #f3f8fd);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

.stat-card strong {
  font-size: 32px;
}

.clickable-stat {
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.clickable-stat:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
  transform: translateY(-1px);
}

.clickable-stat.active {
  border-color: #93c5fd;
  background: #eff6ff;
}

#dashboard-view .stat-card span {
  font-size: 12px;
  font-weight: 600;
}

#dashboard-view .stat-card strong {
  font-size: 30px;
  line-height: 1.1;
}

.dashboard-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#admin-dashboard-view {
  gap: 16px;
  position: relative;
}

#admin-dashboard-view > .card,
#admin-dashboard-view .dashboard-grid > .card {
  border-color: #dfe7f1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 18px 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

#admin-dashboard-view > .card::before,
#admin-dashboard-view .dashboard-grid > .card::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #0f766e 100%);
  opacity: 0.86;
}

#admin-dashboard-view .section-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

#admin-dashboard-view .section-head h3 {
  font-size: 16px;
  font-weight: 700;
}

#admin-dashboard-view .stats-grid {
  gap: 14px;
}

#admin-dashboard-view .dashboard-grid {
  gap: 14px;
}

#admin-dashboard-view .stat-card {
  padding: 16px 18px;
  gap: 8px;
  border-color: #dfe7f1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

#admin-dashboard-view .stat-card span {
  font-size: 13px;
}

#admin-dashboard-view .stat-card strong {
  font-size: 28px;
}

#admin-dashboard-view .section-head .secondary-btn.small,
#admin-dashboard-view .section-head .text-btn {
  font-size: 12px;
}

#admin-dashboard-view .section-head .secondary-btn.small {
  min-height: 30px;
  padding: 0 12px;
}

#admin-dashboard-view [data-admin-collapse-body] {
  display: grid;
  gap: 10px;
}

#admin-dashboard-view .dashboard-grid .list-stack {
  gap: 10px;
}

#admin-dashboard-view .dashboard-grid .list-item {
  padding: 12px 14px;
  gap: 10px;
  border-radius: 7px;
  border-color: #dfe7f1;
  background: #ffffff;
}

#admin-dashboard-view .dashboard-grid .item-title {
  font-size: 14px;
}

#admin-dashboard-view .dashboard-grid .item-meta {
  font-size: 12px;
  line-height: 1.45;
}

#admin-dashboard-view .dashboard-grid .badge {
  min-height: 22px;
  padding: 0 8px;
  font-size: 10px;
}

#admin-dashboard-view .dashboard-grid .inline-actions {
  gap: 6px;
}

#admin-dashboard-view .filter-grid {
  gap: 12px;
  margin-bottom: 0;
}

#admin-dashboard-view .filter-grid label {
  font-size: 12px;
}

#admin-dashboard-view .filter-grid input,
#admin-dashboard-view .filter-grid select {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
}

#admin-dashboard-view .dashboard-grid .admin-action-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

#admin-dashboard-view .dashboard-grid .admin-action-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

#admin-dashboard-view .dashboard-grid .admin-action-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

#admin-dashboard-view .dashboard-grid .admin-action-title-row .inline-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

#admin-dashboard-view .dashboard-grid .admin-action-summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#admin-dashboard-view .dashboard-grid .admin-action-ops {
  display: grid;
  align-items: center;
}

#admin-dashboard-view .dashboard-grid .admin-action-ops .small {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

#admin-dashboard-view .admin-log-timeline {
  gap: 10px;
}

#admin-dashboard-view .admin-log-item {
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  border-color: #dfe7f1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

#admin-dashboard-view .admin-log-time strong {
  font-size: 11px;
  letter-spacing: 0;
}

#admin-dashboard-view .admin-log-time span,
#admin-dashboard-view .admin-log-detail,
#admin-dashboard-view .admin-log-head .item-meta {
  font-size: 12px;
}

#admin-dashboard-view .admin-release-note-preview {
  gap: 10px;
}

#admin-dashboard-view .admin-release-note-layout {
  align-items: start;
}

#admin-dashboard-view .admin-release-note-list-card,
#admin-dashboard-view .admin-release-note-editor-card {
  gap: 12px;
}

#admin-dashboard-view .admin-release-note-toolbar {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #f8fbff;
}

#admin-dashboard-view .admin-release-note-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

#admin-dashboard-view .admin-release-note-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#admin-dashboard-view .admin-release-note-filter-group .secondary-btn.small {
  min-width: 74px;
  justify-content: center;
}

#admin-dashboard-view .admin-release-note-filter-group .secondary-btn.small.active {
  background: #e8f0ff;
  border-color: #bfd4ff;
  color: #1d4ed8;
}

#admin-dashboard-view .admin-release-note-filter-summary {
  font-size: 12px;
}

#admin-dashboard-view .admin-release-note-current-card {
  gap: 12px;
  border-color: #d7e4f7;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.05);
}

#admin-dashboard-view .admin-release-note-current-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

#admin-dashboard-view .admin-release-note-current-title-block {
  display: grid;
  gap: 4px;
}

#admin-dashboard-view .admin-release-note-current-title-block strong {
  font-size: 15px;
  line-height: 1.35;
  color: #1f2f45;
}

#admin-dashboard-view .admin-release-note-current-label {
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

#admin-dashboard-view .admin-release-note-current-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

#admin-dashboard-view .admin-release-note-history {
  gap: 8px;
}

#admin-dashboard-view .admin-release-note-history-item {
  text-align: left;
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #dfe7f1;
  border-radius: 7px;
  padding: 12px 13px;
  display: grid;
  gap: 6px;
}

#admin-dashboard-view .admin-release-note-history-item.active {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

#admin-dashboard-view .admin-release-note-history-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

#admin-dashboard-view .admin-release-note-preview-card {
  gap: 12px;
  border-color: #dfe7f1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

#admin-dashboard-view .admin-release-note-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

#admin-dashboard-view .admin-release-note-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#admin-dashboard-view .admin-release-note-preview-list {
  display: grid;
  gap: 8px;
}

#admin-dashboard-view .admin-release-note-preview-line {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #243246;
  font-size: 13px;
  line-height: 1.6;
}

#admin-dashboard-view .admin-release-note-preview-index {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}

#admin-dashboard-view .admin-release-note-actions {
  justify-content: space-between;
  align-items: center;
}

#admin-dashboard-view .admin-release-note-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#admin-dashboard-view .admin-release-note-action-hint {
  color: #53657d;
  max-width: 48ch;
}

.split-layout,
.reports-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(640px, 1.16fr);
  gap: 16px;
}

.reports-hub {
  display: grid;
  grid-template-columns: minmax(430px, 0.98fr) minmax(500px, 1.02fr);
  gap: 18px;
  align-items: stretch;
}

.reports-left-rail {
  display: grid;
  gap: 14px;
  align-content: start;
  grid-auto-rows: min-content;
}

.reports-list-card {
  min-height: 360px;
}

#rounds-view .reports-list-card {
  min-height: 480px;
}

#rounds-batches-card {
  min-height: 0;
}

#rounds-batches-card.is-collapsed {
  min-height: 0;
}

#rounds-batches-card .section-head {
  margin-bottom: 12px;
}

#rounds-batches-card.is-collapsed .section-head {
  margin-bottom: 0;
}

.reports-detail-card {
  min-height: 100%;
  align-self: stretch;
}

.reports-workbench {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(560px, 1.08fr);
  gap: 16px;
  align-items: start;
}

.details-panel,
.list-stack,
.definition-list {
  min-height: 240px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.list-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.confidential-toolbar-card {
  display: grid;
  gap: 14px;
}

.confidential-split-layout {
  align-items: start;
}

.confidential-list-stack {
  display: grid;
  gap: 10px;
}

.confidential-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
}

.confidential-list-main,
.confidential-list-side {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.confidential-list-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.confidential-list-topline strong {
  font-size: 14px;
  line-height: 1.3;
  color: #0f172a;
}

.confidential-list-alias {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: #243246;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.confidential-list-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.confidential-list-side {
  justify-items: end;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.admin-user-management-panel {
  display: grid;
  gap: 12px;
}

.admin-user-toolbar {
  display: grid;
  gap: 14px;
}

.admin-user-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(108px, 1fr));
  gap: 10px;
}

.admin-user-summary-card {
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  display: grid;
  gap: 4px;
}

.admin-user-summary-card span {
  color: var(--muted);
  font-size: 11px;
}

.admin-user-summary-card strong {
  font-size: 20px;
  line-height: 1;
}

.admin-user-searchbar {
  display: grid;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.admin-user-toolbar-top {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(240px, 0.78fr);
  gap: 16px;
  align-items: stretch;
}

.admin-user-toolbar-block-head {
  display: grid;
  gap: 3px;
}

.admin-user-toolbar-block-label {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-user-toolbar-block-caption {
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.admin-user-searchbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.admin-user-search-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-user-search-field {
  display: grid;
  gap: 7px;
}

.admin-user-search-field-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-user-search-field input {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 14px;
  border-color: #cfe0f5;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.admin-user-search-field input:focus {
  border-color: #7cb2ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.admin-user-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.admin-user-visible-meta {
  align-self: center;
  font-size: 12px;
  color: #52627a;
}

.admin-user-visible-meta strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
}

.admin-user-visible-separator {
  display: inline-block;
  width: 1px;
  height: 13px;
  margin: 0 10px;
  vertical-align: -2px;
  background: #cfdbea;
}

.admin-user-toolbar-meta-note {
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

.admin-user-toolbar-action-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px 14px 13px;
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-user-toolbar-action-meta {
  display: grid;
  gap: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.admin-user-filter-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.admin-user-filter-block {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 12px 12px 11px;
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  background: #ffffff;
}

.admin-user-filter-head {
  display: grid;
  gap: 4px;
}

.admin-user-filter-label {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-user-filter-caption {
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.admin-user-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}

.admin-user-toolbar-actions {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: stretch;
  min-width: 0;
}

.admin-user-filter-group .secondary-btn.small,
.active-filter {
  min-height: 32px;
  padding: 0 12px;
  font-size: 11px;
  border-radius: 11px;
}

.admin-user-toolbar-actions .small {
  min-height: 42px;
  padding: 0 14px;
  font-size: 13px;
}

.active-filter {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-user-guidance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-user-guidance-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  min-width: 0;
  min-height: 88px;
  padding: 12px 13px 11px;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  overflow: hidden;
}

.admin-user-guidance-card strong {
  color: #334155;
  font-size: 12px;
  line-height: 1.25;
}

.admin-user-guidance-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.admin-user-guidance-card span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-guidance-detail-btn {
  min-height: auto;
  padding: 0;
  font-size: 11px;
  color: #1d4ed8;
  white-space: nowrap;
}

.admin-user-guidance-card.is-risk {
  border-color: #fecdd3;
  background: linear-gradient(180deg, #ffffff 0%, #fff6f7 100%);
}

.admin-user-guidance-card.is-risk strong {
  color: #9f1239;
}

.admin-user-list {
  display: grid;
  gap: 6px;
}

.admin-user-list-table {
  display: grid;
  gap: 10px;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 10px 10px 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 1px 0 rgba(148, 163, 184, 0.03);
}

.admin-user-list-header {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 12px;
  padding: 1px 12px 9px;
  border-bottom: 1px solid rgba(223, 231, 241, 0.88);
  color: #6a7b91;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.list-item.admin-user-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  min-height: 112px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: #dbe4ef;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 1px 0 rgba(148, 163, 184, 0.04);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.list-item.admin-user-row:hover {
  border-color: #d2ddea;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 4px 14px rgba(148, 163, 184, 0.08);
}

.admin-user-row.inactive {
  opacity: 0.78;
  border-color: #e4eaf2;
  background: linear-gradient(180deg, #fcfdff 0%, #f8fafd 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 1px 0 rgba(148, 163, 184, 0.03);
}

.admin-user-row.locked {
  border-color: #e1e7f0;
  background: linear-gradient(180deg, #fcfdff 0%, #f8fbfe 100%);
}

.admin-user-row.locked:hover {
  border-color: #e1e7f0;
  background: linear-gradient(180deg, #fcfdff 0%, #f8fbfe 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 0 rgba(148, 163, 184, 0.03);
}

.admin-user-main {
  min-width: 0;
  display: grid;
  gap: 7px;
  align-content: start;
  overflow: hidden;
}

.admin-user-primary {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-user-system-row-label {
  color: #8b98aa;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 0;
  max-width: 16ch;
}

.admin-user-name-row {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  flex-wrap: wrap;
}

.admin-user-primary .item-title {
  font-size: 15px;
  line-height: 1.25;
}

.admin-user-primary .item-meta {
  font-size: 12px;
  line-height: 1.3;
}

.admin-user-primary .item-title,
.admin-user-primary .item-meta,
.admin-user-secondary span {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.admin-user-secondary {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.admin-user-controls {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(228px, 1.2fr) minmax(140px, 0.62fr) minmax(124px, 0.56fr);
  gap: 12px;
  align-items: start;
}

.admin-user-controls > .message {
  grid-column: 1 / -1;
}

.admin-user-control-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 10px 12px 10px;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 0 rgba(148, 163, 184, 0.03);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.admin-user-control-card:hover {
  border-color: #d5deea;
  background: linear-gradient(180deg, #fcfdff 0%, #ffffff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 14px rgba(148, 163, 184, 0.06);
}

.admin-user-control-card:focus-within {
  border-color: #bdd0ea;
  background: linear-gradient(180deg, #fafdff 0%, #ffffff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 1px rgba(191, 219, 254, 0.38),
    0 10px 22px rgba(59, 130, 246, 0.08);
}

.admin-user-row.locked .admin-user-control-card {
  border-color: #e4eaf2;
  background: linear-gradient(180deg, #fcfdff 0%, #f9fbfe 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 0 rgba(148, 163, 184, 0.02);
}

.admin-user-row.locked .admin-user-control-card:hover,
.admin-user-row.locked .admin-user-control-card:focus-within {
  border-color: #e4eaf2;
  background: linear-gradient(180deg, #fcfdff 0%, #f9fbfe 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 0 rgba(148, 163, 184, 0.02);
}

.admin-user-control-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
  flex-wrap: wrap;
  min-height: 24px;
  padding: 0 0 1px;
  border-bottom: 1px solid rgba(223, 231, 241, 0.78);
}

.admin-user-wecom-badge {
  align-self: flex-start;
  min-height: 24px;
  padding: 0 10px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  margin-top: -1px;
  border-width: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.admin-user-wecom-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.admin-user-wecom-cell.is-bound {
  border-color: #d7e2ef;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 68%, #fdfefe 100%);
}

.admin-user-wecom-cell.is-unbound {
  border-color: #e1e8f1;
  background: linear-gradient(180deg, #fcfdff 0%, #ffffff 100%);
}

.admin-user-wecom-cell.is-bound .admin-user-control-head {
  border-bottom-color: rgba(211, 223, 236, 0.92);
}

.admin-user-wecom-cell.is-unbound .admin-user-control-head {
  border-bottom-color: rgba(223, 231, 241, 0.86);
}

.admin-user-wecom-body {
  padding-top: 3px;
  padding-bottom: 1px;
}

.admin-user-wecom-status-text {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  margin-top: 0;
  color: #8591a2;
  font-size: 11px;
  line-height: 1.2;
  max-width: 23.5ch;
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  column-gap: 6px;
  align-items: start;
  min-width: 0;
  position: relative;
}

.admin-user-wecom-status-text,
.admin-user-locked-text,
.admin-user-action-note {
  display: inline-grid;
  grid-template-columns: 6px minmax(0, 1fr);
  column-gap: 6px;
  align-items: start;
  min-width: 0;
}

.admin-user-wecom-status-text::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-top: 3px;
  justify-self: center;
  border-radius: 999px;
  background: #c1cad6;
}

.admin-user-wecom-status-content {
  min-width: 0;
  display: grid;
  gap: 1px;
  padding-top: 0;
}

.admin-user-action-note-content,
.admin-user-locked-content {
  min-width: 0;
  display: grid;
  gap: 1px;
  padding-top: 0;
}

.admin-user-wecom-status-label {
  color: #9aa6b5;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}

.admin-user-wecom-status-value {
  min-width: 0;
  font-size: 11px;
  line-height: 1.2;
  word-break: break-word;
}

.admin-user-wecom-status-value-text {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
}

.admin-user-wecom-body .admin-user-wecom-editor + .admin-user-wecom-status-text.is-bound {
  margin-top: -1px;
}

.admin-user-wecom-body .admin-user-wecom-editor + .admin-user-wecom-status-text.is-unbound {
  margin-top: -1px;
}

.admin-user-wecom-body .admin-user-wecom-status-text:last-child {
  margin-bottom: 1px;
}

.admin-user-wecom-status-text.is-bound {
  color: #6d7a8c;
  font-weight: 400;
}

.admin-user-wecom-status-text.is-bound::before {
  background: #93a6bc;
}

.admin-user-wecom-status-text.is-bound .admin-user-wecom-status-label {
  color: #8797ab;
}

.admin-user-wecom-status-text.is-bound .admin-user-wecom-status-value {
  color: #4f6076;
  font-weight: 600;
}

.admin-user-wecom-status-text.is-bound .admin-user-wecom-status-value-text {
  padding: 1px 7px 2px;
  border: 1px solid rgba(189, 205, 224, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, #f9fbff 0%, #f3f7fd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10.5px;
  letter-spacing: 0;
  line-height: 1.18;
  word-break: break-all;
}

.admin-user-wecom-status-text.is-unbound {
  color: #939dad;
  font-weight: 400;
}

.admin-user-wecom-status-text.is-unbound::before {
  background: #c9d1dc;
}

.admin-user-wecom-status-text.is-unbound .admin-user-wecom-status-label {
  color: #a4adbb;
}

.admin-user-wecom-status-text.is-unbound .admin-user-wecom-status-value {
  color: #8e98a8;
  font-weight: 440;
}

.admin-user-wecom-status-text.is-unbound .admin-user-wecom-status-value-text {
  display: inline;
}

.admin-user-wecom-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  align-items: center;
}

.admin-user-wecom-field-group {
  padding: 0;
}

.admin-user-wecom-field-label {
  color: #748399;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.admin-user-control-field-label {
  color: #748399;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 0;
}

.admin-user-wecom-cell.is-bound .admin-user-wecom-field-label {
  color: #68788f;
}

.admin-user-wecom-cell.is-unbound .admin-user-wecom-field-label {
  color: #7a8799;
}

.admin-user-wecom-editor input {
  min-width: 0;
  min-height: 34px;
  padding: 8px 11px;
  border-color: #cfdae8;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  font-size: 12px;
}

.admin-user-wecom-editor input::placeholder {
  color: #9aa5b5;
}

.admin-user-wecom-cell.is-bound .admin-user-wecom-editor input {
  border-color: #cad8e8;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.admin-user-wecom-cell.is-unbound .admin-user-wecom-editor input {
  border-color: #d2ddea;
  background: #ffffff;
}

.admin-user-wecom-editor input:focus {
  border-color: #8eb4ee;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
  outline: none;
}

.admin-user-wecom-editor-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.admin-user-wecom-editor-actions .small {
  min-height: 30px;
  padding: 0 10px;
  min-width: 0;
}

.admin-user-wecom-save-btn {
  border-color: #245fce;
  background: linear-gradient(180deg, #2f6ee6 0%, #2563eb 100%);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.14);
}

.admin-user-wecom-save-btn:hover:not([disabled]) {
  border-color: #1f56c2;
  background: linear-gradient(180deg, #285fcc 0%, #1d4ed8 100%);
}

.admin-user-wecom-test-btn {
  border-color: #d9e2ee;
  color: #5f6f85;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-user-wecom-test-btn:hover:not([disabled]) {
  border-color: #c7d5e6;
  color: #475569;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.admin-user-wecom-action-label {
  display: inline-block;
  line-height: 1.12;
  text-align: center;
}

.admin-user-wecom-audit-list {
  max-height: 320px;
  overflow: auto;
  gap: 8px;
}

.admin-user-wecom-audit-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.admin-user-wecom-audit-card .section-head.compact {
  margin-bottom: 0;
  padding-bottom: 8px;
}

.admin-user-wecom-audit-filters {
  justify-content: flex-start;
  padding-top: 0;
  margin-top: -2px;
}

.admin-user-wecom-audit-filters .secondary-btn.small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 9px;
  font-size: 10px;
  border-radius: 999px;
}

.admin-user-wecom-audit-filters .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.admin-user-wecom-audit-filters .secondary-btn.small.active-filter .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: currentColor;
}

.admin-user-wecom-audit-summary-grid {
  min-height: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: -1px;
}

.admin-user-wecom-audit-summary-card {
  min-height: 0;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.admin-user-wecom-audit-summary-card:last-child {
  padding-bottom: 12px;
}

.admin-user-wecom-audit-summary-card span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
}

.admin-user-wecom-audit-summary-card strong {
  font-size: 24px;
  line-height: 1;
  color: #0f172a;
}

.admin-user-wecom-audit-summary-card.tone-success {
  border-color: #b7ebd1;
  background: linear-gradient(180deg, #ffffff 0%, #f2fcf7 100%);
}

.admin-user-wecom-audit-summary-card.tone-success strong {
  color: #047857;
}

.admin-user-wecom-audit-summary-card.tone-failure {
  border-color: #f7c8c8;
  background: linear-gradient(180deg, #ffffff 0%, #fff6f6 100%);
}

.admin-user-wecom-audit-summary-card.tone-failure strong {
  color: #b91c1c;
}

.admin-user-wecom-audit-summary-card.tone-skipped {
  border-color: #bfd7ff;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.admin-user-wecom-audit-summary-card.tone-skipped strong {
  color: #1d4ed8;
}

.admin-user-wecom-audit-actions {
  display: grid;
  gap: 6px;
  justify-items: stretch;
  align-content: start;
  width: 152px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-user-wecom-audit-actions-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.admin-user-wecom-audit-actions .small {
  min-width: 0;
}

.admin-user-wecom-audit-actions .primary-btn.small,
.admin-user-wecom-audit-actions .secondary-btn.small {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 8px;
}

.admin-user-wecom-audit-copy-btn {
  justify-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-top: 1px solid #e8eef5;
  font-size: 11px;
  color: #52627a;
  text-align: center;
}

.admin-user-wecom-audit-copy-btn:hover:not([disabled]) {
  color: #1d4ed8;
}

.admin-user-wecom-audit-toolbar-meta {
  display: grid;
  gap: 3px;
}

.admin-user-wecom-audit-toolbar-meta > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-user-wecom-audit-toolbar-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.admin-user-wecom-audit-toolbar-count strong {
  font-size: 22px;
  line-height: 1;
  color: #0f172a;
}

.admin-user-wecom-audit-toolbar-count em {
  font-style: normal;
  color: #64748b;
  font-size: 12px;
}

.admin-user-wecom-audit-toolbar-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.admin-user-wecom-audit-toolbar-primary,
.admin-user-wecom-audit-toolbar-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-user-wecom-audit-toolbar-secondary {
  gap: 10px;
}

.admin-user-wecom-audit-toolbar-secondary .text-btn.small {
  font-size: 12px;
  color: #475569;
}

.admin-user-wecom-audit-toolbar .primary-btn.small,
.admin-user-wecom-audit-toolbar .secondary-btn.small {
  min-width: 116px;
}

.admin-user-wecom-audit-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 0;
}

.admin-user-wecom-audit-hint {
  margin-top: -2px;
  margin-bottom: -1px;
}

.admin-user-wecom-audit-list .dashboard-list-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
}

.admin-user-wecom-audit-list .dashboard-list-main {
  gap: 3px;
}

.admin-user-wecom-audit-side {
  display: grid;
  gap: 6px;
  justify-items: stretch;
  align-content: start;
}

.admin-user-wecom-audit-list .item-title {
  font-size: 13px;
  line-height: 1.3;
}

.admin-user-wecom-audit-list .item-meta {
  font-size: 12px;
  line-height: 1.45;
}

.admin-user-wecom-audit-list .badge {
  min-height: 22px;
  padding: 0 8px;
  font-size: 10px;
  align-self: start;
  justify-self: end;
}

.admin-user-wecom-audit-toolbar .text-btn.small[disabled],
.admin-user-wecom-audit-actions .text-btn.small[disabled] {
  color: #94a3b8;
  opacity: 0.68;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .admin-user-wecom-audit-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-wecom-audit-list .dashboard-list-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-user-wecom-audit-side {
    width: 100%;
  }

  .admin-user-wecom-audit-actions {
    width: 100%;
  }

  .admin-user-wecom-audit-list .badge {
    justify-self: start;
  }

  .admin-user-wecom-audit-toolbar-actions {
    width: 100%;
    justify-items: stretch;
  }

  .admin-user-wecom-audit-toolbar-primary,
  .admin-user-wecom-audit-toolbar-secondary {
    justify-content: flex-start;
  }
}

.admin-user-role-select,
.admin-user-actions {
  display: grid;
  gap: 5px;
  align-content: start;
  justify-items: stretch;
  min-height: 0;
}

.admin-user-role-select {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.admin-user-actions {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.admin-user-control-body {
  min-width: 0;
  display: grid;
  align-content: start;
  padding-top: 4px;
  padding-bottom: 1px;
}

.admin-user-role-body {
  padding-top: 4px;
  padding-bottom: 1px;
  gap: 4px;
}

.admin-user-action-body {
  padding-top: 4px;
  padding-bottom: 1px;
  gap: 4px;
}

.admin-cell-hint {
  color: #607086;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.admin-role-badge {
  min-height: 21px;
  padding: 0 8px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 700;
}

.admin-status-badge {
  min-height: 21px;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}

.admin-system-lock-badge {
  min-height: 21px;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 650;
  border-width: 1px;
  border-color: #c7daf7;
  background: #f6f9ff;
  color: #4d6f9e;
  opacity: 0.88;
}

@media (max-width: 1180px) {
  .admin-user-row.locked .admin-user-name-row {
    gap: 5px;
  }

  .admin-user-row.locked .admin-user-system-row-label {
    max-width: 14ch;
  }

  .admin-user-row.locked .admin-system-lock-badge {
    padding: 0 6px;
    font-size: 9px;
  }

  .admin-user-wecom-status-text {
    max-width: 100%;
  }

  .admin-user-wecom-status-text.is-bound .admin-user-wecom-status-value-text {
    max-width: 100%;
    padding-inline: 6px;
  }
}

.admin-user-row.locked .admin-user-primary .item-title {
  color: #334155;
}

.admin-user-row.locked .admin-user-system-row-label {
  color: #7f8ea3;
}

.admin-user-row.locked .admin-user-primary .item-meta,
.admin-user-row.locked .admin-user-secondary {
  color: #7b8798;
}

.admin-user-locked-text {
  color: #8f99a8;
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 1px;
  max-width: 20ch;
}

.admin-user-locked-text::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-top: 3px;
  justify-self: center;
  border-radius: 999px;
  background: #c2cad5;
}

.admin-user-locked-label {
  color: #94a2b5;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
}

.admin-user-locked-value {
  color: #7e8c9f;
  font-size: 11px;
  font-weight: 430;
  line-height: 1.22;
}

.admin-user-wecom-body .admin-user-locked-text {
  margin-top: 2px;
}

.admin-user-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin-bottom: 0;
  padding-top: 0;
}

.admin-user-action-note {
  color: #9aa4b2;
  font-size: 11px;
  line-height: 1.2;
  max-width: 20ch;
  margin-top: 1px;
}

.admin-user-action-note::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-top: 3px;
  justify-self: center;
  border-radius: 999px;
  background: #c4ccd8;
}

.admin-user-action-note-label {
  color: #97a3b2;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
}

.admin-user-action-note-value {
  color: inherit;
  font-size: 11px;
  font-weight: 430;
  line-height: 1.22;
}

.admin-user-action-note.is-active {
  color: #96a1b0;
}

.admin-user-action-note.is-active::before {
  background: #c2cad6;
}

.admin-user-action-note.is-inactive {
  color: #8f99a8;
}

.admin-user-action-note.is-inactive::before {
  background: #b6c2cf;
}

.admin-user-action-note.is-active .admin-user-action-note-label {
  color: #97a3b1;
}

.admin-user-action-note.is-inactive .admin-user-action-note-label {
  color: #9ba6b4;
}

.admin-user-actions .small,
.admin-user-role-select select {
  width: 100%;
  min-height: 30px;
  font-size: 11px;
}

.admin-user-role-select select {
  padding: 7px 9px;
  border-color: #cfdae8;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  margin-top: 0;
}

.admin-user-role-select select:focus {
  border-color: #8eb4ee;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
  outline: none;
}

.admin-user-actions .primary-btn.small,
.admin-user-actions .secondary-btn.small {
  min-height: 29px;
  border-radius: 9px;
}

.admin-user-actions .primary-btn.small {
  border-color: #245fce;
  background: linear-gradient(180deg, #2f6ee6 0%, #2563eb 100%);
  box-shadow: 0 7px 14px rgba(37, 99, 235, 0.12);
}

.admin-user-actions .primary-btn.small:hover:not([disabled]) {
  border-color: #1f56c2;
  background: linear-gradient(180deg, #285fcc 0%, #1d4ed8 100%);
}

.admin-user-actions .secondary-btn.small {
  border-color: #d9e2ee;
  color: #5f6f85;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-user-actions .secondary-btn.small:hover:not([disabled]) {
  border-color: #c7d5e6;
  color: #475569;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.admin-user-actions .secondary-btn.small.success-action {
  border-color: #c6ead9;
  color: #0f766e;
  background: linear-gradient(180deg, #f7fffb 0%, #ecfdf5 100%);
}

.admin-user-actions .secondary-btn.small.success-action:hover:not([disabled]) {
  border-color: #aadfc8;
  color: #0f766e;
  background: linear-gradient(180deg, #f2fdf8 0%, #e5fbf1 100%);
}

.admin-user-actions .secondary-btn.small.danger-action {
  border-color: #f6d2d8;
  color: #b4233f;
  background: linear-gradient(180deg, #fff8f9 0%, #fff1f2 100%);
}

.admin-user-actions .secondary-btn.small.danger-action:hover:not([disabled]) {
  border-color: #efb9c3;
  color: #9f1239;
  background: linear-gradient(180deg, #fff4f6 0%, #ffe9ed 100%);
}

.admin-user-inline-message {
  margin-top: -1px;
}

.admin-user-inline-message.hidden {
  display: none !important;
}

.admin-user-empty-state {
  gap: 6px;
  min-height: 180px;
  padding: 36px 16px;
  border: 1px dashed #d5e1ee;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.admin-user-empty-state strong {
  color: #334155;
  font-size: 15px;
  line-height: 1.2;
}

.admin-user-empty-title {
  margin: 0;
}

.admin-user-empty-state span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  max-width: 420px;
}

.admin-user-duplicate-list {
  gap: 8px;
}

.admin-user-duplicate-item {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
}

.admin-user-duplicate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-user-duplicate-members {
  display: grid;
  gap: 6px;
}

.admin-user-duplicate-member {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.admin-user-duplicate-toggle {
  justify-self: start;
  min-height: auto;
  padding: 0;
  font-size: 11px;
  color: #1d4ed8;
}

.admin-user-duplicate-toggle:hover {
  color: #1e40af;
}

.danger-action {
  border-color: #fecdd3;
  color: #be123c;
  background: #fff1f2;
}

.success-action {
  border-color: #a7f3d0;
  color: #047857;
  background: #ecfdf5;
}

.admin-log-timeline {
  display: grid;
  gap: 8px;
}

.admin-log-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdff;
}

.admin-log-time {
  display: grid;
  gap: 3px;
  align-content: start;
}

.admin-log-time strong {
  font-size: 12px;
  line-height: 1.35;
}

.admin-log-time span {
  color: var(--muted);
  font-size: 11px;
}

.admin-log-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-log-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}

.admin-log-detail {
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.report-list-table {
  display: grid;
  gap: 8px;
}

.profile-list-table {
  display: grid;
  gap: 8px;
}

.report-list-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  padding: 0 10px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.profile-list-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  gap: 12px;
  padding: 0 10px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
  display: grid;
  gap: 8px;
}

.dashboard-list-item {
  padding: 12px 14px;
  border-color: #dfe7f1;
  background: #ffffff;
}

.dashboard-list-main {
  display: grid;
  gap: 4px;
}

.report-list-item {
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: start;
  padding: 8px 10px;
  gap: 12px;
  text-align: left;
}

.profile-list-item {
  grid-template-columns: minmax(0, 1fr) 164px;
  align-items: start;
  padding: 8px 10px;
  gap: 12px;
}

.profile-list-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-list-side {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.profile-list-title {
  min-width: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
}

.profile-list-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.profile-list-subtitle {
  color: #475569;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-list-badges {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
}

.profile-contact-badge {
  min-height: 20px;
  padding: 0 8px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-list-main,
.report-list-mainline {
  min-width: 0;
}

.record-list-table {
  display: grid;
  gap: 10px;
}

.record-list-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.report-list-main {
  display: grid;
  gap: 4px;
}

.report-list-title {
  min-width: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
}

.report-list-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-list-date {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.report-assignee-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 2px;
  color: #516071;
  font-size: 12px;
  line-height: 1.35;
}

.report-assignee-label {
  display: inline;
}

.report-assignee-name {
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap;
  word-break: keep-all;
  color: #475569;
}

.report-list-badges {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
}

.report-assignment-badge,
.report-status-badge,
.report-mode-badge {
  font-weight: 700;
  border: 1px solid transparent;
  min-height: 20px;
  padding: 0 7px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  justify-self: end;
  flex: 1 1 0;
  min-width: 0;
}

.report-assignment-badge {
  flex: 0 0 auto;
}

.report-list-item .item-row,
.profile-list-item .item-row {
  align-items: center;
}

.reports-left-rail > .card,
.reports-detail-card {
  border-color: #dfe7f1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.record-list-item {
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: start;
  padding: 8px 10px;
  gap: 12px;
  text-align: left;
}

.reports-left-rail > .card::before,
.reports-detail-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #0f766e 100%);
  opacity: 0.82;
}

.reports-left-rail > .card .section-head,
.reports-detail-card .section-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.reports-left-rail > .card .section-head h3,
.reports-detail-card .section-head h3 {
  font-size: 16px;
}

.reports-left-rail > .card {
  padding: 18px 20px;
}

.reports-detail-card {
  padding: 18px 20px;
}

.reports-list-card .report-list-table {
  gap: 10px;
}

.reports-list-card .report-list-header {
  padding: 0 10px 8px;
}

.reports-list-card .report-list-item {
  min-height: 60px;
}

.list-item.active {
  border-color: #60a5fa;
  background: #eff6ff;
}

.item-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.item-title {
  font-weight: 600;
  line-height: 1.35;
}

.item-meta {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-task-item {
  padding: 12px 14px;
  gap: 6px;
  border-color: #dfe7f1;
  background: #ffffff;
}

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

.dashboard-task-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dashboard-task-copy .item-title,
.dashboard-task-copy .item-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-task-copy .item-title {
  font-size: 14px;
}

.dashboard-task-copy .item-meta {
  font-size: 12px;
}

.dashboard-task-badges {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}

.empty-state {
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 32px 12px;
  text-align: center;
}

.message {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid var(--line);
}

.message.success {
  background: #ecfdf5;
  border-color: #9fe3c1;
  color: #0f5132;
}

.message.error {
  background: #fff1f2;
  border-color: #f4b3bd;
  color: var(--danger);
}

.message.subtle {
  background: #f8fbff;
  color: var(--muted);
}

.message.inline-hint-success {
  padding: 8px 10px;
  border-color: #e2e8f0;
  background: #f7f9fc;
  color: #64748b;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.message.warning {
  background: #fff8eb;
  border-color: #f1d39a;
  color: #8a5b12;
}

.signature-editor {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.signature-editor-head h4,
.signature-editor-head p {
  margin: 0;
}

.signature-editor-head h4 {
  font-size: 16px;
}

.signature-editor-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.signature-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.signature-preview-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, #f8fbff 25%, transparent 25%, transparent 75%, #f8fbff 75%, #f8fbff 100%),
    linear-gradient(45deg, #f8fbff 25%, transparent 25%, transparent 75%, #f8fbff 75%, #f8fbff 100%);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  padding: 14px;
  min-height: 280px;
  display: grid;
  place-items: center;
}

#signature-preview-canvas {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 240px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
}

.signature-editor-controls {
  display: grid;
  gap: 14px;
}

.crop-grid {
  display: grid;
  gap: 12px;
}

.crop-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.crop-grid input[type="range"] {
  padding: 0;
  border: 0;
  background: transparent;
}

.signature-editor-meta {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.definition-list {
  display: grid;
  gap: 12px;
}

.settings-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.settings-panel-inner {
  display: grid;
  gap: 12px;
  align-content: start;
}

.settings-panel-password {
  grid-column: 1 / -1;
}

.settings-panel-head {
  min-height: 36px;
  align-items: center;
  margin-bottom: 0;
}

.settings-panel-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 132px;
}

.settings-panel-head-placeholder {
  display: inline-block;
  width: 132px;
  height: 36px;
}

.settings-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.account-profile-shell {
  display: grid;
  gap: 12px;
  align-content: start;
}

.account-profile-shell-head {
  margin-bottom: 0;
}

.account-profile-hero {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.account-profile-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-profile-name {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.account-profile-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.account-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.account-profile-meta-item {
  display: grid;
  gap: 4px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid #dde6f1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.account-profile-meta-item span {
  font-size: 11px;
  line-height: 1.15;
  color: #6f7f93;
  font-weight: 700;
}

.account-profile-meta-item strong {
  font-size: 15px;
  line-height: 1.28;
  color: #243246;
  font-weight: 700;
  word-break: break-word;
}

.account-profile-badges .badge,
.signature-profile-badges .badge {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.signature-profile-hero {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.signature-profile-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.signature-profile-name {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.signature-profile-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.signature-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.password-profile-hero {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.password-profile-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.password-profile-hero-top > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.password-profile-name {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.password-profile-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.password-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.password-profile-badges .badge {
  white-space: nowrap;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.account-profile-hero,
.signature-profile-hero,
.password-profile-hero {
  color: #2c3a4e;
}

.account-summary-card {
  min-height: 0;
}

.account-profile-form {
  align-content: start;
}

.password-settings-form {
  align-content: start;
  grid-template-columns: repeat(2, minmax(220px, 420px));
  justify-content: start;
  gap: 12px 28px;
}

.password-settings-form label {
  max-width: 420px;
}

.password-settings-form input {
  min-height: 44px;
  padding: 9px 12px;
}

.password-settings-form .inline-actions {
  justify-content: flex-start;
}

.password-settings-form .primary-btn {
  min-width: 120px;
  min-height: 38px;
  padding: 0 18px;
}

.settings-grid > .card {
  border-color: #dfe7f1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 18px 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.settings-grid > .card::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #0f766e 100%);
  opacity: 0.86;
}

.settings-grid > .card .section-head h3 {
  font-size: 16px;
  font-weight: 700;
}

.settings-panel-account .account-profile-shell,
.settings-panel-signature .settings-panel-inner,
.settings-panel-password .settings-panel-inner {
  gap: 12px;
}

.settings-panel .inline-actions {
  gap: 10px;
  align-items: center;
}

.settings-panel .inline-actions.full-span {
  padding-top: 2px;
}

.settings-panel .primary-btn,
.settings-panel .secondary-btn {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.settings-panel .primary-btn {
  min-width: 124px;
}

.settings-panel .primary-btn.small,
.settings-panel .secondary-btn.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.settings-panel-head .secondary-btn.small {
  min-width: 132px;
  justify-content: center;
}

.settings-panel .message {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 11px 13px;
  box-sizing: border-box;
}

.settings-panel .message.subtle {
  display: grid;
  gap: 4px;
}

#wecom-settings-card,
#account-profile-message,
#signature-message,
#change-password-message {
  align-self: stretch;
}

#wecom-settings-card + .inline-actions,
.settings-panel-password .inline-actions,
.settings-panel-signature .inline-actions {
  width: 100%;
}

.settings-panel-account .account-summary-card,
.settings-panel-signature .signature-profile-hero,
.settings-panel-password .password-profile-hero {
  margin-top: 0;
}

.profile-deep-layout {
  display: grid;
  gap: 16px;
}

.confidential-detail-layout {
  gap: 14px;
}

.profile-identity-card {
  background: linear-gradient(180deg, #fbfdff 0%, #f6fbff 100%);
}

.confidential-identity-card {
  background: linear-gradient(180deg, #fcfdff 0%, #f5f9ff 100%);
}

.profile-identity-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-identity-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.profile-identity-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-identity-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-launch-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.confidential-status-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.confidential-status-step {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: #fbfdff;
}

.confidential-status-step span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.confidential-status-step strong {
  font-size: 12px;
  line-height: 1.4;
  color: #475569;
}

.confidential-status-step.done,
.confidential-status-step.active {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.confidential-status-step.done span,
.confidential-status-step.active span {
  background: #2563eb;
  color: #ffffff;
}

.confidential-status-step.active strong {
  color: #1d4ed8;
}

.confidential-detail-actions {
  margin-top: 10px;
}

.confidential-package-summary {
  display: grid;
  gap: 10px;
}

.confidential-package-list {
  display: grid;
  gap: 10px;
}

.confidential-package-item {
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fbfdff;
}

.confidential-package-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #0f172a;
}

.confidential-package-item .item-meta + .item-meta {
  margin-top: 4px;
}

.confidential-online-notice {
  display: grid;
  gap: 10px;
}

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

.confidential-action-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.confidential-action-toolbar .small {
  min-height: 30px;
}

.confidential-card-note {
  font-size: 12px;
  line-height: 1.55;
}

.confidential-timeline-card,
.confidential-audit-card,
.confidential-placeholder-card {
  display: grid;
  gap: 10px;
}

.confidential-timeline-card .timeline-list,
.confidential-audit-card .timeline-list {
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.confidential-mini-list {
  display: grid;
  gap: 10px;
}

.confidential-mini-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: #fbfdff;
}

.confidential-mini-item strong {
  font-size: 13px;
  line-height: 1.45;
  color: #0f172a;
}

.confidential-mini-item .item-meta {
  display: block;
}

.confidential-mini-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.confidential-audit-panel {
  margin-top: 14px;
}

.confidential-audit-panel .timeline-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.confidential-timeline-item .timeline-content,
.confidential-audit-item .timeline-content {
  gap: 4px;
}

.confidential-timeline-item .timeline-content em,
.confidential-audit-item .timeline-content em {
  font-style: normal;
  color: #334155;
  font-size: 12px;
  line-height: 1.55;
}

.confidential-report-board {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.confidential-report-board .inline-actions {
  flex-wrap: wrap;
}

.confidential-flow-overview-card {
  margin-top: 14px;
}

.confidential-overview-tile {
  display: grid;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.confidential-overview-tile .confidential-overview-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.confidential-overview-tile strong {
  font-size: 24px;
  line-height: 1;
}

.confidential-overview-dual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: #fbfdff;
  font-size: 11px;
  line-height: 1.35;
  color: #334155;
}

.confidential-overview-dual.subtle {
  background: #f8fbff;
  color: #64748b;
}

.confidential-overview-dual b {
  font-size: 13px;
  color: #0f172a;
}

.confidential-placeholder-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.confidential-placeholder-board {
  display: grid;
  gap: 10px;
}

.confidential-report-group {
  display: grid;
  gap: 10px;
}

.confidential-report-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.confidential-report-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.confidential-report-group-toggle::before {
  content: "▾";
  font-size: 12px;
  color: #64748b;
}

.confidential-report-group.collapsed .confidential-report-group-toggle::before {
  content: "▸";
}

.confidential-report-group-head strong {
  font-size: 13px;
  line-height: 1.35;
  color: #0f172a;
}

.confidential-report-group-list {
  display: grid;
  gap: 10px;
}

.confidential-report-group.collapsed .confidential-report-group-list,
.confidential-report-group.collapsed .empty-state {
  display: none;
}

.confidential-report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: #fbfdff;
}

.confidential-report-row-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.confidential-report-row-title {
  font-size: 14px;
  line-height: 1.42;
  font-weight: 700;
  color: #0f172a;
}

.confidential-report-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.confidential-report-row-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.confidential-report-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.confidential-flow-action-modal-card {
  width: min(640px, 100%);
}

.confidential-package-preview-panel {
  display: grid;
  gap: 12px;
}

.confidential-package-preview-body {
  display: grid;
  gap: 10px;
}

.confidential-package-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.confidential-package-preview-line {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: #fbfdff;
}

.confidential-package-preview-line span {
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted);
  font-weight: 600;
}

.confidential-package-preview-line strong {
  font-size: 13px;
  line-height: 1.5;
  color: #0f172a;
  word-break: break-word;
}

.confidential-package-detail-view {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.confidential-package-detail-head {
  align-items: start;
}

.confidential-package-back-btn {
  padding: 0;
  min-height: auto;
  margin-bottom: 8px;
  color: #1d4ed8;
  font-weight: 600;
}

.confidential-package-page {
  display: grid;
  gap: 14px;
}

.confidential-package-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-basics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.profile-basics-grid .definition-item {
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  border-bottom: 0;
}

.profile-basics-grid .definition-item:last-child {
  padding-bottom: 10px;
}

.profile-basics-grid .definition-item span {
  font-size: 12px;
}

.profile-basics-grid .definition-item strong {
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.mini-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
  display: grid;
  gap: 6px;
}

.mini-stat span {
  color: var(--muted);
  font-size: 13px;
}

.mini-stat strong {
  font-size: 24px;
}

.subsection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stack-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfdff;
}

.stack-card h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

.compact-list {
  display: grid;
  gap: 10px;
}

.compact-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
  display: grid;
  gap: 6px;
}

.compact-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.rounds-toolbar-card {
  margin-bottom: 16px;
}

.rounds-toolbar-card .section-head.compact h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  color: #0f172a;
}

.rounds-toolbar-card .section-head.compact .inline-actions {
  gap: 8px;
  align-items: center;
}

.rounds-toolbar-card .section-head.compact .inline-actions {
  padding-top: 1px;
}

.rounds-toolbar-card .section-head.compact .inline-actions .small {
  min-height: 34px;
}

.rounds-reuse-entry-cluster {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  padding-bottom: 1px;
}

.rounds-reuse-entry-hint {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 240px;
  padding-top: 0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.rounds-reuse-entry-hint:not(.is-hidden) {
  color: #8694a7;
}

.rounds-reuse-entry-hint::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.68;
  transform: translateY(1px);
}

.rounds-reuse-entry-hint.is-hidden {
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
}

#rounds-reuse-previous-month-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-inline: 13px 14px;
  border-color: #d8e2ed;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: #334155;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

#rounds-reuse-previous-month-btn.is-unlocking {
  animation: rounds-reuse-entry-unlock 0.5s ease;
}

#rounds-reuse-previous-month-btn.is-ready {
  border-color: #cfdae7;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: #243447;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 0 rgba(148, 163, 184, 0.05);
}

#rounds-reuse-previous-month-btn.is-ready .rounds-reuse-entry-icon {
  color: #62778f;
}

#rounds-reuse-previous-month-btn:hover:not([disabled]) {
  border-color: #c7d5e4;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #1e293b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 0 rgba(148, 163, 184, 0.08);
  transform: translateY(-0.5px);
}

#rounds-reuse-previous-month-btn:hover:not([disabled]) .rounds-reuse-entry-icon {
  color: #516579;
  transform: translateX(0.5px);
}

#rounds-reuse-previous-month-btn:active:not([disabled]) {
  border-color: #bfd0e0;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
  box-shadow: inset 0 1px 2px rgba(148, 163, 184, 0.14);
  transform: translateY(0);
}

#rounds-reuse-previous-month-btn:active:not([disabled]) .rounds-reuse-entry-icon {
  color: #334155;
  transform: translateX(1px) scale(0.98);
}

#rounds-reuse-previous-month-btn:focus-visible {
  outline: none;
  border-color: #9cc3ea;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 3px rgba(148, 163, 184, 0.12);
}

#rounds-reuse-previous-month-btn:focus-visible .rounds-reuse-entry-icon {
  color: #587089;
}

#rounds-reuse-previous-month-btn[disabled] {
  border-color: #e8eef5;
  background: linear-gradient(180deg, #fdfdff 0%, #f9fbfd 100%);
  color: #9aa8b9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  cursor: not-allowed;
  transform: none;
}

#rounds-reuse-previous-month-btn[disabled] .rounds-reuse-entry-icon {
  color: #c7d1dd;
  transform: none;
}

#rounds-reuse-previous-month-btn[disabled] .rounds-reuse-entry-label {
  opacity: 0.78;
}

.rounds-reuse-entry-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex: 0 0 auto;
  opacity: 0.94;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.rounds-reuse-entry-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.rounds-reuse-entry-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: opacity 0.18s ease;
}

@keyframes rounds-reuse-entry-unlock {
  0% {
    border-color: #d8e2ed;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transform: translateY(0);
  }
  45% {
    border-color: #c4d3e3;
    background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.94),
      0 0 0 2px rgba(148, 163, 184, 0.07);
    transform: translateY(-0.5px);
  }
  100% {
    border-color: #cfdae7;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 1px 0 rgba(148, 163, 184, 0.05);
    transform: translateY(0);
  }
}

.rounds-toolbar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  align-items: end;
  padding-top: 10px;
}

.rounds-toolbar-grid label {
  display: grid;
  gap: 5px;
  color: #5b6b7f;
  font-size: 13px;
  font-weight: 600;
}

.rounds-toolbar-grid input,
.rounds-toolbar-grid select {
  min-height: 42px;
  border-color: #d7e1ec;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.rounds-toolbar-grid input:focus,
.rounds-toolbar-grid input:focus-visible,
.rounds-toolbar-grid select:focus,
.rounds-toolbar-grid select:focus-visible {
  outline: none;
  border-color: #c8d8e8;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow:
    0 0 0 3px rgba(148, 163, 184, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#rounds-month-reminder {
  margin-top: 5px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

@keyframes rounds-reminder-complete-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#rounds-month-reminder.message.error {
  border-color: #f2bcc5;
  background: linear-gradient(180deg, #fff5f6 0%, #fff1f2 100%);
}

#rounds-month-reminder.message.success {
  border-color: #a8dbbf;
  background: linear-gradient(180deg, #f1fdf6 0%, #ecfdf5 100%);
}

#rounds-month-reminder.message.rounds-reminder-complete {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-color: #d7e6db;
  background: linear-gradient(180deg, #fafdfb 0%, #f5faf7 100%);
  color: #4f6b59;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  animation: rounds-reminder-complete-fade-in 0.18s ease-out;
}

#rounds-month-reminder.message.rounds-reminder-complete::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 0.48em;
  border-radius: 999px;
  background: #7ca488;
  box-shadow: 0 0 0 2px rgba(124, 164, 136, 0.12);
}

#rounds-month-reminder.message.subtle {
  border-color: #dce7f3;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
}

#rounds-month-reminder.message.warning {
  border-color: #ebd3a1;
  background: linear-gradient(180deg, #fffaf0 0%, #fff8eb 100%);
}

.rounds-assignment-card {
  margin-bottom: 16px;
}

.rounds-assignment-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.rounds-assignment-panel {
  display: grid;
  gap: 10px;
}

.rounds-assignment-panel h4 {
  margin: 0;
  font-size: 14px;
}

.rounds-assignment-toolbar {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.rounds-assignment-toolbar-static {
  gap: 6px;
  align-content: center;
}

.rounds-assignment-toolbar-controls {
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
  min-height: 72px;
  align-content: center;
}

.rounds-assignment-toolbar-head {
  display: grid;
  gap: 4px;
}

.rounds-assignment-toolbar-head h4,
.rounds-assignment-toolbar-head p {
  margin: 0;
}

.rounds-assignment-toolbar-head p {
  font-size: 12px;
  line-height: 1.5;
  color: #62748a;
}

.rounds-assignment-search input {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #ffffff;
  border-color: #d7e2ef;
}

.rounds-assignment-filter-segmented {
  width: fit-content;
  max-width: 100%;
}

.rounds-assignment-filter-segmented .segment {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.rounds-assignment-save-btn {
  min-width: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rounds-assignment-save-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  flex: 0 0 auto;
}

.rounds-assignment-save-btn.is-saved {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.rounds-assignment-save-btn.is-saved::before {
  background: #22c55e;
}

.rounds-assignment-save-btn.is-dirty {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.rounds-assignment-save-btn.is-dirty::before {
  background: #f59e0b;
}

.rounds-assignment-save-btn.is-saving {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.rounds-assignment-save-btn.is-saving::before {
  background: #3b82f6;
}

.rounds-assignment-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding-top: 2px;
}

.rounds-assignment-tools-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.rounds-assignment-tools-meta .badge {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.rounds-assignment-tools-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.rounds-assignment-tools-actions .small {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

.rounds-assignment-tools-actions .secondary-btn {
  border-color: #dbe4ef;
  background: #f8fbff;
}

.rounds-assignment-tools-actions .secondary-btn:hover {
  background: #f1f6fd;
}

.rounds-assignment-tools .secondary-btn.danger-action {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.rounds-status-toolbar .rounds-assignment-tools {
  grid-template-columns: 1fr;
}

.rounds-status-toolbar .rounds-assignment-tools-meta {
  justify-content: flex-start;
}

.rounds-assignment-user-list,
.rounds-assignment-status-list {
  display: grid;
  gap: 8px;
}

.rounds-assignment-user-list {
  max-height: 420px;
  overflow: auto;
  padding: 2px 4px 4px 0;
}

.rounds-assignment-status-list {
  max-height: 420px;
  overflow: auto;
  padding: 2px 4px 4px 0;
}

.rounds-assignment-user-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rounds-assignment-user-item input {
  margin: 2px 0 0;
  flex: 0 0 auto;
  width: auto;
  height: auto;
}

.rounds-assignment-user-body {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.rounds-assignment-user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.rounds-assignment-user-item strong {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  color: #1f2937;
  word-break: break-word;
}

.rounds-assignment-user-role {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 11px;
}

.rounds-assignment-user-subline {
  font-size: 12px;
  line-height: 1.45;
}

.rounds-assignment-status-item {
  gap: 6px;
  padding: 10px 12px;
  min-height: 68px;
  border-color: #dfe7f1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rounds-assignment-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rounds-assignment-status-title-block {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rounds-assignment-status-name {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.rounds-assignment-status-phone {
  font-size: 12px;
  white-space: nowrap;
}

.rounds-assignment-status-subline {
  font-size: 12px;
  line-height: 1.45;
}

.rounds-assignment-user-list .empty-state.compact-empty,
.rounds-assignment-status-list .empty-state.compact-empty {
  margin: 2px 0 4px;
  padding: 12px 10px;
}

.rounds-status-group {
  display: grid;
  gap: 8px;
  padding-top: 2px;
  border: 1px solid #e4ebf5;
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px 8px 10px;
}

.rounds-status-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
  cursor: pointer;
  list-style: none;
}

.rounds-status-group-head::-webkit-details-marker {
  display: none;
}

.rounds-status-group-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rounds-status-group-arrow {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #7b8ba1;
  border-bottom: 1.5px solid #7b8ba1;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-top: -2px;
}

.rounds-status-group[open] .rounds-status-group-arrow {
  transform: rotate(225deg);
  margin-top: 2px;
}

.rounds-status-group-head .item-meta {
  font-size: 11px;
}

.rounds-status-group-list {
  display: grid;
  gap: 8px;
  padding: 2px 0 2px;
}

.assignment-carryover-hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #4f6b92;
}

.grouped-record-list {
  display: grid;
  gap: 12px;
  max-height: 68vh;
  overflow: auto;
  padding-right: 4px;
}

.record-group {
  display: grid;
  gap: 8px;
}

.record-group-collapsible {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px 10px;
  background: #fbfdff;
}

.record-group-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.record-group-summary::-webkit-details-marker {
  display: none;
}

.profile-metric-details {
  border-radius: 10px;
  padding: 0;
}

.profile-metric-summary {
  padding: 12px 14px;
  margin: 0;
}

.profile-metric-details .compact-list {
  padding: 0 14px 14px;
}

.metric-inline-flag {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}

.record-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 2px 2px 0;
}

.record-group-meta {
  color: var(--muted);
  font-size: 12px;
}

.record-group-list {
  display: grid;
  gap: 10px;
}

.record-group-collapsible .record-group-list {
  margin-top: 8px;
}

.compact-empty {
  padding: 18px 10px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 13px;
}

.report-detail-panel {
  min-height: 620px;
  border-color: #dfe7f1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 18px 20px;
}

.section-head.compact {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.report-detail-layout {
  display: grid;
  gap: 12px;
}

.report-section {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.report-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.report-section h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #111827;
}

.report-detail-header {
  display: grid;
  gap: 4px;
}

.report-detail-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.report-detail-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.upload-mode-field {
  display: grid;
  gap: 10px;
}

.field-label {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.upload-mode-segmented {
  width: fit-content;
}

.upload-mode-segmented .segment {
  min-width: 120px;
  font-weight: 600;
}

.inline-hint {
  margin: 0;
}

.report-upload-size-hint {
  margin-top: -2px;
  font-size: 12px;
  line-height: 1.55;
}

.report-upload-toolbelt {
  display: grid;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #dbe6f2;
  border-radius: 10px;
  background: #f8fbff;
}

.report-upload-toolbelt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.report-compression-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.report-compression-toggle input {
  margin: 0;
}

.report-compression-toggle em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #2857a4;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.report-upload-toolbelt-note {
  font-size: 12px;
  line-height: 1.5;
}

.report-compression-preview {
  display: grid;
  gap: 8px;
}

.report-compression-preview-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #ffffff;
}

.report-compression-preview-summary strong {
  font-size: 13px;
  line-height: 1.45;
  color: #111827;
}

.report-compression-preview-summary span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.report-compression-preview.hidden {
  display: none;
}

.report-compression-preview-list {
  display: grid;
  gap: 8px;
}

.report-compression-preview-details {
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #ffffff;
}

.report-compression-preview-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #1f2937;
}

.report-compression-preview-toggle::-webkit-details-marker {
  display: none;
}

.report-compression-preview-toggle::after {
  content: "展开";
  font-size: 11px;
  font-weight: 600;
  color: #5f7288;
}

.report-compression-preview-details[open] .report-compression-preview-toggle::after {
  content: "收起";
}

.report-compression-preview-details .report-compression-preview-list {
  padding: 0 10px 10px;
}

.report-compression-preview-item {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) auto;
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #ffffff;
}

.report-compression-preview-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.report-compression-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  word-break: break-word;
}

.report-compression-preview-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.report-compression-preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2857a4;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.report-compression-preview-badge.subtle {
  background: #f1f5f9;
  color: #526273;
}

.report-compression-preview-badge.error {
  background: #fff1f1;
  color: #b42318;
}

.rounds-subject-picker {
  position: relative;
}

.rounds-subject-picker.confirmed input {
  border-color: #79a5eb;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.14);
}

.rounds-subject-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.rounds-subject-menu.hidden {
  display: none;
}

.rounds-subject-menu-group {
  display: grid;
  gap: 6px;
}

.rounds-subject-menu-group-current {
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid #dbe5f1;
  border-radius: 9px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
}

.rounds-subject-menu-group-secondary {
  padding: 7px 8px;
  border: 1px solid #dfe7f1;
  border-radius: 9px;
  background: #fafcff;
}

.rounds-subject-menu-group-secondary .rounds-subject-menu-tip {
  color: #7f8a99;
}

.rounds-subject-empty-state {
  padding: 14px 10px;
  border: 1px dashed #d9e4ef;
  border-radius: 7px;
  background: #fcfdff;
  color: #768396;
  font-size: 12px;
}

.rounds-subject-menu-group-tip {
  gap: 4px;
  padding: 3px 8px 1px;
}

.rounds-subject-menu-group-results-tight {
  margin-top: -2px;
  gap: 5px;
}

.rounds-subject-menu-head {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  color: #5b6b7f;
  padding: 2px 0 0;
}

.rounds-subject-menu-head-current {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #dfeeff;
  color: #2857a4;
}

.rounds-subject-menu-head-secondary {
  color: #6b7280;
}

.rounds-subject-menu-head-tip {
  padding: 1px 0 0;
  font-weight: 600;
  color: #8b97a8;
}

.rounds-subject-menu-tip {
  font-size: 11px;
  line-height: 1.5;
  color: #7b8798;
  padding: 0;
}

.rounds-subject-menu-group-current .rounds-subject-option {
  gap: 2px;
  padding: 7px 9px;
  border-color: #c9dcfa;
  background: #ffffff;
}

.rounds-subject-menu-group-current .rounds-subject-option-name {
  font-size: 12px;
}

.rounds-subject-menu-group-current .rounds-subject-option-meta {
  font-size: 11px;
  line-height: 1.4;
}

.rounds-subject-option-secondary {
  padding: 7px 9px;
  border-color: #e4eaf2;
  background: #ffffff;
}

.rounds-subject-option-secondary .rounds-subject-option-name {
  font-size: 12px;
}

.rounds-subject-option-secondary .rounds-subject-option-meta {
  font-size: 11px;
}

.rounds-subject-option {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  background: #fbfdff;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.rounds-subject-option:hover {
  border-color: #c6d8f5;
  background: #f4f8ff;
}

.rounds-subject-option.active {
  border-color: #b9cff4;
  background: #eef5ff;
}

.rounds-subject-option.focused {
  border-color: #7ea7eb;
  background: linear-gradient(180deg, #e8f1ff 0%, #dceaff 100%);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.16);
}

.rounds-subject-option-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
}

.rounds-subject-option-meta {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.rounds-subject-option-meta:last-child {
  color: #4f6b92;
}

.rounds-subject-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.rounds-subject-meta.confirmed {
  color: #355f9e;
}

.rounds-subject-meta.hidden {
  display: none;
}

.rounds-subject-meta-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rounds-subject-meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rounds-subject-meta-btn {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #d6e3f5;
  border-radius: 999px;
  background: #f8fbff;
  color: #2857a4;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.report-section p,
.report-section pre {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
}

.full-span-card {
  grid-column: 1 / -1;
}

.timeline-list {
  display: grid;
  gap: 8px;
}

.timeline-details {
  display: grid;
  gap: 10px;
}

.timeline-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 2px;
  color: #111827;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
}

.timeline-summary::-webkit-details-marker {
  display: none;
}

.timeline-summary::before {
  content: "展开";
  display: inline-block;
  margin-right: 10px;
  min-width: 30px;
  color: var(--primary);
  font-weight: 600;
}

.timeline-details[open] .timeline-summary::before {
  content: "收起";
}

.detail-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px;
}

.detail-metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfdff;
  display: grid;
  gap: 3px;
  min-height: 0;
}

.detail-metric span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
}

.detail-metric strong {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.report-review-grid {
  display: grid;
  gap: 8px;
}

.report-form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.report-action-btn {
  min-height: 36px;
  font-size: 12px;
  padding: 0 12px;
  width: 100%;
}

.report-detail-panel .section-head.compact h3 {
  font-size: 16px;
}

.report-detail-panel .section-head.compact .small {
  min-height: 30px;
  font-size: 12px;
}

.report-review-grid .form-grid {
  gap: 10px;
}

.report-archive-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.report-review-grid label,
.report-review-grid input,
.report-review-grid select,
.report-review-grid textarea,
.report-archive-actions .small,
#report-action-message,
.report-section .message {
  font-size: 12px;
}

.report-review-grid input,
.report-review-grid select,
.report-review-grid textarea {
  line-height: 1.4;
  padding: 8px 10px;
}

.report-review-grid textarea {
  min-height: 84px;
}

.report-section .message {
  line-height: 1.45;
}

.report-flow-note {
  border-style: dashed;
  background: #f8fbff;
}

.report-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-preview-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f7fc;
  border: 1px solid #dbe5f0;
  color: #526071;
  font-size: 11px;
  font-weight: 600;
}

.report-ocr-preview {
  max-height: 240px;
  overflow: auto;
  font-family: "SFMono-Regular", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px !important;
  line-height: 1.62 !important;
  background: #fbfdff;
}

.report-structured-summary {
  display: grid;
  gap: 8px;
}

.report-structured-summary-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.structured-preview-stack {
  display: grid;
  gap: 10px;
}

.structured-preview-group {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #fbfdff;
}

.structured-preview-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.structured-preview-group-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2937;
}

.structured-preview-list {
  display: grid;
  gap: 8px;
}

.structured-preview-empty {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f9fc;
  border: 1px dashed #d7e2f0;
  text-align: left;
}

.structured-metric-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2eaf3;
  background: #ffffff;
}

.structured-metric-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.structured-metric-item-head strong {
  font-size: 13px;
  line-height: 1.4;
}

.structured-metric-item-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.structured-metric-badge {
  min-height: 22px;
  font-size: 10px;
}

.structured-metric-item-value {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #111827;
}

.structured-metric-item-meta,
.structured-metric-item-source {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.structured-metric-item-source {
  padding-top: 2px;
  border-top: 1px dashed #e2e8f0;
}

.record-content-block {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed #d7e2f0;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
}

.doctor-todo-grid {
  gap: 14px;
}

.doctor-todo-section {
  display: grid;
  gap: 10px;
}

.review-focus-card {
  border-color: rgba(220, 38, 38, 0.22);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.08), 0 18px 40px rgba(15, 23, 42, 0.06);
}

.doctor-todo-stack {
  display: grid;
  gap: 10px;
}

.doctor-task-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.task-time-normal {
  color: #0f766e;
  font-weight: 600;
}

.task-time-overdue {
  color: #b42318;
  font-weight: 700;
}

.report-filter-grid {
  margin-bottom: 0;
}

.compact-filter-grid {
  margin: 0 0 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-filter-grid label {
  gap: 6px;
}

.wecom-cron-human-hint {
  margin-top: -4px;
  display: inline-grid;
  grid-template-columns: 8px minmax(0, 1fr);
  column-gap: 6px;
  align-items: start;
  width: 100%;
  max-width: min(100%, 58ch);
  font-size: 12px;
  line-height: 1.45;
  color: #6b7a90;
}

.wecom-cron-config-row {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr);
  align-items: start;
  column-gap: 12px;
  row-gap: 0;
}

.wecom-cron-config-item {
  position: relative;
  padding-bottom: 14px;
}

.wecom-cron-config-item:not(:last-of-type)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(207, 217, 230, 0.8) 0%, rgba(207, 217, 230, 0.45) 72%, rgba(207, 217, 230, 0) 100%);
}

.wecom-cron-config-actions {
  margin-top: -2px;
  padding-top: 10px;
  border-top: 1px solid rgba(207, 217, 230, 0.65);
}

.wecom-cron-save-btn {
  min-width: 128px;
  border-color: #c8d3e0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #334155;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wecom-cron-save-btn:hover {
  border-color: #b9c7d8;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  color: #1f2937;
}

.wecom-crontab-panel {
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(207, 217, 230, 0.78);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7f9fc 100%);
}

.wecom-crontab-panel .section-head.compact {
  margin-bottom: 8px;
}

.wecom-crontab-head {
  align-items: center;
  padding-bottom: 8px;
  border-bottom-color: rgba(226, 232, 240, 0.85);
}

.wecom-crontab-head strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: #475569;
}

.wecom-crontab-copy-btn {
  min-height: 30px;
  padding: 0 12px;
  border-color: rgba(203, 213, 225, 0.88);
  background: rgba(255, 255, 255, 0.76);
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.wecom-crontab-copy-btn:hover {
  border-color: rgba(186, 198, 214, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
}

.wecom-crontab-command-box {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d7e2ee;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 251, 255, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.wecom-crontab-command-box code {
  display: block;
  color: #334155;
  line-height: 1.7;
}

.wecom-crontab-command-box .command-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.wecom-crontab-command-box .command-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
}

.wecom-crontab-command-box .command-list li::before {
  content: counter(list-item, decimal-leading-zero);
  color: #a8b4c3;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
}

.wecom-crontab-command-box .command-list li:not(:last-child) {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.wecom-crontab-command-box .command-list li code {
  white-space: pre-wrap;
  word-break: break-word;
  padding-left: 2px;
  text-indent: -2px;
}

.wecom-cron-config-row .checkbox-inline {
  min-height: 42px;
  align-self: center;
  padding: 0 2px;
  color: #4b5563 !important;
}

.wecom-cron-config-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.wecom-cron-config-field input {
  width: 100%;
  border-color: #cfd9e6;
  background: #fbfdff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.wecom-cron-config-field input::placeholder {
  color: #94a3b8;
}

.wecom-cron-config-field input:focus,
.wecom-cron-config-field input:focus-visible {
  outline: none;
  border-color: #94a3b8;
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(148, 163, 184, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.wecom-cron-human-hint.notice,
.wecom-cron-human-hint.warning {
  display: inline-grid;
}

.wecom-cron-human-hint.warning {
  color: #8a5b12;
  font-weight: 650;
}

.wecom-cron-human-hint.notice {
  color: #a16207;
  font-weight: 450;
}

.wecom-cron-human-hint.notice::before,
.wecom-cron-human-hint.warning::before {
  content: "";
  display: inline-block;
  justify-self: center;
}

.wecom-cron-human-hint.notice::before {
  width: 6px;
  height: 6px;
  margin-top: 4px;
  border-radius: 999px;
  background: currentColor;
}

.wecom-cron-human-hint.warning::before {
  width: 0;
  height: 0;
  margin-top: 3px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-bottom: 6px solid currentColor;
}

.wecom-cron-human-hint.error {
  color: var(--danger);
  font-weight: 600;
}

.wecom-cron-human-hint.error::before {
  content: "";
  width: 0;
  height: 0;
}

input.field-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.08);
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  margin: 4px 0 0 4px;
  border-radius: 999px;
  background: #1d4ed8;
  box-shadow: 0 0 0 4px #dbeafe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  font-size: 11px;
  line-height: 1;
}

.timeline-index {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.timeline-content {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.timeline-content strong {
  font-size: 12px;
  line-height: 1.4;
}

.timeline-content span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.version-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.version-chip {
  min-height: 20px;
  padding: 0 8px;
  font-size: 10px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

@media (min-width: 1400px) {
  .detail-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .detail-metric {
    min-height: 72px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  }

  #report-timeline.timeline-list {
    gap: 10px;
  }

  #report-timeline .timeline-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
  }

  #report-timeline .timeline-content {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 3px 14px;
    align-items: start;
  }

  #report-timeline .timeline-content strong {
    grid-column: 1;
    grid-row: 1;
    font-size: 12px;
  }

  #report-timeline .timeline-content span:first-of-type {
    grid-column: 1;
    grid-row: 2;
    font-size: 11px;
  }

  #report-timeline .timeline-content span:last-of-type {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding-left: 14px;
    border-left: 1px solid #e7eef7;
    color: #334155;
    font-size: 12px;
    line-height: 1.5;
  }
}

.timeline-content .secondary-btn.small {
  justify-self: start;
  margin-top: 4px;
}

@media (max-width: 960px) {
  .confidential-flow-grid {
    grid-template-columns: 1fr;
  }

  .confidential-placeholder-filter-grid {
    grid-template-columns: 1fr;
  }

  .confidential-report-row {
    grid-template-columns: 1fr;
  }

  .confidential-report-row-side,
  .confidential-report-row-actions {
    justify-items: start;
    justify-content: flex-start;
  }
}

.work-record-actions-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.special-drug-checkbox-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  align-items: center;
}

.special-drug-option {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 8px !important;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #d7e2f0;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--text) !important;
  white-space: nowrap;
}

.special-drug-option input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  flex: 0 0 auto;
}

.special-drug-option span {
  display: inline-block;
  line-height: 1.2;
}

.special-drug-signoff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mdt-consultation-editor {
  display: grid;
  gap: 10px;
}

.mdt-transcription-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.mdt-transcription-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.mdt-transcription-toolbar-copy {
  display: grid;
  gap: 4px;
}

.mdt-transcription-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}

.mdt-transcription-chip.recording {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.mdt-transcription-toolbar-copy h4,
.mdt-transcription-toolbar-copy p {
  margin: 0;
}

.mdt-transcription-toolbar-copy h4 {
  font-size: 14px;
}

.mdt-transcription-toolbar-copy p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.mdt-transcription-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mdt-transcription-panel textarea {
  min-height: 116px;
}

.mdt-items-list {
  display: grid;
  gap: 10px;
}

.mdt-item-row,
.mdt-detail-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.mdt-item-actions,
.mdt-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.mdt-item-actions-buttons {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mdt-detail-list {
  display: grid;
  gap: 10px;
}

.batch-detail-card {
  display: grid;
  gap: 14px;
}

.batch-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e5edf8;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d4ed8 0%, #0f766e 100%);
}

.tag-alert {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.tag-reviewed {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.tag-pending {
  background: #fff7ed;
  color: #b45309;
  border-color: #f2c58d;
}

.tag-muted {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.tag-followup {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #9fc5ff;
}

.tag-anonymous {
  background: #ecfdf5;
  color: #0f766e;
  border-color: #9fe3c1;
}

.tag-real {
  background: #fff1f2;
  color: var(--danger);
  border-color: #f4b3bd;
}

.tag-contact {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.tag-role-admin {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

.tag-role-reviewer {
  background: #e0f2fe;
  color: #075985;
  border-color: #bae6fd;
}

.tag-role-health-office {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.tag-role-nursing {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
}

.tag-role-user {
  background: #f8fafc;
  color: #475569;
  border-color: #dbe3ee;
}

.tag-empty {
  background: #f8fafc;
  color: #64748b;
  border-color: #dbe3ee;
}

.list-item.anonymous-report {
  border-left: 4px solid #10b981;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0, rgba(16, 185, 129, 0.02) 64px, #fff 64px);
}

.list-item.real-report {
  border-left: 4px solid #f4b3bd;
  background: linear-gradient(90deg, rgba(244, 179, 189, 0.08) 0, rgba(244, 179, 189, 0.02) 64px, #fff 64px);
}

.definition-item {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.definition-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.definition-item span {
  color: var(--muted);
  font-size: 13px;
}

#trend-canvas {
  width: 100%;
  height: auto;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.legend-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.trends-panel {
  display: grid;
  gap: 14px;
}

.trends-panel-head {
  align-items: center;
  margin-bottom: 0;
}

.trends-panel-head-actions {
  display: inline-flex;
  justify-content: flex-end;
  min-width: 120px;
}

.trends-layout {
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.trends-selector-panel,
.trends-result-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.trends-selector-panel {
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 14px;
}

.trends-toolbox {
  display: grid;
  gap: 10px;
}

.trends-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 0 2px;
}

.trends-section-head-copy {
  display: grid;
  gap: 2px;
}

.trends-section-head strong {
  font-size: 13px;
  line-height: 1.2;
}

.trends-section-head span {
  color: var(--muted);
  font-size: 12px;
}

.trends-section-head-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.trends-section-head-actions .secondary-btn.small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.trends-toolbox label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.trends-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trends-category-tabs .secondary-btn.small.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.trends-metric-groups {
  display: grid;
  gap: 10px;
}

.trend-group-card {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.trend-group-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  background: #fff;
}

.trend-group-summary::-webkit-details-marker {
  display: none;
}

.trend-group-summary::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #64748b;
  border-bottom: 1.5px solid #64748b;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.16s ease;
}

.trend-group-card[open] .trend-group-summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.trend-group-summary {
  position: relative;
}

.trend-group-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding-right: 20px;
}

.trend-group-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.trend-group-head strong {
  font-size: 14px;
}

.trend-group-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
  border-top: 1px solid #eef2f7;
}

.trend-group-actions {
  display: flex;
  justify-content: flex-end;
}

.trend-group-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trend-metric-pill {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #f8fbff;
  color: #334155;
  font-size: 12px;
}

.trend-metric-pill.active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.trends-result-panel {
  min-width: 0;
}

.trends-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fbfdff;
}

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

.trends-action-primary {
  display: flex;
  align-items: stretch;
}

.trends-action-primary .primary-btn {
  min-width: 124px;
}

.trends-action-tools {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.trends-action-tools-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trends-action-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.trends-form-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trends-form-summary-item {
  display: grid;
  gap: 4px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #dde6f1;
  border-radius: 8px;
  background: #fff;
}

.trends-form-summary-item span {
  color: var(--muted);
  font-size: 12px;
}

.trends-form-summary-item strong {
  font-size: 15px;
  line-height: 1.2;
}

.trend-table-wrap {
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.trend-table-head {
  padding: 10px 12px;
  border-bottom: 1px solid #dfe7f1;
  background: #f8fbff;
  font-size: 13px;
  font-weight: 700;
}

.trend-table-scroll {
  max-height: 280px;
  overflow: auto;
}

.trend-table {
  width: 100%;
  border-collapse: collapse;
}

.trend-table th,
.trend-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

.trend-table th {
  position: sticky;
  top: 0;
  background: #fbfdff;
  z-index: 1;
  color: #64748b;
  font-size: 12px;
}

.trend-table tbody tr:last-child td {
  border-bottom: 0;
}

.trend-imaging-modal-card {
  width: min(760px, 100%);
  display: grid;
  gap: 14px;
}

.trend-imaging-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.trend-imaging-form-grid .full-span {
  grid-column: 1 / -1;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  width: min(920px, 100%);
  max-height: min(90vh, 960px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.confidential-shell-modal-card {
  width: min(760px, 100%);
  display: grid;
  gap: 14px;
}

.confidential-shell-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.confidential-shell-form-grid .full-span {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.confidential-shell-actions {
  justify-content: flex-end;
}

.rounds-submit-precheck-modal-card {
  width: min(720px, 100%);
  display: grid;
  gap: 14px;
}

.rounds-reuse-modal-card {
  width: min(720px, 100%);
  display: grid;
  gap: 14px;
}

.release-note-modal-card {
  width: min(680px, 100%);
  display: grid;
  gap: 14px;
}

.release-note-modal-version {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.release-note-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.release-note-modal-modules {
  color: #35506f;
  font-size: 13px;
  line-height: 1.5;
}

.release-note-modal-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #35506f;
  margin-bottom: 8px;
}

.release-note-modal-highlights {
  display: grid;
  gap: 10px;
}

.release-note-highlight-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 13px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.release-note-highlight-index {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.release-note-highlight-text {
  color: #243246;
  line-height: 1.65;
  font-size: 14px;
}

.release-note-modal-actions {
  justify-content: flex-end;
}

.rounds-reuse-checkbox {
  min-height: 40px;
  align-self: end;
  padding-bottom: 4px;
}

.rounds-reuse-body {
  display: grid;
  gap: 12px;
}

.rounds-reuse-section {
  display: grid;
  gap: 8px;
}

.rounds-reuse-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.rounds-reuse-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  padding: 0;
  min-height: 28px;
  color: #64748b;
}

.rounds-reuse-refresh-btn:hover:not([disabled]) {
  color: #334155;
}

.rounds-reuse-refresh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: currentColor;
}

.rounds-reuse-refresh-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.rounds-reuse-refresh-btn[data-loading="true"] .rounds-reuse-refresh-icon svg {
  animation: rounds-reuse-refresh-spin 0.9s linear infinite;
}

.rounds-reuse-refresh-label {
  line-height: 1;
}

.rounds-reuse-confirm-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin-left: 0;
  margin-right: -2px;
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
  transition: color 160ms ease, opacity 160ms ease;
}

.rounds-reuse-confirm-hint::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.rounds-reuse-confirm-hint.is-pending {
  color: #94a3b8;
}

.rounds-reuse-confirm-hint.is-pending::before {
  width: 5px;
  height: 5px;
}

.rounds-reuse-confirm-hint.is-blocked {
  color: #b7791f;
}

.rounds-reuse-confirm-hint.is-blocked::before {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid currentColor;
  border-radius: 0;
  background: transparent;
  transform: translateY(-1px);
}

.rounds-reuse-confirm-hint.is-ready {
  color: #475569;
}

.rounds-reuse-confirm-hint.is-ready::before {
  width: 6px;
  height: 6px;
  opacity: 1;
}

.rounds-reuse-actions .secondary-btn,
.rounds-reuse-actions .primary-btn {
  min-width: 120px;
}

#rounds-reuse-cancel-btn {
  margin-right: 4px;
  border-color: #e7edf5;
  color: #64748b;
  background: #fbfdff;
}

#rounds-reuse-cancel-btn:hover:not([disabled]) {
  border-color: #d7e0eb;
  color: #475569;
  background: #f8fbff;
}

#rounds-reuse-confirm-btn {
  margin-left: 0;
}

#rounds-reuse-confirm-btn.is-ready {
  border-color: #1d4ed8;
  background: #1d4ed8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(37, 99, 235, 0.08);
}

#rounds-reuse-confirm-btn.is-ready:hover:not([disabled]) {
  border-color: #1e40af;
  background: #1e40af;
}

@media (max-width: 760px) {
  .rounds-reuse-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px 10px;
  }

  .rounds-reuse-refresh-btn {
    grid-column: 1 / -1;
    margin-right: 0;
    justify-self: start;
  }

  .rounds-reuse-confirm-hint {
    grid-column: 1 / 2;
    margin-right: 0;
    min-height: 32px;
    align-self: center;
  }

  #rounds-reuse-cancel-btn {
    grid-column: 2 / 3;
    margin-right: 0;
    min-width: 96px;
  }

  #rounds-reuse-confirm-btn {
    grid-column: 3 / 4;
    min-width: 116px;
  }
}

@media (max-width: 560px) {
  .rounds-reuse-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-bottom: 2px;
  }

  .rounds-reuse-confirm-hint,
  #rounds-reuse-cancel-btn,
  #rounds-reuse-confirm-btn {
    grid-column: 1 / -1;
  }

  .rounds-reuse-confirm-hint {
    min-height: 0;
  }

  #rounds-reuse-cancel-btn,
  #rounds-reuse-confirm-btn {
    width: 100%;
    min-width: 0;
  }

  .rounds-reuse-modal-card {
    padding-bottom: 22px;
  }

  .release-note-highlight-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    padding: 11px 12px;
  }

  .release-note-modal-actions .primary-btn {
    width: 100%;
  }
}

@keyframes rounds-reuse-refresh-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.profile-delete-modal-card {
  width: min(680px, 100%);
  display: grid;
  gap: 14px;
}

.profile-delete-modal-body {
  display: grid;
  gap: 14px;
}

.profile-delete-intro {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.profile-delete-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-delete-impact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-delete-impact-block {
  display: grid;
  gap: 8px;
  padding: 12px 13px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: #fff7f8;
}

.profile-delete-impact-block.preserve {
  border-color: #dbe6f2;
  background: #fbfdff;
}

.profile-delete-impact-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #7f1d1d;
}

.profile-delete-impact-block.preserve .profile-delete-impact-title {
  color: #475569;
}

.profile-delete-impact-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.profile-delete-confirm-field {
  display: grid;
  gap: 6px;
}

.profile-delete-confirm-field input {
  min-height: 40px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.profile-delete-confirm-hint {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.45;
}

.profile-delete-checkbox {
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.profile-delete-checkbox input[type="checkbox"] {
  margin-top: 1px;
}

.profile-delete-actions {
  justify-content: flex-end;
}

.profile-delete-action-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 11px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0.88;
  transition: color 160ms ease, opacity 180ms ease;
}

.profile-delete-action-hint::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.profile-delete-action-hint.is-warning {
  color: #b7791f;
}

.profile-delete-action-hint.is-warning::before {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid currentColor;
  border-radius: 0;
  background: transparent;
  transform: translateY(-56%);
}

.profile-delete-action-hint.is-ready {
  color: #475569;
  opacity: 1;
}

.profile-delete-modal-ready .profile-delete-confirm-field input {
  border-color: #f8b4bd;
  background: #fffafb;
  box-shadow: 0 0 0 1px rgba(253, 164, 175, 0.12);
}

.profile-delete-modal-ready .profile-delete-checkbox {
  border-color: #fbc5cd;
  background: #fff8fa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.profile-delete-actions #confirm-profile-delete-btn {
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.profile-delete-actions #confirm-profile-delete-btn:not(:disabled) {
  border-color: #fda4af;
  background: #ffe4e6;
  color: #9f1239;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.profile-delete-actions .danger-action[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.rounds-submit-precheck-modal-card .inline-actions {
  justify-content: flex-end;
}

.rounds-submit-precheck-modal-card .primary-btn,
.rounds-submit-precheck-modal-card .secondary-btn {
  min-width: 132px;
}

.rounds-submit-precheck-body {
  display: grid;
  gap: 12px;
}

.rounds-submit-precheck-section {
  display: grid;
  gap: 8px;
}

.rounds-submit-precheck-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
}

.rounds-submit-precheck-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .shell,
  .split-layout,
  .reports-grid,
  .reports-hub,
  .reports-left-rail,
  .reports-workbench,
  .dashboard-grid,
  .metric-audit-command-strip,
  .settings-grid,
  .stats-grid,
  .profile-summary-grid,
  .subsection-grid,
  .filter-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 18px;
  }

  .app-shell {
    gap: 12px;
  }

  .mobile-nav-bar:not(.hidden) {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 16px;
    bottom: auto;
    z-index: 9999;
    display: block;
  }

  #app-shell {
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
    padding-bottom: 0;
  }

  .admin-user-guidance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-list-header,
  .list-item.admin-user-row {
    grid-template-columns: minmax(240px, 0.84fr) minmax(0, 1.16fr);
  }

  .admin-user-controls {
    grid-template-columns: minmax(210px, 1.08fr) minmax(128px, 0.58fr) minmax(116px, 0.54fr);
  }

  .mobile-nav-bar {
    overflow: visible;
  }

  .mobile-nav-menu {
    position: absolute;
    right: 0;
    width: min(330px, calc(100vw - 28px));
    top: calc(100% + 8px);
    bottom: auto;
    z-index: 2;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  }

  .topbar,
  .auth-header {
    flex-direction: column;
  }

  .auth-brand-hero {
    padding: 16px;
  }

  .auth-brand-hero-main {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .auth-brand-logo-wrap {
    width: 88px;
    height: 88px;
    padding: 7px;
    border-radius: 18px;
  }

  .auth-brand-logo {
    border-radius: 14px;
  }

  .auth-brand-copy h3 {
    font-size: 22px;
  }

  .auth-brand-subtitle {
    font-size: 15px;
  }

  .signature-editor-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-role-hero-grid {
    grid-template-columns: 1fr;
  }

  .profile-basics-grid {
    grid-template-columns: 1fr;
  }

  .trends-layout {
    grid-template-columns: 1fr;
  }

  .account-profile-meta-grid,
  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .account-profile-hero-top,
  .signature-profile-hero-top,
  .password-profile-hero-top {
    flex-direction: column;
  }

  .settings-panel-head {
    align-items: flex-start;
  }

  .settings-panel-head-actions,
  .settings-panel-head-placeholder {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .rounds-toolbar-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 9px;
  }

  #rounds-month-reminder {
    margin-top: 8px;
  }

  .rounds-toolbar-card {
    margin-bottom: 12px;
  }

  .rounds-toolbar-card .section-head.compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom-color: #f1f5f9;
  }

  .rounds-toolbar-card .section-head.compact h3 {
    font-size: 16px;
  }

  .rounds-toolbar-card .section-head.compact .inline-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 6px;
    align-items: flex-start;
    width: 100%;
    padding-top: 0;
  }

  .rounds-reuse-entry-cluster {
    grid-column: 1 / -1;
    width: 100%;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding-bottom: 1px;
  }

  #rounds-submit-month-btn,
  #rounds-export-month-btn {
    width: 100%;
    min-height: 32px;
    padding-inline: 12px;
    font-size: 13px;
    font-weight: 590;
    letter-spacing: 0;
    border-radius: 7px;
    transition:
      border-color 0.18s ease,
      background 0.18s ease,
      color 0.18s ease,
      box-shadow 0.18s ease,
      transform 0.18s ease;
  }

  #rounds-submit-month-btn {
    font-weight: 600;
    background: linear-gradient(180deg, #315ce0 0%, #2850d8 100%);
    border-color: #2a67e0;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 1px 0 rgba(37, 99, 235, 0.07);
  }

  #rounds-export-month-btn {
    font-weight: 570;
    color: #475569;
    border-color: #d4dee8;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.82),
      0 1px 0 rgba(148, 163, 184, 0.05);
  }

  #rounds-submit-month-btn:hover:not([disabled]),
  #rounds-export-month-btn:hover:not([disabled]) {
    transform: translateY(-0.5px);
  }

  #rounds-submit-month-btn:hover:not([disabled]) {
    border-color: #255fd3;
    background: linear-gradient(180deg, #335fe3 0%, #274fd8 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 1px 0 rgba(37, 99, 235, 0.1);
  }

  #rounds-export-month-btn:hover:not([disabled]) {
    border-color: #ccd8e3;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.88),
      0 1px 0 rgba(148, 163, 184, 0.06);
  }

  #rounds-submit-month-btn:active:not([disabled]),
  #rounds-export-month-btn:active:not([disabled]) {
    transform: translateY(0);
  }

  #rounds-submit-month-btn:active:not([disabled]) {
    border-color: #2358c2;
    background: linear-gradient(180deg, #2b55d7 0%, #244ac9 100%);
    box-shadow: inset 0 1px 2px rgba(29, 78, 216, 0.16);
  }

  #rounds-export-month-btn:active:not([disabled]) {
    border-color: #c5d1dc;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
    box-shadow: inset 0 1px 2px rgba(148, 163, 184, 0.1);
  }

  #rounds-submit-month-btn:focus-visible,
  #rounds-export-month-btn:focus-visible {
    outline: none;
  }

  #rounds-submit-month-btn:focus-visible {
    border-color: #2563eb;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 0 0 3px rgba(96, 165, 250, 0.16);
  }

  #rounds-export-month-btn:focus-visible {
    color: #334155;
    border-color: #c9d8e8;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.88),
      0 0 0 3px rgba(148, 163, 184, 0.12);
  }

  .rounds-reuse-entry-hint {
    width: 100%;
    max-width: none;
    white-space: normal;
    padding-left: 10px;
    text-indent: -10px;
    min-height: 0;
    margin-top: -2px;
  }

  .rounds-assignment-layout {
    grid-template-columns: 1fr;
  }

  .rounds-assignment-tools {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .rounds-assignment-tools-actions {
    justify-content: flex-start;
  }

  .rounds-assignment-toolbar {
    padding: 10px;
  }

  .rounds-assignment-toolbar-static {
    min-height: 0;
  }

  .rounds-assignment-filter-segmented {
    width: 100%;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-quick-actions {
    justify-content: flex-start;
  }

  .detail-metrics-grid {
    grid-template-columns: 1fr;
  }

  .structured-preview-group-head,
  .structured-metric-item-head {
    grid-template-columns: 1fr;
  }

  .structured-preview-group-head,
  .structured-metric-item-head {
    display: grid;
  }

  .structured-metric-item-badges {
    justify-content: flex-start;
  }

  .reports-left-rail > .card::before,
  .reports-detail-card::before,
  #dashboard-view .dashboard-grid > .card::before,
  #admin-dashboard-view > .card::before,
  #admin-dashboard-view .dashboard-grid > .card::before {
    margin-bottom: 12px;
  }

  .trends-selector-panel,
  .trends-form,
  .trend-table-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .trends-section-head {
    flex-direction: column;
  }

  .trends-action-toolbar {
    grid-template-columns: 1fr;
  }

  .trends-section-head-actions,
  .trends-action-tools-row {
    justify-content: flex-start;
  }

  .report-compression-preview-item {
    grid-template-columns: 1fr;
  }

  .profile-delete-summary-grid,
  .profile-delete-impact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .admin-user-toolbar-top,
  .admin-user-searchbar,
  .admin-user-filter-panel,
  .admin-user-guidance-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-toolbar-meta {
    align-items: flex-start;
  }

  .admin-user-list-header,
  .list-item.admin-user-row {
    grid-template-columns: 1fr;
  }

  .admin-user-controls {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .admin-user-wecom-cell {
    grid-column: 1 / -1;
  }

  .admin-user-toolbar-actions {
    min-width: 0;
  }
}

@media (max-width: 920px) {
  .main {
    padding: 12px;
  }

  #app-shell {
    padding-top: calc(70px + env(safe-area-inset-top, 0px));
    padding-bottom: 0;
  }

  .site-record-footer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav-menu {
    grid-template-columns: 1fr;
  }

  .topbar h2 {
    font-size: 24px;
  }

  .admin-user-summary-grid,
  .admin-user-toolbar-top,
  .admin-user-searchbar,
  .admin-user-list-header,
  .list-item.admin-user-row {
    grid-template-columns: 1fr;
  }

  .admin-user-filter-panel,
  .admin-user-guidance-grid,
  .admin-user-controls {
    grid-template-columns: 1fr;
  }

  .admin-user-guidance-card {
    min-height: 0;
  }

  .admin-user-visible-separator {
    display: none;
  }

  .admin-log-item {
    grid-template-columns: 1fr;
  }

  .admin-user-action-row,
  .admin-user-wecom-editor-actions,
  .report-form-actions,
  .report-archive-actions {
    grid-template-columns: 1fr;
  }

  .trends-form-summary {
    grid-template-columns: 1fr;
  }

  .trend-group-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .trend-group-head-meta {
    justify-content: flex-start;
  }
}
