body,form,figure{margin:0;padding:0}img{border:0}header,footer,nav,section,aside,article,figure,figcaption{display:block}body{font-size:100.01%}select,input,textarea{font-size:99%}#container,.inside{position:relative}#main,#left,#right{float:left;position:relative}#main{width:100%}#left{margin-left:-100%}#right{margin-right:-100%}#footer{clear:both}#main .inside{min-height:1px}.ce_gallery>ul,.content-gallery>ul{margin:0;padding:0;overflow:hidden;list-style:none}.ce_gallery>ul li,.content-gallery>ul li{float:left}.ce_gallery>ul li.col_first,.content-gallery>ul li.col_first{clear:left}.float_left,.media--left>figure{float:left}.float_right,.media--right>figure{float:right}.block{overflow:hidden}.media{display:flow-root}.clear,#clear{height:.1px;font-size:.1px;line-height:.1px;clear:both}.invisible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.custom{display:block}#container:after,.custom:after{content:"";display:table;clear:both}
@media (max-width:767px){#wrapper{margin:0;width:auto}#container{padding-left:0;padding-right:0}#main,#left,#right{float:none;width:auto}#left{right:0;margin-left:0}#right{margin-right:0}}img{max-width:100%;height:auto}.audio_container audio{max-width:100%}.video_container video{max-width:100%;height:auto}.aspect,.responsive{position:relative;height:0}.aspect iframe,.responsive iframe{position:absolute;top:0;left:0;width:100%;height:100%}.aspect--16\:9,.responsive.ratio-169{padding-bottom:56.25%}.aspect--16\:10,.responsive.ratio-1610{padding-bottom:62.5%}.aspect--21\:9,.responsive.ratio-219{padding-bottom:42.8571%}.aspect--4\:3,.responsive.ratio-43{padding-bottom:75%}.aspect--3\:2,.responsive.ratio-32{padding-bottom:66.6666%}.aspect--9\:16,.responsive.ratio-916{padding-bottom:177.7777%}.aspect--1\:1,.responsive.ratio-11{padding-bottom:100%}
:root {
    color-scheme: light;
    --bg: #f4f1ea;
    --surface: #fffaf0;
    --surface-strong: #ffffff;
    --ink: #211d19;
    --muted: #6e675e;
    --line: #d8d0c4;
    --accent: #28615f;
    --accent-dark: #173e3c;
    --answer: #eff6f4;
    --question: #283437;
    --shadow: 0 16px 42px rgba(50, 40, 25, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .48), rgba(255, 255, 255, 0)),
        var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
select,
textarea {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    place-items: stretch;
    padding: 0 24px;
}

.chat-panel {
    width: min(1120px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-rows: 1fr;
    overflow: visible;
    background: var(--surface);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-radius: 0;
    box-shadow: var(--shadow);
}

.topbar {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 50%;
    width: min(1120px, calc(100% - 48px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-strong);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent-dark);
    font-weight: 800;
    letter-spacing: .01em;
}

.brand-symbol {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: var(--accent);
    border-radius: 6px;
    font-size: 11px;
}

.brand-name {
    font-size: 15px;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}

.status-pill {
    min-width: 96px;
    padding: 8px 10px;
    color: var(--accent-dark);
    background: var(--answer);
    border: 1px solid #bfd7d2;
    border-radius: 999px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.controls {
    display: flex;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
}

.controls label {
    display: grid;
    gap: 6px;
    min-width: 160px;
}

.controls span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

select {
    height: 38px;
    padding: 0 34px 0 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.messages {
    min-height: 0;
    padding: 80px 24px 194px;
}

.message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 0 16px;
}

.message.user {
    align-items: flex-end;
}

.bubble {
    max-width: min(760px, 92%);
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
}

.message.user .bubble {
    color: #fff;
    background: var(--question);
    border-color: var(--question);
}

.message.assistant .bubble {
    background: var(--answer);
    border-color: #c5d9d5;
}

.bubble p {
    margin: 0;
    line-height: 1.45;
}

.answer-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 0 0 10px;
}

.answer-entity {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    color: var(--accent-dark);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.entity-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.entity-tooltip-button {
    width: 22px;
    height: 22px;
    padding: 0;
    color: var(--accent-dark);
    background: #fff;
    border: 1px solid #bfd7d2;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.entity-tooltip-panel {
    position: fixed;
    z-index: 20;
    top: 72px;
    right: max(24px, calc((100vw - 1120px) / 2 + 24px));
    display: none;
    width: min(380px, calc(100vw - 48px));
    max-height: calc(100vh - 224px);
    overflow: auto;
    padding: 14px;
    color: var(--ink);
    background: #fffdf7;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(50, 40, 25, .16);
}

.entity-tooltip.is-open .entity-tooltip-panel {
    display: block;
}

.entity-tooltip-title {
    display: block;
    margin: 0 32px 8px 0;
    color: var(--accent-dark);
    font-size: 14px;
}

.entity-tooltip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.entity-tooltip-close:hover {
    color: var(--accent-dark);
    background: var(--answer);
}

.entity-rule-card {
    display: grid;
    gap: 10px;
}

.ruleset-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 2px;
}

.ruleset-tab {
    padding: 4px 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(130, 120, 105, .28);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.ruleset-tab.is-active {
    color: var(--accent-dark);
    background: #fff;
    border-color: #bfd7d2;
}

.ruleset-tab:disabled {
    cursor: default;
    opacity: 1;
}

.entity-tooltip-list {
    display: grid;
    grid-template-columns: minmax(92px, auto) 1fr;
    gap: 6px 10px;
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
}

.entity-tooltip-list dt {
    color: var(--muted);
    font-weight: 700;
}

.entity-tooltip-list dd {
    margin: 0;
}

.entity-tooltip-description {
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(130, 120, 105, .22);
    color: var(--ink);
    font-size: 13px;
    line-height: 1.4;
}

.entity-table-notice {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 9px 10px;
    color: var(--accent-dark);
    background: rgba(255, 255, 255, .62);
    border: 1px solid #bfd7d2;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.35;
}

.entity-table-notice strong {
    font-size: 12px;
}

.entity-table-notice a {
    width: fit-content;
    margin-top: 2px;
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.message.assistant .bubble > .entity-rule-card {
    margin-top: 4px;
}

.message.assistant .bubble > .entity-rule-card.is-compact {
    display: block;
}

.message.assistant .bubble > .entity-rule-card.is-compact .entity-tooltip-description {
    max-width: 68ch;
    padding-top: 0;
    border-top: 0;
}

.message.assistant .bubble > .entity-rule-card .entity-tooltip-list {
    grid-template-columns: minmax(132px, auto) 1fr;
}

@media (min-width: 768px) {
    .message.assistant .bubble > .entity-rule-card {
        grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
        align-items: start;
        column-gap: 24px;
    }

    .message.assistant .bubble > .entity-rule-card .ruleset-tabs {
        grid-column: 1 / -1;
    }

    .message.assistant .bubble > .entity-rule-card .entity-tooltip-description {
        margin: 0;
        padding: 0 0 0 20px;
        border-top: 0;
        border-left: 1px solid rgba(130, 120, 105, .22);
    }

    .message.assistant .bubble > .entity-rule-card.is-compact .entity-tooltip-description {
        padding: 0;
        border-left: 0;
    }

    .message.assistant .bubble > .entity-rule-card .entity-table-notice {
        grid-column: 2;
        margin-left: 20px;
    }
}

.answer-text {
    color: var(--ink);
}

.answer-text.is-atomic {
    font-size: 18px;
    font-weight: 650;
}

.answer-text.is-summary {
    max-width: 68ch;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.5;
}

.meta {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.meta span {
    padding: 5px 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(130, 120, 105, .28);
    border-radius: 999px;
    font-size: 12px;
}

.meta .confidence {
    padding: 0;
    color: #3f7664;
    background: transparent;
    border: 0;
    border-radius: 0;
    opacity: .7;
    font-size: 11px;
    font-weight: 700;
}

.meta .confidence.is-medium {
    color: #9a741f;
}

.meta .confidence.is-low {
    color: #a0443f;
}

.message.assistant .answer-header .meta .confidence {
    margin-left: auto;
}

.source-list {
    margin: 18px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid rgba(130, 120, 105, .22);
    list-style: none;
    color: var(--muted);
    opacity: .7;
    font-size: 12px;
}

.source-list li + li {
    margin-top: 6px;
}

.source-list a {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.alternative-label {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    opacity: .58;
    text-transform: uppercase;
}

.message-alternatives {
    width: min(760px, 92%);
    margin: 6px 0 0;
    padding: 0 2px;
}

.alternative-suggestions {
    gap: 6px;
    margin-top: 0;
}

.alternative-suggestions .suggestion-button {
    padding: 4px 7px;
    color: rgba(19, 62, 61, .82);
    background: rgba(255, 255, 255, .54);
    border-color: rgba(130, 190, 181, .55);
    font-size: 11px;
    font-weight: 700;
}

.entity-list-suggestions {
    gap: 7px;
    margin-top: 10px;
}

.entity-list-suggestions .suggestion-button {
    padding: 5px 8px;
    font-size: 12px;
}

.suggestion-button {
    padding: 7px 10px;
    color: var(--accent-dark);
    background: #fff;
    border: 1px solid #bfd7d2;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.suggestion-button:hover {
    background: var(--answer);
}

.examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.examples button {
    padding: 7px 10px;
    color: var(--accent-dark);
    background: #fff;
    border: 1px solid #bfd7d2;
    border-radius: 6px;
    cursor: pointer;
}

.prompt-suggestions {
    position: fixed;
    z-index: 20;
    bottom: 128px;
    left: 50%;
    width: min(1120px, calc(100% - 48px));
    transform: translateX(-50%);
    margin: 0;
    padding: 0 24px;
    opacity: 1;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.prompt-suggestions.is-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
}

.prompt-suggestions button {
    padding: 6px 9px;
    background: rgba(239, 246, 244, .74);
    border-color: #bfd7d2;
    border-radius: 999px;
    font-size: 13px;
    pointer-events: auto;
    box-shadow: 0 6px 18px rgba(50, 40, 25, .06);
}

.composer {
    position: fixed;
    z-index: 30;
    bottom: 0;
    left: 50%;
    width: min(1120px, calc(100% - 48px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--line);
    background: var(--surface-strong);
}

.quick-settings {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    align-items: center;
}

.setting-menu {
    position: relative;
}

.setting-menu[open] {
    z-index: 45;
}

.setting-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 8px;
    color: var(--accent-dark);
    background: var(--answer);
    border: 1px solid #bfd7d2;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    list-style: none;
}

.setting-menu summary::-webkit-details-marker {
    display: none;
}

.setting-icon {
    display: inline-flex;
    width: 15px;
    height: 15px;
    color: var(--muted);
}

.setting-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.setting-menu label {
    position: absolute;
    z-index: 46;
    bottom: calc(100% + 8px);
    left: 0;
    display: grid;
    gap: 6px;
    min-width: 190px;
    padding: 10px;
    background: #fffdf7;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(50, 40, 25, .16);
}

.setting-menu label > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.composer-input {
    position: relative;
    display: block;
}

textarea {
    width: 100%;
    min-height: 44px;
    max-height: 160px;
    resize: none;
    padding: 12px 56px 12px 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    line-height: 1.35;
}

textarea:focus,
select:focus,
button:focus-visible {
    outline: 3px solid rgba(40, 97, 95, .22);
    outline-offset: 2px;
}

.composer-input button {
    position: absolute;
    right: 7px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.composer-input button span {
    display: block;
    transform: translateY(-1px);
    font-size: 13px;
    line-height: 1;
}

.composer-input button:disabled {
    cursor: wait;
    opacity: .68;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 720px) {
    .app-shell {
        padding: 0;
    }

    .chat-panel {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .topbar,
    .composer,
    .prompt-suggestions {
        width: 100%;
    }

    .topbar,
    .controls,
    .messages,
    .composer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .topbar {
        align-items: center;
        flex-direction: row;
    }

    .entity-tooltip-panel {
        top: 64px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 228px);
    }

    .prompt-suggestions {
        bottom: 134px;
    }

    .controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .controls label {
        min-width: 0;
    }

    .composer {
        grid-template-columns: 1fr;
    }
}

