@import url('../js/vendor/ui/css/tokens.css');
@import url('../js/vendor/ui/css/bridge.css');
@import url('../js/vendor/ui/css/components.css');
@import url('../js/vendor/ui/css/shell.css');
@import url('../js/vendor/ui/css/primitives.css');
@import url('../js/vendor/ui/css/workspace.css');

/* Teleport brand — accent only; do not patch vendor CSS */
:root,
[data-theme="light"],
[data-theme="dark"] {
    --accent: #7c3aed;
    --accent-dim: #5b21b6;
    --accent-glow: rgba(124, 58, 237, 0.12);
    --accent-surface: rgba(124, 58, 237, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) {
        --accent: #7c3aed;
        --accent-dim: #6d28d9;
        --accent-glow: rgba(124, 58, 237, 0.16);
        --accent-surface: rgba(124, 58, 237, 0.12);
    }
}

.login-hint {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.login-hint code {
    font-size: 0.85em;
}

.teleport-urgency {
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}

.teleport-urgency.is-high { color: var(--danger); }
.teleport-urgency.is-mid { color: var(--warning); }
.teleport-urgency.is-low { color: var(--text-muted); }

.teleport-meter {
    height: 6px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}

.teleport-meter > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.teleport-meter.is-subj > span {
    background: var(--warning);
}

.teleport-preview {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.teleport-messages {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.5rem 0;
}

.teleport-message {
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--border);
    max-width: 42rem;
}

.teleport-message.is-inbound {
    border-left-color: var(--accent);
    margin-right: 2rem;
}

.teleport-message.is-outbound {
    margin-left: 2rem;
    align-self: flex-end;
    border-left-color: var(--text-muted);
    background: var(--accent-surface);
}

.teleport-message header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-subtle);
    font-size: 0.7rem;
    margin-bottom: 0.35rem;
}

.teleport-message p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.45;
}

.teleport-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.teleport-empty h2,
.teleport-empty h3 {
    margin: 0 0 0.35rem;
    color: var(--text);
    font-size: 1rem;
}

.teleport-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
}

.teleport-composer {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.teleport-composer textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.teleport-mode {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.teleport-mode strong {
    color: var(--text);
    font-weight: 650;
}

.teleport-canned-row {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) 1fr auto;
    gap: 0.5rem;
    align-items: start;
    margin: 0.75rem 0;
}

.teleport-canned-row textarea {
    min-height: 3.6rem;
    resize: vertical;
}

@media (max-width: 768px) {
    .teleport-canned-row {
        grid-template-columns: 1fr;
    }
}

.teleport-need-grid {
    display: grid;
    gap: 0.85rem;
}

.teleport-need h3 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0 0 0.45rem;
    font-size: 0.9rem;
}

.teleport-need .rationale {
    margin: 0.45rem 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.teleport-bar {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.teleport-bar label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.settings-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.teleport-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8em;
    overflow-wrap: anywhere;
}
