:root {
  --ink: #172033;
  --muted: #768195;
  --line: rgba(28, 39, 60, .08);
  --card: #ffffff;
  --soft: #f4f7fb;
  --blue: #2f63ee;
  --blue-dark: #183463;
  --cyan: #39c6d8;
  --green: #27a96b;
  --amber: #df8b1f;
  --red: #de4b4b;
  --shadow: 0 14px 36px rgba(22, 35, 62, .10);
  --tech-glow: 0 0 20px rgba(47, 99, 238, .25);
  --tech-cyan-glow: 0 0 18px rgba(57, 198, 216, .22);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(47, 99, 238, .14), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(57, 198, 216, .18), transparent 30%),
    linear-gradient(180deg, #f7f9fc 0%, #dfe6ef 100%);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 99, 238, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 99, 238, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 70%);
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.phone-shell {
  width: min(430px, 100vw);
  height: min(920px, 100vh);
  min-height: 720px;
  position: relative;
  display: grid;
  grid-template-rows: 34px auto 1fr 72px;
  overflow: hidden;
  border-radius: 34px;
  background: #edf2f8;
  box-shadow:
    0 28px 88px rgba(13, 26, 48, .28),
    0 0 0 1px rgba(47, 99, 238, .08),
    inset 0 0 0 1px rgba(255, 255, 255, .5);
}

.phone-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  border-radius: inherit;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(47, 99, 238, .015) 2px,
    rgba(47, 99, 238, .015) 4px
  );
}

.phone-shell.is-auth {
  grid-template-rows: 34px 1fr;
  background: #f6f8fc;
}

.global-watermark {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: space-around;
  gap: 42px 18px;
  padding: 78px 14px 92px;
  overflow: hidden;
  opacity: .13;
  color: #17315f;
}

.global-watermark span {
  display: block;
  transform: rotate(-24deg);
  transform-origin: center;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
}

.app-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items: center;
  padding: 12px 16px 10px;
  position: relative;
  z-index: 1;
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 99, 238, .15), rgba(57, 198, 216, .15), transparent);
}

.title-stack { min-width: 0; }

.section-name {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -.3px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(47, 99, 238, .12);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 24px rgba(22, 35, 62, .08);
  transition: box-shadow .25s, border-color .25s;
}

.icon-btn:active {
  box-shadow: 0 0 18px rgba(47, 99, 238, .18);
  border-color: rgba(47, 99, 238, .28);
}

.back-btn {
  opacity: 0;
  pointer-events: none;
}

.back-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.app-view {
  min-height: 0;
  overflow: auto;
  padding: 4px 16px 22px;
  position: relative;
}

.phone-shell.is-auth .app-view {
  padding: 0;
  height: 100%;
}

.phone-shell.is-auth .global-watermark {
  display: none !important;
}

.phone-shell.is-auth .bottom-dock-slot {
  display: none !important;
}

.app-view.has-bottom-dock {
  padding-bottom: 96px;
}

.bottom-dock-slot {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 72px;
  z-index: 9;
  pointer-events: none;
}

.bottom-dock-slot:empty {
  display: none;
}

.route-subtitle {
  margin: 0 2px 12px;
  color: var(--muted);
  font-size: 13px;
}

.login-screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #1a3cc7 0%, #2650e8 35%, #eef1f7 35%, #f5f7fb 100%);
}

.login-hero {
  position: relative;
  padding: 48px 28px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(47, 99, 238, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 99, 238, .05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 70%);
  z-index: 0;
}

.login-brand {
  text-align: center;
  color: #fff;
  z-index: 1;
}

.login-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.login-logo svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.login-logo span {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
}

.login-brand h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.login-brand p {
  margin: 0;
  font-size: 13px;
  opacity: .65;
  font-weight: 500;
}

.login-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-deco i {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.login-deco i:nth-child(1) {
  width: 280px; height: 280px;
  right: -60px; top: -80px;
}

.login-deco i:nth-child(2) {
  width: 160px; height: 160px;
  left: -40px; bottom: -20px;
}

.login-deco i:nth-child(3) {
  width: 80px; height: 80px;
  right: 40px; top: 60px;
  background: rgba(255,255,255,.12);
}

.login-deco i:nth-child(4) {
  width: 40px; height: 40px;
  left: 60px; top: 100px;
  background: rgba(255,255,255,.06);
}

.login-panel {
  margin: -28px 16px 24px;
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px);
  box-shadow:
    0 8px 48px rgba(18, 32, 76, .12),
    0 0 0 1px rgba(47, 99, 238, .06);
  position: relative;
  z-index: 1;
}

.login-panel h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.login-desc {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.login-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.login-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 48px;
  border: 1px solid rgba(28, 39, 60, .1);
  border-radius: 14px;
  background: #f8fafc;
  transition: border-color .2s;
}

.login-field:focus-within {
  border-color: var(--blue);
  background: #fff;
}

.login-field-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}

.login-field input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.login-field input::placeholder {
  color: var(--muted);
  font-size: 14px;
}

.login-captcha-row {
  display: flex;
  gap: 10px;
}

.login-captcha-row .login-field {
  flex: 1;
}

.captcha-btn {
  flex-shrink: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 14px;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s;
}

.captcha-btn:hover {
  background: rgba(47, 99, 238, .06);
}

.login-btn {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

.form-card label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.form-card input, .form-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8fafc;
  color: var(--ink);
  outline: none;
}

.form-card input {
  height: 44px;
  padding: 0 13px;
}

.form-card textarea {
  min-height: 84px;
  resize: none;
  padding: 12px 13px;
}

.primary, .secondary {
  min-height: 44px;
  border-radius: 15px;
  border: 0;
  font-weight: 900;
}

.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(47, 99, 238, .22);
}

.secondary {
  color: var(--blue);
  border: 1px solid rgba(47, 99, 238, .18);
  background: #eef4ff;
}

.demo-account {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  background: #f5f7fb;
  font-size: 12px;
  text-align: center;
}

.boot-screen {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 34px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(47, 99, 238, .06), transparent 50%),
    linear-gradient(180deg, #f8fbff, #ecf2fa);
}

.loader-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow), 0 0 24px rgba(47, 99, 238, .12);
}

.loader-ring span {
  width: 48px;
  height: 48px;
  border: 4px solid #e1e9f7;
  border-top-color: var(--blue);
  border-right-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 22px;
  border: 1px solid rgba(47, 99, 238, .1);
}

@keyframes spin { to { transform: rotate(360deg); } }

.boot-screen h2 { margin: 0 0 8px; }
.boot-screen p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }

.boot-list {
  width: 100%;
  display: grid;
  gap: 10px;
}

.boot-list div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 15px;
  background: #fff;
  color: var(--muted);
  text-align: left;
}

.boot-list i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e9eef6;
  color: #fff;
  font-style: normal;
  font-size: 12px;
}

.boot-list .done { color: var(--ink); }
.boot-list .done i { background: var(--green); }

.project-board {
  min-height: 132px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(12, 36, 70, .2), rgba(12, 36, 70, .05)),
    url("data:image/svg+xml,%3Csvg width='760' height='260' viewBox='0 0 760 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='bg' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%23102744'/%3E%3Cstop offset='.52' stop-color='%231a4b86'/%3E%3Cstop offset='1' stop-color='%2339c6d8'/%3E%3C/linearGradient%3E%3CradialGradient id='glow' cx='.76' cy='.18' r='.52'%3E%3Cstop stop-color='%23ffffff' stop-opacity='.48'/%3E%3Cstop offset='1' stop-color='%23ffffff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='760' height='260' fill='url(%23bg)'/%3E%3Ccircle cx='610' cy='45' r='150' fill='url(%23glow)'/%3E%3Cpath d='M62 192 C160 116 229 143 312 82 C417 4 509 76 681 32' fill='none' stroke='%23ffffff' stroke-opacity='.38' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M26 226 C157 175 239 224 355 158 C477 88 586 150 734 87' fill='none' stroke='%23aef5ff' stroke-opacity='.42' stroke-width='5' stroke-linecap='round'/%3E%3Cg fill='%23ffffff' fill-opacity='.24'%3E%3Ccircle cx='128' cy='98' r='24'/%3E%3Ccircle cx='524' cy='170' r='34'/%3E%3Ccircle cx='678' cy='158' r='18'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='2'%3E%3Crect x='92' y='42' width='112' height='70' rx='18'/%3E%3Crect x='292' y='132' width='140' height='82' rx='22'/%3E%3Crect x='548' y='74' width='112' height='68' rx='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 42px rgba(17, 39, 68, .22);
}

.profile-identity span {
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 800;
}

.profile-identity strong {
  display: block;
  margin: 7px 0 5px;
  font-size: 23px;
}

.profile-identity p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.45;
}

.project-search {
  margin-bottom: 8px;
}

.project-filter-row {
  margin-bottom: 10px;
}

.project-filter-row button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.project-filter-row span {
  color: inherit;
  opacity: .72;
  font-size: 11px;
}

.project-list {
  display: grid;
  gap: 9px;
}

.project-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(28, 39, 60, .07);
  border-radius: 18px;
  padding: 12px;
  text-align: left;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 26px rgba(22,35,62,.06);
}

.project-row strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
}

.project-row em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.project-row b {
  padding: 5px 9px;
  border-radius: 99px;
  color: var(--blue);
  background: #eef4ff;
  font-size: 11px;
  white-space: nowrap;
}

.project-row-enter {
  animation: project-row-enter .24s ease both;
  animation-delay: calc(var(--row-index, 0) * 18ms);
}

.project-load-state {
  display: grid;
  place-items: center;
  min-height: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@keyframes project-row-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.finance-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.finance-ledger button {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  text-align: left;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: var(--shadow);
}

.finance-ledger span, .finance-ledger em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.finance-ledger strong {
  display: block;
  margin: 6px 0 3px;
  font-size: 22px;
}

.ledger-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  align-items: center;
  margin-bottom: 10px;
}

.ledger-toolbar .search-pill {
  margin-bottom: 0;
}

.ledger-toolbar button {
  height: 40px;
  border: 0;
  border-radius: 14px;
  padding: 0 13px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 24px rgba(47,99,238,.18);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.ledger-book-list {
  display: grid;
  gap: 8px;
}

.ledger-compact-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 9px;
  align-items: center;
  min-height: 64px;
  border: 1px solid rgba(28,39,60,.06);
  border-radius: 17px;
  padding: 11px;
  text-align: left;
  background: #f8fafc;
}

.ledger-compact-row strong,
.ledger-compact-row em {
  display: block;
}

.ledger-compact-row strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.ledger-compact-row em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ledger-compact-row b {
  color: #0f6a76;
  font-size: 16px;
}

.ledger-compact-row i {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.ledger-activity-list {
  display: grid;
  gap: 8px;
}

.ledger-activity-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 9px;
  align-items: center;
  min-height: 62px;
  border: 1px solid rgba(28,39,60,.06);
  border-radius: 16px;
  padding: 10px;
  text-align: left;
  background: #f7f9fc;
}

.ledger-activity-row strong,
.ledger-activity-row em {
  display: block;
}

.ledger-activity-row strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.ledger-activity-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.ledger-activity-row b {
  color: var(--blue);
  font-size: 15px;
}

.ledger-activity-row i {
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--green);
  background: rgba(39,169,107,.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.ledger-alert-list {
  display: grid;
  gap: 8px;
}

.ledger-alert {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  text-align: left;
  background: #fff;
  box-shadow: var(--shadow);
}

.ledger-alert.warning {
  border-color: rgba(223,139,31,.2);
  background: #fff8ef;
}

.ledger-alert strong,
.ledger-alert span {
  display: block;
}

.ledger-alert strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
}

.ledger-alert span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ledger-detail-head {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(255,255,255,.24), transparent 28%),
    linear-gradient(135deg, #0f6a76, #1f8bbb 62%, #2cc4a0);
  box-shadow: 0 16px 36px rgba(15,106,118,.18);
}

.ledger-detail-head span,
.ledger-detail-head strong,
.ledger-detail-head p {
  display: block;
}

.ledger-detail-head span {
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 900;
}

.ledger-detail-head strong {
  margin: 6px 0;
  font-size: 21px;
}

.ledger-detail-head p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  line-height: 1.45;
}

.ledger-detail-head div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.ledger-detail-head b {
  padding: 6px 9px;
  border-radius: 99px;
  color: #fff;
  background: rgba(255,255,255,.16);
  font-size: 11px;
}

.ledger-save-feedback {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(39,169,107,.18);
  border-radius: 18px;
  background: rgba(237,250,244,.92);
}

.ledger-save-feedback.compact {
  margin-bottom: 10px;
}

.ledger-save-feedback strong,
.ledger-save-feedback span {
  display: block;
}

.ledger-save-feedback strong {
  margin-bottom: 4px;
  color: var(--green);
  font-size: 13px;
}

.ledger-save-feedback span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ledger-business-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ledger-business-list span {
  flex: 1 1 42%;
  min-height: 54px;
  padding: 9px;
  border-radius: 15px;
  background: #f8fafc;
}

.ledger-business-list i,
.ledger-business-list b {
  display: block;
}

.ledger-business-list i {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.ledger-business-list b {
  color: #0f6a76;
  font-size: 13px;
}

.ledger-record-list {
  display: grid;
  gap: 9px;
}

.ledger-record-row {
  border: 1px solid rgba(28,39,60,.06);
  border-radius: 17px;
  padding: 12px;
  text-align: left;
  background: #f8fafc;
}

.ledger-record-row strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 13px;
}

.ledger-record-row div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ledger-record-row span,
.ledger-record-row i,
.ledger-record-row b {
  display: block;
}

.ledger-record-row span {
  min-height: 44px;
  padding: 8px;
  border-radius: 13px;
  background: #fff;
}

.ledger-record-row i {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.ledger-record-row b {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-form-card {
  display: grid;
  gap: 10px;
}

.ledger-save-button {
  height: 48px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(90deg, #0f6a76, #2cc4a0);
  box-shadow: 0 12px 26px rgba(15,106,118,.2);
  font-weight: 900;
}

.source-mode-hero,
.contract-upload-card {
  margin-bottom: 12px;
  padding: 18px;
  border-radius: 25px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 16%, rgba(255,255,255,.24), transparent 26%),
    linear-gradient(135deg, #17315f, #2f63ee 58%, #39c6d8);
  box-shadow: 0 18px 42px rgba(47, 99, 238, .18);
}

.source-mode-hero span,
.contract-upload-card span {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
}

.source-mode-hero strong,
.contract-upload-card strong {
  display: block;
  margin: 7px 0;
  font-size: 22px;
  line-height: 1.2;
}

.source-mode-hero p,
.contract-upload-card p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.55;
}

.contract-upload-card button {
  height: 38px;
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 99px;
  color: #fff;
  background: rgba(255,255,255,.16);
  font-weight: 900;
}

.source-mode-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.source-mode-grid button {
  min-height: 126px;
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: left;
  background:
    radial-gradient(circle at 90% 10%, rgba(47,99,238,.10), transparent 28%),
    #fff;
  box-shadow: var(--shadow);
}

.source-mode-grid button.recommended {
  border-color: rgba(47,99,238,.24);
  background:
    radial-gradient(circle at 92% 10%, rgba(57,198,216,.20), transparent 30%),
    linear-gradient(180deg, #fff, #f3f8ff);
}

.source-mode-grid b {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--blue);
  background: #eef4ff;
  font-size: 11px;
}

.source-mode-grid strong,
.source-mode-grid span,
.source-mode-grid em {
  display: block;
}

.source-mode-grid strong {
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: 17px;
}

.source-mode-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.source-mode-grid em {
  margin-top: 12px;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.manual-draft-card {
  background:
    radial-gradient(circle at 90% 4%, rgba(39,169,107,.08), transparent 22%),
    #fff;
}

.scan-workflow {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.scan-workflow div {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.scan-workflow i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  color: var(--blue);
  background: #eaf1ff;
  font-style: normal;
  font-weight: 900;
}

.scan-workflow .done i {
  color: #fff;
  background: var(--green);
}

.scan-workflow strong,
.scan-workflow em {
  display: block;
}

.scan-workflow strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.scan-workflow em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.scan-workflow b {
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--blue);
  background: #eef4ff;
  font-size: 11px;
  white-space: nowrap;
}

.extraction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.extraction-grid button {
  min-height: 92px;
  border: 1px solid rgba(28,39,60,.07);
  border-radius: 17px;
  padding: 11px;
  text-align: left;
  background: #f8fafc;
}

.extraction-grid button.needs-confirm {
  border-color: rgba(223,139,31,.22);
  background: #fff8ef;
}

.extraction-grid span,
.extraction-grid strong,
.extraction-grid em {
  display: block;
}

.extraction-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.extraction-grid strong {
  margin: 7px 0 6px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.extraction-grid em {
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.missing-card p {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 15px;
  color: var(--amber);
  background: #fff8ef;
  font-size: 12px;
  font-weight: 800;
}

.missing-card p:last-child {
  margin-bottom: 0;
}

.quick-expense-card {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(28,39,60,.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.quick-expense-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.quick-expense-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.quick-expense-head b {
  padding: 6px 9px;
  border-radius: 99px;
  color: var(--blue);
  background: rgba(47,99,238,.1);
  font-size: 11px;
}

.amount-card {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 10%, rgba(255,255,255,.28), transparent 26%),
    linear-gradient(135deg, var(--blue-dark), var(--blue) 62%, var(--cyan));
}

.amount-card .quick-expense-head span,
.amount-card .quick-expense-head b {
  color: rgba(255,255,255,.78);
}

.amount-card .quick-expense-head b {
  background: rgba(255,255,255,.13);
}

.amount-input-wrap {
  display: grid;
  gap: 8px;
}

.amount-input-wrap > span {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 900;
}

.amount-input-wrap div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid rgba(255,255,255,.24);
}

.amount-input-wrap i {
  color: rgba(255,255,255,.64);
  font-size: 34px;
  font-style: normal;
  font-weight: 900;
}

.amount-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -1.5px;
}

.amount-input-wrap input::placeholder {
  color: rgba(255,255,255,.38);
}

.quick-amount-row {
  display: flex;
  gap: 8px;
  margin-top: 13px;
  overflow: auto;
}

.quick-amount-row button,
.quick-evidence-actions button,
.quick-evidence-actions label {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 99px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 900;
}

.quick-amount-row button.active {
  color: var(--blue-dark);
  background: #fff;
}

.quick-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.quick-type-grid button {
  min-height: 74px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(28,39,60,.07);
  border-radius: 18px;
  background: #f8fafc;
}

.quick-type-grid i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  color: var(--blue);
  background: #eaf1ff;
  font-style: normal;
  font-weight: 900;
}

.quick-type-grid strong {
  color: var(--ink);
  font-size: 12px;
}

.quick-type-grid span {
  color: var(--muted);
  font-size: 10px;
}

.quick-type-grid button.active {
  border-color: rgba(47,99,238,.22);
  background: linear-gradient(180deg, #eef3ff, #f8faff);
  box-shadow: inset 0 0 0 1px rgba(47,99,238,.14);
}

.quick-type-grid button.active i {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.quick-type-grid .custom {
  border-style: dashed;
  background: #fff;
}

.quick-type-hint {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  background: #f4f6fe;
}

.quick-type-hint strong {
  color: var(--blue);
  font-size: 13px;
}

.quick-type-hint span {
  color: #5d6f7c;
  font-size: 12px;
  line-height: 1.35;
}

.custom-type-input,
.quick-field input,
.quick-field select,
.quick-field textarea {
  width: 100%;
  border: 1px solid rgba(28,39,60,.08);
  border-radius: 16px;
  color: var(--ink);
  background: #f8fafc;
  outline: 0;
}

.custom-type-input {
  height: 42px;
  margin-top: 10px;
  padding: 0 12px;
}

.quick-field {
  display: grid;
  gap: 7px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.quick-field input,
.quick-field select {
  height: 44px;
  padding: 0 12px;
}

.quick-field input[readonly] {
  color: var(--blue);
  background: #eef3ff;
  font-weight: 900;
}

.quick-field textarea {
  min-height: 64px;
  resize: none;
  padding: 12px;
}

.quick-field em {
  color: #8b96a8;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.quick-two-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.quick-evidence-actions {
  display: flex;
  gap: 8px;
  overflow: auto;
}

.quick-evidence-actions label {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-color: rgba(47,99,238,.18);
  color: var(--blue);
  background: #eef3ff;
}

.quick-evidence-actions label.active {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.quick-evidence-actions input {
  display: none;
}

.evidence-preview {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed rgba(47,99,238,.18);
  border-radius: 18px;
  background: #f8fafc;
}

.evidence-preview strong {
  color: var(--ink);
  font-size: 13px;
}

.evidence-preview span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.evidence-preview.filled {
  border-style: solid;
  background: #eef3ff;
}

.quick-save-feedback {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 13px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 14%, rgba(255,255,255,.22), transparent 24%),
    linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 36px rgba(47,99,238,.18);
}

.quick-save-feedback strong {
  font-size: 16px;
}

.quick-save-feedback div {
  display: flex;
  gap: 7px;
  overflow: auto;
}

.quick-save-feedback span {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.16);
  font-size: 11px;
  font-weight: 900;
}

.quick-recent-list {
  display: grid;
  gap: 8px;
}

.quick-recent-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 11px;
  border-radius: 17px;
  background: #f8fafc;
}

.quick-recent-row strong,
.quick-recent-row em {
  display: block;
}

.quick-recent-row strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.quick-recent-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.quick-recent-row b {
  color: var(--blue);
  font-size: 16px;
}

.quick-recent-row i {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 4px 8px;
  border-radius: 99px;
  color: var(--green);
  background: rgba(39,169,107,.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.quick-save-dock {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  padding: 16px 18px;
  border: 1px solid rgba(47,99,238,.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow), 0 0 20px rgba(47,99,238,.08);
}

.quick-save-dock span,
.quick-save-dock strong {
  display: block;
}

.quick-save-dock span {
  color: var(--muted);
  font-size: 11px;
}

.quick-save-dock strong {
  margin-top: 3px;
  color: var(--blue);
  font-size: 21px;
}

.quick-save-dock button {
  min-width: 122px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 8px 22px rgba(47,99,238,.28);
  font-weight: 900;
  transition: box-shadow .2s, transform .15s;
}

.quick-save-dock button:active {
  box-shadow: 0 4px 14px rgba(47,99,238,.2);
  transform: scale(.97);
}

.payment-plan-card,
.payment-board-card {
  overflow: hidden;
}

.payment-plan-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 13px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(255,255,255,.24), transparent 26%),
    linear-gradient(135deg, #183463, #2f63ee);
}

.payment-plan-summary span,
.payment-plan-summary strong,
.payment-plan-summary em,
.payment-plan-summary b {
  display: block;
}

.payment-plan-summary span {
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 900;
}

.payment-plan-summary strong {
  margin: 5px 0;
  font-size: 17px;
}

.payment-plan-summary em {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-style: normal;
}

.payment-plan-summary b {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  font-size: 12px;
  white-space: nowrap;
}

.payment-action-strip {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  overflow: auto;
}

.payment-action-strip button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid rgba(47,99,238,.16);
  border-radius: 99px;
  color: var(--blue);
  background: #eef4ff;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.payment-action-strip button.active {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.payment-missing {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  padding: 11px;
  border-radius: 16px;
  background: #fff8ef;
}

.payment-missing strong {
  color: var(--amber);
  font-size: 12px;
}

.payment-missing span {
  color: #8a5a15;
  font-size: 12px;
  line-height: 1.35;
}

.payment-node-list {
  display: grid;
  gap: 9px;
}

.payment-node {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: start;
  position: relative;
  padding: 12px 12px 38px;
  border: 1px solid rgba(28,39,60,.08);
  border-radius: 18px;
  text-align: left;
  background: #f8fafc;
}

.payment-node i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--blue);
  background: #eaf1ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.payment-node span,
.payment-node strong,
.payment-node em,
.payment-node small,
.payment-node b {
  display: block;
}

.payment-node strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.payment-node em,
.payment-node small {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.payment-node b {
  color: var(--blue);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.payment-node b em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.payment-node mark {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--muted);
  background: rgba(118,129,149,.1);
  font-size: 11px;
  font-weight: 900;
}

.payment-node.is-done mark {
  color: var(--green);
  background: rgba(39,169,107,.1);
}

.payment-node.is-warning {
  border-color: rgba(223,139,31,.22);
  background: #fff8ef;
}

.payment-node.is-warning mark {
  color: var(--amber);
  background: rgba(223,139,31,.12);
}

.payment-board {
  display: grid;
  gap: 9px;
}

.payment-board button {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(28,39,60,.08);
  border-radius: 18px;
  text-align: left;
  background:
    radial-gradient(circle at 92% 18%, rgba(57,198,216,.12), transparent 24%),
    #f8fafc;
}

.payment-board span,
.payment-board strong,
.payment-board em,
.payment-board b {
  display: block;
}

.payment-board span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.payment-board strong {
  color: var(--ink);
  font-size: 15px;
}

.payment-board em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.payment-board b {
  color: var(--green);
  font-size: 12px;
}

.resource-studio {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.resource-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.resource-summary-grid button {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 12px;
  text-align: left;
  background: #fff;
  box-shadow: var(--shadow);
}

.resource-summary-grid span, .resource-summary-grid em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.resource-summary-grid strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 23px;
  color: var(--blue);
}

.lead-pipeline-card {
  padding: 14px;
  border: 1px solid rgba(28,39,60,.06);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lead-pipeline-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lead-pipeline-steps button {
  min-height: 68px;
  border: 1px solid rgba(47,99,238,.1);
  border-radius: 16px;
  padding: 9px;
  text-align: left;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.lead-pipeline-steps b,
.lead-pipeline-steps span {
  display: block;
}

.lead-pipeline-steps b {
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 20px;
}

.lead-pipeline-steps span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.lead-create-shell {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.lead-create-intro {
  padding: 17px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.26), transparent 24%),
    linear-gradient(135deg, #1d3f8c, #2f63ee 52%, #35b7cf);
  box-shadow: 0 18px 42px rgba(47, 99, 238, .24);
}

.lead-create-intro span,
.lead-create-intro strong,
.lead-create-intro p {
  display: block;
}

.lead-create-intro span {
  margin-bottom: 7px;
  color: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 900;
}

.lead-create-intro strong {
  font-size: 18px;
  line-height: 1.35;
}

.lead-create-intro p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.55;
}

.lead-source-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.lead-source-strip button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid rgba(47,99,238,.14);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--blue);
  background: #eef4ff;
  font-size: 12px;
  font-weight: 900;
}

.lead-source-strip button.active {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(47, 99, 238, .2);
}

.lead-form-section,
.lead-link-card,
.lead-save-preview {
  border: 1px solid rgba(28,39,60,.06);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lead-form-section {
  padding: 14px;
}

.lead-field-grid {
  display: grid;
  gap: 11px;
}

.lead-link-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.lead-link-card strong,
.lead-link-card span {
  display: block;
}

.lead-link-card strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.lead-link-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.lead-link-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lead-link-tags button {
  min-height: 40px;
  border: 1px dashed rgba(47,99,238,.28);
  border-radius: 14px;
  color: var(--blue);
  background: #f8fbff;
  font-weight: 900;
}

.lead-save-preview {
  position: relative;
  overflow: hidden;
  padding: 15px;
  background:
    radial-gradient(circle at 94% 16%, rgba(22,163,74,.12), transparent 26%),
    #f8fffb;
}

.lead-save-preview span,
.lead-save-preview strong,
.lead-save-preview p,
.lead-save-preview em {
  display: block;
}

.lead-save-preview span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.lead-save-preview strong {
  margin: 5px 0;
  color: var(--ink);
  font-size: 24px;
}

.lead-save-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.lead-save-preview em {
  position: absolute;
  right: 14px;
  top: 14px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--green);
  background: rgba(22,163,74,.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.profile-center {
  margin-bottom: 12px;
  padding: 17px;
  border-radius: 25px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 14%, rgba(57,198,216,.32), transparent 26%),
    linear-gradient(135deg, #263247, #152036);
  box-shadow: 0 18px 42px rgba(21, 32, 54, .22);
}

.profile-identity {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 16px;
}

.avatar.large {
  width: 62px;
  height: 62px;
  border-radius: 22px;
}

.profile-identity strong {
  display: block;
  margin: 4px 0 3px;
  font-size: 22px;
}

.profile-identity p {
  margin: 0;
  color: rgba(255,255,255,.7);
  font-size: 12px;
}

.role-strip {
  display: flex;
  gap: 8px;
  overflow: auto;
}

.role-strip span {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 99px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 800;
}

.security-panel {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.security-panel button {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  text-align: left;
  background: #fff;
  box-shadow: var(--shadow);
}

.security-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.security-panel span {
  color: var(--muted);
  font-size: 12px;
}

.personal-workbench {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.workbench-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(47, 99, 238, .14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 8%, rgba(57,198,216,.24), transparent 30%),
    linear-gradient(135deg, #ffffff, #f5f9ff);
  box-shadow: var(--shadow);
}

.workbench-identity span,
.workbench-identity em,
.workbench-identity strong,
.workbench-identity small {
  display: block;
}

.workbench-identity em {
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.workbench-identity strong {
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 21px;
}

.workbench-identity small {
  color: var(--muted);
  font-size: 12px;
}

.workbench-sections {
  display: grid;
  gap: 11px;
}

.workbench-section {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.workbench-action-list {
  display: grid;
  gap: 8px;
}

.workbench-action-list button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 17px;
  padding: 11px 12px;
  text-align: left;
  background: #f8fbff;
}

.workbench-action-list strong,
.workbench-action-list em {
  display: block;
}

.workbench-action-list strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
}

.workbench-action-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.workbench-action-list b {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef4ff;
  font-size: 11px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metric-card {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 14px;
  text-align: left;
  background: #fff;
  box-shadow: var(--shadow);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}



.metric-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 27px;
  letter-spacing: -.8px;
}

.metric-card em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.metric-card small {
  display: inline-flex;
  margin-top: 9px;
  padding: 4px 8px;
  border-radius: 99px;
  color: var(--blue);
  background: #eef4ff;
  font-size: 10px;
  font-weight: 900;
}

.metric-card.is-traceable {
  position: relative;
  overflow: hidden;
}

.metric-card.is-traceable::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  right: -14px;
  top: -14px;
  border-radius: 50%;
  background: rgba(47, 99, 238, .1);
}

.tone-blue strong { color: var(--blue); }
.tone-cyan strong { color: #0faabd; }
.tone-green strong { color: var(--green); }
.tone-amber strong { color: var(--amber); }
.tone-red strong { color: var(--red); }

.search-pill {
  height: 42px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #9aa4b5;
  background: #fff;
  font-size: 13px;
}

.filter-row, .badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow: auto;
}

.export-date-range {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.export-date-range label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.export-date-range label span {
  font-size: 12px;
  color: var(--muted);
}

.export-date-range label input[type="date"] {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}

.export-date-range .date-range-sep {
  color: var(--muted);
  padding-bottom: 10px;
  font-size: 14px;
}

/* 批量导出 */
.export-batch-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 10px 24px;
  background: #1f2937;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  animation: toastIn .3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.export-batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 4px;
}

.export-batch-bar .batch-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
}

.export-batch-bar .batch-actions {
  display: flex;
  gap: 8px;
}

.export-batch-bar .batch-actions button {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
}

.export-batch-bar .batch-actions button[disabled] {
  opacity: .4;
  pointer-events: none;
}

.batch-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}

.batch-check.checked {
  background: var(--blue);
  border-color: var(--blue);
}

.batch-check.checked::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}

.batch-check.disabled {
  opacity: .3;
  pointer-events: none;
}

.export-batch-row {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 16px !important;
  cursor: pointer;
  transition: background .15s;
}

.export-batch-row.batch-row-selected {
  background: rgba(47, 99, 238, .06);
}

.export-batch-row.row-disabled {
  opacity: .4;
  pointer-events: none;
}

.export-batch-row .batch-row-content {
  flex: 1;
  min-width: 0;
}

.export-batch-row .batch-row-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.export-batch-row .batch-row-content em {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

.export-batch-row b {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
}

.export-batch-info {
  margin-bottom: 16px;
}

.export-batch-info .export-batch-summary {
  padding: 12px 0 4px;
}

.export-batch-info .export-batch-summary span {
  font-size: 13px;
  color: var(--muted);
}

.export-batch-info .export-batch-summary ul {
  margin: 8px 0 0 0;
  padding: 0 0 0 16px;
  list-style: disc;
}

.export-batch-info .export-batch-summary li {
  font-size: 13px;
  color: var(--text);
  line-height: 1.8;
}

.export-batch-info .batch-hint {
  font-size: 13px;
  color: var(--muted);
  padding-top: 4px;
}

.action-bar-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px 20px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  z-index: 10;
}

.action-bar-bottom button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}

.filter-row button, .badge-row span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

.filter-row .active, .badge-row span {
  color: var(--blue);
  background: #eef4ff;
}

.card-section {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.section-head strong { font-size: 14px; }
.notify-badge, .section-head .notify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}
.section-head span { color: var(--muted); font-size: 12px; }

.record-list {
  display: grid;
  gap: 8px;
}

.record-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(28, 39, 60, .06);
  border-radius: 16px;
  padding: 11px 12px;
  text-align: left;
  background: #f8fafc;
}

.record-more-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.record-more-btn:hover {
  background: rgba(47, 99, 238, .04);
}

.record-row strong, .timeline-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.record-row em, .timeline-row em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.record-row b, .timeline-row b {
  align-self: center;
  justify-self: end;
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--blue);
  background: #eef4ff;
  font-size: 11px;
  white-space: nowrap;
}

.home-todo-card .record-list {
  gap: 7px;
}

.home-todo-toggle {
  width: 100%;
  margin-top: 9px;
  border: 1px solid rgba(15, 106, 118, .14);
  border-radius: 14px;
  padding: 10px 12px;
  color: #0f6a76;
  background: linear-gradient(180deg, rgba(236, 250, 247, .9), rgba(255, 255, 255, .86));
  font-size: 12px;
  font-weight: 900;
}

.action-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px;
  position: sticky;
  bottom: 0;
  padding: 8px 0 0;
  background: linear-gradient(180deg, rgba(237,242,248,0), #edf2f8 38%);
}

.bottom-dock-actions {
  display: grid;
  grid-template-columns: .86fr 1.28fr .86fr;
  align-items: end;
  gap: 8px;
  pointer-events: auto;
  padding: 6px 0;
  background: transparent;
}

.bottom-dock-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 17px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.1px;
  box-shadow: 0 12px 28px rgba(22,35,62,.14);
}

.bottom-dock-actions .dock-primary {
  min-height: 50px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 30px rgba(47, 99, 238, .28);
}

.bottom-dock-actions .dock-secondary {
  color: var(--blue);
  border: 1px solid rgba(47, 99, 238, .16);
  background: rgba(238, 244, 255, .92);
  backdrop-filter: blur(10px);
}

.timeline-card { display: grid; gap: 0; }

.timeline-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 11px;
  width: 100%;
  min-height: 64px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  background: transparent;
  text-align: left;
}

.timeline-row:last-child { border-bottom: 0; }

.timeline-row i {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: #cad3e0;
  box-shadow: 0 0 0 5px #eef2f7;
}

.timeline-row i.dot-green  { background: var(--green); box-shadow: 0 0 0 5px rgba(39, 169, 107, .12); }
.timeline-row i.dot-blue   { background: var(--blue); box-shadow: 0 0 0 5px rgba(47, 99, 238, .12); }
.timeline-row i.dot-purple { background: #8b5cf6; box-shadow: 0 0 0 5px rgba(139, 92, 246, .12); }
.timeline-row i.dot-orange { background: #f59e0b; box-shadow: 0 0 0 5px rgba(245, 158, 11, .12); }
.timeline-row i.dot-red    { background: var(--red); box-shadow: 0 0 0 5px rgba(235, 64, 52, .12); }
.timeline-row i.dot-danger { background: var(--red); box-shadow: 0 0 0 5px rgba(235, 64, 52, .16); }
.timeline-row i.dot-teal   { background: #14b8a6; box-shadow: 0 0 0 5px rgba(20, 184, 166, .12); }
.timeline-row i.dot-indigo { background: #6366f1; box-shadow: 0 0 0 5px rgba(99, 102, 241, .12); }
.timeline-row i.dot-cyan   { background: #06b6d4; box-shadow: 0 0 0 5px rgba(6, 182, 212, .12); }
.timeline-row i.dot-slate  { background: #64748b; box-shadow: 0 0 0 5px rgba(100, 116, 139, .12); }
.timeline-row i.dot-amber  { background: #d97706; box-shadow: 0 0 0 5px rgba(217, 119, 6, .12); }

.timeline-row b.badge-danger  { color: #fff; background: var(--red); padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.timeline-row b.badge-warn    { color: #92400e; background: #fef3c7; padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.timeline-row b.badge-default { color: var(--muted); font-size: 11px; }

.table-card { overflow: auto; }

.table-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  min-width: 360px;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.table-row:last-child { border-bottom: 0; }
.table-row.head { color: var(--muted); font-weight: 900; }

.chart-card svg {
  width: 100%;
  display: block;
}

.chart-card path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 6;
  stroke-linecap: round;
}

.chart-card .line-alt {
  stroke: rgba(57, 198, 216, .75);
  stroke-width: 4;
}

.trace-hero,
.flow-success {
  margin-bottom: 12px;
  padding: 18px;
  border-radius: 25px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 16%, rgba(255,255,255,.24), transparent 26%),
    linear-gradient(135deg, #17315f, #2f63ee 64%, #39c6d8);
  box-shadow: 0 18px 42px rgba(47, 99, 238, .18);
}

.trace-hero span,
.flow-success span {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
}

.trace-hero strong,
.flow-success strong {
  display: block;
  margin: 7px 0;
  font-size: 23px;
}

.trace-hero p,
.flow-success p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.55;
}

.trace-source-list {
  display: grid;
  gap: 9px;
}

.trace-source-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  border: 1px solid rgba(28, 39, 60, .06);
  border-radius: 16px;
  padding: 10px;
  text-align: left;
  background: #f8fafc;
}

.trace-source-row i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-style: normal;
  font-weight: 900;
}

.trace-source-row strong,
.trace-source-row em {
  display: block;
}

.trace-source-row strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.trace-source-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.trace-source-row b {
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--blue);
  background: #eef4ff;
  font-size: 11px;
}

.flow-compare {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.flow-compare div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.flow-compare h3 {
  margin: 0 0 9px;
  font-size: 14px;
}

.flow-compare p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.flow-compare p:last-child {
  margin-bottom: 0;
}

.matrix-card {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(54px, 1fr));
  gap: 8px;
  overflow: auto;
}

.matrix-card strong, .matrix-card span, .matrix-card i {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f7f9fc;
  font-size: 11px;
  text-align: center;
}

.matrix-card strong {
  color: var(--blue);
  background: #eef4ff;
}

.matrix-card span {
  justify-content: start;
  padding: 0 8px;
  color: var(--muted);
}

.matrix-card i {
  color: var(--green);
  font-style: normal;
}

.role-management-shell,
.role-create-card,
.role-detail-hero {
  margin-bottom: 12px;
}

.role-management-shell,
.user-management-shell,
.user-edit-shell {
  display: grid;
  gap: 12px;
}

.role-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.role-summary-grid div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border-radius: 17px;
  background: #f8fbff;
}

.role-summary-grid strong {
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
}

.role-summary-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.role-list {
  display: grid;
  gap: 10px;
}

.role-list button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  position: relative;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  text-align: left;
  background:
    radial-gradient(circle at 96% 8%, rgba(47,99,238,.12), transparent 28%),
    #fff;
  box-shadow: var(--shadow);
}

.role-list button.custom {
  border-color: rgba(22, 163, 74, .22);
  background:
    radial-gradient(circle at 96% 8%, rgba(22,163,74,.13), transparent 28%),
    #fff;
}

.role-list button.active {
  border-color: rgba(47,99,238,.32);
  background:
    radial-gradient(circle at 96% 8%, rgba(57,198,216,.16), transparent 28%),
    linear-gradient(180deg, #fff, #f3f8ff);
}

.role-list strong,
.role-list em,
.role-list small {
  display: block;
}

.role-list strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 17px;
}

.role-list em,
.role-list small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.role-list small {
  margin-top: 7px;
  color: #54637a;
}

.role-list b,
.role-list i {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef4ff;
  font-size: 11px;
  font-style: normal;
}

.role-list i {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: var(--green);
  background: rgba(22,163,74,.1);
}

.role-focus-card {
  background:
    radial-gradient(circle at 92% 12%, rgba(47,99,238,.1), transparent 28%),
    #fff;
}

.role-focus-copy {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.role-focus-users,
.user-role-tags,
.user-edit-hero div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-focus-users b,
.user-role-tags b,
.user-edit-hero b {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef4ff;
  font-size: 11px;
}

.user-list {
  display: grid;
  gap: 9px;
}

.user-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(28, 39, 60, .07);
  border-radius: 18px;
  padding: 12px;
  text-align: left;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 26px rgba(22,35,62,.06);
}

.user-row.active {
  border-color: rgba(47,99,238,.26);
  background:
    radial-gradient(circle at 94% 12%, rgba(57,198,216,.14), transparent 28%),
    rgba(255,255,255,.94);
  box-shadow: 0 12px 30px rgba(47,99,238,.09);
}

.user-row strong,
.user-row em,
.user-row small {
  display: block;
}

.user-row strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
}

.user-row em,
.user-row small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.user-row small {
  margin-top: 4px;
}

.user-row > b {
  padding: 5px 9px;
  border-radius: 99px;
  color: var(--green);
  background: rgba(39,169,107,.1);
  font-size: 11px;
  white-space: nowrap;
}

.user-row-main {
  display: block;
  width: 100%;
  min-height: 44px;
  border: none;
  padding: 0;
  text-align: left;
  background: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.user-row-main span {
  display: block;
}

/* iOS 风格开关按钮 */
.status-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 52px;
  height: 32px;
  padding: 2px;
  border: none;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: background .26s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.12);
}

.status-switch i {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04);
  transition: transform .26s cubic-bezier(.36, .1, .26, 1);
}

.status-switch span {
  position: absolute;
  right: 8px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
}

.status-switch.is-on {
  background: #22c55e;
}

.status-switch.is-on i {
  transform: translateX(20px);
}

.status-switch.is-on span {
  right: auto;
  left: 8px;
  color: #fff;
  opacity: 1;
}

.status-switch.is-off span {
  opacity: 1;
}

.user-role-tags {
  margin-top: 8px;
}

.user-focus-meta,
.binding-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.user-focus-meta span,
.binding-summary-grid span {
  min-height: 58px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fbff;
}

.user-focus-meta i,
.binding-summary-grid i {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.user-focus-meta b,
.binding-summary-grid b {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.binding-preview {
  margin-top: 11px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.binding-preview strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.binding-preview div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.binding-preview b {
  padding: 5px 8px;
  border-radius: 999px;
  color: #0f6a76;
  background: rgba(15,106,118,.08);
  font-size: 11px;
}

.user-inline-actions,
.user-binding-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.user-edit-hero {
  position: relative;
  padding: 24px 18px 18px;
  border-radius: 25px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(57,198,216,.32), transparent 28%),
    linear-gradient(135deg, #102544, #2f63ee 68%, #39c6d8);
  box-shadow: 0 18px 42px rgba(47, 99, 238, .2);
  text-align: center;
}

.user-edit-back {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.12);
  cursor: pointer;
  transition: background .2s;
}

.user-edit-back:active {
  background: rgba(255,255,255,.22);
}

.user-edit-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
  background: rgba(255,255,255,.18);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
}

.user-edit-avatar.disabled {
  opacity: .55;
  background: rgba(255,255,255,.08);
}

.user-edit-hero span,
.user-edit-hero strong,
.user-edit-hero p {
  display: block;
}

.user-edit-hero span {
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 900;
}

.user-edit-hero strong {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.user-edit-hero p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.6);
  font-size: 11px;
}

.user-edit-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
}

.user-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.user-status-badge.enabled {
  color: #22c55e;
  background: rgba(34,197,94,.18);
}

.user-status-badge.disabled {
  color: #94a3b8;
  background: rgba(148,163,184,.18);
}

.user-edit-role-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.user-edit-role-tags b {
  color: #fff;
  background: rgba(255,255,255,.16);
}

.user-edit-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.user-edit-field {
  display: block;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 16px;
  background: #f8fbff;
  transition: border-color .2s;
}

.user-edit-field:focus-within {
  border-color: rgba(47,99,238,.36);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47,99,238,.08);
}

.user-edit-field i {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .4px;
}

.user-edit-field input {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  background: none;
  outline: none;
}

.user-edit-field input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.user-edit-hero b {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.role-toggle-grid {
  display: grid;
  gap: 8px;
}

.role-toggle-grid button {
  min-height: 64px;
  position: relative;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  padding: 12px;
  text-align: left;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.role-toggle-grid button.active {
  border-color: rgba(47,99,238,.36);
  background:
    radial-gradient(circle at 94% 12%, rgba(57,198,216,.16), transparent 28%),
    #eef4ff;
}

.role-toggle-grid strong,
.role-toggle-grid em {
  display: block;
}

.role-toggle-grid strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.role-toggle-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.role-check {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: #2f63ee;
  font-size: 12px;
  font-weight: 700;
}

.role-pick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-pick-chip {
  padding: 8px 18px;
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: #f8fafc;
  cursor: pointer;
  transition: all .2s;
}

.role-pick-chip:active {
  transform: scale(.96);
}

.role-pick-chip.active {
  border-color: rgba(47,99,238,.32);
  color: #fff;
  background: linear-gradient(135deg, #2f63ee, #39c6d8);
  box-shadow: 0 4px 14px rgba(47,99,238,.18);
}

.save-feedback {
  padding: 13px;
  border: 1px solid rgba(39,169,107,.18);
  border-radius: 19px;
  background: #f0fbf5;
}

.save-feedback strong,
.save-feedback span {
  display: block;
}

.save-feedback strong {
  margin-bottom: 4px;
  color: var(--green);
  font-size: 13px;
}

.save-feedback span {
  color: var(--muted);
  font-size: 12px;
}

.button-permission-list {
  display: grid;
  gap: 8px;
}

.button-permission-list button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px dashed rgba(47, 99, 238, .2);
  border-radius: 17px;
  padding: 11px;
  text-align: left;
  background: #f8fbff;
}

.button-permission-list strong,
.button-permission-list em {
  display: block;
}

.button-permission-list strong {
  color: var(--ink);
  font-size: 13px;
}

.button-permission-list em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.button-permission-list b {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef4ff;
  font-size: 11px;
}

.role-create-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.role-create-card label,
.role-create-card span {
  display: block;
}

.role-create-card span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.role-create-card input,
.role-create-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 11px 12px;
  color: var(--ink);
  background: #f8fbff;
  font: inherit;
  resize: none;
}

.permission-catalog {
  display: grid;
  gap: 12px;
}

.permission-catalog section {
  display: grid;
  gap: 8px;
}

.permission-catalog section > strong {
  color: var(--ink);
  font-size: 13px;
}

.permission-catalog section > div {
  display: grid;
  gap: 7px;
}

.permission-catalog button {
  display: block;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 16px;
  padding: 10px 11px;
  text-align: left;
  background: #f8fbff;
}

.permission-catalog button.active {
  border-color: rgba(47,99,238,.34);
  background: #eef4ff;
}

.permission-badge,
.permission-catalog em {
  display: block;
}

.permission-badge {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.permission-catalog em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.role-detail-hero {
  padding: 17px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(57,198,216,.32), transparent 28%),
    linear-gradient(135deg, #263247, #152036);
  box-shadow: 0 18px 42px rgba(21, 32, 54, .22);
}

.role-detail-hero span,
.role-detail-hero strong,
.role-detail-hero p {
  display: block;
}

.role-detail-hero span {
  color: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 900;
}

.role-detail-hero strong {
  margin: 5px 0;
  font-size: 24px;
}

.role-detail-hero p {
  margin: 0 0 12px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.45;
}

.role-detail-hero div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.role-detail-hero b {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: 12px;
}

.role-detail-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.role-detail-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.role-detail-grid div.blocked {
  background: #fff8f8;
}

.role-detail-grid strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 14px;
}

.role-detail-grid p {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.role-detail-grid p:last-child {
  margin-bottom: 0;
}

.role-detail-grid i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.role-detail-grid .blocked i {
  background: var(--red);
}

/* 角色编辑页 */
.role-edit-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.role-edit-back {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  padding: 0;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.1);
  cursor: pointer;
  transition: background .15s;
}

.role-edit-back:hover {
  background: rgba(255,255,255,.18);
}

.role-edit-type {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 700;
}



.role-edit-users {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.role-edit-users b {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 500;
}

.role-edit-form-grid {
  display: grid;
  gap: 12px;
}

.role-edit-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.role-edit-field i {
  padding-left: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.role-edit-field input,
.role-edit-field textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  background: #f7f9fc;
  outline: none;
  transition: border-color .15s, background .15s;
  resize: vertical;
  font-family: inherit;
}

.role-edit-field input:focus,
.role-edit-field textarea:focus {
  border-color: var(--blue);
  background: #fff;
}

.role-edit-permission-card .permission-catalog {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-edit-permission-card .permission-catalog section strong {
  display: block;
  margin-bottom: 8px;
  padding-left: 2px;
  color: var(--ink);
  font-size: 13px;
}

.role-edit-permission-card .permission-catalog section div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.permission-edit-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.permission-edit-chip.active {
  border-color: rgba(47,99,238,.35);
  background: linear-gradient(135deg, #eef4ff, #f0f6ff);
}

.permission-chip-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.permission-edit-chip em {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  font-style: normal;
}

.permission-edit-chip.active .permission-chip-badge {
  color: var(--blue);
}

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(14, 23, 40, .25);
}

.drawer {
  position: fixed;
  inset: 0 auto 0 calc(50% - 215px);
  width: min(318px, 82vw);
  z-index: 21;
  padding: 22px 16px;
  background: #102544;
  color: #fff;
  box-shadow: 26px 0 70px rgba(11, 22, 42, .34);
}

.drawer-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 900;
}

.drawer-profile strong { display: block; margin-bottom: 4px; }
.drawer-profile span { color: rgba(255,255,255,.62); font-size: 12px; }

.drawer-title {
  margin: 16px 0 8px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
}

.drawer button {
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.06);
  text-align: left;
  padding: 0 13px;
}

.drawer button.active {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), rgba(57,198,216,.75));
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}

.tabbar button {
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: var(--muted);
  background: transparent;
}

.tabbar span { font-size: 18px; line-height: 1; }
.tabbar em { font-style: normal; font-size: 11px; }
.tabbar .active {
  color: var(--blue);
  font-weight: 900;
  position: relative;
}
.tabbar .active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* ===== 科技感增强样式 ===== */

/* 科技角标 - 卡片四角装饰 */
.tech-corners {
  position: relative;
}
.tech-corners::before,
.tech-corners::after {
  content: '';
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.tech-corners::before {
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-left: 2px solid rgba(47, 99, 238, .25);
  border-top: 2px solid rgba(47, 99, 238, .25);
  border-radius: 6px 0 0 0;
}
.tech-corners::after {
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-right: 2px solid rgba(57, 198, 216, .25);
  border-bottom: 2px solid rgba(57, 198, 216, .25);
  border-radius: 0 0 6px 0;
}

/* 卡片 hover 发光 */
.card-section {
  transition: box-shadow .3s, border-color .3s;
}
.card-section:hover {
  box-shadow: var(--tech-glow), var(--shadow);
  border-color: rgba(47, 99, 238, .14);
}

/* 主按钮脉冲呼吸 */
@keyframes techPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(47, 99, 238, .22); }
  50% { box-shadow: 0 12px 38px rgba(47, 99, 238, .36), 0 0 0 4px rgba(47, 99, 238, .08); }
}
.primary {
  animation: techPulse 2.4s ease-in-out infinite;
}

/* 扫码线流动 */
@keyframes scanLine {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* 数据流粒子动画 */
@keyframes dataFlow1 {
  0% { transform: translateY(-100%) translateX(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(300%) translateX(40px); opacity: 0; }
}
@keyframes dataFlow2 {
  0% { transform: translateY(-100%) translateX(0); opacity: 0; }
  25% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(300%) translateX(-30px); opacity: 0; }
}

/* 角色卡片 hover 光效 */
.role-list button {
  transition: border-color .25s, box-shadow .25s;
}
.role-list button:hover {
  box-shadow: var(--tech-glow), var(--shadow);
}
.role-list button.active {
  box-shadow: var(--tech-cyan-glow), var(--shadow);
}

/* metric-card 数据卡片 hover */
.metric-card {
  transition: box-shadow .25s, border-color .25s;
}
.metric-card:hover {
  box-shadow: var(--tech-glow);
}

/* resource-summary-grid 卡片 hover */
.resource-summary-grid button {
  transition: box-shadow .25s, border-color .25s;
}
.resource-summary-grid button:hover {
  box-shadow: var(--tech-glow);
}

/* project-row hover 光效 */
.project-row {
  transition: box-shadow .25s, border-color .25s;
}
.project-row:hover {
  box-shadow: var(--tech-glow);
}

/* 列表行 hover */
.record-row {
  transition: box-shadow .2s, border-color .2s;
}
.record-row:hover {
  box-shadow: 0 0 16px rgba(47, 99, 238, .12);
  border-color: rgba(47, 99, 238, .14);
}

/* user-row hover */
.user-row {
  transition: box-shadow .25s, border-color .25s;
}
.user-row:hover {
  box-shadow: var(--tech-glow);
}

/* finance-ledger 卡片 hover */
.finance-ledger button {
  transition: box-shadow .25s, border-color .25s;
}
.finance-ledger button:hover {
  box-shadow: var(--tech-cyan-glow);
}

/* security-panel 卡片 hover */
.security-panel button {
  transition: box-shadow .25s, border-color .25s;
}
.security-panel button:hover {
  box-shadow: var(--tech-glow);
}

/* workbench-action-list 卡片 hover */
.workbench-action-list button {
  transition: box-shadow .25s, border-color .25s;
}
.workbench-action-list button:hover {
  box-shadow: 0 0 14px rgba(47, 99, 238, .12);
  border-color: rgba(47, 99, 238, .16);
}

/* source-mode-grid 卡片 hover 边框发光 */
.source-mode-grid button {
  transition: box-shadow .25s, border-color .25s;
}
.source-mode-grid button:hover {
  box-shadow: var(--tech-glow);
  border-color: rgba(47, 99, 238, .2);
}

/* ledger-compact-row 行 hover */
.ledger-compact-row,
.ledger-activity-row,
.ledger-alert {
  transition: box-shadow .2s, border-color .2s;
}
.ledger-compact-row:hover,
.ledger-activity-row:hover {
  box-shadow: 0 0 14px rgba(47, 99, 238, .1);
}
.ledger-alert:hover {
  box-shadow: var(--tech-glow);
}

/* 科技感顶部状态条分隔线 */
.status-bar {
  position: relative;
}
.status-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 99, 238, .08), rgba(57, 198, 216, .08), transparent);
}

/* 顶部标题渐变发光 */
h1 {
  background: linear-gradient(135deg, var(--ink) 0%, var(--blue-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* profile-identity / role-detail-hero / trace-hero 科技角标效果 */
.profile-center,
.role-detail-hero,
.trace-hero,
.flow-success {
  position: relative;
}
.profile-center::before {
  content: '';
  position: absolute;
  top: 8px; right: 8px;
  width: 36px; height: 1px;
  background: rgba(255, 255, 255, .3);
  border-radius: 0;
}
.profile-center::after {
  content: '';
  position: absolute;
  top: 8px; right: 8px;
  width: 1px; height: 36px;
  background: rgba(255, 255, 255, .3);
  border-radius: 0;
}

/* 科技背景光点动画 */
@keyframes floatGlow {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50% { opacity: .7; transform: translateY(-6px); }
}

/* 科技波纹装饰 - project-board */
.project-board {
  position: relative;
}
.project-board::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(57, 198, 216, .15), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(47, 99, 238, .1), transparent 50%);
  pointer-events: none;
}

/* 系统信息栏技术标线 */
.section-name {
  letter-spacing: .5px;
}

/* 抽屉菜单科技角标 */
.drawer {
  position: relative;
}
.drawer::before {
  content: '';
  position: absolute;
  top: 10px; right: 10px;
  width: 24px; height: 24px;
  border-right: 2px solid rgba(57, 198, 216, .3);
  border-top: 2px solid rgba(57, 198, 216, .3);
  border-radius: 0 6px 0 0;
  opacity: .6;
}

/* 底部导航栏标线 */
.tabbar {
  position: relative;
}
.tabbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 99, 238, .12), rgba(57, 198, 216, .12), transparent);
}

/* 按钮再强调 */
.primary:active {
  box-shadow: 0 6px 18px rgba(47, 99, 238, .18);
  transform: scale(.975);
}
.primary {
  transition: transform .15s, box-shadow .25s;
}

/* 输入框聚焦发光 */
.login-field:focus-within,
.form-card input:focus,
.form-card textarea:focus {
  box-shadow: 0 0 0 3px rgba(47, 99, 238, .08), 0 0 16px rgba(47, 99, 238, .08);
}

/* search-pill 科技感 */
.search-pill {
  transition: box-shadow .2s, border-color .2s;
}
.search-pill:focus-within,
.search-pill:hover {
  box-shadow: 0 0 12px rgba(47, 99, 238, .1);
  border-color: rgba(47, 99, 238, .18);
}

/* 费用快记卡片数字跳动区域 */
.amount-input-wrap div {
  position: relative;
}
.amount-input-wrap div::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
}

/* lead-create-intro / source-mode-hero 科技装饰 */
.lead-create-intro,
.source-mode-hero,
.contract-upload-card {
  position: relative;
}
.lead-create-intro::after,
.source-mode-hero::after {
  content: '';
  position: absolute;
  top: -1px; left: 40px; right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
  border-radius: 0;
}

/* payment-node 状态光效 */
.payment-node {
  transition: box-shadow .25s, border-color .25s;
}
.payment-node:hover {
  box-shadow: 0 0 14px rgba(47, 99, 238, .1);
}

/* role-edit-permission-card 权限芯片 hover */
.permission-edit-chip {
  transition: box-shadow .2s, border-color .2s;
}
.permission-edit-chip:hover {
  box-shadow: 0 0 10px rgba(47, 99, 238, .08);
}
.permission-edit-chip.active {
  box-shadow: 0 0 16px rgba(47, 99, 238, .14);
}

@media (max-width: 520px) {
  .app { padding: 0; place-items: stretch; }
  .phone-shell {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .drawer { inset: 0 auto 0 0; }
}
