:root {
  --background: #f3effa;
  --foreground: #171426;
  --card: #ffffff;
  --muted: #ebe8f1;
  --muted-foreground: #716c83;
  --primary: #17112d;
  --primary-foreground: #ffffff;
  --accent-soft: #eee9fb;
  --accent-soft-hover: #e2dafa;
  --accent: #6447d7;
  --success: #087a55;
  --success-soft: #dcfaec;
  --warning: #b96a0b;
  --warning-soft: #fff1d6;
  --destructive: #c93426;
  --destructive-soft: #fff0ed;
  --border: #ded8e8;
  --shadow: 0 12px 36px rgba(31, 23, 56, 0.09);
  --shadow-raised: 0 22px 60px rgba(31, 23, 56, 0.16);
  color: var(--foreground);
  background: var(--background);
  font-family: Manrope, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--background); }
body { min-width: 0; margin: 0; background: var(--background); }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
  outline-offset: 3px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.app-icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* Review controls remain outside the simulated product. */
.review-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--card) 95%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 82%, transparent);
  backdrop-filter: blur(18px);
}
.review-brand { display: grid; gap: 3px; }
.review-brand strong { font-size: 15px; letter-spacing: -.02em; }
.review-kicker { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.review-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: 10px; }
.review-controls label { display: grid; gap: 4px; color: var(--muted-foreground); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.review-controls select, .quiet-button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--muted);
  padding: 0 13px;
  font-size: 12px;
}
.notes-toggle { display: flex !important; grid-auto-flow: column; align-items: center; gap: 7px !important; min-height: 36px; border-radius: 999px; background: var(--muted); padding: 0 12px; }
.notes-toggle input { accent-color: var(--accent); }
.quiet-button:hover { background: var(--accent-soft-hover); }
.state-pills { display: flex; gap: 8px; overflow-x: auto; padding: 12px 24px 0; }
.state-pill { flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--card); box-shadow: 0 1px 3px rgba(30, 18, 62, .06); padding: 8px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.state-pill:hover { background: var(--accent-soft); }
.state-pill.active { background: var(--primary); color: var(--primary-foreground); }
.prototype-layout { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 20px; align-items: start; padding: 18px 24px 48px; }
.prototype-stage, .screen-root { min-width: 0; }
.review-notes { position: sticky; top: 90px; display: grid; gap: 15px; max-height: calc(100vh - 110px); overflow-y: auto; border-radius: 24px; background: var(--card); padding: 20px; box-shadow: var(--shadow); }
.review-notes[hidden] { display: none; }
.note-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.note-group, .score-target { border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.note-group { background: var(--accent-soft); color: var(--accent); }
.score-target { background: var(--success-soft); color: var(--success); }
.review-notes h2 { margin: 0; font-size: 21px; line-height: 1.18; letter-spacing: -.03em; }
.review-notes section { padding-top: 13px; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--border) 72%, transparent); }
.review-notes h3 { margin: 0 0 6px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.review-notes p, .review-notes li { margin: 0; color: var(--muted-foreground); font-size: 12px; line-height: 1.55; }
.review-notes ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; }
.question-card { box-shadow: none !important; border-radius: 16px; background: var(--primary); padding: 14px !important; }
.question-card h3, .question-card p { color: var(--primary-foreground); }

/* Full current Odia shell. */
.odia-app {
  position: relative;
  display: grid;
  min-height: 930px;
  grid-template-columns: 224px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-raised);
}
.app-sidebar { display: flex; min-height: 930px; flex-direction: column; background: var(--card); padding: 12px 10px; }
.workspace-switcher { display: grid; width: 100%; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 0; border-radius: 999px; background: transparent; padding: 8px 10px 14px; text-align: left; }
.workspace-switcher:hover { background: var(--accent-soft); }
.workspace-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); font-size: 11px; font-weight: 900; }
.workspace-switcher > span:nth-child(2) { overflow: hidden; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.workspace-caret { color: var(--muted-foreground); }
.app-nav { display: grid; gap: 2px; }
.app-nav-item { position: relative; display: flex; min-height: 40px; align-items: center; gap: 12px; border: 0; border-radius: 999px; background: transparent; padding: 0 16px; color: var(--foreground); font-size: 13px; text-align: left; }
.app-nav-item:hover, .app-nav-item.is-active { background: var(--accent-soft); }
.app-nav-item.is-active { font-weight: 800; }
.app-nav-item .app-icon { width: 20px; height: 20px; }
.nav-badge { margin-left: auto; border-radius: 999px; background: var(--destructive); padding: 2px 6px; color: white; font-size: 10px; }
.sidebar-account { display: grid; grid-template-columns: 35px minmax(0, 1fr) 28px; align-items: center; gap: 9px; margin-top: auto; padding: 10px 8px 2px; }
.account-avatar, .mini-avatar { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #f7c9b3, #d7f6b6 54%, #b8e7fb); color: var(--foreground); font-weight: 900; }
.account-avatar { width: 35px; height: 35px; font-size: 12px; }
.mini-avatar { width: 28px; height: 28px; font-size: 10px; }
.sidebar-account div { display: grid; min-width: 0; gap: 1px; }
.sidebar-account strong { font-size: 12px; }
.sidebar-account span { color: var(--muted-foreground); font-size: 10px; }
.more-button { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted-foreground); }
.more-button:hover { background: var(--accent-soft); }
.app-main { display: flex; min-width: 0; flex-direction: column; background: var(--card); }
.app-topbar { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 15px; padding: 0 24px; background: var(--card); }
.topbar-crumb { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 7px; }
.topbar-actions button { position: relative; display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 50%; background: transparent; }
.topbar-actions button:hover { background: var(--accent-soft); }
.topbar-actions i { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--destructive); }
.topbar-actions .topbar-mark { background: var(--primary); color: white; font-size: 20px; font-weight: 900; }
.beta-chip { border-radius: 999px; background: var(--accent-soft); padding: 5px 7px; color: var(--accent); font-size: 9px; font-weight: 900; }
.app-surface { position: relative; flex: 1; min-width: 0; overflow: hidden; border-top-left-radius: 28px; background: var(--background); padding: 24px; }

/* Journey header and canonical tabs. */
.journey-header { display: grid; min-height: 118px; grid-template-columns: 118px minmax(0, 1fr); overflow: hidden; border-radius: 24px; background: var(--card); box-shadow: 0 7px 20px rgba(31, 23, 56, .04); }
.journey-cover { position: relative; display: grid; place-items: end center; overflow: hidden; background: linear-gradient(145deg, #2c5073, #71a7c2 45%, #e8c99a); padding: 9px; }
.journey-cover::before { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(23, 17, 45, .42)); content: ""; }
.journey-cover span { position: relative; color: white; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.journey-header-main { min-width: 0; }
.journey-identity-row { display: flex; min-height: 66px; align-items: stretch; }
.journey-identity { min-width: 0; flex: 1; padding: 11px 14px 7px; }
.journey-title-line { display: flex; min-width: 0; align-items: center; gap: 8px; }
.journey-title-line h1 { overflow: hidden; margin: 0; font-size: 15px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.ref-pill, .version-pill, .status-pill, .count-pill { display: inline-flex; align-items: center; border-radius: 999px; white-space: nowrap; }
.ref-pill { background: var(--muted); padding: 3px 7px; color: var(--muted-foreground); font-size: 9px; font-weight: 800; }
.journey-meta { display: flex; min-width: 0; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; color: var(--muted-foreground); font-size: 9px; }
.journey-meta span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.journey-meta .app-icon { width: 12px; height: 12px; }
.journey-meta strong { color: var(--foreground); }
.financial-summary { display: grid; min-width: 148px; align-content: center; padding: 8px 16px; box-shadow: inset 1px 0 0 var(--muted); text-align: right; }
.financial-summary span, .financial-summary small { color: var(--muted-foreground); font-size: 8px; }
.financial-summary strong { font-size: 15px; }
.journey-identity-row > .icon-button { margin: auto 9px; }
.journey-actions-row { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px 7px 14px; }
.owner-state, .publish-actions { display: flex; min-width: 0; align-items: center; gap: 7px; }
.owner-state { font-size: 10px; font-weight: 700; }
.version-pill { gap: 2px; background: var(--accent-soft); padding: 5px 8px; }
.version-pill .app-icon { width: 11px; height: 11px; }
.status-pill { background: var(--warning-soft); padding: 5px 9px; color: var(--warning); }
.status-pill.confirmed { background: var(--success-soft); color: var(--success); }
.primary-button, .tinted-button, .soft-button, .danger-button, .icon-button, .tinted-icon, .cc-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 750;
}
.primary-button { background: var(--primary); color: var(--primary-foreground); }
.primary-button:hover { background: color-mix(in srgb, var(--primary) 88%, white); }
.primary-button.compact, .tinted-button, .soft-button, .danger-button { min-height: 31px; padding: 0 11px; }
.tinted-button, .soft-button, .tinted-icon { background: var(--accent-soft); color: var(--foreground); }
.tinted-button:hover, .soft-button:hover, .tinted-icon:hover { background: var(--accent-soft-hover); }
.danger-button { background: transparent; color: var(--destructive); }
.danger-button:hover { background: var(--destructive-soft); }
.icon-button, .tinted-icon { width: 32px; min-height: 32px; padding: 0; }
.icon-button { background: transparent; color: var(--muted-foreground); }
.icon-button:hover, .icon-button.soft { background: var(--accent-soft); color: var(--foreground); }
.journey-tabs { display: flex; gap: 20px; overflow-x: auto; margin-top: 18px; }
.journey-tabs button { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 0 1px 9px; color: var(--muted-foreground); font-size: 11px; }
.journey-tabs button:hover { color: var(--foreground); }
.journey-tabs button.is-active { border-bottom-color: var(--primary); color: var(--foreground); font-weight: 800; }

/* Journey Builder service list. */
.builder-content { min-width: 0; }
.builder-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 7px; }
.view-toggle { display: inline-flex; border-radius: 999px; background: var(--card); padding: 3px; }
.view-toggle button { display: inline-flex; min-height: 29px; align-items: center; gap: 4px; border: 0; border-radius: 999px; background: transparent; padding: 0 9px; color: var(--muted-foreground); font-size: 10px; }
.view-toggle button.is-active { background: var(--primary); color: white; }
.view-toggle .app-icon { width: 13px; height: 13px; }
.leg-chips { display: flex; gap: 6px; overflow-x: auto; margin: 11px -2px 3px; padding: 2px; }
.leg-chips button { flex: 0 0 auto; min-height: 28px; border: 0; border-radius: 999px; background: var(--card); padding: 0 10px; color: var(--muted-foreground); font-size: 10px; }
.leg-chips button.is-active { background: var(--primary); color: white; }
.service-table { min-width: 860px; margin-top: 6px; }
.service-header-row, .service-row {
  display: grid;
  grid-template-columns: 18px 30px minmax(176px,1fr) 66px 36px 42px 34px 80px 68px 80px 48px 24px;
  align-items: center;
  gap: 7px;
}
.service-header-row { min-height: 40px; border-radius: 999px; background: var(--card); padding: 0 12px; color: var(--muted-foreground); font-size: 8px; font-weight: 750; }
.service-header-row .app-icon { width: 12px; height: 12px; }
.date-heading { margin: 14px 12px 6px; color: var(--muted-foreground); font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.service-row { width: 100%; min-height: 52px; margin-top: 4px; border: 0; border-radius: 16px; background: var(--card); padding: 0 12px; font-size: 9px; text-align: left; transition: background 160ms ease, box-shadow 160ms ease; }
.service-row:hover { background: var(--accent-soft); }
.service-row.is-selected { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.mock-checkbox { width: 14px; height: 14px; border: 1px solid var(--border); border-radius: 4px; }
.category-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.category-icon .app-icon { width: 15px; height: 15px; }
.service-name { display: grid; min-width: 0; gap: 3px; }
.service-name strong, .service-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-name strong { font-size: 10px; }
.service-name small { color: var(--muted-foreground); font-size: 8px; }
.price-cell, .guest-cell { text-align: right; }
.message-cell { position: relative; display: flex; justify-content: center; color: var(--accent); }
.message-cell .app-icon { width: 15px; height: 15px; }
.message-cell b { position: absolute; top: -7px; right: 1px; display: grid; width: 13px; height: 13px; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-size: 7px; }
.task-count { text-align: center; }
.po-state { display: grid; width: 18px; height: 18px; place-items: center; justify-self: center; border-radius: 50%; background: var(--warning-soft); color: var(--warning); font-size: 10px; font-weight: 900; }
.po-state.sent { background: var(--success-soft); color: var(--success); }
.po-state .app-icon { width: 12px; height: 12px; }
.row-status { border-radius: 999px; background: var(--warning-soft); padding: 5px 7px; color: var(--warning); font-size: 8px; }

/* Source-faithful right service sheet. */
.sheet-scrim { position: absolute; z-index: 8; inset: 0; background: rgba(20, 14, 39, .18); }
.service-sheet { position: absolute; z-index: 10; top: 0; right: 0; bottom: 0; display: flex; width: min(64%, 720px); min-width: 520px; flex-direction: column; overflow: hidden; background: var(--card); box-shadow: -20px 0 54px rgba(31, 23, 56, .18); }
.sheet-header { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px; min-height: 84px; padding: 17px 56px 14px 22px; }
.sheet-header > div:first-child { min-width: 0; }
.sheet-title-line { display: flex; min-width: 0; align-items: center; gap: 7px; }
.sheet-title-line h2 { overflow: hidden; margin: 0; font-size: 15px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.sheet-title-line > .app-icon { width: 13px; height: 13px; color: var(--muted-foreground); }
.sheet-header p { overflow: hidden; margin: 6px 0 0; color: var(--muted-foreground); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sheet-status { border-radius: 999px; background: var(--warning-soft); padding: 7px 10px; color: var(--warning); font-size: 9px; font-weight: 800; }
.sheet-close { position: absolute; top: 16px; right: 15px; display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 50%; background: var(--card); box-shadow: 0 2px 8px rgba(31, 23, 56, .12); color: var(--muted-foreground); }
.sheet-tabs { display: flex; min-height: 45px; gap: 20px; padding: 0 22px; box-shadow: inset 0 -1px 0 var(--muted); }
.sheet-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted-foreground); font-size: 10px; }
.sheet-tabs button.is-active { border-bottom-color: var(--primary); color: var(--foreground); font-weight: 800; }
.sheet-body { flex: 1; overflow-y: auto; background: color-mix(in srgb, var(--background) 45%, white); padding: 20px 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid label, .stacked-field, .field-row label { display: grid; min-width: 0; gap: 6px; }
.form-grid label > span, .stacked-field > span, .field-row label > span { color: var(--foreground); font-size: 9px; font-weight: 800; }
.input-like, .select-like, .recipient-like, .stacked-field input, .stacked-field textarea {
  min-width: 0;
  border: 0;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(31, 23, 56, .06);
}
.input-like { min-height: 39px; padding: 12px 13px; font-size: 10px; }
.input-like.is-missing { background: var(--destructive-soft); color: var(--destructive); }
.description-block { margin-top: 16px; border: 1px dashed var(--border); border-radius: 22px; background: color-mix(in srgb, var(--muted) 38%, white); padding: 15px; }
.description-block header { display: flex; align-items: start; justify-content: space-between; }
.description-block header > div { display: grid; gap: 2px; }
.description-block strong { font-size: 10px; }
.description-block small, .description-block p { color: var(--muted-foreground); font-size: 9px; line-height: 1.5; }
.description-block header > span { border-radius: 999px; background: var(--success-soft); padding: 4px 7px; color: var(--success); font-size: 8px; font-weight: 800; }
.description-block p { margin: 14px 0 0; }
.sheet-footer { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--card); box-shadow: 0 -1px 0 var(--muted); }
.sheet-footer-actions { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px; }
.sheet-footer .app-icon { width: 14px; height: 14px; }
.email-supplier-action { background: var(--primary); color: white; }
.email-supplier-action:hover { background: color-mix(in srgb, var(--primary) 88%, white); }
.inline-help { color: var(--destructive); font-size: 8px; }

/* Plain-text supplier composer. */
.dialog-scrim { position: absolute; z-index: 18; inset: 0; background: rgba(20, 14, 39, .38); backdrop-filter: blur(1px); }
.email-dialog { position: absolute; z-index: 20; top: 50%; left: 50%; display: flex; width: min(690px, calc(100% - 54px)); max-height: calc(100% - 58px); flex-direction: column; overflow: hidden; border-radius: 26px; background: var(--card); box-shadow: 0 30px 80px rgba(20, 14, 39, .32); transform: translate(-50%, -50%); }
.dialog-header { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.dialog-header > div { display: flex; align-items: center; gap: 11px; }
.dialog-header > div > .app-icon { display: grid; width: 34px; height: 34px; border-radius: 12px; background: var(--accent-soft); padding: 8px; color: var(--accent); }
.dialog-header h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.dialog-header p { margin: 2px 0 0; color: var(--muted-foreground); font-size: 9px; }
.dialog-body { flex: 1; overflow-y: auto; padding: 4px 18px 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.select-like { display: flex; min-height: 45px; align-items: center; justify-content: space-between; padding: 0 13px; font-size: 10px; }
.recipient-like { display: grid; min-height: 45px; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; padding: 5px 10px; }
.recipient-like > b, .thread-avatar { display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 900; }
.recipient-like > b { width: 28px; height: 28px; font-size: 8px; }
.recipient-like > span { display: grid; min-width: 0; gap: 1px; font-size: 9px; font-weight: 800; }
.recipient-like small { overflow: hidden; color: var(--muted-foreground); font-size: 8px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.cc-button { min-height: 29px; margin: 8px 0 2px; background: transparent; padding: 0 2px; color: var(--muted-foreground); font-size: 9px; }
.cc-button:hover { color: var(--foreground); }
.cc-button .app-icon { width: 13px; height: 13px; }
.stacked-field { margin-top: 10px; }
.stacked-field input { min-height: 42px; padding: 0 13px; font-size: 10px; }
.stacked-field textarea { min-height: 145px; resize: vertical; padding: 12px 13px; font-size: 10px; line-height: 1.5; }
.stacked-field input::placeholder, .stacked-field textarea::placeholder { color: #aaa5b5; }
.message-field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.message-field > span small { color: var(--muted-foreground); font-size: 8px; font-weight: 500; }
.details-disclosure { margin-top: 12px; overflow: hidden; border: 1px dashed var(--border); border-radius: 21px; background: color-mix(in srgb, var(--muted) 35%, white); }
.disclosure-trigger { display: flex; width: 100%; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: transparent; padding: 10px 13px; text-align: left; }
.disclosure-trigger:hover { background: var(--accent-soft); }
.disclosure-trigger > span:first-child { display: grid; gap: 2px; }
.disclosure-trigger strong { font-size: 10px; }
.disclosure-trigger small { color: var(--muted-foreground); font-size: 8px; }
.disclosure-trigger > span:last-child { display: flex; align-items: center; gap: 6px; color: var(--muted-foreground); font-size: 8px; font-weight: 700; }
.disclosure-trigger .app-icon { width: 12px; height: 12px; transform: rotate(90deg); }
.details-disclosure.is-open .disclosure-trigger .app-icon { transform: rotate(-90deg); }
.detail-options { display: grid; gap: 6px; padding: 0 9px 10px; }
.detail-option { display: grid; grid-template-columns: 1px 25px minmax(0, 1fr); align-items: center; gap: 8px; border-radius: 16px; padding: 8px; cursor: pointer; }
.detail-option:hover, .detail-option.is-selected { background: var(--accent-soft); }
.detail-option input { width: 1px; height: 1px; opacity: 0; }
.custom-check { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--border); border-radius: 7px; background: var(--card); }
.detail-option.is-selected .custom-check { border-color: var(--primary); background: var(--primary); color: white; }
.custom-check .app-icon { width: 13px; height: 13px; }
.detail-option > span:last-child { display: grid; min-width: 0; gap: 2px; }
.detail-option strong { font-size: 9px; }
.detail-option small { overflow: hidden; color: var(--muted-foreground); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.detail-insert-help { display: flex; align-items: center; gap: 6px; margin: 3px 8px 0; color: var(--muted-foreground); font-size: 8px; }
.detail-insert-help .app-icon { width: 12px; height: 12px; color: var(--accent); }
.dialog-footer { display: flex; min-height: 64px; align-items: center; justify-content: flex-end; gap: 9px; padding: 11px 18px; box-shadow: 0 -1px 0 var(--muted); }
.send-button { min-width: 112px; }
.send-button .app-icon { width: 14px; height: 14px; }
.is-spinning { animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-banner { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 18px 10px; border-radius: 17px; background: var(--destructive-soft); padding: 10px 12px; color: var(--destructive); }
.error-banner > .app-icon { width: 20px; height: 20px; }
.error-banner div { display: grid; gap: 2px; }
.error-banner strong { font-size: 9px; }
.error-banner p { margin: 0; color: color-mix(in srgb, var(--destructive) 70%, var(--foreground)); font-size: 8px; line-height: 1.45; }
.error-banner button { border: 0; border-radius: 999px; background: var(--card); padding: 7px 9px; color: var(--destructive); font-size: 8px; font-weight: 800; }
.simulation-actions { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; background: var(--warning-soft); padding: 6px 12px; }
.simulation-actions span { color: var(--warning); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.simulation-actions button { border: 0; border-radius: 999px; background: white; padding: 6px 9px; font-size: 8px; font-weight: 750; }

/* Completion states: Journey Communications and service activity. */
.communications-workspace { display: grid; height: 600px; grid-template-columns: 34% minmax(0, 1fr); overflow: hidden; margin-top: 14px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.thread-pane { min-width: 0; padding: 16px 12px; box-shadow: inset -1px 0 0 var(--muted); }
.thread-pane > header, .thread-detail > header, .activity-card > header { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.thread-pane h2, .thread-detail h2, .activity-card h3 { margin: 0; font-size: 13px; letter-spacing: -.02em; }
.thread-pane header p, .thread-detail header p, .activity-card header p { margin: 2px 0 0; color: var(--muted-foreground); font-size: 8px; }
.thread-search { margin: 13px 0 8px; border-radius: 999px; background: var(--muted); padding: 10px 12px; color: var(--muted-foreground); font-size: 8px; }
.thread-row { display: grid; width: 100%; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: start; gap: 8px; border: 0; border-radius: 16px; background: transparent; padding: 10px; text-align: left; }
.thread-row:hover, .thread-row.is-active { background: var(--accent-soft); }
.thread-avatar { width: 32px; height: 32px; font-size: 8px; }
.thread-avatar.pale { background: var(--warning-soft); color: var(--warning); }
.thread-row > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.thread-row strong, .thread-row b, .thread-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-row strong { font-size: 8px; }
.thread-row b { font-size: 9px; }
.thread-row small { color: var(--muted-foreground); font-size: 7px; }
.thread-row > span:last-child { display: grid; justify-items: end; gap: 6px; }
.thread-row time { color: var(--muted-foreground); font-size: 7px; }
.thread-row i { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-size: 7px; font-style: normal; }
.thread-detail { display: flex; min-width: 0; flex-direction: column; padding: 18px; }
.thread-detail > header { align-items: center; padding-bottom: 14px; }
.thread-detail .soft-button .app-icon { width: 12px; height: 12px; }
.message-card { margin-top: 16px; border-radius: 20px; background: color-mix(in srgb, var(--muted) 42%, white); padding: 14px; }
.message-meta { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.message-meta > span:nth-child(2) { display: grid; gap: 1px; }
.message-meta strong { font-size: 9px; }
.message-meta small, .message-meta time { color: var(--muted-foreground); font-size: 8px; }
.message-card > p { margin: 15px 0; font-size: 9px; line-height: 1.6; white-space: pre-line; }
.message-details { display: grid; gap: 5px; border-radius: 14px; background: var(--card); padding: 10px; }
.message-details strong { font-size: 8px; text-transform: uppercase; }
.message-details span { color: var(--muted-foreground); font-size: 8px; }
.reply-box { margin-top: auto; border: 0; border-radius: 18px; background: var(--muted); padding: 13px; color: var(--muted-foreground); font-size: 9px; text-align: left; }
.activity-layout { display: grid; gap: 14px; }
.activity-card { border-radius: 22px; background: var(--card); padding: 15px; box-shadow: 0 5px 18px rgba(31, 23, 56, .04); }
.count-pill { background: var(--accent-soft); padding: 5px 8px; color: var(--accent); font-size: 8px; font-weight: 800; }
.empty-mini { margin-top: 14px; border-radius: 16px; background: var(--muted); padding: 17px; color: var(--muted-foreground); font-size: 9px; text-align: center; }
.activity-thread { display: grid; width: 100%; grid-template-columns: 34px minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; margin-top: 12px; border: 0; border-radius: 16px; background: var(--accent-soft); padding: 10px; text-align: left; }
.activity-thread > span:nth-child(2), .activity-thread > span:nth-child(3) { display: grid; gap: 2px; }
.activity-thread > span:nth-child(3) { justify-items: end; }
.activity-thread strong { font-size: 9px; }
.activity-thread b, .activity-thread small { color: var(--muted-foreground); font-size: 8px; }
.activity-thread .app-icon { width: 12px; height: 12px; color: var(--muted-foreground); }
.app-toast { position: absolute; z-index: 35; right: 24px; bottom: 22px; display: flex; max-width: 310px; align-items: center; gap: 9px; border-radius: 999px; background: var(--primary); padding: 11px 15px; color: white; box-shadow: var(--shadow-raised); font-size: 9px; font-weight: 750; }
.app-toast .app-icon { width: 14px; height: 14px; }
.app-toast.is-error { background: var(--destructive); }

@media (max-width: 1300px) {
  .prototype-layout { grid-template-columns: minmax(0, 1fr) 318px; }
  .odia-app { grid-template-columns: 190px minmax(0, 1fr); }
  .app-nav-item { padding: 0 12px; }
  .service-sheet { width: 68%; }
  .financial-summary { display: none; }
}

@media (max-width: 1040px) {
  .prototype-layout { grid-template-columns: 1fr; }
  .review-notes { position: relative; top: auto; max-height: none; }
  .odia-app { grid-template-columns: 168px minmax(0, 1fr); }
  .app-sidebar { padding-inline: 7px; }
  .workspace-switcher { grid-template-columns: 30px minmax(0, 1fr); }
  .workspace-caret { display: none; }
  .app-nav-item { gap: 9px; padding: 0 10px; font-size: 11px; }
  .app-surface { padding: 18px; }
  .journey-header { grid-template-columns: 96px minmax(0, 1fr); }
  .service-sheet { width: 72%; min-width: 480px; }
  .email-dialog { width: min(620px, calc(100% - 34px)); }
}

@media (max-width: 760px) {
  .review-toolbar { align-items: flex-start; flex-direction: column; }
  .review-controls { justify-content: flex-start; }
  .prototype-layout, .state-pills { padding-inline: 12px; }
  .odia-app { min-width: 650px; grid-template-columns: 62px minmax(0, 1fr); }
  .app-sidebar { min-height: 930px; }
  .workspace-switcher { display: grid; grid-template-columns: 1fr; justify-items: center; padding-inline: 4px; }
  .workspace-switcher > span:nth-child(2), .app-nav-item span, .nav-badge, .sidebar-account div, .sidebar-account .more-button { display: none; }
  .app-nav-item { justify-content: center; padding: 0; }
  .sidebar-account { display: flex; justify-content: center; padding-inline: 0; }
  .topbar-crumb { font-size: 10px; }
  .journey-cover { display: none; }
  .journey-header { grid-template-columns: 1fr; }
  .service-sheet { width: calc(100% - 62px); min-width: 0; }
}
