﻿/* Sentienta Command Center redesign for index.html */
:root {
    --cc-bg-1: #eef6ff;
    --cc-bg-2: #fbfdff;
    --cc-bg-3: #fff7ed;
    --cc-panel: rgba(255, 255, 255, 0.92);
    --cc-panel-strong: #ffffff;
    --cc-text: #0f2233;
    --cc-muted: #4b6275;
    --cc-border: rgba(17, 54, 84, 0.16);
    --cc-accent: #0a95c2;
    --cc-accent-2: #ef7d2d;
    --cc-shadow: 0 18px 44px rgba(8, 46, 72, 0.16);
}

html,
body {
    overflow: hidden;
    font-family: 'Manrope', 'Poppins', sans-serif;
    color: var(--cc-text);
    background:
        radial-gradient(860px 380px at 3% -8%, rgba(10, 149, 194, 0.24), transparent 64%),
        radial-gradient(760px 320px at 102% 108%, rgba(239, 125, 45, 0.2), transparent 62%),
        linear-gradient(145deg, var(--cc-bg-1), var(--cc-bg-2) 42%, var(--cc-bg-3));
}

body {
    padding: 12px 14px 10px;
}

.cc-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    margin-bottom: 12px;
    padding-right: 190px; /* Reserve space for top-right account menu */
    animation: cc-fade-in 360ms ease-out both;
    position: relative;
}

.cc-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cc-account-slot {
    position: fixed;
    top: 16px;
    right: 10px;
    z-index: 50000;
}

.cc-account-dropdown {
    margin-right: 10px;
}

.cc-brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(14, 85, 122, 0.18);
    box-shadow: 0 8px 18px rgba(12, 75, 113, 0.16);
}

.cc-brand-name {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.cc-brand-subtitle {
    margin-top: 4px;
    color: var(--cc-muted);
    max-width: 760px;
    font-size: 0.96rem;
}

.cc-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.cc-chip {
    border: 1px solid rgba(10, 102, 138, 0.22);
    background: linear-gradient(180deg, #fff, #eef7fc);
    color: #184860;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: transform 140ms ease, background-color 140ms ease;
}

.cc-chip:hover {
    transform: translateY(-1px);
    background: #e9f5fb;
}

.cc-chip-accent {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #de6d20, #ef7d2d);
}

.cc-chip-accent:hover {
    background: linear-gradient(135deg, #c95f17, #de6d20);
}

.cc-workspace {
    height: calc(100vh - 132px);
    display: grid;
    grid-template-columns: var(--cc-left-col, minmax(240px, 24%)) minmax(520px, 1fr) var(--cc-right-col, minmax(280px, 26%));
    gap: 12px;
    align-items: stretch;
    box-sizing: border-box;
    width: calc(100% - 14px);
    margin-right: 14px;
    padding-right: 0;
    position: relative;
}

.cc-col-resizer {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    margin-left: -5px;
    cursor: col-resize;
    z-index: 45000;
    background: transparent;
    opacity: 0;
    transition: opacity 120ms ease;
    pointer-events: auto;
}

.cc-col-resizer::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: rgba(9, 95, 129, 0.35);
}

.cc-workspace:hover .cc-col-resizer {
    opacity: 0.2;
}

.cc-col-resizer:hover,
.cc-col-resizer.is-dragging {
    opacity: 0.85 !important;
}

.leftcontainer,
.middlecontainer,
.rightcontainer {
    margin-top: 0 !important;
    float: none !important;
    width: auto !important;
    height: calc(100% - 5px) !important;
    min-height: 0;
    border: 1px solid var(--cc-border);
    border-radius: 18px;
    background: var(--cc-panel);
    box-shadow: var(--cc-shadow);
    backdrop-filter: blur(4px);
}

.leftcontainer {
    padding: 14px 10px 8px;
}

.middlecontainer {
    padding: 12px;
    min-height: 0;
}

.middlecontainer .textbox-container {
    flex: 1 1 auto;
    min-height: 0;
}

.middlecontainer .form-group {
    flex: 0 0 auto;
    margin-top: 6px;
}

.rightcontainer {
    padding: 12px;
    min-height: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: stretch;
    overflow-y: hidden;
    overflow-x: hidden;
    gap: 8px;
}

/* Force a visible outer right gap on desktop regardless of legacy layout rules. */
main.cc-workspace > .rightcontainer {
    box-sizing: border-box;
    width: calc(100% - 14px) !important;
    margin-right: 14px !important;
}

body.cc-teams-hidden .cc-workspace {
    grid-template-columns: minmax(520px, 1fr) var(--cc-right-col, minmax(280px, 26%));
}

body.cc-teams-hidden #leftContainer {
    display: none !important;
}

body.cc-assist-hidden .cc-workspace {
    grid-template-columns: var(--cc-left-col, minmax(240px, 24%)) minmax(520px, 1fr);
}

body.cc-assist-hidden .rightcontainer {
    display: none !important;
}

body.cc-teams-hidden.cc-assist-hidden .cc-workspace {
    grid-template-columns: minmax(520px, 1fr);
}

.logoStyle {
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.03em;
    font-weight: 800;
}

.logoImage {
    width: 34%;
}

.cc-panel-caption {
    margin: 2px 10px 10px;
    color: var(--cc-muted);
    font-size: 0.83rem;
    text-align: center;
}

.cc-prompt-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

/* Temporarily hide prompt-rail action buttons, keep settings gear visible. */
.cc-prompt-rail > :not(.cc-prompt-gear):not(.cc-mobile-prompt-action) {
    display: none !important;
}

/* Desktop: hide mobile-only prompt actions. */
.cc-mobile-prompt-action {
    display: none;
}

.cc-prompt-gear {
    margin-left: auto;
    border: 1px solid rgba(14, 91, 126, 0.24);
    background: #f6fbff;
    color: #000;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
}

.cc-prompt-gear:hover {
    background: #eaf5fc;
    color: #000;
}

.cc-prompt-gear-glyph {
    display: inline-block;
    transform: translate(1px, -2px);
}

/* Hidden by default (desktop); shown in mobile media query only. */
.cc-mobile-teams-toggle-inpanel {
    display: none;
}

.cc-mobile-current-team-label {
    display: none !important;
}

.cc-mobile-prompt-action {
    display: none;
}


.cc-prompt-pill {
    border: 1px solid rgba(14, 91, 126, 0.2);
    background: #f6fbff;
    color: #19506b;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.cc-prompt-pill:hover {
    background: #eaf5fc;
}

.team-list-title,
.teamListContainer,
.textbox,
#thinkingToolbar,
.cc-response-playback,
.all-input {
    border: 1px solid var(--cc-border) !important;
    border-radius: 12px !important;
    background: var(--cc-panel-strong) !important;
}

.cc-response-playback {
    margin-top: 6px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #1e4f66;
}

.cc-dialog-settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 36, 53, 0.3);
    z-index: 21000;
}

.cc-dialog-settings {
    position: fixed;
    top: 110px;
    right: max(18px, calc(26vw + 20px));
    width: min(430px, calc(100vw - 36px));
    border: 1px solid rgba(10, 74, 105, 0.22);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(8, 45, 68, 0.24);
    z-index: 21010;
    padding: 10px 12px;
}

.cc-dialog-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cc-dialog-settings-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #16435b;
}

.cc-dialog-settings-close {
    border: 1px solid rgba(10, 74, 105, 0.2);
    border-radius: 8px;
    background: #f3f9fd;
    color: #1d4f67;
    font-weight: 800;
    cursor: pointer;
    padding: 2px 8px;
}

.cc-dialog-settings-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px 8px;
    align-items: center;
}

.cc-dialog-settings-grid label {
    margin: 0;
    color: #2a5b74;
    font-size: 0.82rem;
    font-weight: 700;
}

.cc-dialog-settings-grid select {
    border: 1px solid rgba(12, 88, 124, 0.22);
    border-radius: 8px;
    padding: 5px 8px;
    background: #fff;
    color: #1e4f66;
}

.cc-dialog-settings-font-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-dialog-settings-font-row input[type="range"] {
    flex: 1;
}

#ccDialogFontSizeValue {
    min-width: 42px;
    font-size: 0.8rem;
    color: #1e4f66;
    font-weight: 700;
}

.cc-dialog-settings-toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #1e4f66;
    font-weight: 600;
    margin: 0;
}

.cc-response-playback label {
    font-weight: 700;
}

.cc-response-playback select {
    border: 1px solid rgba(12, 88, 124, 0.22);
    border-radius: 8px;
    padding: 3px 6px;
    background: #fff;
    color: #1e4f66;
}

.cc-playback-btn {
    border: 1px solid rgba(12, 88, 124, 0.22);
    border-radius: 8px;
    padding: 3px 8px;
    background: #f2f9fd;
    color: #1d4f67;
    font-weight: 700;
    cursor: pointer;
}

.cc-playback-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.cc-response-playback-pending {
    margin-left: 6px;
    color: #355f75;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-account-dropdown.is-open .dropdown-content {
    display: block !important;
}

.cc-account-dropdown .dropdown-content {
    position: fixed;
    top: 54px;
    right: 10px;
    z-index: 50010 !important;
}

.cc-account-floating-menu {
    position: fixed !important;
    right: 10px !important;
    z-index: 80010 !important;
}

@media (min-width: 769px) {
    .cc-account-slot {
        position: fixed !important;
        top: 16px !important;
        right: 10px !important;
        z-index: 60000 !important;
    }

    .cc-account-dropdown {
        position: relative;
        z-index: 60000 !important;
    }

    .cc-account-dropdown .dropdown-content {
        position: fixed !important;
        top: 54px !important;
        right: 10px !important;
        left: auto !important;
        z-index: 60010 !important;
    }

    .cc-account-dropdown:hover .dropdown-content,
    .cc-account-dropdown.is-open .dropdown-content {
        display: block !important;
    }
}

.cc-jump-bottom-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(12, 88, 124, 0.24);
    background: linear-gradient(180deg, #f7fcff, #e8f4fb);
    color: #1d546e;
    font-weight: 900;
    font-size: 0;
    line-height: 1;
    padding: 0;
    text-align: center;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(8, 54, 80, 0.18);
    z-index: 35;
}

.cc-jump-bottom-btn::before {
    content: "\2193";
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 21px;
    line-height: 1;
    transform: translate(-50%, -66%);
}

.cc-jump-bottom-btn:hover {
    background: #e9f6fd;
}

.cc-mobile-pin-selection-btn {
    position: fixed;
    z-index: 41000;
    border: 1px solid rgba(10, 84, 117, 0.28);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #e8f5fc);
    color: #154a63;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    padding: 8px 12px;
    box-shadow: 0 8px 18px rgba(8, 51, 76, 0.2);
    display: none;
}

.cc-mobile-pin-selection-btn.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-list-title {
    padding: 8px;
}

.cc-teams-title-row {
    padding: 0;
}

.cc-teams-title-row .team-list-title {
    padding: 8px;
}

.team-list-title .yourTeamsTitle {
    padding-right: 10px !important;
}

#manageTeams {
    padding-top: 0 !important;
    margin-left: 0 !important;
    vertical-align: baseline;
}

#teams .cc-active-team-row {
    background: linear-gradient(180deg, #ffffff, #eaf5fc) !important;
    border: 1px solid rgba(12, 88, 124, 0.34) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.highlight-box {
    border-radius: 999px;
    font-weight: 700;
}

.cc-teams-header-actions {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    margin-left: 0;
    transform: translateY(0);
    z-index: 120;
}

#ccTeamsHeaderActionsBtn {
    vertical-align: baseline;
}

#ccTeamsHeaderActionsMenu {
    z-index: 1400;
}

.cc-team-actions {
    display: inline-flex;
    align-items: flex-end;
    position: relative;
    margin-left: 5px;
    vertical-align: baseline;
}

#teams .teamHeading {
    display: inline-block;
    vertical-align: baseline;
}

.cc-team-actions-btn {
    border: 1px solid rgba(12, 88, 124, 0.2);
    border-radius: 8px;
    background: #f4f9fc;
    color: #275f79;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 6px;
    min-width: 24px;
    height: 16px;
    line-height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cc-team-actions-btn:hover {
    background: #e8f3fa;
}

.cc-team-actions-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 130px;
    border: 1px solid rgba(12, 88, 124, 0.2);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(8, 50, 75, 0.18);
    padding: 4px;
    z-index: 20;
}

.cc-team-actions-menu button {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: #1e4f66;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.cc-team-actions-menu button:hover {
    background: #eef7fc;
}

.cc-team-member-select-all {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0 4px 0;
    font-size: 0.74rem;
    color: #2b5e77;
    font-weight: 700;
    cursor: pointer;
}

.cc-team-member-select-all-checkbox {
    width: 13px;
    height: 13px;
    margin: 0;
}

.textbox {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#data-textbox {
    min-height: 0;
    overflow-x: hidden !important;
    overflow-y: auto;
}

#data {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#data .toolbar,
#data .toolbar-button {
    max-width: 100%;
    box-sizing: border-box;
}

#query,
.queryBoxStyle {
    border: 1px solid rgba(12, 101, 137, 0.27) !important;
    border-radius: 10px !important;
    background: #fcfeff !important;
    color: #0f3145 !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.35;
    padding: 8px 12px 10px !important;
}

#query:focus,
.queryBoxStyle:focus {
    outline: none;
    border-color: #0b97c4 !important;
    box-shadow: 0 0 0 4px rgba(10, 149, 194, 0.15);
}

#submitInput {
    border: none !important;
    color: #fff !important;
    background: linear-gradient(135deg, #0a8fbd, #1aa4cb) !important;
    font-weight: 800 !important;
    padding: 8px 14px !important;
}

#submitInput:hover {
    background: linear-gradient(135deg, #087ca4, #1894b8) !important;
}

.submit-like-button {
    border-radius: 10px;
}

.cc-right-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.cc-right-header p {
    margin: 6px 0 10px;
    color: var(--cc-muted);
    font-size: 0.82rem;
}

.cc-right-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.cc-side-section {
    border: 1px solid rgba(10, 94, 128, 0.2);
    border-radius: 10px;
    background: #f8fcff;
    padding: 6px;
    margin-bottom: 8px;
    flex: 0 0 auto;
    min-height: 0;
}

.cc-grow-section {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    margin-bottom: 0;
    min-height: 0;
    overflow: hidden;
}

.cc-side-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: #1b4c64;
    margin-bottom: 4px;
}

.cc-scroll-diagnostic {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.7rem;
    color: #1f4e64;
    background: #ffffff;
    border: 1px solid rgba(11, 84, 116, 0.16);
    border-radius: 6px;
    padding: 5px 6px;
}

.cc-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.cc-stat {
    background: #ffffff;
    border: 1px solid rgba(11, 84, 116, 0.14);
    border-radius: 8px;
    padding: 3px 5px;
}

.cc-stat span {
    display: block;
    font-size: 0.64rem;
    color: #4a6a7c;
}

.cc-stat strong {
    display: block;
    font-size: 0.74rem;
    color: #174158;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-ideas-canvas,
.cc-notes-list {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    overflow: auto;
    background: #ffffff;
    border: 1px dashed rgba(11, 84, 116, 0.24);
    border-radius: 8px;
    padding: 5px;
}

.cc-current-state-box {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.68rem;
    line-height: 1.22;
    padding: 4px 5px;
}

.cc-monitor-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-monitor-close-btn {
    border: 1px solid rgba(10, 94, 128, 0.22);
    border-radius: 8px;
    background: #ffffff;
    color: #1b4c64;
    line-height: 1;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    cursor: pointer;
}

.cc-assist-tabs-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.cc-assist-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    margin-bottom: 8px;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(10, 94, 128, 0.18);
    background: #eef7fd;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
}

.cc-assist-tab {
    flex: 0 0 auto;
    min-width: fit-content;
    border: 1px solid rgba(10, 94, 128, 0.28);
    border-radius: 8px;
    background: #f7fbff;
    color: #174159;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1;
    padding: 6px 8px;
    cursor: pointer;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.cc-assist-tab.is-active {
    background: #caeaff;
    border-color: rgba(10, 128, 171, 0.66);
}

.cc-assist-panel {
    display: none;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    flex: 1 1 auto;
    border: 1px solid rgba(10, 94, 128, 0.18);
    border-radius: 10px;
    background: #f9fcff;
    padding: 6px;
    overflow: hidden;
}

.cc-assist-panel.is-active {
    display: flex;
}

#ccAssistPanelPins .cc-ideas-canvas,
#ccAssistPanelNotes .cc-notes-list {
    flex: 1 1 auto;
    min-height: 0;
}

#ccAssistPanelNotes .cc-note-input {
    flex: 0 0 auto;
    min-height: 58px;
}

.cc-side-hint {
    margin-top: 4px;
    font-size: 0.72rem;
    color: #567082;
}

.cc-note-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(12, 88, 124, 0.24);
    border-radius: 8px;
    padding: 7px;
    box-sizing: border-box;
    resize: vertical;
    margin-bottom: 6px;
}

.cc-note-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 6px;
}

.cc-note-actions .cc-right-btn {
    text-align: center;
    padding: 5px 6px;
    font-size: 0.72rem;
}

.cc-idea-card {
    border: 1px solid rgba(10, 94, 128, 0.2);
    background: #f5fbff;
    border-radius: 8px;
    padding: 5px 6px;
    margin-bottom: 5px;
    font-size: 0.74rem;
    color: #1b4258;
    cursor: text;
    user-select: text;
    -webkit-user-drag: element;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#ccDiscussionArtifactsList {
    overflow-x: hidden;
}

.cc-idea-card:active {
    cursor: grabbing;
}

.cc-idea-card.is-selected {
    border-color: rgba(10, 128, 171, 0.56);
    background: #eaf7ff;
}

#imagecontainer.imagecontainer {
    display: none !important;
    min-height: 90px;
    max-height: 110px;
    flex: 0 0 auto;
}

.cc-right-btn {
    border: 1px solid rgba(10, 94, 128, 0.22);
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #eef8fd);
    color: #1b4c64;
    font-weight: 700;
    padding: 8px 10px;
    cursor: pointer;
    text-align: left;
}

.cc-right-btn:hover {
    background: #eaf5fc;
}

.imagecontainer {
    min-height: 150px;
    border: 1px dashed rgba(19, 89, 124, 0.25);
    border-radius: 12px;
    background: #f8fcff;
    margin-bottom: 10px;
}

.img {
    width: 92%;
    max-height: 260px;
    object-fit: contain;
}

#code-container,
#phone-code-container {
    border: 1px solid rgba(11, 77, 109, 0.22) !important;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(14, 67, 96, 0.14);
}

#code-container {
    position: fixed !important;
    top: 110px !important;
    left: auto !important;
    right: 18px !important;
    width: clamp(480px, 27vw, 620px);
    min-width: 480px;
    min-height: 280px;
    height: min(68vh, 700px);
    z-index: 20000 !important;
    overflow: hidden !important;
}

#phone-code-container {
    position: fixed !important;
    z-index: 20000 !important;
}

.sentienta_footer {
    margin-top: 2px;
    margin-bottom: 0;
    padding-top: 0;
    font-size: 11px;
    line-height: 1.15;
    color: var(--cc-muted);
}

.sentienta_footer p {
    margin: 2px 0 0 0;
}

.dropbtn {
    background: linear-gradient(135deg, #0b8ab6, #18a2c8);
    border-radius: 999px;
}

.cc-account-slot #accountBtn {
    max-width: min(34vw, 300px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.cc-agent-editor-overlay {
    position: fixed;
    inset: 0;
    z-index: 16000;
    background: rgba(3, 18, 27, 0.22);
}

.cc-agent-editor {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, calc(100vw - 26px));
    max-height: calc(100vh - 110px);
    overflow: auto;
    z-index: 16010;
    border: 1px solid rgba(12, 84, 117, 0.24);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(4, 37, 56, 0.26);
    padding: 12px 12px 10px;
}

/* Ensure full Agent Editor (used for create/edit) sits above Team Editor */
#ccAgentEditorOverlay {
    z-index: 16120;
}

#ccAgentEditor {
    z-index: 16130;
}

.cc-agent-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cc-agent-editor-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #16435b;
}

.cc-agent-editor-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 10px;
    padding: 8px 10px;
    border: 1px solid rgba(12, 88, 124, 0.18);
    border-radius: 9px;
    background: #f6fbff;
    color: #295a72;
    font-size: 0.86rem;
}

.cc-agent-editor-spinner {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(21, 111, 149, 0.25);
    border-top-color: #0f8eb8;
    animation: cc-agent-spin 0.8s linear infinite;
}

.cc-agent-editor-close {
    border: 1px solid rgba(11, 85, 119, 0.2);
    border-radius: 8px;
    width: 30px;
    height: 30px;
    background: #f2f8fc;
    color: #0f4a66;
    font-weight: 700;
    cursor: pointer;
}

.cc-agent-editor-grid {
    display: grid;
    grid-template-columns: 138px 1fr;
    gap: 8px 10px;
    align-items: start;
}

.cc-agent-editor-grid label {
    font-size: 0.82rem;
    color: #2f5e76;
    font-weight: 700;
    padding-top: 8px;
}

.cc-agent-editor-grid input[type="text"],
.cc-agent-editor-grid textarea,
.cc-agent-editor-grid select,
.cc-agent-editor-grid input[type="color"] {
    border: 1px solid rgba(12, 88, 124, 0.24);
    border-radius: 8px;
    padding: 7px 9px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
}

.cc-agent-editor-grid textarea {
    resize: vertical;
    min-height: 112px;
}

.cc-agent-editor-grid input[type="color"] {
    padding: 2px 4px;
    height: 34px;
}

.cc-agent-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.cc-agent-editor-btn {
    border-radius: 9px;
    border: 1px solid transparent;
    padding: 7px 12px;
    font-weight: 700;
    cursor: pointer;
}

.cc-agent-editor-btn-muted {
    background: #eef6fb;
    color: #2a6079;
    border-color: rgba(16, 90, 124, 0.2);
}

.cc-agent-editor-btn-primary {
    background: linear-gradient(135deg, #0c8fba, #1aa4ca);
    color: #fff;
}

.cc-agent-clickable-cue {
    cursor: pointer;
}

.cc-team-clickable-cue {
    cursor: pointer;
    display: block;
    width: fit-content;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

.cc-team-editor {
    width: min(720px, calc(100vw - 24px));
}

.cc-team-subdialog {
    width: min(620px, calc(100vw - 24px));
}

#ccFeedbackDialog {
    width: min(520px, calc(100vw - 24px));
}

#ccFeedbackDialog .cc-agent-editor-grid {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px 8px;
}

#ccFeedbackDialog .cc-agent-editor-grid input,
#ccFeedbackDialog .cc-agent-editor-grid select,
#ccFeedbackDialog .cc-agent-editor-grid textarea {
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
}

#ccFeedbackDialog .cc-agent-editor-grid textarea {
    min-height: 96px;
}

.cc-team-members-list {
    border: 1px solid rgba(12, 88, 124, 0.18);
    border-radius: 8px;
    background: #fbfdff;
    padding: 8px;
    min-height: 90px;
    max-height: 210px;
    overflow: auto;
}

.cc-team-member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(18, 93, 126, 0.16);
    cursor: pointer;
}

.cc-team-member-row:last-child {
    border-bottom: none;
}

.cc-team-member-row.is-selected {
    background: rgba(26, 164, 202, 0.14);
    border-radius: 7px;
}

.cc-team-inline-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cc-team-add-agent-list {
    max-height: 360px;
    overflow: auto;
    border: 1px solid rgba(11, 88, 123, 0.18);
    border-radius: 8px;
    padding: 6px;
    background: #fbfdff;
}

.cc-team-add-agent-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    padding: 6px;
    border-bottom: 1px dashed rgba(16, 98, 132, 0.16);
    cursor: pointer;
}

.cc-team-add-agent-row:last-child {
    border-bottom: none;
}

.cc-team-add-agent-row.is-selected {
    background: rgba(26, 164, 202, 0.16);
    border-radius: 7px;
}

.cc-team-marketplace-dialog {
    width: min(760px, calc(100vw - 24px));
    height: min(80vh, 760px);
    padding-bottom: 12px;
}

.cc-team-marketplace-controls {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.cc-team-marketplace-controls label {
    font-size: 0.82rem;
    color: #2f5e76;
    font-weight: 700;
}

.cc-team-marketplace-controls select {
    border: 1px solid rgba(12, 88, 124, 0.24);
    border-radius: 8px;
    padding: 7px 9px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
}

.cc-team-marketplace-frame {
    width: 100%;
    height: calc(100% - 42px);
    border: 1px solid rgba(15, 89, 124, 0.2);
    border-radius: 8px;
    background: #fff;
}

.cc-marketplace-agent-header,
.cc-marketplace-agent-row {
    display: grid !important;
    grid-template-columns: minmax(170px, 1.1fr) minmax(170px, 1fr) 96px;
    align-items: center;
    justify-content: start !important;
    column-gap: 8px;
}

.cc-marketplace-agent-header {
    background: #eaf5fc;
    border: 1px solid rgba(12, 88, 124, 0.2);
    border-radius: 7px;
    margin-bottom: 4px;
    padding: 6px 8px;
    font-weight: 700;
    color: #1f546f;
}

.cc-marketplace-agent-row {
    padding: 5px 8px !important;
}

.cc-marketplace-agent-name,
.cc-marketplace-agent-title,
.cc-marketplace-agent-persona {
    text-align: left;
    min-width: 0;
}

.cc-marketplace-agent-name {
    font-weight: 700;
}

.cc-marketplace-agent-title {
    color: #2f5e76;
}

.cc-marketplace-persona-link {
    text-align: left;
}

.cc-marketplace-persona-link.is-disabled {
    color: #8aa4b3;
    pointer-events: none;
    text-decoration: none;
}

.cc-marketplace-persona-dialog {
    width: min(680px, calc(100vw - 24px));
}

.cc-marketplace-persona-body {
    border: 1px solid rgba(12, 88, 124, 0.2);
    border-radius: 8px;
    background: #fbfdff;
    padding: 10px;
    max-height: 52vh;
    overflow: auto;
    white-space: pre-wrap;
    line-height: 1.45;
    color: #163f57;
}

.cc-quickstart-dialog {
    width: min(735px, calc(75vw - 18px));
    max-height: calc(100vh - 90px);
    overflow: auto;
}

.cc-quickstart-main-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    border: 1px solid rgba(12, 88, 124, 0.2);
    padding: 10px;
}

.cc-quickstart-header {
    text-align: center;
    color: #305280;
}

.cc-quickstart-header h1 {
    margin: 4px 0;
    font-size: 1.45rem;
}

.cc-quickstart-header p {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.cc-quickstart-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-areas:
        "instructions instructions"
        "card card";
    gap: 10px;
}

.cc-quickstart-card,
.cc-quickstart-instructions {
    border: 1px solid rgba(12, 88, 124, 0.18);
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
}

.cc-quickstart-card {
    grid-area: card;
}

.cc-quickstart-instructions {
    grid-area: instructions;
    height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.cc-quickstart-card form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cc-quickstart-card label {
    color: #305280;
    font-size: 1rem;
    font-weight: 700;
}

.cc-quickstart-card textarea {
    width: 100%;
    min-height: 150px;
    border: 1px solid rgba(12, 88, 124, 0.24);
    border-radius: 8px;
    padding: 8px;
    resize: vertical;
    box-sizing: border-box;
}

.cc-quickstart-card input[type="submit"] {
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    background: #ff6f61;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.cc-quickstart-card input[type="submit"]:hover {
    background: #ff4b2b;
}

.cc-quickstart-card .skip-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #007BFF;
    background: #f8f9fa;
    border: 1px solid rgba(12, 88, 124, 0.22);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
}

.cc-quickstart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cc-quickstart-actions .skip-link,
.cc-quickstart-actions input[type="submit"] {
    flex: 1 1 0;
    min-height: 38px;
}

.cc-quickstart-instructions .dynamic_box_content {
    color: #305280;
    font-size: 14px;
}

.cc-quickstart-instructions .instructions_title {
    color: #ff6f61;
    margin: 0 0 6px 0;
}

.cc-quickstart-instructions .instructions_p1,
.cc-quickstart-instructions .instructions_p2 {
    color: #305280;
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}

/* Disable legacy agent hover tooltip underline/popover in the teams pane.
   Agent editing is now click-driven. */
#teams .tooltip {
    border-bottom: none !important;
}

#teams .tooltip.cc-agent-clickable-cue {
    border-bottom: 1px dotted black !important;
}

#teams .tooltip .tooltiptext {
    visibility: hidden !important;
    opacity: 0 !important;
}

#teams .tooltip.cc-team-clickable-cue {
    border-bottom: none !important;
}

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

@keyframes cc-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1120px) {
    .cc-header {
        padding-right: 170px;
    }

    .cc-quick-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 1120px) {
    .cc-col-resizer {
        display: none !important;
    }
}

@media (max-width: 768px) {
    html,
    body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        position: static !important;
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        min-height: 100svh !important;
        height: 100svh;
        max-height: 100svh;
        overscroll-behavior-y: auto;
        overscroll-behavior-x: none;
        -webkit-overflow-scrolling: touch;
    }

    body {
        padding: 6px;
        box-sizing: border-box;
        touch-action: pan-y;
    }

    .cc-account-dropdown:hover .dropdown-content {
        display: none !important;
    }

    .cc-header {
        margin-bottom: 8px;
        gap: 10px;
        padding-right: 0;
    }

    .cc-brand-logo {
        width: 46px;
        height: 46px;
    }

    .cc-brand-subtitle {
        font-size: 0.84rem;
        max-width: 100%;
    }

    .cc-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* Prevent iOS Safari focus-zoom on text inputs. */
    #query,
    .queryBoxStyle,
    .cc-note-input,
    .cc-agent-editor-grid input[type="text"],
    .cc-agent-editor-grid textarea,
    .cc-agent-editor-grid select,
    #ccResponsePlaybackMode,
    #ccDialogFontSizeRange {
        font-size: 16px !important;
    }

    .cc-brand-text {
        max-width: 100%;
    }

    .cc-workspace {
        height: calc(100svh - 122px);
        display: block;
        margin: 0 auto;
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        position: relative;
        touch-action: pan-y;
    }

    .middlecontainer {
        margin-top: 29px;
        height: calc(100svh - 151px) !important;
        min-height: 0;
        width: 100% !important;
        box-shadow: none;
        backdrop-filter: none;
        overflow: hidden;
    }

    .leftcontainer,
    .rightcontainer {
        border-radius: 12px;
        width: 100% !important;
        height: calc(100svh - 151px) !important;
        min-height: 0;
        display: none !important;
        box-shadow: none;
        backdrop-filter: none;
        overflow: hidden;
    }

    body.cc-show-mobile-panel-teams #leftContainer {
        display: flex !important;
    }

    body.cc-show-mobile-panel-assist .rightcontainer {
        display: flex !important;
    }

    body.cc-show-mobile-panel-teams #middleContainer,
    body.cc-show-mobile-panel-assist #middleContainer {
        display: none !important;
    }

    main.cc-workspace > .rightcontainer {
        width: auto !important;
        margin-right: 0 !important;
    }

    .cc-prompt-rail {
        gap: 6px;
        margin-bottom: 6px;
        min-height: 30px;
        justify-content: flex-start;
    }

    .cc-mobile-prompt-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 28px;
        padding: 4px 8px;
        border-radius: 999px;
        border: 1px solid rgba(12, 88, 124, 0.2);
        background: #eef7fc;
        color: #245b75;
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.1;
        white-space: nowrap;
    }

    .cc-mobile-teams-toggle-inpanel {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 0 0 auto;
        min-height: 26px;
        padding: 3px 8px;
        border-radius: 999px;
        border: 1px solid rgba(12, 88, 124, 0.2);
        background: #eef7fc;
        color: #245b75;
        font-size: 0.7rem;
        font-weight: 700;
        line-height: 1.1;
        white-space: nowrap;
    }

    .cc-teams-title-row {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        padding: 0 8px;
    }

    .cc-teams-title-row .team-list-title {
        flex: 1 1 auto;
        padding: 8px 0;
    }

    .cc-teams-title-row .team-list-title .yourTeamsTitle {
        margin-left: 6px;
    }

    /* Mobile: hide clear-query button to save space. */
    #clearQueryBtn {
        display: none !important;
    }

    /* Mobile: hide desktop-only layout reset control in dialog settings. */
    #ccDialogSettingsDialog label[for="ccResetLayoutBtn"],
    #ccResetLayoutBtn {
        display: none !important;
    }

    .cc-mobile-prompt-action-accent {
        background: linear-gradient(135deg, #0c8fba, #1aa4ca);
        color: #fff;
        border-color: transparent;
    }

    .cc-mobile-current-team-label {
        display: block !important;
        margin: -2px 2px 6px;
        padding: 4px 8px;
        border: 1px solid rgba(12, 88, 124, 0.18);
        border-radius: 8px;
        background: #f6fbff;
        color: #245b75;
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cc-prompt-pill {
        display: none !important;
    }

    #ccApiDocsChip {
        display: none !important;
    }

    .cc-prompt-gear {
        margin-left: auto;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
        border-radius: 999px;
        padding: 0;
        flex: 0 0 28px;
    }

    .cc-prompt-gear-glyph {
        transform: translate(0px, -1px);
    }

    .cc-dialog-settings {
        top: 12px;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 94vw;
        max-height: 84dvh;
        overflow: auto;
        box-sizing: border-box;
    }

    .cc-dialog-settings-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .cc-response-playback {
        gap: 4px;
        padding: 6px;
        flex-wrap: nowrap;
        overflow-x: hidden;
        overflow-y: hidden !important;
        white-space: nowrap;
    }

    .cc-response-playback-pending {
        flex: 1 1 auto;
        margin-left: 4px;
        min-width: 80px;
        max-width: 42vw;
    }

    .cc-jump-bottom-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .cc-agent-editor {
        top: 8px;
        width: 94vw !important;
        max-height: calc(100svh - 16px);
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 12px 28px rgba(4, 37, 56, 0.2);
        overflow: auto;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .cc-team-editor,
    .cc-team-subdialog,
    #ccFeedbackDialog,
    .cc-team-marketplace-dialog,
    .cc-marketplace-persona-dialog,
    .cc-quickstart-dialog {
        width: 94vw !important;
        max-width: 94vw !important;
        max-height: calc(100svh - 16px);
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }



    /* iOS: prevent focus-zoom in Quick Start fields and keep dialog stable */
    #ccQuickStartDialog textarea,
    #ccQuickStartDialog input,
    #newTeamDescription {
        font-size: 16px !important;
        line-height: 1.35;
    }

    #newTeamDescription {
        min-height: 210px !important;
        max-height: 30svh !important;
        overflow-y: auto;
    }
    .cc-team-marketplace-frame {
        height: calc(100% - 56px);
    }

    .cc-marketplace-agent-header,
    .cc-marketplace-agent-row {
        grid-template-columns: minmax(130px, 1fr) minmax(120px, 1fr) 72px;
        column-gap: 6px;
    }

    #query,
    .queryBoxStyle {
        max-height: 24dvh;
        overflow-y: auto;
    }

    .btnWrap .mobile-t-box-container {
        display: none !important;
    }

    button.cc-chip[onclick*="showHideSessionAssistTab"],
    button.cc-chip[onclick*="showHideTeamsTab"],
    button.cc-chip[onclick*="openQuickStartDialog"],
    button.mobile-t-box-container[onclick*="showHideSessionAssistTab"] {
        display: none !important;
    }

    .btnWrap .submit-like-button {
        min-height: 30px !important;
        padding: 2px 6px !important;
    }

    #submitInput {
        min-height: 30px !important;
        padding: 4px 9px !important;
        font-size: 0.82rem !important;
        line-height: 1.2;
    }

    .cc-chip,
    .cc-prompt-gear,
    .cc-playback-btn,
    .cc-agent-editor-close,
    .cc-agent-editor-btn,
    .cc-right-btn,
    .cc-team-actions-btn,
    .dropbtn {
        min-height: 34px;
    }

    .cc-chip {
        font-size: 0.74rem;
        padding: 5px 9px;
        min-height: 30px;
    }

    .cc-agent-editor-btn {
        padding: 9px 12px;
    }

    .cc-team-actions-btn {
        min-width: 32px;
        height: 24px;
        line-height: 22px;
    }

    .cc-side-section {
        margin-bottom: 6px;
    }

    .cc-account-slot {
        top: 10px;
        right: 0;
        z-index: 22000 !important;
    }

    .cc-account-slot #accountBtn {
        max-width: 120px;
        min-height: 30px !important;
        height: 30px;
        padding: 4px 10px;
        font-size: 0.86rem;
        line-height: 1.1;
    }

    .cc-account-dropdown .dropdown-content {
        position: fixed !important;
        top: 46px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-height: calc(100svh - 64px);
        overflow: auto;
        z-index: 21020 !important;
        box-sizing: border-box;
        border-radius: 12px !important;
    }

    .cc-account-dropdown.is-open .dropdown-content {
        display: block !important;
    }

    #ccResponsePlaybackLastBtn,
    #ccResponsePlaybackNextBtn {
        min-height: 22px !important;
        height: 22px !important;
        max-height: 22px !important;
        padding: 0 6px !important;
        line-height: 1 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .middlecontainer .form-group {
        border-radius: 12px !important;
        overflow: hidden;
    }

    .cc-agent-editor-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .cc-agent-editor-grid label {
        padding-top: 2px;
    }

    #code-container {
        left: 50% !important;
        top: 92px !important;
        width: 92vw !important;
        min-width: 0 !important;
        height: 62vh !important;
        transform: translateX(-50%) !important;
    }
}



