:root {
  color-scheme: dark;
  --bg: #111316;
  --surface: #1a1c20;
  --surface-raised: #212429;
  --surface-hover: #292d33;
  --line: #30343a;
  --line-soft: #272b31;
  --text: #f3f2ef;
  --muted: #afb2b9;
  --faint: #9297a0;
  --accent: #ff956f;
  --accent-light: #ffab8c;
  --accent-soft: rgba(255, 149, 111, .10);
  --form-control-height: 38px;
  --green: #8bd9a5;
  --yellow: #e9c779;
  --red: #f08780;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: var(--font);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

.session-loading { min-height: 100vh; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.login-scene { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; background: var(--bg); }
.login-scene::before { content: none; }
.login-frame { width: min(1080px, 100%); min-height: min(620px, calc(100svh - 112px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: clamp(32px, 5vw, 64px); background: #17191d; }
.login-story::before, .login-story::after { content: none; }
.login-brand { display: inline-flex; align-items: center; align-self: flex-start; gap: 11px; color: var(--text); text-decoration: none; position: relative; z-index: 1; }
.login-brand img { width: 39px; height: 39px; object-fit: contain; }
.login-brand > span { font-size: 25px; font-weight: 800; letter-spacing: -1.7px; }
.login-brand > span > span { color: var(--accent); }
.login-story-copy { position: relative; z-index: 1; max-width: 470px; margin: auto 0; padding: 40px 0 30px; }
.login-kicker { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 11px var(--mono); letter-spacing: .08em; }
.login-kicker > span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.login-story h1 { margin-top: 20px; max-width: 470px; color: var(--text); font-size: clamp(36px, 4.5vw, 52px); font-weight: 650; line-height: 1.08; letter-spacing: -1.8px; }
.login-story h1 em { color: var(--accent); font-style: normal; }
.login-story-copy > p { max-width: 360px; margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.login-story-footer { display: none; }
.story-orbit { display: none; }
.login-panel { display: grid; place-items: center; min-width: 0; padding: clamp(32px, 5vw, 64px); background: var(--surface); }
.login-panel::before { content: none; }
.login-panel-content { width: min(100%, 360px); min-width: 0; }
.login-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.login-panel-label { color: var(--muted); font: 11px var(--mono); letter-spacing: .06em; white-space: nowrap; }
.login-secure { color: var(--faint); font-size: 12px; white-space: nowrap; }
.login-heading { margin: 40px 0 28px; }
.login-heading-mark { display: none; }
.login-heading-mark img { display: block; width: 31px; height: 31px; object-fit: contain; }
.login-heading h2 { color: var(--text); font-size: 30px; font-weight: 650; line-height: 1.15; letter-spacing: -.8px; }
.login-heading p { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.login-form { display: grid; gap: 16px; }
.login-field { display: grid; gap: 7px; min-width: 0; }
.login-field label { color: var(--text); font-size: 12px; font-weight: 600; }
.login-field input { width: 100%; height: var(--form-control-height); min-height: var(--form-control-height); padding: 0 11px; color: var(--text); background: #131519; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.login-field input:focus-visible { outline: 2px solid rgba(255,149,111,.5); outline-offset: 2px; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.login-submit { width: 100%; height: var(--form-control-height); min-height: var(--form-control-height); margin-top: 0; justify-content: space-between; padding: 0 17px; border-radius: 8px; }
.login-message { min-height: 21px; margin-top: 12px; font-size: 13px; line-height: 1.5; }
.login-panel-footer { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.footer-shield { flex: 0 0 auto; width: 13px; height: 15px; margin-top: 1px; border: 1px solid #8d746d; border-radius: 7px 7px 5px 5px; position: relative; }
.footer-shield::after { content: ""; position: absolute; width: 3px; height: 4px; top: 4px; left: 4px; border: 1px solid #8d746d; border-radius: 50%; }
.login-panel-footer p { color: var(--faint); font-size: 12px; line-height: 1.6; }
.login-scene-footer { width: min(1080px,100%); display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--faint); font: 11px var(--mono); letter-spacing: .04em; }
.login-scene-footer span:last-child { color: var(--muted); font-family: var(--font); letter-spacing: 0; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; padding: 22px 14px 16px; background: #15171a; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; z-index: 30; overflow-y: auto; }
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; margin: 0 0 25px; }
.brand-name { font-size: 22px; font-weight: 750; letter-spacing: -1.3px; }
.brand-name > span { color: var(--accent); }
.brand-mark { display: block; width: 30px; height: 30px; object-fit: contain; }
.nav-groups { display: flex; flex-direction: column; gap: 0; }
.nav-section { display: grid; gap: 3px; }
.nav-section + .nav-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.nav-group-label { padding: 0 12px; margin: 0 0 6px; color: var(--faint); font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.nav-item { position: relative; min-height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 11px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13px; transition: background .15s, color .15s; }
.nav-item:hover { background: var(--surface-hover); color: var(--text); }
.nav-item.active { color: var(--accent-light); background: rgba(255,149,111,.10); }
.nav-item.active::before { content: ""; position: absolute; inset: 8px auto 8px 0; width: 2px; border-radius: 2px; background: var(--accent); }
.nav-icon { flex: 0 0 18px; width: 18px; height: 18px; display: block; color: currentColor; }
.nav-label { line-height: 1.3; }
.sidebar-bottom { margin-top: auto; padding: 22px 12px 0; }
.sidebar-divider { height: 1px; background: var(--line); margin: 0 0 17px; }
.server-status { color: var(--muted); display: flex; align-items: center; gap: 8px; font: 11px var(--mono); letter-spacing: .04em; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(139,217,165,.1); }
.sidebar-version { padding: 10px 0 0 12px; color: var(--faint); font-size: 12px; }
.main-content { display: flex; flex-direction: column; min-height: 100vh; margin-left: 248px; padding: 0 32px 32px; width: calc(100% - 248px); max-width: none; }
.topbar { position: sticky; top: 0; z-index: 15; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.topbar-leading, .topbar-actions { display: flex; align-items: center; gap: 15px; min-width: 0; }
.breadcrumbs { color: var(--muted); font-size: 13px; display: flex; gap: 10px; align-items: center; min-width: 0; }
.breadcrumb-root { text-decoration: none; color: var(--muted); }.breadcrumb-root:hover { color: var(--text); }
.breadcrumb-separator { color: var(--faint); }.breadcrumbs strong { color: var(--text); font-weight: 550; }
.account-context { position: relative; display: flex; align-items: center; }
.account-trigger { display: flex; align-items: center; max-width: 270px; padding: 5px 7px; border: 1px solid transparent; border-radius: 10px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.account-trigger:hover, .account-trigger[aria-expanded="true"] { border-color: var(--line); background: var(--surface); }
.account-identity { display: flex; align-items: center; gap: 9px; max-width: 260px; }
.account-avatar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border: 1px solid rgba(255,149,111,.32); border-radius: 9px; color: var(--accent-light); background: #28201d; font-size: 13px; font-weight: 700; }
.account-copy { min-width: 0; display: grid; gap: 2px; }
.account-copy strong { overflow: hidden; max-width: 165px; color: var(--text); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { color: var(--faint); font-size: 12px; }
.account-caret { margin-left: 4px; color: var(--muted); font-size: 17px; line-height: 1; }
.account-menu-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: min(300px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 42px rgba(0,0,0,.38); }
.account-menu-identity { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 9px 12px; }
.account-menu-avatar { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 1px solid rgba(255,149,111,.32); border-radius: 11px; color: var(--accent-light); background: #28201d; font-size: 15px; font-weight: 700; }
.account-menu-copy { display: grid; min-width: 0; gap: 4px; }
.account-menu-copy strong, .account-menu-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-copy strong { color: var(--text); font-size: 13px; font-weight: 650; }
.account-menu-copy small { color: var(--muted); font-size: 12px; }
.account-menu-links { display: grid; gap: 2px; }
.account-menu-link, .account-menu-signout { min-height: 38px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 550; text-decoration: none; cursor: pointer; }
.account-menu-link:hover, .account-menu-signout:hover { color: var(--text); background: var(--surface-hover); }
.account-menu-divider { height: 1px; margin: 7px 3px; background: var(--line-soft); }
.account-menu-signout { width: 100%; border: 0; color: #ffaaa4; text-align: left; }
.account-menu-signout:hover { color: #ffd0cc; background: rgba(240,135,128,.09); }
.button { min-height: 38px; border: 1px solid transparent; border-radius: 8px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 13px; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.button:active { transform: translateY(1px); }.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { background: var(--accent); color: #251713; }.button-primary:hover { background: #ffab8c; }
.button-secondary { background: var(--surface-raised); border-color: var(--line); color: var(--text); }.button-secondary:hover { background: var(--surface-hover); border-color: #454b54; }
.button-quiet { min-height: var(--form-control-height); padding: 0 12px; color: var(--muted); background: transparent; border-color: var(--line); font-size: 13px; }.button-quiet:hover { color: var(--text); background: var(--surface-hover); }
.button-danger { color: #ffaca5; border-color: rgba(240,135,128,.32); background: rgba(240,135,128,.06); }.button-danger:hover { background: rgba(240,135,128,.12); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: transparent; cursor: pointer; }
.mobile-nav-toggle { display: none; }
.mobile-menu-icon { display: block; width: 18px; height: 18px; }
.page-root { display: flex; flex: 1 0 auto; flex-direction: column; gap: 20px; min-height: 0; width: min(100%, 1440px); margin-inline: auto; outline: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 34px 0 8px; }
.eyebrow { color: var(--accent); font: 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.page-heading .eyebrow { margin-bottom: 9px; }
.page-heading h1 { font-size: 28px; line-height: 1.18; font-weight: 650; letter-spacing: -.8px; }
.page-description { max-width: 700px; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.page-heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 36px; padding-top: 15px; border-top: 1px solid var(--line-soft); color: var(--faint); font: 11px var(--mono); letter-spacing: .04em; }
.page-footer b { color: var(--accent); padding: 0 4px; font-weight: 400; }
.page-footer span:last-child { color: var(--muted); font: 12px var(--font); letter-spacing: 0; }
.page-loading { padding: 30px 0; color: var(--muted); font-size: 12px; }

.page-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 16px; }
.span-12 { grid-column: span 12; }.span-8 { grid-column: span 8; }.span-7 { grid-column: span 7; }.span-6 { grid-column: span 6; }.span-5 { grid-column: span 5; }.span-4 { grid-column: span 4; }
.panel { min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-heading h2 { font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -.2px; }
.panel-heading h3 { font-size: 16px; }.panel-heading .eyebrow { margin-bottom: 7px; font-size: 11px; }
.panel-subtitle { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.panel-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.info-strip { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border: 1px solid var(--line-soft); border-left: 2px solid rgba(255,149,111,.45); border-radius: 10px; background: rgba(255,149,111,.035); color: var(--muted); }
.info-strip p { font-size: 12px; line-height: 1.5; }
.info-strip-icon { flex: 0 0 18px; width: 18px; height: 18px; color: var(--accent-light); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.metric-card { min-width: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.metric-label { color: var(--muted); font: 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.metric-value { margin-top: 12px; color: var(--text); font-size: 32px; font-weight: 650; letter-spacing: -.8px; }
.metric-detail { margin-top: 4px; color: var(--faint); font-size: 12px; line-height: 1.45; }
.split-panel { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.list-stack { display: grid; gap: 10px; }
.list-stack > .list-row { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 12px 0; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: transparent; }
.list-stack > .list-row:first-child { border-top: 0; }
.list-row-main { min-width: 0; display: grid; gap: 5px; }
.list-row-title { color: var(--text); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.list-row-meta { color: var(--faint); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.list-row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.state-line { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.state-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #777; }.state-dot.ready { background: var(--green); box-shadow: 0 0 0 3px rgba(139,217,165,.08); }.state-dot.warn { background: var(--yellow); }.state-dot.error { background: var(--red); }
.badge { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; min-height: 24px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-raised); color: var(--muted); font-size: 11px; line-height: 1; white-space: nowrap; }
.badge-good { border-color: rgba(139,217,165,.24); background: rgba(139,217,165,.08); color: #a9e8bb; }.badge-warn { border-color: rgba(233,199,121,.28); background: rgba(233,199,121,.08); color: #eed28d; }.badge-bad { border-color: rgba(240,135,128,.28); background: rgba(240,135,128,.08); color: #ffaaa4; }.badge-accent { border-color: rgba(255,149,111,.28); background: rgba(255,149,111,.10); color: var(--accent-light); }
.empty-state { min-height: 145px; display: grid; place-content: center; justify-items: center; gap: 9px; padding: 25px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; background: transparent; }
.empty-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 2px; border: 1px solid rgba(255,149,111,.24); border-radius: 10px; color: var(--accent-light); background: var(--accent-soft); }
.empty-state h3 { font-size: 14px; font-weight: 600; }.empty-state p { max-width: 460px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.inline-state { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 13px; }
.inline-state p { color: var(--muted); line-height: 1.5; }.error-state { border-color: rgba(240,135,128,.28); }.error-state strong { color: #ffaaa4; }
.loading-state { min-height: 75px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; }
.spinner { width: 14px; height: 14px; border: 1px solid rgba(255,149,111,.2); border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; align-items: start; }
.form-grid .field-full { grid-column: 1 / -1; }
.field { display: grid; grid-template-rows: auto auto auto; align-content: start; gap: 7px; min-width: 0; width: 100%; }
.field > label { color: var(--text); font-size: 12px; font-weight: 600; }
.field-help { color: var(--muted); font-size: 12px; line-height: 1.45; }
input, select, textarea { min-width: 0; width: 100%; min-height: var(--form-control-height); padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: #131519; color: var(--text); font-size: 13px; }
input:not([type="checkbox"]):not([type="radio"]), select { height: var(--form-control-height); min-height: var(--form-control-height); padding: 0 11px; line-height: 1.35; }
textarea { height: auto; min-height: 90px; resize: vertical; padding: 8px 11px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: .9; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="checkbox"], input[type="radio"] { width: 15px; min-width: 15px; min-height: 15px; height: 15px; padding: 0; border: 0; background: transparent; accent-color: var(--accent); }
.check-row { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.check-row input { flex: 0 0 15px; margin: 1px 0 0; }
.form-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.form-actions > .button, .login-submit, .discovery-controls > .button, .calendar-query-controls > .button, .activity-controls > .button, .learning-toggle { min-height: var(--form-control-height); }
.form-grid > .form-actions { grid-column: 1 / -1; margin-top: 0; }
.form-grid > .status-message, .form-grid > .form-message { grid-column: 1 / -1; margin-top: 0; }
.form-message, .status-message { min-height: 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-message:empty, .status-message:empty { display: none; min-height: 0; margin: 0; }
.form-message.error, .status-message.error { color: var(--red); }.form-message.success, .status-message.success { color: var(--green); }
.status-message { margin-top: 9px; }
.form-divider { height: 1px; margin: 18px 0; background: var(--line-soft); }
.form-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.waitlist-hand-off { max-width: 360px; white-space: pre-line; overflow-wrap: anywhere; }
.definition-list { display: grid; gap: 0; }.definition-item { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }.definition-item:last-child { border-bottom: 0; }
.definition-item dt { color: var(--muted); font-size: 12px; }.definition-item dd { color: var(--text); font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 580px; text-align: left; }
.data-table th { padding: 13px 14px; color: var(--muted); background: var(--surface-raised); font: 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; text-align: left; }
.data-table td { min-height: 48px; padding: 13px 14px; border-top: 1px solid var(--line-soft); color: var(--text); font-size: 13px; vertical-align: middle; }
.data-table tbody tr { height: 48px; }
.data-table tr:hover td { background: rgba(255,255,255,.025); }
.identity-cell { display: grid; gap: 4px; }.identity-cell strong { color: var(--text); font-size: 13px; }.identity-cell small { color: var(--faint); font-size: 12px; }
.text-link { color: var(--accent-light); font-size: 13px; text-decoration: none; }.text-link:hover { text-decoration: underline; }
.segmented { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #131519; }.segmented button { min-height: 32px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }.segmented button[aria-pressed="true"] { background: rgba(255,149,111,.10); color: var(--accent-light); }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); font-size: 13px; line-height: 1.6; }
.danger-zone { border-color: rgba(240,135,128,.23); }
.mobile-scrim { display: none; }

/* Page components share the same control, table, and state styles. */
.overview-sections { margin-top: 0; }
.overview-sections > .panel { grid-column: span 6; }
.provider-content { display: grid; gap: 24px; margin-top: 0; }
.provider-list-panel .provider-connection-content, .provider-list-panel .profile-content { display: grid; gap: 16px; }
.provider-create-slot { padding-bottom: 1px; }
.subsection-title { margin: 0 0 13px; color: #d8d5d2; font-size: 12px; font-weight: 650; }
.provider-create-form { padding: 18px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-raised); }
.provider-connection-content > .form-divider, .profile-content > .provider-create-slot > .form-divider { margin: 0; }
.provider-card { min-width: 0; padding: 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: transparent; }
.provider-card-head, .provider-card-title, .service-title-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
.provider-card-info { min-width: 0; display: grid; gap: 7px; }
.provider-card-title { align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 7px; }
.provider-card-title h3, .service-title-line h2 { color: var(--text); font-size: 15px; font-weight: 600; }
.provider-card .list-row-actions { max-width: 420px; }
.provider-summary { align-items: stretch; gap: 12px; }
.provider-default { display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: center; align-items: center; gap: 4px 16px; padding: 17px 20px; }
.provider-default > .eyebrow, .provider-default > .default-profile-name, .provider-default > .panel-subtitle { grid-column: 1; }
.provider-default > .button { grid-column: 2; grid-row: 1 / span 3; }
.provider-security-note { align-self: stretch; }
.default-profile-name { margin-top: 8px; color: var(--text); font-size: 18px; font-weight: 650; }
.inline-edit { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); }
.key-edit { max-width: 700px; }
.provider-create-slot { display: grid; gap: 13px; }
.bot-workspace-layout { display: grid; grid-template-columns: minmax(280px, 310px) minmax(0, 1fr); align-items: start; gap: 20px; }
.bot-directory, .bot-detail-pane { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bot-directory { position: sticky; top: 88px; max-height: calc(100vh - 108px); display: flex; flex-direction: column; gap: 14px; padding: 18px 12px 12px; }
.bot-directory-header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 5px; }
.bot-directory-header h2 { color: var(--text); font-size: 16px; font-weight: 600; }
.bot-directory-count { flex: 0 0 auto; color: var(--faint); font-size: 12px; }
.bot-directory > input { flex: 0 0 var(--form-control-height); }
.bot-directory-list { display: grid; gap: 4px; min-height: 0; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.bot-directory-item { min-width: 0; }
.bot-directory-row { display: grid; width: 100%; min-height: 76px; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 10px; padding: 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.bot-directory-row:hover { border-color: var(--line-soft); background: var(--surface-raised); }
.bot-directory-row.is-selected { border-color: rgba(255,149,111,.24); background: var(--accent-soft); box-shadow: inset 2px 0 var(--accent); }
.bot-directory-row:focus-visible { position: relative; z-index: 1; outline-offset: 1px; }
.bot-directory-icon, .bot-detail-icon { display: grid; flex: 0 0 auto; place-items: center; color: var(--accent-light); background: rgba(255,149,111,.09); }
.bot-directory-icon { width: 34px; height: 34px; border-radius: 9px; }
.bot-directory-line-icon { width: 18px; height: 18px; }
.bot-directory-copy { display: grid; min-width: 0; gap: 7px; }
.bot-directory-title-line { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 7px; }
.bot-directory-name { min-width: 0; overflow: hidden; color: var(--text); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.bot-directory-title-line .badge { flex: 0 0 auto; min-height: 21px; padding-inline: 7px; font-size: 10px; }
.bot-directory-model { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.bot-directory-model.is-error { color: #ffaaa4; }
.bot-directory-empty { padding: 8px 4px; }
.bot-directory-empty .empty-state { min-height: 110px; padding: 16px 8px; }
.bot-detail-pane { padding: 22px 24px; }
.bot-detail-content { min-width: 0; }
.bot-detail-header { display: flex; align-items: center; gap: 13px; }
.bot-detail-icon { width: 42px; height: 42px; border-radius: 11px; }
.bot-detail-line-icon { width: 22px; height: 22px; }
.bot-detail-identity { flex: 1 1 auto; min-width: 0; }
.bot-detail-identity h2 { overflow: hidden; margin: 4px 0 2px; color: var(--text); font-size: 21px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.bot-id { color: var(--faint); font: 12px var(--mono); overflow-wrap: anywhere; }
.bot-detail-header > .badge { flex: 0 0 auto; }
.bot-detail-facts { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.bot-detail-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.bot-section-heading { display: grid; gap: 5px; margin-bottom: 14px; }
.bot-section-heading h3 { color: var(--text); font-size: 16px; font-weight: 600; }
.bot-effective-model { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 12px 14px; border-radius: 9px; background: var(--surface-raised); }
.bot-effective-copy { display: grid; min-width: 0; gap: 4px; }
.bot-effective-name { overflow-wrap: anywhere; color: var(--text); font-size: 14px; font-weight: 600; }
.bot-effective-details { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.bot-effective-state { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.bot-model-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px 14px; }
.bot-model-field { max-width: 100%; grid-template-rows: auto auto; }
.bot-model-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.bot-model-controls > .status-message { grid-column: 1 / -1; }
.bot-identity-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.bot-identity-form > .field:nth-child(3), .bot-identity-form > .form-actions, .bot-identity-form > .status-message { grid-column: 1 / -1; }
.bot-identity-form textarea { min-height: 96px; }
.bot-identity-form > .field:nth-child(3) textarea { min-height: 164px; }
.bot-detail-state { display: grid; justify-items: start; gap: 13px; min-height: 220px; align-content: center; color: var(--muted); font-size: 13px; line-height: 1.5; }
.bot-detail-state.error { color: #ffaaa4; }
.provider-page { gap: 14px; }
.provider-default-strip { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 18px; min-height: 72px; padding: 12px 17px; border: 1px solid var(--line-soft); border-left: 2px solid rgba(255,149,111,.42); border-radius: 10px; background: rgba(255,149,111,.025); }
.provider-default-copy { display: grid; min-width: 0; gap: 3px; }
.provider-default-name { overflow: hidden; color: var(--text); font-size: 14px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.provider-default-details { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; line-height: 1.4; }
.provider-default-strip > .status-message { grid-column: 1 / -1; margin-top: 0; }
.resource-workspace-layout { display: grid; grid-template-columns: minmax(260px, 310px) minmax(0,1fr); align-items: start; gap: 20px; }
.resource-directory, .resource-detail-pane { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.resource-directory { position: sticky; top: 88px; max-height: calc(100vh - 108px); display: flex; flex-direction: column; gap: 13px; padding: 17px 12px 12px; }
.resource-directory-header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 5px; }
.resource-directory-header h2 { overflow: hidden; color: var(--text); font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.resource-directory-count { flex: 0 0 auto; color: var(--faint); font-size: 12px; }
.resource-directory-switch { display: flex; width: 100%; }
.resource-directory-switch button { flex: 1 1 0; }
.resource-directory-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.resource-directory-actions > .button { min-width: 0; }
.resource-directory > input { flex: 0 0 var(--form-control-height); }
.resource-directory-list { display: grid; min-height: 0; overflow-y: auto; gap: 4px; margin: 0; padding: 0; list-style: none; }
.resource-directory-item { min-width: 0; }
.resource-directory-row { display: grid; width: 100%; min-height: 76px; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 10px; padding: 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.resource-directory-row:hover { border-color: var(--line-soft); background: var(--surface-raised); }
.resource-directory-row.is-selected { border-color: rgba(255,149,111,.24); background: var(--accent-soft); box-shadow: inset 2px 0 var(--accent); }
.resource-directory-row:focus-visible { position: relative; z-index: 1; outline-offset: 1px; }
.resource-directory-icon, .resource-detail-icon { display: grid; flex: 0 0 auto; place-items: center; color: var(--accent-light); background: rgba(255,149,111,.09); }
.resource-directory-icon { width: 34px; height: 34px; border-radius: 9px; }
.resource-directory-line-icon { width: 18px; height: 18px; }
.resource-directory-copy { display: grid; min-width: 0; gap: 7px; }
.resource-directory-title-line { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 7px; }
.resource-directory-name { min-width: 0; overflow: hidden; color: var(--text); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.resource-directory-title-line .badge { flex: 0 0 auto; min-height: 21px; padding-inline: 7px; font-size: 10px; }
.resource-directory-meta { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.resource-directory-empty { padding: 8px 4px; }
.resource-directory-empty .empty-state { min-height: 110px; padding: 16px 8px; }
.resource-detail-pane { padding: 22px 24px; }
.resource-detail-content { min-width: 0; }
.resource-detail-header { display: flex; align-items: center; gap: 13px; }
.resource-detail-icon { width: 42px; height: 42px; border-radius: 11px; }
.resource-detail-line-icon { width: 22px; height: 22px; }
.resource-detail-title { flex: 1 1 auto; min-width: 0; }
.resource-detail-title h2 { margin-top: 4px; overflow: hidden; color: var(--text); font-size: 21px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.resource-detail-title > p, .resource-detail-meta { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.resource-detail-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.resource-detail-section { margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--line-soft); }
.resource-section-heading { display: grid; gap: 5px; margin-bottom: 14px; }
.resource-section-heading h3 { color: var(--text); font-size: 15px; font-weight: 600; }
.resource-section-heading p { max-width: 760px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.service-discovery-heading { grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 5px 16px; }
.service-discovery-heading-copy { display: grid; min-width: 0; gap: 5px; }
.service-discovery-action { grid-column: 2; grid-row: 1; min-height: 34px; padding-inline: 11px; font-size: 12px; }
.service-discovery-section .discovery-controls { grid-template-columns: minmax(0,1fr); }
.service-discovery-summary { margin: -3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.resource-detail-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.resource-danger-section { border-color: rgba(240,135,128,.23); }
.resource-danger-section .resource-section-heading h3 { color: #ffaaa4; }
.resource-detail-state { display: grid; justify-items: start; align-content: center; gap: 13px; min-height: 220px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.resource-detail-state.error { color: #ffaaa4; }
.voice-page { gap: 14px; }
.voice-workspace-layout { align-items: start; }
.voice-detail-pane { min-height: 320px; }
.voice-readiness-note { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.voice-readiness-note.is-error { color: #eed28d; }
.voice-scope-note { margin: 9px 0 0; color: var(--text-secondary, var(--muted)); font-size: 12px; line-height: 1.55; }
.voice-scope-note.is-muted { color: var(--muted); }
.voice-override-actions { margin-top: 15px; }
.voice-credentials-fields { min-width: 0; }
.voice-credentials-fields[hidden] { display: none !important; }
.voice-form-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.voice-enabled-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; color: var(--muted); font-size: 13px; cursor: pointer; }
.voice-enabled-toggle input { margin: 0; }
.voice-call-summary { margin-top: 16px; padding: 13px 15px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface-raised); color: var(--text); font-size: 13px; line-height: 1.5; }
.voice-connection-actions { align-items: center; }
.voice-call-cost-note { grid-column: 1 / -1; }
.resource-create-detail > .resource-detail-header { margin-bottom: 7px; }
.resource-create-detail .resource-form { margin-top: 19px; }
.resource-form > .field { min-width: 0; }
.resource-form .form-actions { align-items: center; }
.resource-model-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.resource-model-name { color: var(--text); font-size: 14px; font-weight: 600; }
.resource-model-facts { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.resource-readonly-note { margin-top: 18px; }
.model-edit-form > .status-message { grid-column: 1 / -1; }
.model-edit-form > .form-actions { grid-column: 1 / -1; }
.model-edit-form > .field-help, .model-edit-form .field-help { font-size: 12px; }
.knowledge-page { gap: 14px; }
.knowledge-workspace-layout { align-items: start; }
.knowledge-directory { min-height: 300px; }
.knowledge-detail-pane { min-height: 340px; }
.knowledge-empty-icon, .knowledge-unavailable-icon { width: 25px; height: 25px; color: var(--accent-light); }
.knowledge-detail-header { align-items: flex-start; }
.knowledge-detail-header .resource-detail-title { padding-top: 2px; }
.knowledge-detail-actions { justify-content: flex-end; }
.knowledge-detail-actions > .button { min-height: 34px; padding-inline: 11px; font-size: 12px; }
.knowledge-toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; color: var(--muted); font-size: 12px; cursor: pointer; }
.knowledge-toggle input { position: absolute; z-index: 1; top: 50%; left: 0; width: 34px; min-width: 34px; height: 19px; min-height: 19px; margin: 0; padding: 0; transform: translateY(-50%); opacity: 0; cursor: pointer; }
.knowledge-toggle-track { position: relative; width: 34px; height: 19px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-raised); transition: background .16s ease, border-color .16s ease; }
.knowledge-toggle-track::after { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--muted); content: ""; transition: transform .16s ease, background .16s ease; }
.knowledge-toggle input:checked + .knowledge-toggle-track { border-color: rgba(255,149,111,.65); background: var(--accent-soft); }
.knowledge-toggle input:checked + .knowledge-toggle-track::after { transform: translateX(15px); background: var(--accent-light); }
.knowledge-toggle input:focus-visible + .knowledge-toggle-track { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.knowledge-toggle input:disabled + .knowledge-toggle-track { opacity: .55; cursor: wait; }
.knowledge-remove-prompt { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; }
.knowledge-remove-prompt[hidden] { display: none; }
.knowledge-remove-prompt .resource-section-heading { margin: 0; }
.knowledge-source-settings .resource-form { max-width: 560px; }
.knowledge-source-settings .form-actions { margin-top: 2px; }
.knowledge-detail-header .resource-detail-title h2 { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.knowledge-documents-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.knowledge-documents-heading-copy { display: grid; gap: 5px; }
.knowledge-doc-count { flex: 0 0 auto; color: var(--faint); font-size: 12px; }
.knowledge-table-wrap { overflow-x: auto; }
.knowledge-document-table { min-width: 580px; }
.knowledge-document-table th:last-child, .knowledge-document-table td:last-child { width: 72px; text-align: right; }
.knowledge-file-cell { min-width: 190px; }
.knowledge-file-cell strong, .knowledge-file-cell small { display: block; overflow-wrap: anywhere; }
.knowledge-file-cell small { margin-top: 4px; color: var(--faint); font-size: 11px; }
.knowledge-safe-error { max-width: 260px; color: var(--muted); font-size: 12px; }
.knowledge-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.knowledge-pagination[hidden], .knowledge-table-wrap[hidden], .knowledge-documents-empty[hidden] { display: none; }
.knowledge-page-label { color: var(--muted); font-size: 12px; }
.knowledge-form { width: min(100%, 680px); }
.knowledge-form .knowledge-folder-help, .knowledge-folder-help { max-width: 680px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.knowledge-bot-empty { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; color: var(--muted); background: var(--surface-raised); font-size: 12px; line-height: 1.5; }
.knowledge-create-detail > .resource-detail-header { margin-bottom: 4px; }
.knowledge-api-unavailable { min-height: 320px; justify-items: center; text-align: center; }
.knowledge-api-unavailable .button { margin-top: 4px; }
.knowledge-api-unavailable strong { color: var(--text); font-size: 15px; }
.knowledge-api-unavailable span { max-width: 420px; }
.knowledge-detail-pane > .resource-detail-content { min-width: 0; }
.service-page { gap: 20px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-top: 12px; }
.service-card { display: grid; align-content: start; gap: 14px; }
.service-title-line { align-items: center; justify-content: flex-start; flex-wrap: wrap; }
.service-endpoint { color: var(--faint); font: 12px var(--mono); overflow-wrap: anywhere; }
.service-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.service-updated { color: var(--faint); font-size: 12px; }
.service-credential-form { display: grid; gap: 8px; }
.discovery-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: end; }
.admin-account-service { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: transparent; }
.service-admin-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.registry-create-form { max-width: 920px; }
.calendar-connections { display: grid; gap: 12px; }
.calendar-connect-form { padding: 18px; border: 1px solid var(--line-soft); border-radius: 10px; }
.calendar-provider-fields { min-width: 0; }
.calendar-provider-fields.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.calendar-provider-fields.form-grid[hidden] { display: none !important; }
.provider-hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.calendar-card { padding: 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: transparent; }
.calendar-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.calendar-card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.calendar-card-title h3 { font-size: 15px; }.calendar-card-title .list-row-meta { flex-basis: 100%; }
.calendar-detail { display: grid; gap: 14px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.calendar-query-controls { display: grid; grid-template-columns: minmax(180px,1.5fr) repeat(2,minmax(150px,1fr)) auto; gap: 10px; align-items: end; }
.calendar-events { display: grid; gap: 12px; }
.event-list { max-height: 650px; overflow: auto; padding-right: 3px; }
.calendar-event-form { padding: 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-raised); }
.event-card { display: grid; gap: 10px; padding: 15px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-raised); }
.event-card-head, .run-event-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.event-copy { min-width: 0; display: grid; gap: 5px; }.event-copy h3 { font-size: 14px; }.event-location, .event-description { color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.calendar-event-form .field-full { grid-column: 1 / -1; }
.activity-controls { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 0; }
.activity-filter { display: grid; gap: 7px; width: min(360px, 100%); color: var(--text); font-size: 12px; }
.activity-list { display: grid; gap: 0; }
.activity-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: transparent; }
.activity-row:first-child { border-top: 0; }
.activity-main { min-width: 0; display: grid; gap: 7px; }.activity-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }.activity-title-line h3 { font-size: 15px; }
.activity-summary { color: var(--text); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }.activity-meta { color: var(--faint); font-size: 12px; }
.activity-actions { display: flex; gap: 8px; flex-wrap: wrap; }.activity-detail { display: grid; gap: 10px; margin-top: 8px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-raised); }
.activity-run-facts { display: flex; gap: 8px 16px; flex-wrap: wrap; color: var(--muted); font: 12px var(--mono); }.run-event { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }.run-event-title strong { color: var(--text); font-size: 13px; text-transform: capitalize; }.run-event-title span { color: var(--faint); font-size: 12px; }
.profile-panel { width: min(100%, 820px); }
.profile-completion-notice { width: min(100%, 1050px); display: flex; align-items: center; gap: 12px; margin: 18px auto 0; padding: 12px 15px; border: 1px solid rgba(233,199,121,.24); border-left: 2px solid var(--yellow); border-radius: 10px; background: rgba(233,199,121,.045); }
.profile-completion-icon { flex: 0 0 18px; width: 18px; height: 18px; color: var(--yellow); }
.profile-completion-copy { min-width: 0; flex: 1 1 auto; display: grid; gap: 3px; }
.profile-completion-copy strong { color: var(--text); font-size: 12px; }
.profile-completion-copy p { color: var(--muted); font-size: 12px; line-height: 1.45; }
.profile-completion-notice > .button { flex: 0 0 auto; }
.account-settings-layout { width: min(100%, 1050px); display: grid; grid-template-columns: 190px minmax(0, 820px); align-items: start; gap: 24px; margin-inline: auto; }
.account-settings-nav { position: sticky; top: 88px; display: grid; gap: 4px; padding: 8px; border: 1px solid var(--line-soft); border-radius: 11px; background: #15171a; }
.account-settings-link { min-height: 38px; display: flex; align-items: center; padding: 0 11px; border-radius: 7px; color: var(--muted); font-size: 13px; text-decoration: none; }
.account-settings-link:hover { color: var(--text); background: var(--surface-hover); }
.account-settings-link.active { color: var(--accent-light); background: var(--accent-soft); }
.account-settings-main { min-width: 0; }
.profile-form > .form-actions { justify-content: flex-end; }
.account-username { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-raised); }.account-username .field-label { color: var(--muted); font-size: 12px; }.account-username strong { font-size: 13px; }
.address-section-content, .about-me-content { display: grid; gap: 14px; }
.section-help { min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.address-toolbar, .about-me-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.address-list, .about-me-list { display: grid; gap: 9px; min-width: 0; }
.address-card { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-raised); }
.address-card-copy { min-width: 0; display: grid; gap: 6px; }
.address-card-copy h3 { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.address-card-details { color: var(--muted); font-size: 12px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.address-card-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.address-card-actions .button { min-height: 34px; padding-inline: 10px; }
.address-editor-root { min-width: 0; }
.address-editor-panel { width: 100%; background: var(--surface-raised); }
.address-editor-panel .panel-heading { margin-bottom: 16px; }
.address-editor-panel .panel-subtitle { max-width: 600px; }
.section-save-actions { justify-content: flex-end; }
.about-me-note { min-height: 0; align-items: flex-start; padding: 12px 14px; }
.about-me-note .info-strip-icon { margin-top: 1px; }
.about-me-row { min-width: 0; display: grid; grid-template-columns: minmax(130px, .8fr) minmax(0, 1.6fr) auto; align-items: end; gap: 12px; padding: 13px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-raised); }
.about-me-row textarea { min-height: 72px; }
.about-me-remove { min-height: 38px; padding-inline: 10px; }
.learning-policy-content { display: flex; align-items: center; justify-content: space-between; gap: 24px; }.learning-policy-copy { max-width: 700px; }.learning-policy-copy h3 { font-size: 15px; }.learning-policy-actions { display: grid; justify-items: end; gap: 8px; }.learning-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }.learning-toggle { width: auto; min-width: 115px; justify-self: start; }
.secret-state { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.user-table-wrap, .computers-table-wrap { margin-top: 2px; }
.load-more { justify-self: start; }
.logout-failure { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 0; padding: 14px 16px; border: 1px solid rgba(240,135,128,.28); border-radius: 10px; background: rgba(240,135,128,.06); color: #ffaaa4; font-size: 13px; line-height: 1.5; }

@media (max-width: 1100px) {
  .span-8, .span-7, .span-5 { grid-column: span 12; }
  .span-6, .span-4 { grid-column: span 6; }
}
@media (max-width: 1050px) {
  .bot-workspace-layout { grid-template-columns: minmax(0,1fr); }
  .bot-directory { position: static; max-height: none; }
  .bot-directory-list { max-height: min(320px, 45vh); }
  .resource-workspace-layout { grid-template-columns: minmax(0,1fr); }
  .resource-directory { position: static; max-height: none; }
  .resource-directory-list { max-height: min(320px, 45vh); }
  .knowledge-detail-header { flex-wrap: wrap; }
  .knowledge-detail-actions { width: 100%; justify-content: flex-start; margin-left: 55px; }
}
@media (max-width: 900px) {
  .sidebar { width: min(300px, 86vw); padding-top: 21px; transform: translateX(-102%); visibility: hidden; transition: transform .22s ease, visibility .22s; box-shadow: 16px 0 30px rgba(0,0,0,.28); }
  .sidebar.mobile-open { transform: translateX(0); visibility: visible; }
  .mobile-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.58); }
  .main-content { width: 100%; margin-left: 0; padding: 0 20px 26px; }
  .mobile-nav-toggle { display: grid; }
  .topbar { min-height: 68px; gap: 12px; }.topbar-leading, .topbar-actions { gap: 10px; }
  .breadcrumbs { gap: 8px; font-size: 13px; }
  .page-heading { padding-top: 30px; }
  .span-12, .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; }
  .split-panel { grid-template-columns: 1fr; }
  .page-footer { max-width: 1440px; width: 100%; margin: 32px auto 0; }
  .account-settings-layout { width: min(100%, 820px); grid-template-columns: minmax(0,1fr); gap: 14px; }
  .account-settings-nav { position: static; display: flex; gap: 4px; overflow-x: auto; padding: 5px; }
  .account-settings-link { flex: 0 0 auto; }
}
@media (max-width: 720px) {
  .login-scene { justify-content: flex-start; padding: 24px 16px; }
  .login-frame { width: min(100%, 480px); min-height: 0; grid-template-columns: 1fr; border-radius: 12px; }
  .login-story { min-height: 0; padding: 22px 24px 0; }
  .login-story-copy { margin: 0; padding: 16px 0 10px; }
  .login-kicker, .login-story-copy > p, .login-story-footer, .login-panel-footer, .login-scene-footer { display: none; }
  .login-story h1 { margin-top: 0; font-size: 28px; letter-spacing: -.7px; }
  .login-panel { padding: 22px 24px 26px; }
  .login-panel-top { display: none; }
  .login-heading { margin: 0 0 20px; }
  .login-heading h2 { font-size: 26px; }
  .login-panel-content { width: 100%; }
}
@media (max-width: 640px) {
  .provider-default-strip { grid-template-columns: minmax(0,1fr); align-items: start; padding: 12px 14px; }
  .provider-default-strip > .button { justify-self: start; }
  .resource-detail-pane { padding: 18px 16px; }
  .knowledge-remove-prompt { grid-template-columns: minmax(0,1fr); }
  .knowledge-detail-actions { margin-left: 0; }
  .knowledge-documents-heading { align-items: flex-start; }
  .knowledge-pagination { justify-content: space-between; }
  .resource-directory { padding: 15px 10px 10px; }
  .resource-detail-title h2 { font-size: 19px; }
  .service-discovery-heading { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .service-discovery-action { grid-column: 1; grid-row: auto; justify-self: start; }
  .resource-model-facts { display: grid; gap: 6px; }
  .main-content { padding: 0 16px 24px; }
  .topbar { gap: 8px; }.topbar-leading, .topbar-actions { gap: 8px; }
  .topbar-actions { flex: 0 0 auto; }.account-trigger { max-width: 170px; padding: 4px 5px; }.account-copy { display: grid; }.account-copy strong { max-width: 90px; font-size: 12px; }.account-copy small { display: none; }.account-identity { gap: 7px; }.account-caret { margin-left: 1px; }
  .breadcrumbs { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.breadcrumb-root, .breadcrumb-separator { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; padding: 26px 0 8px; }
  .page-heading h1 { font-size: 26px; }.page-heading-actions { width: 100%; }
  .page-heading-actions > .button { min-width: 0; }
  .page-footer { flex-direction: column; gap: 8px; margin-top: 28px; }
  .page-grid, .form-grid { grid-template-columns: minmax(0,1fr); }
  .form-grid .field-full, .form-grid > .form-actions { grid-column: 1; }
  .card-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }.panel-heading { gap: 12px; flex-wrap: wrap; }
  .discovery-controls, .service-admin-controls, .calendar-provider-fields.form-grid, .calendar-query-controls { grid-template-columns: minmax(0,1fr); }
  .voice-credentials-fields.form-grid { grid-template-columns: minmax(0,1fr); }
  .calendar-connect-form .field-full { grid-column: auto; }
  .learning-policy-content { align-items: flex-start; flex-direction: column; gap: 15px; }
  .learning-policy-actions { justify-items: start; }
  .list-row, .activity-row { flex-direction: column; }.list-row-actions, .activity-actions { justify-content: flex-start; }
  .activity-controls { align-items: stretch; flex-direction: column; }
  .activity-filter { width: 100%; }
  .bot-detail-pane { padding: 18px; }
  .bot-detail-identity h2 { font-size: 19px; }
  .bot-effective-model { align-items: flex-start; flex-direction: column; }
  .bot-effective-state { justify-content: flex-start; }
  .bot-model-controls { grid-template-columns: minmax(0,1fr); }
  .bot-model-actions { justify-content: flex-start; }
  .bot-model-controls > .status-message { grid-column: 1; }
  .bot-identity-form { grid-template-columns: minmax(0,1fr); }
  .bot-identity-form > .field:nth-child(3), .bot-identity-form > .form-actions, .bot-identity-form > .status-message { grid-column: 1; }
  .learning-state { white-space: normal; }
  .logout-failure { align-items: flex-start; flex-direction: column; }
  .profile-completion-notice { align-items: flex-start; flex-wrap: wrap; margin-top: 14px; padding: 12px; }
  .profile-completion-notice > .button { margin-left: 30px; }
  .address-toolbar, .about-me-toolbar { align-items: flex-start; flex-direction: column; }
  .address-card { align-items: flex-start; flex-direction: column; }
  .address-card-actions { width: 100%; }
  .address-card-actions > .button { flex: 1 1 0; }
  .about-me-row { grid-template-columns: minmax(0,1fr); gap: 11px; }
  .about-me-remove { justify-self: start; }
  .login-scene { justify-content: flex-start; padding: 20px 16px; }
  .login-frame { width: min(100%, 460px); min-height: 0; grid-template-columns: 1fr; border-radius: 12px; }
  .login-story { min-height: 0; padding: 20px 22px 0; }
  .login-brand img { width: 28px; height: 28px; }.login-brand > span { font-size: 20px; }
  .login-story-copy { margin: 0; padding: 15px 0 9px; }.login-kicker { display: none; }
  .login-story h1 { margin-top: 0; font-size: 24px; letter-spacing: -.6px; }.login-story-copy > p { display: none; }
  .login-story-footer, .login-panel-footer, .login-scene-footer { display: none; }
  .login-panel { padding: 20px 22px 24px; }
  .login-panel-top { display: none; }.login-heading { margin: 0 0 20px; }.login-heading h2 { font-size: 25px; }
  .login-heading p { font-size: 13px; }
  .login-form { gap: 14px; }
  .login-panel-content { width: 100%; }
}
@media (max-width: 390px) {
  .account-avatar { width: 30px; height: 30px; flex-basis: 30px; }
  .account-trigger { max-width: 145px; }
  .account-copy strong { max-width: 72px; }
  .account-menu-panel { right: -2px; }
  .topbar-leading { min-width: 0; flex: 1 1 auto; }
  .breadcrumbs strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .nav-item { font-size: 13px; }
  .provider-card-head, .calendar-card-head { flex-direction: column; }
  .list-row-actions { width: 100%; }
  .list-row-actions > .button { flex: 1 1 auto; }
  .data-table { min-width: 620px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Admin Features page */
.feature-hidden { display: none !important; }
.feature-banner { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--red); border-radius: 8px; color: var(--red); background: rgba(240, 135, 128, .08); }
.feature-list { display: flex; flex-direction: column; }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.feature-row:first-child { border-top: 0; }
.feature-row > .status-message { grid-column: 1 / -1; margin-top: 0; }
.feature-title { font-weight: 600; color: var(--text); }
.feature-env { display: inline-block; margin-top: 2px; font: 10px var(--mono); color: var(--faint); letter-spacing: .4px; }
.feature-description, .feature-note { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.feature-note, .feature-hint { color: var(--faint); font-size: 12px; }
.feature-hint { margin: 4px 0 0; }
.feature-control { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.feature-switch { min-width: 64px; }
.feature-switch.on { border-color: var(--accent); color: var(--accent-light); background: var(--accent-soft); }
.feature-segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.feature-segment { position: relative; display: inline-block; padding: 7px 12px; border-left: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.feature-segment:first-child { border-left: 0; }
.feature-segment.selected { background: var(--accent-soft); color: var(--accent-light); }
.feature-segment-input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.feature-segment:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.feature-segment-input:disabled, .feature-switch:disabled { cursor: default; }
.feature-segment:has(:disabled), .feature-switch:disabled { opacity: .55; }
.feature-text-form { display: flex; gap: 8px; }
.feature-input { width: min(280px, 60vw); min-height: var(--form-control-height); padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--text); font: 13px var(--mono); }
.feature-audit { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
.feature-audit-row { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .feature-row { grid-template-columns: minmax(0, 1fr); }
  .feature-control { justify-content: flex-start; }
}
