/* =====================================================================================
   TogetherCRM · components.css
   -------------------------------------------------------------------------------------
   The page vocabulary every view uses (card, table, form-control, btn, badge, modal,
   dropdown, offcanvas, alert, row/col …) drawn as TogetherCRM components. Bootstrap and
   Duralux are gone. Every rule here reads the artifact tokens from app.css, so all eight
   colors and both themes apply automatically.

   Load order: app.css → icons.css → components.css → contract-template-editor.css.
   Behaviour (modals, dropdowns, offcanvas, collapse, tabs) lives in js/ui.js.
   ===================================================================================== */

/* ---------- 1 · Page rhythm ---------------------------------------------------------- */
/* The artifact spaces a page with the .view grid gap (16px). The views' own top-level
   margins (mb-4 …) would double it, so direct children of the view drop theirs. */
.stage .view > * { margin-top: 0 !important; margin-bottom: 0 !important; min-width: 0; }
.stage :where(.view:not([data-native]), .ss-legacy) :where(p) { margin: 0 0 .5rem; }
.stage :where(.view:not([data-native]), .ss-legacy) :where(p:last-child) { margin-bottom: 0; }
.stage :where(.view:not([data-native]), .ss-legacy) :where(ul, ol) { margin: 0 0 .5rem; padding-left: 1.2rem; }
.stage :where(.view:not([data-native]), .ss-legacy) :where(hr) { border: 0; border-top: 1px solid var(--line); margin: 14px 0; opacity: 1; }
.stage :where(.view:not([data-native]), .ss-legacy) :where(code) { font: 500 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.stage :where(.view:not([data-native]), .ss-legacy) :where(a:not([class])) { color: var(--accent); text-decoration: none; }
.stage :where(.view:not([data-native]), .ss-legacy) :where(a:not([class]):hover) { text-decoration: underline; }
.stage :where(.view:not([data-native]), .ss-legacy) :where(label) { font-size: 13px; }
.stage :where(.view:not([data-native]), .ss-legacy) :where(strong, b) { font-weight: 600; }
.stage :where(.view:not([data-native]), .ss-legacy) :where(h1, h2, h3, h4, h5, h6) { margin: 0; color: var(--ink); line-height: 1.25; }
.stage :where(.view:not([data-native]), .ss-legacy) :where(h5) { font: 600 16px var(--font-body); }
.stage :where(.view:not([data-native]), .ss-legacy) :where(h6) { font: 600 14px var(--font-body); }
.stage :where(.view:not([data-native]), .ss-legacy) :where(h3) { font: 600 18px var(--font-body); }

/* Page title. Every list/detail view opens with <h4 class="fw-bold"> + a muted line, the
   same role as the artifact's .page-h h1 / p. */
.stage :where(.view:not([data-native]), .ss-legacy) h4.fw-bold, .stage :where(.view:not([data-native]), .ss-legacy) h4.fw-semibold, .stage :where(.view:not([data-native]), .ss-legacy) .h4 { font: var(--title-weight) clamp(26px, 3vw, 34px)/1.15 var(--font-display) !important; letter-spacing: -.02em; }
.stage :where(.view:not([data-native]), .ss-legacy) h4.fw-bold + .text-muted, .stage :where(.view:not([data-native]), .ss-legacy) h4.fw-bold + span, .stage :where(.view:not([data-native]), .ss-legacy) h4.fw-bold + p { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 14px !important; }
.stage :where(.view:not([data-native]), .ss-legacy) h4:not(.fw-bold):not(.fw-semibold) { font: 600 20px var(--font-body); }

/* Section titles inside cards: the artifact's .card-h h2. */
.stage :where(.view:not([data-native]), .ss-legacy) .card h5.fw-bold, .stage :where(.view:not([data-native]), .ss-legacy) .card h6.fw-bold, .stage :where(.view:not([data-native]), .ss-legacy) .card h5.fw-semibold, .stage :where(.view:not([data-native]), .ss-legacy) .card h6.fw-semibold, .stage :where(.view:not([data-native]), .ss-legacy) .card .card-title { font: 600 14px var(--font-body); }

/* Big figures (stat cards): the artifact's .stats .v, light display numerals. */
.stage :where(.view:not([data-native]), .ss-legacy) .fs-4.fw-bold, .stage :where(.view:not([data-native]), .ss-legacy) .fs-3.fw-bold, .stage :where(.view:not([data-native]), .ss-legacy) .fs-2.fw-bold, .stage :where(.view:not([data-native]), .ss-legacy) .fs-4.fw-semibold, .stage :where(.view:not([data-native]), .ss-legacy) .text-2xl.font-bold, .stage :where(.view:not([data-native]), .ss-legacy) .text-3xl.font-bold { font: var(--num-weight) 32px/1.05 var(--font-display) !important; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stage :where(.view:not([data-native]), .ss-legacy) .fs-5.fw-bold, .stage :where(.view:not([data-native]), .ss-legacy) .fs-5.fw-semibold, .stage :where(.view:not([data-native]), .ss-legacy) .text-xl.font-bold, .stage :where(.view:not([data-native]), .ss-legacy) .text-xl.font-semibold { font: 400 22px/1.15 var(--font-display) !important; letter-spacing: -.02em; }

/* ---------- 2 · Cards -------------------------------------------------------------- */
.stage :where(.view:not([data-native]), .ss-legacy) .card { position: relative; display: flex; flex-direction: column; border: 0; color: var(--ink); }
.stage :where(.view:not([data-native]), .ss-legacy) .card.shadow-sm, .stage :where(.view:not([data-native]), .ss-legacy) .card.border-0, .stage :where(.view:not([data-native]), .ss-legacy) .card.tc-shadow-sm { box-shadow: var(--card-shadow); }
.card-header { padding: 16px 20px 6px; background: none; border: 0; font: 600 14px var(--font-body); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-header.border-bottom { border-bottom: 1px solid var(--line) !important; padding-bottom: 12px; }
.card-body { flex: 1 1 auto; padding: 18px 20px; min-width: 0; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--line); background: none; }
.card > .table-responsive, .card > .table, .card > .card-body > .table-responsive:only-child { border-radius: inherit; }
.card > .table-responsive > .table, .card > .table { margin: 0; }
@media (max-width: 680px) { .card-body { padding: 16px; } .card-header { padding: 14px 16px 6px; } .card-footer { padding: 12px 16px; } }

/* ---------- 3 · Grid (Bootstrap row/col on flexbox) --------------------------------- */
/* The artifact also has a .row (a flex line of controls). Only rows that hold col-*
   children become a column grid. */
.row:has(> [class*="col"]) { --gx: 1.5rem; --gy: 0px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin-left: calc(var(--gx) * -.5); margin-right: calc(var(--gx) * -.5); row-gap: var(--gy); min-width: 0; }
.row:has(> [class*="col"]) > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-left: calc(var(--gx) * .5); padding-right: calc(var(--gx) * .5); box-sizing: border-box; min-width: 0; }
.row.g-0 { --gx: 0px; --gy: 0px; } .row.g-1 { --gx: .25rem; --gy: .25rem; } .row.g-2 { --gx: .5rem; --gy: .5rem; }
.row.g-3 { --gx: 1rem; --gy: 1rem; } .row.g-4 { --gx: 1.5rem; --gy: 1.5rem; } .row.g-5 { --gx: 3rem; --gy: 3rem; }
.row > .col { flex: 1 0 0%; width: auto; }
.col-1 { width: 8.3333% !important; } .col-2 { width: 16.6667% !important; } .col-3 { width: 25% !important; } .col-4 { width: 33.3333% !important; }
.col-5 { width: 41.6667% !important; } .col-6 { width: 50% !important; } .col-7 { width: 58.3333% !important; } .col-8 { width: 66.6667% !important; }
.col-9 { width: 75% !important; } .col-10 { width: 83.3333% !important; } .col-11 { width: 91.6667% !important; } .col-12 { width: 100% !important; }
.row > .col-auto { flex: 0 0 auto; width: auto; }
@media (min-width: 576px) { .col-sm-4 { width: 33.3333% !important; } .col-sm-6 { width: 50% !important; } .col-sm-8 { width: 66.6667% !important; } .col-sm-12 { width: 100% !important; } }
@media (min-width: 768px) {
  .col-md-1 { width: 8.3333% !important; } .col-md-2 { width: 16.6667% !important; } .col-md-3 { width: 25% !important; } .col-md-4 { width: 33.3333% !important; }
  .col-md-5 { width: 41.6667% !important; } .col-md-6 { width: 50% !important; } .col-md-7 { width: 58.3333% !important; } .col-md-8 { width: 66.6667% !important; }
  .col-md-9 { width: 75% !important; } .col-md-12 { width: 100% !important; }
}
@media (min-width: 992px) {
  .col-lg-2 { width: 16.6667% !important; } .col-lg-3 { width: 25% !important; } .col-lg-4 { width: 33.3333% !important; } .col-lg-5 { width: 41.6667% !important; }
  .col-lg-6 { width: 50% !important; } .col-lg-7 { width: 58.3333% !important; } .col-lg-8 { width: 66.6667% !important; } .col-lg-9 { width: 75% !important; }
  .col-lg-12 { width: 100% !important; }
}
@media (min-width: 1200px) {
  .col-xl-3 { width: 25% !important; } .col-xl-4 { width: 33.3333% !important; } .col-xl-5 { width: 41.6667% !important; } .col-xl-6 { width: 50% !important; }
  .col-xl-7 { width: 58.3333% !important; } .col-xl-8 { width: 66.6667% !important; } .col-xl-9 { width: 75% !important; } .col-xl-12 { width: 100% !important; }
  .d-xl-block { display: block !important; } .d-xl-none { display: none !important; } .d-xl-flex { display: flex !important; }
}
@media (min-width: 1400px) {
  .col-xxl-3 { width: 25% !important; } .col-xxl-4 { width: 33.3333% !important; } .col-xxl-8 { width: 66.6667% !important; } .col-xxl-9 { width: 75% !important; }
}

/* ---------- 4 · Buttons ----------------------------------------------------------- */
/* .btn itself is the artifact's button (app.css §A). These are Bootstrap's variants. */
.btn-primary { background: var(--accent) !important; color: var(--on-accent) !important; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-light-brand, .btn-outline-primary, .btn-outline-secondary, .btn-secondary { background: none !important; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.btn-light-brand:hover, .btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-secondary:hover { background: var(--surface-2) !important; }
.btn-light { background: var(--surface-2); }
.btn-success { background: var(--ok) !important; color: #fff !important; }
.btn-danger { background: var(--bad) !important; color: #fff !important; }
.btn-warning { background: var(--warn) !important; color: #fff !important; }
.btn-link { background: none !important; height: auto; padding: 0 4px; color: var(--accent); }
.btn-link:hover { text-decoration: underline; background: none; }
.btn.text-danger { color: var(--bad); } .btn.text-success { color: var(--ok); } .btn.text-muted { color: var(--ink-soft); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; gap: 5px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 14px; }
.btn.w-100, .btn.d-block { display: flex; width: 100%; }
.btn.disabled, .btn:disabled { opacity: .45; pointer-events: none; }
.btn [class*="feather-"] { margin-right: 0 !important; }
.btn-group { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-ctl); background: var(--surface-2); }
.btn-group > .btn { height: 32px; background: none; box-shadow: none; }
.btn-group > .btn.active, .btn-group > .btn[aria-pressed="true"], .btn-group > .btn-check:checked + .btn { background: var(--card-bg); box-shadow: 0 2px 6px -2px var(--shadow); }
.btn-close { all: unset; box-sizing: border-box; cursor: pointer; width: 30px; height: 30px; border-radius: var(--r-ctl); display: grid; place-items: center; color: var(--ink-soft); flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.btn-close::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn-close:hover { color: var(--ink); background: var(--surface-2); }
.btn-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-close-sm { width: 26px; height: 26px; }

/* Round icon buttons (Duralux .avatar-text used as the ⋯ kebab and as initials). */
.avatar-text { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--on-tint); font: 600 12px var(--font-body); text-decoration: none !important; }
.avatar-sm { width: 30px; height: 30px; font-size: 11px; } .avatar-md { width: 36px; height: 36px; } .avatar-lg { width: 46px; height: 46px; font-size: 15px; }
a.avatar-text[data-bs-toggle], button.avatar-text { background: none; color: var(--ink-faint); cursor: pointer; border: 0; }
a.avatar-text[data-bs-toggle]:hover, button.avatar-text:hover, a.avatar-text[data-bs-toggle].show { background: var(--surface-2); color: var(--ink); }

/* ---------- 5 · Badges → pills ----------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1.4 var(--font-body); padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); white-space: nowrap; vertical-align: middle; letter-spacing: 0; }
.badge.bg-soft-primary, .badge.bg-primary-subtle, .badge.bg-soft-info { background: var(--accent-soft) !important; color: var(--ink) !important; }
.badge.bg-soft-success, .badge.bg-success-subtle { background: var(--ok-soft) !important; color: var(--ok) !important; }
.badge.bg-soft-warning, .badge.bg-warning-subtle { background: var(--warn-soft) !important; color: var(--warn) !important; }
.badge.bg-soft-danger, .badge.bg-danger-subtle { background: var(--warn-soft) !important; color: var(--bad) !important; }
.badge.bg-soft-secondary, .badge.bg-secondary-subtle, .badge.bg-light { background: var(--surface-2) !important; color: var(--ink-soft) !important; }
.badge.bg-primary { background: var(--accent) !important; color: var(--on-accent) !important; }
.badge.bg-success { background: var(--ok) !important; color: #fff !important; }
.badge.bg-danger { background: var(--bad) !important; color: #fff !important; }
.badge.bg-warning { background: var(--warn) !important; color: #fff !important; }
.badge.bg-secondary { background: var(--surface-3) !important; color: var(--ink) !important; }
.badge.rounded-pill { border-radius: 999px; }
/* Soft backgrounds used outside badges (icon tiles, highlighted rows). */
.bg-soft-primary, .bg-primary-subtle, .bg-soft-info { background-color: var(--accent-soft) !important; }
.bg-soft-success, .bg-success-subtle { background-color: var(--ok-soft) !important; }
.bg-soft-warning, .bg-warning-subtle { background-color: var(--warn-soft) !important; }
.bg-soft-danger, .bg-danger-subtle { background-color: color-mix(in srgb, var(--bad) 14%, transparent) !important; }
.bg-soft-secondary, .bg-secondary-subtle { background-color: var(--surface-2) !important; }
.bg-primary { background-color: var(--accent) !important; color: var(--on-accent); }
.bg-light { background-color: var(--surface-2) !important; }
.bg-white { background-color: var(--card-bg) !important; }
.bg-transparent { background-color: transparent !important; }
.bg-card { background-color: var(--card-bg) !important; }

/* ---------- 6 · Text colour & type -------------------------------------------------- */
.text-muted, .text-secondary, .text-muted-foreground { color: var(--ink-soft) !important; }
.text-body, .text-dark, .text-foreground { color: var(--ink) !important; }
.text-primary, .tc-text-primary, .text-blue-600, .text-info { color: var(--accent) !important; }
.text-success, .text-green-600 { color: var(--ok) !important; }
.text-warning { color: var(--warn) !important; }
.text-danger, .text-destructive { color: var(--bad) !important; }
.text-white { color: #fff !important; }
.small, small { font-size: 12.5px; }
.fw-bold, .font-bold { font-weight: 600 !important; }
.fw-semibold, .font-semibold { font-weight: 600 !important; }
.fw-medium, .font-medium { font-weight: 500 !important; }
.fw-normal, .font-normal { font-weight: 400 !important; }
.fs-4 { font-size: 22px; } .fs-5 { font-size: 17px; } .fs-6 { font-size: 15px; }
.fst-italic { font-style: italic; } .lh-1, .leading-none { line-height: 1; }
.text-uppercase, .uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: .04em; } .tracking-wider { letter-spacing: .08em; }
.text-xs { font-size: 12px; line-height: 1.35; } .text-sm { font-size: 13.5px; line-height: 1.45; } .text-base { font-size: 15px; } .text-lg { font-size: 17px; } .text-xl { font-size: 20px; } .text-2xl { font-size: 24px; } .text-3xl { font-size: 30px; }
.text-start, .text-left { text-align: left !important; } .text-end, .text-right { text-align: right !important; } .text-center { text-align: center !important; }
.text-nowrap, .whitespace-nowrap { white-space: nowrap !important; }
.text-truncate, .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break-words { overflow-wrap: anywhere; }
.text-decoration-none { text-decoration: none !important; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:text-foreground:hover { color: var(--ink) !important; }
.hover\:tc-text-primary:hover { color: var(--accent) !important; }
/* Muted uppercase micro-labels written with inline font-size. */
.stage :where(.view:not([data-native]), .ss-legacy) .text-muted[style*="letter-spacing"], .stage :where(.view:not([data-native]), .ss-legacy) .text-uppercase.small, .stage :where(.view:not([data-native]), .ss-legacy) .uppercase.text-xs { font: 600 10.5px var(--font-body) !important; letter-spacing: .08em !important; text-transform: uppercase; color: var(--ink-faint) !important; }

/* ---------- 7 · Forms ------------------------------------------------------------- */
.form-control, .form-select { all: unset; box-sizing: border-box; display: block; width: 100%; min-width: 0; height: 38px; padding: 0 12px; border-radius: var(--r-ctl); background: var(--surface-2); color: var(--ink); font: 500 13.5px/38px var(--font-body); }
textarea.form-control { height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.45; white-space: pre-wrap; resize: vertical; }
select.form-control, .form-select { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.form-control[multiple] { height: auto; min-height: 90px; padding: 6px; background-image: none; line-height: 1.5; }
select.form-control option, .form-select option { background: var(--surface-2); color: var(--ink); }
input[type="file"].form-control { line-height: 38px; padding: 0 10px; }
input[type="file"].form-control::file-selector-button { all: unset; margin-right: 10px; padding: 4px 10px; border-radius: 8px; background: var(--surface-3); color: var(--ink); font: 500 12px var(--font-body); cursor: pointer; }
input[type="color"].form-control { padding: 4px; height: 38px; width: 60px; cursor: pointer; }
.form-control::placeholder { color: var(--ink-faint); font-weight: 400; }
.form-control:focus-visible, .form-select:focus-visible, .form-control:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-control[readonly], .form-control:disabled, .form-select:disabled { opacity: .7; cursor: default; }
.form-control-sm, .form-select-sm { height: 32px; line-height: 32px; font-size: 13px; }
.form-control.is-invalid, .form-control.input-validation-error { box-shadow: inset 0 0 0 1.5px var(--bad); }
.form-label { display: block; margin: 0 0 6px; font: 500 12px var(--font-body); color: var(--ink-soft); }
.form-text { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-faint); line-height: 1.45; }
.invalid-feedback, .field-validation-error { display: block; margin-top: 4px; font-size: 12px; color: var(--bad); }
.field-validation-valid { display: none; }
.form-check { display: flex; align-items: center; gap: 9px; min-height: 22px; margin: 0; padding: 0; }
.form-check-label { font-size: 13.5px; color: var(--ink); cursor: pointer; }
.form-check-inline { display: inline-flex; margin-right: 14px; }
.form-switch .form-check-input { appearance: none; -webkit-appearance: none; width: 38px !important; height: 22px !important; border-radius: 99px !important; background: var(--surface-3) !important; position: relative; }
.form-switch .form-check-input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.form-switch .form-check-input:checked { background: var(--accent) !important; } .form-switch .form-check-input:checked::after { transform: translateX(16px); }
/* Checkboxes and radios: the artifact's .check (rounded square, accent fill). */
.stage input[type="checkbox"], .stage input[type="radio"], .portal-main input[type="checkbox"], .portal-main input[type="radio"], .modal input[type="checkbox"], .offcanvas input[type="checkbox"] { appearance: none; -webkit-appearance: none; box-sizing: border-box; width: 18px; height: 18px; flex: none; margin: 0; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--ink-faint); background: none; cursor: pointer; display: inline-grid; place-items: center; vertical-align: -3px; transition: background .15s; }
.stage input[type="radio"], .modal input[type="radio"], .portal-main input[type="radio"] { border-radius: 50%; }
.stage input[type="checkbox"]:checked, .modal input[type="checkbox"]:checked, .offcanvas input[type="checkbox"]:checked, .portal-main input[type="checkbox"]:checked { background: var(--accent); box-shadow: none; }
.stage input[type="checkbox"]:checked::after, .modal input[type="checkbox"]:checked::after, .offcanvas input[type="checkbox"]:checked::after, .portal-main input[type="checkbox"]:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--on-accent); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.stage input[type="radio"]:checked, .modal input[type="radio"]:checked, .portal-main input[type="radio"]:checked { box-shadow: inset 0 0 0 5px var(--accent); }
.stage input[type="checkbox"]:focus-visible, .stage input[type="radio"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stage input[type="checkbox"]:disabled, .stage input[type="radio"]:disabled { opacity: .45; cursor: default; }
.input-group { display: flex; align-items: stretch; width: 100%; border-radius: var(--r-ctl); background: var(--surface-2); }
.input-group > .form-control, .input-group > .form-select { flex: 1 1 auto; width: 1%; background: none; }
.input-group-text { display: flex; align-items: center; padding: 0 12px; font: 500 13px var(--font-body); color: var(--ink-faint); white-space: nowrap; }
.input-group > .btn { border-radius: var(--r-ctl); }
/* The search box pattern: <div class="position-relative"><i class="feather-search position-absolute">…<input class="ps-5"> */
.position-relative > [class*="feather-"].position-absolute, .relative > [class*="feather-"].absolute { color: var(--ink-faint) !important; pointer-events: none; z-index: 1; }
.form-control.ps-5, .form-control.pl-9 { padding-left: 38px !important; }
input[type="search"].form-control { border-radius: 999px; background-color: var(--surface); }
input[type="search"].form-control::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Searchable select (js/searchable-select.js). */
.ss { position: relative; display: block; min-width: 0; }
.ss-native { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; }
.ss-trigger { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 12px; border-radius: var(--r-ctl); background: var(--surface-2); color: var(--ink); font: 500 13.5px var(--font-body); cursor: pointer; }
.ss-trigger:hover { background: var(--surface-3); }
.ss-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ss-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-placeholder { color: var(--ink-faint); font-weight: 400; }
.ss-chevron { flex-shrink: 0; color: var(--ink-faint); }
.ss-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; border-radius: 14px; background: var(--surface-2); box-shadow: 0 18px 40px -12px var(--shadow), inset 0 0 0 1px var(--line); overflow: hidden; min-width: 220px; }
.ss-panel.hidden { display: none; }
.ss-panel.ss-up { top: auto; bottom: calc(100% + 6px); }
.ss-search { padding: 8px; border-bottom: 1px solid var(--line); }
.ss-search input { all: unset; box-sizing: border-box; width: 100%; height: 32px; padding: 0 10px; border-radius: 9px; background: var(--surface); color: var(--ink); font: 500 13px var(--font-body); }
.ss-list { list-style: none; margin: 0; padding: 6px; max-height: 240px; overflow-y: auto; }
.ss-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font: 500 13.5px var(--font-body); color: var(--ink); min-width: 0; }
.ss-opt.hidden { display: none; }
.ss-opt.ss-active, .ss-opt:hover { background: var(--surface); }
.ss-opt[aria-selected="true"] { color: var(--accent); }
.ss-opt.ss-disabled { opacity: .5; cursor: not-allowed; }
.ss-check { width: 14px; flex-shrink: 0; display: inline-flex; }
.ss-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-empty { padding: 18px 12px; text-align: center; font-size: 13px; color: var(--ink-faint); }
.ss-empty.hidden { display: none; }

/* ---------- 8 · Tables ------------------------------------------------------------ */
.table-responsive { overflow-x: auto; scrollbar-width: thin; min-width: 0; -webkit-overflow-scrolling: touch; }
.stage :where(.view:not([data-native]), .ss-legacy) .table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13.5px; color: var(--ink); background: none; }
.stage :where(.view:not([data-native]), .ss-legacy) .table > :not(caption) > * > * { background: none; box-shadow: none; }
.stage :where(.view:not([data-native]), .ss-legacy) .table th { text-align: left; font: 500 11.5px var(--font-body); color: var(--ink-faint); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; letter-spacing: .02em; }
.stage :where(.view:not([data-native]), .ss-legacy) .table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.stage :where(.view:not([data-native]), .ss-legacy) .table tbody tr:last-child td, .stage :where(.view:not([data-native]), .ss-legacy) .table tfoot tr:last-child td { border-bottom: 0; }
.stage :where(.view:not([data-native]), .ss-legacy) .table tfoot td, .stage :where(.view:not([data-native]), .ss-legacy) .table tfoot th { border-top: 1px solid var(--line); font-weight: 600; }
.stage :where(.view:not([data-native]), .ss-legacy) .table th:first-child, .stage :where(.view:not([data-native]), .ss-legacy) .table td:first-child { padding-left: 20px; }
.stage :where(.view:not([data-native]), .ss-legacy) .table th:last-child, .stage :where(.view:not([data-native]), .ss-legacy) .table td:last-child { padding-right: 20px; }
.stage :where(.view:not([data-native]), .ss-legacy) .card-body .table th:first-child, .stage :where(.view:not([data-native]), .ss-legacy) .card-body .table td:first-child { padding-left: 0; }
.stage :where(.view:not([data-native]), .ss-legacy) .card-body .table th:last-child, .stage :where(.view:not([data-native]), .ss-legacy) .card-body .table td:last-child { padding-right: 0; }
.stage :where(.view:not([data-native]), .ss-legacy) .table-hover tbody tr { transition: background .12s; }
.stage :where(.view:not([data-native]), .ss-legacy) .table-hover tbody tr:hover > td { background: var(--surface-2); }
.stage :where(.view:not([data-native]), .ss-legacy) .table-sm th, .stage :where(.view:not([data-native]), .ss-legacy) .table-sm td { padding-top: 7px; padding-bottom: 7px; }
.stage :where(.view:not([data-native]), .ss-legacy) .table-bordered td, .stage :where(.view:not([data-native]), .ss-legacy) .table-bordered th { border: 1px solid var(--line); }
.stage :where(.view:not([data-native]), .ss-legacy) .table .text-end, .stage :where(.view:not([data-native]), .ss-legacy) .table .text-right { font-variant-numeric: tabular-nums; }
.align-middle, .align-middle > * > tr > * { vertical-align: middle !important; }
.align-top { vertical-align: top !important; }
.table-responsive:has(.dropdown-menu.show) { overflow: visible; }
@media (max-width: 680px) { .stage :where(.view:not([data-native]), .ss-legacy) .table th:first-child, .stage :where(.view:not([data-native]), .ss-legacy) .table td:first-child { padding-left: 16px; } .stage :where(.view:not([data-native]), .ss-legacy) .table th:last-child, .stage :where(.view:not([data-native]), .ss-legacy) .table td:last-child { padding-right: 16px; } }

/* ---------- 9 · Alerts → callouts -------------------------------------------------- */
.alert { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 0; background: var(--accent-soft); color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.alert-success { background: var(--ok-soft); } .alert-success > [class*="feather-"] { color: var(--ok); }
.alert-warning { background: var(--warn-soft); } .alert-warning > [class*="feather-"] { color: var(--warn); }
.alert-danger { background: color-mix(in srgb, var(--bad) 14%, transparent); } .alert-danger > [class*="feather-"] { color: var(--bad); }
.alert-info, .alert-primary { background: var(--accent-soft); } .alert-info > [class*="feather-"], .alert-primary > [class*="feather-"] { color: var(--accent); }
.alert-secondary, .alert-light { background: var(--surface-2); }
.alert .btn-close { margin-left: auto; box-shadow: none; }
.alert a { font-weight: 600; }

/* ---------- 10 · Dropdowns → the artifact's .menu ---------------------------------- */
.dropdown, .dropup, .dropstart, .dropend { position: relative; }
.dropdown-menu { display: none; position: fixed; z-index: 85; min-width: 220px; max-height: 70vh; overflow: auto; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: var(--surface-2); box-shadow: 0 18px 40px -12px var(--shadow), inset 0 0 0 1px var(--line); color: var(--ink); text-align: left; }
.dropdown-menu.show { display: block; animation: fade .12s ease; }
.dropdown-item { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; color: var(--ink); font: 500 13.5px var(--font-body); white-space: nowrap; }
.dropdown-item:hover, .dropdown-item:focus-visible { background: var(--surface); text-decoration: none; }
.dropdown-item [class*="feather-"] { color: var(--ink-soft); margin-right: 0 !important; }
.dropdown-item.text-danger, .dropdown-item.text-danger [class*="feather-"] { color: var(--bad) !important; }
.dropdown-item.text-success, .dropdown-item.text-success [class*="feather-"] { color: var(--ok) !important; }
.dropdown-item.disabled, .dropdown-item:disabled { color: var(--ink-faint); pointer-events: none; }
.dropdown-item-text { display: block; padding: 8px 10px; font-size: 13px; color: var(--ink-soft); }
.dropdown-header { display: block; font: 600 11px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); padding: 8px 10px 4px; }
.dropdown-divider { height: 1px; border: 0; background: var(--line); margin: 6px 4px; }
.dropdown-menu form { margin: 0; }
.dropdown-toggle::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); opacity: .7; }

/* ---------- 11 · Modals → the artifact's .scrim + .modal --------------------------- */
body.modal-open { overflow: hidden; }
/* app.css (artifact) also has a .modal: its dialog card. Here .modal is the full-screen scrim,
   so the card properties are reset and .modal-content takes them instead. */
.stage :where(.view:not([data-native]), .ss-legacy) .modal, .stage .modal.fade, body > .modal { position: fixed; inset: 0; z-index: 80; display: none; overflow-y: auto; padding: 16px; background: rgba(8,10,14,.5); outline: 0;
  width: auto; max-width: none; max-height: none; border-radius: 0; box-shadow: none; grid-template-rows: none; }
.modal.show, .stage .modal.fade.show { display: grid; place-items: center; animation: fade .15s; }
.modal-dialog { position: relative; width: min(560px, 100%); margin: auto; pointer-events: none; }
.modal-dialog.modal-sm { width: min(400px, 100%); } .modal-dialog.modal-lg { width: min(820px, 100%); } .modal-dialog.modal-xl { width: min(1140px, 100%); }
.modal-dialog-centered { min-height: 0; }
.modal-content { pointer-events: auto; display: grid; grid-template-rows: auto 1fr auto; max-height: calc(100dvh - 32px); overflow: hidden; background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), inset 0 0 0 1px var(--line); border: 0; }
form.modal-content { margin: 0; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 10px; border: 0; }
.modal-title { font: 600 16px var(--font-body) !important; margin: 0; min-width: 0; }
.modal-body { padding: 6px 18px 16px; overflow-y: auto; min-height: 0; }
.modal-dialog-scrollable .modal-body { overflow-y: auto; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 10px 18px 16px; border: 0; }
.modal-footer > .me-auto, .modal-footer > .left { margin-right: auto; }
.modal-backdrop, .offcanvas-backdrop { display: none !important; } /* the .modal itself is the scrim */
@media (max-width: 680px) {
  .modal.show { place-items: end center; padding: 0; }
  .modal-dialog, .modal-dialog.modal-lg, .modal-dialog.modal-xl { width: 100%; margin: 0; }
  .modal-content { border-radius: 22px 22px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* ---------- 12 · Offcanvas → a right-hand sheet ------------------------------------- */
.offcanvas { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(30rem, 100%); display: flex; flex-direction: column; visibility: hidden; transform: translateX(100%); transition: transform .25s ease, visibility .25s; background: var(--surface); color: var(--ink); box-shadow: -30px 0 60px -30px rgba(0,0,0,.5), inset 1px 0 0 var(--line); border-radius: 20px 0 0 20px; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.offcanvas.offcanvas-start { right: auto; left: 0; transform: translateX(-100%); border-radius: 0 20px 20px 0; }
.offcanvas.show, .offcanvas.showing { visibility: visible; transform: none; }
.offcanvas > form { height: 100%; min-height: 0; display: flex; flex-direction: column; margin: 0; }
.offcanvas-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.offcanvas-header.border-bottom { border-bottom: 1px solid var(--line) !important; }
.offcanvas-title { font: 600 16px var(--font-body) !important; margin: 0; }
.offcanvas-body { flex: 1 1 auto; overflow-y: auto; padding: 16px 20px; min-height: 0; }
.offcanvas-footer { padding: 12px 20px 16px; }
.offcanvas-footer.border-top { border-top: 1px solid var(--line) !important; }
.ss-scrim { position: fixed; inset: 0; z-index: 79; background: rgba(8,10,14,.5); animation: fade .15s; }
@media (max-width: 680px) { .offcanvas { border-radius: 0; } }

/* ---------- 13 · Lists, progress, nav tabs ----------------------------------------- */
.list-group { display: grid; margin: 0; padding: 0; list-style: none; }
.list-group-item { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); background: none; text-decoration: none; }
.list-group-flush > .list-group-item { padding-left: 20px; padding-right: 20px; }
.list-group-item:last-child { border-bottom: 0; }
.list-group-item-action { cursor: pointer; } .list-group-item-action:hover { background: var(--surface-2); text-decoration: none; }
.list-group-item.active { background: var(--accent-soft); color: var(--ink); }
.list-unstyled { list-style: none; padding-left: 0; margin: 0; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; display: flex; }
.progress-bar { height: 100%; border-radius: 99px; background: var(--accent); transition: width .3s; }
.progress-bar.bg-success { background: var(--ok) !important; } .progress-bar.bg-warning { background: var(--warn) !important; } .progress-bar.bg-danger { background: var(--bad) !important; }
.nav-tabs, .nav-pills { display: flex; gap: 2px; padding: 0; margin: 0; list-style: none; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.nav-tabs .nav-link, .nav-pills .nav-link { all: unset; box-sizing: border-box; cursor: pointer; padding: 11px 12px; font: 500 13px var(--font-body); color: var(--ink-soft); white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; display: inline-flex; gap: 6px; align-items: center; }
.nav-tabs .nav-link.active, .nav-pills .nav-link.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.tab-content > .tab-pane { display: none; } .tab-content > .tab-pane.active, .tab-content > .tab-pane.show { display: block; }
.collapse:not(.show) { display: none; }
.collapsing { overflow: hidden; transition: height .2s ease; }

/* ---------- 14 · Leaflet maps and ApexCharts on the artifact palette ----------------- */
.leaflet-container { background: var(--surface-2) !important; font: 500 12px var(--font-body) !important; border-radius: inherit; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-bar a:hover { background: var(--surface-2) !important; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 80%, transparent) !important; color: var(--ink-faint) !important; }
.leaflet-control-attribution a, .leaflet-popup-content a { color: var(--accent) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface) !important; color: var(--ink) !important; box-shadow: 0 18px 40px -12px var(--shadow) !important; }
.leaflet-popup-content-wrapper { border-radius: 14px !important; }
:root:not([data-theme="light"]) .leaflet-tile-pane { filter: brightness(.75) invert(1) contrast(.9) hue-rotate(200deg) saturate(.35) brightness(.85); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .leaflet-tile-pane { filter: none; } }
.apexcharts-text, .apexcharts-text tspan, .apexcharts-datalabel-label, .apexcharts-datalabel-value { fill: var(--ink-soft) !important; font-family: var(--font-body) !important; }
.apexcharts-datalabel-value, .apexcharts-title-text { fill: var(--ink) !important; }
.apexcharts-legend-text { color: var(--ink-soft) !important; font-family: var(--font-body) !important; }
.apexcharts-gridline, .apexcharts-xaxis line, .apexcharts-yaxis line, .apexcharts-xaxis-tick { stroke: var(--line) !important; }
.apexcharts-tooltip.apexcharts-theme-light { background: var(--surface-3) !important; border: 0 !important; color: var(--ink) !important; box-shadow: 0 14px 30px -10px var(--shadow) !important; border-radius: 10px !important; }
.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title { background: var(--surface-2) !important; border-bottom: 1px solid var(--line) !important; }
.apexcharts-xaxistooltip, .apexcharts-yaxistooltip { background: var(--surface-3) !important; color: var(--ink) !important; border: 0 !important; }
.apexcharts-pie-area { stroke: var(--card-bg) !important; }

/* ---------- 15 · Misc ------------------------------------------------------------- */
.shadow-sm, .tc-shadow-sm { box-shadow: var(--card-shadow); }
.tc-shadow-lg, .shadow, .shadow-lg { box-shadow: 0 18px 40px -12px var(--shadow), inset 0 0 0 1px var(--line); }
.rounded, .tc-rounded { border-radius: 8px !important; } .rounded-2 { border-radius: 10px !important; } .rounded-3, .rounded-lg { border-radius: var(--r-ctl) !important; }
.rounded-md { border-radius: 10px !important; } .rounded-xl { border-radius: 14px !important; } .rounded-circle, .rounded-full, .rounded-pill { border-radius: 999px !important; }
.border { border: 1px solid var(--line) !important; } .border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--line) !important; } .border-bottom { border-bottom: 1px solid var(--line) !important; }
.border-start { border-left: 1px solid var(--line) !important; } .border-end { border-right: 1px solid var(--line) !important; }
.border-dashed { border-style: dashed !important; border-color: var(--ink-faint) !important; }
.border-2 { border-width: 2px !important; }
.tc-border { border: 1px solid var(--line); } .border-t { border-top: 1px solid var(--line); } .border-b { border-bottom: 1px solid var(--line); } .border-l { border-left: 1px solid var(--line); }
.border-b-2 { border-bottom: 2px solid var(--line); } .border-t-2 { border-top: 2px solid var(--line); } .border-l-2 { border-left: 2px solid var(--line); }
.border-border { border-color: var(--line) !important; } .tc-border-primary { border-color: var(--accent) !important; }
.divide-y > * + * { border-top: 1px solid var(--line); } .divide-border > * + * { border-color: var(--line); }
.tc-bg-muted { background-color: var(--surface-2) !important; }
.tc-bg-muted\/30 { background-color: color-mix(in srgb, var(--surface-2) 45%, transparent) !important; }
.tc-bg-muted\/50 { background-color: color-mix(in srgb, var(--surface-2) 65%, transparent) !important; }
.tc-bg-primary { background-color: var(--accent) !important; color: var(--on-accent); }
.tc-bg-primary\/10 { background-color: var(--accent-soft) !important; }
.hover\:tc-bg-muted:hover { background-color: var(--surface-2) !important; }
.hover\:tc-bg-muted\/40:hover, .hover\:tc-bg-muted\/50:hover { background-color: color-mix(in srgb, var(--surface-2) 70%, transparent) !important; }
.transition-colors { transition: color .15s, background-color .15s, border-color .15s; }
.cursor-pointer { cursor: pointer; } .cursor-move { cursor: move; }
.focus\:outline-none:focus { outline: none; } .focus\:ring-2:focus, .focus\:ring-primary\/30:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.tpl-dropzone { display: block; padding: 3rem 1rem; text-align: center; cursor: pointer; border-radius: var(--r-card); color: var(--ink-soft); border: 2px dashed var(--ink-faint); transition: background .15s ease; }
.tpl-dropzone:hover, .tpl-dropzone.dragover { background-color: var(--accent-soft); }
.stage :where(.view:not([data-native]), .ss-legacy) .card .empty-state, .stage :where(.view:not([data-native]), .ss-legacy) .card-body.text-center.py-5 { color: var(--ink-faint); }
.stage :where(.view:not([data-native]), .ss-legacy) .card-body.text-center.py-5 > [class*="feather-"]:first-child { width: 30px; height: 30px; opacity: .6; }
.stage :where(.view:not([data-native]), .ss-legacy) .card-body.text-center.py-5 .fw-bold { color: var(--ink); font: 600 14px var(--font-body); }
img.rounded-circle, .avatar-image { object-fit: cover; }
[role="button"] { cursor: pointer; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

/* ---------- 17 · Page-header and form heuristics for the existing views --------------- */
/* Detail pages open with [Back] + <h5 class="fw-bold"><i class="feather-…"></i> Title</h5>.
   Draw that title as the artifact's page title, without the decorative icon. */
.stage .view > .d-flex h5.fw-bold, .stage .view > form > .d-flex:first-child h5.fw-bold, .stage .view > div > .d-flex:first-child > div > h5.fw-bold { font: var(--title-weight) clamp(22px, 2.6vw, 30px)/1.15 var(--font-display) !important; letter-spacing: -.02em; }
.stage .view > .d-flex :is(h4, h5).fw-bold > [class*="feather-"]:first-child, .stage .view > form > .d-flex:first-child h5.fw-bold > [class*="feather-"]:first-child { display: none; }
.stage .view > .d-flex :is(h4, h5).fw-bold + .text-muted { font-size: 13.5px !important; }
/* Inputs written with Tailwind utilities instead of .form-control get the artifact's .input. */
.stage :where(input:not([type="checkbox"], [type="radio"], [type="file"], [type="color"], [type="range"], [type="hidden"], [type="submit"], [type="button"], [type="image"]), select, textarea):not(.form-control, .form-select, .ss-native, .input) {
  appearance: none; -webkit-appearance: none; box-sizing: border-box; min-height: 38px; padding: 0 12px; border: 0; border-radius: var(--r-ctl);
  background-color: var(--surface-2); color: var(--ink); font: 500 13.5px var(--font-body); outline: none; }
.stage :where(.view:not([data-native]), .ss-legacy) :where(textarea):not(.form-control, .input) { padding: 10px 12px; line-height: 1.45; }
.stage :where(.view:not([data-native]), .ss-legacy) :where(select):not(.form-control, .form-select, .input) { padding-right: 30px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.stage :where(.view:not([data-native]), .ss-legacy) :where(input, select, textarea):not(.form-control, .input):focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.stage :where(.view:not([data-native]), .ss-legacy) :where(input, textarea)::placeholder { color: var(--ink-faint); font-weight: 400; }
.iconbtn .badge { padding: 0; display: block; font-size: 0; }   /* the bell dot is not a pill */
/* ---------- 16 · Utilities (generated) ---------- */
.-mb-px{margin-bottom:-1px !important}
.m-0{margin:0 !important}
.mb-0{margin-bottom:0 !important}
.mb-0\.5{margin-bottom:0.125rem !important}
.mb-1{margin-bottom:.25rem !important}
.mb-1\.5{margin-bottom:0.375rem !important}
.mb-2{margin-bottom:.5rem !important}
.mb-3{margin-bottom:1rem !important}
.mb-4{margin-bottom:1.5rem !important}
.mb-6{margin-bottom:1.5rem !important}
.me-1{margin-right:.25rem !important}
.me-2{margin-right:.5rem !important}
.ml-1{margin-left:.25rem !important}
.ml-auto{margin-left:auto !important}
.ms-1{margin-left:.25rem !important}
.ms-2{margin-left:.5rem !important}
.ms-auto{margin-left:auto !important}
.mt-0{margin-top:0 !important}
.mt-0\.5{margin-top:0.125rem !important}
.mt-1{margin-top:.25rem !important}
.mt-2{margin-top:.5rem !important}
.mt-3{margin-top:1rem !important}
.mt-4{margin-top:1.5rem !important}
.my-4{margin-top:1.5rem !important;margin-bottom:1.5rem !important}
.p-0{padding:0 !important}
.p-1{padding:.25rem !important}
.p-12{padding:3rem !important}
.p-2{padding:.5rem !important}
.p-3{padding:1rem !important}
.p-4{padding:1.5rem !important}
.p-6{padding:1.5rem !important}
.pb-2{padding-bottom:.5rem !important}
.pe-3{padding-right:1rem !important}
.pl-3{padding-left:1rem !important}
.pl-9{padding-left:2.25rem !important}
.pr-3{padding-right:1rem !important}
.pr-7{padding-right:1.75rem !important}
.ps-3{padding-left:1rem !important}
.ps-5{padding-left:3rem !important}
.pt-2{padding-top:.5rem !important}
.pt-3{padding-top:1rem !important}
.pt-4{padding-top:1.5rem !important}
.px-2{padding-left:.5rem !important;padding-right:.5rem !important}
.px-3{padding-left:1rem !important;padding-right:1rem !important}
.px-6{padding-left:1.5rem !important;padding-right:1.5rem !important}
.py-0\.5{padding-top:0.125rem !important;padding-bottom:0.125rem !important}
.py-1{padding-top:.25rem !important;padding-bottom:.25rem !important}
.py-1\.5{padding-top:0.375rem !important;padding-bottom:0.375rem !important}
.py-10{padding-top:2.5rem !important;padding-bottom:2.5rem !important}
.py-12{padding-top:3rem !important;padding-bottom:3rem !important}
.py-2{padding-top:.5rem !important;padding-bottom:.5rem !important}
.py-2\.5{padding-top:0.625rem !important;padding-bottom:0.625rem !important}
.py-3{padding-top:1rem !important;padding-bottom:1rem !important}
.py-4{padding-top:1.5rem !important;padding-bottom:1.5rem !important}
.py-5{padding-top:3rem !important;padding-bottom:3rem !important}
.py-6{padding-top:1.5rem !important;padding-bottom:1.5rem !important}
.py-8{padding-top:2rem !important;padding-bottom:2rem !important}
.tc-mb-3{margin-bottom:0.75rem !important}
.tc-mb-4{margin-bottom:1rem !important}
.tc-mb-5{margin-bottom:1.25rem !important}
.tc-mt-3{margin-top:0.75rem !important}
.tc-mt-4{margin-top:1rem !important}
.tc-mx-auto{margin-left:auto !important;margin-right:auto !important}
.tc-p-3{padding:0.75rem !important}
.tc-p-4{padding:1rem !important}
.tc-p-5{padding:1.25rem !important}
.tc-pb-3{padding-bottom:0.75rem !important}
.tc-px-1{padding-left:0.25rem !important;padding-right:0.25rem !important}
.tc-px-2{padding-left:0.5rem !important;padding-right:0.5rem !important}
.tc-px-2\.5{padding-left:0.625rem !important;padding-right:0.625rem !important}
.tc-px-3{padding-left:0.75rem !important;padding-right:0.75rem !important}
.tc-px-4{padding-left:1rem !important;padding-right:1rem !important}
.tc-py-3{padding-top:0.75rem !important;padding-bottom:0.75rem !important}
.tc-py-4{padding-top:1rem !important;padding-bottom:1rem !important}
.gap-1{gap:.25rem !important}
.gap-1\.5{gap:0.375rem !important}
.gap-2{gap:.5rem !important}
.gap-3{gap:1rem !important}
.gap-4{gap:1.5rem !important}
.gap-5{gap:3rem !important}
.gap-6{gap:1.5rem !important}
.gap-x-8{column-gap:2rem !important}
.gap-y-2{row-gap:0.5rem !important}
.tc-gap-3{gap:0.75rem !important}
.tc-gap-4{gap:1rem !important}
.tc-gap-5{gap:1.25rem !important}
.d-flex,.flex{display:flex !important}.d-inline-flex,.inline-flex{display:inline-flex !important}.d-block,.block{display:block !important}.d-inline,.inline{display:inline !important}.d-inline-block,.inline-block{display:inline-block !important}.d-none,.hidden{display:none !important}.d-grid,.grid{display:grid !important}
.flex-column,.flex-col{flex-direction:column !important}.flex-row{flex-direction:row !important}.flex-wrap{flex-wrap:wrap !important}.flex-nowrap{flex-wrap:nowrap !important}
.flex-1{flex:1 1 0% !important}.flex-grow-1,.grow{flex-grow:1 !important}.flex-shrink-0,.shrink-0{flex-shrink:0 !important}.flex-fill{flex:1 1 auto !important}
.align-items-center,.items-center{align-items:center !important}.align-items-start,.items-start{align-items:flex-start !important}.align-items-end,.items-end{align-items:flex-end !important}.align-items-stretch{align-items:stretch !important}.align-items-baseline{align-items:baseline !important}
.align-self-center{align-self:center !important}.align-self-start{align-self:flex-start !important}.align-self-end{align-self:flex-end !important}
.justify-content-between,.justify-between{justify-content:space-between !important}.justify-content-center,.justify-center{justify-content:center !important}.justify-content-end,.justify-end{justify-content:flex-end !important}.justify-content-start,.justify-start{justify-content:flex-start !important}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:col-span-2{grid-column:span 2/span 2}.md\:col-span-3{grid-column:span 3/span 3}.md\:flex{display:flex !important}.md\:hidden{display:none !important}}
@media (min-width:1024px){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:flex{display:flex !important}.lg\:hidden{display:none !important}}
.space-y-2>*+*{margin-top:.5rem}.space-y-3>*+*{margin-top:.75rem}.space-y-4>*+*{margin-top:1rem}
.position-relative,.relative{position:relative !important}.position-absolute,.absolute{position:absolute !important}.position-fixed,.fixed{position:fixed !important}.position-sticky{position:sticky !important}
.inset-0{inset:0}.top-0{top:0}.end-0,.right-0{right:0}.start-0{left:0}.bottom-0{bottom:0}.top-50{top:50%}.start-50{left:50%}.translate-middle{transform:translate(-50%,-50%)}
.top-1\/2{top:50%}.-translate-y-1\/2{transform:translateY(-50%)}.top-2\.5{top:.625rem}.top-4{top:1rem}.left-3{left:.75rem}.left-4{left:1rem}.right-3{right:.75rem}
.z-40{z-index:40}.z-10{z-index:10}
.w-100,.w-full{width:100% !important}.h-100,.h-full{height:100% !important}.mw-100{max-width:100% !important}.min-w-0{min-width:0 !important}
.w-2{width:.5rem}.h-2{height:.5rem}.w-8{width:2rem}.h-8{height:2rem}.w-10{width:2.5rem}.h-10{height:2.5rem}.w-44{width:11rem}.w-56{width:14rem}.w-64{width:16rem}.w-72{width:18rem}
.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}
.overflow-hidden{overflow:hidden !important}.overflow-auto{overflow:auto !important}.overflow-x-auto{overflow-x:auto !important}.overflow-y-auto{overflow-y:auto !important}
.opacity-50{opacity:.5}.opacity-75{opacity:.75}
