/* ============================================================
   VivahTrack — design system
   Palette: deep plum #7C2D5E · marigold #C99A3C · ivory #FBF7F1
   Type:    Fraunces (display serif) · Archivo (body grotesque)
   ============================================================ */
:root {
  --vt-plum: #7C2D5E;
  --vt-plum-deep: #5C1F45;
  --vt-plum-ink: #3A2230;
  --vt-marigold: #C99A3C;
  --vt-marigold-soft: #F3E5C8;
  --vt-ivory: #FBF7F1;
  --vt-paper: #FFFFFF;
  --vt-line: #EADFD4;
  --vt-muted: #7a5f6e;
  --vt-green: #2E7D52;
  --vt-green-bg: #E3F2E9;
  --vt-amber: #B07A18;
  --vt-amber-bg: #FBF0D9;
  --vt-red: #B3362B;
  --vt-red-bg: #FBE3E0;
  --vt-radius: 14px;
  --vt-shadow: 0 1px 2px rgba(58, 34, 48, .06), 0 8px 24px -12px rgba(58, 34, 48, .18);
  --vt-side-w: 232px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Archivo', system-ui, sans-serif;
  background: var(--vt-ivory);
  color: var(--vt-plum-ink);
  font-size: .925rem;
}
a { color: var(--vt-plum); text-decoration: none; }
a:hover { color: var(--vt-plum-deep); }

.vt-display, h1.vt-display, h2.vt-display, h4.vt-display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--vt-plum-ink);
}
h1.vt-display { font-size: 1.65rem; }
.vt-h { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem; }

.min-w-0 { min-width: 0; }

/* ---------- Buttons ---------- */
.btn-vt {
  background: var(--vt-plum); border: 1px solid var(--vt-plum); color: #fff;
}
.btn-vt:hover, .btn-vt:focus { background: var(--vt-plum-deep); border-color: var(--vt-plum-deep); color: #fff; }
.btn-outline-vt { border: 1px solid var(--vt-plum); color: var(--vt-plum); background: transparent; }
.btn-outline-vt:hover { background: var(--vt-plum); color: #fff; }
.btn-success-soft { background: var(--vt-green-bg); color: var(--vt-green); border: 1px solid transparent; }
.btn-success-soft:hover { background: var(--vt-green); color: #fff; }
.btn:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--vt-marigold); outline-offset: 2px; box-shadow: none !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--vt-plum); box-shadow: 0 0 0 .2rem rgba(124, 45, 94, .12);
}
.form-check-input:checked { background-color: var(--vt-plum); border-color: var(--vt-plum); }

/* ============================================================
   App shell
   ============================================================ */
.vt-app { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.vt-side {
  width: var(--vt-side-w);
  flex: 0 0 var(--vt-side-w);
  background: linear-gradient(180deg, var(--vt-plum) 0%, var(--vt-plum-deep) 100%);
  color: #fff;
  flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  transition: width .2s, flex-basis .2s;
}
.vt-brand {
  display: flex; align-items: center; gap: .6rem;
  padding: 1rem .9rem; color: #fff;
}
.vt-brand:hover { color: #fff; }
.vt-mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: 0 0 38px;
  background: var(--vt-marigold); color: var(--vt-plum-deep);
  border-radius: 11px; font-weight: 700; letter-spacing: .04em;
  font-family: 'Fraunces', serif;
}
.vt-mono-lg { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; background: var(--vt-marigold); color: var(--vt-plum-deep); font-family: 'Fraunces', serif; font-weight: 700; }
.vt-word { font-family: 'Fraunces', serif; font-size: 1.12rem; }
.vt-word b { color: var(--vt-marigold); font-weight: 600; }

.vt-nav { flex: 1; overflow-y: auto; padding: .4rem .55rem 1rem; }
.vt-nav a {
  display: flex; align-items: center; gap: .65rem;
  color: rgba(255, 255, 255, .82);
  padding: .52rem .7rem; border-radius: 9px; margin-bottom: 2px;
  font-size: .9rem;
}
.vt-nav a i { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.vt-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.vt-nav a.active { background: var(--vt-marigold); color: var(--vt-plum-deep); font-weight: 600; }
.vt-nav-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255, 255, 255, .45); padding: .9rem .7rem .3rem;
}
.vt-collapse {
  background: rgba(255, 255, 255, .08); border: 0; color: rgba(255, 255, 255, .7);
  padding: .55rem; width: 100%;
}
.vt-collapse:hover { color: #fff; }

/* collapsed sidebar */
.vt-side.collapsed { width: 64px; flex-basis: 64px; }
.vt-side.collapsed .vt-word, .vt-side.collapsed .vt-nav a span, .vt-side.collapsed .vt-nav-label { display: none; }
.vt-side.collapsed .vt-nav a { justify-content: center; }
.vt-side.collapsed .vt-collapse i { transform: rotate(180deg); }

/* ---------- Main column ---------- */
.vt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vt-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--vt-paper); border-bottom: 1px solid var(--vt-line);
  padding: .55rem .9rem;
  position: sticky; top: 0; z-index: 1030;
}
.vt-top-left, .vt-top-right { display: flex; align-items: center; gap: .6rem; }

.vt-switch {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--vt-marigold-soft); border: 1px solid var(--vt-line);
  color: var(--vt-plum-deep); border-radius: 9px; padding: .38rem .7rem; font-weight: 600; font-size: .85rem;
}
.vt-switch-menu { min-width: 300px; }
.vt-switch-menu .dropdown-item { display: flex; align-items: center; gap: .5rem; white-space: normal; }

.vt-search {
  display: flex; align-items: center; gap: .45rem;
  background: var(--vt-ivory); border: 1px solid var(--vt-line);
  border-radius: 9px; padding: .3rem .65rem; min-width: 240px;
}
.vt-search input { border: 0; background: transparent; outline: none; width: 100%; font-size: .875rem; }
.vt-search i { color: var(--vt-muted); }

.vt-updated { font-size: .75rem; color: var(--vt-muted); }

.vt-bell { position: relative; background: transparent; border: 0; font-size: 1.2rem; color: var(--vt-plum-ink); padding: .3rem .45rem; }
.vt-bell-dot {
  position: absolute; top: 0; right: 0;
  background: var(--vt-red); color: #fff; font-size: .62rem; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.vt-bell-menu { width: 340px; padding: 0; }
.vt-bell-head { display: flex; justify-content: space-between; align-items: center; padding: .65rem .85rem; border-bottom: 1px solid var(--vt-line); }
.vt-bell-list { max-height: 330px; overflow-y: auto; }
.vt-bell-list .item { display: block; padding: .55rem .85rem; border-bottom: 1px solid var(--vt-ivory); color: inherit; }
.vt-bell-list .item:hover { background: var(--vt-ivory); }
.vt-bell-list .item.unread { background: var(--vt-marigold-soft); }
.vt-bell-foot { display: block; text-align: center; padding: .55rem; border-top: 1px solid var(--vt-line); font-weight: 600; }

.vt-user { display: inline-flex; align-items: center; gap: .5rem; background: transparent; border: 0; font-weight: 600; font-size: .875rem; color: var(--vt-plum-ink); }

.vt-offline {
  background: var(--vt-amber-bg); color: var(--vt-amber);
  padding: .45rem .9rem; font-size: .85rem; font-weight: 600;
  display: flex; align-items: center; gap: .5rem;
}

.vt-content { padding: 1.1rem; flex: 1; }

/* ---------- Page head ---------- */
.vt-page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}

/* ============================================================
   Cards, KPIs, lists, tables
   ============================================================ */
.vt-card {
  background: var(--vt-paper);
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  box-shadow: var(--vt-shadow);
  overflow: hidden;
}
.vt-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .7rem .95rem; border-bottom: 1px solid var(--vt-line);
}
.vt-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .7rem .95rem; border-top: 1px solid var(--vt-line); background: var(--vt-ivory);
}
.vt-card-alert { border-color: var(--vt-red); }
.vt-card-alert .vt-card-head { background: var(--vt-red-bg); }

.vt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; }
.vt-kpis-4 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.vt-kpi {
  background: var(--vt-paper); border: 1px solid var(--vt-line); border-radius: var(--vt-radius);
  padding: .75rem .9rem; display: flex; flex-direction: column; color: inherit;
  box-shadow: var(--vt-shadow);
}
.vt-kpi i { font-size: 1.05rem; color: var(--vt-plum); }
.vt-kpi b { font-size: 1.45rem; font-family: 'Fraunces', serif; line-height: 1.15; }
.vt-kpi span { font-size: .76rem; color: var(--vt-muted); }
.vt-kpi.kpi-amber { border-color: var(--vt-amber); } .vt-kpi.kpi-amber b, .vt-kpi.kpi-amber i { color: var(--vt-amber); }
.vt-kpi.kpi-red { border-color: var(--vt-red); } .vt-kpi.kpi-red b, .vt-kpi.kpi-red i { color: var(--vt-red); }
a.vt-kpi:hover { border-color: var(--vt-plum); }

.vt-list { list-style: none; margin: 0; padding: 0; }
.vt-list > li {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .95rem; border-bottom: 1px solid var(--vt-ivory);
}
.vt-list > li:last-child { border-bottom: 0; }
.vt-list-lg > li { padding: .85rem .95rem; }
.vt-list > li.is-od { border-left: 3px solid var(--vt-red); }
.vt-li-ic { color: var(--vt-plum); font-size: 1.05rem; }
.vt-list-tasks > li { align-items: flex-start; }
.vt-bulk-chk { flex: none; margin-top: 0; }
.vt-drawer-in { font-size: .92rem; }

.vt-table th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--vt-muted); font-weight: 600; border-bottom-color: var(--vt-line) !important;
}
.vt-table td { border-bottom-color: var(--vt-ivory); }
.vt-table thead th { padding: .55rem .95rem; }
.vt-table tbody td { padding: .55rem .95rem; vertical-align: middle; }

.vt-empty {
  text-align: center; color: var(--vt-muted); padding: 2rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.vt-empty i { font-size: 1.7rem; color: var(--vt-marigold); }

/* ---------- Filters / pills / bulk bar ---------- */
.vt-filters {
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: center;
  background: var(--vt-paper); border: 1px solid var(--vt-line); border-radius: var(--vt-radius);
  padding: .65rem .8rem; margin-bottom: 1rem;
}
.vt-filters .form-control, .vt-filters .form-select { width: auto; min-width: 130px; flex: 0 1 auto; }
.vt-filters input[type=search] { flex: 1 1 180px; }
.vt-filter-chk { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; margin: 0; }

.vt-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.vt-pills a {
  padding: .35rem .8rem; border-radius: 999px; font-size: .84rem; font-weight: 600;
  border: 1px solid var(--vt-line); color: var(--vt-plum-ink); background: var(--vt-paper);
}
.vt-pills a.on { background: var(--vt-plum); border-color: var(--vt-plum); color: #fff; }

.vt-bulkbar {
  position: sticky; top: 56px; z-index: 1020;
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  background: var(--vt-plum-ink); color: #fff;
  border-radius: var(--vt-radius); padding: .55rem .8rem; margin-bottom: 1rem;
  box-shadow: var(--vt-shadow);
}

/* ============================================================
   Chips, dots, flags, progress
   ============================================================ */
.vt-chip {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  border-radius: 999px; padding: .14rem .55rem; white-space: nowrap;
}
.vt-chip-green { background: var(--vt-green-bg); color: var(--vt-green); }
.vt-chip-amber { background: var(--vt-amber-bg); color: var(--vt-amber); }
.vt-chip-red   { background: var(--vt-red-bg);   color: var(--vt-red); }
.vt-chip-muted { background: var(--vt-ivory);    color: var(--vt-muted); }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot-green { background: var(--vt-green); }
.dot-amber { background: var(--vt-amber); }
.dot-red   { background: var(--vt-red); }

.hdot { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .84rem; }
.hdot i { width: 10px; height: 10px; border-radius: 3px; background: var(--hc, var(--vt-plum)); flex: 0 0 10px; }

.vt-lvl {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; font-weight: 800; font-size: .76rem;
}
.vt-lvl-1 { background: var(--vt-amber-bg); color: var(--vt-amber); }
.vt-lvl-2 { background: var(--vt-red-bg); color: var(--vt-red); }

.vt-od { color: var(--vt-red); font-weight: 700; font-size: .76rem; white-space: nowrap; }
.od-badge {
  background: var(--vt-red); color: #fff; font-size: .66rem; font-weight: 700;
  border-radius: 999px; padding: .05rem .4rem; margin-left: .35rem;
}

.pwrap { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; }
.pbar { flex: 1; height: 7px; background: var(--vt-ivory); border-radius: 99px; overflow: hidden; border: 1px solid var(--vt-line); }
.pbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--vt-plum), var(--vt-marigold)); border-radius: 99px; }
.pwrap b { font-size: .74rem; }

.avt { border-radius: 50%; object-fit: cover; }
.avt-txt {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--vt-marigold-soft); color: var(--vt-plum-deep);
  font-weight: 700; font-size: .7rem; flex: none;
}

.vt-dchip {
  display: inline-flex; align-items: center;
  background: var(--vt-plum); color: var(--vt-marigold);
  font-family: 'Fraunces', serif; font-weight: 700; font-size: .76rem;
  border-radius: 7px; padding: .1rem .5rem; white-space: nowrap;
}
.vt-dchip-lg { font-size: .95rem; padding: .22rem .7rem; }

.vt-att-mini { font-weight: 700; font-size: .8rem; color: var(--vt-green); white-space: nowrap; }
.vt-att-mini.bad { color: var(--vt-red); }

.vt-locknum { font-family: 'Fraunces', serif; font-weight: 700; color: var(--vt-plum); }

/* ============================================================
   Wedding cards grid
   ============================================================ */
.vt-wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: .8rem; padding: .8rem; }
.vt-wgrid-row { padding: 0; margin-bottom: .25rem; }
.vt-wcard {
  display: block; background: var(--vt-paper);
  border: 1px solid var(--vt-line); border-radius: var(--vt-radius);
  padding: .85rem .95rem; color: inherit; box-shadow: var(--vt-shadow);
  transition: border-color .15s, transform .15s;
}
.vt-wcard:hover { border-color: var(--vt-plum); color: inherit; transform: translateY(-1px); }
.vt-wcard.sel { border-color: var(--vt-plum); box-shadow: 0 0 0 2px rgba(124, 45, 94, .18), var(--vt-shadow); }
.vt-wcode { font-size: .72rem; font-weight: 700; letter-spacing: .07em; color: var(--vt-marigold); text-transform: uppercase; }
.vt-wtitle { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.vt-wmeta { display: flex; flex-wrap: wrap; gap: .35rem .8rem; font-size: .78rem; color: var(--vt-muted); margin-top: .4rem; align-items: center; }
.vt-wmeta i { margin-right: .2rem; }
.vt-wfoot { display: flex; align-items: center; gap: .45rem; margin-top: .55rem; font-size: .8rem; }

/* ============================================================
   Tasks: checklist, board, calendar
   ============================================================ */
.vt-tasklist { list-style: none; margin: 0; padding: 0; }
.vt-tasklist > li { border-bottom: 1px solid var(--vt-ivory); padding: .55rem .95rem; }
.vt-tasklist > li:last-child { border-bottom: 0; }
.vt-tasklist > li.is-od { border-left: 3px solid var(--vt-red); }
.vt-tasklist > li.is-done .vt-task-title { text-decoration: line-through; color: var(--vt-muted); }
.vt-task-row { display: flex; align-items: center; gap: .6rem; }
.vt-task-title { font-weight: 600; color: inherit; display: inline-block; }
.vt-task-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .76rem; color: var(--vt-muted); align-items: center; }
.vt-subtasks { list-style: none; margin: .3rem 0 0 2rem; padding: 0; }
.vt-subtasks li { display: flex; align-items: center; gap: .45rem; font-size: .84rem; padding: .22rem 0; }
.vt-subtasks li.is-done a { text-decoration: line-through; color: var(--vt-muted); }

/* board */
.vt-board { display: grid; grid-template-columns: repeat(4, minmax(235px, 1fr)); gap: .8rem; overflow-x: auto; align-items: start; }
.vt-col { background: var(--vt-ivory); border: 1px solid var(--vt-line); border-radius: var(--vt-radius); }
.vt-col-head { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; font-size: .85rem; border-bottom: 2px solid var(--vt-line); }
.vt-col-head span { background: var(--vt-paper); border-radius: 999px; padding: 0 .5rem; font-weight: 700; font-size: .74rem; }
.vt-col-pending .vt-col-head, .vt-col-head.vt-col-pending { border-bottom-color: var(--vt-muted); }
.vt-col-head.vt-col-in_progress { border-bottom-color: var(--vt-marigold); }
.vt-col-head.vt-col-blocked { border-bottom-color: var(--vt-red); }
.vt-col-head.vt-col-completed { border-bottom-color: var(--vt-green); }
.vt-col-body { padding: .55rem; min-height: 90px; display: flex; flex-direction: column; gap: .5rem; }
.vt-bcard {
  background: var(--vt-paper); border: 1px solid var(--vt-line); border-radius: 11px;
  padding: .6rem .7rem; cursor: grab; box-shadow: var(--vt-shadow);
}
.vt-bcard.is-od { border-left: 3px solid var(--vt-red); }
.vt-bcard.sortable-ghost { opacity: .4; }
.vt-col-empty { color: var(--vt-muted); font-size: .8rem; text-align: center; padding: 1rem 0; border: 1px dashed var(--vt-line); border-radius: 9px; }

/* calendar */
.vt-cal { padding: .6rem; }
.vt-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.vt-cal-head div { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--vt-muted); text-align: center; padding: .3rem 0; }
.vt-cal-cell { background: var(--vt-ivory); border: 1px solid var(--vt-line); border-radius: 9px; min-height: 92px; padding: .3rem; overflow: hidden; }
.vt-cal-cell.off { background: transparent; border-color: transparent; }
.vt-cal-cell.today { border-color: var(--vt-marigold); box-shadow: inset 0 0 0 1px var(--vt-marigold); background: var(--vt-marigold-soft); }
.vt-cal-day { font-size: .72rem; font-weight: 700; color: var(--vt-muted); }
.vt-cal-fn {
  display: block; font-size: .68rem; font-weight: 700; color: var(--vt-plum-deep);
  background: var(--vt-marigold); border-radius: 5px; padding: .08rem .3rem; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vt-cal-task {
  display: block; font-size: .68rem; color: var(--vt-plum-ink);
  background: var(--vt-paper); border-left: 3px solid var(--hc, var(--vt-plum));
  border-radius: 4px; padding: .08rem .3rem; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vt-cal-task.od { background: var(--vt-red-bg); color: var(--vt-red); font-weight: 600; }
.vt-cal-task.st-completed { text-decoration: line-through; color: var(--vt-muted); }

/* ============================================================
   Timeline, head grid, drawer, tabs
   ============================================================ */
.vt-timeline { padding: .9rem; }
.vt-tl-item { display: grid; grid-template-columns: 92px 18px 1fr; gap: .6rem; padding-bottom: 1rem; position: relative; }
.vt-tl-item:not(:last-child)::after {
  content: ''; position: absolute; left: 100px; top: 18px; bottom: -4px;
  width: 2px; background: var(--vt-line);
}
.vt-tl-date { font-size: .76rem; font-weight: 700; text-align: right; color: var(--vt-muted); padding-top: .1rem; }
.vt-tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--vt-marigold); border: 2px solid var(--vt-paper); box-shadow: 0 0 0 2px var(--vt-marigold); margin-top: .2rem; justify-self: center; z-index: 1; }
.vt-tl-item.today .vt-tl-dot { background: var(--vt-plum); box-shadow: 0 0 0 2px var(--vt-plum); }
.vt-tl-item.past { opacity: .65; }
.vt-tl-item.past .vt-tl-dot { background: var(--vt-line); box-shadow: 0 0 0 2px var(--vt-line); }
.vt-timeline-page .vt-tl-body.vt-card { box-shadow: var(--vt-shadow); }

.vt-headgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .65rem; padding: .8rem; }
.vt-headcell {
  display: block; border: 1px solid var(--vt-line); border-radius: 11px;
  padding: .6rem .7rem; color: inherit; background: var(--vt-ivory);
}
.vt-headcell:hover { border-color: var(--vt-plum); color: inherit; }

.vt-headpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: .65rem; }
.vt-headopt {
  border: 1px solid var(--vt-line); border-radius: 11px; padding: .65rem .75rem;
  cursor: pointer; background: var(--vt-ivory); display: block; position: relative;
}
.vt-headopt input[type=checkbox] { position: absolute; top: .65rem; right: .65rem; }
.vt-headopt.on { border-color: var(--vt-plum); background: var(--vt-paper); box-shadow: 0 0 0 1px var(--vt-plum); }

.vt-drawer { width: min(520px, 100vw); }
.vt-dl { display: grid; grid-template-columns: 110px 1fr; gap: .25rem .75rem; font-size: .875rem; margin: 0; }
.vt-dl dt { color: var(--vt-muted); font-weight: 600; }
.vt-dl dd { margin: 0; }

.vt-tabs .nav-link { color: var(--vt-muted); font-size: .85rem; font-weight: 600; }
.vt-tabs .nav-link.active { color: var(--vt-plum); border-bottom-color: var(--vt-plum); }

.vt-fu { display: flex; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--vt-ivory); font-size: .875rem; }
.oc { flex: none; font-size: .68rem; font-weight: 800; border-radius: 6px; padding: .15rem .45rem; height: fit-content; }
.oc-green { background: var(--vt-green-bg); color: var(--vt-green); }
.oc-amber { background: var(--vt-amber-bg); color: var(--vt-amber); }
.oc-red { background: var(--vt-red-bg); color: var(--vt-red); }
.oc-muted { background: var(--vt-ivory); color: var(--vt-muted); }

.vt-comment { display: flex; gap: .55rem; padding: .5rem 0; border-bottom: 1px solid var(--vt-ivory); font-size: .875rem; }
.vt-mention { color: var(--vt-plum); font-weight: 700; }

.vt-photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.vt-photogrid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; border: 1px solid var(--vt-line); }
.vt-photo-preview { max-width: 100%; max-height: 180px; border-radius: 9px; margin-top: .5rem; border: 1px solid var(--vt-line); }

.vt-mini-list { list-style: none; margin: .3rem 0 0; padding: 0; font-size: .86rem; }
.vt-mini-list li { display: flex; align-items: baseline; gap: .45rem; padding: .22rem 0; }

.vt-inset { background: var(--vt-ivory); border: 1px solid var(--vt-line); border-radius: 10px; padding: .65rem .75rem; }

/* segmented radios */
.vt-seg { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.vt-seg label { margin: 0; }
.vt-seg input { position: absolute; opacity: 0; pointer-events: none; }
.vt-seg span {
  display: inline-flex; align-items: center; gap: .3rem;
  border: 1px solid var(--vt-line); border-radius: 999px;
  padding: .3rem .7rem; font-size: .8rem; font-weight: 600; cursor: pointer;
  background: var(--vt-paper); color: var(--vt-plum-ink);
}
.vt-seg input:checked + span { background: var(--vt-plum); border-color: var(--vt-plum); color: #fff; }
.vt-seg-outcome input:checked + span.oc-green { background: var(--vt-green); border-color: var(--vt-green); color: #fff; }
.vt-seg-outcome input:checked + span.oc-amber { background: var(--vt-amber); border-color: var(--vt-amber); color: #fff; }
.vt-seg-outcome input:checked + span.oc-red { background: var(--vt-red); border-color: var(--vt-red); color: #fff; }
.vt-seg-outcome input:checked + span.oc-muted { background: var(--vt-muted); border-color: var(--vt-muted); color: #fff; }
.vt-seg input:focus-visible + span { outline: 2px solid var(--vt-marigold); outline-offset: 2px; }

/* wizard steps / otp */
.vt-steps { display: flex; flex-wrap: wrap; gap: .4rem; }
.vt-steps span {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--vt-muted);
  border: 1px solid var(--vt-line); border-radius: 999px; padding: .3rem .8rem;
  background: var(--vt-paper); cursor: pointer;
}
.vt-steps span b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--vt-ivory); font-size: .72rem;
}
.vt-steps span.on { color: var(--vt-plum); border-color: var(--vt-plum); }
.vt-steps span.on b { background: var(--vt-plum); color: #fff; }

.vt-otp { letter-spacing: .55em; font-size: 1.4rem; font-weight: 700; }

/* bars (next-7-days) */
.vt-bars { list-style: none; margin: 0; padding: .8rem .95rem; }
.vt-bars li { display: flex; align-items: center; gap: .6rem; padding: .25rem 0; font-size: .82rem; }
.vt-bar-day { width: 56px; color: var(--vt-muted); font-weight: 600; }
.vt-bar { flex: 1; height: 9px; background: var(--vt-ivory); border-radius: 99px; overflow: hidden; border: 1px solid var(--vt-line); }
.vt-bar i { display: block; height: 100%; background: var(--vt-marigold); }

/* live feed */
.vt-feed { list-style: none; margin: 0; padding: .4rem .95rem; max-height: 360px; overflow-y: auto; }
.vt-feed li { display: flex; gap: .55rem; padding: .45rem 0; border-bottom: 1px solid var(--vt-ivory); font-size: .84rem; }
.vt-feed li:last-child { border-bottom: 0; }
.vt-feed i { color: var(--vt-marigold); }

/* attendance */
.vt-attsheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .8rem; }
.vt-attcard { padding: .85rem .95rem; }
.vt-attcard.is-absent { border-color: var(--vt-red); background: var(--vt-red-bg); }

/* buckets */
.bucket-red { border-left: 4px solid var(--vt-red); }
.bucket-amber { border-left: 4px solid var(--vt-amber); }
.bucket-muted { border-left: 4px solid var(--vt-line); }

/* toasts */
.vt-toast { background: var(--vt-plum-ink); color: #fff; border: 0; border-radius: 11px; }
.vt-toast .btn-close { filter: invert(1); }
.vt-toast-success { background: var(--vt-green); }
.vt-toast-error { background: var(--vt-red); }
.vt-toast-warning { background: var(--vt-amber); color: #fff; }

/* ============================================================
   Auth pages
   ============================================================ */
.vt-authpage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201, 154, 60, .18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(124, 45, 94, .12), transparent 55%),
    var(--vt-ivory);
  padding: 1rem;
}
.vt-auth {
  display: grid; grid-template-columns: 1.05fr 1fr; max-width: 880px; width: 100%;
  background: var(--vt-paper); border: 1px solid var(--vt-line);
  border-radius: 22px; overflow: hidden; box-shadow: var(--vt-shadow);
}
.vt-auth-narrow { grid-template-columns: 1fr; max-width: 460px; }
.vt-auth-art {
  background: linear-gradient(160deg, var(--vt-plum) 0%, var(--vt-plum-deep) 90%);
  color: #fff; padding: 2.4rem; display: flex; align-items: flex-end;
}
.vt-auth-art h1 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 2rem; margin: 1rem 0 .6rem; }
.vt-auth-art p { color: rgba(255, 255, 255, .75); margin: 0; }
.vt-auth-card { padding: 2.2rem; }
@media (max-width: 767px) { .vt-auth { grid-template-columns: 1fr; } .vt-auth-card { padding: 1.6rem; } }

/* ============================================================
   Mobile: bottom tab bar + mega menu
   ============================================================ */
.vt-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  display: flex; background: var(--vt-paper);
  border-top: 1px solid var(--vt-line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 18px -8px rgba(58, 34, 48, .25);
}
.vt-tabbar a, .vt-tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: .45rem 0 .4rem; font-size: .64rem; font-weight: 600;
  color: var(--vt-muted); background: transparent; border: 0;
}
.vt-tabbar i { font-size: 1.25rem; line-height: 1.1; }
.vt-tabbar a.active { color: var(--vt-plum); }
.vt-tabbar a.active i { color: var(--vt-plum); }

.vt-mega { border-radius: 18px 18px 0 0; max-height: 80vh; }
.vt-mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.vt-mega-grid a {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  background: var(--vt-ivory); border: 1px solid var(--vt-line); border-radius: 13px;
  padding: .9rem .4rem; color: var(--vt-plum-ink); font-size: .76rem; font-weight: 600; text-align: center;
}
.vt-mega-grid a i { font-size: 1.35rem; color: var(--vt-plum); }
.vt-mega-grid a:active { background: var(--vt-marigold-soft); }

@media (max-width: 991.98px) {
  .vt-content { padding: .85rem .85rem calc(76px + env(safe-area-inset-bottom)); }
  .vt-bulkbar { top: 50px; }
  h1.vt-display { font-size: 1.35rem; }
  .vt-board { grid-template-columns: repeat(4, 78vw); }
  .vt-cal-cell { min-height: 70px; }
  .vt-tl-item { grid-template-columns: 70px 16px 1fr; }
  .vt-tl-item:not(:last-child)::after { left: 77px; }
  .vt-filters .form-control, .vt-filters .form-select { flex: 1 1 45%; min-width: 0; }
}

/* ============================================================
   TV mode (war-room / attendance board on a large screen)
   ============================================================ */
.vt-tv { font-size: 1.08rem; }
.vt-tv .vt-card-head b { font-size: 1.15rem; }
.vt-tv .vt-chip { font-size: .85rem; }
.vt-tv .vt-list > li { padding: .85rem 1rem; }
.vt-tv .vt-kpi b { font-size: 2rem; }

/* ============================================================
   Print
   ============================================================ */
@media print {
  .vt-side, .vt-top, .vt-tabbar, .vt-filters, .vt-noprint, .vt-offline, .toast-container, .vt-bulkbar { display: none !important; }
  body { background: #fff; }
  .vt-content { padding: 0; }
  .vt-card, .vt-print-doc { border: 0; box-shadow: none; }
  a { color: inherit; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Theme picker (Settings › Appearance) ---------- */
.vt-theme-opt {
  display: flex; gap: .7rem; align-items: flex-start;
  border: 1px solid var(--vt-line); border-radius: var(--vt-radius);
  padding: .8rem .9rem; cursor: pointer; height: 100%;
  background: var(--vt-paper);
}
.vt-theme-opt.is-on { border-color: var(--vt-plum); box-shadow: inset 0 0 0 1px var(--vt-plum); }
.vt-theme-opt .form-check-input { margin-top: .2rem; flex: 0 0 auto; }
.vt-theme-body { min-width: 0; }
.vt-theme-swatch { display: flex; gap: 4px; margin-bottom: .45rem; }
.vt-theme-swatch i {
  width: 26px; height: 16px; border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, .12); display: block;
}
