/* ==========================================================================
   Scheme B · Heritage Forest Green (松烟森林绿) Design Tokens & Primitives
   100% Intranet-Safe · Zero External CDN · Zero Blue Palette
   ========================================================================== */

:root {
  --bg: #F3F5F3;
  --surface: #FFFFFF;
  --surface-2: #F7F9F8;
  --surface-3: #ECEFED;

  --border: #E2E7E4;
  --border-strong: #CCD5D0;

  --ink: #141B17;
  --ink-2: #313C36;
  --muted: #58655E;
  --muted-2: #7A8780;

  --gold: #164232;
  --gold-dark: #0F3124;
  --gold-light: #FFFFFF;
  --gold-soft: #EDF5F1;
  --gold-line: #C7DFD3;
  --forest-mist: #CBE3D7;

  --sage: #1D6F42;
  --sage-soft: #EBF6F0;
  --sage-line: #BFE2CE;

  --ochre: #A66A14;
  --ochre-soft: #FDF6E8;
  --ochre-line: #EED9AE;

  --clay: #B8372E;
  --clay-soft: #FDF2F1;
  --clay-line: #F2C9C5;

  --shadow-xs: 0 1px 2px rgba(16, 36, 27, 0.035), 0 1px 1px rgba(16, 36, 27, 0.02);
  --shadow-sm: 0 4px 16px rgba(16, 36, 27, 0.05);
  --shadow-md: 0 12px 32px rgba(16, 36, 27, 0.10);
  --shadow-lg: 0 24px 64px rgba(16, 36, 27, 0.16);

  --radius: 12px;
  --radius-sm: 8px;

  --sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "DIN Alternate", "SF Pro Display", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: var(--gold-line);
}

/* Custom subtle scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #CCD5D0;
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B0BDB6;
}

/* ==================== Shared Controls ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: #B4C1BA;
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.btn-ink {
  background: var(--gold);
  color: #FFFFFF;
  border-color: var(--gold);
}

.btn-ink:hover:not(:disabled) {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-gold {
  background: var(--gold-soft);
  color: var(--gold-dark);
  border-color: var(--gold-line);
}

.btn-gold:hover:not(:disabled) {
  background: #DFEFE7;
}

.btn-clay {
  background: var(--clay-soft);
  color: var(--clay);
  border-color: var(--clay-line);
}

.btn-clay:hover:not(:disabled) {
  background: #F9E3E1;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-3);
  color: var(--ink);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 7px;
}

.btn-xs {
  padding: 3px 8px;
  font-size: 11.5px;
  border-radius: 6px;
}

select,
input[type="text"],
input[type="number"],
input[type="search"],
textarea {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

select {
  cursor: pointer;
}

select:hover:not(:disabled),
input[type="text"]:hover:not(:disabled),
input[type="number"]:hover:not(:disabled),
input[type="search"]:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: #B2C0B8;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(22, 66, 50, 0.10);
}

.tbl-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s;
}

.tbl-act-btn:hover:not(:disabled) {
  background: var(--gold-soft);
  color: var(--gold);
}

.tbl-act-btn.muted-act {
  color: var(--muted);
  font-weight: 500;
}

.tbl-act-btn.muted-act:hover:not(:disabled) {
  background: var(--surface-3);
  color: var(--ink);
}

.tbl-act-btn.clay-act {
  color: var(--clay);
}

.tbl-act-btn.clay-act:hover:not(:disabled) {
  background: var(--clay-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.tag-gold {
  background: var(--gold-soft);
  color: var(--gold-dark);
  border-color: var(--gold-line);
}

.tag-sage {
  background: var(--sage-soft);
  color: var(--sage);
  border-color: var(--sage-line);
}

.tag-ochre {
  background: var(--ochre-soft);
  color: var(--ochre);
  border-color: var(--ochre-line);
}

.tag-clay {
  background: var(--clay-soft);
  color: var(--clay);
  border-color: var(--clay-line);
}

.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 9px;
  border-radius: 6px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.4px;
}

.grade-Aplus {
  background: var(--gold);
  color: #FFFFFF;
}

.grade-A {
  background: var(--sage-soft);
  color: var(--sage);
  border: 1px solid var(--sage-line);
}

.grade-B {
  background: var(--ochre-soft);
  color: var(--ochre);
  border: 1px solid var(--ochre-line);
}

.grade-C {
  background: var(--clay-soft);
  color: var(--clay);
  border: 1px solid var(--clay-line);
}

.prog-track {
  width: 100%;
  height: 5px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #286B52, var(--gold));
  transition: width 0.28s ease;
}

.prog-fill.done {
  background: var(--sage);
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  background: var(--surface);
  user-select: none;
  transition: all 0.14s;
}

.checkbox-pill input {
  margin: 0;
  accent-color: var(--gold);
}

.checkbox-pill.checked {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-dark);
  font-weight: 600;
}

/* ==================== Editorial Numerals & Utilities ==================== */
.seq-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  line-height: 1;
  padding-right: 8px;
  margin-right: 2px;
  border-right: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  min-width: 24px;
  height: 24px;
}

.rank-num.top3 {
  color: var(--gold-dark);
  background: var(--gold-soft);
  min-width: 26px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 12.5px;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); letter-spacing: -0.015em; }
.fw-bold { font-weight: 700; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.hidden { display: none !important; }

code {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 11.5px;
  color: var(--gold-dark);
}

/* ==================== Popover, Modal, Toast, Loader ==================== */
.boot-loader {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.boot-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--gold-line);
  border-top-color: var(--gold);
  animation: spin 0.75s linear infinite;
}

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

.score-popover {
  position: fixed;
  z-index: 120;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  width: 276px;
  display: none;
}

.score-popover.open {
  display: block;
}

.pop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.pop-btn {
  padding: 8px 4px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.12s;
}

.pop-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-soft);
}

.pop-btn.selected {
  background: var(--gold);
  color: #FFFFFF;
  border-color: var(--gold);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(18, 28, 23, 0.45);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-box.wide {
  max-width: 1180px;
}

.modal-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}

.modal-foot {
  padding: 12px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.toast-wrap {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 220;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: min(460px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  background: rgba(18, 36, 29, 0.94);
  backdrop-filter: blur(8px);
  color: #F4F9F6;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(14, 30, 22, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: fadeSlide 0.18s ease;
  pointer-events: auto;
  text-align: center;
}

.toast.success {
  border-color: rgba(78, 184, 125, 0.45);
}

.toast.warn {
  border-color: rgba(227, 167, 79, 0.5);
}

.toast.error {
  border-color: rgba(224, 108, 101, 0.55);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== Custom Styled Select (UiSelect · Pine Forest Green) ==================== */
.ui-sel-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.ui-sel-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  max-width: 100%;
}

.ui-sel-wrap.ui-sel-block {
  display: flex;
  width: 100%;
}

.ui-sel-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 33px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
  box-shadow: 0 1px 2px rgba(20, 42, 33, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.ui-sel-wrap.ui-sel-block .ui-sel-trigger {
  width: 100%;
}

.ui-sel-trigger:hover:not(:disabled) {
  border-color: #A7B8AE;
  background: #FAFDFB;
}

.ui-sel-wrap.is-open .ui-sel-trigger,
.ui-sel-trigger:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(22, 66, 50, 0.10);
  background: #FFFFFF;
}

.ui-sel-wrap.is-disabled .ui-sel-trigger {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.78;
}

.ui-sel-val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.ui-sel-label-main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ui-sel-prefix {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.ui-sel-label-meta {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ui-sel-chevron {
  width: 15px;
  height: 15px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.16s ease;
}

.ui-sel-trigger:hover:not(:disabled) .ui-sel-chevron {
  color: var(--ink-2);
}

.ui-sel-wrap.is-open .ui-sel-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

/* Status & progress pills inside trigger & menu */
.ui-sel-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.ui-sel-pill.is-archived {
  background: #EEF2F0;
  color: #54665E;
}

.ui-sel-pill.is-published {
  background: #E4F2EA;
  color: #1D6644;
}

.ui-sel-pill.is-open {
  background: #FDF3E1;
  color: #9A5F12;
}

.ui-sel-pill.is-subtle {
  background: var(--surface-3);
  color: var(--muted);
}

/* Variant: Large primary header switcher (#adminCycleSel) */
.ui-sel-wrap.ui-sel-lg .ui-sel-trigger {
  min-height: 36px;
  padding: 0 11px 0 13px;
  font-size: 13.5px;
  font-weight: 700;
  border-color: #C7D4CC;
}

/* Variant: Accent Forest Green highlight (#admLbCycleSel) */
.ui-sel-wrap.ui-sel-accent .ui-sel-trigger {
  min-height: 33px;
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--gold-dark);
  font-weight: 700;
}

.ui-sel-wrap.ui-sel-accent .ui-sel-trigger:hover:not(:disabled) {
  background: #DFEDE6;
  border-color: #A7CBB9;
}

.ui-sel-wrap.ui-sel-accent.is-open .ui-sel-trigger {
  background: #FFFFFF;
  border-color: var(--gold);
}

.ui-sel-wrap.ui-sel-accent .ui-sel-chevron {
  color: var(--gold-dark);
}

/* Variant: Small toolbar select */
.ui-sel-wrap.ui-sel-sm .ui-sel-trigger {
  min-height: 30px;
  padding: 0 9px 0 11px;
  font-size: 12.5px;
  border-radius: 8px;
}

/* Variant: Extra compact inline select (.anc-rm-sel in Org cards) */
.ui-sel-wrap.ui-sel-xs .ui-sel-trigger {
  min-height: 24px;
  padding: 0 6px 0 8px;
  gap: 4px;
  font-size: 11.5px;
  border-radius: 6px;
  box-shadow: none;
  border-color: var(--border);
  background: var(--surface-2);
}

.ui-sel-wrap.ui-sel-xs .ui-sel-trigger:hover:not(:disabled) {
  background: #FFFFFF;
  border-color: #B2C2B9;
}

.ui-sel-wrap.ui-sel-xs .ui-sel-chevron {
  width: 12px;
  height: 12px;
}

/* Variant: Frosted dark-green card select (Judge H5) */
.ui-sel-wrap.ui-sel-dark .ui-sel-trigger {
  min-height: 38px;
  padding: 0 12px 0 13px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.ui-sel-wrap.ui-sel-dark .ui-sel-trigger:hover:not(:disabled),
.ui-sel-wrap.ui-sel-dark.is-open .ui-sel-trigger {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.ui-sel-wrap.ui-sel-dark .ui-sel-prefix {
  color: #BFE3D0;
}

.ui-sel-wrap.ui-sel-dark .ui-sel-label-meta {
  color: #D4E8DD;
}

.ui-sel-wrap.ui-sel-dark .ui-sel-chevron {
  color: #E3F3EA;
}

.ui-sel-wrap.ui-sel-dark .ui-sel-pill.is-on-dark {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.ui-sel-wrap.ui-sel-dark .ui-sel-pill.is-published.is-on-dark {
  background: rgba(167, 227, 192, 0.24);
  color: #C7F2DA;
}

/* Floating Dropdown Menu Portal */
.ui-sel-menu {
  position: fixed;
  z-index: 190;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 5px;
  background: #FFFFFF;
  border: 1px solid #CFDCD4;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(18, 42, 32, 0.14), 0 3px 10px rgba(18, 42, 32, 0.06);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #C9D6CE transparent;
}

.ui-sel-menu::-webkit-scrollbar {
  width: 5px;
}

.ui-sel-menu::-webkit-scrollbar-track {
  background: transparent;
}

.ui-sel-menu::-webkit-scrollbar-thumb {
  background: #CAD7CF;
  border-radius: 999px;
}

.ui-sel-menu.is-open {
  display: flex;
  animation: uiSelDropIn 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}

.ui-sel-menu.is-open.is-flip-up {
  animation: uiSelFlipIn 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes uiSelDropIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes uiSelFlipIn {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ui-sel-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.ui-sel-menu-compact .ui-sel-opt {
  padding: 6px 9px;
  font-size: 12px;
  border-radius: 6px;
}

.ui-sel-opt:hover:not(:disabled),
.ui-sel-opt.is-active:not(:disabled) {
  background: #F1F6F3;
  color: var(--ink);
}

.ui-sel-opt.is-selected {
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-weight: 700;
}

.ui-sel-opt.is-selected.is-active {
  background: #DFEDE6;
}

.ui-sel-opt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ui-sel-opt-left {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.ui-sel-opt-prefix {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.ui-sel-opt-main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-sel-opt-meta {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ui-sel-opt.is-selected .ui-sel-opt-meta {
  color: #3A6B56;
}

.ui-sel-opt-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ui-sel-check {
  width: 14px;
  height: 14px;
  color: var(--gold);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.12s ease;
}

.ui-sel-opt.is-selected .ui-sel-check {
  opacity: 1;
}

/* ==================== Custom Styled DateTime Picker (Pine Forest Green) ==================== */
.ui-dt-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 0 11px 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 42, 33, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.ui-dt-trigger:hover {
  border-color: #A7B8AE;
  background: #FAFDFB;
}

.ui-dt-trigger.is-open,
.ui-dt-trigger:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(22, 66, 50, 0.10);
  background: #FFFFFF;
}

.ui-dt-trigger.is-open .ui-sel-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.ui-dt-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.ui-dt-icon {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex-shrink: 0;
}

.ui-dt-date {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ui-dt-wd {
  font-size: 11.5px;
  color: var(--muted);
}

.ui-dt-time-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ui-dt-pop {
  position: fixed;
  z-index: 195;
  display: none;
  flex-direction: column;
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid #CFDCD4;
  border-radius: 13px;
  box-shadow: 0 16px 40px rgba(18, 42, 32, 0.16), 0 3px 10px rgba(18, 42, 32, 0.06);
}

.ui-dt-pop.is-open {
  display: flex;
  animation: uiSelDropIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.ui-dt-pop.is-open.is-flip-up {
  animation: uiSelFlipIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.ui-dt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ui-dt-ym {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ui-dt-nav {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.ui-dt-nav:hover {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--gold-dark);
}

.ui-dt-wk-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.ui-dt-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.ui-dt-day {
  height: 31px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.ui-dt-day:hover {
  background: #EEF5F1;
  color: var(--gold-dark);
}

.ui-dt-day.is-out {
  color: #B4C0B9;
}

.ui-dt-day.is-today:not(.is-selected) {
  border-color: var(--gold-line);
  color: var(--gold-dark);
  font-weight: 700;
}

.ui-dt-day.is-selected {
  background: var(--gold);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(22, 66, 50, 0.25);
}

.ui-dt-time-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui-dt-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ui-dt-time-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.ui-dt-stepper-pair {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ui-dt-mini-step {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface-2);
}

.ui-dt-mini-step button {
  width: 24px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.ui-dt-mini-step button:hover {
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.ui-dt-hm-val {
  min-width: 26px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ui-dt-colon {
  font-weight: 700;
  color: var(--muted);
}

.ui-dt-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.ui-dt-preset {
  height: 25px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all 0.12s;
}

.ui-dt-preset:hover {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.ui-dt-preset.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.ui-dt-foot {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ui-dt-quick-link {
  border: none;
  background: transparent;
  color: var(--gold-dark);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 5px;
}

.ui-dt-quick-link:hover {
  background: var(--gold-soft);
}
