:root {
  --page: #f4f2f8;
  --card: #ffffff;
  --muted-surface: #f4f3f7;
  --muted-surface-hover: #eeecf4;
  --foreground: #171422;
  --muted-foreground: #706a7d;
  --border: #ddd9e5;
  --primary: #17112f;
  --primary-foreground: #ffffff;
  --accent: #6d4aff;
  --accent-soft: #eee9ff;
  --accent-soft-hover: #e7e0ff;
  --success: #08765b;
  --success-soft: #def7ed;
  --warning: #9a5d00;
  --warning-soft: #fff2d7;
  --destructive: #b4233c;
  --destructive-soft: #fde8ec;
  --shadow: 0 18px 48px rgba(34, 26, 57, .11);
  --soft-shadow: 0 7px 24px rgba(34, 26, 57, .06);
  color: var(--foreground);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; background: var(--page); }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .64; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent);
  outline-offset: 2px;
}

.app-icon { width: 17px; height: 17px; flex: 0 0 auto; }

/* External review shell */
.review-toolbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--card) 95%, transparent);
  box-shadow: 0 1px 0 var(--border);
  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: .05em; text-transform: uppercase; }
.review-controls select, .quiet-button, .notes-toggle {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  padding: 0 13px;
}
.notes-toggle { grid-auto-flow: column; align-items: center; }
.notes-toggle input { accent-color: var(--accent); }
.state-pills { display: flex; gap: 8px; overflow-x: auto; padding: 12px 24px 0; scrollbar-width: thin; }
.state-pill { flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--card); padding: 8px 12px; font-size: 11px; font-weight: 750; box-shadow: 0 1px 0 var(--border); }
.state-pill:hover { background: var(--accent-soft-hover); }
.state-pill.active { background: var(--primary); color: var(--primary-foreground); box-shadow: none; }
.prototype-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 18px; padding: 18px 24px 48px; }
.prototype-stage { min-width: 0; }
.screen-root { min-width: 0; }
.review-notes {
  position: sticky;
  top: 90px;
  display: grid;
  max-height: calc(100vh - 110px);
  gap: 15px;
  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 { border-radius: 18px; background: var(--primary); padding: 14px !important; box-shadow: none !important; }
.question-card h3, .question-card p { color: white; }

/* Current Odia app frame */
.odia-app-frame {
  position: relative;
  display: grid;
  min-height: 900px;
  grid-template-columns: 164px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 28px;
  background: var(--muted-surface);
  box-shadow: var(--shadow);
}
.app-sidebar { display: flex; min-width: 0; flex-direction: column; background: var(--card); padding: 12px 10px; }
.workspace-switcher { display: grid; grid-template-columns: 29px minmax(0, 1fr) 16px; align-items: center; gap: 8px; border: 0; border-radius: 18px; background: transparent; padding: 7px; text-align: left; font-size: 11px; font-weight: 800; }
.workspace-switcher:hover { background: var(--muted-surface); }
.workspace-switcher .app-icon { width: 13px; height: 13px; color: var(--muted-foreground); }
.odia-mark { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 11px; background: var(--primary); color: white; font-size: 12px; font-weight: 900; }
.app-nav { display: grid; gap: 3px; margin-top: 18px; }
.app-nav-item { display: flex; align-items: center; gap: 9px; border: 0; border-radius: 999px; background: transparent; padding: 8px 10px; color: var(--muted-foreground); font-size: 11px; text-align: left; }
.app-nav-item:hover { background: var(--muted-surface); color: var(--foreground); }
.app-nav-item.is-active { background: var(--accent-soft); color: var(--foreground); font-weight: 800; }
.app-nav-item .app-icon { width: 15px; height: 15px; }
.sidebar-account { display: grid; min-width: 0; grid-template-columns: 35px minmax(0, 1fr) 17px; align-items: center; gap: 8px; margin-top: auto; padding: 10px 7px 2px; }
.account-avatar, .mini-avatar { display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--primary); font-size: 10px; font-weight: 900; }
.account-avatar { width: 35px; height: 35px; }
.mini-avatar { width: 29px; height: 29px; }
.sidebar-account div { display: grid; min-width: 0; gap: 1px; }
.sidebar-account strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account span { color: var(--muted-foreground); font-size: 9px; }
.sidebar-account .app-icon { width: 14px; height: 14px; color: var(--muted-foreground); }
.app-main { min-width: 0; }
.app-topbar { display: grid; height: 54px; grid-template-columns: minmax(0, 1fr) minmax(180px, 310px) auto; align-items: center; gap: 15px; padding: 0 15px; background: var(--card); box-shadow: inset 0 -1px 0 var(--border); }
.topbar-crumb { overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.global-search { display: grid; grid-template-columns: 15px 1fr auto; align-items: center; gap: 7px; border-radius: 999px; background: var(--muted-surface); padding: 8px 10px; color: var(--muted-foreground); font-size: 10px; }
.global-search .app-icon { width: 14px; height: 14px; }
.global-search kbd { border-radius: 6px; background: var(--card); padding: 2px 5px; font-size: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-actions button, .icon-button { display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; padding: 7px; }
.topbar-actions button:hover, .icon-button:hover { background: var(--muted-surface-hover); }
.journey-content { padding: 14px 16px 22px; }
.journey-header { display: grid; min-height: 118px; grid-template-columns: 118px minmax(0, 1fr); overflow: hidden; border-radius: 24px; background: var(--card); box-shadow: var(--soft-shadow); }
.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; }
.status-pill, .status-badge, .quiet-status { border-radius: 999px; padding: 4px 8px; font-size: 8px; font-weight: 850; white-space: nowrap; }
.status-pill { background: var(--warning-soft); color: var(--warning); }
.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); }
.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; }
.segmented { display: inline-flex; border-radius: 999px; background: var(--muted-surface); padding: 2px; }
.segmented button { border: 0; border-radius: 999px; background: transparent; padding: 6px 10px; font-size: 9px; }
.segmented button.is-active { background: var(--card); font-weight: 800; box-shadow: 0 1px 5px rgba(30,23,52,.08); }
.journey-actions { display: flex; align-items: center; gap: 6px; }
.primary-button, .tinted-button, .builder-tools button, .filter-row button, .text-button {
  display: inline-flex;
  min-height: 33px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 9px;
  font-weight: 850;
}
.primary-button { background: var(--primary); color: var(--primary-foreground); }
.primary-button:hover:not(:disabled) { background: color-mix(in srgb, var(--primary) 88%, white); }
.tinted-button { background: var(--accent-soft); color: var(--primary); }
.tinted-button:hover { background: var(--accent-soft-hover); }
.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: 10px; }
.journey-tabs button:hover { color: var(--foreground); }
.journey-tabs button.is-active { border-bottom-color: var(--primary); color: var(--foreground); font-weight: 850; }
.builder-panel { overflow: hidden; border-radius: 24px; background: var(--card); box-shadow: var(--soft-shadow); }
.builder-toolbar { display: flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; box-shadow: inset 0 -1px 0 var(--border); }
.view-switch { display: flex; border-radius: 999px; background: var(--muted-surface); padding: 2px; }
.view-switch button { border: 0; border-radius: 999px; background: transparent; padding: 6px 10px; font-size: 9px; }
.view-switch button.is-active { background: var(--card); font-weight: 800; box-shadow: 0 1px 4px rgba(30,23,52,.08); }
.builder-tools { display: flex; align-items: center; gap: 4px; color: var(--muted-foreground); font-size: 9px; }
.builder-tools button { min-width: 27px; min-height: 27px; background: transparent; color: var(--muted-foreground); padding: 0 7px; }
.builder-tools button:hover { background: var(--muted-surface); color: var(--foreground); }
.builder-tools .app-icon { width: 12px; height: 12px; }
.day-column { padding: 14px; }
.day-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 1px 2px 12px; }
.day-heading span { color: var(--accent); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.day-heading h2 { margin: 3px 0 1px; font-size: 13px; }
.day-heading small { color: var(--muted-foreground); font-size: 9px; }
.add-service-button .app-icon { width: 13px; height: 13px; }
.timeline-list { display: grid; gap: 8px; }
.timeline-card { display: grid; min-height: 67px; grid-template-columns: 44px minmax(0, 1fr) auto auto 28px; align-items: center; gap: 10px; border-radius: 20px; background: var(--muted-surface); padding: 9px 10px; }
.timeline-card:hover { background: var(--muted-surface-hover); }
.timeline-card > time { color: var(--muted-foreground); font-size: 9px; font-weight: 750; text-align: center; }
.service-card-main { display: grid; min-width: 0; gap: 2px; }
.category-label { color: var(--accent); font-size: 7px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.service-card-main strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.service-supplier { overflow: hidden; color: var(--muted-foreground); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.service-relation { display: inline-flex; width: fit-content; align-items: center; gap: 4px; margin-top: 3px; border-radius: 999px; background: var(--accent-soft); padding: 4px 7px; color: var(--primary); font-size: 7px; font-weight: 850; }
.service-relation .app-icon { width: 10px; height: 10px; }
.service-relation.is-delayed { background: var(--warning-soft); color: var(--warning); }
.service-price { font-size: 9px; font-weight: 800; }
.quiet-status { background: var(--card); color: var(--muted-foreground); }
.affected-service-card { min-height: 78px; }
.affected-service-card.has-flight-impact { background: var(--warning-soft); }
.impact-status { border-radius: 999px; background: var(--card); padding: 4px 8px; color: var(--warning); font-size: 8px; font-weight: 850; white-space: nowrap; }
.impact-action { width: fit-content; border: 0; border-radius: 999px; background: var(--primary); padding: 5px 8px; color: white; font-size: 7px; font-weight: 850; }
.impact-action:hover { background: color-mix(in srgb, var(--primary) 88%, white); }
.flight-timeline-card { grid-template-columns: 44px 30px minmax(0, 1fr) auto auto 28px; background: var(--accent-soft); }
.flight-card-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--card); color: var(--accent); }
.flight-card-icon .app-icon { width: 15px; height: 15px; transform: rotate(18deg); }
.status-badge.scheduled { background: var(--accent-soft); color: var(--accent); }
.status-badge.delayed { background: var(--warning-soft); color: var(--warning); }
.flight-timeline-card .status-badge.scheduled { background: var(--card); }
.flight-timeline-card .status-badge.delayed { background: var(--card); }

/* Add Service sheet */
.add-sheet {
  position: absolute;
  z-index: 8;
  inset: 0 0 0 auto;
  display: flex;
  width: min(650px, calc(100% - 96px));
  min-width: 530px;
  flex-direction: column;
  background: var(--card);
  box-shadow: -18px 0 48px rgba(34, 26, 57, .14);
}
.sheet-header { display: flex; min-height: 57px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; box-shadow: inset 0 -1px 0 var(--border); }
.sheet-header > div { display: flex; align-items: center; gap: 8px; }
.sheet-header h2 { margin: 0; font-size: 15px; }
.sheet-header .app-icon { width: 15px; height: 15px; }
.sheet-tabs { display: flex; flex: 0 0 auto; gap: 15px; overflow-x: auto; padding: 0 14px; box-shadow: inset 0 -1px 0 var(--border); scrollbar-width: none; }
.sheet-tabs button { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 13px 1px 11px; color: var(--muted-foreground); font-size: 9px; white-space: nowrap; }
.sheet-tabs button:hover { color: var(--foreground); }
.sheet-tabs button.is-active { border-bottom-color: var(--primary); color: var(--foreground); font-weight: 850; }
.sheet-content { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 12px; overflow: hidden; padding: 14px; }
.service-filter-card { display: grid; gap: 11px; border-radius: 24px; background: var(--muted-surface); padding: 13px; }
.search-row { display: flex; align-items: center; gap: 9px; }
.search-input { display: flex; min-width: 0; flex: 1; align-items: center; gap: 7px; border-radius: 999px; background: var(--card); padding: 0 11px; box-shadow: inset 0 0 0 1px var(--border); }
.search-input .app-icon { width: 14px; height: 14px; }
.search-input input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; padding: 9px 0; font-size: 10px; }
.filter-pills, .filter-row { display: flex; gap: 7px; overflow-x: auto; }
.filter-pills button, .filter-row button { flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--card); padding: 6px 10px; color: var(--muted-foreground); font-size: 8px; }
.filter-pills button.is-active { background: var(--primary); color: white; }
.filter-row button { min-height: 26px; }
.library-grid { display: grid; min-height: 0; flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px; overflow-y: auto; border-radius: 24px; background: var(--muted-surface); padding: 12px; }
.library-card { display: grid; min-width: 0; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 10px; border: 0; border-radius: 20px; background: var(--card); padding: 9px; text-align: left; box-shadow: var(--soft-shadow); }
.library-card:hover { background: color-mix(in srgb, var(--accent-soft) 38%, white); }
.service-image { display: grid; width: 58px; height: 52px; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #d8d2e8, #f3efe6); color: var(--muted-foreground); }
.library-card > span:last-child { display: grid; min-width: 0; gap: 3px; }
.library-card small { color: var(--accent); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.library-card strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.library-card em { color: var(--muted-foreground); font-size: 8px; font-style: normal; }

/* Flight tab */
.flight-form { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 14px; overflow-y: auto; padding: 1px 2px 0; }
.flight-form-intro { display: flex; align-items: flex-start; gap: 11px; border-radius: 24px; background: var(--accent-soft); padding: 13px; }
.flight-intro-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--card); color: var(--accent); }
.flight-intro-icon .app-icon { transform: rotate(18deg); }
.flight-form-intro h3 { margin: 1px 0 4px; font-size: 12px; }
.flight-form-intro p { max-width: 440px; margin: 0; color: var(--muted-foreground); font-size: 9px; line-height: 1.45; }
.flight-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-field { display: grid; gap: 5px; }
.form-field > span { font-size: 9px; font-weight: 800; }
.form-field input, .form-field textarea { width: 100%; border: 0; border-radius: 18px; background: var(--muted-surface); padding: 10px 12px; font-size: 10px; box-shadow: inset 0 0 0 1px var(--border); }
.form-field input:disabled { color: var(--muted-foreground); }
.form-field textarea { min-height: 66px; resize: vertical; }
.form-field small { color: var(--muted-foreground); font-size: 8px; }
.result-skeleton { display: grid; gap: 15px; border-radius: 24px; background: var(--muted-surface); padding: 15px; }
.result-skeleton div { display: flex; justify-content: space-between; gap: 12px; }
.result-skeleton span, .result-skeleton i, .result-skeleton b { display: block; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #e4e1e9, #f6f5f8, #e4e1e9); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.result-skeleton span { width: 34%; }
.result-skeleton .skeleton-route { align-items: center; }
.result-skeleton i { width: 64px; height: 42px; border-radius: 16px; }
.result-skeleton b { flex: 1; height: 4px; }
.flight-result { display: grid; gap: 14px; border-radius: 24px; background: var(--muted-surface); padding: 14px; }
.flight-result.is-disabled { opacity: .68; }
.flight-result > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flight-result-title { display: flex; align-items: center; gap: 9px; }
.flight-result-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--card); color: var(--accent); }
.flight-result-icon .app-icon { transform: rotate(18deg); }
.flight-result-title > div { display: grid; gap: 2px; }
.flight-result-title span { color: var(--muted-foreground); font-size: 8px; }
.flight-result-title strong { font-size: 15px; }
.result-status { display: grid; justify-items: end; gap: 4px; }
.result-status small { color: var(--muted-foreground); font-size: 7px; }
.route-summary { display: grid; grid-template-columns: 120px minmax(80px, 1fr) 120px; align-items: center; gap: 12px; }
.route-summary > div:not(.route-line) { display: grid; gap: 2px; }
.route-summary > div:last-child { justify-items: end; text-align: right; }
.route-summary strong { font-size: 25px; letter-spacing: -.05em; }
.route-summary span { color: var(--muted-foreground); font-size: 8px; }
.route-summary time { margin-top: 4px; font-size: 14px; font-weight: 850; }
.route-summary small { color: var(--muted-foreground); font-size: 8px; }
.route-line { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; color: var(--muted-foreground); }
.route-line span { grid-column: 1 / 3; justify-self: center; margin-bottom: 5px; }
.route-line i { height: 1px; background: var(--border); }
.route-line .app-icon { width: 15px; height: 15px; transform: rotate(18deg); color: var(--accent); }
.movement-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.movement-details span { display: grid; gap: 3px; border-radius: 16px; background: var(--card); padding: 9px; font-size: 9px; }
.movement-details small { color: var(--muted-foreground); font-size: 7px; text-transform: uppercase; }
.flight-result > footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted-foreground); font-size: 8px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.optional-details { border-radius: 24px; background: var(--muted-surface); padding: 4px; }
.optional-details > button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: 20px; background: transparent; padding: 10px 11px; text-align: left; }
.optional-details > button:hover { background: var(--muted-surface-hover); }
.optional-details > button span { display: grid; gap: 2px; }
.optional-details > button strong { font-size: 9px; }
.optional-details > button small { color: var(--muted-foreground); font-size: 8px; }
.optional-details > button .app-icon { width: 14px; height: 14px; transition: transform .18s ease; }
.optional-details.is-open > button .app-icon { transform: rotate(90deg); }
.optional-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; padding: 4px 9px 10px; }
.optional-grid .span-2 { grid-column: 1 / -1; }
.affected-services { display: grid; gap: 9px; border-radius: 24px; background: var(--muted-surface); padding: 12px; }
.affected-services > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.affected-services h4 { margin: 0 0 3px; font-size: 10px; }
.affected-services header p, .association-empty p { margin: 0; color: var(--muted-foreground); font-size: 8px; line-height: 1.4; }
.optional-tag { border-radius: 999px; background: var(--card); padding: 4px 7px; color: var(--muted-foreground); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.affected-service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.affected-service-option { display: grid; min-width: 0; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 8px; border: 0; border-radius: 18px; background: var(--card); padding: 9px; text-align: left; }
.affected-service-option:hover:not(:disabled) { background: var(--accent-soft-hover); }
.affected-service-option.is-selected { background: var(--accent-soft); }
.selection-check { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--muted-surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--border); }
.is-selected .selection-check { background: var(--card); box-shadow: none; }
.selection-check .app-icon { width: 12px; height: 12px; }
.affected-service-copy { display: grid; min-width: 0; gap: 3px; }
.affected-service-copy > span { display: flex; min-width: 0; align-items: center; gap: 6px; }
.affected-service-copy strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.affected-service-copy em { border-radius: 999px; background: var(--success-soft); padding: 3px 5px; color: var(--success); font-size: 6px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.affected-service-copy small { overflow: hidden; color: var(--muted-foreground); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.affected-services > footer { color: var(--muted-foreground); font-size: 8px; }
.affected-services > footer strong { color: var(--success); }
.association-empty { display: flex; align-items: flex-start; gap: 9px; border-radius: 18px; background: var(--card); padding: 10px; }
.association-empty > .app-icon { width: 17px; height: 17px; color: var(--muted-foreground); }
.association-empty div { display: grid; gap: 3px; }
.association-empty strong { font-size: 9px; }
.inline-message { display: flex; align-items: flex-start; gap: 10px; border-radius: 22px; padding: 13px; }
.inline-message > .app-icon { width: 18px; height: 18px; margin-top: 1px; }
.inline-message div { display: grid; gap: 4px; }
.inline-message strong { font-size: 10px; }
.inline-message p { margin: 0; font-size: 9px; line-height: 1.45; }
.warning-message { background: var(--warning-soft); color: var(--warning); }
.error-message { background: var(--destructive-soft); color: var(--destructive); }
.duplicate-message { background: var(--accent-soft); color: var(--primary); }
.inline-message.compact { padding: 10px 12px; }
.text-button { justify-self: start; min-height: 27px; background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; padding-inline: 10px; }
.flight-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 12px 2px 2px; box-shadow: inset 0 1px 0 var(--border); }
.flight-form-footer > span { color: var(--muted-foreground); font-size: 8px; }
.flight-form-footer > div { display: flex; gap: 8px; }
.flight-form-footer .quiet-button { font-size: 9px; font-weight: 800; }
.spinner { width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.34); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1150px) {
  .review-toolbar { align-items: flex-start; flex-direction: column; }
  .review-controls { justify-content: flex-start; }
  .prototype-layout { grid-template-columns: 1fr; }
  .review-notes { position: relative; top: auto; max-height: none; }
}

@media (max-width: 940px) {
  .odia-app-frame { grid-template-columns: 64px minmax(0, 1fr); }
  .workspace-switcher { display: flex; justify-content: center; padding-inline: 0; }
  .workspace-switcher > span:nth-child(2), .workspace-switcher .app-icon, .app-nav-item span, .sidebar-account div, .sidebar-account > .app-icon { display: none; }
  .app-nav-item { justify-content: center; padding-inline: 0; }
  .sidebar-account { display: flex; justify-content: center; padding-inline: 0; }
  .add-sheet { width: min(650px, calc(100% - 64px)); min-width: 520px; }
  .journey-cover { display: none; }
  .journey-header { grid-template-columns: 1fr; }
  .global-search { grid-template-columns: 15px 1fr; }
  .global-search kbd { display: none; }
  .timeline-card { grid-template-columns: 38px minmax(0, 1fr) auto 26px; }
  .timeline-card .service-price { display: none; }
  .flight-timeline-card { grid-template-columns: 38px 28px minmax(0, 1fr) auto 26px; }
  .flight-timeline-card .quiet-status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
