.gb-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
    background: #f4f1ea;
    color: #1c1b19;
}
.gb-body--app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #f0f1f3;
    color: #191919;
}
.gb-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}
.gb-kicker {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #1f4d3a;
}
.gb-title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}
.gb-lead {
    margin: 0 0 24px;
    color: #4b4a47;
    line-height: 1.55;
}
.gb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.gb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #1f4d3a;
    background: #1f4d3a;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.gb-btn:disabled {
    opacity: 0.5;
    cursor: default;
}
.gb-btn--ghost {
    background: transparent;
    color: #1f4d3a;
}
.gb-note {
    font-size: 13px;
    color: #6b6964;
    line-height: 1.5;
}
.gb-card {
    background: #fff;
    border: 1px solid #e4e0d6;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}
.gb-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #e4e0d6;
    background: #fff;
}
.gb-body--app .gb-top {
    background: #f0f1f3;
    border-bottom: none;
    padding: 8px 12px 6px;
    align-items: flex-start;
    -webkit-app-region: drag;
    app-region: drag;
}
.gb-body--app .gb-top button,
.gb-body--app .gb-top a,
.gb-body--app .gb-top-actions {
    -webkit-app-region: no-drag;
    app-region: no-drag;
}
@media (display-mode: window-controls-overlay) {
    .gb-body--app .gb-top {
        padding-top: max(8px, env(titlebar-area-y, 0px));
        padding-left: max(12px, env(titlebar-area-x, 0px));
        min-height: env(titlebar-area-height, 40px);
        padding-right: calc(12px + (100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px)));
    }
}
@media (display-mode: borderless) {
    .gb-body--app .gb-top {
        padding-right: 120px;
    }
}
.gb-top-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.gb-body--app .gb-top-title strong {
    font-size: 16px;
    font-weight: 700;
}
.gb-top a,
.gb-top button.gb-btn--ghost {
    color: #1f4d3a;
    text-decoration: none;
    font-weight: 600;
}
.gb-body--app .gb-top .gb-btn--ghost {
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    font-size: 13px;
}
.gb-top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.gb-chat {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 16px 20px;
}
.gb-body--app .gb-chat {
    background: #f0f1f3;
    padding: 8px 12px 12px;
}
.gb-bubble {
    max-width: 90%;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    line-height: 1.45;
    white-space: pre-wrap;
}
.gb-body--app .gb-bubble {
    max-width: 78%;
    font-size: 15px;
    padding: 9px 12px;
    margin-bottom: 6px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.gb-bubble--bot {
    background: #fff;
    border: 1px solid #e4e0d6;
}
.gb-body--app .gb-bubble--bot {
    border: 0;
    border-radius: 16px 16px 16px 4px;
}
.gb-bubble--user {
    margin-left: auto;
    background: #1f4d3a;
    color: #fff;
}
.gb-body--app .gb-bubble--user {
    border-radius: 16px 16px 4px 16px;
}
.gb-typing {
    width: 88px;
    height: 4px;
    margin: 2px 0 10px;
    border-radius: 999px;
    background: rgba(31, 77, 58, 0.16);
    overflow: hidden;
}
.gb-typing-bar {
    display: block;
    height: 100%;
    width: 36%;
    border-radius: inherit;
    background: #1f4d3a;
    animation: gb-load 1.05s ease-in-out infinite;
}
@keyframes gb-load {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}
.gb-footer {
    flex: 0 0 auto;
    background: #fff;
    border-top: 1px solid #e4e0d6;
    padding: 10px 0 calc(12px + env(safe-area-inset-bottom, 0px));
}
.gb-body--app .gb-footer {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
}
.gb-composer {
    display: flex;
    gap: 8px;
    padding: 8px 20px 0;
}
.gb-body--app .gb-composer {
    align-items: center;
    padding: 4px 10px 0 12px;
}
.gb-composer input {
    flex: 1;
    min-height: 44px;
    border: 1px solid #d5d0c4;
    border-radius: 8px;
    padding: 0 12px;
}
.gb-body--app .gb-composer input {
    min-height: 36px;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 8px 4px;
    font-size: 15px;
    outline: none;
}
.gb-send {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #1f4d3a;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.gb-send:disabled {
    color: #b5b5b5;
    cursor: default;
}
.gb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 8px;
}
.gb-body--app .gb-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 12px 6px;
    scrollbar-width: none;
}
.gb-body--app .gb-chips::-webkit-scrollbar {
    display: none;
}
.gb-footer-note {
    margin: 8px 20px 0;
}
.gb-footer-install {
    margin: 8px 20px 0;
}
.gb-chip {
    border: 1px solid #d5d0c4;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
}
.gb-body--app .gb-chip {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 7px 12px;
    border-color: #ddd;
}
.gb-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 6px;
}
.gb-form input[type="email"],
.gb-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    border: 1px solid #d5d0c4;
    border-radius: 8px;
    padding: 0 12px;
}
.gb-alert {
    display: none;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8e8e8;
    color: #7a1f1f;
    font-size: 14px;
}
.gb-alert.is-on { display: block; }
.gb-offline__main {
    max-width: 480px;
    margin: 12vh auto;
    padding: 0 20px;
}
.gb-session-note {
    margin: 0;
    padding: 8px 20px 0;
    font-size: 12px;
    color: #6b6964;
}
.gb-body--app .gb-session-note {
    padding: 0;
    font-size: 11px;
    line-height: 1.35;
    color: #6b6e73;
}
@media (display-mode: standalone) {
    .gb-install-only { display: none !important; }
}
