:root {
  --blue: #071f5a;
  --blue-2: #102c73;
  --cyan: #51c7de;
  --cyan-soft: #eefbfe;
  --green: #2bb79b;
  --green-soft: #eaf9f4;
  --red: #d94a4a;
  --amber: #dc9a28;
  --bg: #f3f7f8;
  --panel: #ffffff;
  --line: #dfe7ea;
  --line-strong: #cfd9de;
  --text: #131a22;
  --ink: #131a22;
  --muted: #7b8790;
  --muted-2: #a2aab0;
  --shadow: 0 10px 28px rgba(7, 31, 90, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}

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

button {
  cursor: pointer;
}

.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.6fr);
  gap: 18px;
  padding: 18px;
  background: #f5f7f8;
}

.login-promo {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 72px 54px;
  color: #fff;
  background: var(--blue);
}

.login-promo h1 {
  margin: 0 0 20px;
  font-size: 38px;
  font-weight: 600;
}

.login-promo p {
  max-width: 620px;
  margin: 0 0 64px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.65;
}

.login-promo ul {
  display: grid;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 22px;
}

.login-promo li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--cyan);
  font-size: 15px;
}

.crystal {
  position: absolute;
  right: -130px;
  bottom: -170px;
  width: 520px;
  height: 520px;
  transform: rotate(18deg);
  border: 2px solid rgba(255, 255, 255, 0.75);
  background:
    linear-gradient(125deg, rgba(81, 199, 222, 0.95), rgba(255, 255, 255, 0.88) 46%, rgba(79, 222, 199, 0.7)),
    linear-gradient(45deg, transparent 30%, rgba(255,255,255,.5) 31% 33%, transparent 34%);
  clip-path: polygon(50% 0, 100% 34%, 80% 100%, 18% 92%, 0 32%);
  opacity: 0.88;
}

.login-main {
  position: relative;
  display: grid;
  grid-template-rows: 82px 1fr;
  border-radius: 14px;
  background: #f8f8f8;
}

.login-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid #e7ecef;
}

.login-card {
  width: min(700px, 78%);
  margin: 130px auto 0;
  text-align: center;
}

.login-card .logo-large {
  display: block;
  width: 270px;
  height: 108px;
  object-fit: contain;
  margin: 0 auto 58px;
}

.login-card h2 {
  margin: 0 0 46px;
  font-size: 32px;
  font-weight: 500;
}

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

.role-picker button {
  min-height: 74px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px;
  color: #4d5a63;
  background: #fff;
  text-align: left;
}

.role-picker button.active {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--cyan-soft);
  box-shadow: 0 0 0 3px rgba(81, 199, 222, 0.14);
}

.role-picker strong {
  font-size: 16px;
}

.role-picker span,
.login-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.login-hint {
  min-height: 42px;
  margin: 0 0 18px;
  text-align: left;
}

.form-row {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}

.form-row label {
  font-weight: 600;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.textarea {
  min-height: 96px;
  padding-top: 14px;
  resize: vertical;
}

.trade-request-form {
  display: grid;
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.trade-risk-check {
  margin: -4px 0 18px;
}

.trade-request-form .btn[type="submit"] {
  width: 100%;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(81, 199, 222, 0.22);
}

.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: grid;
  grid-template-rows: 132px 1fr auto;
  border-right: 1px solid var(--line);
  background: #fff;
}

.brand-box {
  display: grid;
  place-items: center;
  padding: 22px;
}

.brand-box img {
  width: 168px;
  height: 84px;
  object-fit: contain;
}

.nav {
  padding: 10px 18px 18px;
  overflow-y: auto;
}

.nav-item,
.nav-parent {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  color: #7c878d;
  background: transparent;
  font-size: 19px;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.nav-item:hover,
.nav-parent:hover,
.nav-item.active,
.nav-parent.active {
  color: #1aa9c6;
  background: #eefbfe;
}

.nav-icon {
  width: 26px;
  color: currentColor;
  font-weight: 700;
  text-align: center;
}

.subnav {
  margin: 4px 0 8px 28px;
  padding-left: 12px;
  border-left: 1px solid #e0edf1;
}

.subnav .nav-item {
  min-height: 44px;
  font-size: 16px;
}

.sidebar-footer {
  padding: 18px;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  color: #5d6870;
  background: #fbfdfe;
  font-size: 13px;
  line-height: 1.7;
}

.main-shell {
  min-width: 0;
  display: grid;
  grid-template-rows: 88px 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.breadcrumb {
  color: #17212a;
  font-size: 15px;
  font-weight: 800;
}

.permission-note {
  max-width: 640px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  color: #687782;
  background: #f1f5f7;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.api-chip.online {
  color: #248a65;
  background: #e9faef;
}

.data-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #687782;
  background: #f1f5f7;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.data-badge.online {
  color: #248a65;
  background: #e9faef;
}

.data-badge.loading {
  color: #aa6a00;
  background: #fff4dd;
}

.data-badge.pending {
  color: #aa6a00;
  background: #fff4dd;
}

.data-badge.failed {
  color: #b42318;
  background: #fff0ee;
}

.page-data-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  margin: -12px 0 24px;
  border: 1px solid #dce8ec;
  border-left: 4px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px 12px 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 18px rgba(7, 31, 90, 0.04);
}

.page-data-status.online {
  border-left-color: var(--green);
}

.page-data-status.loading,
.page-data-status.fallback {
  border-left-color: var(--amber);
}

.page-data-status.error {
  border-left-color: var(--red);
}

.page-data-status.local {
  border-left-color: var(--muted-2);
}

.page-data-main {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.page-data-main span {
  color: #23303a;
  font-size: 13px;
  font-weight: 900;
}

.page-data-main strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 24px;
  border-radius: 7px;
  color: var(--blue);
  background: #eef4f7;
  font-size: 12px;
}

.page-data-main small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-data-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.page-data-errors {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  border-top: 1px dashed #dbe6ea;
  padding-top: 10px;
}

.page-data-errors span {
  display: block;
  color: #8f2c23;
  font-size: 12px;
  line-height: 1.55;
}

.page-data-errors code {
  margin-right: 6px;
  color: #5e1c17;
  font-weight: 800;
}

.top-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  color: #323b43;
  background: transparent;
  font-size: 21px;
}

.top-icon:hover {
  background: #f1f7f9;
  border-radius: 10px;
}

.menu-toggle {
  display: none;
}

.mobile-activity {
  display: none;
}

.activity-trigger {
  position: relative;
}

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

.bell {
  position: relative;
}

.bell::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e31616;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  font-weight: 600;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
}

.mobile-action-dock {
  display: none;
}

.role-switch {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #4b565d;
}

.content {
  padding: 42px 46px 64px;
  overflow: auto;
}

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

.page-head {
  margin: 0 0 28px;
}

.page-head h1 {
  margin: 0 0 10px;
  font-size: 38px;
  font-weight: 700;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.balance-panel {
  padding: 32px 34px;
}

.balance-title {
  color: var(--muted);
  font-size: 16px;
}

.balance-total {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 28px;
  font-size: 46px;
  font-weight: 700;
}

.balance-total span {
  font-size: 20px;
  font-weight: 600;
}

.currency-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 58px;
  gap: 18px;
  margin-bottom: 20px;
}

.currency-card {
  min-height: 142px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 22px;
  background: #fff;
}

.currency-card.selected {
  border-color: #b8eff8;
  background: linear-gradient(90deg, #eefbfe, #fff);
  box-shadow: 0 0 0 3px rgba(81, 199, 222, 0.1);
}

.currency-card .currency-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
}

.flag {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #eef4f6;
  font-size: 22px;
}

.amount {
  font-size: 24px;
  font-weight: 700;
}

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

.more-pill {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  color: #9aa4aa;
  font-weight: 600;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.invite-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 28px;
  padding: 30px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 0 10px;
  color: #0f6f84;
  background: #e8f7fa;
  font-size: 13px;
  font-weight: 800;
}

.invite-hero h2 {
  max-width: 100%;
  margin: 0 0 12px;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 24px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.invite-hero p {
  max-width: 700px;
  margin: 0 0 22px;
  color: #5e6c75;
  font-size: 17px;
  line-height: 1.65;
}

.invite-hero .quick-actions {
  grid-template-columns: repeat(2, minmax(130px, max-content));
  justify-content: start;
  gap: 12px;
}

.qr-box {
  position: relative;
  width: 220px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #cfe3e8;
  border-radius: 12px;
  background:
    linear-gradient(90deg, #132d68 10px, transparent 10px) 0 0 / 22px 22px,
    linear-gradient(#132d68 10px, transparent 10px) 0 0 / 22px 22px,
    #f7fbfc;
  box-shadow: inset 0 0 0 14px #fff;
}

.qr-box span {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 8px solid var(--blue);
  border-radius: 6px;
  background: #fff;
}

.qr-box span:nth-child(1) {
  top: 28px;
  left: 28px;
}

.qr-box span:nth-child(2) {
  top: 28px;
  right: 28px;
}

.qr-box span:nth-child(3) {
  right: 28px;
  bottom: 28px;
}

.qr-box span:nth-child(4) {
  left: 72px;
  bottom: 54px;
  width: 30px;
  height: 30px;
  border-width: 6px;
}

.qr-box b {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  letter-spacing: 0;
}

.side-panel .quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.side-panel .quick-actions .btn {
  min-height: 56px;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 14px;
}

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

.btn {
  min-height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 20px;
  color: #303941;
  background: #fff;
  font-weight: 700;
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  border-color: #bdd4dc;
  background: #fbfdfe;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

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

.btn.primary {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.btn.primary:hover {
  background: var(--blue-2);
}

.btn.cyan {
  border-color: var(--cyan);
  color: var(--blue);
  background: var(--cyan);
}

.btn.danger {
  border-color: #f0c8c8;
  color: var(--red);
  background: #fff8f8;
}

.btn.tiny {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
}

.section {
  margin-top: 28px;
  padding: 26px 28px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

.link-button {
  border: 0;
  color: #1aa9c6;
  background: transparent;
  font-weight: 700;
}

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

.download-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #bfe2ea;
  border-radius: 8px;
  padding: 0 12px;
  color: #0f6f84;
  background: #f0fbfd;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms ease, border-color 160ms ease, background 160ms ease;
}

.download-link:hover {
  border-color: #7ecbda;
  background: #e5f8fb;
}

.download-link:active {
  transform: translateY(1px);
}

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

.table-actions.vertical {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.approval-actions {
  align-items: flex-start;
  flex-direction: column;
  min-width: 72px;
  flex-wrap: nowrap;
}

.approval-actions .btn {
  width: 72px;
  padding: 0 10px;
  white-space: nowrap;
}

.hash-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  padding: 0 10px;
  color: #4c5d66;
  background: #f5f8fa;
}

.toolbar {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(180px, 0.8fr)) auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.toolbar.simple {
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  grid-template-columns: minmax(0, 1fr);
}

.segmented {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.segmented button {
  min-height: 54px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 22px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  color: #fff;
  background: var(--blue);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.table.wide-table {
  min-width: 1000px;
  table-layout: auto;
}

.table.wide-table th,
.table.wide-table td {
  word-break: keep-all;
  overflow-wrap: normal;
  vertical-align: middle;
}

.table.wide-table th {
  padding: 0 14px;
}

.table.wide-table td {
  padding: 0 14px;
}

.table.wide-table th:nth-child(2),
.table.wide-table td:nth-child(2) {
  min-width: 160px;
}

.table.wide-table th:nth-child(4),
.table.wide-table td:nth-child(4),
.table.wide-table th:nth-child(5),
.table.wide-table td:nth-child(5) {
  min-width: 104px;
}

.table.trade-request-table th,
.table.trade-request-table td {
  padding-inline: 14px;
  font-size: 16px;
  line-height: 1.25;
  vertical-align: middle;
}

.table.trade-request-table th:nth-child(7),
.table.trade-request-table td:nth-child(7) {
  width: 18%;
}

.table th {
  height: 58px;
  padding: 0 18px;
  color: #20272e;
  background: #e9f0f3;
  font-size: 18px;
  text-align: left;
}

.table th:first-child {
  border-radius: 12px 0 0 12px;
}

.table th:last-child {
  border-radius: 0 12px 12px 0;
}

.table td {
  height: 76px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.table code,
.url-cell {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.url-cell {
  display: inline-block;
  max-width: 340px;
  overflow: hidden;
  color: #52606a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-note {
  display: block;
  max-width: 300px;
  line-height: 1.45;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border-radius: 18px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status.done {
  color: #248a65;
  background: #e9faef;
}

.status.pending {
  color: #aa6a00;
  background: #fff4dd;
}

.status.failed {
  color: var(--red);
  background: #ffecec;
}

.grid-wallet {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.wallet-card {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: #fff;
}

.wallet-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 22px;
}

.wallet-card .amount {
  margin-bottom: 10px;
}

.exchange-box {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  gap: 22px;
  align-items: center;
}

.exchange-card {
  min-height: 190px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 24px;
  background: #fbfbfb;
}

.exchange-card header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 700;
}

.exchange-card input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-size: 34px;
  outline: none;
}

.swap-button {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #111;
  background: #fff;
  font-size: 28px;
}

.layout-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
}

.side-panel {
  padding: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.metric {
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.metric b {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.check-grid,
.rule-grid,
.method-grid,
.insight-grid,
.operation-grid,
.doc-grid,
.kanban-grid,
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.check-card,
.rule-card,
.method-card,
.insight-grid article,
.operation-card,
.doc-card,
.kanban-column {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: #fbfdfe;
}

.check-card {
  display: grid;
  align-content: space-between;
  gap: 28px;
}

.check-card b,
.method-card h3,
.rule-card h3 {
  margin: 0;
  font-size: 21px;
}

.check-card span {
  color: #248a65;
  font-weight: 700;
}

.rule-card,
.method-card,
.operation-card,
.doc-card {
  display: grid;
  gap: 16px;
}

.rule-card p,
.method-card p,
.checkout-preview p,
.insight-grid span,
.notice-item p,
.operation-card p,
.doc-card p,
.kanban-column span {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.operation-card {
  align-content: space-between;
}

.operation-card b,
.doc-card b {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.safeheron-kill-panel {
  border-color: #f0c8c8;
  background: linear-gradient(180deg, #fffafa 0%, #fff 68%);
}

.safeheron-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.safeheron-control-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: #fbfdfe;
}

.safeheron-control-card.danger {
  border-color: #f0c8c8;
  background: #fff8f8;
}

.safeheron-control-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.safeheron-control-card h3 {
  margin: 0;
  font-size: 22px;
}

.safeheron-control-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.safeheron-control-card .btn {
  justify-self: start;
}

.safeheron-schedule-form {
  display: grid;
  grid-template-columns: 160px 1.1fr 1fr 1fr 1.1fr auto;
  gap: 14px;
  align-items: end;
}

.safeheron-schedule-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.safeheron-schedule-note span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfdfe;
}

.release-decision-panel {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.release-decision-card,
.release-gate-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfe;
}

.release-decision-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 260px;
  padding: 22px;
}

.release-decision-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.release-decision-card b {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.15;
}

.release-decision-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.release-decision-card.failed,
.release-gate-card.failed {
  border-color: #f0c5c5;
  background: #fffafa;
}

.release-decision-card.pending,
.release-gate-card.pending {
  border-color: #f3dfad;
  background: #fffdf8;
}

.release-decision-card.done,
.release-gate-card.done {
  border-color: #bde7ce;
  background: #fbfffc;
}

.product-audit-overview {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.product-audit-score,
.product-audit-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfe;
}

.product-audit-score {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 250px;
  padding: 22px;
}

.product-audit-score span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-audit-score b {
  display: block;
  color: #172733;
  font-size: 46px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.product-audit-score p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-audit-score.failed,
.product-audit-card.failed {
  border-color: #f0c5c5;
  background: #fffafa;
}

.product-audit-score.pending,
.product-audit-card.pending {
  border-color: #f3dfad;
  background: #fffdf8;
}

.product-audit-score.done,
.product-audit-card.done {
  border-color: #bde7ce;
  background: #fbfffc;
}

.product-audit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-audit-card {
  display: grid;
  gap: 14px;
  min-height: 238px;
  padding: 18px;
}

.product-audit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-audit-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.product-audit-card dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
}

.product-audit-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-audit-card dd {
  min-width: 0;
  margin: 0;
  color: #1b2a35;
  font-size: 13px;
  line-height: 1.45;
}

.product-audit-card code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.product-next-iteration {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: #f7fafb;
}

.product-next-iteration h3 {
  margin: 0;
  color: #172733;
  font-size: 18px;
}

.product-next-iteration ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #263642;
}

.product-next-iteration li {
  line-height: 1.55;
}

.product-handoff-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  border: 1px solid #bde7ce;
  border-radius: 12px;
  padding: 18px;
  background: #fbfffc;
}

.product-handoff-card span {
  color: #15704b;
  font-size: 12px;
  font-weight: 900;
}

.product-handoff-card h3 {
  margin: 6px 0 8px;
  color: #172733;
  font-size: 20px;
}

.product-handoff-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.product-handoff-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-handoff-lists section {
  min-width: 0;
  border: 1px solid #d9eee2;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

.product-handoff-lists strong {
  display: block;
  margin-bottom: 8px;
  color: #172733;
  font-size: 13px;
}

.product-handoff-lists ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #263642;
  font-size: 13px;
  line-height: 1.45;
}

.release-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-self: end;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.release-summary strong {
  font-size: 22px;
}

.release-summary small {
  color: var(--muted);
  font-weight: 800;
}

.release-gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.release-gate-card {
  display: grid;
  gap: 14px;
  min-height: 218px;
  padding: 18px;
}

.release-gate-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.release-gate-top strong {
  font-size: 17px;
  line-height: 1.35;
}

.release-gate-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.release-gate-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.release-gate-card dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
}

.release-gate-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.release-gate-card dd {
  min-width: 0;
  margin: 0;
  color: #1b2a35;
  font-size: 13px;
  line-height: 1.45;
}

.release-gate-card code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.launch-plan-grid {
  display: grid;
  gap: 14px;
}

.launch-plan-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fbfdfe;
}

.launch-plan-card.failed {
  border-color: #f0c5c5;
  background: #fffafa;
}

.launch-plan-card.pending {
  border-color: #f3dfad;
  background: #fffdf8;
}

.launch-plan-card.done {
  border-color: #bde7ce;
  background: #fbfffc;
}

.launch-plan-card header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: flex-start;
}

.launch-plan-card header > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eaf1f8;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.launch-plan-card strong {
  display: block;
  color: #172733;
  font-size: 18px;
  line-height: 1.3;
}

.launch-plan-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.launch-plan-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 12px;
}

.launch-plan-body > div {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.launch-plan-card b {
  color: #263642;
  font-size: 12px;
}

.launch-plan-card code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.launch-plan-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #263642;
}

.launch-plan-card li {
  line-height: 1.55;
}

.launch-plan-card footer {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.launch-plan-card footer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.doc-card code {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  overflow: auto;
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--blue);
  background: var(--cyan-soft);
  font-size: 13px;
}

.flow-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-steps article {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 18px;
  background: linear-gradient(180deg, #fbfdfe, #fff);
}

.flow-steps span {
  color: var(--cyan);
  font-weight: 900;
  font-size: 14px;
}

.flow-steps b {
  font-size: 18px;
}

.state-machine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.state-machine-card {
  min-height: 420px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fbfdfe;
}

.state-machine-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.state-machine-card header span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.state-machine-card header strong {
  font-size: 21px;
}

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

.state-rule-row {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.state-rule-row b {
  color: #18252d;
  font-size: 15px;
}

.state-rule-row span,
.state-rule-row small,
.state-rule-row em,
.state-machine-card footer {
  color: var(--muted);
  line-height: 1.45;
}

.state-rule-row span {
  font-size: 14px;
  font-weight: 700;
}

.state-rule-row small,
.state-rule-row em,
.state-machine-card footer {
  font-size: 12px;
}

.state-rule-row em {
  font-style: normal;
}

.node-ledger-table td {
  height: 68px;
}

.role-experience-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.role-policy-card {
  min-height: 178px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fbfdfe;
}

.role-policy-card.main {
  background: linear-gradient(180deg, #f4fbfd, #fff);
}

.role-policy-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.role-policy-card h3 {
  margin: 0;
  color: #14222c;
  font-size: 22px;
  line-height: 1.35;
}

.role-policy-card p {
  margin: 0;
  color: #31424d;
  line-height: 1.6;
}

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

.boundary-list li {
  border-left: 3px solid #a9dbe5;
  padding-left: 10px;
  color: #263946;
  line-height: 1.45;
}

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

.mobile-route-grid .btn {
  width: 100%;
}

.route-disabled {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
  background: #eef3f5;
  font-size: 13px;
  font-weight: 800;
}

.permission-module-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.permission-module-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 7px 10px;
  color: #20323f;
  background: #eef8fb;
  font-size: 13px;
  font-weight: 800;
}

.permission-module-strip b {
  color: var(--blue);
}

.table.permission-matrix-table {
  min-width: 0;
  table-layout: fixed;
}

.table.permission-matrix-table th,
.table.permission-matrix-table td {
  padding: 10px 12px;
  font-size: 15px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.permission-matrix-table th:first-child,
.permission-matrix-table td:first-child {
  width: 17%;
}

.permission-matrix-table th:last-child,
.permission-matrix-table td:last-child {
  width: 16%;
}

.permission-matrix-table td {
  vertical-align: top;
}

.permission-scope {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  background: #f7fafb;
  line-height: 1.45;
}

.permission-scope b {
  width: fit-content;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 12px;
  color: #24414b;
  background: #e8f2f5;
}

.permission-scope.allowed {
  border-color: rgba(43, 183, 155, 0.24);
  background: var(--green-soft);
}

.permission-scope.allowed b {
  color: #0f6656;
  background: rgba(43, 183, 155, 0.14);
}

.permission-scope.limited {
  border-color: rgba(220, 154, 40, 0.28);
  background: #fff8eb;
}

.permission-scope.limited b {
  color: #8c5c0f;
  background: rgba(220, 154, 40, 0.16);
}

.permission-scope.denied {
  border-color: rgba(217, 74, 74, 0.22);
  background: #fff3f3;
}

.permission-scope.denied b {
  color: #9e2e2e;
  background: rgba(217, 74, 74, 0.14);
}

.permission-scope span {
  color: #344551;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.permission-matrix-table .route-note {
  max-width: none;
  font-size: 13px;
}

.table.field-visibility-table {
  min-width: 0;
  table-layout: fixed;
}

.table.field-visibility-table th,
.table.field-visibility-table td {
  padding: 10px 12px;
  font-size: 15px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.field-visibility-table th:first-child,
.field-visibility-table td:first-child {
  width: 14%;
}

.field-visibility-table th:nth-child(2),
.field-visibility-table td:nth-child(2) {
  width: 10%;
}

.field-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.field-chip-list span,
.field-chip {
  display: inline-flex;
  max-width: 100%;
  border-radius: 7px;
  padding: 4px 7px;
  color: #29404d;
  background: #eef7f9;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.field-chip-list.redacted span {
  color: #7b5617;
  background: #fff4dc;
}

.field-chip-list.hidden span {
  color: #8f3030;
  background: #fff0f0;
}

.field-chip.empty {
  color: var(--muted);
  background: #f1f4f5;
}

.process-blueprint-section .section-head p {
  margin: 6px 0 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.55;
}

.process-blueprint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.process-blueprint-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fbfdfe;
}

.process-blueprint-card.withdrawal {
  grid-column: span 2;
  background: linear-gradient(180deg, #f7fbfd, #fff);
}

.process-blueprint-card.commission {
  background: linear-gradient(180deg, #fbf8f1, #fff);
}

.process-blueprint-grid.count-1 {
  grid-template-columns: 1fr;
}

.process-blueprint-grid.count-1 .process-blueprint-card {
  grid-template-rows: auto auto auto auto auto;
}

.process-blueprint-grid.count-1 .process-stage-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-blueprint-grid.count-1 .process-stage-row {
  align-content: start;
}

.process-blueprint-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.process-blueprint-card header > div {
  min-width: 0;
}

.process-blueprint-card header span,
.process-blueprint-card footer {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.process-blueprint-card h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.process-blueprint-card p {
  margin: 0;
  color: #31424d;
  line-height: 1.55;
}

.process-stage-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.process-stage-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(56px, auto) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.process-stage-row > span:first-child {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.process-stage-row b {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.process-stage-row em {
  color: #51616c;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.process-stage-row small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.process-branch {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px dashed #c9d8e3;
  border-radius: 10px;
  padding: 10px;
  background: #f8fbfc;
}

.process-branch > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 860;
  line-height: 1.25;
}

.process-branch small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.kanban-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  align-items: start;
}

.kanban-column {
  display: grid;
  gap: 14px;
}

.kanban-column h3 {
  margin: 0;
  font-size: 20px;
}

.kanban-column article {
  display: grid;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 14px;
  background: #fff;
}

.method-top,
.method-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.method-meta {
  align-items: flex-end;
  color: #52606a;
  font-size: 14px;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--blue);
  background: var(--cyan-soft);
  font-size: 13px;
  font-weight: 800;
}

.checkout-preview {
  min-height: 420px;
  display: grid;
  align-content: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
  background: linear-gradient(180deg, #f9fcfd, #fff);
  text-align: center;
}

.checkout-preview img {
  width: 210px;
  height: 92px;
  margin: 0 auto;
  object-fit: contain;
}

.checkout-preview h3 {
  margin: 0;
  font-size: 24px;
}

.checkout-preview strong {
  display: block;
  color: var(--blue);
  font-size: 36px;
}

.code-block {
  overflow: auto;
  margin: 0;
  border-radius: 12px;
  padding: 22px;
  color: #e8fbff;
  background: #071f5a;
  font-size: 15px;
  line-height: 1.7;
}

.bar-chart {
  height: 280px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
  border-radius: 12px;
  padding: 24px;
  background: #f6fafb;
}

.bar-item {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  align-items: end;
  text-align: center;
}

.bar-value {
  color: #52606a;
  font-size: 14px;
  font-weight: 700;
}

.bar {
  width: min(64px, 70%);
  min-height: 18px;
  justify-self: center;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.notice-list {
  display: grid;
  gap: 14px;
}

.task-mini-list,
.task-board {
  display: grid;
  gap: 14px;
}

.task-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.task-mini-card,
.task-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfe;
}

.task-mini-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}

.task-mini-card b,
.task-card h3 {
  display: block;
  margin: 6px 0;
  line-height: 1.25;
}

.task-mini-card p,
.task-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.task-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.workflow-progress-section .section-head p {
  margin: 6px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.55;
}

.workflow-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.workflow-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fbfdfe;
}

.workflow-card.high {
  border-color: #f4c7a1;
  background: #fff8f1;
}

.workflow-card.medium {
  border-color: #ccebf2;
  background: #f7fcfd;
}

.workflow-card-top,
.workflow-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workflow-card-top > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.workflow-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.workflow-facts div {
  min-width: 0;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.workflow-facts span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.workflow-facts b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.workflow-card-foot code {
  font-size: 12px;
}

.task-mini-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.guided-actions-section .section-head p {
  margin: 6px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

.guided-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 16px;
  margin-top: 18px;
}

.guided-side-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.guided-action-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfe;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.guided-action-card:hover {
  transform: translateY(-1px);
  border-color: #c9d8e3;
  box-shadow: 0 18px 44px rgb(35 61 86 / .09);
}

.guided-action-card:active {
  transform: translateY(0);
}

.guided-action-card.primary-card {
  min-height: 300px;
  padding: 22px;
  background: linear-gradient(180deg, #f7fbfc, #eef8fb);
  border-color: #b8e8f1;
}

.guided-card-head,
.guided-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guided-card-head > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.guided-action-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  text-wrap: balance;
}

.guided-action-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.guided-decision-strip {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 10px;
}

.guided-decision-strip div,
.guided-evidence-grid > div,
.guided-mini-decision {
  min-width: 0;
  border-radius: 10px;
  border: 1px solid #d7e7ee;
  background: rgb(255 255 255 / .82);
  padding: 12px;
}

.guided-decision-strip span,
.guided-evidence-grid span,
.guided-mini-decision small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.guided-decision-strip b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.guided-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guided-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guided-evidence-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.guided-evidence-grid b {
  display: block;
  color: #243d50;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.guided-alert {
  border-radius: 10px;
  border: 1px solid #ffd8bd;
  background: #fff7ed;
  color: #8a3d13;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.guided-mini-decision {
  display: grid;
  gap: 3px;
  background: #f7fbfd;
}

.guided-mini-decision span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.35;
}

.guided-mini-decision small {
  margin: 0;
  line-height: 1.35;
}

.guided-checklist span,
.guided-criteria {
  min-width: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / .76);
  border: 1px solid #d9e8ee;
  padding: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.guided-criteria {
  color: #315268;
  background: #e9f6fa;
}

.guided-card-foot {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.task-card {
  display: grid;
  align-content: space-between;
  gap: 16px;
  min-height: 260px;
  padding: 20px;
}

.task-card header,
.task-foot,
.task-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-card header,
.task-foot {
  justify-content: space-between;
}

.task-foot {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.task-actions {
  flex-wrap: wrap;
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.priority-badge.high {
  color: #8b2d12;
  background: #ffe9d7;
}

.priority-badge.medium {
  color: #735200;
  background: #fff2c8;
}

.priority-badge.low {
  color: #23644c;
  background: #daf8eb;
}

.notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  background: #fbfdfe;
}

.notice-item b {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.delivery-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.delivery-card {
  min-height: 174px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fbfdfe;
}

.delivery-card.sent {
  border-color: #cdeede;
  background: #f5fdf9;
}

.delivery-card.failed {
  border-color: #f1c8c8;
  background: #fff8f8;
}

.delivery-card.retry_scheduled,
.delivery-card.queued {
  border-color: #f0dfad;
  background: #fffbec;
}

.delivery-card header,
.delivery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.delivery-card header span,
.delivery-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.delivery-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.delivery-card p {
  margin: 0;
  color: #4e5a64;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.document-timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}

.document-version-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fbfdfe;
}

.document-version-card.expired {
  border-color: #f1c8c8;
  background: #fff8f8;
}

.document-version-card.expiring_soon {
  border-color: #f0dfad;
  background: #fffbec;
}

.document-version-card.valid,
.document-version-card.verified {
  border-color: #cdeede;
  background: #f5fdf9;
}

.document-version-card header,
.document-version-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.document-version-card header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.document-version-card h3 {
  margin: 0;
  font-size: 18px;
}

.document-version-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.document-version-card .internal-note {
  color: #45515d;
  border-left: 3px solid var(--brand);
  padding-left: 10px;
}

.document-version-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
}

.document-version-meta b {
  color: var(--ink);
}

.document-intel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.document-intel-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fbfdfe;
  min-width: 0;
}

.document-intel-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.document-intel-panel header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.document-intel-panel h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

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

.document-intel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #edf1f4;
}

.document-intel-row b,
.document-intel-row p {
  overflow-wrap: anywhere;
}

.document-intel-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.document-intel-row .internal-note {
  color: #45515d;
  border-left: 3px solid var(--brand);
  padding-left: 10px;
}

.document-intel-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.approval-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.approval-evidence-card {
  display: grid;
  gap: 14px;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fbfdfe;
}

.approval-evidence-card header,
.approval-evidence-card footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.approval-evidence-card header span,
.approval-evidence-card footer span {
  color: var(--muted);
  font-size: 12px;
}

.approval-evidence-card h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.approval-evidence-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.approval-check-list {
  display: grid;
  gap: 8px;
}

.approval-check-list div {
  display: grid;
  grid-template-columns: minmax(92px, 0.8fr) minmax(64px, 0.45fr) minmax(0, 1.8fr);
  gap: 10px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.approval-check-list b {
  font-size: 13px;
}

.approval-check-list span,
.approval-check-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.approval-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.approval-template-card {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fbfdfe;
}

.approval-template-card header {
  display: grid;
  gap: 5px;
}

.approval-template-card header span,
.approval-template-card footer,
.template-check-list span,
.template-check-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.approval-template-card header b {
  font-size: 16px;
}

.approval-template-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.template-check-list {
  display: grid;
  gap: 8px;
}

.template-check-list div {
  display: grid;
  grid-template-columns: minmax(92px, 0.9fr) minmax(58px, 0.5fr) minmax(0, 1.7fr);
  gap: 8px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.template-check-list strong {
  font-size: 13px;
}

.pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.pager button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #59646b;
  font-weight: 700;
}

.pager button.active {
  background: #e8faff;
  color: var(--blue);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 31, 90, 0.25);
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 31, 90, 0.22);
}

.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.modal h3 {
  margin: 0;
  font-size: 24px;
}

.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 24px 26px 0;
  overscroll-behavior: contain;
}

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

.risk-confirm-panel {
  display: grid;
  gap: 14px;
  margin: 10px 0 4px;
  border: 1px solid #ebb37d;
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, #fff8f1 0%, #fffaf6 100%);
}

.risk-confirm-panel.standalone {
  margin-top: 0;
}

.risk-confirm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.risk-confirm-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.risk-confirm-head span {
  color: #a65300;
  font-size: 12px;
  font-weight: 800;
}

.risk-confirm-head strong {
  color: var(--ink);
  font-size: 15px;
}

.risk-confirm-head small {
  flex: 0 0 auto;
  border: 1px solid #f1c49a;
  border-radius: 999px;
  padding: 5px 9px;
  color: #a65300;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.risk-confirm-summary {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 10px;
}

.risk-confirm-summary div {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 1px solid #f0d5bb;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.74);
}

.risk-confirm-summary span,
.risk-confirm-preflight > span {
  color: #9c5b1a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.risk-confirm-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.risk-confirm-preflight {
  display: grid;
  gap: 8px;
}

.risk-confirm-preflight ul {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.risk-confirm-preflight ul {
  padding-left: 18px;
}

.risk-confirm-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.risk-confirm-checklist span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #f0d5bb;
  border-radius: 8px;
  padding: 7px 8px;
  color: #8a5b2d;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.risk-confirm-checklist span.done {
  border-color: #89c3a6;
  color: #15704b;
  background: #eefaf4;
}

.risk-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.risk-check input {
  margin-top: 2px;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 12px;
  margin: 12px -26px 0;
  border-top: 1px solid var(--line);
  padding: 14px 26px 24px;
  background: #fff;
}

.modal-actions .btn.primary:disabled,
.modal-actions .btn.primary.disabled-by-risk {
  cursor: not-allowed;
  opacity: 0.62;
}

.field-helper {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.modal-error {
  display: none;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--red);
  background: #fff1f1;
  font-weight: 700;
}

.modal-error.show {
  display: block;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: none;
  min-width: 260px;
  border-radius: 12px;
  padding: 16px 18px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 18px 40px rgba(7, 31, 90, 0.22);
}

.toast.show {
  display: block;
}

.empty {
  padding: 52px;
  text-align: center;
  color: var(--muted);
}

.empty.compact {
  padding: 28px;
}

.permission-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.permission-panel h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.permission-panel p {
  margin: 0 0 10px;
  color: #4d5a63;
  line-height: 1.7;
}

.permission-actions {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.activity-scrim {
  position: fixed;
  inset: 0;
  z-index: 26;
  background: rgba(7, 31, 90, 0.18);
}

.activity-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 27;
  width: min(460px, calc(100vw - 24px));
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -24px 0 64px rgba(7, 31, 90, 0.18);
}

.activity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 24px;
}

.activity-head h2 {
  margin: 5px 0 8px;
  font-size: 24px;
}

.activity-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.activity-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 18px 0;
}

.activity-summary article {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfdfe;
}

.activity-summary span,
.activity-item-top {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.activity-summary b {
  font-size: 26px;
}

.activity-modules {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px 0;
}

.activity-modules span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 9px;
  color: #0f6f84;
  background: #e9f9fc;
  font-size: 12px;
  font-weight: 800;
}

.activity-modules span.disabled {
  color: #8c969c;
  background: #f2f5f6;
}

.activity-error {
  margin: 14px 18px 0;
  border-radius: 10px;
  padding: 11px 12px;
  color: #8b2d12;
  background: #ffe9d7;
  font-size: 13px;
  font-weight: 800;
}

.activity-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
}

.activity-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 0 18px 24px;
}

.activity-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fbfdfe;
}

.activity-item-top,
.activity-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-item h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.activity-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.activity-item.skeleton span,
.activity-item.skeleton b,
.activity-item.skeleton p {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef3f5, #f9fbfc, #eef3f5);
  background-size: 200% 100%;
}

.activity-item.skeleton b {
  width: 72%;
  height: 18px;
}

.activity-item.skeleton p {
  width: 88%;
}

@media (prefers-reduced-motion: no-preference) {
  .activity-panel {
    animation: activity-in 180ms ease-out;
  }

  .activity-item.skeleton span,
  .activity-item.skeleton b,
  .activity-item.skeleton p {
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
  }
}

@keyframes activity-in {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes skeleton-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 220px 1fr;
  }

  .toolbar,
  .toolbar.simple,
  .layout-two,
  .form-grid.two,
  .exchange-box {
    grid-auto-columns: auto;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .currency-strip,
  .grid-wallet,
  .metric-grid,
  .task-board,
  .check-grid,
  .rule-grid,
  .method-grid,
  .insight-grid,
  .operation-grid,
  .doc-grid,
  .release-gate-grid,
  .product-audit-grid,
  .state-machine-grid,
  .role-experience-grid,
  .approval-template-grid,
  .process-blueprint-grid,
  .safeheron-control-grid,
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-blueprint-card.withdrawal {
    grid-column: span 2;
  }

  .kanban-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .bar-chart {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
  }

  .launch-plan-body {
    grid-template-columns: 1fr;
  }

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

  .bar-item {
    min-height: 220px;
  }

  .invite-hero {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .qr-box {
    width: 190px;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .login-screen,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .login-screen {
    padding: 0;
  }

  .login-promo {
    border-radius: 0;
    padding: 42px 24px;
  }

  .login-main {
    border-radius: 0;
  }

  .login-card {
    width: auto;
    margin: 36px 18px;
  }

  .role-picker {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 25;
    width: min(300px, 86vw);
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 24px 0 60px rgba(7, 31, 90, 0.18);
    grid-template-rows: auto;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .topbar {
    min-height: 74px;
    gap: 10px;
    padding: 0 16px;
  }

  .topbar-left {
    flex: 1 1 auto;
    gap: 12px;
    overflow: hidden;
  }

  .topbar-actions {
    display: none;
  }

  .mobile-activity {
    display: grid;
    flex: 0 0 34px;
  }

  .breadcrumb {
    max-width: calc(100vw - 132px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions .top-icon:not(.bell),
  .api-chip,
  .permission-note {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .user-menu {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    gap: 0;
    overflow: hidden;
    padding: 0;
    font-size: 0;
  }

  .user-menu .avatar {
    font-size: 14px;
  }

  .content {
    max-width: 100vw;
    padding: 24px 16px calc(104px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .mobile-action-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 18;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    border: 1px solid rgba(207, 217, 222, 0.92);
    border-radius: 18px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 44px rgba(7, 31, 90, 0.16);
  }

  .mobile-action-dock button {
    min-width: 0;
    min-height: 58px;
    display: grid;
    place-items: center;
    gap: 3px;
    border: 0;
    border-radius: 13px;
    color: #66737c;
    background: transparent;
    transition: background 160ms ease, color 160ms ease, transform 120ms ease;
  }

  .mobile-action-dock button:active {
    transform: translateY(1px) scale(0.98);
  }

  .mobile-action-dock button.active {
    color: #0b6d83;
    background: var(--cyan-soft);
  }

  .mobile-action-dock span {
    display: block;
    height: 20px;
    color: currentColor;
    font-size: 18px;
    font-weight: 800;
    line-height: 20px;
  }

  .mobile-action-dock b {
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .balance-panel,
  .section {
    padding: 20px 16px;
  }

  .invite-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .invite-hero h2 {
    font-size: 18px;
  }

  .invite-hero .quick-actions {
    grid-template-columns: 1fr;
  }

  .qr-box {
    width: min(184px, 100%);
    justify-self: start;
  }

  .risk-confirm-head {
    align-items: flex-start;
  }

  .risk-confirm-head small {
    white-space: nowrap;
  }

  .risk-confirm-summary,
  .risk-confirm-checklist {
    grid-template-columns: 1fr;
  }

  .balance-total {
    flex-wrap: wrap;
    font-size: 34px;
  }

  .currency-strip,
  .grid-wallet,
  .metric-grid,
  .quick-actions,
  .document-timeline-grid,
	  .document-intel-grid,
	  .approval-evidence-grid,
	  .approval-template-grid,
    .process-blueprint-grid,
	  .delivery-flow-grid,
	  .release-decision-panel,
	  .product-audit-overview,
	  .product-audit-grid,
    .product-handoff-card,
    .product-handoff-lists,
    .safeheron-control-grid,
	  .release-gate-grid,
	  .launch-plan-body {
	    grid-template-columns: 1fr;
	  }

	  .safeheron-schedule-form {
	    grid-template-columns: 1fr;
	  }

	  .launch-plan-card header,
	  .launch-plan-card footer {
	    grid-template-columns: 1fr;
	  }

	  .launch-plan-card header > span {
	    width: 36px;
	    height: 36px;
	  }

	  .process-stage-row {
	    grid-template-columns: 30px minmax(0, 1fr) auto;
	  }

	  .process-stage-row em {
	    grid-column: 2 / 3;
	    white-space: normal;
	  }

	  .process-stage-row .status {
	    grid-column: 3 / 4;
	    justify-self: end;
	  }

  .process-blueprint-grid.count-1 .process-stage-list {
    grid-template-columns: 1fr;
  }

  .process-blueprint-card.withdrawal {
    grid-column: auto;
  }

  .process-branch-grid {
    grid-template-columns: 1fr;
  }

  .approval-check-list div,
  .template-check-list div {
    grid-template-columns: 1fr;
  }

  .side-panel .quick-actions {
    grid-template-columns: 1fr;
  }

  .metric {
    padding: 18px;
  }

  .metric b {
    font-size: 24px;
    overflow-wrap: anywhere;
  }

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

  .section-head .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .section-head .table-actions {
    width: 100%;
  }

  .section-head .inline-actions {
    width: 100%;
    justify-content: stretch;
  }

  .section-head .inline-actions .link-button {
    flex: 1 1 160px;
  }

  .section-head .btn,
  .section-head .link-button {
    width: 100%;
    text-align: center;
  }

  .page-head h1 {
    font-size: 34px;
  }

  .page-head p {
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .page-data-status,
  .page-data-main {
    grid-template-columns: 1fr;
  }

  .page-data-status {
    margin-top: -8px;
    padding: 12px;
  }

  .page-data-main small {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .page-data-actions {
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }

  .check-grid,
  .rule-grid,
  .method-grid,
  .insight-grid,
  .guided-layout,
  .guided-checklist,
  .guided-decision-strip,
  .guided-evidence-grid,
  .workflow-card-grid,
  .state-machine-grid,
  .role-experience-grid,
  .operation-grid,
  .doc-grid,
  .flow-steps,
  .kanban-grid,
  .bar-chart {
    grid-template-columns: 1fr;
  }

  .notice-item,
  .task-mini-card,
  .state-machine-card header,
  .guided-card-head,
  .guided-card-foot,
  .task-card header,
  .task-foot,
  .method-top,
  .method-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-board,
  .task-mini-card,
  .guided-layout {
    grid-template-columns: 1fr;
  }

  .workflow-card-top,
  .workflow-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .workflow-facts {
    grid-template-columns: 1fr;
  }

  .task-mini-side {
    justify-items: start;
  }

  .table:not(.responsive-table) {
    min-width: 880px;
  }

  .responsive-table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
  }

  .responsive-table td {
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    border-bottom: 0;
    padding: 8px 0;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .permission-scope {
    min-width: 0;
    max-width: none;
  }

  .permission-matrix-table th:first-child,
  .permission-matrix-table td:first-child,
  .permission-matrix-table th:last-child,
  .permission-matrix-table td:last-child {
    width: auto;
  }

  .field-visibility-table th:first-child,
  .field-visibility-table td:first-child,
  .field-visibility-table th:nth-child(2),
  .field-visibility-table td:nth-child(2) {
    width: auto;
  }

  .permission-matrix-table.responsive-table td {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .permission-matrix-table strong {
    display: block;
    overflow-wrap: anywhere;
  }

  .table.wide-table {
    min-width: 0;
  }

  .table.wide-table th,
  .table.wide-table td {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .responsive-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 700;
  }

  .section {
    overflow-x: auto;
  }

  .permission-panel,
  .permission-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-scrim {
    background: rgba(7, 31, 90, 0.24);
  }

  .activity-panel {
    width: min(100vw, 430px);
    border-left: 0;
  }

  .activity-head,
  .activity-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .activity-summary {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

  .activity-modules,
  .activity-toolbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .activity-item-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}
