:root {
    --forest: #12372a;
    --forest-soft: #1d4d3c;
    --lime: #dff07a;
    --cream: #f4f0e6;
    --paper: #fffdf8;
    --ink: #17221d;
    --muted: #6c766f;
    --line: rgba(18, 55, 42, 0.14);
    --danger: #a13c2f;
    --shadow: 0 22px 65px rgba(18, 55, 42, .13);
}

.chat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: padding .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.brand-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(28px, 4vw, 42px);
    text-align: center;
    transition: margin .25s ease;
}

.brand-heading h1 {
    margin: 0;
    color: white;
    font-size: clamp(23px, 3.2vw, 34px);
    font-weight: 720;
    letter-spacing: -.025em;
}

.brand-heading h1 span {
    color: var(--lime);
}

.brand-heading p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: clamp(13px, 1.8vw, 16px);
    letter-spacing: .04em;
}

.brand-actions {
    display: none;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: #4c6359;
    background: #f2f6f3;
    border: 1px solid rgba(18, 55, 42, .1);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.live-badge i {
    width: 6px;
    height: 6px;
    background: #79a11f;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(121, 161, 31, .12);
}

.new-chat-button {
    min-height: 32px;
    padding: 0 11px;
    color: var(--forest);
    background: white;
    border: 1px solid rgba(18, 55, 42, .16);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

.new-chat-button:hover { background: #f2f6f3; }
.new-chat-button[hidden] { display: none; }

.welcome-panel {
    width: min(100%, 760px);
    margin: 0 auto 20px;
    color: white;
    text-align: center;
}

.welcome-eyebrow {
    margin: 0 0 9px;
    color: var(--lime);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.welcome-panel h2 {
    margin: 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 520;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.welcome-panel > p:not(.welcome-eyebrow) {
    margin: 14px auto 0;
    color: rgba(255, 255, 255, .66);
    font-size: 14px;
    line-height: 1.7;
}

.prompt-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.prompt-suggestions button {
    padding: 9px 13px;
    color: rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: 11px;
    cursor: pointer;
}

.prompt-suggestions button:hover,
.prompt-suggestions button:focus-visible {
    color: var(--forest);
    background: var(--lime);
    border-color: var(--lime);
    outline: none;
}

.chat-messages {
    display: none;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow-anchor: none;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 8px 6px 26px 2px;
    scrollbar-gutter: stable;
    scrollbar-color: rgba(18, 55, 42, .22) transparent;
    scrollbar-width: thin;
}

.chat-messages > * { flex: 0 0 auto; }
.chat-messages::-webkit-scrollbar { width: 7px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(18, 55, 42, .18); border-radius: 99px; }

.chat-card.has-conversation {
    height: calc(100vh - 48px);
    min-height: 520px;
    padding: clamp(18px, 3vw, 30px);
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(18, 55, 42, .12);
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(18, 55, 42, .12);
}
.chat-card.has-conversation .brand-hero {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 14px;
    padding: 0 2px 14px;
    border-bottom: 1px solid rgba(18, 55, 42, .1);
    text-align: left;
}
.chat-card.has-conversation .brand-actions { display: flex; }
.chat-card.has-conversation .brand-heading h1 {
    margin: 0;
    color: var(--forest);
    font-size: 15px;
    letter-spacing: 0;
}
.chat-card.has-conversation .brand-heading h1 span { color: #68831d; }
.chat-card.has-conversation .brand-heading p { display: none; }
.chat-card.has-conversation .welcome-panel { display: none; }
.chat-card.has-conversation .chat-messages { display: flex; }

.chat-bubble {
    position: relative;
    max-width: 86%;
    padding: 14px 17px;
    border-radius: 18px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.chat-bubble.user {
    max-width: min(78%, 620px);
    color: #fff;
    background: #12372a;
    border-bottom-right-radius: 5px;
    align-self: flex-end;
}

.chat-bubble.assistant {
    color: #173c2f;
    background: #eef5ef;
    align-self: flex-start;
}

.chat-bubble.assistant.rich-answer {
    width: min(100%, 800px);
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(18, 55, 42, .12);
    border-bottom-left-radius: 5px;
    box-shadow: 0 8px 28px rgba(18, 55, 42, .06);
    white-space: normal;
}

.assistant-content { position: relative; padding: 42px 20px 18px; }

.assistant-content::before {
    position: absolute;
    top: 13px;
    left: 20px;
    color: #6a7d73;
    content: "AI 整理";
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.assistant-content::after {
    position: absolute;
    top: 16px;
    left: 74px;
    width: 24px;
    height: 1px;
    background: rgba(18, 55, 42, .17);
    content: "";
}

.assistant-content h3 {
    margin: 20px 0 8px;
    color: var(--forest);
    font-size: 15px;
    line-height: 1.45;
}

.assistant-content h3:first-child { margin-top: 0; }
.assistant-content p { margin: 0 0 11px; color: #28483b; font-size: 13px; line-height: 1.78; }
.assistant-content p:last-child { margin-bottom: 0; }
.assistant-content strong { color: #153e30; font-weight: 780; }
.assistant-content a { color: #0a654f; font-weight: 700; text-decoration-color: rgba(10, 101, 79, .35); text-underline-offset: 3px; }
.assistant-content a:hover { text-decoration-color: currentColor; }

.assistant-content ul,
.assistant-content ol {
    margin: 8px 0 14px;
    padding-left: 22px;
    color: #28483b;
}

.assistant-content li {
    padding-left: 3px;
    font-size: 13px;
    line-height: 1.72;
}

.assistant-content li + li { margin-top: 6px; }
.assistant-content li::marker { color: #718e2c; font-weight: 800; }

.answer-table-wrap {
    max-width: 100%;
    margin: 12px 0 16px;
    overflow: hidden;
    border: 1px solid rgba(18, 55, 42, .13);
    border-radius: 12px;
}

.answer-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    background: white;
    font-size: 11px;
    line-height: 1.55;
}

.answer-table th,
.answer-table td {
    padding: 10px 11px;
    border-right: 1px solid rgba(18, 55, 42, .09);
    border-bottom: 1px solid rgba(18, 55, 42, .09);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.answer-table th {
    color: var(--forest);
    background: #edf4ef;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.answer-table th:last-child,
.answer-table td:last-child { border-right: 0; }
.answer-table tbody tr:last-child td { border-bottom: 0; }
.answer-table tbody tr:nth-child(even) { background: #fbfcfa; }
.chat-bubble.pending { opacity: 0.68; }
.chat-bubble.error { background: #fff0ed; color: #9b2c1d; }
.chat-bubble.progress-status { position: relative; width: min(100%, 800px); max-width: 100%; padding: 12px 15px 12px 34px; color: #53675d; background: #f7faf5; border: 1px dashed rgba(18, 55, 42, .2); border-radius: 14px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.chat-bubble.progress-status::before { position: absolute; left: 14px; top: 20px; width: 7px; height: 7px; background: #86a337; border-radius: 50%; content: ""; animation: breathe 1.2s ease-in-out infinite; }
.chat-bubble.notice { padding: 9px 13px; color: #617168; background: #f7f8f4; border: 1px solid rgba(18, 55, 42, .1); font-size: 12px; }
@keyframes breathe { 50% { opacity: .3; transform: scale(.75); } }
.research-choices {
    display: grid;
    align-self: flex-start;
    gap: 9px;
    width: min(100%, 800px);
    max-width: 100%;
    padding: 13px 15px;
    color: #53675d;
    background: #f7faf5;
    border: 1px solid rgba(18, 55, 42, .14);
    border-radius: 14px;
}
.research-choices > span { font-size: 12px; line-height: 1.55; }
.research-choice-list { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.research-choice-list button {
    max-width: 100%;
    min-height: 34px;
    padding: 7px 11px;
    color: var(--forest);
    background: white;
    border: 1px solid rgba(18, 55, 42, .18);
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 720;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.research-choice-list button:hover,
.research-choice-list button:focus-visible {
    background: var(--lime);
    border-color: #b8ce4c;
    outline: none;
}
.chat-bubble.agent-loading { display: flex; align-items: flex-start; gap: 13px; width: min(88%, 560px); max-width: none; padding: 15px 17px; background: linear-gradient(115deg, #eef5ef, #f7faf5); border: 1px solid rgba(18, 55, 42, .1); box-shadow: 0 8px 22px rgba(18, 55, 42, .06); opacity: 1; }
.agent-loading-signal { display: flex; flex: 0 0 auto; gap: 3px; align-items: flex-end; justify-content: center; width: 28px; height: 28px; padding-bottom: 8px; background: var(--forest); border-radius: 50%; }
.agent-loading-signal i { width: 3px; height: 3px; background: var(--lime); border-radius: 50%; animation: agent-dot 1.15s ease-in-out infinite; }
.agent-loading-signal i:nth-child(2) { animation-delay: .14s; }
.agent-loading-signal i:nth-child(3) { animation-delay: .28s; }
.agent-loading-copy { display: grid; gap: 3px; min-width: 0; }
.agent-loading-copy strong { color: var(--forest); font-size: 14px; font-weight: 760; }
.agent-loading-copy span { color: #53675d; font-size: 12px; line-height: 1.55; }
.agent-loading-copy small { margin-top: 2px; color: #89958e; font-size: 10px; line-height: 1.45; }
@keyframes agent-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-place-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    overflow: visible;
    padding: 2px 2px 10px;
    align-self: flex-start;
}

.chat-place-card {
    min-width: 0;
    overflow: hidden;
    padding: 15px;
    border: 1px solid rgba(18, 55, 42, .13);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 55, 42, .07);
}
.chat-place-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.chat-place-heading strong { color: var(--forest); font-size: 15px; }
.chat-place-heading span { flex: 0 0 auto; color: #88630e; font-size: 12px; font-weight: 700; }
.chat-place-contact, .chat-place-address { margin: 7px 0 0; font-size: 12px; line-height: 1.5; }
.chat-place-address { color: var(--muted); }
.chat-place-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-place-facts span { padding: 4px 8px; color: #405a4d; background: #eef5ef; border-radius: 999px; font-size: 11px; }
.chat-place-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 11px; overflow: hidden; border-radius: 11px; }
.chat-place-photos.count-1 { grid-template-columns: 1fr; }
.chat-place-photos.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chat-place-photos a { display: block; min-width: 0; aspect-ratio: 4 / 3; background: #e5ece7; }
.chat-place-photos img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.chat-place-photos a:hover img { transform: scale(1.035); }
.chat-place-actions { display: flex; gap: 15px; margin-top: 11px; }
.chat-place-actions a { color: var(--forest); font-size: 12px; font-weight: 750; text-underline-offset: 3px; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; padding: 7px; background: rgba(255, 255, 255, .98); border: 1px solid rgba(18, 55, 42, .13); border-radius: 19px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.chat-form:focus-within { border-color: rgba(18, 55, 42, .35); box-shadow: 0 12px 34px rgba(18, 55, 42, .13), 0 0 0 3px rgba(29, 77, 60, .08); }
.chat-form textarea { width: 100%; min-width: 0; min-height: 52px; max-height: 120px; resize: none; overflow-y: hidden; border: 0; border-radius: 13px; background: transparent; padding: 14px 11px 12px; color: var(--ink); outline: none; font: inherit; font-size: 16px; line-height: 1.5; box-shadow: none; }
.chat-form textarea::placeholder { color: #7b8780; }
.chat-form .primary-button { width: auto; min-width: 112px; min-height: 52px; margin: 0; border-radius: 13px; gap: 18px; }
.chat-card.has-conversation .chat-form { flex: 0 0 auto; box-shadow: 0 10px 30px rgba(18, 55, 42, .09); }
.new-research-tip {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 82px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 36px);
    min-height: 38px;
    padding: 7px 12px;
    color: white;
    background: rgba(18, 55, 42, .96);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(18, 55, 42, .24);
    font-size: 12px;
    cursor: pointer;
    transform: translateX(-50%);
}
.new-research-tip span { color: var(--lime); font-size: 14px; }
.new-research-tip strong { overflow: hidden; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.new-research-tip em { flex: 0 0 auto; color: var(--lime); font-size: 11px; font-style: normal; font-weight: 750; }
.new-research-tip.is-popping { animation: research-tip-pop .32s ease-out; }
@keyframes research-tip-pop {
    from { opacity: 0; transform: translate(-50%, 8px) scale(.96); }
}
.composer-note {
    margin: 7px 0 -8px;
    color: rgba(255, 255, 255, .5);
    font-size: 9px;
    text-align: center;
}
.chat-card.has-conversation .composer-note { color: #89958e; }

@media (max-width: 640px) {
    .chat-form { grid-template-columns: minmax(0, 1fr) 48px; gap: 6px; padding: 6px; border-radius: 16px; }
    .chat-form .primary-button { min-width: 48px; width: 48px; min-height: 48px; padding: 0; border-radius: 12px; justify-content: center; }
    .chat-form .primary-button span:first-child { display: none; }
    .chat-form textarea { min-height: 48px; max-height: 104px; padding: 12px 9px 10px; }
    .live-badge { display: none; }
    .chat-bubble { max-width: 94%; font-size: 15px; line-height: 1.75; }
    .chat-bubble.user { max-width: 88%; font-size: 16px; }
    .assistant-content { padding: 40px 15px 16px; }
    .assistant-content::before { left: 15px; }
    .assistant-content::after { left: 69px; }
    .assistant-content h3 { font-size: 17px; line-height: 1.55; }
    .assistant-content p,
    .assistant-content li { font-size: 15px; line-height: 1.82; }
    .chat-bubble.agent-loading { width: 100%; }
    .chat-bubble.progress-status { padding: 13px 14px 13px 34px; font-size: 14px; line-height: 1.72; }
    .chat-bubble.progress-status::before { top: 21px; }
    .research-choices { padding: 12px; }
    .research-choices > span { font-size: 13px; }
    .research-choice-list button { min-height: 40px; padding: 8px 12px; font-size: 14px; }
    .agent-loading-copy strong { font-size: 15px; }
    .agent-loading-copy span { font-size: 14px; line-height: 1.65; }
    .agent-loading-copy small { font-size: 11px; }
    .chat-place-group { width: 100%; grid-template-columns: 1fr; }
    .chat-place-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .chat-place-heading strong { font-size: 16px; line-height: 1.45; }
    .chat-place-heading span { font-size: 13px; }
    .chat-place-contact,
    .chat-place-address { font-size: 14px; line-height: 1.65; }
    .chat-place-facts span { font-size: 12px; }
    .chat-place-actions a { font-size: 14px; }
    .composer-note { font-size: 10px; line-height: 1.45; }
    .new-research-tip { bottom: calc(78px + env(safe-area-inset-bottom)); min-height: 42px; padding: 9px 13px; font-size: 13px; }
    .new-research-tip em { font-size: 12px; }
    .welcome-panel h2 { font-size: 31px; }
    .welcome-panel > p:not(.welcome-eyebrow) { font-size: 14px; }
    .prompt-suggestions { margin-top: 19px; }
    .answer-table-wrap { border: 0; border-radius: 0; }
    .answer-table,
    .answer-table tbody,
    .answer-table tr,
    .answer-table td { display: block; width: 100%; }
    .answer-table thead { display: none; }
    .answer-table tbody { display: grid; gap: 10px; }
    .answer-table tr { overflow: hidden; border: 1px solid rgba(18, 55, 42, .13); border-radius: 11px; background: white; }
    .answer-table td { display: grid; grid-template-columns: minmax(92px, 34%) minmax(0, 1fr); gap: 9px; border-right: 0; }
    .answer-table td { font-size: 14px; line-height: 1.65; }
    .answer-table td::before { color: #667a70; content: attr(data-label); font-size: 11px; font-weight: 800; }
    .answer-table td:first-child { color: var(--forest); background: #edf4ef; font-weight: 800; }
    .answer-table td:first-child::before { content: "对比项"; }
}

* { box-sizing: border-box; }

html { background: var(--forest); }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 82% 12%, rgba(223, 240, 122, .2), transparent 28rem),
        var(--forest);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
}

button, select, input, textarea { font: inherit; }

.shell {
    display: flex;
    align-items: center;
    width: min(100%, 1060px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}

.hero {
    position: relative;
    color: white;
    min-height: 300px;
    padding: 52px 0 42px;
    overflow: hidden;
}

.hero-mark {
    position: absolute;
    right: 2%;
    top: -28px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.14);
    font-family: Georgia, serif;
    font-size: clamp(180px, 28vw, 330px);
    line-height: 1;
    user-select: none;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--lime);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .18em;
}

.hero h1 {
    position: relative;
    max-width: 650px;
    margin: 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.hero-copy {
    position: relative;
    max-width: 520px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.7);
    font-size: 16px;
    line-height: 1.75;
}

.search-card, .progress-card, .results-section, .note-card {
    border: 1px solid rgba(18,55,42,.1);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 28px 70px rgba(18,55,42,.12);
}

.search-card { padding: clamp(24px, 5vw, 52px); }

.section-heading {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 36px;
}

.section-heading > span {
    color: var(--forest);
    border-bottom: 2px solid var(--lime);
    font-size: 13px;
    font-weight: 800;
    padding-bottom: 6px;
}

h2, h3, p { margin-top: 0; }
.section-heading h2, .results-heading h2, .progress-card h2 { margin: 0 0 7px; }
.section-heading p, .results-heading p, .progress-card p { margin-bottom: 0; color: var(--muted); }

.field-grid, .advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.field > span {
    display: block;
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

select, input[type="url"], input[type="number"], input[type="search"] {
    width: 100%;
    height: 52px;
    appearance: none;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2312372a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
    padding: 0 42px 0 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

input[type="url"], input[type="number"], input[type="search"] { background-image: none; padding-right: 15px; }
.field small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.field-wide { grid-column: 1 / -1; }
.is-hidden { display: none; }
select:focus, input:focus { border-color: var(--forest-soft); box-shadow: 0 0 0 4px rgba(29,77,60,.1); outline: none; }

.advanced { margin: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.advanced summary { cursor: pointer; padding: 18px 0; color: var(--forest); font-size: 14px; font-weight: 700; }
.advanced-grid { padding: 4px 0 24px; }

.primary-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    color: white;
    border: 0;
    border-radius: 14px;
    background: var(--forest);
    padding: 0 22px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.primary-button:hover { background: var(--forest-soft); }
.primary-button:disabled { cursor: wait; opacity: .65; }

.progress-card {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 22px;
    padding: 28px;
}

.pulse {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 5px solid rgba(18,55,42,.2);
    border-top-color: var(--forest);
    border-radius: 50%;
    animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.progress-card.error { border-color: rgba(161,60,47,.35); }
.progress-card.error .pulse { border: 0; animation: none; background: var(--danger); }

.results-section { margin-top: 22px; padding: clamp(24px, 4vw, 42px); }
.results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.download-link { color: var(--forest); font-size: 13px; font-weight: 750; text-underline-offset: 4px; }
.results-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.place-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    padding: 22px;
}

.place-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.place-rank { display: grid; place-items: center; width: 30px; height: 30px; color: var(--forest); background: var(--lime); border-radius: 50%; font-size: 12px; font-weight: 800; }
.place-category { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.place-title { min-height: 52px; margin-bottom: 12px; font-family: Georgia, "Songti SC", serif; font-size: 22px; font-weight: 550; line-height: 1.2; }
.place-photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0 0 15px; overflow: hidden; border-radius: 10px; }
.place-photo-strip a { display: block; aspect-ratio: 4 / 3; background: #e5ece7; }
.place-photo-strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rating-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.place-rating { color: var(--forest); font-size: 20px; }
.stars { color: #d39a19; font-size: 12px; letter-spacing: 1px; }
.place-reviews { color: var(--muted); font-size: 12px; }
.place-address { min-height: 44px; margin: 15px 0 9px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.place-meta { min-height: 20px; color: var(--ink); font-size: 13px; }
.place-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.place-facts span { padding: 4px 8px; color: #405a4d; background: #eef5ef; border-radius: 999px; font-size: 11px; }
.place-actions { display: flex; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.place-actions a { color: var(--forest); font-size: 12px; font-weight: 750; text-underline-offset: 3px; }
.place-actions a[hidden] { display: none; }

.note-card { margin-top: 22px; padding: 24px 28px; background: rgba(255,253,248,.72); box-shadow: none; }
.note-card strong { font-size: 13px; }
.note-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

[hidden] { display: none !important; }

@media (max-width: 700px) {
    body { background: var(--forest); }
    .shell { padding-left: 16px; padding-right: 16px; }
    .brand-hero { margin-bottom: 26px; }
    .brand-heading h1 { font-size: clamp(21px, 7vw, 28px); }
    .brand-heading p { max-width: 280px; margin-top: 8px; font-size: 13px; line-height: 1.6; }
    body:has(.chat-card.has-conversation) { overflow: hidden; background: #f5f7f4; }
    .shell:has(.chat-card.has-conversation) { align-items: stretch; padding: 0; }
    .chat-card.has-conversation {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding: max(10px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .chat-card.has-conversation .brand-hero { margin-bottom: 10px; padding-bottom: 11px; }
    .chat-card.has-conversation .brand-heading h1 { font-size: 12px; }
    .chat-card.has-conversation .new-chat-button { min-height: 36px; }
    .chat-card.has-conversation .chat-messages { padding-right: 2px; }
    .hero { min-height: 260px; padding-top: 34px; }
    .hero-mark { right: -12%; font-size: 220px; }
    .hero-copy { font-size: 14px; }
    .search-card { border-radius: 20px; }
    .field-grid, .advanced-grid, .results-list { grid-template-columns: 1fr; }
    .field-grid { gap: 17px; }
    .section-heading { margin-bottom: 26px; }
    .results-heading { align-items: flex-start; flex-direction: column; }
    .place-title, .place-address { min-height: auto; }
    .progress-card { align-items: flex-start; }
}

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