.chat-page {
    background: var(--shell-bg);
}

.chat-shell-page {
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: visible;
    background: var(--shell-bg);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.chat-hero-section {
    position: relative;
    min-height: clamp(620px, 48vw, 900px);
    overflow: hidden;
    color: #fffdf5;
}

.chat-hero-bg,
.chat-hero-dim {
    position: absolute;
    inset: 0;
}

.chat-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.chat-hero-dim {
    background:
        linear-gradient(90deg, rgba(4, 14, 8, 0.74) 0%, rgba(4, 14, 8, 0.48) 42%, rgba(4, 14, 8, 0.18) 100%),
        linear-gradient(180deg, rgba(4, 14, 8, 0.18) 0%, rgba(4, 14, 8, 0.54) 100%);
}

.chat-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1680px, calc(100% - 96px));
    min-height: inherit;
    margin: 0 auto;
    padding: clamp(92px, 7vw, 148px) 0 clamp(70px, 6vw, 120px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: clamp(42px, 6vw, 120px);
    align-items: end;
}

.chat-hero-copy .section-label {
    color: rgba(255, 253, 245, 0.72);
}

.chat-hero-copy h1 {
    margin: 22px 0 0;
    max-width: 1060px;
    font-size: clamp(48px, 5.7vw, 112px);
    line-height: 1.04;
    letter-spacing: -0.08em;
    font-weight: 780;
}

.chat-hero-copy p:not(.section-label) {
    max-width: 760px;
    margin: 34px 0 0;
    color: rgba(255, 253, 245, 0.86);
    font-size: clamp(19px, 1.35vw, 25px);
    line-height: 1.78;
    letter-spacing: -0.04em;
}

.chat-episode-summary {
    padding: 38px;
    background: rgba(248, 245, 235, 0.13);
    border: 1px solid rgba(255, 253, 245, 0.22);
    backdrop-filter: blur(16px);
}

.chat-episode-summary span,
.chat-episode-summary em {
    display: block;
    color: rgba(255, 253, 245, 0.66);
    font-style: normal;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.chat-episode-summary strong {
    display: block;
    margin: 20px 0 52px;
    color: #fffdf5;
    font-size: clamp(28px, 2.4vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.06em;
}

.chat-episode-summary p {
    margin: 22px 0 0;
    color: rgba(255, 253, 245, 0.78);
    font-size: 18px;
    line-height: 1.72;
    letter-spacing: -0.035em;
}

.chat-main-section,
.chat-result-section {
    width: min(1680px, calc(100% - 96px));
    margin: 0 auto;
    padding: clamp(90px, 8vw, 154px) 0;
    border-top: 1px solid var(--line);
}

.chat-layout {
    display: grid;
    grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
    gap: clamp(34px, 4vw, 72px);
    align-items: start;
}

.daon-side-panel {
    display: grid;
    gap: 24px;
}

.daon-profile-card,
.conversation-guide-card,
.question-list-card,
.conversation-panel,
.result-note-card,
.result-copy {
    background: var(--paper-bg);
    border: 1px solid var(--line);
}

.daon-profile-card {
    padding: 34px 34px 38px;
}

.daon-image-box {
    min-height: 340px;
    display: flex;
    align-items: end;
    justify-content: center;
    background: linear-gradient(180deg, #e7e2d2 0%, #d9dfcf 100%);
    overflow: hidden;
}

.daon-image-box img {
    width: min(280px, 82%);
    margin-bottom: -4px;
}

.daon-status {
    position: relative;
    margin-top: 28px;
    padding-left: 22px;
}

.status-dot {
    position: absolute;
    left: 0;
    top: 11px;
    width: 10px;
    height: 10px;
    background: #4b8d58;
    border-radius: 50%;
}

.daon-status strong {
    display: block;
    color: var(--ink);
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.055em;
}

.daon-status em {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-style: normal;
    font-size: 16px;
}

.conversation-guide-card,
.question-list-card {
    padding: 34px;
}

.conversation-guide-card h2 {
    margin: 18px 0 0;
    color: var(--ink);
    font-size: 34px;
    line-height: 1.18;
    letter-spacing: -0.06em;
}

.conversation-guide-card p:not(.section-label) {
    margin: 20px 0 0;
    color: rgba(43, 43, 37, 0.72);
    font-size: 18px;
    line-height: 1.78;
    letter-spacing: -0.035em;
}

.question-list-card span {
    display: block;
    color: var(--green);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.question-list-card ol {
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: question;
}

.question-list-card li {
    position: relative;
    min-height: 58px;
    padding: 16px 16px 16px 52px;
    color: rgba(43, 43, 37, 0.72);
    font-size: 17px;
    line-height: 1.55;
    letter-spacing: -0.035em;
    border: 1px solid rgba(23, 41, 30, 0.1);
    background: rgba(255, 255, 255, 0.28);
}

.question-list-card li::before {
    counter-increment: question;
    content: counter(question);
    position: absolute;
    left: 18px;
    top: 18px;
    color: var(--green);
    font-size: 15px;
    font-weight: 900;
}

.question-list-card li.is-current {
    color: var(--ink);
    background: #e5eadc;
    border-color: rgba(23, 63, 38, 0.25);
    font-weight: 700;
}

.conversation-panel {
    min-height: 760px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.conversation-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 86px;
    padding: 0 34px;
    border-bottom: 1px solid var(--line);
    background: rgba(232, 228, 214, 0.52);
}

.conversation-topbar span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.conversation-topbar strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 22px;
    letter-spacing: -0.04em;
}

.small-control-button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--line);
    background: #f8f5eb;
    color: var(--green);
    font-size: 15px;
    font-weight: 800;
}

.message-stream {
    flex: 1;
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-height: 620px;
    overflow-y: auto;
}

.message-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.message-row.user-row {
    justify-content: flex-end;
}

.message-avatar {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e7d9;
    border-radius: 50%;
    overflow: hidden;
}

.user-row .message-avatar {
    order: 2;
    background: var(--green);
    color: #fffdf5;
    font-weight: 900;
}

.message-avatar img {
    width: 86%;
}

.message-bubble {
    max-width: min(620px, 78%);
    padding: 20px 24px;
    background: #fffdf5;
    border: 1px solid rgba(23, 41, 30, 0.1);
}

.user-row .message-bubble {
    background: var(--green-soft);
    color: var(--green);
}

.message-bubble span {
    display: block;
    margin-bottom: 7px;
    color: var(--green);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.user-row .message-bubble span {
    color: rgba(23, 63, 38, 0.72);
}

.message-bubble p {
    margin: 0;
    font-size: 19px;
    line-height: 1.72;
    letter-spacing: -0.035em;
}

.quick-answer-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 34px 0;
    border-top: 1px solid var(--line);
}

.quick-answer-box button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(23, 41, 30, 0.14);
    background: #eef0e5;
    color: var(--green);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.chat-input-area {
    padding: 20px 34px 34px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chat-input-area textarea {
    width: 100%;
    min-height: 104px;
    resize: vertical;
    padding: 22px 24px;
    border: 1px solid rgba(23, 41, 30, 0.18);
    outline: none;
    background: #fffdf5;
    color: var(--text);
    font: inherit;
    font-size: 19px;
    line-height: 1.58;
    letter-spacing: -0.035em;
}

.chat-input-area textarea:focus {
    border-color: rgba(23, 63, 38, 0.5);
}

.chat-input-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}

.voice-demo-button,
.send-chat-button {
    min-height: 58px;
    padding: 0 26px;
    border: 1px solid var(--line);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.voice-demo-button {
    background: #f8f5eb;
    color: var(--green);
}

.send-chat-button {
    min-width: 170px;
    background: var(--green);
    color: #fffdf5;
}

.result-preview-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(30px, 4vw, 72px);
    align-items: stretch;
}

.result-note-card {
    min-height: 460px;
    padding: clamp(38px, 4vw, 62px);
    display: flex;
    flex-direction: column;
}

.result-note-card span {
    color: var(--green);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.result-note-card h3 {
    margin: 56px 0 0;
    color: var(--ink);
    font-size: clamp(42px, 4.2vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.08em;
}

.result-note-card p {
    margin: 34px 0 0;
    color: rgba(43, 43, 37, 0.77);
    font-size: 21px;
    line-height: 1.82;
    letter-spacing: -0.04em;
}

.result-note-card small {
    margin-top: auto;
    padding-top: 48px;
    color: rgba(43, 43, 37, 0.5);
    font-size: 14px;
    line-height: 1.5;
}

.result-copy {
    padding: clamp(38px, 4vw, 62px);
    background: var(--green);
    color: #fffdf5;
}

.result-copy h3 {
    margin: 0;
    font-size: clamp(38px, 3.4vw, 62px);
    line-height: 1.12;
    letter-spacing: -0.07em;
}

.result-copy p {
    margin: 30px 0 48px;
    max-width: 680px;
    color: rgba(255, 253, 245, 0.78);
    font-size: 20px;
    line-height: 1.8;
    letter-spacing: -0.04em;
}

.result-copy .primary-button {
    background: #fffdf5;
    color: var(--green);
}

@media (max-width: 1180px) {
    .chat-hero-inner,
    .chat-layout,
    .result-preview-layout {
        grid-template-columns: 1fr;
    }

    .chat-episode-summary {
        max-width: 520px;
    }
}

@media (max-width: 760px) {
    .chat-hero-inner,
    .chat-main-section,
    .chat-result-section {
        width: min(100% - 40px, 1680px);
        margin-left: auto;
        margin-right: auto;
    }

    .chat-hero-section {
        min-height: auto;
    }

    .chat-hero-inner {
        padding: 72px 0;
    }

    .chat-hero-copy h1 {
        font-size: 44px;
    }

    .chat-episode-summary,
    .daon-profile-card,
    .conversation-guide-card,
    .question-list-card,
    .conversation-topbar,
    .message-stream,
    .chat-input-area {
        padding-left: 22px;
        padding-right: 22px;
    }

    .conversation-panel {
        min-height: auto;
    }

    .message-stream {
        max-height: none;
    }

    .message-bubble {
        max-width: calc(100% - 70px);
    }

    .message-bubble p {
        font-size: 17px;
    }

    .quick-answer-box {
        padding-left: 22px;
        padding-right: 22px;
    }

    .chat-input-actions {
        flex-direction: column;
    }

    .voice-demo-button,
    .send-chat-button {
        width: 100%;
    }
}
