:root {
  color: #1d1d1f;
  font-family: Arial, "Noto Sans KR", sans-serif;
  background: #f6f3ef;
  --landing-bg: #f8b8c3;
  --page-max: 32.5rem;
  --edge-gap: clamp(0.75rem, 3.8vw, 1.125rem);
  --chat-button-size: clamp(3.25rem, 13vw, 3.625rem);
  --chat-panel-width: min(25rem, calc(100vw - (var(--edge-gap) * 2)));
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

body.chat-lock {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  background: #f6f3ef;
}

.hero {
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 4vw, 1.25rem);
  color: white;
  background:
    linear-gradient(rgba(20, 20, 24, 0.42), rgba(20, 20, 24, 0.62)),
    url("/placeholder-bg.svg") center/cover;
}

.hero.has-image {
  background-image:
    linear-gradient(rgba(20, 20, 24, 0.42), rgba(20, 20, 24, 0.62)),
    var(--hero-image);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.small-button,
.primary-button {
  border-radius: 0.375rem;
  background: #f4c95d;
  color: #171717;
  font-weight: 800;
  text-decoration: none;
}

.small-button {
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  max-width: 22.5rem;
  padding: 0.9375rem 1.125rem;
}

.hero-copy {
  max-width: 35rem;
  padding-bottom: 2.5rem;
}

.hero-copy h2 {
  margin: 0 0 0.875rem;
  font-size: clamp(2.125rem, 11vw, 3.625rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 0;
  max-width: 28.75rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.section {
  width: min(100%, 57.5rem);
  margin: 0 auto;
  padding: 2.125rem clamp(1rem, 4vw, 1.25rem);
}

.section h2 {
  margin: 0 0 0.875rem;
  font-size: 1.5rem;
}

.section p {
  margin: 0;
  color: #4c4a45;
  line-height: 1.8;
}

.landing-page {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--landing-bg);
}

.landing-shell {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
  border-radius: clamp(0rem, 4vw, 1.25rem);
  box-shadow: 0 1.125rem 2.625rem rgba(60, 38, 94, 0.14);
}

.landing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.45rem, 2vw, 0.625rem);
  padding: clamp(0.55rem, 2.6vw, 0.75rem);
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 0.0625rem solid rgba(255, 255, 255, 0.64);
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(0.75rem);
}

.top-action {
  flex: 1 1 0;
  display: inline-grid;
  min-width: 0;
  min-height: clamp(2.75rem, 11vw, 3rem);
  place-items: center;
  border: 0;
  border-radius: 999rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.top-action:hover {
  transform: translateY(-0.0625rem);
}

.top-action.has-image {
  overflow: hidden;
  min-height: clamp(3.125rem, 12vw, 3.5rem);
  padding: 0;
  background: #ffffff;
  box-shadow: 0 0.625rem 1.375rem rgba(60, 38, 94, 0.12);
}

.top-action.has-image span {
  display: none;
}

.top-action-image {
  display: block;
  width: 100%;
  height: clamp(3.125rem, 12vw, 3.5rem);
  object-fit: cover;
}

.brand-action {
  position: relative;
  /* justify-content: start; */
  padding: 0 clamp(0.5rem, 2vw, 0.75rem) 0 clamp(2.35rem, 9vw, 2.75rem);
  color: #241235;
  font-size: clamp(0.9rem, 3.8vw, 1.125rem);
  letter-spacing: 0;
}

.brand-action::before {
  content: "GD";
  position: absolute;
  left: clamp(0.4rem, 1.8vw, 0.5rem);
  width: clamp(1.65rem, 6.2vw, 1.875rem);
  height: clamp(1.65rem, 6.2vw, 1.875rem);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #8faaf0, #7b61c8);
  color: #ffffff;
  font-size: clamp(0.625rem, 2.2vw, 0.6875rem);
  font-weight: 900;
  box-shadow: 0 0.5rem 1rem rgba(99, 127, 210, 0.28);
}

.brand-action.has-image::before,
.apply-action.has-image span::after {
  display: none;
}

.brand-action.has-image {
  padding: 0;
}

.brand-action.has-image .top-action-image {
  object-fit: cover;
}

.apply-action {
  flex: 1 1 0;
  color: #ffffff;
  font-size: clamp(0.82rem, 3.4vw, 0.9375rem);
}

.apply-action span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1.8vw, 0.625rem);
  min-width: 0;
  min-height: clamp(2.5rem, 10vw, 2.75rem);
  height: clamp(2.5rem, 10vw, 2.75rem);
  padding: 0 clamp(0.45rem, 1.8vw, 0.5625rem) 0 clamp(0.8rem, 3.4vw, 1.125rem);
  border-radius: 999rem;
  background: linear-gradient(135deg, #6d2ca4, #8faaf0);
  box-shadow: 0 0.625rem 1.375rem rgba(109, 44, 164, 0.24);
  white-space: nowrap;
}

.apply-action span::after {
  content: ">";
  flex: 0 0 clamp(1.35rem, 5.4vw, 1.625rem);
  display: inline-grid;
  width: clamp(1.35rem, 5.4vw, 1.625rem);
  height: clamp(1.35rem, 5.4vw, 1.625rem);
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: clamp(0.8rem, 3vw, 0.9375rem);
  font-weight: 900;
  line-height: 1;
}

.landing-image {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  border: 0.0625rem solid rgba(255, 255, 255, 0.58);
  border-top: 0;
  border-radius: 0;
  background: white;
  box-shadow: none;
}

.landing-image:first-of-type {
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.58);
  border-radius: 0;
}

.landing-image:last-child {
  border-radius: 0;
}

.site-compliance-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem 0.875rem;
  padding: 1rem;
  background: #ffffff;
  color: #626862;
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: center;
}

.site-compliance-footer a {
  color: #4b554d;
  text-decoration: none;
}

.site-compliance-footer a:hover,
.site-compliance-footer a:focus-visible {
  color: #174f35;
  text-decoration: underline;
}

.order-compliance-footer {
  width: min(53.75rem, calc(100% - 2rem));
  margin: auto auto 0;
  border-top: 1px solid #e1e6de;
  background: transparent;
}

@media (max-width: 30rem) {
  .site-compliance-footer {
    flex-direction: column;
    gap: 0.125rem;
  }
}

.image-slot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

[data-zoom-image="true"] {
  cursor: zoom-in;
}

.image-zoom-open {
  overflow: hidden;
}

.image-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(0.875rem, 4vw, 2rem);
  background: rgba(13, 18, 22, 0.78);
  backdrop-filter: blur(0.375rem);
  cursor: zoom-out;
}

.image-zoom-overlay.hidden {
  display: none;
}

.image-zoom-preview {
  display: block;
  max-width: min(94vw, 52rem);
  max-height: 92svh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.625rem;
  background: #ffffff;
  box-shadow: 0 1.5rem 4.5rem rgba(0, 0, 0, 0.38);
  cursor: zoom-out;
}

.image-slot a {
  display: block;
}

.cta-image-slot {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  box-shadow: 0 0.375rem 0.875rem rgba(60, 38, 94, 0.07);
}

.chat-button {
  position: fixed;
  right: var(--edge-gap);
  bottom: var(--edge-gap);
  display: grid;
  place-items: center;
  width: var(--chat-button-size);
  height: var(--chat-button-size);
  border-radius: 50%;
  background: linear-gradient(145deg, #8faaf0, #6d2ca4);
  color: white;
  box-shadow: 0 0.875rem 1.875rem rgba(92, 116, 190, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chat-button:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 1.125rem 2.25rem rgba(92, 116, 190, 0.44);
}

.chat-bubble-icon {
  position: relative;
  width: clamp(1.5rem, 6vw, 1.6875rem);
  height: clamp(1.25rem, 5vw, 1.375rem);
  border: 0.15625rem solid currentColor;
  border-radius: 0.6875rem;
}

.chat-bubble-icon::before {
  content: "";
  position: absolute;
  left: 0.3125rem;
  bottom: -0.4375rem;
  width: 0.625rem;
  height: 0.625rem;
  border-left: 0.15625rem solid currentColor;
  border-bottom: 0.15625rem solid currentColor;
  border-bottom-left-radius: 0.5rem;
  transform: rotate(-18deg);
}

.chat-bubble-icon::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0.4375rem;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0.4375rem 0 0 currentColor, 0.875rem 0 0 currentColor;
}

.chat-panel {
  position: fixed;
  right: var(--edge-gap);
  bottom: calc(var(--edge-gap) + var(--chat-button-size) + 0.75rem);
  display: none;
  width: var(--chat-panel-width);
  height: min(40rem, calc(100vh - var(--edge-gap) - var(--chat-button-size) - 2rem));
  height: min(40rem, calc(100svh - var(--edge-gap) - var(--chat-button-size) - 2rem));
  max-height: calc(100vh - var(--edge-gap) - var(--chat-button-size) - 2rem);
  max-height: calc(100svh - var(--edge-gap) - var(--chat-button-size) - 2rem);
  overflow: hidden;
  border: 0;
  border-radius: clamp(1rem, 4vw, 1.125rem);
  background: white;
  box-shadow: 0 1.5rem 4.375rem rgba(34, 43, 72, 0.24);
  overscroll-behavior: contain;
}

.chat-panel.open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.chat-header {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(0.5rem, 2.4vw, 0.625rem);
  padding: clamp(1rem, 4vw, 1.25rem) clamp(3rem, 12vw, 3.375rem) clamp(0.75rem, 3vw, 0.875rem);
  background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
  color: #121a35;
  font-weight: 800;
  box-shadow: 0 0.0625rem 0 #eef0f6;
}

.chat-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(2.75rem, 11vw, 3rem);
  height: clamp(2.75rem, 11vw, 3rem);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(145deg, #8faaf0, #6d2ca4);
  color: white;
  font-size: clamp(1rem, 3.6vw, 1.125rem);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 0.5rem 1.375rem rgba(99, 127, 210, 0.28);
}

.chat-avatar span {
  position: relative;
  z-index: 1;
}

.chat-avatar::before {
  content: "";
  position: absolute;
  inset: 0.55rem 0.48rem 0.7rem;
  border: 0.125rem solid rgba(255, 255, 255, 0.78);
  border-bottom: 0;
  border-radius: 999rem 999rem 0 0;
  opacity: 0.9;
}

.chat-avatar::after {
  content: "";
  position: absolute;
  right: 0.7rem;
  bottom: 0.82rem;
  width: 0.45rem;
  height: 0.125rem;
  border-radius: 999rem;
  background: rgba(255, 255, 255, 0.86);
  transform: rotate(-12deg);
}

.chat-avatar i {
  position: absolute;
  right: 0.3125rem;
  bottom: 0.0625rem;
  width: 0.5625rem;
  height: 0.5625rem;
  border: 0.125rem solid white;
  border-radius: 50%;
  background: #25c35a;
}

.chat-close {
  position: absolute;
  top: clamp(0.65rem, 2.6vw, 0.75rem);
  right: clamp(0.75rem, 3vw, 0.875rem);
  display: grid;
  place-items: center;
  width: clamp(2rem, 8vw, 2.125rem);
  height: clamp(2rem, 8vw, 2.125rem);
  border-radius: 50%;
  background: transparent;
  color: #202942;
  font-size: clamp(1.625rem, 7vw, 1.875rem);
  line-height: 1;
}

.messages {
  min-height: 0;
  overflow: auto;
  padding: clamp(0.75rem, 3vw, 0.875rem);
  overscroll-behavior: contain;
}

.chat-messages {
  padding: clamp(0.9rem, 3.8vw, 1.125rem) clamp(0.85rem, 3.4vw, 1rem) clamp(0.65rem, 2.8vw, 0.75rem);
  background: #ffffff;
}

.message {
  width: fit-content;
  max-width: 86%;
  margin: 0 0 clamp(0.5rem, 2.2vw, 0.625rem);
  padding: clamp(0.62rem, 2.6vw, 0.6875rem) clamp(0.75rem, 3vw, 0.875rem);
  border-radius: clamp(0.75rem, 3vw, 0.875rem);
  background: #eef1fb;
  color: #121a35;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: break-word;
  box-shadow: 0 0.0625rem 0 rgba(32, 41, 66, 0.04);
}

.message-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.5rem, 2.4vw, 0.625rem);
  margin: 0 0 clamp(0.5rem, 2.2vw, 0.625rem);
}

.agent-row {
  justify-content: flex-start;
}

.agent-row > div:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.agent-mark {
  position: relative;
  flex: 0 0 clamp(2rem, 8vw, 2.125rem);
  width: clamp(2rem, 8vw, 2.125rem);
  height: clamp(2rem, 8vw, 2.125rem);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(145deg, #8faaf0, #6d2ca4);
  color: white;
  box-shadow: 0 0.5rem 1.125rem rgba(99, 127, 210, 0.24);
}

.agent-mark::before {
  content: "M";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(0.625rem, 2.3vw, 0.6875rem);
  font-weight: 800;
  letter-spacing: 0;
}

.agent-mark::after {
  content: "";
  position: absolute;
  right: 0.0625rem;
  bottom: 0;
  width: 0.5rem;
  height: 0.5rem;
  border: 0.125rem solid white;
  border-radius: 50%;
  background: #25c35a;
}

.message-name {
  margin: 0 0 0.25rem 0.125rem;
  color: #202942;
  font-size: 0.75rem;
  font-weight: 800;
}

.message.admin {
  margin-left: auto;
  border-radius: 1.125rem 1.125rem 0.375rem 1.125rem;
  background: linear-gradient(135deg, #8faaf0, #7897e7);
  color: white;
  box-shadow: 0 0.5rem 1.25rem rgba(99, 127, 210, 0.22);
}

.message.visitor {
  margin-left: auto;
  border-radius: 1.125rem 1.125rem 0.375rem 1.125rem;
  background: linear-gradient(135deg, #8faaf0, #7897e7);
  color: white;
  box-shadow: 0 0.5rem 1.25rem rgba(99, 127, 210, 0.22);
}

.message.system {
  max-width: 86%;
  background: #eef1fb;
  color: #121a35;
}

.chat-form,
.admin-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 0.0625rem solid #eee8de;
}

.admin-form {
  display: grid;
  grid-template-columns: 1fr 2.625rem 3.625rem;
  align-items: center;
  background: #fff;
}

.chat-form {
  display: grid;
  gap: 0.5rem;
  padding: clamp(0.65rem, 2.8vw, 0.75rem) clamp(0.65rem, 2.8vw, 0.75rem) clamp(0.75rem, 3vw, 0.875rem);
  border-top: 0;
  background: #ffffff;
  box-shadow: 0 -0.0625rem 0 #eef0f6;
}

.chat-form::after {
  content: "";
  display: block;
  width: 2.125rem;
  height: 0.25rem;
  margin: 0 auto;
  border-radius: 999rem;
  background: #e8ebf3;
}

.chat-input-shell {
  display: grid;
  grid-template-columns: 1fr clamp(2rem, 8vw, 2.125rem) clamp(2.35rem, 9.5vw, 2.5rem);
  align-items: center;
  gap: clamp(0.3rem, 1.4vw, 0.375rem);
  min-height: clamp(2.75rem, 11vw, 2.875rem);
  padding: 0.3125rem clamp(0.3rem, 1.4vw, 0.375rem) 0.3125rem clamp(0.85rem, 3.5vw, 1rem);
  border-radius: 999rem;
  background: #f5f5f8;
}

.chat-form input,
.admin-form input,
.field {
  min-width: 0;
  flex: 1;
  border: 0.0625rem solid #d9d1c4;
  border-radius: 0.375rem;
  padding: 0.6875rem 0.75rem;
}

.admin-form input,
.admin-form button {
  width: 100%;
  height: 2.875rem;
  padding: 0 0.75rem;
}

.chat-form input {
  border: 0;
  padding: 0;
  background: transparent;
  color: #202942;
  outline: 0;
}

.chat-form input::placeholder {
  color: #9aa0b2;
}

.icon-button,
.send-button {
  display: grid;
  place-items: center;
  width: clamp(2rem, 8vw, 2.125rem);
  height: clamp(2rem, 8vw, 2.125rem);
  border-radius: 50%;
  background: transparent;
  color: #9aa0b2;
  font-size: 1.1875rem;
}

.emoji-face-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  border: 0.1125rem solid currentColor;
  border-radius: 50%;
}

.emoji-face-icon::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 0.125rem;
  height: 0.125rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0.3125rem 0 0 currentColor;
}

.emoji-face-icon::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  bottom: 0.1875rem;
  width: 0.375rem;
  height: 0.1875rem;
  border-bottom: 0.10625rem solid currentColor;
  border-radius: 0 0 0.5rem 0.5rem;
}

.send-button {
  width: clamp(2.35rem, 9.5vw, 2.5rem);
  height: clamp(2.35rem, 9.5vw, 2.5rem);
  background: linear-gradient(145deg, #9fb6f1, #7897e7);
  color: white;
  box-shadow: 0 0.5rem 1.125rem rgba(96, 124, 204, 0.28);
}

.paper-plane-icon {
  position: relative;
  width: clamp(1rem, 4vw, 1.125rem);
  height: clamp(1rem, 4vw, 1.125rem);
  transform: rotate(-12deg);
}

.paper-plane-icon::before {
  content: "";
  position: absolute;
  inset: 0.0625rem 0 0 0.0625rem;
  clip-path: polygon(0 6%, 100% 50%, 0 94%, 20% 55%);
  background: currentColor;
}

.paper-plane-icon::after {
  content: "";
  position: absolute;
  left: 0.3125rem;
  top: 0.5rem;
  width: 0.5625rem;
  height: 0.125rem;
  border-radius: 999rem;
  background: rgba(120, 151, 231, 0.55);
  transform: rotate(-16deg);
}

.chat-powered {
  color: #c2c6d2;
  font-size: 0.6875rem;
  text-align: center;
}

.emoji-panel {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.25rem;
  margin: 0 clamp(0.65rem, 2.8vw, 0.75rem) 0.5rem;
  padding: 0.625rem;
  border: 0.0625rem solid #eef0f6;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 0.75rem 1.75rem rgba(34, 43, 72, 0.1);
}

.emoji-panel button {
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(1.9rem, 7.5vw, 2rem);
  border-radius: 0.5rem;
  background: #f7f8fb;
  font-size: 1.125rem;
}

.emoji-panel button:hover {
  background: #eef1fb;
}

.textarea {
  min-height: 86px;
  resize: vertical;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #292724;
  font-weight: 700;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: #1d1d1f;
}

.chat-form button,
.admin-form button,
.admin-button {
  border-radius: 6px;
  padding: 11px 14px;
  background: #1d1d1f;
  color: white;
  font-weight: 800;
}

.chat-form .icon-button,
.chat-form .send-button {
  padding: 0;
  border-radius: 50%;
}

.chat-form .icon-button {
  background: transparent;
  color: #9aa0b2;
  font-weight: 400;
}

.chat-form .send-button {
  background: linear-gradient(145deg, #9fb6f1, #7897e7);
  color: white;
}

.admin-form .icon-button {
  flex: none;
  border: 1px solid #d9d1c4;
  border-radius: 6px;
  background: #fff;
  color: #4c4a45;
  padding: 0;
}

.admin-form input,
.admin-form .icon-button,
.admin-form #adminSendButton {
  height: 46px;
  margin: 0;
}

.admin-form .icon-button,
.admin-form #adminSendButton {
  display: grid;
  place-items: center;
  padding: 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 22px;
  border-right: 1px solid #ded8cc;
  background: #fffaf2;
}

.main {
  padding: 22px;
}

.panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #ded8cc;
  border-radius: 8px;
  background: white;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.admin-chat-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 14px;
  height: 620px;
  min-height: 0;
}

.admin-view[data-view-panel="chat"] .panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: calc(100vh - 196px);
  height: calc(100dvh - 196px);
  min-height: 520px;
  margin-bottom: 0;
}

.admin-view[data-view-panel="chat"] .admin-chat-layout {
  height: auto;
  min-height: 0;
}

.password-panel {
  width: min(100%, 520px);
  max-width: 520px;
  margin: 0 auto;
}

.room-list-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ded8cc;
  border-radius: 10px;
  background: #fffaf2;
}

.room-list-title {
  padding: 13px 14px;
  border-bottom: 1px solid #eee8de;
  color: #292724;
  font-size: 14px;
  font-weight: 800;
}

#rooms {
  height: calc(100% - 46px);
  max-height: none;
  overflow: auto;
  padding: 10px;
}

.conversation-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #ded8cc;
  border-radius: 10px;
  background: #ffffff;
}

.conversation-panel .messages {
  min-height: 0;
  border: 0;
  border-top: 1px solid #eee8de;
  border-bottom: 1px solid #eee8de;
  border-radius: 0;
  background: #fbfbfd;
}

.conversation-panel .message {
  width: fit-content;
  max-width: min(520px, 78%);
}

.conversation-panel .message.admin {
  margin-left: auto;
}

.conversation-panel .message.admin.system {
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(135deg, #8faaf0, #7897e7);
  color: #ffffff;
}

.muted {
  margin: 0;
  padding: 12px 14px;
  color: #746f66;
  font-size: 14px;
  line-height: 1.5;
}

.stack {
  display: grid;
  gap: 10px;
}

.image-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.landing-upload-preview {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 14px;
  gap: 8px;
  border: 1px solid rgba(222, 216, 204, 0.9);
  border-radius: 22px;
  background: linear-gradient(180deg, #f8b8c3, #f3d5dc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 18px 42px rgba(60, 38, 94, 0.12);
}

.landing-image-form {
  padding: 12px;
  border: 1px solid #ded8cc;
  border-radius: 8px;
  background: #fffaf2;
}

.landing-url-field {
  display: grid;
  gap: 7px;
}

.landing-url-field span {
  color: #1f2a1b;
  font-size: 13px;
  font-weight: 900;
}

.landing-url-field em {
  margin-top: -2px;
  color: #69776f;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.landing-toggle-row {
  display: grid;
  grid-template-columns: 20px auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dfe4dc;
  border-radius: 8px;
  background: #fbfcfa;
}

.landing-toggle-row em {
  color: #69776f;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.landing-upload-preview .landing-image-form {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 148px;
  padding: 12px;
  border: 1px dashed rgba(109, 44, 164, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(60, 38, 94, 0.08);
}

.landing-upload-preview .landing-image-form[data-slot="topLeft"],
.landing-upload-preview .landing-image-form[data-slot="topRight"] {
  min-height: 96px;
}

.landing-upload-preview .landing-image-form[data-slot="hero"],
.landing-upload-preview .landing-image-form[data-slot="section"],
.landing-upload-preview .landing-image-form[data-slot="cta"],
.landing-upload-preview .landing-image-form[data-slot="inquiryPopup"],
.landing-upload-preview .landing-image-form[data-slot="footer"] {
  grid-column: 1 / -1;
}

.landing-upload-preview .landing-image-form[data-slot="hero"] {
  min-height: 210px;
}

.landing-upload-preview .landing-image-form[data-slot="section"],
.landing-upload-preview .landing-image-form[data-slot="cta"],
.landing-upload-preview .landing-image-form[data-slot="inquiryPopup"],
.landing-upload-preview .landing-image-form[data-slot="footer"] {
  min-height: 170px;
}

.landing-upload-preview .landing-image-form::before {
  content: "";
  position: absolute;
  inset: 42px 12px 72px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(143, 170, 240, 0.18), rgba(109, 44, 164, 0.08)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0 10px, rgba(255, 255, 255, 0.36) 10px 20px);
  pointer-events: none;
}

.landing-upload-preview .upload-label,
.landing-upload-preview .current-file,
.landing-upload-preview input,
.landing-upload-preview button,
.landing-upload-preview .image-actions,
.landing-upload-preview .upload-progress {
  position: relative;
  z-index: 1;
}

.upload-label {
  color: #292724;
  font-size: 14px;
  font-weight: 800;
}

.current-file {
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid #eee8de;
  border-radius: 6px;
  background: white;
  color: #746f66;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}

.upload-progress.hidden {
  display: none;
}

.upload-progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(222, 216, 204, 0.95);
}

.upload-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #8faaf0, #4f7adb);
  transition: width 0.18s ease;
}

.upload-progress-text {
  color: #31233f;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.image-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-page .danger-button {
  background: linear-gradient(135deg, #c0392b, #8f241a);
  box-shadow: 0 10px 22px rgba(150, 42, 28, 0.18);
}

.admin-page .danger-button:disabled {
  cursor: not-allowed;
  background: #d9d4cc;
  color: #8b857c;
  box-shadow: none;
  opacity: 0.75;
}

.room {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid #ded8cc;
  border-radius: 10px;
  background: white;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.room-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ece7ff, #dfe7ff);
  color: #6d2ca4;
  font-size: 14px;
  font-weight: 900;
}

.room-avatar::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 50%;
  background: #25c35a;
}

.room-meta {
  min-width: 0;
}

.room-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 800;
}

.room-sub {
  display: block;
  margin-top: 3px;
  color: #8a8379;
  font-size: 12px;
  font-weight: 700;
}

.unread-badge {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.room.active {
  border-color: #9fb6f1;
  background: #eef1fb;
}

.hidden {
  display: none;
}

@media (max-width: 47.5rem) {
  .landing-top {
    gap: clamp(0.4rem, 2vw, 0.5rem);
    padding: clamp(0.5rem, 2.5vw, 0.625rem);
  }

  .brand-action {
    padding: 0 0.5rem 0 clamp(2.25rem, 9vw, 2.5rem);
    font-size: clamp(0.9rem, 4vw, 1rem);
  }

  .apply-action {
    font-size: clamp(0.78rem, 3.6vw, 0.875rem);
  }

  .apply-action span {
    min-width: 0;
    min-height: clamp(2.375rem, 10vw, 2.625rem);
    height: clamp(2.375rem, 10vw, 2.625rem);
    padding: 0 clamp(0.4rem, 1.8vw, 0.5rem) 0 clamp(0.75rem, 3vw, 0.875rem);
  }

  .top-action.has-image,
  .top-action-image {
    height: clamp(3rem, 12vw, 3.125rem);
    min-height: clamp(3rem, 12vw, 3.125rem);
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 0.0625rem solid #ded8cc;
  }

  .chat-panel {
    right: var(--edge-gap);
    bottom: calc(var(--edge-gap) + var(--chat-button-size) + 0.5rem);
    width: var(--chat-panel-width);
    height: calc(100vh - var(--edge-gap) - var(--chat-button-size) - 1.25rem);
    height: calc(100svh - var(--edge-gap) - var(--chat-button-size) - 1.25rem);
    max-height: calc(100vh - var(--edge-gap) - var(--chat-button-size) - 1.25rem);
    max-height: calc(100svh - var(--edge-gap) - var(--chat-button-size) - 1.25rem);
  }

  .admin-chat-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .admin-view[data-view-panel="chat"] .panel {
    height: auto;
    min-height: 0;
  }

  .room-list-panel {
    position: relative;
    overflow: visible;
  }

  .room-list-title {
    padding: 10px 12px;
  }

  #rooms {
    display: grid;
    gap: 8px;
    height: auto;
    max-height: 23rem;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
  }

  .conversation-panel {
    min-height: 440px;
  }

  .room {
    width: 100%;
    margin-bottom: 0;
  }

  .image-upload-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium admin console theme */
.admin-page {
  background:
    radial-gradient(circle at 8% 8%, rgba(159, 182, 241, 0.24), transparent 30%),
    linear-gradient(135deg, #f7f3ec 0%, #fbfaf7 46%, #eef3ff 100%);
}

.admin-page .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 22px;
  border-right: 1px solid rgba(190, 179, 162, 0.42);
  background: rgba(255, 250, 242, 0.84);
  box-shadow: 14px 0 34px rgba(61, 52, 39, 0.06);
  backdrop-filter: blur(18px);
}

.admin-brand-block {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(109, 44, 164, 0.12);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f6efff);
  box-shadow: 0 16px 34px rgba(109, 44, 164, 0.08);
}

.admin-brand-block .brand {
  color: #351b59;
  font-size: 18px;
}

.admin-brand-block p {
  margin: 8px 0 0;
  color: #7a7186;
  font-size: 13px;
  font-weight: 700;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav.hidden {
  display: none;
}

.admin-nav-button {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #6f667a;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.admin-nav-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 4px;
  border-radius: 999px;
  background: transparent;
}

.admin-nav-button:hover {
  border-color: rgba(109, 44, 164, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: #351b59;
}

.admin-nav-button.active {
  border-color: rgba(109, 44, 164, 0.16);
  background: linear-gradient(135deg, #ffffff, #f4efff);
  color: #351b59;
  box-shadow: 0 12px 26px rgba(109, 44, 164, 0.1);
}

.admin-nav-button.active::before {
  background: #7b61c8;
}

.admin-view {
  min-width: 0;
}

.admin-page .main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.color-setting-row {
  display: grid;
  grid-template-columns: 1fr 64px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d9d1c4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #292724;
  font-size: 14px;
  font-weight: 800;
}

.color-setting-row input {
  width: 64px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(222, 216, 204, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(54, 49, 40, 0.08);
  backdrop-filter: blur(16px);
}

.admin-page-header h2 {
  margin: 4px 0 0;
  color: #171421;
  font-size: 27px;
  letter-spacing: 0;
}

.eyebrow {
  color: #7b61c8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(37, 195, 90, 0.22);
  border-radius: 999px;
  background: #effbf4;
  color: #17783a;
  font-size: 13px;
  font-weight: 900;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25c35a;
  box-shadow: 0 0 0 4px rgba(37, 195, 90, 0.14);
}

.admin-page .panel {
  padding: 20px;
  border: 1px solid rgba(222, 216, 204, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(54, 49, 40, 0.08);
  backdrop-filter: blur(14px);
}

.admin-page .panel h2 {
  margin-bottom: 16px;
  color: #171421;
  font-size: 18px;
}

.admin-page .field,
.admin-page .admin-form input {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #171421;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-page .field:focus,
.admin-page .admin-form input:focus {
  border-color: #9f7aea;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(159, 122, 234, 0.14);
}

.admin-page .admin-button,
.admin-page .admin-form button {
  border-radius: 10px;
  background: linear-gradient(135deg, #31233f, #171421);
  box-shadow: 0 10px 22px rgba(23, 20, 33, 0.16);
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

.admin-page .admin-form .icon-button {
  border: 1px solid #d9d1c4;
  background: #ffffff;
  color: #746f66;
  box-shadow: none;
}

.admin-page .admin-form .icon-button:hover:not(:disabled) {
  background: #f7f8fb;
  color: #31233f;
  box-shadow: none;
}

.admin-page .admin-form #adminSendButton {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #8faaf0, #6f8fe8);
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(99, 127, 210, 0.26);
}

.admin-page .admin-form #adminSendButton:hover:not(:disabled) {
  transform: translateY(-0.0625rem);
  box-shadow: 0 14px 26px rgba(99, 127, 210, 0.32);
}

.admin-page .admin-form #adminSendButton:disabled {
  cursor: not-allowed;
  background: #d8dce8;
  color: #9aa0b2;
  box-shadow: none;
  opacity: 1;
}

.admin-page .admin-button:hover,
.admin-page .admin-form button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(23, 20, 33, 0.2);
}

.admin-page .landing-image-form,
.admin-page .room-list-panel {
  border-color: rgba(222, 216, 204, 0.82);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf2, #ffffff);
}

.admin-page .landing-upload-preview .landing-image-form {
  background: rgba(255, 255, 255, 0.84);
}

.admin-page .current-file {
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
}

.admin-page .conversation-panel {
  border-color: rgba(222, 216, 204, 0.82);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.admin-page .conversation-panel .messages {
  background:
    radial-gradient(circle at 8% 0%, rgba(159, 182, 241, 0.1), transparent 28%),
    #fbfbfd;
}

.admin-page .room {
  border-radius: 12px;
}

.admin-page .room.active {
  background: linear-gradient(135deg, #eef1fb, #ffffff);
  box-shadow: 0 10px 24px rgba(99, 127, 210, 0.14);
}

.admin-page .room.active .room-avatar {
  background: linear-gradient(145deg, #8faaf0, #7b61c8);
  color: white;
}

@media (max-width: 760px) {
  .admin-page .sidebar {
    position: static;
    height: auto;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-nav-button {
    min-height: 44px;
    padding: 0 12px;
    text-align: center;
  }

  .admin-nav-button::before {
    left: 18px;
    right: 18px;
    top: auto;
    bottom: 0;
    width: auto;
    height: 3px;
  }

  .admin-page .main {
    padding: 16px;
  }

  .admin-page-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* Rice order system */
.rice-body {
  margin: 0;
  background: #f5f6f2;
  color: #1d211b;
  font-family: Arial, "Noto Sans KR", sans-serif;
}

.rice-app,
.admin-rice-shell {
  min-height: 100vh;
}

.rice-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border-bottom: 1px solid #dfe4dc;
}

.rice-brand,
.rice-link-button,
.rice-tabs button,
.admin-rice-nav button {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rice-tabs {
  display: flex;
  flex: 1;
  gap: 4px;
  overflow-x: auto;
}

.rice-tabs button,
.admin-rice-nav button {
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef2ea;
  white-space: nowrap;
}

.rice-page {
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 80px;
}

.rice-section h1 {
  margin: 0 0 16px;
  font-size: 24px;
}

.intro-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(137, 161, 78, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
  box-shadow: 0 16px 36px rgba(137, 153, 88, 0.09);
}

.intro-hero img {
  display: block;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.intro-hero h2 {
  margin: 8px 0 10px;
  color: #151a17;
  font-size: 28px;
  line-height: 1.25;
}

.intro-hero p {
  margin: 0;
  color: #66706a;
  line-height: 1.7;
}

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

.intro-card,
.intro-process {
  border: 1px solid rgba(143, 164, 91, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 252, 0.98);
  box-shadow: 0 16px 36px rgba(137, 153, 88, 0.09);
}

.intro-card {
  padding: 18px;
}

.intro-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff9df;
  color: #40713f;
  font-size: 12px;
  font-weight: 900;
}

.intro-card h2,
.intro-process h2 {
  margin: 0 0 8px;
  color: #151a17;
  font-size: 18px;
}

.intro-card p {
  margin: 0;
  color: #66706a;
  line-height: 1.65;
}

.intro-process {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
}

.intro-process ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro-process li {
  min-width: 0;
  padding: 14px;
  border-radius: 8px;
  background: #f8fbef;
}

.intro-process strong,
.intro-process span {
  display: block;
}

.intro-process strong {
  margin-bottom: 6px;
  color: #1f4736;
  font-size: 14px;
}

.intro-process span {
  color: #66706a;
  font-size: 13px;
  line-height: 1.55;
}

.intro-title-panel {
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid rgba(137, 161, 78, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 104, 71, 0.94), rgba(111, 152, 82, 0.9)),
    url("/intro/1.jpg") center/cover;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(93, 132, 67, 0.18);
}

.intro-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 440px);
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid #dbe3d5;
  border-radius: 8px;
  background: #f4f6f1;
}

.intro-view-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #596159;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.intro-view-tabs button.is-active {
  background: #ffffff;
  color: #174f35;
  box-shadow: 0 2px 8px rgba(29, 54, 38, 0.1);
}

.intro-view-tabs button:focus-visible {
  outline: 3px solid rgba(196, 150, 59, 0.32);
  outline-offset: 2px;
}

.intro-title-panel .rice-kicker {
  color: #fff4ca;
}

.intro-title-panel h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.28;
}

.intro-title-panel p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.intro-story-list {
  display: grid;
  gap: 14px;
}

.intro-story-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(143, 164, 91, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 252, 0.98);
  box-shadow: 0 16px 36px rgba(137, 153, 88, 0.09);
}

.intro-story-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.18fr) minmax(220px, 0.82fr);
}

.intro-story-card:nth-child(even) img {
  order: 2;
}

.intro-story-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef3e7;
}

.intro-story-card > div {
  min-width: 0;
  padding: 8px 4px;
}

.intro-story-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eff9df;
  color: #40713f;
  font-size: 12px;
  font-weight: 900;
}

.intro-story-card h2 {
  margin: 0 0 10px;
  color: #151a17;
  font-size: 21px;
}

.intro-story-card p,
.intro-story-card li {
  color: #4f5c53;
  font-size: 15px;
  line-height: 1.75;
}

.intro-story-card p {
  margin: 0 0 10px;
}

.intro-story-card p:last-child {
  margin-bottom: 0;
}

.intro-story-card ul {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding-left: 18px;
}

.intro-story-card strong {
  color: #1f4736;
}

.cultivar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  min-height: 430px;
  margin-bottom: 48px;
  overflow: hidden;
  border: 1px solid #dfe3dc;
  border-radius: 8px;
  background: #f8f8f5;
}

.cultivar-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 62px);
}

.cultivar-eyebrow,
.cultivar-section-heading > span,
.cultivar-award > div > span {
  color: #a2762b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cultivar-hero h2 {
  margin: 10px 0 14px;
  color: #16251c;
  font-size: 44px;
  line-height: 1.12;
}

.cultivar-lead {
  max-width: 600px;
  margin: 0;
  color: #4d5851;
  font-size: 17px;
  line-height: 1.8;
}

.cultivar-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid #d8ddd6;
}

.cultivar-facts div:last-child {
  grid-column: 1 / -1;
}

.cultivar-facts dt {
  margin-bottom: 5px;
  color: #7a827c;
  font-size: 12px;
}

.cultivar-facts dd {
  margin: 0;
  color: #1c2c22;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.cultivar-hero-media {
  position: relative;
  min-width: 0;
  margin: 0;
  background: #ecebe4;
}

.cultivar-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.cultivar-hero-media figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 9px 11px;
  border-radius: 5px;
  background: rgba(19, 29, 23, 0.78);
  color: #ffffff;
  font-size: 11px;
  line-height: 1.45;
}

.cultivar-section {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  padding: 42px 0;
  border-top: 1px solid #dfe3dc;
}

.cultivar-section-heading h2,
.cultivar-award h2 {
  margin: 9px 0 0;
  color: #18251d;
  font-size: 25px;
  line-height: 1.3;
}

.cultivar-origin-copy {
  columns: 2;
  column-gap: 34px;
}

.cultivar-origin-copy p {
  break-inside: avoid;
  margin: 0;
  color: #4e5a52;
  font-size: 15px;
  line-height: 1.85;
}

.cultivar-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e0e3dc;
  border-radius: 8px;
  background: #e0e3dc;
}

.cultivar-quality-grid article {
  min-height: 170px;
  padding: 24px;
  background: #ffffff;
}

.cultivar-quality-grid strong {
  display: block;
  margin-bottom: 12px;
  color: #215139;
  font-size: 17px;
}

.cultivar-quality-grid p {
  margin: 0;
  color: #5d675f;
  font-size: 14px;
  line-height: 1.75;
}

.cultivar-award {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin: 18px 0 46px;
  padding: 30px 34px;
  border-left: 4px solid #c4963b;
  background: #f4f1e9;
}

.cultivar-award-year {
  color: #174f35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  line-height: 1;
}

.cultivar-award p {
  margin: 10px 0 0;
  color: #596159;
  font-size: 14px;
  line-height: 1.7;
}

.cultivar-sources {
  padding: 24px 0 8px;
  border-top: 1px solid #dfe3dc;
}

.cultivar-sources h2 {
  margin: 0 0 14px;
  color: #39433c;
  font-size: 15px;
}

.cultivar-sources > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.cultivar-sources a {
  color: #285b40;
  font-size: 12px;
  text-underline-offset: 3px;
}

.cultivar-sources p {
  margin: 12px 0 0;
  color: #7b827d;
  font-size: 11px;
}

.rice-form {
  display: grid;
  gap: 10px;
}

.rice-page .rice-section > .rice-form {
  padding: 16px;
  border: 1px solid rgba(31, 35, 28, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(32, 34, 29, 0.07);
}

.rice-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px 96px;
  gap: 8px;
  margin-bottom: 14px;
}

.rice-field {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cfd7ca;
  border-radius: 8px;
  background: #ffffff;
  font-size: 16px;
}

.rice-primary,
.rice-secondary {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.rice-primary {
  background: #2f6b2f;
  color: #ffffff;
}

.rice-secondary {
  background: #e6ebdf;
  color: #243024;
}

.rice-list {
  display: grid;
  gap: 12px;
}

.rice-card {
  padding: 14px;
  border: 1px solid #dfe4dc;
  border-radius: 8px;
  background: #ffffff;
}

.product-card,
.product-admin-card {
  display: grid;
  grid-template-columns: 84px 1fr 72px;
  gap: 12px;
  align-items: center;
}

.product-card img,
.product-admin-card img {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef2ea;
}

.product-card h2,
.product-admin-card h2,
.rice-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.product-card p,
.product-admin-card p,
.rice-card p {
  margin: 0 0 8px;
  color: #626a5e;
}

.rice-qty {
  width: 72px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid #cfd7ca;
  border-radius: 8px;
  font-size: 16px;
}

.sticky-action {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  width: calc(100% - 24px);
}

.wechat-qr {
  display: block;
  width: min(240px, 100%);
  margin: 12px 0;
  border-radius: 8px;
}

.admin-rice-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.admin-rice-sidebar {
  padding: 16px;
  background: #ffffff;
  border-right: 1px solid #dfe4dc;
}

.admin-rice-shell > .rice-page {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 32px;
}

.admin-rice-shell > .rice-page .rice-section {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
}

.admin-rice-nav {
  display: grid;
  gap: 8px;
}

.rice-table,
.rice-row {
  display: grid;
  gap: 8px;
}

.rice-row {
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  padding: 12px;
  border: 1px solid #dfe4dc;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.admin-order-card {
  cursor: pointer;
}

.admin-order-card:hover {
  border-color: #b8c5ad;
  box-shadow: 0 16px 38px rgba(32, 34, 29, 0.1);
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 22, 16, 0.48);
}

.admin-order-modal {
  width: min(820px, 100%);
  max-height: min(780px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 8px;
  background: #f8f8f5;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.admin-modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid #e2e7dd;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.admin-modal-header h2 {
  margin: 0;
  font-size: 22px;
}

.modal-close-button {
  width: 36px;
  height: 36px;
  border: 1px solid #dfe4dc;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2a1b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 14px 0;
}

.modal-panel {
  margin: 14px;
  padding: 14px;
  border: 1px solid #e2e7dd;
  border-radius: 8px;
  background: #ffffff;
}

.modal-detail-grid .modal-panel {
  margin: 0;
}

.modal-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.modal-info-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.modal-info-list div,
.modal-item-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.modal-info-list dt {
  color: #747b70;
  font-size: 13px;
  font-weight: 700;
}

.modal-info-list dd {
  min-width: 0;
  margin: 0;
  color: #1d211b;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.modal-item-list {
  display: grid;
  gap: 8px;
}

.modal-item-row {
  grid-template-columns: minmax(0, 1fr) 120px 70px 120px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0ea;
}

.modal-item-row span,
.modal-item-row strong {
  overflow-wrap: anywhere;
}

.modal-total-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 120px;
  gap: 12px;
  align-items: end;
}

.modal-total-panel > div span {
  display: block;
  margin-bottom: 5px;
  color: #747b70;
  font-size: 13px;
  font-weight: 700;
}

.modal-total-panel > div strong {
  font-size: 22px;
}

.rice-muted {
  color: #6c7468;
}

.rice-error {
  padding: 16px;
  color: #8a1f1f;
}

.hidden {
  display: none !important;
}

.admin-search-panel {
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(176, 190, 197, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(37, 54, 70, 0.08);
}

.admin-grid-card {
  grid-row: 3;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid rgba(176, 190, 197, 0.9);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 54, 70, 0.08);
}

.admin-detail-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.admin-detail-toolbar .rice-secondary {
  min-width: 96px;
  padding: 0 14px;
}

.admin-user-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.admin-detail-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(176, 190, 197, 0.9);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 54, 70, 0.08);
}

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

.admin-user-summary-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.admin-user-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #eff6f9, #d9e7ee);
  color: #244050;
  font-size: 30px;
  font-weight: 900;
}

.admin-user-summary {
  min-width: 0;
}

.admin-user-summary h2 {
  margin: 4px 0 4px;
  color: #172d39;
  font-size: 24px;
  line-height: 1.2;
}

.admin-user-summary p {
  margin: 0 0 10px;
  color: #647886;
  font-size: 14px;
}

.admin-detail-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e8ed;
}

.admin-detail-card__head h3 {
  margin: 0;
  color: #233843;
  font-size: 16px;
}

.admin-detail-card__head span {
  color: #708390;
  font-size: 12px;
  font-weight: 700;
}

.admin-status-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
}

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

.admin-address-row,
.admin-order-summary-row {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e0e8ed;
  border-radius: 8px;
  background: #fbfdfe;
}

.admin-address-row strong,
.admin-order-summary-row strong {
  min-width: 0;
  color: #263943;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-address-row span,
.admin-order-summary-row span {
  min-width: 0;
  color: #647886;
  font-size: 13px;
  overflow-wrap: anywhere;
}

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

.admin-order-summary-row > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-order-summary-row b {
  color: #1f4736;
  white-space: nowrap;
}

.admin-detail-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #cbd8df;
  border-radius: 8px;
  background: #fbfdfe;
  color: #708390;
  font-weight: 700;
  text-align: center;
}

.grid-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid #d8e1e8;
  background: linear-gradient(180deg, rgba(250, 252, 253, 0.98), rgba(239, 244, 247, 0.96));
  color: #263238;
  font-size: 12px;
}

.grid-top-bar strong {
  color: #263238;
  font-size: 13px;
  font-weight: 800;
}

.grid-top-bar__summary {
  color: #526775;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.grid-top-bar__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-ag-grid {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #f5f5f5;
  box-shadow: inset 0 1px 0 #ffffff;
  --ag-font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ag-font-size: 13px;
  --ag-cell-horizontal-padding: 15px;
  --ag-border-color: transparent;
  --ag-row-border-width: 0;
  --ag-header-column-separator-display: none;
  --ag-header-column-resize-handle-display: none;
  --ag-header-cell-hover-background-color: transparent;
}

.admin-ag-grid .ag-root-wrapper {
  min-height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-ag-grid .ag-header {
  background: linear-gradient(to bottom, #cfd8dc, #b0bec5) !important;
  border-top: 1px solid #cfd8dc !important;
  border-bottom: 1px solid #90a4ae !important;
}

.admin-ag-grid .ag-header-cell {
  padding: 0 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-right: 1px solid #90a4ae !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #263238 !important;
  font-weight: 700;
}

.admin-ag-grid .ag-header-cell-label {
  justify-content: center !important;
  color: #263238;
  font-weight: 700;
}

.admin-ag-grid .ag-header-cell::after,
.admin-ag-grid .ag-header-cell-resize::after,
.admin-ag-grid .ag-divider,
.admin-ag-grid .ag-header-separator {
  display: none !important;
}

.admin-ag-grid .ag-row {
  color: #333333 !important;
  background: #fafafa !important;
  border-top: 1px solid #ffffff !important;
  border-bottom: 1px solid #e8e8e8 !important;
  transition: all 300ms;
}

.admin-ag-grid .ag-row-odd {
  background: #f1f1f1 !important;
}

.admin-ag-grid .ag-row.ag-row-hover {
  background: #fafafa !important;
  box-shadow: none;
}

.admin-ag-grid .ag-row-odd.ag-row-hover {
  background: #f1f1f1 !important;
}

.admin-ag-grid .ag-cell {
  display: flex;
  align-items: center;
  border-left: 1px solid #e8e8e8 !important;
  border-right: 1px solid #ffffff !important;
  line-height: 1.45;
  white-space: nowrap;
  transition: all 300ms;
}

.admin-ag-grid .ag-cell-value,
.admin-ag-grid .ag-cell-wrapper {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  word-break: normal;
  overflow-wrap: normal;
}

.admin-ag-grid .ag-row {
  min-height: 45px;
}

.admin-ag-grid .ag-cell:first-child {
  box-shadow: inset 1px 0 0 #ffffff;
}

.admin-ag-grid .ag-cell:last-child {
  border-right: 1px solid #e8e8e8 !important;
  box-shadow: inset -1px 0 0 #ffffff;
}

.admin-grid-empty {
  color: #708390;
  font-size: 13px;
  font-weight: 700;
}

.grid-thumb {
  display: block;
  width: 38px;
  height: 38px;
  border: 1px solid #d7e0e7;
  border-radius: 8px;
  object-fit: cover;
  background: #f2f6f9;
}

.admin-ag-grid .ag-cell.grid-thumb-cell {
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
}

.admin-ag-grid .ag-cell.grid-select-cell {
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.admin-ag-grid .ag-cell.grid-nowrap-cell,
.admin-ag-grid .ag-cell.grid-nowrap-cell .ag-cell-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  word-break: normal;
}

.grid-status-badge,
.grid-inline-select,
.grid-action-button {
  white-space: nowrap;
}

.admin-grid-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border-top: 1px solid #dde5eb;
  background: #ffffff;
  color: #607482;
  font-size: 12px;
}

.admin-grid-footer__status,
.admin-grid-footer__pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-page-size-input {
  width: 70px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #d8e1e8;
  border-radius: 4px;
  background: #f8fafc;
  color: #263238;
  font: inherit;
  text-align: center;
}

.admin-grid-footer__pager button {
  min-width: 34px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #d8e1e8;
  border-radius: 4px;
  background: #f8fafc;
  color: #27528d;
  font: inherit;
  font-weight: 700;
}

.admin-grid-footer__pager button:disabled {
  color: #9aabb8;
  background: #f4f7f9;
  opacity: 1;
}

.admin-grid-footer__pager span {
  min-width: 54px;
  color: #526775;
  font-weight: 700;
  text-align: center;
}

.grid-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 5px 9px;
  border: 1px solid #c9d7cf;
  border-radius: 999px;
  background: #eef7f0;
  color: #2f6b43;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.grid-status-badge--SUSPENDED,
.grid-status-badge--STOPPED,
.grid-status-badge--주문취소 {
  border-color: #e0c6c6;
  background: #fff1f1;
  color: #9a3b3b;
}

.grid-status-badge--WITHDRAWN {
  border-color: #d4d9de;
  background: #f1f4f6;
  color: #64717a;
}

.grid-status-badge--입금대기중 {
  border-color: #e4d5ac;
  background: #fff8e6;
  color: #8a6515;
}

.grid-status-badge--배송중 {
  border-color: #bbd4ef;
  background: #edf6ff;
  color: #285d93;
}

.grid-status-badge--배송완료 {
  border-color: #bad8c4;
  background: #effaf2;
  color: #31704a;
}

.grid-inline-select {
  width: 100%;
  max-width: 104px;
  min-height: 28px;
  padding: 3px 24px 3px 8px;
  border: 1px solid #c7d3dc;
  border-radius: 4px;
  background: #ffffff;
  color: #263844;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  outline: none;
}

.grid-inline-select:focus {
  border-color: #6f99bf;
  box-shadow: 0 0 0 3px rgba(91, 134, 176, 0.16);
}

.grid-action-button {
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid #173d74;
  border-radius: 4px;
  background: linear-gradient(180deg, #23539a, #1b4785);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.grid-action-button:hover {
  border-color: #133664;
  background: linear-gradient(180deg, #1f4b8b, #173d74);
}

.row-status-suspended,
.row-status-stopped,
.row-status-주문취소 {
  color: #7a5960;
}

.row-status-withdrawn {
  color: #7a858c;
}

.admin-modal-backdrop {
  background: rgba(24, 36, 47, 0.46);
}

.admin-order-modal {
  border: 1px solid #90a4ae;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(21, 37, 50, 0.32);
}

.admin-modal-header {
  min-height: 54px;
  padding: 8px 14px;
  border-bottom: 1px solid #b0bec5;
  background: linear-gradient(180deg, #f7fafc 0%, #dfe8ee 100%);
  color: #263943;
  cursor: move;
  user-select: none;
}

.admin-order-modal.is-dragging {
  box-shadow: 0 28px 72px rgba(21, 37, 50, 0.42);
}

.admin-modal-header .modal-close-button {
  cursor: pointer;
}

.admin-modal-header h2 {
  color: #233843;
  font-size: 19px;
}

.admin-modal-header .rice-kicker {
  color: #66808f;
  letter-spacing: 0;
}

.modal-close-button {
  width: 32px;
  height: 32px;
  border: 1px solid #aabac4;
  border-radius: 7px;
  background: #ffffff;
  color: #304752;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(36, 52, 64, 0.12);
}

.modal-close-button:hover {
  background: #edf4f8;
}

.modal-panel {
  border-color: #d6e0e6;
  border-radius: 8px;
  background: #fbfdfe;
}

.admin-product-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(820px, calc(100vw - 36px));
  max-width: 820px;
  height: min(900px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  overflow: hidden;
}

.product-modal-form {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  padding: 16px 18px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.product-image-panel,
.product-info-panel {
  min-width: 0;
  padding: 16px;
  border-radius: 8px;
}

.product-modal-preview {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  margin-bottom: 14px;
  border: 1px solid #d7e0e7;
  border-radius: 8px;
  object-fit: cover;
  background: #f2f6f9;
}

.product-image-panel input[type="file"].rice-field {
  min-height: 46px;
  padding: 8px;
  font-size: 14px;
}

.product-image-panel .rice-muted {
  margin: 8px 0 0;
  color: #708390;
  font-size: 12px;
  line-height: 1.5;
}

.product-info-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.product-info-panel h3,
.product-image-panel h3 {
  margin: 0 0 10px;
  color: #172d39;
  font-size: 16px;
}

.product-info-panel .rice-label {
  gap: 7px;
}

.product-info-panel .rice-label span {
  color: #4d606b;
  font-size: 12px;
  font-weight: 800;
}

.product-info-panel .rice-field {
  min-height: 48px;
  border-color: #d5e0d8;
  background: #ffffff;
}

.product-info-panel textarea.rice-field {
  min-height: 98px;
  resize: vertical;
}

.product-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e0e8ed;
}

.product-modal-actions button {
  min-width: 112px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 850;
}

@media (max-width: 760px) {
  .admin-rice-shell {
    display: block;
  }

  .admin-rice-sidebar {
    border-right: 0;
    border-bottom: 1px solid #dfe4dc;
  }

  .product-card,
  .product-admin-card {
    grid-template-columns: 72px 1fr;
  }

  .rice-qty,
  .product-status {
    grid-column: 1 / -1;
    width: 100%;
  }

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

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

  .admin-rice-shell > .rice-page {
    padding: 18px 12px 32px;
  }

  .admin-rice-shell > .rice-page .rice-section {
    min-height: auto;
  }

  .admin-user-detail,
  .admin-status-editor,
  .admin-order-summary-row {
    grid-template-columns: 1fr;
  }

  .admin-detail-card--wide {
    grid-column: auto;
  }

  .admin-detail-toolbar {
    justify-content: stretch;
  }

  .admin-detail-toolbar .rice-secondary {
    width: 100%;
  }

  .modal-detail-grid,
  .modal-total-panel,
  .modal-item-row,
  .product-modal-form,
  .product-modal-actions {
    grid-template-columns: 1fr;
  }

  .product-modal-form {
    padding: 14px;
  }

  .admin-product-modal {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .product-modal-actions {
    justify-content: stretch;
    margin-top: 2px;
    padding-top: 12px;
  }

  .product-modal-actions button {
    flex: 1 1 0;
    min-width: 0;
  }

  .admin-modal-backdrop {
    padding: 10px;
  }
}

/* Minimal Korean commerce styling for the user order flow */
.rice-app {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, #faf9f5 0%, #f4f3ef 42%, #ffffff 100%);
  color: #171915;
}

.rice-topbar {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(25, 28, 22, 0.08);
  box-shadow: 0 12px 30px rgba(24, 28, 20, 0.05);
}

.rice-brand {
  min-width: max-content;
  padding: 8px 0;
  font-size: 17px;
  letter-spacing: 0;
}

.rice-link-button {
  min-width: max-content;
  padding: 9px 12px;
  border: 1px solid #d7ddd1;
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
}

.rice-tabs button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #5f665a;
  font-size: 13px;
}

.rice-tabs button:hover {
  border-color: #d7ddd1;
  background: #f6f7f3;
  color: #171915;
}

.rice-page {
  width: min(720px, calc(100% - 32px));
  padding: 28px 0 118px;
}

.rice-title-row {
  margin-bottom: 18px;
}

.rice-kicker {
  display: block;
  margin-bottom: 6px;
  color: #7a6a43;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rice-section h1 {
  margin: 0;
  color: #171915;
  font-size: 28px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0;
}

.rice-subtitle {
  margin: -6px 0 18px;
  color: #697065;
  font-size: 14px;
  line-height: 1.55;
}

.rice-list {
  gap: 14px;
}

.rice-card {
  border: 1px solid rgba(31, 35, 28, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(32, 34, 29, 0.07);
}

.product-list {
  padding-bottom: 10px;
}

.product-card {
  grid-template-columns: 104px minmax(0, 1fr) 76px;
  gap: 16px;
  align-items: stretch;
  padding: 12px;
}

.product-thumb {
  width: 104px;
  height: 104px;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f2ed;
}

.product-card img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.product-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: 82px;
  overflow: hidden;
}

.product-tag {
  width: fit-content;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3e7;
  color: #47623b;
  font-size: 11px;
  font-weight: 800;
}

.product-card h2,
.rice-card h2 {
  margin: 0 0 6px;
  color: #181b16;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0;
}

.product-card p,
.rice-card p {
  margin: 0 0 10px;
  color: #747b70;
  font-size: 13px;
  line-height: 1.45;
}

.product-card strong {
  color: #1f251d;
  font-size: 17px;
}

.quantity-box {
  display: grid;
  align-content: center;
  gap: 8px;
}

.quantity-box span,
.rice-label span {
  color: #697065;
  font-size: 12px;
  font-weight: 800;
}

.rice-qty,
.rice-field {
  border: 1px solid #dde2d8;
  border-radius: 8px;
  background: #fbfcfa;
  color: #171915;
  outline: none;
}

.rice-field {
  min-height: 48px;
  padding: 12px 14px;
}

.rice-qty {
  width: 76px;
  min-height: 42px;
  text-align: center;
}

.rice-field:focus,
.rice-qty:focus {
  border-color: #8aa071;
  box-shadow: 0 0 0 3px rgba(118, 147, 91, 0.16);
}

.rice-label {
  display: grid;
  gap: 7px;
}

.order-form-card {
  padding: 16px;
}

.address-section {
  margin-top: 18px;
}

.address-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.address-section-header h2 {
  margin: 0;
  color: #171915;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
}

.address-section-header > span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef3e7;
  color: #47623b;
  font-size: 12px;
  font-weight: 800;
}

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

.address-new-button {
  width: 100%;
  margin-bottom: 10px;
}

.address-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(31, 35, 28, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 35, 28, 0.06);
}

.address-card.is-editing {
  border-color: #8aa071;
  box-shadow: 0 0 0 3px rgba(118, 147, 91, 0.16);
}

.address-card-main {
  min-width: 0;
}

.address-person-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 7px;
}

.address-person-row strong {
  color: #171915;
  font-size: 15px;
}

.address-person-row span {
  color: #697065;
  font-size: 13px;
  font-weight: 700;
}

.address-person-row em {
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff5dc;
  color: #8a6515;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.address-card p {
  margin: 0;
  color: #33382f;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.address-edit-button {
  min-height: 38px;
}

.address-empty {
  color: #697065;
  font-size: 14px;
}

.address-helper {
  margin: -2px 0 10px;
  color: #747b70;
  font-size: 13px;
  line-height: 1.5;
}

.address-form-card {
  margin-top: 0;
}

.address-form-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.rice-primary,
.rice-secondary {
  min-height: 48px;
  border-radius: 8px;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.rice-primary {
  background: #1f2a1b;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(31, 42, 27, 0.16);
}

.rice-primary:hover {
  background: #304026;
  transform: translateY(-1px);
}

.rice-secondary {
  border: 1px solid #dfe4dc;
  background: #ffffff;
  color: #252a22;
}

.order-cta-bar {
  position: fixed;
  right: max(16px, calc((100vw - 720px) / 2));
  bottom: 16px;
  left: max(16px, calc((100vw - 720px) / 2));
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(31, 35, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(31, 35, 28, 0.16);
  backdrop-filter: blur(18px);
}

.order-cta-bar span {
  display: block;
  margin-bottom: 3px;
  color: #7b8277;
  font-size: 12px;
  font-weight: 700;
}

.order-cta-bar strong {
  display: block;
  color: #171915;
  font-size: 16px;
}

.order-cta-bar em {
  display: block;
  margin-top: 3px;
  color: #1f2a1b;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.complete-card {
  padding: 20px;
}

.complete-mark {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3e7;
  color: #47623b;
  font-size: 12px;
  font-weight: 800;
}

.order-detail-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.order-detail-list div,
.order-item-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0ea;
}

.order-detail-list dt {
  color: #747b70;
  font-size: 13px;
}

.order-detail-list dd {
  margin: 0;
  font-weight: 800;
}

.order-item-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.wechat-card {
  margin-top: 14px;
  text-align: center;
}

.wechat-qr {
  margin: 14px auto;
  box-shadow: 0 14px 32px rgba(31, 35, 28, 0.12);
}

.status-badge {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef3e7;
  color: #47623b;
  font-size: 12px;
  font-weight: 800;
}

.order-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

@media (max-width: 640px) {
  .rice-topbar {
    align-items: stretch;
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .rice-brand {
    flex: 1;
  }

  .rice-tabs {
    order: 3;
    flex-basis: 100%;
    padding-top: 2px;
  }

  .rice-page {
    width: min(100% - 24px, 720px);
    padding-top: 22px;
  }

  .rice-section h1 {
    font-size: 24px;
  }

  .intro-hero,
  .intro-grid,
  .intro-process ol,
  .intro-story-card,
  .intro-story-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .intro-story-card:nth-child(even) img {
    order: 0;
  }

  .intro-hero {
    padding: 14px;
  }

  .intro-hero h2 {
    font-size: 22px;
  }

  .intro-title-panel {
    padding: 18px;
  }

  .intro-title-panel h2 {
    font-size: 23px;
  }

  .intro-story-card img {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

  .product-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .product-thumb {
    width: 88px;
    height: 88px;
  }

  .quantity-box {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 112px;
    align-items: center;
  }

  .address-card {
    grid-template-columns: 1fr;
  }

  .address-edit-button {
    width: 100%;
  }

  .rice-qty {
    width: 100%;
  }

  .order-cta-bar {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr 116px;
  }

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

/* Polished Korean commerce experience */
.rice-app {
  background:
    radial-gradient(circle at top left, rgba(255, 214, 121, 0.22), transparent 34%),
    linear-gradient(180deg, #fffdf5 0%, #f8fbef 42%, #ffffff 100%);
  color: #151a17;
}

.rice-topbar {
  gap: 12px;
  padding: 14px max(18px, calc((100vw - 980px) / 2));
  background: rgba(255, 255, 251, 0.94);
  border-bottom: 1px solid rgba(165, 181, 95, 0.18);
  box-shadow: 0 16px 34px rgba(128, 143, 78, 0.1);
}

.rice-brand {
  position: relative;
  padding-left: 38px;
  color: #14231c;
  font-size: 18px;
  font-weight: 900;
}

.rice-brand::before {
  content: "🌾";
  position: absolute;
  left: 0;
  top: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #5f8f55, #2f6847);
  color: #ffffff;
  font-size: 14px;
  transform: translateY(-50%);
  box-shadow: 0 10px 20px rgba(65, 121, 76, 0.18);
}

.rice-tabs {
  justify-content: center;
  gap: 6px;
}

.rice-tabs button {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 8px;
  color: #58635e;
  font-weight: 850;
}

.rice-tabs button.is-active,
.rice-tabs button:hover {
  border-color: rgba(107, 142, 55, 0.18);
  background: #f0fae8;
  color: #2f6847;
  box-shadow: inset 0 0 0 1px rgba(107, 142, 55, 0.06);
}

.rice-link-button {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 8px;
  border-color: #d9e1da;
  color: #1f4736;
  font-weight: 850;
}

.rice-link-button.is-logged-in {
  border-color: rgba(190, 72, 72, 0.18);
  background: #fff4f1;
  color: #a83c30;
}

.rice-page {
  width: min(860px, calc(100% - 32px));
  padding-top: 34px;
}

.rice-title-row {
  margin-bottom: 16px;
}

.rice-kicker {
  color: #bf6a2a;
}

.rice-section h1 {
  font-size: 31px;
  letter-spacing: 0;
}

.rice-subtitle {
  max-width: 640px;
  color: #66706a;
}

.shop-hero-panel {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(130, 157, 74, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #4f8a4f 0%, #6f9852 56%, #f4c96a 150%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(93, 132, 67, 0.18);
}

.shop-hero-panel span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff4ca;
  font-size: 12px;
  font-weight: 900;
}

.shop-hero-panel strong {
  font-size: 22px;
  line-height: 1.34;
}

.shop-hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.rice-card {
  border-color: rgba(143, 164, 91, 0.15);
  background: rgba(255, 255, 252, 0.98);
  box-shadow: 0 16px 36px rgba(137, 153, 88, 0.09);
}

.product-card {
  grid-template-columns: 82px minmax(0, 1fr) 102px;
  gap: 12px;
  position: relative;
  overflow: hidden;
  padding: 10px;
  background: #fffef9;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 3px solid #f2c45b;
  opacity: 0;
  transition: opacity 160ms ease;
}

.product-card:hover::after {
  opacity: 1;
}

.product-thumb {
  width: 82px;
  height: 82px;
  background: #f7f3df;
}

.product-tag,
.complete-mark,
.status-badge,
.address-section-header > span {
  background: #eff9df;
  color: #40713f;
}

.product-card h2,
.rice-card h2 {
  color: #151a17;
  font-weight: 900;
}

.product-card h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-title-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin-bottom: 3px;
}

.product-card p {
  display: -webkit-box;
  margin-bottom: 0;
  line-height: 1.25;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.product-tag {
  margin-bottom: 4px;
  padding: 2px 7px;
}

.product-card strong {
  color: #c25d35;
  font-weight: 900;
  white-space: nowrap;
}

.product-list {
  gap: 10px;
}

.quantity-box {
  align-content: center;
  align-self: stretch;
  justify-items: end;
  gap: 0;
}

.rice-field,
.rice-qty {
  border-color: #dce4dd;
  background: #fcfdfb;
}

.rice-field:hover,
.rice-qty:hover {
  border-color: #c9d8cf;
}

.rice-field:focus,
.rice-qty:focus {
  border-color: #1f7a55;
  box-shadow: 0 0 0 3px rgba(31, 122, 85, 0.13);
}

.qty-stepper {
  display: grid;
  grid-template-columns: 30px 40px 30px;
  align-items: center;
  width: 100px;
  overflow: hidden;
  border: 1px solid #dce4dd;
  border-radius: 8px;
  background: #ffffff;
}

.qty-button {
  min-height: 34px;
  background: #f5f9ec;
  color: #2f6847;
  font-size: 18px;
  font-weight: 900;
  transition: background 140ms ease, color 140ms ease;
}

.qty-button:hover {
  background: #e8f4d7;
  color: #245238;
}

.qty-stepper .rice-qty {
  grid-column: auto;
  width: 100%;
  min-height: 34px;
  padding: 0;
  font-size: 14px;
  border: 0;
  border-right: 1px solid #dce4dd;
  border-left: 1px solid #dce4dd;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.qty-stepper .rice-qty:focus {
  box-shadow: inset 0 0 0 2px rgba(31, 122, 85, 0.18);
}

.selected-list {
  display: grid;
  gap: 8px;
}

.selected-list .rice-muted {
  margin: 0;
}

.selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #edf0ea;
}

.selected-item:first-child {
  border-top: 0;
}

.selected-item span {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.selected-item strong {
  color: #151a17;
  font-size: 14px;
}

.selected-item em {
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff4ed;
  color: #b65b49;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.selected-item b {
  color: #bd4d3f;
  white-space: nowrap;
}

.cart-summary-button {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.cart-summary-button span,
.cart-summary-button strong,
.cart-summary-button em {
  pointer-events: none;
}

.cart-summary-button:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(15, 22, 19, 0.32);
  backdrop-filter: blur(3px);
}

.cart-drawer {
  position: fixed;
  right: max(16px, calc((100vw - 860px) / 2));
  bottom: 96px;
  left: max(16px, calc((100vw - 860px) / 2));
  z-index: 31;
  display: grid;
  gap: 14px;
  max-height: min(420px, calc(100vh - 140px));
  padding: 18px;
  overflow: auto;
  border: 1px solid rgba(31, 71, 54, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 22, 19, 0.22);
}

.cart-drawer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.cart-drawer-head .rice-kicker {
  margin-bottom: 4px;
}

.cart-drawer-head strong {
  color: #151a17;
  font-size: 20px;
  font-weight: 900;
}

.cart-close-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #dce4dd;
  border-radius: 8px;
  background: #ffffff;
  color: #1f4736;
  font-size: 24px;
  line-height: 1;
}

.cart-drawer-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf0ea;
}

.cart-drawer-total span {
  color: #66706a;
  font-weight: 800;
}

.cart-drawer-total strong {
  color: #bd4d3f;
  font-size: 20px;
}

.auth-card,
.order-form-card,
.checkout-summary {
  padding: 18px;
}

.auth-card-head {
  display: grid;
  gap: 5px;
  margin-bottom: 4px;
}

.auth-card-head span {
  color: #b65b49;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-card-head strong {
  color: #151a17;
  font-size: 18px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 14px;
  margin-bottom: 14px;
}

.checkout-summary h2 {
  margin-bottom: 10px;
}

.checkout-summary p {
  color: #66706a;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid #edf0ea;
}

.checkout-total span {
  color: #66706a;
  font-weight: 800;
}

.checkout-total strong {
  color: #bd4d3f;
  font-size: 19px;
}

.rice-primary {
  background: linear-gradient(180deg, #2f6847, #245238);
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(47, 104, 71, 0.2);
}

.rice-primary:hover {
  background: linear-gradient(180deg, #285b3e, #1f4634);
}

.rice-secondary {
  border-color: #dce4dd;
  color: #27332e;
  font-weight: 850;
}

.order-cta-bar {
  right: max(16px, calc((100vw - 860px) / 2));
  left: max(16px, calc((100vw - 860px) / 2));
  border-color: rgba(137, 161, 78, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 251, 0.98);
}

.order-cta-bar strong,
.order-cta-bar em {
  color: #2f6847;
}

.complete-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.order-number-row {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  white-space: nowrap;
}

.order-number-row h2 {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-number-row h2 span {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-order-button {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #43725e;
  transform: translateY(1px);
}

.copy-order-button:hover {
  background: #edf7f1;
  color: #1f6448;
}

.copy-icon {
  position: relative;
  width: 11px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.copy-icon::before {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 11px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: #fffaf5;
}

.copy-order-button:hover .copy-icon::before {
  background: #edf7f1;
}

.copy-order-button.is-copied .copy-icon,
.copy-order-button.is-copied .copy-icon::before {
  border-color: #bd4d3f;
}

.wechat-card {
  padding: 18px;
}

.order-row {
  padding: 16px;
}

.order-row span:first-child {
  display: grid;
  gap: 4px;
}

.order-row em {
  color: #7a827c;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.order-row small {
  color: #66706a;
  font-size: 13px;
  font-weight: 700;
}

.order-row > span:last-child {
  color: #bd4d3f;
  font-weight: 900;
}

.address-card {
  border-radius: 8px;
}

.address-card.is-editing {
  border-color: #1f7a55;
  box-shadow: 0 0 0 3px rgba(31, 122, 85, 0.13);
}

@media (max-width: 700px) {
  .rice-topbar {
    padding: 10px 12px;
  }

  .rice-brand {
    font-size: 16px;
  }

  .rice-tabs {
    justify-content: flex-start;
  }

  .rice-tabs button {
    padding: 8px 12px;
  }

  .rice-page {
    width: min(100% - 24px, 860px);
  }

  .rice-section h1 {
    font-size: 25px;
  }

  .shop-hero-panel {
    padding: 15px;
  }

  .shop-hero-panel strong {
    font-size: 19px;
  }

  .quantity-box {
    grid-column: auto;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: end;
  }

  .qty-stepper {
    width: 96px;
    grid-template-columns: 29px 38px 29px;
  }

  .qty-stepper .rice-qty {
    grid-column: auto;
    width: 38px;
  }

  .product-card {
    grid-template-columns: 74px minmax(0, 1fr) 96px;
    gap: 10px;
    padding: 9px;
  }

  .product-thumb {
    width: 74px;
    height: 74px;
  }

  .product-info {
    max-height: 74px;
  }

  .product-card h2 {
    font-size: 15px;
  }

  .product-card p {
    margin-bottom: 0;
    font-size: 12px;
  }

  .product-card strong {
    font-size: 15px;
  }

  .cart-drawer {
    right: 12px;
    bottom: 94px;
    left: 12px;
    max-height: min(420px, calc(100vh - 126px));
  }

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

@media (max-width: 47.5rem) {
  .rice-page {
    width: min(100% - 24px, 720px);
    padding-top: 18px;
  }

  .rice-title-row {
    margin-bottom: 12px;
  }

  .rice-kicker {
    font-size: 12px;
    line-height: 1.3;
  }

  .rice-section h1 {
    font-size: 23px;
    line-height: 1.2;
  }

  .intro-title-panel {
    padding: 16px;
  }

  .intro-title-panel h2 {
    font-size: 21px;
    line-height: 1.3;
  }

  .intro-title-panel p {
    font-size: 14px;
    line-height: 1.65;
  }

  .intro-story-card,
  .intro-story-card:nth-child(even) {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding: 12px;
  }

  .intro-story-card:nth-child(even) img {
    order: 0;
  }

  .intro-story-card img {
    display: block;
    min-height: 0;
    height: clamp(220px, 58vw, 320px);
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .intro-story-card > div {
    padding: 0;
  }

  .intro-story-card span {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .intro-story-card h2 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.25;
  }

  .intro-story-card p,
  .intro-story-card li {
    font-size: 14px;
    line-height: 1.62;
  }

  .intro-view-tabs {
    width: 100%;
    margin-bottom: 14px;
  }

  .intro-view-tabs button {
    min-height: 40px;
    font-size: 13px;
  }

  .cultivar-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-bottom: 30px;
  }

  .cultivar-hero-copy {
    padding: 28px 20px;
  }

  .cultivar-hero h2 {
    font-size: 34px;
  }

  .cultivar-lead {
    font-size: 15px;
    line-height: 1.72;
  }

  .cultivar-facts {
    gap: 15px 18px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .cultivar-hero-media img {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .cultivar-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 0;
  }

  .cultivar-section-heading h2,
  .cultivar-award h2 {
    font-size: 22px;
  }

  .cultivar-origin-copy {
    columns: 1;
  }

  .cultivar-origin-copy p + p {
    margin-top: 14px;
  }

  .cultivar-quality-grid {
    grid-template-columns: 1fr;
  }

  .cultivar-quality-grid article {
    min-height: 0;
    padding: 20px;
  }

  .cultivar-award {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 8px 0 34px;
    padding: 24px 20px;
  }

  .cultivar-award-year {
    font-size: 44px;
  }
}

.common-code-layout {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
}

.common-code-groups,
.common-code-details {
  min-height: 560px;
  border: 1px solid #d8e1e8;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.common-code-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 10px 12px;
  border-bottom: 1px solid #d8e1e8;
  background: #f2f5f6;
}

.common-code-panel-head > div,
.common-code-detail-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.common-code-panel-head strong,
.common-code-detail-heading strong {
  color: #263238;
  font-size: 13px;
}

.common-code-panel-head span,
.common-code-detail-heading code {
  color: #60747f;
  font-size: 12px;
}

.common-code-group-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: calc(100vh - 180px);
  padding: 10px;
  overflow-y: auto;
}

.common-code-group-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid #dce3e6;
  border-radius: 6px;
  background: #ffffff;
}

.common-code-group-item.is-selected {
  border-color: #2f7157;
  box-shadow: inset 3px 0 0 #2f7157;
}

.common-code-group-select {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 0;
  background: transparent;
  color: #263238;
  text-align: left;
  cursor: pointer;
}

.common-code-group-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.common-code-group-title strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.common-code-group-select code {
  color: #385765;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.common-code-group-select small {
  color: #71818a;
  font-size: 11px;
}

.common-code-edit-button {
  align-self: center;
  margin-right: 8px;
  padding: 6px 8px;
  border: 1px solid #cbd5da;
  border-radius: 5px;
  background: #f8fafb;
  color: #425760;
  font-size: 11px;
  cursor: pointer;
}

.common-code-details {
  display: grid;
  grid-row: auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin-top: 0;
}

.common-code-empty {
  margin: 10px;
  padding: 24px 12px;
  border: 1px dashed #ccd7dc;
  border-radius: 6px;
  color: #71818a;
  text-align: center;
}

.common-code-empty--detail {
  align-self: start;
  margin: 18px;
}

.common-code-modal {
  width: min(650px, 100%);
}

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

.common-code-form-wide {
  grid-column: 1 / -1;
}

.grid-status-badge--INACTIVE {
  border-color: #c7ced2;
  background: #eef1f2;
  color: #65737a;
}

@media (max-width: 900px) {
  .common-code-layout {
    grid-template-columns: 1fr;
  }

  .common-code-groups,
  .common-code-details {
    min-height: 360px;
  }

  .common-code-group-list {
    max-height: 330px;
  }
}

@media (max-width: 560px) {
  .common-code-form {
    grid-template-columns: 1fr;
  }

  .common-code-form-wide {
    grid-column: auto;
  }

  .common-code-panel-head,
  .common-code-details .grid-top-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

.rice-app .product-card {
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
}

.rice-app .product-info {
  align-self: center;
  max-height: none;
  overflow: visible;
}

.rice-app .product-thumb {
  display: block;
  padding: 0;
  border: 0;
  font: inherit;
  cursor: zoom-in;
}

.rice-app .product-thumb:focus-visible {
  outline: 3px solid rgba(49, 94, 73, 0.3);
  outline-offset: 3px;
}

.shop-section .rice-title-row {
  position: relative;
  margin-bottom: 22px;
  padding: 4px 0 16px 18px;
  border-bottom: 1px solid rgba(49, 94, 73, 0.14);
}

.shop-section .rice-title-row::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 16px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: #c4963b;
}

.shop-section .rice-kicker {
  margin-bottom: 7px;
  color: #52704f;
  font-size: 12px;
}

.shop-section .rice-title-row h1 {
  color: #17231b;
  font-size: 30px;
}

.shop-section .rice-subtitle {
  margin: 7px 0 0;
  color: #69746c;
  font-size: 14px;
}

.product-purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-top: 9px;
}

.product-unit-price,
.rice-app .quantity-box {
  display: flex;
  align-items: center;
  gap: 7px;
}

.product-unit-price span,
.rice-app .quantity-box > span {
  color: #7b8277;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.product-unit-price strong {
  color: #c25d35;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.rice-app .quantity-box {
  align-self: auto;
  justify-items: initial;
}

.product-visible-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #66706a;
  font-size: 13px;
}

.product-visible-meta span {
  flex: 0 0 auto;
  color: #7b8277;
  font-size: 12px;
  font-weight: 800;
}

.product-visible-meta b {
  min-width: 0;
  overflow: hidden;
  color: #28342e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-details {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid #e7ebe4;
}

.product-details summary {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 6px;
  color: #315e49;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.product-detail-chevron {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  border: 1px solid #d5dfd8;
  border-radius: 50%;
  background: #ffffff;
  color: #315e49;
  transition: transform 160ms ease;
}

.product-detail-chevron::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.product-details[open] .product-detail-chevron {
  transform: rotate(180deg);
}

.product-detail-content {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 14px 4px 10px;
  border-top: 1px dashed #dfe6df;
}

.product-detail-list {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
}

.product-detail-list div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.product-detail-list dt {
  color: #7a827c;
  font-size: 12px;
  font-weight: 800;
}

.product-detail-list dd {
  min-width: 0;
  margin: 0;
  color: #222c27;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-description h3 {
  margin: 0 0 7px;
  color: #222c27;
  font-size: 14px;
}

.product-description:only-child {
  grid-column: 1 / -1;
}

.rice-app .product-description p {
  display: block;
  margin: 0;
  color: #5f6963;
  font-size: 13px;
  line-height: 1.65;
  overflow: visible;
  white-space: pre-line;
}

@media (max-width: 700px) {
  .rice-app .product-card {
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: start;
  }

  .rice-app .quantity-box {
    grid-column: auto;
    justify-items: initial;
  }

  .product-purchase-row {
    gap: 8px;
  }

  .product-unit-price,
  .rice-app .quantity-box {
    gap: 5px;
  }

  .product-unit-price strong {
    font-size: 15px;
  }

  .product-detail-content {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
