/* UZICE Direct kit · demo build. All classes are prefixed uzd-.
   Theme with CSS variables on the mount element (see README / CONFIG). */

.uzd {
  --uzd-bg: #E8E0CF;
  --uzd-surface: #F6F1E6;
  --uzd-ink: #0D2B2E;
  --uzd-muted: #4A5C5A;
  --uzd-accent: #0B6468;
  --uzd-accent-ink: #F6F1E6;
  --uzd-line: rgba(13, 43, 46, 0.14);
  --uzd-radius: 14px;
  --uzd-font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --uzd-font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --uzd-hi: #C98F2E;
  --uzd-ok: #3E7B52;
  --uzd-err: #A5392A;

  /* derived, themeable */
  --uzd-soft: color-mix(in srgb, var(--uzd-accent) 9%, var(--uzd-surface));
  --uzd-field: color-mix(in srgb, var(--uzd-ink) 4%, var(--uzd-surface));
  --uzd-art-1: color-mix(in srgb, var(--uzd-hi) 20%, var(--uzd-bg));
  --uzd-art-2: color-mix(in srgb, var(--uzd-surface) 55%, var(--uzd-bg));
  --uzd-sand: color-mix(in srgb, var(--uzd-hi) 16%, var(--uzd-surface));
  --uzd-shadow: 0 1px 2px color-mix(in srgb, var(--uzd-ink) 10%, transparent), 0 18px 44px -22px color-mix(in srgb, var(--uzd-ink) 38%, transparent);
  --uzd-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --uzd-chrome: 86px;
  --uzd-r2: calc(var(--uzd-radius) * 0.72);

  position: relative;
  scroll-margin-top: var(--uzd-sticky-top, 0px);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--uzd-sticky-top, 0px));
  min-height: calc(100dvh - var(--uzd-sticky-top, 0px));
  color: var(--uzd-ink);
  background: var(--uzd-bg);
  color-scheme: var(--uzd-scheme, light);
  font-family: var(--uzd-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
.uzd *, .uzd *::before, .uzd *::after { box-sizing: border-box; }
.uzd [hidden] { display: none !important; }
:where(.uzd) :where(h1, h2, h3, p, ul, ol, fieldset, blockquote) { margin: 0; padding: 0; }
:where(.uzd) :where(ul, ol) { list-style: none; }
:where(.uzd) :where(button, input, select, textarea) { font: inherit; color: inherit; touch-action: manipulation; }
:where(.uzd) :where(button) { cursor: pointer; }
.uzd :focus-visible { outline: 2px solid var(--uzd-accent); outline-offset: 2px; }
.uzd ::selection { background: color-mix(in srgb, var(--uzd-accent) 28%, transparent); }
.uzd-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- bar */
.uzd-bar {
  position: sticky; top: var(--uzd-sticky-top, 0px); z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: calc(10px + env(safe-area-inset-top)) clamp(16px, 3vw, 40px) 0;
  background: color-mix(in srgb, var(--uzd-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.uzd-brand { font-family: var(--uzd-font-display); font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; }
.uzd-nav { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--uzd-line); border-radius: 999px; background: var(--uzd-surface); }
.uzd-nav-btn {
  min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  font-size: 0.875rem; font-weight: 550; color: var(--uzd-muted);
}
.uzd-nav-btn[aria-pressed="true"] { background: var(--uzd-ink); color: var(--uzd-bg); }
.uzd-nav-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.uzd-demo {
  flex: 1 0 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 calc(-1 * clamp(16px, 3vw, 40px)); padding: 7px 16px 8px;
  border-bottom: 1px solid var(--uzd-line);
  font-size: 0.75rem; letter-spacing: 0.01em; color: var(--uzd-muted);
}
.uzd-demo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--uzd-hi); flex: none; }

.uzd-guest, .uzd-host { flex: 1; }
.uzd-enter { animation: uzd-enter 0.55s var(--uzd-ease) both; }
.uzd-enter-soft { animation: uzd-soft 0.45s linear both; }
@keyframes uzd-soft { from { opacity: 0; } to { opacity: 1; } }
@keyframes uzd-enter { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- buttons */
.uzd-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--uzd-r2);
  border: 1px solid color-mix(in srgb, var(--uzd-ink) 26%, transparent); background: transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1.1; letter-spacing: 0.005em; text-align: center;
  transition: transform 0.16s var(--uzd-ease), background-color 0.2s linear, box-shadow 0.2s linear, border-color 0.2s linear;
}
.uzd-btn:hover { background: color-mix(in srgb, var(--uzd-ink) 6%, transparent); border-color: color-mix(in srgb, var(--uzd-ink) 44%, transparent); }
.uzd-btn:active { transform: translate3d(0, 1px, 0) scale(0.985); background: color-mix(in srgb, var(--uzd-ink) 10%, transparent); }
.uzd-btn-primary, .uzd-cta {
  background: linear-gradient(180deg, color-mix(in srgb, var(--uzd-accent) 88%, #fff), var(--uzd-accent) 62%);
  border-color: color-mix(in srgb, var(--uzd-accent) 78%, #000); color: var(--uzd-accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.18), 0 10px 22px -12px color-mix(in srgb, var(--uzd-accent) 85%, #000);
}
.uzd-btn-primary:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--uzd-accent) 80%, #fff), color-mix(in srgb, var(--uzd-accent) 94%, #000) 62%); border-color: color-mix(in srgb, var(--uzd-accent) 78%, #000); }
.uzd-btn-primary:active, .uzd-cta:active { background: color-mix(in srgb, var(--uzd-accent) 90%, #000); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.28), 0 1px 1px rgba(0, 0, 0, 0.1); }
.uzd-btn-quiet { border-color: transparent; color: var(--uzd-muted); }
.uzd-btn-quiet:hover { border-color: transparent; color: var(--uzd-ink); }
.uzd-btn:disabled { opacity: 0.6; cursor: progress; }
.uzd-linkbtn { padding: 0; border: 0; background: none; color: var(--uzd-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }

/* ---------------------------------------------------------------- guest: layout */
.uzd-guest {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); align-items: start;
  gap: clamp(24px, 4vw, 64px);
  width: 100%; max-width: 1320px; margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 40px) 72px;
}
.uzd-hero {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  min-height: 540px; border-radius: calc(var(--uzd-radius) * 1.6);
  background: var(--uzd-art-1); isolation: isolate;
}
@media (min-width: 721px) {
  .uzd-hero { position: sticky; top: calc(var(--uzd-chrome) + 14px); height: calc(100dvh - var(--uzd-chrome) - 40px); min-height: 540px; }
}
.uzd-hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.uzd-photo { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: uzd-settle 1.8s var(--uzd-ease) both; }
@keyframes uzd-settle { from { transform: scale(1.1); opacity: 0.6; } to { transform: scale(1.04); opacity: 1; } }
.uzd-hero-veil { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--uzd-bg) 70%, transparent), transparent 46%); }
.uzd-hero.has-photo { background: #16201f; color: #FBF8F1; }
.uzd-hero.has-photo .uzd-hero-veil { background: linear-gradient(to bottom, rgba(9, 15, 15, 0.64) 0%, rgba(9, 15, 15, 0.42) 36%, rgba(9, 15, 15, 0.08) 58%, rgba(9, 15, 15, 0.5) 100%); }
.uzd-hero.has-photo .uzd-hero-place { color: rgba(251, 248, 241, 0.82); }
.uzd-hero.has-photo .uzd-hero-tag { color: rgba(251, 248, 241, 0.94); }
.uzd-hero.has-photo .uzd-facts { border-top-color: rgba(251, 248, 241, 0.34); }
.uzd-hero.has-photo .uzd-facts li { border-bottom-color: rgba(251, 248, 241, 0.2); }
.uzd-hero.has-photo .uzd-hero-title, .uzd-hero.has-photo .uzd-hero-tag { text-shadow: 0 1px 24px rgba(0, 0, 0, 0.28); }
/* bright photo: keep the picture light, dark type, a soft wash at the foot only */
.uzd-hero.is-bright { background: #bfe3e0; color: var(--uzd-ink); }
.uzd-hero.is-bright .uzd-hero-veil { background: linear-gradient(to bottom, transparent 0%, transparent 58%, rgba(246, 241, 230, 0.55) 100%); }
.uzd-hero.is-bright .uzd-hero-place { color: var(--uzd-ink); }
.uzd-hero.is-bright .uzd-hero-tag { color: var(--uzd-ink); }
.uzd-hero.is-bright .uzd-facts { border-top-color: rgba(13, 43, 46, 0.3); }
.uzd-hero.is-bright .uzd-facts li { border-bottom-color: rgba(13, 43, 46, 0.18); }
.uzd-hero.is-bright .uzd-hero-title, .uzd-hero.is-bright .uzd-hero-tag, .uzd-hero.is-bright .uzd-hero-place { text-shadow: 0 0 22px rgba(255, 255, 255, 0.55); }
/* no photo: a typographic panel, set like a menu card */
.uzd-hero.is-type { background: linear-gradient(165deg, color-mix(in srgb, var(--uzd-ink) 5%, var(--uzd-surface)), var(--uzd-bg) 78%); border: 1px solid var(--uzd-line); }
.uzd-hero.is-type::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--uzd-line); border-radius: calc(var(--uzd-radius) * 1.1); pointer-events: none; z-index: 0; }
.uzd-hero.is-type .uzd-hero-veil { display: none; }
.uzd-hero.is-type .uzd-hero-copy { position: relative; z-index: 1; }
.uzd-hero.is-type .uzd-hero-place { order: -1; margin: 0 0 clamp(28px, 5vh, 56px); padding-bottom: 14px; border-bottom: 1px solid var(--uzd-ink); text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.7rem; font-weight: 600; color: var(--uzd-muted); }
.uzd-hero.is-type .uzd-hero-tag { margin-top: 22px; font-style: italic; }
.uzd-hero.is-type .uzd-hero-copy { padding-left: clamp(32px, 3.6vw, 52px); padding-top: clamp(32px, 4vw, 56px); }
.uzd-hero-copy { position: relative; padding: clamp(28px, 3.4vw, 52px) clamp(28px, 3.4vw, 52px) 20px; display: flex; flex-direction: column; max-width: 40rem; }
.uzd-hero-title { font-family: var(--uzd-font-display); font-weight: 500; font-size: clamp(3.4rem, 6.4vw, 6.4rem); line-height: 0.92; letter-spacing: -0.04em; text-wrap: balance; }
.uzd-hero-place { margin-top: 16px; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--uzd-accent); }
.uzd-hero-tag { margin-top: 14px; font-family: var(--uzd-font-display); font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.38; letter-spacing: -0.005em; max-width: 25rem; text-wrap: pretty; }
.uzd-facts { margin-top: 22px; max-width: 24rem; border-top: 1px solid color-mix(in srgb, var(--uzd-ink) 22%, transparent); }
.uzd-facts li { padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--uzd-ink) 12%, transparent); font-size: 0.84rem; letter-spacing: 0.005em; }
@media (max-height: 1000px) and (min-width: 721px) { .uzd-facts { display: none; } }
.uzd-cta { display: none; }
.uzd-est-slot { position: relative; display: flex; flex-direction: column; min-height: 0; margin-top: auto; padding: 0 14px 14px; }
.uzd-est[data-mode="hero"] { display: flex; flex-direction: column; min-height: 0; }
.uzd-est[data-mode="hero"] .uzd-est-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

/* ---------------------------------------------------------------- guest: form panel */
.uzd-sheet {
  position: relative; background: var(--uzd-surface); border: 1px solid var(--uzd-line);
  border-radius: calc(var(--uzd-radius) * 1.6); padding: clamp(24px, 3.2vw, 52px);
  box-shadow: var(--uzd-shadow);
}
.uzd-sheet:focus { outline: none; }
.uzd-sheet-title, .uzd-d-name, .uzd-pane-title, .uzd-est-title, .uzd-card-title { text-wrap: balance; }
.uzd-sheet-title { font-family: var(--uzd-font-display); font-weight: 500; font-size: clamp(2.1rem, 3.3vw, 3.1rem); line-height: 0.98; letter-spacing: -0.035em; }
.uzd-sheet-intro { margin-top: 16px; color: var(--uzd-muted); max-width: 32rem; line-height: 1.55; text-wrap: pretty; }
.uzd-sheet-body { margin-top: 36px; counter-reset: uzd-sec; }
.uzd-grab { display: none; }
.uzd-scrim { display: none; }
.uzd-est-slot-sheet { display: none; }
.uzd-set { border: 0; min-width: 0; margin-bottom: 40px; counter-increment: uzd-sec; }
.uzd-legend { display: block; width: 100%; padding: 0 0 12px; margin-bottom: 18px; border-bottom: 1px solid var(--uzd-line); font-family: var(--uzd-font-display); font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; }
.uzd-legend::before { content: counter(uzd-sec, decimal-leading-zero); display: inline-block; margin-right: 12px; vertical-align: 0.28em; font-family: var(--uzd-font-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; color: var(--uzd-muted); }
.uzd-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.uzd-grid-steppers { margin-top: 12px; }
.uzd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-top: 12px; }
.uzd-grid2 > .uzd-field, .uzd-grid-steppers > .uzd-field { margin-top: 0; }
.uzd-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--uzd-muted); }
.uzd-hint { font-weight: 400; color: var(--uzd-muted); }
.uzd-input {
  width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--uzd-line); border-radius: var(--uzd-r2);
  background: var(--uzd-field); transition: border-color 0.2s linear, background-color 0.2s linear; font-size: 1rem; color: var(--uzd-ink); min-width: 0;
  font-variant-numeric: tabular-nums;
}
.uzd-input:hover { border-color: color-mix(in srgb, var(--uzd-ink) 32%, transparent); }
.uzd-input:focus-visible { border-color: var(--uzd-accent); outline: 2px solid color-mix(in srgb, var(--uzd-accent) 55%, transparent); outline-offset: 1px; }
.uzd-input[aria-invalid="true"] { border-color: var(--uzd-err); }
.uzd-textarea { padding: 12px 14px; min-height: 104px; line-height: 1.5; resize: vertical; }
.uzd-select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.uzd-note { margin-top: 10px; font-size: 0.8125rem; color: var(--uzd-muted); }
.uzd-err { margin-top: 8px; font-size: 0.8125rem; line-height: 1.4; color: var(--uzd-err); font-weight: 500; }
.uzd-stepper { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; border: 1px solid var(--uzd-line); border-radius: var(--uzd-r2); background: var(--uzd-field); overflow: hidden; min-height: 48px; }
.uzd-stepper:focus-within { border-color: var(--uzd-accent); outline: 2px solid color-mix(in srgb, var(--uzd-accent) 55%, transparent); outline-offset: 1px; }
.uzd-step-btn { border: 0; background: transparent; font-size: 1.35rem; line-height: 1; color: var(--uzd-ink); min-height: 46px; }
.uzd-step-btn:hover { background: color-mix(in srgb, var(--uzd-ink) 7%, transparent); }
.uzd-step-btn:active { background: color-mix(in srgb, var(--uzd-ink) 12%, transparent); }
.uzd-step-input { width: 100%; min-width: 0; border: 0; background: transparent; text-align: center; font-size: 1rem; font-variant-numeric: tabular-nums; }
.uzd-step-input:focus-visible { outline: none; }
.uzd-stepper .uzd-step-btn:focus-visible { outline-offset: -3px; }

/* choices (radio + checkbox cards) */
.uzd-check-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.uzd-choice { display: block; position: relative; margin-top: 10px; cursor: pointer; }
.uzd-choice:first-of-type { margin-top: 0; }
.uzd-choice-body {
  display: flex; align-items: flex-start; gap: 14px; padding: 15px 16px; border: 1px solid var(--uzd-line); border-radius: var(--uzd-r2);
  background: var(--uzd-field);
}
.uzd-choice:hover .uzd-choice-body { border-color: color-mix(in srgb, var(--uzd-ink) 32%, transparent); }
.uzd-check-input:checked + .uzd-choice-body { border-color: var(--uzd-accent); background: var(--uzd-soft); box-shadow: inset 0 0 0 1px var(--uzd-accent); }
.uzd-check-input:focus-visible + .uzd-choice-body { outline: 2px solid var(--uzd-accent); outline-offset: 2px; }
.uzd-choice-dot, .uzd-choice-tick { flex: none; width: 20px; height: 20px; margin-top: 2px; border: 1.5px solid color-mix(in srgb, var(--uzd-ink) 45%, transparent); background: var(--uzd-surface); position: relative; }
.uzd-choice-dot { border-radius: 50%; }
.uzd-choice-tick { border-radius: 5px; }
.uzd-check-input:checked + .uzd-choice-body .uzd-choice-dot, .uzd-check-input:checked + .uzd-choice-body .uzd-choice-tick { border-color: var(--uzd-accent); background: var(--uzd-accent); }
.uzd-check-input:checked + .uzd-choice-body .uzd-choice-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--uzd-accent-ink); }
.uzd-check-input:checked + .uzd-choice-body .uzd-choice-tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--uzd-accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.uzd-choice-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.uzd-choice-name { font-weight: 600; line-height: 1.3; }
.uzd-choice-blurb { font-size: 0.875rem; color: var(--uzd-muted); line-height: 1.4; text-wrap: pretty; }
.uzd-choice-meta { font-size: 0.8125rem; color: var(--uzd-muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.uzd-choice-price { flex: none; font-weight: 600; font-size: 0.9rem; text-align: right; font-variant-numeric: tabular-nums; padding-left: 4px; max-width: 8.5rem; line-height: 1.3; }
.uzd-choice-body.has-thumb { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 2px 16px; align-items: start; padding: 10px; transition: border-color 0.2s linear, background-color 0.2s linear; }
.uzd-choice-body.has-thumb .uzd-choice-main { padding: 6px 0 4px; }
.uzd-choice-body.has-thumb .uzd-choice-price { padding: 6px 8px 0 0; }
.uzd-thumb { position: relative; grid-row: 1 / span 2; width: 92px; height: 92px; overflow: hidden; border-radius: calc(var(--uzd-r2) - 1px); background: color-mix(in srgb, var(--uzd-ink) 14%, var(--uzd-surface)); }
.uzd-thumb .uzd-photo { transform: none; animation: none; transition: transform 0.7s var(--uzd-ease); }
.uzd-choice:hover .uzd-thumb .uzd-photo { transform: scale(1.07); }
.uzd-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 42%); pointer-events: none; }
.uzd-thumb .uzd-choice-dot { position: absolute; z-index: 1; left: 7px; top: 7px; margin: 0; background: rgba(255, 255, 255, 0.9); border-color: rgba(0, 0, 0, 0.28); }
.uzd-extra { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; align-items: center; margin-top: 10px; padding: 12px 16px; border: 1px solid var(--uzd-line); border-radius: var(--uzd-r2); background: var(--uzd-field); }
.uzd-extra-text { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.uzd-submit-row { margin-top: 8px; }
.uzd-submit-row .uzd-btn { width: 100%; min-height: 54px; font-size: 1rem; }

/* ---------------------------------------------------------------- estimate */
.uzd-est { background: var(--uzd-surface); border: 1px solid var(--uzd-line); border-radius: calc(var(--uzd-radius) * 1.1); padding: 22px 24px 20px; box-shadow: var(--uzd-shadow); transition: opacity 0.35s linear, transform 0.4s var(--uzd-ease); }
.uzd-est[data-mode="hero"] { background: color-mix(in srgb, var(--uzd-surface) 93%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border-color: color-mix(in srgb, var(--uzd-surface) 55%, transparent); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.12); }
.uzd-est { color: var(--uzd-ink); }
.uzd-est.is-sent { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.985); }
.uzd-est-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.uzd-est-title { font-family: var(--uzd-font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; }
.uzd-est-toggle { display: none; }
.uzd-lines { position: relative; margin-top: 12px; }
.uzd-line, .uzd-qline { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--uzd-line); }
.uzd-line-txt { display: flex; flex-direction: column; min-width: 0; }
.uzd-line-label { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.uzd-line-detail { font-size: 0.8125rem; color: var(--uzd-muted); line-height: 1.4; font-variant-numeric: tabular-nums; }
.uzd-line-detail:empty { display: none; }
.uzd-line-amt { flex: none; font-variant-numeric: tabular-nums lining-nums; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.uzd-line-fee .uzd-line-label { font-weight: 500; }
.uzd-est-msgs { margin-top: 10px; display: grid; gap: 8px; }
.uzd-est-empty { color: var(--uzd-muted); font-size: 0.9rem; }
.uzd-est-err { font-size: 0.875rem; color: var(--uzd-err); font-weight: 500; }
.uzd-est-note { margin-top: 12px; font-size: 0.75rem; color: var(--uzd-muted); line-height: 1.45; max-width: 30rem; }
.uzd-est-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 12px; }
.uzd-est-total { display: flex; flex-direction: column; }
.uzd-est-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--uzd-muted); }
.uzd-est-amount { font-family: var(--uzd-font-display); font-weight: 500; font-size: 3.1rem; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums lining-nums; }
.uzd-send-sheet { display: none; }
.uzd-est.is-paused .uzd-est-amount { color: var(--uzd-muted); }
@media (max-height: 820px) and (min-width: 721px) { .uzd-hero-title { font-size: clamp(2.8rem, 5vw, 4.4rem); } .uzd-hero-tag { margin-top: 10px; } .uzd-est-amount { font-size: 2.3rem; } .uzd-est-note { display: none; } .uzd-est { padding: 16px 20px 14px; } .uzd-line, .uzd-qline { padding: 7px 0; } }

/* ---------------------------------------------------------------- guest: mobile bottom sheet */
@media (max-width: 720px) {
  .uzd { --uzd-chrome: 84px; }
  .uzd-nav-btn { padding: 0 12px; }
  .uzd-guest { display: block; padding: 0 0 0; }
  .uzd-hero { position: relative; min-height: calc(100dvh - var(--uzd-chrome)); border-radius: 0; }
  .uzd-hero.has-photo .uzd-hero-veil { background: linear-gradient(to bottom, rgba(9, 15, 15, 0.6) 0%, rgba(9, 15, 15, 0.18) 30%, rgba(9, 15, 15, 0.1) 46%, rgba(9, 15, 15, 0.78) 100%); }
  .uzd-hero.is-bright .uzd-hero-veil { background: linear-gradient(to bottom, rgba(246, 241, 230, 0.35) 0%, transparent 26%, transparent 56%, rgba(246, 241, 230, 0.82) 80%, rgba(246, 241, 230, 0.96) 100%); }
  .uzd-hero.is-type { border-width: 0 0 1px; }
  .uzd-hero.is-type::before { inset: 12px; }
  .uzd-hero-copy { flex: 1; padding: 36px 22px calc(26px + env(safe-area-inset-bottom)); max-width: none; }
  .uzd-hero-title { font-size: clamp(3.1rem, 16vw, 4.4rem); }
  .uzd-facts { margin-top: auto; max-width: none; }
  .uzd-facts li:nth-child(n+3) { display: none; }
  .uzd-cta {
    display: inline-flex; align-items: center; justify-content: center; margin-top: 18px; min-height: 54px; padding: 0 24px;
    border: 0; border-radius: var(--uzd-r2); background: var(--uzd-accent); color: var(--uzd-accent-ink); font-weight: 600; font-size: 1rem;
    transition: transform 0.18s var(--uzd-ease);
  }
  .uzd-cta:active { transform: scale(0.98); }
  .uzd-est-slot { display: none; }

  .uzd-scrim { display: block; position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--uzd-ink) 52%, transparent); opacity: 0; pointer-events: none; transition: opacity 0.35s var(--uzd-ease); }
  .uzd.is-sheet-open .uzd-scrim { opacity: 1; pointer-events: auto; }
  .uzd-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-direction: column;
    max-height: calc(100dvh - 28px - var(--uzd-sticky-top, 0px) - env(safe-area-inset-top)); padding: 0; border: 0; border-radius: 24px 24px 0 0;
    box-shadow: 0 -20px 60px -20px color-mix(in srgb, var(--uzd-ink) 50%, transparent);
    transform: translate3d(0, 104%, 0); visibility: hidden; overscroll-behavior: contain;
    transition: transform 0.46s var(--uzd-ease), visibility 0s linear 0.46s;
  }
  .uzd.is-sheet-open .uzd-sheet { transform: none; visibility: visible; transition-delay: 0s; }
  .uzd-sheet.is-dragging { transition: none; }
  .uzd-grab { display: flex; align-items: center; justify-content: center; flex: none; width: 100%; height: 30px; padding: 0; border: 0; background: transparent; touch-action: none; cursor: grab; }
  .uzd-grab-bar { width: 44px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--uzd-ink) 28%, transparent); }
  .uzd-grab:focus-visible { outline-offset: -4px; }
  .uzd-sheet-head { flex: none; padding: 0 20px 14px; touch-action: none; }
  .uzd-sheet-title { font-size: 1.6rem; }
  .uzd-sheet-intro { font-size: 0.9rem; margin-top: 6px; }
  .uzd-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-top: 0; padding: 4px 20px 16px; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--uzd-line); padding-top: 22px; }
  .uzd-submit-row { display: none; }
  .uzd-est-slot-sheet { display: block; flex: none; }
  .uzd-est[data-mode="sheet"] { border-radius: 0; border-width: 1px 0 0; box-shadow: none; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--uzd-surface); }
  .uzd-est[data-mode="sheet"] .uzd-est-head { display: flex; align-items: center; }
  .uzd-est[data-mode="sheet"] .uzd-est-title { font-size: 1.05rem; }
  .uzd-est[data-mode="sheet"] .uzd-est-toggle { display: inline-flex; align-items: center; min-height: 36px; padding: 0 2px; border: 0; background: none; color: var(--uzd-accent); font-weight: 600; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; }
  .uzd-est[data-mode="sheet"] .uzd-est-body { display: none; max-height: 34dvh; overflow-y: auto; }
  .uzd-est[data-mode="sheet"][data-open="true"] .uzd-est-body { display: block; animation: uzd-fade 0.3s var(--uzd-ease) both; }
  .uzd-est[data-mode="sheet"] .uzd-est-amount { font-size: 2.1rem; }
  .uzd-est[data-mode="sheet"] .uzd-est-foot { margin-top: 4px; align-items: center; }
  .uzd-send-sheet { display: inline-flex; min-height: 52px; padding: 0 26px; }
  .uzd-grid2 { gap: 10px; }
  .uzd-extra { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .uzd-choice-price { max-width: 6.5rem; }
  .uzd-choice-body.has-thumb { grid-template-columns: 76px minmax(0, 1fr); gap: 0 14px; padding: 9px; }
  .uzd-thumb { width: 76px; height: 76px; grid-row: 1 / span 2; }
  .uzd-choice-body.has-thumb .uzd-choice-price { grid-column: 2; max-width: none; text-align: left; padding: 2px 0 2px; color: var(--uzd-accent); }
  .uzd-legend { font-size: 1.35rem; }
}

/* ---------------------------------------------------------------- host: shell */
.uzd-host { padding: 18px clamp(16px, 3vw, 40px) 28px; position: relative; }
.uzd-host-grid {
  display: grid; grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  width: 100%; max-width: 1320px; margin: 0 auto;
  height: calc(100dvh - var(--uzd-chrome) - 52px); min-height: 640px;
  border: 1px solid var(--uzd-line); border-radius: calc(var(--uzd-radius) * 1.6); overflow: hidden;
  background: var(--uzd-surface); box-shadow: var(--uzd-shadow);
}
.uzd-pane { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.uzd-list-pane { border-right: 1px solid var(--uzd-line); background: var(--uzd-surface); }
.uzd-detail-pane { background: var(--uzd-bg); container-type: inline-size; position: relative; }
.uzd-pane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 28px 24px 14px; }
.uzd-pane-title { font-family: var(--uzd-font-display); font-weight: 500; font-size: 2.6rem; letter-spacing: -0.035em; line-height: 0.98; }
.uzd-pane-title:focus, .uzd-d-name:focus { outline: none; }
.uzd-pane-sub { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--uzd-muted); text-align: right; }

/* glance: set like a magazine standfirst, not a dashboard */
.uzd-glance { position: relative; z-index: 1; padding: 6px 24px 22px; background: var(--uzd-surface); }
.uzd-glance-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; align-items: flex-end; padding-top: 16px; border-top: 1px solid var(--uzd-ink); }
.uzd-glance-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--uzd-muted); }
.uzd-fig { display: block; font-family: var(--uzd-font-display); font-size: 3.1rem; line-height: 0.98; letter-spacing: -0.04em; font-variant-numeric: tabular-nums lining-nums; margin-top: 8px; }
.uzd-fig-sm { font-size: 1.5rem; font-style: italic; letter-spacing: -0.02em; margin-top: 8px; white-space: nowrap; }
.uzd-glance-side { text-align: right; margin-left: auto; }
.uzd-glance-sub { font-family: var(--uzd-font-display); font-style: italic; font-size: 1rem; color: var(--uzd-muted); margin-top: 6px; }
.uzd-seg-bar { display: flex; gap: 2px; height: 3px; margin-top: 20px; }
.uzd-seg { flex-basis: 0; min-width: 6px; background: var(--c); transform-origin: left center; }
.uzd-seg.is-pending { transform: scaleX(0); }
.uzd-seg.is-grow { animation: uzd-grow 0.9s var(--uzd-ease) both; }
@keyframes uzd-grow { from { transform: scaleX(0); } to { transform: none; } }
.uzd-legend-list { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: 0.75rem; color: var(--uzd-muted); }
.uzd-legend-list li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.uzd-legend-list i, .uzd-pill i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.uzd-legend-list b { font-weight: 600; color: var(--uzd-ink); font-variant-numeric: tabular-nums; }
[data-st="new"] { --c: var(--uzd-hi); }
[data-st="replied"] { --c: var(--uzd-accent); }
[data-st="waiting"] { --c: color-mix(in srgb, var(--uzd-ink) 38%, var(--uzd-surface)); }
[data-st="held"] { --c: color-mix(in srgb, var(--uzd-accent) 50%, var(--uzd-hi)); }
[data-st="booked"] { --c: var(--uzd-ok); }

/* rows */
.uzd-list { position: relative; z-index: 0; border-top: 1px solid var(--uzd-line); }
.uzd-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 16px 24px; border: 0; border-bottom: 1px solid var(--uzd-line); background: transparent; text-align: left; overflow: hidden; }
.uzd-row-new { cursor: pointer; background: color-mix(in srgb, var(--uzd-hi) 11%, var(--uzd-surface)); }
.uzd-row-new:hover { background: color-mix(in srgb, var(--uzd-hi) 18%, var(--uzd-surface)); }
.uzd-row-new[aria-current="true"] { box-shadow: inset 3px 0 0 var(--uzd-accent); }
.uzd-row-new:focus-visible { outline-offset: -3px; }
.uzd-unread { position: absolute; left: 8px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--uzd-hi); }
.uzd-row-new[aria-current="true"] .uzd-unread { opacity: 0; }
.uzd-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--uzd-soft); border: 1px solid var(--uzd-line); color: var(--uzd-accent); font-family: var(--uzd-font-display); font-size: 1.05rem; letter-spacing: 0.02em; }
.uzd-row-main { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.uzd-row-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uzd-row-sum { font-size: 0.8125rem; color: var(--uzd-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.uzd-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.uzd-row-val { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.uzd-row-ago { font-size: 0.75rem; color: var(--uzd-muted); }
.uzd-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 550; white-space: nowrap; }
.uzd-row.is-pending { opacity: 0; }
.uzd-row.is-arriving { animation: uzd-reveal 0.5s linear both; }
.uzd-row.is-arriving::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: color-mix(in srgb, var(--uzd-hi) 46%, transparent); opacity: 0; animation: uzd-glow 2.4s ease-out both; }
@keyframes uzd-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes uzd-glow { 0% { opacity: 1; } 100% { opacity: 0; } }
.uzd-fly { position: fixed; left: 0; top: 0; z-index: 80; margin: 0; background: color-mix(in srgb, var(--uzd-hi) 14%, var(--uzd-surface)); border: 1px solid color-mix(in srgb, var(--uzd-ink) 16%, transparent); border-radius: var(--uzd-r2); box-shadow: 0 28px 50px -18px rgba(0, 0, 0, 0.5), 0 3px 8px rgba(0, 0, 0, 0.14); pointer-events: none; will-change: transform, opacity; }
.uzd-fly.is-flying { box-shadow: 0 34px 60px -20px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.14); }

/* toast */
.uzd-toast {
  position: fixed; top: calc(var(--uzd-chrome) + 12px); left: 50%; z-index: 45; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 11px 18px 11px 14px; border-radius: 999px; background: var(--uzd-ink); color: var(--uzd-bg); font-size: 0.875rem; box-shadow: var(--uzd-shadow);
  transform: translate3d(-50%, -160%, 0); opacity: 0; pointer-events: none; transition: transform 0.55s var(--uzd-ease), opacity 0.3s linear;
}
.uzd-toast.is-on { transform: translate3d(-50%, 0, 0); opacity: 1; }
.uzd-toast-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uzd-toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--uzd-hi); flex: none; }
.uzd-toast.is-on .uzd-toast-dot { animation: uzd-pulse 1.4s ease-in-out 2; }
@keyframes uzd-pulse { 50% { opacity: 0.35; } }

/* ---------------------------------------------------------------- host: detail */
.uzd-glance-note { margin-top: 2px; font-size: 0.74rem; letter-spacing: 0.01em; color: var(--uzd-muted); }
.uzd-d-empty.is-arriving { align-content: center; justify-items: center; gap: 22px; font-size: 1.05rem; font-style: italic; }
.uzd-skel { width: min(420px, 82%); display: grid; gap: 12px; opacity: 0.8; }
.uzd-skel-bar { display: block; height: 12px; border-radius: 6px; background: linear-gradient(100deg, color-mix(in srgb, var(--uzd-ink) 7%, transparent) 30%, color-mix(in srgb, var(--uzd-ink) 15%, transparent) 50%, color-mix(in srgb, var(--uzd-ink) 7%, transparent) 70%) 0 0 / 220% 100%; animation: uzd-shimmer 1.6s linear infinite; }
.uzd-skel-bar.is-name { height: 26px; width: 55%; }
.uzd-skel-bar.is-meta { width: 38%; margin-bottom: 10px; }
.uzd-skel-bar.is-card { height: 74px; border-radius: 12px; }
.uzd-skel-bar.is-line { width: 92%; }
.uzd-skel-bar.is-short { width: 60%; }
@keyframes uzd-shimmer { from { background-position: 110% 0; } to { background-position: -110% 0; } }
@media (prefers-reduced-motion: reduce) { .uzd-skel-bar { animation: none; } }
.uzd-d-empty { display: grid; place-items: center; height: 100%; padding: 32px; text-align: center; color: var(--uzd-muted); font-family: var(--uzd-font-display); font-size: 1.2rem; }
.uzd-detail { padding: clamp(20px, 2.6cqw, 36px); display: grid; gap: 22px; align-content: start; }
.uzd-d-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: end; }
.uzd-back { display: none; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px 0 4px; border: 0; background: none; color: var(--uzd-accent); font-weight: 600; }
.uzd-back-ico { width: 10px; height: 10px; border: solid currentColor; border-width: 2px 0 0 2px; transform: rotate(-45deg); margin-left: 6px; }
.uzd-d-name { font-family: var(--uzd-font-display); font-weight: 500; font-size: clamp(2.2rem, 5cqw, 3.6rem); line-height: 0.98; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.uzd-d-meta { margin-top: 4px; font-size: 0.8125rem; color: var(--uzd-muted); overflow-wrap: anywhere; }
.uzd-d-value { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--uzd-ink); }
.uzd-d-value-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--uzd-muted); }
.uzd-d-amount { font-family: var(--uzd-font-display); font-size: clamp(2.2rem, 4.4cqw, 3.2rem); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums lining-nums; }
.uzd-d-value-note::before { content: "\00b7\00a0"; }
.uzd-d-value-note { font-family: var(--uzd-font-display); font-style: italic; font-size: 1.15rem; color: var(--uzd-muted); }
.uzd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.uzd-chips li { padding: 5px 11px; border: 1px solid var(--uzd-line); border-radius: 999px; background: var(--uzd-field); font-size: 0.8125rem; font-weight: 550; }
.uzd-quote-msg { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--uzd-hi); font-family: var(--uzd-font-display); font-size: 1rem; line-height: 1.55; color: color-mix(in srgb, var(--uzd-ink) 88%, transparent); text-wrap: pretty; overflow-wrap: anywhere; }
.uzd-d-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); grid-template-areas: "dr br" "dr qs" "dr fu"; grid-template-rows: auto auto 1fr; gap: 16px 22px; align-items: start; }
.uzd-dr { grid-area: dr; } .uzd-br { grid-area: br; } .uzd-qs { grid-area: qs; } .uzd-fu { grid-area: fu; }
@container (max-width: 900px) { .uzd-d-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "br" "dr" "qs" "fu"; grid-template-rows: none; } }
.uzd-draft { background: var(--uzd-surface); border: 1px solid var(--uzd-line); border-radius: calc(var(--uzd-radius) * 1.2); padding: clamp(18px, 2.4cqw, 30px); box-shadow: var(--uzd-shadow); }
.uzd-draft-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.uzd-card-title { font-family: var(--uzd-font-display); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.15; }
.uzd-card-sub { margin-top: 4px; font-size: 0.8125rem; color: var(--uzd-muted); text-wrap: pretty; }
.uzd-tone { padding: 4px 11px; border-radius: 999px; background: var(--uzd-soft); border: 1px solid var(--uzd-line); font-size: 0.75rem; font-weight: 600; color: var(--uzd-accent); }
.uzd-draft-body { margin-top: 20px; font-family: var(--uzd-font-display); font-size: 1.0625rem; line-height: 1.68; max-width: 40rem; cursor: default; }
.uzd-draft-body.is-typing { cursor: pointer; }
.uzd-p + .uzd-p, .uzd-p + .uzd-quote, .uzd-quote + .uzd-p { margin-top: 1em; }
.uzd-p { white-space: pre-line; text-wrap: pretty; overflow-wrap: anywhere; }
.uzd-p-sign { white-space: pre-line; }
.uzd-w { position: relative; opacity: 0; }
.uzd-w.is-on { opacity: 1; transition: opacity 0.2s linear; }
.uzd-w.is-last::after { content: ""; position: absolute; right: -4px; top: 0.2em; width: 2px; height: 1.1em; background: var(--uzd-accent); animation: uzd-blink 0.9s steps(1) infinite; }
@keyframes uzd-blink { 50% { opacity: 0; } }
.uzd-quote { margin-top: 1em; padding: 4px 18px 6px; border: 1px solid var(--uzd-line); border-radius: var(--uzd-r2); background: var(--uzd-field); font-family: var(--uzd-font-body); }
.uzd-qlines { }
.uzd-qline { transition: opacity 0.35s linear, transform 0.35s var(--uzd-ease); }
.uzd-qline.is-hidden { opacity: 0; transform: translate3d(0, 6px, 0); }
.uzd-qline:nth-last-child(2) { border-bottom-color: var(--uzd-ink); }
.uzd-qtotal { border-bottom: 0; padding-top: 12px; align-items: baseline; }
.uzd-qtotal .uzd-line-label { font-size: 1rem; }
.uzd-qtotal-amt { font-family: var(--uzd-font-display); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.015em; }
.uzd-edit { min-height: 120px; font-family: var(--uzd-font-display); font-size: 1rem; line-height: 1.6; padding-top: 12px; field-sizing: content; }
.uzd-draft-body .uzd-field { margin-top: 0; }
.uzd-draft-body .uzd-quote { margin: 14px 0 6px; }
.uzd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.uzd-approved { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--uzd-r2); background: color-mix(in srgb, var(--uzd-ok) 12%, var(--uzd-surface)); border: 1px solid color-mix(in srgb, var(--uzd-ok) 40%, transparent); font-size: 0.9rem; line-height: 1.45; animation: uzd-fade 0.4s var(--uzd-ease) both; }
.uzd-approved-tick { flex: none; position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--uzd-ok); margin-top: 1px; }
.uzd-approved-tick::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--uzd-surface); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.uzd-card { background: var(--uzd-surface); border: 1px solid var(--uzd-line); border-radius: calc(var(--uzd-radius) * 1.1); padding: 20px; }
.uzd-qlist { margin-top: 10px; }
.uzd-q { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--uzd-line); }
.uzd-q:first-child { border-top: 0; padding-top: 4px; }
.uzd-q-text { font-size: 0.9rem; line-height: 1.45; text-wrap: pretty; }
.uzd-chipbtn { justify-self: start; min-height: 32px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--uzd-ink) 28%, transparent); border-radius: 999px; background: transparent; font-size: 0.8125rem; font-weight: 600; }
.uzd-chipbtn[aria-pressed="true"] { background: var(--uzd-accent); border-color: var(--uzd-accent); color: var(--uzd-accent-ink); }
.uzd-chipbtn:disabled { opacity: 0.55; cursor: not-allowed; }
.uzd-timeline { margin-top: 14px; position: relative; display: grid; gap: 16px; }
.uzd-tl { position: relative; display: grid; gap: 1px; padding-left: 24px; }
.uzd-tl::before { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--uzd-accent); background: var(--uzd-surface); z-index: 1; }
.uzd-tl::after { content: ""; position: absolute; left: 5px; top: 18px; bottom: -20px; width: 1px; background: var(--uzd-line); }
.uzd-tl:last-child::after { display: none; }
.uzd-tl.is-done::before { background: var(--uzd-ok); border-color: var(--uzd-ok); }
.uzd-tl-when { font-size: 0.8125rem; font-weight: 600; }
.uzd-tl-date { font-weight: 400; color: var(--uzd-muted); }
.uzd-tl-text { font-size: 0.875rem; color: var(--uzd-muted); line-height: 1.45; text-wrap: pretty; }

/* ---------------------------------------------------------------- host: mobile (list -> detail) */
@media (max-width: 720px) {
  .uzd-host { padding: 0; }
  .uzd-host-grid { position: relative; display: block; height: calc(100dvh - var(--uzd-chrome)); min-height: 0; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; background: var(--uzd-bg); }
  .uzd-pane { position: absolute; inset: 0; transition: transform 0.4s var(--uzd-ease), opacity 0.3s linear; padding-bottom: env(safe-area-inset-bottom); }
  .uzd-list-pane { border-right: 0; background: var(--uzd-surface); }
  .uzd-detail-pane { transform: translate3d(100%, 0, 0); background: var(--uzd-bg); }
  .uzd-host-grid[data-view="detail"] .uzd-detail-pane { transform: none; }
  .uzd-host-grid[data-view="detail"] .uzd-list-pane { transform: translate3d(-22%, 0, 0); opacity: 0; }
  .uzd-pane-head { padding: 22px 18px 12px; }
  .uzd-glance { padding: 4px 18px 20px; }
  .uzd-fig { font-size: 3rem; }
  .uzd-row { padding: 15px 18px 15px 22px; }
  .uzd-unread { left: 7px; }
  .uzd-back { display: inline-flex; }
  .uzd-detail { padding: 8px 16px 40px; gap: 18px; }
  .uzd-d-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "back" "title" "value"; row-gap: 4px; align-items: end; }
  .uzd-back { grid-area: back; justify-self: start; }
  .uzd-d-title { grid-area: title; }
  .uzd-d-value { grid-area: value; }
  .uzd-d-name { font-size: 2.6rem; }
  .uzd-d-amount { font-size: 2.5rem; }
  .uzd-d-value-note { flex-basis: 100%; }
  .uzd-d-value-note::before { content: none; }
  .uzd-draft { padding: 18px; }
  .uzd-draft-body { font-size: 1.03rem; }
  .uzd-actions .uzd-btn { flex: 1 1 auto; }
  .uzd-actions .uzd-btn-primary { flex: 1 1 100%; min-height: 52px; }
  .uzd-toast { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate3d(-50%, 160%, 0); }
  .uzd-toast.is-on { transform: translate3d(-50%, 0, 0); }
}

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