*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --teal: #009e82;
    --teal-h: #007f69;
    --teal-lite: rgba(0, 158, 130, 0.10);
    --teal-bdr: rgba(0, 158, 130, 0.25);
    --teal-glow: rgba(0, 158, 130, 0.15);
    --bg: #eef2f7;
    --white: #ffffff;
    --surf: #f6f8fb;
    --surf2: #eef1f6;
    --border: #dde3ec;
    --text: #1c2536;
    --text2: #4a5568;
    --muted: #8896aa;
    --green: #15803d;
    --indigo: #4f46e5;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
}

#ost-chatbot-container {
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* subtle bg pattern */
#ost-chatbot-container::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(0, 158, 130, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ══ WIDGET ══ */
.widget {
    position: fixed;
    z-index: 9999;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    height: 600px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.10);
    animation: up .45s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* ══ HEADER ══ */
.hdr {
    height: 52px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
}

.hdr::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal) 0%, transparent 70%);
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.hdr-text {
    flex: 1;
}

.hdr-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    letter-spacing: 0.03em;
    line-height: 1;
}

.hdr-sub {
    font-size: 0.63rem;
    color: var(--muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 5px var(--teal);
    animation: blink 2.4s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    55% {
        opacity: .3
    }
}

.hbtn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s;
}

.hbtn:hover {
    background: var(--surf2);
    color: var(--text2);
}

/* ══ CONFIG ══ */
.cfg {
    display: none;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surf);
    flex-shrink: 0;
}

.cfg.open {
    display: block;
}

.cfg-lbl {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--teal);
    margin-bottom: 6px;
}

.cfg-ta {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    padding: 8px;
    resize: vertical;
    min-height: 80px;
    outline: none;
}

.cfg-ta:focus {
    border-color: var(--teal-bdr);
}

.cfg-save {
    margin-top: 7px;
    padding: 5px 14px;
    background: var(--teal);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
}

.cfg-save:hover {
    background: var(--teal-h);
}

/* ══ MESSAGES ══ */
.msgs {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--white);
}

.msgs::-webkit-scrollbar {
    width: 3px;
}

.msgs::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px;
}

.msg {
    display: flex;
    gap: 7px;
    animation: mi .2s ease both;
}

@keyframes mi {
    from {
        opacity: 0;
        transform: translateY(4px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.msg.user {
    flex-direction: row-reverse;
}

.av {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: .02em;
    margin-top: 1px;
}

.av.ai {
    background: var(--teal);
    color: #fff;
}

.av.user {
    background: var(--surf2);
    border: 1px solid var(--border);
    color: var(--muted);
}

.mbody {
    max-width: 78%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.msg.user .mbody {
    align-items: flex-end;
}

.bub {
    padding: 7px 11px;
    border-radius: var(--r-md);
    font-size: 0.78rem;
    line-height: 1.52;
    color: var(--text);
}

.msg.ai .bub {
    background: var(--surf);
    border: 1px solid var(--border);
    border-top-left-radius: 3px;
}

.msg.user .bub {
    background: var(--teal);
    color: #fff;
    border-top-right-radius: 3px;
    font-weight: 500;
}

.ts {
    font-size: 0.56rem;
    color: var(--muted);
    padding: 0 2px;
}

/* typing dots */
.typing .bub {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 13px;
}

.td {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
    opacity: .4;
    animation: bounce 1s infinite;
}

.td:nth-child(2) {
    animation-delay: .15s
}

.td:nth-child(3) {
    animation-delay: .3s
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0)
    }

    45% {
        transform: translateY(-5px);
        opacity: 1
    }
}

/* ══ ACTION CARD ══ */
.action-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 2px solid var(--teal);
    border-radius: var(--r-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-ttl {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--teal);
}

.card-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.card-lbl {
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}

.card-in,
.card-sel {
    background: var(--surf2);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.77rem;
    padding: 7px 10px;
    outline: none;
    width: 100%;
    transition: border-color .18s;
}

.card-in:focus,
.card-sel:focus {
    border-color: var(--teal-bdr);
    box-shadow: 0 0 0 3px var(--teal-lite);
}

.card-in::placeholder {
    color: var(--muted);
}

.card-ta {
    resize: vertical;
    min-height: 56px;
    line-height: 1.45;
}

.card-sel option {
    background: #fff;
}

/* file drop */
.fdrop {
    border: 1.5px dashed var(--border);
    border-radius: 7px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    text-align: center;
    background: var(--surf2);
    transition: all .18s;
}

.fdrop:hover,
.fdrop.over {
    border-color: var(--teal-bdr);
    background: var(--teal-lite);
}

.fdrop input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.fdrop-lbl {
    font-size: 0.7rem;
    color: var(--text2);
}

.fdrop-lbl span {
    color: var(--teal);
}

.fdrop-sub {
    font-size: 0.6rem;
    color: var(--muted);
}

.flist {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fitem {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surf);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 8px;
    animation: mi .18s ease both;
}

.ficon {
    font-size: 0.85rem;
}

.finfo {
    flex: 1;
    min-width: 0;
}

.fname {
    font-size: 0.7rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fsize {
    font-size: 0.58rem;
    color: var(--muted);
}

.frm {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.frm:hover {
    background: var(--teal-lite);
    color: var(--teal);
}

.card-acts {
    display: flex;
    gap: 6px;
}

.cbtn {
    flex: 1;
    padding: 7px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: all .18s;
}

.cbtn.pri {
    background: var(--teal);
    color: #fff;
}

.cbtn.pri:hover {
    background: var(--teal-h);
}

.cbtn.sec {
    background: var(--surf2);
    color: var(--text2);
    border: 1px solid var(--border);
}

.cbtn.sec:hover {
    background: var(--surf);
    color: var(--text);
}

.cbtn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* success */
.succ-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--r-md);
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: mi .22s ease both;
}

.succ-ico {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.succ-ico svg {
    width: 12px;
    height: 12px;
}

.succ-body h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--green);
    margin-bottom: 3px;
}

.succ-body p {
    font-size: 0.72rem;
    color: #166534;
    line-height: 1.5;
}

/* meeting */
.meet-card {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-top: 2px solid var(--indigo);
    border-radius: var(--r-md);
    padding: 12px;
    display: flex;
    gap: 10px;
    animation: mi .22s ease both;
}

.cal-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--indigo);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-ico svg {
    width: 14px;
    height: 14px;
}

.cal-body h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--indigo);
    margin-bottom: 4px;
}

.cal-body p {
    font-size: 0.72rem;
    color: #4338ca;
    line-height: 1.5;
    margin-bottom: 8px;
}

.cal-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--indigo);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    transition: opacity .18s;
}

.cal-cta:hover {
    opacity: .85;
}

/* ══ CHIPS ══ */
.chips {
    padding: 0 14px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex-shrink: 0;
    background: var(--white);
}

.chip {
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--surf);
    color: var(--text2);
    font-size: 0.63rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .16s;
    white-space: nowrap;
}

.chip:hover {
    background: var(--teal-lite);
    border-color: var(--teal-bdr);
    color: var(--teal);
}

/* ══ ATTACH BAR ══ */
.abar {
    display: none;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 14px 6px;
    background: var(--white);
}

.abar.show {
    display: flex;
}

.atag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--teal-lite);
    border: 1px solid var(--teal-bdr);
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 0.61rem;
    color: var(--teal);
}

.atag button {
    background: none;
    border: none;
    color: var(--teal);
    cursor: pointer;
    font-size: 0.65rem;
    opacity: .6;
    padding: 0;
}

.atag button:hover {
    opacity: 1;
}

/* ══ INPUT ZONE ══ */
.inzone {
    padding: 10px 14px 12px;
    border-top: 1px solid var(--border);
    background: var(--white);
    flex-shrink: 0;
}

.inrow {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    background: var(--surf2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 7px 7px 7px 12px;
    transition: border-color .18s, box-shadow .18s;
}

.inrow:focus-within {
    border-color: var(--teal-bdr);
    box-shadow: 0 0 0 3px var(--teal-lite);
}

.cinput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
    resize: none;
    min-height: 20px;
    max-height: 90px;
    padding: 0;
}

.cinput::placeholder {
    color: var(--muted);
}

.abtn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s;
}

.abtn:hover {
    background: var(--teal-lite);
    color: var(--teal);
    border-color: var(--teal-bdr);
}

.abtn input {
    display: none;
}

.sbtn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    flex-shrink: 0;
    background: var(--teal);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s;
}

.sbtn:hover {
    background: var(--teal-h);
}

.sbtn:disabled {
    background: var(--surf2);
    color: var(--muted);
    cursor: not-allowed;
}

/* ══ WELCOME GATE ══ */
.gate {
    position: absolute;
    inset: 54px 0 0 0;
    z-index: 10;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    gap: 20px;
    animation: mi .3s ease both;
}

.gate-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--teal-glow);
}

.gate-logo svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.gate-heading {
    text-align: center;
}

.gate-heading h2 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
    letter-spacing: .02em;
    margin-bottom: 4px;
}

.gate-heading p {
    font-size: 0.77rem;
    color: var(--text2);
    line-height: 1.55;
}

.gate-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gate-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gate-lbl {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
}

.gate-in {
    background: var(--surf2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    padding: 9px 12px;
    outline: none;
    width: 100%;
    transition: border-color .18s;
}

.gate-in:focus {
    border-color: var(--teal-bdr);
    box-shadow: 0 0 0 3px var(--teal-lite);
}

.gate-in::placeholder {
    color: var(--muted);
}

.gate-in.err {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .12);
}

.gate-err {
    font-size: 0.62rem;
    color: #ef4444;
    margin-top: -6px;
}

.gate-start {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: var(--teal);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background .18s;
    margin-top: 2px;
}

.gate-start:hover {
    background: var(--teal-h);
}

.gate-skip {
    font-size: 0.66rem;
    color: var(--muted);
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gate-skip:hover {
    color: var(--text2);
}

/* ══ TRANSCRIPT OFFER CARD ══ */
.transcript-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--r-md);
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: mi .22s ease both;
}

.transcript-ico {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.transcript-ico svg {
    width: 13px;
    height: 13px;
}

.transcript-body {
    flex: 1;
}

.transcript-body h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--green);
    margin-bottom: 3px;
}

.transcript-body p {
    font-size: 0.72rem;
    color: #166534;
    line-height: 1.5;
    margin-bottom: 8px;
}

.transcript-acts {
    display: flex;
    gap: 6px;
}

.t-btn {
    flex: 1;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    transition: all .16s;
}

.t-btn.yes {
    background: var(--green);
    color: #fff;
}

.t-btn.yes:hover {
    background: #166534;
}

.t-btn.no {
    background: var(--surf2);
    color: var(--text2);
    border: 1px solid var(--border);
}

.t-btn.no:hover {
    background: var(--surf);
}