:root {
  color-scheme: light;
  --white: #fffefd;
  --cream: #f7f4ef;
  --milk: #f2efea;
  --paper: #fffaf5;
  --blush: #e7d1d5;
  --blush-soft: #fbf0f1;
  --rose: #ad858c;
  --wood: #a87855;
  --wood-soft: #d7c3aa;
  --coffee: #4b3328;
  --coffee-soft: #76645c;
  --ink: #25211e;
  --line: #ddd8d0;
  --pearl: #fffefa;
  --chrome: #b8bbb7;
  --steel: #d7d8d3;
  --stone: #eeeae3;
  --lace: #f9f8f3;
  --gold: #c2a26f;
  --linen-shadow: #d5cec0;
  --sage: #7d8468;
  --danger: #a34a34;
  --shadow: 0 18px 44px rgba(46, 44, 40, 0.08);
  --tight-shadow: 0 8px 20px rgba(46, 44, 40, 0.07);
  font-family:
    "Gaegu", "Nanum Pen Script", "Ma Shan Zheng", "Marker Felt", "Comic Sans MS",
    "Bradley Hand", "Kaiti SC", "STKaiti", "PingFang SC", "Microsoft YaHei", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, 0.96) 0 34%, transparent 60%),
    radial-gradient(ellipse at 86% 8%, rgba(231, 209, 213, 0.2) 0 24%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(75, 51, 40, 0.018) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px 9px),
    linear-gradient(145deg, #fffdf9 0%, #f8f3ec 54%, #eee4d7 100%);
  background-size: auto, auto, auto, auto, auto;
  color: var(--ink);
}

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

body::before {
  top: 118px;
  right: -70px;
  width: 250px;
  height: 360px;
  transform: rotate(-10deg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12px 12px, transparent 0 4px, rgba(255, 255, 255, 0.72) 4.5px 6px, transparent 6.5px) 0 0 / 24px 24px,
    radial-gradient(circle at 12px 12px, rgba(194, 162, 111, 0.12) 0 1px, transparent 1.5px) 0 0 / 24px 24px,
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(194, 162, 111, 0.08);
  opacity: 0.42;
}

body::after {
  bottom: 64px;
  left: -96px;
  width: 286px;
  height: 170px;
  transform: rotate(7deg);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(ellipse at 10px 0, transparent 0 8px, rgba(255, 255, 255, 0.68) 8.5px 10px, transparent 10.5px) 0 0 / 28px 18px repeat-x,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(238, 234, 227, 0.1));
  opacity: 0.5;
}

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

button {
  cursor: pointer;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 408px;
  overflow: hidden;
  color: var(--coffee);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.93) 0%, rgba(255, 253, 248, 0.78) 48%, rgba(248, 239, 226, 0.64) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(235, 220, 199, 0.2)),
    url("./assets/ballet-linen-hero.jpg") right 42% / cover no-repeat,
    repeating-linear-gradient(0deg, rgba(88, 64, 42, 0.016) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 10px),
    linear-gradient(115deg, rgba(255, 253, 248, 0.97) 0%, rgba(248, 239, 226, 0.94) 56%, rgba(231, 216, 197, 0.84) 100%);
  background-blend-mode: normal, soft-light, multiply, normal, normal, normal;
  background-size: auto, auto, cover, auto, auto, auto;
  border-bottom: 1px solid var(--line);
  padding: 24px 64px 42px;
}

.hero::before {
  content: none;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 16px;
  background:
    radial-gradient(ellipse at 8px 0, transparent 0 7px, rgba(255, 255, 255, 0.9) 7.5px 9px, transparent 9.5px) 0 0 / 24px 14px repeat-x,
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 2px, transparent 3px) 2px 7px / 18px 8px repeat-x,
    linear-gradient(90deg, rgba(184, 187, 183, 0.14), rgba(194, 162, 111, 0.12), rgba(231, 209, 213, 0.1));
  content: "";
}

.topbar,
.section-head,
.admin-header,
.orders-header,
.order-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.orders-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.orders-header-actions .secondary-button,
.orders-header-actions .danger-button {
  min-height: 40px;
  padding: 8px 14px;
}

.secondary-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.brand-lockup,
.nav-actions,
.bread-meta,
.quantity-control,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-logo-white {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 8px 12px rgba(46, 44, 40, 0.08));
}

.topbar,
.hero-content {
  position: relative;
  z-index: 2;
}

.section-head h2,
.order-panel h2,
.admin-panel h2,
.manager-card h3 {
  margin: 0;
}

.nav-actions {
  gap: 10px;
}

.owner-sync-button {
  border-color: rgba(75, 51, 40, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: var(--coffee);
}

.owner-sync-button:hover {
  background: rgba(255, 255, 255, 0.92);
}

.hero-content {
  max-width: 720px;
  padding-top: 82px;
}

.hero-content::before {
  content: none;
}

.hero-content p {
  margin: 0 0 16px;
}

#weekLabel {
  color: var(--coffee);
  font-family: "Gaegu", "Nanum Pen Script", "Ma Shan Zheng", "Marker Felt", "Kaiti SC", cursive;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.02;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.78);
}

.hero-highlights {
  display: grid;
  max-width: 520px;
  gap: 10px;
  margin-top: 30px;
  color: var(--coffee);
  font-size: 1.22rem;
  font-weight: 800;
}

.hero-highlights span {
  position: relative;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.22);
  box-shadow: none;
  color: var(--coffee);
  padding: 13px 18px 12px;
}

.hero-highlights span::before {
  position: absolute;
  inset: -2px;
  background: url("./assets/crayon-label-border.svg") center/100% 100% no-repeat;
  content: "";
  opacity: 0.98;
  pointer-events: none;
}

.hero-highlights span::after {
  content: none;
}

.eyebrow {
  margin: 0 0 6px;
  color: currentColor;
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0;
  opacity: 0.74;
  text-transform: uppercase;
}

main {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.customer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(312px, 370px);
  align-items: start;
  gap: 22px;
}

.section-head {
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(184, 187, 183, 0.34);
  padding-bottom: 14px;
}

.section-head h2,
.order-panel h2,
.admin-panel h2,
.customer-card h2 {
  color: var(--coffee);
  font-size: 2rem;
  line-height: 1.08;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.bread-card,
.order-panel,
.admin-panel,
.manager-card,
.customer-card {
  border: 1px solid rgba(184, 187, 183, 0.36);
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(105, 93, 78, 0.018) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 12px),
    radial-gradient(circle at 18px 18px, rgba(194, 162, 111, 0.045) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 249, 244, 0.94));
  background-size: auto, auto, 48px 48px, auto;
  box-shadow: var(--shadow);
}

.bread-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.bread-card:hover {
  border-color: rgba(168, 120, 85, 0.46);
  box-shadow: 0 20px 38px rgba(46, 44, 40, 0.12);
  transform: translateY(-2px);
}

.bread-card.is-sold-out {
  opacity: 0.72;
}

.bread-card.is-sold-out .bread-image-frame img {
  filter: grayscale(0.25) saturate(0.78);
}

.bread-card.is-sold-out .tag {
  border-color: rgba(163, 74, 52, 0.24);
  background: rgba(163, 74, 52, 0.08);
  color: var(--danger);
}

.bread-image-frame {
  position: relative;
  margin: 0 0 14px;
}

.bread-image-frame::after {
  position: absolute;
  inset: 0;
  background: url("./assets/lace-photo-border.svg") center/100% 100% no-repeat;
  content: "";
  z-index: 2;
  opacity: 0.94;
  pointer-events: none;
}

.bread-image-frame img,
.inventory-row img {
  display: block;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.bread-image-frame img {
  aspect-ratio: 4 / 3;
  background: var(--milk);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    0 8px 14px rgba(46, 44, 40, 0.08);
}

.bread-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.bread-card h3 {
  margin: 0;
  color: var(--coffee);
  font-size: 1.48rem;
  font-weight: 850;
  line-height: 1.18;
}

.menu-history {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(184, 187, 183, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  padding: 12px;
}

.menu-history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.menu-history-head strong {
  color: var(--coffee);
  font-size: 1.08rem;
}

.menu-history-head span {
  color: var(--coffee-soft);
  font-size: 0.92rem;
}

.menu-history-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.menu-history-item {
  display: grid;
  grid-template-columns: 46px minmax(118px, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 190px;
  border: 1px solid rgba(184, 187, 183, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--coffee);
  padding: 8px;
  text-align: left;
}

.menu-history-item:hover {
  background: rgba(248, 241, 232, 0.9);
}

.menu-history-item img {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
}

.menu-history-item span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.menu-history-item strong,
.menu-history-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-history-item strong {
  font-size: 1rem;
}

.menu-history-item small {
  color: var(--coffee-soft);
  font-size: 0.86rem;
  font-weight: 750;
}

.bread-description {
  display: grid;
  gap: 4px;
  list-style: none;
  min-height: 58px;
  margin: 0;
  padding: 0;
  color: var(--coffee-soft);
  font-size: 1.08rem;
  line-height: 1.48;
}

.bread-description li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.description-heart {
  color: rgba(99, 77, 65, 0.82);
  font-size: 0.92em;
  line-height: 1.52;
}

.bread-meta {
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: var(--coffee);
  font-size: 1.25rem;
  font-weight: 900;
}

.tag {
  border: 1px solid rgba(184, 187, 183, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--coffee);
  padding: 5px 10px;
  font-size: 1rem;
  font-weight: 850;
}

.quantity-control {
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(184, 187, 183, 0.34);
  padding-top: 13px;
}

.bread-card .quantity-control {
  margin-top: auto;
}

.quantity-label {
  display: grid;
  gap: 3px;
  color: var(--coffee);
}

.ordered-count {
  color: var(--coffee-soft);
  font-size: 0.96rem;
  font-weight: 750;
}

.stepper {
  display: inline-grid;
  grid-template-columns: 38px 42px 38px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(184, 187, 183, 0.46);
  border-radius: 8px;
  background: var(--white);
}

.stepper button {
  width: 38px;
  height: 36px;
  border: 0;
  background: var(--stone);
  color: var(--coffee);
  font-size: 1.24rem;
  font-weight: 900;
}

.stepper button:hover {
  background: var(--steel);
}

.stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.stepper span {
  min-width: 42px;
  text-align: center;
  font-weight: 900;
}

.order-panel,
.admin-panel {
  padding: 22px;
}

.order-panel {
  position: sticky;
  top: 18px;
  overflow: hidden;
}

.order-panel::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(194, 162, 111, 0.24);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.order-panel::after {
  content: none;
}

.order-panel > * {
  position: relative;
  z-index: 1;
}

.order-panel-head,
.customer-card-head {
  align-items: flex-start;
}

.order-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  opacity: 0.78;
}

.admin-panel {
  margin-top: 28px;
}

form {
  display: grid;
  gap: 14px;
}

.order-panel form {
  margin-top: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--coffee);
  font-size: 1.06rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(184, 187, 183, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--chrome);
  box-shadow: 0 0 0 3px rgba(184, 187, 183, 0.18);
}

.cart-summary {
  border: 1px solid rgba(194, 162, 111, 0.34);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(252, 248, 241, 0.88));
  color: var(--coffee);
  padding: 14px;
  line-height: 1.5;
}

.cart-summary strong {
  display: inline-block;
  margin-top: 6px;
  color: var(--ink);
}

.payment-note {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(184, 187, 183, 0.42);
  border-radius: 8px;
  background: rgba(249, 248, 243, 0.78);
  padding: 13px;
  color: var(--coffee-soft);
}

.payment-note strong {
  color: var(--coffee);
}

.saved-profile-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  background: rgba(249, 248, 243, 0.78);
  color: var(--coffee-soft);
  padding: 10px 12px;
  font-size: 0.98rem;
  line-height: 1.42;
}

.form-photo-preview {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(184, 187, 183, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--coffee-soft);
  padding: 10px;
  font-size: 0.98rem;
}

.form-photo-preview-text {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.form-photo-preview img {
  width: 74px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--wood);
  font-weight: 850;
  padding: 0;
  white-space: nowrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 11px 17px;
  font-weight: 850;
}

.primary-button {
  background: linear-gradient(90deg, #6f645c, var(--wood));
  color: #fff;
}

.primary-button:hover {
  background: linear-gradient(90deg, #5e554e, #936849);
}

.secondary-button {
  background: var(--white);
  border-color: rgba(184, 187, 183, 0.5);
  color: var(--coffee);
}

.secondary-button:hover {
  background: var(--stone);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(184, 187, 183, 0.52);
  color: var(--coffee);
}

.owner-mode #adminToggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  background: rgba(91, 62, 43, 0.94);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(65, 48, 38, 0.22);
  color: #fff;
}

.danger-button {
  background: rgba(163, 74, 52, 0.08);
  color: var(--danger);
}

.danger-button.is-confirming {
  background: rgba(163, 74, 52, 0.16);
  border-color: rgba(163, 74, 52, 0.36);
  color: #8f2f21;
}

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

.admin-lock {
  display: grid;
  gap: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin: 18px 0;
}

.page-text-form {
  margin-top: 18px;
}

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

.manager-card {
  padding: 18px;
  box-shadow: var(--tight-shadow);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
}

.stats-list,
.inventory-list,
.orders-list {
  display: grid;
  gap: 8px;
}

.stat-row,
.inventory-row,
.order-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 12px;
}

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

.inventory-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.inventory-row img {
  width: 72px;
  height: 72px;
}

.inventory-row p {
  margin: 4px 0 0;
  color: var(--coffee-soft);
}

.stat-row strong,
.order-row strong {
  color: var(--coffee);
}

.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 9px 11px;
}

.order-row-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-row-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.order-row-main time {
  color: var(--coffee-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.order-row-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--coffee-soft);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.order-row p {
  margin: 0;
  color: var(--coffee-soft);
  line-height: 1.35;
}

.compact-order-delete {
  min-height: 34px;
  padding: 7px 12px;
  white-space: nowrap;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.bread-card .card-actions {
  align-self: start;
  margin-top: auto;
}

.empty-state {
  border: 1px dashed rgba(184, 137, 97, 0.45);
  border-radius: 8px;
  color: var(--coffee-soft);
  padding: 18px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(360px, calc(100% - 36px));
  transform: translateY(120px);
  border-radius: 8px;
  background: var(--coffee);
  color: #fff;
  padding: 13px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.customer-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.customer-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.owner-mode .customer-orders-card {
  display: none;
}

.customer-orders-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.customer-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.feedback-disclosure {
  display: grid;
  gap: 14px;
}

.feedback-toggle-button {
  display: grid;
  place-items: center;
  width: 100%;
  cursor: pointer;
  list-style: none;
}

.feedback-toggle-button::-webkit-details-marker {
  display: none;
}

.feedback-toggle-button::marker {
  content: "";
}

.feedback-panel,
.customer-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(184, 187, 183, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 18px;
  box-shadow: var(--tight-shadow);
}

.feedback-panel h2,
.customer-panel h2 {
  margin: 0;
  color: var(--coffee);
  font-size: 2rem;
  line-height: 1.08;
}

.feedback-inline-form {
  gap: 12px;
}

.feedback-message-field {
  position: relative;
  display: grid;
}

.feedback-message-field textarea {
  padding-bottom: 34px;
}

.feedback-counter {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: var(--coffee-soft);
  font-size: 0.9rem;
  font-weight: 850;
  opacity: 0.72;
  pointer-events: none;
}

.feedback-hint {
  margin: 0;
  color: var(--coffee-soft);
  line-height: 1.5;
}

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

.customer-order-row {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(184, 187, 183, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  padding: 12px 13px;
}

.customer-order-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--coffee);
}

.customer-order-row-head small {
  color: var(--coffee-soft);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.customer-order-detail-title {
  margin: 0;
  color: var(--coffee);
  font-weight: 850;
}

.customer-order-row ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
  color: var(--coffee-soft);
  line-height: 1.45;
}

.customer-orders-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.customer-orders-toggle {
  min-height: 36px;
  padding: 8px 14px;
}

.customer-orders-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.feedback-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback-visibility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0;
  border: 1px solid rgba(184, 187, 183, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 12px 14px;
}

.feedback-visibility legend {
  padding: 0 6px;
  color: var(--coffee);
  font-weight: 850;
}

.feedback-visibility label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--coffee-soft);
  font-weight: 850;
}

.feedback-visibility input {
  width: auto;
  accent-color: var(--coffee);
}

.feedback-visibility .feedback-named-option {
  flex-wrap: wrap;
  row-gap: 7px;
}

.feedback-visibility .feedback-inline-name {
  display: none;
  width: min(210px, 100%);
  min-height: 36px;
  padding: 7px 10px;
}

.feedback-named-option.is-visible .feedback-inline-name {
  display: inline-flex;
}

.feedback-admin-card {
  margin-top: 18px;
}

.feedback-summary-window {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  border: 1px solid rgba(194, 162, 111, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.9), transparent 58%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(248, 239, 226, 0.7));
  color: var(--coffee);
  padding: 14px;
}

.feedback-summary-window h4,
.feedback-list-title {
  margin: 0;
  color: var(--coffee);
  font-size: 1.18rem;
}

.feedback-summary-window p,
.feedback-summary-window ul {
  margin: 0;
}

.feedback-summary-window ul {
  display: grid;
  gap: 5px;
  padding-left: 20px;
  color: var(--coffee-soft);
}

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

.feedback-item {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.feedback-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--coffee-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.feedback-item-meta time {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.feedback-item p {
  margin: 0;
  color: var(--coffee);
  line-height: 1.5;
  white-space: pre-wrap;
}

.feedback-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}

.feedback-page-button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(184, 187, 183, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--coffee-soft);
  font-weight: 850;
}

.feedback-page-button.is-active {
  background: var(--coffee);
  border-color: var(--coffee);
  color: #fff;
}

.image-editor {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(37, 33, 30, 0.34);
  padding: 18px;
}

.image-editor-panel {
  width: min(720px, 100%);
  border: 1px solid rgba(184, 187, 183, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 244, 0.98));
  box-shadow: 0 24px 70px rgba(37, 33, 30, 0.22);
  padding: 18px;
}

.image-editor-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 16px 0;
  border: 1px solid rgba(75, 51, 40, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 253, 0.99) 0%, rgba(255, 250, 242, 0.86) 32%, rgba(184, 145, 112, 0.48) 66%, rgba(86, 59, 42, 0.68) 100%),
    linear-gradient(135deg, #fffdf8 0%, #f2dfcc 64%, #76523d 100%);
  cursor: grab;
  touch-action: none;
}

.image-editor-frame::before,
.image-editor-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.image-editor-frame::before {
  background:
    radial-gradient(ellipse at 24% 18%, rgba(255, 255, 255, 0.42) 0 12%, transparent 36%),
    radial-gradient(ellipse at 82% 72%, rgba(255, 255, 255, 0.24) 0 14%, transparent 42%);
  opacity: 0.72;
}

.image-editor-frame::after {
  background: url("./assets/lace-photo-border.svg") center/100% 100% no-repeat;
  z-index: 2;
  opacity: 1;
}

.image-editor-frame:active {
  cursor: grabbing;
}

.image-editor-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 74%;
  height: 70%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(75, 51, 40, 0.16));
  transform-origin: center;
  user-select: none;
}

.image-editor-hint {
  margin: -4px 0 14px;
  color: var(--coffee-soft);
  font-size: 1rem;
}

.image-editor-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.range-control {
  gap: 8px;
}

.control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.control-label input[type="number"] {
  width: 72px;
  min-width: 72px;
  padding: 6px 8px;
  text-align: center;
  color: var(--coffee-soft);
  font-size: 0.98rem;
  font-weight: 850;
}

.image-editor-controls input[type="range"] {
  padding-right: 0;
  padding-left: 0;
}

.rotation-control {
  min-width: 190px;
}

@media (max-width: 960px) {
  .hero {
    padding-right: 32px;
    padding-left: 32px;
  }

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

  .customer-info-grid {
    grid-template-columns: 1fr;
  }

  .order-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  body::before {
    top: 92px;
    right: -120px;
    width: 230px;
    height: 300px;
    opacity: 0.32;
  }

  body::after {
    bottom: 20px;
    left: -150px;
    opacity: 0.34;
  }

  .hero {
    min-height: 420px;
    padding: 18px 18px 34px;
  }

  .hero::before {
    right: -145px;
    bottom: -84px;
    width: 340px;
    height: 260px;
    opacity: 0.42;
  }

  .topbar,
  .section-head,
  .admin-header,
  .orders-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .orders-header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-actions .secondary-button {
    flex: 1;
  }

  .orders-header-actions .secondary-button,
  .orders-header-actions .danger-button {
    flex: 1 1 30%;
    width: auto;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
  }

  .brand-logo-white {
    width: 54px;
    height: 54px;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-content {
    padding-top: 78px;
  }

  #weekLabel {
    font-size: 2.15rem;
  }

  .hero-highlights {
    font-size: 1.12rem;
  }

  main {
    width: min(100% - 24px, 1180px);
    padding-top: 24px;
  }

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

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

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

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

  .inventory-row .card-actions {
    grid-column: 1 / -1;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button {
    width: 100%;
  }

  .topbar .ghost-button {
    width: auto;
  }

  .order-row-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .order-row-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    white-space: normal;
  }

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

  .compact-order-delete {
    width: 100%;
  }

  .saved-profile-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-editor-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  #weekLabel {
    font-size: 1.95rem;
  }

  .quantity-control {
    align-items: stretch;
    flex-direction: column;
  }

  .stepper {
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .stepper button {
    width: 100%;
  }

  .order-panel-head {
    align-items: center;
  }

  .order-logo {
    width: 50px;
    height: 50px;
  }
}
