/* Esquadrão identity: original blue/white logo, blue accents already used in
   C:/ADEGA/MARKETING/FUTEBOL - STORIES 2026/modelos. Fluid surfaces inspired
   by Ethos; radial lighting and layered gradients adapted from Folha's CSS. */
:root {
  color-scheme: dark;
  --canvas: #101216;
  --surface: #181b20;
  --surface-raised: #1f2329;
  --surface-input: #12151a;
  --surface-hover: #272d35;
  --text: #f3f2ef;
  --muted: #a3a8b1;
  --green: #79bcff;
  --border: #30343c;
  --soft: #1c2d43;
  --red: #ff969e;
  --warning: #f2cb85;
  --warning-surface: #342a1b;
  --success: #81dcc0;
  --success-surface: #15352f;
  --accent: #117dd7;
  --accent-deep: #0054b7;
  --accent-bright: #1898ff;
  --on-accent: #ffffff;
  --glow: rgb(24 152 255 / 14%);
  --shadow: 0 14px 40px rgb(0 0 0 / 16%);
  --ease-fluid: cubic-bezier(0.22, 1, 0.36, 1);
  --scroll-thumb: #454b56;
  --scroll-thumb-hover: #727c8b;
  color: var(--text);
  background: var(--canvas);
}
:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #f4f3ef;
  --surface: #ffffff;
  --surface-raised: #efeee9;
  --surface-input: #fafaf7;
  --surface-hover: #e9e9e4;
  --text: #20252c;
  --muted: #5f6772;
  --green: #0054b7;
  --border: #d8dad6;
  --soft: #dfeaf7;
  --red: #a62132;
  --warning: #765111;
  --warning-surface: #fff2d9;
  --success: #17614e;
  --success-surface: #e0f4ed;
  --glow: rgb(24 152 255 / 10%);
  --shadow: 0 14px 40px rgb(28 63 103 / 7%);
  --scroll-thumb: #788aa0;
  --scroll-thumb-hover: #52677e;
}
/* One quiet, visible scrollbar treatment for navigation, lists and dialogs. */
* {
  scrollbar-width: auto;
  scrollbar-color: auto;
}
@supports (-moz-appearance: none) {
  * { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
}
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@media (forced-colors: active), (pointer: coarse) {
  *, *:hover { scrollbar-width: auto; scrollbar-color: auto; }
  ::-webkit-scrollbar { width: auto; height: auto; }
  ::-webkit-scrollbar-thumb { background: revert; border: revert; }
  ::-webkit-scrollbar-button { display: revert; }
}
body {
  color: var(--text);
  background: var(--canvas);
}
::selection {
  background: var(--accent-deep);
  color: white;
}
.sidebar-toggle { display: none; }
.sidebar {
  background: linear-gradient(160deg, #111c2c, #080e18);
  padding-top: 22px;
}
:root[data-theme="light"] .sidebar {
  background: linear-gradient(160deg, var(--surface), var(--canvas));
}
.sidebar > nav {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
}
.sidebar > .brand,
.sidebar > .nav-label,
.sidebar-bottom {
  flex-shrink: 0;
}
.brand {
  padding: 10px 7px 26px;
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
/* The original white wordmark remains intact and readable in both themes. */
:root[data-theme="light"] .brand {
  background: #0d1726;
  border-radius: 14px;
  padding: 14px 10px;
  margin-bottom: 22px;
}
.topbar {
  background: var(--surface);
  gap: 16px;
  min-height: 62px;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}
.topbar-right {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.theme-toggle > span:first-child {
  font-size: 18px;
  line-height: 1;
}
.nav-link,
.category {
  border-radius: 12px;
}
.nav-link {
  position: relative;
  color: var(--muted);
  transition:
    background-color 160ms,
    color 160ms;
}
.nav-link:hover {
  background: var(--surface-hover);
  color: var(--text);
  text-decoration: none;
}
.nav-link.active {
  color: var(--green);
  background: linear-gradient(110deg, var(--soft), transparent);
  box-shadow: inset 2px 0 var(--accent-bright);
}
.nav-label,
.sidebar-bottom,
.sidebar-bottom small {
  color: var(--muted);
}
.dot {
  background: var(--success);
  box-shadow: 0 0 9px rgb(129 220 192 / 28%);
}
.content {
  position: relative;
  padding-top: 24px;
}
.page-heading {
  position: relative;
  isolation: isolate;
  margin-bottom: 18px;
}
.page-heading::after {
  content: none;
  position: absolute;
  top: -28px;
  right: 4%;
  width: 170px;
  height: 110px;
  border: 1px solid var(--glow);
  border-radius: 65% 35% 55% 45% / 45% 60% 40% 55%;
  background: radial-gradient(ellipse, var(--glow), transparent 68%);
  transform: rotate(-18deg);
  pointer-events: none;
  z-index: -1;
}
h1 {
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 650;
  letter-spacing: -1.1px;
}
.eyebrow {
  color: var(--green);
  letter-spacing: 1.8px;
}
.panel,
.stat,
.offer-card {
  background: var(--surface);
  border-color: var(--border);
  border-radius: 7px;
  box-shadow: none;
}
.stat {
  background: transparent;
  border: 0;
  padding: 14px 18px;
}
.cards {
  margin-bottom: 18px;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.stat + .stat {
  border-left: 1px solid var(--border);
}
.panel-body {
  padding: 18px 20px;
}
.panel-head,
.question-nav {
  padding: 13px 18px;
}
.field {
  margin-bottom: 12px;
  gap: 6px;
}
.form-grid {
  gap: 12px;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.toolbar select,
.question-nav select {
  height: 42px;
  min-height: 42px;
}
.toolbar select,
.question-nav select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-input);
  color: var(--text);
}
.question-nav {
  flex-wrap: wrap;
}
.question-prompt {
  font-size: 19px;
  margin: 8px 0 18px;
}
.question-input {
  min-height: 116px;
}
.ai-status {
  margin: 0 0 14px;
  padding: 10px 14px;
}
.answer-meta {
  margin-top: 14px;
  padding-top: 12px;
}
.question-evidence {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
details > summary {
  cursor: pointer;
  line-height: 1.5;
}
details[open] > summary {
  color: var(--green);
}
:root[data-page="management"] td {
  padding-top: 12px;
  padding-bottom: 12px;
}
input:user-invalid,
textarea:user-invalid,
select:user-invalid {
  border-color: var(--red);
}
.stat-number {
  font-variant-numeric: tabular-nums;
}
.panel-head,
.question-nav {
  background: var(--surface-raised);
}
button {
  background: var(--surface-raised);
  border-color: var(--border);
  border-radius: 6px;
  transition:
    background-color 150ms,
    border-color 150ms,
    box-shadow 180ms;
}
button:hover {
  background: var(--surface-hover);
  border-color: var(--green);
}
.primary {
  background: #0860c5;
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: none;
}
.primary:hover {
  background: #0756ae;
  color: white;
  border-color: var(--accent-bright);
}
.quiet,
.category {
  background: transparent;
}
.category.active {
  background: var(--soft);
  color: var(--green);
}
.search,
.question-input,
.inline-input,
.field input,
.field select,
.field textarea,
.payment-row input,
.payment-row select,
.qty-controls input {
  background: var(--surface-input);
  border-color: var(--border);
  color: var(--text);
  border-radius: 6px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-color: var(--green);
}
.question-input:focus {
  outline: 2px solid var(--green);
}
.badge {
  border-radius: 4px;
}
.badge.pending {
  background: var(--surface-hover);
  color: var(--muted);
}
.badge.draft,
.badge.development,
.question-tile.draft,
.development-note {
  background: var(--warning-surface);
  color: var(--warning);
  border-color: var(--warning-surface);
}
.badge.confirmed,
.question-tile.confirmed {
  background: var(--success-surface);
  color: var(--success);
  border-color: var(--success-surface);
}
.question-tile {
  background: var(--surface-raised);
  border-radius: 9px;
}
.question-tile.selected {
  box-shadow: 0 0 0 2px var(--green);
}
.progress,
.chart-bar {
  background: var(--soft);
}
.progress span,
.chart-bar i {
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}
.note,
.history-json {
  background: var(--surface-raised);
  color: var(--muted);
  border-radius: 12px;
}
.note.danger,
.danger,
.error {
  color: var(--red);
}
.answer-meta {
  color: var(--muted);
  border-color: var(--border);
}
th {
  background: var(--surface-raised);
  color: var(--muted);
}
td,
.cart-line {
  border-color: var(--border);
}
tbody tr:hover {
  background: var(--surface-raised);
}
.table-link {
  color: var(--green);
}
.empty strong {
  color: var(--text);
}
.offer-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent-bright);
}
.cart-total {
  background: var(--surface-raised);
}
dialog {
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  box-shadow: 0 30px 100px rgb(0 0 0 / 40%);
}
dialog::backdrop {
  background: rgb(4 9 18 / 72%);
  backdrop-filter: blur(5px);
}
.modal-head {
  background: var(--surface-raised);
}
.receipt {
  background: #fff;
  color: #000;
  padding: 16px;
  border-radius: 4px;
}
.receipt small {
  color: #333;
}
#toast {
  background: var(--success-surface);
  color: var(--text);
  border: 1px solid var(--success);
  border-radius: 14px;
}
#toast.error-toast {
  background: var(--surface);
  color: var(--red);
  border-color: var(--red);
}
:root[data-theme="light"] #toast {
  color: var(--success);
}
:root[data-theme="light"] #toast.error-toast {
  color: var(--red);
}
/* Checkout keeps products, quantities and totals in stable columns. */
:root[data-page="pdv"] .content {
  padding: 18px 24px;
  max-width: none;
  height: calc(100dvh - 62px);
  display: flex;
  flex-direction: column;
}
.pdv-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.pdv-command h1 {
  font-size: 22px;
  letter-spacing: -0.6px;
  margin: 0 0 3px;
}
.pdv-command .muted {
  font-size: 12px;
}
.pdv-command-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.test-label {
  font-size: 11px;
  color: var(--muted);
}
kbd {
  display: inline-block;
  font: inherit;
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 8px;
}
.pdv-grid {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.6fr);
  gap: 16px;
  flex: 1;
  height: auto;
  min-height: 420px;
}
.pdv-catalog,
.cart {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.cart {
  position: static;
}
.catalog-search {
  padding: 16px;
}
.catalog-search label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}
.pdv-search {
  height: 44px;
  padding: 10px 12px;
  font-size: 14px;
}
.catalog-columns {
  display: flex;
  justify-content: space-between;
  padding: 9px 16px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-block: 1px solid var(--border);
}
.offer-results {
  display: block;
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0;
}
.catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  text-align: left;
}
.catalog-row:hover {
  background: var(--surface-hover);
  border-color: var(--border);
}
.catalog-row:focus-visible {
  outline-offset: -3px;
}
.catalog-product {
  min-width: 0;
}
.catalog-product strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 550;
}
.catalog-product small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.catalog-price {
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.promotion-label {
  color: var(--green);
}
.catalog-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 10px;
  border-top: 1px solid var(--border);
}
.cart > .panel-head {
  flex-shrink: 0;
  min-height: 49px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: transparent;
}
.cart .panel-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.cart .panel-head .muted {
  font-size: 11px;
}
#cart-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.sale-columns,
.sale-line {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 108px 70px 85px 24px;
  gap: 8px;
  align-items: center;
}
.sale-columns {
  flex-shrink: 0;
  min-height: 33px;
  padding: 8px 16px;
  background: var(--surface-raised);
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.sale-columns span:nth-child(2) {
  text-align: center;
}
.sale-columns span:nth-child(3),
.sale-columns span:nth-child(4) {
  text-align: right;
}
.cart-lines {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
}
.sale-line {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.sale-product {
  min-width: 0;
  color: var(--text);
  line-height: 1.5;
  font-weight: 550;
}
.sale-product a {
  display: block;
  color: var(--text);
  line-height: 1.5;
  font-weight: 550;
}
.sale-product small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.sale-line .qty-controls {
  margin: 0;
  gap: 2px;
  justify-content: center;
}
.sale-line .qty-controls button {
  padding: 0;
  width: 25px;
  height: 28px;
  border-color: transparent;
  background: transparent;
}
.sale-line .qty-controls button:hover {
  background: var(--surface-hover);
}
.sale-line .qty-controls input {
  width: 50px;
  height: 28px;
  padding: 2px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.sale-line:focus-within { background: var(--surface-hover); }
.sale-line .qty-controls input:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 1px;
  box-shadow: none;
}
.sale-line .qty-controls input[aria-invalid="true"] {
  border-color: var(--red);
  outline-color: var(--red);
}
.sale-line [data-cart-quantity-error] {
  grid-column: 2 / -1;
  margin: 0;
  color: var(--red);
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}
.sale-line [data-cart-quantity-error][hidden] { display: none; }
.sale-unit,
.sale-amount {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sale-unit {
  color: var(--muted);
}
.sale-amount {
  font-weight: 600;
}
.remove-line {
  padding: 0;
  height: 26px;
  width: 24px;
  font-size: 18px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.sale-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 160px;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}
.sale-empty svg {
  width: 36px;
  height: 36px;
  opacity: 0.5;
}
.sale-bottom {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(220px, 280px);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sale-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
}
.sale-tools button {
  font-size: 11px;
}
.sale-bottom .cart-total {
  background: transparent;
  padding: 16px;
  border-left: 1px solid var(--border);
}
.sale-bottom .total-row {
  font-size: 12px;
  margin-bottom: 10px;
}
.sale-bottom .total-row.final {
  font-size: 24px;
  margin-top: 12px;
  padding-top: 12px;
}
.sale-bottom .total-row.final span:first-child {
  font-size: 13px;
  font-weight: 500;
}
.pay-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 42px;
}
.pay-button kbd {
  color: white;
  border-color: rgb(255 255 255 / 40%);
}
.product-sale-section {
  margin-top: 16px;
  overflow: hidden;
}
.product-sale-section h3 {
  margin: 0;
}
.product-sale-section > summary {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 13px;
}
.pack-calculation {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 10px 0;
  font-size: 12px;
  color: var(--muted);
}
.pack-calculation strong {
  color: var(--text);
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}
.simple-offer-form + .simple-offer-form {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
}
@media (max-width: 1100px) {
  .sale-columns,
  .sale-line {
    grid-template-columns: minmax(90px, 1fr) 108px 80px 24px;
  }
  .sale-columns span:nth-child(3),
  .sale-unit {
    display: none;
  }
  .pdv-command-actions {
    gap: 8px;
  }
  .pdv-command-actions .test-label {
    display: none;
  }
  .sale-bottom {
    grid-template-columns: minmax(90px, 1fr) 220px;
  }
}
@media (max-width: 980px) {
  :root[data-page="pdv"] .content {
    height: auto;
  }
  .pdv-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .pdv-catalog {
    max-height: 340px;
  }
  .cart {
    min-height: 470px;
  }
  .cart-lines {
    min-height: 200px;
  }
}
@media (max-width: 760px) {
  :root[data-page="pdv"] .content {
    padding: 14px 16px;
  }
  .pdv-command {
    align-items: flex-start;
    flex-direction: column;
  }
  .pdv-command-actions {
    justify-content: flex-start;
  }
  .sale-columns,
  .sale-line {
    padding-inline: 10px;
    gap: 4px;
    grid-template-columns: minmax(60px, 1fr) 88px 70px 20px;
  }
  .sale-bottom {
    grid-template-columns: 1fr;
  }
  .sale-tools {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
  }
  .sale-bottom .cart-total {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}
/* Only dialogs animate; sale rows and checkout targets remain stationary. */
@media (prefers-reduced-motion: no-preference) {
  dialog[open] {
    animation: dialog-enter 180ms var(--ease-fluid) both;
  }
  @keyframes surface-enter {
    from {
      opacity: 0.65;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes dialog-enter {
    from {
      opacity: 0.6;
      transform: translateY(6px) scale(0.99);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 1050px) {
  .theme-label {
    display: none;
  }
}
@media (max-width: 760px) {
  .brand {
    max-width: 165px;
    padding-bottom: 14px;
  }
  :root[data-theme="light"] .brand {
    margin-bottom: 12px;
  }
  .sidebar {
    padding: 14px 16px;
  }
  .topbar {
    min-height: 56px;
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .topbar-right {
    justify-content: space-between;
    gap: 8px;
  }
  .topbar-right .development {
    font-size: 10px;
  }
  .page-heading::after {
    display: none;
  }
}
@media print {
  :root,
  :root[data-theme="light"],
  body,
  dialog,
  .modal-body,
  .receipt {
    color-scheme: light;
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  .receipt {
    padding: 0;
    border-radius: 0;
  }
  .receipt small {
    color: #000;
  }
}
.nav-group { margin:4px 0; }
.nav-group-toggle { display:flex; align-items:center; gap:10px; padding:12px 14px; cursor:pointer; list-style:none; color:var(--sidebar-muted,var(--muted)); font-size:12px; font-weight:500; border-radius:6px; }
.nav-group-toggle::-webkit-details-marker { display:none; }
.nav-group-toggle:hover { background:rgba(255,255,255,.035); color:var(--text); }
.nav-group-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.nav-group-toggle > span:nth-child(2) { flex:1; min-width:0; }
.nav-chevron { display:inline-block; font-size:18px; line-height:1; transition:transform .15s ease; }
.nav-group[open] > .nav-group-toggle .nav-chevron { transform:rotate(90deg); }
.nav-group-items { display:flex; flex-direction:column; gap:3px; margin:1px 0 9px 21px; padding-left:8px; border-left:1px solid rgba(147,178,214,.14); }
.nav-group-items .nav-link { min-height:36px; padding:9px 10px; font-size:12px; gap:9px; }
.nav-group-items .nav-icon { font-size:12px; width:16px; }
.dashboard-calendar-tabs { display:flex; gap:20px; margin-top:24px; border-bottom:1px solid var(--border); }
.dashboard-calendar-tabs button { padding:11px 0; border:0; border-radius:0; background:transparent; color:var(--muted); font-size:13px; box-shadow:inset 0 -2px transparent; }
.dashboard-calendar-tabs button[aria-selected="true"] { color:var(--text); box-shadow:inset 0 -2px var(--accent); }
.dashboard-calendar-panel[hidden] { display:none; }
.dashboard-calendar-panel .agenda { margin-top:14px; }
@media (prefers-reduced-motion:reduce) { .nav-chevron { transition:none; } }

/* Esquadrão workspace: restrained chrome, readable operational density. */
@media screen {
  :root { font-synthesis: none; text-rendering: optimizeLegibility; }
  button, input, select, textarea { font-family: inherit; }
  .shell { grid-template-columns: 224px minmax(0, 1fr); }
  .sidebar { padding: 22px 13px 18px; border-color: #26303e; }
  :root[data-theme="light"] .sidebar { border-color: var(--border); }
  .sidebar .brand { padding: 9px 11px 22px; }
  .sidebar .nav-label { padding: 17px 12px 9px; font-size: 10px; font-weight: 500; letter-spacing: .13em; }
  .nav-link { padding: 10px 12px; font-size: 13px; font-weight: 400; border-radius: 5px; gap: 11px; }
  .nav-link.active { font-weight: 500; color: #c9e4ff; background: linear-gradient(100deg, #203650, #152333); box-shadow: inset 2px 0 #53a9ff; }
  :root[data-theme="light"] .nav-link.active { color: #064d92; background: linear-gradient(100deg, #dceafb, #edf2f8); }
  .nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; flex: 0 0 18px; }
  .nav-icon svg { width: 17px; height: 17px; }
  .nav-group { margin: 12px 0; }
  .nav-group-toggle { padding: 9px 12px; font-size: 12px; font-weight: 500; gap: 11px; }
  .nav-group-items { gap: 0; margin: 3px 0 5px 21px; padding-left: 7px; }
  .nav-group-items .nav-link { font-size: 12px; padding: 8px 9px; min-height: 33px; margin: 1px 0; }
  .nav-group-items .nav-icon { width: 15px; flex-basis: 15px; }
  .nav-group-items .nav-icon svg { width: 14px; height: 14px; opacity: .8; }
  .sidebar-bottom { padding: 16px 12px 0; font-size: 11px; line-height: 1.6; }
  .sidebar-bottom small { font-size: 10px; }
  .topbar { min-height: 54px; padding: 9px 32px; background: color-mix(in srgb, var(--canvas) 72%, var(--surface)); border-bottom-color: color-mix(in srgb, var(--border) 65%, transparent); }
  .topbar-left { font-size: 12px; }
  .topbar-right { font-size: 12px; gap: 14px; }
  .topbar .theme-toggle { background: transparent; border-color: transparent; width: 30px; height: 30px; padding: 5px; justify-content: center; }
  .topbar .theme-label { display: none; }
  .topbar .development { color: var(--muted); background: transparent; border: 1px solid var(--border); font-size: 10px; font-weight: 400; }
  .topbar [data-action="logout"] { background: transparent; border-color: transparent; padding-inline: 0; color: var(--muted); font-size: 12px; }
  .content { padding: 28px 32px 56px; }
  h1 { font-family: var(--font-display); font-weight: 500; font-size: 38px; line-height: 1.1; letter-spacing: -.3px; }
  h2, h3 { font-weight: 500; letter-spacing: -.15px; }
  button { font-weight: 500; }
  button.primary, a.primary { background: linear-gradient(180deg, #278be3, #1273c9); border-color: #308bdc; box-shadow: inset 0 1px rgb(255 255 255 / 10%); border-radius: 5px; }
  button.primary:hover, a.primary:hover { background: linear-gradient(180deg, #3598ef, #147bd2); }
  button.primary:disabled { box-shadow: none; }
  .theme-toggle svg { width: 17px; height: 17px; }
}
@media (max-width: 1050px) and (min-width: 761px) {
  .shell { grid-template-columns: 202px minmax(0, 1fr); }
  .content { padding-inline: 24px; }
  .topbar { padding-inline: 24px; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 10px 18px; gap: 0 16px; }
  .sidebar .brand { width: 138px; padding: 0; }
  .sidebar .brand-logo { width: 100%; }
  .sidebar-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 4px; font-size: 12px; }
  .sidebar > nav { display: none; grid-column: 1 / -1; min-width: 0; max-height: 60dvh; overflow-x: hidden; overflow-y: auto; }
  .sidebar.mobile-nav-open > nav { display: block; padding-top: 14px; margin-top: 10px; border-top: 1px solid var(--border); }
  .sidebar > nav .nav-link { white-space: normal; min-width: 0; }
  .sidebar > nav .nav-group { min-width: 0; }
  .sidebar > nav .nav-icon { display: inline-flex; }
  .sidebar .nav-label { display: none; }
  .nav-group { margin-block: 2px; }
  .content { padding: 22px 18px 40px; }
  .topbar { padding-inline: 18px; }
  h1 { font-size: 32px; }
}
