/* ============================================================
   MERION × shadcn — COMPONENT STYLES
   All driven by the token bridge in tokens.css.
   ============================================================ */

/* ---------------- ICON (Remix webfont) ---------------- */
.ic { display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-style: normal; font-size: 16px; flex: none; }

/* ---------------- BUTTON ---------------- */
.btn {
  font-family: var(--ui-font);
  font-size: 14px; font-weight: 600; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; height: 40px;
  border: var(--border-weight) solid transparent;
  border-radius: var(--radius);
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .04s ease;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-glow, 0 0 0 2px var(--background)), 0 0 0 2px var(--ring); }
.btn:active { transform: translateY(.5px); }
.btn .ic { font-size: 16px; }
.btn:disabled { opacity: .5; pointer-events: none; }

.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, var(--foreground)); box-shadow: var(--active-glow); }

.btn-brand { background: var(--brand); color: var(--brand-contrast); }
.btn-brand:hover { background: color-mix(in srgb, var(--brand) 86%, #000); box-shadow: var(--active-glow); }

.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-secondary:hover { background: color-mix(in srgb, var(--secondary) 80%, var(--foreground)); }

.btn-outline { background: transparent; color: var(--foreground); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--accent); }

.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--accent); }

.btn-link { background: transparent; color: var(--brand); padding: 0 2px; height: auto; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.btn-destructive { background: var(--destructive); color: var(--destructive-foreground); }
.btn-destructive:hover { background: color-mix(in srgb, var(--destructive) 86%, #000); }

.btn-sm { height: 32px; font-size: 13px; padding: 0 12px; border-radius: calc(var(--radius) - 2px); }
.btn-lg { height: 48px; font-size: 15px; padding: 0 22px; border-radius: var(--radius-md); }
.btn-icon { width: 40px; height: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; height: 32px; }

/* ---------------- BADGE ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid transparent;
}
.badge .ic { font-size: 12px; }
.badge-solid { background: var(--primary); color: var(--primary-foreground); }
.badge-brand { background: var(--brand); color: var(--brand-contrast); }
.badge-soft { background: var(--brand-tint); color: var(--brand); border-color: var(--brand-tint-border); }
.badge-outline { background: transparent; color: var(--foreground); border-color: var(--border-strong); }
.badge-muted { background: var(--secondary); color: var(--muted-foreground); }
.badge-success { background: color-mix(in srgb, var(--success) 14%, var(--background)); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.badge-destructive { background: color-mix(in srgb, var(--destructive) 14%, var(--background)); color: var(--destructive); border-color: color-mix(in srgb, var(--destructive) 30%, transparent); }
.badge-square { border-radius: var(--radius); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------- CARD ---------------- */
.card {
  background: var(--card); color: var(--card-foreground);
  border: var(--border-weight) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px 24px; }
.card-header { padding: 22px 24px 0; display: flex; flex-direction: column; gap: 4px; }
.card-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.card-desc { font-size: 13.5px; color: var(--muted-foreground); line-height: 1.5; }
.card-body { padding: 16px 24px; }
.card-footer { padding: 0 24px 22px; display: flex; gap: 10px; align-items: center; }
.card-sep { height: 1px; background: var(--border); margin: 0; border: 0; }

/* ---------------- INPUT / TEXTAREA ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.ui-label { font-size: 13px; font-weight: 600; color: var(--foreground); }
.ui-hint { font-size: 12px; color: var(--muted-foreground); }
.ui-error { font-size: 12px; color: var(--destructive); font-weight: 500; }

.input, .textarea, .select-trigger {
  font-family: var(--ui-font); font-size: 14px; color: var(--foreground);
  background: var(--background);
  border: var(--border-weight) solid var(--input);
  border-radius: var(--radius);
  height: 40px; padding: 0 12px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--muted-foreground); }
.input:focus, .textarea:focus, .select-trigger:focus-visible {
  outline: none; border-color: var(--ring);
  box-shadow: var(--focus-glow, 0 0 0 3px color-mix(in srgb, var(--ring) 18%, transparent));
}
.input:disabled, .textarea:disabled { opacity: .55; cursor: not-allowed; }
.input.has-error, .textarea.has-error { border-color: var(--destructive); }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--muted-foreground); pointer-events: none; }
.input-icon .input { padding-left: 36px; }

/* ---------------- SELECT (custom) ---------------- */
.select { position: relative; }
.select-trigger { display: flex; align-items: center; justify-content: space-between; cursor: pointer; gap: 8px; }
.select-trigger .ic { font-size: 16px; color: var(--muted-foreground); transition: transform .18s ease; }
.select[data-open="true"] .select-trigger .ic { transform: rotate(180deg); }
.select-trigger .placeholder { color: var(--muted-foreground); }
.select-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: var(--popover); color: var(--popover-foreground);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow); padding: 5px; max-height: 240px; overflow: auto;
}
.select-item {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  font-size: 14px; padding: 8px 10px; border-radius: var(--radius); cursor: pointer;
}
.select-item:hover { background: var(--accent); }
.select-item[data-selected="true"] { color: var(--brand); font-weight: 600; }
.select-item .ic { font-size: 15px; }

/* ---------------- CHECKBOX ---------------- */
.checkbox-row { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.checkbox {
  width: 18px; height: 18px; flex: none; border: 1.5px solid var(--border-strong);
  border-radius: 5px; background: var(--background);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.checkbox .ic { font-size: 13px; color: var(--brand-contrast); opacity: 0; transform: scale(.6); transition: .15s ease; }
.checkbox[data-checked="true"] { background: var(--brand); border-color: var(--brand); }
.checkbox[data-checked="true"] .ic { opacity: 1; transform: scale(1); }
.radio { border-radius: 50%; }
.radio-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); opacity: 0; transform: scale(.5); transition: .15s ease; }
.radio[data-checked="true"] { border-color: var(--brand); }
.radio[data-checked="true"] .radio-dot { opacity: 1; transform: scale(1); }

/* ---------------- SWITCH ---------------- */
.switch {
  width: 42px; height: 24px; border-radius: var(--radius-pill); flex: none;
  background: var(--secondary); border: 1px solid var(--border);
  position: relative; cursor: pointer; transition: background .18s ease, border-color .18s ease;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3);
  transition: transform .18s cubic-bezier(.4,0,.2,1);
}
.switch[data-checked="true"] { background: var(--brand); border-color: var(--brand); box-shadow: var(--active-glow); }
.switch[data-checked="true"]::after { transform: translateX(18px); }

/* ---------------- SLIDER ---------------- */
.slider { position: relative; height: 24px; display: flex; align-items: center; cursor: pointer; }
.slider-track { height: 5px; width: 100%; border-radius: var(--radius-pill); background: var(--secondary); position: relative; }
.slider-range { position: absolute; height: 100%; left: 0; border-radius: inherit; background: var(--brand); }
.slider-thumb {
  position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  background: var(--background); border: 2px solid var(--brand); transform: translate(-50%, -50%);
  box-shadow: var(--shadow-sm); transition: box-shadow .15s ease;
}
.slider-thumb:focus-visible { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }

/* ---------------- PROGRESS ---------------- */
.progress { height: 8px; width: 100%; border-radius: var(--radius-pill); background: var(--secondary); overflow: hidden; }
.progress-bar { height: 100%; background: var(--brand); border-radius: inherit; transition: width .4s cubic-bezier(.4,0,.2,1); box-shadow: var(--active-glow); }

/* ---------------- AVATAR ---------------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--secondary); color: var(--foreground); font-weight: 600; font-size: 14px; border: 1px solid var(--border); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar-brand { background: var(--brand-tint); color: var(--brand); border-color: var(--brand-tint-border); }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -10px; box-shadow: 0 0 0 2px var(--card); }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-status { position: relative; }
.avatar-status::after { content: ""; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 2px var(--card); }

/* ---------------- TABS ---------------- */
.tabs-list { display: inline-flex; gap: 4px; padding: 4px; background: var(--secondary); border-radius: var(--radius-md); }
.tab { font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: var(--radius); border: none; background: transparent; color: var(--muted-foreground); cursor: pointer; transition: .15s ease; }
.tab:hover { color: var(--foreground); }
.tab[data-active="true"] { background: var(--background); color: var(--foreground); box-shadow: var(--shadow-sm); }
/* underline variant */
.tabs-list.underline { background: transparent; padding: 0; gap: 22px; border-bottom: 1px solid var(--border); border-radius: 0; }
.tabs-list.underline .tab { padding: 10px 2px; border-radius: 0; position: relative; }
.tabs-list.underline .tab[data-active="true"] { background: transparent; color: var(--brand); box-shadow: none; }
.tabs-list.underline .tab[data-active="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); box-shadow: var(--active-glow); }
.tab-panel { padding-top: 18px; font-size: 14px; color: var(--foreground); line-height: 1.6; }

/* ---------------- ACCORDION ---------------- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.acc-item + .acc-item { border-top: 1px solid var(--border); }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: transparent; border: none; cursor: pointer; font-family: var(--ui-font); font-size: 15px; font-weight: 600; color: var(--foreground); text-align: left; }
.acc-trigger:hover { color: var(--brand); }
.acc-trigger .ic { font-size: 18px; color: var(--muted-foreground); transition: transform .2s ease; flex: none; }
.acc-item[data-open="true"] .acc-trigger .ic { transform: rotate(180deg); color: var(--brand); }
.acc-content { overflow: hidden; transition: height .25s ease; }
.acc-content-inner { padding: 0 20px 18px; font-size: 14px; color: var(--muted-foreground); line-height: 1.7; }

/* ---------------- TABLE ---------------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; overflow-y: hidden; background: var(--card);
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; -webkit-overflow-scrolling: touch; }
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--foreground) 18%, transparent); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table thead th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); padding: 12px 18px; background: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table tbody td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--foreground); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: var(--accent); }
.table .th-sort { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.table .th-sort .ic { font-size: 13px; }
.cell-strong { font-weight: 600; }
.cell-muted { color: var(--muted-foreground); }
.table-checkbox { width: 1px; }

/* ---------------- DIALOG / MODAL ---------------- */
.overlay { position: fixed; inset: 0; background: rgba(8,26,31,.55); backdrop-filter: blur(2px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .15s ease; }
[data-theme="dark"] .overlay { background: rgba(0,0,0,.65); }
.dialog { background: var(--popover); color: var(--popover-foreground); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow); width: 100%; max-width: 460px; animation: pop .18s cubic-bezier(.4,0,.2,1); }
.dialog-pad { padding: 26px; }
.dialog-header { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.dialog-title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.dialog-desc { font-size: 14px; color: var(--muted-foreground); line-height: 1.6; }
.dialog-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.dialog-close { position: absolute; top: 16px; right: 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------------- DROPDOWN / POPOVER ---------------- */
.menu { position: absolute; z-index: 50; min-width: 200px; background: var(--popover); color: var(--popover-foreground); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 6px; animation: pop .14s ease; }
.menu-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); padding: 8px 10px 4px; }
.menu-item { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 10px; border-radius: var(--radius); cursor: pointer; color: var(--foreground); }
.menu-item:hover { background: var(--accent); }
.menu-item .ic { font-size: 15px; color: var(--muted-foreground); }
.menu-item .shortcut { margin-left: auto; font-size: 12px; color: var(--muted-foreground); }
.menu-item.danger { color: var(--destructive); }
.menu-item.danger .ic { color: var(--destructive); }
.menu-sep { height: 1px; background: var(--border); margin: 6px -6px; }
.popover { position: absolute; z-index: 50; background: var(--popover); color: var(--popover-foreground); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 16px; width: 260px; animation: pop .14s ease; }

/* ---------------- TOOLTIP ---------------- */
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--foreground); color: var(--background); font-size: 12.5px; font-weight: 500; padding: 6px 10px; border-radius: var(--radius); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .14s ease, transform .14s ease; z-index: 60; }
.tooltip-wrap:hover .tooltip { opacity: 1; transform: translateX(-50%) translateY(-2px); }
.tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--foreground); }

/* ---------------- ALERT ---------------- */
.alert { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--card); }
.alert .ic { font-size: 18px; margin-top: 1px; }
.alert-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.alert-desc { font-size: 13.5px; color: var(--muted-foreground); line-height: 1.55; }
.alert-brand { border-color: var(--brand-tint-border); background: var(--brand-tint); }
.alert-brand .ic, .alert-brand .alert-title { color: var(--brand); }
.alert-destructive { border-color: color-mix(in srgb, var(--destructive) 35%, transparent); background: color-mix(in srgb, var(--destructive) 10%, var(--background)); }
.alert-destructive .ic, .alert-destructive .alert-title { color: var(--destructive); }
.alert-success { border-color: color-mix(in srgb, var(--success) 35%, transparent); background: color-mix(in srgb, var(--success) 10%, var(--background)); }
.alert-success .ic, .alert-success .alert-title { color: var(--success); }

/* ---------------- TOAST ---------------- */
.toast-region { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: 340px; max-width: calc(100vw - 44px); }
.toast { display: flex; gap: 12px; align-items: flex-start; background: var(--popover); color: var(--popover-foreground); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 14px 16px; animation: toastIn .26s cubic-bezier(.4,0,.2,1); }
.toast.out { animation: toastOut .22s ease forwards; }
.toast .ic { font-size: 18px; margin-top: 1px; color: var(--brand); }
.toast-title { font-size: 14px; font-weight: 600; }
.toast-desc { font-size: 13px; color: var(--muted-foreground); margin-top: 2px; line-height: 1.5; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ---------------- CALENDAR ---------------- */
.calendar { width: 280px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-size: 14px; font-weight: 600; }
.cal-nav { display: flex; gap: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { font-size: 11px; font-weight: 600; color: var(--muted-foreground); text-align: center; padding: 6px 0; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; border-radius: var(--radius); cursor: pointer; border: none; background: transparent; color: var(--foreground); font-family: var(--ui-font); }
.cal-day:hover { background: var(--accent); }
.cal-day.outside { color: var(--muted-foreground); opacity: .5; }
.cal-day.today { font-weight: 700; color: var(--brand); }
.cal-day.selected { background: var(--brand); color: var(--brand-contrast); font-weight: 600; box-shadow: var(--active-glow); }
.cal-day.in-range { background: var(--brand-tint); border-radius: 0; }
.cal-day:disabled { opacity: .3; cursor: not-allowed; }

/* ---------------- BREADCRUMB ---------------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted-foreground); text-decoration: none; }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb .sep { color: var(--muted-foreground); display: inline-flex; }
.breadcrumb .sep .ic { font-size: 14px; }
.breadcrumb .current { color: var(--foreground); font-weight: 600; }

/* ---------------- PAGINATION ---------------- */
.pagination { display: flex; align-items: center; gap: 4px; }
.page-btn { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); background: var(--card); color: var(--foreground); border-radius: var(--radius); font-size: 14px; font-weight: 500; cursor: pointer; transition: .14s ease; }
.page-btn:hover { background: var(--accent); }
.page-btn[data-active="true"] { background: var(--brand); color: var(--brand-contrast); border-color: var(--brand); }
.page-btn:disabled { opacity: .45; pointer-events: none; }
.page-btn .ic { font-size: 15px; }

/* ---------------- LAYOUT HELPERS ---------------- */
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }

/* ================================================================
   EXTRA COMPONENTS
   ================================================================ */

/* ---------------- SKELETON ---------------- */
.skeleton { position: relative; overflow: hidden; background: var(--muted); border-radius: var(--radius); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--foreground) 8%, transparent), transparent);
  animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skeleton-text { height: 12px; border-radius: var(--radius-pill); }
.skeleton-circle { border-radius: 50%; }

/* ---------------- SPINNER ---------------- */
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--border); border-top-color: var(--brand); animation: spin .7s linear infinite; display: inline-block; flex: none; }
.spinner.sm { width: 15px; height: 15px; border-width: 2px; }
.spinner.lg { width: 32px; height: 32px; border-width: 3px; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ---------------- SEPARATOR ---------------- */
.separator { height: 1px; width: 100%; background: var(--border); border: 0; }
.separator.vertical { width: 1px; height: auto; align-self: stretch; }
.separator-label { display: flex; align-items: center; gap: 14px; color: var(--muted-foreground); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.separator-label::before, .separator-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------------- TOGGLE / TOGGLE GROUP ---------------- */
.toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; font-family: var(--ui-font); font-size: 14px; font-weight: 600; color: var(--foreground); background: transparent; border: var(--border-weight) solid var(--border-strong); border-radius: var(--radius); cursor: pointer; transition: .14s ease; }
.toggle .ic { font-size: 17px; }
.toggle:hover { background: var(--accent); }
.toggle[data-on="true"] { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); box-shadow: var(--active-glow); }
.toggle-group { display: inline-flex; }
.toggle-group .toggle { border-radius: 0; border-right-width: 0; }
.toggle-group .toggle:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.toggle-group .toggle:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-right-width: var(--border-weight); }
.toggle-group .toggle[data-on="true"] + .toggle { border-left-color: var(--brand); }
