:root {
  color-scheme: light;
  --ink: #202426;
  --muted: #697175;
  --line: #d9e0df;
  --surface: #f7f8f5;
  --panel: #ffffff;
  --brand: #265448;
  --brand-strong: #163d34;
  --accent: #d35f3f;
  --gold: #c3913d;
  --green-soft: #dfece5;
  --red-soft: #f8ddd5;
  --yellow-soft: #fbefcf;
  --blue-soft: #dfeaf0;
  --shadow: 0 18px 50px rgba(33, 42, 39, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

button,
input,
select,
textarea,
p,
h1,
h2,
h3,
strong,
span,
small,
td,
th {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--surface);
  color: var(--ink);
  overflow-x: hidden;
}

body.app-ready .app-shell {
  animation: appShellIn 1800ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

body.app-ready .login-screen:not(.hidden) .login-panel {
  animation: appShellIn 1800ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.splash-screen {
  align-items: center;
  background: var(--brand);
  color: #ffffff;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  text-align: center;
  transition: opacity 240ms ease, visibility 240ms ease;
  z-index: 300;
}

.splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.order-send-screen {
  align-items: center;
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 220;
}

.order-send-card {
  align-items: center;
  animation: orderSendIn 520ms cubic-bezier(0.19, 1, 0.22, 1) both;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 330px;
  padding: 30px 26px;
  text-align: center;
  width: 100%;
}

.order-send-route {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 118px 18px;
  height: 32px;
}

.order-send-route span {
  background: var(--brand);
  border-radius: 999px;
  height: 18px;
  width: 18px;
}

.order-send-route i {
  background: linear-gradient(90deg, rgba(38, 84, 72, 0.18), var(--brand), rgba(38, 84, 72, 0.18));
  border-radius: 999px;
  display: block;
  height: 4px;
  overflow: hidden;
  position: relative;
}

.order-send-route i::after {
  animation: orderSendMove 980ms ease-in-out infinite;
  background: #ffffff;
  border-radius: 999px;
  content: "";
  height: 10px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translate(-120%, -50%);
  width: 22px;
}

.order-send-card h2 {
  color: var(--brand-strong);
  font-size: 1.6rem;
  line-height: 1;
  margin: 6px 0 0;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

.order-send-card p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.splash-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
  text-align: center;
  transform: translateY(-2vh);
  width: 100%;
}

.splash-logo {
  align-items: center;
  animation: splashLogoIn 700ms cubic-bezier(0.2, 0.9, 0.2, 1) both, splashLogoPulse 1800ms ease-in-out 900ms infinite;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  display: flex;
  font-size: 2.6rem;
  font-weight: 950;
  height: 96px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  width: 96px;
}

.splash-content h1 {
  animation: splashTextIn 560ms ease 420ms both;
  color: #ffffff;
  display: block;
  font-size: clamp(1.75rem, 7vw, 3.2rem);
  line-height: 1;
  margin: 10px auto 0;
  max-width: calc(100vw - 40px);
  overflow-wrap: normal;
  text-align: center;
  white-space: nowrap;
  width: max-content;
  word-break: normal;
}

.splash-content p {
  animation: splashTextIn 560ms ease 700ms both;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

@keyframes splashLogoIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes splashLogoPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
  }
}

@keyframes splashTextIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appShellIn {
  from {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(3px) scale(0.998);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes orderSendIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes orderSendMove {
  from {
    transform: translate(-120%, -50%);
  }
  to {
    transform: translate(540%, -50%);
  }
}

.login-screen {
  align-items: center;
  background: var(--surface);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100;
}

.login-screen.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  max-width: 430px;
  padding: 28px;
  width: 100%;
}

.login-brand {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 6px;
}

.login-form select,
.login-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px;
}

.login-error {
  color: #9c341d;
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
  min-height: 20px;
}

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

button {
  cursor: pointer;
  overflow-wrap: anywhere;
  white-space: normal;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  font-size: 0.92rem;
  margin-bottom: 0;
}

h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin-bottom: 0;
}

.app-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  max-width: 100vw;
  overflow-x: hidden;
  width: 100%;
}

.app-header {
  align-items: center;
  background: #f0f3ed;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  max-width: 100vw;
  overflow: visible;
  width: 100%;
}

.header-left {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.menu-shell {
  position: relative;
}

.menu-button {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.menu-button span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 3px;
  width: 18px;
}

.app-menu {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  gap: 6px;
  left: 0;
  min-width: 180px;
  padding: 8px;
  position: absolute;
  top: 50px;
  z-index: 30;
}

.app-menu.open {
  display: grid;
}

.app-menu button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  min-height: 40px;
  padding: 0 12px;
  text-align: left;
  white-space: normal;
}

.app-menu button:hover {
  background: #f0f3ed;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-brand {
  gap: 0;
}

.app-brand .eyebrow {
  font-size: 0.66rem;
  margin-bottom: 2px;
}

.app-brand h1 {
  font-size: 1rem;
  line-height: 1.05;
}

.header-storage-shortcuts {
  align-items: center;
  display: flex;
  gap: 14px;
}

.header-storage-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 1.14rem;
  gap: 8px;
  height: 48px;
  justify-content: center;
  padding: 0 14px;
  width: 230px;
}

.header-storage-button small {
  color: var(--ink);
  display: grid;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 0.98;
  text-align: left;
}

.header-storage-button.food {
  background: #fff7df;
  border: 2px solid #e1bd5d;
}

.header-storage-button.wine {
  background: #fdebe6;
  border: 2px solid #df9d8e;
}

.header-storage-button:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.badge {
  background: var(--green-soft);
  border-radius: 999px;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  min-width: 28px;
  padding: 4px 8px;
  text-align: center;
}

.today-chip {
  align-items: center;
  display: grid;
  gap: 4px 8px;
  grid-template-columns: 1fr auto;
  text-align: right;
}

.today-chip .eyebrow,
.today-chip #todayLabel,
.today-chip #logoutButton {
  grid-column: 1 / -1;
}

.push-toggle {
  align-items: center;
  color: var(--brand-strong);
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
  max-width: 120px;
}

.push-toggle strong {
  flex-basis: 100%;
  font-size: 0.74rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-align: right;
}

.push-toggle input {
  position: absolute;
  opacity: 0;
}

.push-toggle span {
  background: #cbd5d2;
  border-radius: 999px;
  display: inline-flex;
  height: 22px;
  position: relative;
  width: 40px;
}

.push-toggle span::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(33, 42, 39, 0.25);
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.18s ease;
  width: 18px;
}

.push-toggle input:checked + span {
  background: var(--brand);
}

.push-toggle input:checked + span::after {
  transform: translateX(18px);
}

.push-toggle input:disabled + span {
  opacity: 0.5;
}

.info-button {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  padding: 0;
  width: 24px;
}

.info-dialog {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  max-width: 430px;
  padding: 0;
  width: calc(100% - 32px);
}

.info-dialog .dialog-header {
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.info-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.info-content p {
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 0;
}

.info-content strong {
  color: var(--ink);
}

.workspace {
  max-width: 100vw;
  min-width: 0;
  overflow-x: hidden;
  padding: 28px;
  width: 100%;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.topbar,
.control-row,
.dialog-header,
.dialog-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.topbar > *,
.control-row > *,
.dialog-header > *,
.dialog-actions > *,
.detail-section > *,
.order-detail-card > * {
  min-width: 0;
}

.primary-button,
.ghost-button,
.icon-button,
.danger-button {
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  min-height: 42px;
  overflow-wrap: anywhere;
  padding: 0 16px;
  white-space: normal;
}

.primary-button {
  background: var(--brand);
  color: #fff;
}

.primary-button:hover {
  background: var(--brand-strong);
}

.ghost-button,
.icon-button {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}

.icon-button {
  min-width: 42px;
  padding: 0;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 0 0;
}

.link-button:hover {
  color: var(--ink);
}

.link-button:disabled {
  color: #9aa3a0;
  cursor: default;
}

.notification-button {
  color: var(--brand);
}

.danger-button {
  background: #fff;
  border-color: #e3bbb1;
  color: #9c341d;
}

.danger-button:hover {
  background: var(--red-soft);
}

.home-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(160px, 230px));
  justify-content: start;
  margin-top: 28px;
}

.team-chat-card {
  background: #f2ecfb;
  border: 2px solid #b9a6df;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(33, 42, 39, 0.05);
  display: grid;
  gap: 12px;
  margin-top: 18px;
  max-width: 474px;
  padding: 18px;
}

.team-chat-header {
  align-items: center;
  display: block;
  min-height: 38px;
  position: relative;
  text-align: center;
}

.team-chat-title {
  display: grid;
  gap: 2px;
  justify-items: center;
  margin: 0 auto;
  min-width: 0;
  padding: 0 70px;
}

.team-chat-header h3 {
  color: #4f2f7f;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0;
}

.team-chat-title p {
  color: #6f5b92;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
}

.clear-chat-button {
  background: #fff;
  border: 1px solid #d9ccef;
  border-radius: 8px;
  color: #4f2f7f;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 900;
  min-height: 26px;
  padding: 0 8px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}

.clear-chat-button:hover {
  background: #efe7fb;
}

.team-chat-messages {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid #b9a6df;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  max-height: 260px;
  min-height: 120px;
  overflow-y: auto;
  padding: 12px;
}

.team-chat-messages.expanded {
  max-height: 360px;
}

.chat-history-toggle {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #b9a6df;
  border-radius: 8px;
  color: #4f2f7f;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 34px;
  padding: 0 12px;
}

.chat-history-toggle[hidden] {
  display: none;
}

.chat-day {
  background: #fff;
  border: 1px solid rgba(185, 166, 223, 0.75);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.chat-day-label {
  color: #4f2f7f;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.chat-empty {
  align-self: center;
  color: var(--brand-strong);
  font-weight: 900;
  text-align: center;
}

.chat-message {
  border-top: 1px solid #e8def7;
  display: grid;
  gap: 4px;
  padding: 8px 0 0;
}

.chat-message:first-of-type {
  border-top: 0;
  padding-top: 0;
}

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

.chat-message .chat-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  margin-top: 2px;
}

.chat-message-actions {
  align-items: end;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.chat-message-tools {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.chat-reply-button {
  align-items: center;
  background: #fff;
  border: 1px solid #d9ccef;
  border-radius: 999px;
  color: #4f2f7f;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  min-width: 34px;
  padding: 0 9px;
}

.chat-delete-button {
  align-items: center;
  background: #fff;
  border: 1px solid #e3bbb1;
  border-radius: 999px;
  color: #9c341d;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  padding: 0 10px;
}

.chat-delete-button:hover {
  background: var(--red-soft);
}

.chat-reply-quote,
.chat-reply-preview {
  background: #f4f0fb;
  border-left: 4px solid #7b5db1;
  border-radius: 8px;
  color: #4f2f7f;
  display: grid;
  gap: 3px;
  padding: 6px 9px;
}

.chat-reply-quote strong,
.chat-reply-preview strong {
  font-size: 0.78rem;
  font-weight: 900;
}

.chat-reply-quote span,
.chat-reply-preview span {
  color: #4f2f7f;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.chat-reply-preview {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.chat-reply-preview button {
  background: transparent;
  border: 0;
  color: #4f2f7f;
  font-weight: 900;
}

.chat-reactions button {
  align-items: center;
  background: #f4f0fb;
  border: 1px solid #d9ccef;
  border-radius: 999px;
  color: #4f2f7f;
  display: inline-flex;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 28px;
  padding: 0 9px;
}

.chat-reactions button.active {
  background: #4f2f7f;
  border-color: #4f2f7f;
  color: #fff;
}

.reaction-count {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.72rem;
  justify-content: center;
  min-width: 18px;
  padding: 1px 5px;
}

.chat-message strong {
  font-weight: 900;
}

.user-color-1 {
  color: #265448;
}

.user-color-2 {
  color: #9c341d;
}

.user-color-3 {
  color: #7b5415;
}

.user-color-4 {
  color: #1f5f82;
}

.user-color-5 {
  color: #6a3d8f;
}

.user-color-6 {
  color: #3d6b2f;
}

.user-color-7 {
  color: #a04b73;
}

.user-color-8 {
  color: #475569;
}

.user-color-9 {
  color: #0f766e;
}

.user-color-10 {
  color: #b45309;
}

.user-color-11 {
  color: #be123c;
}

.user-color-12 {
  color: #4338ca;
}

.chat-message span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.chat-message p {
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0;
}

.team-chat-form {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, 141px);
}

.team-chat-form input {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #b9a6df;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  min-height: 42px;
  min-width: 0;
  padding: 12px;
  grid-column: 1 / -1;
}

.notify-everyone-toggle {
  align-items: center;
  color: #4f2f7f;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  gap: 4px;
  justify-content: center;
  min-height: 42px;
  white-space: nowrap;
}

.notify-everyone-toggle input {
  position: absolute;
  opacity: 0;
}

.notify-everyone-toggle span {
  background: #d8cbea;
  border-radius: 999px;
  display: inline-flex;
  height: 22px;
  position: relative;
  width: 40px;
}

.notify-everyone-toggle strong {
  color: inherit;
  font-size: inherit;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.notify-everyone-toggle span::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(33, 42, 39, 0.25);
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.18s ease;
  width: 18px;
}

.notify-everyone-toggle input:checked + span {
  background: #6a3d8f;
}

.notify-everyone-toggle input:checked + span::after {
  transform: translateX(18px);
}

.notify-target-button {
  background: #fff;
  border: 1px solid #d9ccef;
  border-radius: 8px;
  color: #4f2f7f;
  font-size: 0.86rem;
  font-weight: 900;
  min-height: 42px;
  padding: 0 10px;
}

.team-chat-form .primary-button {
  padding-left: 10px;
  padding-right: 10px;
}

.notify-target-button.active {
  background: #4f2f7f;
  border-color: #4f2f7f;
  color: #fff;
}

.notify-target-dialog {
  max-width: 520px;
}

.notify-target-content {
  display: grid;
  gap: 16px;
  margin: 18px 0;
}

.notify-target-content h3 {
  color: #4f2f7f;
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 8px;
}

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

.notify-target-grid label {
  align-items: center;
  background: #f4f0fb;
  border: 1px solid #d9ccef;
  border-radius: 8px;
  color: #4f2f7f;
  display: flex;
  font-size: 0.86rem;
  font-weight: 900;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
}

.notify-target-grid small {
  color: #7e6b9b;
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
}

@media (max-width: 520px) {
  .notify-target-grid {
    grid-template-columns: 1fr;
  }
}

.team-chat-card > p {
  color: #4f2f7f;
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 0;
  text-align: center;
}

.home-tile {
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(33, 42, 39, 0.05);
  color: var(--ink);
  display: grid;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  aspect-ratio: 1;
  padding: 18px;
  position: relative;
  text-align: left;
}

.notification-badge {
  align-items: center;
  background: #d63b2f;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(156, 52, 29, 0.24);
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  min-width: 28px;
  padding: 0 7px;
  position: absolute;
  right: 10px;
  top: 10px;
}

.notification-badge.zero {
  background: #94a3a0;
  box-shadow: 0 6px 16px rgba(52, 66, 74, 0.14);
}

.home-tile.create {
  background: #eef8f1;
  border: 3px solid #9fd1ad;
}

.home-tile.food {
  background: #fff7df;
  border: 3px solid #e1bd5d;
}

.home-tile.wine {
  background: #fdebe6;
  border: 3px solid #df9d8e;
}

.home-tile.notifications {
  background: #eaf7fb;
  border: 3px solid #91cddd;
}

.home-tile:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.home-tile strong {
  font-size: 1.38rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.home-tile small {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tile-icon {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 1.55rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.home-tile.create .tile-icon,
.home-tile.notifications .tile-icon {
  background: var(--green-soft);
  color: var(--brand-strong);
}

.home-tile.food .tile-icon {
  background: var(--yellow-soft);
  color: #7b5415;
}

.home-tile.wine .tile-icon {
  background: var(--red-soft);
  color: #9c341d;
}

.quick-create {
  margin-top: 28px;
}

.metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 20px;
}

.metrics article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.metrics span {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.metrics strong {
  font-size: 2rem;
}

.control-row {
  margin: 18px 0;
}

.bulk-toolbar {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 0 0 14px;
}

.bulk-toolbar span {
  color: var(--muted);
  flex: 1;
  font-size: 0.88rem;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bulk-toolbar .icon-button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.bulk-apply {
  min-width: 160px;
}

.segmented {
  background: #e8ede8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
}

.segmented button {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  min-height: 40px;
  padding: 0 14px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.search-box {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  box-sizing: border-box;
  flex: 1;
  max-width: 100%;
  min-width: 0;
  padding: 0 12px;
}

.search-box span {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 800;
}

.search-box input {
  border: 0;
  min-width: 0;
  min-height: 40px;
  outline: 0;
  width: 100%;
}

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

.order-board {
  display: grid;
  gap: 12px;
}

.order-card,
.order-detail-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(33, 42, 39, 0.05);
}

.order-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  position: relative;
  text-align: left;
  width: 100%;
}

.order-card:hover,
.order-card.selected,
.order-card.bulk-selected {
  border-color: var(--brand);
}

.order-card.bulk-selectable {
  padding-left: 52px;
}

.bulk-check {
  align-items: center;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 8px;
  color: var(--brand);
  display: flex;
  font-size: 1rem;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  left: 16px;
  position: absolute;
  top: 16px;
  width: 26px;
}

.order-card.bulk-selected .bulk-check {
  background: var(--brand);
  color: #fff;
}

.order-card-header,
.order-meta,
.detail-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-card-header {
  justify-content: space-between;
}

.order-title {
  font-size: 1.05rem;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-items-preview {
  display: grid;
  gap: 6px;
}

.order-items-preview span {
  background: #f4f6f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #34424a;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 7px 9px;
  text-align: left;
}

.order-items-preview .more-items {
  background: #e8edf0;
  color: var(--muted);
}

.pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 9px;
}

.pill.urgent {
  background: var(--red-soft);
  color: #9c341d;
}

.pill.high {
  background: var(--yellow-soft);
  color: #7b5415;
}

.pill.normal,
.pill.low {
  background: var(--green-soft);
  color: var(--brand-strong);
}

.pill.status {
  background: #e8edf0;
  color: #34424a;
}

.archive-note {
  background: #f4f6f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  margin: 0;
  padding: 13px 14px;
  text-align: center;
}

.sender,
.route,
.due {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.sender {
  color: var(--brand-strong);
  font-weight: 900;
}

.empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  min-height: 360px;
  padding: 24px;
  place-items: center;
  text-align: center;
}

.empty-state.compact {
  max-width: 560px;
  min-height: 320px;
}

.empty-state p {
  color: var(--muted);
  max-width: 320px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--green-soft);
  border-radius: 50%;
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 800;
}

.order-detail-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.order-detail-page {
  margin-top: 22px;
}

.order-detail-card {
  padding: 22px;
}

.order-detail-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.order-info-grid {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin: 22px 0 0;
}

.order-info-item.sender-info,
.order-info-item:last-child {
  grid-column: 1 / -1;
}

.route-arrow {
  align-self: center;
  color: #000;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.order-info-item {
  background: #f4f6f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
}

.order-info-item span,
.detail-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.order-info-item strong {
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.created-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 10px 0 0;
}

.detail-section {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.reply-heading {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.edit-reply-button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  height: 34px;
  min-height: 34px;
  padding: 0;
  width: 38px;
}

.wine-stock-editor {
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.wine-stock-editor > div:first-child {
  grid-column: 1 / -1;
}

.wine-stock-editor span,
.wine-stock-editor small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wine-stock-editor strong {
  color: var(--brand-strong);
  display: block;
  font-size: 1.25rem;
  font-weight: 950;
  margin: 3px 0;
}

.wine-stock-buttons {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edit-reply-button:hover {
  border-color: var(--brand);
}

.edit-storage-button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  height: 34px;
  min-height: 34px;
  padding: 0;
  width: 38px;
}

.edit-storage-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.reply-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.reply-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 6px;
}

.reply-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 86px;
  padding: 10px;
  resize: vertical;
}

.sheet-note {
  background: var(--blue-soft);
  border: 1px solid #cbdbe3;
  border-radius: 8px;
  color: #34424a;
  font-weight: 800;
  margin-top: 18px;
  padding: 12px 14px;
}

.storage-table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

.storage-table table {
  border-collapse: collapse;
  min-width: 560px;
  width: 100%;
}

.storage-table th,
.storage-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  white-space: nowrap;
}

.storage-table .storage-col-name {
  max-width: 330px;
  min-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 55%;
}

.storage-table .storage-col-amount {
  min-width: 70px;
  padding-left: 48px;
  width: 135px;
}

.storage-table .storage-col-edit {
  text-align: center;
  width: 58px;
}

.storage-table th {
  background: #eef2ef;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.storage-table tr.stock-empty td {
  background: #fdebe6;
}

.storage-table tr.stock-low td {
  background: #fff7df;
}

.storage-table tr:last-child td {
  border-bottom: 0;
}

.storage-editor-fields {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
}

.storage-editor-fields label {
  color: var(--muted);
  display: grid;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 6px;
}

.storage-editor-fields input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  min-width: 0;
  padding: 10px 12px;
}

.storage-editor .form-note {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  margin: -4px 18px 0;
}

.permissions-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.permission-row {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 180px);
  padding: 14px;
}

.permission-row strong,
.permission-row span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.permission-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  margin-top: 4px;
}

.permission-row label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 6px;
}

.permission-row select {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}

.statistics-controls,
.statistics-grid {
  display: grid;
  gap: 14px;
}

.statistics-controls {
  align-items: end;
  grid-template-columns: minmax(150px, 1fr) repeat(2, minmax(140px, 180px));
  margin-top: 16px;
}

.statistics-controls label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 6px;
  text-transform: uppercase;
}

.statistics-controls select,
.statistics-controls input {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 10px 12px;
  text-transform: none;
  width: 100%;
}

.statistics-controls input:disabled {
  color: #a0a9a5;
}

.statistics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

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

.stat-card-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.stat-card-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card-header strong {
  color: var(--brand-strong);
  font-size: 1.45rem;
  font-weight: 950;
}

.stat-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 36%) 40px;
}

.stat-row strong,
.stat-row span {
  display: block;
}

.stat-row strong {
  font-weight: 900;
}

.stat-row span,
.stat-row em,
.stat-muted {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.stat-bar {
  background: #e8eeeb;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.stat-bar span {
  background: var(--brand);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-pills span {
  background: #f1f5f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
  padding: 9px 10px;
}

.stat-pills strong {
  color: var(--brand-strong);
  margin-left: 5px;
}

.report-controls {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 220px) auto auto auto auto;
  margin-top: 16px;
}

.report-controls label {
  color: var(--muted);
  display: grid;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 6px;
}

.report-controls input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  min-width: 0;
  padding: 10px 12px;
}

.report-preview {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

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

.report-summary div,
.report-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(33, 42, 39, 0.05);
}

.report-summary div {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.report-summary span,
.report-section h3 span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-summary strong {
  font-size: 1.18rem;
}

.report-section {
  overflow: hidden;
}

.report-section h3 {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  font-size: 1.05rem;
  justify-content: space-between;
  margin: 0;
  padding: 14px;
}

.report-table-wrap {
  overflow-x: auto;
}

.report-table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.report-table th,
.report-table td {
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.report-table th {
  background: #eef2ef;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-table small {
  color: #9c341d;
  font-weight: 900;
}

.report-document {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(33, 42, 39, 0.05);
  color: var(--ink);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.report-document-toolbar {
  align-items: center;
  background: #f5f7f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.report-document h1 {
  font-size: 1.5rem;
  margin: 0;
}

.report-meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  margin: -8px 0 0;
}

.report-document-section h2 {
  border-bottom: 2px solid var(--ink);
  font-size: 1.12rem;
  margin-bottom: 10px;
  padding-bottom: 6px;
}

.empty-report-section {
  color: var(--muted);
  font-weight: 800;
}

@media print {
  body * {
    visibility: hidden;
  }

  .report-document,
  .report-document * {
    visibility: visible;
  }

  .report-document {
    border: 0;
    box-shadow: none;
    left: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  .report-document-toolbar {
    display: none;
  }

  .report-table-wrap {
    overflow: visible;
  }

  .report-table {
    font-size: 10px;
    min-width: 0;
  }

  .report-table th,
  .report-table td {
    font-size: 10px;
    padding: 6px;
  }
}

.composer {
  border: 0;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 760px;
  padding: 0;
  width: calc(100% - 28px);
}

.composer::backdrop {
  background: rgba(25, 31, 29, 0.42);
}

.composer form {
  padding: 22px;
}

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

.form-grid > * {
  min-width: 0;
}

.form-grid label {
  color: var(--muted);
  display: grid;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 6px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 10px;
  resize: vertical;
}

.item-list-input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
}

.item-list-input input {
  border: 0;
  min-height: 28px;
  padding: 0;
}

.item-list-input input:focus {
  outline: none;
}

.item-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.item-chip {
  align-items: center;
  background: var(--green-soft);
  border: 1px solid #9fd1ad;
  border-radius: 8px;
  color: var(--brand-strong);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 5px 8px;
}

.item-chip button {
  background: transparent;
  border: 0;
  color: var(--brand-strong);
  font-weight: 900;
  padding: 0;
}

.storage-order-field {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 96px 118px auto;
}

.storage-order-search {
  grid-column: 1 / -1;
}

.storage-order-field label {
  min-width: 0;
}

.storage-order-list {
  grid-column: 1 / -1;
}

.storage-order-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.storage-order-detail-list span {
  background: #eef2ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  padding: 7px 9px;
}

.storage-order-note {
  grid-column: 1 / -1;
  margin: 0;
}

.form-note.error,
.storage-order-note.error {
  color: #9c341d;
}

.full-width {
  grid-column: 1 / -1;
}

.empty-board {
  background: var(--panel);
  border: 1px dashed #bfc9c7;
  border-radius: 8px;
  color: var(--muted);
  padding: 36px;
  text-align: center;
}

@media (max-width: 760px) {
  .workspace,
  .app-header {
    padding: 14px;
  }

  .workspace {
    padding: 14px;
  }

  .app-header {
    gap: 10px;
    min-height: 116px;
    position: relative;
    padding-right: 14px;
  }

  .header-left {
    align-content: start;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    flex-wrap: wrap;
    padding-right: 0;
    width: 100%;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-mark {
    height: 38px;
    width: 38px;
  }

  h1 {
    font-size: 0.82rem;
    max-width: 88px;
    overflow-wrap: anywhere;
  }

  .app-brand .eyebrow {
    font-size: 0.56rem;
  }

  .app-brand h1 {
    font-size: 0.84rem;
  }

  .header-storage-shortcuts {
    grid-column: 1 / -1;
    flex-basis: 100%;
    flex-shrink: 0;
    gap: 10px;
    margin-top: 6px;
    max-width: 100%;
    width: 100%;
  }

  .header-storage-button {
    font-size: 0.88rem;
    gap: 4px;
    height: 38px;
    padding: 0 5px;
    width: calc((100% - 10px) / 2);
  }

  .header-storage-button small {
    font-size: 0.52rem;
  }

  h2 {
    font-size: 1.28rem;
  }

  .menu-button {
    height: 38px;
    width: 38px;
  }

  .topbar {
    gap: 10px;
  }

  .topbar .eyebrow {
    margin-bottom: 2px;
  }

  .topbar,
  .control-row,
  .dialog-header,
  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    width: 100%;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bulk-toolbar {
    align-items: stretch;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .bulk-toolbar .bulk-apply {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .order-info-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .segmented button {
    flex: 1;
  }

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

  .order-detail-header {
    flex-direction: column;
  }

  .home-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
    width: 100%;
  }

  .team-chat-card {
    max-width: none;
    padding: 14px;
  }

  .team-chat-header {
    display: block;
    min-height: 36px;
  }

  .clear-chat-button {
    min-height: 26px;
    width: auto;
  }

  .team-chat-title {
    padding: 0 58px;
  }

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

  .team-chat-form input {
    grid-column: 1 / -1;
  }

  .team-chat-form .primary-button,
  .notify-everyone-toggle,
  .notify-target-button {
    font-size: 0.72rem;
    padding-left: 6px;
    padding-right: 6px;
  }

  .notify-everyone-toggle {
    gap: 5px;
    white-space: normal;
  }

  .notify-everyone-toggle strong {
    line-height: 1;
  }

  .home-tile {
    gap: 7px;
    padding: 10px;
  }

  .home-tile strong {
    font-size: 1.02rem;
    line-height: 1.08;
  }

  .home-tile small {
    font-size: 0.76rem;
    line-height: 1.15;
  }

  .tile-icon {
    font-size: 1.35rem;
    height: 38px;
    width: 38px;
  }

  .login-screen {
    padding: 14px;
  }

  .login-panel {
    gap: 16px;
    padding: 20px;
  }

  .login-form select,
  .login-form input,
  .form-grid input,
  .form-grid select,
  .form-grid textarea,
  .storage-editor-fields input,
  .search-box input {
    font-size: 16px;
  }

  .storage-editor-fields {
    grid-template-columns: 1fr;
  }

  .permission-row {
    grid-template-columns: 1fr;
  }

  .report-controls,
  .report-summary,
  .statistics-controls,
  .statistics-grid {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .stat-bar {
    grid-column: 1 / -1;
  }

  .report-controls .primary-button,
  .report-controls .ghost-button {
    width: 100%;
  }

  .storage-order-field {
    grid-template-columns: 1fr;
  }

  .storage-order-list {
    grid-column: auto;
  }

  .today-chip .eyebrow,
  .today-chip strong#todayLabel,
  .today-chip #logoutButton {
    display: none;
  }

  .today-chip {
    align-items: flex-start;
    display: flex;
    flex-shrink: 0;
    gap: 6px;
    min-width: 104px;
    position: absolute;
    right: 14px;
    top: 10px;
  }

  .push-toggle {
    gap: 4px;
    max-width: 74px;
  }

  .push-toggle strong {
    display: block;
    font-size: 0.62rem;
    line-height: 1;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .info-button {
    flex: 0 0 24px;
  }
}
