:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f3f7;
  --border: #dde3ea;
  --text: #111827;
  --muted: #667085;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #138a57;
  --danger: #c24141;
  --warning: #ad6b00;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
}

.auth-panel {
  width: min(100%, 420px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.login-brand h1,
.topbar h1,
.page-actions h2,
.panel-title h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0;
}

.login-brand p,
.empty-state p,
.error-state p {
  margin: 4px 0 0;
  color: var(--muted);
}

.brand,
.topbar-actions,
.user-chip,
.row-actions,
.form-actions,
.page-actions,
.panel-title {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding: 18px 14px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-weight: 500;
}

.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
  font-weight: 700;
}

img.brand-mark {
  object-fit: contain;
  padding: 4px;
}

.app-body {
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.app-sidebar {
  position: sticky;
  top: 0;
  width: 260px;
  height: 100vh;
  flex: 0 0 260px;
  background: #fbfcfd;
  border-right: 1px solid var(--border);
  padding: 12px;
  overflow-y: auto;
}

.side-nav {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.side-nav-section {
  margin: 14px 8px 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.side-nav a,
.bottom-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
}

.side-nav a {
  padding: 0 12px;
}

.side-nav a.active,
.side-nav a:hover,
.bottom-nav a.active {
  background: var(--surface-2);
  color: var(--text);
}

.app-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.topbar-actions {
  gap: 10px;
}

.user-chip {
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.avatar {
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
}

.user-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  transition: 0.18s ease;
}

.icon-button:hover {
  border-color: #b7c2cf;
  background: var(--surface-2);
}

.icon-button.sm {
  width: 34px;
  height: 34px;
}

.icon-button.danger {
  color: var(--danger);
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
}

.row-actions {
  justify-content: flex-end;
  gap: 6px;
}

.row-actions form {
  margin: 0;
}

.app-content {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 28px;
  flex: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.metric-card,
.content-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.metric-card {
  min-height: 108px;
  padding: 16px;
  display: grid;
  align-content: space-between;
}

.metric-card span {
  color: var(--muted);
  font-weight: 600;
}

.metric-card strong {
  font-size: 1.65rem;
}

.metric-primary {
  border-color: rgba(37, 99, 235, 0.28);
}

.metric-success {
  border-color: rgba(19, 138, 87, 0.28);
}

.metric-warning {
  border-color: rgba(173, 107, 0, 0.25);
}

.metric-danger {
  border-color: rgba(194, 65, 65, 0.28);
}

.content-panel {
  padding: 18px;
  margin-bottom: 16px;
}

.content-subpanel {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfd;
}

.support-banner {
  position: sticky;
  top: 76px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 28px;
  border-bottom: 1px solid rgba(173, 107, 0, 0.28);
  background: #fff5df;
  color: #6f4400;
  font-weight: 700;
}

.support-banner form {
  margin: 0;
}

.panel-title,
.page-actions {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: var(--muted);
}

.status-dot.success {
  background: var(--success);
}

.empty-state,
.error-state {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 220px;
}

.empty-state i {
  color: var(--success);
  font-size: 2.4rem;
}

.error-state {
  gap: 12px;
}

.error-state span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.error-state h1 {
  margin: 0;
  font-size: 1.5rem;
}

.app-table {
  margin-bottom: 0;
}

.app-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-table td {
  vertical-align: middle;
}

.app-table td small {
  display: block;
  color: var(--muted);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-soft.success {
  background: #eaf7f0;
  color: var(--success);
}

.badge-soft.warning {
  background: #fff5df;
  color: var(--warning);
}

.badge-soft.danger {
  background: #fdecec;
  color: var(--danger);
}

.badge-soft.muted {
  background: var(--surface-2);
  color: var(--muted);
}

.form-panel {
  max-width: 980px;
}

.form-panel.wide {
  max-width: 1180px;
}

.form-grid,
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field span {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.code-textarea {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.generated-preview {
  line-height: 1.6;
  color: var(--text);
}

.document-frame {
  width: 100%;
  min-height: 680px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.filter-grid {
  grid-template-columns: 1.3fr 1fr 1fr 1fr auto;
}

.filter-grid.compact {
  grid-template-columns: 1fr 180px auto;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.span-2 {
  grid-column: span 2;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 12px;
}

.form-section-title {
  margin: 20px 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.form-section-title:first-of-type {
  margin-top: 0;
}

.form-label {
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
}

.form-control,
.form-select {
  border-color: #ccd5df;
  border-radius: 8px;
  min-height: 44px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  cursor: pointer;
}

.role-option input {
  accent-color: var(--primary);
}

.form-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px 130px auto;
  gap: 10px;
  margin-bottom: 14px;
}

.inline-form.sold-form {
  grid-template-columns: 220px auto;
  margin-bottom: 0;
}

.support-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  max-width: 620px;
}

.support-form.compact {
  margin-left: auto;
  max-width: 420px;
}

.action-details {
  position: relative;
}

.action-details summary {
  list-style: none;
  cursor: pointer;
}

.action-details summary::-webkit-details-marker {
  display: none;
}

.action-details form {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  display: grid;
  grid-template-columns: 160px 120px 180px auto;
  gap: 8px;
  width: min(620px, 90vw);
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.kanban-column {
  min-height: 440px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfd;
}

.kanban-column.drag-over {
  border-color: var(--primary);
  background: #eef5ff;
}

.kanban-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.kanban-heading strong {
  font-size: 0.88rem;
}

.kanban-heading span {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
}

.kanban-list {
  display: grid;
  gap: 10px;
}

.kanban-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: grab;
}

.kanban-card .kanban-select {
  justify-self: end;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card a {
  font-weight: 800;
}

.kanban-card span,
.kanban-card small {
  color: var(--muted);
}

.kanban-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 700;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background: var(--text);
  border-color: var(--text);
}

.btn-light {
  background: var(--surface-2);
  border-color: var(--border);
}

.alert {
  border-radius: 8px;
}

.app-footer,
.public-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.app-footer {
  padding: 8px 28px 24px;
}

.public-footer span,
.app-footer span {
  width: 4px;
  height: 4px;
  background: #a9b3bf;
  border-radius: 50%;
}

.bottom-nav {
  display: none;
}

.autocomplete-field {
  position: relative;
}

.autocomplete-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  display: grid;
  gap: 4px;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.autocomplete-menu button {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.autocomplete-menu button:hover {
  background: var(--surface-2);
}

.autocomplete-menu span {
  color: var(--muted);
  font-size: 0.8rem;
}

.autocomplete-menu .create-option {
  color: var(--primary);
  font-weight: 800;
}

.app-tabs {
  margin-bottom: 16px;
}

.view-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.view-switch a {
  min-width: 74px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.view-switch a.active {
  background: var(--surface-2);
  color: var(--text);
}

.calendar-list {
  display: grid;
  gap: 10px;
}

.date-divider {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.agenda-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.agenda-time {
  display: grid;
  gap: 2px;
}

.agenda-time strong {
  font-size: 1rem;
}

.agenda-time span,
.agenda-main span {
  color: var(--muted);
  font-size: 0.82rem;
}

.agenda-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.agenda-main a {
  font-weight: 800;
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.context-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.context-grid span {
  font-size: 1.4rem;
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 0.98rem;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel-title.compact {
  margin-bottom: 12px;
}

.panel-title.compact h2 {
  font-size: 1rem;
}

.timeline,
.mini-list {
  display: grid;
  gap: 10px;
}

.timeline-item,
.mini-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child,
.mini-list-item:last-child {
  border-bottom: 0;
}

.timeline-item {
  align-items: flex-start;
  flex-direction: column;
}

.timeline-item span,
.mini-list-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .app-sidebar {
    display: none;
  }

  .topbar {
    padding: 14px 16px;
  }

  .support-banner {
    top: 68px;
    padding: 10px 16px;
  }

  .topbar .eyebrow,
  .user-name {
    display: none;
  }

  .app-content {
    padding: 18px 14px 92px;
  }

  .dashboard-grid,
  .form-grid,
  .filter-grid,
  .filter-grid.compact,
  .inline-form,
  .support-form,
  .inline-form.sold-form,
  .action-details form {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .page-actions {
    align-items: flex-start;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
  }

  .bottom-nav a {
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 54px;
    font-size: 0.72rem;
  }

  .agenda-item {
    grid-template-columns: 1fr;
  }

  .view-switch {
    width: 100%;
  }

  .view-switch a {
    min-width: 0;
    flex: 1;
  }

  .app-footer,
  .public-footer {
    flex-wrap: wrap;
    padding-inline: 12px;
    text-align: center;
  }
}

[data-theme="dark"] {
  --bg: #111827;
  --surface: #182231;
  --surface-2: #223047;
  --border: #324157;
  --text: #f8fafc;
  --muted: #a7b0bf;
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --bg: #111827;
    --surface: #182231;
    --surface-2: #223047;
    --border: #324157;
    --text: #f8fafc;
    --muted: #a7b0bf;
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --success: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  }
}

[data-theme="dark"] .topbar,
[data-theme="dark"] .bottom-nav,
[data-theme="system"] .topbar,
[data-theme="system"] .bottom-nav {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

[data-theme="dark"] .app-sidebar,
[data-theme="dark"] .content-subpanel,
[data-theme="dark"] .kanban-column,
[data-theme="dark"] .agenda-item,
[data-theme="system"] .app-sidebar,
[data-theme="system"] .content-subpanel,
[data-theme="system"] .kanban-column,
[data-theme="system"] .agenda-item {
  background: var(--surface);
}

[data-theme="dark"] .badge-soft.success,
[data-theme="system"] .badge-soft.success {
  background: rgba(52, 211, 153, 0.13);
}

[data-theme="dark"] .badge-soft.warning,
[data-theme="system"] .badge-soft.warning {
  background: rgba(251, 191, 36, 0.14);
}

[data-theme="dark"] .badge-soft.danger,
[data-theme="system"] .badge-soft.danger {
  background: rgba(248, 113, 113, 0.13);
}

.top-search-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.top-search-button kbd,
.command-input-wrap kbd {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.72rem;
  box-shadow: none;
}

.notification-menu {
  position: relative;
}

.notification-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: none;
  width: min(360px, 88vw);
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notification-menu:hover .notification-popover,
.notification-menu:focus-within .notification-popover {
  display: grid;
  gap: 8px;
}

.notification-preview {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-2);
}

.notification-preview span {
  color: var(--muted);
  font-size: 0.82rem;
}

.command-palette[hidden],
.pwa-install[hidden] {
  display: none !important;
}

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.command-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.54);
  backdrop-filter: blur(4px);
}

.command-dialog {
  position: relative;
  width: min(92vw, 720px);
  margin: 8vh auto 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.command-input-wrap {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.command-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.command-results {
  display: grid;
  gap: 6px;
  max-height: min(62vh, 560px);
  overflow: auto;
  padding: 8px;
}

.command-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.command-item:hover,
.command-item.active {
  background: var(--surface-2);
}

.command-item i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--primary);
}

.command-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.command-section {
  padding: 10px 10px 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pwa-install {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.bulk-toolbar {
  display: grid;
  grid-template-columns: 190px 190px auto;
  gap: 10px;
  justify-content: start;
  margin-bottom: 14px;
}

.select-col {
  width: 42px;
}

.saved-filter-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.saved-filter-list form {
  margin: 0 6px 0 -4px;
}

.toast-stack {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 90;
  display: grid;
  gap: 8px;
  width: min(360px, 90vw);
}

.app-toast {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-toast strong {
  font-size: 0.9rem;
}

.app-toast span {
  color: var(--muted);
  font-size: 0.84rem;
}

.form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  border-color: var(--border);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 760px) {
  .top-search-button {
    width: 40px;
    justify-content: center;
    padding: 0;
  }

  .top-search-button span,
  .top-search-button kbd,
  .topbar-actions .icon-button[title="Favoritar tela"],
  .topbar-actions .icon-button[title="Atalhos"],
  .topbar-actions .icon-button[title="Favoritos"] {
    display: none;
  }

  .command-dialog {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .bulk-toolbar,
  .inline-form.mt-3 {
    grid-template-columns: 1fr;
  }

  .pwa-install {
    left: 12px;
    right: 12px;
    bottom: 78px;
    justify-content: space-between;
  }
}
