:root {
    --primary-color: #005eb8;
    --primary-hover: #004a91;
    --bg-color: #f0f4f8;
    --text-color: #2d3748;
    --user-msg-bg: #005eb8;
    --agent-msg-bg: #ffffff;
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    justify-content: center;
}

body.admin-body,
body.demo-body {
    display: block;
    min-height: 100vh;
    height: auto;
    background: #f6f8fb;
}

body.admin-home-body {
    display: block;
    min-height: 100vh;
    height: auto;
    background: #0f172a;
}

body.shield-body {
    background: #0f172a;
    color: #f1f5f9;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

body.pranyx-body {
    background: #f7f8fb;
    color: #111827;
    display: block;
    min-height: 100vh;
    overflow-x: hidden;
}

.pranyx-canvas {
    height: 100vh;
    inset: 0;
    position: fixed;
    width: 100vw;
    z-index: 0;
}

.pranyx-nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 1.25rem 2rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2;
}

.pranyx-wordmark {
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.pranyx-wordmark small {
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
}

.pranyx-nav nav {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.pranyx-nav nav a {
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.pranyx-hero {
    align-items: center;
    display: flex;
    min-height: 100vh;
    padding: 7rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.pranyx-hero__copy {
    max-width: 760px;
}

.pranyx-kicker {
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.pranyx-hero h1 {
    color: #0f172a;
    font-size: clamp(3.2rem, 8vw, 7.4rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.95;
    max-width: 980px;
}

.pranyx-subcopy {
    color: #475569;
    font-size: 1.16rem;
    line-height: 1.65;
    margin-top: 1.5rem;
    max-width: 640px;
}

.pranyx-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.pranyx-primary,
.pranyx-secondary {
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.82rem 1.15rem;
    text-decoration: none;
}

.pranyx-primary {
    background: #0f172a;
    color: #ffffff;
}

.pranyx-secondary {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #d6dde8;
    color: #0f172a;
}

.pranyx-section {
    background: rgba(255, 255, 255, 0.84);
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.pranyx-section__intro p {
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.pranyx-section__intro h2 {
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    max-width: 520px;
}

.pranyx-principles {
    display: grid;
    gap: 1rem;
}

.pranyx-principles article {
    border-top: 1px solid #dbe3ee;
    padding-top: 1.25rem;
}

.pranyx-principles span {
    color: #94a3b8;
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pranyx-principles h3 {
    color: #0f172a;
    font-size: 1.12rem;
    margin-bottom: 0.4rem;
}

.pranyx-principles p {
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.55;
    max-width: 620px;
}

.app-container {
    width: 100%;
    max-width: 800px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

header {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.chat-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #f8fafc;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.message.agent {
    align-self: flex-start;
    background-color: var(--agent-msg-bg);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 0.25rem;
}

.appointment-card {
    align-self: flex-start;
    width: min(100%, 420px);
    background: #ffffff;
    border: 1px solid #c8d7e8;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.appointment-card__label {
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.appointment-card__title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.appointment-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.appointment-card__item span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    margin-bottom: 0.15rem;
}

.appointment-card__item strong {
    display: block;
    color: #1e293b;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.slot-picker {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #d8e2ee;
    border-radius: 8px;
    max-width: 520px;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.slot-picker__label {
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.slot-picker__title {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.4;
    margin-bottom: 0.85rem;
}

.slot-picker__options {
    display: grid;
    gap: 0.6rem;
}

.slot-option {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    color: #0f172a;
    cursor: pointer;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.85rem;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    width: 100%;
}

.slot-option:hover,
.slot-option.selected {
    background: #eef6ff;
    border-color: #60a5fa;
}

.slot-option:active {
    transform: translateY(1px);
}

.slot-option input {
    accent-color: var(--primary-color);
    height: 1rem;
    margin: 0;
    width: 1rem;
}

.slot-option strong {
    display: block;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.slot-option small {
    color: #64748b;
    display: block;
    font-size: 0.76rem;
    margin-top: 0.16rem;
}

.slot-option em {
    color: #1d4ed8;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
}

.message.user {
    align-self: flex-end;
    background-color: var(--user-msg-bg);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.controls {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.example-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip {
    padding: 0.4rem 0.8rem;
    background: #edf2f7;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    background: #e2e8f0;
}

.input-area {
    display: flex;
    gap: 0.75rem;
}

input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.5rem;
}

.hidden { display: none; }

/* Loading Animation */
.loading-indicator {
    padding: 1rem;
    align-self: flex-start;
}

.dot-typing {
    position: relative;
    left: -9999px;
    width: 6px;
    height: 6px;
    border-radius: 5px;
    background-color: #94a3b8;
    color: #94a3b8;
    box-shadow: 9984px 0 0 0 #94a3b8, 9999px 0 0 0 #94a3b8, 10014px 0 0 0 #94a3b8;
    animation: dot-typing 1.5s infinite linear;
}

@keyframes dot-typing {
    0% { box-shadow: 9984px 0 0 0 #94a3b8, 9999px 0 0 0 #94a3b8, 10014px 0 0 0 #94a3b8; }
    16.667% { box-shadow: 9984px -6px 0 0 #94a3b8, 9999px 0 0 0 #94a3b8, 10014px 0 0 0 #94a3b8; }
    33.333% { box-shadow: 9984px 0 0 0 #94a3b8, 9999px 0 0 0 #94a3b8, 10014px 0 0 0 #94a3b8; }
    50% { box-shadow: 9984px 0 0 0 #94a3b8, 9999px -6px 0 0 #94a3b8, 10014px 0 0 0 #94a3b8; }
    66.667% { box-shadow: 9984px 0 0 0 #94a3b8, 9999px 0 0 0 #94a3b8, 10014px 0 0 0 #94a3b8; }
    83.333% { box-shadow: 9984px 0 0 0 #94a3b8, 9999px 0 0 0 #94a3b8, 10014px -6px 0 0 #94a3b8; }
    100% { box-shadow: 9984px 0 0 0 #94a3b8, 9999px 0 0 0 #94a3b8, 10014px 0 0 0 #94a3b8; }
}

.admin-nav {
    background: #182230;
    border-bottom: 1px solid #2c3a4d;
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
}

.admin-home {
    margin: 0 auto;
    max-width: 1120px;
    padding: 2rem;
}

.admin-home__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-home__header p {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.admin-home__header h1 {
    color: #f8fafc;
    font-size: 1.8rem;
}

.admin-home__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-home-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f8fafc;
    min-height: 220px;
    padding: 1.25rem;
    text-decoration: none;
}

.admin-home-card:hover {
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.admin-home-card span {
    color: #60a5fa;
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.admin-home-card strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.admin-home-card p {
    color: #b6c2d2;
    font-size: 0.9rem;
    line-height: 1.5;
}

.admin-back-link {
    border: 1px solid #334155;
    border-radius: 999px;
    color: #dbeafe;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
    text-decoration: none;
}

.admin-back-link:hover {
    background: #1e293b;
}

.shield-header {
    align-items: center;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.shield-brand {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.shield-mark {
    align-items: center;
    background: #0f766e;
    border-radius: 8px;
    color: #ecfeff;
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.shield-brand h1 {
    color: #f8fafc;
    font-size: 1.1rem;
    margin: 0;
}

.shield-brand p {
    color: #94a3b8;
    font-size: 0.75rem;
    margin: 0.1rem 0 0;
}

.shield-header__actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.shield-link {
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.shield-status {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.32);
    border-radius: 999px;
    color: #86efac;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
}

.shield-status.offline {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.32);
    color: #fca5a5;
}

.shield-grid {
    display: grid;
    flex: 1;
    gap: 1.25rem;
    grid-template-columns: 400px minmax(0, 1fr);
    min-height: 0;
    padding: 1.25rem;
}

.shield-panel {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
}

.shield-panel__header {
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid #334155;
    color: #94a3b8;
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    text-transform: uppercase;
}

.shield-panel__header.bordered {
    border-top: 1px solid #334155;
}

.shield-panel__header.split div {
    align-items: center;
    color: #94a3b8;
    display: flex;
    gap: 1rem;
    text-transform: none;
}

.compliance-list.dark {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 1rem;
    padding: 1.5rem;
}

.compliance-list.dark .check-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    min-height: 64px;
    padding: 0.85rem 1rem;
    width: 100%;
}

.compliance-list.dark .check-icon {
    align-items: center;
    border: 2px solid #475569;
    border-radius: 999px;
    border-color: #475569;
    color: transparent;
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 0.86rem;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    line-height: 1;
    width: 24px;
}

.compliance-list.dark .check-item:not(.active) .check-icon {
    background: rgba(15, 23, 42, 0.45);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
    color: transparent;
}

.compliance-list.dark .check-label {
    color: #94a3b8;
    display: block;
    flex: 1;
    font-size: 0.96rem;
    font-weight: 650;
    line-height: 1.25;
    min-width: 0;
}

.compliance-list.dark .check-item.active .check-icon {
    background: #22c55e;
    border-color: #22c55e;
    color: #052e16;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.08);
}

.compliance-list.dark .check-item.active .check-label {
    color: #f8fafc;
}

.shield-session-list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 80px;
    overflow-y: auto;
    border-bottom: 1px solid #334155;
}

.shield-session {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    cursor: pointer;
    font: inherit;
    padding: 0.78rem 1.25rem;
    text-align: left;
}

.shield-session:hover,
.shield-session.active {
    background: rgba(59, 130, 246, 0.12);
}

.shield-session strong {
    display: block;
    font-size: 0.9rem;
}

.shield-session small,
.shield-session em {
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    font-style: normal;
    margin-top: 0.28rem;
}

.shield-session em {
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shield-session span {
    color: #94a3b8;
    display: block;
    font-size: 0.72rem;
    margin-top: 0.18rem;
    overflow-wrap: anywhere;
}

.shield-empty {
    color: #94a3b8;
    font-size: 0.86rem;
    padding: 1rem;
}

.shield-split {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.shield-message-box {
    background: #020617;
    border: 1px solid #1f2a3d;
    border-radius: 8px;
    min-height: 104px;
    padding: 1.1rem;
    position: relative;
}

.shield-message-box span {
    background: #2563eb;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.18rem 0.5rem;
    position: absolute;
    right: 0.75rem;
    text-transform: uppercase;
    top: -0.6rem;
}

.shield-message-box.redacted span {
    background: #f59e0b;
}

.shield-message-box code {
    color: #e2e8f0;
    display: block;
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.shield-message-box.redacted code {
    color: #fbbf24;
}

.terminal-logs.dark {
    background: #1e293b;
    color: #dbeafe;
    flex: 1;
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
}

.terminal-logs.dark .log-entry {
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 88px 220px minmax(0, 1fr);
    padding: 0.32rem 0;
}

.terminal-logs.dark .log-time {
    color: #94a3b8;
}

.terminal-logs.dark .log-type {
    color: #c4b5fd;
    font-weight: 700;
    min-width: 0;
}

.terminal-logs.dark .log-msg {
    color: #dbeafe;
    overflow-wrap: anywhere;
}

.terminal-logs.dark .log-msg > span {
    display: block;
}

.log-payload {
    margin-top: 0.45rem;
}

.log-payload summary {
    color: #93c5fd;
    cursor: pointer;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.log-payload pre {
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.72rem;
    line-height: 1.45;
    margin: 0.5rem 0 0;
    max-height: 280px;
    overflow: auto;
    padding: 0.75rem;
    white-space: pre-wrap;
}

.terminal-logs.dark .type-REDACTED { color: #f59e0b; }
.terminal-logs.dark .type-SENT { color: #60a5fa; }
.terminal-logs.dark .type-TOOL { color: #c084fc; }
.terminal-logs.dark .type-RESOLVED { color: #4ade80; }
.terminal-logs.dark .type-ERROR { color: #f87171; }

.page-header__actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.admin-nav a {
    border-bottom: 2px solid transparent;
    color: #a9b6c7;
    font-size: 0.85rem;
    font-weight: 600;
    padding-bottom: 0.25rem;
    text-decoration: none;
}

.admin-nav a.active {
    border-bottom-color: #2f80ed;
    color: #ffffff;
}

.admin-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: calc(100vh - 45px);
}

.admin-sidebar {
    background: #ffffff;
    border-right: 1px solid #d8e0ea;
    overflow-y: auto;
}

.admin-sidebar__header {
    border-bottom: 1px solid #e5ebf2;
    padding: 1rem;
}

.admin-sidebar__header h1,
.page-header h1 {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.admin-sidebar__header p,
.page-header p {
    color: #64748b;
    font-size: 0.85rem;
}

.session-list {
    display: flex;
    flex-direction: column;
}

.session-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    color: #263445;
    cursor: pointer;
    font: inherit;
    padding: 0.9rem 1rem;
    text-align: left;
}

.session-item:hover,
.session-item.active {
    background: #eef5ff;
}

.session-item strong {
    display: block;
    font-size: 0.9rem;
}

.session-item span {
    color: #64748b;
    display: block;
    font-size: 0.74rem;
    margin-top: 0.2rem;
}

.timeline {
    overflow-y: auto;
    padding: 1.5rem;
}

.timeline-header,
.page-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sync-label {
    color: #64748b;
    font-size: 0.78rem;
    white-space: nowrap;
}

.empty-state {
    align-items: center;
    color: #64748b;
    display: flex;
    min-height: 240px;
}

.event-card {
    background: #ffffff;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    padding: 0.9rem 1rem;
}

.event-card__top {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.event-type {
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 700;
}

.event-time {
    color: #64748b;
    font-size: 0.72rem;
}

.event-card p {
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.45;
    margin-top: 0.5rem;
}

.payload-diff {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.75rem;
}

.payload-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
}

.payload-box span {
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.payload-box code {
    color: #0f172a;
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.calendar-page {
    padding: 1.5rem;
}

.calendar-grid {
    border: 1px solid #d8e0ea;
    display: grid;
    min-width: 760px;
    overflow: hidden;
}

.calendar-scroll {
    overflow-x: auto;
}

.grid-header,
.time-col,
.slot-cell {
    border-bottom: 1px solid #e5ebf2;
    border-right: 1px solid #e5ebf2;
}

.grid-header {
    background: #eef3f8;
    color: #172033;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.8rem;
    text-align: center;
}

.time-col {
    align-items: center;
    background: #f8fafc;
    color: #475569;
    display: flex;
    font-size: 0.78rem;
    font-weight: 700;
    justify-content: center;
    min-height: 76px;
    padding: 0.75rem;
}

.slot-cell {
    align-items: center;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    justify-content: center;
    min-height: 76px;
    padding: 0.75rem;
}

.slot-cell.empty {
    background: #f1f5f9;
}

.slot-pill {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
}

.slot-id {
    color: #64748b;
    font-size: 0.72rem;
}

.status-AVAILABLE { background: #dcfce7; color: #166534; }
.status-RESERVED { background: #fef3c7; color: #92400e; }
.status-BOOKED { background: #fee2e2; color: #991b1b; }
.status-EXPIRED { background: #e2e8f0; color: #475569; }

.demo-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    padding: 1.5rem;
}

.demo-panel,
.chat-panel {
    background: #ffffff;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
}

.demo-panel {
    padding: 1rem;
}

.demo-panel h1 {
    color: #0f172a;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.demo-panel ol {
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-left: 1.2rem;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.demo-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chat-panel {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 96px);
    min-height: 520px;
}

.chat-panel__header {
    border-bottom: 1px solid #e5ebf2;
    padding: 0.9rem 1rem;
}

.chat-panel__header h2 {
    color: #0f172a;
    font-size: 1rem;
}

.chat-panel__header p {
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.chat-panel__messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
    padding: 1rem;
}

.chat-panel__controls {
    border-top: 1px solid #e5ebf2;
    display: flex;
    gap: 0.6rem;
    padding: 0.9rem;
}

@media (max-width: 860px) {
    .admin-shell,
    .admin-home__grid,
    .shield-grid,
    .pranyx-section,
    .demo-layout,
    .demo-grid,
    .payload-diff {
        grid-template-columns: 1fr;
    }

    .pranyx-nav {
        padding: 1rem;
    }

    .pranyx-hero {
        padding: 6rem 1rem 3rem;
    }

    .pranyx-section {
        padding: 3.5rem 1rem;
    }

    .shield-panel__header.split,
    .admin-home__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .terminal-logs.dark .log-entry {
        grid-template-columns: 1fr;
    }

    .chat-panel {
        height: 520px;
    }
}

/* Voice Button Styles */
.btn-voice {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.btn-voice:hover {
    background: #e2e8f0;
    color: #475569;
}

.btn-voice.recording {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    animation: voice-pulse 1.5s infinite;
}

@keyframes voice-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
