:root {
  --brand: #0085cc;
  --brand-deep: #1b83c6;
  --brand-cyan: #16c7d9;
  --brand-green: #95c11f;
  --brand-orange: #ff7a45;
  --ink: #142634;
  --muted: #627684;
  --canvas: #f2f7fa;
  --surface: #ffffff;
  --blue-soft: #ecf7fc;
  --green-soft: #f3f9e7;
  --orange-soft: #fff2ea;
  --red: #c43d4b;
  --orange: #c96b00;
  --border: #dce5ea;
  --border-strong: #c8d5dc;
  --shadow: 0 8px 24px rgba(24, 62, 82, 0.06);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(22, 199, 217, 0.055), transparent 260px),
    var(--canvas);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 133, 204, 0.24);
  outline-offset: 2px;
}

svg {
  flex: 0 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  text-decoration: none;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.cover-open {
  background: #eff9ff;
}

body.cover-open .app-shell,
body.cover-open .mobile-nav {
  display: none;
}

body.server-online [data-open-event],
body.server-online #open-reset-dialog {
  display: none !important;
}

.mvp-cover[hidden] {
  display: none;
}

.mvp-cover {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: 0 clamp(24px, 4.2vw, 72px);
  background:
    radial-gradient(circle at 80% 14%, rgba(22, 199, 217, 0.2), transparent 30%),
    radial-gradient(circle at 7% 18%, rgba(149, 193, 31, 0.11), transparent 25%),
    linear-gradient(135deg, #fcfefe 0%, #f2faff 54%, #f2fcf6 100%);
}

.mvp-cover::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(0, 133, 204, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 133, 204, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.54) 56%, transparent 100%);
  content: "";
  pointer-events: none;
}

.mvp-cover::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(252, 254, 254, 0.7), transparent 52%);
  content: "";
  pointer-events: none;
}

.cover-header,
.cover-hero,
.cover-directory {
  width: min(1520px, 100%);
  margin-inline: auto;
}

.cover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 28px;
  border-bottom: 1px solid rgba(21, 91, 121, 0.12);
}

.cover-brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--ink);
  text-decoration: none;
}

.cover-brand img {
  display: block;
  width: 166px;
  height: auto;
}

.cover-brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(21, 91, 121, 0.16);
}

.cover-brand-name {
  display: grid;
  gap: 1px;
  line-height: 1.3;
}

.cover-brand-name strong {
  color: #14384a;
  font-size: 16px;
  font-weight: 800;
}

.cover-brand-name small {
  color: #607986;
  font-size: 10px;
  font-weight: 600;
}

.cover-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5c7582;
  font-size: 11px;
  font-weight: 700;
}

.cover-version {
  padding: 5px 9px;
  color: #0875a7;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 133, 204, 0.15);
  border-radius: 999px;
  font-family: "Bahnschrift", sans-serif;
  font-weight: 600;
}

.cover-hero {
  display: grid;
  grid-template-columns: minmax(430px, 0.86fr) minmax(620px, 1.14fr);
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  min-height: clamp(520px, 56vh, 610px);
  padding: 28px 0 24px;
}

.cover-copy {
  position: relative;
  z-index: 3;
  padding-left: clamp(0px, 2vw, 26px);
}

.cover-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #1082b7;
  font-size: 12px;
  font-weight: 800;
}

.cover-kicker > span {
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-green));
}

.cover-copy h1 {
  display: grid;
  margin: 0;
  color: #0e2d3d;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(48px, 4.35vw, 68px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.cover-copy h1 span {
  margin-bottom: 7px;
  color: #315463;
  font-size: 0.7em;
  font-weight: 700;
}

.cover-copy h1 strong {
  position: relative;
  width: fit-content;
  color: #087db5;
  font: inherit;
}

.cover-copy h1 strong::after {
  position: absolute;
  left: 2px;
  right: 0;
  bottom: -10px;
  height: 7px;
  background: linear-gradient(90deg, rgba(22, 199, 217, 0.58), rgba(149, 193, 31, 0.44), transparent);
  border-radius: 99px;
  content: "";
}

.cover-description {
  max-width: 610px;
  margin: 30px 0 0;
  color: #4f6b79;
  font-size: 15px;
  line-height: 1.85;
  text-wrap: pretty;
}

.cover-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
}

.cover-primary,
.cover-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 19px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.cover-primary {
  color: #fff;
  background: linear-gradient(100deg, #0085cc 0%, #08a5d7 62%, #16c7d9 100%);
  border: 1px solid rgba(0, 111, 170, 0.22);
  box-shadow: 0 12px 26px rgba(0, 133, 204, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cover-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 133, 204, 0.26);
}

.cover-primary svg,
.cover-secondary svg {
  width: 17px;
  height: 17px;
}

.cover-secondary {
  color: #355462;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 94, 117, 0.16);
  transition: background 160ms ease, border-color 160ms ease;
}

.cover-secondary:hover {
  background: #fff;
  border-color: rgba(33, 94, 117, 0.28);
}

.cover-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: #5c7783;
  font-size: 11px;
}

.cover-assurances span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cover-assurances svg {
  width: 14px;
  height: 14px;
  color: #0b96bf;
}

.cover-visual {
  position: relative;
  z-index: 2;
  min-height: 500px;
}

.cover-atmosphere {
  position: absolute;
  right: -13%;
  bottom: -4%;
  z-index: 0;
  width: 116%;
  max-width: none;
  opacity: 0.5;
  filter: saturate(0.92) contrast(0.98);
  clip-path: inset(5% 0 0 18%);
  pointer-events: none;
}

.cover-window {
  position: absolute;
  top: 5%;
  left: 2%;
  z-index: 2;
  width: 97%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(19, 99, 130, 0.18);
  border-radius: 10px;
  box-shadow:
    0 34px 80px rgba(13, 88, 118, 0.16),
    0 8px 25px rgba(13, 88, 118, 0.08);
  transform: rotate(-1.25deg);
  transform-origin: 50% 80%;
  animation: cover-window-in 700ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.cover-window-bar {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  height: 39px;
  padding: 0 14px;
  color: #58707c;
  background: rgba(250, 253, 254, 0.98);
  border-bottom: 1px solid #e5edf1;
  font-size: 10px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7a45;
}

.window-dots i:nth-child(2) {
  background: #f3b72d;
}

.window-dots i:nth-child(3) {
  background: #95c11f;
}

.window-title {
  overflow: hidden;
  color: #294857;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #527065;
  white-space: nowrap;
}

.window-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(149, 193, 31, 0.12);
}

.cover-window-screen {
  overflow: hidden;
  aspect-ratio: 16 / 9.7;
  background: #f4f9fb;
}

.cover-window-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.cover-float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(19, 99, 130, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16, 90, 117, 0.15);
  backdrop-filter: blur(14px);
  animation: cover-float-in 620ms 260ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.guard-card {
  top: 11%;
  left: -4%;
  width: 252px;
}

.report-card {
  right: -2%;
  bottom: 8%;
  width: 300px;
}

.float-icon,
.report-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.float-icon {
  color: #087c56;
  background: #eef9ee;
}

.report-mark {
  color: #0878aa;
  background: #eaf8fe;
}

.float-icon svg,
.report-mark svg {
  width: 19px;
  height: 19px;
}

.float-copy {
  display: grid;
  min-width: 0;
  line-height: 1.35;
}

.float-copy small {
  color: #7b8d96;
  font-size: 9px;
  font-weight: 800;
}

.float-copy strong {
  overflow: hidden;
  color: #203d4c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.float-copy em {
  color: #6c818b;
  font-size: 9px;
  font-style: normal;
}

.report-ready {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 7px;
  color: #557b18;
  background: #f2f9e5;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.cover-directory {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(21, 91, 121, 0.12);
}

.directory-heading {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(21, 91, 121, 0.1);
}

.directory-heading p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #65808c;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.directory-heading p span {
  width: 18px;
  height: 2px;
  background: var(--brand-cyan);
  border-radius: 2px;
}

.directory-heading h2 {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #173b4a;
  font-size: clamp(19px, 1.55vw, 23px);
  font-weight: 900;
  line-height: 1.5;
  text-align: left;
  text-wrap: balance;
}

.directory-chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.directory-chain::before {
  position: absolute;
  top: 31px;
  left: 2%;
  right: 2%;
  height: 1px;
  background: linear-gradient(90deg, #16c7d9, #95c11f 36%, #ff9f63 68%, #0085cc);
  content: "";
  opacity: 0.42;
}

.directory-step {
  --step-color: #0085cc;
  --step-soft: #eaf7fd;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  min-height: 108px;
  padding: 23px 13px 13px;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 99, 124, 0.13);
  border-top: 3px solid var(--step-color);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.directory-step:hover {
  z-index: 2;
  background: #fff;
  box-shadow: 0 14px 32px rgba(14, 88, 116, 0.12);
  transform: translateY(-3px);
}

.step-security {
  --step-color: #95c11f;
  --step-soft: #f2f8e5;
}

.step-todos {
  --step-color: #ff8b52;
  --step-soft: #fff2ea;
}

.step-report {
  --step-color: #16b4cf;
  --step-soft: #eafafc;
}

.step-index {
  position: absolute;
  top: 9px;
  left: 14px;
  color: var(--step-color);
  font-family: "Bahnschrift", sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--step-color);
  background: var(--step-soft);
  border-radius: 8px;
}

.step-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}

.step-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.step-copy strong {
  color: #203f4e;
  font-size: 14px;
  line-height: 1.35;
}

.step-copy small {
  overflow: hidden;
  color: #748791;
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-arrow {
  width: 16px;
  height: 16px;
  color: #92a2aa;
  transition: color 140ms ease, transform 140ms ease;
}

.directory-step:hover .step-arrow {
  color: var(--step-color);
  transform: translate(2px, -2px);
}

@keyframes cover-window-in {
  from {
    opacity: 0;
    transform: translateY(20px) rotate(-1.25deg) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-1.25deg) scale(1);
  }
}

@keyframes cover-float-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 14px 16px;
  background: rgba(255, 255, 255, 0.97);
  border-right: 1px solid var(--border);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 9px 15px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 145px;
  height: auto;
}

.brand-copy {
  display: none;
}

.side-nav {
  display: grid;
  gap: 5px;
  margin-top: 14px;
}

.nav-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #536975;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.nav-item:hover {
  color: var(--ink);
  background: #f4f8fa;
}

.nav-item.active {
  color: var(--brand-deep);
  background: var(--blue-soft);
  border-color: #cce8f3;
  font-weight: 700;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}

.nav-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: #5a6b75;
  background: #edf2f4;
  border-radius: 999px;
  font-family: "Bahnschrift", sans-serif;
  font-size: 11px;
  line-height: 22px;
  text-align: center;
}

.nav-item.active .nav-count {
  color: #fff;
  background: var(--brand);
}

.sidebar-footer {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.runtime-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  background: var(--green-soft);
  border: 1px solid #dfe9c8;
  border-radius: 7px;
}

.runtime-badge > span:last-child {
  display: grid;
  line-height: 1.35;
}

.runtime-badge strong {
  font-size: 12px;
}

.runtime-badge small {
  color: #687358;
  font-size: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(149, 193, 31, 0.14);
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--ink);
  background: #f4f8fa;
}

.text-button svg {
  width: 15px;
  height: 15px;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding: 10px 26px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.mobile-brand {
  display: none;
}

.topbar-title {
  display: grid;
  min-width: 0;
  line-height: 1.35;
}

.topbar-title span {
  font-size: 14px;
  font-weight: 700;
}

.topbar-title small {
  color: var(--muted);
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #536d5a;
  background: var(--green-soft);
  border: 1px solid #dfe9c8;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.save-state span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.icon-button:hover {
  background: #f7fafb;
  border-color: var(--border-strong);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, background 140ms ease, border-color 140ms ease;
}

.button:hover {
  background: #f7fafb;
  border-color: #adc0c9;
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  color: #94a2aa;
  background: #f2f5f6;
  border-color: #e1e8eb;
  cursor: not-allowed;
}

.button.primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.button.primary:hover {
  background: #0078b9;
  border-color: #0078b9;
}

.button.primary:disabled {
  color: #fff;
  background: #9ccce2;
  border-color: #9ccce2;
}

.button.danger-outline {
  color: var(--red);
  background: #fff8f8;
  border-color: #ecc5ca;
}

.button.danger-outline:hover {
  color: #a92f3c;
  background: #fff1f2;
  border-color: #dda8af;
}

.button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.danger-button {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.danger-button:hover {
  color: #fff;
  background: #a9303d;
  border-color: #a9303d;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 2px;
  color: #fff;
  background: var(--brand-deep);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

main {
  width: min(1560px, 100%);
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 26px;
}

.view {
  display: none;
  animation: view-in 220ms ease both;
}

.view.active {
  display: block;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 5px;
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-cyan);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(25px, 2.4vw, 35px);
  line-height: 1.25;
  letter-spacing: 0;
}

.page-description {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.ai-window-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 22px;
  margin-bottom: 16px;
  padding: 16px 18px 13px;
  background:
    radial-gradient(circle at 5% 15%, rgba(22, 199, 217, 0.12), transparent 30%),
    linear-gradient(115deg, #f7fcff 0%, #f8fcf4 100%);
  border: 1px solid #d4e9f2;
  border-radius: var(--radius);
}

.ai-window-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ai-window-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #087da9;
  background: #fff;
  border: 1px solid #cce7f1;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(0, 115, 156, 0.08);
}

.ai-window-icon svg {
  width: 21px;
  height: 21px;
}

.ai-window-intro p {
  margin: 0;
  color: #1185b8;
  font-family: "Bahnschrift", sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.ai-window-intro h2 {
  margin: 1px 0 2px;
  color: #173d4e;
  font-size: 16px;
  line-height: 1.35;
}

.ai-window-intro > div > span {
  display: block;
  overflow: hidden;
  color: #647985;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-window-control {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.ai-window-control label {
  display: grid;
  gap: 4px;
  color: #6b7f89;
  font-size: 9px;
  font-weight: 700;
}

.ai-window-control select {
  min-width: 132px;
  height: 42px;
  padding: 0 30px 0 11px;
  color: #284957;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cbdde5;
  border-radius: 6px;
}

.ai-window-status {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  color: #71848e;
  border-top: 1px solid rgba(27, 103, 132, 0.09);
  font-size: 10px;
}

.ai-window-status span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-window-status span::before {
  width: 5px;
  height: 5px;
  background: var(--brand-cyan);
  border-radius: 50%;
  content: "";
}

.button.busy {
  pointer-events: none;
  opacity: 0.78;
}

.button.busy svg {
  animation: button-spin 800ms linear infinite;
}

.save-state.online {
  color: #416b58;
  background: #edf8ef;
}

.save-state.offline {
  color: #8a622d;
  background: #fff7e9;
  border-color: #f0dfbf;
}

.save-state.offline span:first-child {
  background: #f0a53b;
}

.save-state.syncing span:first-child {
  background: var(--brand-cyan);
  animation: status-pulse 1.2s ease-in-out infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes status-pulse {
  50% {
    opacity: 0.35;
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  position: relative;
  min-height: 126px;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(24, 62, 82, 0.03);
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 108px;
  height: 108px;
  border: 18px solid rgba(0, 133, 204, 0.06);
  border-radius: 50%;
}

.stat-card.green::after {
  border-color: rgba(149, 193, 31, 0.1);
}

.stat-card.orange::after {
  border-color: rgba(255, 122, 69, 0.09);
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.stat-label svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.stat-card.green .stat-label svg {
  color: #759713;
}

.stat-card.orange .stat-label svg {
  color: var(--brand-orange);
}

.stat-value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
  font-family: "Bahnschrift", "DIN Alternate", "Microsoft YaHei UI", sans-serif;
  font-size: 37px;
  line-height: 1;
  letter-spacing: 0;
}

.stat-value small {
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 11px;
  color: var(--muted);
}

.stat-note {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.78fr);
  gap: 15px;
  align-items: start;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
  gap: 15px;
  margin-top: 15px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 19px 13px;
}

.panel-header h2,
.side-panel h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.panel-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.text-link svg {
  width: 14px;
  height: 14px;
}

.task-list {
  border-top: 1px solid var(--border);
}

.task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 13px 19px;
  border-bottom: 1px solid #edf2f4;
  transition: background 140ms ease;
}

.task-row:last-child {
  border-bottom: 0;
}

.task-row:hover {
  background: #fafcfd;
}

.task-list.compact .task-row {
  min-height: 74px;
}

.task-check {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  color: #fff;
  border: 1.5px solid #aabcc5;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.task-check svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  stroke-width: 3;
}

.task-row.completed .task-check {
  background: var(--brand-green);
  border-color: var(--brand-green);
}

.task-row.completed .task-check svg {
  opacity: 1;
}

.task-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.task-title span:last-child {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.task-detail {
  margin: 4px 0 0;
  color: #3f4f59;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.task-row.completed .task-title {
  color: #849098;
  text-decoration: line-through;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.task-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.task-meta svg {
  width: 12px;
  height: 12px;
}

.task-due {
  min-width: 68px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.task-due strong {
  display: block;
  color: var(--ink);
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.task-due.overdue strong {
  color: var(--red);
}

.priority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
}

.priority::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.priority.high {
  color: var(--red);
}

.priority.high::before {
  background: var(--red);
}

.priority.medium {
  color: var(--orange);
}

.priority.medium::before {
  background: var(--orange);
}

.priority.low {
  color: #628100;
}

.priority.low::before {
  background: var(--brand-green);
}

.pipeline {
  padding: 2px 19px 9px;
}

.pipeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 65px;
  padding: 8px 0;
}

.pipeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 49px;
  width: 1px;
  height: 32px;
  background: #d6e3e9;
}

.pipeline-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--brand);
  background: var(--blue-soft);
  border: 1px solid #cce7f3;
  border-radius: 50%;
}

.pipeline-step:nth-child(2) .pipeline-icon {
  color: #658500;
  background: var(--green-soft);
  border-color: #dce8bd;
}

.pipeline-step:nth-child(3) .pipeline-icon {
  color: #078e9d;
  background: #e8fafb;
  border-color: #c5eff2;
}

.pipeline-step:nth-child(4) .pipeline-icon {
  color: #c25a30;
  background: var(--orange-soft);
  border-color: #f4d8ca;
}

.pipeline-icon svg {
  width: 16px;
  height: 16px;
}

.pipeline-copy {
  min-width: 0;
}

.pipeline-copy strong {
  display: block;
  font-size: 12px;
}

.pipeline-copy span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-count {
  font-family: "Bahnschrift", sans-serif;
  font-size: 19px;
  font-weight: 600;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 1px 19px 18px;
  padding: 11px 12px;
  color: #4e644d;
  background: var(--green-soft);
  border: 1px solid #dfe9c8;
  border-radius: 6px;
}

.privacy-note svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}

.privacy-note div {
  display: grid;
  line-height: 1.45;
}

.privacy-note strong {
  color: #3f543f;
  font-size: 11px;
}

.privacy-note span {
  margin-top: 2px;
  font-size: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.good {
  color: #557400;
  background: var(--green-soft);
}

.status-pill.warning {
  color: #985200;
  background: var(--orange-soft);
}

.status-pill.danger {
  color: #9d2d39;
  background: #fff0f1;
}

.status-pill.neutral {
  color: #526570;
  background: #edf3f5;
}

.status-pill span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.report-preview-panel {
  min-height: 299px;
}

.report-preview {
  padding: 0 19px 19px;
}

.mini-report {
  padding: 16px 17px;
  background: #fbfdfe;
  border: 1px solid #e3eaee;
  border-radius: 6px;
}

.mini-report-kicker {
  color: var(--brand);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.mini-report h3 {
  margin: 4px 0 12px;
  font-size: 17px;
}

.mini-report h4 {
  margin: 11px 0 5px;
  font-size: 11px;
}

.mini-report ul {
  margin: 0;
  padding-left: 17px;
  color: #44545e;
  font-size: 11px;
}

.mini-report li {
  margin: 3px 0;
}

.mini-report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 10px;
  color: var(--muted);
  border-top: 1px solid #e7edf0;
  font-size: 9px;
}

.source-bars {
  padding: 2px 19px 19px;
}

.source-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}

.source-row span:first-child {
  font-size: 11px;
  font-weight: 700;
}

.bar-track {
  height: 7px;
  background: #edf3f5;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.source-row:nth-child(2) .bar-fill {
  background: var(--brand-cyan);
}

.source-row:nth-child(3) .bar-fill {
  background: var(--brand-green);
}

.source-row:nth-child(4) .bar-fill {
  background: var(--brand-orange);
}

.source-row strong {
  color: var(--muted);
  font-family: "Bahnschrift", sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 12px 14px;
  box-shadow: none;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter {
  min-height: 33px;
  padding: 0 11px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
}

.filter.active {
  color: var(--brand-deep);
  background: var(--blue-soft);
  border-color: #c9e7f3;
  font-weight: 700;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: min(310px, 100%);
}

.search-field svg {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 39px;
  padding: 0 12px 0 34px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.toolbar-summary {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.event-panel,
.todo-panel {
  box-shadow: 0 4px 16px rgba(24, 62, 82, 0.04);
}

.event-table-wrap,
.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid #edf2f4;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  background: #f8fafb;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.stream-primary {
  display: grid;
  gap: 4px;
  min-width: 240px;
  max-width: 620px;
}

.stream-primary strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.stream-primary span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.value-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 0 8px;
  color: var(--brand-deep);
  background: var(--blue-soft);
  border: 1px solid #cce8f3;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.value-category.risk {
  color: var(--red);
  background: #fff4f5;
  border-color: #f0ccd0;
}

.value-category.progress {
  color: #477b00;
  background: var(--green-soft);
  border-color: #dbe9b6;
}

.value-category.notice {
  color: var(--orange);
  background: var(--orange-soft);
  border-color: #f4d8c6;
}

.data-table td {
  color: #3e505b;
}

.data-table td:nth-child(3) {
  min-width: 260px;
  color: var(--ink);
}

.data-table tbody tr:hover {
  background: #fbfdfe;
}

.empty-state {
  display: none;
  padding: 44px 20px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.todo-panel .task-row {
  min-height: 86px;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.68fr);
  gap: 15px;
  align-items: start;
}

.report-document {
  min-height: 720px;
  padding: 27px clamp(22px, 4vw, 52px) 38px;
}

.report-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.report-header h2 {
  margin: 5px 0 7px;
  font-size: 26px;
}

.report-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
}

.report-section h3 {
  margin: 23px 0 8px;
  font-size: 15px;
}

.report-section:first-of-type h3 {
  margin-top: 0;
}

.report-section p,
.report-section li {
  color: #3f4f59;
  font-size: 12px;
  line-height: 1.8;
}

.report-section p {
  margin: 8px 0;
}

.report-section ul {
  margin: 8px 0;
  padding-left: 19px;
}

.report-stale {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  color: #9a5500;
  background: var(--orange-soft);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.report-side {
  display: grid;
  gap: 14px;
}

.side-panel {
  padding: 17px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.evidence-list {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 0;
  color: #4b5e68;
  border-bottom: 1px solid #edf2f4;
  font-size: 11px;
}

.evidence-list li:last-child {
  border-bottom: 0;
}

.evidence-list svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: #67870b;
}

.privacy-score {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 12px;
  background: var(--green-soft);
  border: 1px solid #dfe9c8;
  border-radius: 6px;
}

.score-ring {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  background: conic-gradient(var(--brand-green) 0 100%, #dfe8cb 100%);
  border-radius: 50%;
}

.score-ring::before {
  content: "100";
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  color: #4d640e;
  background: #fff;
  border-radius: 50%;
  font-family: "Bahnschrift", sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.score-copy {
  display: grid;
  line-height: 1.45;
}

.score-copy strong {
  font-size: 12px;
}

.score-copy span {
  color: var(--muted);
  font-size: 10px;
}

.security-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}

.security-stat {
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.security-stat span {
  color: var(--muted);
  font-size: 11px;
}

.security-stat strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 7px;
  font-family: "Bahnschrift", sans-serif;
  font-size: 30px;
  line-height: 1;
}

.security-stat strong small {
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 10px;
  color: var(--muted);
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(290px, 0.68fr);
  gap: 15px;
  align-items: start;
}

.policy-panel {
  padding-bottom: 8px;
}

.policy-list {
  margin: 0;
  padding: 0 18px;
  list-style: none;
}

.policy-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f4;
}

.policy-list li:last-child {
  border-bottom: 0;
}

.policy-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.policy-icon.blue {
  color: var(--brand);
  background: var(--blue-soft);
}

.policy-icon.green {
  color: #688800;
  background: var(--green-soft);
}

.policy-icon.orange {
  color: var(--brand-orange);
  background: var(--orange-soft);
}

.policy-icon.cyan {
  color: #078e9d;
  background: #e8fafb;
}

.policy-icon svg {
  width: 15px;
  height: 15px;
}

.policy-list li > div {
  display: grid;
  line-height: 1.4;
}

.policy-list strong {
  font-size: 11px;
}

.policy-list div span {
  color: var(--muted);
  font-size: 9px;
}

.locked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5f770f;
  font-size: 9px;
  font-weight: 700;
}

.locked svg {
  width: 12px;
  height: 12px;
}

.app-footnote {
  margin: 20px 0 0;
  color: #8a99a2;
  font-size: 9px;
  text-align: right;
}

.mobile-nav {
  display: none;
}

dialog {
  width: 100%;
  max-width: 590px;
  padding: 0;
  border: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(20, 38, 52, 0.45);
  backdrop-filter: blur(4px);
}

.confirm-dialog {
  max-width: 430px;
}

.dialog-card {
  padding: 22px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(20, 38, 52, 0.24);
}

.dialog-card.small {
  padding-bottom: 18px;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.dialog-header h2 {
  margin: 0;
  font-size: 21px;
}

.sample-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sample-chip {
  min-height: 32px;
  padding: 0 10px;
  color: #4d6470;
  background: #f6f9fa;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10px;
  cursor: pointer;
}

.sample-chip:hover {
  color: var(--brand-deep);
  background: var(--blue-soft);
  border-color: #c9e7f3;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
}

.field > span {
  color: #3d505b;
  font-size: 11px;
  font-weight: 700;
}

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.field input[type="text"] {
  min-height: 42px;
  padding: 0 11px;
}

.field select {
  min-height: 42px;
  padding: 0 11px;
}

.field textarea {
  padding: 10px 11px;
  line-height: 1.6;
  resize: vertical;
}

.privacy-preview {
  min-height: 88px;
  margin: 5px 0 15px;
  padding: 12px;
  background: #f7fafb;
  border: 1px dashed var(--border-strong);
  border-radius: 7px;
}

.privacy-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 62px;
  color: #809099;
  font-size: 11px;
}

.privacy-preview-empty svg {
  width: 17px;
  height: 17px;
}

.preview-result {
  display: grid;
  gap: 8px;
}

.preview-headline {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
}

.preview-headline svg {
  width: 15px;
  height: 15px;
}

.preview-headline.safe {
  color: #5b7900;
}

.preview-headline.masked {
  color: #9a5500;
}

.preview-headline.blocked {
  color: var(--red);
}

.preview-text {
  padding: 9px 10px;
  color: #40535e;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.55;
  word-break: break-word;
}

.finding-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.finding-chip {
  padding: 3px 7px;
  color: #526872;
  background: #edf3f5;
  border-radius: 999px;
  font-size: 9px;
}

.finding-chip.blocked {
  color: #9d2d39;
  background: #fff0f1;
}

.finding-chip.masked {
  color: #925000;
  background: var(--orange-soft);
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 5px;
}

.confirm-copy {
  margin: 0 0 16px;
  color: #536975;
  font-size: 12px;
  line-height: 1.7;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(390px, calc(100vw - 32px));
  padding: 11px 14px;
  color: #fff;
  background: #263844;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(20, 38, 52, 0.24);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  font-size: 11px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .brand-logo {
    width: 132px;
  }

  .overview-grid,
  .lower-grid,
  .report-layout,
  .security-layout {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-hero {
    grid-template-columns: minmax(390px, 0.88fr) minmax(530px, 1.12fr);
    gap: 20px;
  }

  .cover-copy h1 {
    font-size: clamp(46px, 4.35vw, 59px);
  }

  .cover-visual {
    min-height: 470px;
  }

  .guard-card {
    left: -1%;
    width: 230px;
  }

  .report-card {
    right: 0;
    width: 272px;
  }

  .step-copy small {
    white-space: normal;
  }
}

@media (max-width: 1080px) {
  .cover-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding-top: 38px;
  }

  .cover-copy {
    max-width: 780px;
    padding-left: 0;
  }

  .cover-copy h1 {
    font-size: clamp(46px, 6.6vw, 64px);
  }

  .cover-description {
    max-width: 720px;
  }

  .cover-visual {
    width: min(880px, 100%);
    min-height: 520px;
    margin: 10px auto 0;
  }

  .guard-card {
    left: 1%;
  }

  .report-card {
    right: 1%;
  }

  .cover-directory {
    padding-top: 22px;
  }

  .directory-heading {
    align-items: flex-start;
    gap: 8px;
  }

  .directory-heading h2 {
    font-size: 19px;
    text-align: left;
  }

  .directory-chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-chain::before {
    display: none;
  }
}

@media (max-width: 920px) {
  .app-shell {
    display: block;
    padding-bottom: 68px;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    min-height: 64px;
    padding: 9px 14px;
  }

  .mobile-brand {
    display: block;
  }

  .mobile-brand img {
    width: 126px;
    height: auto;
  }

  .topbar-title {
    display: none;
  }

  .save-state {
    display: none;
  }

  main {
    padding: 18px 14px 24px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .heading-actions {
    justify-content: flex-start;
  }

  .ai-window-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-window-control {
    justify-content: flex-start;
  }

  .report-side {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 8px max(8px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(16px);
  }

  .mobile-nav button {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 48px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: #75868f;
    font-size: 9px;
    cursor: pointer;
  }

  .mobile-nav button.active {
    color: var(--brand-deep);
    font-weight: 700;
  }

  .mobile-nav svg {
    width: 18px;
    height: 18px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .toast {
    bottom: 82px;
  }

  .mvp-cover {
    padding-inline: clamp(20px, 4vw, 34px);
  }

  .cover-header {
    min-height: 80px;
  }

  .cover-hero {
    padding-top: 30px;
  }

  .cover-visual {
    min-height: 470px;
  }
}

@media (max-width: 640px) {
  .topbar-actions .button span {
    display: none;
  }

  .topbar-actions .button {
    width: 40px;
    padding: 0;
  }

  .avatar {
    display: none;
  }

  .stat-grid {
    gap: 9px;
  }

  .stat-card {
    min-height: 112px;
    padding: 14px;
  }

  .stat-value {
    font-size: 30px;
  }

  .panel-header {
    padding: 15px 14px 12px;
  }

  .task-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 13px 14px;
  }

  .task-due {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }

  .task-due strong {
    display: inline;
    margin-right: 4px;
    font-size: 11px;
  }

  .task-title span:last-child {
    white-space: normal;
  }

  .pipeline,
  .source-bars,
  .report-preview {
    padding-left: 14px;
    padding-right: 14px;
  }

  .privacy-note {
    margin-left: 14px;
    margin-right: 14px;
  }

  .security-stat-grid {
    grid-template-columns: 1fr;
  }

  .report-document {
    padding: 20px 16px 28px;
  }

  .report-header h2 {
    font-size: 22px;
  }

  .dialog-card {
    padding: 18px;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dialog-actions .button {
    width: 100%;
  }

  .mvp-cover {
    padding-inline: 16px;
  }

  .mvp-cover::before {
    background-size: 28px 28px;
  }

  .cover-header {
    min-height: 72px;
    gap: 12px;
  }

  .cover-brand {
    gap: 0;
  }

  .cover-brand img {
    width: 142px;
  }

  .cover-brand-divider,
  .cover-brand-name {
    display: none;
  }

  .cover-meta {
    gap: 0;
    font-size: 9px;
  }

  .cover-version {
    display: none;
  }

  .cover-hero {
    gap: 4px;
    padding: 25px 0 18px;
  }

  .cover-kicker {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .cover-kicker > span {
    width: 22px;
  }

  .cover-copy h1 {
    font-size: clamp(36px, 10.4vw, 42px);
    line-height: 1.09;
  }

  .cover-copy h1 span {
    margin-bottom: 5px;
  }

  .cover-copy h1 strong::after {
    bottom: -7px;
    height: 5px;
  }

  .cover-description {
    margin-top: 23px;
    font-size: 13px;
    line-height: 1.75;
  }

  .cover-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    margin-top: 21px;
  }

  .cover-primary,
  .cover-secondary {
    width: 100%;
    min-height: 46px;
  }

  .cover-assurances {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 10px;
    margin-top: 18px;
    font-size: 10px;
  }

  .cover-visual {
    min-height: 330px;
    margin-top: 18px;
  }

  .cover-atmosphere {
    right: -20%;
    bottom: -2%;
    width: 135%;
    opacity: 0.38;
  }

  .cover-window {
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 8px;
    transform: rotate(-0.7deg);
  }

  .cover-window-bar {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 8px;
    height: 32px;
    padding-inline: 10px;
    font-size: 8px;
  }

  .window-dots i {
    width: 6px;
    height: 6px;
  }

  .cover-window-screen {
    aspect-ratio: 16 / 10;
  }

  .guard-card {
    top: auto;
    left: 9px;
    bottom: -16px;
    width: 228px;
    padding: 10px 11px;
  }

  .report-card {
    display: none;
  }

  .float-icon {
    width: 34px;
    height: 34px;
  }

  .cover-directory {
    padding: 27px 0 22px;
  }

  .ai-window-panel {
    gap: 12px;
    padding: 14px;
  }

  .ai-window-intro {
    align-items: flex-start;
  }

  .ai-window-intro > div > span {
    white-space: normal;
  }

  .ai-window-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .ai-window-control select {
    width: 100%;
    min-width: 0;
  }

  .ai-window-control .button {
    min-width: 112px;
  }

  .ai-window-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .directory-heading h2 {
    font-size: 16px;
    line-height: 1.55;
  }

  .directory-chain {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-top: 3px;
  }

  .directory-chain::before {
    top: 18px;
    bottom: 18px;
    left: 20px;
    display: block;
    width: 1px;
    height: auto;
    background: linear-gradient(#16c7d9, #95c11f 36%, #ff9f63 68%, #0085cc);
  }

  .directory-step {
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    min-height: 88px;
    padding: 17px 12px 12px 14px;
  }

  .step-index {
    top: 6px;
  }

  .step-icon {
    width: 40px;
    height: 40px;
  }

  .step-copy small {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  #view-inbox .event-panel {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  #view-inbox .event-table-wrap {
    overflow: visible;
  }

  #view-inbox .data-table,
  #view-inbox .data-table tbody {
    display: block;
  }

  #view-inbox .data-table thead {
    display: none;
  }

  #view-inbox .data-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    margin-bottom: 10px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(24, 62, 82, 0.04);
  }

  #view-inbox .data-table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  #view-inbox .data-table td:nth-child(1) {
    color: var(--muted);
    font-size: 10px;
  }

  #view-inbox .data-table td:nth-child(2) {
    color: var(--brand-deep);
    font-size: 10px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
  }

  #view-inbox .data-table td:nth-child(3) {
    grid-column: 1 / -1;
    min-width: 0;
  }

  #view-inbox .data-table td:nth-child(4) {
    align-self: center;
  }

  #view-inbox .data-table td:nth-child(5) {
    align-self: center;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #view-inbox .data-table td:nth-child(5)::before {
    content: "待办：";
    color: #8999a2;
  }

  #view-inbox .stream-primary {
    min-width: 0;
    max-width: none;
  }

  #view-inbox .stream-primary strong {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* V0.3 profile, read center, grouping and weekly report additions */
.v03-panel { margin-top: 18px; }
.v03-toolbar, .v03-form-actions, .v03-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.v03-read-list { display: grid; gap: 12px; }
.v03-read-card { display: flex; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid var(--line, #e7e9ee); border-radius: 14px; background: var(--surface, #fff); }
.v03-read-card.pending_confirmation { border-color: #f2c56b; background: #fffaf0; }
.v03-read-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v03-read-copy { min-width: 0; flex: 1; }
.v03-read-copy p { margin: 8px 0; color: var(--text-secondary, #667085); line-height: 1.6; }
.v03-read-copy small, .v03-group small, .v03-todo-card small, .v03-preview-row small { display: block; color: var(--text-secondary, #667085); line-height: 1.5; }
.v03-read-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v03-group { border: 1px solid var(--line, #e7e9ee); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.v03-group > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: #f8fafc; }
.v03-group > header strong { display: block; font-size: 15px; }
.v03-group > header > span { color: var(--text-secondary, #667085); font-size: 12px; }
.v03-group-items { display: grid; gap: 1px; background: var(--line, #e7e9ee); }
.v03-todo-card { display: grid; grid-template-columns: 28px minmax(0, 1fr) 100px 130px; align-items: center; gap: 12px; padding: 13px 16px; background: #fff; }
.v03-order { color: var(--text-secondary, #667085); font-variant-numeric: tabular-nums; }
.v03-todo-main strong { display: block; }
.v03-todo-card label { font-size: 12px; color: var(--text-secondary, #667085); }
.v03-todo-card input { width: 64px; margin-left: 6px; }
.v03-group-empty { padding: 16px; color: var(--text-secondary, #667085); background: #fff; }
.v03-feedback { min-height: 24px; color: #557400; font-size: 12px; }
.v03-feedback.error { color: var(--red); }
.v03-preview-heading { margin-bottom: 4px; }
.v03-preview-heading h2 { margin: 0; font-size: 15px; }
.v03-preview-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf2f4; }
.v03-preview-row > div { min-width: 0; }
.v03-preview-row strong { display: block; font-size: 13px; }
.v03-preview-row select { max-width: 148px; min-height: 34px; padding: 0 8px; color: var(--ink); background: #fbfcfd; border: 1px solid var(--border); border-radius: 6px; }
.v03-version-list { display: grid; margin-top: 8px; }
.v03-version-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf2f4; color: #4b5e68; font-size: 12px; }
.v03-version-row:last-child { border-bottom: 0; }
.v03-order-actions { display: inline-flex; align-items: center; gap: 4px; }
.v03-order-actions .text-button { min-width: 24px; padding: 2px 6px; }
.profile-sheet-body { padding: 2px 19px 20px; }
.profile-block + .profile-block { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border); }
.profile-block h3 { margin: 14px 0 12px; font-size: 15px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 15px; align-items: start; }
.profile-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 2px; }
.profile-actions .v03-feedback { margin: 0 auto 0 0; }
.profile-identity { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.profile-identity .avatar { margin-left: 0; }
.profile-identity strong { display: block; font-size: 14px; }
.profile-identity .status-pill { margin-top: 4px; }
.side-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.profile-field-note { margin-top: 0; }
.weekly-overview-field textarea { min-height: 92px; }
@media (max-width: 760px) {
  .v03-read-card { display: block; }
  .v03-read-actions { margin-top: 12px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-actions { justify-content: flex-start; }
  .profile-actions .v03-feedback { margin: 0; flex-basis: 100%; }
  .v03-todo-card { grid-template-columns: 22px minmax(0, 1fr); }
  .v03-todo-card label, .v03-todo-card select { grid-column: 2; }
  .v03-preview-row { display: block; }
  .v03-preview-row select { margin-top: 8px; max-width: 100%; width: 100%; }
  .v03-version-row { align-items: flex-start; flex-direction: column; }
}

.overview-ai-strip { margin-top: 15px; }
.overview-ai-body { padding: 0 19px 16px; }
.overview-ai-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.overview-ai-list li { padding: 12px; background: var(--canvas); border-radius: var(--radius); }
.overview-ai-list span { display: block; color: var(--muted); font-size: 12px; }
.overview-ai-list strong { display: block; margin-top: 4px; color: var(--ink); font-size: 18px; }
.ai-sheet { min-height: 720px; }
.ai-command-form { padding: 0 19px 8px; }
.ai-command-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.ai-preview { padding: 0 19px 18px; }
.ai-preview-card { padding-top: 8px; border-top: 1px solid var(--border); }
.ai-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-preview-heading strong { font-size: 14px; }
.ai-preview-card p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.ai-diff-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ai-diff { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid #edf2f4; font-size: 13px; }
.ai-diff span { color: var(--brand-deep); font-size: 12px; font-weight: 700; }
.ai-diff small { display: block; color: var(--muted); }
.ai-changed { outline: 2px solid var(--brand); background: rgba(0, 133, 204, 0.08); }
.ai-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.ai-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(420px, 100%);
  height: 100%;
  padding: 22px 18px 28px;
  overflow: auto;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.ai-drawer[hidden] { display: none; }
.ai-drawer-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ai-drawer-header h2 { margin: 0; font-size: 22px; }
.mobile-sheet { display: none; }
body.cover-open .ai-fab,
body.cover-open .ai-drawer,
body.cover-open .mobile-sheet { display: none; }
@media (max-width: 920px) {
  .ai-fab { right: 16px; bottom: calc(74px + env(safe-area-inset-bottom)); }
  .overview-ai-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-sheet {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(68px + env(safe-area-inset-bottom));
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .mobile-sheet[hidden] { display: none; }
  .mobile-sheet button {
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--canvas);
    color: var(--ink);
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  .ai-sheet { min-height: 0; }
}

.todo-legacy { display: none !important; }
.toolbar { flex-wrap: wrap; }
.todo-windows { display: grid; gap: 15px; }
.todo-window .panel-header { align-items: center; justify-content: flex-start; gap: 10px; }
.todo-window .panel-header > div { min-width: 0; flex: 1; }
.todo-window .panel-header .text-button { margin-left: auto; }
.lane-name { text-align: left; }
.todo-new-group,
.todo-add { display: flex; align-items: center; gap: 8px; }
.todo-new-group input,
.todo-add input {
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.todo-new-group input { width: 148px; }
.todo-add { padding: 10px 14px 12px; }
.todo-add input { flex: 1; }
.lane-name,
.todo-title-input,
.todo-due-input {
  width: 100%;
  padding: 2px 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
}
.todo-title-input {
  display: block;
  resize: none;
  overflow: hidden;
  field-sizing: content;
  min-height: 22px;
  line-height: 1.45;
  font: inherit;
  font-size: 13px;
}
.todo-detail {
  margin: 4px 0 0;
  color: #3f4f59;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.lane-name { font-size: 15px; font-weight: 700; }
.lane-name:focus,
.todo-title-input:focus,
.todo-due-input:focus { background: var(--canvas); }
.todo-window .task-row { grid-template-columns: 18px 25px minmax(0, 1fr) minmax(108px, 168px); }
.drag-handle { color: var(--muted); letter-spacing: -1px; cursor: grab; user-select: none; }
.todo-card.is-dragging { opacity: 0.45; }
.todo-window.is-drop-target { outline: 2px solid var(--brand); outline-offset: -2px; }
.todo-edit small { display: block; color: var(--muted); font-size: 11px; }
.todo-side { display: grid; gap: 6px; justify-items: end; }
.todo-side select { min-height: 28px; padding: 0 6px; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.todo-due-input { color: var(--muted); font-size: 12px; text-align: right; }
.todo-card.completed .todo-title-input { color: #849098; text-decoration: line-through; }
.todo-card.completed .todo-detail { color: #849098; }
.todo-window-empty { padding: 16px 19px; color: var(--muted); font-size: 12px; }
.read-document { min-height: 0; }
.read-filters { margin-top: 14px; }
.read-list { display: grid; }
.read-entry { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.read-entry:last-child { border-bottom: 0; }
.read-entry-main { min-width: 0; flex: 1; }
.read-entry-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.read-entry-title h3 { margin: 0; font-size: 15px; }
.read-entry p { margin: 8px 0; color: #3f4f59; font-size: 12px; line-height: 1.8; }
.read-entry small,
.read-kept { color: var(--muted); font-size: 12px; }
.read-entry-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.read-entry.converted h3 { color: var(--muted); font-weight: 600; }
@media (max-width: 760px) {
  .todo-window .task-row { grid-template-columns: 18px 25px minmax(0, 1fr); }
  .todo-side { grid-column: 3; justify-items: start; }
  .todo-due-input { text-align: left; }
  .read-entry { display: block; }
  .read-entry-actions { justify-content: flex-start; margin-top: 10px; }
}
