.aips-shell {
    --aips-ink: #17202a;
    --aips-muted: #667085;
    --aips-border: #d6dde6;
    --aips-panel: #ffffff;
    --aips-band: #f5f7fa;
    --aips-blue: #2457a6;
    --aips-green: #2e7d5b;
    --aips-gold: #a66a12;
    background: var(--aips-panel);
    border: 1px solid var(--aips-border);
    border-radius: 8px;
    color: var(--aips-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 1080px;
    padding: 22px;
}

.aips-shell * {
    box-sizing: border-box;
}

.aips-topbar {
    align-items: flex-start;
    border-bottom: 1px solid var(--aips-border);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
}

.aips-kicker {
    color: var(--aips-green);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.aips-topbar h2 {
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
}

.aips-status-pill {
    background: #edf4ff;
    border: 1px solid #c8daf6;
    border-radius: 999px;
    color: var(--aips-blue);
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 11px;
}

.aips-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.aips-agent-stage {
    background:
        radial-gradient(circle at 50% 0%, rgba(46, 125, 91, 0.08), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    padding: 24px;
}

.aips-agent-title {
    margin: 0 auto 18px;
    max-width: 720px;
    text-align: center;
}

.aips-agent-title h1 {
    color: #111827;
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.aips-agent-title p {
    color: #8a94a6;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.aips-agent-composer {
    background: #ffffff;
    border: 1px solid #9bad9d;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    margin: 0 auto;
    max-width: 780px;
    overflow: hidden;
}

.aips-agent-label {
    color: #475467;
    display: block;
    font-size: 12px;
    font-weight: 800;
    padding: 14px 16px 0;
}

.aips-agent-composer textarea {
    border: 0;
    color: var(--aips-ink);
    font: inherit;
    line-height: 1.55;
    min-height: 132px;
    padding: 12px 16px;
    resize: vertical;
    width: 100%;
}

.aips-agent-composer textarea:focus {
    box-shadow: none;
    outline: none;
}

.aips-agent-toolbar {
    align-items: center;
    border-top: 1px solid #edf1f6;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 12px;
}

.aips-agent-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aips-agent-tools button,
.aips-agent-hints button {
    background: #f5f7fa;
    border: 1px solid #e0e7ef;
    border-radius: 7px;
    color: #475467;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    min-height: 32px;
    padding: 6px 10px;
}

.aips-agent-tools button:hover,
.aips-agent-hints button:hover {
    background: #eef7f1;
    border-color: #cbe3d3;
    color: var(--aips-green);
}

.aips-agent-submit {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.aips-agent-submit span {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.aips-send-button {
    align-items: center;
    background: #667085;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    line-height: 1;
    width: 42px;
}

.aips-send-button:hover {
    background: var(--aips-blue);
}

.aips-send-button:disabled {
    cursor: progress;
    opacity: 0.7;
}

.aips-agent-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 18px auto 0;
    max-width: 780px;
}

.aips-history-panel {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    margin: 18px auto 0;
    max-width: 980px;
    padding: 14px;
}

.aips-history-head {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.aips-history-head span {
    color: var(--aips-green);
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 4px;
}

.aips-history-head strong {
    color: #1f2937;
    display: block;
    font-size: 16px;
    line-height: 1.35;
}

.aips-history-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.aips-history-actions em {
    color: #778196;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.aips-history-actions button {
    background: #ffffff;
    border: 1px solid #d8e1ec;
    border-radius: 7px;
    color: #344054;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    min-height: 32px;
    padding: 6px 10px;
}

.aips-history-actions button:hover {
    background: #edf4ff;
    border-color: #c8daf6;
    color: var(--aips-blue);
}

.aips-history-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aips-history-empty {
    background: #f8fafc;
    border: 1px dashed #cfd8e4;
    border-radius: 8px;
    color: #778196;
    font-size: 13px;
    font-weight: 700;
    grid-column: 1 / -1;
    line-height: 1.55;
    padding: 14px;
    text-align: center;
}

.aips-history-item {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    color: #344054;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 132px;
    padding: 12px;
    text-align: left;
}

.aips-history-item:hover,
.aips-history-item.is-active {
    border-color: #a8bddc;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.aips-history-item.is-active {
    background: #f2f7ff;
}

.aips-history-item span {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.aips-history-item b {
    color: #17202a;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.aips-history-item em {
    color: #8b95a6;
    flex: 0 0 auto;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.aips-history-item small {
    color: var(--aips-green);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

.aips-history-item p {
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
}

.aips-action-workspace {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    display: grid;
    gap: 0;
    grid-template-columns: 178px minmax(0, 1fr);
    overflow: hidden;
}

.aips-action-sidebar {
    background: #f7f8fb;
    border-right: 1px solid #e6ebf2;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px 12px;
}

.aips-side-brand {
    color: #111827;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 8px;
}

.aips-action-sidebar button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #4b5563;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    min-height: 34px;
    padding: 8px 10px;
    text-align: left;
}

.aips-action-sidebar button:hover,
.aips-action-sidebar button.is-active {
    background: #ebe5ff;
    color: #4c3aa3;
}

.aips-action-sidebar span {
    color: #8a94a6;
    font-size: 11px;
    font-weight: 800;
    margin: 6px 8px 0;
}

.aips-side-divider {
    background: #e6ebf2;
    height: 1px;
    margin: 8px 0;
}

.aips-action-main {
    padding: 24px;
}

.aips-action-heading {
    align-items: flex-end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.aips-action-heading span {
    color: #6b7280;
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 4px;
}

.aips-action-heading h3 {
    color: #111827;
    font-size: 20px;
    line-height: 1.25;
    margin: 0;
}

.aips-action-heading p {
    color: #7a8495;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    max-width: 360px;
}

.aips-action-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aips-action-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    color: var(--aips-ink);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 176px;
    padding: 18px 16px;
    position: relative;
    text-align: center;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.aips-action-card:hover {
    border-color: #c7d5ea;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.aips-card-badge {
    background: #6957e8;
    border-radius: 5px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    padding: 5px 7px;
    position: absolute;
    right: 12px;
    top: 12px;
}

.aips-card-icon {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.aips-card-blue {
    background: #eaf2ff;
    color: #2457a6;
}

.aips-card-purple {
    background: #f1eaff;
    color: #7054c8;
}

.aips-card-green {
    background: #eaf7ef;
    color: #2e7d5b;
}

.aips-card-gold {
    background: #fff2dc;
    color: #a66a12;
}

.aips-card-red {
    background: #fff0f0;
    color: #bf4f4f;
}

.aips-card-indigo {
    background: #edf0ff;
    color: #4c5ac8;
}

.aips-action-card strong {
    color: #202938;
    display: block;
    font-size: 15px;
    line-height: 1.35;
}

.aips-action-card small {
    color: #7a8495;
    display: block;
    font-size: 12px;
    line-height: 1.5;
}

.aips-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aips-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.aips-field label {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.aips-field input,
.aips-field select,
.aips-field textarea {
    background: #fff;
    border: 1px solid var(--aips-border);
    border-radius: 6px;
    color: var(--aips-ink);
    font: inherit;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

.aips-field textarea {
    line-height: 1.45;
    resize: vertical;
}

.aips-field input:focus,
.aips-field select:focus,
.aips-field textarea:focus {
    border-color: var(--aips-blue);
    box-shadow: 0 0 0 3px rgba(36, 87, 166, 0.15);
    outline: none;
}

.aips-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aips-button-primary,
.aips-button-secondary {
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 16px;
}

.aips-button-primary {
    background: var(--aips-blue);
    border: 1px solid var(--aips-blue);
    color: #fff;
}

.aips-button-primary:disabled {
    cursor: progress;
    opacity: 0.7;
}

.aips-button-secondary {
    background: #fff;
    border: 1px solid var(--aips-border);
    color: var(--aips-ink);
}

.aips-progress-wrap {
    background: var(--aips-band);
    border: 1px solid var(--aips-border);
    border-radius: 8px;
    margin-top: 18px;
    padding: 14px;
}

.aips-progress-head {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.aips-progress-text {
    color: var(--aips-muted);
    font-size: 13px;
    font-weight: 700;
}

.aips-progress-meta {
    color: #475467;
    font-size: 12px;
    line-height: 1.4;
    text-align: right;
}

.aips-progress {
    background: #dfe6ef;
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

.aips-progress span {
    background: linear-gradient(90deg, var(--aips-blue), var(--aips-green), var(--aips-gold));
    display: block;
    height: 100%;
    transition: width 260ms ease;
    width: 0;
}

.aips-result {
    border-top: 1px solid var(--aips-border);
    margin-top: 22px;
    padding-top: 18px;
}

.aips-result-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.aips-result-head span {
    background: #f0f7f3;
    border: 1px solid #cbe3d3;
    border-radius: 999px;
    color: var(--aips-green);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 9px;
}

.aips-visual-summary {
    background: #f8fafc;
    border: 1px solid var(--aips-border);
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 14px;
}

.aips-summary-cards {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aips-summary-cards div {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 7px;
    min-height: 74px;
    padding: 10px;
}

.aips-summary-cards span {
    color: var(--aips-muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 7px;
}

.aips-summary-cards strong {
    color: var(--aips-ink);
    display: block;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.aips-tool-strip {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.aips-tool-strip span {
    color: var(--aips-muted);
    font-size: 12px;
    font-weight: 700;
}

.aips-tool-strip b {
    background: #eef7f1;
    border: 1px solid #cbe3d3;
    border-radius: 999px;
    color: var(--aips-green);
    font-size: 12px;
    padding: 5px 8px;
}

.aips-meter-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.aips-meter-card {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 7px;
    padding: 10px;
}

.aips-meter-top {
    align-items: center;
    color: #344054;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: space-between;
    margin-bottom: 8px;
}

.aips-meter {
    background: #e4eaf2;
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}

.aips-meter span {
    background: linear-gradient(90deg, var(--aips-blue), var(--aips-green));
    display: block;
    height: 100%;
}

.aips-meter-card p {
    color: var(--aips-muted);
    font-size: 12px;
    line-height: 1.45;
    margin: 8px 0 0;
}

.aips-export-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.aips-export-tools button {
    background: #ffffff;
    border: 1px solid var(--aips-border);
    border-radius: 6px;
    color: #24426f;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    min-height: 36px;
    padding: 7px 10px;
}

.aips-export-tools button:hover {
    background: #edf4ff;
    border-color: #b8c9e8;
}

.aips-chat-panel {
    background: #fbfcfe;
    border: 1px solid var(--aips-border);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 14px;
}

.aips-chat-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.aips-chat-head span,
.aips-chat-head small {
    color: var(--aips-muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.aips-chat-head strong {
    color: var(--aips-ink);
    display: block;
    font-size: 16px;
    line-height: 1.35;
}

.aips-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.aips-chat-suggestions button {
    background: #eef7f1;
    border: 1px solid #cbe3d3;
    border-radius: 999px;
    color: var(--aips-green);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 9px;
}

.aips-chat-messages {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding: 12px;
}

.aips-chat-message {
    display: flex;
}

.aips-chat-message > div {
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 84%;
    padding: 10px 12px;
}

.aips-chat-assistant {
    justify-content: flex-start;
}

.aips-chat-assistant > div {
    background: #f3f6fb;
    border: 1px solid #dce5f2;
    color: #344054;
}

.aips-chat-user {
    justify-content: flex-end;
}

.aips-chat-user > div {
    background: var(--aips-blue);
    color: #ffffff;
}

.aips-chat-message h2,
.aips-chat-message h3,
.aips-chat-message h4 {
    font-size: 15px;
    line-height: 1.35;
    margin: 4px 0 6px;
}

.aips-chat-message p,
.aips-chat-message li {
    margin: 0 0 6px;
}

.aips-chat-message ul,
.aips-chat-message ol {
    margin: 0;
    padding-left: 20px;
}

.aips-chat-form {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 12px;
}

.aips-chat-form textarea {
    border: 1px solid var(--aips-border);
    border-radius: 8px;
    font: inherit;
    line-height: 1.45;
    min-height: 50px;
    padding: 10px 12px;
    resize: vertical;
}

.aips-chat-form textarea:focus {
    border-color: var(--aips-blue);
    box-shadow: 0 0 0 3px rgba(36, 87, 166, 0.15);
    outline: none;
}

.aips-chat-form button {
    align-self: stretch;
    background: var(--aips-blue);
    border: 1px solid var(--aips-blue);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    min-width: 84px;
    padding: 0 16px;
}

.aips-chat-form button:disabled {
    cursor: progress;
    opacity: 0.72;
}

.aips-chat-status {
    color: var(--aips-muted);
    font-size: 12px;
    font-weight: 700;
    min-height: 18px;
    padding-top: 6px;
}

.aips-thread-top {
    align-items: center;
    border-bottom: 1px solid #edf1f6;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: -4px -4px 18px;
    padding: 0 0 14px;
}

.aips-thread-top > div:first-child {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.aips-thread-title {
    align-items: center;
    background: #f7f7f8;
    border: 1px solid #eeeeef;
    border-radius: 8px;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
}

.aips-thread-top time {
    color: #9aa3b2;
    font-size: 13px;
    font-weight: 700;
}

.aips-thread-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aips-thread-actions button {
    background: #ffffff;
    border: 1px solid #edf1f6;
    border-radius: 999px;
    color: #667085;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 10px;
}

.aips-chat-canvas {
    margin: 0 auto;
    max-width: 760px;
}

.aips-chat-panel .aips-chat-messages {
    background: transparent;
    border: 0;
    border-radius: 0;
    max-height: none;
    min-height: 280px;
    overflow: visible;
    padding: 0;
}

.aips-agent-meta {
    align-items: center;
    color: #4b5563;
    display: flex;
    gap: 10px;
    margin: 34px 0 12px;
}

.aips-agent-logo {
    align-items: center;
    background: #111827;
    border-radius: 7px;
    color: #ffffff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.aips-agent-meta strong {
    font-size: 17px;
    line-height: 1.3;
}

.aips-thinking-pill {
    align-items: center;
    background: #f6f7f8;
    border: 1px solid #f0f1f2;
    border-radius: 8px;
    color: #667085;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
}

.aips-chat-panel .aips-chat-message > div {
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.75;
    max-width: 100%;
}

.aips-chat-panel .aips-chat-user > div {
    background: #f4f4f5;
    color: #111827;
    max-width: 62%;
}

.aips-chat-panel .aips-chat-assistant > div {
    background: transparent;
    border: 0;
    color: #344054;
    padding: 0;
}

.aips-chat-panel .aips-chat-suggestions {
    justify-content: flex-start;
    margin: 22px 0 12px;
}

.aips-chat-panel .aips-chat-form {
    background: #ffffff;
    border: 1px solid #78906d;
    border-radius: 8px;
    display: block;
    margin-top: 12px;
    overflow: hidden;
}

.aips-chat-panel .aips-chat-form textarea {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 118px;
    padding: 18px;
}

.aips-chat-panel .aips-chat-toolbar {
    align-items: center;
    border-top: 1px solid #edf1f6;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 12px;
}

.aips-chat-panel .aips-chat-toolbar > div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aips-chat-panel .aips-chat-toolbar button {
    align-self: auto;
    background: #f3f4f6;
    border: 1px solid #eceff3;
    border-radius: 7px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
    min-height: 34px;
    min-width: 0;
    padding: 7px 10px;
}

.aips-chat-panel .aips-chat-toolbar [type="submit"] {
    background: #777b82;
    border-color: #777b82;
    color: #ffffff;
    font-size: 20px;
    height: 36px;
    line-height: 1;
    min-width: 36px;
    padding: 0;
    width: 36px;
}

.aips-chat-panel .aips-chat-toolbar span {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.aips-chat-help {
    align-items: center;
    background: linear-gradient(90deg, #dff3e4, #eefbcf);
    border-radius: 0 0 8px 8px;
    color: #527150;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: -1px 0 0;
    padding: 10px 18px;
}

.aips-chat-help b {
    color: #111827;
    white-space: nowrap;
}

.aips-ai-note {
    color: #a3aab7;
    font-size: 12px;
    font-weight: 700;
    margin-top: 12px;
    text-align: center;
}

.aips-warning,
.aips-error {
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 12px 14px;
}

.aips-warning {
    background: #fff8e8;
    border: 1px solid #efd39c;
    color: #6b480d;
}

.aips-error {
    background: #fff1f1;
    border: 1px solid #efb4b4;
    color: #8a1f1f;
}

.aips-warning p {
    margin: 0 0 6px;
}

.aips-warning p:last-child {
    margin-bottom: 0;
}

.aips-report {
    display: grid;
    gap: 10px;
    overflow-wrap: anywhere;
}

.aips-report h2,
.aips-report h3,
.aips-report h4 {
    color: var(--aips-ink);
    line-height: 1.25;
    margin: 10px 0 2px;
}

.aips-report h2 {
    font-size: 22px;
}

.aips-report h3 {
    border-left: 4px solid var(--aips-blue);
    font-size: 18px;
    padding-left: 10px;
}

.aips-report h4 {
    font-size: 16px;
}

.aips-report p,
.aips-report li {
    color: #344054;
    font-size: 15px;
    line-height: 1.6;
}

.aips-report p,
.aips-report ul,
.aips-report ol {
    margin: 0;
}

.aips-report ul,
.aips-report ol {
    padding-left: 22px;
}

.aips-table-scroll {
    overflow-x: auto;
}

.aips-report table {
    border-collapse: collapse;
    font-size: 14px;
    min-width: 560px;
    width: 100%;
}

.aips-report th,
.aips-report td {
    border: 1px solid var(--aips-border);
    line-height: 1.5;
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
}

.aips-report th {
    background: #f1f5f9;
    color: #344054;
    font-weight: 800;
}

.aips-report td {
    color: #344054;
}

@media (max-width: 760px) {
    .aips-shell {
        padding: 16px;
    }

    .aips-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .aips-agent-stage {
        padding: 16px;
    }

    .aips-agent-title h1 {
        font-size: 25px;
    }

    .aips-agent-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .aips-agent-submit {
        justify-content: space-between;
    }

    .aips-history-head {
        flex-direction: column;
    }

    .aips-history-actions {
        justify-content: flex-start;
    }

    .aips-history-list {
        grid-template-columns: 1fr;
    }

    .aips-action-workspace {
        grid-template-columns: 1fr;
    }

    .aips-action-sidebar {
        border-bottom: 1px solid #e6ebf2;
        border-right: 0;
    }

    .aips-action-main {
        padding: 16px;
    }

    .aips-action-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .aips-action-grid {
        grid-template-columns: 1fr;
    }

    .aips-status-pill {
        align-self: flex-start;
    }

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

    .aips-summary-cards,
    .aips-meter-grid {
        grid-template-columns: 1fr;
    }

    .aips-progress-head {
        flex-direction: column;
    }

    .aips-progress-meta {
        text-align: left;
    }

    .aips-chat-head,
    .aips-chat-form {
        grid-template-columns: 1fr;
    }

    .aips-chat-head {
        flex-direction: column;
    }

    .aips-chat-message > div {
        max-width: 100%;
    }

    .aips-thread-top,
    .aips-thread-top > div:first-child,
    .aips-chat-panel .aips-chat-toolbar,
    .aips-chat-help {
        align-items: stretch;
        flex-direction: column;
    }

    .aips-chat-panel .aips-chat-user > div {
        max-width: 100%;
    }

    .aips-topbar h2 {
        font-size: 20px;
    }
}
