select,
.toolbar select,
.filter-bar select,
.field select {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  cursor: pointer;
  background-color: #10192c;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffe09a' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  min-height: 42px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
select:hover, .sel-btn:hover, .date-trigger:hover {
  border-color: rgba(244, 197, 106, 0.55);
  background-color: #162238;
}
select:focus, input:focus, textarea:focus, .sel-btn:focus, .date-trigger:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 197, 106, 0.18);
}
select option {
  background: #121a2e;
  color: #f4efe4;
}

.sel {
  position: relative;
  display: inline-flex;
  min-width: 176px;
  vertical-align: middle;
}
.sel select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  min-height: 0;
  padding: 0;
  border: 0;
}
.sel-btn {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #18263d, #10192c);
  color: var(--text);
  font-weight: 700;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.sel-btn i {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold-2);
  border-bottom: 2px solid var(--gold-2);
  transform: rotate(45deg);
  margin-top: -4px;
  flex: none;
}
.sel.open .sel-btn {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 197, 106, 0.18);
}
.sel.open .sel-btn i { transform: rotate(-135deg); margin-top: 2px; }
.sel-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 70;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  background: #121a2e;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.sel.open .sel-menu { display: block; }
.sel-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
}
.sel-item:hover { background: rgba(244,197,106,.14); color: var(--gold-2); }
.sel-item.active {
  background: linear-gradient(90deg, rgba(244,197,106,.28), rgba(92,225,230,.1));
  color: var(--gold-2);
  font-weight: 700;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.control > span, .control-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
}
.control-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.control-row input { width: 100%; }

.tab-bar {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 14px;
  background: #0d1424;
  border: 1px solid var(--line);
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 18px;
  font-weight: 700;
  min-width: 88px;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.tab.active {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1208;
  box-shadow: 0 6px 16px rgba(244,197,106,.22);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.chip input[type=checkbox] {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #0d1424;
  margin: 0;
  position: relative;
  cursor: pointer;
}
.chip input[type=checkbox]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.chip input[type=checkbox]:checked:after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: solid #1a1208;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type=range] {
  appearance: none;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, #24344f, #1a2740);
  border: 1px solid var(--line);
}
input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border: 2px solid #1a1208;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
  cursor: pointer;
}

.btn.secondary:hover {
  background: linear-gradient(180deg, #35507a, #223454);
  border-color: rgba(244,197,106,.4);
}
.btn.ghost:hover {
  background: rgba(244,197,106,.1);
  border-color: rgba(244,197,106,.4);
  color: var(--gold-2);
}
.date-trigger {
  background: linear-gradient(180deg, #18263d, #10192c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  min-width: 188px;
}
.date-trigger:active { transform: scale(0.98); }

.cal-pop {
  background: linear-gradient(180deg, #182338, #10182a);
  border: 1px solid rgba(244,197,106,.35);
  width: 312px;
}
.cal-head b { color: var(--gold-2); letter-spacing: .06em; }
.cal-head .btn { min-width: 36px; padding: 8px 0; }
.cal-grid span {
  background: rgba(244,197,106,.08);
  border-radius: 8px;
  color: var(--gold-2);
  font-size: 11px;
}
.cal-grid button:active { transform: scale(0.94); }
.cal-grid button.today { box-shadow: inset 0 0 0 1px var(--cyan); }

.entry-card {
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.entry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244,197,106,.5);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.entry-card:active { transform: translateY(-1px) scale(0.99); }

.filter-bar > .btn, .toolbar.panel-card > .btn { min-height: 42px; }
.control input, .filter-bar .control input, .toolbar .control input {
  width: 100%;
  min-width: 0;
}
.toolbar .control { min-width: 176px; }
.toolbar .size-switch { min-width: 210px; }
.batch-toolbar .control { min-width: 160px; }
.vault-toolbar .tab-bar { flex: none; }
.vault-toolbar .vault-search { min-width: 220px; }
