:root {
  color-scheme: light;
  --ink: #16201d;
  --muted: #66736e;
  --paper: #f5f2eb;
  --surface: #fffdf9;
  --surface-soft: #ece8df;
  --forest: #163d34;
  --forest-2: #245f50;
  --mint: #b9e1d2;
  --coffee: #8a5135;
  --amber: #d28a2f;
  --rose: #a54343;
  --line: #d7d2c7;
  --shadow: 0 20px 55px rgba(25, 35, 31, .1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(185, 225, 210, .45), transparent 27rem),
    linear-gradient(180deg, #f9f7f1 0, var(--paper) 46rem);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.6;
}

button,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

button:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 4px solid #f0ae4e;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: .7rem 1rem;
  border-radius: .5rem;
  color: #fff;
  background: #111;
  font-weight: 900;
}

.skip-link:focus {
  top: 1rem;
}

.product-header,
main,
.product-footer {
  width: min(1440px, calc(100% - 32px));
  margin-inline: auto;
}

.product-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--forest);
  font-family: serif;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(22, 61, 52, .22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: .03em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.demo-badge {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: .35rem .75rem;
  border: 1px solid #91b6a8;
  border-radius: 999px;
  color: var(--forest);
  background: #e8f5ef;
  font-size: .75rem;
  font-weight: 900;
}

.quiet-button,
.primary-button,
.secondary-button,
.danger-button,
.category-tabs button,
.workflow-tabs button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: .65rem .9rem;
  font-weight: 850;
}

.quiet-button,
.secondary-button {
  color: var(--forest);
  border-color: #afc7be;
  background: #f7fbf9;
}

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

.primary-button:hover {
  background: var(--forest-2);
}

.danger-button {
  color: #7c2929;
  border-color: #d9a9a9;
  background: #fff4f2;
}

.hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(2rem, 6vw, 5.5rem);
  border-radius: 28px 28px 0 0;
  color: #f9fffc;
  background:
    linear-gradient(112deg, rgba(10, 36, 30, .96), rgba(27, 77, 63, .91)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.03) 18px 20px);
  box-shadow: var(--shadow);
}

.eyebrow,
.panel-overline {
  margin: 0 0 .55rem;
  color: var(--coffee);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bce7d7;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 1.15rem;
  font-size: clamp(2.35rem, 5.7vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

h2 {
  margin-bottom: .55rem;
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

h3 {
  margin-bottom: .5rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 880px;
  margin-bottom: 0;
  color: rgba(249, 255, 252, .78);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.public-purpose-declaration {
  max-width: 920px;
  margin-top: 1.45rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(188, 231, 215, .34);
  border-left: 5px solid #bce7d7;
  border-radius: 12px;
  background: rgba(5, 27, 22, .42);
}

.public-purpose-declaration > span,
.public-purpose-declaration > strong,
.public-purpose-declaration > small {
  display: block;
}

.public-purpose-declaration > span {
  color: #bce7d7;
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .13em;
}

.public-purpose-declaration h2 {
  margin: .28rem 0 .6rem;
  color: #fff;
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
}

.public-purpose-declaration p {
  margin-bottom: .55rem;
  color: rgba(249, 255, 252, .8);
  font-size: .86rem;
}

.public-purpose-declaration > strong {
  color: #f4cc8e;
  font-size: .9rem;
}

.public-purpose-declaration > small {
  margin-top: .4rem;
  color: rgba(249, 255, 252, .62);
  font-size: .69rem;
}


.hero-proof {
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.hero-proof > span,
.hero-proof > strong {
  display: block;
}

.hero-proof > span {
  color: #bce7d7;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.hero-proof > strong {
  margin: .3rem 0 1rem;
  overflow-wrap: anywhere;
}

.hero-proof dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin: 0;
}

.hero-proof dl div {
  padding: .65rem;
  border-radius: 10px;
  background: rgba(0,0,0,.18);
}

.hero-proof dt {
  color: rgba(255,255,255,.65);
  font-size: .68rem;
}

.hero-proof dd {
  margin: .1rem 0 0;
  font-size: 1.4rem;
  font-weight: 950;
}

.system-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #c6d2cc;
  border-top: 0;
  background: #e4ece8;
}

.system-strip div {
  min-width: 0;
  padding: .9rem 1rem;
  border-right: 1px solid #c6d2cc;
}

.system-strip div:last-child {
  border-right: 0;
}

.system-strip small,
.system-strip strong {
  display: block;
}

.system-strip small {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.system-strip strong {
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-size: .78rem;
}

.pos-workspace {
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(350px, .88fr) minmax(310px, .72fr);
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--surface);
}

.catalog-panel,
.cart-panel,
.verification-panel {
  min-width: 0;
  padding: clamp(1.1rem, 2.3vw, 2rem);
}

.catalog-panel,
.cart-panel {
  border-right: 1px solid var(--line);
}

.panel-heading,
.verification-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-heading > span,
.verification-heading > span {
  flex: 0 0 auto;
  padding: .28rem .55rem;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: .65rem;
  font-weight: 900;
}

.category-tabs,
.workflow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1rem 0;
}

.category-tabs button,
.workflow-tabs button {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

.category-tabs button[aria-selected="true"],
.workflow-tabs button[aria-selected="true"] {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}

.subcategory-key {
  margin: -.35rem 0 .85rem;
  color: var(--muted);
  font-size: .76rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.catalog-paused {
  grid-column: 1 / -1;
  min-height: 150px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1.2rem;
  border: 1px dashed #c8b890;
  border-radius: 14px;
  color: #725423;
  background: #fff7df;
  text-align: center;
  font-weight: 800;
}

.menu-item {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: .65rem;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  background: #fff;
  text-align: left;
}

.menu-item:hover {
  border-color: #85aa9c;
  box-shadow: 0 10px 24px rgba(22, 61, 52, .08);
}

.menu-item small,
.menu-item strong,
.menu-item span {
  display: block;
}

.menu-item small {
  color: var(--coffee);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .08em;
}

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

.menu-item span {
  color: var(--muted);
  font-size: .82rem;
}

.menu-item b {
  color: var(--forest);
  font-size: 1rem;
}

.noscript,
.boundary-note {
  padding: .7rem;
  border-radius: 8px;
  color: #735425;
  background: #fff4d8;
  font-size: .78rem;
}

.order-context {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.order-context label:first-child {
  grid-column: 1 / -1;
}

.order-context label {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 850;
}

.order-context select {
  width: 100%;
  min-height: 44px;
  display: block;
  margin-top: .25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .55rem;
  color: var(--ink);
  background: #fff;
}

.intent-assistant,
.item-configurator {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #b9c9c2;
  border-radius: 14px;
  background: #f5faf8;
}

.intent-assistant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem;
}

.intent-assistant > div,
.intent-assistant > label,
.intent-assistant > p,
.intent-assistant > small {
  grid-column: 1 / -1;
}

.intent-assistant h3,
.item-configurator h3,
.option-question h4 {
  margin-bottom: 0;
}

.intent-assistant label {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 850;
}

.intent-assistant textarea {
  width: 100%;
  min-height: 62px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: .7rem;
  color: var(--ink);
  background: #fff;
}

.intent-assistant > button {
  align-self: stretch;
}

.intent-assistant > p {
  margin: 0;
  padding: .6rem .7rem;
  border-radius: 8px;
  color: var(--forest);
  background: #e3f1ec;
  font-size: .78rem;
  font-weight: 800;
}

.intent-assistant > small {
  color: var(--muted);
  font-size: .7rem;
}

.multimodal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.multimodal-actions > button,
.media-input-label {
  min-height: 44px;
}

.media-input-label {
  display: grid;
  grid-column: 1 / -1;
  gap: .35rem;
  padding: .65rem .75rem;
  border: 1px dashed #7f9f93;
  border-radius: 9px;
  color: var(--forest);
  background: #fff;
  font-size: .75rem;
  font-weight: 900;
}

.media-input-label input {
  width: 100%;
  color: var(--muted);
  font: inherit;
}

.media-preview {
  min-height: 120px;
  overflow: hidden;
  border: 1px solid #b9c9c2;
  border-radius: 10px;
  background: #10241e;
}

.media-preview[hidden],
.media-preview img[hidden],
.media-preview video[hidden] {
  display: none;
}

.media-preview img,
.media-preview video {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.item-configurator[hidden] {
  display: none;
}

.avatar-control-band {
  padding: clamp(1.3rem, 4vw, 3rem);
  border-top: 1px solid #2f5449;
  color: #effff9;
  background:
    radial-gradient(circle at 18% 20%, rgba(51, 255, 192, .2), transparent 32%),
    linear-gradient(145deg, #061b18, #102b26 55%, #081713);
}

.avatar-control-band .section-heading > p {
  max-width: 680px;
  color: #b8d4ca;
}

.avatar-control-layout {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  gap: 1rem;
}

.avatar-stage,
.avatar-command-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(151, 255, 218, .3);
  border-radius: 20px;
  background: rgba(4, 20, 17, .82);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .34);
}

.avatar-stage {
  min-height: 520px;
  perspective: 900px;
}

.avatar-grid {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image:
    linear-gradient(rgba(94, 234, 212, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, .18) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: rotateX(64deg) scale(1.5) translateY(22%);
}

.avatar-model {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 210px;
  height: 370px;
  transform: translate(-50%, -49%) rotateY(-8deg);
  transform-style: preserve-3d;
  transition: transform .42s ease;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, .5));
}

.avatar-head,
.avatar-torso,
.avatar-arm,
.avatar-base {
  position: absolute;
  left: 50%;
  border: 1px solid rgba(225, 255, 247, .72);
  background: linear-gradient(145deg, rgba(154, 255, 225, .92), rgba(22, 125, 101, .82));
  box-shadow: inset 0 0 26px rgba(255, 255, 255, .28), 0 0 32px rgba(59, 255, 197, .18);
  transform-style: preserve-3d;
  transition: transform .42s ease;
}

.avatar-head {
  top: 18px;
  width: 92px;
  height: 108px;
  border-radius: 46% 46% 42% 42%;
  transform: translateX(-50%) translateZ(24px);
}

.avatar-head span {
  position: absolute;
  top: 48px;
  width: 12px;
  height: 7px;
  border-radius: 50%;
  background: #06231b;
}

.avatar-head span:first-child { left: 24px; }
.avatar-head span:last-child { right: 24px; }

.avatar-torso {
  top: 124px;
  width: 126px;
  height: 170px;
  border-radius: 36px 36px 54px 54px;
  transform: translateX(-50%);
}

.avatar-arm {
  top: 142px;
  width: 34px;
  height: 158px;
  border-radius: 20px;
  transform-origin: 50% 14px;
}

.avatar-arm-left { margin-left: -82px; transform: rotateZ(10deg); }
.avatar-arm-right { margin-left: 48px; transform: rotateZ(-10deg); }

.avatar-base {
  top: 292px;
  width: 158px;
  height: 58px;
  border-radius: 50%;
  transform: translateX(-50%) rotateX(68deg);
}

.avatar-stage[data-gesture="greet"] .avatar-arm-right { transform: rotateZ(-132deg) rotateY(18deg); }
.avatar-stage[data-gesture="greet"] .avatar-model { transform: translate(-50%, -49%) rotateY(18deg); }
.avatar-stage[data-gesture="recommend"] .avatar-arm-left { transform: rotateZ(78deg) rotateY(-12deg); }
.avatar-stage[data-gesture="recommend"] .avatar-model { transform: translate(-50%, -49%) rotateY(-24deg); }
.avatar-stage[data-gesture="confirm"] .avatar-head { transform: translateX(-50%) translateZ(24px) rotateX(14deg); }
.avatar-stage[data-gesture="confirm"] .avatar-model { transform: translate(-50%, -47%) scale(1.03); }
.avatar-stage[data-gesture="thank"] .avatar-model { transform: translate(-50%, -45%) rotateX(16deg); }
.avatar-stage[data-gesture="thank"] .avatar-arm-left { transform: rotateZ(42deg); }
.avatar-stage[data-gesture="thank"] .avatar-arm-right { transform: rotateZ(-42deg); }

.avatar-stage-status {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  gap: .25rem;
  padding: .75rem;
  border: 1px solid rgba(151, 255, 218, .25);
  border-radius: 12px;
  background: rgba(0, 11, 9, .76);
}

.avatar-stage-status span {
  color: #8fffd8;
  font-weight: 950;
}

.avatar-stage-status code {
  overflow-wrap: anywhere;
  color: #adc9bf;
  font-size: .68rem;
}

.avatar-command-panel {
  padding: clamp(1rem, 3vw, 2rem);
}

.avatar-command-panel > p:not(.panel-overline) {
  color: #b8d4ca;
}

.avatar-gesture-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .45rem;
}

.avatar-gesture-buttons button {
  min-height: 48px;
  border: 1px solid #65cbae;
  border-radius: 10px;
  color: #ecfff8;
  background: #123b31;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.avatar-gesture-buttons button:hover,
.avatar-gesture-buttons button:focus-visible {
  color: #04130f;
  background: #8fffd8;
}

.avatar-container-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin: 1rem 0;
}

.avatar-container-facts div {
  min-width: 0;
  padding: .7rem;
  border: 1px solid rgba(151, 255, 218, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}

.avatar-container-facts dt {
  color: #8fb5a8;
  font-size: .68rem;
  font-weight: 900;
}

.avatar-container-facts dd {
  margin: .25rem 0 0;
  overflow-wrap: anywhere;
  color: #effff9;
  font-size: .76rem;
  font-weight: 850;
}

.avatar-hash-box {
  color: var(--ink);
  background: #eef9f5;
}

.item-configurator {
  border-color: #8aa99d;
  background: #fff;
  box-shadow: 0 14px 32px rgba(22, 61, 52, .1);
}

.config-heading,
.option-question-heading,
.config-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.config-heading > strong {
  flex: 0 0 auto;
  color: var(--forest);
  font-size: 1.3rem;
}

#config-product-source {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.option-question {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}

.option-question-heading > span {
  padding: .2rem .45rem;
  border-radius: 999px;
  color: #785423;
  background: #fff0cd;
  font-size: .65rem;
  font-weight: 900;
}

.option-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  margin-top: .55rem;
}

.option-buttons button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  padding: .55rem .65rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.option-buttons button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}

.option-buttons strong,
.option-buttons small {
  display: block;
}

.option-buttons small {
  color: inherit;
  font-size: .67rem;
  opacity: .78;
}

.config-empty,
.config-summary {
  padding: .65rem;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: .78rem;
}

.config-summary {
  margin: .85rem 0;
  color: var(--forest);
  font-weight: 850;
}

.config-actions {
  justify-content: flex-end;
}

.cart-lines {
  min-height: 220px;
  margin: 1rem 0;
  border-block: 1px solid var(--line);
}

.empty-state {
  padding: 2.4rem 1rem;
  color: var(--muted);
  text-align: center;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
  padding: .75rem 0;
  border-bottom: 1px solid #eee9df;
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line strong,
.cart-line small {
  display: block;
}

.cart-line small {
  color: var(--muted);
}

.line-modifiers {
  display: block;
  margin: .18rem 0;
  color: var(--coffee);
  font-size: .75rem;
  font-weight: 800;
}

.line-controls {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.line-controls button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--forest);
  background: #fff;
  font-weight: 900;
}

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.cart-total span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.cart-total strong {
  color: var(--forest);
  font-size: 1.5rem;
}

.cart-actions,
.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.cart-actions > * {
  flex: 1 1 140px;
}

.boundary-note {
  margin: .8rem 0 0;
}

.verification-panel {
  color: #e9f7f1;
  background: #122a24;
}

.verification-panel .panel-overline {
  color: #8fd0bb;
}

.verification-panel h2 {
  color: #fff;
}

.verification-heading > span {
  color: #cde9df;
  background: #26493f;
}

.packet-grid {
  margin: .5rem 0 1rem;
}

.packet-grid div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: .65rem;
  padding: .48rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.packet-grid dt {
  color: #95b6aa;
  font-size: .7rem;
  font-weight: 800;
}

.packet-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: .76rem;
  font-weight: 750;
}

.hash-box {
  padding: .85rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: rgba(0,0,0,.17);
}

.hash-box span,
.hash-box code,
.hash-box small {
  display: block;
}

.hash-box span {
  color: #8fd0bb;
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.hash-box code {
  margin: .45rem 0;
  overflow-wrap: anywhere;
  color: #f2c47e;
  font-size: .68rem;
}

.hash-box small {
  color: #9bb5ab;
  font-size: .66rem;
}

.operations-band,
.governance-band,
.product-boundaries {
  margin-top: 1rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-heading > p {
  max-width: 680px;
  color: var(--muted);
}

.workflow-layout {
  display: grid;
  grid-template-columns: 1.1fr .75fr .75fr;
  gap: .8rem;
}

.workflow-card,
.cup-card,
.queue-card,
.event-card,
.redteam-monitor {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.workflow-card {
  border-color: #9fb9af;
  background: #f6faf8;
}

.workflow-card ol {
  padding-left: 1.2rem;
}

.action-result {
  min-height: 48px;
  margin: .9rem 0 0;
  padding: .7rem;
  border-radius: 8px;
  color: var(--forest);
  background: #e5f2ed;
  font-weight: 800;
}

.cup-balance {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 10px;
  color: #fff;
  background: var(--coffee);
}

.cup-balance small,
.cup-balance strong {
  display: block;
}

.cup-balance strong {
  font-size: 2rem;
  line-height: 1;
}

.queue-flow {
  display: grid;
  gap: .35rem;
  padding: 0;
  list-style: none;
  counter-reset: queue;
}

.queue-flow li {
  padding: .5rem .6rem;
  border-left: 4px solid #cbc5b9;
  color: var(--muted);
  background: #f5f2ec;
  font-size: .75rem;
  font-weight: 800;
}

.queue-flow li.is-complete {
  border-left-color: var(--forest-2);
  color: var(--forest);
  background: #e9f4f0;
}

.queue-flow li.is-active {
  border-left-color: var(--amber);
  color: #754d17;
  background: #fff3d7;
}

.governance-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

.redteam-monitor {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  color: #fff;
  border-color: #395b50;
  background: var(--forest);
}

.redteam-monitor > strong {
  padding: .35rem .55rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: .65rem;
}

.redteam-monitor > p,
.redteam-monitor > code,
.redteam-monitor > small {
  grid-column: 1 / -1;
}

.redteam-monitor > p {
  margin-bottom: .55rem;
  color: #d7ebe3;
}

.redteam-monitor > code {
  padding-top: .55rem;
  border-top: 1px solid rgba(255,255,255,.17);
  color: #f3c37c;
}

.redteam-monitor > small {
  margin-top: .4rem;
  color: #a9c7bc;
}

.redteam-monitor[data-state="DRIFT_ALERT"] {
  border-color: #d99b9b;
  background: #672c2c;
}

.event-card ol {
  max-height: 190px;
  margin: .7rem 0 0;
  padding-left: 1.35rem;
  overflow: auto;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .75rem;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}

.boundary-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.boundary-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .85rem;
}

.status-ready,
.status-hold,
.status-pending {
  display: inline-flex;
  margin-bottom: .75rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 900;
}

.status-ready {
  color: #195244;
  background: #dff2eb;
}

.status-hold {
  color: #7f3030;
  background: #fbe3e0;
}

.status-pending {
  color: #7a551f;
  background: #fff0cf;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: .78rem;
}

.product-footer strong,
.product-footer span {
  display: block;
}

.product-footer p {
  margin: 0;
  text-align: right;
}

.sr-status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .pos-workspace {
    grid-template-columns: 1fr 1fr;
  }

  .verification-panel {
    grid-column: 1 / -1;
  }

  .catalog-panel {
    border-right: 1px solid var(--line);
  }

  .cart-panel {
    border-right: 0;
  }

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

  .workflow-card {
    grid-column: 1 / -1;
  }

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

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

  .avatar-stage {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .product-header,
  main,
  .product-footer {
    width: min(100% - 20px, 1440px);
  }

  .product-header {
    min-height: 72px;
  }

  .header-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .demo-badge {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.1rem;
    border-radius: 18px 18px 0 0;
  }

  h1 {
    font-size: clamp(2.1rem, 11vw, 3.6rem);
  }

  .system-strip,
  .pos-workspace,
  .workflow-layout,
  .governance-band,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .system-strip div {
    border-right: 0;
    border-bottom: 1px solid #c6d2cc;
  }

  .system-strip div:last-child {
    border-bottom: 0;
  }

  .catalog-panel,
  .cart-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .verification-panel,
  .workflow-card {
    grid-column: auto;
  }

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

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

  .section-heading,
  .product-footer {
    display: block;
  }

  .section-heading > p {
    margin-top: .8rem;
  }

  .product-footer p {
    margin-top: .8rem;
    text-align: left;
  }
}

@media (max-width: 430px) {
  .brand strong {
    font-size: .86rem;
  }

  .brand small {
    font-size: .56rem;
  }

  .quiet-button {
    padding-inline: .65rem;
    font-size: .75rem;
  }

  .hero-proof dl,
  .menu-grid,
  .order-context,
  .option-buttons,
  .intent-assistant,
  .multimodal-actions {
    grid-template-columns: 1fr;
  }

  .intent-assistant > * {
    grid-column: auto;
  }

  .order-context label:first-child {
    grid-column: auto;
  }

  .category-tabs button,
  .workflow-tabs button {
    flex: 1 1 calc(50% - .45rem);
  }

  .avatar-gesture-buttons,
  .avatar-container-facts {
    grid-template-columns: 1fr;
  }

  .cart-actions > *,
  .workflow-actions > * {
    width: 100%;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
