/* ---------- Icon ---------- */
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm {
  width: 15px;
  height: 15px;
}
.icon--lg {
  width: 22px;
  height: 22px;
}
.icon--fill {
  fill: currentColor;
  stroke: none;
}
.icon-duo {
  fill: currentColor;
  stroke: none;
  opacity: 0.2;
}

/* App-icon tile: tinted squircle, depth, gloss, white duotone glyph */
.app-icon {
  --size: 40px;
  position: relative;
  width: var(--size);
  height: var(--size);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: calc(var(--size) * 0.29);
  color: #fff;
  background:
    radial-gradient(120% 90% at 30% 0%, color-mix(in srgb, var(--tint) 55%, #fff) 0%, transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--tint) 88%, #fff) 0%, var(--tint) 45%, color-mix(in srgb, var(--tint) 78%, #000) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 1px 2px color-mix(in srgb, var(--tint) 30%, rgba(0, 0, 0, 0.3)),
    0 6px 16px -4px color-mix(in srgb, var(--tint) 55%, transparent);
  overflow: hidden;
  transition: transform var(--d) var(--spring), box-shadow var(--d) var(--ease);
}
.app-icon::after {
  /* specular sheen across the top half */
  content: "";
  position: absolute;
  inset: 0 0 52% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  border-radius: inherit;
  pointer-events: none;
}
.app-icon .icon {
  position: relative;
  z-index: 1;
  width: calc(var(--size) * 0.5);
  height: calc(var(--size) * 0.5);
  stroke-width: 1.8;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}
.app-icon .icon-duo {
  opacity: 0.32;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--fill-3);
  --btn-fg: var(--label);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--control-h);
  min-width: var(--hit);
  padding: 0 15px;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 13.5px/1 var(--font);
  letter-spacing: -0.005em;
  white-space: nowrap;
  user-select: none;
  transition: background var(--d-fast) var(--ease), transform var(--d) var(--spring), box-shadow var(--d) var(--ease), opacity var(--d-fast);
}
.btn:hover {
  background: color-mix(in srgb, var(--btn-bg), var(--label) 7%);
}
.btn:active {
  transform: scale(0.96);
}
.btn:disabled {
  opacity: 0.4;
  transform: none;
}
.btn--primary {
  --btn-fg: #fff;
  background: var(--vibe-gradient);
  background-size: 140% 100%;
  background-position: 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.15), 0 6px 18px -6px rgba(255, 107, 90, 0.6);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  transition: background-position var(--d-slow) var(--ease), transform var(--d) var(--spring), box-shadow var(--d) var(--ease), opacity var(--d-fast);
}
.btn--primary:hover {
  background: var(--vibe-gradient);
  background-size: 140% 100%;
  background-position: 100% 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.15), var(--glow);
}
.btn--primary:disabled {
  box-shadow: none;
}
.btn--tinted {
  --btn-bg: var(--brand-soft);
  --btn-fg: var(--brand);
}
.btn--plain {
  --btn-bg: transparent;
  padding: 0 12px;
}
.btn--plain:hover {
  background: var(--hover);
}
.btn--glass {
  --btn-fg: var(--label);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight), 0 0 0 0.5px var(--glass-edge), var(--shadow-1);
}
.btn--glass:hover {
  background: var(--glass-strong);
}
.btn--danger {
  --btn-bg: color-mix(in srgb, var(--red) 12%, transparent);
  --btn-fg: var(--red);
}
.btn--destructive {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 16px -6px color-mix(in srgb, var(--red) 70%, transparent);
}
.btn--sm {
  height: var(--control-h-sm);
  padding: 0 11px;
  font-size: 12.5px;
}
.btn--lg {
  height: var(--control-h-lg);
  padding: 0 22px;
  font-size: 15px;
}
.btn--xl {
  height: 52px;
  padding: 0 28px;
  font-size: 16px;
}
.btn--block {
  width: 100%;
}
.btn--pill {
  border-radius: var(--r-full);
}
.btn .icon {
  transition: transform var(--d) var(--spring);
}
.btn:hover .icon[class*="icon"] {
  transform: translateX(0);
}
.btn--primary:hover .icon {
  transform: rotate(-8deg) scale(1.08);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--hit);
  height: var(--hit);
  border-radius: var(--r-full);
  color: var(--label-2);
  transition: background var(--d-fast), color var(--d-fast), transform var(--d) var(--spring);
  flex: none;
}
.icon-btn:hover {
  background: var(--hover);
  color: var(--label);
}
.icon-btn:active {
  background: var(--pressed);
  transform: scale(0.9);
}
.icon-btn:disabled {
  opacity: 0.32;
  background: none;
  transform: none;
}
.icon-btn.is-on {
  background: var(--brand-soft);
  color: var(--brand);
}
.icon-btn--sm {
  width: 26px;
  height: 26px;
}
.icon-btn--lg {
  width: 40px;
  height: 40px;
}

.link {
  color: var(--brand);
  font-weight: 600;
}
.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Fields ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field-label {
  font: 600 12.5px/1.3 var(--font);
  color: var(--label-2);
}
.field-hint {
  font: var(--t-footnote);
  color: var(--label-3);
}
.field-error {
  font: var(--t-footnote);
  color: var(--red);
  animation: rise-in var(--d) var(--ease-out);
}
.input,
.textarea,
.select {
  width: 100%;
  height: var(--control-h-lg);
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--separator-strong);
  background: color-mix(in srgb, var(--bg-secondary) 82%, transparent);
  font: var(--t-body);
  transition: border-color var(--d-fast), box-shadow var(--d), background var(--d-fast);
}
.input:hover,
.textarea:hover,
.select:hover {
  border-color: color-mix(in srgb, var(--separator-strong), var(--label) 10%);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--label-4);
}
.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--brand);
  background: var(--bg-secondary);
  box-shadow: var(--ring);
}
.input.is-invalid {
  border-color: var(--red);
  animation: shake 360ms var(--ease);
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-4px);
  }
  40%,
  80% {
    transform: translateX(4px);
  }
}
.input--sm {
  height: var(--control-h);
  font-size: 13.5px;
  border-radius: var(--r-sm);
}
.textarea {
  height: auto;
  min-height: 84px;
  padding: 11px 14px;
  resize: vertical;
  line-height: 1.55;
}
.select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap .input {
  padding-right: 46px;
}
.input-wrap > .input-accessory {
  position: absolute;
  right: 7px;
}

/* ---------- Segmented control (glass track, raised thumb) ---------- */
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: var(--r-full);
  background: var(--fill-3);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  position: relative;
}
.seg button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 13px;
  border-radius: var(--r-full);
  font: 600 12.5px/1 var(--font);
  color: var(--label-2);
  white-space: nowrap;
  transition: color var(--d-fast), background var(--d) var(--ease), box-shadow var(--d) var(--ease), transform var(--d) var(--spring);
}
.seg button:hover {
  color: var(--label);
}
.seg button:active {
  transform: scale(0.95);
}
.seg button[aria-checked="true"] {
  background: var(--bg-elevated);
  color: var(--label);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.08), inset 0 0 0 0.5px var(--separator);
}
.seg--sm button {
  height: 23px;
  padding: 0 10px;
  font-size: 11.5px;
}
.seg--block {
  display: flex;
}
.seg--block button {
  flex: 1;
}

/* ---------- Switch ---------- */
.switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex: none;
  border-radius: 13px;
  background: var(--fill);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: background var(--d) var(--ease);
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  transition: transform var(--d-slow) var(--spring), width var(--d) var(--ease);
}
.switch:active::after {
  width: 28px;
}
.switch[aria-checked="true"] {
  background: var(--green);
}
.switch[aria-checked="true"]::after {
  transform: translateX(18px);
}
.switch[aria-checked="true"]:active::after {
  transform: translateX(12px);
}

/* ---------- Checkbox ---------- */
.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font: var(--t-subhead);
  color: var(--label-2);
}
.check input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  border-radius: 6px;
  border: 1.5px solid var(--separator-strong);
  background: var(--bg-secondary);
  display: grid;
  place-items: center;
  transition: background var(--d-fast), border-color var(--d-fast), transform var(--d) var(--spring);
}
.check input:active {
  transform: scale(0.88);
}
.check input:checked {
  background: var(--brand);
  border-color: var(--brand);
}
.check input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  margin-top: -2px;
  border-left: 2px solid var(--on-brand);
  border-bottom: 2px solid var(--on-brand);
  transform: rotate(-45deg);
  animation: pop-in var(--d) var(--spring);
}

/* ---------- Chips, badges, tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-full);
  background: var(--fill-4);
  box-shadow: inset 0 0 0 0.5px var(--separator);
  color: var(--label-2);
  font: 500 12.5px/1 var(--font);
  white-space: nowrap;
  transition: background var(--d-fast), color var(--d-fast), transform var(--d) var(--spring), box-shadow var(--d-fast);
}
button.chip:hover {
  background: var(--fill-3);
  color: var(--label);
}
button.chip:active {
  transform: scale(0.95);
}
.chip.is-on {
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand-line);
}
.chip--sm {
  height: 22px;
  padding: 0 9px;
  font-size: 11.5px;
}
.chip .chip-x {
  margin-right: -5px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--label-3);
}
.chip .chip-x:hover {
  background: var(--fill);
  color: var(--label);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--r-full);
  font: 650 10.5px/1 var(--font);
  letter-spacing: 0.01em;
  background: var(--fill-3);
  color: var(--label-2);
  white-space: nowrap;
}
.badge--brand {
  background: var(--brand-soft);
  color: var(--brand);
}
.badge--green {
  background: color-mix(in srgb, var(--green) 15%, transparent);
  color: var(--green);
}
.badge--red {
  background: color-mix(in srgb, var(--red) 15%, transparent);
  color: var(--red);
}
.badge--blue {
  background: color-mix(in srgb, var(--blue) 15%, transparent);
  color: var(--blue);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--fill-4);
  box-shadow: inset 0 -1px 0 var(--separator-strong), inset 0 0 0 0.5px var(--separator);
  color: var(--label-3);
  font: 600 10.5px/1 var(--font);
}

/* ---------- Avatar ---------- */
.avatar {
  --size: 32px;
  width: var(--size);
  height: var(--size);
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--avatar-bg, var(--vibe-gradient));
  color: #fff;
  font: 650 calc(var(--size) * 0.42) / 1 var(--font-round);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Spinner / progress ---------- */
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.75s linear infinite;
  flex: none;
  opacity: 0.85;
}
.progress {
  height: 5px;
  border-radius: 3px;
  background: var(--fill-3);
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--vibe-gradient);
  background-size: 200% 100%;
  transition: width var(--d-slow) var(--ease-out);
}
.ring {
  --p: 0;
  --c: var(--brand);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--fill-3) 0);
  display: grid;
  place-items: center;
  transition: --p var(--d-slow) var(--ease-out);
}
.ring::after {
  content: "";
  grid-area: 1 / 1;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 50%;
  background: var(--ring-bg, var(--bg-elevated));
}
.ring > * {
  grid-area: 1 / 1;
  z-index: 1;
}
.skeleton {
  background: linear-gradient(100deg, var(--fill-4) 30%, var(--fill-2) 50%, var(--fill-4) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: var(--r-md);
}

/* ---------- Materials ---------- */
.material,
.material-thick,
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 0;
  box-shadow: var(--glass-highlight), 0 0 0 0.5px var(--glass-edge);
}
.material-thick {
  background: var(--glass-strong);
}

/* Animated gradient border for "live" surfaces (Vibe working, focus). */
.vibe-border {
  position: relative;
}
.vibe-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--vibe-conic);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-border 4s linear infinite;
  opacity: 0;
  transition: opacity var(--d) var(--ease);
  pointer-events: none;
}
.vibe-border.is-live::before,
.vibe-border:focus-within::before {
  opacity: 1;
}

/* ---------- Popover & menu ---------- */
.popover {
  position: fixed;
  z-index: 900;
  min-width: 200px;
  max-width: min(380px, calc(100vw - 16px));
  max-height: min(540px, calc(100vh - 16px));
  overflow: auto;
  padding: 6px;
  border-radius: var(--r-lg);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight), 0 0 0 0.5px var(--glass-edge), var(--shadow-3);
  animation: pop-in var(--d) var(--spring);
  transform-origin: var(--origin, top left);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 9px;
  text-align: left;
  font: 500 13.5px/1.35 var(--font);
  color: var(--label);
  transition: background var(--d-fast);
}
.menu-item:hover,
.menu-item.is-active {
  background: var(--fill-3);
}
.menu-item:active {
  background: var(--fill-2);
}
.menu-item:disabled {
  opacity: 0.4;
  background: none;
}
.menu-item .icon {
  color: var(--label-2);
}
.menu-item:hover .icon {
  color: var(--brand);
}
.menu-item.is-danger,
.menu-item.is-danger .icon {
  color: var(--red);
}
.menu-item.is-danger:hover {
  background: color-mix(in srgb, var(--red) 12%, transparent);
}
.menu-item .menu-meta {
  margin-left: auto;
  font: var(--t-footnote);
  color: var(--label-3);
}
/* 选中项不再渲染对号列，直接以品牌色标注当前项 */
.menu-item.is-checked {
  color: var(--brand);
}
.menu-item.is-checked .icon,
.menu-item.is-checked .menu-item-ico {
  color: var(--brand);
}
.menu-sep {
  height: 0.5px;
  margin: 5px 8px;
  background: var(--separator);
}
.menu-title {
  padding: 7px 10px 5px;
  font: 650 11px/1.2 var(--font);
  color: var(--label-3);
  letter-spacing: 0.02em;
}

/* ---------- Tooltip ---------- */
.tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--label) 88%, transparent);
  color: var(--bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-2);
  font: 600 11.5px/1.3 var(--font);
  white-space: nowrap;
  animation: pop-in var(--d-fast) var(--ease-out);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tooltip .kbd {
  background: color-mix(in srgb, var(--bg) 18%, transparent);
  color: var(--bg);
  box-shadow: none;
}

/* ---------- Sheet / dialog ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 6, 16, 0.38);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  backdrop-filter: blur(6px) saturate(120%);
  animation: fade-in var(--d) var(--ease);
}
.sheet {
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-2xl);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight), 0 0 0 0.5px var(--glass-edge), var(--shadow-4);
  animation: pop-in var(--d-slow) var(--spring);
  overflow: hidden;
}
.sheet--wide {
  width: min(760px, 100%);
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 6px;
}
.sheet-head h2 {
  font: var(--t-title3);
  flex: 1;
}
.sheet-body {
  padding: 8px 22px 22px;
  overflow: auto;
}
.sheet-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 22px 20px;
}
.alert {
  width: min(320px, 100%);
  text-align: center;
}
.alert .sheet-body {
  padding: 26px 24px 6px;
}
.alert h2 {
  font: var(--t-headline);
  margin-bottom: 6px;
}
.alert p {
  font: var(--t-subhead);
  color: var(--label-2);
  line-height: 1.5;
}
.alert .sheet-foot {
  padding: 18px;
}
.alert .sheet-foot .btn {
  flex: 1;
}

/* ---------- Toasts (glass capsules) ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 1100;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 8px 8px 8px 14px;
  border-radius: var(--r-full);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight), 0 0 0 0.5px var(--glass-edge), var(--shadow-3);
  font: 600 13.5px/1.35 var(--font);
  animation: toast-in var(--d-slow) var(--spring);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.92);
  }
}
.toast:not(:has(.btn)) {
  padding-right: 18px;
}
.toast .icon {
  color: var(--label-2);
}
.toast.is-error .icon {
  color: var(--red);
}
.toast.is-success .icon {
  color: var(--green);
  animation: pop-in var(--d-slow) var(--spring);
}

/* ---------- Grouped list (Settings style) ---------- */
.group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.group-title {
  padding: 0 16px;
  font: 650 12.5px/1.3 var(--font);
  color: var(--label-2);
}
.group-foot {
  padding: 0 16px;
  font: var(--t-footnote);
  color: var(--label-3);
  line-height: 1.5;
}
.list {
  border-radius: var(--r-xl);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight), 0 0 0 0.5px var(--glass-edge), var(--shadow-1);
  overflow: hidden;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  position: relative;
}
.row + .row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 0.5px;
  background: var(--separator);
}
.row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.row-title {
  font: 500 14px/1.4 var(--font);
  color: var(--label);
}
.row-sub {
  font: var(--t-footnote);
  color: var(--label-3);
}
.row-value {
  color: var(--label-2);
  font: var(--t-callout);
}
button.row {
  width: 100%;
  text-align: left;
  transition: background var(--d-fast);
}
button.row:hover {
  background: var(--hover);
}
.row-icon {
  --tint: var(--row-tint, var(--gray));
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tint) 85%, #fff), var(--tint) 50%, color-mix(in srgb, var(--tint) 80%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 6px -2px color-mix(in srgb, var(--tint) 60%, transparent);
}
.row-icon .icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

/* ---------- Empty state ---------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 56px 24px;
  color: var(--label-3);
  animation: rise-in var(--d-slow) var(--ease-out);
}
.empty > .icon {
  width: 44px;
  height: 44px;
  stroke-width: 1.3;
  color: var(--label-4);
  animation: float-y 5s var(--ease) infinite;
}
.empty h3 {
  font: var(--t-title3);
  color: var(--label);
}
.empty p {
  font: var(--t-subhead);
  max-width: 360px;
  line-height: 1.55;
}

/* ---------- Search field ---------- */
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search .icon {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--label-3);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: var(--control-h);
  padding: 0 12px 0 32px;
  border-radius: var(--r-full);
  border: 0;
  background: var(--fill-4);
  box-shadow: inset 0 0 0 0.5px var(--separator);
  font: var(--t-callout);
  transition: background var(--d-fast), box-shadow var(--d);
}
.search input::placeholder {
  color: var(--label-3);
}
.search input:focus {
  box-shadow: var(--ring);
  background: var(--bg-secondary);
}

/* ---------- Brand mark ---------- */
@font-face {
  font-family: "Vibe Brand";
  src: url("../../fonts/sora-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 560 16px/1 "Vibe Brand", var(--font-display);
  letter-spacing: -0.02em;
}
.brand-mark svg {
  width: 32px;
  height: 32px;
  flex: none;
  transition: transform var(--d-slow) var(--spring);
}
.brand-mark:hover svg {
  transform: scale(1.04);
}
