/* Veyra Tasks · Interface 4.1.0. One palette, one app viewport. */
:root {
  color-scheme: only dark;
  --bg: #080809;
  --surface: #151417;
  --surface-2: #211f24;
  --surface-3: #2b2830;
  --line: #302c34;
  --text: #f3eef6;
  --muted: #b4acba;
  --muted-2: #918997;
  --accent: #d9baf1;
  --accent-strong: #c28bec;
  --accent-container: #594567;
  --accent-soft: #302438;
  --danger: #ffb5bd;
  --danger-bg: #392129;
  --warning: #e6ca92;
  --success: #b5d9c1;
  --radius: 24px;
  --nav-height: 66px;
  --nav-space: calc(var(--nav-height) + 38px + env(safe-area-inset-bottom, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); }
html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 1rem; line-height: 1.45; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, label, input, textarea, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button, a, input, textarea, select, summary { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); }
button:active:not(:disabled) { filter: brightness(1.12); }
button, input, textarea, select, .task-card, .team-card { min-width: 0; }
a { color: var(--accent); }
img, svg { max-width: 100%; }
.hidden, [hidden] { display: none !important; }
.eyebrow { display: none; }
.brand-label { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; margin-bottom: 4px; }
.veyra-mark { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; }
.veyra-mark svg { width: 44px; height: 44px; overflow: visible; }
.veyra-mark svg path:first-child { fill: none; stroke: var(--accent-strong); stroke-width: 7; stroke-linecap: round; }
.veyra-mark svg path:nth-child(n+2) { fill: var(--accent-strong); stroke: none; }
.ui-icon { display: inline-block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex: 0 0 auto; }

/* Only the content scrolls. System bars and the floating island stay put. */
.app-shell { position: fixed; inset: 0; height: 100%; height: var(--app-height, 100dvh); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); overflow: hidden; }
.topbar { width: min(100%, 760px); margin-inline: auto; flex: 0 0 auto; min-height: 72px; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg); z-index: 10; }
.topbar-copy { min-width: 0; }
.topbar-copy strong { font-size: 1.2rem; font-weight: 650; letter-spacing: -.025em; }
#dateLine { display: none; }
.avatar-button, .profile-avatar { display: grid; place-items: center; overflow: hidden; border: 0; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.avatar-button { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; }
.avatar-button img, .profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.main-shell { flex: 1 1 0; min-height: 0; width: min(100%, 760px); margin-inline: auto; padding: 12px 22px var(--nav-space); overflow: hidden auto; overscroll-behavior-y: contain; scroll-padding-block: 16px var(--nav-space); -webkit-overflow-scrolling: touch; }
.main-shell, .login-shell, .dialog { scrollbar-width: none; -ms-overflow-style: none; }
.main-shell::-webkit-scrollbar, .login-shell::-webkit-scrollbar, .dialog::-webkit-scrollbar { width: 0; height: 0; display: none; }
.view { display: none; }
.view.active { display: block; animation: view-in .16s ease-out; }
@keyframes view-in { from { opacity: .55; } to { opacity: 1; } }
#homeView { padding-bottom: 0; }
.bottom-nav { position: fixed; z-index: 40; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(calc(100% - 40px), 348px); height: var(--nav-height); padding: 7px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; border: 1px solid #262329; border-radius: 999px; background: #171519; box-shadow: 0 5px 18px #0005; }
.nav-item { border: 0; border-radius: 999px; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .83rem; font-weight: 600; }
.nav-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; }
.nav-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.nav-item > span:last-child { display: none; }
.nav-item.active { color: #f6ebff; background: var(--accent-container); }
.nav-item.active > span:last-child { display: inline; }
.keyboard-open .bottom-nav { visibility: hidden; pointer-events: none; }

/* Account entry */
.login-shell { position: fixed; inset: 0; height: var(--app-height, 100dvh); padding: max(28px, env(safe-area-inset-top, 0px)) 20px max(28px, env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; align-items: center; overflow: hidden auto; overscroll-behavior-y: contain; }
.login-card { width: min(100%, 424px); padding: 28px; margin-block: auto; background: var(--surface); border: 1px solid #211e25; border-radius: 30px; }
.login-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.login-brand .veyra-mark { width: 50px; height: 50px; }
.login-brand h1 { margin: 0; font-size: 1.7rem; font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
.login-card > p { margin: 0 0 24px; font-size: .88rem; color: var(--muted); }
.login-form { display: grid; gap: 4px; }
.form-status { display: block; min-height: 20px; padding-top: 4px; color: var(--danger); font-size: .8rem; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.auth-secondary { margin-top: 5px; }
.auth-install { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; width: 100%; margin-top: 12px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--accent); font-size: .8rem; padding: 14px 4px 0; }

/* Page headings and overview */
.welcome-card { padding: 21px; margin: 0 0 24px; border-radius: var(--radius); background: var(--surface); }
.welcome-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.home-welcome-copy { min-width: 0; }
.welcome-card h1 { margin: 0 0 4px; font-size: 1.45rem; font-weight: 620; letter-spacing: -.03em; overflow-wrap: anywhere; }
.welcome-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.me-hero, .page-title { margin: 2px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.me-hero > div:first-child, .page-title > div:first-child { min-width: 0; flex: 1; }
.me-hero h1, .page-title h1 { margin: 0 0 7px; font-size: 1.85rem; font-weight: 550; line-height: 1.15; letter-spacing: -.04em; }
.me-hero p, .page-title p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.me-hero-actions, .team-title-actions { display: flex; flex: 0 0 auto; gap: 8px; align-items: center; }
.round-action, .icon-button { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; }
.round-action:not(.subtle) { background: var(--accent-soft); }
.round-action.subtle { background: var(--surface); }
.section-head, .home-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 26px 2px 12px; }
.section-head.compact { margin-top: 24px; }
.section-head h2, .home-section-head h2 { margin: 0; font-size: 1.04rem; font-weight: 650; letter-spacing: -.015em; }
.home-section-head span { font-size: .73rem; color: var(--muted); }
.text-button { padding: 8px 2px; min-height: 40px; border: 0; background: transparent; color: var(--accent); font-size: .8rem; font-weight: 550; }
.home-stats { margin: 0; }
.analytics-card { padding: 20px; background: var(--surface); border-radius: var(--radius); }
.analytics-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.analytics-top > div { display: grid; gap: 4px; min-width: 0; }
.analytics-top strong { font-size: .95rem; font-weight: 600; }
.analytics-top small { font-size: .76rem; color: var(--muted); }
.analytics-top > b { font-size: 1.2rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.analytics-progress, .analytics-team-progress { height: 5px; margin: 15px 0 18px; border-radius: 999px; background: #332d39; overflow: hidden; }
.analytics-progress > span, .analytics-team-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--accent-strong); transition: width .22s ease; }
.analytics-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.analytics-metric { min-width: 0; padding: 14px 5px; display: grid; justify-items: center; gap: 6px; background: var(--surface-2); border-radius: 16px; text-align: center; }
.analytics-icon, .analytics-team-icon { display: grid; place-items: center; color: var(--accent); width: 28px; height: 28px; }
.analytics-icon svg, .analytics-team-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.analytics-metric strong { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.analytics-metric small { font-size: .67rem; color: var(--muted); }
.analytics-team { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.analytics-team-main { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.analytics-team-copy { display: grid; gap: 4px; min-width: 0; }
.analytics-team-copy strong { font-size: .85rem; font-weight: 600; }
.analytics-team-copy small { font-size: .68rem; color: var(--muted); line-height: 1.45; }
.analytics-team-main > b { font-size: .87rem; color: var(--text); font-weight: 550; white-space: nowrap; }
.analytics-team-progress-head, .analytics-team-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .68rem; color: var(--muted); }
.analytics-team-progress-head { margin-top: 16px; }
.analytics-team-progress-head strong, .analytics-team-foot strong { color: var(--accent); font-weight: 550; }
.analytics-team-progress { margin: 8px 0 10px; height: 4px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-card { min-width: 0; padding: 17px; border-radius: 20px; background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.stat-card > span { color: var(--muted); font-size: .75rem; }
.stat-card strong { font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-card small { color: var(--muted-2); font-size: .68rem; }
.next-list { display: grid; gap: 10px; }
.next-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) 16px; gap: 12px; align-items: center; padding: 16px; border-radius: 20px; background: var(--surface); cursor: pointer; }
.next-number { width: 36px; height: 36px; border-radius: 12px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; font-size: .8rem; font-weight: 600; }
.chain-next .next-number { background: var(--accent-soft); }
.next-copy { min-width: 0; }
.next-copy h3 { margin: 0 0 4px; font-size: .89rem; font-weight: 580; overflow-wrap: anywhere; }
.next-copy p { margin: 0; color: var(--muted); font-size: .72rem; }
.next-chevron { color: var(--muted-2); font-size: 1.3rem; }
.home-empty, .archive-empty { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--surface); border-radius: var(--radius); }
.home-empty h3, .archive-empty h3 { margin: 0 0 4px; font-size: .9rem; font-weight: 600; }
.home-empty p, .archive-empty p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.home-empty-icon, .archive-empty-icon, .empty-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.archive-empty-icon { background: #302a20; color: var(--warning); }
.archive-empty-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sessions: muted lilac instead of saturated purple slabs. */
.work-card { position: relative; padding: 20px; margin: 0 0 12px; display: grid; gap: 20px; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.work-card.active { background: #44334f; }
.work-info { display: flex; align-items: center; gap: 13px; min-width: 0; }
.work-info > div { display: grid; gap: 4px; min-width: 0; }
.work-info strong { font-size: 1rem; font-weight: 600; }
.work-info small { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.work-card.active .work-info small { color: #ddd0e5; }
.work-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: grid; place-items: center; background: #2e2236; color: var(--accent); }
.work-card.active .work-icon { background: #5e496c; color: #efdafa; }
.work-side { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.timer-display { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .025em; white-space: nowrap; }
.work-button { min-height: 44px; padding: 10px 17px; border: 0; border-radius: 999px; background: var(--accent-container); color: #f7edfd; font-size: .82rem; font-weight: 600; }
.work-card.active .work-button { background: #e4cfee; color: #302237; }
.session-progress { position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; background: #ffffff12; }
.session-progress span { display: block; height: 100%; background: var(--accent); }
.work-card.unlimited .session-progress { display: none; }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; }
.status-pill { padding: 5px 9px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .68rem; }
.status-pill.locked { color: var(--danger); background: var(--danger-bg); }
.status-pill.free { color: var(--accent); background: var(--accent-soft); }
.status-pill.sleep { color: var(--warning); background: #30291e; }

/* Both task types retain all controls and existing data hooks. */
.task-list { display: grid; gap: 12px; }
.task-card { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 12px; padding: 18px; border: 1px solid #242027; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.task-card.chain-task { background: #19151d; border-color: #4b3856; }
.task-card.linked-task { border-color: #413649; }
.task-card.done { opacity: .67; }
.task-card.dragging { opacity: .4; }
.task-card.drag-over { outline: 2px solid var(--accent); outline-offset: -2px; }
.task-check { width: 38px; height: 38px; margin-top: 2px; border: 2px solid #72687d; border-radius: 50%; background: transparent; color: transparent; display: grid; place-items: center; font-weight: 650; }
.task-check.done { background: var(--accent); border-color: var(--accent); color: #322139; }
.chain-mark { width: 38px; height: 38px; margin-top: 2px; display: grid; place-items: center; border-radius: 12px; background: #36253f; color: var(--accent); }
.task-main { min-width: 0; cursor: pointer; }
.task-main[data-edit=''] { cursor: default; }
.task-title { margin: 8px 0 0; color: var(--text); font-size: .99rem; font-weight: 600; line-height: 1.4; letter-spacing: -.014em; overflow-wrap: anywhere; }
.task-description { margin: 7px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; overflow-wrap: anywhere; }
.task-notes { margin: 12px 0 0; padding: 11px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .76rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0; }
.badge { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 7px; background: #27232c; color: #bbb2c2; font-size: .61rem; font-weight: 550; line-height: 1.45; max-width: 100%; overflow-wrap: anywhere; }
.task-badges > .badge:first-child { padding-left: 0; background: transparent; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.badge.high { background: #3a252d; color: #f2b6c0; }
.badge.low { background: #24303d; color: #bacfe6; }
.badge.proof, .badge.note, .badge.chain-badge { background: #35263f; color: #dfc4f0; }
.badge.admin, .badge.fix-badge { background: #352e22; color: #e5cd9e; }
.badge.wire-badge { background: #2d2935; color: #c9bbd9; }
.task-controls { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 5px; padding-top: 10px; margin-top: 2px; border-top: 1px solid #29242e; }
.order-button, .fixade-button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #211c26; color: var(--muted); display: grid; place-items: center; }
.fixade-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fixade-button.active { background: #352e22; color: var(--warning); }
.chain-steps { display: grid; margin-top: 15px; border: 1px solid #3a2d44; border-radius: 16px; overflow: hidden; }
.chain-step { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; min-height: 48px; padding: 12px; border: 0; border-bottom: 1px solid #372b40; background: #211a28; color: var(--text); text-align: left; }
.chain-step:last-child { border-bottom: 0; }
.chain-step > span { width: 21px; height: 21px; display: grid; place-items: center; border: 1.5px solid #86718f; border-radius: 50%; color: #33223c; font-size: .7rem; }
.chain-step > p { margin: 0; font-size: .76rem; line-height: 1.5; overflow-wrap: anywhere; }
.chain-step.done > span { background: var(--accent); border-color: var(--accent); }
.chain-step.done > p { color: var(--muted-2); text-decoration: line-through; }
.chain-step.readonly-step { cursor: default; }
.chain-proof-button { width: 100%; min-height: 44px; padding: 10px; margin-top: 10px; border: 0; border-radius: 14px; background: var(--accent-container); color: var(--text); font-size: .78rem; font-weight: 600; }
.readonly .task-card { grid-template-columns: minmax(0, 1fr); }
.empty-state { padding: 26px 20px; border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-state.small { padding: 22px; }
.empty-state h3 { margin: 12px 0 6px; font-size: .95rem; font-weight: 600; }
.empty-state p { margin: 0; font-size: .79rem; color: var(--muted); line-height: 1.55; }
.empty-icon { margin: auto; }

/* Team and profiles */
.team-grid { display: grid; gap: 12px; }
.team-card { width: 100%; border: 0; border-radius: var(--radius); background: var(--surface); overflow: hidden; text-align: left; }
.team-card-main { width: 100%; min-height: 84px; padding: 18px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 13px; align-items: center; background: transparent; border: 0; text-align: left; color: var(--text); }
.team-card-copy { display: grid; gap: 4px; min-width: 0; }
.team-card-copy h3 { margin: 0; font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; }
.team-card-copy small { color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
.team-card footer { padding: 0 18px 16px 79px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.team-note { font-size: .67rem; color: var(--warning); }
.profile-avatar { width: 48px; height: 48px; border-radius: 50%; }
.profile-avatar.large { width: 54px; height: 54px; }
.profile-avatar.xl { width: 64px; height: 64px; flex: 0 0 64px; }
.team-group-badge, .profile-group-inline { --group-color: var(--accent); background: #29212e; color: var(--group-color); border: 1px solid #43334f; border-radius: 999px; font-size: .69rem; font-weight: 550; line-height: 1.5; }
.team-group-badge { min-height: 36px; padding: 7px 12px; }
.profile-group-inline { display: inline-block; padding: 4px 9px; }
.disabled-user { opacity: .64; }
.disabled-badge { display: inline-block; padding: 4px 8px; border-radius: 7px; background: var(--danger-bg); color: var(--danger); font-size: .65rem; }
.profile-head { display: grid; grid-template-columns: 38px 54px minmax(0, 1fr); gap: 11px; align-items: center; padding: 18px 14px; margin: 0 0 18px; border-radius: var(--radius); background: var(--surface); }
.profile-head .icon-button { width: 36px; height: 40px; flex-basis: 36px; background: transparent; }
.profile-copy { min-width: 0; }
.profile-copy h1 { margin: 0; font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.profile-copy p { margin: 5px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.65; overflow-wrap: anywhere; }
.admin-shield { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 12px; border: 1px solid #463650; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: .73rem; font-weight: 600; }
.admin-panel { margin: 18px 0 24px; padding: 18px; border-radius: var(--radius); background: var(--surface); }
.admin-panel-head h3 { margin: 0 0 15px; font-size: .92rem; font-weight: 600; }
.admin-actions { display: grid; gap: 8px; }
.admin-action { position: relative; width: 100%; min-height: 68px; padding: 15px 36px 15px 15px; border: 0; border-radius: 17px; background: var(--surface-2); text-align: left; color: var(--text); }
.admin-action::after { content: '›'; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 1.35rem; }
.admin-action strong { display: block; font-size: .85rem; font-weight: 600; }
.admin-action small { display: block; margin-top: 5px; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.admin-action.primary, .admin-action.setup { background: var(--accent-soft); }
.admin-action.danger strong { color: var(--danger); }

/* Sheets and form controls: shared by every existing menu. */
.dialog { width: min(calc(100% - 40px), 570px); max-height: min(86dvh, 820px); margin: auto; padding: 24px; border: 1px solid #332c3a; border-radius: 28px; background: #19161d; color: var(--text); overflow: hidden auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.wide-dialog { width: min(calc(100% - 40px), 760px); }
.dialog::backdrop { background: #000a; }
.dialog[open] { animation: sheet-in .18s ease-out; }
@keyframes sheet-in { from { opacity: .7; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dialog-top > div { min-width: 0; }
.dialog-top h2 { margin: 0; font-size: 1.3rem; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.dialog-top .icon-button { background: #29232f; color: var(--muted); }
.dialog-lead { margin: 0 0 20px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.field { display: grid; gap: 8px; margin: 0 0 16px; }
.field > span { font-size: .75rem; font-weight: 600; color: #cec4d5; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #3d3445; border-radius: 14px; background: #26212c; color: var(--text); font-size: 16px; line-height: 1.45; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid #a37bbc; outline-offset: 0; }
.field input::placeholder, .field textarea::placeholder { color: #a196aa; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 16px; background: #29232f; }
.segmented button { min-height: 44px; padding: 10px 5px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: .78rem; }
.segmented button.active { background: var(--accent-container); color: var(--text); }
.toggle-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 15px 0; border-bottom: 1px solid #342b3b; cursor: pointer; }
.toggle-row > span { min-width: 0; display: grid; gap: 5px; }
.toggle-row strong { font-size: .82rem; font-weight: 600; }
.toggle-row small { font-size: .72rem; line-height: 1.5; color: var(--muted); }
.toggle-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-row i { width: 46px; height: 28px; flex: 0 0 46px; border: 1px solid #6b5d76; border-radius: 999px; position: relative; background: #302837; }
.toggle-row i::after { content: ''; width: 18px; height: 18px; position: absolute; top: 4px; left: 4px; border-radius: 50%; background: #a99ab4; transition: transform .14s ease; }
.toggle-row input:checked + i { background: var(--accent-container); border-color: #aa80c2; }
.toggle-row input:checked + i::after { transform: translateX(18px); background: #f0e3f8; }
.toggle-row input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 3px; }
.toggle-row input:disabled + i { opacity: .45; }
.primary-button, .primary-small, .ghost-button, .danger-button, .danger-text { min-height: 46px; padding: 11px 17px; border: 0; border-radius: 999px; font-weight: 600; font-size: .82rem; }
.primary-button { background: var(--accent-container); color: #f8edff; }
.primary-small { background: var(--accent-soft); color: var(--accent); padding-inline: 14px; min-height: 42px; }
.ghost-button { background: #2b2432; color: #e3d7eb; }
.primary-button.wide, .ghost-button.wide { width: 100%; }
.danger-button { width: 100%; margin-top: 14px; background: var(--danger-bg); color: var(--danger); }
.danger-text { background: transparent; color: var(--danger); padding-inline: 8px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #352c3d; }
.dialog-actions > span { flex: 1; }
.dialog-actions > .danger-text { margin-right: auto; }
.upload-box { position: relative; display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 16px; margin: 10px 0 14px; border: 1px dashed #65516f; border-radius: 18px; background: #282030; cursor: pointer; }
.upload-box > span { min-width: 0; display: grid; gap: 5px; }
.upload-box strong { font-size: .83rem; font-weight: 600; }
.upload-box small { font-size: .7rem; color: var(--muted); overflow-wrap: anywhere; }
.upload-box input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-box:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.settings-profile { display: flex; gap: 16px; align-items: center; padding: 20px; margin-bottom: 20px; border-radius: 22px; background: #282030; }
.settings-profile > div { display: grid; gap: 6px; min-width: 0; }
.settings-profile strong { font-size: 1.08rem; font-weight: 600; overflow-wrap: anywhere; }
.settings-profile small { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.settings-list { margin-top: 16px; border-radius: 20px; background: var(--surface-2); overflow: hidden; }
.settings-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px; min-height: 56px; border-bottom: 1px solid #3a303f; font-size: .78rem; }
.settings-list > div:last-child { border-bottom: 0; }
.settings-list small { max-width: 66%; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.ui-settings-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.ui-settings-tools button { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: .73rem; border-radius: 16px; }
.ui-version { display: block; margin-top: 16px; font-size: .64rem; color: var(--muted-2); text-align: center; }

/* Invite keys, permissions and persistent setup */
.key-list, .permission-list, .admin-setup-list { display: grid; gap: 10px; margin-top: 16px; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; border-radius: 18px; background: #28212e; }
.key-row > div { min-width: 0; display: grid; gap: 5px; }
.key-row strong, .key-secret code, .account-key-card code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .77rem; overflow-wrap: anywhere; }
.key-row small { font-size: .68rem; color: var(--muted); }
.key-row.inactive { opacity: .58; }
.key-revoke { min-height: 44px; padding: 8px; border: 0; background: transparent; color: var(--danger); font-size: .7rem; }
.key-empty { padding: 18px; border-radius: 18px; background: var(--surface-2); color: var(--muted); font-size: .8rem; }
.key-secret, .account-key-card { display: grid; gap: 8px; padding: 20px; margin: 12px 0 18px; border: 1px solid #584263; border-radius: 20px; background: #2d2037; }
.key-secret { text-align: center; }
.key-secret code, .account-key-card code { color: var(--accent); font-size: .87rem; }
.account-key-card small { color: var(--muted); font-size: .7rem; }
.permission-chip { --perm-color: var(--accent); display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 60px; padding: 16px; border-radius: 18px; background: #28212e; }
.permission-chip > span { width: 8px; height: 8px; border-radius: 50%; background: var(--perm-color); }
.permission-chip strong { font-size: .85rem; color: var(--perm-color); }
.permission-chip small { font-size: .65rem; color: var(--muted); }
.setup-system-button { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0,1fr) 20px; gap: 4px; padding: 19px; border: 1px solid #574063; border-radius: 20px; background: #302239; color: var(--text); text-align: left; }
.setup-system-button strong { font-size: .94rem; font-weight: 600; }
.setup-system-button small { grid-column: 1; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.setup-system-button > span { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--accent); font-size: 1.5rem; }
.admin-setup-section { margin-top: 20px; }
.setup-user-card { padding: 18px; border-radius: 22px; border: 1px solid #3f324a; background: #211b27; }
.setup-user-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.setup-user-head > div { min-width: 0; display: grid; gap: 4px; }
.setup-user-head strong { font-size: .92rem; overflow-wrap: anywhere; }
.setup-user-head small { font-size: .69rem; color: var(--muted); }
.setup-grid { display: grid; grid-template-columns: minmax(130px,.8fr) repeat(2,minmax(160px,1fr)); gap: 14px; align-items: start; }
.compact-field { margin: 0; }
.access-column { display: grid; gap: 8px; }
.access-label { color: #d2c1dc; font-size: .72rem; font-weight: 600; }
.access-checks { display: grid; gap: 7px; }
.access-check { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 10px; background: #302637; border-radius: 12px; }
.access-check input { width: 17px; height: 17px; accent-color: #b883d9; flex: 0 0 17px; }
.access-check span { min-width: 0; display: grid; gap: 3px; }
.access-check strong { font-size: .73rem; font-weight: 550; overflow-wrap: anywhere; }
.access-check small { font-size: .61rem; color: var(--muted); overflow-wrap: anywhere; }
.protected-role-box { margin-top: 14px; padding: 13px; border-radius: 15px; background: #2b1f34; }
.protected-role-box summary { cursor: pointer; min-height: 36px; padding-block: 6px; font-size: .74rem; color: var(--accent); }
.setup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.ghost-button.small { min-height: 40px; padding: 10px 12px; width: auto; font-size: .72rem; }
.root-system-controls { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #4a303d; }
.root-system-controls h3 { margin: 0 0 4px; font-size: .9rem; color: var(--danger); }
.link-candidates { display: grid; gap: 8px; margin: 10px 0 18px; padding: 12px; border-radius: 18px; background: #251d2c; }
.link-candidate { display: grid; grid-template-columns: auto 10px minmax(0,1fr); gap: 10px; align-items: center; min-height: 52px; padding: 12px; border-radius: 13px; background: #31263b; }
.link-candidate.locked { grid-template-columns: 10px minmax(0,1fr); }
.link-candidate input { accent-color: #bc85d8; width: 17px; height: 17px; }
.link-candidate > span:last-child { display: grid; gap: 4px; min-width: 0; }
.link-candidate strong { font-size: .75rem; overflow-wrap: anywhere; }
.link-candidate small { font-size: .67rem; color: var(--muted); }
.wire-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.link-locked-note { display: grid; gap: 5px; padding: 8px 3px; }
.link-locked-note strong { font-size: .77rem; }
.link-locked-note small { font-size: .7rem; color: var(--muted); line-height: 1.5; }

/* Completed work, proof and activity. */
.archive-section { margin-top: 28px; }
.archive-head p { margin: 4px 0 0; font-size: .73rem; color: var(--muted); }
.archive-list, .session-list { display: grid; gap: 12px; }
.session-list { margin-top: 18px; }
.archive-card, .session-card { padding: 18px; border-radius: 22px; background: var(--surface); }
.dialog .session-card { background: #27202e; }
.archive-card-head, .session-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.archive-card-head h3, .session-top h3 { margin: 3px 0 0; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.archive-type { color: var(--accent); font-size: .65rem; }
.archive-card-head time, .session-top time { color: var(--muted); font-size: .65rem; white-space: nowrap; }
.archive-meta, .session-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.archive-meta span { padding: 4px 8px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: .68rem; }
.archive-description { margin: 12px 0 0; color: var(--muted); font-size: .79rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.archive-steps, .session-chain-steps { display: grid; gap: 7px; margin-top: 12px; padding: 12px; border-radius: 14px; background: #29212f; color: var(--muted); font-size: .73rem; }
.archive-steps > div { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 6px; }
.archive-steps span { color: var(--accent); }
.archive-steps p { margin: 0; }
.archive-note, .archive-proof, .proof-box { margin-top: 12px; padding: 13px; border-radius: 14px; background: #2c2233; }
.archive-note strong, .archive-proof strong { color: var(--accent); font-size: .72rem; }
.archive-note p, .archive-proof p, .proof-box p { margin: 5px 0 0; color: #c8bdcf; font-size: .75rem; white-space: pre-wrap; line-height: 1.55; overflow-wrap: anywhere; }
.archive-proof img, .proof-image { display: block; width: min(100%,360px); max-height: 320px; margin-top: 10px; border-radius: 12px; object-fit: contain; }
.session-tasks { display: grid; gap: 8px; margin-top: 14px; }
.session-task { padding: 14px; background: #342b3c; border-radius: 14px; }
.session-task strong { font-size: .78rem; font-weight: 550; overflow-wrap: anywhere; }
.session-task small { color: var(--muted); font-size: .73rem; }
.adjustment-card { display: flex; justify-content: space-between; gap: 14px; padding: 16px; border-radius: 18px; background: #2b2332; }
.adjustment-card strong { font-size: .82rem; }
.adjustment-card small { display: block; margin-top: 4px; color: var(--muted); font-size: .69rem; }
.positive { color: var(--success); }
.negative { color: var(--danger); }

/* Installation, connection feedback, updates. */
.install-mail { display: grid; grid-template-columns: 40px minmax(0,1fr) 16px; gap: 12px; align-items: center; width: 100%; min-height: 80px; margin-bottom: 18px; padding: 16px; border: 1px solid #594165; border-radius: 20px; background: #302239; color: var(--text); text-align: left; }
.install-mail-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #4c3659; color: var(--accent); }
.install-mail-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.install-mail-icon b { display: none; }
.install-mail > span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.install-mail strong { font-size: .85rem; font-weight: 600; }
.install-mail small { color: var(--muted); font-size: .72rem; line-height: 1.5; }
.install-mail-chevron { font-size: 1.4rem; color: var(--accent); }
.install-app-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; margin-bottom: 16px; border-radius: 20px; background: #2b2133; }
.install-app-card > div:last-child { display: grid; gap: 6px; min-width: 0; }
.install-app-card strong { font-size: .92rem; }
.install-app-card small { font-size: .78rem; line-height: 1.6; color: var(--muted); }
.install-status { display: block; padding: 12px 14px; margin: 0 0 16px; border-radius: 13px; background: #302735; font-size: .73rem; color: var(--muted); line-height: 1.5; }
.install-status.ready { background: #24392e; color: #c4e3cd; }
.install-status.warning { background: #3b3021; color: #edd4a3; }
.install-details { margin-top: 18px; padding: 15px; border-radius: 16px; background: #261e2e; font-size: .73rem; color: var(--muted); line-height: 1.6; }
.install-details summary { color: var(--accent); cursor: pointer; }
.install-details p { margin: 10px 0 0; }
.install-details code { overflow-wrap: anywhere; color: var(--accent); }
.install-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.install-lan-security { padding: 15px; border-radius: 16px; background: #2b2133; display: grid; gap: 10px; margin-bottom: 16px; }
.connection-status { margin: 0 20px 12px; padding: 11px 14px; border: 1px solid #67484f; border-radius: 14px; background: #39242b; color: #f4c3ca; font-size: .75rem; line-height: 1.5; flex: 0 0 auto; }
.login-card .connection-status { margin: 0 0 16px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(var(--nav-space) - 6px); transform: translate(-50%, 8px); max-width: min(calc(100vw - 40px), 460px); padding: 13px 18px; border: 1px solid #5c4968; border-radius: 18px; background: #35283f; color: var(--text); font-size: .79rem; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity .16s, transform .16s; overflow-wrap: anywhere; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #442731; color: #ffd0d6; border-color: #80505e; }

@media (pointer: coarse) {
  .app-shell, .main-shell, .login-shell, .dialog { touch-action: pan-y; }
  .task-check { width: 40px; height: 40px; }
  .order-button, .fixade-button { width: 44px; height: 44px; }
}
@media (min-width: 720px) {
  .main-shell { padding-top: 20px; }
  .work-card { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
  .work-side { flex-direction: column; align-items: flex-end; gap: 10px; }
  .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .dialog, .wide-dialog { position: fixed; inset: auto 0 var(--keyboard-inset,0px); width: 100%; max-width: none; margin: 0; max-height: calc(var(--app-height,100dvh) - env(safe-area-inset-top,0px) - 18px); padding: 24px 20px calc(22px + env(safe-area-inset-bottom,0px)); border-bottom: 0; border-radius: 28px 28px 0 0; }
  .dialog::before { content: ''; display: block; width: 34px; height: 4px; background: #655970; border-radius: 999px; margin: -12px auto 19px; }
  .setup-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .access-checks { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .protected-role-box .access-checks { grid-template-columns: minmax(0,1fr); }
  .team-title { flex-wrap: wrap; }
  .team-title-actions { margin-left: auto; }
  .archive-card-head, .session-top { flex-wrap: wrap; gap: 7px; }
}
@media (max-width: 380px) {
  .topbar { padding-inline: 16px; }
  .main-shell { padding-inline: 16px; }
  .login-shell { padding-inline: 14px; }
  .login-card { padding: 22px; }
  .task-card { padding: 15px; gap: 10px; }
  .me-hero { flex-wrap: wrap; }
  .me-hero-actions { margin-left: auto; }
  .analytics-card { padding: 16px; }
  .analytics-metrics { gap: 6px; }
  .analytics-metric { padding: 12px 3px; }
  .field-grid, .ui-settings-tools { grid-template-columns: minmax(0,1fr); }
  .bottom-nav { width: calc(100% - 30px); }
  .profile-head { grid-template-columns: 32px 46px minmax(0,1fr); gap: 9px; }
  .profile-avatar.large { width: 46px; height: 46px; }
}
@media (max-height: 580px) {
  .login-shell { align-items: start; padding-block: 18px; }
  .login-card { margin: 0; }
  .dialog { max-height: calc(var(--app-height,100dvh) - 10px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.dialog > .toast { bottom: calc(var(--keyboard-inset,0px) + 18px + env(safe-area-inset-bottom,0px)); }

/* Veyra Tasks 4.2 · mailbox, session security and Veyra Core. */
#mailboxUnreadBadge:not(.hidden){display:grid;position:absolute;right:-5px;top:-6px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#d96678;color:#fff;font-size:.59rem;font-weight:750;place-items:center}
.install-mail-icon{position:relative}
.mailbox-list{display:grid;gap:12px;margin-top:16px}
.mail-card{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:16px;border:1px solid #3f3547;border-radius:20px;background:#251f2b}
.mail-card.unread{border-color:#79558b;background:#2b2032}
.mail-card.install{background:linear-gradient(145deg,#2e2137,#241d2a)}
.mail-card.security{border-color:#60476c}
.mail-card-icon{width:32px;height:32px;border-radius:11px;background:#3b2b45;color:#d49aed;display:grid;place-items:center;font-size:.88rem}
.mail-card-body{min-width:0;display:grid;gap:9px}
.mail-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mail-card-head strong{font-size:.86rem}
.mail-card-head span{padding:3px 7px;border-radius:999px;background:#3d3045;color:#b7a8bd;font-size:.58rem;text-transform:uppercase;letter-spacing:.05em}
.mail-card p{margin:0;color:var(--muted);font-size:.75rem;line-height:1.55}
.mail-key-row{display:flex;align-items:center;gap:8px;min-width:0;padding:9px 10px;border-radius:12px;background:#171419}
.mail-key-row code{min-width:0;flex:1;color:#d1b0df;font-size:.68rem;overflow-wrap:anywhere}
.mail-key-row button,.mail-action{border:0;border-radius:11px;background:#4d3859;color:#f2eaf5;min-height:36px;padding:0 12px;font:inherit;font-size:.68rem;font-weight:650}
.mail-action{justify-self:start}.mail-action.done{background:#303039;color:#c8c4ca}

.admin-console-shell{margin:4px 0 16px;padding:14px;border:1px solid #403447;border-radius:20px;background:#111014}
.admin-console-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}
.admin-console-head>div{display:grid;gap:3px}.admin-console-head strong{font-size:.82rem}.admin-console-head strong span{color:#8f8297;font-weight:500}
.admin-console-head small{color:#7f7485;font-size:.64rem}.admin-console-head code{color:#cf91eb;font-size:.66rem}
.admin-console-output{height:172px;overflow:auto;padding:12px;border-radius:13px;background:#09090b;font:500 .7rem/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#cfc8d2;scrollbar-width:none}
.admin-console-output::-webkit-scrollbar{display:none}.admin-console-output p{margin:0 0 6px;overflow-wrap:anywhere}
.admin-console-output p span{display:inline-block;min-width:42px;color:#a679b9}.admin-console-output .error{color:#f0a6b2}
.admin-console-form{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;margin-top:10px}
.admin-console-form>span{color:#b47bd0;font-family:monospace}.admin-console-form input{min-width:0;height:42px;border:1px solid #3b3340;border-radius:12px;background:#1b181e;color:#f3eef5;padding:0 11px;font:500 .72rem ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;outline:none}
.admin-console-form input:focus{border-color:#7d568f}.admin-console-form button{height:42px;border:0;border-radius:12px;background:#5b4068;color:white;padding:0 13px;font-weight:650}
.root-system-grid{display:grid;gap:9px;margin-top:10px}.root-system-grid .admin-action{margin:0}
.system-data-output{max-height:58dvh;overflow:auto;margin:0;padding:14px;border-radius:15px;background:#0b0a0d;color:#d5cbd9;font:500 .68rem/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.veyra-root-greeting{color:#e85b68;text-shadow:0 0 18px rgba(232,91,104,.18)}
.veyra-system-avatar-mark{width:100%;height:100%;display:grid;place-items:center}.veyra-system-avatar-mark svg{width:62%;height:62%;fill:none;stroke:#cb82ed;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.veyra-system-avatar{background:transparent!important;border:1px solid #5b3e69!important}
.veyra-system-card{border:1px solid #563b64!important;background:radial-gradient(circle at 15% 0,rgba(120,55,151,.18),transparent 45%),#171219!important}
.veyra-system-card .team-card-main{background:transparent}.system-badge{padding:4px 7px;border-radius:8px;background:#3a1520;color:#f17887;font-size:.58rem;font-weight:750;letter-spacing:.06em}
.system-note{color:#c582e2!important}.root-session{background:#3a1620!important;color:#ff8b99!important}

.veyra-system-profile .profile-head{padding:18px;border:1px solid #50345e;border-radius:24px;background:radial-gradient(circle at 75% 0,rgba(177,82,219,.16),transparent 48%),#171319}
.veyra-system-profile .profile-avatar.large{background:transparent;border:1px solid #5c3c69}
.veyra-system-info{grid-column:1/-1;padding:20px;border:1px solid #51375e;border-radius:22px;background:linear-gradient(145deg,#221827,#171319)}
.veyra-system-info h2{margin:6px 0 7px;font-size:1.08rem}.veyra-system-info p{margin:0;color:var(--muted);font-size:.76rem;line-height:1.55}
.system-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}
.system-info-grid>div{display:grid;gap:4px;padding:11px;border-radius:13px;background:#171319}.system-info-grid span{color:#887b8e;font-size:.61rem;text-transform:uppercase;letter-spacing:.06em}.system-info-grid strong{font-size:.7rem;line-height:1.4}
.veyra-system-profile-note{padding:18px;border:1px solid #3d3045;border-radius:20px;background:#1e1922}.veyra-system-profile-note strong{font-size:.85rem}.veyra-system-profile-note p{margin:7px 0 0;color:var(--muted);font-size:.74rem;line-height:1.55}
.veyra-system-me-card{display:grid;grid-template-columns:62px minmax(0,1fr);gap:15px;align-items:center;padding:18px;border:1px solid #50345e;border-radius:22px;background:linear-gradient(145deg,#211626,#171319)}
.veyra-system-me-card h3{margin:5px 0 4px;font-size:.92rem}.veyra-system-me-card p{margin:0;color:var(--muted);font-size:.74rem;line-height:1.55}
.veyra-system-me-mark{width:60px;height:60px;border-radius:18px;border:1px solid #50345e;background:#120f15;overflow:hidden}.veyra-system-me-mark .veyra-system-avatar-mark{width:100%;height:100%}
.admin-system-dialog .setup-system-button.hidden{display:none}
@media(max-width:520px){.system-info-grid{grid-template-columns:minmax(0,1fr)}.admin-console-form{grid-template-columns:auto minmax(0,1fr)}.admin-console-form button{grid-column:2}.veyra-system-me-card{grid-template-columns:52px minmax(0,1fr)}.veyra-system-me-mark{width:50px;height:50px}}

.disabled-badge.banned{background:#4a2028!important;color:#ff9dab!important;border-color:#75404a!important}
.access-check.session-only{opacity:.66}.access-check.session-only small{color:#c28bdb}

/* Veyra Tasks 4.3 · flat Veyra visual pass. Deliberately no glass, gradients or dashboard-glow. */
:root{--bg:#050506;--surface:#101012;--surface-2:#161418;--surface-3:#1c1920;--text:#f4f1f6;--muted:#8e8792;--line:#27232b;--accent:#c987ec;--accent-strong:#7b5b89;--danger:#e56f80;--success:#78c493}
html,body{background:var(--bg)!important;color:var(--text);font-family:Inter,Roboto,"Segoe UI",system-ui,sans-serif}
body,.app-shell,.login-shell,.main-shell{background:var(--bg)!important}
.app-shell{max-width:760px;margin:0 auto;min-height:var(--app-height,100dvh);border-inline:0!important;box-shadow:none!important}
.topbar{background:var(--bg)!important;border:0!important;box-shadow:none!important;padding-inline:22px}
.main-shell{padding-inline:22px;padding-bottom:calc(var(--nav-space) + 28px)}
.eyebrow{letter-spacing:.08em;color:#817989!important;font-size:.62rem}
.page-title h1,.me-hero h1,.profile-copy h1{font-weight:620;letter-spacing:-.035em}
.welcome-card,.home-welcome{background:transparent!important;border:0!important;box-shadow:none!important;padding:20px 2px 12px!important}
.veyra-mark svg{stroke:var(--accent)!important;filter:none!important}
.home-welcome-copy h1{font-weight:650;letter-spacing:-.035em}
.home-section-head,.section-head{padding-inline:2px}
.home-section-head h2,.section-head h2{font-weight:620;letter-spacing:-.025em}
.login-card{background:#0d0d0f!important;border:1px solid #1d1b20!important;box-shadow:none!important;border-radius:30px!important}
.login-brand h1{font-weight:660;letter-spacing:-.035em}
.field input,.field textarea,.field select{background:#151417!important;border:1px solid #28242c!important;color:var(--text)!important;box-shadow:none!important}
.field input:focus,.field textarea:focus,.field select:focus{border-color:#6f547c!important;outline:0!important;box-shadow:0 0 0 3px rgba(201,135,236,.08)!important}
.primary-button,.primary-small{background:#71547f!important;color:#fff!important;border:0!important;box-shadow:none!important}
.ghost-button,.auth-secondary{background:#171619!important;border:1px solid #29252d!important;color:#d9d2dc!important;box-shadow:none!important}
.round-action,.icon-button,.avatar-button{background:#171619!important;border:1px solid #28242c!important;box-shadow:none!important}
.home-stats,.analytics-card{background:#0e0e10!important;border:1px solid #1d1b20!important;box-shadow:none!important}
.stat-card,.home-stat,.analytics-metric{background:#121214!important;border:0!important;box-shadow:none!important}
.work-card{background:#200925!important;border:1px solid #3b1744!important;box-shadow:none!important;border-radius:26px!important}
.work-card.active{background:#24072c!important;border-color:#4b1d58!important}
.work-icon{background:#34243b!important;color:#dca9f2!important}
.session-progress-track{background:#171219!important}.session-progress{background:#8f62a2!important;box-shadow:none!important}
.task-list{gap:12px!important}
.task-card{background:#0f0f11!important;border:1px solid #211e24!important;box-shadow:none!important;border-radius:22px!important;padding:17px!important}
.task-card.chain-task{background:#111013!important;border-color:#2b2330!important;border-left:3px solid #775486!important}
.task-card.linked-task{border-color:#2e2733!important}
.task-title{font-weight:620!important;letter-spacing:-.018em}
.task-description,.task-notes{color:#918a96!important}
.task-check,.chain-mark{background:#171619!important;border:1px solid #39333f!important;box-shadow:none!important}
.task-check.done,.chain-step.done span{background:#71547f!important;border-color:#71547f!important;color:#fff!important}
.badge{background:#19171c!important;color:#aaa1af!important;border:0!important;box-shadow:none!important}
.badge.high{background:#281419!important;color:#e7929f!important}.badge.proof{background:#211526!important;color:#c994e2!important}.badge.fix-badge{background:#272113!important;color:#c7aa68!important}
.chain-steps{background:#0b0b0c!important;border:1px solid #201d23!important}.chain-step{background:#141316!important;border:0!important}
.next-card{background:#0f0f11!important;border:1px solid #201d23!important;box-shadow:none!important;border-radius:20px!important}
.next-number{background:#19161d!important;color:#c98dea!important}
.team-grid{gap:12px!important}.team-card{background:#0f0f11!important;border:1px solid #211e24!important;box-shadow:none!important;border-radius:22px!important}
.team-card-main{background:transparent!important}.team-card footer{border-top:1px solid #1c1a1f!important}
.team-group-badge{background:#171619!important;border:1px solid color-mix(in srgb,var(--group-color) 42%,#242027)!important;box-shadow:none!important}
.profile-avatar{background:#1b1820!important;border:1px solid #2b2630!important;box-shadow:none!important}
.dialog,.wide-dialog{background:#0d0d0f!important;border:1px solid #2a252e!important;box-shadow:0 24px 80px rgba(0,0,0,.55)!important}
.dialog::backdrop{background:rgba(0,0,0,.72)!important;backdrop-filter:none!important}
.settings-profile{background:#111013!important;border:1px solid #211d25!important;box-shadow:none!important}
.settings-list>div{background:#0f0f11!important;border-color:#211e24!important}
.install-mail{background:#121014!important;border:1px solid #2d2532!important;box-shadow:none!important}
.install-mail-icon{background:#211724!important;color:#d299eb!important}
.mail-card{background:#101012!important;border:1px solid #242028!important;box-shadow:none!important}
.mail-card.unread{background:#141016!important;border-color:#493652!important}.mail-card.install,.mail-card.security{background:#101012!important}
.mail-card-icon{background:#1d1721!important;color:#ce91e8!important}.mail-key-row{background:#09090a!important;border:1px solid #201c23!important}
.mail-action{background:#654b72!important;box-shadow:none!important}.mail-action.done{background:#1b1a1d!important;color:#aaa4ad!important}
.admin-panel,.admin-setup-section,.setup-user-card{background:#0f0f11!important;border:1px solid #242028!important;box-shadow:none!important}
.admin-action{background:#151417!important;border:1px solid #29252d!important;box-shadow:none!important}.admin-action.primary{background:#24172a!important;border-color:#3d2a45!important}
.admin-action.danger{background:#211316!important;border-color:#44262d!important}
.admin-console-shell{background:#09090a!important;border:1px solid #27222b!important;box-shadow:none!important}
.admin-console-output{background:#050506!important;border:1px solid #18161a!important}.admin-console-form input{background:#111013!important}
.setup-system-button{background:#131215!important;border:1px solid #2a252e!important;box-shadow:none!important}
.access-check{background:#141316!important;border:1px solid #242128!important}.access-check:has(input:checked){background:#1d1621!important;border-color:#4a3553!important}
.toggle-row{background:#131215!important;border:1px solid #252129!important}.segmented{background:#111013!important;border:1px solid #252129!important}.segmented button.active{background:#695076!important;color:white!important}
.key-secret,.account-key-card,.install-app-card,.install-status,.install-details{background:#111013!important;border:1px solid #242028!important;box-shadow:none!important}
.archive-card,.session-card,.adjustment-card{background:#101012!important;border:1px solid #211e24!important;box-shadow:none!important}
.bottom-nav{left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(calc(100% - 34px),620px)!important;background:#0b0b0d!important;border:1px solid #211e24!important;box-shadow:0 18px 48px rgba(0,0,0,.58)!important;border-radius:28px!important}
.nav-item{background:transparent!important;color:#8e8792!important;box-shadow:none!important;border:0!important}.nav-item.active{background:#70547d!important;color:#fff!important;border-radius:22px!important}
.nav-item .nav-icon{background:transparent!important}.nav-item.active .nav-icon{color:#fff!important}
.veyra-system-card{background:#0f0f11!important;border-color:#36283d!important}.veyra-system-profile .profile-head,.veyra-system-info,.veyra-system-me-card{background:#111013!important;border-color:#35273c!important;box-shadow:none!important}
.safu-pending-card{background:#0f0f11!important;border-color:#343038!important;border-style:dashed!important}
.pending-badge{padding:4px 7px;border-radius:8px;background:#1c1a1f;color:#aaa2af;font-size:.57rem;font-weight:750;letter-spacing:.06em}
.pending-note{color:#9f96a4!important}.safu-register-hint{display:flex;gap:11px;align-items:center;padding:12px 13px;border:1px solid #352a3b;border-radius:15px;background:#121014}
.safu-register-hint.hidden{display:none}.safu-dot{width:9px;height:9px;border-radius:50%;background:#c987ec;flex:0 0 auto}
.safu-register-hint>div{display:grid;gap:3px}.safu-register-hint strong{font-size:.75rem}.safu-register-hint small{font-size:.67rem;color:#8e8792;line-height:1.45}
.safu-provision-info{grid-column:1/-1;display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;padding:18px;border:1px dashed #38323d;border-radius:20px;background:#0f0f11}
.safu-provision-mark{width:52px;height:52px;display:grid;place-items:center;border-radius:17px;background:#1b1820;color:#d09aeb;font-size:1.1rem;font-weight:700}
.safu-provision-info h2{margin:4px 0 5px;font-size:.95rem}.safu-provision-info p{margin:0;color:#918a96;font-size:.73rem;line-height:1.55}.safu-provision-state{display:inline-flex;margin-top:10px;color:#c3bac8;font-size:.66rem}
.safu-provision-note{padding:16px;border-radius:18px;background:#0f0f11;border:1px solid #211e24}.safu-provision-note strong{font-size:.8rem}.safu-provision-note p{margin:6px 0 0;color:#8e8792;font-size:.72rem;line-height:1.5}
.toast{background:#18151b!important;border:1px solid #342d3a!important;box-shadow:0 14px 40px rgba(0,0,0,.5)!important}.toast.error{background:#241518!important;border-color:#4c2931!important}
@media(max-width:700px){.main-shell{padding-inline:18px}.topbar{padding-inline:18px}.dialog,.wide-dialog{background:#0c0c0e!important;border-color:#29242d!important}.bottom-nav{width:calc(100% - 28px)!important}.task-card{padding:16px!important}}

.auth-text-button{justify-self:center;border:0;background:transparent;color:#bda9c7;padding:2px 8px 4px;font:600 .72rem/1.3 Inter,Roboto,"Segoe UI",system-ui,sans-serif}
.auth-text-button:active{color:#ddb5ef}
.recovery-note{display:grid;gap:5px;padding:13px 14px;border:1px solid #29242e;border-radius:16px;background:#111013;margin-bottom:2px}
.recovery-note strong{font-size:.78rem;font-weight:650}.recovery-note small{color:#8f8794;font-size:.68rem;line-height:1.5}
#passwordResetForm .field span{color:#aaa2af}
#resetRecoveryKey{text-transform:uppercase;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.76rem;letter-spacing:.02em}

/* Veyra Tasks 4.5 · task wiring, presence, task runs and work charts */
.team-card-copy h3{display:flex;align-items:center;gap:8px}
.presence-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:0 0 auto;box-shadow:none}
.presence-dot.online{background:#65c98a}.presence-dot.working{background:#e36472}.presence-dot.offline{background:#646169}
.task-card.linked-task{position:relative;margin-left:16px}
.task-card.linked-task::before{content:"";position:absolute;left:-12px;top:-13px;bottom:-13px;width:2px;background:#604b69;border-radius:2px}
.task-card.linked-task::after{content:"";position:absolute;left:-16px;top:50%;width:10px;height:10px;margin-top:-5px;border-radius:50%;background:#0f0f11;border:2px solid #8d6a9a}
.task-card.linked-task.wire-start::before{top:50%}.task-card.linked-task.wire-end::before{bottom:50%}.task-card.linked-task.wire-single::before{display:none}
.task-card.linked-task.wire-middle,.task-card.linked-task.wire-end{margin-top:-5px}
.task-run-button{min-width:76px;min-height:43px;padding:0 12px;border:1px solid #342a39;border-radius:13px;background:#17151a;color:#e6dde9;display:grid;place-items:center;gap:1px;font:inherit}
.task-run-button span{font-size:.69rem;font-weight:700}.task-run-button small{font-size:.56rem;color:#978c9c;font-variant-numeric:tabular-nums}
.task-run-button.active{background:#291d2e;border-color:#5b4165;color:#dba2f1}
.task-trash-button{width:43px;height:43px;border-radius:13px;border:1px solid #49282f;background:#221316;color:#e77888;display:grid;place-items:center}
.task-trash-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.status-pill.worker{background:#1c1920!important;color:#cfc4d4!important}

.work-chart-card{margin:16px 0;padding:18px;border:1px solid #211e24;border-radius:22px;background:#0f0f11}
.work-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}
.work-chart-head h3{margin:4px 0 0;font-size:.9rem;font-weight:650}
.work-chart-legend{display:flex;gap:12px;align-items:center;color:#908892;font-size:.62rem}
.work-chart-legend span{display:flex;align-items:center;gap:5px}.work-chart-legend span::before{content:"";width:8px;height:8px;border-radius:2px;background:#e9e5ec}
.work-chart-legend .overtime::before{background:#c6a04c}
.work-chart-body{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;height:190px}
.work-chart-axis{display:flex;flex-direction:column;justify-content:space-between;padding:0 0 23px;color:#716a75;font-size:.57rem;text-align:right}
.work-chart-grid{position:relative;border-left:1px solid #28242c;border-bottom:1px solid #28242c}
.work-chart-grid>i{position:absolute;left:0;right:0;height:1px;background:#1e1b20}.work-chart-grid>i:nth-child(1){top:0}.work-chart-grid>i:nth-child(2){top:50%}.work-chart-grid>i:nth-child(3){bottom:23px}
.work-chart-days{position:absolute;inset:0 0 0 0;display:grid;grid-template-columns:repeat(7,1fr);gap:8px;padding:0 7px}
.work-chart-day{min-width:0;display:grid;grid-template-rows:minmax(0,1fr) 23px;align-items:end;text-align:center}
.work-chart-day>strong{font-size:.58rem;color:#857d89;align-self:center}
.work-chart-bar{height:100%;display:flex;flex-direction:column-reverse;justify-content:flex-start;align-items:stretch;gap:2px}
.work-chart-segment{display:block;min-height:0;border-radius:5px 5px 2px 2px;background:#e9e5ec}
.work-chart-segment.overtime{background:#c6a04c}
.overtime-badge{background:#2b2414!important;color:#d8b96d!important}
.action-confirm-dialog,.delete-request-dialog{max-width:430px!important}
.confirm-task-list{display:grid;gap:8px;margin:14px 0}
.confirm-task-row{display:grid;grid-template-columns:8px minmax(0,1fr);gap:9px;align-items:center;padding:11px 12px;border-radius:13px;background:#141316;border:1px solid #242128}
.confirm-task-row>span{width:7px;height:7px;border-radius:50%;background:#c987ec}.confirm-task-row strong{font-size:.72rem}

@media(max-width:700px){
  .delete-request-dialog,.action-confirm-dialog{inset:50% auto auto 50%!important;transform:translate(-50%,-50%);width:calc(100% - 36px)!important;max-width:430px!important;margin:0!important;border:1px solid #2a252e!important;border-radius:24px!important;padding:20px!important;max-height:calc(100dvh - 64px)!important}
  .delete-request-dialog::before,.action-confirm-dialog::before{display:none!important}
}

.task-dialog-trash{display:inline-flex!important;align-items:center;gap:7px;color:#e77888!important}
.task-dialog-trash.hidden{display:none!important}.task-dialog-trash svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.task-run-button:disabled{opacity:.42;cursor:not-allowed}

/* Wiring groups stay visually and physically together. */
.task-card.linked-task.wire-middle,.task-card.linked-task.wire-end{margin-top:-12px!important}
.task-card.linked-task.wire-start{border-radius:22px 22px 10px 10px!important}
.task-card.linked-task.wire-middle{border-radius:10px!important}
.task-card.linked-task.wire-end{border-radius:10px 10px 22px 22px!important}
.task-card.linked-task.wire-start::after,.task-card.linked-task.wire-middle::after,.task-card.linked-task.wire-end::after{background:#c987ec;border-color:#0f0f11}

/* Veyra Tasks 4.6 · license freeze state */
.frozen-user{opacity:.68}
.disabled-badge.frozen{background:#21192a!important;color:#d49aec!important;border:1px solid #4b3656!important}

/* Mailbox credential archive */
.mail-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mail-action.archive{background:#171619!important;border:1px solid #302a34!important;color:#bdb4c2!important}
.mail-card.archived{opacity:.82;background:#0b0b0d!important}
.mail-card.archived .mail-key-row.masked{background:#09090a!important}
.mail-card.archived .mail-key-row.masked code{color:#8e8792!important;letter-spacing:.03em}
.mail-archive-section{display:grid;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid #242028}
.mail-archive-head{display:flex;align-items:center;justify-content:space-between;padding:0 3px}
.mail-archive-head small{color:#756d79;font-size:.64rem}


/* Veyra Tasks v4.9.1 — live status of the protected Veyra Root system profile. */
.veyra-system-card.system-running{
  border-color:#7f3b4a!important;
  background:#151014!important;
}
.veyra-system-card.system-running .system-badge,
.system-badge.working{
  background:#421b25!important;
  color:#ffa7b3!important;
  border:1px solid #8b4353;
}
.veyra-system-card.system-running .system-note{color:#ef91a1!important}
.veyra-system-card.system-running .presence-dot.working{
  background:#fa6d82;
  box-shadow:0 0 0 4px rgba(250,109,130,.12);
}
.veyra-system-profile.system-running .profile-head,
.veyra-system-profile.system-running .veyra-system-info{
  border-color:#813b4b!important;
  background:#161015!important;
}
.system-activity-indicator{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  margin:11px 0 0;
  padding:8px 11px;
  border-radius:999px;
  border:1px solid #315d4a;
  background:#17281f;
  color:#a8e2bf;
  font-size:.7rem;
  font-weight:760;
  letter-spacing:.02em;
}
.system-activity-led{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#75d19a;
  flex:none;
}
.system-activity-indicator.working{
  border-color:#934658;
  color:#ffacba;
  background:#381b25;
}
.system-activity-indicator.working .system-activity-led{
  background:#ff7189;
  box-shadow:0 0 0 4px rgba(255,113,137,.14);
}
.system-runtime-working{color:#ff9cac!important}
.system-runtime-ready{color:#9cdab6!important}
.veyra-system-profile-note.system-note-working{
  background:#21171c;
  border-color:#713848;
}
.veyra-system-profile-note.system-note-working>strong{color:#ff9cac}

/* Only privileged activity is red; idle-but-available is green. */
.veyra-system-card:not(.system-running) .system-badge{
  background:#16281e!important;
  border:1px solid #356c50!important;
  color:#a2e3bc!important;
}
.veyra-system-card.system-running .veyra-system-avatar,
.veyra-system-profile.system-running .profile-avatar.large{
  border-color:#a54b5f!important;
}
.veyra-system-card.system-running .veyra-system-avatar-mark svg{
  stroke:#ff899f!important;
}

/* Veyra Tasks 4.9.3 · Console Command Library — OLED-first, no gradients */
.admin-console-controls{display:flex!important;align-items:center;gap:9px}
.admin-console-online{display:inline-flex;align-items:center;gap:6px;font:700 .59rem/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.09em;color:#a08cae}
.admin-console-online>span{width:6px;height:6px;border-radius:50%;background:#b6a0c6}
.admin-console-command-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 11px;border:1px solid #46344e;border-radius:10px;background:#1b1421;color:#dec0f0;font-size:.7rem;font-weight:700;transition:background .15s,border-color .15s}
.admin-console-command-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.admin-console-command-button:hover,.admin-console-command-button.active{background:#2a1d32;border-color:#9570a7}
.admin-command-library{margin-top:15px;border:1px solid #32263a;border-radius:17px;background:#080809;overflow:hidden;color:#efe9f3}
.admin-command-library-header{display:flex;align-items:center;gap:12px;padding:17px 16px 15px;border-bottom:1px solid #211c26;background:#0e0c10}
.admin-command-library-icon{width:44px;height:44px;flex:0 0 44px;border-radius:13px;border:1px solid #4b355a;background:#211629;color:#d3a0ec;display:grid;place-items:center}
.admin-command-library-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.admin-command-library-title{min-width:0;flex:1}
.admin-command-library-overline{display:block;color:#a68bb3;font-size:.56rem;font-weight:730;letter-spacing:.12em}
.admin-command-library-title h3{margin:4px 0;color:#f7f1f9;font-size:1.03rem;line-height:1.2;letter-spacing:-.025em}
.admin-command-library-title p{margin:0;color:#958a9c;font-size:.68rem;line-height:1.45}
.admin-command-library-close{display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;border:1px solid #302935;border-radius:9px;background:#171319;color:#b3a2bc;font-size:1.32rem;line-height:1}
.admin-command-library-close:hover{border-color:#8b679b;color:#f9f5fa}
.admin-command-library-search{display:flex;align-items:center;gap:9px;height:44px;margin:14px 14px 4px;padding:0 12px;border:1px solid #3a303f;border-radius:12px;background:#121014}
.admin-command-library-search:focus-within{border-color:#a179b5}
.admin-command-library-search svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:#ae9aba;stroke-width:1.8;stroke-linecap:round}
.admin-command-library-search input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:none;background:transparent;color:#f3ecf8;font-size:.72rem;appearance:none}
.admin-command-library-search input::placeholder{color:#86798c}
.admin-command-library-search input::-webkit-search-cancel-button{cursor:pointer}
.admin-command-library-search>span{flex:0 0 auto;color:#b49bc2;font:700 .59rem ui-monospace,SFMono-Regular,Menlo,monospace;white-space:nowrap}
.admin-command-library-groups{display:grid;gap:13px;padding:13px 14px 7px}
.admin-command-library-group{border:1px solid #262028;border-radius:13px;background:#0d0c0f;overflow:hidden}
.admin-command-library-group-head{display:flex;align-items:center;gap:9px;min-height:47px;padding:10px 12px;border-bottom:1px solid #231e26;background:#121016}
.admin-command-library-group-index{font:700 .63rem ui-monospace,SFMono-Regular,Menlo,monospace;color:#c397d9}
.admin-command-library-group-head strong{flex:1;min-width:0;color:#e7d8ef;font-size:.73rem;letter-spacing:.015em}
.admin-command-library-group-count{padding:4px 6px;border-radius:7px;background:#1b1520;color:#a38cae;font:650 .53rem ui-monospace,SFMono-Regular,Menlo,monospace;white-space:nowrap}
.admin-command-library-rows{display:grid}
.admin-command-library-row{display:flex;align-items:center;gap:10px;min-height:59px;padding:7px 9px 7px 12px;border-top:1px solid #211d24}
.admin-command-library-row:first-child{border-top:0}
.admin-command-library-row:hover{background:#151017}
.admin-command-library-row-index{flex:0 0 20px;color:#7a6e80;font:650 .61rem ui-monospace,SFMono-Regular,Menlo,monospace}
.admin-command-library-fill{display:grid;gap:3px;flex:1;min-width:0;text-align:left;border:0;background:transparent;padding:7px 2px}
.admin-command-library-fill code{overflow-wrap:anywhere;color:#deb2f0;font:650 .71rem/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.admin-command-library-fill small{color:#918296;font-size:.59rem}
.admin-command-library-fill:hover code{color:#f4d9ff}
.admin-command-library-copy{display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;border:1px solid #342938;border-radius:10px;background:#1c1620;color:#bfa6cc}
.admin-command-library-copy:hover{background:#2b2032;border-color:#845e95;color:#e9c6f9}
.admin-command-library-copy svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.admin-command-library-empty{padding:28px 14px;text-align:center;color:#aa9aaf;font-size:.74rem}
.admin-command-library-note{margin:9px 14px 15px;padding:12px 1px 0;border-top:1px solid #242028;color:#9989a1;font-size:.65rem;line-height:1.55}
@media(max-width:520px){
  .admin-console-controls{gap:6px}.admin-console-online{font-size:.52rem}
  .admin-console-command-button{min-height:33px;padding:0 8px;font-size:.66rem}
  .admin-command-library-header{padding:14px 11px;gap:9px}
  .admin-command-library-icon{width:39px;height:39px;flex-basis:39px}
  .admin-command-library-title h3{font-size:.96rem}.admin-command-library-title p{font-size:.63rem}
  .admin-command-library-search{margin:11px 10px 4px;padding:0 9px;gap:7px}
  .admin-command-library-search>span{font-size:.51rem}
  .admin-command-library-groups{padding:11px 10px 5px;gap:10px}
  .admin-command-library-row{padding-left:9px;gap:7px}
  .admin-command-library-row-index{flex-basis:15px;font-size:.54rem}
  .admin-command-library-fill code{font-size:.66rem}
  .admin-command-library-copy{width:33px;height:33px;flex-basis:33px}
}
@media(prefers-reduced-motion:reduce){.admin-console-command-button{transition:none}}
