:root {
    --app-vh: 100vh;
    --ai-font-scale: 1;
    --bufs-yellow: #2563eb;
    --bufs-dark: #111827;
    --bufs-blue: #173b88;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Pretendard", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--bufs-dark);
    background: #fff;
}

body {
    overflow-x: hidden;
}

.official-page-frame {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: #fff;
}

.official-page-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.official-iframe-page .bufs-header,
.official-iframe-page .bufs-static-main {
    display: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.composer textarea,
.feedback textarea,
.panel textarea {
    width: 100%;
    border: 1px solid #d7dde5;
    border-radius: 16px;
    background: #fff;
    color: var(--bufs-dark);
    line-height: 1.6;
    padding: 14px 16px;
    box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.composer textarea {
    min-height: 32px;
    max-height: 160px;
    resize: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.composer textarea::placeholder,
.feedback textarea::placeholder,
.panel textarea::placeholder {
    color: #8b96a8;
}

.composer textarea:focus,
.feedback textarea:focus,
.panel textarea:focus {
    outline: none;
}

.feedback textarea:focus,
.panel textarea:focus {
    border-color: #c2d2ea;
    box-shadow: 0 0 0 3px rgba(23, 59, 136, 0.10);
}

.panel textarea[readonly],
.feedback textarea[readonly] {
    background: #f8fafc;
    color: #435160;
    resize: none;
}

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

.bufs-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.bufs-header-inner {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.bufs-logo img {
    display: block;
    height: 39px;
}

.bufs-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-weight: 700;
    font-size: 16px;
    color: #222;
}

.bufs-nav a {
    position: relative;
}

.bufs-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -20px;
    height: 3px;
    background: #e83410;
    transition: 0.2s ease;
}

.bufs-nav a:hover::after {
    left: 0;
    right: 0;
}

.bufs-main {
    padding-top: 64px;
}

.main-visual {
    position: relative;
    height: min(880px, calc(100vh - 64px));
    min-height: 620px;
    overflow: hidden;
    background: #101828;
}

.bufs-visual-swiper,
.bufs-visual-swiper .swiper-wrapper,
.bufs-visual-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.bufs-visual-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bufs-visual-swiper .swiper-pagination-bullet {
    width: 11px;
    height: 11px;
    background: #fff;
    opacity: 0.5;
}

.bufs-visual-swiper .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 99px;
    opacity: 1;
    background: var(--bufs-yellow);
}

.visual-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.24);
    transform: translateY(-50%);
}

.visual-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
}

.visual-prev {
    left: 40px;
}

.visual-prev::before {
    transform: translate(-35%, -50%) rotate(-45deg);
}

.visual-next {
    right: 40px;
}

.visual-next::before {
    transform: translate(-65%, -50%) rotate(135deg);
}

.quick-section {
    max-width: 1440px;
    margin: -80px auto 80px;
    padding: 0 48px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.quick-card {
    min-height: 160px;
    padding: 32px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15,23,42,0.16);
}

.quick-card strong {
    display: block;
    font-size: 24px;
    color: #111827;
    margin-bottom: 12px;
}

.quick-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.ai-navigator {
    position: fixed;
    z-index: 80;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    touch-action: none;
    user-select: none;
}

.ai-navigator.is-positioned {
    right: auto;
    bottom: auto;
    transform: none;
}

.ai-navigator.is-dragging {
    z-index: 120;
}

.ai-nav-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 58px;
    height: 58px;
    padding: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(14px);
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    isolation: isolate;
    cursor: grab;
}

.ai-navigator.is-dragging .ai-nav-button {
    cursor: grabbing;
    transform: scale(0.98);
    box-shadow: 0 28px 54px rgba(15, 23, 42, 0.38);
}

.ai-nav-button:hover,
.ai-nav-button:focus-visible {
    transform: translateY(-3px);
    background: rgba(6, 18, 46, 0.96);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.34);
}

.ai-nav-button::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.ai-nav-orbit {
    position: absolute;
    left: 7px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bufs-yellow);
    opacity: 0.2;
    animation: aiPulse 2.4s ease-in-out infinite;
}

.ai-nav-icon {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bufs-yellow);
    color: var(--bufs-dark);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.ai-nav-icon.has-image {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.ai-nav-icon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: opacity 0.16s ease;
}

.ai-nav-icon .ai-nav-icon-hover {
    opacity: 0;
}

.ai-nav-button:hover .ai-nav-icon .ai-nav-icon-hover,
.ai-nav-button:focus-visible .ai-nav-icon .ai-nav-icon-hover {
    opacity: 1;
}

.ai-nav-button:hover .ai-nav-icon.has-hover-image .ai-nav-icon-default,
.ai-nav-button:focus-visible .ai-nav-icon.has-hover-image .ai-nav-icon-default {
    opacity: 0;
}

.ai-nav-text {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: max-content;
    max-width: min(280px, calc(100vw - 120px));
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.94);
    color: #fff;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(-50%) translateX(6px);
    pointer-events: none;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
    transition: opacity 0.16s ease, transform 0.2s ease;
}

.ai-navigator.is-right-side .ai-nav-text,
.ai-navigator:not(.is-left-side) .ai-nav-text {
    right: 66px;
}

.ai-navigator.is-left-side .ai-nav-text {
    left: 66px;
    right: auto;
    transform: translateY(-50%) translateX(-6px);
}

.ai-nav-button:hover .ai-nav-text,
.ai-nav-button:focus-visible .ai-nav-text {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@keyframes aiPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.18);
        opacity: 0.28;
    }
}

.ai-chat-panel {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(2px);
}

.ai-chat-panel.is-open {
    display: flex;
}

.ai-chat-window {
    position: relative;
    width: min(540px, 100vw);
    height: 100%;
    background: #f5f7fb;
    box-shadow: -30px 0 80px rgba(15, 23, 42, 0.24);
    display: flex;
    flex-direction: column;
    animation: panelIn 0.28s ease both;
}

@keyframes panelIn {
    from {
        transform: translateX(40px);
        opacity: 0.5;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ai-chat-header {
    min-height: 76px;
    padding: 16px 18px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
}

.ai-chat-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.ai-chat-brand strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.ai-chat-brand span:not(.ai-avatar) {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #6b7280;
}

.ai-avatar {
    flex: 0 0 auto;
    border-radius: 50%;
    background: transparent;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    box-shadow: none;
}

.ai-avatar.small {
    width: 40px;
    height: 40px;
}

.ai-avatar.intro {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
}

.ai-avatar.message-icon {
    width: 36px;
    height: 36px;
    margin-top: 2px;
    background: transparent;
}

.ai-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ai-chat-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
    flex-wrap: nowrap;
}

.chat-tts-toggle {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 10px;
    background: #ffffff;
    color: #6b7280;
}

.chat-tts-toggle.is-on {
    border-color: var(--bufs-yellow);
    background: #eff6ff;
    background: color-mix(in srgb, var(--bufs-yellow) 16%, #fff);
    color: var(--bufs-dark);
}

.chat-tts-toggle.is-off {
    background: #fff;
    color: #6b7280;
}

.chat-tts-toggle,
.font-slider-control,
.ai-chat-tools button {
    flex: 0 0 auto;
}

.chat-tts-toggle {
    order: 0;
}

.font-slider-control {
    order: 1;
}

.ai-chat-tools button {
    order: 2;
}

.ai-chat-tools button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    color: var(--bufs-dark);
    font-weight: 800;
    display: grid;
    place-items: center;
}

.ai-chat-tools button:hover {
    background: var(--bufs-yellow);
}

.chat-tts-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.font-slider-control {
    height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #374151;
}

.font-slider-small {
    font-size: 11px;
    font-weight: 800;
}

.font-slider-large {
    font-size: 17px;
    font-weight: 900;
}

.font-slider-control input {
    width: 72px;
    accent-color: var(--bufs-yellow);
}

.notice-popup {
    position: absolute;
    z-index: 3;
    top: 82px;
    left: 16px;
    right: 16px;
}

.notice-card {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--bufs-yellow);
    box-shadow: 0 18px 50px rgba(15,23,42,0.18);
}

.notice-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notice-title button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: #f3f4f6;
}

.notice-card p {
    margin: 12px 0 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

.ai-chat-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.view {
    flex: 1;
    min-height: 0;
}

.home-view {
    display: none;
    padding: 40px 22px 24px;
    overflow-y: auto;
}

.home-view.is-active {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-view {
    display: none;
    min-height: 0;
}

.chat-view.is-active {
    display: flex;
    flex-direction: column;
}

.hero-copy {
    text-align: center;
    margin-bottom: 24px;
}

.hero-copy h1 {
    margin: 0;
    font-size: calc(30px * var(--ai-font-scale));
    letter-spacing: -0.06em;
}

.hero-copy .subtitle {
    margin: 12px 0 0;
    color: #6b7280;
    line-height: 1.55;
    font-size: calc(15px * var(--ai-font-scale));
}

.composer {
    position: relative;
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 24px;
    padding: 14px 104px 14px 16px;
    box-shadow: 0 14px 30px rgba(15,23,42,0.08);
}

.composer textarea {
    width: 100%;
    min-height: 32px;
    max-height: 160px;
    resize: none;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--bufs-dark);
    font-size: calc(15px * var(--ai-font-scale));
    line-height: 1.5;
}

.composer-actions {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary,
.btn-voice {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.btn-primary {
    border: 0;
    background: var(--bufs-yellow);
    color: var(--bufs-dark);
}

.btn-voice {
    border: 1px solid #d8dfe8;
    background: #fff;
    color: var(--bufs-yellow);
}

.btn-voice svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-voice.is-listening {
    background: var(--bufs-yellow);
    color: var(--bufs-dark);
    border-color: var(--bufs-yellow);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bufs-yellow) 24%, transparent);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: default;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.chip {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: calc(13px * var(--ai-font-scale));
}

.chip:hover {
    border-color: var(--bufs-yellow);
    background: #eff6ff;
    background: color-mix(in srgb, var(--bufs-yellow) 14%, #fff);
}

.message-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: messageIn 0.18s ease both;
}

@keyframes messageIn {
    from {
        transform: translateY(8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.message.assistant {
    justify-content: flex-start;
}

.message.assistant[data-feedback="like"] .bubble {
    border-color: var(--bufs-yellow);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--bufs-yellow) 22%, transparent), 0 10px 20px rgba(15, 23, 42, 0.07);
}

.message.assistant[data-feedback="dislike"] .bubble {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12), 0 10px 20px rgba(15, 23, 42, 0.07);
}

.message-content {
    max-width: 78%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.message.user .message-content {
    max-width: 80%;
    align-items: flex-end;
}

.bubble {
    padding: 13px 15px;
    border-radius: 18px;
    line-height: 1.55;
    word-break: keep-all;
    overflow-wrap: anywhere;
    font-size: calc(15px * var(--ai-font-scale));
}

.message.user .bubble {
    background: var(--bufs-yellow);
    color: var(--bufs-dark);
    border-bottom-right-radius: 6px;
}

.message.assistant .bubble {
    background: #fff;
    color: var(--bufs-dark);
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 6px;
    box-shadow: 0 8px 18px rgba(15,23,42,0.06);
}

.answer-sources {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #536171;
    font-size: calc(13px * var(--ai-font-scale));
    line-height: 1.5;
}

.answer-sources-title {
    font-weight: 700;
    color: #334155;
}

.answer-sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.answer-sources-item {
    color: #173b88;
    word-break: break-word;
}

.answer-sources-button {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--bufs-yellow) 42%, #d8dfe8);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bufs-yellow) 8%, #fff);
    color: #173b88;
    font-weight: 700;
    text-decoration: none;
}

.answer-sources-button:hover,
.answer-sources-button:focus-visible {
    background: var(--bufs-yellow);
    color: var(--bufs-dark);
    text-decoration: none;
    outline: none;
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    margin-left: 2px;
}

.message-actions button {
    min-width: 30px;
    height: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
}

.message-actions .message-action-button {
    width: 30px;
    min-width: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.message-actions .message-action-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.message-actions .message-action-button.is-playing {
    color: var(--bufs-dark);
    background: var(--bufs-yellow);
    border-color: var(--bufs-yellow);
}

.message-actions .message-action-button.is-shared {
    color: var(--bufs-dark);
    background: #eff6ff;
    background: color-mix(in srgb, var(--bufs-yellow) 16%, #fff);
    border-color: var(--bufs-yellow);
}

.message-actions .copy-button {
    width: 34px;
    min-width: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.message-actions .copy-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.message-actions .copy-button.is-copied {
    color: var(--bufs-dark);
    background: var(--bufs-yellow);
    border-color: var(--bufs-yellow);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bufs-yellow) 26%, transparent), 0 8px 18px rgba(15, 23, 42, 0.14);
}

.message-actions button:hover {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.message-actions .feedback-button {
    width: 34px;
    min-width: 34px;
    height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.message-actions .feedback-button:hover {
    transform: translateY(-1px);
}

.message-actions .feedback-button.is-active {
    color: var(--bufs-dark);
    background: var(--bufs-yellow);
    border-color: var(--bufs-yellow);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bufs-yellow) 30%, transparent), 0 8px 18px rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
}

.message-actions .dislike-button.is-active {
    color: #fff;
    background: #ef4444;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18), 0 8px 18px rgba(15, 23, 42, 0.16);
}

.message-actions .feedback-button.is-active span {
    transform: scale(1.08);
}

.message-actions .feedback-button:not(.is-active) {
    opacity: 0.72;
}

.message-actions .feedback-button:not(.is-active):hover {
    opacity: 1;
}

.typing-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
}

.typing-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--bufs-yellow);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

.typing-text {
    font-size: calc(14px * var(--ai-font-scale));
    font-weight: 600;
}

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

.composer-chat {
    margin: 0 16px 16px;
    width: calc(100% - 32px);
}

.official-visual {
    height: min(900px, calc(100vh - 64px));
}

.official-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0.28));
    pointer-events: none;
}

.visual-copy {
    position: absolute;
    z-index: 6;
    left: max(56px, calc((100vw - 1440px) / 2 + 56px));
    bottom: 132px;
    color: #fff;
}

.visual-copy p {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 800;
    color: var(--bufs-yellow);
}

.visual-copy h1 {
    margin: 0;
    font-size: 64px;
    line-height: 1.08;
    font-weight: 900;
}

.quick-strip {
    position: relative;
    z-index: 8;
    max-width: 1280px;
    margin: -58px auto 90px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-radius: 0;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.quick-strip a {
    min-height: 116px;
    padding: 24px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: 800;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.quick-strip a:hover {
    background: var(--bufs-yellow);
    color: #111827;
}

.main-section {
    max-width: 1440px;
    margin: 0 auto 110px;
    padding: 0 48px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.section-head p {
    margin: 0 0 8px;
    color: #173b88;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.section-head h2 {
    margin: 0;
    font-size: 42px;
    font-weight: 900;
}

.voice-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.8fr;
    gap: 24px;
}

.voice-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.voice-card img,
.program-grid img,
.post-grid img {
    width: 100%;
    display: block;
    aspect-ratio: 1.25;
    object-fit: cover;
}

.voice-card h3,
.program-grid h3,
.post-grid h3 {
    margin: 0;
    padding: 18px 20px 22px;
    font-size: 20px;
    line-height: 1.35;
    word-break: keep-all;
}

.main-news {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
}

.main-news img {
    height: 100%;
    aspect-ratio: auto;
}

.main-news div {
    padding: 36px;
}

.main-news span {
    color: #173b88;
    font-weight: 900;
}

.main-news h3 {
    padding: 16px 0 18px;
    font-size: 30px;
}

.main-news p {
    margin: 0;
    color: #4b5563;
    line-height: 1.65;
}

.notice-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.notice-column {
    padding: 30px;
    background: #fff;
    border-top: 4px solid #111827;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.notice-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.notice-title-row h2 {
    margin: 0;
    font-size: 26px;
}

.notice-title-row a {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.notice-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-column li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
    align-items: center;
}

.notice-column li:last-child {
    border-bottom: 0;
}

.notice-column li a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 650;
}

.notice-column li span {
    color: #6b7280;
    font-size: 14px;
}

.beyond-section {
    margin: 0 0 110px;
    background: #10234f url("https://www.bufs.ac.kr/data/file/site_main.png") center / cover no-repeat;
    color: #fff;
}

.beyond-inner {
    max-width: 1440px;
    min-height: 430px;
    margin: 0 auto;
    padding: 86px 48px;
}

.beyond-inner p {
    margin: 0 0 14px;
    color: var(--bufs-yellow);
    font-weight: 900;
    font-size: 22px;
}

.beyond-inner h2 {
    margin: 0 0 28px;
    font-size: 48px;
    font-weight: 900;
}

.beyond-inner div {
    max-width: 680px;
    line-height: 1.8;
    font-size: 18px;
}

.beyond-links {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.beyond-links a {
    padding: 13px 20px;
    background: #fff;
    color: #111827;
    font-weight: 800;
}

.program-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.program-grid article,
.post-grid article {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.post-grid img {
    aspect-ratio: 1;
}

@media (max-width: 900px) {
    .bufs-header-inner {
        padding: 0 20px;
    }

    .bufs-nav {
        display: none;
    }

    .main-visual {
        min-height: 520px;
    }

    .quick-section {
        grid-template-columns: 1fr;
        margin-top: 24px;
        padding: 0 20px 60px;
    }

    .ai-navigator {
        right: 16px;
        bottom: 18px;
        top: auto;
        transform: none;
    }

    .ai-navigator.is-positioned {
        right: auto;
        bottom: auto;
    }

    .ai-nav-button {
        min-width: 64px;
        width: 64px;
        height: 64px;
        padding: 9px;
        border-radius: 50%;
    }

    .ai-nav-button:hover,
    .ai-nav-button:focus-visible {
        width: 64px;
        transform: translateY(-3px);
    }

    .ai-nav-text {
        display: none;
    }

    .ai-nav-icon {
        width: 46px;
        height: 46px;
    }

    .ai-chat-window {
        width: 100vw;
    }

    .ai-chat-tools {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .font-slider-control {
        order: 1;
        min-width: 0;
    }

    .ai-chat-tools button {
        order: 2;
    }

    .visual-copy {
        left: 24px;
        right: 24px;
        bottom: 84px;
    }

    .visual-copy h1 {
        font-size: 38px;
    }

    .quick-strip {
        grid-template-columns: 1fr;
        margin: 0 20px 64px;
    }

    .quick-strip a {
        min-height: 66px;
    }

    .main-section {
        padding: 0 20px;
        margin-bottom: 72px;
    }

    .section-head {
        display: block;
    }

    .section-head h2,
    .beyond-inner h2 {
        font-size: 32px;
    }

    .voice-grid,
    .main-news,
    .notice-board,
    .program-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .beyond-inner {
        padding: 64px 20px;
    }
}

/* Uni-help final overrides must stay after legacy sample styles. */
body.uni-help-chat-page {
    width: 100%;
    height: var(--app-vh, 100vh);
    overflow: hidden;
    background: #eaf2fb;
}

.uni-help-chat-page .ai-navigator {
    display: none;
}

.uni-help-chat-page .proposal-download {
    position: fixed;
    z-index: 140;
    top: 46px;
    right: 46px;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 28px;
    border-radius: 999px;
    background: #536bc8;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(83, 107, 200, 0.28);
}

.uni-help-chat-page.is-chat-view .proposal-download {
    display: none;
}

.uni-help-chat-page .proposal-download svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.uni-help-chat-page .ai-chat-panel,
.uni-help-chat-page .ai-chat-panel.is-open {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    background: transparent;
    backdrop-filter: none;
}

.uni-help-chat-page .ai-chat-window {
    width: 100vw;
    height: var(--app-vh, 100vh);
    background: #eaf2fb;
    box-shadow: none;
    animation: none;
}

.uni-help-chat-page .ai-chat-header {
    min-height: 86px;
    padding: 0 30px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #536bc8;
    border: 0;
}

.uni-help-chat-page.is-home-view .ai-chat-header {
    display: none;
}

.uni-help-chat-page .ai-chat-brand {
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.uni-help-chat-page .brand-logo {
    display: block;
    width: 178px;
    height: auto;
}

.uni-help-chat-page .ai-chat-tools {
    width: auto;
    justify-content: flex-end;
    gap: 14px;
}

.uni-help-chat-page .ai-chat-tools button,
.uni-help-chat-page .chat-tts-toggle {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.uni-help-chat-page .chat-tts-toggle.is-on,
.uni-help-chat-page .chat-tts-toggle.is-off {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
    border: 0;
}

.uni-help-chat-page .font-slider-control {
    height: 42px;
    min-width: 196px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
    gap: 10px;
}

.uni-help-chat-page .font-slider-control input {
    width: 98px;
    accent-color: #7e90dd;
}

.uni-help-chat-page .font-slider-small {
    font-size: 18px;
}

.uni-help-chat-page .font-slider-large {
    font-size: 30px;
}

.uni-help-chat-page .notice-popup {
    top: 96px;
    left: auto;
    right: 34px;
    width: min(460px, calc(100vw - 36px));
}

.uni-help-chat-page .home-view,
.uni-help-chat-page .chat-view {
    position: relative;
    width: 100vw;
    height: var(--app-vh, 100vh);
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.uni-help-chat-page .home-view.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf2fb;
}

.uni-help-chat-page .home-center {
    width: min(1060px, calc(100vw - 48px));
    margin-top: -34px;
    text-align: center;
}

.uni-help-chat-page .home-logo {
    display: block;
    width: min(670px, 70vw);
    height: auto;
    margin: 0 auto 38px;
}

.uni-help-chat-page .home-view h1 {
    margin: 0 0 66px;
    color: #1f3f99;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0;
}

.uni-help-chat-page .composer {
    border: 0;
    box-shadow: none;
}

.uni-help-chat-page .home-composer {
    width: min(900px, calc(100vw - 64px));
    min-height: 86px;
    margin: 0 auto;
    padding: 23px 92px 23px 44px;
    border-radius: 999px;
    background: #fff;
}

.uni-help-chat-page .home-composer textarea {
    min-height: 40px;
    max-height: 40px;
    color: #243044;
    font-size: 22px;
    line-height: 1.8;
    overflow: hidden;
}

.uni-help-chat-page .home-composer textarea::placeholder,
.uni-help-chat-page .composer-chat textarea::placeholder {
    color: #9da6b4;
}

.uni-help-chat-page .composer-actions {
    right: 16px;
    bottom: 14px;
}

.uni-help-chat-page .btn-primary {
    width: 58px;
    height: 58px;
    background: #132f91;
    color: #fff;
    border-radius: 50%;
}

.uni-help-chat-page .btn-primary svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.uni-help-chat-page .btn-primary:disabled {
    opacity: 0.34;
}

.uni-help-chat-page .chip-group {
    justify-content: center;
    gap: 28px;
    margin-top: 34px;
}

.uni-help-chat-page .chip {
    min-height: 58px;
    padding: 0 22px;
    border: 2px solid rgba(83, 107, 200, 0.42);
    border-radius: 999px;
    background: transparent;
    color: #3f5db9;
    font-size: 20px;
    font-weight: 500;
}

.uni-help-chat-page .chat-view.is-active {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 14px 14px, rgba(83, 107, 200, 0.045) 0 4px, transparent 5px) 0 0 / 46px 46px,
        #f8faff;
}

.uni-help-chat-page .message-list {
    width: min(1320px, calc(100vw - 56px));
    margin: 0 auto;
    padding: 64px 0 36px;
    gap: 46px;
}

.uni-help-chat-page .message {
    gap: 16px;
}

.uni-help-chat-page .message-content {
    max-width: min(860px, 72vw);
}

.uni-help-chat-page .message.user .message-content {
    max-width: min(560px, 54vw);
}

.uni-help-chat-page .ai-avatar.message-icon {
    width: 84px;
    height: 84px;
    margin-top: 0;
}

.uni-help-chat-page .message.assistant .bubble {
    padding: 30px 34px;
    border: 0;
    border-radius: 24px;
    background: #fff;
    color: #1d2a3b;
    box-shadow: 0 16px 44px rgba(28, 39, 64, 0.08);
    font-size: calc(22px * var(--ai-font-scale));
    line-height: 1.78;
}

.uni-help-chat-page .message.user .bubble {
    padding: 18px 28px;
    border-radius: 999px;
    background: #536bc8;
    color: #fff;
    box-shadow: 0 14px 30px rgba(83, 107, 200, 0.25);
    font-size: calc(23px * var(--ai-font-scale));
    line-height: 1.35;
}

.uni-help-chat-page .message-actions {
    gap: 16px;
    margin-top: 22px;
}

.uni-help-chat-page .message-actions button,
.uni-help-chat-page .message-actions .copy-button,
.uni-help-chat-page .message-actions .message-action-button,
.uni-help-chat-page .message-actions .feedback-button {
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8aa0ba;
    box-shadow: none;
}

.uni-help-chat-page .message-actions button:hover,
.uni-help-chat-page .message-actions .feedback-button.is-active,
.uni-help-chat-page .message-actions .message-action-button.is-playing {
    background: transparent;
    color: #536bc8;
    box-shadow: none;
}

.uni-help-chat-page .typing-bubble {
    padding: 16px 22px;
    border-radius: 18px;
    color: #8a94a4;
}

.uni-help-chat-page .typing-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(83, 107, 200, 0.14);
    border-top-color: #536bc8;
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

.uni-help-chat-page .composer-chat {
    flex: 0 0 auto;
    width: min(1200px, calc(100vw - 56px));
    min-height: 178px;
    margin: 0 auto 42px;
    padding: 22px 76px 22px 20px;
    border: 1px solid #d6dce8;
    border-radius: 17px;
    background: #fff;
    box-shadow: none;
}

.uni-help-chat-page .composer-chat textarea {
    min-height: 130px;
    max-height: 130px;
    color: #243044;
    font-size: 20px;
    line-height: 1.55;
}

.uni-help-chat-page .composer-chat .composer-actions {
    right: 18px;
    bottom: 18px;
}

.uni-help-chat-page .composer-chat .btn-primary {
    width: 46px;
    height: 46px;
    background: #aeb9d7;
}

.uni-help-chat-page .composer-chat .btn-primary:not(:disabled) {
    background: #536bc8;
}

@media (max-width: 900px) {
    .uni-help-chat-page .proposal-download {
        top: 18px;
        right: 18px;
        min-height: 44px;
        padding: 0 16px;
        font-size: 15px;
    }

    .uni-help-chat-page .home-center {
        width: calc(100vw - 28px);
        margin-top: 0;
    }

    .uni-help-chat-page .home-logo {
        width: min(380px, 82vw);
        margin-bottom: 24px;
    }

    .uni-help-chat-page .home-view h1 {
        margin-bottom: 34px;
        font-size: 24px;
    }

    .uni-help-chat-page .home-composer {
        width: 100%;
        min-height: 64px;
        padding: 15px 70px 15px 24px;
    }

    .uni-help-chat-page .home-composer textarea {
        font-size: 16px;
    }

    .uni-help-chat-page .btn-primary {
        width: 46px;
        height: 46px;
    }

    .uni-help-chat-page .chip-group {
        gap: 10px;
    }

    .uni-help-chat-page .chip {
        min-height: 40px;
        padding: 0 14px;
        font-size: 14px;
    }

    .uni-help-chat-page .ai-chat-header {
        min-height: 62px;
        padding: 0 12px;
    }

    .uni-help-chat-page .brand-logo {
        width: 124px;
    }

    .uni-help-chat-page .font-slider-control {
        display: none;
    }

    .uni-help-chat-page .ai-chat-tools {
        gap: 8px;
    }

    .uni-help-chat-page .ai-chat-tools button,
    .uni-help-chat-page .chat-tts-toggle {
        width: 38px;
        height: 38px;
    }

    .uni-help-chat-page .message-list {
        width: calc(100vw - 28px);
        padding-top: 28px;
        gap: 24px;
    }

    .uni-help-chat-page .ai-avatar.message-icon {
        width: 46px;
        height: 46px;
    }

    .uni-help-chat-page .message-content,
    .uni-help-chat-page .message.user .message-content {
        max-width: calc(100vw - 92px);
    }

    .uni-help-chat-page .message.assistant .bubble {
        padding: 18px 20px;
        font-size: calc(15px * var(--ai-font-scale));
    }

    .uni-help-chat-page .message.user .bubble {
        padding: 12px 16px;
        font-size: calc(15px * var(--ai-font-scale));
    }

    .uni-help-chat-page .composer-chat {
        width: calc(100vw - 28px);
        min-height: 112px;
        margin-bottom: 18px;
    }

    .uni-help-chat-page .composer-chat textarea {
        min-height: 72px;
        max-height: 72px;
        font-size: 15px;
    }
}

/* Uni-help compact sizing and no-visible-scroll chat layout */
.uni-help-chat-page .proposal-download {
    top: 32px;
    right: 32px;
    min-height: 46px;
    gap: 10px;
    padding: 0 20px;
    font-size: 16px;
}

.uni-help-chat-page .proposal-download svg {
    width: 19px;
    height: 19px;
}

.uni-help-chat-page .ai-chat-header {
    min-height: 60px;
    padding: 0 22px;
}

.uni-help-chat-page .brand-logo {
    width: 132px;
}

.uni-help-chat-page .ai-chat-tools {
    gap: 8px;
}

.uni-help-chat-page .ai-chat-tools button,
.uni-help-chat-page .chat-tts-toggle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.uni-help-chat-page .font-slider-control {
    height: 32px;
    min-width: 142px;
    padding: 0 10px;
}

.uni-help-chat-page .font-slider-control input {
    width: 72px;
}

.uni-help-chat-page .font-slider-small {
    font-size: 13px;
}

.uni-help-chat-page .font-slider-large {
    font-size: 20px;
}

.uni-help-chat-page .ai-chat-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.uni-help-chat-page .home-view,
.uni-help-chat-page .chat-view {
    height: 100%;
}

.uni-help-chat-page .home-center {
    width: min(820px, calc(100vw - 48px));
    margin-top: -22px;
}

.uni-help-chat-page .home-logo {
    width: min(430px, 56vw);
    margin-bottom: 22px;
}

.uni-help-chat-page .home-view h1 {
    margin-bottom: 34px;
    font-size: 24px;
}

.uni-help-chat-page .home-composer {
    width: min(640px, calc(100vw - 64px));
    min-height: 58px;
    padding: 13px 64px 13px 26px;
}

.uni-help-chat-page .home-composer textarea {
    min-height: 32px;
    max-height: 32px;
    font-size: 16px;
    line-height: 1.9;
}

.uni-help-chat-page .btn-primary {
    width: 40px;
    height: 40px;
}

.uni-help-chat-page .btn-primary svg {
    width: 22px;
    height: 22px;
}

.uni-help-chat-page .composer-actions {
    right: 10px;
    bottom: 9px;
}

.uni-help-chat-page .chip-group {
    gap: 12px;
    margin-top: 22px;
}

.uni-help-chat-page .chip {
    min-height: 38px;
    padding: 0 15px;
    font-size: 14px;
    border-width: 1px;
}

.uni-help-chat-page .message-list {
    flex: 1;
    width: min(1040px, calc(100vw - 56px));
    min-height: 0;
    padding: 34px 0 18px;
    gap: 24px;
    overflow-y: auto;
    scrollbar-width: none;
}

.uni-help-chat-page .message-list::-webkit-scrollbar {
    display: none;
}

.uni-help-chat-page .message-content {
    max-width: min(680px, 68vw);
}

.uni-help-chat-page .message.user .message-content {
    max-width: min(500px, 52vw);
}

.uni-help-chat-page .ai-avatar.message-icon {
    width: 54px;
    height: 54px;
}

.uni-help-chat-page .message.assistant .bubble {
    padding: 20px 24px;
    border-radius: 18px;
    font-size: calc(16px * var(--ai-font-scale));
    line-height: 1.65;
}

.uni-help-chat-page .message.user .bubble {
    padding: 12px 20px;
    font-size: calc(16px * var(--ai-font-scale));
}

.uni-help-chat-page .message-actions {
    gap: 10px;
    margin-top: 12px;
}

.uni-help-chat-page .message-actions button,
.uni-help-chat-page .message-actions .copy-button,
.uni-help-chat-page .message-actions .message-action-button,
.uni-help-chat-page .message-actions .feedback-button {
    width: 24px;
    min-width: 24px;
    height: 24px;
}

.uni-help-chat-page .composer-chat {
    width: min(780px, calc(100vw - 56px));
    min-height: 94px;
    margin-bottom: 24px;
    padding: 14px 58px 14px 16px;
}

.uni-help-chat-page .composer-chat textarea {
    min-height: 60px;
    max-height: 60px;
    font-size: 15px;
}

.uni-help-chat-page .composer-chat .composer-actions {
    right: 12px;
    bottom: 12px;
}

.uni-help-chat-page .composer-chat .btn-primary {
    width: 34px;
    height: 34px;
}

/* 75% visual scale pass */
.uni-help-chat-page .proposal-download {
    top: 24px;
    right: 24px;
    min-height: 35px;
    gap: 8px;
    padding: 0 15px;
    font-size: 12px;
}

.uni-help-chat-page .proposal-download svg {
    width: 14px;
    height: 14px;
}

.uni-help-chat-page .ai-chat-header {
    min-height: 45px;
    padding: 0 17px;
}

.uni-help-chat-page .brand-logo {
    width: 99px;
}

.uni-help-chat-page .ai-chat-tools {
    gap: 6px;
}

.uni-help-chat-page .ai-chat-tools button,
.uni-help-chat-page .chat-tts-toggle {
    width: 26px;
    height: 26px;
    border-radius: 8px;
}

.uni-help-chat-page .chat-tts-toggle svg {
    width: 13px;
    height: 13px;
}

.uni-help-chat-page .font-slider-control {
    height: 24px;
    min-width: 107px;
    padding: 0 8px;
    gap: 6px;
}

.uni-help-chat-page .font-slider-control input {
    width: 54px;
}

.uni-help-chat-page .font-slider-small {
    font-size: 10px;
}

.uni-help-chat-page .font-slider-large {
    font-size: 15px;
}

.uni-help-chat-page .home-center {
    width: min(615px, calc(100vw - 48px));
    margin-top: -16px;
}

.uni-help-chat-page .home-logo {
    width: min(323px, 50vw);
    margin-bottom: 17px;
}

.uni-help-chat-page .home-view h1 {
    margin-bottom: 26px;
    font-size: 18px;
}

.uni-help-chat-page .home-composer {
    width: min(480px, calc(100vw - 64px));
    min-height: 44px;
    padding: 10px 48px 10px 20px;
}

.uni-help-chat-page .home-composer textarea {
    min-height: 24px;
    max-height: 24px;
    font-size: 12px;
    line-height: 2;
}

.uni-help-chat-page .btn-primary {
    width: 30px;
    height: 30px;
}

.uni-help-chat-page .btn-primary svg {
    width: 17px;
    height: 17px;
}

.uni-help-chat-page .composer-actions {
    right: 8px;
    bottom: 7px;
}

.uni-help-chat-page .chip-group {
    gap: 9px;
    margin-top: 17px;
}

.uni-help-chat-page .chip {
    min-height: 29px;
    padding: 0 12px;
    font-size: 11px;
}

.uni-help-chat-page .message-list {
    width: min(780px, calc(100vw - 56px));
    padding: 26px 0 14px;
    gap: 18px;
}

.uni-help-chat-page .message {
    gap: 12px;
}

.uni-help-chat-page .message-content {
    max-width: min(510px, 66vw);
}

.uni-help-chat-page .message.user .message-content {
    max-width: min(375px, 50vw);
}

.uni-help-chat-page .ai-avatar.message-icon {
    width: 41px;
    height: 41px;
}

.uni-help-chat-page .message.assistant .bubble {
    padding: 15px 18px;
    border-radius: 14px;
    font-size: calc(12px * var(--ai-font-scale));
}

.uni-help-chat-page .message.user .bubble {
    padding: 9px 15px;
    font-size: calc(12px * var(--ai-font-scale));
}

.uni-help-chat-page .message-actions {
    gap: 8px;
    margin-top: 9px;
}

.uni-help-chat-page .message-actions button,
.uni-help-chat-page .message-actions .copy-button,
.uni-help-chat-page .message-actions .message-action-button,
.uni-help-chat-page .message-actions .feedback-button {
    width: 18px;
    min-width: 18px;
    height: 18px;
}

.uni-help-chat-page .message-actions .copy-button svg,
.uni-help-chat-page .message-actions .message-action-button svg {
    width: 13px;
    height: 13px;
}

.uni-help-chat-page .message-actions .feedback-button {
    font-size: 13px;
}

.uni-help-chat-page .composer-chat {
    width: min(585px, calc(100vw - 56px));
    min-height: 71px;
    margin-bottom: 18px;
    padding: 11px 44px 11px 12px;
    border-radius: 13px;
}

.uni-help-chat-page .composer-chat textarea {
    min-height: 45px;
    max-height: 45px;
    font-size: 12px;
}

.uni-help-chat-page .composer-chat .composer-actions {
    right: 9px;
    bottom: 9px;
}

.uni-help-chat-page .composer-chat .btn-primary {
    width: 26px;
    height: 26px;
}

/* Uni-help chat width and voice/feedback control polish */
.uni-help-chat-page {
    --uni-chat-column-width: min(858px, calc(100vw - 56px));
}

.uni-help-chat-page .message-list,
.uni-help-chat-page .composer-chat {
    width: var(--uni-chat-column-width);
}

.uni-help-chat-page .message-content {
    max-width: min(590px, calc(100vw - 128px));
}

.uni-help-chat-page .message.user .message-content {
    max-width: min(440px, calc(100vw - 88px));
}

.uni-help-chat-page .home-composer,
.uni-help-chat-page .composer-chat {
    padding-right: 82px;
}

.uni-help-chat-page .composer-actions,
.uni-help-chat-page .composer-chat .composer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    right: 9px;
}

.uni-help-chat-page .btn-voice,
.uni-help-chat-page .composer-chat .btn-voice {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(83, 107, 200, 0.26);
    border-radius: 50%;
    background: #fff;
    color: #536bc8;
    display: grid;
    place-items: center;
}

.uni-help-chat-page .btn-voice svg,
.uni-help-chat-page .composer-chat .btn-voice svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.uni-help-chat-page .btn-voice:hover {
    border-color: rgba(83, 107, 200, 0.55);
    color: #3f55ad;
}

.uni-help-chat-page .btn-voice.is-listening {
    background: #536bc8;
    border-color: #536bc8;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(83, 107, 200, 0.18);
}

.uni-help-chat-page .message-actions button,
.uni-help-chat-page .message-actions .copy-button,
.uni-help-chat-page .message-actions .message-action-button,
.uni-help-chat-page .message-actions .feedback-button {
    width: 22px;
    min-width: 22px;
    height: 22px;
}

.uni-help-chat-page .message-actions .copy-button svg,
.uni-help-chat-page .message-actions .message-action-button svg {
    width: 14px;
    height: 14px;
}

.uni-help-chat-page .message-actions .feedback-button {
    font-size: 15px;
    line-height: 1;
}

.uni-help-chat-page .message-actions .feedback-button span {
    transform: translateY(0);
}

/* Uni-help top actions and inquiry page */
.uni-help-chat-page .top-actions {
    position: fixed;
    z-index: 140;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.uni-help-chat-page.is-chat-view .top-actions {
    display: none;
}

.uni-help-chat-page .top-actions .proposal-download,
.uni-help-chat-page .top-actions .inquiry-link,
.uni-help-chat-page .top-actions .language-switch-link {
    position: static;
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(83, 107, 200, 0.18);
}

.uni-help-chat-page .top-actions .proposal-download {
    background: #536bc8;
    color: #fff;
}

.uni-help-chat-page .top-actions .inquiry-link {
    border: 1px solid rgba(83, 107, 200, 0.24);
    background: #fff;
    color: #536bc8;
}

.uni-help-chat-page .top-actions .language-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid rgba(83, 107, 200, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 12px 28px rgba(83, 107, 200, 0.12);
}

.uni-help-chat-page .top-actions .language-switch-link {
    min-width: 36px;
    min-height: 31px;
    padding: 0 10px;
    box-shadow: none;
    color: #536bc8;
}

.uni-help-chat-page .top-actions .language-switch-link.is-active {
    background: #536bc8;
    color: #fff;
}

.uni-help-chat-page .top-actions .proposal-download svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.uni-help-inquiry-page {
    min-height: 100vh;
    margin: 0;
    background: #eaf2fb;
    color: #111827;
    font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.inquiry-shell {
    width: min(760px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 34px 0 56px;
}

.inquiry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 34px;
}

.inquiry-logo-link {
    display: inline-flex;
    align-items: center;
}

.inquiry-logo-link img {
    width: 180px;
    height: auto;
    display: block;
}

.inquiry-back-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(83, 107, 200, 0.24);
    border-radius: 999px;
    background: #fff;
    color: #536bc8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.inquiry-panel {
    padding: 34px;
    border: 1px solid rgba(83, 107, 200, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 70px rgba(31, 43, 91, 0.12);
}

.inquiry-title-block {
    margin-bottom: 24px;
}

.inquiry-title-block p {
    margin: 0 0 6px;
    color: #536bc8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.inquiry-title-block h1 {
    margin: 0;
    color: #1f2b5b;
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: 0;
}

.inquiry-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.inquiry-alert-success {
    border: 1px solid #bfe7d0;
    background: #f1fff7;
    color: #167444;
}

.inquiry-alert-error {
    border: 1px solid #ffc9c9;
    background: #fff4f4;
    color: #b42318;
}

.inquiry-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.inquiry-field {
    display: grid;
    gap: 7px;
}

.inquiry-field-full,
.inquiry-actions {
    grid-column: 1 / -1;
}

.inquiry-field label {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.inquiry-field .inquiry-required {
    color: #e11d48;
    font-size: 12px;
    font-weight: 900;
}

.inquiry-field input,
.inquiry-field textarea {
    width: 100%;
    border: 1px solid #d9e1ef;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.inquiry-field input {
    height: 44px;
    padding: 0 14px;
}

.inquiry-field textarea {
    min-height: 160px;
    padding: 13px 14px;
    resize: vertical;
}

.inquiry-field input:focus,
.inquiry-field textarea:focus {
    border-color: #536bc8;
    box-shadow: 0 0 0 3px rgba(83, 107, 200, 0.12);
}

.inquiry-field .inquiry-field-error {
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
}

.inquiry-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.inquiry-actions button {
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #536bc8;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 640px) {
    .uni-help-chat-page .top-actions {
        top: 14px;
        right: 14px;
        left: 14px;
        justify-content: flex-end;
        gap: 6px;
    }

    .uni-help-chat-page .top-actions .proposal-download,
    .uni-help-chat-page .top-actions .inquiry-link,
    .uni-help-chat-page .top-actions .language-switch-link {
        min-height: 32px;
        padding: 0 11px;
        font-size: 11px;
    }

    .uni-help-chat-page .top-actions .language-switch-link {
        min-width: 32px;
        min-height: 28px;
        padding: 0 8px;
    }

    .inquiry-shell {
        width: min(100% - 28px, 760px);
        padding: 24px 0 40px;
    }

    .inquiry-logo-link img {
        width: 142px;
    }

    .inquiry-panel {
        padding: 22px;
        border-radius: 14px;
    }

    .inquiry-title-block h1 {
        font-size: 22px;
    }

    .inquiry-form {
        grid-template-columns: 1fr;
    }
}
