@layer reset, base, components, responsive;
@layer components {
  .runtime-panel {
    margin-bottom: 22px;
  }
  .runtime-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--amber);
  }
  .runtime-live::before {
    content: "";
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .runtime-live.online {
    color: var(--accent);
  }
  .runtime-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    padding: 0 22px 18px;
    font-size: 12px;
    color: var(--muted);
  }
  .runtime-summary b {
    font: 600 20px var(--mono);
    color: var(--ink);
    margin-right: 6px;
  }
  .runtime-summary small {
    margin-left: auto;
    font-size: 11px;
  }
  .runtime-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0 22px 22px;
  }
  .runtime-card {
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fafcfc;
    padding: 16px;
    min-width: 0;
  }
  .runtime-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .runtime-card h3 {
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .runtime-card > p {
    font-size: 13px;
    line-height: 1.7;
    margin: 12px 0;
    color: #4c616d;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }
  .runtime-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
  }
  .runtime-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 12px var(--mono);
    margin-top: 14px;
  }
  .runtime-progress progress {
    height: 7px;
    width: 100%;
    accent-color: var(--accent);
  }
  .runtime-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 11px;
    color: var(--muted);
    margin-top: 14px;
    overflow-wrap: anywhere;
  }
  .runtime-card details {
    margin-top: 10px;
    font-size: 11px;
    color: var(--muted);
  }
  .runtime-card summary {
    cursor: pointer;
    min-height: 24px;
  }
  .runtime-card details code {
    display: block;
    overflow-wrap: anywhere;
    font: 11px/1.7 var(--mono);
    padding-top: 5px;
  }
  @media (max-width: 1100px) {
    .runtime-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .runtime-summary small {
      width: 100%;
      margin-left: 0;
    }
  }
  @media (max-width: 620px) {
    .runtime-grid {
      grid-template-columns: 1fr;
      padding: 0 16px 16px;
    }
    .runtime-summary {
      padding: 0 16px 16px;
      gap: 15px;
    }
    .runtime-card details,
    .runtime-meta,
    .runtime-summary small {
      font-size: 12px;
    }
  }
}
@layer components {
  .evidence-dialog[open] {
    width: 1080px;
    max-width: calc(100vw - 32px);
  }
  .evidence-dialog .dialog-head {
    flex-shrink: 0;
  }
  .evidence-dialog .dialog-head h2 {
    line-height: 1.5;
  }
  .evidence-dialog .dialog-head p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
  }
  .evidence-dialog .evidence-path {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 11px;
    flex-shrink: 0;
  }
  .evidence-path .icon {
    width: 15px;
    height: 15px;
    margin-top: 2px;
  }
  .evidence-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }
  .evidence-pane {
    overflow: auto;
    min-height: 0;
    flex: 1;
    overscroll-behavior: contain;
    scroll-padding-top: 24px;
  }
  .evidence-source,
  .evidence-code {
    font: 13px/1.85 var(--mono);
    white-space: pre;
    tab-size: 2;
    margin: 0;
    padding: 24px 30px;
    overflow: auto;
  }
  .evidence-source {
    background: #f8fafb;
  }
  .evidence-toc {
    margin: 22px 30px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 16px;
    background: #fafbfc;
  }
  .evidence-toc summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    min-height: 24px;
  }
  .evidence-toc nav {
    display: grid;
    gap: 2px;
    margin-top: 12px;
  }
  .evidence-toc button {
    text-align: left;
    color: var(--blue);
    font-size: 13px;
    padding: 6px 4px;
    line-height: 1.6;
    border-radius: 4px;
  }
  .evidence-toc button:hover {
    background: var(--blue-soft);
  }
  .evidence-toc .toc-level-2 {
    padding-left: 16px;
  }
  .evidence-toc .toc-level-3 {
    padding-left: 28px;
  }
  .markdown-body {
    padding: 28px 32px 44px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink);
    overflow-wrap: anywhere;
  }
  .markdown-body > :first-child {
    margin-top: 0;
  }
  .markdown-body h1,
  .markdown-body h2,
  .markdown-body h3,
  .markdown-body h4,
  .markdown-body h5,
  .markdown-body h6 {
    font-weight: 650;
    line-height: 1.5;
    margin: 1.8em 0 0.7em;
    scroll-margin-top: 24px;
  }
  .markdown-body h1 {
    font-size: 26px;
    letter-spacing: -0.5px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .markdown-body h2 {
    font-size: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
  }
  .markdown-body h3 {
    font-size: 17px;
  }
  .markdown-body h4 {
    font-size: 15px;
  }
  .markdown-body p,
  .markdown-body ul,
  .markdown-body ol,
  .markdown-body blockquote,
  .markdown-body pre,
  .markdown-table-scroll,
  .markdown-body details {
    margin: 0 0 1.15em;
  }
  .markdown-body ul,
  .markdown-body ol {
    padding-left: 1.8em;
  }
  .markdown-body li {
    margin: 0.3em 0;
  }
  .markdown-body li > p {
    margin-bottom: 0.4em;
  }
  .markdown-body li > ul,
  .markdown-body li > ol {
    margin-bottom: 0.4em;
  }
  .markdown-body a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .markdown-body a:hover {
    color: var(--accent);
  }
  .markdown-body .unavailable-link {
    color: var(--muted);
    text-decoration: underline dotted;
    cursor: help;
  }
  .markdown-body blockquote {
    border-left: 3px solid #81ac9b;
    background: var(--accent-soft);
    padding: 12px 18px;
    color: #405b53;
  }
  .markdown-body blockquote > :last-child {
    margin-bottom: 0;
  }
  .markdown-body code {
    font: 0.9em/1.6 var(--mono);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    background: #eef2f5;
    color: #34546a;
    word-break: break-word;
  }
  .markdown-body pre {
    padding: 18px 20px;
    overflow: auto;
    background: #172936;
    color: #e5edf1;
    border-radius: 8px;
    white-space: pre;
    font-size: 13px;
    line-height: 1.8;
  }
  .markdown-body pre code {
    background: none;
    color: inherit;
    padding: 0;
    white-space: pre;
    word-break: normal;
    font-size: inherit;
  }
  .markdown-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .markdown-body table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    line-height: 1.75;
  }
  .markdown-body th,
  .markdown-body td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    min-width: 100px;
  }
  .markdown-body th {
    font-weight: 650;
    background: #f0f4f6;
    white-space: nowrap;
  }
  .markdown-body tr:last-child td {
    border-bottom: 0;
  }
  .markdown-body th:last-child,
  .markdown-body td:last-child {
    border-right: 0;
  }
  .markdown-body tbody tr:nth-child(even) {
    background: #fafbfc;
  }
  .markdown-body hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 28px 0;
  }
  .markdown-body input[type="checkbox"] {
    accent-color: var(--accent);
    width: 14px;
    height: 14px;
    margin-right: 7px;
    vertical-align: middle;
  }
  .markdown-body details {
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 6px;
  }
  .markdown-body summary {
    cursor: pointer;
    font-weight: 600;
  }
  .markdown-body kbd {
    font: 12px var(--mono);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: 2px 5px;
    background: #f5f7f8;
  }
  @media (max-width: 620px) {
    .evidence-dialog {
      max-width: 100vw;
    }
    .evidence-toolbar {
      padding: 10px 14px;
      gap: 8px;
    }
    .evidence-toolbar .btn {
      font-size: 12px;
    }
    .evidence-dialog .evidence-path {
      padding: 9px 16px;
    }
    .markdown-body {
      padding: 22px 18px 32px;
      font-size: 14px;
    }
    .markdown-body h1 {
      font-size: 22px;
    }
    .markdown-body h2 {
      font-size: 18px;
    }
    .markdown-body pre {
      padding: 14px;
      font-size: 12px;
    }
    .markdown-body th,
    .markdown-body td {
      padding: 10px 12px;
      min-width: 130px;
    }
    .evidence-source,
    .evidence-code {
      padding: 18px 16px;
    }
    .evidence-toc {
      margin: 16px 16px 0;
    }
    .evidence-toc button {
      min-height: 40px;
    }
  }
}
@layer components {
  .login-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    background: var(--nav);
    padding: 24px;
  }
  .login-shell {
    width: min(480px, 100%);
    background: var(--paper);
    border-radius: 16px;
    padding: 42px;
  }
  .login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 44px;
    font-size: 24px;
    font-weight: 650;
  }
  .login-brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 1.2px;
    color: var(--muted);
  }
  .login-shell h1 {
    font-size: 28px;
    margin: 12px 0;
  }
  .login-shell > p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 28px;
  }
  .login-shell form {
    display: grid;
    gap: 18px;
  }
  .login-shell form > .btn {
    margin-top: 6px;
    min-height: 46px;
    justify-content: space-between;
  }
  .login-foot {
    font-size: 12px;
    color: var(--muted);
    margin-top: 32px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  #loginError {
    background: var(--red-soft);
    color: var(--red);
    border-radius: 6px;
    padding: 10px;
    font-size: 13px;
  }
  [hidden] {
    display: none !important;
  }
  @media (max-width: 500px) {
    .login-shell {
      padding: 28px;
    }
    .login-shell h1 {
      font-size: 24px;
    }
  }
}
@layer components {
  .sync-summary {
    margin-bottom: 22px;
  }
  .sync-summary .panel-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sync-summary .notice {
    margin: 16px 22px;
  }
  .sync-roots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 22px 20px;
  }
  .sync-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
  }
  .sync-event {
    padding: 18px 22px;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
  }
  .sync-event-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
  }
  .sync-event time,
  .sync-event small {
    font-size: 12px;
    color: var(--muted);
  }
  .sync-event h3 {
    font-size: 14px;
    margin: 9px 0 6px;
  }
  .sync-event p {
    font-size: 13px;
    white-space: pre-wrap;
    margin: 4px 0 8px;
  }
  .sync-event details {
    font-size: 12px;
    margin-top: 10px;
    color: var(--muted);
  }
  .sync-event summary {
    cursor: pointer;
    min-height: 30px;
  }
  .sync-event ul {
    padding-left: 18px;
  }
  .sync-empty {
    padding: 24px;
    color: var(--muted);
    font-size: 13px;
  }
  @media (max-width: 900px) {
    .sync-columns {
      grid-template-columns: 1fr;
    }
  }
}
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  body,
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }
  button,
  input,
  select,
  textarea {
    font: inherit;
  }
  button,
  a,
  select,
  input[type="checkbox"] {
    -webkit-tap-highlight-color: transparent;
  }
  button {
    cursor: pointer;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  button {
    border: 0;
  }
  img,
  svg {
    display: block;
  }
  button:disabled {
    cursor: not-allowed;
  }
  dialog {
    padding: 0;
    border: 0;
  }
  button:disabled {
    opacity: 0.55;
  }
}
@layer base {
  :root {
    --paper: #f5f6f8;
    --surface: #fff;
    --ink: #202c35;
    --muted: #67747e;
    --line: #e3e7eb;
    --line-strong: #cbd3d9;
    --nav: #14232d;
    --nav-text: #c6d1d9;
    --accent: #276b58;
    --accent-dark: #1e5546;
    --accent-soft: #eaf4ef;
    --blue: #37638b;
    --blue-soft: #eef3f8;
    --amber: #94601e;
    --amber-soft: #fcf3e4;
    --red: #aa4944;
    --red-soft: #f9eeed;
    --radius: 12px;
    --mono: "Cascadia Code", "Consolas", monospace;
    --speed: 170ms;
    --shadow: 0 12px 45px #15273512;
    font-size: 16px;
    color-scheme: light;
  }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  button,
  input,
  textarea,
  select {
    color: var(--ink);
  }
  button {
    background: transparent;
  }
  a,
  button,
  input,
  textarea,
  select {
    touch-action: manipulation;
  }
  button,
  a,
  select {
    transition:
      background var(--speed),
      border-color var(--speed),
      box-shadow var(--speed),
      color var(--speed);
  }
  :focus-visible {
    outline: 3px solid #5589bf;
    outline-offset: 3px;
  }
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline-offset: 1px;
  }
  ::selection {
    background: #cde8dd;
  }
  button:active {
    filter: brightness(0.96);
  }
  .icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .skip-link {
    position: fixed;
    top: 8px;
    left: 240px;
    transform: translateY(-160%);
    padding: 10px 18px;
    background: var(--ink);
    color: #fff;
    z-index: 1000;
    border-radius: 6px;
  }
  .skip-link:focus {
    transform: translateY(0);
  }
  small {
    font-size: 12px;
  }
  .muted {
    color: var(--muted);
  }
  .mono {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
  }
  .text-danger {
    color: var(--red);
  }
  .text-accent {
    color: var(--accent);
  }
  .nowrap {
    white-space: nowrap;
  }
}
@layer components {
  .app-shell {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    min-height: 100vh;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    background: var(--nav);
    color: var(--nav-text);
    padding: 29px 16px 18px;
    display: flex;
    flex-direction: column;
    z-index: 20;
    overflow-y: auto;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px;
    color: #f3f7f8;
    font-size: 22px;
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: 0.6px;
  }
  .brand-sub {
    display: block;
    font-size: 8.5px;
    letter-spacing: 1.4px;
    font-weight: 500;
    color: #aabac5;
    margin-top: 6px;
  }
  .workspace-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #ffffff06;
    border: 1px solid #ffffff13;
    border-radius: 8px;
    padding: 11px 10px;
    margin: 30px 0 25px;
    font-size: 12px;
    font-weight: 600;
  }
  .workspace-chip small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #9fafbc;
    margin-top: 2px;
  }
  .workspace-avatar {
    display: grid;
    place-items: center;
    width: 29px;
    height: 31px;
    border-radius: 6px;
    background: #304653;
    color: #dce8ed;
    font-family: var(--mono);
    font-size: 15px;
  }
  .workspace-dot {
    margin-left: auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #83b59e;
  }
  .nav-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    color: #8c9ea9;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
  }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    height: 44px;
    border-radius: 7px;
    padding: 0 12px;
    font-size: 13px;
    margin: 3px 0;
    text-align: left;
    color: var(--nav-text);
    position: relative;
  }
  .nav-item .icon {
    width: 17px;
    height: 17px;
    color: #a5b7c3;
  }
  .nav-item:hover {
    background: #ffffff08;
  }
  .nav-item.active {
    background: #2b424c;
    color: #fff;
  }
  .nav-item.active .icon {
    color: #b4dfce;
  }
  .nav-item.active::before {
    content: "";
    position: absolute;
    left: -16px;
    width: 3px;
    height: 21px;
    background: #a2d6bf;
    border-radius: 0 3px 3px 0;
  }
  .nav-count {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 10px;
    padding: 0 5px;
    background: #ffffff0c;
    border-radius: 4px;
    min-width: 21px;
    text-align: center;
    color: #b9c9d3;
  }
  .product-caption {
    margin: 29px 0 9px;
    height: 28px;
  }
  .sidebar .icon-btn {
    color: #a1b2bf;
    min-width: 30px;
    min-height: 30px;
  }
  .product-nav .product-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin: 0 4px;
  }
  .product-nav {
    font-size: 12px;
  }
  .sidebar-foot {
    margin-top: auto;
    padding: 30px 12px 0;
    font-size: 11px;
    color: #9eb0bc;
  }
  .space-status {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .connection-dot {
    width: 6px;
    height: 6px;
    background: #91b9a5;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .connection-dot.offline {
    background: #e6a693;
  }
  .sidebar-backup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #b7c6d0;
    font-size: 12px;
    min-height: 44px;
    margin-top: 9px;
  }
  .foot-note {
    border-top: 1px solid #ffffff0c;
    padding-top: 14px;
    margin-top: 4px;
    color: #8195a4;
    font-size: 11px;
  }
  .workspace-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  .topbar {
    height: 70px;
    background: #ffffffcf;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    gap: 16px;
  }
  .breadcrumb {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
  }
  .breadcrumb strong {
    font-weight: 500;
    color: #43515c;
  }
  .breadcrumb-separator {
    color: #a5afb7;
  }
  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 17px;
  }
  .global-search {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #8a959f;
  }
  .global-search .icon {
    width: 16px;
    height: 16px;
  }
  .global-search input {
    font-size: 12px;
    width: 212px;
    background: none;
    outline: 0;
    border: 0;
    padding: 7px 0;
  }
  .global-search input:focus-visible {
    outline: 0;
  }
  .global-search:focus-within {
    outline: 2px solid #5589bf;
    outline-offset: 5px;
    border-radius: 3px;
  }
  .global-search kbd {
    font: 10px var(--mono);
    background: #f8f9fa;
    border: 1px solid var(--line);
    padding: 1px 4px;
    border-radius: 4px;
    color: #89939b;
  }
  .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    border-radius: 7px;
    color: var(--muted);
    flex-shrink: 0;
  }
  .icon-btn:hover {
    background: #e9edf0;
    color: var(--ink);
  }
  .profile-avatar {
    width: 30px;
    height: 30px;
    background: #e7ecef;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--line);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    color: #4e626f;
  }
  .mobile-menu {
    display: none;
  }
  main {
    padding: 29px 34px 32px;
    max-width: 1660px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
  }
  main:focus {
    outline: none;
  }
  .page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
  }
  .eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.6px;
    color: #7d8a94;
    font-weight: 500;
    margin-bottom: 7px;
  }
  .page-heading h1 {
    font-size: 29px;
    letter-spacing: -0.8px;
    line-height: 1.3;
    font-weight: 650;
  }
  .page-heading p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 7px;
  }
  .heading-actions {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 39px;
    padding: 8px 13px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--line-strong);
    background: #fff;
    line-height: 1.5;
  }
  .btn:hover {
    background: #f1f4f5;
    border-color: #a8b5bf;
  }
  .btn .icon {
    width: 15px;
    height: 15px;
  }
  .btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 2px #17483b0c;
  }
  .btn.primary:hover {
    background: var(--accent-dark);
  }
  .btn.subtle {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
  }
  .btn.danger {
    background: var(--red-soft);
    border-color: #ebd0ce;
    color: var(--red);
  }
  .text-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
    min-height: 30px;
  }
  .text-link:hover {
    color: var(--accent);
  }
  .text-link .icon {
    width: 13px;
    height: 13px;
  }
  .release-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 19px;
    min-height: 198px;
  }
  .release-story {
    background: #1b3037;
    color: #eff6f3;
    padding: 25px 28px;
    position: relative;
    overflow: hidden;
  }
  .release-story::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    top: -30px;
    border: 1px solid #ffffff07;
    border-radius: 50%;
    box-shadow:
      0 0 0 30px #ffffff03,
      0 0 0 60px #ffffff02;
    pointer-events: none;
  }
  .release-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 10px var(--mono);
    letter-spacing: 1.2px;
    color: #aac1c4;
  }
  .release-eyebrow .status-pill {
    font:
      10px "Segoe UI",
      "Microsoft YaHei",
      sans-serif;
    letter-spacing: 0;
    background: #ffffff0a;
    border: 1px solid #ffffff15;
    color: #cce5d9;
    padding: 2px 8px;
  }
  .release-story h2 {
    font-size: 24px;
    font-weight: 550;
    letter-spacing: -0.5px;
    line-height: 1.4;
    margin: 13px 0 6px;
  }
  .release-story p {
    font-size: 12px;
    color: #b0c3c5;
    max-width: 510px;
    position: relative;
    z-index: 1;
  }
  .release-rail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: #b3c8ca;
    font-size: 10px;
    position: relative;
    z-index: 1;
  }
  .release-rail span {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
  }
  .release-rail i {
    width: 17px;
    height: 17px;
    border: 1px solid #62807e;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-style: normal;
  }
  .release-rail i.complete {
    background: #bee1cd;
    border-color: #bee1cd;
    color: #1b4537;
  }
  .release-rail b {
    height: 1px;
    width: 24px;
    background: #4a676a;
    font-weight: 400;
  }
  .release-gate {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .gate-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
  }
  .gate-top .icon {
    width: 15px;
  }
  .gate-number {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 8px 0 11px;
    line-height: 1.15;
  }
  .gate-number strong {
    font-family: var(--mono);
    font-size: 39px;
    font-weight: 500;
    letter-spacing: -2px;
  }
  .gate-number span {
    font-size: 13px;
    color: var(--muted);
  }
  .progress-track {
    height: 5px;
    background: #edf0f2;
    border-radius: 9px;
    overflow: hidden;
    display: flex;
  }
  .progress-track span {
    height: 100%;
    background: #59967c;
    border-radius: 9px;
    min-width: 0;
    transition: width 250ms;
  }
  .progress-track .pending-progress {
    background: #c9dbcf;
    border-radius: 0;
  }
  .gate-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 11px;
    color: var(--muted);
  }
  .gate-note {
    font-size: 10px;
    color: #7d8891;
    margin-top: 5px;
  }
  .metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 23px;
  }
  .metric {
    background: #fff;
    border: 1px solid var(--line);
    padding: 18px 19px 16px;
    border-radius: 10px;
  }
  .metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
  }
  .metric-symbol {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--blue-soft);
    color: var(--blue);
  }
  .metric-symbol.green {
    background: var(--accent-soft);
    color: var(--accent);
  }
  .metric-symbol.amber {
    background: var(--amber-soft);
    color: var(--amber);
  }
  .metric-symbol.red {
    background: var(--red-soft);
    color: var(--red);
  }
  .metric-symbol .icon {
    width: 16px;
    height: 16px;
  }
  .metric-value {
    font-family: var(--mono);
    font-size: 31px;
    letter-spacing: -1.4px;
    font-weight: 500;
    line-height: 1.3;
    margin: 8px 0 5px;
  }
  .metric-value small {
    font:
      11px "Microsoft YaHei",
      sans-serif;
    color: var(--muted);
    margin-left: 7px;
    letter-spacing: 0;
  }
  .metric-footer {
    font-size: 10px;
    color: #7a8690;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .metric-footer .icon {
    width: 12px;
    height: 12px;
  }
  .dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
    gap: 20px;
    align-items: start;
  }
  .panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 21px 13px;
    gap: 12px;
  }
  .panel-head h2 {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .panel-head .section-number {
    font: 10px var(--mono);
    color: #9aa6ae;
  }
  .panel-subtitle {
    font-size: 10px;
    color: var(--muted);
    padding: 0 21px;
    margin-top: -5px;
    margin-bottom: 11px;
  }
  .product-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 21px;
    border-top: 1px solid #f1f3f5;
  }
  .product-avatar {
    width: 32px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: color-mix(in srgb, var(--product-color) 11%, white);
    color: var(--product-color);
    font: 600 14px var(--mono);
    flex-shrink: 0;
  }
  .product-main {
    flex: 1;
    min-width: 0;
  }
  .product-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    gap: 10px;
  }
  .product-label small {
    font: 10px var(--mono);
    font-weight: 400;
    color: var(--muted);
  }
  .product-row .progress-track {
    height: 4px;
    margin-top: 7px;
  }
  .product-detail {
    font-size: 10px;
    color: #7d8992;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .product-open {
    padding: 8px;
    margin-right: -8px;
    color: #91a1aa;
  }
  .product-open:hover {
    color: var(--accent);
  }
  .product-open .icon {
    width: 14px;
    height: 14px;
  }
  .blocker-list {
    padding: 0 21px 5px;
  }
  .blocker-row {
    border-bottom: 1px solid #eef1f3;
    padding: 11px 0 12px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
  }
  .blocker-row:last-child {
    border-bottom: 0;
  }
  .blocker-index {
    margin-top: 2px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    width: 23px;
    height: 23px;
    font: 10px var(--mono);
    color: #aa6b56;
    background: #faf0e9;
    flex-shrink: 0;
  }
  .blocker-row h3 {
    font-size: 12px;
    font-weight: 550;
    line-height: 1.5;
  }
  .blocker-row:hover h3 {
    color: var(--accent);
  }
  .blocker-row p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
  }
  .blocker-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 10px;
    color: #8a959c;
  }
  .soft-callout {
    display: flex;
    gap: 9px;
    padding: 11px 20px;
    background: #fafbf9;
    border-top: 1px solid #edf0e9;
    font-size: 10px;
    color: #6a796e;
  }
  .soft-callout .icon {
    width: 14px;
    height: 14px;
    margin-top: 2px;
  }
  .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    padding: 2px 7px;
    line-height: 1.6;
    border-radius: 4px;
    white-space: nowrap;
    color: var(--muted);
    background: #f0f2f4;
    font-weight: 500;
  }
  .status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
  }
  .status-pill.doing {
    color: #356b98;
    background: #edf3fa;
  }
  .status-pill.blocked {
    color: #9d5147;
    background: #faeeeb;
  }
  .status-pill.review {
    color: #936c2a;
    background: #fbf4e7;
  }
  .status-pill.done {
    color: #37745b;
    background: #edf5ef;
  }
  .priority {
    font: 10px var(--mono);
    font-weight: 500;
    color: #92644d;
  }
  .priority.P0 {
    color: #aa554e;
  }
  .priority.P2 {
    color: #75828b;
  }
  .tag {
    font-size: 10px;
    border: 1px solid #e3e7eb;
    color: #72818b;
    border-radius: 4px;
    padding: 1px 6px;
    white-space: nowrap;
    line-height: 1.6;
  }
  .tag.required {
    color: #726943;
    background: #f9f6ed;
    border-color: #eee8d7;
  }
  .tag.stage {
    color: #56766b;
    background: #f1f6f3;
    border-color: transparent;
  }
  .tag.stage.prototype {
    color: #967951;
    background: #faf5ed;
  }
  .legend {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 10px;
  }
  .legend span {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .legend i {
    height: 5px;
    width: 10px;
    border-radius: 2px;
    background: #59967c;
  }
  .legend i.pale {
    background: #c9dbcf;
  }
  .full-width {
    grid-column: 1/-1;
  }
  .focus-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
  }
  .focus-table th {
    font-size: 10px;
    font-weight: 500;
    color: #85909a;
    background: #fafbfc;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 9px 20px;
  }
  .focus-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f2f4;
    font-size: 11px;
  }
  .focus-table tr:last-child td {
    border-bottom: 0;
  }
  .focus-table .task-title {
    font-size: 12px;
    text-align: left;
    font-weight: 500;
    max-width: 100%;
    padding: 0;
    min-height: 26px;
    display: block;
  }
  .focus-table .task-title:hover {
    color: var(--accent);
  }
  .focus-table .task-id {
    display: block;
    font: 9px var(--mono);
    color: #8e9ba5;
    margin-top: 2px;
  }
  .owner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
  }
  .owner-mark {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border: 1px dashed #cbd4dc;
    border-radius: 50%;
    font-size: 9px;
    color: #86959f;
    background: #fafbfc;
  }
  .owner-mark.assigned {
    border-style: solid;
    background: #eaf0f3;
    color: #557383;
    border-color: #e2e9ed;
  }
  .focus-row {
    cursor: pointer;
  }
  .focus-row:hover {
    background: #fcfdfb;
  }
  .activity-list {
    padding: 0 21px 17px;
  }
  .activity-item {
    display: flex;
    gap: 10px;
    padding: 13px 0;
    position: relative;
  }
  .activity-item::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 37px;
    bottom: -10px;
    width: 1px;
    background: #e8edef;
  }
  .activity-item:last-child::before {
    display: none;
  }
  .activity-mark {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef3ef;
    color: #537963;
    flex-shrink: 0;
  }
  .activity-mark .icon {
    width: 12px;
    height: 12px;
  }
  .activity-item h3 {
    font-size: 11px;
    font-weight: 500;
  }
  .activity-item p {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.7;
  }
  .activity-time {
    font: 9px var(--mono);
    color: #96a1a8;
    margin-top: 4px;
  }
  .baseline-note {
    border-top: 1px solid var(--line);
    padding: 10px 20px;
    color: #819099;
    font-size: 10px;
  }
  .page-footer {
    padding: 0 34px 18px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #89959d;
    font-size: 9px;
  }
  .page-footer > span:first-child {
    font: 9px var(--mono);
    letter-spacing: 0.4px;
  }
  .toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 19px;
    flex-wrap: wrap;
  }
  .filters {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
  }
  .select-filter {
    min-height: 35px;
    padding: 6px 29px 6px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 11px;
    max-width: 180px;
  }
  .view-toggle {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 3px;
    background: #e9edf0;
    gap: 2px;
  }
  .view-toggle button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    font-size: 11px;
    border-radius: 4px;
    min-height: 28px;
    color: #7b8893;
  }
  .view-toggle button.active {
    background: #fff;
    box-shadow: 0 1px 3px #23394912;
    color: var(--ink);
  }
  .view-toggle .icon {
    width: 14px;
    height: 14px;
  }
  .toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .result-count {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
  }
  .board {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }
  .board-column {
    background: #edf0f3;
    border: 1px solid #e5e9ec;
    padding: 10px 8px;
    border-radius: 9px;
    min-height: 410px;
  }
  .board-column.drag-over {
    background: #e6f0eb;
    border-color: #75a88b;
    box-shadow: 0 0 0 2px #75a88b33;
  }
  .column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 3px 13px;
    font-size: 11px;
    font-weight: 600;
    gap: 5px;
  }
  .column-name {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .column-name .status-dot {
    width: 7px;
    height: 7px;
    background: #91a0ac;
  }
  .column-name.doing .status-dot {
    background: #5d8fb5;
  }
  .column-name.blocked .status-dot {
    background: #c58270;
  }
  .column-name.review .status-dot {
    background: #bd9a57;
  }
  .column-name.done .status-dot {
    background: #609478;
  }
  .column-count {
    font: 10px var(--mono);
    color: #85939e;
    margin-left: 5px;
  }
  .column-add {
    min-width: 25px;
    min-height: 25px;
  }
  .column-add .icon {
    width: 14px;
    height: 14px;
  }
  .task-card {
    padding: 12px;
    background: #fff;
    border: 1px solid #dfe5e9;
    border-radius: 7px;
    margin-bottom: 9px;
    box-shadow: 0 1px 2px #243b4810;
    cursor: grab;
  }
  .task-card:hover {
    border-color: #b9c9d2;
    box-shadow: 0 3px 8px #243b4810;
  }
  .task-card:active {
    cursor: grabbing;
  }
  .task-card.dragging {
    opacity: 0.45;
  }
  .task-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 9px;
  }
  .task-card-top .task-id {
    font: 9px var(--mono);
    color: #89969f;
  }
  .task-card h3 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 7px;
  }
  .card-open {
    text-align: left;
    width: 100%;
    padding: 0;
    white-space: normal;
    line-height: inherit;
    font-weight: inherit;
  }
  .card-open:hover {
    color: var(--accent);
  }
  .card-description {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 11px;
  }
  .card-tags {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }
  .card-product {
    font-size: 9px;
    color: var(--product-color);
    padding: 1px 5px;
    background: color-mix(in srgb, var(--product-color) 9%, white);
    border-radius: 3px;
  }
  .card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eef1f3;
    padding-top: 9px;
    gap: 5px;
  }
  .card-bottom .owner {
    font-size: 9px;
    max-width: 80px;
    overflow: hidden;
  }
  .card-bottom .owner-mark {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }
  .card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font: 9px var(--mono);
    color: #8b989f;
  }
  .card-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
  }
  .card-meta .icon {
    width: 11px;
    height: 11px;
  }
  .card-status {
    border: 0;
    background: #f5f7f8;
    font-size: 9px;
    padding: 3px;
    border-radius: 4px;
    max-width: 78px;
    color: #74848f;
    min-height: 24px;
  }
  .column-empty {
    border: 1px dashed #cfd9df;
    color: #85939c;
    border-radius: 7px;
    padding: 24px 10px;
    text-align: center;
    font-size: 11px;
    margin-top: 12px;
  }
  .board-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #83909a;
    margin-top: 15px;
  }
  .board-hint .icon {
    width: 13px;
    height: 13px;
  }
  .table-wrap {
    overflow: auto;
  }
  .task-list-table td,
  .task-list-table th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .task-list-table td:nth-child(2) {
    min-width: 210px;
  }
  .task-list-table .stage {
    font-size: 10px;
  }
  .task-list-table .scope-note {
    font-size: 9px;
    color: #8b959e;
  }
  .empty-state {
    text-align: center;
    padding: 65px 20px;
  }
  .empty-state > .icon {
    width: 32px;
    height: 32px;
    color: #93a39d;
    margin: 0 auto 15px;
  }
  .empty-state h2 {
    font-size: 17px;
    font-weight: 550;
    margin-bottom: 6px;
  }
  .empty-state p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 18px;
  }
  .roadmap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    position: relative;
  }
  .roadmap-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
  }
  .roadmap-card.current {
    border-color: #99b8a8;
    box-shadow: 0 0 0 1px #99b8a826;
  }
  .roadmap-top {
    padding: 21px 19px 19px;
    border-bottom: 1px solid var(--line);
  }
  .roadmap-version {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font: 11px var(--mono);
    color: var(--muted);
    margin-bottom: 15px;
  }
  .roadmap-card h2 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
  }
  .roadmap-top p {
    font-size: 11px;
    color: var(--muted);
    min-height: 54px;
  }
  .roadmap-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #85939b;
    margin-top: 15px;
  }
  .roadmap-date .icon {
    width: 13px;
    height: 13px;
  }
  .roadmap-progress {
    padding: 17px 19px;
  }
  .roadmap-progress .progress-track {
    margin: 9px 0;
  }
  .roadmap-body {
    padding: 0 19px 14px;
  }
  .roadmap-task {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f3f5;
    font-size: 11px;
    line-height: 1.7;
    text-align: left;
    width: 100%;
  }
  .roadmap-task .status-dot {
    width: 6px;
    height: 6px;
    margin-top: 7px;
    background: #9baab4;
  }
  .roadmap-task .status-dot.done {
    background: var(--accent);
  }
  .roadmap-task .status-dot.blocked {
    background: #bb7669;
  }
  .roadmap-task:hover {
    color: var(--accent);
  }
  .roadmap-footer {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding: 10px 15px;
  }
  .roadmap-footer button {
    font-size: 10px;
  }
  .roadmap-explainer {
    margin-top: 23px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 17px 20px;
    border: 1px solid #e3e8e4;
    border-radius: 9px;
    background: #f0f4ef;
    color: #5f7164;
    font-size: 11px;
  }
  .roadmap-explainer .icon {
    width: 16px;
    height: 16px;
  }
  .checklist-group {
    margin-bottom: 18px;
  }
  .checklist-head {
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .checklist-head h2 {
    font-size: 14px;
    font-weight: 550;
  }
  .checklist-task {
    padding: 18px 20px;
    border-bottom: 1px solid #edf1f3;
  }
  .checklist-task:last-child {
    border-bottom: 0;
  }
  .checklist-task-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
  }
  .checklist-task-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 550;
    text-align: left;
  }
  .checklist-task-title:hover {
    color: var(--accent);
  }
  .checklist-task-title .mono {
    font-size: 10px;
    color: #8b99a1;
    font-weight: 400;
  }
  .criteria-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
  }
  .criterion {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 11px;
    color: #657580;
    padding: 6px 0;
    cursor: pointer;
    min-height: 28px;
  }
  .criterion input {
    width: 15px;
    height: 15px;
    margin: 3px 0 0;
    accent-color: var(--accent);
    flex-shrink: 0;
  }
  .criterion:has(input:checked) {
    color: #47755c;
  }
  .checklist-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 10px;
    color: #87949b;
  }
  .large-activity {
    padding: 6px 25px 20px;
  }
  .large-activity .activity-item {
    padding: 19px 0;
    gap: 15px;
  }
  .large-activity .activity-mark {
    width: 31px;
    height: 31px;
  }
  .large-activity .activity-item::before {
    left: 15px;
    top: 53px;
  }
  .large-activity .activity-item h3 {
    font-size: 13px;
  }
  .large-activity .activity-item p {
    font-size: 12px;
    max-width: 900px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .large-activity .activity-time {
    font-size: 10px;
  }
  .evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .evidence-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 185px;
  }
  .evidence-card:hover {
    border-color: #b0c8ba;
    box-shadow: var(--shadow);
  }
  .evidence-card > .icon {
    width: 25px;
    height: 25px;
    color: #5b7b6d;
  }
  .evidence-card h2 {
    font-size: 14px;
    font-weight: 550;
  }
  .evidence-card p {
    font-size: 11px;
    color: var(--muted);
    overflow-wrap: anywhere;
  }
  .evidence-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #86969d;
    font-size: 10px;
    margin-top: auto;
  }
  .evidence-card-footer .icon {
    width: 14px;
    height: 14px;
  }
  .notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 15px;
    border: 1px solid #e8e1cf;
    background: #fbf8ef;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #83744b;
    font-size: 11px;
  }
  .notice .icon {
    width: 15px;
    height: 15px;
    margin-top: 2px;
  }
  .loading-state {
    display: flex;
    min-height: 65vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--muted);
  }
  .loading-state h1 {
    font-size: 18px;
    font-weight: 500;
    margin-top: 18px;
  }
  .loading-state p {
    font-size: 12px;
    margin-top: 7px;
  }
  .loading-ring {
    width: 24px;
    height: 24px;
    border: 2px solid #dbe7e0;
    border-top-color: #58836c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  dialog {
    color: var(--ink);
    background: #fff;
    box-shadow: 0 25px 100px #0c23334a;
    border-radius: 13px;
    max-height: 90dvh;
    max-width: calc(100vw - 30px);
  }
  dialog::backdrop {
    background: #10253066;
    backdrop-filter: blur(2px);
  }
  .dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 15px;
    flex-shrink: 0;
  }
  .dialog-head h2 {
    font-size: 17px;
    font-weight: 600;
  }
  .dialog-head p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
  }
  .dialog-body {
    padding: 23px 24px;
    overflow: auto;
  }
  .dialog-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    padding: 15px 24px;
    border-top: 1px solid var(--line);
    background: #fbfcfd;
    flex-shrink: 0;
  }
  .form-dialog {
    width: 690px;
  }
  .form-dialog[open] {
    display: flex;
    flex-direction: column;
  }
  .form-dialog form {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .form-content {
    overflow: auto;
    padding: 22px 24px;
    max-height: calc(90dvh - 170px);
  }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 18px;
  }
  .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #4f616e;
  }
  .field.full {
    grid-column: 1/-1;
  }
  .field input:not([type="checkbox"]),
  .field select,
  .field textarea,
  .detail-select,
  .note-input {
    border: 1px solid #ccd5dc;
    border-radius: 7px;
    background: #fff;
    padding: 9px 11px;
    font-size: 12px;
    width: 100%;
    min-height: 39px;
  }
  .field textarea {
    resize: vertical;
    line-height: 1.8;
    min-height: 83px;
  }
  .field .hint {
    font-size: 10px;
    line-height: 1.7;
    color: #7d8d97;
  }
  .field-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    font-size: 12px;
  }
  .field-checkbox input {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
  }
  .multi-select {
    min-height: 80px !important;
  }
  .error-summary {
    background: var(--red-soft);
    border: 1px solid #e4c3bf;
    color: #8d453b;
    font-size: 12px;
    padding: 11px 13px;
    border-radius: 7px;
    margin-bottom: 17px;
    white-space: pre-wrap;
  }
  .detail-dialog {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    margin: 0;
    width: 560px;
    max-width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .detail-dialog[open] {
    display: flex;
    flex-direction: column;
  }
  .detail-body {
    overflow: auto;
    padding: 23px 27px;
    flex: 1;
  }
  .detail-id {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 11px var(--mono);
    color: #84949f;
  }
  .detail-title {
    font-size: 22px;
    line-height: 1.55;
    letter-spacing: -0.4px;
    margin: 12px 0 16px;
  }
  .detail-labels {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 21px;
  }
  .detail-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 17px;
    background: #f7f9fa;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 15px;
    margin-bottom: 24px;
  }
  .detail-field {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .detail-field strong {
    font-weight: 500;
    color: #354d5b;
    font-size: 12px;
  }
  .detail-select {
    font-size: 11px;
    min-height: 34px;
    padding: 5px 8px;
  }
  .detail-section {
    margin: 22px 0;
  }
  .detail-section h3 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .detail-section p {
    font-size: 12px;
    color: #687a86;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .blocker-box {
    padding: 14px;
    border-radius: 8px;
    background: #fbf3ef;
    color: #985f4f;
    font-size: 12px;
    border: 1px solid #efdfd6;
    line-height: 1.8;
    white-space: pre-wrap;
  }
  .detail-section .criterion {
    font-size: 12px;
    padding: 7px 0;
  }
  .detail-evidence {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 12px;
    margin: 8px 0;
    font-size: 12px;
    text-align: left;
  }
  .detail-evidence .icon {
    width: 15px;
    height: 15px;
    color: #7e9288;
  }
  .detail-evidence:hover {
    border-color: #a0c1ac;
    background: #fafcf9;
  }
  .detail-evidence .external-tail {
    margin-left: auto;
  }
  .add-evidence-row {
    display: flex;
    gap: 7px;
    margin-top: 10px;
  }
  .add-evidence-row select {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    border: 1px solid var(--line-strong);
    padding: 8px;
    border-radius: 6px;
  }
  .detail-note {
    background: #f7f9fa;
    border: 1px solid #e9eef0;
    border-radius: 7px;
    padding: 12px;
    margin-top: 9px;
    font-size: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .detail-note time {
    display: block;
    font: 9px var(--mono);
    color: #82929e;
    margin-bottom: 6px;
  }
  .note-input {
    margin-bottom: 8px;
    min-height: 83px;
    resize: vertical;
    line-height: 1.8;
  }
  .note-actions {
    display: flex;
    justify-content: flex-end;
  }
  .dependency-row {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 11px;
    padding: 8px 0;
    color: #647886;
    cursor: pointer;
    text-align: left;
  }
  .dependency-row .icon {
    width: 14px;
    height: 14px;
  }
  .dependency-row.done {
    color: var(--accent);
  }
  .dependency-row:hover {
    color: var(--accent);
  }
  .detail-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }
  .evidence-dialog {
    width: 900px;
  }
  .evidence-dialog[open] {
    display: flex;
    flex-direction: column;
  }
  .evidence-content {
    white-space: pre-wrap;
    font-size: 12px;
    font-family: "Cascadia Code", "Microsoft YaHei", monospace;
    line-height: 1.95;
    padding: 23px 28px;
    overflow: auto;
    margin: 0;
    overflow-wrap: anywhere;
    tab-size: 2;
  }
  .evidence-path {
    padding: 9px 24px;
    color: #7c8c98;
    font: 10px var(--mono);
    overflow-wrap: anywhere;
    background: #f7f9fa;
  }
  .confirm-dialog {
    width: 420px;
  }
  .confirm-dialog .dialog-body p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.9;
    white-space: pre-wrap;
  }
  .backup-action {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 17px;
    margin-bottom: 12px;
  }
  .backup-action > .icon {
    width: 23px;
    height: 23px;
    color: #69877b;
  }
  .backup-action h3 {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .backup-action p {
    font-size: 11px;
    color: var(--muted);
  }
  .backup-action .btn {
    margin-left: auto;
  }
  .restore-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding: 11px 0;
    font-size: 12px;
    gap: 15px;
  }
  .restore-row small {
    display: block;
    color: var(--muted);
    font-size: 10px;
  }
  .toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translate(-50%, 20px);
    padding: 12px 20px;
    background: #203e33;
    color: #fff;
    border: 1px solid #ffffff22;
    box-shadow: 0 5px 25px #203e3329;
    border-radius: 9px;
    z-index: 1000;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 160ms,
      transform 160ms;
    max-width: calc(100vw - 30px);
    line-height: 1.7;
  }
  .toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .toast.error {
    background: #7b3c35;
  }
  .archived-banner {
    padding: 12px 18px;
    background: #eff2f5;
    border: 1px solid var(--line);
    font-size: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .evidence-note {
    font-size: 11px;
    color: var(--muted);
    padding: 16px 0;
  }
  .baseline-badge {
    font: 9px var(--mono);
    border: 1px solid #d8e0e3;
    border-radius: 5px;
    padding: 3px 7px;
    color: #7a8a93;
    background: #f8fafa;
  }
}
@layer responsive {
  .sidebar-backdrop {
    display: none;
  }
  .metric-footer,
  .panel-subtitle,
  .product-detail,
  .product-label small,
  .blocker-meta,
  .focus-table th,
  .focus-table .task-id,
  .activity-time,
  .baseline-note,
  .page-footer,
  .result-count,
  .board-hint,
  .roadmap-date,
  .checklist-meta,
  .evidence-card-footer,
  .evidence-path,
  .baseline-badge {
    color: #647580;
  }
  .metric-top,
  .eyebrow,
  .nav-caption {
    color: #667b89;
  }
  .sidebar .nav-caption {
    color: #9dafba;
  }
  .tag {
    color: #5e737f;
  }
  .card-meta,
  .task-card-top .task-id {
    color: #697c88;
  }
  .card-description {
    color: #617480;
  }
  .owner {
    color: #647580;
  }
  .field input:not([type="checkbox"]),
  .field select,
  .field textarea,
  .detail-select,
  .note-input {
    border-color: #96a5af;
  }
  .sidebar .icon-btn:hover {
    background: #ffffff10;
    color: #eef5f7;
  }
  @media (min-width: 1600px) {
    main {
      padding-top: 35px;
    }
    .page-heading h1 {
      font-size: 32px;
    }
    .metrics {
      gap: 19px;
    }
    .board {
      gap: 17px;
    }
    .task-card {
      padding: 15px;
    }
    .task-card h3 {
      font-size: 13px;
    }
    .card-description {
      font-size: 11px;
    }
    .card-product,
    .card-meta,
    .task-card-top .task-id {
      font-size: 10px;
    }
    .product-row {
      padding-top: 14px;
      padding-bottom: 14px;
    }
  }
  @media (max-width: 1180px) {
    .app-shell {
      grid-template-columns: 196px minmax(0, 1fr);
    }
    .sidebar {
      padding-left: 12px;
      padding-right: 12px;
    }
    .brand {
      padding-left: 5px;
      font-size: 21px;
    }
    .brand-sub {
      font-size: 7px;
    }
    .workspace-chip {
      padding: 10px 7px;
    }
    .workspace-chip > span:nth-child(2) {
      font-size: 11px;
    }
    .nav-item {
      font-size: 12px;
      padding-left: 10px;
      gap: 8px;
    }
    .nav-item.active::before {
      left: -12px;
    }
    main {
      padding: 25px 25px;
    }
    .topbar {
      padding: 0 25px;
    }
    .page-footer {
      padding-left: 25px;
      padding-right: 25px;
    }
    .dashboard-grid {
      grid-template-columns: 1.15fr 1fr;
      gap: 15px;
    }
    .board {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .roadmap {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .evidence-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .global-search input {
      width: 180px;
    }
    .release-story {
      padding: 23px;
    }
    .release-gate {
      padding: 23px;
    }
    .release-rail {
      gap: 8px;
    }
    .release-rail b {
      width: 15px;
    }
    .metric {
      padding: 15px;
    }
    .metric-footer {
      font-size: 9px;
    }
    .metric-top {
      font-size: 10px;
    }
    .heading-actions .export-label {
      display: none;
    }
    .focus-table th,
    .focus-table td {
      padding-left: 15px;
      padding-right: 15px;
    }
    .dashboard-grid > .panel:nth-last-child(2) {
      grid-column: 1/-1;
    }
    .dashboard-grid > .panel:last-child {
      grid-column: 1/-1;
    }
  }
  @media (max-width: 900px) {
    .app-shell {
      grid-template-columns: 178px minmax(0, 1fr);
    }
    .brand-sub {
      letter-spacing: 0.7px;
    }
    .workspace-chip {
      gap: 7px;
    }
    .workspace-avatar {
      width: 24px;
      height: 27px;
    }
    .workspace-dot {
      display: none;
    }
    .nav-caption {
      font-size: 10px;
    }
    .topbar {
      gap: 8px;
      padding: 0 20px;
    }
    .topbar-actions {
      gap: 9px;
    }
    .global-search kbd {
      display: none;
    }
    .global-search input {
      width: 155px;
      font-size: 11px;
    }
    .breadcrumb {
      font-size: 11px;
      gap: 7px;
    }
    main {
      padding: 24px 20px;
    }
    .page-heading {
      align-items: flex-start;
    }
    .page-heading h1 {
      font-size: 25px;
    }
    .page-heading p {
      max-width: 330px;
      font-size: 11px;
    }
    .heading-actions {
      gap: 5px;
    }
    .heading-actions .btn {
      font-size: 11px;
      padding: 7px 9px;
    }
    .heading-actions > .btn:first-child {
      display: none;
    }
    .release-hero {
      grid-template-columns: 1fr;
    }
    .release-gate {
      padding: 16px 23px;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 5px 25px;
      align-items: center;
    }
    .gate-number {
      grid-column: 2;
      grid-row: 1/3;
      margin: 0;
    }
    .gate-number strong {
      font-size: 30px;
    }
    .gate-top,
    .gate-bottom {
      font-size: 10px;
    }
    .gate-bottom {
      margin: 0;
    }
    .gate-note {
      grid-column: 1/-1;
    }
    .release-gate .progress-track {
      grid-column: 1;
      grid-row: 2;
    }
    .gate-bottom {
      grid-column: 1/-1;
    }
    .metrics {
      gap: 9px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      margin-bottom: 18px;
    }
    .metric {
      padding: 14px 16px;
    }
    .metric-top {
      font-size: 11px;
    }
    .metric-value {
      margin: 4px 0;
    }
    .metric-footer {
      font-size: 10px;
    }
    .dashboard-grid {
      grid-template-columns: 1fr;
    }
    .panel-head {
      padding: 17px 20px 12px;
    }
    .board {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .evidence-grid {
      gap: 12px;
    }
    .evidence-card {
      padding: 17px;
    }
    .criteria-grid {
      grid-template-columns: 1fr;
    }
    .page-footer {
      font-size: 9px;
      flex-direction: column;
      gap: 4px;
    }
    .focus-table th,
    .focus-table td {
      padding-left: 14px;
      padding-right: 14px;
    }
    .focus-table .hide-tablet {
      display: none;
    }
  }
  @media (max-width: 620px) {
    .app-shell {
      grid-template-columns: 1fr;
    }
    .sidebar {
      position: fixed;
      left: 0;
      width: 240px;
      transform: translateX(-100%);
      transition: transform 180ms;
      box-shadow: 8px 0 30px #0c223330;
    }
    .sidebar.mobile-open {
      transform: translateX(0);
    }
    .mobile-menu {
      display: flex;
      min-width: 32px;
      min-height: 40px;
    }
    .topbar {
      height: 60px;
      padding: 0 16px;
      gap: 7px;
    }
    .topbar-actions {
      margin-left: auto;
      gap: 7px;
    }
    .breadcrumb {
      display: none;
    }
    .global-search input {
      width: 155px;
      font-size: 11px;
    }
    .global-search .icon {
      width: 15px;
    }
    .profile-avatar {
      display: none;
    }
    .topbar-actions > .icon-btn {
      min-width: 32px;
    }
    .page-heading {
      margin-bottom: 20px;
      gap: 12px;
    }
    .page-heading h1 {
      font-size: 25px;
    }
    .page-heading p {
      font-size: 11px;
      max-width: 240px;
    }
    .eyebrow {
      font-size: 9px;
    }
    .heading-actions .btn {
      min-height: 38px;
      padding: 8px 10px;
    }
    .heading-actions .btn span.optional {
      display: none;
    }
    main {
      padding: 23px 16px 24px;
    }
    .release-story {
      padding: 21px;
    }
    .release-story h2 {
      font-size: 23px;
    }
    .release-story p {
      font-size: 11px;
    }
    .release-rail {
      gap: 7px;
      font-size: 9px;
      flex-wrap: wrap;
    }
    .release-rail b {
      width: 12px;
    }
    .release-rail i {
      width: 15px;
      height: 15px;
    }
    .release-gate {
      padding: 17px 21px;
      gap: 5px 15px;
    }
    .gate-note {
      font-size: 9px;
    }
    .metrics {
      gap: 9px;
    }
    .metric {
      padding: 13px 14px;
    }
    .metric-value {
      font-size: 29px;
    }
    .metric-footer {
      font-size: 9px;
    }
    .metric-symbol {
      width: 25px;
      height: 25px;
    }
    .metric-top {
      font-size: 10px;
    }
    .panel-head h2 {
      font-size: 13px;
    }
    .panel-head,
    .product-row {
      padding-left: 16px;
      padding-right: 16px;
    }
    .panel-subtitle {
      padding-left: 16px;
      padding-right: 16px;
    }
    .panel-head .legend {
      display: none;
    }
    .product-label {
      font-size: 12px;
    }
    .product-detail {
      font-size: 9px;
    }
    .product-label small {
      font-size: 9px;
    }
    .blocker-list {
      padding-left: 16px;
      padding-right: 16px;
    }
    .blocker-row p {
      font-size: 11px;
    }
    .focus-table .hide-mobile {
      display: none;
    }
    .focus-table th,
    .focus-table td {
      padding-left: 14px;
      padding-right: 14px;
    }
    .focus-table .task-title {
      font-size: 11px;
    }
    .focus-table td {
      font-size: 10px;
    }
    .focus-table .status-pill {
      font-size: 9px;
    }
    .product-avatar {
      width: 30px;
      height: 32px;
    }
    .activity-list {
      padding-left: 16px;
      padding-right: 16px;
    }
    .page-footer {
      padding-left: 16px;
      padding-right: 16px;
      padding-bottom: max(15px, env(safe-area-inset-bottom));
    }
    .toolbar {
      gap: 12px;
    }
    .filters {
      gap: 7px;
      width: 100%;
    }
    .select-filter {
      font-size: 11px;
      max-width: calc(50% - 4px);
      flex: 1;
      min-width: 135px;
      min-height: 40px;
    }
    .toolbar-right {
      justify-content: space-between;
      width: 100%;
    }
    .view-toggle button {
      min-height: 33px;
    }
    .board {
      grid-template-columns: 1fr;
    }
    .board-column {
      min-height: 120px;
      padding: 13px;
    }
    .column-header {
      font-size: 12px;
      margin-bottom: 14px;
    }
    .column-count {
      font-size: 11px;
    }
    .task-card {
      padding: 16px;
      margin-bottom: 12px;
    }
    .task-card h3 {
      font-size: 14px;
    }
    .card-description {
      font-size: 12px;
    }
    .task-card-top .task-id,
    .card-product,
    .card-meta {
      font-size: 10px;
    }
    .card-bottom .owner {
      font-size: 11px;
      max-width: none;
    }
    .card-bottom .owner-mark {
      width: 24px;
      height: 24px;
    }
    .card-status {
      min-height: 35px;
      font-size: 11px;
      max-width: 110px;
    }
    .tag {
      font-size: 10px;
    }
    .card-meta .icon {
      width: 13px;
      height: 13px;
    }
    .roadmap {
      grid-template-columns: 1fr;
    }
    .roadmap-top p {
      min-height: auto;
    }
    .roadmap-card h2 {
      font-size: 18px;
    }
    .roadmap-top,
    .roadmap-progress {
      padding-left: 20px;
      padding-right: 20px;
    }
    .roadmap-task {
      font-size: 12px;
      min-height: 44px;
    }
    .roadmap-footer button {
      min-height: 36px;
      font-size: 11px;
    }
    .roadmap-explainer {
      font-size: 12px;
    }
    .evidence-grid {
      grid-template-columns: 1fr;
    }
    .evidence-card {
      min-height: 145px;
      padding: 20px;
    }
    .evidence-card h2 {
      font-size: 15px;
    }
    .evidence-card p {
      font-size: 12px;
    }
    .checklist-head {
      padding: 15px;
    }
    .checklist-task {
      padding: 17px 15px;
    }
    .checklist-task-top {
      align-items: flex-start;
    }
    .checklist-task-title {
      font-size: 12px;
      display: block;
    }
    .checklist-task-title .mono {
      display: block;
      margin-bottom: 4px;
    }
    .checklist-task-top .status-pill {
      font-size: 9px;
    }
    .criterion {
      font-size: 12px;
      min-height: 40px;
      align-items: center;
    }
    .criterion input {
      width: 17px;
      height: 17px;
      margin-top: 0;
    }
    .checklist-meta {
      font-size: 9px;
      flex-wrap: wrap;
    }
    .detail-dialog {
      width: 100%;
    }
    .detail-body {
      padding: 20px;
    }
    .dialog-head {
      padding: 18px 20px;
    }
    .dialog-head h2 {
      font-size: 16px;
    }
    .dialog-footer {
      padding: 14px 20px;
      padding-bottom: max(14px, env(safe-area-inset-bottom));
    }
    .detail-title {
      font-size: 23px;
    }
    .detail-select {
      min-height: 40px;
      font-size: 12px;
    }
    .detail-section p {
      font-size: 13px;
    }
    .detail-section .criterion {
      font-size: 12px;
    }
    .form-grid {
      grid-template-columns: 1fr;
      gap: 15px;
    }
    .field.full {
      grid-column: 1;
    }
    .field {
      font-size: 13px;
    }
    .field .hint {
      font-size: 11px;
    }
    .field input:not([type="checkbox"]),
    .field select,
    .field textarea {
      font-size: 14px;
      min-height: 44px;
    }
    .form-dialog,
    .confirm-dialog,
    .evidence-dialog {
      max-width: calc(100vw - 20px);
      max-height: 94dvh;
    }
    .form-content {
      padding: 19px;
      max-height: calc(94dvh - 170px);
    }
    .dialog-footer .btn {
      min-height: 43px;
      font-size: 12px;
    }
    .evidence-content {
      font-size: 12px;
      padding: 20px;
      line-height: 1.9;
    }
    .backup-action {
      flex-wrap: wrap;
      padding: 15px;
      gap: 10px;
    }
    .backup-action .btn {
      min-height: 42px;
    }
    .notice {
      font-size: 11px;
    }
    .text-link {
      min-height: 40px;
    }
    .sidebar .icon-btn,
    .icon-btn {
      min-height: 40px;
      min-width: 40px;
    }
    .btn {
      min-height: 42px;
    }
    .column-add {
      min-height: 36px;
      min-width: 36px;
    }
    .large-activity {
      padding-left: 18px;
      padding-right: 18px;
    }
    .large-activity .activity-item p {
      font-size: 12px;
    }
    .large-activity .activity-item h3 {
      font-size: 13px;
    }
    .skip-link {
      left: 15px;
    }
    .toast {
      bottom: max(20px, env(safe-area-inset-bottom));
      font-size: 12px;
      width: max-content;
      max-width: calc(100vw - 30px);
    }
  }
  @media (pointer: coarse) {
    .btn,
    .icon-btn,
    .nav-item {
      min-height: 44px;
    }
    .icon-btn {
      min-width: 44px;
    }
    .card-status {
      min-height: 44px;
    }
    .criterion {
      min-height: 44px;
    }
    .card-open {
      min-height: 44px;
    }
    .column-add {
      min-height: 44px;
      min-width: 44px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
    .loading-ring {
      animation: none;
      border-color: #58836c;
    }
  }
}
@layer responsive {
  @media (max-width: 620px) {
    .sidebar {
      visibility: hidden;
      pointer-events: none;
      box-shadow: none;
    }
    .sidebar.mobile-open {
      visibility: visible;
      pointer-events: auto;
      box-shadow: 8px 0 30px #0c223330;
    }
    .app-shell:has(.sidebar.mobile-open) > .sidebar-backdrop {
      display: block;
      position: fixed;
      inset: 0;
      background: #10253066;
      z-index: 15;
    }
    .metric-top,
    .metric-footer,
    .gate-top,
    .gate-bottom,
    .gate-note,
    .panel-subtitle,
    .product-detail,
    .product-label small,
    .blocker-meta,
    .focus-table th,
    .focus-table td,
    .focus-table .task-id,
    .activity-item h3,
    .activity-item p,
    .activity-time,
    .baseline-note,
    .result-count,
    .board-hint,
    .roadmap-date,
    .checklist-meta,
    .evidence-card-footer,
    .baseline-badge,
    .card-meta,
    .card-product,
    .status-pill,
    .tag,
    .card-bottom .owner,
    .card-status,
    .notice,
    .text-link {
      font-size: 12px;
    }
    .page-heading p {
      font-size: 12px;
    }
    .heading-actions .btn,
    .btn,
    .icon-btn,
    .text-link,
    .select-filter,
    .card-status {
      min-height: 44px;
    }
    .icon-btn {
      min-width: 44px;
    }
    .field input:not([type="checkbox"]),
    .field select,
    .field textarea,
    .detail-select,
    .note-input {
      font-size: 16px;
    }
    .focus-table .task-title {
      font-size: 12px;
    }
    .release-story p {
      font-size: 12px;
    }
    .page-footer {
      font-size: 11px;
    }
    .card-description {
      font-size: 13px;
    }
  }
  @media (min-width: 621px) {
    .metric-top,
    .metric-footer,
    .gate-top,
    .gate-bottom,
    .gate-note,
    .panel-subtitle,
    .product-detail,
    .product-label small,
    .blocker-row p,
    .blocker-meta,
    .legend,
    .status-pill,
    .tag,
    .priority,
    .task-card-top .task-id,
    .card-product,
    .card-meta,
    .card-status,
    .column-count,
    .result-count,
    .board-hint,
    .focus-table th,
    .focus-table td,
    .focus-table .task-id,
    .owner,
    .activity-item h3,
    .activity-item p,
    .activity-time,
    .baseline-note,
    .page-footer,
    .select-filter,
    .view-toggle button,
    .roadmap-date,
    .roadmap-version,
    .roadmap-task,
    .roadmap-footer button,
    .checklist-meta,
    .evidence-card p,
    .evidence-card-footer,
    .text-link,
    .evidence-note,
    .notice,
    .baseline-badge {
      font-size: 12px;
    }
    .focus-table .task-title,
    .task-card h3,
    .blocker-row h3 {
      font-size: 13px;
    }
    .card-description {
      font-size: 12px;
    }
    .eyebrow {
      font-size: 11px;
    }
    .nav-caption {
      font-size: 12px;
    }
    .sidebar .nav-count {
      font-size: 11px;
    }
    .page-footer,
    .activity-time,
    .focus-table .task-id,
    .task-card-top .task-id {
      font-size: 11px;
    }
    .release-story p {
      font-size: 13px;
    }
    .release-rail {
      font-size: 12px;
    }
    .release-eyebrow {
      font-size: 11px;
    }
    .gate-note {
      font-size: 11px;
    }
    .foot-note {
      font-size: 11px;
    }
    .product-row {
      padding-top: 13px;
      padding-bottom: 13px;
    }
  }
}

@layer components {
  .markdown-diagram {
    margin: 24px 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
  }
  .markdown-diagram figcaption {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 14px 16px 10px;
    font-size: 14px;
  }
  .diagram-status {
    color: var(--muted);
    font-size: 12px;
  }
  .diagram-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0 12px 10px;
    border-bottom: 1px solid var(--line);
  }
  .diagram-tools button,
  .diagram-tools summary {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 12px;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .diagram-tools button:hover:not(:disabled),
  .diagram-tools summary:hover {
    border-color: var(--accent);
    background: #f2f7f5;
  }
  .diagram-tools button:disabled {
    opacity: 0.45;
    cursor: wait;
  }
  .diagram-tools output {
    font: 12px var(--mono);
    min-width: 42px;
    text-align: center;
  }
  .diagram-pan {
    position: relative;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .diagram-pan > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 4px;
  }
  .diagram-viewport {
    position: relative;
    overflow: hidden;
    height: 400px;
    min-height: 200px;
    background-color: #fbfcfc;
    background-image: radial-gradient(#dce5e0 1px, transparent 1px);
    background-size: 18px 18px;
    cursor: grab;
    touch-action: none;
  }
  .diagram-viewport.dragging {
    cursor: grabbing;
  }
  .diagram-viewport:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -4px;
  }
  .diagram-surface {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    pointer-events: none;
    user-select: none;
  }
  .diagram-surface > svg {
    display: block;
    max-width: none !important;
  }
  .diagram-source {
    border: 0 !important;
    border-top: 1px solid var(--line) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  .diagram-source > summary {
    padding: 12px 16px;
    min-height: 44px;
    cursor: pointer;
    font-size: 12px;
    color: var(--muted);
  }
  .diagram-source pre {
    margin: 0 !important;
    border-radius: 0 !important;
    max-height: 300px;
    overflow: auto;
    padding: 16px;
    background: #f4f7f6;
  }
  .diagram-error .diagram-status {
    color: #9d5147;
  }
  .diagram-error .diagram-tools {
    display: none;
  }
  .diagram-measure {
    position: fixed;
    left: -20000px;
    top: 0;
    width: 1200px;
    visibility: hidden;
    pointer-events: none;
  }
  dialog.diagram-dialog[open] {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
  }
  .diagram-dialog-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }
  .diagram-dialog-head > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
  }
  .diagram-dialog-head strong {
    font-size: 16px;
  }
  .diagram-dialog-head span {
    font-size: 12px;
    color: var(--muted);
  }
  .diagram-dialog-head button {
    min-height: 44px;
  }
  .diagram-dialog > .markdown-diagram {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .diagram-dialog .diagram-viewport {
    flex: 1;
    height: auto;
    min-height: 0;
  }
  .diagram-dialog .diagram-source {
    flex-shrink: 0;
  }
  .diagram-dialog .diagram-source[open] {
    max-height: 35vh;
    overflow: auto;
  }
  @media (max-width: 620px) {
    .diagram-viewport {
      height: 320px;
    }
    .diagram-dialog-head {
      align-items: flex-start;
      padding: 10px 12px;
      flex-wrap: wrap;
    }
    .diagram-dialog-head span {
      display: none;
    }
    .diagram-tools {
      gap: 4px;
      padding: 0 8px 8px;
    }
    .diagram-tools button {
      padding: 7px 9px;
    }
  }
}

@layer components {
  [data-card-task] {
    cursor: pointer;
  }
  .runtime-panel-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .runtime-motion-toggle {
    min-height: 36px;
    padding: 6px 10px;
    font: inherit;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
  }
  .runtime-motion-toggle:hover {
    color: var(--accent);
    border-color: #a9cabc;
    background: #f4f9f6;
  }
  .runtime-card.is-executing {
    position: relative;
    overflow: hidden;
    border-color: #a4cdbd;
    background: radial-gradient(ellipse at top left, #e9f8ef 0, transparent 70%), #fbfdfc;
    box-shadow: 0 3px 16px #2d84600b;
  }
  .runtime-card.is-executing::before {
    content: "";
    position: absolute;
    pointer-events: none;
    top: 0;
    left: -45%;
    width: 45%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #62c6a5, #d2f5d9, transparent);
    opacity: 0.8;
  }
  .runtime-card.is-executing .status-pill {
    color: #287454;
    background: #e4f3e9;
    border: 1px solid #c7e4d1;
  }
  .runtime-pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #35986b;
    position: relative;
    margin-right: 1px;
  }
  .runtime-pulse::after {
    content: "";
    position: absolute;
    inset: -3px;
    border: 1px solid #62b98b;
    border-radius: 50%;
    opacity: 0.6;
  }
  .runtime-execution {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    font-size: 11px;
    color: #528570;
  }
  .runtime-signal {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 17px;
  }
  .runtime-signal i {
    width: 3px;
    height: 13px;
    border-radius: 2px;
    background: #5aa88b;
    transform-origin: center;
  }
  .runtime-signal i:nth-child(2),
  .runtime-signal i:nth-child(4) {
    height: 17px;
  }
  .runtime-signal i:nth-child(3) {
    height: 9px;
  }
  .runtime-live-caption {
    font: 9px var(--mono);
    letter-spacing: 0.08em;
    margin-left: 7px;
    color: #86a394;
  }
  .runtime-execution-line {
    position: relative;
    height: 1px;
    flex: 1;
    overflow: hidden;
    background: linear-gradient(90deg, #cde6d7, transparent);
  }
  .runtime-execution-line::after {
    content: "";
    position: absolute;
    inset: 0;
    left: -40%;
    width: 40%;
    background: linear-gradient(90deg, transparent, #58ab86, transparent);
  }
  .runtime-progress-track {
    flex: 1;
    min-width: 0;
    height: 7px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
  }
  .runtime-progress-track progress {
    display: block;
    height: 7px;
    border: 0;
    border-radius: 8px;
    background: #e5eeea;
  }
  .runtime-progress-track progress::-webkit-progress-bar {
    background: #e5eeea;
    border-radius: 8px;
  }
  .runtime-progress-track progress::-webkit-progress-value {
    background: linear-gradient(90deg, #3c8d72, #7ac8a4);
    border-radius: 8px;
  }
  .runtime-progress-track progress::-moz-progress-bar {
    background: #4d9c7c;
    border-radius: 8px;
  }
  .is-executing .runtime-progress-track::after {
    content: "";
    position: absolute;
    inset: 0;
    left: -40%;
    width: 40%;
    background: linear-gradient(90deg, transparent, #ffffff70, transparent);
    pointer-events: none;
  }
  @keyframes runtime-edge-sweep {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(340%);
    }
  }
  @keyframes runtime-signal-wave {
    0%,
    100% {
      transform: scaleY(0.35);
      opacity: 0.5;
    }
    50% {
      transform: scaleY(1);
      opacity: 1;
    }
  }
  @keyframes runtime-pulse-ring {
    0% {
      transform: scale(0.6);
      opacity: 0.65;
    }
    80%,
    100% {
      transform: scale(1.8);
      opacity: 0;
    }
  }
  @media (prefers-reduced-motion: no-preference) {
    .runtime-card.is-executing::before {
      animation: runtime-edge-sweep 5s linear infinite;
    }
    .runtime-pulse::after {
      animation: runtime-pulse-ring 2.6s ease-out infinite;
    }
    .runtime-signal i {
      animation: runtime-signal-wave 1.4s ease-in-out infinite;
    }
    .runtime-signal i:nth-child(2) {
      animation-delay: -0.2s;
    }
    .runtime-signal i:nth-child(3) {
      animation-delay: -0.4s;
    }
    .runtime-signal i:nth-child(4) {
      animation-delay: -0.6s;
    }
    .runtime-signal i:nth-child(5) {
      animation-delay: -0.8s;
    }
    .runtime-execution-line::after {
      animation: runtime-edge-sweep 3.8s linear infinite;
    }
    .is-executing .runtime-progress-track::after {
      animation: runtime-edge-sweep 3s linear infinite;
    }
  }
  :root[data-runtime-motion="paused"] .runtime-card *,
  :root[data-runtime-motion="paused"] .runtime-card *::after,
  :root[data-runtime-motion="paused"] .runtime-card::before,
  :root:not([data-runtime-connection="connected"]) .runtime-card *,
  :root:not([data-runtime-connection="connected"]) .runtime-card *::after,
  :root:not([data-runtime-connection="connected"]) .runtime-card::before {
    animation-play-state: paused;
  }
  :root[data-runtime-motion="paused"] .runtime-card::before,
  :root[data-runtime-motion="paused"] .runtime-execution-line::after,
  :root[data-runtime-motion="paused"] .runtime-progress-track::after {
    opacity: 0;
  }
  @media (max-width: 620px) {
    .runtime-panel > .panel-head {
      align-items: flex-start;
      gap: 10px;
      flex-wrap: wrap;
    }
    .runtime-motion-toggle {
      min-height: 44px;
    }
  }
}

@layer components {
  .agent-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e2e9e6;
    background: #fff;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px #243c3010;
  }
  .agent-logo img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
  }
  .agent-logo-generic {
    color: #598774;
    background: #f2f7f4;
  }
  .agent-logo-generic svg {
    width: 24px;
    height: 24px;
  }
  .runtime-card-top h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .runtime-card-top h3 > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .runtime-card-top .status-pill {
    flex-shrink: 0;
  }
  .sync-report h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
  }
  .sync-report h3 .agent-logo {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }
  .sync-report h3 .agent-logo img {
    width: 20px;
    height: 20px;
  }
}
