/* [project]/app/globals.css [app-client] (css) */
:root {
  color: #17211a;
  background: #f5f3ee;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(#ffffffb8, #fff0), #f5f3ee;
  min-height: 100vh;
  margin: 0;
}

button, input, textarea {
  font: inherit;
}

.page-shell {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  max-width: 720px;
  margin-bottom: 28px;
}

.eyebrow {
  color: #526157;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-size: .82rem;
  font-weight: 700;
}

h1 {
  color: #17211a;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  line-height: 1.2;
}

h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.hero-copy {
  color: #526157;
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.6;
}

.composer, .panel, .label-preview-stage {
  background: #ffffffd1;
  border: 1px solid #d8d6cd;
  border-radius: 8px;
  box-shadow: 0 10px 30px #17211a0f;
}

.composer {
  gap: 14px;
  max-width: 760px;
  padding: 22px;
  display: grid;
}

label {
  font-weight: 700;
}

textarea {
  resize: vertical;
  color: #17211a;
  background: #fff;
  border: 1px solid #c8c6bc;
  border-radius: 8px;
  width: 100%;
  min-height: 128px;
  padding: 14px;
  line-height: 1.5;
}

input {
  color: #17211a;
  background: #fff;
  border: 1px solid #c8c6bc;
  border-radius: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
}

textarea:focus, input:focus {
  border-color: #267652;
  outline: 3px solid #2676522e;
}

.form-meta, .prompt-examples {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.form-meta {
  color: #526157;
  font-size: .9rem;
}

.form-meta span, .status-pill, .example-chip {
  background: #edf2ee;
  border-radius: 999px;
  padding: 6px 10px;
}

button {
  color: #fff;
  cursor: pointer;
  background: #267652;
  border: 0;
  border-radius: 8px;
  width: fit-content;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 800;
}

button:hover:not(:disabled) {
  background: #1d5f41;
}

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

.example-chip {
  color: #2f4236;
  background: #f7faf7;
  border: 1px solid #d2d7d0;
  min-height: 34px;
  font-size: .92rem;
  font-weight: 700;
}

.example-chip:hover:not(:disabled) {
  color: #fff;
  background: #4e6c5c;
}

.secondary-button, .reject-button {
  color: #17211a;
  background: #e2dfd5;
}

.secondary-button:hover:not(:disabled), .reject-button:hover:not(:disabled) {
  background: #d4d0c5;
}

.approve-button {
  background: #1c7a49;
}

.approve-button:hover:not(:disabled) {
  background: #155f39;
}

.reject-button {
  border: 1px solid #c9b8b8;
}

.error-message {
  color: #9d2c2c;
  margin: 0;
  font-weight: 700;
}

.status-line {
  color: #526157;
}

.trace-debug {
  color: #526157;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: .78rem;
  font-weight: 700;
}

.preview-header {
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 28px;
  display: flex;
}

.back-link {
  color: #267652;
  font-weight: 800;
  text-decoration: none;
}

.preview-layout {
  grid-template-columns: minmax(360px, 1.25fr) minmax(280px, .75fr);
  align-items: start;
  gap: 18px;
  display: grid;
}

.panel, .label-preview-stage {
  padding: 20px;
}

.label-preview-stage {
  background: #e9ece7;
  gap: 18px;
  display: grid;
}

.stage-heading-row, .status-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.stage-heading-row h2 {
  margin-bottom: 0;
  font-size: 1.22rem;
}

.status-row {
  margin-bottom: 18px;
}

.status-row span {
  color: #526157;
}

.status-pill {
  white-space: nowrap;
}

.status-approved {
  color: #135f37;
  background: #dff1e5;
}

.status-rejected {
  color: #8d2525;
  background: #f6dfdf;
}

.status-pending_user_review {
  color: #73520d;
  background: #f8edcf;
}

.review-panel {
  gap: 18px;
  display: grid;
}

.review-note {
  color: #4f3b0c;
  background: #fff4d7;
  border-left: 4px solid #d1a02f;
  border-radius: 0 8px 8px 0;
  margin: 0;
  padding: 12px 14px;
  line-height: 1.55;
}

.spec-list {
  gap: 12px;
  margin: 0;
  display: grid;
}

.spec-list div {
  gap: 4px;
  display: grid;
}

.spec-list dt {
  color: #526157;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 800;
}

.spec-list dd {
  overflow-wrap: anywhere;
  margin: 0;
}

.actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  display: flex;
}

.review-actions {
  margin-top: 0;
}

.label-spec-card {
  color: #111813;
  background-color: #fffdf8;
  background-image: linear-gradient(90deg, #161d190d 1px, #0000 1px), linear-gradient(#161d190d 1px, #0000 1px), none;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat;
  background-size: 18px 18px;
  background-attachment: scroll, scroll, scroll;
  background-origin: padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box;
  border: 1px solid #161d19;
  border-radius: 8px;
  grid-template-rows: auto 1fr auto auto;
  gap: 6%;
  width: min(100%, 640px);
  margin: 0 auto;
  display: grid;
  overflow: hidden;
  box-shadow: 0 22px 50px #17211a2e;
}

.label-spec-card-portrait {
  width: min(100%, 360px);
}

.label-card-topline, .label-card-bottom-block, .label-card-main-block, .label-card-meta-block {
  align-items: center;
  gap: 12px;
  display: flex;
}

.label-card-topline {
  color: #4f5d53;
  text-transform: uppercase;
  border-bottom: 1px solid #d8d6cd;
  justify-content: space-between;
  padding-bottom: 8px;
  font-size: clamp(.62rem, 1.8vw, .78rem);
  font-weight: 800;
}

.label-card-main-block {
  justify-content: space-between;
  align-items: start;
  min-width: 0;
}

.label-card-subtitle {
  color: #57645b;
  overflow-wrap: anywhere;
  margin: 0 0 6px;
  font-size: clamp(.72rem, 2.2vw, .92rem);
  font-weight: 800;
  line-height: 1.2;
}

.label-card-title {
  color: #101812;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 3rem);
  line-height: 1.05;
}

.label-card-body {
  color: #2c3930;
  overflow-wrap: anywhere;
  border-top: 1px solid #d8d6cd;
  border-bottom: 1px solid #d8d6cd;
  min-height: 42px;
  margin: 0;
  padding: 10px 0;
  font-size: clamp(.82rem, 2.4vw, 1.05rem);
  font-weight: 700;
  line-height: 1.35;
}

.label-card-bottom-block {
  justify-content: space-between;
  min-width: 0;
}

.label-card-meta-block {
  color: #526157;
  text-align: right;
  flex-direction: column;
  align-items: flex-end;
  font-size: clamp(.58rem, 1.7vw, .72rem);
  font-weight: 900;
  line-height: 1.1;
}

.barcode-placeholder {
  background: #fff;
  border: 1px solid #c8c6bc;
  border-radius: 4px;
  align-items: stretch;
  gap: 2px;
  width: min(58%, 250px);
  height: clamp(34px, 9vw, 58px);
  padding: 6px;
  display: flex;
}

.barcode-placeholder span {
  background: #111813;
  height: 100%;
  display: block;
}

.qr-placeholder {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid #111813;
  border-radius: 6px;
  flex: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  width: clamp(58px, 15vw, 92px);
  padding: 6px;
  display: grid;
}

.qr-placeholder span {
  background: #e3e5dd;
  border-radius: 2px;
}

.qr-placeholder .filled {
  background: #111813;
}

.workflow-panel {
  grid-column: 1 / -1;
  gap: 16px;
  display: grid;
}

.event-timeline-panel {
  background: #f8fbfa;
  grid-column: 1 / -1;
  gap: 16px;
  display: grid;
}

.workflow-note {
  color: #2e4058;
  background: #eef4fb;
  border-left: 4px solid #7b8ea8;
  border-radius: 0 8px 8px 0;
  margin: 0;
  padding: 12px 14px;
  line-height: 1.55;
}

.workflow-status {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-json {
  max-height: 360px;
}

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

pre {
  color: #e8f3eb;
  background: #111a14;
  border-radius: 8px;
  max-height: 520px;
  margin: 0;
  padding: 16px;
  font-size: .9rem;
  line-height: 1.5;
  overflow: auto;
}

.home-shell {
  padding-top: 64px;
}

.home-shell:before {
  z-index: -1;
  content: "";
  background: linear-gradient(120deg, #26765214, #0000 42%), linear-gradient(300deg, #49677e14, #0000 36%);
  position: fixed;
  inset: 0;
}

.site-header {
  border-bottom: 1px solid #d8d6cd;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  display: flex;
}

.site-header > div:first-child {
  gap: 4px;
  display: grid;
}

.site-header strong {
  color: #17211a;
  font-weight: 950;
}

.site-header span, .account-state span {
  color: #526157;
  font-size: .9rem;
  font-weight: 800;
}

.auth-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.auth-actions button, .auth-mode-switch button {
  color: #243944;
  background: #fff;
  border: 1px solid #d2d7d0;
  min-height: 38px;
  padding: 0 14px;
}

.auth-actions button:hover:not(:disabled), .auth-mode-switch button:hover:not(:disabled), .auth-mode-switch .active {
  color: #fff;
  background: #267652;
  border-color: #267652;
}

.account-state {
  background: #f8fbfa;
  border: 1px solid #cfd6d6;
  border-radius: 8px;
  justify-items: end;
  gap: 4px;
  padding: 10px 12px;
  display: grid;
}

.landing-hero {
  border-bottom: 1px solid #d8d6cd;
  max-width: 900px;
  margin-bottom: 30px;
  padding-bottom: 28px;
}

.landing-hero h1 {
  max-width: 860px;
}

.hero-point-grid {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  display: flex;
}

.hero-point-grid span {
  color: #243944;
  background: #eef5f4;
  border: 1px solid #cfd6d6;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .92rem;
  font-weight: 850;
}

.hero-cta-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  display: flex;
}

.hero-primary-cta {
  background: #1c7a49;
  min-width: 190px;
  min-height: 48px;
  box-shadow: 0 14px 30px #1c7a492e;
}

.hero-secondary-cta {
  color: #243944;
  background: #fffdf8;
  border: 1px solid #c8c6bc;
  min-height: 48px;
}

.hero-secondary-cta:hover:not(:disabled) {
  color: #fff;
  background: #526157;
}

.home-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  align-items: start;
  gap: 18px;
  display: grid;
}

.landing-composer {
  border-color: #c8d4c9;
  max-width: none;
  box-shadow: 0 18px 44px #17211a1a;
}

.field-help {
  color: #526157;
  margin: 6px 0 0;
  line-height: 1.5;
}

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

.template-chip {
  color: #17211a;
  text-align: left;
  background: #f9fbf8;
  border: 1px solid #d2d7d0;
  align-content: start;
  justify-items: start;
  gap: 8px;
  width: 100%;
  min-height: 104px;
  padding: 14px;
  display: grid;
}

.template-chip:hover:not(:disabled) {
  color: #17211a;
  background: #eef5ef;
  border-color: #9db7a6;
}

.template-chip strong {
  font-size: .98rem;
}

.template-chip span {
  color: #526157;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.45;
}

.primary-action {
  min-width: 168px;
  min-height: 48px;
}

.auth-disclosure {
  color: #526157;
  margin: 0;
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.45;
}

.landing-visual {
  gap: 14px;
  display: grid;
}

.visual-label-card {
  color: #101812;
  background-color: #fffdf8;
  background-image: linear-gradient(90deg, #161d190f 1px, #0000 1px), linear-gradient(#161d190f 1px, #0000 1px), none;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat;
  background-size: 18px 18px;
  background-attachment: scroll, scroll, scroll;
  background-origin: padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box;
  border: 1px solid #161d19;
  border-radius: 8px;
  gap: 18px;
  padding: 22px;
  display: grid;
  box-shadow: 0 18px 42px #17211a24;
}

.visual-label-header, .visual-label-footer {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.visual-label-header {
  color: #4f5d53;
  text-transform: uppercase;
  border-bottom: 1px solid #d8d6cd;
  padding-bottom: 10px;
  font-size: .72rem;
  font-weight: 900;
}

.visual-label-card strong {
  max-width: 260px;
  font-size: 2rem;
  line-height: 1.04;
}

.visual-label-card p {
  color: #2c3930;
  border-top: 1px solid #d8d6cd;
  border-bottom: 1px solid #d8d6cd;
  margin: 0;
  padding: 12px 0;
  font-weight: 800;
  line-height: 1.45;
}

.visual-barcode {
  background: #fff;
  border: 1px solid #c8c6bc;
  border-radius: 4px;
  align-items: stretch;
  gap: 2px;
  width: 58%;
  height: 48px;
  padding: 6px;
  display: flex;
}

.visual-barcode span {
  background: #111813;
  flex: 1;
}

.visual-barcode span:nth-child(3n) {
  flex: 2;
}

.visual-qr {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid #111813;
  border-radius: 6px;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  width: 64px;
  padding: 6px;
  display: grid;
}

.visual-qr span {
  background: #dfe4df;
  border-radius: 2px;
}

.visual-qr .filled {
  background: #111813;
}

.workflow-summary {
  background: #ffffffb8;
  border: 1px solid #d8d6cd;
  border-radius: 8px;
  gap: 10px;
  padding: 18px;
  display: grid;
}

.workflow-summary div {
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  display: grid;
}

.workflow-summary span {
  color: #fff;
  background: #267652;
  border-radius: 999px;
  place-items: center;
  width: 34px;
  height: 34px;
  font-weight: 900;
  display: grid;
}

.workflow-summary p {
  color: #2f4236;
  margin: 0;
  font-weight: 800;
}

.assistant-form {
  gap: 12px;
  display: grid;
}

.assistant-dialogue {
  background: #fff;
  border: 1px solid #cfd6d6;
  border-radius: 8px;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.assistant-dialogue span {
  color: #102016;
  background: #aee0bf;
  border-radius: 999px;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: .82rem;
  font-weight: 950;
  display: grid;
}

.assistant-dialogue p {
  color: #243944;
  margin: 0;
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.48;
}

.assistant-quick-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.assistant-chip {
  color: #243944;
  background: #fff;
  border: 1px solid #d2d7d0;
  min-height: 36px;
  padding: 0 12px;
  font-size: .9rem;
}

.assistant-chip:hover:not(:disabled) {
  color: #fff;
  background: #267652;
}

.assistant-input-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  display: grid;
}

.assistant-message {
  color: #135f37;
  background: #dff1e5;
  border-radius: 8px;
  margin: 0;
  padding: 12px 14px;
  font-weight: 800;
  line-height: 1.5;
}

.assistant-stub-actions {
  background: #fff;
  border: 1px solid #d7dddc;
  border-radius: 8px;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.assistant-stub-actions span, .assistant-stub-status, .assistant-stub-buttons {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.assistant-stub-actions span, .assistant-stub-status span {
  color: #526157;
  background: #f3f6f3;
  border: 1px solid #d2d7d0;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .86rem;
  font-weight: 900;
}

.assistant-stub-buttons button {
  color: #6a746d;
  background: #eef2ef;
  border-color: #d2d7d0;
  min-height: 36px;
}

.voice-agent-panel {
  background: #f4fbf6;
  border: 1px solid #9ec9ad;
  border-radius: 8px;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.voice-agent-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  display: grid;
}

.voice-agent-heading div {
  gap: 4px;
  display: grid;
}

.voice-agent-heading strong {
  color: #17211a;
  font-size: 1.02rem;
}

.voice-agent-heading span {
  color: #526157;
  font-size: .88rem;
  font-weight: 800;
}

.voice-status {
  color: #526157;
  background: #f3f6f3;
  border: 1px solid #d2d7d0;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .78rem;
  font-weight: 950;
}

.voice-status-listening, .voice-status-sending {
  color: #135f37;
  background: #dff1e5;
  border-color: #9ec9ad;
}

.voice-agent-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.voice-agent-actions button {
  color: #243944;
  background: #fff;
  border: 1px solid #d2d7d0;
  min-height: 38px;
  padding: 0 8px;
  font-size: .86rem;
}

.voice-agent-actions button:hover:not(:disabled) {
  color: #fff;
  background: #267652;
  border-color: #267652;
}

.voice-agent-output {
  gap: 8px;
  display: grid;
}

.voice-agent-output p {
  color: #243944;
  background: #fff;
  border: 1px solid #e0ddd3;
  border-radius: 8px;
  gap: 5px;
  margin: 0;
  padding: 10px;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.45;
  display: grid;
}

.voice-agent-output span {
  color: #526157;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 950;
}

.voice-trace, .voice-approval-note {
  color: #526157;
  margin: 0;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.45;
}

.floating-agent-shell {
  z-index: 20;
  justify-items: end;
  gap: 12px;
  width: min(392px, 100vw - 32px);
  display: grid;
  position: fixed;
  bottom: 24px;
  right: 24px;
}

.ai-dock-shell {
  width: min(420px, 100vw - 32px);
}

.ai-dock-actions {
  justify-items: end;
  gap: 10px;
  display: grid;
}

.ai-dock-mobile-toggle {
  color: #102016;
  background: #aee0bf;
  border: 1px solid #135f37;
  border-radius: 999px;
  place-items: center;
  width: 58px;
  min-height: 58px;
  padding: 0;
  font-weight: 950;
  display: none;
  box-shadow: 0 16px 34px #17211a38;
}

.ai-dock-entry-list {
  justify-items: end;
  gap: 10px;
  display: grid;
}

.ai-dock-button {
  text-align: left;
  background: #17211a;
  border: 1px solid #135f37;
  border-radius: 8px;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas: "icon title"
                       "icon status";
  align-items: center;
  column-gap: 12px;
  width: min(252px, 100%);
  min-height: 64px;
  padding: 10px 14px;
  display: grid;
  box-shadow: 0 18px 44px #17211a3d;
}

.ai-dock-button:hover:not(:disabled), .ai-dock-button.active {
  background: #24362b;
  border-color: #aee0bf;
}

.ai-dock-button span {
  color: #102016;
  background: #aee0bf;
  border-radius: 999px;
  grid-area: icon;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: .82rem;
  font-weight: 950;
  display: grid;
}

.ai-dock-button strong, .ai-dock-button small {
  min-width: 0;
  display: block;
}

.ai-dock-button strong {
  color: #fff;
  grid-area: title;
  line-height: 1.15;
}

.ai-dock-button small {
  color: #aee0bf;
  grid-area: status;
  margin-top: 4px;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.25;
}

.floating-agent-button {
  text-align: left;
  background: #17211a;
  border: 1px solid #135f37;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  width: min(248px, 100%);
  min-height: 64px;
  padding: 10px 14px;
  display: grid;
  box-shadow: 0 18px 44px #17211a3d;
}

.floating-agent-button:hover:not(:disabled) {
  background: #24362b;
}

.floating-agent-button strong, .floating-agent-button small {
  display: block;
}

.floating-agent-button strong {
  color: #fff;
  line-height: 1.15;
}

.floating-agent-button small {
  color: #aee0bf;
  margin-top: 4px;
  font-weight: 850;
}

.floating-agent-orb {
  color: #102016;
  background: #aee0bf;
  border-radius: 999px;
  place-items: center;
  width: 44px;
  height: 44px;
  font-weight: 950;
  display: grid;
}

.floating-agent-panel {
  background: #f8fbfa;
  border: 1px solid #cfd6d6;
  border-radius: 8px;
  gap: 16px;
  width: 100%;
  max-height: min(760px, 100vh - 120px);
  padding: 18px;
  display: grid;
  overflow: auto;
  box-shadow: 0 22px 54px #17211a33;
}

.floating-agent-panel-header {
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  display: grid;
}

.floating-agent-panel-header h2 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.floating-agent-panel-header p:last-child {
  color: #526157;
  margin: 0;
  font-weight: 800;
}

.agent-close-button {
  color: #243944;
  background: #fff;
  border: 1px solid #d2d7d0;
  place-items: center;
  width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  display: grid;
}

.agent-close-button:hover:not(:disabled) {
  color: #fff;
  background: #526157;
}

.floating-agent-form .assistant-quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}

.floating-agent-form .assistant-chip {
  width: 100%;
  min-height: 42px;
}

.floating-agent-form .assistant-input-row button {
  min-width: 72px;
}

.line-preview-panel {
  background: #fff;
  border: 1px solid #d7dddc;
  border-radius: 8px;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.auth-modal-backdrop {
  z-index: 40;
  background: #17211a6b;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.auth-modal {
  background: #f8fbfa;
  border: 1px solid #cfd6d6;
  border-radius: 8px;
  gap: 16px;
  width: min(460px, 100%);
  padding: 20px;
  display: grid;
  box-shadow: 0 22px 54px #17211a47;
}

.auth-modal-header {
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  display: grid;
}

.auth-modal-header h2 {
  margin-bottom: 0;
}

.auth-form {
  gap: 12px;
  display: grid;
}

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

.auth-service-note {
  background: #fffdf8;
  border: 1px solid #d8d6cd;
  border-radius: 8px;
  gap: 6px;
  padding: 12px;
  display: grid;
}

.auth-service-note span {
  color: #526157;
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.45;
}

.landing-section {
  gap: 18px;
  margin-top: 42px;
  display: grid;
}

.agent-v2-section {
  border-top: 1px solid #d8d6cd;
  padding-top: 34px;
}

.agent-capability-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.agent-capability-grid span {
  color: #243944;
  background: #f8fbfa;
  border: 1px solid #cfd6d6;
  border-radius: 8px;
  padding: 12px;
  font-size: .92rem;
  font-weight: 850;
  line-height: 1.35;
}

.section-copy {
  max-width: 700px;
}

.section-copy h2 {
  margin-bottom: 0;
}

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

.landing-card {
  background: #ffffffc2;
  border: 1px solid #d8d6cd;
  border-radius: 8px;
  gap: 12px;
  min-height: 150px;
  padding: 18px;
  display: grid;
}

.landing-card h3 {
  color: #17211a;
}

.landing-card p {
  color: #526157;
  margin: 0;
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.52;
}

.landing-card strong {
  color: #267652;
  border-top: 1px solid #e0ddd3;
  padding-top: 10px;
  font-size: .86rem;
  line-height: 1.45;
  display: block;
}

.principle-section {
  border-top: 1px solid #d8d6cd;
  padding-top: 34px;
}

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

.principle-item {
  background: #f8fbfa;
  border: 1px solid #cfd6d6;
  border-radius: 8px;
  grid-template-columns: 12px 1fr;
  align-items: start;
  gap: 10px;
  padding: 16px;
  display: grid;
}

.principle-item span {
  background: #267652;
  border-radius: 999px;
  width: 10px;
  height: 10px;
  margin-top: 5px;
}

.principle-item p {
  color: #243944;
  margin: 0;
  font-weight: 850;
  line-height: 1.38;
}

.workflow-page-layout {
  grid-template-columns: minmax(360px, 1.15fr) minmax(300px, .85fr);
}

.workflow-section-label, .workflow-section-review {
  min-height: 100%;
}

.section-heading-row {
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  display: flex;
}

.section-heading-row h2 {
  margin-bottom: 0;
  font-size: 1.18rem;
}

.section-heading-row .status-pill {
  white-space: normal;
  text-align: right;
  max-width: 320px;
  line-height: 1.35;
}

.status-draft {
  color: #4f5d53;
  background: #edf2ee;
}

.status-superseded {
  color: #5c5570;
  background: #ebe8f4;
}

.human-status-card {
  background: #fffdf8;
  border: 1px solid #d8d6cd;
  border-radius: 8px;
  gap: 6px;
  padding: 14px;
  display: grid;
}

.human-status-card span {
  color: #526157;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 800;
}

.human-status-card strong {
  color: #17211a;
  line-height: 1.45;
}

.template-metadata-panel {
  background: #f8fbfa;
  border: 1px solid #cfd6d6;
  border-radius: 8px;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.template-metadata-panel h3, .template-metadata-panel p {
  margin: 0;
}

.template-metadata-panel p {
  color: #526157;
  font-weight: 700;
  line-height: 1.5;
}

.template-metadata-panel dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  display: grid;
}

.template-metadata-panel div {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.template-metadata-panel dt {
  color: #526157;
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 900;
}

.template-metadata-panel dd {
  color: #17211a;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: .9rem;
  font-weight: 850;
}

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

.workflow-step {
  background: #fffdf8;
  border: 1px solid #d8d6cd;
  border-radius: 8px;
  gap: 8px;
  padding: 14px;
  display: grid;
}

.workflow-step span {
  color: #526157;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 850;
}

.workflow-step strong {
  color: #17211a;
  line-height: 1.3;
}

.workflow-step p {
  color: #526157;
  margin: 0;
  font-size: .92rem;
  line-height: 1.45;
}

.workflow-message {
  border-radius: 8px;
  margin: 0;
  padding: 12px 14px;
  font-weight: 800;
  line-height: 1.5;
}

.workflow-message-info {
  color: #2e4058;
  background: #eef4fb;
}

.workflow-message-success {
  color: #135f37;
  background: #dff1e5;
}

.workflow-message-warning {
  color: #73520d;
  background: #f8edcf;
}

.empty-timeline {
  color: #526157;
  background: #fffdf8;
  border: 1px solid #d8d6cd;
  border-radius: 8px;
  margin: 0;
  padding: 16px;
  font-weight: 800;
}

.event-timeline-list {
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.event-timeline-item {
  grid-template-columns: 22px 1fr;
  gap: 12px;
  min-width: 0;
  display: grid;
}

.event-timeline-item:not(:last-child) {
  padding-bottom: 0;
}

.event-timeline-marker {
  background: #fff;
  border: 3px solid #267652;
  border-radius: 999px;
  width: 12px;
  height: 12px;
  margin-top: 18px;
  position: relative;
}

.event-timeline-marker:after {
  content: "";
  background: #d8d6cd;
  width: 2px;
  height: calc(100% + 78px);
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.event-timeline-item:last-child .event-timeline-marker:after {
  display: none;
}

.event-timeline-card {
  background: #fff;
  border: 1px solid #cfd6d6;
  border-radius: 8px;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  display: grid;
}

.event-timeline-heading {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  display: flex;
}

.event-timeline-heading strong {
  color: #17211a;
  font-size: 1rem;
}

.event-timeline-heading time {
  color: #526157;
  font-size: .88rem;
  font-weight: 800;
}

.event-timeline-card dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  display: grid;
}

.event-timeline-card div {
  min-width: 0;
}

.event-timeline-card dt {
  color: #526157;
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 900;
}

.event-timeline-card dd {
  color: #17211a;
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-size: .9rem;
  font-weight: 750;
}

.debug-details {
  gap: 12px;
  display: grid;
}

.debug-details summary {
  color: #267652;
  cursor: pointer;
  width: fit-content;
  font-weight: 900;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
    padding: 32px 0;
  }

  .preview-header, .preview-layout, .home-workspace, .template-chip-grid, .assistant-input-row, .voice-agent-heading, .voice-agent-actions, .agent-capability-grid, .landing-card-grid, .principle-grid, .workflow-steps, .template-metadata-panel dl, .event-timeline-card dl {
    grid-template-columns: 1fr;
    display: grid;
  }

  .floating-agent-shell {
    width: min(100% - 24px, 392px);
    bottom: 84px;
    right: 12px;
  }

  .ai-dock-shell {
    width: min(100% - 24px, 392px);
  }

  .floating-agent-panel {
    max-height: min(620px, 100vh - 172px);
  }

  .floating-agent-form .assistant-quick-actions {
    grid-template-columns: 1fr;
  }

  .floating-agent-button, .agent-close-button {
    width: auto;
  }

  .ai-dock-mobile-toggle {
    display: grid;
  }

  .ai-dock-entry-list {
    width: min(252px, 100%);
    display: none;
  }

  .ai-dock-actions.is-expanded .ai-dock-entry-list {
    display: grid;
  }

  .ai-dock-button {
    width: 100%;
  }

  .stage-heading-row, .section-heading-row, .label-card-bottom-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .barcode-placeholder, button {
    width: 100%;
  }

  .example-chip {
    width: auto;
  }

  .section-heading-row .status-pill {
    text-align: left;
    max-width: none;
  }
}

/*# sourceMappingURL=app_globals_0jn8.0u.css.map*/