:root {
  color-scheme: dark;
  --paper: #100e16;
  --white: #191622;
  --ink: #f1edf8;
  --muted: #aaa3b8;
  --line: #302b3b;
  --green: #c5b0ff;
  --green-deep: #a58aeb;
  --coral: #f29bcb;
  --blue: #b6caff;
  --lilac: #2a2338;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --font-display: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #64a83b; outline-offset: 3px; }
.app-shell { min-height: 100vh; }
.sidebar { width: 248px; padding: 28px 16px 16px; background: #fff; border-right: 1px solid var(--line); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 11px; padding: 0 12px; color: var(--ink); text-decoration: none; width: fit-content; }
.brand-mark { display: block; width: 36px; height: 34px; flex: 0 0 auto; }
.brand-name { font: 800 14px/1 var(--font-display); letter-spacing: 0; }
.brand-name span { display: block; margin-top: 4px; font: 700 9px/1 var(--font-display); color: #9aa39f; }
.workspace-label, .eyebrow { color: #9aa39f; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.workspace-label { margin: 46px 12px 13px; }
.nav-list { display: grid; gap: 4px; }
.nav-item { min-height: 44px; padding: 0 12px; display: flex; gap: 13px; align-items: center; border: 0; border-radius: 7px; background: transparent; color: #66716d; font-weight: 600; text-align: left; cursor: pointer; transition: background .18s, color .18s; }
.nav-item:hover { background: #f4f6f3; color: var(--ink); }
.nav-item.active { background: #eff6e7; color: #315523; }
.nav-icon { width: 19px; font-size: 19px; font-weight: 500; text-align: center; }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: #fff; font-size: 11px; color: #707a76; }
.sidebar-bottom { margin-top: auto; }
.system-card { padding: 13px 12px; margin-bottom: 13px; background: #f6f8f5; border: 1px solid #edf0ec; border-radius: 7px; }
.system-top { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; background: #75bf50; border-radius: 50%; box-shadow: 0 0 0 3px #e0f0d7; }
.system-note { display: block; padding: 5px 0 0 15px; color: var(--muted); font-size: 10px; }
.profile-button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 6px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.avatar { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: #ffe0d5; color: #814737; font-size: 11px; font-weight: 700; }
.avatar-me { background: #f8c3af; color: #773d2c; }
.profile-copy { display: grid; gap: 3px; }
.profile-copy strong { font-size: 12px; }
.profile-copy small { color: var(--muted); font-size: 10px; }
.profile-more { margin-left: auto; color: #8c9692; font-size: 19px; }
.main-area { min-height: 100vh; margin-left: 248px; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 44px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.72); }
.search-box { height: 38px; width: min(350px, 42vw); display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); background: #fff; border-radius: 6px; color: #86908c; }
.search-box > span { font-size: 21px; line-height: 1; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #a3aba7; }
kbd { white-space: nowrap; font: 10px var(--font-body); color: #9da6a2; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.today-label { color: #7c8782; font-size: 11px; }
.icon-button { position: relative; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #56615c; cursor: pointer; }
.notification-button { font-size: 17px; }
.notification-button i { position: absolute; width: 6px; height: 6px; top: 7px; right: 7px; border: 1px solid #fff; border-radius: 50%; background: var(--coral); }
.top-avatar { width: 31px; height: 31px; cursor: pointer; }
.page-content { max-width: 1390px; margin: 0 auto; padding: 35px 44px 55px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 6px 0 5px; font: 700 25px/1.2 var(--font-display); letter-spacing: 0; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.eyebrow { color: #8b9691; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 14px; border: 0; border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #263a20; background: var(--green); }
.button-primary:hover { background: #b8e858; }
.button-quiet { color: #5f6965; background: #f2f4f1; }
.button-outline { color: #49544f; background: #fff; border: 1px solid var(--line); }
.welcome-banner { min-height: 204px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 30px 35px; border-radius: 8px; background: #dff2c4; }
.welcome-banner::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 46%; opacity: .4; background-image: radial-gradient(#789d59 1px, transparent 1px); background-size: 13px 13px; mask-image: linear-gradient(90deg, transparent, #000); }
.welcome-copy, .welcome-art { position: relative; z-index: 1; }
.welcome-copy .eyebrow { color: #608347; }
.welcome-copy h2 { max-width: 520px; margin: 9px 0 7px; font: 700 27px/1.15 var(--font-display); letter-spacing: 0; }
.welcome-copy p { margin: 0; color: #617256; font-size: 12px; }
.checkin-button { margin-top: 20px; padding: 0 13px; min-height: 35px; border-radius: 5px; color: white; background: #263c2c; font-size: 11px; font-weight: 700; cursor: pointer; }
.welcome-art { width: 168px; height: 130px; flex: 0 0 auto; }
.art-cloud { position: absolute; width: 98px; height: 39px; right: 26px; top: 46px; border: 2px solid #557a45; border-radius: 30px; background: #eff9df; transform: rotate(-8deg); }
.art-cloud::before, .art-cloud::after { content: ""; position: absolute; border: 2px solid #557a45; border-bottom: 0; background: #eff9df; }
.art-cloud::before { width: 38px; height: 27px; left: 20px; top: -18px; border-radius: 28px 28px 0 0; }
.art-cloud::after { width: 27px; height: 20px; left: 47px; top: -12px; border-radius: 20px 20px 0 0; }
.art-sun { position: absolute; width: 25px; height: 25px; top: 19px; right: 5px; border-radius: 50%; background: var(--coral); }
.art-line { position: absolute; right: 47px; top: 90px; width: 52px; height: 2px; background: #557a45; transform: rotate(-8deg); }
.art-spark { position: absolute; color: #608347; font-size: 22px; }
.art-spark.one { top: 25px; left: 18px; }.art-spark.two { bottom: 17px; right: 3px; font-size: 16px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 17px 0 25px; }
.metric-card { min-height: 95px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #77817d; font-size: 11px; }
.metric-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 6px; background: #eff6e7; color: #65884c; font-size: 15px; }
.metric-card:nth-child(2) .metric-icon { background: #fff0e9; color: #c66c4f; }
.metric-card:nth-child(3) .metric-icon { background: #eaf2ff; color: #6382b4; }
.metric-value { display: flex; align-items: baseline; gap: 7px; margin-top: 8px; font: 700 22px/1 var(--font-display); }
.metric-value small { color: #929b97; font: 500 10px var(--font-body); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(265px, .75fr); gap: 17px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.panel + .panel { margin-top: 16px; }
.panel-header { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 17px; border-bottom: 1px solid #eef0ed; }
.panel-header h3 { margin: 0; font: 700 13px var(--font-display); }
.panel-header p { margin: 4px 0 0; color: #8c9691; font-size: 10px; }
.text-button { border: 0; padding: 7px 0 7px 7px; background: transparent; color: #587c41; font-size: 10px; font-weight: 700; cursor: pointer; }
.task-list { padding: 0 17px; }
.task-row { min-height: 61px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #f0f2ef; }
.task-row:last-child { border-bottom: 0; }
.task-check { width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #cbd3ce; border-radius: 5px; background: #fff; color: transparent; cursor: pointer; }
.task-row.done .task-check { border-color: #83ae5b; background: #83ae5b; color: #fff; }
.task-row.done .task-title { color: #a3aca7; text-decoration: line-through; }
.task-info { min-width: 0; flex: 1; }
.task-title { display: block; overflow: hidden; color: #35413c; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.task-sub { display: block; margin-top: 4px; color: #929b97; font-size: 10px; }
.task-priority { flex: 0 0 auto; padding: 5px 7px; border-radius: 4px; background: #fff2e9; color: #ba704d; font-size: 9px; font-weight: 700; }
.task-priority.low { background: #edf5e6; color: #618247; }
.feed-list { padding: 4px 17px 8px; }
.feed-item { display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px solid #f0f2ef; }
.feed-item:last-child { border: 0; }
.feed-mark { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: #fff0e9; color: #c87154; font-weight: 700; }
.feed-item:nth-child(2) .feed-mark { background: #e8f1ff; color: #6080ae; }
.feed-item:nth-child(3) .feed-mark { background: #edf5e6; color: #66864d; }
.feed-copy strong { display: block; font-size: 10px; line-height: 1.5; }
.feed-copy p { margin: 3px 0 0; color: #8b9590; font-size: 10px; line-height: 1.5; }
.feed-copy time { display: block; margin-top: 5px; color: #a4aca8; font-size: 9px; }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 13px; }
.quick-link { min-height: 66px; display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid #edf0ec; border-radius: 6px; background: white; text-align: left; cursor: pointer; transition: border .15s, background .15s; }
.quick-link:hover { border-color: #c8dcb5; background: #fbfdf8; }
.quick-link-icon { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; background: #f2f6ec; color: #638147; font-size: 15px; }
.quick-link:nth-child(2) .quick-link-icon { background: #fff0e9; color: #be7054; }
.quick-link:nth-child(3) .quick-link-icon { background: #eaf2ff; color: #6280ac; }
.quick-link:nth-child(4) .quick-link-icon { background: #f0eaff; color: #7b69a6; }
.quick-link strong { display: block; font-size: 10px; }.quick-link small { display: block; margin-top: 3px; color: #909a95; font-size: 9px; }
.simple-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.simple-card { padding: 17px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.simple-card h3 { margin: 0 0 6px; font: 700 13px var(--font-display); }
.simple-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.simple-card .button { margin-top: 14px; }
.person-card { display: flex; align-items: center; gap: 12px; }
.person-card .person-info { min-width: 0; flex: 1; }
.person-info strong, .person-info small { display: block; }.person-info strong { font-size: 11px; }.person-info small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.person-card a { color: #628147; font-size: 10px; font-weight: 700; text-decoration: none; }
.resource-icon { width: 31px; height: 31px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 7px; background: #eff6e7; color: #65884c; font-size: 16px; }
.resource-card:nth-child(2) .resource-icon { background: #fff0e9; color: #c66c4f; }.resource-card:nth-child(3) .resource-icon { background: #eaf2ff; color: #6382b4; }
.event-list { display: grid; gap: 10px; }
.event-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 15px 17px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.event-date { padding: 8px 4px; border-radius: 6px; background: #eff6e7; text-align: center; color: #52723b; }
.event-date strong { display: block; font: 700 17px var(--font-display); }.event-date small { font-size: 9px; font-weight: 700; text-transform: uppercase; }
.event-details strong { display: block; font-size: 11px; }.event-details small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.event-tag { padding: 5px 8px; border-radius: 4px; background: #f4f6f3; color: #77817d; font-size: 9px; }
.empty-search { display: none; padding: 25px; color: var(--muted); text-align: center; font-size: 12px; }
.leave-dialog { width: min(430px, calc(100vw - 30px)); padding: 23px; border: 0; border-radius: 9px; box-shadow: 0 20px 80px #1e292733; }
.leave-dialog::backdrop { background: #18231f66; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-heading h2 { margin: 5px 0 0; font: 700 21px var(--font-display); }
.dialog-close { font-size: 19px; }
.dialog-intro { margin: 14px 0 20px; color: var(--muted); font-size: 11px; }.dialog-intro strong { color: #476d35; }
.field-label { display: block; margin: 13px 0 6px; color: #525e58; font-size: 10px; font-weight: 700; }.field-label span { color: #9ba49f; font-weight: 400; }
.form-input { width: 100%; min-height: 39px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; font-size: 11px; }
textarea.form-input { resize: vertical; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 6px; background: #263c2c; color: #fff; font-size: 11px; box-shadow: 0 8px 25px #1e292733; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.mobile-nav { display: none; }
*[hidden] { display: none !important; }
.heading-actions { display: flex; gap: 8px; }
.directory-toolbar { display: flex; justify-content: space-between; padding: 11px 1px; margin-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.directory-grid { align-items: stretch; }
.person-card { min-width: 0; }
.person-card .person-info small + small { margin-top: 4px; }
.small-avatar { width: 24px; height: 24px; font-size: 8px; }
.profile-large { width: 46px; height: 46px; font-size: 13px; }
.person-profile-head { display: flex; align-items: center; gap: 12px; padding: 19px 0; }
.person-profile-head h3 { margin: 0; font: 700 16px var(--font-display); }
.person-profile-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.person-detail-list { margin: 0; border-top: 1px solid var(--line); }
.person-detail-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef0ed; }
.person-detail-list dt { color: var(--muted); font-size: 10px; }
.person-detail-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 11px; }
.person-detail-list a { color: #557840; }
.form-dialog { width: min(590px, calc(100vw - 30px)); max-height: min(90vh, 800px); overflow-y: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.form-grid .field-label { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field-label .form-input { display: block; margin-top: 6px; }
.person-dialog { width: min(460px, calc(100vw - 30px)); }
.board-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.board-filter { height: 34px; padding: 0 28px 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: 10px; }
.kanban-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; align-items: start; overflow-x: auto; contain: layout; padding: 1px 1px 12px; }
.board-column { min-width: 0; min-height: 290px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #f8f9f7; }
.column-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.column-heading h2 { margin: 0; font: 700 11px var(--font-display); }
.column-heading > span { min-width: 21px; padding: 4px 6px; border-radius: 5px; background: #ecefeb; color: #727d77; font-size: 9px; text-align: center; }
.column-items { display: grid; gap: 8px; }
.work-card { padding: 11px; border: 1px solid #e8ece8; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px #1e29270a; }
.work-card-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.work-type, .work-priority { padding: 4px 6px; border-radius: 4px; background: #eef5e8; color: #648249; font-size: 8px; font-weight: 700; }
.work-type.ticket { background: #e9f1ff; color: #5c78a6; }
.work-priority { background: #f1f3f0; color: #727d77; }
.work-priority.high, .work-priority.critical { background: #fff0e9; color: #be674d; }
.work-card h3 { margin: 10px 0 5px; font: 700 11px/1.45 var(--font-display); }
.work-card > p { min-height: 31px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.work-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 11px; padding-top: 8px; border-top: 1px solid #f0f2ef; }
.work-id { color: #8c9691; font-size: 8px; }
.status-select { max-width: 103px; min-height: 27px; padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #59645e; font-size: 8px; }
.work-card-assignee { display: flex; align-items: center; gap: 6px; margin-top: 9px; color: #748079; font-size: 9px; }
.due-label { margin-left: auto; color: #909a95; font-size: 8px; }
.column-empty { margin: 0; padding: 24px 5px; color: #a0a9a4; font-size: 9px; text-align: center; }
.board-empty { display: none; }
.infra-status-bar { display: flex; align-items: center; gap: 9px; min-height: 51px; margin-bottom: 15px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.infra-status-dot, .node-state { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #aab3ae; }
.infra-status-dot.live, .node-state.online { background: #6dad4c; box-shadow: 0 0 0 3px #e4f1da; }
.infra-status-dot.demo { background: #dca04a; box-shadow: 0 0 0 3px #faf0de; }
.infra-status-title { flex: 0 0 auto; font-size: 10px; font-weight: 700; }
.infra-status-copy { min-width: 0; color: var(--muted); font-size: 9px; }
.refresh-indicator { margin-left: auto; color: #929b97; font-size: 9px; white-space: nowrap; }
.infra-metrics { margin-top: 0; }
.infra-panel { overflow: hidden; }
.data-source-badge, .vm-count { padding: 5px 7px; border-radius: 4px; background: #f7f1e5; color: #9a7434; font-size: 8px; font-weight: 700; white-space: nowrap; }
.data-source-badge.connected { background: #edf5e6; color: #618247; }
.vm-count { background: #f1f3f0; color: #7a8580; }
.node-list { padding: 0 16px; }
.node-row { display: grid; grid-template-columns: minmax(135px, 1.2fr) repeat(3, minmax(105px, 1fr)); gap: 15px; align-items: center; min-height: 92px; border-bottom: 1px solid #edf0ec; }
.node-row:last-child { border-bottom: 0; }
.node-name-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.node-state.offline { background: #df725b; box-shadow: 0 0 0 3px #fae7e1; }
.node-name-cell strong, .node-name-cell small { display: block; }.node-name-cell strong { font-size: 10px; }.node-name-cell small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.resource-cell { min-width: 0; }
.resource-cell > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; color: var(--muted); font-size: 8px; }
.resource-cell > div:first-child strong { color: #394640; font-size: 9px; }
.resource-track { height: 4px; overflow: hidden; margin: 7px 0 5px; border-radius: 4px; background: #eef0ed; }
.resource-track span { display: block; height: 100%; border-radius: inherit; background: #e4a458; }
.resource-track.memory span { background: #75a856; }.resource-track.disk span { background: #75a9c6; }
.resource-cell > small { display: block; overflow: hidden; color: #929b97; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.vm-table-wrap { overflow-x: auto; }
.vm-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.vm-table th { padding: 10px 15px; background: #fafbf9; color: #88928d; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.vm-table td { padding: 12px 15px; border-top: 1px solid #edf0ec; color: #626d67; font-size: 9px; }
.vm-table td strong { color: #35413c; font-size: 10px; }
.vm-status { padding: 4px 6px; border-radius: 4px; background: #edf5e6; color: #63834b; font-size: 8px; font-weight: 700; text-transform: capitalize; }
.vm-status.stopped { background: #f2f3f1; color: #858e89; }
.vm-panel { margin-top: 15px; }
.chat-panel { min-height: 490px; display: grid; grid-template-columns: 235px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.conversation-list { padding: 14px 10px; border-right: 1px solid var(--line); background: #fbfcfa; }
.conversation-list h2 { margin: 1px 7px 13px; color: #8a948f; font-size: 9px; text-transform: uppercase; }
.conversation-link { width: 100%; display: flex; align-items: center; gap: 9px; padding: 10px 8px; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; }
.conversation-link.active, .conversation-link:hover { background: #eff5e9; }
.conversation-icon { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; background: #edf3e7; color: #627e4a; font-size: 11px; font-weight: 700; }
.conversation-link > span:last-child { min-width: 0; }
.conversation-link strong, .conversation-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-link strong { font-size: 10px; }.conversation-link small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.conversation-thread { min-width: 0; display: grid; grid-template-rows: auto minmax(210px, 1fr) auto; }
.thread-header { min-height: 58px; display: flex; align-items: center; gap: 9px; padding: 9px 15px; border-bottom: 1px solid var(--line); }
.thread-header > div { min-width: 0; }.thread-header strong, .thread-header small { display: block; }.thread-header strong { font-size: 10px; }.thread-header small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.channel-state, .local-data-label { margin-left: auto; padding: 5px 7px; border-radius: 4px; background: #f2f4f1; color: #78837d; font-size: 8px; white-space: nowrap; }
.thread-messages { max-height: 430px; overflow-y: auto; padding: 8px 15px; }
.chat-message { display: flex; gap: 9px; padding: 10px 0; }
.chat-avatar { width: 27px; height: 27px; background: #e6eee0; color: #4f6540; font-size: 8px; }
.chat-message-content { min-width: 0; flex: 1; }
.chat-message-meta { display: flex; align-items: baseline; gap: 8px; }.chat-message-meta strong { font-size: 9px; }.chat-message-meta time { color: #9aa39e; font-size: 8px; }
.chat-message-content p { margin: 5px 0 0; color: #5d6862; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.chat-message.mine .chat-avatar { background: #f8e1d8; color: #915841; }
.thread-empty { padding: 30px 0; color: var(--muted); text-align: center; font-size: 10px; }
.message-composer { display: flex; align-items: flex-end; gap: 9px; padding: 11px; border-top: 1px solid var(--line); }
.message-composer textarea { min-width: 0; flex: 1; resize: vertical; padding: 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 10px; }
.message-composer .button { min-height: 34px; }
.preview-message { display: flex; align-items: center; gap: 9px; padding: 12px 15px; }
.preview-message p { min-width: 0; flex: 1; overflow: hidden; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.preview-message p strong { color: var(--ink); }
.preview-message time { color: #9aa39e; font-size: 8px; }
.more-link { width: 100%; color: var(--ink); text-align: left; cursor: pointer; }
.more-link .text-button { display: inline-block; margin-top: 10px; padding-left: 0; }
.more-grid { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 1050px) {
  .sidebar { width: 218px; }
  .main-area { margin-left: 218px; }
  .page-content { padding-right: 28px; padding-left: 28px; }
  .topbar { padding: 0 28px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr); gap: 12px; }
  .welcome-art { transform: scale(.88); transform-origin: right center; margin-left: -20px; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .main-area { margin-left: 0; padding-bottom: 68px; }
  .topbar { height: 61px; padding: 0 17px; }
  .search-box { width: min(260px, 61vw); height: 35px; }
  .search-box kbd, .today-label { display: none; }
  .topbar-actions { gap: 11px; }
  .icon-button { width: 32px; height: 32px; }
  .top-avatar { width: 30px; height: 30px; }
  .page-content { padding: 25px 17px 35px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  .page-heading h1 { font-size: 22px; }
  .page-heading p { max-width: 240px; line-height: 1.5; }
  .page-heading > .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
  .welcome-banner { min-height: 188px; padding: 24px 21px; }
  .welcome-copy h2 { max-width: 310px; font-size: 23px; }
  .welcome-copy p { max-width: 250px; line-height: 1.5; }
  .welcome-art { position: absolute; right: 7px; bottom: 0; width: 120px; opacity: .55; transform: scale(.75); transform-origin: right bottom; }
  .metric-grid { gap: 8px; margin: 12px 0 18px; }
  .metric-card { min-height: 83px; padding: 12px 10px; }
  .metric-top { font-size: 9px; }
  .metric-icon { width: 22px; height: 22px; }
  .metric-value { font-size: 19px; }
  .metric-value small { font-size: 9px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dashboard-grid > div { min-width: 0; }
  .panel + .panel { margin-top: 12px; }
  .panel-header { min-height: 53px; padding: 0 13px; }
  .task-list { padding: 0 13px; }
  .task-row { min-height: 58px; gap: 9px; }
  .task-title { font-size: 10px; }
  .task-sub { font-size: 9px; }
  .task-priority { font-size: 8px; }
  .feed-list { padding-right: 13px; padding-left: 13px; }
  .simple-grid { grid-template-columns: 1fr; gap: 9px; }
  .kanban-board { grid-template-columns: repeat(4, minmax(235px, 78vw)); }
  .infra-status-bar { flex-wrap: wrap; gap: 7px; }
  .refresh-indicator { margin-left: auto; }
  .node-list { padding: 0 12px; }
  .node-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 13px 0; }
  .node-name-cell { grid-column: 1 / -1; }
  .resource-cell > small { max-width: 38vw; }
  .chat-panel { min-height: 520px; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .conversation-list { display: flex; gap: 5px; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .conversation-list h2 { display: none; }
  .conversation-link { width: auto; min-width: max-content; padding: 7px; }
  .conversation-link small { max-width: 130px; }
  .thread-messages { max-height: 350px; }
  .local-data-label { font-size: 7px; }
  .directory-toolbar { font-size: 9px; }
  .person-card { gap: 8px; padding: 13px; }
  .person-card .text-button { font-size: 9px; }
  .event-row { grid-template-columns: 46px 1fr; gap: 11px; padding: 12px; }
  .event-tag { display: none; }
  .heading-actions { flex-direction: column; gap: 5px; }
  .heading-actions .button { min-height: 31px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .person-detail-list > div { grid-template-columns: 94px 1fr; }
  .channel-state { display: none; }
  .thread-header { padding-right: 10px; padding-left: 10px; }
  .message-composer { padding: 8px; }
  .message-composer .button { padding: 0 9px; }
  .infra-status-copy { flex: 1 1 60%; }
  .refresh-indicator { flex: 1 1 100%; margin-left: 17px; }
  .mobile-nav { position: fixed; z-index: 10; inset: auto 0 0; height: 62px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 5px 5px max(5px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
  .mobile-nav-item { display: grid; align-content: center; justify-items: center; gap: 2px; border: 0; border-radius: 6px; background: transparent; color: #87918c; cursor: pointer; }
  .mobile-nav-item span { font-size: 18px; line-height: 1; }
  .mobile-nav-item { min-width: 0; padding: 0 1px; }
  .mobile-nav-item small { overflow: hidden; max-width: 100%; font-size: 9px; font-weight: 600; text-overflow: clip; white-space: nowrap; }
  .mobile-nav-item.active { color: #476d35; }
  .toast { right: 12px; bottom: 75px; }
}
@media (max-width: 500px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card:last-child { grid-column: 1 / -1; min-height: 76px; }
}
@media (max-width: 360px) {
  .page-content { padding-right: 12px; padding-left: 12px; }
  .topbar { padding: 0 12px; }
  .welcome-banner { padding-right: 14px; padding-left: 16px; }
  .welcome-copy h2 { font-size: 21px; }
  .metric-card { padding-right: 7px; padding-left: 8px; }
  .metric-top { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Dark graphite surfaces with soft violet accents. */
body { background: radial-gradient(ellipse at 78% 0, #211a30 0, transparent 44%), var(--paper); }
.sidebar { background: #15121d; }
.topbar { background: rgba(16, 14, 22, .88); }
.mobile-nav { background: #15121d; }
.search-box, .icon-button, .nav-count, .metric-card, .panel, .simple-card, .event-row,
.quick-link, .leave-dialog, .chat-panel, .board-filter, .work-card, .status-select,
.infra-status-bar, .form-input { background: var(--white); }
.conversation-list, .board-column { background: #17141f; }
.conversation-link.active, .conversation-link:hover { background: #292238; }
.panel-header, .task-row, .feed-item, .node-row, .person-detail-list > div,
.work-card-footer, .thread-header, .message-composer { border-color: var(--line); }
.vm-table th { background: #201c2a; }
.vm-table td { border-color: var(--line); }
.welcome-banner {
  background: linear-gradient(120deg, #282039, #34274b 65%, #43325e);
}
.welcome-banner::before {
  background-image: radial-gradient(#c5b0ff 1px, transparent 1px);
}
.welcome-copy .eyebrow, .welcome-copy p, .welcome-art .art-spark { color: #d5c7f7; }
.welcome-copy h2 { color: #fbf9ff; }
.art-cloud, .art-cloud::before, .art-cloud::after { background: #302642; border-color: #c5b0ff; }
.art-line { background: #c5b0ff; }
.checkin-button, .toast { background: #c5b0ff; color: #211a30; }
.button-primary { color: #211a30; }
.button-quiet, .event-tag, .channel-state, .local-data-label, .vm-count,
.work-priority, .column-heading > span { background: #292432; color: #c8c1d2; }
.button-outline { background: #191622; color: var(--ink); }
.nav-item { color: #b5aec2; }
.nav-item:hover, .nav-item.active { background: #292238; color: #ddceff; }
.nav-item.active { color: #ddceff; }
.mobile-nav-item.active, .text-button, .person-card a, .person-detail-list a { color: #c5b0ff; }
.workspace-label, .eyebrow, .conversation-list h2 { color: #a69db5; }
.brand-name span { color: #aaa3b8; }
.system-card { background: #1d1927; border-color: var(--line); }
.status-dot { box-shadow: 0 0 0 3px #293324; }
.avatar, .avatar-me { background: #3a2d45; color: #e5c8f4; }
.metric-top, .today-label, .panel-header p, .task-sub, .task-priority,
.feed-copy p, .feed-copy time, .quick-link small, .event-tag, .event-details small,
.field-label, .chat-message-content p, .person-detail-list dt { color: #aaa3b8; }
.metric-icon, .resource-icon, .conversation-icon, .event-date,
.work-type, .work-type.ticket, .work-priority.low, .vm-status,
.data-source-badge.connected, .quick-link-icon {
  background: #2b2438;
  color: #d0bdff;
}
.metric-card:nth-child(2) .metric-icon, .feed-mark, .quick-link:nth-child(2) .quick-link-icon,
.work-priority.high, .work-priority.critical {
  background: #392536;
  color: #ffbddf;
}
.metric-card:nth-child(3) .metric-icon, .feed-item:nth-child(2) .feed-mark,
.quick-link:nth-child(3) .quick-link-icon, .work-type.ticket { background: #242b40; color: #c2d1ff; }
.feed-item:nth-child(3) .feed-mark, .quick-link:nth-child(4) .quick-link-icon,
.resource-card:nth-child(2) .resource-icon, .resource-card:nth-child(3) .resource-icon { background: #2b2438; color: #d0bdff; }
.task-title, .resource-cell > div:first-child strong, .vm-table td strong,
.work-card h3, .field-label { color: #eee9f5; }
.task-check { background: #191622; border-color: #625a70; }
.task-priority, .work-priority, .work-type { background: #2b2438; color: #d0bdff; }
.task-priority.low { background: #293324; color: #c9e5a7; }
.status-select, .board-filter { color: var(--ink); }
.resource-track { background: #302b3b; }
.vm-table td { color: #c4bdcf; }
.vm-status.stopped { background: #292432; color: #c8c1d2; }
.node-state.online, .infra-status-dot.live { box-shadow: 0 0 0 3px #293324; }
.conversation-list { border-color: var(--line); }
.conversation-icon { background: #2b2438; color: #d0bdff; }
.chat-message-content p { color: #c4bdcf; }
.chat-message.mine .chat-avatar { background: #392536; color: #ffbddf; }
.leave-dialog { color: var(--ink); border: 1px solid var(--line); }
.dialog-intro strong { color: #d0bdff; }
.form-input { color: var(--ink); }
.form-input::placeholder, .message-composer textarea::placeholder { color: #8f879d; }
.person-detail-list a { color: #c5b0ff; }
.quick-link { border-color: var(--line); color: var(--ink); }
.quick-link:hover { border-color: #756393; background: #211c2d; }
.work-card { border-color: var(--line); box-shadow: 0 1px 3px #08070c66; }
.work-card-footer { border-top-color: var(--line); }
.person-detail-list { border-color: var(--line); }
.message-composer textarea { color: var(--ink); background: #100e16; }
.search-box input { color: var(--ink); }
.search-box input::placeholder { color: #8f879d; }
.notification-button i { border-color: #15121d; }
.mobile-nav-item { color: #aaa3b8; }
.focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline-color: #c5b0ff;
}
.auth-mode .sidebar, .auth-mode .topbar, .auth-mode .mobile-nav { display: none; }
.auth-mode .main-area { display: flex; min-height: 100vh; margin: 0; }
.auth-mode .page-content { width: 100%; max-width: 540px; display: grid; align-content: center; padding: 32px 22px; }
.auth-card { padding: 34px; border: 1px solid var(--line); border-radius: 12px; background: #191622; box-shadow: 0 24px 80px #05040966; }
.auth-brand { margin: 0 0 35px; padding: 0; }
.auth-card h1 { margin: 8px 0; font: 700 27px/1.2 var(--font-display); }
.auth-description { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.auth-form { display: grid; gap: 8px; }
.auth-form .button { width: 100%; margin-top: 12px; }
.auth-form .field-label small { display: block; margin-top: 7px; color: var(--muted); font-weight: 400; }
.auth-error { padding: 10px 12px; border: 1px solid #77405e; border-radius: 6px; background: #392536; color: #ffc6e2; font-size: 11px; }
.auth-switch { margin-top: 17px; }
.empty-state { padding: 18px; color: var(--muted); font-size: 11px; }
.requests-panel { margin-top: 16px; }
.request-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.request-reject { color: #ffbddf; }
.invitation-link-row { display: flex; align-items: center; gap: 8px; }
.invitation-link-row .form-input { min-width: 0; flex: 1; }
.invitation-result { margin-top: 12px; }
.pending-invitations { margin-top: 18px; padding-bottom: 8px; }
.checkin-button:disabled { cursor: default; opacity: .72; }

.call-room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.call-room-card { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 12px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.call-room-icon { grid-column: 1; grid-row: 1; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #292238; color: #d7c8ff; font-size: 22px; }
.call-room-copy { grid-column: 2 / -1; grid-row: 1; }
.call-room-copy h2 { margin: 0; font: 700 14px var(--font-display); }
.call-room-copy p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.call-room-count { grid-column: 2; grid-row: 2; color: var(--muted); font-size: 9px; white-space: nowrap; }
.call-room-actions { grid-column: 3; grid-row: 2; display: flex; justify-content: flex-end; }
.call-room-actions .button, .call-contact-actions .button, .person-call-actions .button { min-height: 34px; font-size: 10px; }
.call-connection-state { padding: 6px 9px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); color: #c5b0ff; font-size: 9px; white-space: nowrap; }
.call-contact-list { padding: 4px 15px; }
.call-contact-card { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.call-contact-card:last-child { border-bottom: 0; }
.call-contact-copy { min-width: 0; flex: 1; }
.call-contact-copy strong, .call-contact-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-contact-copy strong { font-size: 11px; }
.call-contact-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.call-contact-actions, .person-call-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.call-help-note { max-width: 760px; margin: 14px 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.person-call-actions { padding: 14px 0 3px; }
.incoming-call-dialog { width: min(430px, calc(100vw - 28px)); border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.incoming-call-dialog::backdrop, .call-dialog::backdrop { background: #09070dcc; backdrop-filter: blur(5px); }
.call-dialog { width: min(820px, calc(100vw - 28px)); max-width: 820px; max-height: min(90vh, 780px); overflow-y: auto; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #15121d; color: var(--ink); box-shadow: 0 22px 90px #0009; }
.call-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.call-dialog-header h2 { margin: 5px 0 0; font: 700 19px var(--font-display); }
.call-duration { padding: 6px 9px; border: 1px solid var(--line); border-radius: 18px; color: #d7c8ff; font-size: 10px; font-variant-numeric: tabular-nums; }
.call-status { min-height: 17px; margin: 13px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.call-participants { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; min-height: 170px; }
.call-participant { min-width: 0; min-height: 164px; position: relative; display: flex; overflow: hidden; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #201b2b; }
.call-participant strong, .call-participant small { position: relative; z-index: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-participant strong { font-size: 10px; }
.call-participant small { color: var(--muted); font-size: 9px; }
.call-participant-avatar { width: 54px; height: 54px; color: #e7dcff; background: #47365d; font-size: 15px; }
.call-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0d0b12; }
.call-participant-local .call-video { transform: scaleX(-1); }
.call-participant audio { display: none; }
.call-controls { display: flex; justify-content: center; gap: 12px; padding-top: 18px; }
.call-control { min-width: 66px; display: grid; justify-items: center; gap: 5px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #292432; color: var(--ink); cursor: pointer; }
.call-control > span { font-size: 16px; }
.call-control small { font-size: 9px; }
.call-control[aria-pressed="true"] { border-color: #ba7a91; background: #492835; }
.call-control:disabled { cursor: not-allowed; opacity: .5; }
.call-control-end { border-color: #713446; background: #672c40; }
.call-privacy-note { margin: 16px 0 0; color: var(--muted); font-size: 9px; text-align: center; }

@media (max-width: 760px) {
  .call-room-grid { grid-template-columns: 1fr; gap: 9px; }
  .call-room-card { padding: 13px; }
  .call-contact-card { flex-wrap: wrap; }
  .call-contact-actions { width: 100%; padding-left: 46px; }
  .call-contact-actions .button { flex: 1; }
  .call-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 24px); padding: 15px; }
  .call-participants { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 7px; }
  .call-participant { min-height: 135px; }
  .call-controls { gap: 7px; }
  .call-control { min-width: 60px; padding: 8px; }
}