:root {
  --bg: #ffd028;
  --bg-strong: #ffe371;
  --panel: rgba(255, 245, 205, 0.78);
  --panel-strong: rgba(255, 248, 224, 0.95);
  --stroke: rgba(115, 82, 0, 0.16);
  --text: #18120a;
  --muted: #6c5928;
  --accent: #12100c;
  --accent-soft: #f5d96e;
  --good: #286b45;
  --warn: #955f00;
  --bad: #9e3b34;
  --shadow: 0 18px 45px rgba(111, 74, 0, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 24%, rgba(159, 126, 0, 0.28) 0 6rem, transparent 6.1rem),
    radial-gradient(circle at 32% 11%, rgba(159, 126, 0, 0.22) 0 5rem, transparent 5.1rem),
    radial-gradient(circle at 58% 18%, rgba(159, 126, 0, 0.22) 0 5.6rem, transparent 5.7rem),
    radial-gradient(circle at 88% 14%, rgba(159, 126, 0, 0.24) 0 5rem, transparent 5.1rem),
    radial-gradient(circle at 14% 76%, rgba(159, 126, 0, 0.18) 0 5.8rem, transparent 5.9rem),
    radial-gradient(circle at 72% 72%, rgba(159, 126, 0, 0.2) 0 6rem, transparent 6.1rem),
    linear-gradient(180deg, #ffcf1f 0%, #ffc409 42%, #ffca14 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  opacity: 0.35;
  background:
    radial-gradient(circle at 5% 5%, rgba(255, 249, 214, 0.72) 0 1.25rem, transparent 1.3rem),
    radial-gradient(circle at 24% 22%, rgba(255, 249, 214, 0.62) 0 1.25rem, transparent 1.3rem),
    radial-gradient(circle at 48% 10%, rgba(255, 249, 214, 0.62) 0 1.15rem, transparent 1.2rem),
    radial-gradient(circle at 78% 26%, rgba(255, 249, 214, 0.62) 0 1.25rem, transparent 1.3rem),
    radial-gradient(circle at 92% 58%, rgba(255, 249, 214, 0.62) 0 1.35rem, transparent 1.4rem),
    radial-gradient(circle at 66% 85%, rgba(255, 249, 214, 0.62) 0 1.2rem, transparent 1.25rem),
    radial-gradient(circle at 20% 88%, rgba(255, 249, 214, 0.62) 0 1.3rem, transparent 1.35rem);
}

body::after {
  opacity: 0.22;
  background:
    linear-gradient(35deg, transparent 0 47%, rgba(112, 86, 0, 0.4) 47% 53%, transparent 53% 100%);
  background-size: 260px 260px;
  mix-blend-mode: multiply;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(99.75vw, 2280px);
  margin: 6px auto 18px;
  position: relative;
  z-index: 1;
}

.hero,
.panel,
.card {
  backdrop-filter: blur(10px);
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.hero {
  border-radius: 38px;
  padding: 16px 24px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 239, 162, 0.95), rgba(255, 223, 84, 0.88)),
    var(--panel);
  border-color: rgba(112, 82, 0, 0.24);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(255, 242, 178, 0.34);
}

.hero::before {
  width: 210px;
  height: 210px;
  left: 32px;
  top: -78px;
}

.hero::after {
  width: 260px;
  height: 260px;
  right: -40px;
  bottom: -120px;
}

.hero-lockup {
  display: grid;
  justify-items: center;
  gap: 6px;
  position: relative;
}

.hero-emblem {
  width: 102px;
  height: 102px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 14px 18px rgba(112, 76, 0, 0.25));
}

.hero-emblem img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hero-plate {
  padding: 12px 34px 14px;
  border-radius: 28px;
  background: rgba(255, 244, 188, 0.82);
  border: 1px solid rgba(138, 108, 0, 0.2);
  box-shadow: 0 16px 26px rgba(99, 70, 0, 0.18);
  backdrop-filter: blur(8px);
  text-align: center;
}

.hero-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(17, 16, 12, 0.66);
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Aptos Display", "Segoe UI", sans-serif;
}

h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: #090806;
  text-shadow: 0 2px 0 rgba(255, 247, 196, 0.7);
}

button,
.upload-label {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #111111, #2f2512);
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

button:hover,
.upload-label:hover {
  transform: translateY(-1px);
}

button.ghost,
.upload-label {
  background: rgba(255, 247, 214, 0.9);
  color: var(--text);
  border: 1px solid var(--stroke);
  box-shadow: none;
}

.tabs {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.session-bar {
  margin-top: 12px;
  position: relative;
  padding-right: 210px;
  overflow: visible;
  z-index: 25;
  isolation: isolate;
}

.utility-actions {
  margin-top: 0;
}

.session-settings {
  position: absolute;
  top: 16px;
  right: 18px;
  width: min(380px, calc(100% - 36px));
  border-radius: 18px;
  background: rgba(255, 247, 214, 0.96);
  border: 1px solid rgba(128, 94, 0, 0.16);
  box-shadow: 0 14px 24px rgba(101, 72, 0, 0.14);
  overflow: hidden;
  z-index: 40;
}

.session-settings summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a4510;
  background: rgba(255, 238, 168, 0.88);
}

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

.accounting-toolbar .section-head {
  align-items: end;
  gap: 16px;
}

.compact-field {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.compact-field input {
  min-height: 44px;
}

.session-settings[open] summary {
  border-bottom: 1px solid rgba(128, 94, 0, 0.12);
}

.session-settings-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.session-settings-body .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.session-settings-body .form-grid > .inline-actions {
  grid-column: 1 / -1;
}

.form-feedback {
  color: #b23030;
  font-weight: 700;
  font-size: 0.9rem;
  align-self: center;
}

.tab {
  background: rgba(255, 244, 191, 0.82);
  color: #5a4510;
  border: 1px solid rgba(128, 94, 0, 0.16);
}

.tab.is-active {
  background: #111111;
  color: #fff3ba;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.grid {
  display: grid;
  gap: 18px;
}

.cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.card {
  border-radius: var(--radius);
  padding: 22px;
}

.card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.card strong {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.card.accent {
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.95), rgba(76, 56, 12, 0.92));
  color: white;
}

.card.accent span {
  color: rgba(255, 255, 255, 0.75);
}

.panel {
  border-radius: 28px;
  padding: 16px;
}

.inset {
  background: var(--panel-strong);
  border: 1px solid rgba(119, 88, 0, 0.12);
}

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

.operations-layout {
  display: grid;
  grid-template-columns: 920px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.operations-sidebar {
  position: sticky;
  top: 6px;
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 8px;
  align-self: start;
  max-height: calc(100vh - 10px);
  overflow: auto;
  padding-right: 0;
  min-width: 0;
}

.operations-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.drawer {
  align-self: start;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
}

.drawer > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  padding: 12px 14px;
  font-size: 0.92rem;
  background: linear-gradient(180deg, rgba(255, 243, 191, 0.98), rgba(250, 229, 150, 0.9));
}

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

.drawer-body {
  display: grid;
  gap: 10px;
  padding: 0 6px 8px;
}

.drawer:not([open]) .drawer-body {
  display: none;
}

.drawer:not([open]) {
  overflow: visible;
}

.operations-sidebar .panel {
  border-radius: 18px;
  padding: 8px;
}

.operations-sidebar .section-head {
  margin-bottom: 8px;
}

.operations-sidebar h2,
.operations-sidebar h3 {
  font-size: 0.95rem;
}

.operations-sidebar .muted {
  font-size: 0.78rem;
}

.operations-sidebar .grid,
.operations-sidebar .stack {
  gap: 10px;
}

.operations-sidebar .form-grid,
.operations-sidebar .settings-grid,
.operations-sidebar .inventory-grid,
.operations-sidebar .cash-grid {
  grid-template-columns: 1fr;
}

.operations-sidebar label {
  gap: 5px;
  font-size: 0.84rem;
}

.operations-sidebar input,
.operations-sidebar select,
.operations-sidebar textarea,
.operations-sidebar button,
.operations-sidebar .upload-label {
  font-size: 0.82rem;
}

.operations-sidebar input,
.operations-sidebar select,
.operations-sidebar textarea {
  padding: 8px 10px;
  border-radius: 12px;
}

.operations-sidebar button,
.operations-sidebar .upload-label {
  padding: 8px 12px;
}

.operations-sidebar .inline-actions {
  gap: 8px;
}

.operations-sidebar .subpanel,
.operations-sidebar .conversion-box {
  padding: 10px;
  border-radius: 14px;
}

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

.calculator-card {
  gap: 10px;
}

.calculator-fields {
  gap: 8px;
}

.calculator-card input[readonly] {
  background: rgba(244, 236, 204, 0.9);
  font-weight: 700;
  text-align: center;
}

.operations-sidebar table {
  min-width: 100%;
  font-size: 0.8rem;
}

.operations-sidebar th,
.operations-sidebar td {
  padding: 8px 6px;
}

.operations-sidebar .table-wrap {
  max-height: 420px;
  overflow: auto;
}

.cash-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.inventory-grid {
  grid-template-columns: 0.95fr 1.05fr;
  margin-bottom: 18px;
}

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

.form-panel,
.stack {
  display: grid;
  gap: 18px;
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.field-label {
  display: block;
}

.client-field {
  width: 100%;
  min-width: 0;
  align-self: stretch;
}

.client-autocomplete {
  width: 100%;
  display: grid;
  position: relative;
  min-width: 0;
}

.client-autocomplete input {
  width: 100%;
  min-width: 0;
}

.client-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(176, 133, 22, 0.22);
  background: rgba(255, 251, 236, 0.98);
  box-shadow: 0 18px 28px rgba(86, 60, 0, 0.18);
  z-index: 30;
}

.client-suggestion {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(176, 133, 22, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.client-suggestion strong {
  font-size: 0.95rem;
}

.client-suggestion span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.client-suggestion:hover {
  transform: none;
  border-color: rgba(176, 133, 22, 0.28);
  background: rgba(255, 244, 204, 0.95);
}

.client-history-note {
  min-height: 1.1rem;
  font-size: 0.8rem;
}

.client-history-note.is-repeat {
  color: #8d5f00;
  font-weight: 700;
}

input,
select,
textarea {
  border-radius: 16px;
  border: 1px solid rgba(89, 66, 39, 0.14);
  background-color: rgba(255, 255, 255, 0.95);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(252, 243, 202, 0.92));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100% 100%;
  padding: 12px 14px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 18px rgba(176, 133, 22, 0.08);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(252, 243, 202, 0.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23634b1b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M3.5 5.75 8 10.25l4.5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, calc(100% - 16px) 50%;
  background-size: auto, 15px 15px;
  cursor: pointer;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(176, 133, 22, 0.32);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(176, 133, 22, 0.5);
  background-color: rgba(255, 255, 255, 0.98);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 245, 208, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 0 0 4px rgba(247, 205, 77, 0.18),
    0 10px 22px rgba(176, 133, 22, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: rgba(95, 76, 41, 0.72);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

textarea {
  resize: vertical;
}

td input,
td textarea {
  width: 100%;
}

.subpanel {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 241, 231, 0.95), rgba(244, 236, 224, 0.75));
  border: 1px solid rgba(89, 66, 39, 0.08);
}

.conversion-box {
  border-radius: 18px;
  border: 1px dashed rgba(89, 66, 39, 0.18);
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(255, 252, 247, 0.7);
}

.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.align-end {
  align-items: end;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.orders-table {
  min-width: 1140px;
  table-layout: auto;
}

.orders-table th {
  text-align: center;
  padding: 14px 14px;
  letter-spacing: 0.08em;
}

.orders-table td {
  vertical-align: middle;
  padding: 12px 14px;
}

.recent-orders-table th,
.recent-orders-table td {
  text-align: center;
}

.recent-orders-table .muted {
  text-align: center;
}

.orders-table .order-id-cell {
  width: 72px;
  white-space: nowrap;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.orders-registry-table td:nth-child(1),
.orders-registry-table td:nth-child(3),
.orders-registry-table td:nth-child(4),
.orders-registry-table td:nth-child(6),
.orders-registry-table td:nth-child(7),
.orders-registry-table td:nth-child(8),
.orders-registry-table td:nth-child(9),
.orders-registry-table td:nth-child(10),
.orders-registry-table td:nth-child(11),
.orders-registry-table td:nth-child(12) {
  text-align: center;
}

.registry-filters {
  margin-bottom: 14px;
}

.orders-table th:nth-child(1) {
  width: 76px;
}

.orders-table th:nth-child(2) {
  width: 160px;
}

.orders-table th:nth-child(3) {
  width: 116px;
}

.orders-table th:nth-child(4) {
  width: 100px;
}

.orders-table th:nth-child(5) {
  width: 150px;
}

.orders-table th:nth-child(7),
.orders-table th:nth-child(8),
.orders-table th:nth-child(9),
.orders-table th:nth-child(10) {
  width: 110px;
}

.recent-orders-table th:nth-child(2) {
  width: 116px;
}

.recent-orders-table th:nth-child(3) {
  width: 100px;
}

.recent-orders-table th:nth-child(4) {
  width: 150px;
}

.recent-orders-table th:nth-child(6),
.recent-orders-table th:nth-child(7),
.recent-orders-table th:nth-child(8),
.recent-orders-table th:nth-child(9) {
  width: 110px;
}

.inventory-matrix {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
  font-size: 0.72rem;
}

.inventory-matrix th,
.inventory-matrix td {
  padding: 5px 4px;
  text-align: center;
  white-space: nowrap;
}

.inventory-matrix th:first-child,
.inventory-matrix td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: rgba(241, 233, 220, 0.96);
  z-index: 1;
  width: 118px;
}

.inventory-qty-positive {
  background: rgba(92, 178, 120, 0.24);
}

.inventory-qty-negative {
  background: rgba(221, 98, 92, 0.26);
}

.inventory-qty-zero {
  background: rgba(186, 197, 219, 0.18);
}

.inventory-value-low {
  background: rgba(92, 178, 120, 0.28);
  font-weight: 700;
}

.inventory-value-medium {
  background: rgba(243, 205, 93, 0.4);
  font-weight: 700;
}

.inventory-value-high {
  background: rgba(229, 96, 80, 0.36);
  font-weight: 700;
}

.tools-span-full {
  grid-column: 1 / -1;
}

.tools-price-table,
.tools-exchange-table,
.tools-rates-table {
  min-width: 520px;
}

.tools-price-table th,
.tools-exchange-table th,
.tools-rates-table th {
  text-align: center;
}

.tools-price-table td,
.tools-exchange-table td,
.tools-rates-table td {
  text-align: center;
}

.tools-price-table td:last-child,
.tools-price-table th:last-child {
  font-weight: 800;
}

.capture-panel .table-wrap {
  overflow: visible;
}

.compact-actions {
  gap: 8px;
  align-items: center;
}

.tool-price-input {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tool-price-input input {
  min-width: 0;
}

.tools-price-table input,
.tools-exchange-table input,
.tools-rates-table input {
  width: 100%;
  padding: 3px 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  font-weight: 700;
  color: inherit;
}

.tools-price-table input::-webkit-outer-spin-button,
.tools-price-table input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tools-price-table input[type="number"] {
  -moz-appearance: textfield;
}

.tools-price-table input:focus,
.tools-exchange-table input:focus,
.tools-rates-table input:focus {
  outline: 2px solid rgba(155, 91, 0, 0.28);
  outline-offset: -2px;
  background: rgba(255, 255, 255, 0.14);
}

.tool-reset-btn {
  min-width: auto;
  padding: 4px 7px;
  border-radius: 10px;
  font-size: 0.76rem;
}

.override-star {
  color: #9b5b00;
  font-weight: 800;
  font-size: 0.92rem;
}

.capture-export {
  box-shadow: none !important;
  border-color: rgba(115, 82, 0, 0.2) !important;
}

.capture-export .table-wrap {
  overflow: visible !important;
}

.capture-export .tool-capture-btn,
.capture-export .tool-reset-btn {
  display: none !important;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(89, 66, 39, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.pill.good {
  background: rgba(40, 107, 69, 0.1);
  color: var(--good);
}

.pill.warn {
  background: rgba(149, 95, 0, 0.12);
  color: var(--warn);
}

.pill.bad {
  background: rgba(158, 59, 52, 0.1);
  color: var(--bad);
}

.alerts,
.rules,
.accounts-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.alerts li,
.rules li,
.accounts-list li {
  color: var(--muted);
}

.assumptions li {
  color: var(--text);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-plate {
    padding: 12px 22px 14px;
  }

  .hero-emblem {
    width: 90px;
    height: 90px;
  }

  .cards,
  .dashboard-grid,
  .operations-layout,
  .cash-grid,
  .inventory-grid,
  .settings-grid,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-layout {
    grid-template-columns: 1fr;
  }

  .operations-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 14px, 1720px);
    margin-top: 8px;
  }

  .session-bar {
    padding-right: 18px;
    padding-top: 64px;
  }

  .session-settings {
    left: 18px;
    right: 18px;
    width: auto;
  }

  .hero {
    padding: 16px;
  }

  .hero-plate {
    width: 100%;
    padding: 10px 14px 12px;
  }

  .hero-emblem {
    width: 78px;
    height: 78px;
  }

  .hero-kicker {
    letter-spacing: 0.18em;
    font-size: 0.7rem;
  }

  h1 {
    font-size: clamp(2rem, 14vw, 3.2rem);
  }

  .cards,
  .dashboard-grid,
  .operations-layout,
  .cash-grid,
  .inventory-grid,
  .settings-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .session-settings-body .form-grid {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 520px;
  }
}
