/* LMA Deep Analysis — request form.
   Tokens and components follow the LMA design system (Montserrat / Open Sans,
   midnight #001C38). Everything is scoped to .lma-da so the theme is untouched. */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/Montserrat.woff2) format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/OpenSans.woff2) format('woff2');
}

.lma-da {
  --paper: oklch(98.2% 0.005 80);
  --surface: #fff;
  --surface-sunk: oklch(96.5% 0.005 80);
  --ink: oklch(22% 0.014 255);
  --ink-2: oklch(38% 0.012 255);
  --ink-3: oklch(55% 0.010 255);
  --ink-4: oklch(72% 0.008 255);
  --line: oklch(92% 0.006 80);
  --line-2: oklch(86% 0.008 80);
  --line-strong: oklch(78% 0.010 80);
  --primary: #001C38;
  --primary-2: #06294A;
  --primary-soft: #E5EAF0;
  --gain: oklch(48% 0.080 190);
  --gain-soft: oklch(94% 0.025 190);
  --warn-soft: oklch(95% 0.045 85);
  --loss: oklch(46% 0.160 22);
  --focus: 0 0 0 3px rgba(0, 28, 56, .22);
  --display: 'Montserrat', 'Open Sans', system-ui, sans-serif;
  --sans: 'Open Sans', -apple-system, system-ui, 'Segoe UI', sans-serif;

  container-type: inline-size;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.lma-da *, .lma-da *::before, .lma-da *::after { box-sizing: border-box; }
.lma-da h1, .lma-da h2, .lma-da p, .lma-da ol, .lma-da ul, .lma-da li, .lma-da pre { margin: 0; padding: 0; }
.lma-da ol, .lma-da ul { list-style: none; }
.lma-da button {
  font: inherit; color: inherit; margin: 0; text-transform: none; letter-spacing: normal;
  text-shadow: none; box-shadow: none; min-height: 0; min-width: 0; line-height: 1.3; width: auto;
}
.lma-da a { text-decoration: none; }
/* Themes add their own focus outlines; this form draws its own focus rings. */
.lma-da *:focus { outline: none; }
.lma-da a:focus-visible { box-shadow: var(--focus); border-radius: 4px; }
.lma-da svg { display: block; }
.lma-da [hidden] { display: none !important; }

/* ---------- card + type ---------- */
.lma-da-card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 56px 64px 48px;
}
.lma-da .lma-da-h1 {
  font-family: var(--display); font-weight: 600; font-size: 44px; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--primary);
}
.lma-da .lma-da-lede { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 620px; text-wrap: pretty; }
.lma-da .lma-da-h2 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.25; color: var(--ink); margin-bottom: 20px; outline: none; }
.lma-da .lma-da-h2:has(+ .lma-da-sub) { margin-bottom: 6px; }
.lma-da .lma-da-sub { font-size: 15px; line-height: 1.55; color: var(--ink-3); margin-bottom: 22px; max-width: 640px; text-wrap: pretty; }
.lma-da .lma-da-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.lma-da .lma-da-quiet { font-size: 13.5px; color: var(--ink-3); }
.lma-da .lma-da-fine { margin-top: 24px; font-size: 13px; line-height: 1.55; color: var(--ink-3); max-width: 440px; text-wrap: pretty; }
.lma-da .lma-da-mt20 { margin-top: 20px; }
.lma-da .lma-da-mt24 { margin-top: 24px; }
.lma-da .lma-da-mt28 { margin-top: 28px; }

/* ---------- layout ---------- */
.lma-da-layout { display: flex; gap: 48px; align-items: flex-start; margin-top: 44px; }
.lma-da-card.is-headless .lma-da-layout { margin-top: 0; }
.lma-da-card.is-headless .lma-da-mstep { margin-top: 0; }
.lma-da-main { flex: 1; min-width: 0; animation: lma-da-in .28s ease-out both; }
@keyframes lma-da-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- rail ---------- */
.lma-da-rail {
  flex: none; width: 190px; padding-right: 32px; border-right: 1px solid var(--line);
  align-self: stretch; display: flex; flex-direction: column;
}
.lma-da .lma-da-railstep {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px;
  background: none; border: 0; padding: 0; text-align: left; cursor: default; white-space: normal;
}
.lma-da .lma-da-railstep.is-clickable { cursor: pointer; }
.lma-da .lma-da-railstep:focus-visible { outline: none; }
.lma-da .lma-da-railstep:focus-visible .lma-da-railstep__dot { box-shadow: var(--focus); }
.lma-da-railstep__track { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
.lma-da-railstep__dot {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink-3);
  transition: background .25s, border-color .25s, color .25s;
}
.lma-da-railstep.is-current .lma-da-railstep__dot { border: 2px solid var(--primary); color: var(--primary); }
.lma-da-railstep.is-done .lma-da-railstep__dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.lma-da-railstep__line { width: 2px; flex: 1; min-height: 30px; margin: 6px 0; background: var(--line-2); transition: background .25s; }
.lma-da-railstep.is-done .lma-da-railstep__line { background: var(--primary); }
.lma-da-railstep.is-last .lma-da-railstep__line { opacity: 0; }
.lma-da-railstep__text { padding: 4px 0 24px; display: flex; flex-direction: column; min-width: 0; }
.lma-da-railstep__label { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.lma-da-railstep.is-current .lma-da-railstep__label { font-weight: 600; color: var(--ink); }
.lma-da-railstep.is-done .lma-da-railstep__label { color: var(--ink-2); }
.lma-da-railstep.is-clickable:hover .lma-da-railstep__label { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lma-da-railstep__summary { margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--ink-3); overflow-wrap: anywhere; }

.lma-da-spend { margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.lma-da-spend__label { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.lma-da-spend__value { margin-top: 4px; font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.lma-da-spend__note { margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.lma-da-spend__plan { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }

/* mobile stepper (shown instead of the rail on narrow screens) */
.lma-da-mstep { display: none; margin-top: 24px; }
.lma-da-mstep__text { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--ink-3); }
.lma-da-mstep__text strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.lma-da-mstep__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.lma-da-mstep__bar span { height: 4px; border-radius: 2px; background: var(--line-2); transition: background .25s; }
.lma-da-mstep__bar .is-done, .lma-da-mstep__bar .is-current { background: var(--primary); }
.lma-da-mstep__bar .is-current { opacity: .45; }

/* ---------- buttons ---------- */
.lma-da .lma-da-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
  font-family: var(--sans); font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: background .1s ease-out, border-color .1s ease-out, color .1s ease-out;
  text-decoration: none; user-select: none;
}
.lma-da .lma-da-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.lma-da .lma-da-btn:disabled { opacity: .5; cursor: not-allowed; }
.lma-da .lma-da-btn--lg { height: 44px; padding: 0 20px; font-size: 14.5px; border-radius: 6px; }
.lma-da .lma-da-btn--sm { height: 28px; padding: 0 12px; font-size: 12.5px; border-radius: 3px; }
.lma-da .lma-da-btn--primary { min-width: 6rem; background: var(--primary); color: #fff; }
.lma-da .lma-da-btn--primary:hover:not(:disabled) { background: var(--primary-2); color: #fff; }
.lma-da .lma-da-btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.lma-da .lma-da-btn--secondary:hover:not(:disabled) { background: var(--surface-sunk); border-color: var(--line-strong); color: var(--ink); }
.lma-da .lma-da-btn--ghost { background: transparent; color: var(--ink-2); }
.lma-da .lma-da-btn--ghost:hover:not(:disabled) { background: var(--surface-sunk); color: var(--ink); }
.lma-da-btn__icon { display: inline-flex; }

/* ---------- option cards ---------- */
.lma-da-grid { display: grid; gap: 14px; }
.lma-da-grid--modes { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.lma-da-grid--reports { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lma-da .lma-da-option {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 20px 22px; border-radius: 10px; text-align: left; white-space: normal; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line-2); transition: background .15s, border-color .15s, box-shadow .15s;
}
.lma-da .lma-da-option:hover { border-color: var(--line-strong); }
.lma-da .lma-da-option:focus-visible { outline: none; box-shadow: var(--focus); }
.lma-da .lma-da-option.is-on { background: var(--primary-soft); border-color: var(--primary); }
.lma-da .lma-da-option.is-disabled { cursor: not-allowed; background: var(--surface-sunk); border-color: var(--line); }
.lma-da .lma-da-option.is-disabled .lma-da-option__title, .lma-da .lma-da-option.is-disabled .lma-da-option__desc { color: var(--ink-3); }
.lma-da-radio {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px;
  border: 1.5px solid var(--line-strong); background: var(--surface);
}
.lma-da-radio span { width: 10px; height: 10px; border-radius: 50%; background: transparent; transition: background .15s; }
.lma-da-radio.is-on { border: 2px solid var(--primary); }
.lma-da-radio.is-on span { background: var(--primary); }
.lma-da-option__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lma-da-option__title { font-size: 16px; font-weight: 600; color: var(--ink); }
.lma-da-option__desc { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.lma-da-option__price { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lma-da-option__price.is-gain { color: var(--gain); }
.lma-da-option__price.is-muted { color: var(--ink-3); font-weight: 500; }

/* ---------- rows (setup steps, documents) ---------- */
.lma-da-rows { display: flex; flex-direction: column; gap: 10px; }
.lma-da-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); transition: background .2s, border-color .2s;
}
.lma-da-row--status { margin-top: 6px; background: var(--surface-sunk); border-color: transparent; }
.lma-da-row--status.is-good { background: var(--gain-soft); }
.lma-da-doc.is-flagged { background: var(--warn-soft); border-color: transparent; }
.lma-da-doc.is-empty { border: 1px dashed var(--line-strong); }
.lma-da-doc.is-drag { border: 1px dashed var(--primary); background: var(--primary-soft); }
.lma-da-row__icon { flex: none; width: 28px; height: 28px; display: grid; place-items: center; }
.lma-da-row__text { flex: 1; min-width: 0; }
.lma-da-row__title { font-size: 15px; font-weight: 600; color: var(--ink); }
.lma-da-row__detail { margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); overflow-wrap: anywhere; }
.lma-da-row__detail.is-strong { color: var(--ink-2); }
.lma-da-row__actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.lma-da-row__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 13px; }
.lma-da .lma-da-row__links a { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 500; text-decoration: none; }
.lma-da .lma-da-row__links a:hover { text-decoration: underline; text-underline-offset: 2px; }
.lma-da .lma-da-row__links a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

.lma-da-badge { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.lma-da-badge--num { background: var(--primary-soft); color: var(--primary); }
.lma-da-badge--primary { background: var(--primary); color: #fff; flex: none; }
.lma-da-badge--solid { background: var(--gain); color: #fff; }
.lma-da-badge--good { background: var(--gain-soft); color: var(--gain); animation: lma-da-pop .3s ease-out; }
.lma-da-badge--sm { width: 22px; height: 22px; }
.lma-da-badge--alert { background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; }
.lma-da-badge--muted { background: var(--surface-sunk); color: var(--ink-3); }
.lma-da-badge--dashed { border: 1.5px dashed var(--line-strong); }
@keyframes lma-da-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- spinner ---------- */
.lma-da-spin {
  display: inline-block; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--primary); animation: lma-da-spin .8s linear infinite;
}
.lma-da-spin--dark { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
@keyframes lma-da-spin { to { transform: rotate(360deg); } }

/* ---------- table (API costs) ---------- */
.lma-da-table { border-radius: 10px; border: 1px solid var(--line); padding: 4px 18px 14px; }
.lma-da-table__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.lma-da-table__row span { color: var(--ink-2); }
.lma-da-table__row strong { flex: none; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.lma-da-table__note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }

/* ---------- nav ---------- */
.lma-da-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
.lma-da-nav__right { display: flex; align-items: center; gap: 16px; justify-content: flex-end; flex-wrap: wrap; }
.lma-da-nav__note { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- fields ---------- */
.lma-da-company { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: start; }
.lma-da-field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.lma-da-field__label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.lma-da-field__help { font-size: 12.5px; color: var(--ink-3); }
.lma-da .lma-da-input {
  height: 44px; width: 100%; margin: 0; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface);
  padding: 0 12px; font-family: var(--sans); font-size: 14.5px; color: var(--ink); box-shadow: none;
  transition: border-color .1s, box-shadow .1s;
}
.lma-da .lma-da-input::placeholder { color: var(--ink-4); opacity: 1; }
.lma-da .lma-da-input:hover:not(:disabled) { border-color: var(--line-strong); }
.lma-da .lma-da-input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.lma-da .lma-da-input:disabled { background: var(--surface-sunk); color: var(--ink-3); cursor: not-allowed; }
.lma-da-selectwrap { position: relative; }
.lma-da-selectwrap .lma-da-spin { position: absolute; right: 34px; top: 12px; }
.lma-da .lma-da-select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23596473' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

.lma-da-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 6px; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 28, 56, .05), 0 12px 32px rgba(0, 28, 56, .10); animation: lma-da-in .15s ease-out;
  max-height: 340px; overflow-y: auto;
}
.lma-da .lma-da-result {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: pointer;
}
.lma-da .lma-da-result.is-active { background: var(--surface-sunk); }
.lma-da-result__ticker { font-size: 13.5px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.lma-da-result__name { font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lma-da-result__ex { font-size: 12.5px; color: var(--ink-3); }
.lma-da .lma-da-result--typed { display: block; font-size: 13.5px; color: var(--ink-2); border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; margin-top: 4px; }
.lma-da-results__empty { padding: 12px; font-size: 14px; color: var(--ink-3); }
.lma-da-skel-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 48px; gap: 12px; padding: 13px 12px; }
.lma-da-skel-row span { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--surface-sunk), var(--line), var(--surface-sunk)); background-size: 200% 100%; animation: lma-da-shimmer 1.2s linear infinite; }
.lma-da-skel-row span:nth-child(1) { width: 44px; }
@keyframes lma-da-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.lma-da-picked { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; background: var(--primary-soft); animation: lma-da-in .2s ease-out; }
.lma-da-picked__text { flex: 1; min-width: 0; font-size: 15px; color: var(--ink); }
.lma-da-picked__text strong { font-weight: 600; }
.lma-da-picked__text > span { color: var(--ink-3); }
.lma-da-picked__note { display: block; margin-top: 2px; font-size: 13px; }

/* ---------- documents ---------- */
.lma-da-costcells { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 10px; background: var(--surface-sunk); }
.lma-da-costcells > div { padding: 14px 18px; display: flex; flex-direction: column; gap: 3px; }
.lma-da-costcells span { font-size: 12.5px; color: var(--ink-3); }
.lma-da-costcells strong { font-size: 17px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.lma-da-costcells strong.is-total { font-weight: 700; }

/* ---------- generating ---------- */
.lma-da-progress { height: 6px; border-radius: 3px; background: var(--surface-sunk); margin: 28px 0 10px; overflow: hidden; }
.lma-da-progress__fill {
  height: 100%; border-radius: 3px; background-color: var(--primary); transition: width 1.1s ease;
  background-image: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  background-size: 200% 100%; animation: lma-da-sheen 1.8s linear infinite;
}
@keyframes lma-da-sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.lma-da-progress--indeterminate .lma-da-progress__fill { width: 35%; animation: lma-da-slide 1.4s ease-in-out infinite; }
@keyframes lma-da-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
.lma-da-progress__meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 28px; font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lma-da-stages { display: flex; flex-direction: column; gap: 16px; }
.lma-da-stages li { display: flex; align-items: center; gap: 14px; }
.lma-da-stages__icon { flex: none; width: 22px; height: 22px; display: grid; place-items: center; }
.lma-da-stages__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.lma-da-stages__label { font-size: 15px; color: var(--ink-3); }
.lma-da-stages li.is-done .lma-da-stages__label { color: var(--ink); }
.lma-da-stages li.is-active .lma-da-stages__label { color: var(--ink); font-weight: 600; }

/* ---------- ready ---------- */
.lma-da-ready { display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; }
.lma-da-ready__info { flex: 1; min-width: 260px; display: flex; flex-direction: column; }
.lma-da-ready__file { font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.lma-da-ready__meta { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.lma-da-checklist { display: flex; flex-direction: column; gap: 6px; }
.lma-da-checklist li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.lma-da-checklist__icon { color: var(--gain); display: flex; }
.lma-da .lma-da-notes { font-size: 14px; line-height: 1.6; color: var(--ink-2); padding: 12px 14px; background: var(--surface-sunk); border-radius: 8px; max-width: 520px; text-wrap: pretty; }
.lma-da-costlines { display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
.lma-da-costlines > div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lma-da-costlines > div.is-total { color: var(--ink); font-weight: 600; padding-top: 8px; border-top: 1px solid var(--line); }
.lma-da-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.lma-da-saved { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gain); }

.lma-da-preview { position: relative; flex: none; width: 250px; padding: 0 12px 12px 0; }
.lma-da-preview__under { position: absolute; background: #fff; border: 1px solid var(--line-2); border-radius: 3px; }
.lma-da-preview__under--2 { left: 12px; top: 12px; right: 0; bottom: 0; }
.lma-da-preview__under--1 { left: 6px; top: 6px; right: 6px; bottom: 6px; }
.lma-da-preview__page {
  position: relative; display: flex; flex-direction: column; gap: 12px; aspect-ratio: 8.5 / 11; overflow: hidden;
  background: #fff; border: 1px solid var(--line-2); border-radius: 3px; padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 28, 56, .05), 0 10px 28px rgba(0, 28, 56, .08);
}
.lma-da-preview__page--img { padding: 0; display: block; transition: transform .2s, box-shadow .2s; }
.lma-da-preview__page--img:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 28, 56, .06), 0 16px 36px rgba(0, 28, 56, .12); }
.lma-da-preview__page img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.lma-da-preview__mast { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.lma-da-preview__mast span { font-family: var(--display); font-weight: 600; font-size: 12px; color: var(--primary); }
.lma-da-preview__mast small { font-size: 7px; color: var(--ink-3); }
.lma-da-preview__title { font-family: var(--display); font-weight: 600; font-size: 12.5px; line-height: 1.25; color: var(--ink); }
.lma-da-preview__sub { margin-top: 3px; font-size: 8px; color: var(--ink-3); }
.lma-da-preview__sec { display: flex; flex-direction: column; gap: 4px; }
.lma-da-preview__h { font-size: 7.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 1px; }
.lma-da-preview__line { height: 3px; border-radius: 2px; background: var(--line); }

/* ---------- cowork kit ---------- */
.lma-da-kit__file { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--line); }
.lma-da-kit__icon { flex: none; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.lma-da-kit__filetext { display: flex; flex-direction: column; min-width: 0; flex: 1 1 160px; }
.lma-da-kit__filetext strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.lma-da-kit__filetext span { font-size: 13.5px; color: var(--ink-3); }
.lma-da .lma-da-kit__steps { margin-top: 24px; counter-reset: kit; display: flex; flex-direction: column; gap: 12px; }
.lma-da .lma-da-kit__steps li { counter-increment: kit; display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); align-items: baseline; }
.lma-da .lma-da-kit__steps li::before { content: counter(kit); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 600; align-self: start; }
.lma-da .lma-da-kit__steps li > span { padding-top: 1px; }
.lma-da-kit__steps strong { color: var(--ink); font-weight: 600; }
.lma-da-kit__steps code { font-size: 13px; background: var(--surface-sunk); padding: 1px 6px; border-radius: 4px; }
.lma-da-prompt { margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lma-da-prompt__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--surface-sunk); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lma-da .lma-da-prompt__body { padding: 14px 16px; max-height: 240px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; background: var(--surface); border: 0; }
.lma-da-prompt__body:focus-visible { outline: none; box-shadow: inset var(--focus); }

/* ---------- recent ---------- */
.lma-da-recent { margin-top: 36px; }
.lma-da-recent__list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lma-da .lma-da-recent__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--surface); border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.lma-da .lma-da-recent__row:last-child { border-bottom: 0; }
.lma-da .lma-da-recent__row:hover { background: var(--surface-sunk); }
.lma-da-recent__what { display: flex; flex-direction: column; min-width: 0; }
.lma-da-recent__what strong { font-size: 14px; font-weight: 600; }
.lma-da-recent__what span { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lma-da-pill { flex: none; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-sunk); color: var(--ink-2); }
.lma-da-pill.is-ready { background: var(--gain-soft); color: var(--gain); }
.lma-da-pill.is-failed { background: oklch(95% 0.035 22); color: var(--loss); }

/* ---------- sign-in gate ---------- */
.lma-da-gate .lma-da-lede { margin-bottom: 28px; }

/* ---------- narrow layouts ---------- */
@container (max-width: 760px) {
  .lma-da-card { padding: 28px 20px 24px; border-radius: 12px; }
  .lma-da .lma-da-h1 { font-size: 32px; }
  .lma-da .lma-da-lede { font-size: 15.5px; }
  .lma-da-layout { margin-top: 20px; display: block; }
  .lma-da-rail { display: none; }
  .lma-da-mstep { display: block; }
  .lma-da-main { padding-top: 24px; }
  .lma-da-company { grid-template-columns: 1fr; }
  .lma-da-row { flex-wrap: wrap; }
  .lma-da-row__actions { width: 100%; justify-content: flex-start; padding-left: 44px; }
  .lma-da-costcells { grid-template-columns: 1fr; }
  .lma-da-costcells > div { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 10px 16px; }
  .lma-da-nav { flex-wrap: wrap; }
  .lma-da-nav__right { flex: 1; }
  .lma-da-nav__note { flex-basis: 100%; text-align: right; }
  .lma-da-preview { width: 180px; }
  .lma-da-ready { gap: 28px; }
}
@media (max-width: 600px) {
  .lma-da-card { padding: 28px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .lma-da *, .lma-da *::before, .lma-da *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .lma-da-spin { animation: lma-da-spin 1.6s linear infinite !important; }
}
.lma-da-kit__action { flex: none; margin-left: auto; }
