:root {
  --bg: #eee8df;
  --surface: #fffaf2;
  --surface-2: #fff5ea;
  --paper: #fffdf7;
  --ink: #111a25;
  --muted: #7b746c;
  --line: #eadfd1;
  --blue: #2f78dc;
  --green: #178f80;
  --red: #f24b35;
  --amber: #f59f23;
  --violet: #7a58d8;
  --radius: 8px;
  --shadow: 0 20px 54px rgba(85, 63, 42, .16);
  font-family: "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  touch-action: manipulation;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(238,232,223,.9)),
    var(--bg);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overscroll-behavior: none;
}

button, input, select, textarea {
  font: inherit;
  touch-action: manipulation;
}

button {
  border: 0;
  cursor: pointer;
}

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

.rail {
  background: #fffaf2;
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--red);
  color: white;
  font-weight: 800;
}

.brand strong, .brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.rail-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: transparent;
  color: #46515f;
  text-align: left;
}

.nav-item.active, .nav-item:hover {
  background: #fff0e9;
  color: var(--red);
}

.nav-item svg, .bottom-item svg, .icon-btn svg, .connector-card svg, .floating-lock-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.phone-frame {
  position: relative;
  justify-self: center;
  align-self: center;
  width: min(430px, calc(100vw - 280px));
  height: min(920px, calc(100vh - 36px));
  min-height: 720px;
  background:
    radial-gradient(circle at 8% 2%, rgba(255,255,255,.92), transparent 28%),
    linear-gradient(180deg, #fffaf1 0%, #fffdf7 55%, #fffaf4 100%);
  border: 1px solid #cfc2b6;
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;
}

.statusbar {
  height: 34px;
  padding: calc(8px + env(safe-area-inset-top)) 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.statusbar div {
  display: flex;
  gap: 8px;
}

.statusbar svg {
  width: 15px;
  height: 15px;
}

.page {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 10px 18px calc(96px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

.page.active {
  display: block;
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.home-hero {
  align-items: flex-start;
  padding-top: 6px;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-brand h1 {
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: 34px;
  line-height: .98;
  font-weight: 900;
  margin-bottom: 8px;
}

.home-brand p {
  margin: 0;
  color: #68615b;
  font-size: 15px;
  letter-spacing: 0;
}

.logo-flower {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.logo-flower span {
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--red);
  border-radius: 70% 30% 70% 30%;
}

.logo-flower span:nth-child(1) { left: 9px; top: 0; transform: rotate(45deg); }
.logo-flower span:nth-child(2) { right: 0; top: 10px; transform: rotate(135deg); }
.logo-flower span:nth-child(3) { left: 9px; bottom: 0; transform: rotate(225deg); }
.logo-flower span:nth-child(4) { left: 0; top: 10px; transform: rotate(315deg); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.12;
  margin-bottom: 0;
  letter-spacing: 0;
}

h2 {
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 0;
}

h3 {
  font-size: 15px;
  line-height: 1.28;
  margin-bottom: 6px;
}

p {
  color: #53606f;
  line-height: 1.45;
  font-size: 13px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff8ef;
  color: var(--ink);
  border: 1px solid var(--line);
}

.icon-btn.plain {
  background: transparent;
  border: 0;
}

.badge-dot {
  position: relative;
}

.notification-count {
  position: absolute;
  right: 1px;
  top: 0;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 900;
}

.notification-count[hidden] {
  display: none;
}

.morning-line {
  margin: 16px 0 14px;
  font-size: 16px;
  color: #222831;
  font-weight: 700;
}

.morning-line strong {
  color: var(--red);
  font-size: 21px;
}

.risk-hero {
  min-height: 172px;
  display: grid;
  grid-template-columns: 38% 1fr;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #ead6c7;
  background:
    linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,252,246,.96) 42%),
    var(--paper);
  box-shadow: 0 12px 30px rgba(132, 81, 49, .14);
  margin-bottom: 16px;
}

.radar-art {
  position: relative;
  min-height: 172px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,0) 36%),
    repeating-linear-gradient(145deg, rgba(255,255,255,.22) 0 1px, transparent 1px 34px),
    #f6533f;
  overflow: hidden;
}

.radar-art::after {
  content: "";
  position: absolute;
  left: -18px;
  right: -28px;
  bottom: -20px;
  height: 70px;
  background: rgba(255, 235, 220, .42);
  transform: skewY(-14deg);
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
}

.r1 { width: 42px; height: 42px; }
.r2 { width: 78px; height: 78px; }
.r3 { width: 114px; height: 114px; }

.radar-sweep {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,.62);
  clip-path: polygon(0 50%, 100% 12%, 66% 74%);
  transform-origin: left center;
  transform: rotate(-22deg);
}

.risk-hero-copy {
  padding: 20px 16px 14px;
  position: relative;
}

.risk-hero-copy h2 {
  font-size: 24px;
  margin: 0 0 12px;
  padding-right: 0;
}

.risk-hero-copy p {
  margin: 0 0 7px;
  color: #1f2733;
  font-size: 14px;
  font-weight: 700;
}

.risk-hero-copy p strong {
  color: var(--red);
  font-size: 20px;
}

.priority-label {
  position: static;
  display: inline-block;
  border: 1px solid #ff9a8d;
  color: var(--red);
  border-radius: var(--radius);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-link {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  background: transparent;
  color: var(--red);
  font-weight: 900;
  padding: 0;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 16px;
}

.summary-strip div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 12px;
  min-height: 108px;
  box-shadow: 0 8px 20px rgba(116, 90, 61, .08);
  overflow: hidden;
  position: relative;
}

.summary-strip div:nth-child(1) { background: linear-gradient(160deg, #fffdf8 56%, #dbeafe 57%); border-color: #b8cdf2; }
.summary-strip div:nth-child(2) { background: linear-gradient(160deg, #fffaf5 58%, #ffe0b2 59%); border-color: #f5cf9b; }
.summary-strip div:nth-child(3) { background: linear-gradient(160deg, #fffdf8 55%, #dff3d7 56%); border-color: #c7dfbc; }

.summary-strip span, .summary-strip small {
  display: block;
}

.summary-strip span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.summary-strip strong {
  display: block;
  font-size: 23px;
  margin: 12px 0 8px;
  white-space: nowrap;
}

.up { color: var(--green); }
.down { color: var(--red); }
.warn { color: var(--amber); }

.band {
  padding: 16px 0;
  border-top: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-btn {
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
}

.risk-card, .problem-item, .approval-item, .memory-item, .report-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .92);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
}

.risk-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.risk-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.critical .risk-rank { background: var(--red); }
.warning .risk-rank { background: var(--amber); }

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

.tags span {
  border: 1px solid #d6dce5;
  border-radius: 999px;
  padding: 3px 8px;
  color: #4b5563;
  font-size: 11px;
  background: #f8fafc;
}

.connector-row {
  display: grid;
  grid-template-columns: 12px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.connector-row small, .connector-card small, .meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.status-dot.ok { background: var(--green); }
.status-dot.warn { background: var(--amber); }
.status-dot.idle { background: #98a2b3; }

.context-pills, .segmented, .report-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
}

.pill, .segmented button, .report-tabs button {
  min-height: 34px;
  white-space: nowrap;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: #485465;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
}

.pill.active, .segmented .active, .report-tabs .active {
  background: #fff1e9;
  color: var(--red);
  border-color: #ffb8aa;
}

.chat-stream {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
}

.msg {
  max-width: 92%;
  border-radius: var(--radius);
  padding: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.msg.user {
  justify-self: end;
  background: #fff0e5;
  color: var(--ink);
  border: 1px solid #f5d2bf;
}

.msg.ai {
  background: rgba(255, 253, 247, .95);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
}

.msg.compact {
  color: var(--muted);
  padding: 9px 12px;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.action-grid button, .primary-btn, .ghost-btn {
  min-height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  font-size: 13px;
}

.action-grid button {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.composer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  background: var(--surface);
  padding: 10px 0 2px;
}

.composer input, .memory-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  min-height: 42px;
  padding: 0 12px;
}

.composer button {
  border-radius: 50%;
  background: var(--red);
  color: white;
}

.problem-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 13px;
  margin-bottom: 10px;
}

.priority {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.p1 { background: var(--red); }
.p2 { background: var(--amber); }

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.problem-status-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.problem-status-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 900;
  font-size: 12px;
}

.problem-detail {
  padding: 14px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.problem-detail ol {
  padding-left: 20px;
  color: #46515f;
  font-size: 13px;
  line-height: 1.6;
}

.primary-btn {
  background: var(--red);
  color: white;
  padding: 0 14px;
  width: 100%;
}

.ghost-btn {
  background: #f2f4f7;
  color: var(--ink);
  padding: 0 14px;
  width: 100%;
}

.connector-card {
  min-height: 76px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px;
  margin-bottom: 10px;
}

.connector-card div {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 10px;
  align-items: center;
}

.connector-card small {
  grid-column: 2;
}

.connector-config-card {
  margin-bottom: 12px;
}

.connector-config-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
}

.connector-config-form label {
  display: grid;
  gap: 5px;
}

.connector-config-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.connector-config-form input,
.connector-config-form select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
}

.connector-config-form .connector-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.connector-config-form .connector-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--red);
}

.connector-helper {
  display: grid;
  gap: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.connector-safety {
  display: grid;
  gap: 5px;
  border: 1px solid #d7eadf;
  border-radius: var(--radius);
  background: #f3fbf5;
  padding: 9px 10px;
}

.connector-safety.warning {
  border-color: #ffd7b1;
  background: #fff8ed;
}

.connector-safety strong {
  color: var(--ink);
  font-size: 12px;
}

.connector-safety small {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.connector-suggestions,
.connector-inbox,
.connector-recent,
.connector-scan {
  display: grid;
  gap: 7px;
}

.connector-suggestions strong,
.connector-inbox strong,
.connector-recent strong {
  color: var(--ink);
  font-size: 12px;
}

.connector-scan {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.connector-scan button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.connector-scan small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.connector-suggestions button {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 9px 10px;
  text-align: left;
}

.connector-suggestions small,
.connector-inbox small,
.connector-recent small {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.connector-inbox div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.connector-inbox button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.pdd-run {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
  padding: 12px;
  margin-bottom: 10px;
}

.pdd-run-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pdd-run span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf7f0;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.pdd-run.warning span {
  background: #fff4de;
  color: var(--amber);
}

.pdd-run.stopped span {
  background: #f3f4f6;
  color: var(--muted);
}

.pdd-run p,
.pdd-run small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pdd-run-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.pdd-run-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.pdd-run-actions button:disabled {
  color: var(--muted);
  background: #f6f6f6;
}

.pdd-import-form {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
  padding: 12px;
}

.pdd-import-form input,
.pdd-import-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
}

.pdd-import-form textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.pdd-import-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pdd-import-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.pdd-import-preview {
  display: grid;
  gap: 8px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.pdd-import-summary {
  display: grid;
  gap: 4px;
  border-radius: var(--radius);
  padding: 10px;
  background: #f3fbf7;
  color: #2f6d4a;
}

.pdd-import-summary.warning {
  background: #fff4de;
  color: #8a5a12;
}

.pdd-import-summary span,
.pdd-import-preview small,
.pdd-import-warning {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pdd-import-samples,
.pdd-import-errors {
  display: grid;
  gap: 5px;
}

.pdd-import-samples strong,
.pdd-import-errors strong {
  font-size: 12px;
}

.pdd-run-detail small,
.pdd-run-errors small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pdd-run-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pdd-run-columns span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf2;
  color: var(--ink);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.pdd-run-samples {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.pdd-run-samples article {
  background: #fffdf8;
}

.ai-config-actions {
  display: grid;
  gap: 10px;
}

.ai-config-actions small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ready { background: #f3fbf7; }
.pending { background: #fff7ea; }
.locked { background: #f8fbf8; }

.mini-btn {
  min-width: 54px;
  height: 32px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.capability-list {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 4px 0 14px;
}

.capability-list div, .settings-list label, .route-row, .report-metric {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.capability-list div:last-child, .settings-list label:last-child, .route-row:last-child {
  border-bottom: 0;
}

.capability-list span, .route-row span {
  color: #46515f;
}

.capability-list strong, .route-row strong {
  font-size: 13px;
}

.approval-item {
  padding: 14px;
  margin-bottom: 12px;
}

.approval-triage-note {
  display: grid;
  gap: 4px;
  border: 1px solid #f9d9c8;
  border-radius: var(--radius);
  background: #fff8f1;
  padding: 9px 10px;
  margin: 10px 0;
}

.approval-triage-note strong {
  color: var(--red);
  font-size: 12px;
}

.approval-triage-note span,
.approval-triage-note small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.approval-bulk-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  padding: 12px;
  margin-bottom: 12px;
}

.approval-bulk-panel small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.approval-bulk-panel div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.approval-bulk-panel button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.approval-recommend-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #ffd2be;
  border-radius: var(--radius);
  background: #fff7ed;
  padding: 13px;
  margin-bottom: 12px;
}

.approval-recommend-card span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff0f0;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.approval-recommend-card strong,
.approval-recommend-card p,
.approval-recommend-card small {
  display: block;
  margin-top: 5px;
}

.approval-recommend-card p,
.approval-recommend-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.approval-recommend-actions {
  display: grid;
  gap: 8px;
}

.approval-recommend-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.approval-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.approval-select-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
}

.approval-select-row input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--red);
}

.approval-select-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.approval-top span {
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
}

.high .approval-top span {
  color: var(--red);
  background: #fff0f0;
}

.medium .approval-top span {
  color: var(--amber);
  background: #fff8e8;
}

.approval-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.approval-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .approval-bulk-panel,
  .approval-recommend-card,
  .approval-top {
    grid-template-columns: 1fr;
  }

  .approval-bulk-panel div:last-child {
    justify-content: stretch;
  }

  .approval-bulk-panel button {
    flex: 1 1 120px;
  }

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

  .approval-top {
    display: grid;
  }

  .approval-top span {
    width: fit-content;
  }
}

.execution-preview-step {
  display: grid;
  gap: 4px;
}

.execution-preview-step span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.execution-preview-step small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.bulk-preview-list {
  max-height: min(46vh, 420px);
  overflow: auto;
}

.bulk-preview-item {
  display: grid;
  gap: 6px;
}

.bulk-preview-item span {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff8e8;
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
}

.bulk-preview-item.high span {
  background: #fff0f0;
  color: var(--red);
}

.bulk-preview-item small,
.bulk-preview-list li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.bulk-preview-list ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.approval-teaser {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  align-items: center;
  gap: 12px;
  border: 1px solid #ffd2be;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffdf8, #fff2e9);
  padding: 12px;
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
  cursor: pointer;
}

.approval-teaser small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.completion-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
  padding: 12px;
  margin-bottom: 10px;
}

.completion-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.completion-top strong {
  display: block;
  line-height: 1.25;
}

.completion-top small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.completion-top span {
  flex: 0 0 auto;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.completion-card.done .completion-top span {
  color: var(--green);
}

.completion-card.blocked .completion-top span {
  color: var(--red);
}

.completion-progress {
  height: 8px;
  border-radius: 999px;
  background: #f1e6d8;
  overflow: hidden;
  margin: 12px 0;
}

.completion-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #f2b84b);
}

.completion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.completion-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 8px;
}

.completion-grid span,
.completion-next-list small,
.completion-next-list em {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.completion-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.completion-next-list {
  display: grid;
  gap: 8px;
}

.completion-next-list button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.completion-next-list span {
  font-weight: 900;
}

.completion-next-list small {
  grid-column: 1 / -1;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.completion-next-list em {
  font-style: normal;
  color: var(--amber);
}

.teaser-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
}

.execution-link {
  margin-bottom: 12px;
}

.execution-empty,
.execution-plan {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
  padding: 14px;
  margin-bottom: 12px;
}

.execution-plan h2 {
  margin-bottom: 8px;
}

.execution-summary {
  margin-bottom: 12px;
}

.execution-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.step-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff0e9;
  color: var(--red);
  font-weight: 900;
  font-size: 12px;
}

.execution-step h3 {
  margin-bottom: 4px;
}

.step-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.step-actions button {
  min-height: 30px;
  border-radius: var(--radius);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: #fffaf2;
  color: var(--ink);
}

.step-actions .done {
  background: #eaf7ef;
  color: var(--green);
  border-color: #b9dec7;
}

.step-actions .skipped {
  background: #f4f4f4;
  color: var(--muted);
}

.step-status {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
}

.review-metric {
  margin-top: 12px;
  padding: 10px;
  border-radius: var(--radius);
  background: #f6fbf6;
  color: #36513f;
  font-size: 13px;
  font-weight: 700;
}

.connector-action-panel {
  margin-top: 16px;
}

.connector-action-panel.compact {
  margin-top: 4px;
  margin-bottom: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.connector-action {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
  padding: 13px;
  margin-bottom: 10px;
}

.connector-action-top {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.connector-action-top span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.connector-action.done .connector-action-top span {
  color: var(--green);
}

.connector-action.cancelled .connector-action-top span {
  color: var(--muted);
}

.safety-gate {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 7px;
  align-items: start;
  margin-top: 9px;
  padding: 9px;
  border-radius: var(--radius);
  border: 1px solid #d7eadf;
  background: #f3fbf7;
  color: #2f6d4a;
  font-size: 12px;
  font-weight: 800;
}

.safety-gate svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.action-draft {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
  padding: 13px;
  margin-bottom: 10px;
}

.action-draft p {
  overflow-wrap: anywhere;
}

.draft-safety {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.draft-safety span {
  border: 1px solid #cfe5d8;
  border-radius: 999px;
  background: #f2fbf6;
  color: #2f6d4a;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.draft-detail {
  margin-top: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: #f8fbff;
  border: 1px solid #d8e3f4;
}

.draft-detail h3 {
  margin: 8px 0 4px;
  font-size: 13px;
}

.draft-detail ol {
  padding-left: 18px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
  padding: 14px;
  margin-bottom: 12px;
}

.review-card.done {
  border-color: #b7e4d6;
  background: #f3fbf8;
}

.review-card.ready {
  border-color: #f3c66d;
  background: #fffaf0;
}

.review-topline {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-topline span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.review-topline button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 900;
  font-size: 12px;
}

.review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.review-actions button {
  min-width: 78px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.review-metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  padding: 10px;
}

.review-metric-card span,
.review-metric-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.review-metric-card strong {
  display: block;
  font-size: 18px;
  margin: 6px 0;
}

.review-conclusion {
  padding: 10px;
  border-radius: var(--radius);
  background: #fff1e9;
  color: #7a2c1d;
  font-weight: 700;
  font-size: 13px;
}

.diagnosis-references {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf0;
}

.diagnosis-references small {
  display: block;
  margin-bottom: 7px;
  color: #8a4b26;
  font-size: 11px;
  font-weight: 900;
}

.diagnosis-references div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.diagnosis-references span {
  max-width: 100%;
  border-radius: 999px;
  background: white;
  border: 1px solid #ecd9bd;
  color: #5e3a1f;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
}

.diagnosis-memory-warning {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0;
  padding: 9px 10px;
  border: 1px solid #f0c7a7;
  border-radius: var(--radius);
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.diagnosis-memory-warning svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.memory-search {
  position: relative;
  margin: 4px 0 14px;
}

.memory-search svg {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.memory-search input {
  padding-left: 38px;
}

.memory-form {
  display: grid;
  gap: 10px;
  margin: 4px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
}

.memory-form[hidden] {
  display: none;
}

.memory-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.memory-form input,
.memory-form select,
.memory-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
}

.memory-form textarea {
  min-height: 86px;
  resize: vertical;
  padding-top: 10px;
}

.memory-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.memory-archive-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.memory-archive-toolbar button {
  height: 36px;
  border-radius: var(--radius);
  background: #fff8ef;
  border: 1px solid var(--line);
  color: #667085;
  font-weight: 800;
}

.memory-archive-toolbar button.active {
  color: var(--red);
  background: #fff0e9;
  border-color: #ffc7b8;
}

.memory-item {
  padding: 13px;
  margin-bottom: 10px;
}

.memory-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.memory-item-head button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #667085;
  background: #fff8ef;
  border: 1px solid var(--line);
}

.memory-item-head button svg {
  width: 16px;
  height: 16px;
}

.memory-item.important {
  border-color: #f2c77a;
  box-shadow: 0 8px 26px rgba(158, 101, 24, .12);
}

.memory-item span {
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
}

.memory-list {
  display: grid;
  gap: 10px;
}

.memory-item small {
  display: block;
  margin-top: 8px;
  color: #7b8794;
  font-size: 11px;
  font-weight: 700;
}

.report-preview {
  padding: 15px;
}

.report-preview h2 {
  margin-bottom: 12px;
}

.report-metric strong {
  font-size: 20px;
}

.settings-list {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.pin-update-form {
  display: grid;
  gap: 10px;
}

.pin-update-form input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  padding: 0 12px;
  color: var(--ink);
}

.pin-update-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.system-overall,
.system-check {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
  padding: 12px;
  margin-bottom: 10px;
}

.system-overall {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.system-overall strong {
  font-size: 18px;
}

.system-overall.ok strong,
.system-check.ok span {
  color: var(--green);
}

.system-overall.warning strong,
.system-check.warning span {
  color: var(--amber);
}

.system-overall.blocker strong,
.system-check.blocker span {
  color: var(--red);
}

.system-check div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.system-check span,
.system-check small {
  font-size: 12px;
  font-weight: 900;
}

.system-check small {
  display: block;
  margin-top: 8px;
  color: var(--blue);
}

.system-check-action {
  margin-top: 10px;
}

.attention-pulse {
  animation: attentionPulse 1.2s ease;
}

@keyframes attentionPulse {
  0%, 100% { outline: 0 solid rgba(242, 75, 53, 0); }
  35% { outline: 3px solid rgba(242, 75, 53, .35); outline-offset: 4px; }
}

.runtime-card,
.runtime-log,
.runtime-dirs article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
  padding: 12px;
}

.runtime-card {
  margin-bottom: 10px;
}

.runtime-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.runtime-card.ok .runtime-top strong,
.runtime-log.ok strong {
  color: var(--green);
}

.runtime-card.warning .runtime-top strong,
.runtime-log.warning strong {
  color: var(--amber);
}

.runtime-card.blocker .runtime-top strong {
  color: var(--red);
}

.runtime-top span,
.runtime-card small {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.runtime-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.runtime-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 8px;
}

.runtime-grid span,
.runtime-dirs span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.runtime-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}

.runtime-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.runtime-actions button {
  min-height: 32px;
  border: 1px solid #c8dcf5;
  border-radius: var(--radius);
  background: #eef6ff;
  color: var(--blue);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.runtime-dirs {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.runtime-dirs article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.runtime-log {
  margin-bottom: 10px;
}

.runtime-log pre {
  max-height: 150px;
  overflow: auto;
  white-space: pre-wrap;
  margin-top: 8px;
  color: #334155;
  font: 11px/1.45 "SFMono-Regular", Consolas, monospace;
}

.backup-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
  padding: 12px;
}

.backup-card p {
  margin-top: 5px;
}

.backup-card #backup-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.backup-card #restore-plan-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.restore-plan-head button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
}

.backup-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 9px;
}

.backup-item small,
.backup-item em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.backup-item span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.backup-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.backup-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.backup-actions button:disabled {
  color: var(--muted);
  background: #f4f6f8;
}

.backup-item.warning strong {
  color: var(--red);
}

.backup-item.ok {
  border-color: #bbf7d0;
}

.backup-item.ok em {
  color: var(--green);
}

.backup-item.blocker {
  border-color: #fecaca;
  background: #fff7f7;
}

.backup-item.blocker em {
  color: var(--red);
}

.backup-verify-list {
  gap: 10px;
}

.verify-summary,
.verify-check {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 11px;
}

.verify-summary strong,
.verify-check strong {
  display: block;
  margin-bottom: 4px;
}

.verify-check span {
  display: inline-flex;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
  background: #f4f6f8;
  color: #667085;
}

.verify-summary.ok,
.verify-check.ok {
  border-color: #bbf7d0;
}

.verify-check.ok span {
  background: #ecfdf3;
  color: var(--green);
}

.verify-summary.warning,
.verify-check.warning {
  border-color: #fed7aa;
}

.verify-check.warning span {
  background: #fff7ed;
  color: var(--amber);
}

.verify-summary.blocker,
.verify-check.blocker {
  border-color: #fecaca;
  background: #fff7f7;
}

.verify-check.blocker span {
  background: #fee2e2;
  color: var(--red);
}

.mobile-install-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
  padding: 13px;
}

.mobile-install-card p {
  margin: 6px 0 0;
}

.mobile-install-card span {
  border: 1px solid #cfe5d8;
  border-radius: 999px;
  background: #f2fbf6;
  color: #2f6d4a;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.mobile-access-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 8px 22px rgba(120, 92, 63, .08);
  padding: 13px;
  margin-top: 10px;
}

.mobile-qr {
  width: 108px;
  min-height: 108px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e3f4;
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.mobile-qr svg {
  width: 96px;
  height: 96px;
}

.mobile-qr span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mobile-url-list {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.mobile-url-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.mobile-url-list span {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 0 9px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mobile-url-list button {
  min-height: 34px;
  border-radius: var(--radius);
  background: #eef6ff;
  color: var(--blue);
  border: 1px solid #c8dcf5;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.mobile-access-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

#install-app-btn:disabled {
  color: var(--muted);
  cursor: default;
}

#refresh-app-btn:disabled {
  color: var(--muted);
  cursor: default;
}

.pwa-update-card {
  margin-top: 8px;
}

.mobile-install-guide {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f7fffd 100%);
  padding: 12px;
}

.mobile-install-guide-head {
  display: grid;
  gap: 4px;
}

.mobile-install-guide-head small {
  color: var(--muted);
  line-height: 1.45;
}

.mobile-install-steps {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.mobile-install-steps li {
  line-height: 1.5;
}

.mobile-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mobile-install-actions button {
  flex: 1 1 140px;
}

.connection-status-card {
  margin-top: 8px;
}

.connection-status-card.offline {
  border-color: #fecaca;
  background: #fff7f7;
}

.connection-status-card.warning {
  border-color: #fed7aa;
  background: #fff8ed;
}

.connection-status-card.ok {
  border-color: #bbf7d0;
  background: #f5fff8;
}

.daily-push-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  padding: 12px;
}

.daily-push-card p {
  margin-bottom: 0;
}

.daily-push-card span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f4f6f8;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-push-card.ok {
  border-color: #bbf7d0;
  background: #f5fff8;
}

.daily-push-card.ok span {
  background: #ecfdf3;
  color: var(--green);
}

.daily-push-card.warning {
  border-color: #fed7aa;
  background: #fff8ed;
}

.daily-push-card.warning span {
  background: #fff7ed;
  color: var(--amber);
}

.daily-push-card.offline {
  border-color: #fecaca;
  background: #fff7f7;
}

.daily-push-card.offline span {
  background: #fee2e2;
  color: var(--red);
}

.settings-list input {
  width: 42px;
  height: 24px;
  accent-color: var(--blue);
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(78px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 8px 10px calc(16px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 247, .96);
  border-top: 1px solid var(--line);
}

.bottom-item {
  border-radius: var(--radius);
  background: transparent;
  color: #667085;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.bottom-item span {
  font-size: 10px;
  font-weight: 700;
}

.bottom-item.active {
  color: var(--red);
  background: transparent;
}

.floating-lock-btn {
  position: absolute;
  right: 18px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 12;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #111a25;
  box-shadow: 0 12px 28px rgba(17, 26, 37, .24);
}

.floating-lock-btn:active {
  transform: translateY(1px);
}

.access-lock {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 26, 37, .46);
  backdrop-filter: blur(10px);
}

.access-lock[hidden] {
  display: none;
}

.access-lock-card {
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  background: #fffdf7;
  box-shadow: 0 22px 70px rgba(17, 26, 37, .22);
  padding: 24px 20px 20px;
}

.access-lock-card h1 {
  font-size: 24px;
  text-align: center;
}

.access-lock-card p {
  margin-bottom: 4px;
  text-align: center;
}

.access-lock-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 0 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.access-lock-card small {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  overflow-wrap: anywhere;
}

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  border: 1px solid rgba(17, 26, 37, .12);
  border-radius: 999px;
  background: rgba(17, 26, 37, .92);
  color: white;
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 36px rgba(17, 26, 37, .2);
  transition: opacity .25s ease, transform .25s ease;
}

.toast.leaving {
  opacity: 0;
  transform: translateY(8px);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 26, 37, .44);
  backdrop-filter: blur(10px);
}

.modal-layer[hidden] {
  display: none;
}

.modal-card {
  width: min(390px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  background: #fffdf7;
  box-shadow: 0 22px 70px rgba(17, 26, 37, .22);
  padding: 16px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-list {
  display: grid;
  gap: 10px;
}

.report-export-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.report-export-grid button {
  min-height: 74px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  color: var(--ink);
  font-weight: 900;
}

.report-export-grid svg {
  width: 20px;
  height: 20px;
  color: var(--red);
}

.more-nav-list {
  display: grid;
  gap: 10px;
}

.more-nav-item {
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  color: var(--ink);
  text-align: left;
}

.more-nav-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.more-nav-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.global-search-panel {
  display: grid;
  gap: 10px;
}

.global-search-panel input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
  background: white;
}

.global-search-results {
  display: grid;
  gap: 8px;
}

.global-search-result {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  color: var(--ink);
  text-align: left;
}

.global-search-result span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.global-search-result small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.modal-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  padding: 10px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.setup-guide-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
}

.setup-guide-summary div,
.setup-guide-next {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  padding: 10px;
}

.setup-guide-summary span,
.setup-guide-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.setup-guide-summary strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
}

.setup-guide-next {
  margin-top: 8px;
}

.setup-guide-next p {
  margin: 4px 0 0;
  color: var(--muted);
}

.setup-guide-next small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.setup-guide-item {
  display: grid;
  gap: 8px;
}

.setup-guide-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.setup-guide-item.blocked span {
  color: var(--red);
}

.setup-guide-item.attention span {
  color: var(--amber);
}

.setup-guide-item.done span {
  color: var(--green);
}

.setup-guide-tags {
  justify-content: flex-start !important;
  flex-wrap: wrap;
}

.setup-guide-tags em {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 4px 8px;
}

.setup-guide-item p,
.setup-guide-item small,
.setup-guide-item li {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.setup-guide-item ol {
  margin: 0;
  padding-left: 20px;
}

.setup-guide-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.setup-guide-item button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.setup-guide-item button.primary {
  background: #1f6feb;
  border-color: #1f6feb;
  color: white;
}

.review-pack-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.review-pack-metrics div {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 8px;
}

.review-pack-metrics span,
.review-pack-metrics small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.review-pack-metrics strong {
  overflow-wrap: anywhere;
}

.local-file-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.local-file-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
  margin-top: 3px;
}

.local-file-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.local-file-filters button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--muted);
  font-weight: 900;
}

.local-file-filters button.active {
  border-color: #0f766e;
  background: #e7f8f4;
  color: #0f3f3b;
}

.local-file-actions {
  display: flex;
  gap: 8px;
}

.local-file-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.local-file-actions button.danger {
  border-color: #fecaca;
  background: #fff7f7;
  color: #b42318;
}

.audit-list article.important-audit {
  border-color: #f2c77a;
  background: #fff8e8;
}

.audit-range-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.audit-export-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.audit-range-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--muted);
  font-weight: 900;
}

.audit-range-actions button.active {
  border-color: #0f766e;
  background: #e7f8f4;
  color: #0f3f3b;
}

.audit-range-summary p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.audit-export-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.audit-list small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.notification-item {
  display: grid;
  gap: 8px;
}

.notification-item div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-item div:first-child span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.notification-item.high {
  border-color: #ffc3b8;
}

.notification-item.high strong {
  color: var(--red);
}

.notification-item.medium strong {
  color: var(--amber);
}

.notification-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.notification-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.focus-pulse {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(225, 62, 45, .14), 0 18px 46px rgba(17, 26, 37, .16);
  animation: focusPulse 1.15s ease-in-out 2;
}

@keyframes focusPulse {
  0%, 100% {
    outline-color: var(--red);
    box-shadow: 0 0 0 5px rgba(225, 62, 45, .12), 0 18px 46px rgba(17, 26, 37, .14);
  }
  50% {
    outline-color: var(--amber);
    box-shadow: 0 0 0 9px rgba(245, 162, 59, .18), 0 20px 58px rgba(17, 26, 37, .2);
  }
}

.modal-list p {
  margin: 5px 0 0;
}

.notification-toolbar {
  display: flex;
  justify-content: flex-end;
}

.notification-item.dismissed {
  opacity: .68;
}

.modal-form {
  display: grid;
  gap: 10px;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
}

.modal-form textarea {
  min-height: 96px;
  padding-top: 10px;
  resize: vertical;
}

.confirm-box p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.confirm-box.danger p {
  color: #7f1d1d;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.report-output {
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  padding: 12px;
  color: #334155;
  font: 12px/1.55 "SFMono-Regular", Consolas, monospace;
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .rail {
    display: none;
  }

  .phone-frame {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .local-file-item {
    grid-template-columns: 1fr;
  }

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

  .local-file-filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {
  .summary-strip {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 23px;
  }

  .action-grid, .approval-actions {
    grid-template-columns: 1fr;
  }

  .mobile-access-card {
    grid-template-columns: 1fr;
  }

  .mobile-qr {
    width: 100%;
  }
}

/* v173 reference-style mobile GUI */
:root {
  --bg: #f5f8f8;
  --surface: #ffffff;
  --surface-2: #f7fbfb;
  --paper: #ffffff;
  --ink: #182230;
  --muted: #667085;
  --line: #e6edf0;
  --blue: #2f78dc;
  --green: #12b8aa;
  --red: #ff5a3d;
  --amber: #ff9f1c;
  --violet: #7a58d8;
  --radius: 14px;
  --shadow: 0 14px 36px rgba(16, 24, 40, .09);
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(18, 184, 170, .08), transparent 30%),
    linear-gradient(180deg, #fbfdfd 0%, #eef5f4 100%);
}

.app-shell {
  background: transparent;
}

.rail {
  background: rgba(255, 255, 255, .86);
  border-color: var(--line);
  box-shadow: 16px 0 44px rgba(16, 24, 40, .05);
}

.brand {
  min-height: 48px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff;
  color: var(--green);
  box-shadow: 0 10px 22px rgba(16, 24, 40, .09);
}

.brand-image {
  object-fit: contain;
  padding: 3px;
}

.brand strong {
  color: var(--ink);
  font-size: 16px;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav-item {
  height: 44px;
  border-radius: 14px;
  color: #475467;
  font-weight: 800;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(18, 184, 170, .11);
  color: #08877e;
}

.phone-frame {
  width: min(430px, calc(100vw - 300px));
  height: min(920px, calc(100vh - 34px));
  min-height: 760px;
  border: 1px solid rgba(214, 226, 229, .95);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,253,253,.97)),
    #fff;
  box-shadow: 0 24px 62px rgba(16, 24, 40, .12);
}

.statusbar {
  height: 34px;
  color: #101828;
}

.page {
  padding: 10px 17px calc(86px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 88% 14%, rgba(18, 184, 170, .08), transparent 22%),
    linear-gradient(180deg, #fff 0%, #f8fbfb 58%, #fff 100%);
  outline: 0;
}

.page:focus,
.page:focus-visible {
  outline: 0;
}

.topbar {
  min-height: 58px;
  align-items: center;
}

.topbar h1,
.page > .topbar h1 {
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.home-hero {
  min-height: 68px;
  align-items: flex-start;
}

.home-brand {
  gap: 11px;
}

.home-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: contain;
  margin: -8px 0 -8px -8px;
  filter: drop-shadow(0 10px 18px rgba(16, 24, 40, .08));
}

.home-brand h1 {
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.1;
  margin: 4px 0 6px;
  color: #101828;
}

.home-brand p {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.top-actions {
  gap: 4px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(230, 237, 240, .9);
  background: #fff;
  box-shadow: 0 6px 15px rgba(16, 24, 40, .05);
}

.icon-btn.plain {
  background: rgba(255, 255, 255, .8);
  border: 0;
  box-shadow: none;
}

.notification-count {
  background: var(--red);
  border: 2px solid #fff;
}

.morning-line {
  margin: 8px 0 12px;
  color: #101828;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.morning-line span {
  display: block;
  color: #344054;
  font-size: 14px;
  margin-bottom: 2px;
}

.morning-line strong {
  color: var(--red);
  font-size: 18px;
}

.risk-hero {
  position: relative;
  display: block;
  min-height: 138px;
  border: 0;
  border-radius: 15px;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 8%, rgba(255,255,255,.34), transparent 26%),
    linear-gradient(140deg, #12b8aa 0%, #19c6b7 54%, #42d6ca 100%);
  box-shadow: 0 14px 28px rgba(18, 184, 170, .24);
  margin-bottom: 12px;
}

.risk-hero::before,
.risk-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  pointer-events: none;
}

.risk-hero::before {
  width: 210px;
  height: 86px;
  right: -56px;
  bottom: -28px;
  transform: rotate(-10deg);
}

.risk-hero::after {
  width: 150px;
  height: 64px;
  right: 50px;
  bottom: -32px;
  transform: rotate(-12deg);
}

.radar-art {
  display: none;
}

.hero-mascot {
  position: absolute;
  right: -10px;
  top: -26px;
  width: 126px;
  height: 126px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(6, 82, 76, .18));
  z-index: 1;
}

.risk-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 265px;
  padding: 17px 16px 14px;
}

.priority-label {
  border: 0;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
}

.risk-hero-copy h2 {
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 8px;
}

.risk-hero-copy p {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .94);
  font-size: 12px;
  line-height: 1.35;
}

.risk-hero-copy p strong {
  color: #fff8d6;
  font-size: 15px;
}

.hero-link {
  min-height: 24px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.summary-strip {
  gap: 8px;
  margin: 8px 0 12px;
}

.summary-strip div {
  min-height: 82px;
  padding: 10px 10px 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff !important;
  box-shadow: 0 9px 22px rgba(16, 24, 40, .06);
}

.summary-strip span {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.summary-strip strong {
  margin: 8px 0 4px;
  color: #101828;
  font-size: 21px;
  line-height: 1;
}

.summary-strip small {
  font-size: 10px;
  font-weight: 900;
}

.up { color: #12a681 !important; }
.down { color: #12a681 !important; }
.warn { color: var(--amber) !important; }

.band,
.connector-config-card,
.connector-action-panel,
.diagnosis-memory-warning,
.memory-form,
.report-output {
  border: 1px solid rgba(230, 237, 240, .95);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}

.band {
  padding: 13px;
  margin: 12px 0;
}

.section-head {
  margin-bottom: 10px;
}

.section-head h2,
.connector-config-card h2,
.report-preview h2,
.execution-empty h2,
.execution-plan h2 {
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #101828;
  font-size: 15px;
  font-weight: 900;
}

.text-btn {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.approval-teaser,
.connector-row,
.risk-card,
.problem-item,
.approval-item,
.memory-item,
.report-preview,
.execution-empty,
.execution-plan,
.execution-step,
.connector-card,
.capability-list div,
.settings-list label,
.route-row,
.report-metric,
.notification-item {
  border: 1px solid rgba(230, 237, 240, .95);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .055);
}

.connector-row,
.approval-teaser {
  min-height: 54px;
}

.teaser-icon,
.risk-card-icon,
.connector-card > svg,
.report-metric svg {
  background: rgba(18, 184, 170, .1);
  color: #079486;
}

.problem-item.high,
.approval-item.high,
.risk-card.high {
  border-color: rgba(255, 90, 61, .22);
}

.problem-item.medium,
.approval-item.medium,
.risk-card.medium {
  border-color: rgba(255, 159, 28, .25);
}

.meta span,
.connector-row small,
.connector-card small,
.memory-item small,
.audit-list small {
  color: var(--muted);
}

.context-pills,
.segmented,
.report-tabs {
  gap: 7px;
  padding: 0;
  background: transparent;
}

.pill,
.segmented button,
.report-tabs button,
.audit-range-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 11px rgba(16, 24, 40, .04);
}

.pill.active,
.segmented .active,
.report-tabs .active,
.audit-range-actions button.active {
  border-color: transparent;
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 20px rgba(18, 184, 170, .22);
}

.action-grid button,
.primary-btn,
.ghost-btn,
.connector-scan button,
.connector-suggestions button,
.connector-inbox button,
.report-export-grid button,
.notification-actions button {
  min-height: 38px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 900;
}

.primary-btn {
  border: 0;
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 22px rgba(18, 184, 170, .23);
}

.ghost-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
}

.composer,
.memory-search,
.mobile-access-card {
  border: 1px solid rgba(230, 237, 240, .95);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .055);
}

.composer input,
.memory-search input,
.connector-config-form input,
.connector-config-form select,
.memory-form input,
.memory-form select,
.memory-form textarea,
.modal-form input,
.modal-form textarea,
.modal-form select,
.access-lock-card input {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
}

.connector-config-form label span {
  color: #475467;
  font-weight: 900;
}

.execution-summary {
  border-radius: 14px;
  background: #f4fbfa;
}

.execution-step {
  margin-top: 9px;
}

.memory-search {
  padding: 0 12px;
}

.memory-list {
  gap: 10px;
}

.memory-item.important {
  border-color: rgba(18, 184, 170, .3);
  background: linear-gradient(180deg, #fff, #f6fdfc);
}

.settings-list {
  gap: 8px;
}

.floating-lock-btn {
  right: 18px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: #182230;
  color: #fff;
  box-shadow: 0 14px 28px rgba(16, 24, 40, .22);
}

.bottom-nav {
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 64px;
  padding: 6px 7px calc(6px + env(safe-area-inset-bottom));
  border: 1px solid rgba(230, 237, 240, .98);
  border-radius: 19px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 34px rgba(16, 24, 40, .12);
  backdrop-filter: blur(18px);
}

.bottom-item {
  min-width: 0;
  border-radius: 14px;
  color: #667085;
  font-size: 10px;
  font-weight: 900;
}

.bottom-item.active {
  background: rgba(18, 184, 170, .1);
  color: #069487;
}

.bottom-item svg {
  width: 18px;
  height: 18px;
}

.access-lock {
  background:
    radial-gradient(circle at 50% 22%, rgba(18, 184, 170, .16), transparent 30%),
    rgba(244, 248, 248, .86);
  backdrop-filter: blur(18px);
}

.access-lock-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 62px rgba(16, 24, 40, .16);
}

.access-lock-card .brand-image {
  width: 78px;
  height: 78px;
  margin: 0 auto 10px;
  box-shadow: none;
}

.modal-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.attention-pulse,
.focus-pulse {
  outline: 0 !important;
  animation: none !important;
}

@media (max-width: 820px) {
  .phone-frame {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .bottom-nav {
    left: 10px;
    right: 10px;
    bottom: 8px;
  }
}

@media (max-width: 380px) {
  .home-logo {
    width: 60px;
    height: 60px;
  }

  .hero-mascot {
    width: 104px;
    height: 104px;
  }

  .summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-strip div {
    padding: 9px 7px;
  }

  .summary-strip strong {
    font-size: 17px;
  }
}

/* v179: high-fidelity 9-screen mobile GUI direction */
:root {
  --bg: #f3f7f7;
  --surface: #fffdf8;
  --surface-2: #f7fbfb;
  --paper: #ffffff;
  --ink: #1c2a34;
  --muted: #7a8790;
  --line: #e8eef0;
  --blue: #2d7ff0;
  --green: #10b8a6;
  --green-deep: #058c83;
  --red: #ff7a1a;
  --amber: #ffb020;
  --violet: #6b7280;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(33, 54, 66, .14);
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(16, 184, 166, .10), transparent 28%),
    linear-gradient(180deg, #f8fbfb 0%, #edf3f4 100%);
}

.app-shell {
  grid-template-columns: 224px minmax(360px, 1fr);
}

.rail {
  background: rgba(255, 255, 255, .76);
  border-right: 1px solid rgba(232, 238, 240, .9);
  box-shadow: 10px 0 40px rgba(33, 54, 66, .05);
  backdrop-filter: blur(18px);
}

.brand-image,
.home-logo {
  object-fit: contain;
  background: transparent;
}

.brand-mark {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(33, 54, 66, .08);
}

.brand strong {
  color: #253642;
}

.nav-item {
  border-radius: 12px;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(16, 184, 166, .10);
  color: var(--green-deep);
}

.phone-frame {
  width: min(392px, calc(100vw - 272px));
  height: min(852px, calc(100vh - 32px));
  min-height: 740px;
  border: 1px solid rgba(215, 224, 227, .95);
  border-radius: 28px;
  background: #fffdf8;
  box-shadow:
    0 30px 80px rgba(33, 54, 66, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .85);
}

.statusbar {
  height: 36px;
  padding: calc(8px + env(safe-area-inset-top)) 20px 0;
  color: #111827;
  letter-spacing: 0;
  display: none;
}

.page {
  padding: calc(8px + env(safe-area-inset-top)) 16px calc(90px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(248, 252, 252, .96));
}

.page::before {
  content: "";
  display: block;
  height: 0;
}

.topbar {
  min-height: 56px;
  align-items: flex-start;
  padding: 2px 0 8px;
}

.topbar h1 {
  font-size: 20px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
  color: #17232c;
}

.topbar .eyebrow {
  display: none;
}

.home-hero {
  min-height: 52px;
  align-items: center;
}

.home-brand {
  gap: 9px;
}

.home-brand h1 {
  font-family: "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.14;
  margin: 0;
}

.home-brand p {
  display: none;
}

.home-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(33, 54, 66, .08);
}

.top-actions,
.topbar-actions {
  gap: 7px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  border-color: var(--line);
  background: #fff;
  color: #233541;
  box-shadow: 0 8px 18px rgba(33, 54, 66, .06);
}

.icon-btn.plain {
  background: #fff;
  border: 1px solid var(--line);
}

.icon-btn svg,
.bottom-item svg {
  width: 17px;
  height: 17px;
}

.morning-line {
  margin: 4px 0 12px;
  font-size: 17px;
  line-height: 1.3;
  color: #1d2b35;
}

.morning-line::before {
  content: "早上好，老板";
  display: block;
  font-size: 20px;
  font-weight: 950;
  color: #17232c;
  margin-bottom: 2px;
}

.morning-line span {
  display: none;
}

.morning-line strong {
  color: var(--red);
}

.risk-hero {
  position: relative;
  min-height: 134px;
  display: block;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 2%, rgba(255, 255, 255, .35), transparent 28%),
    linear-gradient(135deg, #16bba9 0%, #10b8a6 55%, #25cbbd 100%);
  box-shadow: 0 18px 36px rgba(16, 184, 166, .23);
  color: #fff;
  margin-bottom: 12px;
}

.risk-hero::after {
  content: "";
  position: absolute;
  left: 42%;
  right: -20%;
  bottom: -45px;
  height: 110px;
  border-radius: 999px 0 0 0;
  background: rgba(255, 255, 255, .13);
  transform: rotate(-8deg);
}

.radar-art {
  position: absolute;
  inset: auto -18px -30px auto;
  width: 142px;
  height: 142px;
  min-height: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  opacity: .75;
}

.radar-art::after,
.radar-sweep {
  display: none;
}

.radar-ring {
  border-color: rgba(255, 255, 255, .34);
}

.hero-mascot {
  position: absolute;
  right: 12px;
  top: 16px;
  width: 78px;
  height: 78px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 12px 20px rgba(5, 80, 73, .18));
}

.risk-hero-copy {
  position: relative;
  z-index: 3;
  padding: 16px 96px 16px 16px;
}

.priority-label {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  padding: 3px 8px;
  font-size: 11px;
  margin-bottom: 8px;
}

.risk-hero-copy h2 {
  font-family: "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 8px;
}

.risk-hero-copy p {
  color: rgba(255, 255, 255, .94);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.risk-hero-copy p strong {
  color: #fff6d7;
  font-size: 15px;
}

.hero-link {
  display: none;
}

.summary-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.summary-strip div {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(33, 54, 66, .07);
  padding: 11px 10px;
}

.summary-strip span {
  font-size: 11px;
  color: #72808a;
}

.summary-strip strong {
  font-size: 19px;
  margin: 7px 0 3px;
}

.summary-strip small {
  font-size: 10px;
  font-weight: 900;
}

.band,
.connector-action-panel,
.settings-list,
.report-preview,
.problem-detail,
.mobile-install-card,
.daily-push-card,
.backup-card,
.execution-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(33, 54, 66, .07);
}

.band {
  padding: 13px;
  margin: 0 0 10px;
}

.section-head {
  margin-bottom: 10px;
}

h2 {
  font-family: "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  font-weight: 950;
  color: #1d2b35;
}

h3 {
  color: #1d2b35;
  font-weight: 950;
}

p {
  color: #667580;
}

.text-btn {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 950;
}

.approval-teaser {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(33, 54, 66, .06);
}

.teaser-icon,
.risk-rank,
.priority,
.connector-card div > svg:first-child {
  background: rgba(16, 184, 166, .12);
  color: var(--green-deep);
}

.risk-card,
.problem-item,
.approval-item,
.memory-item,
.connector-card,
.connector-config-form,
.execution-step,
.execution-summary,
.review-item,
.action-draft-item,
.backup-item,
.restore-plan-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(33, 54, 66, .065);
}

.risk-card,
.problem-item,
.approval-item,
.memory-item,
.connector-card {
  margin-bottom: 9px;
}

.critical .risk-rank,
.p1,
.problem-item.high .priority,
.approval-item.high .priority {
  background: var(--red);
  color: #fff;
}

.warning .risk-rank,
.p2,
.problem-item.medium .priority,
.approval-item.medium .priority {
  background: var(--amber);
  color: #fff;
}

.tags span,
.meta span {
  border-radius: 999px;
  background: #f5f8f8;
  border-color: #e3eaec;
  color: #5b6872;
  font-weight: 800;
}

.context-pills,
.segmented,
.report-tabs {
  gap: 7px;
  padding: 2px 0 12px;
}

.pill,
.segmented button,
.report-tabs button,
.audit-range-actions button {
  min-height: 30px;
  border-radius: 999px;
  border-color: var(--line);
  background: #fff;
  color: #64717a;
  box-shadow: 0 6px 14px rgba(33, 54, 66, .05);
}

.pill.active,
.segmented .active,
.report-tabs .active,
.audit-range-actions button.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 12px 22px rgba(16, 184, 166, .24);
}

.chat-stream {
  gap: 10px;
}

.msg {
  border-radius: 8px;
}

.msg.user {
  background: rgba(16, 184, 166, .10);
  border-color: rgba(16, 184, 166, .20);
}

.msg.ai {
  background: #fff;
  border-color: var(--line);
}

.action-grid button {
  border-radius: 8px;
}

.composer {
  bottom: 0;
  border-radius: 999px;
  padding: 5px 5px 5px 13px;
  margin-top: 10px;
  background: #fff;
}

.composer input,
.memory-search input {
  min-height: 34px;
  border: 0;
  background: transparent;
}

.composer button {
  width: 36px;
  height: 36px;
  background: var(--green);
}

.connector-action-panel {
  padding: 13px;
  margin-bottom: 10px;
}

.pdd-import-form textarea {
  min-height: 96px;
}

.memory-search {
  margin-bottom: 10px;
  height: 38px;
  border-radius: 999px;
}

#memory .memory-search + .memory-form + .memory-list::before,
#memory .memory-search + .memory-list::before {
  content: "";
  display: block;
  min-height: 112px;
  border-radius: 8px;
  margin-bottom: 10px;
  background:
    url("./stone-icon.png") no-repeat right 16px center / 84px 84px,
    linear-gradient(135deg, #10b8a6 0%, #21c9bb 100%);
  box-shadow: 0 18px 36px rgba(16, 184, 166, .22);
}

.report-preview {
  padding: 14px;
  margin-bottom: 10px;
}

.report-preview::after {
  content: "75%";
  float: right;
  width: 54px;
  height: 54px;
  margin-top: -56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-deep);
  font-weight: 950;
  background:
    radial-gradient(circle closest-side, #fff 72%, transparent 73%),
    conic-gradient(var(--green) 75%, #eaf1f2 0);
}

.report-metric {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.primary-btn {
  min-height: 40px;
  border-radius: 8px;
  background: var(--red);
  box-shadow: 0 14px 24px rgba(255, 122, 26, .22);
}

.ghost-btn {
  min-height: 40px;
  border-radius: 8px;
}

.settings-list {
  padding: 10px;
  margin-bottom: 10px;
}

.settings-list label {
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.settings-list label:last-child {
  border-bottom: 0;
}

.route-row {
  border-color: var(--line);
}

.mobile-install-card {
  padding: 12px;
}

#mobile-access-panel .mobile-access-card,
.mobile-access-card {
  border-radius: 8px;
}

.floating-lock-btn {
  display: none;
}

.bottom-nav {
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  padding: 7px 9px calc(7px + env(safe-area-inset-bottom));
  border-width: 1px 0 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -12px 30px rgba(33, 54, 66, .08);
}

.bottom-item {
  border-radius: 8px;
  color: #7b8992;
}

.bottom-item.active {
  background: transparent;
  color: var(--green-deep);
}

.bottom-item.active svg {
  fill: rgba(16, 184, 166, .14);
}

.bottom-item span {
  font-size: 10px;
  line-height: 1;
  margin-top: 2px;
}

.access-lock-card,
.modal-card {
  border-radius: 18px;
}

@media (min-width: 821px) {
  .phone-frame::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 58px;
    height: 5px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: rgba(17, 24, 39, .12);
    z-index: 4;
  }
}

@media (max-width: 820px) {
  html,
  body {
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    overflow: hidden;
  }

  body {
    background: #fffdf8;
    overflow: hidden;
  }

  .app-shell {
    display: block;
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 100dvh;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }

  .phone-frame {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .page {
    min-height: 100%;
    padding-left: 16px;
    padding-right: 16px;
    overscroll-behavior-y: none;
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 30;
    height: calc(60px + env(safe-area-inset-bottom));
    min-height: calc(60px + env(safe-area-inset-bottom));
    padding: 6px 9px env(safe-area-inset-bottom);
  }
}

@media (max-width: 820px) {
  body.ios-shell {
    background:
      linear-gradient(180deg, #f5fbfb 0%, #fffdf8 26%, #fffdf8 100%);
  }

  body.ios-shell .phone-frame {
    background:
      linear-gradient(180deg, #f5fbfb 0%, #fffdf8 18%, #fffdf8 100%);
  }

  body.ios-shell .statusbar {
    display: none !important;
  }

  body.ios-shell .page {
    padding-top: calc(8px + env(safe-area-inset-top));
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  body.ios-shell .topbar {
    min-height: 52px;
    padding-top: 0;
    padding-bottom: 6px;
  }

  body.ios-shell .home-hero {
    min-height: 50px;
    padding-top: 0;
  }

  body.ios-shell .morning-line {
    margin-top: 2px;
  }

  body.ios-shell .bottom-nav {
    height: calc(60px + env(safe-area-inset-bottom));
    min-height: calc(60px + env(safe-area-inset-bottom));
    padding-top: 6px;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 -10px 28px rgba(33, 54, 66, .08);
  }

  body.ios-shell .bottom-item {
    min-height: 46px;
  }

  body.ios-standalone .statusbar {
    display: none !important;
  }

  body.ios-standalone .page {
    padding-top: calc(8px + env(safe-area-inset-top));
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  body.ios-standalone .home-hero {
    margin-top: -2px;
  }

  body.ios-standalone .risk-hero {
    box-shadow: 0 18px 34px rgba(16, 184, 166, .20);
  }
}

@media (max-width: 380px) {
  .risk-hero-copy {
    padding-right: 112px;
  }

  .hero-mascot {
    width: 82px;
    height: 82px;
  }
}

/* v180: page-by-page reference GUI implementation */
.page[data-v180-applied="true"] {
  padding: 14px 16px calc(76px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #fffdf8 0%, #f8fbfb 100%);
}

.v180-head {
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.v180-head h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 950;
  color: #17232c;
}

.v180-head h2 {
  margin: 16px 0 4px;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 950;
  color: #17232c;
}

.v180-head p {
  margin: 0;
  font-size: 12px;
  color: #8a98a2;
}

.v180-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #21323e;
  border: 1px solid var(--line);
  box-shadow: 0 9px 20px rgba(33, 54, 66, .08);
}

.v180-icon svg,
.v180-actions svg,
.v180-line svg,
.v180-tools svg {
  width: 17px;
  height: 17px;
}

.v180-actions {
  display: flex;
  gap: 8px;
}

.v180-home-head {
  align-items: flex-start;
}

.v180-home-head h1 {
  display: none;
}

.v180-home-head h2 {
  margin-top: 2px;
  font-size: 21px;
}

.v180-home-head p {
  font-size: 12px;
}

.v180-ai-head {
  min-height: 148px;
  position: relative;
}

.v180-ai-head h2 {
  font-size: 27px;
}

.v180-ai-head .v180-mascot {
  position: absolute;
  right: 4px;
  top: 30px;
  width: 116px;
  height: 96px;
}

.v180-mascot,
.v180-mini-mascot {
  object-fit: contain;
  pointer-events: none;
}

.v180-hero {
  position: relative;
  min-height: 118px;
  border-radius: 8px;
  overflow: hidden;
  padding: 18px 122px 16px 16px;
  margin-bottom: 10px;
  box-shadow: 0 16px 34px rgba(16, 184, 166, .22);
}

.v180-hero.teal {
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, .26), transparent 26%),
    linear-gradient(135deg, #15bba9 0%, #11b7a6 58%, #46d6ca 100%);
  color: #fff;
}

.v180-hero.memory {
  background:
    url("./stone-wordmark.png") no-repeat right 14px center / 86px auto,
    linear-gradient(135deg, #11b7a6 0%, #21c8ba 100%);
  color: #fff;
  padding-right: 116px;
}

.v180-hero::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -44px;
  width: 190px;
  height: 92px;
  border-radius: 999px 0 0 0;
  background: rgba(255, 255, 255, .16);
  transform: rotate(-8deg);
}

.v180-hero .v180-mascot {
  position: absolute;
  right: 8px;
  top: -10px;
  width: 100px;
  height: 92px;
  z-index: 2;
}

.v180-hero h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #fff;
  font-weight: 950;
}

.v180-hero strong {
  display: block;
  font-size: 18px;
  color: #fff;
}

.v180-hero p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .92);
  font-weight: 800;
}

.v180-hero button {
  height: 30px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--green-deep);
  background: #fff;
  font-weight: 900;
}

.v180-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.v180-metrics article,
.v180-card,
.v180-issue-card,
.v180-search,
.v180-date {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(33, 54, 66, .07);
}

.v180-metrics article {
  min-height: 74px;
  padding: 10px;
}

.v180-metrics span {
  display: block;
  font-size: 11px;
  color: #7b8992;
  font-weight: 800;
}

.v180-metrics strong {
  display: block;
  margin: 7px 0 2px;
  font-size: 19px;
  color: #17232c;
}

.v180-metrics small,
.v180-sync em,
.v180-setting-grid span {
  font-size: 10px;
  font-weight: 950;
  font-style: normal;
}

.v180-card {
  padding: 13px;
  margin-bottom: 10px;
}

.v180-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.v180-section-title h3,
.v180-card h3,
.v180-block-list h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: #17232c;
  font-weight: 950;
}

.v180-section-title b {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
}

.v180-section-title button,
.v180-issue-card button,
.v180-upload button {
  color: var(--green-deep);
  background: transparent;
  font-size: 12px;
  font-weight: 950;
}

.v180-line {
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.v180-line:first-of-type {
  border-top: 0;
}

.v180-line i,
.v180-line svg {
  color: var(--green-deep);
}

.v180-line strong,
.v180-sync strong,
.v180-task strong,
.v180-approval strong {
  color: #243441;
  font-size: 13px;
}

.v180-line em,
.v180-task em,
.v180-approval em,
.v180-issue-card em {
  justify-self: end;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 122, 26, .13);
  color: var(--red);
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}

.v180-progress {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf1f2;
}

.v180-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #e9b949);
}

.v180-percent {
  float: right;
  color: var(--green-deep);
  font-weight: 950;
}

.v180-pills,
.v180-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.v180-pills button,
.v180-tabs button {
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #667580;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 7px 15px rgba(33, 54, 66, .05);
}

.v180-pills .active,
.v180-tabs .active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.v180-block-list button {
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #2a3b47;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 9px 20px rgba(33, 54, 66, .055);
}

.v180-tool-grid,
.v180-setting-grid,
.v180-stat-row,
.v180-tools {
  display: grid;
  gap: 8px;
}

.v180-tool-grid,
.v180-setting-grid,
.v180-stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
}

.v180-tool-grid article,
.v180-setting-grid article,
.v180-stat-row article {
  min-height: 74px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 9px 20px rgba(33, 54, 66, .055);
}

.v180-tool-grid i,
.v180-tool-grid svg,
.v180-setting-grid i,
.v180-setting-grid svg {
  color: var(--green-deep);
}

.v180-tool-grid strong,
.v180-setting-grid strong,
.v180-stat-row strong {
  display: block;
  margin: 5px 0 2px;
  font-size: 12px;
  color: #20313d;
}

.v180-tool-grid small,
.v180-setting-grid span,
.v180-stat-row span {
  color: #7a8790;
  font-size: 10px;
}

.v180-composer {
  position: sticky;
  bottom: 4px;
  display: grid;
  grid-template-columns: 1fr 38px 38px;
  align-items: center;
  gap: 4px;
  min-height: 50px;
  margin-top: 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(33, 54, 66, .09);
}

.v180-composer input {
  border: 0;
  padding: 0 10px;
  color: #98a4aa;
  background: transparent;
}

.v180-composer button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
}

.v180-composer button:first-of-type {
  color: #50606b;
  background: #f4f7f8;
}

.v180-mini-mascot {
  position: absolute;
  right: 10px;
  bottom: 64px;
  width: 72px;
  height: 58px;
}

.v180-issue-card {
  padding: 13px;
  margin-bottom: 10px;
}

.v180-issue-card > div {
  display: grid;
  grid-template-columns: auto 1fr 16px;
  align-items: center;
  gap: 7px;
}

.v180-issue-card p {
  margin: 10px 0 5px;
  font-size: 12px;
  color: #5f6d76;
}

.v180-issue-card p span {
  float: right;
}

.v180-issue-card small {
  color: #7f8d96;
  font-size: 11px;
}

.v180-issue-card button {
  float: right;
  height: 30px;
  min-width: 82px;
  margin-top: 8px;
  border: 1px solid rgba(16, 184, 166, .38);
  border-radius: 8px;
  background: #f7fdfc;
}

.v180-empty-mark {
  padding-top: 26px;
  text-align: center;
  color: #9aa6ad;
}

.v180-empty-mark .v180-mascot {
  width: 102px;
  height: 76px;
  opacity: .14;
}

.v180-logo-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.v180-logo-row span {
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafdfd;
  color: #e33b26;
  font-size: 12px;
  font-weight: 950;
}

.v180-upload {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 10px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.v180-upload button {
  height: 32px;
  border: 1px solid rgba(16, 184, 166, .35);
  border-radius: 8px;
  background: #f4fcfb;
}

.v180-upload span,
.v180-sync span {
  color: #8a98a2;
  font-size: 11px;
}

.v180-sync {
  display: grid;
  grid-template-columns: 1fr 52px auto;
  min-height: 34px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.v180-sync:first-of-type {
  border-top: 0;
}

.ok {
  color: var(--green-deep) !important;
}

.bad {
  color: var(--red) !important;
}

.v180-tools {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.v180-tools button {
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 4px;
  background: transparent;
  color: #60707a;
  font-size: 11px;
  font-weight: 850;
}

.v180-approval,
.v180-task {
  position: relative;
  min-height: 48px;
  padding: 7px 0 8px 28px;
  border-top: 1px solid var(--line);
}

.v180-approval:first-of-type,
.v180-task:first-of-type {
  border-top: 0;
}

.v180-task::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(16, 184, 166, .13);
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 950;
}

.v180-approval em,
.v180-task em {
  position: absolute;
  top: 7px;
  left: 170px;
}

.v180-approval p,
.v180-task p {
  margin: 6px 0 0;
  color: #687781;
  font-size: 11px;
}

.v180-task p span {
  float: right;
}

.v180-stat-row article strong {
  font-size: 20px;
}

.v180-big-mascot {
  height: 112px;
  margin-top: 4px;
  overflow: hidden;
  text-align: center;
}

.v180-big-mascot .v180-mascot {
  width: 220px;
  height: 150px;
  opacity: .95;
}

.v180-task-mascot {
  position: absolute;
  right: 2px;
  bottom: 44px;
  width: 160px;
  height: 130px;
  overflow: hidden;
  pointer-events: none;
}

.v180-task-mascot .v180-mascot {
  width: 170px;
  height: 132px;
}

.v180-search,
.v180-date {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  margin-bottom: 12px;
  color: #8b98a1;
  font-size: 12px;
}

.v180-reading {
  height: 176px;
  display: grid;
  place-items: center;
}

.v180-reading .v180-mascot {
  width: 190px;
  height: 156px;
}

.memory-metrics {
  margin-top: -8px;
}

.v180-tabs {
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 10px;
  background: #eef3f4;
}

.v180-tabs button {
  flex: 1;
  border: 0;
  box-shadow: none;
}

.v180-report {
  position: relative;
}

.v180-ring {
  position: absolute;
  right: 18px;
  top: 28px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-deep);
  font-weight: 950;
  background: radial-gradient(circle closest-side, #fff 70%, transparent 72%), conic-gradient(var(--green) 75%, #e7eef0 0);
}

.v180-report ul {
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.v180-report li {
  padding: 7px 0 7px 24px;
  border-top: 1px solid var(--line);
  color: #4f5f69;
  font-size: 12px;
}

.v180-report li::before {
  content: "✓";
  margin-left: -24px;
  margin-right: 10px;
  color: var(--green-deep);
}

.v180-report button {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 950;
}

.v180-health {
  min-height: 38px;
  display: grid;
  grid-template-columns: 1fr auto 22px;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.v180-health:first-of-type {
  border-top: 0;
}

.v180-health span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #40515d;
  font-size: 12px;
  font-weight: 850;
}

.v180-health strong {
  color: #60707a;
  font-size: 12px;
}

.v180-health em {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff7ec;
  color: #27a861;
  font-style: normal;
  font-weight: 950;
}

.v180-mobile {
  min-height: 116px;
  display: grid;
  grid-template-columns: 1fr 78px 70px;
  align-items: center;
  gap: 10px;
}

.v180-mobile p {
  margin: 8px 0 0;
  font-size: 12px;
}

.v180-qr {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  border: 7px solid #fff;
  background:
    linear-gradient(90deg, #111 8px, transparent 0) 0 0 / 16px 16px,
    linear-gradient(#111 8px, transparent 0) 0 0 / 16px 16px,
    #fff;
  box-shadow: inset 0 0 0 1px #111, 0 6px 14px rgba(33, 54, 66, .08);
}

.v180-mobile .v180-mini-mascot {
  position: static;
  width: 66px;
  height: 56px;
}

.v180-hidden-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.v180-hidden-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #667580;
  font-size: 10px;
  font-weight: 850;
}

.page[data-v180-applied="true"] + .floating-lock-btn {
  display: none;
}

@media (max-width: 380px) {
  .v180-head h2 {
    font-size: 22px;
  }

  .v180-hero {
    padding-right: 104px;
  }

  .v180-hero .v180-mascot {
    width: 86px;
    height: 80px;
  }

  .v180-approval em,
  .v180-task em {
    left: 145px;
  }
}

/* v181: reference matching refinements */
.page[data-v180-applied="true"] {
  padding-top: 13px;
}

.v180-ai-head {
  min-height: 142px;
}

.v180-ai-head .v180-mascot {
  right: 8px;
  top: 28px;
  width: 124px;
  height: 102px;
}

#assistant.page[data-v180-applied="true"] .v180-pills {
  margin-top: -2px;
}

#assistant.page[data-v180-applied="true"] .v180-block-list button {
  min-height: 38px;
}

#assistant.page[data-v180-applied="true"] .v180-composer {
  margin-top: 24px;
}

#assistant.page[data-v180-applied="true"] .v180-mini-mascot {
  bottom: 64px;
  right: 2px;
  width: 78px;
  height: 62px;
}

.v180-empty-mark {
  position: relative;
  min-height: 116px;
}

.v180-empty-mark .v180-mascot {
  position: absolute;
  right: 14px;
  bottom: 0;
  width: 132px;
  height: 96px;
}

.v180-empty-mark p {
  padding-top: 28px;
}

.v180-big-mascot {
  height: 128px;
  margin-top: -4px;
}

.v180-big-mascot .v180-mascot {
  width: 240px;
  height: 166px;
  transform: translateY(-8px);
}

.v180-task-mascot {
  right: 10px;
  bottom: 56px;
  width: 166px;
  height: 146px;
}

.v180-task-mascot .v180-mascot {
  width: 176px;
  height: 142px;
}

.v180-hero.memory {
  padding-right: 126px;
  background: linear-gradient(135deg, #11b7a6 0%, #21c8ba 100%);
}

.v180-book {
  position: absolute;
  right: 24px;
  top: 34px;
  width: 80px;
  height: 58px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #f8ffff 0 47%, #d9f3f0 48% 52%, #ffffff 53%),
    #fff;
  box-shadow: 0 16px 26px rgba(6, 101, 94, .18);
  transform: perspective(120px) rotateY(-7deg);
}

.v180-book::before,
.v180-book::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(16, 184, 166, .25);
}

.v180-book::before {
  left: 34px;
}

.v180-book::after {
  right: 34px;
}

.v180-reading {
  position: relative;
  height: 170px;
  overflow: hidden;
}

.v180-reading .v180-mascot {
  position: relative;
  z-index: 2;
  width: 180px;
  height: 148px;
}

.v180-memory-blob {
  position: absolute;
  border-radius: 999px;
  opacity: .92;
}

.v180-memory-blob.b1 {
  left: 20px;
  top: 54px;
  width: 30px;
  height: 54px;
  background: var(--green);
  transform: rotate(42deg);
}

.v180-memory-blob.b2 {
  right: 34px;
  top: 26px;
  width: 42px;
  height: 36px;
  background: #c9d1d5;
}

.v180-memory-blob.b3 {
  right: 32px;
  bottom: 24px;
  width: 34px;
  height: 22px;
  background: var(--red);
  transform: rotate(-28deg);
}

.v180-report {
  padding: 15px 14px;
}

.v180-report ul {
  margin-top: 14px;
}

.v180-ring {
  right: 20px;
  top: 34px;
  width: 62px;
  height: 62px;
}

.v180-mobile {
  grid-template-columns: 1fr 82px 66px;
  min-height: 126px;
}

.v180-qr {
  width: 82px;
  height: 82px;
}

.v180-mobile .v180-mini-mascot {
  width: 70px;
  height: 58px;
}

/* v182: third-pass visual tightening against the nine references */
#approvals.page[data-v180-applied="true"],
#execution.page[data-v180-applied="true"],
#memory.page[data-v180-applied="true"] {
  position: relative;
  overflow: hidden;
}

#approvals.page[data-v180-applied="true"]::before,
#execution.page[data-v180-applied="true"]::before,
#memory.page[data-v180-applied="true"]::before {
  content: "";
  position: absolute;
  left: -34px;
  bottom: 52px;
  width: 120px;
  height: 42px;
  border-radius: 999px;
  background: #d8e0e3;
  opacity: .68;
  transform: rotate(-14deg);
  pointer-events: none;
}

#approvals.page[data-v180-applied="true"]::after,
#execution.page[data-v180-applied="true"]::after,
#memory.page[data-v180-applied="true"]::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: 78px;
  width: 58px;
  height: 30px;
  border-radius: 999px;
  background: var(--red);
  opacity: .85;
  transform: rotate(-22deg);
  pointer-events: none;
}

#approvals.page[data-v180-applied="true"] .v180-card:first-of-type {
  padding-bottom: 10px;
}

#approvals.page[data-v180-applied="true"] .v180-big-mascot {
  position: relative;
  height: 150px;
  margin-top: -12px;
  z-index: 1;
}

#approvals.page[data-v180-applied="true"] .v180-big-mascot .v180-mascot {
  width: 268px;
  height: 188px;
  transform: translateY(-4px);
}

#execution.page[data-v180-applied="true"] .v180-card:first-of-type {
  margin-bottom: 12px;
}

#execution.page[data-v180-applied="true"] .v180-task-mascot {
  right: -4px;
  bottom: 66px;
  width: 190px;
  height: 160px;
  z-index: 1;
}

#execution.page[data-v180-applied="true"] .v180-task-mascot .v180-mascot {
  width: 204px;
  height: 164px;
}

#execution.page[data-v180-applied="true"] .v180-card:nth-of-type(2) {
  position: relative;
  z-index: 2;
}

#problems.page[data-v180-applied="true"] .v180-empty-mark {
  min-height: 128px;
}

#problems.page[data-v180-applied="true"] .v180-empty-mark .v180-mascot {
  right: 4px;
  bottom: -4px;
  width: 146px;
  height: 108px;
  opacity: .11;
}

#memory.page[data-v180-applied="true"] .v180-reading {
  height: 182px;
}

#memory.page[data-v180-applied="true"] .v180-reading .v180-mascot {
  width: 194px;
  height: 160px;
}

#memory.page[data-v180-applied="true"] .v180-memory-blob.b1 {
  left: 24px;
  top: 62px;
}

#memory.page[data-v180-applied="true"] .v180-memory-blob.b2 {
  right: 28px;
  top: 30px;
}

#memory.page[data-v180-applied="true"] .v180-memory-blob.b3 {
  right: 28px;
  bottom: 30px;
}

#reports.page[data-v180-applied="true"] .v180-report {
  padding-top: 17px;
}

#reports.page[data-v180-applied="true"] .v180-ring {
  right: 18px;
  top: 30px;
}

#reports.page[data-v180-applied="true"] .v180-hidden-actions,
#settings.page[data-v180-applied="true"] .v180-hidden-actions,
#approvals.page[data-v180-applied="true"] .v180-hidden-actions,
#memory.page[data-v180-applied="true"] .v180-hidden-actions {
  opacity: .55;
  transform: scale(.92);
  transform-origin: top center;
}

#settings.page[data-v180-applied="true"] .v180-setting-grid article {
  min-height: 84px;
}

#settings.page[data-v180-applied="true"] .v180-mobile {
  margin-top: 12px;
}

#settings.page[data-v180-applied="true"] .v180-hidden-actions button {
  min-height: 28px;
  font-size: 9px;
}

/* v182: keep automation-only controls clickable without showing in the mockup. */
#reports.page[data-v180-applied="true"] .v180-hidden-actions,
#settings.page[data-v180-applied="true"] .v180-hidden-actions,
#approvals.page[data-v180-applied="true"] .v180-hidden-actions,
#memory.page[data-v180-applied="true"] .v180-hidden-actions {
  position: absolute;
  left: 12px;
  bottom: 72px;
  width: 44px;
  height: 8px;
  display: flex;
  gap: 1px;
  opacity: 0;
  transform: none;
  pointer-events: auto;
  overflow: visible;
  z-index: 2;
}

#reports.page[data-v180-applied="true"] .v180-hidden-actions button,
#settings.page[data-v180-applied="true"] .v180-hidden-actions button,
#approvals.page[data-v180-applied="true"] .v180-hidden-actions button,
#memory.page[data-v180-applied="true"] .v180-hidden-actions button {
  width: 10px;
  min-width: 10px;
  height: 8px;
  min-height: 8px;
  padding: 0;
  border: 0;
  font-size: 0;
  color: transparent;
  background: transparent;
  box-shadow: none;
}
