@charset "UTF-8";
:root {
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei UI","Microsoft YaHei","Segoe UI",sans-serif;
  color:var(--text);
  background:var(--page);
  color-scheme:light;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  --page:#f1f5f9;
  --surface:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --soft:#f8fafc;
  --accent:#0f766e;
  --sage:#ecfdf5;
  --sand:#fffbeb;
  --lilac:#f5f3ff;
  --ink-strong:#0f172a;
  --ink-soft:#334155;
  --ink-link:#2563eb;
  --focus-surface:#ffffff;
  --focus-line:#cbd5e1;
  --radius:16px;
  --sidebar:244px
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  font-size:14px;
  line-height:1.6
}
button,input,textarea {
  font:inherit
}
button,a,input,textarea {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
button {
  cursor:pointer
}
a {
  color:inherit;
  text-decoration:none
}
button {
  color:inherit
}
svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible {
  outline:2px solid var(--ink-link);
  outline-offset:3px
}
[hidden] {
  display:none!important
}
.icon-library {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:fixed;
  top:-80px;
  left:20px;
  padding:12px;
  background:var(--surface);
  z-index:10
}
.skip-link:focus {
  top:12px
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}
.app-shell {
  min-height:100vh
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:var(--sidebar);
  padding:28px 18px 18px;
  background:var(--surface);
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  z-index:2;
  box-shadow:1px 0 8px rgba(15,23,42,.03)
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  padding-left:8px;
  font-size:26px;
  font-weight:800;
  letter-spacing:-1px;
  color:var(--text)
}
.brand-dot {
  color:#10b981
}
.space-label {
  font-size:11.5px;
  letter-spacing:1.2px;
  color:var(--muted);
  margin:28px 0 10px 12px;
  font-weight:700
}
nav {
  display:flex;
  flex-direction:column;
  gap:4px
}
.nav-link {
  height:42px;
  padding:0 13px;
  display:flex;
  align-items:center;
  gap:11px;
  color:var(--ink-soft);
  font-size:14px;
  font-weight:550;
  border-radius:10px;
  transition:background .15s,color .15s
}
.nav-link:hover {
  background:var(--soft);
  color:var(--text)
}
.nav-link.active {
  background:#ecfdf5;
  color:#0f766e;
  font-weight:700
}
:root[data-theme=dark] .nav-link.active {
  background:#064e3b;
  color:#34d399
}
.nav-link svg {
  width:18px;
  height:18px
}
.nav-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  margin-left:auto
}
.nav-link:not(.active) .nav-dot {
  display:none
}
.nav-count {
  margin-left:auto;
  font-size:11.5px;
  font-weight:700;
  background:var(--soft);
  border:1px solid var(--line);
  padding:2px 8px;
  border-radius:999px;
  color:var(--ink-soft)
}
.sidebar-bottom {
  margin-top:auto
}
.space-card {
  font-size:12px;
  font-weight:600;
  background:var(--soft);
  border:1px solid var(--line);
  padding:12px 13px;
  border-radius:10px;
  color:var(--ink-soft);
  line-height:1.5;
  white-space:nowrap
}
.status-dot {
  display:inline-block;
  width:7px;
  height:7px;
  background:#10b981;
  border-radius:50%;
  margin-right:8px;
  vertical-align:middle;
  flex-shrink:0
}
.space-card small {
  display:block;
  font-size:10px;
  color:var(--muted);
  letter-spacing:.8px;
  margin-top:4px;
  font-weight:500
}
.profile {
  border-top:1px solid var(--line);
  margin-top:14px;
  padding:14px 6px 0;
  display:flex;
  gap:11px;
  align-items:center
}
.avatar {
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#0f766e;
  color:#ffffff;
  font:700 14px "Inter",sans-serif;
  flex-shrink:0
}
.profile strong {
  font-size:13px;
  font-weight:700;
  display:block;
  color:var(--text)
}
.profile span:not(.profile-mark) {
  font-size:11.5px;
  color:var(--muted);
  display:block;
  margin-top:2px
}
.profile-mark {
  margin-left:auto;
  color:var(--muted)
}
.workspace {
  margin-left:var(--sidebar)
}
.topbar {
  height:64px;
  border-bottom:1px solid var(--line);
  padding:0 36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--surface);
  position:sticky;
  top:0;
  z-index:5
}
.breadcrumb {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13.5px;
  color:var(--muted)
}
.breadcrumb strong {
  color:var(--text);
  font-weight:700
}
.breadcrumb>span {
  color:#cbd5e1
}
.edition-badge {
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.04em;
  padding:4px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--ink-soft);
  white-space:nowrap
}

.topbar-actions {
  display:flex;
  align-items:center;
  gap:16px
}
.timezone {
  color:var(--muted);
  font-size:12px;
  font-weight:500
}
.icon-button {
  border:1px solid var(--line);
  background:var(--soft);
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:9px
}
.icon-button:hover {
  background:var(--sage);
  border-color:#a7f3d0
}
.icon-button svg {
  width:18px;
  height:18px
}
.avatar-small {
  width:32px;
  height:32px;
  font-size:12px
}
main {
  max-width:1480px;
  padding:26px 36px 40px;
  margin:auto;
  outline:none
}
.page-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px
}
.eyebrow {
  font-size:11px;
  font-weight:700;
  letter-spacing:1.6px;
  color:var(--accent);
  margin:0 0 6px
}
h1 {
  font-size:28px;
  font-weight:800;
  letter-spacing:-.8px;
  margin:0;
  color:var(--text);
  line-height:1.2
}
.heading-dot {
  color:#10b981;
  margin-left:3px
}
.page-description {
  font-size:14px;
  color:var(--ink-soft);
  margin:6px 0 0;
  line-height:1.5
}
.date-block {
  text-align:right;
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--ink-soft);
  font-size:13px;
  font-weight:600;
  flex-shrink:0
}
.time-line {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  color:var(--muted);
  font-size:12px;
  font-weight:500
}
.time-line svg {
  width:12px;
  height:12px
}
.time-line time {
  font-variant-numeric:tabular-nums
}
.welcome-panel {
  height:240px;
  background:#e8eddf;
  border-radius:var(--radius);
  display:flex;
  overflow:hidden;
  position:relative
}
.welcome-copy {
  position:relative;
  z-index:1;
  padding:32px 35px
}
.welcome-label {
  font-size:10px;
  color:#7b8b6c;
  display:flex;
  align-items:center;
  gap:7px;
  letter-spacing:1px
}
.welcome-label>span {
  width:5px;
  height:5px;
  background:#8b9c78;
  border-radius:50%
}
.welcome-copy h2 {
  font-size:28px;
  font-weight:550;
  letter-spacing:-.8px;
  margin:19px 0 11px;
  color:#344632
}
.welcome-copy p {
  font-size:12px;
  color:#88947e;
  margin:0
}
.welcome-action {
  display:inline-flex;
  align-items:center;
  gap:20px;
  font-size:10px;
  font-weight:600;
  background:#fcfdf8b3;
  color:#516247;
  padding:10px 13px;
  border-radius:7px;
  margin-top:24px
}
.welcome-action svg {
  width:13px;
  height:13px
}
.welcome-action:hover {
  background:#fff
}
.welcome-art {
  position:relative;
  margin-left:auto;
  min-width:38%;
  overflow:hidden
}
.orbit {
  position:absolute;
  border:1px solid #b2bfa07d;
  border-radius:50%;
  width:350px;
  height:350px;
  right:-52px;
  top:33px;
  transform:rotate(-30deg)
}
.orbit-two {
  width:260px;
  height:260px;
  right:-7px;
  top:78px
}
.orbit-three {
  width:170px;
  height:170px;
  right:38px;
  top:123px
}
.art-sun {
  width:71px;
  height:71px;
  position:absolute;
  right:75px;
  top:30px;
  background:#c0cd9f;
  border-radius:50%;
  box-shadow:0 0 45px #d0d9b366
}
.art-caption {
  position:absolute;
  right:139px;
  top:99px;
  z-index:1;
  font-family:Georgia,"Times New Roman",serif;
  font-size:31px;
  font-style:italic;
  line-height:1.14;
  letter-spacing:-.8px;
  color:#718362
}
.art-index {
  font-size:7px;
  letter-spacing:2px;
  position:absolute;
  bottom:22px;
  right:23px;
  color:#9ba98c
}
.stats-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin:23px 0 27px
}
.stat-card {
  padding:21px 20px;
  display:flex;
  align-items:center;
  gap:14px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:13px;
  position:relative;
  min-height:99px
}
.stat-icon {
  width:41px;
  height:41px;
  border-radius:11px;
  display:grid;
  place-items:center;
  flex-shrink:0
}
.sage {
  background:var(--sage);
  color:#6b8057
}
.sand {
  background:var(--sand);
  color:#b49667
}
.lilac {
  background:var(--lilac);
  color:#9c8cb3
}
.charcoal {
  background:#303b33;
  color:#f2f5ed
}
.stat-label {
  font-size:10px;
  color:var(--muted);
  display:block;
  margin-bottom:8px
}
.stat-card strong {
  font-size:25px;
  font-weight:550;
  line-height:1;
  letter-spacing:-.6px;
  font-variant-numeric:tabular-nums
}
.stat-card strong>span {
  font-size:10px;
  color:var(--muted);
  margin-left:6px;
  font-weight:400
}
.stat-detail {
  margin-left:auto;
  align-self:flex-end;
  font-size:9px;
  color:#a3ab9d;
  margin-bottom:2px
}
.content-grid {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:23px
}
.card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  padding:22px 24px;
  scroll-margin-top:24px;
  min-width:0;
  box-shadow:0 1px 3px rgba(15,23,42,.04),0 4px 12px rgba(15,23,42,.025)
}
.section-heading {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:18px
}
.section-title-row {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px
}
.priority-pill {
  display:inline-flex;
  align-items:center;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.3px;
  padding:3px 9px;
  border-radius:6px;
  background:var(--soft);
  border:1px solid var(--line);
  color:var(--ink-soft);
  white-space:nowrap
}
.priority-pill--p0 {
  background:#0f766e;
  border-color:#0f766e;
  color:#ffffff
}
.priority-pill--p1 {
  background:#fffbeb;
  border-color:#fde68a;
  color:#b45309
}
.priority-pill--exec {
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8
}
:root[data-theme=dark] .priority-pill--p0 {
  background:#14b8a6;
  border-color:#14b8a6;
  color:#042f2e
}
:root[data-theme=dark] .priority-pill--p1 {
  background:#451a03;
  border-color:#78350f;
  color:#fcd34d
}
:root[data-theme=dark] .priority-pill--exec {
  background:#1e3a8a;
  border-color:#1d4ed8;
  color:#93c5fd
}
.section-heading h2 {
  font-size:19px;
  font-weight:750;
  letter-spacing:-.3px;
  margin:0;
  color:var(--text)
}
.section-heading p {
  font-size:13px;
  color:var(--ink-soft);
  margin:6px 0 0;
  line-height:1.5
}
.text-button {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  font-weight:600;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--ink-strong);
  padding:8px 13px;
  border-radius:8px;
  flex-shrink:0
}
.text-button:hover {
  background:var(--soft);
  border-color:var(--focus-line)
}
.text-button svg {
  width:13px;
  height:13px
}
.search-field {
  height:36px;
  border:1px solid var(--line);
  background:var(--soft);
  border-radius:7px;
  display:flex;
  align-items:center;
  padding:0 12px;
  gap:8px;
  color:#a4ac9e;
  margin-bottom:16px
}
.search-field svg {
  width:13px;
  height:13px
}
.search-field input {
  width:100%;
  min-width:0;
  border:0;
  background:transparent;
  color:var(--text);
  font-size:10px;
  height:100%;
  outline-offset:1px
}
.search-field input::placeholder {
  color:#a0a89b
}
.shortcut-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}
.shortcut-item {
  position:relative;
  min-width:0
}
.shortcut-item>a {
  display:flex;
  align-items:center;
  gap:11px;
  border:1px solid var(--line);
  padding:17px 12px;
  border-radius:10px;
  min-height:78px;
  transition:background .18s
}
.shortcut-item>a:hover {
  background:var(--soft)
}
.shortcut-badge {
  width:35px;
  height:35px;
  display:grid;
  place-items:center;
  font-size:15px;
  font-weight:650;
  border-radius:9px;
  flex-shrink:0
}
.shortcut-item a>span:nth-child(2) {
  min-width:0
}
.shortcut-item strong {
  font-size:11px;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.shortcut-item small {
  font-size:8px;
  color:#a2aa9a;
  display:block;
  margin-top:6px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.shortcut-item a>svg {
  width:11px;
  height:11px;
  color:#a8b19f;
  margin-left:auto
}
.remove-shortcut,.remove-task {
  padding:4px;
  border:0;
  background:transparent;
  color:#a1aa99;
  display:grid;
  place-items:center;
  border-radius:5px
}
.remove-shortcut {
  position:absolute;
  top:2px;
  right:3px;
  opacity:0
}
.remove-shortcut svg,.remove-task svg {
  width:12px;
  height:12px
}
.shortcut-item:hover .remove-shortcut,.shortcut-item:focus-within .remove-shortcut {
  opacity:1
}
.remove-shortcut:hover,.remove-task:hover {
  background:var(--sage);
  color:var(--text)
}
.empty-state {
  font-size:13.5px;
  color:var(--muted);
  text-align:center;
  padding:28px 0;
  line-height:1.75
}
.pill {
  font-size:12px;
  font-weight:650;
  color:#047857;
  background:#ecfdf5;
  border:1px solid #a7f3d0;
  border-radius:999px;
  padding:4px 11px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums
}
.pill--ok {
  color:#047857;
  background:#ecfdf5;
  border-color:#a7f3d0
}
:root[data-theme=dark] .pill,
:root[data-theme=dark] .pill--ok {
  color:#34d399;
  background:#064e3b;
  border-color:#065f46
}
.tasks-card {
  display:flex;
  flex-direction:column
}
.tasks-card .section-heading {
  margin-bottom:17px
}
.task-filters {
  display:flex;
  gap:13px;
  border-bottom:1px solid var(--line)
}
.task-filters button {
  border:0;
  background:transparent;
  padding:0 0 10px;
  color:#a1a998;
  font-size:9px;
  position:relative
}
.task-filters button[aria-pressed=true] {
  color:#637c4d;
  font-weight:600
}
.task-filters button[aria-pressed=true]::after {
  content:"";
  position:absolute;
  bottom:-1px;
  left:0;
  right:0;
  height:2px;
  background:#8ea672
}
.task-list {
  list-style:none;
  padding:0;
  margin:5px 0 13px;
  max-height:245px;
  overflow:auto
}
.task-row {
  display:flex;
  align-items:center;
  border-bottom:1px solid var(--line);
  gap:8px;
  padding:13px 0;
  font-size:11px;
  min-height:46px
}
.task-row label {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1;
  cursor:pointer
}
.task-row input {
  accent-color:#7e946a;
  width:15px;
  height:15px;
  flex-shrink:0;
  margin:0
}
.task-row label>span {
  overflow-wrap:anywhere;
  line-height:1.7
}
.task-row.is-done label>span {
  text-decoration:line-through;
  color:var(--muted)
}
.task-empty {
  text-align:center;
  min-height:139px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  padding:17px 0 23px
}
.empty-check {
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--soft);
  display:grid;
  place-items:center;
  color:#b6c3a7;
  margin-bottom:10px
}
.empty-check svg {
  width:17px;
  height:17px
}
.task-empty strong {
  font-size:11px;
  font-weight:500;
  color:#7d8a75
}
.task-empty p {
  font-size:9px;
  color:#b0b8a8;
  margin:7px 0 0
}
.task-form {
  display:flex;
  align-items:center;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:8px;
  padding:5px 6px 5px 12px;
  margin-top:auto;
  gap:8px
}
.task-form input {
  width:100%;
  min-width:0;
  border:0;
  background:transparent;
  color:var(--text);
  height:29px;
  font-size:10px
}
.task-form input::placeholder {
  color:#a9b29f
}
.task-form button {
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:6px;
  background:#e6ecdd;
  color:#7d926a;
  flex-shrink:0
}
.task-form svg {
  width:14px;
  height:14px
}
.notes-card {
  min-height:265px;
  display:flex;
  flex-direction:column
}
.notes-card .section-heading {
  margin-bottom:12px
}
.note-decor {
  font-size:27px;
  color:#bfcaad;
  font-weight:300
}
.notes-card textarea {
  resize:vertical;
  min-height:124px;
  max-height:500px;
  flex:1;
  width:100%;
  border:0;
  color:var(--text);
  background:repeating-linear-gradient(transparent,transparent 30px,var(--line) 30px,var(--line) 31px);
  font-size:11px;
  line-height:31px;
  padding:0 0 6px;
  outline-offset:5px;
  border-radius:0
}
.notes-card textarea::placeholder {
  color:#adb6a4
}
.note-footer {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:8px;
  color:#a9b29f;
  padding-top:17px
}
.note-footer>span:first-child {
  display:flex;
  align-items:center;
  min-width:0
}
.note-footer>span:last-child {
  white-space:nowrap
}
.note-footer .status-dot {
  width:4px;
  height:4px
}
.project-card {
  border-radius:var(--radius);
  background:#eceee7;
  position:relative;
  overflow:hidden;
  padding:27px 27px 22px;
  min-height:265px
}
.project-label {
  font-size:7px;
  letter-spacing:1.7px;
  color:#97a38a
}
.project-card h2 {
  font-size:24px;
  letter-spacing:-.7px;
  font-weight:550;
  color:#5c6f4d;
  margin:21px 0 11px
}
.project-card p {
  font-size:11px;
  color:#98a38c;
  line-height:1.9;
  margin:0
}
.project-card a {
  display:inline-flex;
  align-items:center;
  gap:25px;
  font-size:10px;
  color:#6c805b;
  margin-top:18px
}
.project-card a:hover {
  text-decoration:underline
}
.project-card a svg {
  width:12px;
  height:12px
}
.project-status {
  font-size:8px;
  color:#9ca78f;
  margin-top:25px
}
.project-monogram {
  position:absolute;
  right:30px;
  top:58px;
  font:italic 125px Georgia,serif;
  color:#d2d9c6;
  line-height:1;
  transform:rotate(-9deg)
}
.project-monogram>span {
  position:absolute;
  right:-8px;
  top:-4px;
  font-size:50px;
  font-style:normal
}
.page-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:28px 0 12px;
  border-top:1px solid var(--line);
  margin-top:20px;
  color:var(--muted);
  font-size:12.5px
}
.page-footer>span:first-child {
  font-size:15px;
  font-weight:750;
  letter-spacing:-.5px;
  color:var(--text)
}
.footer-message {
  font-weight:500;
  letter-spacing:.2px;
  font-size:12.5px;
  margin-left:12px;
  color:var(--muted)
}
.page-footer>span:last-child {
  align-self:center
}
dialog {
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  color:var(--text);
  padding:27px;
  width:min(430px,calc(100% - 32px));
  box-shadow:0 20px 90px #14251d26
}
dialog::backdrop {
  background:#17271d66;
  backdrop-filter:blur(3px)
}
.dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px
}
.dialog-heading h2 {
  font-size:19px;
  font-weight:700;
  margin:0
}
dialog label {
  display:block;
  font-size:13px;
  font-weight:600;
  margin:15px 0 8px
}
dialog input {
  width:100%;
  padding:12px;
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--soft);
  color:var(--text);
  font-size:13px
}
.form-error {
  font-size:12px;
  color:#e11d48;
  min-height:15px;
  line-height:1.6
}
.primary-button {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  background:var(--accent);
  color:#ffffff;
  font-weight:650;
  border:0;
  border-radius:9px;
  padding:11px 16px;
  font-size:13px;
  transition:background .15s
}
.primary-button:hover {
  background:#0d9488
}
.primary-button svg {
  width:14px;
  height:14px
}
.toast {
  position:fixed;
  bottom:25px;
  left:calc(50% + var(--sidebar)/2);
  transform:translateX(-50%);
  background:#0f172a;
  color:#f8fafc;
  padding:12px 20px;
  box-shadow:0 8px 30px rgba(15,23,42,.25);
  border-radius:10px;
  z-index:10;
  font-size:13px;
  font-weight:550;
  max-width:calc(100% - 32px);
  line-height:1.6
}
:root[data-theme=dark] {
  color-scheme:dark;
  --page:#0b0f19;
  --surface:#111827;
  --text:#f8fafc;
  --muted:#94a3b8;
  --line:#1f2937;
  --soft:#1e293b;
  --accent:#2dd4bf;
  --sage:#064e3b;
  --sand:#451a03;
  --lilac:#2e1065;
  --ink-strong:#f8fafc;
  --ink-soft:#cbd5e1;
  --ink-link:#60a5fa;
  --focus-surface:#131c31;
  --focus-line:#334155
}
.dark-placeholder {
  display:none
}
[data-theme=dark] .welcome-panel {
  background:#132a26
}
[data-theme=dark] .welcome-copy h2 {
  color:#ecfdf5
}
[data-theme=dark] .welcome-copy p,[data-theme=dark] .welcome-label {
  color:#a7f3d0
}
[data-theme=dark] .welcome-action {
  background:#065f46;
  color:#ecfdf5
}
[data-theme=dark] .art-sun {
  background:#10b981
}
[data-theme=dark] .art-caption {
  color:#6ee7b7
}
[data-theme=dark] .project-card {
  background:#1e293b
}
[data-theme=dark] .project-card h2,[data-theme=dark] .project-card a {
  color:#5eead4
}
[data-theme=dark] .project-monogram {
  color:#334155
}
[data-theme=dark] .task-form button {
  background:#065f46;
  color:#a7f3d0
}
[data-theme=dark] .primary-button {
  background:#14b8a6;
  color:#042f2e
}
[data-theme=dark] .avatar {
  background:#0d9488;
  color:#ffffff
}
[data-theme=dark] .breadcrumb strong {
  color:#f8fafc
}
[data-theme=dark] .task-filters button[aria-pressed=true] {
  color:#34d399
}
@media(min-width:1550px) {
  main {
    padding-top:48px
  }
  .welcome-panel {
    height:260px
  }
  .welcome-copy {
    padding:39px
  }
  .welcome-art {
    min-width:43%
  }
  .art-caption {
    right:183px;
    font-size:36px
  }
  .orbit {
    right:-12px
  }
  .orbit-two {
    right:33px
  }
  .orbit-three {
    right:78px
  }
  .art-sun {
    right:115px
  }
  .card {
    padding:28px
  }
  .shortcut-item>a {
    padding:19px 15px;
    min-height:86px
  }
  .stats-grid {
    margin-top:25px;
    margin-bottom:29px
  }
}
@media(max-width:1200px) {
  :root {
    --sidebar:196px
  }
  .sidebar {
    padding-inline:16px
  }
  .topbar {
    padding-inline:30px
  }
  main {
    padding-inline:30px
  }
  .stat-card {
    padding:18px 15px;
    gap:10px
  }
  .stat-detail {
    display:none
  }
  .content-grid {
    gap:18px
  }
  .card {
    padding:21px 18px
  }
  .shortcut-grid {
    gap:9px
  }
  .shortcut-item>a {
    gap:8px;
    padding:16px 9px
  }
  .shortcut-badge {
    width:30px;
    height:30px
  }
  .shortcut-item strong {
    font-size:10px
  }
  .shortcut-item small {
    font-size:7px
  }
  .welcome-art {
    min-width:35%
  }
  .art-caption {
    font-size:27px;
    right:60px
  }
  .art-sun {
    right:15px
  }
  .orbit {
    right:-112px
  }
  .orbit-two {
    right:-67px
  }
  .orbit-three {
    right:-22px
  }
  .project-monogram {
    right:18px;
    font-size:100px;
    top:70px
  }
  .space-card {
    font-size:10px
  }
  .space-card small {
    font-size:6px
  }
}
@media(max-width:960px) {
  :root {
    --sidebar:78px
  }
  .sidebar {
    padding:28px 13px 20px;
    align-items:center
  }
  .brand {
    padding:0
  }
  .brand>span,.space-label,.sidebar-bottom,.nav-link>span {
    display:none
  }
  .brand img {
    width:36px;
    height:36px
  }
  nav {
    margin-top:50px;
    width:100%
  }
  .nav-link {
    font-size:0;
    justify-content:center;
    padding:0;
    width:48px;
    gap:0
  }
  .nav-link svg {
    width:20px;
    height:20px
  }
  .nav-link .nav-dot,.nav-link .nav-count {
    display:none
  }
  .content-grid {
    grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)
  }
  .shortcut-grid {
    grid-template-columns:1fr
  }
  .shortcut-item>a {
    min-height:60px;
    padding:12px
  }
  .shortcut-item strong {
    font-size:11px
  }
  .shortcut-item small {
    font-size:8px
  }
  .welcome-copy {
    padding:30px
  }
  .welcome-copy h2 {
    font-size:26px
  }
  .welcome-art {
    min-width:28%
  }
  .art-caption {
    right:25px;
    top:112px;
    font-size:23px
  }
  .art-sun {
    right:22px;
    top:36px;
    width:55px;
    height:55px
  }
  .date-block {
    font-size:10px
  }
  .project-monogram {
    opacity:.55
  }
  .remove-shortcut {
    opacity:1
  }
}
@media(max-width:700px) {
  :root {
    --sidebar:0px
  }
  .sidebar {
    position:static;
    width:100%;
    height:auto;
    display:flex;
    flex-direction:row;
    padding:15px 20px;
    border-right:0;
    border-bottom:1px solid var(--line);
    justify-content:space-between
  }
  .brand>span {
    display:inline;
    font-size:22px
  }
  .brand {
    gap:8px
  }
  .brand img {
    width:30px;
    height:30px
  }
  nav {
    flex-direction:row;
    margin:0;
    width:auto;
    gap:4px
  }
  .nav-link {
    width:35px;
    height:35px;
    border-radius:8px
  }
  .nav-link svg {
    width:17px;
    height:17px
  }
  .topbar {
    height:56px;
    padding:0 20px
  }
  .topbar-actions {
    gap:10px
  }
  .timezone {
    font-size:8px
  }
  .avatar-small {
    display:none
  }
  main {
    padding:27px 20px 0
  }
  .page-heading {
    align-items:flex-start;
    margin-bottom:24px
  }
  .eyebrow {
    font-size:7px;
    letter-spacing:1.6px
  }
  h1 {
    font-size:25px
  }
  .page-description {
    font-size:10px
  }
  .date-block {
    gap:8px;
    font-size:9px;
    padding-top:18px
  }
  .time-line {
    font-size:8px;
    gap:4px
  }
  .time-line>span {
    display:none
  }
  .welcome-panel {
    height:215px;
    border-radius:14px
  }
  .welcome-copy {
    padding:26px 22px
  }
  .welcome-copy h2 {
    font-size:23px;
    margin-top:18px
  }
  .welcome-copy p {
    font-size:10px;
    max-width:185px;
    line-height:1.8
  }
  .welcome-label {
    font-size:8px
  }
  .welcome-action {
    font-size:9px;
    margin-top:19px;
    padding:9px 11px
  }
  .welcome-art {
    min-width:26%;
    position:absolute;
    right:0;
    top:0;
    bottom:0;
    width:28%
  }
  .art-caption {
    display:none
  }
  .art-sun {
    right:15px;
    top:36px;
    width:45px;
    height:45px
  }
  .orbit {
    width:240px;
    height:240px;
    right:-154px;
    top:85px
  }
  .orbit-two {
    width:180px;
    height:180px;
    right:-124px;
    top:115px
  }
  .orbit-three {
    width:120px;
    height:120px;
    right:-94px;
    top:145px
  }
  .art-index {
    font-size:5px;
    letter-spacing:1px;
    right:12px;
    bottom:18px
  }
  .stats-grid {
    gap:9px;
    margin:15px 0 20px
  }
  .stat-card {
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    min-height:111px;
    padding:14px 12px;
    border-radius:12px
  }
  .stat-icon {
    width:29px;
    height:29px;
    border-radius:8px
  }
  .stat-icon svg {
    width:15px;
    height:15px
  }
  .stat-label {
    font-size:8px;
    margin-bottom:7px;
    white-space:nowrap
  }
  .stat-card strong {
    font-size:23px
  }
  .stat-card strong>span {
    font-size:8px;
    margin-left:3px
  }
  .content-grid {
    grid-template-columns:1fr;
    gap:17px
  }
  .card {
    padding:22px 20px
  }
  .shortcuts-card {
    order:0
  }
  .tasks-card {
    order:1
  }
  .notes-card {
    order:2
  }
  .project-card {
    order:3;
    min-height:246px;
    padding:25px
  }
  .shortcut-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .shortcut-item>a {
    gap:8px;
    padding:13px 9px;
    min-height:73px
  }
  .shortcut-badge {
    width:30px;
    height:30px
  }
  .shortcut-item strong {
    font-size:10px
  }
  .shortcut-item small {
    font-size:7px
  }
  .shortcut-item a>svg {
    display:none
  }
  .task-empty {
    min-height:132px
  }
  .project-monogram {
    right:35px;
    top:45px;
    font-size:128px
  }
  .project-status {
    margin-top:21px
  }
  .page-footer {
    padding:23px 0;
    gap:10px
  }
  .page-footer>span:last-child {
    font-size:7px;
    max-width:112px;
    line-height:1.6;
    text-align:right
  }
  .footer-message {
    font-size:7px;
    margin-left:8px
  }
  .toast {
    left:50%
  }
  .note-footer {
    font-size:8px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  * {
    transition:none!important
  }
}
/* ===== M1 项目工作台：总览、架构、项目页、快照状态（MTK-003） ===== */
.block-status {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 16px;
  font-size:13px;
  color:var(--ink-soft);
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:12px;
  padding:11px 16px;
  margin-bottom:20px;
  box-shadow:0 1px 2px rgba(15,23,42,.03)
}
.block-status-label {
  font-weight:750;
  color:var(--ink-strong)
}
.block-status--ok .block-status-label {
  color:#059669
}
.block-status--partial .block-status-label,.block-status--stale .block-status-label {
  color:#d97706
}
.block-status--unknown .block-status-label,.block-status--error .block-status-label {
  color:#e11d48
}
:root[data-theme=dark] .block-status--ok .block-status-label {
  color:#34d399
}
:root[data-theme=dark] .block-status--partial .block-status-label,:root[data-theme=dark] .block-status--stale .block-status-label {
  color:#fbbf24
}
:root[data-theme=dark] .block-status--unknown .block-status-label,:root[data-theme=dark] .block-status--error .block-status-label {
  color:#fb7185
}
.block-status-message {
  color:var(--muted)
}
.block-status-source {
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:600;
  color:var(--ink-link)
}
.block-status-source svg {
  width:13px;
  height:13px
}
.page-notice {
  border:1px dashed var(--line);
  border-radius:12px;
  padding:16px 18px;
  font-size:13.5px;
  color:var(--ink-soft);
  background:var(--soft);
  margin-bottom:22px;
  line-height:1.7
}
.hint {
  width:100%;
  font-size:12px;
  color:var(--muted);
  margin:2px 0 0
}
.projects-section {
  margin-bottom:30px
}
.projects-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:16px
}
.project-tile {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
  box-shadow:0 1px 3px rgba(15,23,42,.04),0 4px 12px rgba(15,23,42,.025)
}
.project-tile.is-focus {
  border-color:#cbd5e1;
  background:var(--surface)
}
:root[data-theme=dark] .project-tile.is-focus {
  border-color:#334155;
  background:#131c31
}
.project-tile-head {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap
}
.project-tile-head h3 {
  margin:0;
  font-size:17px;
  font-weight:750;
  letter-spacing:-.3px;
  color:var(--text)
}
.project-tile-head h3 a:hover {
  color:var(--ink-link)
}
.lifecycle-badge {
  font-size:11.5px;
  font-weight:650;
  letter-spacing:.3px;
  padding:3px 9px;
  border-radius:999px;
  background:#ecfdf5;
  color:#047857;
  border:1px solid #a7f3d0
}
.lifecycle-paused {
  background:#fffbeb;
  color:#b45309;
  border-color:#fde68a
}
.lifecycle-experimental {
  background:#f5f3ff;
  color:#6d28d9;
  border-color:#ddd6fe
}
:root[data-theme=dark] .lifecycle-badge {
  background:#064e3b;
  color:#34d399;
  border-color:#065f46
}
:root[data-theme=dark] .lifecycle-paused {
  background:#451a03;
  color:#fcd34d;
  border-color:#78350f
}
:root[data-theme=dark] .lifecycle-experimental {
  background:#2e1065;
  color:#c4b5fd;
  border-color:#4c1d95
}
.focus-badge {
  font-size:11.5px;
  font-weight:650;
  padding:3px 9px;
  border-radius:999px;
  background:#f1f5f9;
  border:1px solid #cbd5e1;
  color:#334155
}
:root[data-theme=dark] .focus-badge {
  background:#1e293b;
  border-color:#334155;
  color:#cbd5e1
}
.project-purpose {
  margin:0;
  font-size:13.5px;
  line-height:1.65;
  color:var(--ink-soft);
  overflow-wrap:anywhere
}
.project-meta {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 16px;
  margin:0;
  font-size:12.5px
}
.project-meta--wide {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px 18px
}
.project-meta>div {
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0
}
.project-meta dt {
  color:var(--muted);
  font-weight:550
}
.project-meta dd {
  margin:0;
  color:var(--ink-strong);
  font-weight:600;
  overflow-wrap:anywhere
}
.link-chips {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.chip {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  font-weight:600;
  padding:6px 12px;
  border-radius:999px;
  background:var(--soft);
  border:1px solid var(--line);
  color:var(--ink-strong);
  max-width:100%;
  transition:background .15s,border-color .15s,color .15s
}
.chip:hover {
  border-color:#93c5fd;
  background:#eff6ff;
  color:#1d4ed8
}
:root[data-theme=dark] .chip:hover {
  border-color:#2563eb;
  background:#1e3a8a;
  color:#93c5fd
}
.chip--action {
  background:var(--surface);
  border-color:#cbd5e1;
  color:var(--ink-link);
  font-weight:650
}
.chip--muted {
  color:var(--muted)
}
.access-badge {
  font-size:10.5px;
  font-weight:650;
  padding:1px 7px;
  border-radius:999px;
  background:#fffbeb;
  border:1px solid #fde68a;
  color:#b45309
}
.access-badge--local {
  background:#f5f3ff;
  border-color:#ddd6fe;
  color:#6d28d9
}
:root[data-theme=dark] .access-badge {
  background:#451a03;
  border-color:#78350f;
  color:#fcd34d
}
:root[data-theme=dark] .access-badge--local {
  background:#2e1065;
  border-color:#4c1d95;
  color:#c4b5fd
}
.tile-enter {
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:650;
  color:var(--ink-link);
  width:max-content
}
.tile-enter svg {
  width:13px;
  height:13px
}
.related-line {
  font-size:12px;
  color:var(--muted);
  margin:0;
  overflow-wrap:anywhere
}
.layer-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:14px
}
.layer-card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  min-width:0
}
.layer-card h3 {
  margin:0 0 10px;
  font-size:15px;
  color:var(--ink-strong)
}
.edge-list,.host-list {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column
}
.edge-item,.host-item {
  padding:14px 0;
  border-bottom:1px solid var(--line);
  min-width:0
}
.edge-item:last-child,.host-item:last-child {
  border-bottom:0;
  padding-bottom:0
}
.edge-pair {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  flex-wrap:wrap
}
.edge-node {
  font-weight:700;
  color:var(--ink-strong)
}
.edge-arrow {
  color:var(--muted)
}
.edge-label {
  margin:6px 0 0;
  font-size:13px;
  line-height:1.6;
  color:var(--ink-soft);
  overflow-wrap:anywhere
}
.host-item h3 {
  margin:0 0 6px;
  font-size:15px;
  font-weight:700;
  color:var(--ink-strong)
}
.host-runs {
  margin:0;
  padding-left:18px;
  font-size:13px;
  color:var(--ink-soft);
  line-height:1.7
}
.source-line {
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
  overflow-wrap:anywhere
}
.source-line svg {
  width:12px;
  height:12px
}
.source-line--link {
  color:var(--ink-link);
  font-weight:600
}
.content-grid--two {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.card--pending {
  border-style:dashed
}
.project-hero {
  align-items:flex-start;
  gap:24px
}
.project-hero-title {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap
}
.back-link {
  font-size:13px;
  font-weight:650;
  color:var(--ink-link);
  display:inline-block;
  margin-bottom:18px
}
.link-list {
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column
}
.link-list li {
  padding:11px 0;
  border-bottom:1px solid var(--line)
}
.link-list li:last-child {
  border:0;
  padding-bottom:0
}
.link-title {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13.5px;
  color:var(--ink-strong);
  font-weight:650
}
.link-title svg {
  width:13px;
  height:13px
}
@media(max-width:1200px) {
  .projects-grid {
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr))
  }
  .project-meta--wide {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
@media(max-width:960px) {
  .content-grid--two {
    grid-template-columns:1fr
  }
  .project-hero {
    gap:16px
  }
}
@media(max-width:700px) {
  .projects-grid {
    grid-template-columns:1fr
  }
  .project-tile {
    padding:18px
  }
  .project-meta--wide {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .block-status {
    gap:6px 12px;
    padding:10px 12px
  }
  .block-status-source {
    margin-left:0
  }
  .layer-grid {
    grid-template-columns:1fr
  }
  .project-hero {
    flex-direction:column
  }
  .project-hero .primary-button {
    align-self:flex-start
  }
}
/* ===== 首页常用入口和首页双栏作战室分区 ===== */
.home-links {
  margin-bottom:28px
}
.home-links .section-heading {
  margin-bottom:12px
}
.home-section {
  margin-bottom:0
}
#home-sections,
.home-command-grid {
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);
  gap:20px;
  margin-bottom:28px;
  align-items:start
}
#home-sections[hidden] {
  display:none!important
}
@media(max-width:1100px) {
  #home-sections,
  .home-command-grid {
    grid-template-columns:1fr
  }
}
@media(max-width:700px) {
  .home-links {
    margin-bottom:20px
  }
  #home-sections,
  .home-command-grid {
    gap:16px;
    margin-bottom:20px
  }
}

/* ===== Owner Cockpit 重构：直达导航、KPI 脉冲条、2x2 重点项目驾驶舱、独立工作区 ===== */
.brand {
  align-items:center;
  gap:10px
}
.brand-text {
  display:flex;
  flex-direction:column;
  line-height:1.15
}
.brand-sub {
  font-size:11px;
  font-weight:600;
  letter-spacing:.4px;
  color:var(--muted);
  margin-top:3px
}
.space-label {
  margin:20px 0 8px 12px
}
.space-label--workspaces,
.space-label--personal {
  margin:16px 0 6px 12px
}
.nav-link {
  height:42px;
  padding:0 12px;
  gap:11px
}
.workspace-nav {
  gap:4px
}
.nav-link--workspace {
  height:46px;
  padding:5px 12px;
  gap:11px
}
.ws-nav-copy {
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.25
}
.ws-nav-copy strong {
  font-size:13.5px;
  font-weight:700;
  color:var(--ink-strong)
}
.ws-nav-copy small {
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.nav-link--workspace.active .ws-nav-copy strong {
  color:var(--accent)
}
.ws-health-dot {
  width:9px;
  height:9px;
  border-radius:50%;
  background:#94a3b8;
  flex-shrink:0
}
.ws-health-dot--on_track {
  background:#10b981;
  box-shadow:0 0 0 3px rgba(16,185,129,.18)
}
.ws-health-dot--at_risk {
  background:#f59e0b;
  box-shadow:0 0 0 3px rgba(245,158,11,.2)
}
.ws-health-dot--blocked {
  background:#f43f5e;
  box-shadow:0 0 0 3px rgba(244,63,94,.2)
}
.ws-health-dot--paused {
  background:#8b5cf6
}
.nav-count--alert,
.pill--alert {
  background:#fff1f2;
  border:1px solid #fecdd3;
  color:#be123c;
  font-weight:750
}
:root[data-theme=dark] .nav-count--alert,
:root[data-theme=dark] .pill--alert {
  background:#4c0519;
  border-color:#881337;
  color:#fda4af
}
.topbar-left {
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0
}
.breadcrumb-root:hover {
  color:var(--ink-link)
}
.topbar-freshness {
  font-size:12px;
  font-weight:600;
  color:var(--ink-soft);
  background:var(--soft);
  border:1px solid var(--line);
  padding:4px 12px;
  border-radius:999px;
  white-space:nowrap
}
.topbar-freshness--ok {
  border-color:#a7f3d0;
  background:#ecfdf5;
  color:#047857
}
:root[data-theme=dark] .topbar-freshness--ok {
  border-color:#065f46;
  background:#064e3b;
  color:#34d399
}
.topbar-freshness--warn {
  background:#fffbeb;
  border-color:#fde68a;
  color:#b45309
}
:root[data-theme=dark] .topbar-freshness--warn {
  background:#451a03;
  border-color:#78350f;
  color:#fcd34d
}
.mobile-workspace-bar {
  display:none;
  align-items:center;
  gap:8px;
  padding:10px 20px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
  overflow-x:auto
}
.mobile-ws-label {
  font-size:12px;
  font-weight:700;
  color:var(--muted);
  white-space:nowrap
}
.mobile-ws-chip {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  font-weight:650;
  padding:5px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--soft);
  color:var(--ink-strong);
  white-space:nowrap
}
.mobile-ws-chip.active {
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#0f766e
}
:root[data-theme=dark] .mobile-ws-chip.active {
  background:#064e3b;
  border-color:#065f46;
  color:#34d399
}

/* Source Health Pills inside #home-registry-status */
.source-health-pills {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-left:auto
}
.source-mini-pill {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--soft);
  font-size:12px;
  font-weight:600;
  color:var(--ink-soft);
  white-space:nowrap
}
.source-mini-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#94a3b8
}
.source-mini-pill--ok .source-mini-dot {
  background:#10b981
}
.source-mini-pill--warn .source-mini-dot {
  background:#f59e0b
}
.source-mini-pill--error .source-mini-dot {
  background:#f43f5e
}

/* KPI Strip (Home, Architecture, Progress) */
.cockpit-kpi-strip {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:26px
}
.cockpit-kpi,
.cockpit-kpi-card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px 20px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
  box-shadow:0 1px 3px rgba(15,23,42,.04),0 4px 12px rgba(15,23,42,.02);
  transition:border-color .15s,box-shadow .15s,transform .15s
}
.cockpit-kpi-card--primary {
  border-top:3px solid #0f766e
}
:root[data-theme=dark] .cockpit-kpi-card--primary {
  border-top-color:#2dd4bf
}
a.cockpit-kpi-card:hover {
  border-color:#93c5fd;
  box-shadow:0 4px 16px rgba(37,99,235,.08)
}
.cockpit-kpi-card.is-attention {
  border-top:3px solid #f43f5e;
  border-color:#fecdd3;
  background:#fffafa
}
:root[data-theme=dark] .cockpit-kpi-card.is-attention {
  border-top-color:#f43f5e;
  border-color:#881337;
  background:#1f1218
}
.cockpit-kpi-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px
}
.cockpit-kpi-label {
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.2px;
  color:var(--ink-soft)
}
.cockpit-kpi-badge {
  font-size:11.5px;
  font-weight:700;
  padding:3px 9px;
  border-radius:999px;
  background:var(--soft);
  border:1px solid var(--line);
  color:var(--ink-soft);
  white-space:nowrap
}
.cockpit-kpi-badge.is-brand {
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#047857
}
.cockpit-kpi-badge.is-ok {
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8
}
.cockpit-kpi-badge.is-warn {
  background:#fff1f2;
  border-color:#fecdd3;
  color:#be123c
}
:root[data-theme=dark] .cockpit-kpi-badge.is-brand {
  background:#064e3b;
  border-color:#065f46;
  color:#34d399
}
:root[data-theme=dark] .cockpit-kpi-badge.is-ok {
  background:#1e3a8a;
  border-color:#1d4ed8;
  color:#93c5fd
}
:root[data-theme=dark] .cockpit-kpi-badge.is-warn {
  background:#4c0519;
  border-color:#881337;
  color:#fda4af
}
.cockpit-kpi-value {
  font-size:24px;
  font-weight:800;
  letter-spacing:-.6px;
  line-height:1.15;
  color:var(--text);
  font-variant-numeric:tabular-nums
}
.cockpit-kpi-card.is-attention .cockpit-kpi-value {
  color:#be123c
}
:root[data-theme=dark] .cockpit-kpi-card.is-attention .cockpit-kpi-value {
  color:#fda4af
}
.cockpit-kpi-detail,
.cockpit-kpi-sub {
  margin:0;
  font-size:12.5px;
  color:var(--muted);
  line-height:1.5;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.kpi-ws-pills {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px
}
.kpi-ws-pill {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:5px 10px;
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--soft);
  font-size:13px;
  font-weight:650;
  color:var(--ink-strong);
  transition:background .15s,border-color .15s
}
.kpi-ws-pill:hover {
  background:#eff6ff;
  border-color:#93c5fd;
  color:#1d4ed8
}
:root[data-theme=dark] .kpi-ws-pill:hover {
  background:#1e3a8a;
  border-color:#2563eb;
  color:#93c5fd
}
.kpi-ws-dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#94a3b8;
  flex-shrink:0
}
.kpi-ws-pill--on_track .kpi-ws-dot {
  background:#10b981
}
.kpi-ws-pill--at_risk .kpi-ws-dot {
  background:#f59e0b
}
.kpi-ws-pill--blocked .kpi-ws-dot {
  background:#f43f5e
}
.kpi-ws-pill--paused .kpi-ws-dot {
  background:#8b5cf6
}

/* Home Sections & 2x2 Focus Project Cockpit Matrix */
.home-section--inbox {
  border-top:3px solid #f59e0b
}
.home-section--exec_center {
  border-top:3px solid #2563eb
}
.section-heading-actions,
.arch-jump-nav {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.focus-cockpit-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px
}
.project-tile--focus-cockpit {
  gap:16px;
  padding:24px 26px;
  border-width:1px;
  border-top:4px solid #0f766e;
  box-shadow:0 2px 6px rgba(15,23,42,.05),0 10px 24px rgba(15,23,42,.04)
}
:root[data-theme=dark] .project-tile--focus-cockpit {
  border-top-color:#14b8a6;
  box-shadow:0 4px 20px rgba(0,0,0,.25)
}
.focus-cockpit-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px
}
.focus-cockpit-title-group {
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0
}
.focus-cockpit-title-group .project-tile-head h3 {
  font-size:21px;
  font-weight:800;
  letter-spacing:-.4px
}
.cockpit-enter-btn {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:700;
  padding:8px 15px;
  border-radius:9px;
  background:#0f766e;
  border:1px solid #0f766e;
  color:#ffffff;
  white-space:nowrap;
  flex-shrink:0;
  transition:background .15s,transform .15s
}
.cockpit-enter-btn svg {
  width:13px;
  height:13px
}
.cockpit-enter-btn:hover {
  background:#0d9488;
  border-color:#0d9488
}
:root[data-theme=dark] .cockpit-enter-btn {
  background:#14b8a6;
  border-color:#14b8a6;
  color:#042f2e
}
:root[data-theme=dark] .cockpit-enter-btn:hover {
  background:#2dd4bf
}
.cockpit-phase-banner {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 14px;
  padding:12px 15px;
  border-radius:11px;
  background:#f8fafc;
  border:1px solid #e2e8f0
}
:root[data-theme=dark] .cockpit-phase-banner {
  background:#1e293b;
  border-color:#334155
}
.cockpit-phase-banner.is-stale {
  border-color:#fde68a;
  background:#fffbeb
}
:root[data-theme=dark] .cockpit-phase-banner.is-stale {
  border-color:#78350f;
  background:#451a03
}
.cockpit-phase-main {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1 1 240px
}
.cockpit-phase-tag {
  font-size:11.5px;
  font-weight:750;
  letter-spacing:.4px;
  padding:3px 9px;
  border-radius:6px;
  background:#ecfdf5;
  border:1px solid #a7f3d0;
  color:#047857;
  white-space:nowrap;
  flex-shrink:0
}
:root[data-theme=dark] .cockpit-phase-tag {
  background:#064e3b;
  border-color:#065f46;
  color:#34d399
}
.cockpit-phase-text {
  font-size:14px;
  font-weight:700;
  color:var(--ink-strong);
  overflow-wrap:anywhere;
  line-height:1.45
}
.cockpit-phase-meta {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:12px
}
.cockpit-phase-link {
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:var(--ink-link);
  font-weight:650
}
.cockpit-phase-link svg {
  width:12px;
  height:12px
}
.cockpit-highlights {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px
}
.cockpit-highlight-item {
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border-radius:9px;
  background:var(--surface);
  border:1px solid var(--line);
  font-size:13.5px;
  line-height:1.5;
  min-width:0
}
.cockpit-highlight-item.is-owner {
  border-color:#fde68a;
  background:#fffbeb
}
.cockpit-highlight-item.is-blocked {
  border-color:#fecdd3;
  background:#fff1f2
}
:root[data-theme=dark] .cockpit-highlight-item.is-owner {
  border-color:#78350f;
  background:#2e1a05
}
:root[data-theme=dark] .cockpit-highlight-item.is-blocked {
  border-color:#881337;
  background:#2d0a16
}
.cockpit-hl-badge {
  font-size:11.5px;
  font-weight:700;
  padding:3px 9px;
  border-radius:6px;
  background:var(--soft);
  border:1px solid var(--line);
  color:var(--ink-soft);
  white-space:nowrap;
  flex-shrink:0
}
.cockpit-hl-badge--owner {
  background:#fef3c7;
  border-color:#fde68a;
  color:#b45309
}
.cockpit-hl-badge--blocked {
  background:#ffe4e6;
  border-color:#fecdd3;
  color:#be123c
}
.cockpit-hl-badge--focus {
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#047857
}
:root[data-theme=dark] .cockpit-hl-badge--owner {
  background:#451a03;
  border-color:#78350f;
  color:#fcd34d
}
:root[data-theme=dark] .cockpit-hl-badge--blocked {
  background:#4c0519;
  border-color:#881337;
  color:#fda4af
}
:root[data-theme=dark] .cockpit-hl-badge--focus {
  background:#064e3b;
  border-color:#065f46;
  color:#34d399
}
.cockpit-hl-title {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
  flex:1;
  font-weight:600;
  color:var(--ink-strong);
  overflow-wrap:anywhere
}
.cockpit-hl-title svg {
  width:13px;
  height:13px;
  color:var(--ink-link);
  flex-shrink:0
}
a.cockpit-hl-title:hover {
  color:var(--ink-link)
}
.cockpit-pulse-bar {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px
}
.pulse-metric {
  font-size:12px;
  font-weight:600;
  padding:4px 10px;
  border-radius:7px;
  background:var(--soft);
  border:1px solid var(--line);
  color:var(--ink-soft);
  white-space:nowrap
}
.pulse-metric.is-active,
.pulse-metric--arch {
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#047857;
  font-weight:700
}
.pulse-metric--warn {
  background:#fff1f2;
  border-color:#fecdd3;
  color:#be123c;
  font-weight:700
}
:root[data-theme=dark] .pulse-metric.is-active,
:root[data-theme=dark] .pulse-metric--arch {
  background:#064e3b;
  border-color:#065f46;
  color:#34d399
}
:root[data-theme=dark] .pulse-metric--warn {
  background:#4c0519;
  border-color:#881337;
  color:#fda4af
}
.pulse-metric--commit {
  margin-left:auto;
  font-family:"JetBrains Mono","Cascadia Code",ui-monospace,Consolas,monospace;
  font-size:11.5px;
  color:var(--muted)
}
.focus-cockpit-footer {
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px
}
.related-chips {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  font-size:12px
}
.related-label {
  color:var(--muted);
  font-weight:600
}
.chip--related {
  padding:4px 10px;
  font-size:12px
}

/* Compact Non-Focus Project Grid */
.projects-grid--compact {
  grid-template-columns:repeat(auto-fill,minmax(290px,1fr));
  gap:14px
}
.project-tile--compact {
  padding:18px 20px;
  gap:10px
}
.compact-domain-tag {
  font-size:11.5px;
  font-weight:600;
  padding:2px 9px;
  border-radius:999px;
  background:var(--soft);
  border:1px solid var(--line);
  color:var(--muted)
}
.project-purpose--compact {
  font-size:13px;
  line-height:1.6
}
.compact-tile-footer {
  margin-top:auto;
  padding-top:10px;
  border-top:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px
}
.compact-repo-stats {
  font-size:12px;
  font-weight:550;
  color:var(--muted)
}

/* Independent Project Workspace (#/projects/<id>) */
.workspace-switcher-bar {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  margin-bottom:18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  box-shadow:0 1px 3px rgba(15,23,42,.03)
}
.ws-back-btn {
  margin:0;
  font-size:13px;
  font-weight:700;
  white-space:nowrap
}
.ws-switcher-tabs {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px
}
.ws-switcher-tab {
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:13px;
  font-weight:650;
  padding:6px 13px;
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--soft);
  color:var(--ink-soft)
}
.ws-switcher-tab:hover {
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#0f766e
}
.ws-switcher-tab.is-active {
  background:#0f766e;
  border-color:#0f766e;
  color:#ffffff;
  font-weight:700
}
:root[data-theme=dark] .ws-switcher-tab.is-active {
  background:#14b8a6;
  border-color:#14b8a6;
  color:#042f2e
}
.ws-all-link {
  font-size:13px;
  font-weight:700;
  color:var(--ink-link);
  white-space:nowrap
}
.project-cockpit-hero {
  margin-bottom:18px;
  padding:26px 28px;
  background:var(--surface);
  border-top:4px solid #0f766e;
  display:flex;
  flex-direction:column;
  gap:16px
}
:root[data-theme=dark] .project-cockpit-hero {
  border-top-color:#14b8a6
}
.project-hero {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px
}
.project-hero-main {
  min-width:0;
  flex:1
}
.project-hero-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  flex-shrink:0
}
.project-gh-btn {
  width:auto;
  gap:8px;
  padding:9px 16px;
  font-size:13px
}
.project-hero-portals {
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-top:10px;
  border-top:1px solid var(--line)
}
.project-portal-group {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px
}
.project-portal-label {
  font-size:12.5px;
  font-weight:700;
  color:var(--muted);
  white-space:nowrap
}
.chip--portal {
  background:var(--soft);
  font-weight:650;
  padding:6px 13px
}
.chip--portal svg {
  width:12px;
  height:12px;
  color:var(--ink-link)
}
.project-section-nav {
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:18px;
  padding:10px 16px;
  border-radius:11px;
  background:var(--surface);
  border:1px solid var(--line)
}
.project-sec-nav-label {
  font-size:12.5px;
  font-weight:700;
  color:var(--muted);
  margin-right:4px
}
.project-cockpit-columns {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:20px;
  margin-bottom:20px;
  align-items:start
}
.project-section-card {
  margin-bottom:0
}
.project-section-card--architecture {
  margin-bottom:20px
}
.project-section-card .block-status--ok {
  padding:8px 13px;
  margin-bottom:14px;
  font-size:12px;
  background:var(--soft);
  border-radius:8px
}
.project-governance-card {
  margin-bottom:20px;
  background:var(--surface)
}
.governance-links-details {
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
  font-size:13px
}
.governance-links-details summary {
  cursor:pointer;
  font-weight:700;
  color:var(--ink-link);
  margin-bottom:8px
}

@media(max-width:1100px) {
  .cockpit-kpi-strip {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .focus-cockpit-grid,
  .project-cockpit-columns {
    grid-template-columns:1fr
  }
}
@media(max-width:960px) {
  .brand-text,
  .ws-nav-copy,
  .topbar-freshness {
    display:none
  }
  .nav-link--workspace {
    width:44px;
    height:38px;
    justify-content:center;
    padding:0
  }
}
@media(max-width:700px) {
  .workspace-nav,
  .space-label--workspaces,
  .space-label--personal {
    display:none
  }
  .mobile-workspace-bar {
    display:flex
  }
  .cockpit-kpi-strip {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .cockpit-kpi,
  .cockpit-kpi-card {
    padding:14px
  }
  .cockpit-kpi-value {
    font-size:20px
  }
  .project-tile--focus-cockpit,
  .project-cockpit-hero {
    padding:18px
  }
  .source-health-pills {
    margin-left:0;
    width:100%
  }
}


/* ── 首页紧凑核心项目卡（MTK-021） ─────────────────────── */
.focus-cockpit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project-tile--compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.compact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.compact-card-head h3 {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.compact-phase {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.compact-next {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-next--muted { color: var(--muted); }

.compact-next a {
  color: var(--ink-strong);
  text-decoration: none;
}

.compact-tag {
  display: inline-block;
  margin-right: 5px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 10px;
  border: 1px solid currentColor;
  color: var(--muted);
}

.compact-tag--owner { color: var(--warn, #9a6700); }
.compact-tag--blocked { color: var(--danger, #cf222e); }
.compact-tag--focus { color: var(--ink-link); }

.compact-card-foot {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.compact-enter {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-link);
  text-decoration: none;
}

@media (max-width: 1100px) {
  .focus-cockpit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.home-exec-details > summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--ink-link);
  font-weight: 650;
  padding: 4px 0;
}

.home-early-inbox .home-section {
  margin-bottom: 10px;
  padding: 12px;
}


.compact-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.compact-counts-blocked { color: var(--danger, #cf222e); font-weight: 700; }
.compact-enter {
  margin-top: auto;
  padding-top: 4px;
}
.home-all-projects {
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.home-all-projects > summary {
  cursor: pointer;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-link);
}
.home-all-projects > .projects-section {
  margin: 0;
  padding: 0 16px 16px;
}
.home-other-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.home-other-table th,
.home-other-table td {
  padding: 6px 8px;
  border-top: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.home-other-table th {
  color: var(--muted);
  font-weight: 600;
}
.home-other-table td:nth-child(2) {
  white-space: normal;
  min-width: 180px;
}


.home-home-panel,
.home-links-details {
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.home-home-panel > summary,
.home-links-details > summary {
  cursor: pointer;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-link);
}
.home-home-panel > .home-command-grid {
  padding: 0 16px 16px;
}
.home-links-details > .home-links {
  margin: 0;
  border: 0;
  box-shadow: none;
}
.compact-phase {
  -webkit-line-clamp: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-tile--compact {
  padding: 10px;
}


.home-heading .page-description {
  display: none;
}
.home-heading {
  margin-bottom: 4px;
}
.home-early-inbox .section-heading p {
  display: none;
}


.compact-summary {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.compact-summary a { color: var(--ink-strong); text-decoration: none; }
.compact-summary-tag {
  display: inline-block;
  margin-right: 4px;
  padding: 0 4px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 10px;
  color: var(--muted);
}
.compact-summary-tag--owner { color: #9a6700; }
.compact-summary-tag--blocked { color: #cf222e; }
.compact-summary-tag--next { color: var(--ink-link); }


/* ── 开发进度按状态分组（MTK-023） ───────────────────── */
.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.progress-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.progress-header h1 {
  margin: 0;
  font-size: 22px;
}
.progress-collected {
  font-size: 12px;
  color: var(--muted);
}
.progress-header .block-status {
  padding: 3px 8px;
  margin: 0;
  font-size: 11px;
}
.progress-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.progress-filter {
  font: inherit;
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-strong);
}
.progress-groups { display: flex; flex-direction: column; gap: 12px; }
.progress-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 14px;
}
.progress-group-head,
.progress-group-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  cursor: default;
}
.progress-group-summary { cursor: pointer; }
.progress-group h2 { margin: 0; font-size: 16px; }
.progress-count {
  min-width: 24px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 7px;
}
.progress-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.progress-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.progress-row-main { min-width: 0; flex: 1; }
.progress-project {
  font-size: 11.5px;
  color: var(--muted);
  margin-right: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.progress-title {
  display: inline;
  font-size: 13px;
  color: var(--ink-strong);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.progress-title svg { width: 11px; height: 11px; }
.progress-row-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 46%;
  font-size: 11px;
  text-align: right;
}
.progress-row-status {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.progress-row-status--owner { color: #9a6700; }
.progress-row-status--warn { color: #9a6700; }
.progress-row-status--danger { color: #cf222e; }
.progress-row-status--progress { color: var(--ink-link); }
.progress-row-status--muted { color: var(--muted); }
.progress-gray { color: var(--muted); }
.progress-more { margin-top: 4px; }
.progress-more > summary { cursor: pointer; font-size: 12px; color: var(--ink-link); padding: 4px 0; }
.progress-older { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
.progress-diagnostic { margin: 12px 0; font-size: 11px; color: var(--muted); }
.progress-overview {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.progress-overview > summary { cursor: pointer; padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--ink-link); }
.progress-overview-scroll { overflow-x: auto; padding: 0 12px 12px; }
.progress-overview-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.progress-overview-table th, .progress-overview-table td { padding: 6px 8px; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; }
.progress-overview-table th { color: var(--muted); font-weight: 600; }
.progress-overview-commit { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.project-hero-compact { padding: 16px 18px; gap: 10px; }
.project-hero-purpose { margin: 4px 0 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-now-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; }
.project-now-label { color: var(--ink-soft); }
.project-now-item { color: var(--ink-strong); text-decoration: none; margin-right: 10px; }
.project-now-empty { color: var(--muted); }
.project-phase-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); }
.project-phase-line--muted, .project-phase-line--warn { color: var(--muted); }
.project-phase-label { color: var(--muted); }
.project-primary-links { display: flex; flex-wrap: wrap; gap: 8px; }
.project-business-btn { width: auto; }
.project-hero-secondary { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.project-secondary-link { font-size: 12px; color: var(--ink-link); text-decoration: none; }


.inbox-title,
.exec-task-title,
.activity-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.inbox-source { color: var(--muted); font-size: 11px; }

.progress-older-link { margin-left: 8px; color: var(--ink-link); font-size: 11.5px; }
.project-secondary-link { display: inline-flex; align-items: center; gap: 4px; }
.project-secondary-link .access-badge { font-size: 10px; }


/* ── MTK-024 手机适配（390/360） ───────────────────────── */
.home-other-list { display: none; }
.arch-mobile-graph-toggle { display: none; }

@media (max-width: 700px) {
  html, body { overflow-x: hidden; }
  .app-shell, .workspace, main { min-width: 0; max-width: 100%; }
  body { font-size: 14px; }
  main { padding: 14px 12px 0; }

  /* 导航：四个主页面一次可达，核心项目在第二行一次可达 */
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    height: auto;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 10px;
    background: var(--bg, #fff);
  }
  .brand { flex: 1 0 100%; height: 30px; }
  .brand > span { font-size: 19px; }
  .brand img { width: 26px; height: 26px; }
  .primary-nav, .personal-nav { display: contents; }
  .nav-link {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    padding: 0 4px;
    gap: 4px;
    font-size: 13px;
  }
  /* 新增“V3 进度”后，四个驾驶舱入口保持一行，个人工具另起一行，避免 5 项挤压换行 */
  .sidebar .nav-link { flex: 1 1 23%; }
  .nav-link svg { width: 16px; height: 16px; }
  .nav-link span:not(.nav-count):not(.nav-dot) { display: inline; font-size: 12px; }
  .nav-link .nav-dot { display: none; }
  .workspace-nav, .space-label--workspaces, .space-label--personal, .sidebar-bottom { display: none !important; }
  .topbar { height: 44px; padding: 0 12px; }
  .topbar-actions { gap: 6px; }
  .timezone { display: none; }
  .mobile-workspace-bar {
    display: flex !important;
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
    padding: 6px 12px;
  }
  .mobile-ws-label { display: none; }
  .mobile-ws-chip { flex: 1 1 40%; min-height: 44px; height: 44px; font-size: 13px; padding: 0 8px; }

  /* 首页：待我处理 → 四卡 → AI执行 → 常用入口 → 其他项目 */
  main:has(#home-focus-section) { display: flex; flex-direction: column; }
  .cockpit-heading { display: none; }
  #home-registry-status { order: 1; display: none; }
  #home-inbox { order: 2; }
  #home-focus-section { order: 3; }
  #home-exec-panel { order: 4; }
  .home-links-details { order: 5; }
  #home-all-projects { order: 6; }
  main:has(#home-focus-section) > .page-footer { order: 7; }
  .home-early-inbox .home-section { padding: 10px; }
  .focus-cockpit-grid { grid-template-columns: 1fr; }
  .focus-cockpit-section .section-heading-actions { display: none; }
  .focus-cockpit-section .section-heading p { display: none; }
  .compact-card-head { flex-wrap: wrap; }
  .compact-card-head h3 { min-width: 0; flex: 1 1 auto; font-size: 15px; }
  .compact-phase, .compact-next { font-size: 14px; }
  .home-other-table { display: none; }
  .home-other-list { display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 8px 0 0; padding: 0; }
  .home-other-list li { min-height: 44px; padding: 8px 10px; border-top: 1px solid var(--line); }
  .home-other-main {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-strong);
    text-decoration: none;
    font-size: 14px;
  }
  .home-other-main .activity-badge, .home-other-main .health-badge { margin-left: auto; }
  .home-other-nocard, .home-other-counts { color: var(--muted); font-size: 14px; }
  .home-other-nocard { margin-left: auto; }
  .home-other-counts { display: block; padding-top: 2px; }

  /* 通用可点区域与正文 */
  .chip, .primary-button, .text-button, summary, .project-section-nav a, .project-now-item,
  .inbox-item, .progress-row, .activity-item, .project-tile { min-height: 44px; }
  .chip, .primary-button, .text-button { display: inline-flex; align-items: center; font-size: 14px; }
  summary { display: flex; align-items: center; font-size: 14px; padding: 6px 0; }
  .page-description, .page-notice, .hint, .compact-phase, .compact-next, .inbox-title,
  .progress-title, .activity-title, .project-purpose, .project-phase-line, .project-now-line,
  .source-line, .link-title, .exec-task-title, .progress-row-meta, .progress-gray, td, th { font-size: 14px; }
  .inbox-title, .progress-title, .activity-title { min-height: 44px; display: flex; align-items: center; }

  /* 宽内容收进自己的框 */
  .card, .project-cockpit-hero, .project-section-card, .cockpit-kpi, .project-tile { min-width: 0; max-width: 100%; }
  .home-other-wrap, .project-meta, .md-content, .project-governance-card { min-width: 0; max-width: 100%; }
  .md-mermaid-visual, .md-mermaid-svg, .md-content pre, .md-content table, .link-list, .project-meta--wide {
    max-width: 100%;
    overflow-x: auto;
  }
  .md-mermaid-svg { min-width: 0 !important; }
  .project-cockpit-columns, .project-meta--wide, .home-command-grid, #home-sections { grid-template-columns: 1fr !important; }
  .project-cockpit-columns { display: grid; gap: 14px; }
  .project-section-nav { flex-wrap: wrap; overflow: visible; }
  .project-hero-compact { padding: 14px; }
  .project-hero-title { flex-wrap: wrap; gap: 6px; }
  .project-hero-title h1 { font-size: 26px; overflow-wrap: anywhere; }
  .project-hero-purpose { white-space: normal; font-size: 14px; }
  .project-hero-secondary, .project-primary-links, .link-chips { flex-wrap: wrap; }
  .project-now-line { align-items: flex-start; }
  .project-now-items { display: flex; flex-direction: column; gap: 2px; width: 100%; }
  .project-now-item { display: flex; align-items: center; font-size: 14px; }
  .project-section-card .section-heading p { font-size: 14px; }
  .progress-header { align-items: flex-start; }
  .progress-header-main { width: 100%; }
  .progress-filter-label { width: 100%; justify-content: space-between; }
  .progress-filter { flex: 1; min-height: 44px; font-size: 14px; }
  .progress-row { align-items: flex-start; }
  .progress-row-main { min-width: 0; }
  .progress-row-meta { max-width: 100%; justify-content: flex-start; text-align: left; }
  .progress-title { -webkit-line-clamp: 2; }
  .progress-overview-scroll { overflow-x: auto; }
  .arch-topology-diagram { max-width: 100%; overflow: auto; }
  .arch-mobile-graph-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 10px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-link);
    font: inherit;
    font-size: 14px;
  }
  .arch-topology-diagram { display: none !important; }
  .arch-topology-diagram.is-mobile-open { display: block !important; }
  .layer-nodes-grid, .arch-nodes-grid, .layer-card .layer-nodes-grid { grid-template-columns: 1fr !important; }
  .arch-node-card, .layer-card a { min-height: 44px; }
  .arch-edge, .arch-edge-item, .arch-edge-card { min-height: 44px; }
  .project-section-card .arch-topology-diagram { max-width: 100%; }
}

@media (max-width: 700px) {
  body p, body li, body td, body th, .activity-title, .source-line, .link-title { font-size: 14px !important; }
}

@media (max-width: 700px) {
  .topbar-freshness { display: inline-flex; font-size: 11px; padding: 2px 6px; margin-left: 4px; white-space: nowrap; }
  .breadcrumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #home-registry-status { display: none !important; }
}

@media (max-width: 700px) {
  .workspace-switcher-bar { display: none !important; }
  .project-hero-compact { margin-top: 0; }
  .project-phase-line { line-height: 1.45; }
}

@media (max-width: 700px) {
  .inbox-project-chip { display: inline-flex; align-items: center; min-height: 44px; }
}

.arch-no-card-mobile { display: none; }

@media (max-width: 700px) {
  button { min-height: 44px; }
  .icon-button { width: 44px; height: 44px; }
  .arch-node-btn, .arch-node-link, .arch-node-title { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
  .arch-node-btn { padding: 8px 10px; }
  .arch-doc-status a, .arch-doc-table a { min-height: 44px; display: inline-flex; align-items: center; }
  .arch-node-health .lifecycle-badge { display: none !important; }
  .arch-no-card-mobile { display: inline; color: var(--muted); font-size: 14px; }
  .task-filters button, .task-form button, #add-shortcut, .shortcut-item button { min-height: 44px; }
  .task-form button { width: 44px; height: 44px; }
}

@media (max-width: 700px) {
  .project-hero { display: contents; }
  .project-hero-compact { display: flex; flex-direction: column; gap: 10px; }
  .project-hero-main { order: 0; }
  .project-phase-line { order: 1; }
  .project-now-line { order: 2; }
  .project-primary-links { order: 3; }
  .project-hero-secondary { order: 4; }
  .project-secondary-link, .link-title { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 700px) {
  .compact-enter, .tile-enter { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 700px) {
  .brand, .breadcrumb-root, .inbox-workspace-link, .activity-github-link, .welcome-action, .project-card a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 700px) {
  .edge-node--link,
  .progress-overview-scroll td:first-child a,
  .status-card-item .status-card-ref {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
