:root {
  --paper: #f6f2ea;
  --paper-deep: #eee8dc;
  --card: #fffdf8;
  --ink: #25231f;
  --muted: #777268;
  --line: #ded8cd;
  --orange: #e95e2e;
  --orange-dark: #c9451e;
  --sage: #758b68;
  --recipe: #d76138;
  --restaurant: #668064;
  --delivery: #bd842c;
  --shadow: 0 18px 50px rgba(62, 49, 31, 0.09);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background-color: var(--paper); background-image: linear-gradient(rgba(37,35,31,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(37,35,31,.018) 1px, transparent 1px); background-size: 32px 32px; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(233, 94, 46, 0.22); outline-offset: 2px; }

.page-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-avatar { position: relative; width: 39px; height: 39px; flex: 0 0 auto; border: 2px solid var(--card); border-radius: 50%; background-color: #29465e; background-image: url("assets/jiujiu-avatar.jpg"); background-repeat: no-repeat; background-size: cover; background-position: center; box-shadow: 0 0 0 1px #b8b2a8; }
.brand-avatar::after { content: ""; position: absolute; right: -1px; bottom: 2px; width: 8px; height: 8px; border: 2px solid var(--paper); border-radius: 50%; background: var(--sage); }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 16px; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .15em; }
.button { border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer; font-weight: 600; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--orange); color: #fff; box-shadow: 0 7px 18px rgba(233, 94, 46, .18); }
.button-primary:hover { background: var(--orange-dark); }
.button-ghost { background: var(--paper-deep); }

.hero { position: relative; min-height: 510px; margin: 38px 0; display: flex; align-items: center; padding: 58px 6%; border-radius: 30px; background-image: linear-gradient(90deg, rgba(246,242,234,.98) 0%, rgba(246,242,234,.91) 34%, rgba(246,242,234,.2) 64%, transparent 82%), url("assets/jiujiu-observer.jpg"); background-size: cover; background-position: center; box-shadow: var(--shadow); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.58); border-radius: 21px; pointer-events: none; }
.hero-content { position: relative; z-index: 1; width: min(570px, 58%); }
.eyebrow { margin: 0 0 14px; color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .22em; }
.hero h1 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(45px, 5.2vw, 68px); line-height: 1.09; font-weight: 500; letter-spacing: -.055em; }
.hero h1 em { color: var(--orange); font-weight: 500; }
.hero-copy { max-width: 500px; margin: 23px 0 0; color: #625e56; line-height: 1.8; font-size: 14px; }
.lucky-card { position: relative; width: min(330px, 100%); margin-top: 31px; border: 0; border-radius: 18px; padding: 17px 19px; background: #29342a; color: #fff; min-height: 86px; display: flex; align-items: center; gap: 14px; cursor: pointer; text-align: left; box-shadow: 0 18px 35px rgba(35, 48, 37, .2); overflow: hidden; transition: transform .25s ease; }
.lucky-card::after { content: ""; position: absolute; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; right: -55px; bottom: -70px; }
.lucky-card:hover { transform: rotate(-1deg) translateY(-3px); }
.lucky-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; flex: 0 0 auto; color: #263026; background: #f1c66d; font-size: 22px; }
.lucky-card small { display: block; color: #b9c3b9; margin-bottom: 5px; }
.lucky-card strong { font-size: 18px; }
.lucky-arrow { margin-left: auto; font-size: 23px; }
.observer-stamp { position: absolute; z-index: 1; right: 33px; bottom: 28px; padding: 9px 13px; border-radius: 999px; color: rgba(255,255,255,.92); background: rgba(31,37,31,.62); backdrop-filter: blur(10px); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.observer-stamp span { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #b8d27c; box-shadow: 0 0 0 3px rgba(184,210,124,.16); }

.workspace { background: rgba(255,253,248,.75); border: 1px solid rgba(222,216,205,.7); border-radius: 30px; padding: 34px; box-shadow: var(--shadow); }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.section-heading h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 29px; font-weight: 500; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.search-box { display: flex; align-items: center; gap: 8px; width: min(330px, 100%); padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.filters { margin: 30px 0 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.segmented, .status-filter { display: flex; gap: 7px; flex-wrap: wrap; }
.segmented button, .status-filter button, .random-options button { border: 0; padding: 9px 14px; border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; transition: .2s; }
.segmented button span { display: inline-block; min-width: 20px; margin-left: 5px; padding: 1px 5px; border-radius: 8px; background: rgba(119,114,104,.12); font-size: 10px; }
.segmented button.active { background: var(--ink); color: #fff; }
.segmented button[data-type="recipe"].active { background: var(--recipe); }
.segmented button[data-type="restaurant"].active { background: var(--restaurant); }
.segmented button[data-type="delivery"].active { background: var(--delivery); }
.status-filter button { border: 1px solid transparent; }
.status-filter button.active { border-color: var(--line); background: #fff; color: var(--ink); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.card-shell { position: relative; min-width: 0; border-radius: 20px; background: #a83e32; overflow: hidden; touch-action: pan-y; }
.swipe-delete { position: absolute; inset: 0 0 0 auto; width: 88px; border: 0; color: #fff; background: #a83e32; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.food-card { --type-color: var(--recipe); position: relative; z-index: 1; min-height: 190px; padding: 21px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--card); cursor: pointer; transition: transform .24s ease, box-shadow .2s; overflow: hidden; user-select: none; }
.food-card::before { content: ""; position: absolute; top: 0; left: 21px; right: 21px; height: 3px; border-radius: 0 0 4px 4px; background: var(--type-color); }
.food-card.type-restaurant { --type-color: var(--restaurant); }
.food-card.type-delivery { --type-color: var(--delivery); }
.card-shell.swiped .food-card { transform: translateX(-88px); }
.card-shell:not(.swiped) .food-card:hover { box-shadow: 0 14px 30px rgba(65, 51, 31, .08); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.type-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; color: var(--type-color); background: color-mix(in srgb, var(--type-color) 10%, transparent); font-size: 10px; font-weight: 700; letter-spacing: .07em; }
.card-swipe-hint { color: #aaa398; font-size: 10px; }
.food-card h3 { margin: 17px 0 7px; font-family: Georgia, "Noto Serif SC", serif; font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.card-meta { min-height: 20px; color: var(--muted); font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0 16px; max-height: 24px; overflow: hidden; }
.tag { padding: 4px 8px; border-radius: 8px; background: var(--paper-deep); color: #6a6459; font-size: 10px; }
.card-bottom { margin-top: auto; padding-top: 15px; border-top: 1px solid #ebe6dd; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-button { border: 0; background: transparent; padding: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); font-size: 12px; }
.status-dot { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #bbb5aa; background: #fff; font-size: 10px; color: transparent; }
.status-button.done { color: var(--type-color); }
.status-button.done .status-dot { color: #fff; background: var(--type-color); border-color: var(--type-color); }
.external-link { color: var(--type-color); text-decoration: none; font-size: 12px; font-weight: 600; }
.empty-state { padding: 64px 20px; text-align: center; }
.empty-illustration { width: 74px; height: 74px; margin: auto; display: grid; place-items: center; border-radius: 50%; background: var(--paper-deep); color: var(--orange); font-size: 30px; }
.empty-state h3 { margin: 20px 0 7px; font-family: Georgia, serif; font-size: 23px; }
.empty-state p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
footer { padding: 38px 0 45px; color: #9b958a; text-align: center; font-size: 12px; letter-spacing: .08em; }

.dialog { width: min(610px, calc(100% - 28px)); max-height: calc(100vh - 32px); border: 0; border-radius: 25px; padding: 0; color: var(--ink); background: var(--card); box-shadow: 0 40px 100px rgba(39,32,22,.25); }
.dialog::backdrop { background: rgba(33,30,25,.45); backdrop-filter: blur(5px); }
.dialog form, .random-dialog { padding: 28px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 25px; }
.dialog-head h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-weight: 500; font-size: 28px; }
.icon-button { border: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--paper-deep); cursor: pointer; font-size: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-grid > label, fieldset legend { color: #5c574f; font-size: 12px; font-weight: 600; }
.form-grid > label > input:not([type="checkbox"]), textarea { width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; background: #fff; color: var(--ink); outline: 0; resize: vertical; font-weight: 400; font-size: 13px; }
.source-field > label { color: #5c574f; font-size: 12px; font-weight: 600; }
.source-input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 7px; }
.source-input-row input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; background: #fff; color: var(--ink); outline: 0; font-size: 13px; }
.source-input-row input:focus { border-color: var(--orange); }
.analyze-button { border: 0; border-radius: 11px; padding: 0 16px; color: #fff; background: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; white-space: nowrap; }
.analyze-button:disabled { cursor: wait; opacity: .62; }
.analysis-status { margin-top: 9px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 11px; color: #625d54; background: var(--paper); font-size: 11px; line-height: 1.55; }
.analysis-status.loading::before { content: ""; width: 13px; height: 13px; flex: 0 0 auto; border: 2px solid #cfc7ba; border-top-color: var(--orange); border-radius: 50%; animation: spin .7s linear infinite; }
.analysis-status.loading { justify-content: flex-start; }
.analysis-status.success { color: #53664e; background: rgba(102,128,100,.1); }
.analysis-status.success::before { content: "✓"; width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--restaurant); font-weight: 700; }
.analysis-status.error { color: #983d2d; background: rgba(180,58,44,.08); }
.analysis-status button { margin-left: auto; border: 0; padding: 0; color: #983d2d; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; white-space: nowrap; }
.form-grid > label > input:focus, textarea:focus { border-color: var(--orange); }
.form-grid em { color: var(--orange); font-style: normal; }
.full-field { grid-column: 1/-1; }
.type-picker { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-picker legend { margin-bottom: 8px; }
.type-picker label { position: relative; }
.type-picker input { position: absolute; opacity: 0; }
.type-picker label > span { display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.type-picker b { grid-row: 1/3; align-self: center; font-size: 22px; }
.type-picker strong { font-size: 13px; }
.type-picker small { color: var(--muted); font-size: 10px; }
.type-picker input:checked + span { border-color: var(--orange); background: rgba(233,94,46,.05); box-shadow: inset 0 0 0 1px var(--orange); }
.done-toggle { display: flex; align-items: center; gap: 11px; cursor: pointer; padding: 12px; border-radius: 12px; background: var(--paper); }
.done-toggle input { position: absolute; opacity: 0; }
.switch { position: relative; flex: 0 0 auto; width: 39px; height: 23px; border-radius: 20px; background: #c8c1b5; transition: .2s; }
.switch::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.done-toggle input:checked + .switch { background: var(--sage); }
.done-toggle input:checked + .switch::after { transform: translateX(16px); }
.done-toggle strong, .done-toggle small { display: block; }
.done-toggle small { margin-top: 2px; color: var(--muted); font-weight: 400; font-size: 10px; }
.dialog-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 8px; }

.random-dialog { text-align: center; }
.random-dialog .dialog-head { text-align: left; }
.random-options { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.random-options button { background: var(--paper); }
.random-options button.active { background: var(--ink); color: #fff; }
.random-result { min-height: 230px; margin: 22px 0; padding: 24px; display: grid; place-content: center; border-radius: 20px; background: var(--paper); overflow: hidden; }
.random-result .dice { width: 62px; height: 62px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 20px; background: #f1c66d; font-size: 26px; }
.random-result p { margin: 0; color: var(--muted); font-size: 13px; }
.random-result h3 { margin: 8px 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 29px; }
.random-result.type-recipe { --type-color: var(--recipe); }
.random-result.type-restaurant { --type-color: var(--restaurant); }
.random-result.type-delivery { --type-color: var(--delivery); }
.random-result .result-type { color: var(--type-color, var(--orange)); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.random-result.spinning .dice { animation: spin .45s linear infinite; }
.rummage-scene { position: relative; width: min(290px, 76vw); aspect-ratio: 3 / 2; margin: -6px auto 10px; overflow: visible; }
.rummage-full-body { position: absolute; inset: 0; border-radius: 17px; background: #f6f2ea url("assets/jiujiu-rummaging-full.jpg") center / cover no-repeat; box-shadow: 0 10px 28px rgba(75,62,44,.08); transform-origin: 66% 68%; animation: rummage-full-body .42s ease-in-out infinite alternate; }
.rummage-full-body::after { content: ""; position: absolute; left: 67%; top: 44%; width: 30px; height: 21px; border: 2px solid rgba(117,139,104,.35); border-color: rgba(117,139,104,.45) transparent transparent; border-radius: 50%; animation: paw-ripple .42s ease-in-out infinite alternate; }
.rummage-motion { position: absolute; z-index: 2; left: 69%; top: 40%; width: 17px; height: 7px; border-top: 2px solid rgba(117,139,104,.55); border-radius: 50%; opacity: .2; }
.rummage-motion.motion-one { animation: rummage-motion .84s ease-out infinite; }
.rummage-motion.motion-two { margin-left: 10px; margin-top: 8px; animation: rummage-motion .84s .3s ease-out infinite; }
.rummage-item { position: absolute; z-index: 3; width: 15px; height: 22px; border-radius: 3px; background: var(--sage); opacity: 0; }
.rummage-item::after { content: ""; position: absolute; left: 4px; top: 4px; width: 7px; height: 2px; background: rgba(255,255,255,.65); box-shadow: 0 5px 0 rgba(255,255,255,.45); }
.rummage-item.item-one { left: 72%; bottom: 42%; transform: rotate(-18deg); animation: found-item 1.25s ease-in-out infinite; }
.rummage-item.item-two { left: 82%; bottom: 39%; background: var(--orange); transform: rotate(15deg); animation: found-item 1.25s .55s ease-in-out infinite; }
.random-result.rummaging p { font-weight: 600; color: #625d54; }
@keyframes rummage-full-body { from { transform: translateX(-2px) rotate(-.35deg) scale(1); } to { transform: translate(2px, 1px) rotate(.45deg) scale(1.012); } }
@keyframes paw-ripple { from { transform: translate(-3px, -2px) scale(.75); opacity: .25; } to { transform: translate(4px, 3px) scale(1.15); opacity: .65; } }
@keyframes rummage-motion { from { transform: translate(0, 0) scale(.7); opacity: .5; } to { transform: translate(9px, -7px) scale(1.25); opacity: 0; } }
@keyframes found-item { 0%, 30%, 100% { opacity: 0; transform: translateY(8px) rotate(-18deg); } 50%, 72% { opacity: 1; transform: translateY(-19px) rotate(9deg); } }
.random-result-actions { margin-top: 19px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.random-action { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; color: var(--ink); background: #fff; cursor: pointer; font-size: 11px; font-weight: 600; text-decoration: none; }
.random-action.primary { border-color: var(--type-color, var(--ink)); color: #fff; background: var(--type-color, var(--ink)); }
.random-action[disabled] { opacity: .5; cursor: default; }
.draw-button { width: 100%; }
.detail-dialog { width: min(520px, calc(100% - 28px)); padding: 28px; }
.detail-dialog.type-recipe { --type-color: var(--recipe); }
.detail-dialog.type-restaurant { --type-color: var(--restaurant); }
.detail-dialog.type-delivery { --type-color: var(--delivery); }
.detail-hero { padding: 20px; border-radius: 17px; background: var(--paper); border-top: 3px solid var(--type-color); }
.detail-hero h3 { margin: 14px 0 7px; font-family: Georgia, "Noto Serif SC", serif; font-size: 29px; }
.detail-meta { color: var(--muted); font-size: 12px; }
.detail-section { margin-top: 19px; }
.detail-section h4 { margin: 0 0 8px; color: #918a7e; font-size: 10px; letter-spacing: .14em; }
.detail-section p { margin: 0; color: #575249; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.detail-dialog .tags { max-height: none; margin: 0; }
.detail-link { display: flex; align-items: center; justify-content: space-between; margin-top: 19px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--type-color); text-decoration: none; font-size: 12px; font-weight: 700; }
.detail-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 8px; }
.confirm-dialog { width: min(430px, calc(100% - 28px)); padding: 34px; text-align: center; }
.confirm-icon { width: 64px; height: 64px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 20px; color: var(--orange); background: rgba(233, 94, 46, .1); font-size: 27px; }
.confirm-dialog .eyebrow { margin-bottom: 9px; }
.confirm-dialog h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 25px; font-weight: 500; line-height: 1.35; }
.confirm-copy { margin: 13px auto 26px; max-width: 330px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-dialog.danger .confirm-icon { color: #b43a2c; background: rgba(180, 58, 44, .1); }
.confirm-dialog.danger .eyebrow { color: #b43a2c; }
.confirm-dialog.danger #confirmSubmitButton { background: #b43a2c; box-shadow: 0 7px 18px rgba(180, 58, 44, .16); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 10; transform: translate(-50%, 20px); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .rummage-full-body, .rummage-full-body::after, .rummage-motion, .rummage-item { animation: none; }
  .rummage-item { opacity: .7; }
}

@media (max-width: 850px) {
  .hero { min-height: 490px; padding: 48px 5%; background-position: 58% center; }
  .hero-content { width: 66%; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .filters { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 590px) {
  .page-shell { width: min(100% - 24px, 1180px); }
  .topbar { height: 70px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 14px; }
  .topbar .button { padding: 10px 14px; font-size: 12px; }
  .hero { min-height: 680px; margin: 18px 0 28px; padding: 30px 25px 34px; align-items: flex-end; border-radius: 23px; background-image: linear-gradient(0deg, rgba(246,242,234,.99) 0%, rgba(246,242,234,.95) 41%, rgba(246,242,234,.08) 73%), url("assets/jiujiu-observer.jpg"); background-position: 65% top; }
  .hero::after { inset: 10px; border-radius: 16px; }
  .hero-content { width: 100%; }
  .hero h1 { font-size: 40px; }
  .hero-copy { font-size: 13px; }
  .lucky-card { padding: 15px 17px; min-height: 78px; margin-top: 23px; }
  .lucky-icon { width: 46px; height: 46px; }
  .lucky-card strong { font-size: 15px; }
  .observer-stamp { right: 21px; top: 21px; bottom: auto; }
  .workspace { padding: 22px 15px; border-radius: 22px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .search-box { width: 100%; }
  .filters { margin-top: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .food-card { min-height: 190px; }
  .detail-dialog { padding: 22px 18px; }
  .dialog form, .random-dialog { padding: 22px 18px; }
  .confirm-dialog { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .type-picker { grid-template-columns: 1fr; }
  .source-input-row { grid-template-columns: 1fr; }
  .analyze-button { min-height: 42px; }
}
