/* DigiTracker design system — shared by the public site, auth screens and the tenant panel.
   Colors are tokens; the site uses a single dark theme. */

/* Dark is the only theme. */
:root, [data-bs-theme="dark"] {
  --dt-bg: #0a1222;
  --dt-surface: #111b2e;
  --dt-surface-2: #16233a;
  --dt-border: #22314d;
  --dt-text: #e6edf7;
  --dt-muted: #98a6bf;
  --dt-primary: #2cc4cf;
  --dt-primary-hover: #5ad5dd;
  --dt-primary-soft: rgba(44, 196, 207, .14);
  --dt-accent: #6b9bff;
  --dt-accent-soft: rgba(107, 155, 255, .14);
  --dt-success: #4ade80;
  --dt-warning: #fbbf24;
  --dt-danger: #fb923c;
  --dt-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --dt-shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  --dt-hero-glow: radial-gradient(60% 60% at 70% 20%, rgba(44, 196, 207, .16), transparent 70%),
                  radial-gradient(50% 50% at 10% 10%, rgba(107, 155, 255, .12), transparent 70%);
}

/* Map tokens onto Bootstrap */
:root, [data-bs-theme="dark"] {
  --bs-body-bg: var(--dt-bg);
  --bs-body-color: var(--dt-text);
  --bs-secondary-color: var(--dt-muted);
  --bs-border-color: var(--dt-border);
  --bs-link-color: var(--dt-primary);
  --bs-link-hover-color: var(--dt-primary-hover);
  --bs-link-color-rgb: 14, 124, 134;
  --bs-tertiary-bg: var(--dt-surface-2);
  --bs-border-radius: .625rem;
  --bs-border-radius-lg: 1rem;
  --bs-font-sans-serif: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { font-size: 15px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
  background: var(--dt-bg);
  color: var(--dt-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }
h1, h2, h3, h4, .display-5, .display-6 { letter-spacing: -.02em; font-weight: 700; color: var(--dt-text); }
.text-muted, .form-text { color: var(--dt-muted) !important; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--dt-accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 2000; }
.skip-link:focus { left: .5rem; background: var(--dt-surface); padding: .5rem 1rem; border-radius: .5rem; }

/* Inline icons default to the surrounding text size; containers below override. */
.dt-svg { width: 1.1em; height: 1.1em; vertical-align: -.2em; flex-shrink: 0; }

/* Buttons */
.btn { --bs-btn-font-weight: 600; border-radius: .625rem; }
.btn-primary {
  --bs-btn-bg: var(--dt-primary); --bs-btn-border-color: var(--dt-primary);
  --bs-btn-hover-bg: var(--dt-primary-hover); --bs-btn-hover-border-color: var(--dt-primary-hover);
  --bs-btn-active-bg: var(--dt-primary-hover); --bs-btn-active-border-color: var(--dt-primary-hover);
  --bs-btn-disabled-bg: var(--dt-primary); --bs-btn-disabled-border-color: var(--dt-primary);
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #04212a; --bs-btn-hover-color: #04212a; --bs-btn-active-color: #04212a; }
.btn-outline-primary {
  --bs-btn-color: var(--dt-primary); --bs-btn-border-color: var(--dt-primary);
  --bs-btn-hover-bg: var(--dt-primary-soft); --bs-btn-hover-color: var(--dt-primary); --bs-btn-hover-border-color: var(--dt-primary);
  --bs-btn-active-bg: var(--dt-primary-soft); --bs-btn-active-color: var(--dt-primary);
}
.btn-ghost { --bs-btn-color: var(--dt-text); --bs-btn-hover-bg: var(--dt-surface-2); --bs-btn-hover-color: var(--dt-text); }

/* Surfaces */
.card, .dt-card {
  background: var(--dt-surface);
  border: 1px solid var(--dt-border);
  border-radius: 1rem;
  box-shadow: var(--dt-shadow);
  color: var(--dt-text);
}
.dt-card { padding: 1.5rem; }
.form-control, .form-select, .input-group-text {
  background-color: var(--dt-surface);
  border-color: var(--dt-border);
  color: var(--dt-text);
  border-radius: .625rem;
}
.input-group-text { background: var(--dt-surface-2); color: var(--dt-muted); }
.form-control:focus, .form-select:focus { border-color: var(--dt-primary); box-shadow: 0 0 0 .2rem var(--dt-primary-soft); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--dt-text); --bs-table-border-color: var(--dt-border); }

/* Brand */
.dt-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; color: var(--dt-text); letter-spacing: -.02em; }
.dt-brand:hover { text-decoration: none; color: var(--dt-text); }
.dt-brand svg { width: 28px; height: 28px; }

/* Navbar */
.dt-navbar { background: color-mix(in srgb, var(--dt-bg) 85%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--dt-border); }
.dt-navbar .nav-link { color: var(--dt-muted); font-weight: 500; }
.dt-navbar .nav-link:hover, .dt-navbar .nav-link.active { color: var(--dt-text); text-decoration: none; }
.dt-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: .625rem; border: 1px solid var(--dt-border); background: var(--dt-surface); color: var(--dt-text); }
.dt-icon-btn:hover { background: var(--dt-surface-2); }
.dt-icon-btn svg { width: 1.1rem; height: 1.1rem; }

/* Sections */
.dt-section { padding: 5rem 0; }
.dt-section-alt { background: var(--dt-surface); border-top: 1px solid var(--dt-border); border-bottom: 1px solid var(--dt-border); }
.dt-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dt-primary); margin-bottom: .75rem; }
.dt-lead { font-size: 1.15rem; color: var(--dt-muted); max-width: 40rem; }
.dt-section-head { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.dt-section-head .dt-lead { margin: 0 auto; }

/* Hero */
.dt-hero { position: relative; padding: 5rem 0 4rem; overflow: hidden; }
.dt-hero::before { content: ""; position: absolute; inset: 0; background: var(--dt-hero-glow); pointer-events: none; }
.dt-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; letter-spacing: -.035em; }
.dt-hero .dt-lead { font-size: 1.2rem; }
.dt-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem; border-radius: 999px; background: var(--dt-primary-soft); color: var(--dt-primary); font-weight: 600; font-size: .85rem; }

/* Dashboard preview mock */
.dt-preview { border-radius: 1.25rem; background: var(--dt-surface); border: 1px solid var(--dt-border); box-shadow: var(--dt-shadow-lg); overflow: hidden; }
.dt-preview-bar { display: flex; gap: .4rem; padding: .75rem 1rem; border-bottom: 1px solid var(--dt-border); background: var(--dt-surface-2); }
.dt-preview-bar span { width: .65rem; height: .65rem; border-radius: 50%; background: var(--dt-border); }
.dt-preview-body { padding: 1.25rem; }
.dt-kpi { padding: 1rem; border-radius: .875rem; background: var(--dt-surface-2); }
.dt-kpi .label { font-size: .75rem; color: var(--dt-muted); font-weight: 600; }
.dt-kpi .value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.dt-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 0; border-bottom: 1px dashed var(--dt-border); font-size: .9rem; }
.dt-row:last-child { border-bottom: 0; }

/* Badges */
.dt-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.dt-badge-ok { background: color-mix(in srgb, var(--dt-success) 14%, transparent); color: var(--dt-success); }
.dt-badge-warn { background: color-mix(in srgb, var(--dt-warning) 16%, transparent); color: var(--dt-warning); }
.dt-badge-danger { background: color-mix(in srgb, var(--dt-danger) 16%, transparent); color: var(--dt-danger); }
.dt-badge-muted { background: var(--dt-surface-2); color: var(--dt-muted); }

/* Feature tiles */
.dt-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .75rem; background: var(--dt-primary-soft); color: var(--dt-primary); margin-bottom: 1rem; }
.dt-icon svg { width: 1.4rem; height: 1.4rem; }
.dt-icon-accent { background: var(--dt-accent-soft); color: var(--dt-accent); }
.dt-tile { height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.dt-tile:hover { transform: translateY(-2px); box-shadow: var(--dt-shadow-lg); }
.dt-tile h3 { font-size: 1.1rem; }
.dt-tile p { color: var(--dt-muted); margin-bottom: 0; }

.dt-step-num { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--dt-text); color: var(--dt-bg); font-weight: 800; margin-bottom: 1rem; }
.dt-check { list-style: none; padding: 0; margin: 0; }
.dt-check li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.dt-check li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--dt-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230e7c86' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/70% no-repeat; }

.dt-timeline { display: flex; flex-wrap: wrap; gap: .5rem; }
.dt-timeline .dt-badge { font-size: .85rem; padding: .35rem .8rem; }

/* Pricing */
.dt-price-card { height: 100%; display: flex; flex-direction: column; padding: 2rem; }
.dt-price-card.is-featured { border: 2px solid var(--dt-primary); }
.dt-price-card .price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; }
.dt-price-card ul { flex: 1; }
.dt-price-card.is-unavailable { opacity: .85; }

/* FAQ */
.dt-faq .accordion-item { background: var(--dt-surface); border-color: var(--dt-border); }
.dt-faq .accordion-button { background: var(--dt-surface); color: var(--dt-text); font-weight: 600; box-shadow: none; }
.dt-faq .accordion-button:not(.collapsed) { color: var(--dt-primary); }
.dt-faq .accordion-body { color: var(--dt-muted); }
/* Chevron drawn with currentColor so it follows the button text color in both themes. */
.dt-faq .accordion-button::after {
  background-image: none; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%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 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* CTA */
.dt-cta { border-radius: 1.5rem; padding: 3.5rem 2rem; text-align: center; color: #fff;
  background: linear-gradient(135deg, #0b1b3a 0%, #0e4c6e 55%, #0e7c86 100%); }
.dt-cta h2 { color: #fff; }
.dt-cta p { color: rgba(255, 255, 255, .8); }
.dt-cta .btn-light { font-weight: 700; }

/* Footer */
.dt-footer { border-top: 1px solid var(--dt-border); padding: 3rem 0 2rem; color: var(--dt-muted); font-size: .9rem; }
.dt-footer h6 { color: var(--dt-text); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.dt-footer a { color: var(--dt-muted); }
.dt-footer a:hover { color: var(--dt-text); }
.dt-footer ul { list-style: none; padding: 0; }
.dt-footer li { margin-bottom: .4rem; }

/* Auth layout */
.dt-auth { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: var(--dt-hero-glow), var(--dt-bg); }
.dt-auth-card { width: 100%; max-width: 30rem; padding: 2.25rem; }
.dt-auth-card.wide { max-width: 38rem; }

/* App (tenant panel) layout */
.dt-app { display: flex; min-height: 100vh; }
.dt-sidebar { width: 16rem; flex-shrink: 0; background: var(--dt-surface); border-right: 1px solid var(--dt-border); padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1.5rem; }
.dt-sidebar .nav-link { display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border-radius: .625rem; color: var(--dt-muted); font-weight: 500; }
.dt-sidebar .nav-link svg { width: 1.1rem; height: 1.1rem; }
.dt-sidebar .nav-link:hover { background: var(--dt-surface-2); color: var(--dt-text); text-decoration: none; }
.dt-sidebar .nav-link.active { background: var(--dt-primary-soft); color: var(--dt-primary); }
.dt-tenant-chip { padding: .75rem; border-radius: .75rem; background: var(--dt-surface-2); }
.dt-tenant-chip .name { font-weight: 700; }
.dt-app-main { flex: 1; min-width: 0; padding: 2rem; }
/* Keep workspace navigation and the theme/language/sign-out controls in view on long pages. */
@media (min-width: 992px) {
  .dt-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
@media (max-width: 991.98px) {
  .dt-app { flex-direction: column; }
  .dt-sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--dt-border); padding: 1rem; gap: .75rem; }
  .dt-sidebar .nav { flex-direction: row !important; flex-wrap: wrap; }
  .dt-app-main { padding: 1.25rem 1rem; }
}

/* Legal / prose */
.dt-prose { max-width: 46rem; }
.dt-prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.dt-prose p, .dt-prose li { color: var(--dt-muted); line-height: 1.7; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Status dots and tone colors */
.dt-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--dt-border); display: inline-block; }
.dt-dot.is-up { background: var(--dt-success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dt-success) 20%, transparent); }
.dt-dot.is-down { background: var(--dt-danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dt-danger) 20%, transparent); }
.tone-ok { color: var(--dt-success); }
.tone-warn { color: var(--dt-warning); }
.tone-bad { color: var(--dt-danger); }
.tone-muted { color: var(--dt-muted); }

/* Inventory */
.dt-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.dt-head-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--dt-accent-soft); color: var(--dt-accent); flex-shrink: 0; }
.dt-head-icon svg { width: 1.5rem; height: 1.5rem; }
.dt-pill-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border-radius: 999px; background: var(--dt-surface-2); font-weight: 600; font-size: .85rem; }
.dt-pill-chip svg { width: .95rem; height: .95rem; }
.dt-pill-chip.is-warn { background: color-mix(in srgb, var(--dt-warning) 16%, transparent); color: var(--dt-warning); }
.btn-dark-strong { --bs-btn-bg: var(--dt-text); --bs-btn-color: var(--dt-bg); --bs-btn-border-color: var(--dt-text);
  --bs-btn-hover-bg: color-mix(in srgb, var(--dt-text) 85%, var(--dt-bg)); --bs-btn-hover-color: var(--dt-bg); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: var(--dt-text); --bs-btn-active-color: var(--dt-bg); display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.25rem; border-radius: .875rem; }
.btn-dark-strong svg { width: 1.1rem; height: 1.1rem; }

.dt-stat { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--dt-surface); border: 1px solid var(--dt-border); border-radius: 1rem; box-shadow: var(--dt-shadow); height: 100%; }
.dt-stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: .875rem; background: var(--dt-accent-soft); color: var(--dt-accent); flex-shrink: 0; }
.dt-stat-icon.is-ok { background: color-mix(in srgb, var(--dt-success) 14%, transparent); color: var(--dt-success); }
.dt-stat-icon.is-warn { background: color-mix(in srgb, var(--dt-warning) 16%, transparent); color: var(--dt-warning); }
.dt-stat-icon svg { width: 1.3rem; height: 1.3rem; }
.dt-stat .value { font-size: 1.9rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.dt-stat .label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dt-muted); }

.dt-inventory { background: var(--dt-surface); border: 1px solid var(--dt-border); border-radius: 1rem; box-shadow: var(--dt-shadow); overflow: hidden; }
.dt-inventory-filters { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--dt-border); }
.dt-inventory-filters .form-select { width: auto; min-width: 10rem; }
.dt-search { position: relative; flex: 1 1 16rem; }
.dt-search svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--dt-muted); }
.dt-search .form-control { padding-left: 2.25rem; }
.dt-inv-head, .dt-inv-row { display: grid; grid-template-columns: minmax(14rem, 1.4fr) minmax(12rem, 1.3fr) minmax(12rem, 1.1fr) 9.5rem 4rem; gap: 1.5rem; align-items: center; padding: 1rem 1.25rem; }
.dt-inv-head { background: var(--dt-surface-2); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dt-text); }
.dt-inv-row { border-top: 1px solid var(--dt-border); }
.dt-inv-row:hover { background: color-mix(in srgb, var(--dt-surface-2) 50%, transparent); }
.dt-inv-asset { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.min-w-0 { min-width: 0; }
.dt-inv-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: .7rem; background: var(--dt-surface-2); color: var(--dt-primary); flex-shrink: 0; }
.dt-inv-icon svg { width: 1.15rem; height: 1.15rem; }
.dt-inv-name { font-weight: 700; color: var(--dt-accent); overflow-wrap: anywhere; }
span.dt-inv-name { color: var(--dt-text); }
.dt-inv-ext { width: .85rem; height: .85rem; vertical-align: -.05rem; opacity: .7; }
.dt-inv-sub { font-size: .82rem; color: var(--dt-muted); overflow-wrap: anywhere; }
.dt-inv-bar-head { display: flex; justify-content: space-between; gap: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .35rem; }
.dt-bar { height: .4rem; border-radius: 999px; background: var(--dt-surface-2); overflow: hidden; }
.dt-bar span { display: block; height: 100%; border-radius: 999px; }
.bar-ok { background: var(--dt-success); }
.bar-warn { background: var(--dt-warning); }
.bar-bad { background: var(--dt-danger); }
.dt-inv-date { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .45rem; font-size: .82rem; color: var(--dt-muted); }
.dt-inv-date svg { width: .9rem; height: .9rem; }
.dt-inv-none { font-size: .85rem; color: var(--dt-muted); }
.dt-tag { font-size: .68rem; font-weight: 700; padding: .05rem .4rem; border-radius: .35rem; background: var(--dt-surface-2); color: var(--dt-muted); text-transform: uppercase; letter-spacing: .04em; }
.dt-tag.is-ok { background: color-mix(in srgb, var(--dt-success) 16%, transparent); color: var(--dt-success); }
.dt-inv-warn { display: flex; gap: .35rem; align-items: flex-start; margin-top: .35rem; font-size: .78rem; color: var(--dt-warning); overflow-wrap: anywhere; }
.dt-inv-warn svg { width: .9rem; height: .9rem; flex-shrink: 0; margin-top: .1rem; }
.dt-tag.is-bad { background: color-mix(in srgb, var(--dt-danger) 16%, transparent); color: var(--dt-danger); }
.dt-status { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.dt-status .dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.dt-status.is-ok { background: color-mix(in srgb, var(--dt-success) 14%, transparent); color: var(--dt-success); }
.dt-status.is-warn { background: color-mix(in srgb, var(--dt-warning) 16%, transparent); color: var(--dt-warning); }
.dt-status.is-bad { background: color-mix(in srgb, var(--dt-danger) 16%, transparent); color: var(--dt-danger); }
.dt-status.is-muted { background: var(--dt-surface-2); color: var(--dt-muted); }
@media (max-width: 1199.98px) {
  .dt-inv-head { display: none; }
  .dt-inv-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .dt-inv-asset { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .dt-inv-row { grid-template-columns: 1fr; }
}

/* Team & API */
.dt-modal { background: var(--dt-surface); border: 1px solid var(--dt-border); border-radius: 1rem; color: var(--dt-text); }
.dt-panel { background: var(--dt-surface); border: 1px solid var(--dt-border); border-radius: 1rem; box-shadow: var(--dt-shadow); overflow: hidden; }
.dt-panel-head { padding: .9rem 1.25rem; background: var(--dt-surface-2); border-bottom: 1px solid var(--dt-border); }
.dt-panel-head .h6 { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dt-team-row, .dt-key-row { display: grid; align-items: center; gap: 1.25rem; padding: .9rem 1.25rem; border-top: 1px solid var(--dt-border); }
.dt-panel-head + .dt-team-row, .dt-panel-head + .dt-key-row { border-top: 0; }
.dt-team-row { grid-template-columns: minmax(14rem, 1.5fr) 8rem minmax(12rem, 2fr) minmax(5rem, auto); }
.dt-key-row { grid-template-columns: minmax(12rem, 1.3fr) 8rem minmax(10rem, 1.5fr) minmax(12rem, 1.4fr) 6rem; }
.dt-key-row.is-inactive { opacity: .55; }
.dt-avatar { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--dt-accent-soft); color: var(--dt-accent); font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.dt-avatar.is-pending { background: var(--dt-surface-2); color: var(--dt-muted); }
.dt-avatar svg { width: 1.1rem; height: 1.1rem; }
.dt-role { display: inline-block; padding: .25rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--dt-surface-2); color: var(--dt-muted); }
.dt-role.is-owner { background: var(--dt-accent-soft); color: var(--dt-accent); }
.dt-role.is-admin { background: var(--dt-primary-soft); color: var(--dt-primary); }
.dt-role.is-editor { background: color-mix(in srgb, var(--dt-success) 14%, transparent); color: var(--dt-success); }
.dt-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.dt-chip { padding: .15rem .55rem; border-radius: .45rem; background: var(--dt-surface-2); font-size: .75rem; color: var(--dt-text); }
.dt-notice { padding: 1rem 1.25rem; border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--dt-success) 40%, transparent); background: color-mix(in srgb, var(--dt-success) 8%, var(--dt-surface)); }
.dt-secret { display: flex; gap: .5rem; }
.dt-secret .form-control { font-size: .85rem; }
.dt-radio-card { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem .85rem; border: 1px solid var(--dt-border); border-radius: .75rem; margin-bottom: .5rem; cursor: pointer; }
.dt-radio-card:has(input:checked) { border-color: var(--dt-primary); background: var(--dt-primary-soft); }
.dt-radio-card .form-check-input { margin-top: .2rem; flex-shrink: 0; }
.dt-type-picker { border: 0; padding: 0; margin: 0; }
.dt-type-picker legend { font-size: 1rem; font-weight: 500; margin-bottom: .5rem; }
.dt-team-row .btn { white-space: nowrap; }
.dt-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.dt-type-option { display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; border: 1px solid var(--dt-border); border-radius: .65rem; cursor: pointer; font-size: .88rem; }
.dt-type-option:has(input:checked) { border-color: var(--dt-primary); background: var(--dt-primary-soft); }
.dt-type-option svg { width: 1rem; height: 1rem; color: var(--dt-primary); }
.dt-type-option .form-check-input { margin: 0; }
.dt-code { background: var(--dt-surface-2); border-radius: .75rem; padding: 1rem; font-size: .82rem; color: var(--dt-text); white-space: pre-wrap; }
@media (max-width: 991.98px) {
  .dt-team-row, .dt-key-row { grid-template-columns: 1fr auto; }
  .dt-team-row > :nth-child(3), .dt-key-row > :nth-child(3), .dt-key-row > :nth-child(4) { grid-column: 1 / -1; }
}

/* Notifications */
.dt-channel-row { display: grid; grid-template-columns: minmax(14rem, 1.6fr) minmax(10rem, 1.3fr) minmax(9rem, 1fr) auto; align-items: center; gap: 1.25rem; padding: .9rem 1.25rem; border-top: 1px solid var(--dt-border); }
.dt-panel-head + .dt-channel-row { border-top: 0; }
.dt-channel-row.is-inactive { opacity: .6; }
.dt-channel-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: .75rem; flex-shrink: 0; }
.dt-channel-icon svg { width: 1.2rem; height: 1.2rem; }
.dt-channel-icon.is-email { background: var(--dt-primary-soft); color: var(--dt-primary); }
.dt-channel-icon.is-telegram { background: color-mix(in srgb, #229ed9 16%, transparent); color: #229ed9; }
.dt-channel-icon.is-slack { background: color-mix(in srgb, #e01e5a 14%, transparent); color: #e01e5a; }
.dt-channel-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.dt-threshold-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.dt-history-row { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 1.25rem; border-top: 1px solid var(--dt-border); }
.dt-panel-head + .dt-history-row { border-top: 0; }
.dt-history-row .dt-dot { margin-top: .45rem; flex-shrink: 0; }
.dt-notice.is-error { border-color: color-mix(in srgb, var(--dt-danger) 40%, transparent); background: color-mix(in srgb, var(--dt-danger) 8%, var(--dt-surface)); }
@media (max-width: 991.98px) {
  .dt-channel-row { grid-template-columns: 1fr auto; }
  .dt-channel-row > :nth-child(2), .dt-channel-row > :nth-child(3) { grid-column: 1 / -1; }
  .dt-channel-types { grid-template-columns: 1fr; }
}
