:root {
  --dna-navy: #092442;
  --dna-blue: #0d6efd;
  --dna-slate: #667085;
  --dna-page: #f6f8fb;
  --dna-border: #d9e0e8;
}

html {
  font-size: 15px;
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background: var(--dna-page);
  color: #1f2937;
  max-width: 100%;
  overflow-x: clip;
}

.bg-dna {
  background: var(--dna-navy);
}

.navbar {
  min-height: 52px;
  padding-top: 0.38rem;
  padding-bottom: 0.38rem;
  box-shadow: 0 1px 3px rgb(9 36 66 / 18%);
}

.navbar-brand {
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.navbar-brand-logo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.35rem;
  object-fit: cover;
  background: #fff;
}

.navbar-user-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.navbar-user-tools form {
  margin: 0;
}

.navbar-profile-link {
  flex: 0 0 auto;
  color: rgb(255 255 255 / 84%);
  text-decoration: none;
}

.navbar-profile-link:hover,
.navbar-profile-link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.navbar-avatar {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.navbar-avatar > a,
.navbar-avatar > a > img {
  display: block;
  width: 100%;
  height: 100%;
}

.navbar-avatar > a > img {
  object-fit: contain;
  image-rendering: auto;
}

.notification-center { position: relative; flex: 0 0 auto; }
.pwa-install-button { min-height: 1.8rem; padding: 0.18rem 0.45rem; border: 1px solid rgb(255 255 255 / 35%); border-radius: 0.35rem; background: transparent; color: #fff; font-size: 0.72rem; font-weight: 700; }
.pwa-install-button:hover, .pwa-install-button:focus-visible { background: rgb(255 255 255 / 12%); }
.pwa-install-button[hidden] { display: none; }
.notification-toggle { position: relative; display: inline-grid; width: 1.8rem; height: 1.8rem; padding: 0.25rem; place-items: center; border: 1px solid rgb(255 255 255 / 35%); border-radius: 0.35rem; background: transparent; color: #fff; }
.notification-toggle:hover, .notification-toggle:focus-visible { background: rgb(255 255 255 / 12%); }
.notification-toggle svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.notification-count { position: absolute; top: -0.35rem; right: -0.4rem; min-width: 1rem; height: 1rem; padding: 0 0.2rem; border-radius: 999px; background: #dc3545; color: #fff; font-size: 0.6rem; font-weight: 700; line-height: 1rem; text-align: center; }
.notification-panel { position: absolute; top: calc(100% + 0.55rem); right: 0; z-index: 1050; width: min(22rem, calc(100vw - 2rem)); overflow: hidden; border: 1px solid var(--dna-border); border-radius: 0.45rem; background: #fff; box-shadow: 0 10px 28px rgb(9 36 66 / 18%); color: var(--dna-navy); white-space: normal; }
.notification-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--dna-border); }
.notification-mark-all { border: 0; background: transparent; color: var(--dna-blue); font-size: 0.7rem; }
.notification-list { max-height: 20rem; overflow-y: auto; }
.notification-item { display: grid; gap: 0.15rem; padding: 0.65rem 0.8rem; border-bottom: 1px solid #edf0f5; color: inherit; text-decoration: none; }
.notification-item:hover, .notification-item:focus-visible { background: #f6f8fb; }
.notification-item strong { font-size: 0.76rem; }
.notification-item span { color: var(--dna-slate); font-size: 0.72rem; line-height: 1.35; }
.notification-item small { color: var(--dna-slate); font-size: 0.65rem; }
.notification-item-unread { border-left: 3px solid var(--dna-blue); padding-left: calc(0.8rem - 3px); }
.notification-empty { margin: 0; padding: 1rem 0.8rem; color: var(--dna-slate); font-size: 0.75rem; }

.spotify-nav-now {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
  max-width: min(26rem, 34vw);
  flex: 0 1 min(26rem, 34vw);
  color: rgb(255 255 255 / 84%);
  font-size: 0.72rem;
}

.spotify-nav-now[hidden] { display: none; }
.spotify-nav-now > img { width: 1rem; height: 1rem; flex: 0 0 auto; }
.spotify-nav-bars { display: inline-flex; align-items: end; gap: 2px; height: 0.95rem; flex: 0 0 auto; }
.spotify-nav-bars i { display: block; width: 2px; height: 35%; border-radius: 2px; background: #63e68e; animation: spotify-nav-equalizer 0.9s ease-in-out infinite alternate; }
.spotify-nav-bars i:nth-child(2) { height: 75%; animation-delay: -0.25s; }
.spotify-nav-bars i:nth-child(3) { height: 48%; animation-delay: -0.55s; }
.spotify-nav-bars i:nth-child(4) { height: 90%; animation-delay: -0.4s; }
.spotify-nav-bars i:nth-child(5) { height: 60%; animation-delay: -0.1s; }
.spotify-nav-track-viewport { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spotify-nav-track { display: inline-block; white-space: nowrap; }
.spotify-nav-track.is-rolling { animation: spotify-nav-roll 10s ease-in-out infinite alternate; }

@keyframes spotify-nav-equalizer { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }
@keyframes spotify-nav-roll { from { transform: translateX(0); } to { transform: translateX(min(0px, calc(-1 * (100% - 8rem)))); } }

@media (prefers-reduced-motion: reduce) {
  .spotify-nav-bars i, .spotify-nav-track.is-rolling { animation: none; }
}

.mobile-site-menu {
  display: none;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-heading h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.page-heading p {
  margin: 0.25rem 0 0;
  color: var(--dna-slate);
}

.page-heading.dashboard-heading { flex-direction: row; }
.dashboard-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem; }
.dashboard-heading .dashboard-actions { margin-left: auto; }
.page-heading.dashboard-heading .btn { width: auto; flex-shrink: 0; }
.btn.dashboard-switch { display: inline-flex; align-items: center; justify-content: center; width: 30px; min-width: 30px; height: 24px; min-height: 24px; padding: 0; font-size: 1rem; line-height: 1; }
.dashboard-switch[aria-busy="true"] { cursor: progress; background: #e0edf7; }
.dashboard-switch[aria-busy="true"] span { animation: dashboard-switch-loading 1s linear infinite; }
@keyframes dashboard-switch-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .dashboard-switch[aria-busy="true"] span { animation: none; }
}

.panel {
  background: #fff;
  border: 1px solid var(--dna-border);
  border-radius: 0.55rem;
  box-shadow: 0 1px 2px rgb(16 24 40 / 4%);
  padding: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 920px;
}

.grid-wide {
  grid-column: 1 / -1;
}

.form-control,
.form-select {
  min-height: 38px;
  padding: 0.42rem 0.62rem;
  border-radius: 0.42rem;
}

.form-label {
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.company-contact-option {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.25rem;
}

.company-contact-fields {
  padding: 0.8rem;
  border: 1px solid var(--dna-border);
  border-radius: 0.45rem;
  background: #fbfcfe;
}

.company-contact-fields h2 {
  margin: 0 0 0.7rem;
  color: var(--dna-navy);
}

.page-actions,
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tax-evidence-workspace { min-width: 0; }

.list-toolbar {
  max-width: 620px;
  margin-bottom: 1rem;
}

.list-toolbar .form-control {
  flex: 1 1 240px;
}

.table-primary-link {
  color: #174ea6;
  font-weight: 700;
  text-decoration: none;
}

.table-primary-link:hover {
  text-decoration: underline;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.detail-grid > div {
  display: grid;
  gap: 0.2rem;
}

.detail-label {
  color: var(--dna-slate);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pre-line {
  white-space: pre-line;
}

.note-content,
.note-markdown { min-width: 0; max-width: 100%; }
.note-markdown { overflow-wrap: anywhere; }
.note-markdown > :first-child { margin-top: 0; }
.note-markdown > :last-child { margin-bottom: 0; }
.note-markdown h1,
.note-markdown h2,
.note-markdown h3,
.note-markdown h4 {
  color: var(--dna-navy);
  margin: 1.25rem 0 0.6rem;
}
.note-markdown h1 { font-size: 1.45rem; }
.note-markdown h2 { font-size: 1.2rem; }
.note-markdown h3 { font-size: 1.05rem; }
.note-markdown ul,
.note-markdown ol { padding-left: 1.35rem; }
.note-markdown pre {
  background: #f4f7fb;
  border: 1px solid var(--dna-border);
  border-radius: 0.35rem;
  overflow-x: auto;
  padding: 0.75rem;
}
.note-markdown code { color: var(--dna-navy); }
.note-markdown table {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 65vh;
  overflow: auto;
  border: 1px solid var(--dna-border);
  border-collapse: separate;
  border-spacing: 0;
}
.note-markdown th,
.note-markdown td {
  min-width: 10rem;
  max-width: 24rem;
  padding: 0.45rem 0.65rem;
  border-right: 1px solid var(--dna-border);
  border-bottom: 1px solid var(--dna-border);
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.note-markdown th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf2f8;
  color: var(--dna-navy);
}
.note-markdown tbody tr:nth-child(even) { background: #f8fafc; }
.note-markdown tbody tr:hover { background: #e8f1ff; }
.note-markdown tr > :last-child { border-right: 0; }
.note-markdown tbody tr:last-child > td { border-bottom: 0; }
.wiki-link {
  color: var(--dna-blue);
  font-weight: 600;
}
.wiki-link-unresolved {
  color: inherit;
  font-weight: 400;
}

.notes-list .table > :not(caption) > * > * {
  padding: 0.28rem 0.7rem;
}
.notes-search {
  display: flex;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--dna-border);
}
.notes-search .form-control { min-width: 0; }
.notes-search .btn-link { padding-right: 0.2rem; padding-left: 0.2rem; }
.notes-ai-search { border-top: 0; }
.notes-index-status { padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--dna-border); color: var(--dna-slate); font-size: 0.72rem; }
.notes-ai-results { display: grid; gap: 0.65rem; padding: 0 0.7rem 0.7rem; }
.note-ai-result { padding-top: 0.65rem; border-top: 1px solid var(--dna-border); }
.note-ai-result p { margin: 0.25rem 0 0; color: var(--dna-slate); font-size: 0.82rem; line-height: 1.45; }
.notes-list .table {
  table-layout: fixed;
}
.notes-category-column { width: 12rem; }
.notes-subcategory-column { width: 12rem; }
.notes-visibility-column { width: 6.4rem; }
.notes-created-column { width: 7rem; }
.notes-actions-column { width: 3.9rem; }
.notes-list .table thead th {
  font-size: 0.67rem;
}
.notes-filter-select {
  max-width: 100%;
  min-height: 1.55rem;
  padding: 0.1rem 1.4rem 0.1rem 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.btn-note-view {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  line-height: 1;
  min-height: 0;
  padding: 0.14rem 0.4rem;
  white-space: nowrap;
}

.muted-panel {
  color: var(--dna-slate);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.note-summary { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--dna-border); }
.note-summary a { color: inherit; text-decoration: none; }
.note-summary a:hover { text-decoration: underline; }

.btn {
  min-height: 36px;
  border-radius: 0.42rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--dna-blue);
  border-color: var(--dna-blue);
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

.table {
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding: 0.72rem 0.8rem;
}

.table thead th {
  color: #475467;
  background: #f8fafc;
  border-bottom-width: 1px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.table-actions {
  white-space: nowrap;
  text-align: right;
}
.table-actions .btn.btn-sm {
  min-height: 27px;
  padding: 0.12rem 0.42rem;
  font-size: 0.72rem;
  line-height: 1.2;
}

.data-list-table {
  font-size: 0.82rem;
}

.data-list-table > :not(caption) > * > * {
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
}

.data-list-table thead th {
  font-size: 0.68rem;
}

.status-badge {
  display: inline-block;
  padding: 0.18rem 0.46rem;
  border-radius: 999px;
  background: #e8f1ff;
  color: #174ea6;
  font-size: 0.8rem;
  font-weight: 700;
}
.status-shared {
  background: #fde7ef;
  color: #a61b4d;
}

.defaults-layout { display: grid; grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr); gap: 0.8rem; align-items: start; }
.defaults-nav { padding: 0; overflow: hidden; }
.defaults-nav > .detail-label { display: block; padding: 0.75rem 0.9rem; }
.defaults-nav-link { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.62rem 0.82rem; border-top: 1px solid var(--dna-border); color: var(--dna-navy); font-size: 0.86rem; font-weight: 500; text-decoration: none; }
.defaults-nav-link:hover, .defaults-nav-link.is-active { background: #eaf3ff; color: #0d5db8; }
.art-inventory-workspace { min-width: 0; }
.art-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.art-summary-card { min-height: 5rem; padding: 0.85rem; }
.art-summary-card span { display: block; color: var(--dna-slate); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; }
.art-summary-card strong { display: block; margin-top: 0.2rem; color: var(--dna-navy); font-size: 1.35rem; line-height: 1.2; }
.art-list .table { min-width: 920px; }
.art-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--dna-border); }
.artwork-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); grid-auto-rows: 1fr; gap: 0.85rem; }
.artwork-card { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.artwork-card-actions { display: flex; justify-content: flex-end; margin-top: auto; }
.artwork-card-actions .btn, .artwork-heading-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0.125rem 0.5rem; line-height: 1.2; }
.artwork-card-photo { display: grid; flex: none; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; border: 1px solid var(--dna-border); border-radius: 0.35rem; background: #f1f5f9; color: var(--dna-slate); font-size: 0.82rem; text-decoration: none; }
.artwork-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.artwork-mini-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 0.75rem; margin: 0; }
.artwork-mini-details dt { color: var(--dna-slate); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.artwork-mini-details dd { margin: 0; color: var(--dna-navy); font-size: 0.82rem; }
.artwork-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.34fr); gap: 1rem; align-items: start; }
.artwork-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.7rem; }
.artwork-photo-grid figure { display: grid; gap: 0.35rem; align-content: start; margin: 0; }
.artwork-photo-grid figure.is-thumbnail img { border-color: #0d5db8; box-shadow: 0 0 0 2px rgba(13, 93, 184, 0.16); }
.artwork-photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--dna-border); border-radius: 0.35rem; background: #f1f5f9; }
.artwork-photo-grid figcaption { color: var(--dna-slate); font-size: 0.72rem; overflow-wrap: anywhere; }
.thumbnail-badge { display: inline-flex; align-items: center; margin-right: 0.35rem; padding: 0.08rem 0.35rem; border-radius: 999px; background: #eaf3ff; color: #0d5db8; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; }
.artwork-photo-form { display: grid; gap: 0.5rem; margin-top: 1rem; }
.graphic-tools-workspace { min-width: 0; }
.graphic-tool-panel { max-width: 52rem; }
.graphic-tool-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.graphic-tool-columns > .graphic-tool-panel,
.graphic-tool-columns > .graphic-jobs-column { min-width: 0; max-width: none; }
.prompt-expansion-field { display: grid; gap: 0.35rem; }
.prompt-expansion-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.55rem; align-items: stretch; }
.prompt-expansion-controls textarea { min-height: 54px; resize: vertical; }
.prompt-expansion-controls .btn { align-self: center; white-space: nowrap; }
.image-editor-assets { display: grid; gap: 0.45rem; }
.image-editor-asset-grid { display: grid; grid-template-columns: repeat(auto-fill, 5.75rem); gap: 0.65rem; justify-content: start; }
.image-editor-asset-option { display: grid; gap: 0.35rem; min-width: 0; margin: 0; cursor: pointer; color: var(--dna-navy); font-size: 0.74rem; }
.image-editor-asset-option input { margin: 0; }
.image-editor-asset-option img { width: 5.75rem; height: 5.75rem; object-fit: cover; border: 1px solid var(--dna-border); border-radius: 0.3rem; background: #f1f3f5; }
.image-editor-asset-option:has(input:checked) img { border-color: var(--dna-blue); box-shadow: 0 0 0 2px #dbeafe; }
.image-editor-asset-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiny-world-preview { display: grid; gap: 0.45rem; }
.tiny-world-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; max-width: min(100%, 28rem); }
.tiny-world-selection-stage { position: relative; display: inline-block; max-width: min(100%, 28rem); cursor: crosshair; touch-action: none; }
.tiny-world-selection-stage img { display: block; max-width: 100%; width: auto; height: auto; max-height: 20rem; border: 1px solid var(--dna-border); border-radius: 0.35rem; background: #f8fafc; }
.tiny-world-selection-box { position: absolute; display: none; border: 2px solid var(--dna-blue); background: rgba(13, 110, 253, 0.14); box-shadow: 0 0 0 9999px rgba(10, 35, 66, 0.22); pointer-events: none; }
.tiny-world-selection-box.is-active { display: block; }
.tiny-world-selection-input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tiny-world-preview-whole .tiny-world-selection-stage { cursor: default; touch-action: auto; }
.tiny-world-preview-whole [data-tiny-world-selection-help],
.tiny-world-preview-whole [data-tiny-world-reset],
.tiny-world-preview-whole .tiny-world-selection-box { display: none; }
.graphic-jobs-column { display: grid; min-width: 0; gap: 1rem; }
.graphic-jobs-column .graphic-job { margin-top: 0 !important; }
.graphic-job-history { max-height: 25rem; overflow-y: auto; }
.graphic-jobs-column:not(:has(.graphic-job)) .graphic-job-history { height: 100%; max-height: none; box-sizing: border-box; }
.graphic-job-history .section-head { position: sticky; top: -1rem; z-index: 1; margin: -1rem -1rem 0.75rem; padding: 1rem; background: #fff; }
.graphic-result { max-width: 52rem; }
.graphic-result-image, .graphic-result-video { display: block; width: auto; max-width: 100%; max-height: 42rem; margin: 0.85rem auto 0; border: 1px solid var(--dna-border); border-radius: 0.35rem; }
.graphic-result-video { width: 100%; }
.graphic-asset-detail-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr); gap: 1rem; align-items: start; }
.graphic-asset-detail-layout .graphic-result { max-width: none; }
.graphic-asset-details { min-width: 0; }
.graphic-asset-details h2 { margin-bottom: 0.9rem; }
.graphic-asset-details dl { display: grid; gap: 0.8rem; margin: 0; }
.graphic-asset-detail { display: grid; gap: 0.22rem; min-width: 0; }
.graphic-asset-detail dt { color: var(--dna-slate); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.graphic-asset-detail dd { margin: 0; color: var(--dna-navy); font-size: 0.82rem; }
.graphic-asset-prompt { max-height: 13rem; overflow: auto; padding: 0.55rem 0.65rem; border: 1px solid var(--dna-border); border-radius: 0.3rem; background: #f8fafc; font: inherit; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.graphic-asset-detail-empty { color: var(--dna-slate); font-size: 0.82rem; }
.graphic-result-image-transparent { background-color: #f1f3f5; background-image: linear-gradient(45deg, #d8dde3 25%, transparent 25%), linear-gradient(-45deg, #d8dde3 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #d8dde3 75%), linear-gradient(-45deg, transparent 75%, #d8dde3 75%); background-position: 0 0, 0 0.75rem, 0.75rem -0.75rem, -0.75rem 0; background-size: 1.5rem 1.5rem; }
.graphic-job-list { display: grid; gap: 0.55rem; }
.graphic-job-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.45rem 0.75rem; align-items: start; padding: 0.55rem 0; border-top: 1px solid var(--dna-border); font-size: 0.82rem; }
.graphic-job-row small, .graphic-job-row .graphic-job-result { display: block; margin-top: 0.18rem; }
.graphic-job-copy { min-width: 0; }
.graphic-job-side { display: grid; justify-items: end; gap: 0.4rem; }
.graphic-job-result { margin-top: 0.7rem; }
.graphic-job-action { margin: 0.45rem 0 0; }
.graphic-job-side .graphic-job-action { margin-top: 0; }
.graphic-job-request { margin-top: 0.45rem; color: var(--dna-slate); font-size: 0.78rem; }
.graphic-job-row > .graphic-job-request { grid-column: 1 / -1; margin-top: 0.2rem; }
.graphic-job-request summary { cursor: pointer; color: var(--dna-blue); font-weight: 700; }
.graphic-job-request-grid { display: grid; grid-template-columns: 1fr; gap: 0.65rem; margin-top: 0.5rem; }
.graphic-job-request-field { display: grid; gap: 0.3rem; min-width: 0; margin: 0; padding: 0.55rem 0.65rem; border: 1px solid var(--dna-border); border-radius: 0.3rem; background: #f8fafc; }
.graphic-job-request-field span { color: var(--dna-slate); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.graphic-job-request-grid textarea,
.graphic-job-request-grid input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--dna-navy); font-size: 0.78rem; font-weight: 400; line-height: 1.4; }
.graphic-job-request-grid textarea { min-height: 4.25rem; resize: vertical; }
.graphic-job-request-grid input { height: auto; }
.status-queued { background: #e8f1ff; color: #174ea6; }
.status-running { background: #dff3ff; color: #075985; }
.status-completed { background: #e8f7ef; color: #157347; }
.status-failed { background: #fff0f0; color: #b42318; }
.graphic-asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.75rem; }
.graphic-asset-card { color: var(--dna-navy); font-size: 0.76rem; }
.graphic-asset-card > a { display: block; color: inherit; text-decoration: none; }
.graphic-asset-card img, .graphic-asset-card video, .graphic-asset-card .graphic-video-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--dna-border); border-radius: 0.3rem; background: #f1f3f5; }
.graphic-asset-meta { display: flex; min-height: 1.65rem; align-items: center; justify-content: space-between; gap: 0.35rem; }
.graphic-asset-meta > a { overflow: hidden; color: inherit; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.graphic-asset-meta form { display: flex; margin: 0; }
.graphic-asset-delete { display: inline-grid; width: 1.5rem; height: 1.5rem; padding: 0.18rem; place-items: center; border: 0; border-radius: 0.2rem; background: transparent; color: #6c7785; }
.graphic-asset-delete:hover, .graphic-asset-delete:focus-visible { background: #fff1f0; color: #b42318; }
.graphic-asset-delete svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.graphic-assets-more { margin-top: 0.75rem; }
.graphic-assets-more summary { width: fit-content; list-style: none; cursor: pointer; }
.graphic-assets-more summary::-webkit-details-marker { display: none; }
.graphic-asset-library { display: grid; gap: 0.7rem; }
.graphic-asset-library-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* Keep full-height cards in the scroll area instead of shrinking rows to fit it. */
.graphic-asset-library-grid { display: grid; max-height: calc(100vh - 13rem); min-height: 22rem; overflow: auto; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 0.65rem; padding-right: 0.25rem; }
.graphic-asset-library-card { min-width: 0; overflow: hidden; border: 1px solid var(--dna-border); border-radius: 0.35rem; background: #fff; }
.graphic-asset-library-preview { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f1f3f5; }
.graphic-asset-library-preview img, .graphic-asset-library-preview video, .graphic-asset-library-preview .graphic-video-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.graphic-video-placeholder { display: grid; place-items: center; color: #536477; background: linear-gradient(135deg, #eef2f7, #dfe7f1); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.graphic-video-placeholder span { padding: 0.22rem 0.45rem; border-radius: 999px; background: rgb(255 255 255 / 72%); }
.graphic-asset-library-body { display: grid; gap: 0.28rem; padding: 0.45rem; color: var(--dna-slate); font-size: 0.7rem; }
.graphic-asset-library-name { overflow: hidden; color: var(--dna-navy); font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.graphic-asset-library-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem; }
.graphic-asset-reference-form { margin: 0; min-width: 0; }
.graphic-asset-reference-form label { display: inline-flex; align-items: center; gap: 0.28rem; color: var(--dna-navy); font-size: 0.72rem; cursor: pointer; }
.graphic-asset-library-delete-form { display: flex; margin: 0; }
.graphic-asset-view-actions { display: flex; align-items: stretch; gap: 0.65rem; margin-bottom: 1rem; }
.graphic-asset-reference-card { flex: 1 1 auto; margin: 0; padding: 0.65rem 0.75rem; border: 1px solid var(--dna-border); border-radius: 0.35rem; background: #f8fafc; }
.graphic-asset-reference-card--with-delete { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.graphic-asset-reference-card label { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--dna-navy); font-weight: 700; cursor: pointer; }
.graphic-asset-view-delete-form { display: flex; align-items: center; margin: 0; }
@media (max-width: 900px) { .graphic-asset-detail-layout { grid-template-columns: 1fr; } }
.defaults-nav-link.is-active { box-shadow: inset 3px 0 var(--dna-blue); }
.defaults-count { min-width: 1.4rem; padding: 0.04rem 0.38rem; border-radius: 999px; background: #e3eaf3; color: #526176; font-size: 0.76rem; text-align: center; }
.defaults-title { padding: 0.85rem 0.9rem 0.45rem; }
.defaults-title h2 { margin: 0; font-size: 0.92rem; font-weight: 600; }
.defaults-title p { margin: 0.18rem 0 0; color: var(--dna-slate); font-size: 0.78rem; }
.defaults-inline-add { display: flex; gap: 0.55rem; padding: 0.7rem 1rem; border-top: 1px solid var(--dna-border); }
.defaults-inline-add .form-control { border: 0; box-shadow: none; }
.defaults-steam-form { padding: 0.85rem 1rem; border-bottom: 1px solid var(--dna-border); }
.defaults-steam-form h3 { margin-bottom: 0.35rem; }
.defaults-steam-form p { margin-bottom: 0.8rem; }
.channel-logo { display: block; width: 18px; height: 18px; object-fit: contain; }
.colour-picker-control { display: flex; gap: 0.5rem; align-items: center; }
.colour-picker-control .colour-value { min-width: 0; }
.colour-picker { flex: 0 0 2.75rem; width: 2.75rem; height: 2.4rem; padding: 0.2rem; cursor: pointer; }
.default-colour-swatch { display: block; width: 28px; height: 18px; border: 1px solid rgba(15, 23, 42, 0.18); border-radius: 0.22rem; }
.defaults-content .table > :not(caption) > * > * { padding: 0.36rem 0.8rem; font-size: 0.85rem; }
.defaults-content .table thead th { font-size: 0.7rem; }
.defaults-content .table-primary-link { font-weight: 500; }
.defaults-content .btn.btn-sm { min-height: 27px; padding: 0.12rem 0.42rem; font-size: 0.72rem; }

.tax-evidence-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--dna-border); }
.tax-evidence-filters .form-select { min-height: 32px; padding-top: 0.25rem; padding-bottom: 0.25rem; font-size: 0.82rem; }
.tax-evidence-list .table > :not(caption) > * > * { padding: 0.42rem 0.64rem; }
.tax-evidence-list .table tbody td { font-size: 0.8rem; }
.tax-evidence-list .table small { font-size: 0.68rem; }
.tax-evidence-list .form-control,
.tax-evidence-list .form-select { min-height: 29px; padding: 0.18rem 0.38rem; font-size: 0.8rem; }
.tax-evidence-inline-input { min-width: 8rem; }
.tax-evidence-inline-year { min-width: 5.7rem; width: 5.7rem; }
.tax-evidence-inline-date { width: 8.5rem; margin-top: 0.18rem; }
.tax-evidence-inline-amount { display: grid; grid-template-columns: 4.3rem minmax(5.9rem, 1fr); gap: 0.28rem; min-width: 10.5rem; }
.tax-evidence-inline-status { min-width: 8.5rem; }
.tax-evidence-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.25rem; }
.tax-evidence-row-actions .btn.btn-sm { display: inline-flex; width: 2.75rem; min-height: 27px; height: 27px; align-items: center; justify-content: center; padding: 0.12rem 0.42rem; border-radius: 0.42rem; font-size: 0.7rem; line-height: 1.2; }
.tax-evidence-inline-save { min-height: 27px; padding: 0.12rem 0.42rem; font-size: 0.7rem; }
.tax-amount-grid { display: grid; grid-template-columns: minmax(76px, .35fr) minmax(0, 1fr); gap: 1rem; }
.status-needs_review { background: #fff4d7; color: #875b00; }
.status-accepted { background: #e8f7ef; color: #157347; }
.status-rejected { background: #fff0f0; color: #b42318; }
.status-duplicate { background: #f1f3f6; color: #475467; }

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: linear-gradient(145deg, #061c33, #0b3b68);
}

.home-quote-panel { display: grid; min-height: calc(100vh - 150px); place-items: center; padding: clamp(1.5rem, 6vw, 6rem) 1rem; }
.home-quote { width: min(100%, 900px); margin: 0; text-align: center; }
.home-quote blockquote { margin: 0; color: #172033; font-family: "Times New Roman", Times, serif; font-size: clamp(2rem, 4.2vw, 4.2rem); font-weight: 400; line-height: 1.15; overflow-wrap: anywhere; }
.home-quote blockquote.is-typing::after { content: "|"; display: inline-block; margin-left: 0.08em; color: var(--dna-blue); animation: home-quote-cursor 0.85s steps(1, end) infinite; }
@keyframes home-quote-cursor { 50% { opacity: 0; } }
.home-quote figcaption { margin-top: 1.1rem; color: var(--dna-slate); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.78rem; font-weight: 500; }
.home-empty { text-align: center; }

.technical-dashboard { display: grid; gap: 0.8rem; }
.weather-section-heading { margin-top: 0.05rem; }
.weather-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
.weather-card { display: grid; align-content: start; gap: 0.55rem; min-width: 0; overflow: hidden; padding: 0.8rem; border-top: 3px solid #b9c6d8; }
.weather-card-header h2 { margin: 0; color: var(--dna-navy); font-size: 0.95rem; line-height: 1.25; }
.weather-card-header small, .weather-card-state, .weather-metric span { color: var(--dna-slate); font-size: 0.75rem; }
.weather-card-state { min-height: 1rem; }
.weather-card-stale { border-top-color: #98a2b3; background: #f5f6f8; }
.weather-card-stale .weather-metrics { opacity: 0.62; }
.weather-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.weather-metric { display: grid; gap: 0.2rem; min-width: 0; padding: 0.55rem; border: 1px solid #e1e7ef; border-radius: 0.4rem; background: #fbfcfe; }
.weather-metric strong { color: var(--dna-navy); font-size: 1rem; font-variant-numeric: tabular-nums; }
.tide-section-heading { margin-top: 0.05rem; }
.tide-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
.tide-card { display: grid; align-content: start; gap: 0.75rem; min-width: 0; overflow: hidden; padding: 0.85rem; background: linear-gradient(180deg, #fff, #f8fbff); }
.tide-card-unavailable { background: #f5f6f8; }
.tide-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.tide-card-header h2 { margin: 0; color: var(--dna-navy); font-size: 1.25rem; line-height: 1.18; }
.tide-card-header small, .tide-footer, .tide-event-next span, .tide-event-next small, .tide-state-panel span, .tide-walk-panel span { color: var(--dna-slate); font-size: 0.82rem; }
.tide-status { flex: 0 0 auto; padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.tide-status-ok { color: #075985; background: #e0f2fe; }
.tide-status-unavailable { color: var(--dna-slate); background: #eef1f5; }
.tide-experience { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(19rem, 1fr); gap: 0.85rem; align-items: stretch; }
.tide-scene-shell { position: relative; min-width: 0; align-self: start; overflow: hidden; border-radius: 0.65rem; background: #95cdf4; }
.beach-scene { position: relative; width: 100%; aspect-ratio: 1672 / 941; overflow: hidden; isolation: isolate; }
.beach-scene-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.beach-scene-layer[hidden] { display: none; }
.beach-scene-layer[data-scene-layer="weather"] { z-index: 1; }
.beach-scene-layer[data-scene-layer="jenny"] { z-index: 2; }
.beach-scene-layer[data-scene-layer="jack"] { z-index: 3; }
.tide-selection-caption { z-index: 4; }
.jenny-weather-panel { min-width: 0; padding: 0.9rem 1rem; border: 1px solid #e1e7ef; border-radius: 0.65rem; background: #fbfcfe; }
.jenny-weather-panel header, .jenny-weather-details { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; }
.jenny-weather-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem 0.85rem; margin-top: 0.6rem; color: var(--dna-navy); }
.jenny-weather-main > strong { font-size: 1.8rem; line-height: 1.15; }
.jenny-feels-like { margin: 0.35rem 0 0.7rem; }
.jenny-weather-panel small, .jenny-feels-like, .jenny-weather-details, .jenny-weather-panel header > span { color: var(--dna-slate); font-size: 0.82rem; }
.jenny-weather-panel small { display: block; margin-top: 0.7rem; }
.tide-selection-caption { position: absolute; right: 0.65rem; bottom: 0.65rem; padding: 0.3rem 0.55rem; border-radius: 0.4rem; color: var(--dna-navy); background: rgb(255 255 255 / 92%); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.tide-side { display: grid; gap: 0.85rem; align-content: start; min-width: 0; }
.tide-updated { display: block; margin-top: 0.15rem; }
.tide-current-panel, .tide-walk-panel { min-width: 0; padding: 0.9rem 1rem; border: 1px solid #e1e7ef; border-radius: 0.65rem; background: #fbfcfe; }
.tide-current-panel { background: linear-gradient(135deg, #eaf6ff, #f8fbff); }
.tide-panel-heading { margin: 0; color: var(--dna-navy); font-size: 0.87rem; line-height: 1.3; font-weight: 700; letter-spacing: 0.045em; text-transform: uppercase; }
.tide-state-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem; align-items: center; margin-top: 0.65rem; }
.tide-state-panel .tide-state-arrow { color: #106795; font-size: 2.3rem; line-height: 1; font-weight: 700; }
.tide-state-panel strong { display: block; color: #106795; font-size: 1.65rem; line-height: 1.12; letter-spacing: 0.025em; }
.tide-state-panel span[data-tide-state-copy] { display: block; margin-top: 0.25rem; }
.tide-card-falling .tide-state-arrow, .tide-card-falling .tide-state-panel strong { color: #0f766e; }
.tide-card-near .tide-state-arrow, .tide-card-near .tide-state-panel strong { color: #92400e; }
.tide-card-unavailable .tide-state-arrow, .tide-card-unavailable .tide-state-panel strong { color: var(--dna-slate); }
.tide-event-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.7rem; margin-top: 0.8rem; padding-top: 0.75rem; border-top: 1px solid #dce7ef; }
.tide-event-next, .tide-event-countdown { display: grid; align-content: start; gap: 0.25rem; min-width: 0; }
.tide-event-countdown { padding-left: 0.8rem; border-left: 1px solid #dce7ef; }
.tide-event-next strong, .tide-event-countdown strong { color: var(--dna-navy); font-size: 1.6rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tide-event-countdown span { color: var(--dna-slate); font-size: 0.82rem; }
.tide-walk-panel header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 0.6rem; }
.tide-walk-window { display: block; margin-top: 0.3rem; }
.tide-walk-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; margin-top: 0.75rem; }
.tide-walk-sample { display: grid; gap: 0.25rem; min-width: 0; padding: 0.45rem 0.2rem; text-align: center; background: #eef4f8; border: 2px solid transparent; border-radius: 0.4rem; font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; }
.tide-walk-sample:hover:not(:disabled) { border-color: #86b7da; }
.tide-walk-sample[aria-pressed="true"] { border-color: #106795; background: #dff1fc; box-shadow: inset 0 -2px #106795; }
.tide-walk-sample:focus-visible { outline: 3px solid var(--dna-blue); outline-offset: 2px; }
.tide-walk-sample:disabled { cursor: default; opacity: 0.65; }
.tide-walk-sample strong { color: var(--dna-navy); font-size: 1.1rem; white-space: nowrap; }
.tide-walk-summary { margin: 0.75rem 0 0; color: #23516f; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.025em; }
.tide-walk-empty { grid-column: 1 / -1; color: var(--dna-slate); font-size: 0.82rem; }
.tide-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding-top: 0.5rem; border-top: 1px solid #e5eaf1; }
.tide-footer span { overflow-wrap: anywhere; }
@media (max-width: 991.98px) {
  .tide-experience { grid-template-columns: 1fr; }
  .tide-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .jenny-weather-panel { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .tide-side { grid-template-columns: 1fr; }
}

.adsb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; align-items: stretch; }
.adsb-card { display: grid; align-content: start; gap: 0.48rem; height: 100%; min-width: 0; overflow: hidden; padding: 0.68rem 0.74rem; border-top: 2px solid #b9c6d8; }
.adsb-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.55rem; min-width: 0; }
.adsb-card-header h2 { margin: 0; color: var(--dna-navy); font-size: 0.88rem; line-height: 1.22; }
.adsb-card-header small, .adsb-card-state, .adsb-rhythm-summary, .adsb-range-headline span, .adsb-range-headline small, .adsb-altitude-legend, .adsb-range-legend { color: var(--dna-slate); font-size: 0.7rem; }
.adsb-status { display: inline-flex; flex: 0 0 auto; padding: 0.12rem 0.34rem; border: 1px solid #d5dde8; border-radius: 999px; background: #f8fafc; color: #475467; font-size: 0.68rem; font-weight: 700; }
.adsb-status-tracking { border-color: #b8c9bd; background: #edf6ef; color: #275238; }
.adsb-status-receiver_offline { border-color: #ebc5c5; background: #fff4f4; color: #b42318; }
.adsb-status-no_aircraft { border-color: #d5dde8; background: #f2f4f7; color: #475467; }
.adsb-offline .adsb-card { border-top-color: #98a2b3; background: #f5f6f8; }
.adsb-offline .adsb-map-shell, .adsb-offline .adsb-polar-shell, .adsb-offline .adsb-rhythm-chart, .adsb-empty .adsb-map-shell { opacity: 0.62; }
.adsb-map-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; align-items: stretch; }
.adsb-map-shell, .adsb-polar-shell, .adsb-rhythm-chart { min-width: 0; border: 1px solid #e5eaf1; border-radius: 0.38rem; background: #f8fbff; }
.adsb-map-shell svg, .adsb-polar-shell svg, .adsb-rhythm-chart svg { display: block; width: 100%; min-height: 0; }
.adsb-map-shell svg, .adsb-polar-shell svg { aspect-ratio: 1 / 1; height: auto; }
.adsb-rhythm-chart svg { height: clamp(18rem, 24vw, 24rem); }
.adsb-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 0.22rem 0.48rem; min-width: 0; padding: 0.48rem; border: 1px solid #e5eaf1; border-radius: 0.38rem; background: #fbfcfe; color: var(--dna-slate); font-size: 0.7rem; }
.adsb-detail strong { color: var(--dna-navy); font-size: 0.8rem; }
.adsb-detail strong:first-child { grid-column: 1 / -1; }
.adsb-detail b { color: #344054; font-weight: 700; }
.adsb-range-ring, .adsb-bearing-line, .adsb-polar-ring, .adsb-polar-spoke { fill: none; stroke: #d9e3ef; stroke-width: 1; vector-effect: non-scaling-stroke; }
.adsb-bearing-line, .adsb-polar-spoke { stroke-dasharray: 3 4; }
.adsb-range-label, .adsb-receiver-label, .adsb-aircraft-label, .adsb-polar-label { fill: #667085; font-size: 11px; paint-order: stroke; stroke: #f8fbff; stroke-width: 3px; }
.adsb-receiver { fill: #0d6efd; stroke: #fff; stroke-width: 2; }
.adsb-aircraft { cursor: pointer; outline: none; }
.adsb-aircraft polygon { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.adsb-aircraft.is-selected polygon, .adsb-aircraft:focus-visible polygon { stroke: #111827; stroke-width: 2.4; }
.adsb-alt-low polygon, .adsb-alt-low { fill: #16a06a; background: #16a06a; }
.adsb-alt-mid polygon, .adsb-alt-mid { fill: #1769e0; background: #1769e0; }
.adsb-alt-high polygon, .adsb-alt-high { fill: #c2410c; background: #c2410c; }
.adsb-track-line { fill: none; stroke: #111827; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.52; vector-effect: non-scaling-stroke; }
.adsb-altitude-legend, .adsb-range-legend { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.adsb-altitude-legend i, .adsb-range-legend i { display: inline-block; width: 0.62rem; height: 0.62rem; margin-right: 0.2rem; border-radius: 0.16rem; vertical-align: -0.06rem; }
.adsb-week { background: #9fb2cc; }
.adsb-today { background: #0d6efd; }
.adsb-range-headline { display: grid; gap: 0.12rem; }
.adsb-range-headline strong { color: var(--dna-navy); font-size: 1.28rem; line-height: 1.08; }
.adsb-polar-week { fill: rgb(94 117 150 / 22%); stroke: #5e7596; stroke-width: 2; vector-effect: non-scaling-stroke; }
.adsb-polar-today { fill: rgb(13 110 253 / 18%); stroke: #0d6efd; stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.adsb-day-shade { fill: rgb(9 36 66 / 4%); }
.adsb-rhythm-bar { fill: #2f9e5b; rx: 1.5; }
.adsb-rhythm-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.55rem; }
.adsb-fleet-card { grid-column: 1 / -1; }
.adsb-fleet-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
.adsb-fleet-layout section { display: grid; align-content: start; gap: 0.38rem; min-width: 0; }
.adsb-fleet-layout h3 { margin: 0; color: var(--dna-navy); font-size: 0.78rem; line-height: 1.2; }
.adsb-fleet-list, .adsb-sightings-list { display: grid; gap: 0.28rem; min-width: 0; color: var(--dna-slate); font-size: 0.72rem; }
.adsb-fleet-list > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.45rem; align-items: baseline; padding: 0.38rem 0.45rem; border: 1px solid #e5eaf1; border-radius: 0.32rem; background: #fbfcfe; }
.adsb-fleet-list b, .adsb-sightings-list b { min-width: 0; overflow: hidden; color: var(--dna-navy); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.adsb-fleet-list strong { color: var(--dna-blue); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.adsb-fleet-list small { grid-column: 1 / -1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adsb-sightings-list > span { display: grid; grid-template-columns: 1.1fr 0.8fr 0.55fr 1.1fr; gap: 0.45rem; padding: 0.34rem 0.45rem; border-bottom: 1px solid #edf1f6; }
.adsb-sightings-list > .adsb-sightings-header { color: var(--dna-slate); font-size: 0.66rem; text-transform: uppercase; }
.adsb-sightings-list > .adsb-sightings-header b { color: inherit; }
.crypto-section-heading { margin-top: 0.05rem; }
.crypto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.crypto-card { display: grid; align-content: start; gap: 0.45rem; min-width: 0; overflow: hidden; padding: 0.8rem; border-top: 3px solid #b9c6d8; }
.crypto-card-header h2 { margin: 0; color: var(--dna-navy); font-size: 0.95rem; line-height: 1.25; }
.crypto-card-header small, .crypto-card-state, .crypto-updated { color: var(--dna-slate); font-size: 0.75rem; }
.crypto-card-state { min-height: 1rem; }
.crypto-card-stale { border-top-color: #98a2b3; background: #f5f6f8; }
.crypto-card-stale .crypto-price { color: var(--dna-slate); }
.crypto-price { color: var(--dna-navy); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.crypto-updated { font-variant-numeric: tabular-nums; }
.technical-intro { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.72rem 0.9rem; }
.technical-intro > div { display: grid; gap: 0.12rem; }
.technical-intro span { color: var(--dna-slate); font-size: 0.78rem; }
.wan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.wan-card { display: grid; gap: 0.55rem; min-width: 0; padding: 0.8rem; border-top: 3px solid #b9c6d8; }
.wan-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.wan-card-title { display: flex; align-items: center; gap: 0.42rem; min-width: 0; }
.wan-card-title h2 { margin: 0; color: var(--dna-navy); font-size: 0.95rem; line-height: 1.25; }
.wan-card-title h2 small { color: var(--dna-slate); font-size: 0.75rem; font-weight: 500; }
.wan-status-dot { width: 0.62rem; height: 0.62rem; flex: 0 0 auto; border-radius: 50%; background: #98a2b3; }
.wan-status-dot.is-up { background: #1f9d55; box-shadow: 0 0 0 3px #e7f6ec; }
.wan-status-dot.is-down { background: #d92d20; box-shadow: 0 0 0 3px #fde9e7; }
.wan-window-label { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--dna-slate); font-size: 0.7rem; white-space: nowrap; }
.wan-window-label .form-select { width: auto; min-width: 4.35rem; min-height: 27px; padding: 0.15rem 1.55rem 0.15rem 0.42rem; font-size: 0.72rem; }
.wan-card-state { min-height: 1rem; color: var(--dna-slate); font-size: 0.75rem; }
.wan-chart { min-width: 0; min-height: 175px; border-radius: 0.35rem; background: #fbfcfe; }
.wan-chart.is-empty { display: grid; min-height: 175px; place-items: center; color: var(--dna-slate); font-size: 0.78rem; }
.wan-chart.is-empty::after { content: "No data available for this window"; }
.wan-chart.is-empty svg { display: none; }
.wan-chart svg { display: block; width: 100%; height: 190px; overflow: visible; }
.wan-grid-line { stroke: #e5eaf1; stroke-width: 1; vector-effect: non-scaling-stroke; }
.wan-axis-label { fill: var(--dna-slate); font-size: 10px; }
.wan-area { stroke: none; opacity: 0.5; }
.wan-area-in { fill: #4b8df8; }
.wan-area-out { fill: #df756b; }
.wan-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.wan-line-in { stroke: #1769e0; }
.wan-line-out { stroke: #c83b32; }
.wan-legend { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; color: var(--dna-slate); font-size: 0.75rem; }
.wan-legend > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.wan-legend strong { color: var(--dna-navy); font-variant-numeric: tabular-nums; font-weight: 600; }
.wan-legend-swatch { width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.wan-legend-in { background: #1769e0; }
.wan-legend-out { background: #c83b32; }
.wan-card-no-data { border-top-color: #98a2b3; background: #f5f6f8; }
.wan-card-no-data .wan-chart, .wan-card-no-data .wan-legend { opacity: 0.55; }
.wan-card-down { border-top-color: #d92d20; }
.wan-card-down .wan-chart, .wan-card-down .wan-legend { opacity: 0.62; }
.jetson-section-heading { margin-top: 0.05rem; }
.jetson-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
.jetson-card { display: grid; gap: 0.7rem; min-width: 0; overflow: hidden; padding: 0.8rem; border-top: 3px solid #2f9e5b; }
.jetson-card-offline { border-top-color: #98a2b3; background: #f5f6f8; }
.jetson-card-offline .jetson-priority, .jetson-card-offline .jetson-secondary-grid, .jetson-card-offline .jetson-core-list, .jetson-card-offline .jetson-sparkline-grid { opacity: 0.7; }
.jetson-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.jetson-card-title { display: flex; align-items: center; gap: 0.42rem; }
.jetson-card-title h2 { margin: 0; color: var(--dna-navy); font-size: 0.95rem; line-height: 1.25; }
.jetson-card-header small, .jetson-card-footer, .jetson-priority span, .jetson-priority small, .jetson-secondary-grid span, .jetson-sparkline-grid span { color: var(--dna-slate); font-size: 0.72rem; }
.jetson-chip { display: inline-grid; width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 0.28rem; background: #e9f6ed; color: #168044; font-size: 0.62rem; font-weight: 800; }
.jetson-status { flex: 0 0 auto; padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.jetson-status-online { color: #087443; background: #e7f6ec; }
.jetson-status-offline { color: #8a2d24; background: #fde9e7; }
.jetson-status-waiting { color: var(--dna-slate); background: #eef1f5; }
.jetson-priority-grid { display: grid; grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.jetson-priority { display: grid; align-content: start; gap: 0.22rem; min-width: 0; padding: 0.58rem 0.65rem; border: 1px solid #e1e7ef; border-radius: 0.4rem; background: #fbfcfe; }
.jetson-priority strong { overflow: hidden; color: var(--dna-navy); font-size: clamp(1rem, 2.2vw, 1.35rem); line-height: 1.15; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.jetson-priority small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jetson-priority-memory strong { color: #168044; }
.jetson-secondary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; }
.jetson-secondary-grid > div { display: grid; gap: 0.16rem; min-width: 0; }
.jetson-secondary-grid strong { color: var(--dna-navy); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.jetson-core-list { display: flex; flex-wrap: wrap; gap: 0.3rem 0.55rem; min-height: 1.05rem; }
.jetson-core-list span { color: var(--dna-slate); font-size: 0.68rem; font-variant-numeric: tabular-nums; }
.jetson-sparkline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.jetson-sparkline-grid > div { display: grid; gap: 0.15rem; min-width: 0; }
.jetson-sparkline-grid svg { display: block; width: 100%; height: 40px; border-radius: 0.25rem; background: #fbfcfe; }
.jetson-sparkline-line { fill: none; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.jetson-card-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-top: 0.15rem; border-top: 1px solid #e5eaf1; }
.jetson-card-footer b { color: var(--dna-navy); font-weight: 600; }
.steam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: 0.8rem; align-items: stretch; }
.steam-section-heading { margin-top: 0.05rem; }
.steam-grid > .steam-card { box-sizing: border-box; min-width: 0; max-width: 100%; }
.steam-card { display: grid; align-content: start; gap: 0.55rem; min-width: 0; overflow: hidden; padding: 0.8rem; border-top: 3px solid #b9c6d8; }
.steam-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.steam-card-title { display: flex; align-items: center; gap: 0.42rem; }
.steam-card-header h2 { margin: 0; color: var(--dna-navy); font-size: 0.95rem; line-height: 1.25; }
.steam-card-header small { color: var(--dna-slate); font-size: 0.75rem; }
.steam-card-state { min-height: 1rem; color: var(--dna-slate); font-size: 0.75rem; }
.steam-card-stale { border-top-color: #98a2b3; background: #f5f6f8; }
.steam-card-stale .steam-movers-columns, .steam-card-stale .steam-size-list, .steam-card-stale .steam-rhythm-chart, .steam-card-stale .steam-rhythm-footer { opacity: 0.62; }
.steam-movers-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.steam-mover-group { min-width: 0; }
.steam-mover-group + .steam-mover-group { border-left: 1px solid #e5eaf1; padding-left: 0.8rem; }
.steam-mover-group h3 { margin: 0 0 0.25rem; color: var(--dna-slate); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.steam-game-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto 100px; align-items: center; gap: 0.45rem; min-height: 2rem; border-top: 1px solid #edf0f5; font-size: 0.73rem; }
.steam-rank { color: var(--dna-slate); font-variant-numeric: tabular-nums; }
.steam-game-name { min-width: 0; overflow: hidden; color: var(--dna-navy); text-overflow: ellipsis; white-space: nowrap; }
.steam-game-values { display: inline-flex; align-items: baseline; gap: 0.35rem; white-space: nowrap; }
.steam-game-values strong { color: var(--dna-navy); font-variant-numeric: tabular-nums; }
.steam-change-up { color: #168044; font-variant-numeric: tabular-nums; }
.steam-change-down { color: #b42318; font-variant-numeric: tabular-nums; }
.steam-change-flat { color: var(--dna-slate); font-variant-numeric: tabular-nums; }
.steam-sparkline { width: 100px; height: 24px; overflow: visible; }
.steam-sparkline-line { fill: none; stroke: #1769e0; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.steam-size-list { min-width: 0; }
.steam-rhythm-chart { min-width: 0; height: 190px; overflow: hidden; border-radius: 0.35rem; background: #fbfcfe; }
.steam-rhythm-chart svg { display: block; width: 100%; height: 190px; overflow: hidden; }
.steam-rhythm-chart { font-family: inherit; }
.steam-rhythm-chart .wan-axis-label { fill: var(--dna-slate); font-family: inherit; font-size: 8px; }
.steam-day-shade { fill: #f1f4f8; }
.steam-rhythm-area { fill: #4b8df8; opacity: 0.2; stroke: none; }
.steam-rhythm-line { fill: none; stroke: #1769e0; stroke-width: 2; vector-effect: non-scaling-stroke; }
.steam-now-line { stroke: #c83b32; stroke-dasharray: 3 3; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.steam-rhythm-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.7rem; color: var(--dna-slate); font-size: 0.75rem; }
.steam-rhythm-footer span:first-child { color: var(--dna-navy); font-weight: 700; }
.spotify-dashboard { display: grid; gap: 0.8rem; }
.spotify-section-heading { margin-top: 0.05rem; }
.spotify-section-heading strong { display: inline-flex; align-items: center; gap: 0.35rem; }
.spotify-logo { width: 1.1rem; height: 1.1rem; vertical-align: middle; }
.spotify-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.spotify-card { display: grid; align-content: start; gap: 0.65rem; min-width: 0; overflow: hidden; padding: 0.8rem; border-top: 3px solid #1db954; }
.spotify-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.spotify-card-header h2 { margin: 0; color: var(--dna-navy); font-size: 0.95rem; }
.spotify-card-header small, .spotify-attribution, .spotify-state { color: var(--dna-slate); font-size: 0.72rem; }
.spotify-attribution { color: #087f3d; }
.spotify-state { min-height: 1rem; }
.spotify-stale { background: #f5f6f8; border-top-color: #98a2b3; }
.spotify-stale .spotify-summary, .spotify-stale .spotify-hour-chart, .spotify-stale .spotify-columns { opacity: 0.62; }
.spotify-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; color: var(--dna-slate); font-size: 0.72rem; }
.spotify-summary strong { color: var(--dna-navy); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.spotify-summary span:last-child { margin-left: auto; }
.spotify-hour-chart { display: flex; align-items: end; gap: 2px; height: 58px; padding: 0.35rem 0.15rem 0; border-bottom: 1px solid #dfe5ed; }
.spotify-hour-chart i { flex: 1 1 0; min-width: 2px; border-radius: 2px 2px 0 0; background: #1db954; opacity: 0.75; }
.spotify-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.spotify-columns section { min-width: 0; }
.spotify-columns section + section { border-left: 1px solid #e5eaf1; padding-left: 0.8rem; }
.spotify-columns h3 { margin: 0 0 0.25rem; color: var(--dna-slate); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
.spotify-list-row { display: flex; align-items: center; gap: 0.35rem; min-height: 1.8rem; border-top: 1px solid #edf0f5; color: var(--dna-navy); font-size: 0.74rem; }
.spotify-list-row span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spotify-list-row span:nth-child(2) { margin-left: auto; color: var(--dna-slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spotify-list-row a { color: #087f3d; text-decoration: none; }
.spotify-now { border-top: 1px solid #e5eaf1; padding-top: 0.45rem; color: var(--dna-slate); font-size: 0.72rem; overflow-wrap: anywhere; }
.spotify-now a { color: #087f3d; }
.spotify-connect-panel, .spotify-settings-panel { max-width: 720px; }
.spotify-setting-form, .spotify-setting-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; }
.spotify-setting-form label { flex: 1 1 100%; font-size: 0.8rem; }
.spotify-setting-actions { margin-top: 0.85rem; }
.profile-form, .profile-spotify-panel, .profile-trusted-devices-panel, .pwa-settings-panel { max-width: 920px; }
.profile-spotify-panel, .profile-trusted-devices-panel { margin-top: 1rem; }
.radar-section-heading { margin-top: 0.05rem; }
.radar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.radar-card { display: grid; align-content: start; gap: 0.55rem; min-width: 0; overflow: hidden; padding: 0.8rem; border-top: 3px solid #b9c6d8; }
.radar-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.radar-card-title { display: flex; align-items: center; gap: 0.42rem; min-width: 0; }
.radar-mark { display: inline-grid; width: 1.35rem; height: 1.35rem; place-items: center; flex: 0 0 auto; border-radius: 0.3rem; background: #f38020; color: #fff; font-size: 0.58rem; font-weight: 800; letter-spacing: -0.04em; }
.radar-card-title h2 { margin: 0; color: var(--dna-navy); font-size: 0.95rem; line-height: 1.25; }
.radar-card-title small, .radar-card-state { color: var(--dna-slate); font-size: 0.75rem; }
.radar-card-state { min-height: 1rem; }
.radar-card-stale { border-top-color: #98a2b3; background: #f5f6f8; }
.radar-card-stale .radar-browser-grid, .radar-card-stale .radar-bars { opacity: 0.62; }
.radar-browser-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.radar-browser-tile { display: grid; align-content: space-between; gap: 0.45rem; min-width: 0; min-height: 68px; padding: 0.55rem; border: 1px solid #e1e7ef; border-radius: 0.4rem; background: #fbfcfe; }
.radar-browser-name { overflow: hidden; color: var(--dna-navy); font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.radar-browser-detail { display: flex; align-items: baseline; justify-content: space-between; gap: 0.25rem; color: var(--dna-navy); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.radar-delta { font-size: 0.66rem; white-space: nowrap; }
.radar-delta-up { color: #168044; }
.radar-delta-down { color: #b42318; }
.radar-delta-flat { color: var(--dna-slate); }
.radar-empty, .radar-bar-empty { color: var(--dna-slate); font-size: 0.78rem; }
.radar-bars { display: grid; gap: 1rem; }
.radar-bar-group { display: grid; gap: 0.38rem; }
.radar-bar-group h3 { margin: 0; color: var(--dna-navy); font-size: 0.78rem; }
.radar-bar-legend { display: flex; flex-wrap: wrap; gap: 0.45rem 0.9rem; color: var(--dna-slate); font-size: 0.72rem; }
.radar-legend-item { display: inline-flex; align-items: center; gap: 0.3rem; }
.radar-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.radar-dot-bot, .radar-segment-bot { background: #f38020; }
.radar-dot-human, .radar-segment-human { background: #1769e0; }
.radar-dot-mobile, .radar-segment-mobile { background: #2f9e5b; }
.radar-dot-desktop, .radar-segment-desktop { background: #6f42c1; }
.radar-dot-other, .radar-segment-other { background: #98a2b3; }
.radar-stacked-bar { display: flex; width: 100%; height: 0.8rem; overflow: hidden; border-radius: 999px; background: #edf1f6; }
.radar-segment { display: block; min-width: 0; height: 100%; }
.radar-segment-other { min-width: 4px; }
.long-term-section-heading { display: flex; align-items: center; padding: 0.2rem 0.1rem 0; }
.long-term-section-heading > div { display: grid; gap: 0.12rem; }
.long-term-section-heading span { color: var(--dna-slate); font-size: 0.78rem; }
.long-term-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.long-term-card { display: grid; align-content: start; gap: 0.55rem; min-width: 0; overflow: hidden; padding: 0.8rem; border-top: 3px solid #b9c6d8; }
.long-term-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.long-term-card-header h2 { margin: 0; color: var(--dna-navy); font-size: 0.95rem; line-height: 1.25; }
.long-term-card-header small, .long-term-card-state, .co2-measurement-date, .co2-facts, .halving-message, .halving-reward, .halving-progress-label { color: var(--dna-slate); font-size: 0.75rem; }
.long-term-card-state { min-height: 1rem; }
.long-term-card-stale { border-top-color: #98a2b3; background: #f5f6f8; }
.long-term-card-stale .co2-chart, .long-term-card-stale .co2-facts, .long-term-card-stale .halving-progress, .long-term-card-stale .halving-sparkline { opacity: 0.62; }
.co2-current { display: flex; align-items: baseline; gap: 0.35rem; color: var(--dna-navy); }
.co2-current strong { font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.co2-current span { color: var(--dna-slate); font-size: 0.8rem; }
.co2-chart { min-width: 0; height: 250px; overflow: hidden; border-radius: 0.35rem; background: #fbfcfe; }
.co2-chart svg { display: block; width: 100%; height: 250px; overflow: hidden; }
.co2-grid-line { stroke: #e5eaf1; stroke-width: 1; vector-effect: non-scaling-stroke; }
.co2-baseline-line { stroke: #7b8798; stroke-width: 1.2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.co2-axis-label, .co2-baseline-label { fill: var(--dna-slate); font-size: 10px; }
.co2-baseline-label { font-size: 9px; }
.co2-line { fill: none; stroke: #1769e0; stroke-width: 2; vector-effect: non-scaling-stroke; }
.co2-footer { color: var(--dna-navy); font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.co2-facts { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; }
.halving-metrics { display: grid; grid-template-columns: 1.35fr 1fr 0.9fr; gap: 0.6rem; }
.halving-metrics div { display: grid; gap: 0.25rem; min-width: 0; }
.halving-metrics span { color: var(--dna-slate); font-size: 0.72rem; }
.halving-metrics strong { color: var(--dna-navy); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.halving-message { min-height: 1rem; }
.halving-reward { color: var(--dna-navy); font-variant-numeric: tabular-nums; }
.halving-progress-label { display: flex; justify-content: space-between; gap: 0.5rem; }
.halving-progress-label strong { color: var(--dna-navy); font-variant-numeric: tabular-nums; }
.halving-progress { height: 0.65rem; overflow: hidden; border-radius: 999px; background: #edf1f6; }
.halving-progress i { display: block; height: 100%; border-radius: inherit; background: #1769e0; }
.halving-sparkline { height: 80px; overflow: hidden; border-bottom: 1px solid #d9e0e8; }
.halving-sparkline svg { display: block; width: 100%; height: 80px; }
.halving-eta-line { fill: none; stroke: #1769e0; stroke-width: 2; vector-effect: non-scaling-stroke; }
.derived-section-heading { margin-top: 0.05rem; }
.derived-dashboard { display: grid; gap: 0.8rem; }
.derived-stale > .derived-grid, .derived-stale .derived-alarms { opacity: 0.58; }
.derived-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.derived-card { display: grid; align-content: start; gap: 0.55rem; min-width: 0; padding: 0.8rem; }
.derived-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; min-width: 0; }
.derived-card-heading h2 { margin: 0; color: var(--dna-navy); font-size: 0.95rem; line-height: 1.25; }
.derived-card-heading small, .derived-card small { color: var(--dna-slate); font-size: 0.72rem; }
.derived-flow-card { grid-column: span 2; }
.power-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 0.4rem; min-height: 126px; }
.flow-node { display: grid; gap: 0.25rem; min-width: 0; padding: 0.55rem 0.35rem; border: 1px solid #d9e0e8; border-radius: 0.4rem; text-align: center; background: #fbfcfe; }
.flow-node strong { color: var(--dna-navy); font-size: 0.75rem; }
.flow-node span { color: var(--dna-slate); font-size: 0.7rem; line-height: 1.3; }
.flow-node-main { border-color: #9fbee9; background: #f4f8ff; }
.flow-arrow { color: var(--dna-blue); font-size: 1.1rem; font-weight: 700; text-align: center; }
.flow-branch { display: flex; align-items: center; gap: 0.35rem; grid-column: 2 / span 3; }
.flow-branch .flow-node { flex: 1; }
.flow-branch-battery { grid-column: 2 / span 1; grid-row: 2; flex-direction: column; }
.flow-branch-grid { grid-column: 4 / span 2; grid-row: 2; }
.flow-branch-grid .flow-arrow { transform: rotate(180deg); }
.derived-state-label { color: var(--dna-navy); font-size: 1.35rem; text-transform: capitalize; }
.derived-stat-pair { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--dna-navy); font-size: 0.85rem; font-weight: 700; }
.derived-stat-pair small { display: block; font-weight: 400; }
.derived-runtime, .derived-subvalue, .derived-empty { color: var(--dna-slate); font-size: 0.75rem; }
.derived-warning { color: #b54708 !important; }
.derived-big-value { color: var(--dna-navy); font-size: 1.65rem; line-height: 1.1; }
.derived-alarms { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 1rem; border-left: 4px solid #d92d20; background: #fffafa; color: #b42318; }
.derived-alarms strong { color: #991b1b; }
.derived-alarms span { font-size: 0.78rem; font-weight: 600; }
.daily-bars, .pv-bars, .feed-sparkline { display: flex; align-items: end; gap: 2px; height: 58px; padding-top: 0.3rem; border-bottom: 1px solid #d9e0e8; }
.daily-bars i, .pv-bars i, .feed-sparkline i { display: block; flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: #4b8df8; }
.daily-bars i { background: #2f9e5b; }
.feed-sparkline i { background: #168044; }
.health-histogram { display: grid; gap: 0.25rem; }
.health-histogram > div, .histogram-columns span { display: flex; align-items: center; gap: 0.35rem; min-width: 0; color: var(--dna-slate); font-size: 0.68rem; }
.health-histogram span { width: 2.2rem; }
.health-histogram i, .histogram-columns i { display: block; height: 0.45rem; border-radius: 999px; background: #4b8df8; }
.histogram-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.histogram-columns > div { display: grid; align-content: start; gap: 0.25rem; }
.histogram-columns strong { color: var(--dna-navy); font-size: 0.7rem; }
.histogram-columns b { width: 2.3rem; font-weight: 400; }
.histogram-columns i { flex: 1; }
.signal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.signal-card { display: grid; gap: 0.42rem; min-width: 0; min-height: 148px; padding: 0.8rem; border-top: 3px solid #b9c6d8; }
.signal-card-heading { display: grid; gap: 0.12rem; min-width: 0; }
.signal-card-title { display: flex; align-items: center; gap: 0.42rem; min-width: 0; }
.signal-icon { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; object-fit: contain; }
.signal-card-heading span { color: var(--dna-navy); font-size: 0.8rem; font-weight: 700; }
.signal-card-heading small, .signal-detail, .signal-counters, .signal-checked { color: var(--dna-slate); font-size: 0.74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signal-value { color: var(--dna-navy); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.1; }
.signal-card-good { border-top-color: #2f9e5b; }
.signal-card-good .signal-value { color: #168044; }
.signal-card-alert { border-top-color: #dc4b4b; background: #fffafa; }
.signal-card-alert .signal-value { color: #b42318; }
.signal-counters { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.signal-checked { margin-top: auto; }

.inverter-dashboard { display: grid; gap: 0.8rem; }
.inverter-status-panel { display: grid; gap: 0.45rem; padding: 0.8rem 1rem; }
.inverter-status-panel > div { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; }
.inverter-status-panel p { margin: 0; color: var(--dna-slate); font-size: 0.86rem; }
.inverter-online { background: #e8f7ef; color: #157347; }
.inverter-offline { background: #f2f4f7; color: #475467; }
.inverter-topic, .inverter-meta { color: var(--dna-slate); font-size: 0.8rem; }
.inverter-layout { display: grid; grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.4fr); gap: 0.8rem; align-items: stretch; }
.inverter-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.inverter-card { display: grid; gap: 0.26rem; min-height: 112px; padding: 0.8rem; }
.inverter-card span, .inverter-chart-card span, .inverter-card small { color: var(--dna-slate); font-size: 0.78rem; }
.inverter-card span, .inverter-chart-card > div > span { font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.inverter-card strong, .inverter-chart-card strong { color: var(--dna-navy); font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.1; }
.inverter-card-warn { background: #fffaf0; border-color: #ead7ad; }
.inverter-card-alert { background: #fff4f4; border-color: #ebc5c5; }
.inverter-chart-card { display: grid; grid-template-rows: auto minmax(180px, 1fr); gap: 0.6rem; min-width: 0; }
.inverter-chart-card > div:first-child { display: grid; gap: 0.2rem; }
.inverter-chart { position: relative; min-height: 220px; padding: 0.3rem 0 1.35rem 2.5rem; }
.inverter-chart svg { display: block; width: 100%; height: 100%; min-height: 185px; overflow: visible; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), #edf1f6 calc(25% - 1px), #edf1f6 25%); }
.inverter-chart-area { fill: #dce8ff; opacity: 0.7; }
.inverter-chart-line { fill: none; stroke: var(--dna-blue); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-max, .chart-min { position: absolute; left: 0; font-size: 0.7rem !important; }
.chart-max { top: 0.35rem; }
.chart-min { bottom: 1.55rem; }
.chart-axis { position: absolute; right: 0; bottom: 0; left: 2.5rem; display: flex; justify-content: space-between; color: var(--dna-slate); font-size: 0.7rem; }

.agents-page { display: grid; gap: 0.8rem; }
.agents-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; padding: 0.72rem 0.9rem; color: var(--dna-slate); font-size: 0.8rem; }
.agents-status p { flex-basis: 100%; margin: 0; }
.agents-source-live { background: #e8f7ef; color: #157347; }
.agents-source-waiting { background: #f2f4f7; color: #475467; }
.agents-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; align-items: stretch; }
.agent-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0.85rem; min-height: 190px; padding: 0.85rem; }
.agent-featured { grid-column: 1 / -1; border-color: #c7d3e5; background: #fbfdff; }
.agent-headshot { width: 76px; height: 76px; border: 1px solid var(--dna-border); border-radius: 50%; object-fit: cover; object-position: center 18%; }
.agent-featured .agent-headshot { width: 88px; height: 88px; }
.agent-card-body { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 0.48rem; min-width: 0; }
.agent-card-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.55rem; align-items: start; }
.agent-card-header h2, .agent-card-header span, .agent-card-body p { margin: 0; }
.agent-card-header h2 { color: var(--dna-navy); font-size: 1.05rem; }
.agent-card-header div > span { color: var(--dna-slate); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.agent-card-body p { color: #344054; font-size: 0.84rem; line-height: 1.4; }
.agent-status { display: inline-flex; max-width: min(100%, 18rem); padding: 0.18rem 0.42rem; border: 1px solid var(--dna-border); border-radius: 999px; font-size: 0.72rem; font-weight: 700; line-height: 1.2; }
.agent-status-active { border-color: #b8c9bd; background: #edf6ef; color: #275238; }
.agent-status-recent { border-color: #decfae; background: #fffaf0; color: #66502b; }
.agent-status-idle { background: #f8fafc; color: #475467; }
.agent-activity { display: grid; gap: 0.18rem; }
.agent-activity span { overflow: hidden; border-left: 2px solid #c9d7cc; padding-left: 0.45rem; color: #526176; font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.agent-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.agent-meta span { max-width: 100%; overflow: hidden; padding: 0.13rem 0.38rem; border: 1px solid #e6eaf0; border-radius: 999px; background: #fafcff; color: #526176; font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }

.login-shell {
  width: min(100% - 2rem, 430px);
}

.login-panel {
  padding: clamp(1.35rem, 5vw, 2.3rem);
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 18px 50px rgb(0 0 0 / 28%);
}

.brand-mark { display: block; width: 64px; height: 64px; border-radius: 0.55rem; background: #fff; object-fit: cover; }

.pwa-settings-panel {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.pwa-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.pwa-settings-status {
  color: var(--dna-slate);
  font-size: 0.84rem;
}


@media (max-width: 767.98px) {
  .notes-search { flex-wrap: wrap; }
  .notes-search .form-control { flex: 1 1 100%; }

  .navbar {
    display: none;
  }

  .mobile-site-menu {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--dna-navy);
    color: #fff;
    box-shadow: 0 1px 3px rgb(9 36 66 / 18%);
  }

  .mobile-site-menu[open] {
    max-height: 100dvh;
    overflow: hidden;
  }

  .mobile-site-menu summary {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1rem;
    cursor: pointer;
    list-style: none;
  }

  .mobile-site-menu summary::-webkit-details-marker { display: none; }
  .mobile-site-menu-brand { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; }
  .mobile-site-menu-brand img { width: 1.75rem; height: 1.75rem; border-radius: 0.35rem; object-fit: cover; background: #fff; }
  .mobile-site-menu-label { font-size: 0.9rem; font-weight: 600; }

  .mobile-site-menu-panel {
    display: grid;
    gap: 0;
    padding: 0 1rem 0.8rem;
    border-top: 1px solid rgb(255 255 255 / 18%);
    max-height: calc(100dvh - 52px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  @supports not (height: 100dvh) {
    .mobile-site-menu[open] { max-height: 100vh; }
    .mobile-site-menu-panel { max-height: calc(100vh - 52px); }
  }

  .mobile-site-menu-panel > a {
    min-height: 42px;
    display: flex;
    align-items: center;
    color: rgb(255 255 255 / 92%);
    text-decoration: none;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }

  .mobile-site-submenu {
    display: grid;
    gap: 0;
    padding: 0.15rem 0 0.35rem 0.85rem;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }

  .mobile-site-submenu a {
    min-height: 34px;
    display: flex;
    align-items: center;
    color: rgb(255 255 255 / 74%);
    font-size: 0.84rem;
    text-decoration: none;
  }

  .mobile-site-menu-user {
    padding: 0.8rem 0 0.5rem;
    color: rgb(255 255 255 / 72%);
    font-size: 0.82rem;
  }

  .mobile-site-menu-panel form { margin: 0; }

  main.container-fluid {
    padding: 1rem !important;
  }

  .navbar-collapse {
    padding-top: 0.6rem;
  }

  .navbar-user-tools {
    width: 100%;
    justify-content: space-between;
    padding: 0.45rem 0 0.15rem;
  }

  .page-heading {
    flex-direction: column;
  }

  .page-heading .btn {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .grid-wide {
    grid-column: auto;
  }

  .form-actions > * {
    flex: 1 1 100%;
  }

  .page-actions,
  .list-toolbar {
    width: 100%;
  }

  .page-actions > *,
  .list-toolbar > .btn {
    flex: 1 1 100%;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .defaults-layout { grid-template-columns: 1fr; }
  .graphic-tool-columns { grid-template-columns: 1fr; }
  .defaults-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .art-inventory-layout .defaults-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .defaults-nav > .detail-label { grid-column: 1 / -1; }
  .defaults-nav-link { min-height: 64px; flex-direction: column; align-items: flex-start; justify-content: center; font-size: 0.8rem; }
  .art-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artwork-detail-layout { grid-template-columns: 1fr; }
  .defaults-inline-add { flex-direction: column; }
  .graphic-tool-panel, .graphic-result { max-width: none; }
  .graphic-job-row { grid-template-columns: 1fr; }
  .graphic-job-side { justify-items: start; }
  .graphic-asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .graphic-asset-library-grid { max-height: none; min-height: 0; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; padding-right: 0; }
  .defaults-inline-add .btn { width: 100%; }

  .table-responsive > .table {
    min-width: 760px;
  }

  .table-responsive > .table {
    min-width: 640px;
  }

  .notes-list .table {
    min-width: 780px;
  }

  .tax-evidence-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tax-evidence-list .table { min-width: 760px; }
  .art-summary-grid { grid-template-columns: 1fr; }
  .art-list .table { min-width: 900px; }

  .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inverter-layout { grid-template-columns: 1fr; }
  .inverter-chart-card { min-height: 300px; }
  .agents-grid { grid-template-columns: 1fr; }

  /* iOS Safari zooms focused form controls below 16px, hiding the composer actions. */
  .agent-chat-composer textarea { font-size: 16px; }
}

@media (max-width: 575.98px) {
  html {
    font-size: 14px;
  }

  .login-shell {
    width: min(100% - 1.25rem, 430px);
  }

  .login-panel {
    border-radius: 0.6rem;
  }

  .mobile-site-menu-user-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 0 0.5rem;
  }

  .mobile-site-menu-user-row .mobile-site-menu-user {
    padding: 0;
  }

  .spotify-nav-now { max-width: 100%; flex: 1 1 100%; order: -1; }
  .mobile-site-menu .spotify-mobile-now { max-width: 9rem; flex: 0 1 9rem; order: initial; }

  .technical-intro { align-items: flex-start; flex-direction: column; }
  .jetson-priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jetson-secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jetson-sparkline-grid { grid-template-columns: 1fr; }
  .adsb-grid { grid-template-columns: 1fr; }
  .adsb-map-card { grid-row: auto; }
  .adsb-map-layout { grid-template-columns: 1fr; }
  .adsb-fleet-card { grid-column: auto; }
  .adsb-fleet-layout { grid-template-columns: 1fr; }
  .steam-grid { grid-template-columns: 1fr; }
  .weather-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crypto-grid { grid-template-columns: 1fr; }
  .radar-grid { grid-template-columns: 1fr; }
  .radar-browser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .long-term-grid { grid-template-columns: 1fr; }
  .derived-grid { grid-template-columns: 1fr; }
  .derived-flow-card { grid-column: auto; }
  .power-flow { gap: 0.25rem; }
  .signal-grid { grid-template-columns: 1fr; }

  .inverter-metrics { grid-template-columns: 1fr; }
  .tax-evidence-filters { grid-template-columns: 1fr; }
  .tax-amount-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .inverter-card { min-height: 88px; }
  .inverter-heading .btn { width: 100%; }
  .agents-heading .btn { width: 100%; }
  .agent-card { grid-template-columns: 62px minmax(0, 1fr); min-height: 0; padding: 0.72rem; }
  .agent-headshot, .agent-featured .agent-headshot { width: 62px; height: 62px; }
  .agent-card-header { grid-template-columns: 1fr; }
  .agent-status { justify-self: start; }
}

/* Agent chat side panel */
.agent-chat-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1035;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--dna-navy);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(9, 36, 66, 0.28);
}

.agent-chat-launcher:hover {
  background: var(--dna-blue);
}

.agent-chat {
  width: min(26rem, 100vw);
  display: flex;
  flex-direction: column;
}

.agent-chat-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--dna-border);
}

.agent-chat-status {
  font-size: 0.75rem;
  color: var(--dna-slate);
}

.agent-chat-status::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--dna-slate);
  vertical-align: middle;
}

.agent-chat-status[data-state="ok"]::before { background: #16a34a; }
.agent-chat-status[data-state="connecting"]::before { background: #d97706; }
.agent-chat-status[data-state="down"]::before { background: #dc2626; }

.agent-chat-toolbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--dna-border);
}

.agent-chat-body {
  flex: 1 1 auto;
  overflow-y: auto;
}

.agent-chat-messages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agent-chat-bubble {
  padding: 0.5rem 0.7rem;
  border-radius: 0.65rem;
  font-size: 0.86rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.agent-chat-message-user { align-items: flex-end; display: flex; }
.agent-chat-message-user .agent-chat-bubble {
  background: var(--dna-navy);
  color: #fff;
  max-width: 85%;
}

.agent-chat-message-assistant .agent-chat-bubble {
  background: #fff;
  border: 1px solid var(--dna-border);
}

.agent-chat-message-system .agent-chat-bubble {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  font-size: 0.8rem;
}

.agent-chat-empty {
  font-size: 0.83rem;
  color: var(--dna-slate);
}

.agent-chat-composer {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--dna-border);
}

.agent-chat-composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  resize: none;
  font-size: 0.86rem;
}

.agent-chat-composer .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.agent-bindings {
  margin-top: 1.25rem;
}

.agent-bindings-hint {
  font-size: 0.83rem;
  color: var(--dna-slate);
}

.agent-bindings-table {
  font-size: 0.86rem;
}

.agent-bindings-table form {
  display: inline;
}

.agent-bindings-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  border-top: 1px solid var(--dna-border);
  padding-top: 0.85rem;
}

.agent-bindings-form select {
  min-width: 13rem;
}

.agent-bindings-summary {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  cursor: pointer;
  list-style: revert;
}

.agent-bindings-summary::-webkit-details-marker {
  display: revert;
}

.agent-bindings-count {
  font-size: 0.78rem;
  color: var(--dna-slate);
}

.agent-bindings > *:not(summary) {
  margin-top: 0.75rem;
}

.agent-binding-broken {
  background: #fee2e2;
  color: #991b1b;
}

.agent-chat-activity-row {
  list-style: none;
}

.agent-chat-activity {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px dashed var(--dna-border);
  border-radius: 0.65rem;
  font-size: 0.8rem;
  color: var(--dna-slate);
  background: #fff;
}

.agent-chat-activity-label {
  font-weight: 600;
  color: #1f2937;
}

.agent-chat-elapsed {
  font-variant-numeric: tabular-nums;
}

.agent-chat-activity-detail {
  flex-basis: 100%;
  overflow-wrap: anywhere;
}

.agent-chat-dots {
  letter-spacing: 0.08em;
  animation: agent-chat-pulse 1.2s ease-in-out infinite;
}

@keyframes agent-chat-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .agent-chat-dots { animation: none; opacity: 0.6; }
}

.agent-chat-narration {
  margin-top: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-left: 2px solid var(--dna-border);
  font-size: 0.8rem;
  color: var(--dna-slate);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 639.98px) {
  .steam-grid { grid-template-columns: 1fr; }
  .weather-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crypto-grid { grid-template-columns: 1fr; }
  .radar-grid { grid-template-columns: 1fr; }
  .long-term-grid { grid-template-columns: 1fr; }
  .wan-grid { grid-template-columns: 1fr; }
  .adsb-grid { grid-template-columns: 1fr; }
  .adsb-map-layout { grid-template-columns: 1fr; }
  .adsb-fleet-card { grid-column: auto; }
  .adsb-fleet-layout { grid-template-columns: 1fr; }
  .derived-grid { grid-template-columns: 1fr; }
  .derived-flow-card { grid-column: auto; }
  .spotify-grid { grid-template-columns: 1fr; }
  .spotify-columns { gap: 0.55rem; }
  .spotify-columns section + section { padding-left: 0.55rem; }
  .wan-card-header { align-items: center; }
  .wan-chart svg { height: 175px; }
  .steam-movers-columns { grid-template-columns: 1fr; }
  .steam-mover-group + .steam-mover-group { border-left: 0; border-top: 1px solid #e5eaf1; padding-top: 0.45rem; padding-left: 0; }
  .steam-game-row { grid-template-columns: 2rem minmax(0, 1fr) auto 76px; }
  .steam-sparkline { width: 76px; }
  .steam-mover-group .steam-game-row:nth-child(n+4) { display: none; }
  .halving-metrics { grid-template-columns: 1fr 1fr; }
  .halving-metrics div:first-child { grid-column: span 2; }
}

/* Compact, expandable AI Graphics menus share the same groups on all screens. */
.graphics-dropdown-menu { min-width:15rem; max-height:80vh; overflow-y:auto; }
.graphics-nav-group > summary { padding:0.6rem 0.85rem; color:var(--dna-navy); font-size:0.86rem; font-weight:600; cursor:pointer; }
.graphics-nav-group > summary:hover, .graphics-nav-group > summary:focus-visible { background:#eaf3ff; }
.graphics-nav-group .dropdown-item { padding-left:1.5rem; font-size:0.86rem; }
.graphics-nav-submenu .defaults-nav-link { padding-left:1.3rem; font-size:0.84rem; }
.graphic-tools-layout .graphics-nav-sidebar { display:block; }
.graphics-nav-sidebar .graphics-nav-group { border-top:1px solid var(--dna-border); }
