@font-face {
  font-family: "DF Comfortaa";
  src: url("/public/df-comfortaa-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "DF Assistant";
  src: url("/public/df-assistant-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --df-admin-forest: #123728;
  --df-admin-forest-2: #1c4a36;
  --df-admin-cream: #fff4e2;
  --df-admin-paper: #fffdf8;
  --df-admin-pink: #ff4fa3;
  --df-admin-coral: #ff6b2e;
  --df-admin-lavender: #b28ae3;
  --df-admin-palm: #7a8f4a;
  --df-admin-sun: #ffd65a;
  --df-admin-blush: #f6a3c2;
  --df-admin-ink: #123728;
  --df-admin-muted: #65756c;
  --df-admin-line: rgba(18, 55, 40, .15);
  --df-admin-soft: #edf4ee;
  --df-admin-danger: #a33128;
  --df-admin-shadow: 0 14px 34px rgba(18, 55, 40, .09);
  --df-admin-radius: 8px;
  --df-admin-font-display: "DF Comfortaa", "Trebuchet MS", system-ui, sans-serif;
  --df-admin-font-body: "DF Assistant", Inter, Arial, sans-serif;
}

html {
  background: #f6f3eb;
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  color: var(--df-admin-ink) !important;
  font-family: var(--df-admin-font-body) !important;
  letter-spacing: 0 !important;
  background: linear-gradient(135deg, rgba(255, 253, 248, .94), rgba(255, 244, 226, .9)), #fff4e2 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--df-admin-font-body) !important;
  letter-spacing: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.hero-line h1,
.side-brand strong {
  color: var(--df-admin-forest) !important;
  font-family: var(--df-admin-font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

a {
  color: var(--df-admin-forest-2);
  text-underline-offset: 3px;
}

::selection {
  color: var(--df-admin-paper);
  background: var(--df-admin-forest);
}

*:focus-visible {
  outline: 3px solid rgba(255, 79, 163, .38) !important;
  outline-offset: 2px !important;
}

.df-admin-brand-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr .8fr;
  height: 6px;
}

.df-admin-brand-strip span:nth-child(1) { background: var(--df-admin-forest); }
.df-admin-brand-strip span:nth-child(2) { background: var(--df-admin-pink); }
.df-admin-brand-strip span:nth-child(3) { background: var(--df-admin-coral); }
.df-admin-brand-strip span:nth-child(4) { background: var(--df-admin-lavender); }
.df-admin-brand-strip span:nth-child(5) { background: var(--df-admin-palm); }
.df-admin-brand-strip span:nth-child(6) { background: var(--df-admin-sun); }
.df-admin-brand-strip span:nth-child(n+7) { display: none; }

.mobile-menu-toggle,
.app-header,
.topbar,
.mobile-header {
  color: var(--df-admin-forest) !important;
  background: rgba(255, 253, 248, .96) !important;
  border-color: var(--df-admin-line) !important;
  box-shadow: 0 6px 22px rgba(18, 55, 40, .08) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.side-nav {
  color: var(--df-admin-paper) !important;
  background:
    linear-gradient(rgba(18, 55, 40, .94), rgba(18, 55, 40, .98)),
    linear-gradient(135deg, rgba(255, 79, 163, .14), transparent 38%) !important;
  border-right: 1px solid rgba(255, 253, 248, .12) !important;
  box-shadow: 12px 0 34px rgba(18, 55, 40, .18) !important;
}

.side-brand,
.side-user,
.side-bottom {
  border-color: rgba(255, 253, 248, .14) !important;
}

.side-brand strong,
.side-brand small,
.side-user strong,
.side-user span,
.side-user small {
  color: var(--df-admin-paper) !important;
}

.side-logo {
  background: var(--df-admin-paper) !important;
  border: 1px solid rgba(255, 253, 248, .35) !important;
  border-radius: 8px !important;
}

.side-links a,
.side-action {
  color: rgba(255, 253, 248, .86) !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
}

.side-links a svg,
.side-action svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

.side-links a:hover,
.side-action:hover {
  color: var(--df-admin-paper) !important;
  background: rgba(255, 253, 248, .09) !important;
  border-color: rgba(255, 253, 248, .12) !important;
}

.side-links a.active {
  color: var(--df-admin-forest) !important;
  background: var(--df-admin-cream) !important;
  border-color: rgba(255, 253, 248, .52) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .14) !important;
}

.side-action.logout {
  color: #ffd6cf !important;
}

.page,
.content,
main.page {
  color: var(--df-admin-ink) !important;
}

.hero-line,
.card-block,
.card,
.panel,
.admin-card,
.table-card,
.form-card,
.summary-card,
.stat-card,
.order-card,
.product-admin-card,
.product-card,
.theme-sync-panel,
.theme-file-list,
.theme-backups,
.theme-pages-card,
.notice,
.empty-state {
  color: var(--df-admin-ink) !important;
  background: rgba(255, 253, 248, .96) !important;
  border: 1px solid var(--df-admin-line) !important;
  border-radius: var(--df-admin-radius) !important;
  box-shadow: var(--df-admin-shadow) !important;
}

.hero-line {
  background: linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(255, 244, 226, .86)) !important;
}

.hero-line p,
.subtle,
.muted,
small,
.help-text,
.field-help {
  color: var(--df-admin-muted) !important;
}

.eyebrow,
.df-eyebrow {
  color: var(--df-admin-palm) !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
}

.admin-card {
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.admin-card:hover {
  border-color: rgba(255, 79, 163, .35) !important;
  box-shadow: 0 18px 42px rgba(18, 55, 40, .12) !important;
  transform: translateY(-1px);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
select,
textarea {
  color: var(--df-admin-ink) !important;
  background: var(--df-admin-paper) !important;
  border: 1px solid rgba(18, 55, 40, .22) !important;
  border-radius: 7px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86) !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  border-color: var(--df-admin-pink) !important;
  box-shadow: 0 0 0 4px rgba(255, 79, 163, .12) !important;
  outline: none !important;
}

input::placeholder,
textarea::placeholder {
  color: #87948d !important;
  opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--df-admin-forest);
}

button,
.btn,
.button,
input[type="submit"],
input[type="button"] {
  min-height: 42px;
  border-radius: 7px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease !important;
}

button:hover,
.btn:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.btn-primary,
.btn-green,
.button-primary,
button[type="submit"]:not(.btn-danger):not(.danger),
input[type="submit"] {
  color: var(--df-admin-paper) !important;
  background: var(--df-admin-forest) !important;
  border-color: var(--df-admin-forest) !important;
  box-shadow: 0 10px 22px rgba(18, 55, 40, .16) !important;
}

.btn-outline,
.btn-secondary,
.button-secondary {
  color: var(--df-admin-forest) !important;
  background: var(--df-admin-paper) !important;
  border-color: rgba(18, 55, 40, .24) !important;
}

.btn-bestseller,
.stage-weekly,
.stage-pill.stage-new {
  color: var(--df-admin-paper) !important;
  background: var(--df-admin-pink) !important;
  border-color: rgba(255, 79, 163, .2) !important;
}

.btn-danger,
.danger,
button[data-action="delete"] {
  color: var(--df-admin-danger) !important;
  background: #fff0ed !important;
  border-color: rgba(163, 49, 40, .25) !important;
}

.badge,
.pill,
.chip,
.tag,
.stage-pill,
.theme-status {
  color: var(--df-admin-forest) !important;
  background: #eaf3eb !important;
  border-color: rgba(18, 55, 40, .15) !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.alert-success,
.notice.good,
.badge-success,
.status-success,
.stage-ready {
  color: #0f5b39 !important;
  background: #e5f6eb !important;
  border-color: rgba(15, 91, 57, .16) !important;
}

.alert-error,
.notice.bad,
.badge-error,
.status-failed,
.status-cancelled {
  color: var(--df-admin-danger) !important;
  background: #fff0ed !important;
  border-color: rgba(163, 49, 40, .18) !important;
}

table {
  color: var(--df-admin-ink) !important;
  background: var(--df-admin-paper) !important;
  border-color: var(--df-admin-line) !important;
}

thead,
th {
  color: var(--df-admin-forest) !important;
  background: #edf4ee !important;
  font-weight: 800 !important;
}

td,
th,
tr {
  border-color: var(--df-admin-line) !important;
}

tbody tr:hover {
  background: rgba(122, 143, 74, .08) !important;
}

.dopa-current-palette,
.brand-color-grid,
.dopa-swatches,
.brand-palette-v6 {
  position: relative;
}

.dopa-swatches button,
.brand-color-card,
.brand-palette-v6 > div {
  border-radius: 8px !important;
  border-color: var(--df-admin-line) !important;
  background-color: var(--df-admin-paper) !important;
  box-shadow: 0 10px 22px rgba(18, 55, 40, .07) !important;
}

.copy-color,
[data-copy],
[data-copy-color] {
  cursor: pointer;
}

.product-admin-card img,
.product-card img,
.gallery-card img,
.proof-photo img {
  border-radius: 8px !important;
}

.theme-sync-v6-note {
  margin: 10px 0 0;
  color: var(--df-admin-muted);
  font-weight: 700;
}

.theme-sync-v6-note.is-success {
  color: #0f5b39;
}

.theme-sync-v6-note.is-error {
  color: var(--df-admin-danger);
}

@media (max-width: 760px) {
  .page,
  main.page,
  .content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-inline: 14px !important;
    box-sizing: border-box !important;
  }

  .hero-line,
  .hero-actions,
  .product-catalog-tools,
  .product-catalog-head,
  .product-admin-layout,
  .product-admin-list,
  .product-admin-card,
  .product-search-form {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-actions,
  .print-card-actions {
    flex-wrap: wrap !important;
  }

  .hero-actions .btn,
  .print-card-actions .btn {
    white-space: normal !important;
  }
}

@media print {
  body {
    background: #fff !important;
  }

  .df-admin-brand-strip,
  .mobile-menu-toggle,
  .side-nav,
  .drawer-overlay,
  .no-print {
    display: none !important;
  }

  .card,
  .panel,
  .card-block {
    box-shadow: none !important;
  }
}

/* Rebrand finish: clearer admin surfaces, no overlapping hero controls, no muddy black actions. */
.side-brand .side-logo {
  background: rgba(255, 253, 248, .96) !important;
}

.side-brand .side-logo img {
  width: 112px !important;
  height: auto !important;
  max-height: 42px !important;
  object-fit: contain !important;
}

.side-bottom {
  display: grid !important;
  gap: 10px !important;
}

.side-action,
.side-bottom .side-action,
.side-bottom button.side-action,
.side-bottom a.side-action {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(255, 253, 248, .16) !important;
  border-radius: 14px !important;
  color: #fffdf8 !important;
  background: rgba(255, 253, 248, .08) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.side-action svg {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  stroke: currentColor !important;
}

.side-action:hover,
.side-action:focus-visible {
  color: #123728 !important;
  background: #fffdf8 !important;
}

.side-action[disabled],
.side-action.is-disabled,
.side-action[aria-disabled="true"] {
  color: rgba(255, 253, 248, .54) !important;
  background: rgba(255, 253, 248, .045) !important;
  border-color: rgba(255, 253, 248, .1) !important;
  cursor: not-allowed !important;
}

.hero-line {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 14px 18px !important;
}

.hero-line > div:first-child {
  min-width: min(100%, 280px) !important;
  flex: 1 1 360px !important;
}

.hero-line .date-nav,
.hero-line .hero-actions {
  margin-left: auto !important;
  flex: 0 1 auto !important;
}

.date-nav {
  flex-wrap: nowrap !important;
}

.date-nav a,
.date-nav .today,
.nav-arrow {
  border-radius: 16px !important;
  background: rgba(255, 253, 248, .94) !important;
  box-shadow: 0 10px 22px rgba(18, 55, 40, .08) !important;
}

.admin-grid,
.total-cards,
.card-block,
.theme-sync-simple .sync-status,
.theme-pages-card,
.admin-card {
  border-color: rgba(18, 55, 40, .13) !important;
}

.admin-card {
  min-height: 174px !important;
}

.admin-card strong,
.card-block h2,
.hero-line h1 {
  overflow-wrap: anywhere !important;
}

.theme-sync-simple .sync-status,
.theme-pages-card,
.theme-quiet-details,
.sync-stats div {
  border-radius: 20px !important;
}

.fake-order-form {
  display: grid !important;
  gap: 18px !important;
}

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

.form-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
}

.sync-action .btn,
.theme-mini-actions .btn,
.admin-run-card .btn {
  color: #fffdf8 !important;
  background: #123728 !important;
  border-color: #123728 !important;
}

.theme-mini-actions .btn.btn-outline {
  color: #123728 !important;
  background: #fffdf8 !important;
}

@media (max-width: 680px) {
  .hero-line .date-nav,
  .hero-line .hero-actions {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .date-nav {
    justify-content: space-between !important;
  }

  .date-nav .today {
    flex: 1 1 auto !important;
  }

  .form-grid.two {
    grid-template-columns: 1fr !important;
  }
}

/* Final app shell cleanup: icon-only sidebar mark + calmer frames */
.side-brand {
  gap: 12px !important;
  padding-bottom: 14px !important;
  margin-bottom: 14px !important;
}

.side-brand .side-logo {
  display: grid !important;
  place-items: center !important;
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  padding: 8px !important;
  overflow: visible !important;
  background: #fffdf8 !important;
  border: 1px solid rgba(255, 253, 248, .5) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .16) !important;
}

.side-brand .side-logo img {
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  object-position: center !important;
}

.side-brand > div {
  min-width: 0 !important;
}

.side-brand strong {
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 1.05 !important;
  letter-spacing: -.03em !important;
}

.side-brand small {
  margin-top: 3px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.hero-line,
.card-block,
.card,
.panel,
.admin-card,
.table-card,
.form-card,
.summary-card,
.stat-card,
.theme-sync-panel,
.theme-pages-card,
.empty-state {
  border-radius: 14px !important;
  border: 1px solid rgba(18, 55, 40, .14) !important;
  background: rgba(255, 253, 248, .95) !important;
  box-shadow: 0 12px 30px rgba(18, 55, 40, .06) !important;
}

.hero-line {
  min-height: 0 !important;
  padding: 18px 20px !important;
  margin: 14px 0 16px !important;
  align-items: center !important;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(255, 244, 226, .72)) !important;
}

.hero-line .eyebrow {
  margin: 0 0 6px !important;
  line-height: 1.1 !important;
}

.hero-line h1 {
  margin: 0 !important;
  line-height: 1.04 !important;
}

.hero-line p {
  margin: 8px 0 0 !important;
  line-height: 1.35 !important;
}

.card-block {
  padding: 18px !important;
}

.business-card::after,
[class*="business-card"]::after,
.print-a6::after,
[class*="print-a6"]::after,
.recipient-card::after,
[class*="recipient-name"]::after {
  display: none !important;
}

.date-nav {
  align-items: center !important;
  gap: 8px !important;
}

.date-nav a,
.date-nav .today,
.nav-arrow {
  min-width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 18px rgba(18, 55, 40, .07) !important;
}

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overscroll-behavior-x: none !important;
}

body {
  touch-action: pan-y pinch-zoom;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

input,
textarea,
select,
button {
  max-width: 100%;
}

.mobile-menu-toggle,
.page,
.hero-line,
.card-block,
.detail-hero,
.order-card,
.detail-item,
.comms-workspace,
.comms-history-list,
.custom-request-list,
.custom-request-admin-card,
.sms-thread-shell,
.sms-thread-log,
.sms-thread-compose,
.comms-webhooks,
.table-card,
.admin-card,
.panel {
  min-width: 0 !important;
  max-width: 100% !important;
}

.page {
  overflow-x: clip !important;
}

.comms-webhooks code,
.custom-request-message,
.sms-bubble-copy,
.note-line,
.gift-line {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sms-thread-page {
  max-width: 920px !important;
  min-height: calc(100dvh - 40px);
}

.sms-thread-shell {
  display: grid;
  gap: 14px;
}

.sms-thread-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(18, 55, 40, .14);
  border-radius: 18px;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 14px 32px rgba(18, 55, 40, .06);
}

.sms-thread-head h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 54px);
  line-height: .95;
  letter-spacing: -.04em;
}

.sms-thread-log {
  display: grid;
  gap: 10px;
  min-height: min(56dvh, 620px);
  max-height: calc(100dvh - 300px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid rgba(18, 55, 40, .14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 8%, rgba(222, 91, 157, .06), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(255, 244, 226, .72));
}

.sms-thread-empty {
  align-self: center;
  justify-self: center;
  text-align: center;
  color: rgba(18, 55, 40, .7);
}

.sms-bubble {
  display: flex;
}

.sms-bubble.is-staff {
  justify-content: flex-end;
}

.sms-bubble-copy {
  position: relative;
  width: fit-content;
  max-width: min(74%, 560px);
  padding: 12px 14px;
  border: 1px solid rgba(18, 55, 40, .12);
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(18, 55, 40, .06);
}

.sms-bubble-copy.has-reactions {
  margin-bottom: 12px;
}

.sms-bubble-reactions {
  position: absolute;
  bottom: -14px;
  left: 14px;
  display: inline-flex;
  min-width: 30px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px 7px;
  border: 2px solid #fffdf8;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(18, 55, 40, .16);
  color: #153f2c;
  font-size: 16px;
  line-height: 1;
}

.sms-bubble.is-staff .sms-bubble-reactions {
  right: 14px;
  left: auto;
}

.sms-bubble.is-staff .sms-bubble-copy {
  color: #fffdf8;
  border-color: rgba(18, 55, 40, .2);
  background: #153f2c;
}

.sms-bubble-copy p {
  margin: 0;
  line-height: 1.35;
}

.sms-bubble-copy small {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(18, 55, 40, .55);
}

.sms-bubble.is-staff .sms-bubble-copy small {
  color: rgba(255, 253, 248, .72);
}

.sms-bubble-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.sms-bubble-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.sms-media-fallback {
  display: grid;
  min-height: 90px;
  place-items: center;
  border: 1px dashed currentColor;
  border-radius: 14px;
  color: inherit;
  font-weight: 850;
}

.sms-thread-compose {
  position: sticky;
  bottom: max(10px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(18, 55, 40, .14);
  border-radius: 20px;
  background: rgba(255, 253, 248, .98);
  box-shadow: 0 -8px 28px rgba(18, 55, 40, .08);
}

.sms-compose-message {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sms-compose-message textarea {
  min-height: 72px;
  resize: vertical;
}

.sms-compose-file {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 92px;
  padding: 0 12px;
  border: 1px dashed rgba(18, 55, 40, .24);
  border-radius: 16px;
  background: rgba(255, 255, 255, .76);
  cursor: pointer;
}

.sms-compose-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sms-compose-file span {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sms-thread-compose [data-sms-status] {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 720px) {
  .sms-thread-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .sms-thread-log {
    max-height: none;
    min-height: 50dvh;
    padding: 12px;
  }

  .sms-bubble-copy {
    max-width: 88%;
  }

  .sms-thread-compose {
    grid-template-columns: 1fr;
  }
}

/* Category membership writes immediately. Only expose Save order after a real reorder. */
.product-order-form:not(.has-unsaved-order) .product-order-save {
  display: none;
}

.product-order-form.has-unsaved-order .product-order-save {
  display: flex;
}

/* Desktop staff shell scroll guard.
   A few older polish layers turned parts of the app into fixed-height panes.
   Keep the main document as the vertical scroll owner so the mouse wheel always
   works on long order pages; only the left navigation keeps its own inner scroll. */
html,
body {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
}

body.has-sidebar {
  min-height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  touch-action: pan-y pinch-zoom !important;
}

body.has-sidebar .page {
  height: auto !important;
  min-height: calc(100dvh - 24px) !important;
  max-height: none !important;
  overflow-y: visible !important;
  overscroll-behavior-y: auto !important;
}

@media (min-width: 980px) {
  body.has-sidebar {
    overflow-y: auto !important;
  }

  body.has-sidebar .side-nav {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: auto !important;
  }

  body.has-sidebar .side-links {
    overscroll-behavior: auto !important;
  }
}

.df-order-sound-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 260;
  max-width: min(380px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(18, 55, 40, .18);
  border-radius: 10px;
  color: #fffdf8;
  background: #123728;
  box-shadow: 0 18px 42px rgba(18, 55, 40, .24);
  font-weight: 900;
  text-decoration: none;
}

/* Accounting workspace */
body.has-sidebar .accounting-page {
  width: 100%;
  max-width: 1320px !important;
  margin-inline: auto;
  padding: 24px clamp(14px, 2.5vw, 34px) 64px;
}

.accounting-page .accounting-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 136px;
  padding: clamp(20px, 3vw, 34px) !important;
  overflow: hidden;
  border: 1px solid rgba(18, 55, 40, .12) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 93% 8%, rgba(255, 79, 163, .16), transparent 26%),
    radial-gradient(circle at 75% 125%, rgba(255, 214, 90, .25), transparent 32%),
    linear-gradient(135deg, #fffdf8 0%, #fff7ea 58%, #f2f7f0 100%) !important;
  box-shadow: 0 20px 52px rgba(18, 55, 40, .09) !important;
}

.accounting-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.accounting-hero-copy h1 {
  margin: 2px 0 8px !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  line-height: 1 !important;
}

.accounting-hero-copy p:last-child {
  margin: 0;
}

.accounting-hero-icon,
.card-spend-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fffdf8;
  background: var(--df-admin-forest);
  box-shadow: 0 13px 28px rgba(18, 55, 40, .18);
}

.accounting-hero-icon svg,
.card-spend-icon svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accounting-page .accounting-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-items: initial;
}

.accounting-page .accounting-actions .date-nav {
  padding: 5px;
  border: 1px solid rgba(18, 55, 40, .11);
  border-radius: 18px;
  background: rgba(255, 253, 248, .78);
  box-shadow: 0 8px 22px rgba(18, 55, 40, .07);
}

.accounting-page .accounting-actions .date-nav a {
  height: 38px;
  min-width: 38px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.accounting-page .accounting-actions .date-nav .today {
  min-width: 88px;
  color: #fffdf8 !important;
  background: var(--df-admin-forest) !important;
}

.accounting-page .accounting-export {
  height: 48px;
  padding-inline: 18px !important;
  border-color: rgba(18, 55, 40, .2) !important;
  background: rgba(255, 253, 248, .88) !important;
}

.accounting-page .accounting-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px;
  margin: 18px 0;
}

.accounting-page .accounting-stat {
  position: relative;
  min-height: 108px;
  padding: 20px 18px 17px !important;
  overflow: hidden;
  border: 1px solid rgba(18, 55, 40, .11) !important;
  border-radius: 21px !important;
  background: #fffdf8 !important;
  box-shadow: 0 13px 34px rgba(18, 55, 40, .07) !important;
}

.accounting-page .accounting-stat::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: var(--stat-accent, var(--df-admin-forest));
}

.accounting-page .accounting-stat::after {
  position: absolute;
  top: -32px;
  right: -28px;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  content: "";
  background: color-mix(in srgb, var(--stat-accent, var(--df-admin-forest)) 12%, transparent);
}

.accounting-page .accounting-stat span {
  color: var(--df-admin-muted) !important;
  font-size: 11px;
  letter-spacing: .08em !important;
}

.accounting-page .accounting-stat strong {
  position: relative;
  display: block;
  margin: 7px 0 4px;
  color: var(--df-admin-forest);
  font-family: var(--df-font-display) !important;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
}

.accounting-page .accounting-stat small {
  color: var(--df-admin-muted) !important;
  font-size: 11px;
  font-weight: 700;
}

.accounting-page .stat-sales { --stat-accent: #ff4fa3; }
.accounting-page .stat-bouquets { --stat-accent: #7a8f4a; }
.accounting-page .stat-addons { --stat-accent: #b28ae3; }
.accounting-page .stat-fees { --stat-accent: #d0a62f; }
.accounting-page .stat-expenses { --stat-accent: #d16355; }
.accounting-page .stat-profit { --stat-accent: #123728; }

.accounting-page .card-block {
  padding: clamp(18px, 2.4vw, 28px) !important;
  border-radius: 24px !important;
  box-shadow: 0 14px 38px rgba(18, 55, 40, .065) !important;
}

.accounting-page .card-spend-panel {
  border: 1px solid rgba(18, 55, 40, .14) !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, .98), rgba(242, 247, 240, .92)) !important;
}

.accounting-page .card-spend-heading {
  display: flex;
  align-items: center;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(18, 55, 40, .1);
}

.accounting-page .card-spend-title {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.accounting-page .card-spend-icon {
  width: 50px;
  height: 50px;
  color: var(--df-admin-forest);
  background: #ffe5f1;
  box-shadow: none;
}

.accounting-page .card-spend-heading h2 {
  margin: 1px 0 0;
}

.accounting-page .finance-balance-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
}

.accounting-page .finance-balance-heading strong {
  padding: 4px 8px;
  border: 1px solid rgba(196, 62, 128, .16);
  border-radius: 999px;
  color: #8f2d5d;
  background: #ffe5f1;
  font-family: var(--df-admin-font-display);
  font-size: 12px;
  letter-spacing: 0;
  box-shadow: 0 5px 14px rgba(196, 62, 128, .08);
}

.accounting-page .finance-balance-heading strong.is-unavailable {
  border-color: rgba(165, 47, 79, .15);
  color: #8b5966;
  background: #f5eeee;
  box-shadow: none;
}

.accounting-page .finance-count {
  min-width: 26px;
  height: 26px;
  color: #fff;
  background: #c43e80;
  box-shadow: 0 6px 15px rgba(196, 62, 128, .2);
}

.finance-live-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 13px;
  border: 1px solid rgba(79, 113, 75, .2);
  border-radius: 15px;
  background: rgba(232, 241, 229, .82);
}

.finance-live-status > i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #5f914e;
  box-shadow: 0 0 0 5px rgba(95, 145, 78, .13);
}

.finance-live-status > span {
  display: grid;
  gap: 1px;
}

.finance-live-status strong {
  color: #315331;
  font-size: 12px;
}

.finance-live-status small {
  color: #687d65 !important;
  font-size: 10px;
}

.accounting-page .finance-connections {
  margin: 14px 0 4px;
}

.accounting-page .finance-connection {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(18, 55, 40, .1) !important;
  border-left: 1px solid rgba(18, 55, 40, .1) !important;
  border-radius: 17px;
  background: rgba(255, 253, 248, .82);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}

.finance-connection-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #fff;
  background: var(--df-admin-forest);
  font-size: 13px;
  font-weight: 950;
}

.accounting-page .finance-connection > div strong {
  color: var(--df-admin-forest);
  font-size: 14px;
}

.accounting-page .finance-connection > small {
  align-self: center;
  white-space: nowrap;
}

.accounting-page .finance-review-list {
  gap: 9px;
  margin-top: 17px;
}

.accounting-page .finance-review-row {
  grid-template-columns: minmax(210px, .8fr) auto minmax(430px, 1.35fr) auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(18, 55, 40, .1);
  border-radius: 18px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 6px 20px rgba(18, 55, 40, .045);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.accounting-page .finance-review-row:hover {
  z-index: 1;
  border-color: rgba(18, 55, 40, .22);
  box-shadow: 0 12px 30px rgba(18, 55, 40, .08);
  transform: translateY(-1px);
}

.accounting-page .finance-transaction-main {
  position: relative;
  min-height: 44px;
  padding-left: 54px;
  justify-content: center;
}

.accounting-page .finance-transaction-main::before {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--df-admin-forest);
  content: "↗";
  background: #fff0f7;
  font-size: 18px;
  font-weight: 900;
  transform: translateY(-50%);
}

.accounting-page .finance-source {
  color: #466044;
  background: #eaf2e6;
}

.accounting-page .finance-review-row > b {
  color: var(--df-admin-forest);
  font-family: var(--df-font-display) !important;
  font-size: 18px;
}

.accounting-page .finance-review-form select,
.accounting-page .finance-review-form input,
.accounting-page .finance-expense-edit select,
.accounting-page .finance-expense-edit input {
  border-color: rgba(18, 55, 40, .14) !important;
  border-radius: 13px !important;
  background: #fffdf8 !important;
  box-shadow: inset 0 1px 2px rgba(18, 55, 40, .025);
}

.accounting-page .finance-review-form input:focus,
.accounting-page .finance-review-form select:focus {
  border-color: rgba(255, 79, 163, .55) !important;
}

.accounting-page .finance-ignore {
  padding: 8px 5px;
  color: #81716e;
  text-decoration-color: rgba(129, 113, 110, .42);
}

.accounting-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(18, 55, 40, .1);
}

.accounting-section-heading h2,
.accounting-section-heading p {
  margin: 0;
}

.accounting-section-heading > p {
  max-width: 430px;
  color: var(--df-admin-muted);
  font-size: 13px;
  text-align: right;
}

.accounting-page .accounting-manual-entry {
  background: linear-gradient(135deg, #fffdf8, #fff8ec) !important;
}

.accounting-page .expense-form {
  gap: 10px;
}

.accounting-page .expense-form label {
  color: #50675d;
}

.accounting-page .expense-form input,
.accounting-page .expense-form select {
  min-height: 46px;
  border-color: rgba(18, 55, 40, .14) !important;
  border-radius: 14px !important;
  background: rgba(255, 253, 248, .96) !important;
}

.accounting-page .accounting-breakdown-grid {
  gap: 14px;
}

.accounting-page .accounting-breakdown-card {
  min-height: 250px;
}

.accounting-page .expense-row,
.accounting-page .total-row {
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(18, 55, 40, .085);
  border-radius: 15px;
  background: rgba(255, 253, 248, .72);
}

.accounting-page .expense-row:first-of-type,
.accounting-page .total-row:first-of-type {
  border-top: 1px solid rgba(18, 55, 40, .085);
}

.accounting-page .expense-row b,
.accounting-page .total-row b {
  color: var(--df-admin-forest);
}

.accounting-page .order-account-row {
  transition: border-color .16s ease, background .16s ease;
}

.accounting-page .order-account-row:hover {
  border-color: rgba(255, 79, 163, .25);
  background: #fff8fb;
}

@media (min-width: 1180px) {
  .accounting-page .accounting-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1050px) {
  .accounting-page .finance-review-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .accounting-page .finance-review-form,
  .accounting-page .finance-review-row > form:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body.has-sidebar .accounting-page {
    padding: 74px 12px 42px;
  }

  .accounting-page .accounting-hero {
    display: grid;
    gap: 18px;
  }

  .accounting-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .accounting-page .accounting-actions {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .accounting-page .accounting-actions .date-nav {
    width: 100%;
    justify-content: space-between;
  }

  .accounting-page .accounting-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .accounting-page .card-spend-heading,
  .accounting-section-heading {
    display: grid;
    align-items: start;
  }

  .finance-live-status {
    margin-left: 0;
    width: max-content;
  }

  .accounting-section-heading > p {
    text-align: left;
  }

  .accounting-page .finance-connection {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .accounting-page .finance-connection > small,
  .accounting-page .finance-connection > em {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .accounting-hero-copy {
    align-items: flex-start;
  }

  .accounting-page .accounting-actions {
    grid-template-columns: 1fr;
  }

  .accounting-page .accounting-export {
    width: 100%;
  }

.accounting-page .accounting-stat {
    min-height: 112px;
    padding: 17px 14px 14px !important;
  }

  .accounting-page .accounting-stat strong {
    font-size: 22px;
  }

  .accounting-page .card-spend-title {
    align-items: flex-start;
  }

  .accounting-page .finance-review-row {
    padding: 13px;
  }
}

/* Shared staff workspace language: the accounting page is now the visual baseline. */
body.has-sidebar main.page:not(.narrow):not(.accounting-page):not(.calendar-page) {
  width: 100%;
  max-width: 1240px !important;
  margin-inline: auto;
  padding: 22px clamp(14px, 2.4vw, 30px) 60px;
}

body.has-sidebar main.page:not(.accounting-page):not(.calendar-page) > .hero-line {
  position: relative;
  min-height: 118px !important;
  padding: clamp(20px, 2.8vw, 28px) !important;
  overflow: hidden;
  border: 1px solid rgba(18, 55, 40, .12) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 94% 4%, rgba(255, 79, 163, .13), transparent 28%),
    radial-gradient(circle at 78% 125%, rgba(255, 214, 90, .2), transparent 34%),
    linear-gradient(135deg, #fffdf8 0%, #fff7ea 62%, #f3f7f1 100%) !important;
  box-shadow: 0 18px 46px rgba(18, 55, 40, .075) !important;
}

body.has-sidebar main.page:not(.accounting-page):not(.calendar-page) > .hero-line::after {
  position: absolute;
  top: -46px;
  right: 16%;
  width: 118px;
  height: 118px;
  border: 22px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

body.has-sidebar main.page:not(.accounting-page):not(.calendar-page) > .hero-line > * {
  position: relative;
  z-index: 1;
}

body.has-sidebar main.page:not(.accounting-page):not(.calendar-page) > .hero-line h1 {
  margin: 2px 0 7px !important;
  font-size: clamp(28px, 3.7vw, 42px) !important;
  line-height: 1 !important;
}

body.has-sidebar main.page:not(.accounting-page) .card-block,
body.has-sidebar main.page:not(.accounting-page) .admin-card,
body.has-sidebar main.page:not(.accounting-page) .table-card,
body.has-sidebar main.page:not(.accounting-page) .form-card,
body.has-sidebar main.page:not(.accounting-page) .panel {
  border: 1px solid rgba(18, 55, 40, .115) !important;
  border-radius: 21px !important;
  background: rgba(255, 253, 248, .965) !important;
  box-shadow: 0 13px 34px rgba(18, 55, 40, .06) !important;
}

body.has-sidebar main.page:not(.accounting-page) .card-block {
  padding: clamp(17px, 2.1vw, 24px) !important;
}

body.has-sidebar main.page:not(.accounting-page) .card-block h2,
body.has-sidebar main.page:not(.accounting-page) .admin-card strong {
  line-height: 1.12;
}

body.has-sidebar input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body.has-sidebar select,
body.has-sidebar textarea {
  min-height: 44px;
  border-color: rgba(18, 55, 40, .15) !important;
  border-radius: 13px !important;
  background: rgba(255, 253, 248, .98) !important;
}

body.has-sidebar textarea {
  min-height: 96px;
}

body.has-sidebar button,
body.has-sidebar .btn,
body.has-sidebar .button,
body.has-sidebar input[type="submit"],
body.has-sidebar input[type="button"] {
  border-radius: 12px !important;
}

body.has-sidebar .btn-primary,
body.has-sidebar .btn-green,
body.has-sidebar .button-primary {
  box-shadow: 0 9px 22px rgba(18, 55, 40, .15) !important;
}

body.has-sidebar .notice {
  position: relative;
  min-height: 50px;
  margin: 12px 0 16px;
  padding: 14px 16px 14px 48px !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(18, 55, 40, .045) !important;
  font-size: 14px;
  font-weight: 800;
}

body.has-sidebar .notice::before {
  position: absolute;
  top: 50%;
  left: 15px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #fff;
  content: "i";
  background: var(--df-admin-forest);
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 900;
  transform: translateY(-50%);
}

body.has-sidebar .notice.good::before {
  content: "\2713";
  background: #4f714b;
  font-family: inherit;
}

body.has-sidebar .notice.bad::before {
  content: "!";
  background: #a33128;
  font-family: inherit;
}

body.has-sidebar .empty-state {
  position: relative;
  padding: clamp(30px, 6vw, 54px) 24px !important;
  border-style: dashed !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, rgba(255, 253, 248, .96), rgba(242, 247, 240, .9)) !important;
  box-shadow: none !important;
}

body.has-sidebar .empty-state h2 {
  margin-top: 0;
}

/* Orders: clearer grouping and more tactile cards without adding visual noise. */
body.has-sidebar .pills {
  gap: 9px;
  padding: 2px 1px 13px;
}

body.has-sidebar .pill {
  min-height: 39px;
  padding: 9px 13px;
  border-color: rgba(18, 55, 40, .11) !important;
  background: rgba(255, 253, 248, .92) !important;
  box-shadow: 0 6px 18px rgba(18, 55, 40, .045);
}

body.has-sidebar .pill b {
  color: var(--df-admin-forest);
  background: #f0ece5;
}

body.has-sidebar .pill.green {
  color: #315331 !important;
  background: #eaf2e6 !important;
}

body.has-sidebar .pill.danger {
  color: #97372e !important;
  background: #fff0ed !important;
}

body.has-sidebar .order-group {
  margin: 19px 0 24px;
}

body.has-sidebar .order-group .group-title {
  padding: 11px 14px;
  border: 1px solid rgba(18, 55, 40, .095);
  border-radius: 15px;
  background: rgba(242, 247, 240, .8);
  box-shadow: inset 0 1px rgba(255, 255, 255, .7);
}

body.has-sidebar .order-group .group-title span {
  color: var(--df-admin-pink);
}

body.has-sidebar .order-group .group-title em {
  color: var(--df-admin-forest);
  background: rgba(255, 253, 248, .92);
}

body.has-sidebar .order-card {
  border: 1px solid rgba(18, 55, 40, .11) !important;
  border-radius: 19px !important;
  background: rgba(255, 253, 248, .98) !important;
  box-shadow: 0 9px 26px rgba(18, 55, 40, .055) !important;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.has-sidebar .order-card:hover {
  border-color: rgba(255, 79, 163, .25) !important;
  box-shadow: 0 15px 36px rgba(18, 55, 40, .09) !important;
  transform: translateY(-1px);
}

body.has-sidebar .order-card.status-arranging {
  border-color: rgba(208, 166, 47, .45) !important;
}

body.has-sidebar .order-card.status-manager_notified,
body.has-sidebar .order-card.status-ready {
  border-color: rgba(79, 113, 75, .28) !important;
  background: linear-gradient(135deg, #fffdf8, #f2f7f0) !important;
}

body.has-sidebar .order-card.status-issue {
  border-color: rgba(163, 49, 40, .3) !important;
  background: linear-gradient(135deg, #fffdf8, #fff2ef) !important;
}

body.has-sidebar .quick-col {
  border-color: rgba(18, 55, 40, .09);
  background: linear-gradient(180deg, #f6f8f3, #fffdf8);
}

body.has-sidebar .detail-hero {
  padding: clamp(20px, 2.8vw, 28px) !important;
  border: 1px solid rgba(18, 55, 40, .12) !important;
  border-radius: 23px !important;
  background:
    radial-gradient(circle at 95% 0%, rgba(178, 138, 227, .13), transparent 30%),
    linear-gradient(135deg, #fffdf8, #fff8eb) !important;
  box-shadow: 0 16px 42px rgba(18, 55, 40, .07) !important;
}

body.has-sidebar .back-chip {
  border-color: rgba(18, 55, 40, .11);
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 7px 18px rgba(18, 55, 40, .045);
}

body.has-sidebar .gallery-card,
body.has-sidebar .product-admin-card,
body.has-sidebar .reminder-admin-row,
body.has-sidebar .custom-request-admin-card {
  border: 1px solid rgba(18, 55, 40, .11) !important;
  border-radius: 20px !important;
  background: rgba(255, 253, 248, .97) !important;
  box-shadow: 0 12px 31px rgba(18, 55, 40, .06) !important;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

body.has-sidebar .gallery-card:hover,
body.has-sidebar .product-admin-card:hover,
body.has-sidebar .custom-request-admin-card:hover {
  border-color: rgba(255, 79, 163, .24) !important;
  box-shadow: 0 17px 38px rgba(18, 55, 40, .085) !important;
  transform: translateY(-1px);
}

body.has-sidebar .total-cards > div:not(.accounting-stat) {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 55, 40, .1) !important;
  border-radius: 18px !important;
  background: rgba(255, 253, 248, .96) !important;
  box-shadow: 0 10px 28px rgba(18, 55, 40, .055) !important;
}

body.has-sidebar .admin-grid {
  gap: 14px;
}

body.has-sidebar .admin-card {
  padding: 21px !important;
}

/* Calendar workspace */
body.has-sidebar .calendar-page {
  width: 100%;
  max-width: 1320px !important;
  margin-inline: auto;
  padding: 24px clamp(14px, 2.5vw, 34px) 64px;
  overflow-x: visible !important;
}

.calendar-page .calendar-hero {
  position: relative;
  display: flex;
  min-height: 136px !important;
  padding: clamp(20px, 3vw, 34px) !important;
  overflow: hidden;
  border: 1px solid rgba(18, 55, 40, .12) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 93% 8%, rgba(178, 138, 227, .17), transparent 26%),
    radial-gradient(circle at 76% 125%, rgba(255, 214, 90, .23), transparent 33%),
    linear-gradient(135deg, #fffdf8 0%, #fff7ea 58%, #f2f7f0 100%) !important;
  box-shadow: 0 20px 52px rgba(18, 55, 40, .085) !important;
}

.calendar-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.calendar-hero-copy h1 {
  margin: 2px 0 8px !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  line-height: 1 !important;
}

.calendar-hero-copy p:last-child {
  margin: 0;
}

.calendar-hero-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fffdf8;
  background: var(--df-admin-forest);
  box-shadow: 0 13px 28px rgba(18, 55, 40, .18);
}

.calendar-hero-icon svg {
  width: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calendar-page .calendar-month-nav {
  position: relative;
  z-index: 1;
  margin-left: auto;
  padding: 5px;
  border: 1px solid rgba(18, 55, 40, .11);
  border-radius: 18px;
  background: rgba(255, 253, 248, .8);
  box-shadow: 0 8px 22px rgba(18, 55, 40, .07);
}

.calendar-page .calendar-month-nav a {
  height: 38px !important;
  min-width: 38px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.calendar-page .calendar-month-nav .today {
  min-width: 88px !important;
  color: #fffdf8 !important;
  background: var(--df-admin-forest) !important;
}

.calendar-page .calendar-month-nav .today.is-current::after {
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-radius: 999px;
  content: "";
  background: var(--df-admin-pink);
  box-shadow: 0 0 0 3px rgba(255, 79, 163, .2);
}

.calendar-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin: 18px 0 14px;
}

.calendar-summary {
  display: grid;
  grid-template-columns: 140px 140px minmax(220px, 1fr);
  gap: 10px;
}

.calendar-stat {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 84px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(18, 55, 40, .1);
  border-radius: 18px;
  background: rgba(255, 253, 248, .95);
  box-shadow: 0 9px 26px rgba(18, 55, 40, .05);
}

.calendar-stat::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  content: "";
  background: var(--calendar-stat-accent, var(--df-admin-forest));
}

.calendar-stat-orders { --calendar-stat-accent: var(--df-admin-pink); }
.calendar-stat-days { --calendar-stat-accent: var(--df-admin-palm); }
.calendar-stat-busy { --calendar-stat-accent: var(--df-admin-lavender); }

.calendar-stat span {
  color: var(--df-admin-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calendar-stat strong {
  margin-top: 3px;
  color: var(--df-admin-forest);
  font-family: var(--df-admin-font-display);
  font-size: 24px;
  line-height: 1.08;
}

.calendar-stat-busy strong {
  font-size: 17px;
}

.calendar-stat small {
  margin-top: 3px;
  color: var(--df-admin-muted) !important;
  font-size: 11px;
  font-weight: 700;
}

.calendar-legend {
  display: flex;
  align-content: center;
  align-items: center;
  align-self: stretch;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  max-width: 370px;
  padding: 13px 16px;
  border: 1px solid rgba(18, 55, 40, .1);
  border-radius: 18px;
  background: rgba(255, 253, 248, .82);
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #51645a;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.calendar-legend span::before,
.cal-chip::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  content: "";
  background: var(--calendar-chip-color, var(--df-admin-forest));
}

.calendar-key-orders,
.cal-orders { --calendar-chip-color: var(--df-admin-pink); }
.calendar-key-exact,
.cal-exact { --calendar-chip-color: #8b61bd; }
.calendar-key-pickup,
.cal-pickup { --calendar-chip-color: #c18a13; }
.calendar-key-ready,
.cal-ready { --calendar-chip-color: #5f914e; }
.calendar-key-issue,
.cal-issue { --calendar-chip-color: #bd4f43; }

.calendar-shell {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(18, 55, 40, .13);
  border-radius: 24px;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 16px 42px rgba(18, 55, 40, .07);
  scrollbar-color: rgba(18, 55, 40, .25) transparent;
  scrollbar-width: thin;
}

.calendar-shell::-webkit-scrollbar {
  height: 8px;
}

.calendar-shell::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(18, 55, 40, .24);
  background-clip: padding-box;
}

.calendar-page .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(108px, 1fr));
  min-width: 756px;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.calendar-page .cal-head,
.calendar-page .cal-day {
  border-right: 1px solid rgba(18, 55, 40, .085);
  border-bottom: 1px solid rgba(18, 55, 40, .085);
}

.calendar-page .cal-head:nth-child(7n),
.calendar-page .cal-day:nth-child(7n) {
  border-right: 0;
}

.calendar-page .cal-head {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px;
  color: #607168;
  background: linear-gradient(180deg, #f3f7f1, #edf3ed);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.calendar-page .cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 136px;
  padding: 11px;
  color: var(--df-admin-forest);
  background: rgba(255, 253, 248, .98);
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.calendar-page a.cal-day:hover {
  z-index: 2;
  color: var(--df-admin-forest);
  background: #fff8ee;
  box-shadow: inset 0 0 0 2px rgba(255, 79, 163, .16), 0 10px 24px rgba(18, 55, 40, .08);
  transform: translateY(-1px);
}

.calendar-page .cal-weekend {
  background: rgba(255, 249, 239, .78);
}

.calendar-page .cal-muted {
  min-height: 136px;
  opacity: 1;
  background:
    linear-gradient(135deg, rgba(18, 55, 40, .018) 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(315deg, rgba(18, 55, 40, .018) 25%, transparent 25%) 0 0 / 14px 14px,
    #f5f4ef;
}

.calendar-page .cal-date-row {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 5px;
}

.calendar-page .cal-date {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 10px;
  color: var(--df-admin-forest);
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.calendar-page .cal-today {
  z-index: 3;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 79, 163, .15), transparent 44%),
    linear-gradient(145deg, #fffdf8, #f0f7ef) !important;
  box-shadow:
    inset 0 0 0 2px var(--df-admin-forest),
    inset 0 0 0 5px rgba(255, 253, 248, .9),
    0 10px 28px rgba(18, 55, 40, .14);
}

.calendar-page .cal-today .cal-date {
  color: #fffdf8;
  background: var(--df-admin-forest);
  box-shadow: 0 6px 14px rgba(18, 55, 40, .18);
}

.calendar-page .cal-today-label {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: #9e2c64;
  background: #ffe5f1;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calendar-page .cal-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  margin-top: 4px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #40554a;
  background: #f3f1ec;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-page .cal-orders {
  border-color: rgba(255, 79, 163, .12);
  background: #fff0f7;
}

.calendar-page .cal-exact {
  border-color: rgba(139, 97, 189, .13);
  background: #f2ebfa;
}

.calendar-page .cal-pickup {
  border-color: rgba(193, 138, 19, .14);
  background: #fff5d9;
}

.calendar-page .cal-ready {
  border-color: rgba(95, 145, 78, .14);
  background: #eaf3e7;
}

.calendar-page .cal-issue {
  border-color: rgba(189, 79, 67, .15);
  color: #96372e;
  background: #fff0ed;
}

.calendar-page .cal-no-orders {
  margin: auto 0 2px;
  color: #9aa49f;
  font-size: 9px;
  font-weight: 750;
}

@media (max-width: 980px) {
  .calendar-overview {
    grid-template-columns: 1fr;
  }

  .calendar-legend {
    max-width: none;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body.has-sidebar main.page:not(.narrow):not(.accounting-page):not(.calendar-page) {
    padding: 72px 12px 42px;
  }

  body.has-sidebar main.page:not(.accounting-page):not(.calendar-page) > .hero-line {
    min-height: 0 !important;
    border-radius: 21px !important;
  }

  body.has-sidebar .calendar-page {
    padding: 74px 12px 44px;
  }

  .calendar-page .calendar-hero {
    display: grid !important;
    gap: 18px !important;
    border-radius: 22px !important;
  }

  .calendar-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .calendar-page .calendar-month-nav {
    width: 100%;
    margin-left: 0 !important;
    justify-content: space-between;
  }

  .calendar-page .calendar-month-nav .today {
    flex: 1 1 auto;
  }

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

  .calendar-stat-busy {
    grid-column: 1 / -1;
  }

  .calendar-overview {
    margin-top: 14px;
  }

  .calendar-legend {
    padding: 11px 13px;
  }

  .calendar-shell::after {
    position: sticky;
    right: 8px;
    bottom: 8px;
    float: right;
    margin: -30px 8px 8px 0;
    padding: 5px 8px;
    border-radius: 999px;
    color: #607168;
    content: "Swipe to see the week \2192";
    background: rgba(255, 253, 248, .9);
    box-shadow: 0 5px 14px rgba(18, 55, 40, .08);
    font-size: 9px;
    font-weight: 800;
    pointer-events: none;
  }

  .calendar-page .calendar-grid {
    min-width: 770px;
    grid-template-columns: repeat(7, 110px);
  }

  .calendar-page .cal-head {
    min-height: 38px;
  }

  .calendar-page .cal-day,
  .calendar-page .cal-muted {
    min-height: 132px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .calendar-hero-copy {
    align-items: flex-start;
  }

  .calendar-hero-copy h1 {
    font-size: 29px !important;
  }

  .calendar-stat {
    min-height: 76px;
    padding: 12px 13px;
  }

  .calendar-stat strong {
    font-size: 21px;
  }

  .calendar-stat-busy strong {
    font-size: 16px;
  }
}

/* Softer actions: primary no longer means a wall of dark green. */
body.has-sidebar .btn.btn-primary,
body.has-sidebar a.btn.btn-primary,
body.has-sidebar button.btn.btn-primary,
body.has-sidebar .btn.btn-green,
body.has-sidebar a.btn.btn-green,
body.has-sidebar button.btn.btn-green,
body.has-sidebar .button-primary,
body.has-sidebar input[type="submit"] {
  color: #74294f !important;
  border: 1px solid rgba(196, 62, 128, .23) !important;
  background: linear-gradient(135deg, #ffe4f0 0%, #fff0df 100%) !important;
  box-shadow: 0 9px 22px rgba(196, 62, 128, .11) !important;
}

body.has-sidebar .btn.btn-primary:hover,
body.has-sidebar .btn.btn-green:hover,
body.has-sidebar .button-primary:hover,
body.has-sidebar input[type="submit"]:hover {
  border-color: rgba(196, 62, 128, .38) !important;
  background: linear-gradient(135deg, #ffd9e9 0%, #ffe9d2 100%) !important;
  box-shadow: 0 12px 27px rgba(196, 62, 128, .16) !important;
}

body.has-sidebar button[type="submit"].btn:not(.btn-primary):not(.btn-green):not(.btn-danger):not(.btn-uber):not(.btn-bestseller),
body.has-sidebar .btn.btn-outline,
body.has-sidebar a.btn.btn-outline {
  color: var(--df-admin-forest) !important;
  border: 1px solid rgba(18, 55, 40, .17) !important;
  background: rgba(255, 253, 248, .96) !important;
  box-shadow: 0 7px 18px rgba(18, 55, 40, .055) !important;
}

body.has-sidebar button[type="submit"].btn:not(.btn-primary):not(.btn-green):not(.btn-danger):not(.btn-uber):not(.btn-bestseller):hover,
body.has-sidebar .btn.btn-outline:hover {
  border-color: rgba(255, 79, 163, .3) !important;
  background: #fff8fb !important;
}

body.has-sidebar .btn.btn-uber {
  color: #56356e !important;
  border-color: rgba(139, 97, 189, .24) !important;
  background: linear-gradient(135deg, #eee4fa, #fff0f7) !important;
  box-shadow: 0 9px 22px rgba(139, 97, 189, .11) !important;
}

body.has-sidebar button.mini-danger,
body.has-sidebar button.icon-danger,
body.has-sidebar button.mini-icon-danger,
body.has-sidebar button.btn-danger,
body.has-sidebar .btn.btn-danger {
  color: #9b352d !important;
  border-color: rgba(163, 49, 40, .2) !important;
  background: #fff0ed !important;
  box-shadow: none !important;
}

body.has-sidebar button.mini-danger[type="submit"],
body.has-sidebar button.icon-danger[type="submit"],
body.has-sidebar button.mini-icon-danger[type="submit"],
body.has-sidebar button.btn-danger[type="submit"] {
  color: #9b352d !important;
  border-color: rgba(163, 49, 40, .2) !important;
  background: #fff0ed !important;
  box-shadow: none !important;
}

body.has-sidebar button[type="submit"]:not([class]) {
  color: #8e3b35 !important;
  border-color: rgba(163, 49, 40, .16) !important;
  background: #fff5f2 !important;
  box-shadow: none !important;
}

/* Sidebar: grouped navigation with one tucked-away utility drawer. */
.side-nav {
  background:
    radial-gradient(circle at 18% -2%, rgba(255, 79, 163, .17), transparent 27%),
    radial-gradient(circle at 110% 36%, rgba(178, 138, 227, .13), transparent 30%),
    linear-gradient(180deg, #173f30 0%, #123728 62%, #102f23 100%) !important;
  box-shadow: 14px 0 42px rgba(18, 55, 40, .2) !important;
}

.side-brand {
  padding: 0 2px 16px !important;
  border-bottom: 1px solid rgba(255, 253, 248, .1);
}

.side-brand .side-logo {
  border-radius: 15px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .14) !important;
}

.side-brand strong {
  font-size: 19px !important;
}

.side-links {
  gap: 4px !important;
  padding: 4px 3px 16px 0 !important;
  scrollbar-width: none !important;
}

.side-links::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.side-section-label {
  display: block;
  margin: 12px 10px 5px;
  color: rgba(255, 253, 248, .48);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
  line-height: 1;
  text-transform: uppercase;
}

.side-section-label:first-child {
  margin-top: 5px;
}

.side-links a {
  position: relative;
  min-height: 44px !important;
  padding: 7px 9px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  color: rgba(255, 253, 248, .78) !important;
  font-size: 14px;
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease !important;
}

.side-links a svg {
  width: 31px !important;
  height: 31px !important;
  flex: 0 0 31px !important;
  padding: 7px;
  border-radius: 10px;
  color: rgba(255, 253, 248, .72) !important;
  background: rgba(255, 253, 248, .07);
}

.side-links a:hover {
  color: #fffdf8 !important;
  border-color: rgba(255, 253, 248, .1) !important;
  background: rgba(255, 253, 248, .07) !important;
  transform: translateX(2px);
}

.side-links a.active {
  color: var(--df-admin-forest) !important;
  border-color: rgba(255, 253, 248, .6) !important;
  background: linear-gradient(135deg, #fffdf8, #fff0df) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .13) !important;
}

.side-links a.active::after {
  position: absolute;
  top: 10px;
  right: 8px;
  width: 5px;
  height: 24px;
  border-radius: 999px;
  content: "";
  background: var(--df-admin-pink);
}

.side-links a.active svg {
  color: #9d2e64 !important;
  background: #ffe3ef;
}

.side-user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  margin: 8px 0 !important;
  padding: 11px 13px !important;
  border: 1px solid rgba(255, 253, 248, .12) !important;
  border-radius: 16px !important;
  background: rgba(255, 253, 248, .065) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

.side-user strong {
  grid-column: 1;
  font-size: 14px;
}

.side-user span {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  padding: 3px 7px;
  border-radius: 999px;
  color: #ffd9e9 !important;
  background: rgba(255, 79, 163, .12);
  font-size: 9px !important;
  font-weight: 850;
  text-transform: uppercase;
}

.side-user small {
  grid-column: 1 / -1;
  margin-top: 1px !important;
  color: rgba(255, 253, 248, .56) !important;
  font-size: 10px !important;
}

.side-bottom {
  margin-top: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.side-tools {
  position: relative;
  margin: 0;
}

.side-tools > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 253, 248, .13);
  border-radius: 14px;
  color: rgba(255, 253, 248, .78);
  background: rgba(255, 253, 248, .055);
  font-size: 13px;
  font-weight: 850;
  list-style: none;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}

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

.side-tools > summary:hover {
  color: #fffdf8;
  border-color: rgba(255, 253, 248, .22);
  background: rgba(255, 253, 248, .09);
}

.side-tools > summary svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
}

.side-tools > summary span {
  flex: 1;
}

.side-tools > summary i {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .15s ease;
}

.side-tools[open] > summary i {
  transform: rotate(225deg) translate(-1px, -1px);
}

.side-tools-menu {
  display: grid;
  gap: 5px;
  margin-top: 6px;
  padding: 7px;
  border: 1px solid rgba(255, 253, 248, .12);
  border-radius: 15px;
  background: rgba(9, 31, 22, .5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}

.side-tools-menu form {
  margin: 0;
}

.side-tools-menu .side-action,
.side-tools-menu button.side-action,
.side-tools-menu a.side-action {
  min-height: 40px !important;
  padding: 8px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  color: rgba(255, 253, 248, .76) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px;
}

.side-tools-menu .side-action:hover {
  color: #fffdf8 !important;
  border-color: rgba(255, 253, 248, .1) !important;
  background: rgba(255, 253, 248, .07) !important;
}

.side-tools-menu .side-action.logout {
  color: #ffc9c1 !important;
}

body.has-sidebar .side-tools-menu button.side-action[type="submit"] {
  color: #ffc9c1 !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.has-sidebar .side-tools-menu button.side-action[type="submit"]:hover {
  border-color: rgba(255, 201, 193, .12) !important;
  background: rgba(255, 201, 193, .07) !important;
}

.mobile-menu-toggle {
  min-height: calc(58px + env(safe-area-inset-top)) !important;
  height: calc(58px + env(safe-area-inset-top)) !important;
  padding: env(safe-area-inset-top) 16px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(18, 55, 40, .1) !important;
  border-radius: 0 0 18px 18px !important;
  background: rgba(255, 253, 248, .94) !important;
  box-shadow: 0 8px 26px rgba(18, 55, 40, .09) !important;
}

.mobile-menu-toggle svg {
  width: 36px !important;
  height: 36px !important;
  padding: 8px;
  border-radius: 12px;
  color: #9d2e64;
  background: #ffe6f1;
}

.mobile-menu-toggle strong {
  color: var(--df-admin-forest);
  font-family: var(--df-admin-font-display) !important;
  font-size: 19px !important;
}

.mobile-menu-toggle em,
.mobile-menu-toggle em.sync-dot,
.mobile-menu-toggle em.ok {
  width: 8px;
  height: 8px;
  background: #69945d !important;
  box-shadow: 0 0 0 5px rgba(105, 148, 93, .13) !important;
}

.accounting-page .accounting-actions .date-nav .today,
.calendar-page .calendar-month-nav .today {
  color: #74294f !important;
  border: 1px solid rgba(196, 62, 128, .18) !important;
  background: linear-gradient(135deg, #ffe4f0, #fff0df) !important;
  box-shadow: 0 7px 17px rgba(196, 62, 128, .1) !important;
}

/* Compact phone calendar: the whole month stays on screen, details stay one tap away. */
.cal-mobile-signals {
  display: none;
}

.calendar-page .cal-no-orders {
  display: none;
}

@media (max-width: 760px) {
  body.has-sidebar .calendar-page {
    overflow-x: clip !important;
  }

  .calendar-overview {
    gap: 10px;
  }

  .calendar-legend {
    gap: 7px 10px;
    padding: 10px 12px;
    overflow: hidden;
  }

  .calendar-legend span {
    gap: 5px;
    font-size: 9px;
  }

  .calendar-legend span::before {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
  }

  .calendar-shell {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
  }

  .calendar-shell::after {
    display: none !important;
  }

  .calendar-page .calendar-grid {
    width: 100%;
    min-width: 0 !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }

  .calendar-page .cal-head {
    min-width: 0;
    min-height: 30px;
    padding: 5px 1px;
    font-size: 8px;
    letter-spacing: .06em;
  }

  .calendar-page .cal-day,
  .calendar-page .cal-muted {
    min-width: 0;
    min-height: 74px;
    padding: 5px;
  }

  .calendar-page .cal-date-row {
    min-height: 25px;
    margin: 0;
  }

  .calendar-page .cal-date {
    width: 25px;
    height: 25px;
    border-radius: 9px;
    font-size: 13px;
  }

  .calendar-page .cal-today-label,
  .calendar-page .cal-no-orders,
  .calendar-page .cal-chip {
    display: none;
  }

  .calendar-page .cal-has-orders {
    background: linear-gradient(145deg, #fffdf8, #fff7fa);
  }

  .calendar-page .cal-orders {
    position: absolute;
    right: 5px;
    bottom: 6px;
    display: grid;
    place-items: center;
    width: 21px;
    min-height: 19px;
    height: 19px;
    margin: 0;
    padding: 0;
    border-color: rgba(255, 79, 163, .16);
    border-radius: 7px;
    color: #8f2d5d;
    background: #ffe4f0;
    font-size: 0;
  }

  .calendar-page .cal-orders::before {
    display: none;
  }

  .calendar-page .cal-orders::after {
    color: #8f2d5d;
    content: attr(data-count);
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
  }

  .cal-mobile-signals {
    position: absolute;
    bottom: 9px;
    left: 6px;
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: 7px;
  }

  .cal-mobile-signals i {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--signal-color, transparent);
  }

  .cal-mobile-signals .signal-exact { --signal-color: #8b61bd; }
  .cal-mobile-signals .signal-pickup { --signal-color: #c18a13; }
  .cal-mobile-signals .signal-ready { --signal-color: #5f914e; }
  .cal-mobile-signals .signal-issue { --signal-color: #bd4f43; }

  .calendar-page .cal-today {
    box-shadow:
      inset 0 0 0 2px var(--df-admin-forest),
      inset 0 0 0 4px rgba(255, 253, 248, .9),
      0 5px 15px rgba(18, 55, 40, .12);
  }

  .calendar-page a.cal-day:hover {
    transform: none;
  }
}

@media (max-width: 390px) {
  .calendar-page .cal-day,
  .calendar-page .cal-muted {
    min-height: 67px;
    padding: 4px;
  }

  .calendar-page .cal-date {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }

  .calendar-page .cal-orders {
    right: 4px;
    bottom: 5px;
    width: 19px;
    height: 18px;
  }

  .cal-mobile-signals {
    bottom: 8px;
    left: 5px;
  }

  .calendar-legend {
    gap: 6px 8px;
  }
}

@media (max-width: 720px) {
  body.has-sidebar main.page.messenger-thread-page {
    height: calc(100dvh - 70px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.has-sidebar main.page.messenger-thread-page .messenger-thread-shell {
    height: calc(100dvh - 84px) !important;
  }
}

/* Telegram-style shared customer inbox */
.side-link-label{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-nav-badge{display:inline-grid;min-width:24px;height:24px;flex:0 0 auto;place-items:center;margin-left:auto;padding:0 7px;border-radius:999px;background:#e25b9b;color:#fff;font-size:11px;font-weight:950;line-height:1;box-shadow:0 6px 14px rgba(226,91,155,.28)}
.side-nav-badge[hidden]{display:none!important}
.side-links a.active .side-nav-badge{background:#153f2c;color:#fff}
.messenger-page,.messenger-thread-page{max-width:980px!important}
.messenger-list-shell,.messenger-thread-shell{overflow:hidden;border:1px solid rgba(18,55,40,.13);border-radius:28px;background:rgba(255,253,248,.96);box-shadow:0 20px 54px rgba(18,55,40,.08)}
.messenger-list-head,.messenger-thread-head{display:flex;align-items:center;gap:12px;min-height:76px;padding:14px 18px;border-bottom:1px solid rgba(18,55,40,.1);background:linear-gradient(135deg,rgba(255,253,248,.98),rgba(255,235,244,.76))}
.messenger-list-head>div:first-child{flex:1}.messenger-list-head h1{margin:0;font-size:clamp(34px,5vw,52px);line-height:.95}.messenger-list-head .eyebrow{margin-bottom:5px}
.messenger-head-action,.messenger-icon-button{display:inline-grid;width:44px;height:44px;flex:0 0 44px;place-items:center;padding:0;border:1px solid rgba(18,55,40,.14);border-radius:50%;background:#fffdf8;color:#153f2c;cursor:pointer}
.messenger-head-action svg,.messenger-icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.messenger-icon-button.is-working{opacity:.55}.messenger-icon-button.is-success{color:#fff;background:#4f8b59}
.messenger-chat-list{display:grid}.messenger-chat-row{display:flex;min-width:0;align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid rgba(18,55,40,.08);color:#153f2c;text-decoration:none;transition:background .15s ease}.messenger-chat-row:last-child{border-bottom:0}.messenger-chat-row:hover{background:rgba(255,232,242,.46)}.messenger-chat-row.has-unread{background:linear-gradient(90deg,rgba(255,226,239,.52),transparent 55%)}
.messenger-avatar{display:inline-grid;width:52px;height:52px;flex:0 0 52px;place-items:center;border-radius:50%;background:linear-gradient(145deg,#ffe3ef,#fff0d7);color:#9d2e64;font-size:20px;font-weight:950}.messenger-chat-copy{display:grid;min-width:0;flex:1;gap:3px}.messenger-chat-title,.messenger-chat-preview{display:flex;min-width:0;align-items:center;gap:10px}.messenger-chat-title strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}.messenger-chat-title time{flex:0 0 auto;color:rgba(18,55,40,.52);font-size:12px}.messenger-chat-preview>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(18,55,40,.65)}.messenger-chat-preview b{display:grid;min-width:24px;height:24px;place-items:center;padding:0 6px;border-radius:999px;background:#e25b9b;color:#fff;font-size:11px}.messenger-chat-copy small{color:rgba(18,55,40,.46);font-size:11px}.messenger-empty{display:grid;min-height:360px;place-items:center;align-content:center;padding:30px;text-align:center}.messenger-empty span{color:#df5b9b;font-size:38px}.messenger-empty h2{margin:8px 0 0}.messenger-empty p{margin:4px 0 0;color:var(--muted)}
.messenger-thread-shell{display:grid;gap:0}.messenger-thread-head{position:relative;z-index:4}.messenger-thread-person{display:flex;min-width:0;flex:1;align-items:center;gap:11px}.messenger-thread-person .messenger-avatar{width:44px;height:44px;flex-basis:44px;font-size:17px}.messenger-thread-person h1{max-width:100%;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px;line-height:1.1;letter-spacing:0}.messenger-thread-person p{margin:3px 0 0;color:rgba(18,55,40,.58);font-size:12px}
.calls-page .comms-workspace{grid-template-columns:minmax(0,1fr)}
.messenger-more{position:relative}.messenger-more summary{list-style:none}.messenger-more summary::-webkit-details-marker{display:none}.messenger-more-menu{position:absolute;top:calc(100% + 8px);right:0;display:grid;width:190px;padding:7px;border:1px solid rgba(18,55,40,.13);border-radius:16px;background:#fffdf8;box-shadow:0 18px 46px rgba(18,55,40,.16)}.messenger-more-menu button{display:flex;justify-content:space-between;padding:11px 12px;border:0;border-radius:11px;background:transparent;color:#153f2c;font:inherit;font-weight:850;text-align:left;cursor:pointer}.messenger-more-menu button:hover{background:#fff0f6}
.messenger-thread-page .sms-thread-log{min-height:min(65dvh,720px);max-height:calc(100dvh - 250px);align-content:start;border:0;border-radius:0;box-shadow:none}.messenger-compose{bottom:0;grid-template-columns:auto minmax(0,1fr) auto;margin:0;border-width:1px 0 0;border-radius:0;box-shadow:0 -10px 32px rgba(18,55,40,.07)}.messenger-compose textarea{min-height:46px;max-height:130px;padding:12px 15px;border-radius:23px;resize:none}.messenger-paperclip{width:46px;min-width:46px;height:46px;align-self:end;padding:0;border-style:solid;border-radius:50%}.messenger-paperclip svg{width:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.messenger-paperclip.has-file{color:#fff;border-color:#e25b9b;background:#e25b9b}.messenger-send{display:grid;width:46px;height:46px;place-items:center;align-self:end;padding:0;border:0;border-radius:50%;background:#153f2c;color:#fff;cursor:pointer}.messenger-send svg{width:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.messenger-send:disabled{opacity:.45}.messenger-compose [data-sms-status]:empty{display:none}
.messenger-dialog{width:min(92vw,520px);padding:0;border:0;border-radius:24px;background:transparent}.messenger-dialog::backdrop{background:rgba(15,36,27,.5);backdrop-filter:blur(4px)}.messenger-dialog-card{position:relative;display:grid;gap:14px;max-height:82dvh;overflow:auto;margin:0;padding:24px;border-radius:24px;background:#fffdf8;box-shadow:0 28px 70px rgba(11,40,27,.24)}.messenger-dialog-card h2{margin:-8px 0 3px}.messenger-dialog-close{position:absolute;top:14px;right:14px;width:38px;height:38px;border:1px solid rgba(18,55,40,.13);border-radius:50%;background:#fff;color:#153f2c;font-size:24px;cursor:pointer}.messenger-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.messenger-media-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px}
@media(max-width:720px){.messenger-page,.messenger-thread-page{width:100%;padding:0!important}body.has-sidebar .page.messenger-thread-page{height:calc(100dvh - 70px)!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}.messenger-list-shell{min-height:calc(100dvh - 88px)}.messenger-list-shell,.messenger-thread-shell{border-width:0;border-radius:0;box-shadow:none}.messenger-thread-shell{height:calc(100dvh - 70px)!important;min-height:0;grid-template-rows:auto minmax(0,1fr) auto}.messenger-thread-shell.has-sms-warning{grid-template-rows:auto auto minmax(0,1fr) auto}.messenger-list-head,.messenger-thread-head{padding:10px 12px}.messenger-chat-row{padding:12px 14px}.messenger-avatar{width:48px;height:48px;flex-basis:48px}.messenger-thread-person .messenger-avatar{display:none}.messenger-thread-page .sms-thread-log{min-height:0;max-height:none;overflow-y:auto}.messenger-compose{position:static;grid-template-columns:auto minmax(0,1fr) auto;padding-bottom:max(10px,env(safe-area-inset-bottom))}.messenger-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media (max-width: 979px) {
  .side-nav {
    width: min(88vw, 340px) !important;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)) !important;
    border-radius: 0 24px 24px 0;
  }

  .drawer-overlay {
    background: rgba(18, 55, 40, .35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
}

/* August 2026 mobile workflow pass */
.mobile-menu-toggle {
  justify-content: flex-start;
  cursor: pointer;
}

.mobile-menu-toggle strong {
  margin-left: 2px;
}

/* The calendar starts with the month itself; no dashboard-style preamble. */
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(18, 55, 40, .11);
  border-radius: 20px;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 10px 28px rgba(18, 55, 40, .06);
}

.calendar-toolbar-title {
  min-width: 0;
}

.calendar-toolbar-title .eyebrow {
  margin: 0 0 3px;
  font-size: 9px;
}

.calendar-toolbar-title h1 {
  margin: 0 !important;
  font-size: clamp(21px, 3vw, 29px) !important;
  line-height: 1.05 !important;
}

.calendar-toolbar .calendar-month-nav {
  margin-left: auto;
}

.calendar-page .cal-order-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.calendar-page .cal-order-line {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 22px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(18, 55, 40, .08);
  border-radius: 8px;
  color: #40554a;
  background: #f3f1ec;
  font-size: 10px;
  line-height: 1.05;
  white-space: nowrap;
}

.calendar-page .cal-order-line b {
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-page .cal-order-line em {
  color: inherit;
  font-style: normal;
  font-weight: 850;
}

.calendar-page .cal-order-exact {
  color: #674290;
  border-color: rgba(139, 97, 189, .16);
  background: #f2ebfa;
}

.calendar-page .cal-order-pickup {
  color: #7d5c12;
  border-color: rgba(193, 138, 19, .16);
  background: #fff5d9;
}

.calendar-page .cal-order-standard {
  color: #8f2d5d;
  border-color: rgba(255, 79, 163, .14);
  background: #fff0f7;
}

.cal-line-compact {
  display: none;
}

/* Product cards: compact facts and a predictable 1 + 2x2 action layout. */
.product-admin-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-admin-facts .product-variant-list {
  display: contents;
}

/* One visual card is one order, with bouquet and delivery proofs paired. */
.gallery-order-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px;
}

.gallery-order-card {
  min-width: 0;
}

.gallery-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  background: rgba(18, 55, 40, .07);
}

.gallery-photo-pair.is-single {
  grid-template-columns: 1fr;
}

.gallery-photo-pair .gallery-media {
  min-width: 0;
  overflow: hidden;
  background: #f0eee8;
}

.gallery-photo-pair .gallery-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-proof-type {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 55, 40, .76);
  box-shadow: 0 4px 12px rgba(18, 55, 40, .15);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
}

/* Daily / Weekly / Monthly is shared by Accounting and Sales. */
.accounting-period-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(18, 55, 40, .11);
  border-radius: 16px;
  background: rgba(255, 253, 248, .82);
  box-shadow: 0 7px 19px rgba(18, 55, 40, .055);
}

.accounting-period-tabs a {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 12px;
  color: #53665c;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.accounting-period-tabs a.is-active {
  color: #74294f;
  background: linear-gradient(135deg, #ffe4f0, #fff0df);
  box-shadow: 0 6px 16px rgba(196, 62, 128, .1);
}

.accounting-step-nav {
  display: flex;
  align-items: center;
}

.accounting-step-nav > span {
  display: grid;
  flex: 1 1 auto;
  place-items: center;
  min-width: 96px;
  padding: 0 8px;
  color: var(--df-admin-forest);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.period-action-stack {
  display: grid !important;
  gap: 8px !important;
  min-width: 280px;
}

.period-action-stack .accounting-step-nav {
  justify-self: end;
  width: 100%;
  max-width: 280px;
  padding: 4px;
  border: 1px solid rgba(18, 55, 40, .11);
  border-radius: 15px;
  background: rgba(255, 253, 248, .82);
}

.phone-route-choice {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px !important;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid rgba(18, 55, 40, .12);
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f7ef, #fff8eb);
  cursor: pointer;
}

.phone-route-choice input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--df-admin-forest);
}

.phone-route-choice span,
.phone-route-choice strong,
.phone-route-choice small {
  display: block;
}

.phone-route-choice strong {
  color: var(--df-admin-forest);
  font-size: 13px;
}

.phone-route-choice small {
  margin-top: 3px;
  color: var(--df-admin-muted) !important;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .mobile-menu-toggle {
    padding-inline: 18px !important;
  }

  body.has-sidebar main.page,
  body.has-sidebar main.page:not(.narrow):not(.accounting-page):not(.calendar-page),
  body.has-sidebar .accounting-page,
  body.has-sidebar .calendar-page {
    padding-top: 14px !important;
  }

  .calendar-toolbar {
    gap: 8px;
    padding: 8px 9px 8px 12px;
    border-radius: 17px;
  }

  .calendar-toolbar-title .eyebrow {
    display: none;
  }

  .calendar-toolbar-title h1 {
    font-size: 17px !important;
    white-space: nowrap;
  }

  .calendar-toolbar .calendar-month-nav {
    width: auto;
    min-width: 0;
    margin-left: auto !important;
    padding: 3px;
  }

  .calendar-toolbar .calendar-month-nav a {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
  }

  .calendar-toolbar .calendar-month-nav .today {
    min-width: 57px !important;
    font-size: 9px;
  }

  .calendar-page .cal-day,
  .calendar-page .cal-muted {
    min-height: 88px !important;
    padding: 4px !important;
  }

  .calendar-page .cal-date-row {
    min-height: 23px;
  }

  .calendar-page .cal-order-stack {
    gap: 2px;
  }

  .calendar-page .cal-order-line {
    justify-content: center;
    gap: 2px;
    min-height: 16px;
    padding: 2px 3px;
    border-radius: 6px;
    font-size: 7.5px;
    letter-spacing: -.02em;
  }

  .calendar-page .cal-order-line b,
  .calendar-page .cal-order-line em {
    overflow: visible;
    font-weight: 900;
  }

  .cal-line-full {
    display: none;
  }

  .cal-line-compact {
    display: inline;
  }

  .product-admin-card {
    grid-template-columns: 104px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 11px !important;
  }

  .product-admin-media {
    width: 104px !important;
    height: 104px !important;
    border-radius: 18px !important;
  }

  .product-admin-main {
    gap: 8px;
  }

  .product-admin-top h2 {
    font-size: 18px !important;
    line-height: 1.08;
  }

  .product-admin-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .product-admin-facts > .stage-pill,
  .product-admin-facts .product-variant-list > span {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 6px 7px;
    border-radius: 11px;
    justify-content: center;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.1;
    text-align: center;
  }

  .product-admin-facts .product-variant-list > span {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 4px;
  }

  .product-admin-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .product-admin-actions > a:first-child {
    grid-column: 1 / -1;
  }

  .product-admin-actions form,
  .product-admin-actions .btn,
  .product-admin-actions .mini-danger {
    width: 100%;
  }

  .product-admin-actions .btn,
  .product-admin-actions .mini-danger {
    min-height: 42px !important;
    padding: 7px 6px !important;
    font-size: 9px !important;
    line-height: 1.08;
  }

  .gallery-order-grid {
    grid-template-columns: 1fr !important;
    gap: 13px;
  }

  .accounting-page .accounting-actions {
    grid-template-columns: 1fr !important;
  }

  .accounting-period-tabs,
  .accounting-step-nav,
  .period-action-stack,
  .period-action-stack .accounting-step-nav {
    width: 100%;
    max-width: none;
  }

  .period-action-stack {
    min-width: 0;
  }

  .accounting-breakdown-card .compact-row {
    grid-template-columns: 46px minmax(0, 1fr) auto;
  }

  .accounting-breakdown-card .compact-row > span {
    grid-column: 2;
  }

  .accounting-breakdown-card .compact-row > b {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 390px) {
  .calendar-page .cal-day,
  .calendar-page .cal-muted {
    min-height: 82px !important;
  }

  .product-admin-card {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  .product-admin-media {
    width: 96px !important;
    height: 96px !important;
  }
}

@media (max-width: 720px) {
  body.has-sidebar main.page.messenger-thread-page {
    height: calc(100dvh - 70px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.has-sidebar main.page.messenger-thread-page .messenger-thread-shell {
    height: calc(100dvh - 84px) !important;
  }
}
