:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: rgba(11, 24, 35, 0.88);
  --panel-2: rgba(12, 32, 45, 0.9);
  --line: rgba(127, 218, 255, 0.18);
  --text: #edf8ff;
  --muted: #8fb1c2;
  --cyan: #21d7ff;
  --green: #74f2a1;
  --danger: #ff5f7a;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(44, 255, 201, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(44, 255, 201, .06) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(28, 156, 255, .22), transparent 34%),
    radial-gradient(circle at 82% 4%, rgba(87, 255, 165, .18), transparent 28%),
    #050c13;
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.app-view[hidden] {
  display: none !important;
}

.home-view {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(6, 2, 1, .36), rgba(15, 6, 2, .08) 42%, rgba(2, 3, 7, .35)),
    radial-gradient(ellipse at 48% 48%, transparent 24%, rgba(5, 2, 2, .12) 58%, rgba(0, 0, 0, .48) 100%),
    url("./assets/home-nebula-background.png") center center / cover no-repeat,
    #070302;
}

.home-view::before,
.home-view::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-view::before {
  inset: 0;
  background:
    radial-gradient(circle at 50% 49%, rgba(64, 20, 9, .08), transparent 30%),
    linear-gradient(180deg, rgba(0,0,0,.12), transparent 22%, transparent 72%, rgba(0,0,0,.32));
}

.home-view::after {
  inset: 0;
  opacity: .3;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 224, 184, .045) 43%, rgba(255, 179, 103, .055) 50%, transparent 62%);
  filter: blur(9px);
  transform: translateX(-60%);
  animation: cosmicSweep 12s ease-in-out infinite;
}

.cosmos-layer {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background-repeat: repeat;
}

.cosmos-layer-one {
  opacity: .28;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.92) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(136,211,255,.8) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255,205,174,.74) 0 .8px, transparent 1.5px),
    radial-gradient(circle, rgba(194,178,255,.65) 0 .7px, transparent 1.4px);
  background-position: 0 0, 38px 57px, 84px 23px, 19px 91px;
  background-size: 108px 108px, 173px 173px, 227px 227px, 281px 281px;
  animation: starsDrift 42s linear infinite;
}

.cosmos-layer-one::before,
.cosmos-layer-two::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cosmos-layer-one::before {
  inset: -18%;
  background:
    linear-gradient(128deg, transparent 29%, rgba(185, 205, 239, .045) 38%, rgba(166, 119, 174, .075) 47%, rgba(81, 144, 171, .055) 56%, transparent 66%),
    repeating-radial-gradient(ellipse at 48% 50%, rgba(255,255,255,.018) 0 1px, transparent 2px 7px);
  filter: blur(15px);
  opacity: .2;
  transform: rotate(-7deg);
}

.cosmos-layer-two {
  opacity: .16;
  background-image:
    radial-gradient(circle, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle, rgba(151,122,255,.9) 0 1px, transparent 1.7px);
  background-position: 12px 42px, 68px 9px;
  background-size: 263px 263px, 319px 319px;
  filter: drop-shadow(0 0 5px rgba(155, 224, 255, .72));
  animation: starsDrift 72s linear infinite reverse;
}

.cosmos-layer-two::before {
  inset: 0;
  background:
    radial-gradient(ellipse at 16% 42%, rgba(113, 67, 196, .17), transparent 22%),
    radial-gradient(ellipse at 83% 28%, rgba(33, 137, 165, .14), transparent 21%),
    radial-gradient(ellipse at 62% 70%, rgba(157, 50, 112, .11), transparent 25%),
    radial-gradient(ellipse at 38% 12%, rgba(50, 83, 158, .11), transparent 20%);
  filter: blur(24px);
  opacity: .14;
  mix-blend-mode: screen;
}

.home-orbit {
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(1120px, 86vw);
  aspect-ratio: 2.25;
  border: 1px solid rgba(109, 225, 255, .12);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  box-shadow: inset 0 0 50px rgba(70, 134, 255, .03), 0 0 35px rgba(65, 167, 255, .05);
  pointer-events: none;
}

.orbit-two {
  width: min(1450px, 108vw);
  transform: translate(-50%, -50%) rotate(12deg);
  border-color: rgba(144, 105, 255, .09);
}

.home-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 26px;
  display: flex;
  flex-direction: column;
}

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

.home-brand h1 {
  margin-top: 4px;
  font-size: 23px;
  letter-spacing: .03em;
}

.home-brand {
  position: absolute;
  left: 0;
  top: 30px;
  z-index: 8;
}

.solar-system {
  position: relative;
  flex: 1;
  min-height: 720px;
  margin: 0;
}

.orbit-track {
  position: absolute;
  left: 50%;
  top: 49%;
  border: 1px solid rgba(114, 217, 255, .18);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-8deg);
  box-shadow: inset 0 0 80px rgba(61, 155, 255, .025), 0 0 35px rgba(62, 184, 255, .04);
}

.orbit-track::before,
.orbit-track::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8cebdc;
  box-shadow: 0 0 12px rgba(117, 247, 222, .95);
}

.orbit-track::before { left: 10%; top: 12%; }
.orbit-track::after { right: 12%; bottom: 10%; background: #ae91ff; box-shadow: 0 0 12px rgba(174, 145, 255, .9); }

.orbit-track-outer {
  width: 93%;
  height: 68%;
}

.orbit-track-inner {
  width: 66%;
  height: 50%;
  transform: translate(-50%, -50%) rotate(12deg);
  border-color: rgba(155, 127, 255, .14);
}

.central-star {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 390px;
  height: 390px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.star-corona {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 18deg, transparent 0 7%, rgba(255, 158, 84, .16) 10%, transparent 14% 28%, rgba(255, 203, 131, .13) 32%, transparent 37% 55%, rgba(159, 50, 32, .16) 59%, transparent 65% 82%, rgba(227, 104, 55, .14) 87%, transparent 93%),
    radial-gradient(circle, rgba(255, 210, 163, .27), rgba(191, 65, 43, .21) 34%, rgba(80, 15, 21, .14) 56%, transparent 73%);
  filter: blur(3px);
  animation: starPulse 5s ease-in-out infinite;
}

.corona-one { inset: -38px; }
.corona-two {
  inset: -82px;
  opacity: .38;
  border: 1px solid rgba(255, 176, 102, .2);
  background: radial-gradient(circle, transparent 42%, rgba(216, 92, 49, .13) 52%, transparent 67%);
  animation-delay: -2.5s;
}

.star-core {
  position: relative;
  width: 310px;
  height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 221, 184, .5);
  border-radius: 50%;
  text-align: center;
  background:
    radial-gradient(circle at 28% 31%, rgba(255, 231, 177, .9) 0 2%, transparent 8%),
    radial-gradient(circle at 66% 27%, rgba(242, 146, 82, .56) 0 3%, transparent 10%),
    radial-gradient(circle at 69% 66%, rgba(68, 0, 17, .58) 0 3%, transparent 11%),
    radial-gradient(circle at 36% 72%, rgba(112, 7, 24, .5) 0 4%, transparent 13%),
    conic-gradient(from 24deg at 48% 49%, rgba(245, 139, 73, .17), rgba(68, 4, 15, .24) 18%, rgba(190, 57, 43, .14) 36%, rgba(70, 6, 18, .22) 58%, rgba(226, 112, 55, .15) 78%, rgba(75, 7, 20, .24)),
    radial-gradient(circle at 38% 32%, #ffd7ae 0 3%, #db744e 13%, #9f3532 34%, #571727 58%, #180910 79%);
  background-blend-mode: screen, screen, multiply, multiply, soft-light, normal;
  box-shadow:
    inset -52px -44px 88px rgba(22, 1, 8, .88),
    inset 28px 20px 45px rgba(255, 221, 169, .23),
    0 0 26px rgba(226, 103, 61, .5),
    0 0 74px rgba(151, 54, 38, .32),
    24px 32px 78px rgba(0, 0, 0, .6);
}

.star-core::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(ellipse at 47% 43%, rgba(255, 193, 121, .12) 0 2px, rgba(92, 5, 24, .08) 3px 6px, transparent 7px 12px),
    radial-gradient(ellipse at 58% 51%, transparent 35%, rgba(41, 0, 14, .36) 88%);
  opacity: .72;
  filter: none;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.star-core::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 26% 22%, rgba(255,235,203,.32), transparent 20%),
    radial-gradient(circle at 78% 82%, transparent 36%, rgba(38, 0, 12, .55) 78%, rgba(12, 0, 7, .84) 100%);
  box-shadow: inset 5px 4px 12px rgba(255, 221, 175, .22), inset -9px -8px 22px rgba(28, 0, 12, .52);
  pointer-events: none;
}

.star-core > * { position: relative; z-index: 2; }

.central-star .brand-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 11px;
  border-color: rgba(255, 228, 230, .62);
  background: rgba(94, 8, 31, .5);
}

.central-star .home-kicker {
  padding: 5px 9px;
  border-color: rgba(255, 220, 223, .26);
  color: rgba(255, 237, 239, .9);
  background: rgba(86, 5, 27, .34);
  font-size: 8px;
  letter-spacing: .11em;
}

.star-core h2 {
  margin: 12px 0 0;
  color: #f5fdff;
  font-size: 30px;
  line-height: 1.28;
  letter-spacing: .06em;
  text-shadow: 0 2px 8px rgba(24, 0, 8, .95), 0 0 18px rgba(255, 190, 194, .62);
}

.star-core p {
  margin-top: 10px;
  color: rgba(255, 224, 227, .8);
  font-size: 10px;
  line-height: 1.7;
}

.planet-card {
  position: absolute;
  z-index: 6;
  width: 270px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 0;
  border-radius: 40%;
  text-align: center;
  background: transparent;
  box-shadow: none;
  transition: filter .3s ease;
}

.company-planet {
  left: 0;
  top: 52%;
  transform: translateY(-50%);
  animation: planetFloatLeft 7s ease-in-out infinite;
}

.process-planet {
  right: 28px;
  top: 70%;
  transform: translateY(-50%);
  animation: planetFloatRight 8s ease-in-out infinite;
}

.data-planet {
  z-index: 7;
  left: 68%;
  top: 11%;
  width: 174px;
  min-height: 0;
  padding: 8px;
  animation: dataPlanetFloat 6.5s ease-in-out infinite;
}
.data-planet[hidden] { display: none !important; }
.data-planet:hover { border: 0; background: transparent; filter: brightness(1.2); }
.data-planet .data-orb {
  width: 82px;
  height: 82px;
  flex-basis: 82px;
  border-color: rgba(151, 255, 238, .58);
  background: radial-gradient(circle at 31% 24%, #e1fff7 0 3%, #4de0c3 9%, #15958e 32%, #07535d 58%, #031e2b 82%, #010d18 100%);
  box-shadow: inset -16px -15px 25px rgba(0, 8, 20, .72), inset 8px 6px 14px rgba(229, 255, 250, .2), 0 0 17px rgba(75, 237, 210, .5), 0 0 42px rgba(29, 159, 165, .22);
  filter: drop-shadow(12px 16px 18px rgba(0,0,0,.58));
}
.data-orb::before {
  background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.68) 0 3%, transparent 18%);
  opacity: .72;
  mix-blend-mode: screen;
}
.data-orb::after { background: repeating-linear-gradient(176deg, transparent 0 12px, rgba(136, 255, 225, .2) 13px 18px, transparent 19px 28px); transform: rotate(-8deg); opacity: .76; }
.data-orb .planet-glow { inset: -12px; border-color: rgba(103, 245, 219, .28); box-shadow: 0 0 24px rgba(43, 210, 186, .3); }
.data-orb .planet-ring { width: 126px; height: 30px; border-color: rgba(119, 238, 221, .62); transform: rotate(-13deg); box-shadow: 0 0 10px rgba(103, 245, 219, .28); }
.data-planet .planet-copy { border-color: rgba(93, 218, 215, .3); background: linear-gradient(145deg, rgba(7, 63, 69, .78), rgba(3, 28, 39, .9)); }
.data-planet .planet-copy small { color: #72ddce; }
.data-planet .planet-copy em { font-size: 9px; letter-spacing: -.02em; white-space: nowrap; }

@keyframes dataPlanetFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.planet-card:hover {
  border: 0;
  box-shadow: none;
  filter: brightness(1.16);
}

.planet-orb {
  position: relative;
  width: 164px;
  height: 164px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 235, 203, .48);
  border-radius: 50%;
  transition: transform .32s ease, box-shadow .32s ease;
  filter: drop-shadow(20px 26px 28px rgba(0,0,0,.68));
}

.company-orb {
  background: url("./assets/earth-blue-marble.png") center center / cover no-repeat;
  box-shadow: inset -32px -28px 54px rgba(0, 5, 20, .65), inset 16px 11px 28px rgba(255,255,255,.16), inset 0 0 10px rgba(159, 220, 255, .25), 0 0 18px rgba(78, 170, 231, .38), 0 0 48px rgba(39, 108, 183, .22);
}

.process-orb {
  background:
    radial-gradient(circle at 36% 27%, rgba(255, 250, 220, .98) 0 2%, transparent 14%),
    radial-gradient(ellipse at 68% 63%, rgba(121, 42, 13, .76) 0 5%, rgba(223, 117, 50, .32) 8%, transparent 16%),
    radial-gradient(circle at 36% 29%, #fff0c8 0 5%, #d6a36d 21%, #a96135 43%, #57301f 68%, #1b0d09 100%);
  background-blend-mode: screen, multiply, normal;
  box-shadow: inset -48px -42px 68px rgba(28, 7, 2, .94), inset 22px 16px 32px rgba(255, 242, 205, .26), inset 0 0 14px rgba(255, 192, 112, .16), 0 0 18px rgba(202, 132, 76, .32), 0 0 46px rgba(125, 68, 36, .18);
}

.planet-orb::before,
.planet-orb::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 3px;
  border-radius: 50%;
  pointer-events: none;
}

.company-orb::before {
  background: radial-gradient(circle at 24% 20%, rgba(255,255,255,.42), transparent 19%);
  filter: none;
  opacity: .55;
  mix-blend-mode: screen;
}

.company-orb::after {
  background: radial-gradient(circle at 76% 80%, transparent 30%, rgba(0, 4, 20, .54) 72%, rgba(0, 2, 12, .76) 100%);
  box-shadow: inset -20px -17px 31px rgba(0, 3, 18, .42), inset 5px 4px 10px rgba(220,245,255,.16);
}

.process-orb::before {
  background: repeating-linear-gradient(174deg, transparent 0 9px, rgba(255, 224, 170, .34) 10px 14px, rgba(132, 55, 23, .25) 15px 22px, rgba(228, 139, 74, .2) 23px 27px, transparent 28px 35px);
  filter: blur(.35px);
  opacity: .82;
  mix-blend-mode: soft-light;
}

.process-orb::after {
  background: radial-gradient(circle at 25% 20%, rgba(255,255,238,.68) 0 3%, transparent 17%), radial-gradient(ellipse at 69% 64%, rgba(105, 29, 9, .68) 0 5%, rgba(239, 150, 75, .24) 8%, transparent 14%), linear-gradient(96deg, transparent 12%, rgba(255, 238, 199, .16) 42%, transparent 61%), radial-gradient(circle at 77% 80%, rgba(24, 4, 1, .78), transparent 59%);
  box-shadow: inset -25px -21px 35px rgba(26, 5, 1, .56), inset 6px 5px 12px rgba(255,244,211,.16);
}

.planet-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(122, 205, 255, .24);
  box-shadow: 0 0 30px rgba(61, 157, 232, .24);
}

.planet-glow,
.planet-ring { z-index: 1; }

.process-orb .planet-glow { border-color: rgba(255, 184, 94, .2); box-shadow: 0 0 30px rgba(244, 120, 36, .2); }

.planet-ring {
  position: absolute;
  width: 198px;
  height: 64px;
  border: 2px solid rgba(133, 210, 255, .62);
  border-radius: 50%;
  transform: rotate(-17deg);
  box-shadow: 0 0 12px rgba(69, 158, 225, .32);
}

.process-orb .planet-ring {
  border-color: rgba(255, 184, 94, .62);
  transform: rotate(18deg);
  box-shadow: 0 0 12px rgba(240, 112, 32, .3);
}

.planet-orb > b {
  position: relative;
  z-index: 3;
  color: rgba(238, 253, 255, .9);
  font-size: 30px;
  letter-spacing: .08em;
  text-shadow: 0 0 14px rgba(255,255,255,.48);
}

.planet-card:hover .planet-orb { transform: scale(1.06); }

.planet-copy {
  position: relative;
  width: 100%;
  margin-top: 23px;
  padding: 16px 14px 14px;
  border: 1px solid rgba(104, 190, 245, .22);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(10, 48, 81, .78), rgba(5, 21, 39, .88));
  box-shadow: 0 12px 34px rgba(0,0,0,.26);
  backdrop-filter: blur(12px);
}

.process-planet .planet-copy { border-color: rgba(255, 163, 68, .25); background: linear-gradient(145deg, rgba(83, 36, 13, .75), rgba(33, 17, 9, .86)); }
.planet-copy small { display: block; margin-top: 9px; color: #78cfff; font-size: 8px; letter-spacing: .12em; }
.process-planet .planet-copy small { color: #ffad5a; }
.planet-copy strong { display: block; color: #f0f9ff; font-size: 18px; }
.planet-copy em { display: block; margin-top: 7px; color: #7896ad; font-size: 10px; font-style: normal; }
.home-view .home-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: 0;
}

@keyframes starPulse {
  50% { transform: scale(1.06); opacity: .72; }
}

@keyframes planetFloatLeft {
  50% { transform: translateY(calc(-50% - 12px)) translateX(7px); }
}

@keyframes planetFloatRight {
  50% { transform: translateY(calc(-50% + 10px)) translateX(-8px); }
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(115, 231, 255, .28);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(27, 106, 170, .3), rgba(28, 21, 87, .34));
  box-shadow: inset 0 0 22px rgba(69, 204, 255, .11), 0 0 28px rgba(37, 190, 255, .09);
}

.brand-mark span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #8df5e1;
  box-shadow: 0 0 16px rgba(115, 255, 225, .9);
}

.brand-mark i {
  position: absolute;
  width: 33px;
  height: 14px;
  border: 1px solid rgba(118, 213, 255, .8);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.home-hero {
  max-width: 840px;
  margin: 10vh auto 48px;
  text-align: center;
}

.hero-brandline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid rgba(112, 218, 255, .18);
  border-radius: 999px;
  color: #9ddcff;
  background: rgba(25, 79, 128, .12);
  font-size: 12px;
  letter-spacing: .15em;
}

.home-kicker span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.home-hero h2 {
  margin-top: 20px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.12;
  letter-spacing: .05em;
  background: linear-gradient(95deg, #f4fbff 18%, #9de8ff 48%, #c8b8ff 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 48px rgba(65, 199, 255, .12);
}

.home-hero p {
  max-width: 720px;
  margin: 20px auto 0;
  color: #9ab0c8;
  font-size: 15px;
  line-height: 1.9;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: auto;
}

.portal-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 16px 20px;
  padding: 30px;
  border: 1px solid rgba(112, 211, 255, .2);
  border-radius: 22px;
  text-align: left;
  background: linear-gradient(145deg, rgba(15, 36, 67, .83), rgba(7, 17, 37, .88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 70px rgba(0,0,0,.32);
  backdrop-filter: blur(16px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.portal-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -110px;
  top: -145px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 173, 255, .2), transparent 68%);
  transition: transform .4s ease;
}

.process-portal::before {
  background: radial-gradient(circle, rgba(132, 93, 255, .22), transparent 68%);
}

.portal-card:hover {
  transform: translateY(-7px);
  border-color: rgba(119, 231, 255, .52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 30px 85px rgba(0,0,0,.42), 0 0 35px rgba(35, 178, 255, .1);
}

.process-portal:hover {
  border-color: rgba(168, 135, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 30px 85px rgba(0,0,0,.42), 0 0 35px rgba(132, 93, 255, .12);
}

.portal-card:hover::before { transform: scale(1.2); }

.portal-index {
  position: absolute;
  right: 24px;
  top: 18px;
  color: rgba(151, 212, 245, .18);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
}

.portal-icon {
  position: relative;
  grid-row: 1 / span 2;
  width: var(--transaction-width, 84px);
  height: 84px;
  align-self: start;
  border: 1px solid rgba(94, 207, 255, .24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 180, 255, .25), rgba(17, 58, 99, .15) 45%, transparent 68%);
  box-shadow: 0 0 35px rgba(38, 179, 255, .13);
}

.portal-icon i {
  position: absolute;
  border-radius: 50%;
  background: #70dfff;
  box-shadow: 0 0 10px currentColor;
}

.portal-icon i:nth-child(1) { width: 19px; height: 19px; left: 32px; top: 31px; }
.portal-icon i:nth-child(2) { width: 9px; height: 9px; left: 13px; top: 18px; color: #79ffd2; }
.portal-icon i:nth-child(3) { width: 7px; height: 7px; right: 11px; bottom: 17px; color: #b59bff; }
.portal-icon::after {
  content: "";
  position: absolute;
  inset: 14px 4px;
  border: 1px solid rgba(115, 224, 255, .6);
  border-radius: 50%;
  transform: rotate(28deg);
}

.process-icon { border-color: rgba(164, 128, 255, .3); background: radial-gradient(circle, rgba(141, 91, 255, .23), rgba(55, 35, 105, .14) 45%, transparent 68%); }
.process-icon i { background: #a985ff; }
.process-icon::after { border-color: rgba(174, 144, 255, .64); transform: rotate(-25deg); }

.portal-copy { display: block; align-self: center; }
.portal-copy small { display: block; color: #63cbff; font-size: 10px; letter-spacing: .14em; }
.process-portal .portal-copy small { color: #ad91ff; }
.portal-copy strong { display: block; margin-top: 9px; color: #f1f9ff; font-size: 24px; }
.portal-copy em { display: block; margin-top: 13px; color: #91a9c1; font-size: 13px; line-height: 1.75; font-style: normal; }

.portal-metrics {
  grid-column: 1 / -1;
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(127, 201, 255, .1);
  color: #7895ae;
  font-size: 12px;
}

.portal-metrics b { margin-right: 4px; color: #ddf7ff; font-size: 18px; }
.portal-metrics .risk-metric b { color: #ff7189; }
.portal-metrics .ready-metric b { color: #8bf3c2; font-size: 13px; }

.portal-action {
  position: absolute;
  right: 28px;
  bottom: 28px;
  color: #a9dfff;
  font-size: 13px;
}

.portal-action b { margin-left: 8px; font-size: 18px; transition: margin-left .25s ease; }
.portal-card:hover .portal-action b { margin-left: 14px; }

.home-footer {
  display: flex;
  justify-content: center;
  gap: 38px;
  margin-top: 34px;
  color: rgba(145, 176, 204, .7);
  font-size: 11px;
  letter-spacing: .08em;
}

.home-footer span::before {
  content: "✦";
  margin-right: 8px;
  color: rgba(102, 224, 255, .7);
}

@keyframes starsDrift { to { transform: translate3d(4%, 6%, 0); } }
@keyframes cosmicSweep { 50% { transform: translateX(60%); } }

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

button {
  color: var(--text);
  cursor: pointer;
  border: 1px solid rgba(80, 228, 255, .35);
  background: linear-gradient(180deg, rgba(27, 77, 96, .8), rgba(9, 28, 42, .9));
  border-radius: 6px;
  padding: 8px 12px;
}

button:hover {
  border-color: rgba(109, 255, 199, .8);
  box-shadow: 0 0 20px rgba(33, 215, 255, .2);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 28px 14px;
}

.module-topbar {
  /* Reserve a dedicated row for the fixed notification/account/logout controls. */
  padding-top: 82px;
  border-bottom: 1px solid rgba(111, 214, 255, .11);
  background: linear-gradient(180deg, rgba(4, 14, 28, .7), transparent);
}

/* Lift the company-map heading without moving the fixed account controls. */
@media (min-width: 1101px) {
  #companyView > .module-topbar { padding-top: 16px; align-items: flex-start; }
  #companyView > .module-topbar > div:first-child { min-width: 0; }
  #companyView > .module-topbar { padding-left: 20px; padding-right: 20px; }
}
#companyView .company-map-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
.company-map-stats .stat { min-width: 0; width: 100%; padding: 6px 3px; }
.company-map-stats .stat small { font-size: 11px; white-space: nowrap; }

.company-info-update-section { margin: 18px 24px 0; border: 1px solid rgba(92, 201, 245, .16); border-radius: 13px; background: rgba(5, 22, 39, .88); box-shadow: 0 12px 34px rgba(0,0,0,.16); }
.company-info-update-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 17px; cursor: pointer; list-style: none; }
.company-info-update-section > summary::-webkit-details-marker { display: none; }
.company-info-update-section > summary span,
.company-info-update-section > summary b,
.company-info-update-section > summary small { display: block; }
.company-info-update-section > summary b { color: #dff6ff; font-size: 14px; }
.company-info-update-section > summary small { margin-top: 4px; color: #6d899b; font-size: 9px; }
.company-info-update-section > summary em { padding: 4px 8px; border-radius: 999px; color: #ffd58d; background: rgba(202,129,31,.18); font-size: 9px; font-style: normal; }
.company-info-update-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(92, 201, 245, .11); border-bottom: 1px solid rgba(92, 201, 245, .11); }
.company-info-update-action { display: grid; align-content: start; gap: 11px; min-width: 0; padding: 16px 18px; }
.company-info-update-action + .company-info-update-action { border-left: 1px solid rgba(92, 201, 245, .11); }
.company-info-update-action span { color: #4ebfe9; font-size: 8px; letter-spacing: .12em; }
.company-info-update-action h3 { margin: 4px 0 0; color: #dbf4ff; font-size: 13px; }
.company-info-update-action p { margin: 6px 0 0; color: #718b9b; font-size: 9px; line-height: 1.6; }
.company-info-update-action label { display: grid; gap: 6px; color: #7d9bad; font-size: 9px; }
.company-info-update-action textarea,
.company-info-update-action input[type="file"] { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid rgba(92,201,245,.18); border-radius: 8px; color: #dff5ff; background: rgba(3,15,28,.78); font: inherit; }
.company-info-update-action textarea { min-height: 48px; resize: vertical; }
.company-info-update-action button { justify-self: start; padding: 8px 12px; }
.company-info-file-field small { color: #58768a; font-size: 8px; }
.company-info-update-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px 0; }
.company-info-update-history-head b,
.company-info-update-history-head small { display: block; }
.company-info-update-history-head b { color: #d9f3ff; font-size: 12px; }
.company-info-update-history-head small { margin-top: 3px; color: #688599; font-size: 8px; }
.company-info-update-history-head button { padding: 6px 9px; font-size: 9px; }
.company-info-update-section > .edit-status { margin: 8px 17px 0; }
.company-info-update-list { display: grid; gap: 7px; max-height: 330px; overflow: auto; padding: 10px 17px 16px; }
.company-info-update-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 11px; border: 1px solid rgba(92,201,245,.1); border-radius: 9px; background: rgba(9,31,50,.62); }
.company-info-update-item > em { padding: 4px 7px; border-radius: 999px; color: #9db3c0; background: rgba(112,142,158,.14); font-size: 8px; font-style: normal; }
.company-info-update-item > em.pending { color: #ffd083; background: rgba(196,127,34,.17); }
.company-info-update-item > em.approved { color: #83e3bf; background: rgba(40,151,111,.17); }
.company-info-update-item > em.rejected { color: #ff8ca2; background: rgba(193,57,86,.17); }
.company-info-update-main b,
.company-info-update-main small { display: block; }
.company-info-update-main b { color: #d7f2ff; font-size: 10px; }
.company-info-update-main small { margin-top: 4px; color: #6d8798; font-size: 8px; }
.company-info-update-actions { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.company-info-update-actions button,
.company-info-update-actions a { padding: 6px 8px; border: 1px solid rgba(92,201,245,.18); border-radius: 7px; color: #86d9f5; background: rgba(9,42,60,.55); font-size: 8px; text-decoration: none; cursor: pointer; }
.company-info-update-actions .approve { color: #81e2bd; border-color: rgba(61,200,148,.25); }
.company-info-update-actions .reject { color: #ff8da2; border-color: rgba(218,72,102,.25); }
.side-panel .side-company-info-update { margin: 0; overflow: hidden; border-radius: 8px; }
.side-panel .side-company-info-update > summary { padding: 14px 16px; }
.side-panel .side-company-info-update > summary span { min-width: 0; }
.side-panel .side-company-info-update > summary small { line-height: 1.5; }
.side-panel .side-company-info-update .company-info-update-body { grid-template-columns: 1fr; }
.side-panel .side-company-info-update .company-info-update-action { padding: 15px 16px; }
.side-panel .side-company-info-update .company-info-update-action + .company-info-update-action { border-top: 1px solid rgba(92, 201, 245, .11); border-left: 0; }
.side-panel .side-company-info-update .company-info-update-history-head { padding-inline: 16px; }
.side-panel .side-company-info-update .company-info-update-list { padding-inline: 16px; }
.side-panel .side-company-info-update .company-info-update-item { grid-template-columns: 1fr; }
.side-panel .side-company-info-update .company-info-update-actions { justify-content: flex-start; }

.module-navline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.home-button,
.module-switch {
  padding: 5px 10px;
  border-color: rgba(105, 220, 255, .25);
  border-radius: 999px;
  color: #9edfff;
  background: rgba(16, 53, 80, .46);
  font-size: 12px;
}

.module-switch { color: #b9a7ff; border-color: rgba(168, 135, 255, .26); }

.process-view {
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 18%, rgba(114, 79, 226, .13), transparent 28%),
    radial-gradient(circle at 21% 38%, rgba(36, 173, 235, .11), transparent 30%),
    #040b15;
}

.process-topbar { padding-bottom: 18px; }
.process-view:not(.design-mode) .module-topbar { padding-top: 20px; }

.process-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
  padding: 12px 16px;
  border: 1px solid rgba(112, 232, 195, .2);
  border-radius: 12px;
  background: rgba(12, 49, 47, .32);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #68f5bd;
  box-shadow: 0 0 0 7px rgba(104, 245, 189, .08), 0 0 16px rgba(104, 245, 189, .7);
}

.process-status b,
.process-status small { display: block; }
.process-status b { color: #caffeb; font-size: 13px; }
.process-status small { margin-top: 3px; color: #759b98; font-size: 11px; }

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  padding: 0 20px 24px;
}

.process-map-panel {
  overflow: hidden;
  border: 1px solid rgba(112, 202, 255, .15);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(9, 23, 42, .94), rgba(5, 13, 28, .96));
  box-shadow: 0 20px 70px rgba(0,0,0,.3);
}

.process-tag {
  padding: 5px 9px;
  border: 1px solid rgba(168, 137, 255, .22);
  border-radius: 999px;
  color: #ae96ff;
  font-size: var(--transaction-font-size, 10px);
  letter-spacing: .1em;
}

.process-canvas {
  position: relative;
  height: calc(100vh - 172px);
  min-height: 600px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 60%, rgba(31, 161, 235, .12), transparent 28%),
    radial-gradient(circle at 73% 36%, rgba(125, 83, 229, .13), transparent 31%),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.36) 1px, transparent 1.3px);
  background-size: auto, auto, 82px 82px;
}

.process-nebula {
  position: absolute;
  inset: 10% 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(55, 143, 220, .08), transparent 66%);
  filter: blur(25px);
}

.process-map-svg {
  position: relative;
  width: 100%;
  height: calc(100% - 46px);
  display: block;
}

.process-orbit-line {
  fill: none;
  stroke: url(#processLine);
  stroke-width: 1.2;
  stroke-dasharray: 9 13;
}

.process-main-line {
  fill: none;
  stroke: url(#processLine);
  stroke-width: 3;
  filter: drop-shadow(0 0 7px rgba(74, 214, 255, .45));
}

.process-node circle:first-child { filter: drop-shadow(0 0 16px rgba(63, 203, 255, .35)); }
.process-node text { fill: #f2fbff; font-size: 15px; font-weight: 800; text-anchor: middle; }
.process-node .node-sub { fill: #a6bdd1; font-size: 10px; font-weight: 500; }
.process-ring { fill: none; stroke: rgba(147, 229, 255, .25); stroke-width: 1; stroke-dasharray: 4 7; }

.process-guide {
  position: absolute;
  left: 24px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7792aa;
  font-size: 11px;
}
.process-guide span { width: 7px; height: 7px; border-radius: 50%; background: #65e8bd; box-shadow: 0 0 10px rgba(101,232,189,.8); }

.process-side-panel { display: flex; flex-direction: column; gap: 16px; }
.process-card { border-radius: 12px; }
.process-checklist { padding: 8px 16px 16px; }
.process-checklist > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.065);
}
.process-checklist > div:last-child { border-bottom: 0; }
.process-checklist b { color: #58cfff; font-size: 11px; }
.process-checklist span,
.process-checklist strong,
.process-checklist small { display: block; }
.process-checklist strong { color: #dcefff; font-size: 13px; }
.process-checklist small { margin-top: 4px; color: #718a9f; font-size: 11px; }

.process-note-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-color: rgba(164, 129, 255, .19);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(49, 33, 96, .34), rgba(10, 20, 38, .86));
}
.note-icon { color: #b89cff; font-size: 22px; }
.process-note-card strong { color: #eadfff; font-size: 13px; }
.process-note-card p { margin-top: 6px; color: #8192aa; font-size: 11px; line-height: 1.7; }

.process-workspace {
  padding: 0 20px 28px;
}

/* The designer has its own workspace navigation; remove the duplicated module header and tabs. */
.process-view.design-mode > .process-topbar,
.process-view.design-mode .process-workspace-tabs { display: none; }
.process-view.design-mode .process-workspace { padding-top: 72px; }

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

.process-workspace-tabs button {
  display: grid;
  grid-template-columns: 42px auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-color: rgba(112, 207, 255, .16);
  border-radius: 12px;
  text-align: left;
  background: linear-gradient(145deg, rgba(12, 30, 54, .8), rgba(6, 16, 32, .9));
}

.process-workspace-tabs button > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(105, 215, 255, .22);
  border-radius: 50%;
  color: #69d9ff;
  font-size: 11px;
}

.process-workspace-tabs button b { color: #dff5ff; font-size: 15px; }
.process-workspace-tabs button small { justify-self: end; color: #6f8ba2; font-size: 11px; }
.process-workspace-tabs button.active {
  border-color: rgba(112, 239, 198, .46);
  background: linear-gradient(145deg, rgba(15, 57, 64, .86), rgba(8, 27, 41, .94));
  box-shadow: inset 0 0 28px rgba(72, 221, 176, .055), 0 0 24px rgba(58, 202, 171, .06);
}
.process-workspace-tabs button.active > span { color: #89f4cd; border-color: rgba(120, 241, 201, .4); }

.process-workspace-panel {
  border: 1px solid rgba(113, 207, 255, .14);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(8, 22, 41, .95), rgba(4, 12, 26, .96));
  box-shadow: 0 24px 75px rgba(0,0,0,.3);
  overflow: hidden;
}

.invoice-risk-head,
.flow-design-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(122, 208, 255, .12);
}

.invoice-risk-head h2,
.flow-design-head h2 { margin-top: 6px; font-size: 24px; }
.invoice-risk-head p,
.flow-design-head p { margin-top: 7px; color: #7892a7; font-size: 12px; }

.invoice-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 700px;
}

.invoice-summary > div,
.invoice-summary > button {
  min-width: 105px;
  padding: 11px 14px;
  border: 1px solid rgba(111, 210, 255, .13);
  border-radius: 10px;
  text-align: center;
  background: rgba(8, 31, 55, .62);
}
.invoice-summary > button { cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.invoice-summary > button:hover { transform: translateY(-2px); border-color: rgba(112, 224, 255, .38); }
.invoice-summary > button.active { border-color: rgba(118, 235, 255, .66); background: rgba(18, 61, 86, .9); box-shadow: 0 0 18px rgba(69, 203, 239, .14); }

.invoice-summary b,
.invoice-summary span { display: block; }
.invoice-summary b { color: #77e9ff; font-size: 24px; }
.invoice-summary > button:first-child b { color: #ff738d; }
.invoice-summary .risk-high b { color: #ff5f7d; }
.invoice-summary .risk-medium b { color: #ffb45f; }
.invoice-summary .risk-low b { color: #ffe176; }
.invoice-summary span { margin-top: 3px; color: #6f8ca2; font-size: 10px; }
.invoice-summary em { display: block; margin-top: 5px; color: #4f738c; font-size: 8px; font-style: normal; }

.invoice-period-summary { display: grid; gap: 8px; margin: 10px 0 4px; }
.invoice-period-row { display: grid; grid-template-columns: 120px 76px repeat(6, minmax(92px, 1fr)); gap: 8px; align-items: stretch; padding: 8px 12px; border: 1px solid rgba(111, 210, 255, .12); border-radius: 11px; background: rgba(5, 21, 39, .58); }
.invoice-period-row > strong { align-self: center; color: #d7f3ff; font-size: 12px; }
.invoice-period-company-count { align-self: center; color: #68869b; font-size: 10px; }
.invoice-period-company-count i { color: #8ae8c7; font-style: normal; }
.invoice-period-summary button { padding: 9px 12px; border: 1px solid rgba(111, 210, 255, .15); border-radius: 8px; text-align: left; background: linear-gradient(145deg, rgba(10, 35, 59, .86), rgba(5, 21, 39, .88)); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.invoice-period-summary button:hover { transform: translateY(-2px); border-color: rgba(111, 220, 255, .42); }
.invoice-period-summary button.active { border-color: rgba(116, 237, 255, .65); background: linear-gradient(145deg, rgba(16, 70, 91, .9), rgba(7, 35, 55, .95)); box-shadow: 0 0 22px rgba(73, 207, 240, .12); }
.invoice-period-summary b,
.invoice-period-summary span,
.invoice-period-summary small { display: block; }
.invoice-period-summary b { color: #76e8ff; font-size: 20px; }
.invoice-period-summary button span { display: block; margin-top: 2px; color: #d7f3ff; font-size: 10px; font-weight: 700; }

.invoice-dimension-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 24px 4px;
}
.invoice-dimension-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid rgba(110, 205, 248, .14);
  border-radius: 10px;
  color: #7897ab;
  text-align: left;
  background: rgba(6, 25, 43, .64);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.invoice-dimension-tabs button:hover { transform: translateY(-1px); border-color: rgba(110, 220, 255, .34); }
.invoice-dimension-tabs button.active { border-color: rgba(107, 235, 255, .58); color: #e0f8ff; background: linear-gradient(135deg, rgba(18, 75, 98, .74), rgba(7, 35, 57, .88)); box-shadow: 0 0 24px rgba(73, 207, 240, .1); }
.invoice-dimension-tabs b,
.invoice-dimension-tabs span { display: block; }
.invoice-dimension-tabs b { color: inherit; font-size: 13px; }
.invoice-dimension-tabs span { color: #6f8da2; font-size: 10px; }
.invoice-dimension-tabs button.active span { color: #91cadd; }
.invoice-dimension-panel { padding: 0 24px 12px; }
.invoice-dimension-panel .invoice-risk-details { margin: 12px -24px -12px; }

.invoice-company-dimension { padding-top: 10px; }
.invoice-company-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 14px;
}
.invoice-company-periods,
.invoice-company-level-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.invoice-company-periods button,
.invoice-company-level-filters button {
  padding: 7px 11px;
  border: 1px solid rgba(108, 199, 239, .16);
  border-radius: 999px;
  color: #7899ae;
  background: rgba(8, 31, 51, .58);
  font-size: 10px;
}
.invoice-company-periods button.active,
.invoice-company-level-filters button.active { border-color: rgba(103, 222, 255, .48); color: #e1f9ff; background: rgba(25, 91, 116, .5); }
.invoice-company-level-filters b { margin-left: 3px; color: #9cead0; }
.invoice-company-toolbar label { display: flex; align-items: center; gap: 8px; color: #7895a8; font-size: 10px; }
.invoice-company-toolbar input {
  width: 230px;
  padding: 8px 11px;
  border: 1px solid rgba(105, 213, 255, .2);
  border-radius: 8px;
  color: #dff7ff;
  background: rgba(3, 17, 31, .76);
}
.invoice-company-dimension-body {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  min-height: 560px;
  border: 1px solid rgba(105, 211, 255, .14);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(5, 20, 36, .58);
}
.invoice-company-directory { min-width: 0; border-right: 1px solid rgba(105, 211, 255, .13); background: rgba(6, 25, 43, .7); }
.invoice-company-directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 15px;
  border-bottom: 1px solid rgba(105, 211, 255, .12);
}
.invoice-company-directory-head b { color: #dcf5ff; font-size: 13px; }
.invoice-company-directory-head span { color: #6b899e; font-size: 9px; }
.invoice-company-risk-list { max-height: 640px; overflow: auto; padding: 8px; }
.invoice-company-directory-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  width: 100%;
  margin-bottom: 6px;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #9cb8c9;
  text-align: left;
  background: rgba(13, 38, 59, .44);
}
.invoice-company-directory-item:hover { border-color: rgba(105, 211, 255, .22); background: rgba(17, 52, 76, .58); }
.invoice-company-directory-item.active { border-color: rgba(106, 232, 255, .5); background: linear-gradient(135deg, rgba(24, 83, 104, .72), rgba(9, 42, 65, .82)); box-shadow: inset 3px 0 0 #64def6; }
.invoice-company-directory-name { display: grid; grid-template-columns: 11px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; }
.invoice-company-directory-name i { grid-row: 1 / span 2; width: 9px; height: 9px; border-radius: 50%; background: var(--company-color); box-shadow: 0 0 10px var(--company-color); }
.invoice-company-directory-name b { overflow: hidden; color: #d9f3ff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.invoice-company-directory-name small { overflow: hidden; color: #668399; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.invoice-company-directory-item .company-risk-badges { grid-column: 1 / -1; flex-wrap: wrap; padding-left: 19px; }
.invoice-company-directory-item > em { grid-column: 2; grid-row: 1; align-self: center; color: #8fe7c9; font-size: 9px; font-style: normal; white-space: nowrap; }
.invoice-company-directory-empty { padding: 36px 14px; color: #6c899d; font-size: 11px; text-align: center; }
.invoice-company-risk-details { min-width: 0; }
.invoice-company-risk-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(105, 211, 255, .12);
}
.invoice-company-risk-details-head h3 { margin: 0; color: #e0f6ff; font-size: 15px; }
.invoice-company-risk-details-head > div:first-child > span { display: block; margin-top: 4px; color: #69869a; font-size: 9px; }
.invoice-company-risk-alert-list { max-height: 584px; overflow: auto; padding: 12px; }
.invoice-company-level-section { margin-bottom: 14px; }
.invoice-company-level-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding: 0 3px; }
.invoice-company-level-title b { color: #dceff7; font-size: 12px; }
.invoice-company-level-title span { color: #7894a7; font-size: 9px; }
.invoice-company-level-section.risk-extreme .invoice-company-level-title b { color: #ff718f; }
.invoice-company-level-section.risk-high .invoice-company-level-title b { color: #ff9bad; }
.invoice-company-level-section.risk-medium .invoice-company-level-title b { color: #ffc27f; }
.invoice-company-level-section.risk-low .invoice-company-level-title b { color: #ffe889; }
.invoice-company-level-section.risk-minimal .invoice-company-level-title b { color: #93c8da; }
.invoice-company-level-alerts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

.invoice-analytics-dimension { padding-top: 10px; }
.invoice-analytics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 14px;
}
.invoice-analytics-toolbar h3,
.invoice-analytics-chart-head h3,
.invoice-analytics-history-card h3 { margin: 0; color: #e0f6ff; font-size: 15px; }
.invoice-analytics-toolbar > div > span,
.invoice-analytics-chart-head > div > span,
.invoice-analytics-history-card > div > span { display: block; margin-top: 5px; color: #6f8da2; font-size: 10px; }
.invoice-analytics-selectors { display: flex; align-items: center; gap: 10px; }
.invoice-analytics-selectors label { display: flex; align-items: center; gap: 7px; margin: 0; white-space: nowrap; }
.invoice-analytics-selectors label > span { font-size: 10px; }
.invoice-analytics-selectors select { width: 260px; min-height: 36px; color: #dff7ff; background: rgba(3, 17, 31, .76); }
.invoice-analytics-selectors label:last-child select { width: 145px; }

.invoice-analytics-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.invoice-analytics-summary > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 12px;
  min-height: 78px;
  padding: 13px 15px;
  border: 1px solid rgba(105, 211, 255, .14);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(11, 39, 61, .76), rgba(5, 22, 39, .8));
}
.invoice-analytics-summary small { color: #7895a9; font-size: 10px; }
.invoice-analytics-summary b { grid-column: 2; grid-row: 1 / span 2; color: #78e8ff; font-size: 27px; }
.invoice-analytics-summary span { color: #58778c; font-size: 9px; }
.invoice-analytics-summary b.increase,
.invoice-analytics-history td.increase { color: #ff7891; }
.invoice-analytics-summary b.decrease,
.invoice-analytics-history td.decrease { color: #72e5b6; }
.invoice-analytics-summary b.unchanged,
.invoice-analytics-history td.unchanged { color: #89a5b8; }

.invoice-analytics-chart-card,
.invoice-analytics-history-card {
  border: 1px solid rgba(105, 211, 255, .14);
  border-radius: 12px;
  background: rgba(5, 20, 36, .62);
  overflow: hidden;
}
.invoice-analytics-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(105, 211, 255, .12);
}
.invoice-analytics-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; color: #7895a8; font-size: 9px; }
.invoice-analytics-legend span { display: inline-flex; align-items: center; gap: 5px; }
.invoice-analytics-legend i { width: 9px; height: 9px; border-radius: 2px; }
.invoice-analytics-legend .baseline i { background: #667e9c; }
.invoice-analytics-legend .previous i { background: #f0a24a; }
.invoice-analytics-legend .current i { background: #49d9aa; box-shadow: 0 0 8px rgba(73, 217, 170, .5); }
.invoice-analytics-chart { min-height: 310px; padding: 20px 22px 16px; }
.invoice-analytics-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 18px;
  align-items: end;
  min-height: 270px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(112, 209, 249, .17);
  background: repeating-linear-gradient(to top, transparent 0, transparent 53px, rgba(108, 198, 235, .07) 54px);
}
.invoice-analytics-category { display: grid; grid-template-rows: 235px 30px; min-width: 0; }
.invoice-analytics-bar-group { display: flex; align-items: end; justify-content: center; gap: 7px; min-width: 0; }
.invoice-analytics-bar {
  position: relative;
  display: flex;
  align-items: end;
  width: min(28px, 27%);
  height: var(--bar-height);
  min-height: 2px;
}
.invoice-analytics-bar i { position: absolute; inset: 0; border-radius: 4px 4px 1px 1px; background: #667e9c; }
.invoice-analytics-bar.previous i { background: linear-gradient(180deg, #ffc06f, #b66b24); }
.invoice-analytics-bar.current i { background: linear-gradient(180deg, #77f1c6, #209b78); box-shadow: 0 0 12px rgba(73, 217, 170, .2); }
.invoice-analytics-bar em { position: absolute; z-index: 1; top: -20px; left: 50%; color: #b9d8e5; font-size: 10px; font-style: normal; transform: translateX(-50%); }
.invoice-analytics-category > b { align-self: center; color: #a9c7d5; font-size: 11px; text-align: center; }

.invoice-analytics-history-card { margin-top: 12px; padding-top: 14px; }
.invoice-analytics-history-card > div:first-child { padding: 0 16px 12px; }
.invoice-analytics-history { overflow-x: auto; border-top: 1px solid rgba(105, 211, 255, .1); }
.invoice-analytics-history table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 10px; }
.invoice-analytics-history th,
.invoice-analytics-history td { padding: 10px 12px; border-bottom: 1px solid rgba(105, 211, 255, .08); color: #8eacbd; text-align: center; }
.invoice-analytics-history th { color: #6f91a6; background: rgba(7, 28, 47, .72); font-weight: 500; }
.invoice-analytics-history tr.active td { background: rgba(30, 100, 116, .2); }
.invoice-analytics-history td b { color: #dff6ff; }
.invoice-analytics-history button { padding: 3px 5px; border: 0; color: #8de8ca; background: transparent; font-size: 10px; }
.invoice-analytics-history button:hover { color: #dffff4; text-decoration: underline; }

.invoice-rule-card {
  margin: 18px 24px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 113, 141, .18);
  border-radius: 12px;
  background: linear-gradient(105deg, rgba(67, 23, 49, .38), rgba(13, 27, 48, .5));
}

.rule-title { display: flex; align-items: center; gap: 10px; }
.rule-title span { padding: 4px 8px; border-radius: 999px; color: #ff9aae; background: rgba(255, 101, 132, .12); font-size: 10px; }
.rule-title b { color: #ffdbe2; font-size: 13px; }
.rule-flow { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 15px 0 12px; }
.rule-flow > i { color: #65d4ff; font-style: normal; font-size: 22px; }
.rule-flow .cycle-arrow { color: #ff6d89; font-size: 30px; }
.rule-node { min-width: 180px; padding: 10px 13px; border: 1px solid rgba(111, 212, 255, .16); border-radius: 9px; background: rgba(8, 29, 50, .72); }
.rule-node small,
.rule-node b { display: block; }
.rule-node small { color: #6f92ab; font-size: 9px; }
.rule-node b { margin-top: 3px; color: #e3f6ff; font-size: 12px; }
.supplier-node { border-color: rgba(91, 208, 255, .24); }
.anchor-node { border-color: rgba(110, 241, 195, .26); }
.customer-node { border-color: rgba(173, 133, 255, .26); }
.invoice-rule-card > p { text-align: center; color: #8aa1b5; font-size: 11px; }

.party-ranking-panel {
  margin: 16px 24px 0;
  border: 1px solid rgba(105, 211, 255, .16);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(7, 25, 44, .62);
}
.party-ranking-toggle { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; cursor: pointer; list-style: none; }
.party-ranking-toggle::-webkit-details-marker { display: none; }
.party-ranking-toggle b,
.party-ranking-toggle small { display: block; }
.party-ranking-toggle b { color: #ddf5ff; font-size: 15px; }
.party-ranking-toggle small { margin-top: 5px; color: #68879d; font-size: 10px; }
.party-ranking-toggle em { color: #77dff9; font-size: 10px; font-style: normal; }
.party-ranking-panel[open] .party-ranking-toggle { border-bottom: 1px solid rgba(109, 205, 255, .12); }
.party-ranking-panel[open] .party-ranking-toggle em::before { content: "收起内容 · "; }
.party-ranking-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; border-bottom: 1px solid rgba(109, 205, 255, .12); }
.party-ranking-head h3 { margin: 0; color: #ddf5ff; font-size: 15px; }
.party-ranking-head > div > span { display: block; margin-top: 4px; color: #68879d; font-size: 10px; }
.party-ranking-head label { display: flex; align-items: center; gap: 8px; color: #7f9bb0; font-size: 10px; }
.party-ranking-head input { width: 230px; padding: 7px 10px; border: 1px solid rgba(105, 213, 255, .2); border-radius: 8px; color: #dff7ff; background: rgba(3, 17, 31, .76); }
.party-ranking-columns,
.party-ranking-row { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(340px, 1.2fr) minmax(340px, 1.2fr); }
.party-ranking-columns { padding: 8px 16px; color: #6990aa; background: rgba(41, 105, 139, .12); font-size: 10px; }
.party-ranking-columns span:not(:first-child) { padding-left: 16px; }
.party-ranking-list { max-height: 620px; overflow: auto; }
.party-ranking-row { border-top: 1px solid rgba(103, 187, 229, .09); }
.party-ranking-row:first-child { border-top: 0; }
.party-ranking-row > div { min-width: 0; padding: 13px 16px; border-left: 1px solid rgba(103, 187, 229, .08); }
.party-ranking-row > div:first-child { border-left: 0; }
.party-ranking-subject { display: flex; align-items: flex-start; gap: 10px; }
.party-ranking-subject i { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: var(--subject-color); box-shadow: 0 0 10px var(--subject-color); }
.party-ranking-subject b,
.party-ranking-subject small { display: block; }
.party-ranking-subject b { color: #daf3ff; font-size: 11px; line-height: 1.55; }
.party-ranking-subject small { margin-top: 4px; color: #637f94; font-size: 9px; }
.party-ranking-row ol { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.party-ranking-row li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-width: 0; font-size: 9px; }
.party-ranking-row li em { color: #5fbfe5; font-style: normal; text-align: right; }
.party-ranking-row li span { overflow: hidden; color: #abc7d8; text-overflow: ellipsis; white-space: nowrap; }
.party-ranking-row li b { color: #84e3c1; font-size: 9px; font-weight: 600; font-variant-numeric: tabular-nums; }
.party-ranking-empty,
.party-ranking-no-result { color: #627e92; font-size: 10px; }
.party-ranking-no-result { padding: 28px; text-align: center; }

.process-standalone-panel {
  margin-top: 16px;
  border: 1px solid rgba(113, 207, 255, .14);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(8, 22, 41, .95), rgba(4, 12, 26, .96));
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}
.process-standalone-panel .party-ranking-panel { margin: 0; border: 0; border-radius: 0; background: transparent; }

.invoice-data-update-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(122, 208, 255, .12);
  cursor: pointer;
  list-style: none;
}
.invoice-data-update-head::-webkit-details-marker { display: none; }
.invoice-data-update-panel:not([open]) .invoice-data-update-head { border-bottom: 0; }
.invoice-data-toggle { flex: 0 0 auto; padding: 7px 11px; border: 1px solid rgba(105, 211, 255, .2); border-radius: 999px; color: #86dff7; background: rgba(16, 62, 84, .35); font-size: 9px; font-style: normal; white-space: nowrap; }
.invoice-data-update-panel[open] .invoice-data-toggle::before { content: "收起数据更新"; }
.invoice-data-update-panel[open] .invoice-data-toggle { font-size: 0; }
.invoice-data-update-panel[open] .invoice-data-toggle::before { font-size: 9px; }
.invoice-data-update-head h2 { margin-top: 6px; color: #e0f6ff; font-size: 22px; }
.invoice-data-update-head p { margin-top: 7px; color: #7892a7; font-size: 11px; }
.invoice-data-window { min-width: 310px; padding: 12px 15px; border: 1px solid rgba(105, 211, 255, .16); border-radius: 11px; background: rgba(7, 29, 49, .64); text-align: right; }
.invoice-data-window small,
.invoice-data-window b,
.invoice-data-window span { display: block; }
.invoice-data-window small { color: #66869c; font-size: 9px; }
.invoice-data-window b { margin-top: 4px; color: #89e9ff; font-size: 13px; }
.invoice-data-window span { margin-top: 4px; color: #83c9ae; font-size: 9px; }
.invoice-data-update-body { display: grid; grid-template-columns: minmax(360px, .8fr) minmax(520px, 1.2fr); }
.invoice-import-form { min-width: 0; padding: 18px; border-right: 1px solid rgba(105, 211, 255, .12); background: rgba(6, 24, 42, .5); }
.invoice-import-form-head,
.invoice-import-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.invoice-import-form-head b,
.invoice-import-history-head b { color: #dbf4ff; font-size: 13px; }
.invoice-import-form-head span { padding: 4px 8px; border-radius: 999px; color: #9be9cb; background: rgba(46, 142, 109, .16); font-size: 9px; }
.invoice-import-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.invoice-import-fields label { display: grid; gap: 6px; color: #7895a8; font-size: 10px; }
.invoice-import-fields input,
.invoice-import-fields select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid rgba(105, 213, 255, .18); border-radius: 8px; color: #dbf5ff; background: rgba(3, 17, 31, .78); }
.invoice-import-fields input[type="file"] { padding: 7px; }
.invoice-import-file-field { grid-column: 1 / -1; }
.invoice-import-file-field small { color: #607f94; font-size: 9px; line-height: 1.55; }
.invoice-import-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.invoice-import-actions button { flex: 0 0 auto; padding: 9px 14px; }
.invoice-import-actions .edit-status { margin: 0; white-space: pre-line; }
.invoice-workbook-validation-details { display: grid; gap: 10px; margin-top: 13px; padding: 12px; border: 1px solid rgba(105, 211, 255, .15); border-radius: 10px; background: rgba(4, 22, 37, .72); }
.invoice-workbook-validation-details[hidden] { display: none; }
.invoice-workbook-validation-details header { display: grid; gap: 4px; }
.invoice-workbook-validation-details header b { color: #dff8ff; font-size: 11px; }
.invoice-workbook-validation-details header span { color: #7899aa; font-size: 9px; line-height: 1.55; }
.invoice-workbook-validation-details > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.invoice-workbook-validation-details > div > span { display: grid; gap: 3px; min-width: 0; padding: 7px 9px; border-radius: 7px; background: rgba(8, 43, 55, .65); }
.invoice-workbook-validation-details > div b { overflow: hidden; color: #c8f4e6; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.invoice-workbook-validation-details > div small { overflow: hidden; color: #6f9c9d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.invoice-workbook-validation-details.passed { border-color: rgba(67, 220, 168, .33); background: rgba(11, 63, 54, .35); }
.invoice-workbook-validation-details.passed header b { color: #83edc6; }
.invoice-workbook-validation-details.failed { border-color: rgba(245, 91, 119, .38); background: rgba(75, 16, 36, .38); }
.invoice-workbook-validation-details.failed header b { color: #ff91a7; }
.invoice-workbook-validation-details ol { display: grid; gap: 6px; max-height: 210px; margin: 0; padding: 0 0 0 19px; overflow: auto; }
.invoice-workbook-validation-details li { color: #ef8fa0; font-size: 8px; line-height: 1.55; }
.invoice-workbook-validation-details li b { margin-right: 7px; color: #ffc1cb; }
.invoice-workbook-validation-details li span { color: #d999a6; }
.invoice-import-history { min-width: 0; }
.invoice-import-history-head { padding: 14px 16px; border-bottom: 1px solid rgba(105, 211, 255, .1); }
.invoice-import-history-head small { display: block; margin-top: 4px; color: #66859a; font-size: 9px; }
.invoice-import-history-head button { padding: 6px 10px; color: #85dcf6; font-size: 9px; }
.invoice-import-history-head em { margin-left: 4px; padding: 2px 6px; border-radius: 999px; color: #fff; background: #ee4d6d; font-style: normal; }
.invoice-import-list { max-height: 420px; overflow: auto; padding: 10px; }
.invoice-import-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 8px; padding: 12px; border: 1px solid rgba(105, 211, 255, .1); border-radius: 10px; background: rgba(9, 31, 50, .58); }
.invoice-import-status { padding: 4px 8px; border-radius: 999px; color: #9ab8c9; background: rgba(104, 143, 161, .14); font-size: 9px; white-space: nowrap; }
.invoice-import-status.pending { color: #ffd086; background: rgba(199, 126, 32, .17); }
.invoice-import-status.approved { color: #8debc8; background: rgba(39, 151, 112, .17); }
.invoice-import-status.rejected { color: #ff8ca2; background: rgba(193, 57, 86, .16); }
.invoice-import-main { min-width: 0; }
.invoice-import-main b,
.invoice-import-main small,
.invoice-import-main p,
.invoice-import-main em { display: block; }
.invoice-import-main b { color: #d9f3ff; font-size: 11px; }
.invoice-import-main small { margin-top: 4px; overflow: hidden; color: #748fa2; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.invoice-import-main p { margin-top: 5px; color: #96b7c8; font-size: 9px; }
.invoice-import-main em { margin-top: 4px; color: #58758b; font-size: 8px; font-style: normal; }
.invoice-import-sheet-details { margin-top: 8px; border-top: 1px solid rgba(105, 211, 255, .1); }
.invoice-import-sheet-details summary { padding: 7px 0 2px; color: #78d9bd; font-size: 8px; cursor: pointer; }
.invoice-import-sheet-details > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: 5px; }
.invoice-import-sheet-details span { display: grid; gap: 2px; min-width: 0; padding: 6px 7px; border-radius: 6px; background: rgba(4, 24, 39, .7); }
.invoice-import-sheet-details span b { overflow: hidden; color: #bfe9e1; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.invoice-import-sheet-details span small { margin: 0; color: #628b91; font-size: 7px; }
.invoice-import-review-actions { display: flex; gap: 6px; }
.invoice-import-review-actions button { padding: 6px 9px; color: #ff91a5; font-size: 9px; }
.invoice-import-review-actions button.approve { color: #8ee9c8; border-color: rgba(74, 216, 167, .25); background: rgba(35, 119, 91, .18); }
.invoice-import-empty { padding: 38px 16px; color: #66859a; font-size: 10px; text-align: center; }
.invoice-source-update-section { grid-column: 1 / -1; border-top: 1px solid rgba(105, 211, 255, .14); background: rgba(4, 20, 36, .56); }
.invoice-source-update-head,
.invoice-source-history-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; }
.invoice-source-update-head { border-bottom: 1px solid rgba(105, 211, 255, .1); }
.invoice-source-update-head span { display: block; color: #67d9ba; font-size: 8px; letter-spacing: .14em; }
.invoice-source-update-head b { display: block; margin-top: 4px; color: #e0f6ff; font-size: 14px; }
.invoice-source-update-head small,
.invoice-source-history-head small { display: block; margin-top: 4px; color: #6d899d; font-size: 9px; }
.invoice-source-update-head em { padding: 4px 8px; border-radius: 999px; color: #ffd08a; background: rgba(185, 119, 34, .18); font-size: 9px; font-style: normal; }
.invoice-source-update-grid { display: grid; grid-template-columns: .8fr 1.2fr; border-bottom: 1px solid rgba(105, 211, 255, .1); }
.invoice-source-action { display: grid; align-content: start; gap: 9px; padding: 17px 18px; }
.invoice-source-action + .invoice-source-action { border-left: 1px solid rgba(105, 211, 255, .1); }
.invoice-source-action h3 { color: #d9f4ff; font-size: 12px; }
.invoice-source-action p { color: #718da0; font-size: 9px; line-height: 1.6; }
.invoice-source-action label > small { color: #607f94; font-size: 8px; line-height: 1.55; }
.invoice-source-action label { display: grid; gap: 5px; color: #7895a8; font-size: 9px; }
.invoice-source-action input,
.invoice-source-action select,
.invoice-source-action textarea { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid rgba(105, 213, 255, .18); border-radius: 8px; color: #dbf5ff; background: rgba(3, 17, 31, .78); }
.invoice-source-action textarea { min-height: 58px; resize: vertical; }
.invoice-source-action button { justify-self: start; padding: 8px 13px; }
.invoice-source-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.invoice-source-history-head { padding-bottom: 8px; }
.invoice-source-history-head b { color: #d9f4ff; font-size: 12px; }
.invoice-source-history-head button { padding: 6px 10px; color: #85dcf6; font-size: 9px; }
.invoice-source-update-section > .edit-status { margin: 0 18px; }

.invoice-risk-details { border-bottom: 1px solid rgba(112, 207, 255, .13); background: rgba(4, 17, 31, .68); }
.invoice-risk-details-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 24px 10px; }
.invoice-risk-details-head h3 { margin: 0; color: #e0f5ff; font-size: 15px; }
.invoice-risk-details-head span { display: block; margin-top: 4px; color: #678398; font-size: 10px; }
.invoice-risk-details-head > div:last-child { display: flex; gap: 8px; }
.invoice-risk-details-head button { padding: 6px 10px; color: #8edff9; font-size: 10px; }
.invoice-level-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.invoice-level-filters button { border-color: rgba(108, 199, 239, .15); border-radius: 999px; color: #7899ae; background: rgba(8, 31, 51, .58); }
.invoice-level-filters button.active { border-color: rgba(103, 222, 255, .46); color: #dff8ff; background: rgba(25, 91, 116, .45); }
.invoice-level-filters b { margin-left: 4px; color: #9cead0; }
.invoice-risk-actions { display: flex; gap: 8px; }

.invoice-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px 12px;
}
.invoice-list-head h3 { margin: 0; font-size: 16px; }
.invoice-list-head > div > span { display: block; margin-top: 4px; color: #678398; font-size: 10px; }
.invoice-list-head button { padding: 6px 10px; color: #8edff9; font-size: 11px; }

.invoice-risk-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: 540px;
  min-height: 250px;
  overflow: auto;
  padding: 0 24px 24px;
}

.invoice-company-group { border: 1px solid rgba(104, 197, 238, .13); border-radius: 11px; overflow: hidden; background: rgba(7, 27, 46, .65); }
.invoice-company-group > summary { display: grid; grid-template-columns: minmax(240px, 1fr) auto 72px; align-items: center; gap: 16px; padding: 14px 16px; cursor: pointer; list-style: none; }
.invoice-company-group > summary::-webkit-details-marker { display: none; }
.invoice-company-group > summary b,
.invoice-company-group > summary small { display: block; }
.invoice-company-group > summary b { color: #d9f4ff; font-size: 12px; }
.invoice-company-group > summary small { margin-top: 4px; color: #66859a; font-size: 9px; }
.invoice-company-group > summary > em { justify-self: end; padding: 5px 9px; border-radius: 999px; color: #8ceaca; background: rgba(55, 180, 145, .12); font-size: 10px; font-style: normal; }
.company-risk-badges { display: flex; gap: 6px; }
.company-risk-badges i { padding: 3px 7px; border-radius: 999px; font-size: 9px; font-style: normal; }
.company-risk-badges .extreme { color: #ff718f; background: rgba(255, 48, 91, .18); }
.company-risk-badges .high { color: #ff9bad; background: rgba(255, 91, 122, .12); }
.company-risk-badges .medium { color: #ffc27f; background: rgba(255, 174, 84, .12); }
.company-risk-badges .low { color: #ffe889; background: rgba(255, 226, 101, .1); }
.company-risk-badges .minimal { color: #93c8da; background: rgba(109, 169, 190, .1); }
.invoice-company-group[open] > summary { border-bottom: 1px solid rgba(104, 197, 238, .11); background: rgba(18, 54, 76, .35); }
.invoice-company-alerts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }

.invoice-risk-item {
  padding: 14px 15px;
  border: 1px solid rgba(255, 112, 138, .16);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(50, 20, 43, .36), rgba(8, 22, 40, .74));
}
.invoice-risk-item.risk-extreme { border-color: rgba(255, 48, 91, .42); background: linear-gradient(145deg, rgba(78, 13, 38, .5), rgba(8, 22, 40, .76)); box-shadow: inset 3px 0 0 rgba(255, 48, 91, .7); }
.invoice-risk-item.risk-medium { border-color: rgba(255, 180, 95, .24); background: linear-gradient(145deg, rgba(69, 43, 18, .38), rgba(8, 22, 40, .74)); }
.invoice-risk-item.risk-low { border-color: rgba(255, 225, 118, .18); background: linear-gradient(145deg, rgba(61, 54, 22, .3), rgba(8, 22, 40, .74)); }
.invoice-risk-item.risk-minimal { border-color: rgba(109, 169, 190, .16); background: linear-gradient(145deg, rgba(20, 47, 59, .28), rgba(8, 22, 40, .74)); }
.invoice-risk-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.invoice-risk-title span { padding: 3px 7px; border-radius: 999px; color: #fff; background: rgba(255, 92, 122, .7); font-size: 9px; }
.invoice-risk-item.risk-extreme .invoice-risk-title span { color: #fff; background: #f02f59; }
.invoice-risk-item.risk-medium .invoice-risk-title span { color: #2f210d; background: #ffb45f; }
.invoice-risk-item.risk-low .invoice-risk-title span { color: #342b0a; background: #ffe176; }
.invoice-risk-item.risk-minimal .invoice-risk-title span { color: #d9f4ff; background: #527f91; }
.invoice-risk-title b { color: #ffd9e1; font-size: 12px; }
.invoice-risk-path { display: flex; align-items: center; gap: 6px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; }
.invoice-risk-path span { flex: 0 0 auto; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 8px; border: 1px solid rgba(118, 209, 255, .14); border-radius: 7px; color: #c6e8f8; background: rgba(10, 36, 58, .64); font-size: 10px; }
.invoice-risk-path i { color: #ff839a; font-style: normal; }
.invoice-risk-evidence { margin-top: 9px; color: #7991a5; font-size: 10px; line-height: 1.65; }
.invoice-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 220px; color: #7b98ad; text-align: center; }
.invoice-empty b { display: block; color: #89f1c9; font-size: 18px; }
.invoice-empty p { margin-top: 8px; font-size: 11px; }

.flow-direction-note {
  padding: 8px 12px;
  border: 1px solid rgba(110, 236, 195, .22);
  border-radius: 999px;
  color: #8cecc9;
  background: rgba(21, 72, 62, .22);
  font-size: 11px;
}

.flow-designer-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 18px;
}

.subject-palette-card {
  position: sticky;
  top: 18px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(111, 211, 255, .16);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(10, 35, 58, .95), rgba(5, 16, 31, .96));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 16px 40px rgba(0,0,0,.18);
}

.subject-palette-head,
.subject-palette-head > div,
.subject-palette-head b,
.subject-palette-head small { display: block; }
.subject-palette-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.subject-palette-head b { color: #e3f7ff; font-size: 14px; }
.subject-palette-head small { margin-top: 3px; color: #718da2; font-size: 9px; }
.subject-palette-head > span { padding: 4px 8px; border-radius: 999px; color: #8cecc9; background: rgba(37, 116, 91, .25); font-size: 10px; }

.add-external-company {
  width: 100%;
  min-height: 36px;
  margin-top: 12px;
  border: 1px dashed rgba(255, 187, 91, .42);
  color: #ffd193;
  background: rgba(82, 47, 13, .28);
  font-size: 10px;
}
.add-external-company:hover { border-color: rgba(255, 193, 105, .72); background: rgba(99, 56, 14, .42); }

.subject-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  margin: 12px 0 10px;
  padding: 0 8px;
  border: 1px solid rgba(104, 211, 255, .18);
  border-radius: 8px;
  background: rgba(2, 13, 27, .72);
}
.subject-search > span { color: #67d8ff; font-size: 16px; text-align: center; }
.subject-search input { min-width: 0; min-height: 36px; padding: 0 4px; border: 0; color: #dff5ff; background: transparent; box-shadow: none; }
.subject-search input:focus { outline: 0; box-shadow: none; }

.subject-palette-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 3px;
}
.subject-palette-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  padding: 8px 9px;
  border: 1px solid rgba(108, 210, 255, .11);
  border-radius: 9px;
  color: inherit;
  text-align: left;
  background: rgba(12, 42, 65, .55);
  cursor: grab;
  touch-action: none;
  transition: border-color .18s ease, background .18s ease, opacity .18s ease, transform .18s ease;
}
.subject-palette-item:hover { border-color: rgba(106, 218, 255, .38); background: rgba(17, 57, 84, .8); transform: translateX(2px); }
.subject-palette-item:active { cursor: grabbing; }
.subject-palette-item.dragging { opacity: .45; }
.subject-palette-item.in-flow { border-color: rgba(103, 235, 193, .2); background: rgba(18, 68, 57, .38); }
.subject-palette-item > i { width: 8px; height: 8px; border-radius: 50%; background: var(--subject-color); box-shadow: 0 0 9px var(--subject-color); }
.subject-palette-item > span { min-width: 0; }
.subject-palette-item b,
.subject-palette-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subject-palette-item b { color: #dbeffa; font-size: 10px; font-weight: 600; }
.subject-palette-item small { margin-top: 3px; color: #6d899f; font-size: 8px; }
.subject-palette-item em { color: #61c9e9; font-size: 8px; font-style: normal; white-space: nowrap; }
.subject-palette-item.in-flow em { color: #75dfbb; }
.subject-palette-tip { margin: 10px 2px 0; color: #607d92; font-size: 9px; line-height: 1.6; }
.subject-palette-empty { padding: 30px 8px; color: #6e899d; font-size: 10px; text-align: center; }

.flow-draft-panel { margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(105, 210, 255, .14); }
.flow-draft-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.flow-draft-panel-head b, .flow-draft-panel-head small { display: block; }
.flow-draft-panel-head b { color: #e3f7ff; font-size: 12px; }
.flow-draft-panel-head small { margin-top: 3px; color: #718da2; font-size: 8px; line-height: 1.4; }
.flow-draft-panel-head > span { padding: 3px 6px; border-radius: 999px; color: #9cebd0; background: rgba(37, 116, 91, .25); font-size: 8px; white-space: nowrap; }
.flow-draft-list { display: grid; gap: 6px; max-height: 248px; margin-top: 9px; overflow-y: auto; padding-right: 2px; }
.flow-draft-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px; align-items: stretch; border: 1px solid rgba(108, 210, 255, .12); border-radius: 8px; background: rgba(12, 42, 65, .55); }
.flow-draft-item.active { border-color: rgba(103, 235, 193, .55); background: rgba(18, 68, 57, .44); }
.flow-draft-open { display: block; min-width: 0; padding: 7px 8px; border: 0; color: inherit; text-align: left; background: transparent; }
.flow-draft-open:hover { box-shadow: none; transform: none; }
.flow-draft-open span, .flow-draft-open b, .flow-draft-open small, .flow-draft-open em { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-draft-open b { color: #dbeffa; font-size: 9px; }
.flow-draft-open small { margin-top: 3px; color: #82a4b6; font-size: 7px; }
.flow-draft-open em { margin-top: 3px; color: #5fd0ad; font-size: 7px; font-style: normal; }
.flow-draft-open i { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.flow-draft-delete { align-self: center; margin-right: 5px; padding: 2px 5px; border-color: transparent; color: #7898a8; background: transparent; font-size: 15px; line-height: 1; }
.flow-draft-delete:hover { color: #ff9eae; border-color: rgba(255, 95, 122, .3); background: rgba(255, 95, 122, .1); box-shadow: none; }
.flow-draft-empty { padding: 18px 6px; color: #6e899d; font-size: 9px; line-height: 1.7; text-align: center; }
.flow-draft-empty small { color: #55758a; font-size: 8px; }

.external-resource-card { width: 270px; }
.external-resource-card .subject-palette-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  gap: 9px 5px;
  max-height: 700px;
  padding: 5px 3px 8px;
}
.resource-bubble {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  padding: 9px 6px 7px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bubble-color) 48%, #77838b);
  border-radius: 50%;
  color: #fff;
  text-align: center;
  background: color-mix(in srgb, var(--bubble-color) 58%, #59636b);
  box-shadow: 0 3px 7px rgba(0,0,0,.16);
  cursor: grab;
  touch-action: none;
  transition: transform .18s ease, opacity .18s ease, filter .18s ease;
}
.resource-bubble::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  pointer-events: none;
}
.resource-bubble:hover { z-index: 2; filter: brightness(1.08); transform: translateY(-2px) scale(1.03); }
.resource-bubble:active { cursor: grabbing; }
.resource-bubble.dragging { opacity: .42; }
.resource-bubble.in-flow { filter: grayscale(.38); opacity: .58; }
.resource-bubble > i { position: absolute; width: 1px; height: 1px; background: var(--bubble-color); }
.resource-bubble b { position: relative; z-index: 1; max-width: 60px; color: #fff; font-size: 9px; line-height: 1.2; }
.resource-bubble small { position: relative; z-index: 1; margin-top: 3px; color: rgba(255,255,255,.72); font-size: 6px; line-height: 1.05; }
.external-resource-card .resource-bubble { width: 66px; height: 66px; padding: 8px 5px 6px; }
.external-resource-card .resource-bubble b { max-width: 55px; font-size: 8px; }
.external-resource-card .resource-bubble small { margin-top: 2px; font-size: 6px; }

.internal-company-ribbon {
  margin-bottom: 15px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(109, 218, 255, .17);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11,45,68,.76), rgba(16,29,51,.72));
}
.internal-company-ribbon-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.internal-company-ribbon-head span,
.internal-company-ribbon-head b,
.internal-company-ribbon-head small { display: block; }
.internal-company-ribbon-head b { color: #e4f8ff; font-size: 13px; }
.internal-company-ribbon-head small { margin-top: 2px; color: #7291a6; font-size: 8px; }
.internal-company-ribbon-head em { color: #73e7bf; font-size: 8px; font-style: normal; letter-spacing: .15em; }
.internal-company-bubbles {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 72px);
  grid-auto-columns: 72px;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 3px 10px;
  scrollbar-color: rgba(95,207,246,.42) transparent;
}
.internal-company-bubbles .resource-bubble { width: 72px; height: 72px; }
.internal-company-bubbles .resource-bubble b { max-width: 60px; font-size: 9px; }
.internal-company-bubbles .resource-bubble small { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.subject-drag-ghost {
  position: fixed;
  z-index: 9999;
  max-width: 260px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid rgba(82, 196, 239, .55);
  border-radius: 9px;
  color: #e7f8ff;
  background: rgba(8, 39, 61, .94);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
}

.flow-workspace-stack { display: flex; min-width: 0; flex-direction: column; gap: 14px; }

.flow-canvas-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(111, 211, 255, .13);
  border-radius: 12px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 1.3px),
    linear-gradient(145deg, rgba(7, 24, 43, .9), rgba(5, 14, 29, .92));
  background-size: 58px 58px, auto;
}

.flow-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.flow-card-head b,
.flow-card-head small { display: block; }
.flow-card-head b { color: #dff6ff; font-size: 15px; }
.flow-card-head small { margin-top: 4px; color: #708b9f; font-size: 10px; }
.flow-project-heading { flex: 1 1 430px; min-width: 0; }
.flow-project-title-line { display: flex; min-width: 0; align-items: baseline; flex-wrap: wrap; gap: 3px 11px; }
.flow-card-head .flow-project-title-line b { display: inline; font-size: 20px; line-height: 1.28; letter-spacing: .02em; }
#flowProjectNumber { flex: 0 0 auto; color: #62d1ff; white-space: nowrap; }
#flowProjectTitle { min-width: 0; color: #f2fbff; overflow-wrap: anywhere; }
.flow-project-title-divider { color: rgba(139, 214, 245, .52); font-size: 19px; line-height: 1; }
.flow-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.flow-toolbar button { padding: 6px 9px; font-size: 10px; }
.flow-selection-summary { align-self: center; min-width: 76px; color: #79a0b5; font-size: 9px; text-align: right; }
.flow-selection-summary.active { color: #80d8bb; font-weight: 700; }

.flow-graph-canvas {
  position: relative;
  min-height: 620px;
  margin-top: 16px;
  overflow: hidden;
  border: 2px solid #dce5ec;
  border-radius: 11px;
  outline: 0;
  background-color: #fff;
  box-shadow: inset 0 0 28px rgba(42, 91, 120, .045);
  transition: height .24s ease, border-color .18s ease, box-shadow .18s ease;
}
.flow-canvas-scroll-viewport {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: #83b7d1 #edf4f7;
  scrollbar-width: auto;
}
.flow-canvas-scroll-viewport::-webkit-scrollbar { width: 13px; }
.flow-canvas-scroll-viewport::-webkit-scrollbar-track { background: #edf4f7; border-left: 1px solid #d6e3ea; }
.flow-canvas-scroll-viewport::-webkit-scrollbar-thumb { border: 3px solid #edf4f7; border-radius: 999px; background: #83b7d1; }
.flow-canvas-scroll-viewport::-webkit-scrollbar-thumb:hover { background: #5799bd; }
.flow-graph-canvas:focus { border-color: #91c9e8; }
.flow-graph-canvas.drag-over { border-color: #1ea7e8; box-shadow: inset 0 0 0 4px rgba(37, 164, 224, .1), inset 0 0 34px rgba(42, 132, 186, .09); }
.flow-canvas-expand-toggle { position: absolute; z-index: 10; top: 50%; right: 8px; display: flex; width: 31px; min-height: 98px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 8px 4px; border-color: rgba(44, 145, 198, .34); border-radius: 16px; color: #277aa8; background: rgba(247, 252, 255, .94); box-shadow: 0 6px 18px rgba(28, 86, 118, .17); transform: translateY(-50%); backdrop-filter: blur(8px); }
.flow-canvas-expand-toggle:hover { border-color: #258fc8; color: #0d73ad; background: #fff; transform: translateY(-50%) translateX(-1px); }
.flow-canvas-expand-toggle span { font-size: 9px; line-height: 1.15; writing-mode: vertical-rl; }
.flow-canvas-expand-toggle b { font-size: 17px; line-height: .8; transition: transform .2s ease; }
.flow-canvas-expand-toggle.expanded { border-color: rgba(39, 154, 112, .44); color: #208560; background: rgba(241, 255, 249, .96); }
.flow-canvas-expand-toggle.expanded b { transform: rotate(180deg); }

.flow-content-stage {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  transition: transform .18s ease;
}
.flow-viewport-toolbar {
  position: absolute;
  z-index: 8;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid #d6e5ee;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 6px 18px rgba(31, 76, 101, .14);
}
.flow-viewport-toolbar button { min-width: 30px; height: 28px; padding: 0 7px; border-color: #d7e4eb; color: #32677f; background: #f7fbfd; font-size: 9px; }
.flow-viewport-toolbar button:disabled { opacity: .4; }
.flow-viewport-toolbar span { min-width: 40px; color: #547b8e; font-size: 9px; text-align: center; }

.flow-connection-layer,
.flow-node-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-connection-layer { z-index: 1; overflow: visible; pointer-events: none; }
.flow-node-layer { z-index: 2; pointer-events: none; }
.flow-transaction-layer { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.flow-guide-layer { position: absolute; z-index: 5; inset: 0; overflow: visible; pointer-events: none; }
.flow-selection-layer { position: absolute; z-index: 6; inset: 0; overflow: visible; pointer-events: none; }
.flow-selection-marquee { position: absolute; border: 1px solid #258fd0; background: rgba(37, 143, 208, .11); box-shadow: 0 0 0 1px rgba(255,255,255,.7) inset; }
.flow-alignment-guide { position: absolute; color: #e88b27; pointer-events: none; }
.flow-alignment-guide.vertical { width: 0; border-left: 1px dashed currentColor; }
.flow-alignment-guide.horizontal { height: 0; border-top: 1px dashed currentColor; }
.flow-alignment-guide.spacing { color: #13a1b8; }
.flow-alignment-guide::before,
.flow-alignment-guide::after { position: absolute; content: ""; background: currentColor; }
.flow-alignment-guide.vertical::before,
.flow-alignment-guide.vertical::after { left: -3px; width: 7px; height: 1px; }
.flow-alignment-guide.vertical::before { top: 0; }
.flow-alignment-guide.vertical::after { bottom: 0; }
.flow-alignment-guide.horizontal::before,
.flow-alignment-guide.horizontal::after { top: -3px; width: 1px; height: 7px; }
.flow-alignment-guide.horizontal::before { left: 0; }
.flow-alignment-guide.horizontal::after { right: 0; }
.flow-alignment-guide span {
  position: absolute;
  padding: 2px 5px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: currentColor;
  background: rgba(255,255,255,.94);
  box-shadow: 0 2px 6px rgba(28, 74, 101, .12);
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.flow-alignment-guide.vertical span { top: 50%; left: 5px; transform: translateY(-50%); }
.flow-alignment-guide.horizontal span { top: 5px; left: 50%; transform: translateX(-50%); }
#flowArrowSafe path { fill: #7e9aa8; }
#flowArrowExtreme path { fill: #e53935; }
#flowArrowHigh path { fill: #f57c00; }
#flowArrowMedium path { fill: #f6c229; }
#flowArrowLow path { fill: #2586d9; }
#flowArrowMinimal path { fill: #35a86b; }
.flow-connection-path { fill: none; stroke-width: 3; stroke-linecap: round; cursor: pointer; pointer-events: stroke; filter: drop-shadow(0 2px 2px rgba(20, 86, 120, .12)); transition: stroke-width .14s ease, filter .14s ease; }
.flow-connection-path.selected { stroke-width: 5; filter: drop-shadow(0 0 4px rgba(18, 130, 190, .72)); }
.flow-connection-path.risk-safe { stroke: #7e9aa8; }
.flow-connection-path.has-risk { stroke-width: 4.5; }
.flow-connection-path.amount-invalid { stroke: #ef334d; stroke-width: 4.5; stroke-dasharray: 9 6; filter: drop-shadow(0 0 6px rgba(239, 51, 77, .72)); }
.flow-connection-path.risk-extreme { stroke: #e53935; }
.flow-connection-path.risk-high { stroke: #f57c00; }
.flow-connection-path.risk-medium { stroke: #f6c229; }
.flow-connection-path.risk-low { stroke: #2586d9; }
.flow-connection-path.risk-minimal { stroke: #35a86b; }
.flow-connection-path.risk-extreme.has-risk { filter: drop-shadow(0 0 5px rgba(229,57,53,.72)); }
.flow-connection-path.risk-high.has-risk { filter: drop-shadow(0 0 5px rgba(245,124,0,.68)); }
.flow-connection-path.risk-medium.has-risk { filter: drop-shadow(0 0 5px rgba(246,194,41,.72)); }
.flow-connection-path.risk-low.has-risk { filter: drop-shadow(0 0 5px rgba(37,134,217,.68)); }
.flow-connection-path.risk-minimal.has-risk { filter: drop-shadow(0 0 5px rgba(53,168,107,.72)); }
.flow-connection-order circle { fill: #fff; stroke: #1686bd; stroke-width: 1.5; }
.flow-connection-order text { fill: #0c6f9f; font-size: 8px; font-weight: 800; text-anchor: middle; }

.flow-transaction-button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  min-height: 26px;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid #8bbdd7;
  border-radius: 7px;
  color: #28667f;
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 12px rgba(30, 76, 103, .15);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}
.flow-transaction-button:hover { border-color: #1686bd; color: #0c6f9f; background: #f1faff; }
.flow-transaction-button.has-detail { border-color: #41a97d; color: #236f55; background: #effbf5; }
.flow-transaction-button span { display: block; max-width: 100%; overflow: visible; line-height: 1.15; white-space: nowrap; }
.flow-edge-delete-button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border: 1px solid #e7a4aa;
  border-radius: 50%;
  color: #bd3541;
  background: rgba(255, 247, 248, .96);
  box-shadow: 0 3px 9px rgba(142, 35, 46, .14);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  opacity: .72;
}
.flow-edge-delete-button:hover,
.flow-edge-delete-button:focus-visible { border-color: #c93542; color: #fff; background: #d8434f; box-shadow: 0 0 0 3px rgba(216, 67, 79, .14); opacity: 1; }
.flow-editor-page.readonly .flow-edge-delete-button { display: none; }

.flow-empty-hint {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(430px, calc(100% - 40px));
  padding: 32px 20px;
  border: 2px dashed #c8d7e1;
  border-radius: 16px;
  color: #7a93a4;
  text-align: center;
  transform: translate(-50%, -50%);
}
.flow-empty-hint[hidden] { display: none; }
.flow-empty-hint span { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; color: #178fc8; background: #edf8fd; font-size: 26px; }
.flow-empty-hint b { display: block; color: #34566b; font-size: 16px; }
.flow-empty-hint p { margin-top: 7px; color: #8195a3; font-size: 10px; }

.flow-node {
  position: absolute;
  box-sizing: border-box;
  width: 92px;
  height: 46px;
  padding: 5px 6px;
  border: 1px solid #2c88c9;
  border-radius: 9px;
  color: #203d4f;
  background: linear-gradient(145deg, #f6fbff, #e7f4ff);
  box-shadow: 0 4px 9px rgba(28, 74, 101, .16), inset 0 0 0 1px rgba(255,255,255,.8);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  transform: scale(var(--flow-node-scale, 1));
  transform-origin: 0 0;
  transition: border-color .16s ease, box-shadow .16s ease, opacity .16s ease, transform .16s ease;
}
.flow-node:hover { box-shadow: 0 5px 12px rgba(28, 74, 101, .22), inset 0 0 0 1px rgba(255,255,255,.9); transform: scale(var(--flow-node-scale, 1)) translateY(-1px); }
.flow-node:active { cursor: grabbing; }
.flow-node.dragging { opacity: .42; }
.flow-node.selected { border-color: #147fc0; box-shadow: 0 0 0 3px rgba(20, 127, 192, .2), 0 6px 14px rgba(28, 74, 101, .22), inset 0 0 0 1px rgba(255,255,255,.9); }
.flow-node.attention { animation: flowNodeAttention .6s ease; }
@keyframes flowNodeAttention { 0%,100% { transform: scale(1); } 45% { transform: scale(1.05); } }

.flow-node.invalid { border-color: #ed4565; background: linear-gradient(145deg, #fff, #fff1f4); box-shadow: 0 4px 10px rgba(211, 41, 76, .2); }
.flow-node.valid { border-color: #41b987; box-shadow: 0 4px 9px rgba(35, 139, 97, .16); }
.flow-node.external { border: 1px dashed #d98422; background: linear-gradient(145deg, #fffaf2, #ffecd1); box-shadow: 0 4px 9px rgba(121, 72, 16, .14); }
.flow-node.external:hover { box-shadow: 0 5px 12px rgba(121, 72, 16, .2); }
.flow-node-head { display: flex; align-items: center; justify-content: space-between; gap: 3px; min-width: 0; }
.flow-node-actions { display: flex; align-items: center; gap: 3px; margin-top: 4px; }
.flow-node-head .remove-flow-node { flex: 0 0 auto; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; color: #9aaab3; background: transparent; font-size: 9px; line-height: 10px; opacity: .58; }
.flow-node-head .remove-flow-node:hover { color: #d94e68; background: #fff0f3; opacity: 1; }
.flow-node-actions .flow-action-button { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 26px; height: 15px; padding: 0 4px; border-width: 1px; border-radius: 4px; font-size: 7px; font-weight: 700; line-height: 1; white-space: nowrap; word-break: keep-all; }
.flow-node-actions .flow-action-payment { border-color: #9ed787; color: #284636; background: #f7fff4; }
.flow-node-actions .flow-action-invoice { border-color: #79d8d5; color: #28545c; background: #f4ffff; }
.flow-node-actions .flow-action-button.active { border-color: #f09a35; color: #a95700; background: #fff1df; box-shadow: 0 0 0 3px rgba(240,154,53,.14); }
.flow-node.branch-source { border-color: #f09a35; box-shadow: 0 0 0 4px rgba(240,154,53,.16), 0 8px 22px rgba(28,74,101,.15), inset 4px 0 0 #f09a35; }
.flow-node-name { display: block; min-width: 0; overflow: hidden; color: #172c39; font-size: 9px; font-weight: 600; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }

.flow-canvas-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 34px; padding-top: 9px; color: #7892a4; font-size: 9px; }
.flow-canvas-legend span { display: flex; align-items: center; gap: 5px; }
.flow-canvas-legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend-internal { background: #2c88c9; }
.legend-external { background: #d98422; }
.legend-extreme { background: #e53935; }
.legend-high { background: #f57c00; }
.legend-medium { background: #f6c229; }
.legend-low { background: #2586d9; }
.legend-minimal { background: #35a86b; }
.flow-canvas-legend > b { min-width: 220px; margin-left: auto; overflow: hidden; color: #9ec0d2; font-size: 9px; font-weight: 500; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.flow-check-status {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 72px;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(116, 201, 255, .13);
  border-radius: 10px;
  background: rgba(8, 28, 47, .6);
}
.flow-status-icon { font-size: 20px; }
.flow-check-status b { color: #d9f2ff; font-size: 12px; }
.flow-check-status p { margin-top: 4px; color: #728da2; font-size: 10px; line-height: 1.6; }
.flow-check-status.valid { border-color: rgba(100, 239, 190, .26); background: rgba(14, 62, 51, .34); }
.flow-check-status.valid .flow-status-icon,
.flow-check-status.valid b { color: #8ff3cc; }
.flow-check-status.invalid { border-color: rgba(255, 97, 127, .29); background: rgba(70, 23, 41, .32); }
.flow-check-status.invalid .flow-status-icon,
.flow-check-status.invalid b { color: #ff91a6; }
.flow-issue-list { margin: 6px 0 0; padding-left: 16px; color: #d3909d; font-size: 10px; }

.flow-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 13px; }
.flow-actions button:disabled { cursor: not-allowed; opacity: .42; }

.saved-flow-panel { padding: 16px; border-radius: 12px; }
.saved-flow-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.saved-flow-head h2 { margin-top: 3px; color: #def3ff; }
.saved-flow-head p { margin-top: 4px; color: #718da1; font-size: 9px; }
.saved-flow-view-switch { display: flex; gap: 5px; }
.saved-flow-view-switch button { padding: 6px 9px; font-size: 9px; }
.saved-flow-view-switch button.active { border-color: #62d9b0; color: #d7fff0; background: rgba(53,168,107,.2); }
.saved-flow-projects { display: grid; gap: 8px; margin-top: 13px; }
.saved-flow-projects.calendar { display: block; }
.saved-flow-empty { padding: 28px; border: 1px dashed rgba(116,181,214,.2); border-radius: 9px; color: #70899c; font-size: 10px; text-align: center; }
.saved-flow-project-row.can-delete { display: grid; grid-template-columns: minmax(0, 1fr) 50px; align-items: stretch; gap: 8px; }
.saved-flow-project { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 11px 12px; border: 1px solid rgba(107,202,241,.13); border-radius: 9px; color: #cfeafb; background: rgba(8,30,48,.62); text-align: left; }
.saved-flow-project:hover { border-color: rgba(98,217,176,.4); background: rgba(12,46,62,.75); }
.saved-flow-project.recently-saved { border-color: rgba(109,255,199,.86); background: rgba(25,91,70,.55); box-shadow: 0 0 0 2px rgba(109,255,199,.12), 0 0 28px rgba(74,231,178,.14); }
.saved-flow-project b,.saved-flow-project small,.saved-flow-project span { display: block; }
.saved-flow-project b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.saved-flow-project small { margin-top: 4px; color: #7190a4; font-size: 8px; }
.saved-flow-project span { align-self: center; color: #73deb9; font-size: 9px; }
.saved-flow-delete { min-width: 0; padding: 7px 5px; border-color: rgba(244, 91, 111, .42); border-radius: 9px; color: #ff8797; background: rgba(82, 21, 37, .35); font-size: 9px; font-weight: 700; }
.saved-flow-delete:hover { border-color: #ff6378; color: #fff; background: rgba(171, 35, 58, .72); box-shadow: 0 0 16px rgba(255, 70, 98, .16); }
.saved-flow-delete:disabled { cursor: wait; opacity: .58; }
.flow-calendar { overflow-x: auto; padding: 13px; border: 1px solid #d5e0e8; border-radius: 13px; color: #172331; background: linear-gradient(150deg, #f9fbfd, #edf3f7); box-shadow: 0 12px 30px rgba(0, 12, 25, .2); }
.flow-calendar-nav { display: flex; min-width: 700px; align-items: center; justify-content: center; gap: 9px; padding: 2px 0 12px; }
.flow-calendar-nav strong { min-width: 118px; color: #17283a; font-size: 17px; text-align: center; }
.flow-calendar-nav button { min-width: 30px; height: 29px; padding: 3px 9px; border-color: #cbd8e1; color: #29465e; background: rgba(255,255,255,.92); box-shadow: 0 2px 7px rgba(33, 66, 91, .08); }
.flow-calendar-nav button:hover { border-color: #4b9fd0; color: #0d76b5; background: #fff; }
.flow-calendar-nav .flow-calendar-today { margin-left: 4px; }
.flow-calendar-weekdays,
.flow-calendar-grid { display: grid; min-width: 700px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.flow-calendar-weekdays { border: 1px solid #d7e1e8; border-bottom: 0; border-radius: 9px 9px 0 0; overflow: hidden; background: #e8f0f5; }
.flow-calendar-weekdays span { padding: 9px 4px; border-right: 1px solid #d7e1e8; color: #4c6172; font-size: 10px; font-weight: 700; text-align: center; }
.flow-calendar-weekdays span:last-child { border-right: 0; }
.flow-calendar-grid { border-top: 1px solid #d7e1e8; border-left: 1px solid #d7e1e8; }
.flow-calendar-day { min-width: 0; min-height: 126px; padding: 7px; border-right: 1px solid #d7e1e8; border-bottom: 1px solid #d7e1e8; background: rgba(255,255,255,.9); }
.flow-calendar-day.outside-month { background: rgba(234,240,244,.7); }
.flow-calendar-day.outside-month .flow-calendar-date { opacity: .45; }
.flow-calendar-day.today { background: #f4faff; box-shadow: inset 0 0 0 2px rgba(16, 126, 195, .22); }
.flow-calendar-date { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 27px; }
.flow-calendar-date time { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #263746; font-size: 13px; font-weight: 700; }
.flow-calendar-day.today .flow-calendar-date time { color: #fff; background: #087bc4; box-shadow: 0 4px 10px rgba(8,123,196,.28); }
.flow-calendar-date small { color: #5c7890; font-size: 8px; white-space: nowrap; }
.flow-calendar-events { display: grid; max-height: 91px; margin-top: 4px; gap: 4px; overflow-y: auto; scrollbar-width: thin; }
.flow-calendar-project { display: grid; min-width: 0; grid-template-columns: 23px minmax(0, 1fr); align-items: center; gap: 6px; padding: 5px 6px; border: 1px solid #c6e2f3; border-radius: 7px; color: #1e4964; background: #eaf6fd; text-align: left; }
.flow-calendar-project:hover { border-color: #48a8db; color: #0b6fa8; background: #fff; box-shadow: 0 3px 9px rgba(29, 112, 157, .14); transform: translateY(-1px); }
.flow-calendar-project span,
.flow-calendar-project b,
.flow-calendar-project small { display: block; min-width: 0; }
.flow-calendar-project b,
.flow-calendar-project small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-calendar-project b { color: inherit; font-size: 9px; }
.flow-calendar-project small { margin-top: 2px; color: #6c8799; font-size: 7px; }
.flow-calendar-project-icon { position: relative; display: block; width: 18px; height: 22px; border: 2px solid currentColor; border-radius: 3px; color: #1586c7; background: rgba(255,255,255,.78); }
.flow-calendar-project-icon::before { position: absolute; top: -2px; right: -2px; width: 7px; height: 7px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; background: #eaf6fd; content: ""; }
.flow-calendar-project-icon::after { position: absolute; top: 10px; left: 3px; width: 8px; height: 1px; background: currentColor; box-shadow: 0 4px 0 currentColor; content: ""; opacity: .75; }
.flow-calendar-project-icon.reviewer_pending,
.flow-calendar-project-icon.admin_pending { color: #e79521; }
.flow-calendar-project-icon.approved,
.flow-calendar-project-icon.completed { color: #2b9a69; }
.flow-calendar-project-icon.dispatched { color: #7b63c8; }
.flow-calendar-project-icon.reviewer_rejected,
.flow-calendar-project-icon.admin_rejected { color: #d75463; }

.flow-rule-side { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, .55fr); gap: 14px; }
.flow-rule-panel { border-radius: 11px; }
.flow-rule-list { padding: 8px 15px 14px; }
.flow-rule-list > div { display: grid; grid-template-columns: 30px 1fr; gap: 9px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.flow-rule-list > div:last-child { border-bottom: 0; }
.flow-rule-list > div > b { color: #65d8ff; font-size: 9px; }
.flow-rule-list strong,
.flow-rule-list small { display: block; }
.flow-rule-list strong { color: #dcefff; font-size: 11px; }
.flow-rule-list small { margin-top: 3px; color: #6e879b; font-size: 9px; line-height: 1.5; }
.flow-writeback-note { padding: 15px; border-radius: 11px; border-color: rgba(110, 239, 194, .15); background: linear-gradient(145deg, rgba(17, 62, 53, .3), rgba(7, 20, 34, .85)); }
.flow-writeback-note span { color: #75e4bd; font-size: 8px; letter-spacing: .12em; }
.flow-writeback-note b { display: block; margin-top: 6px; color: #d5f8eb; font-size: 12px; }
.flow-writeback-note p { margin-top: 7px; color: #718f88; font-size: 9px; line-height: 1.65; }

.eyebrow {
  color: var(--green);
  font-size: 12px;
  letter-spacing: 2px;
}

.build-tag {
  margin-top: 6px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  font-size: 17px;
}

.stats {
  display: flex;
  gap: 12px;
}

.stat {
  min-width: 106px;
  height: 64px;
  display: grid;
  place-items: center;
  padding: 8px;
}

.stat span {
  font-size: 22px;
  color: var(--cyan);
  font-weight: 700;
}

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

.stat.danger span {
  color: var(--danger);
}

.stat.warning span {
  color: #f2c45d;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
  padding: 0 20px 18px;
}

.map-panel, .alerts-panel, .card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(12, 26, 38, .92), rgba(7, 18, 28, .94));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 18px 60px rgba(0,0,0,.28);
  border-radius: 8px;
}

.panel-head, .card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tools button {
  min-width: 42px;
}

.tools input[type="range"] {
  width: 132px;
  min-height: auto;
  padding: 0;
  accent-color: var(--green);
}

.zoom-text {
  min-width: 44px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px 0;
  color: var(--muted);
  font-size: 12px;
}

.selection-bar {
  margin: 10px 16px 0;
  padding: 10px 12px;
  border: 1px solid rgba(109, 255, 199, .42);
  background: linear-gradient(90deg, rgba(11, 42, 36, .95), rgba(14, 68, 54, .92));
  box-shadow: 0 0 0 1px rgba(109, 255, 199, .08), inset 0 0 14px rgba(109, 255, 199, .08);
  border-radius: 6px;
  color: #a6ffd9;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: sticky;
  top: 8px;
  z-index: 3;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 12px currentColor;
}

.map-wrap {
  height: calc(100vh - 190px);
  min-height: 520px;
  overflow: hidden;
}

#starMap {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

#starMap.dragging {
  cursor: grabbing;
}

.galaxy-band {
  fill: rgba(255, 255, 255, .025);
  stroke: rgba(114, 226, 255, .18);
  stroke-width: 1.2;
}

.galaxy-title {
  fill: rgba(237, 248, 255, .84);
  font-size: 22px;
  font-weight: 700;
}

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

.constellation-divider {
  stroke: rgba(221, 239, 255, .34);
  stroke-width: 1.4;
  stroke-dasharray: 9 10;
  filter: drop-shadow(0 0 5px rgba(33, 215, 255, .22));
}

.link {
  stroke: rgba(255, 95, 122, .5);
  stroke-width: 1.2;
}

.node {
  cursor: pointer;
}

.bubble-hit {
  fill: transparent;
  pointer-events: all;
}

.bubble {
  stroke: rgba(255,255,255,.72);
  stroke-width: 1.1;
  filter: drop-shadow(0 0 10px rgba(33, 215, 255, .18));
  pointer-events: none;
}

.bubble.dim {
  opacity: .16;
}

.bubble.selected {
  stroke: #ffffff;
  stroke-width: 4;
  filter: drop-shadow(0 0 18px rgba(109, 255, 199, .45));
}

.bubble-label {
  fill: #eefaff;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(3, 13, 20, .55);
  stroke-width: 2px;
  stroke-linejoin: round;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.revenue-progress-card { min-height: 300px; }
.revenue-progress-head { align-items: flex-start; }
.revenue-progress-head h2 { margin: 0; color: #e7f7ff; font-size: 15px; }
.revenue-progress-head small { display: block; margin-top: 5px; color: #718c9d; font-size: 8px; }
.revenue-progress-tabs { display: flex; gap: 5px; }
.revenue-progress-tabs button { padding: 5px 7px; border-color: rgba(88, 190, 225, .18); color: #7797a8; background: rgba(11, 42, 60, .52); font-size: 8px; }
.revenue-progress-tabs button.active { border-color: rgba(89, 225, 176, .48); color: #92f0cb; background: rgba(20, 93, 74, .48); }
.revenue-progress-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 9px 13px 5px; color: #7893a3; font-size: 8px; }
.revenue-progress-legend span { display: inline-flex; align-items: center; gap: 5px; }
.revenue-progress-legend i { width: 13px; height: 4px; border-radius: 999px; }
.revenue-progress-legend .current i { background: linear-gradient(90deg, #3ad6a1, #74f2c3); }
.revenue-progress-legend .previous i { background: linear-gradient(90deg, #5082b6, #79a8d3); }
.revenue-progress-chart { display: grid; gap: 7px; max-height: 430px; padding: 8px 13px 14px; overflow: auto; }
.revenue-progress-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid rgba(104, 184, 216, .08); }
.revenue-company { display: flex; align-items: center; gap: 6px; min-width: 0; }
.revenue-company > i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--constellation-color); box-shadow: 0 0 8px var(--constellation-color); }
.revenue-company span,.revenue-company b,.revenue-company small { display: block; min-width: 0; }
.revenue-company b { overflow: hidden; color: #d7edf7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.revenue-company small { margin-top: 2px; color: #647f90; font-size: 7px; }
.revenue-bars { display: grid; gap: 4px; min-width: 0; }
.revenue-bars > div { position: relative; height: 12px; overflow: hidden; border-radius: 3px; background: rgba(76, 125, 151, .09); }
.revenue-bars span { position: absolute; inset: 2px auto 2px 0; min-width: 0; border-radius: 2px; }
.revenue-bars span.current { background: linear-gradient(90deg, #208e70, #61dbad); }
.revenue-bars span.previous { background: linear-gradient(90deg, #315d86, #699ac4); }
.revenue-bars b { position: absolute; z-index: 1; top: 50%; right: 4px; color: #d9eef7; font-size: 7px; font-weight: 700; text-shadow: 0 1px 2px #06111a; transform: translateY(-50%); }

.card {
  overflow: hidden;
}

.card-title span {
  color: var(--green);
  font-size: 12px;
}

.add-company-panel > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.add-company-panel > summary::-webkit-details-marker { display: none; }
.add-company-panel > summary span::after { content: " · 展开 ⌄"; color: #7391a5; }
.add-company-panel[open] > summary span::after { content: " · 收起 ⌃"; }
.add-company-panel > summary:hover { background: rgba(103, 216, 255, .045); }
.add-company-panel:not([open]) > summary { border-bottom-color: transparent; }

.person-search-card {
  border-color: rgba(95, 210, 255, .22);
  background: linear-gradient(145deg, rgba(8, 30, 50, .96), rgba(5, 17, 30, .98));
}

.person-search-form {
  padding: 14px 16px 10px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.person-search-form > label {
  display: block;
  margin-bottom: 7px;
  color: #86a5b8;
  font-size: 11px;
}

.person-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
}

.person-search-control input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(103, 216, 255, .28);
  border-radius: 9px;
  color: #e9faff;
  background: rgba(3, 14, 25, .78);
}

.person-search-control input:focus {
  border-color: rgba(103, 216, 255, .72);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(71, 189, 235, .10);
}

.person-search-control button {
  min-height: 38px;
  padding: 0 12px;
  border-color: rgba(103, 216, 255, .28);
  color: #9de8ff;
}

.person-search-control .person-search-clear {
  border-color: rgba(255,255,255,.10);
  color: #809aac;
}

.person-search-result {
  padding: 0 16px 16px;
}

.person-search-result.is-empty {
  color: #6f8c9f;
  font-size: 12px;
  line-height: 1.7;
}

.person-search-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 10px;
}

.person-search-summary b { color: #effbff; font-size: 15px; }
.person-search-summary span { color: #6fe3bd; font-size: 10px; }
.person-search-list { display: grid; gap: 8px; max-height: 360px; overflow: auto; }

.person-search-hit {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(103, 216, 255, .14);
  border-radius: 10px;
  color: inherit;
  text-align: left;
  background: rgba(14, 44, 66, .48);
}

.person-search-hit:hover {
  border-color: rgba(103, 216, 255, .48);
  background: rgba(20, 63, 91, .62);
  transform: translateY(-1px);
}

.person-search-hit-head,
.person-search-hit-detail { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.person-search-hit-head b { overflow: hidden; color: #ddf6ff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.person-search-hit-head i { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; color: #74e8c1; background: rgba(62, 205, 157, .11); font-size: 9px; font-style: normal; }
.person-search-hit-detail em { flex: 0 0 auto; color: #6e91a7; font-size: 10px; font-style: normal; }
.person-search-hit-detail strong { overflow: hidden; color: #f0bd85; font-size: 10px; font-weight: 600; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.person-search-hit small { color: #5f7c90; font-size: 9px; }

.detail-empty {
  padding: 18px;
  color: var(--muted);
}

.detail {
  padding: 14px 16px 18px;
  max-height: calc(100vh - 260px);
  overflow: auto;
}

.detail h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

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

.detail-heading h3 {
  margin: 0;
}

.detail-edit-btn {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--green);
}

.detail-section {
  margin-top: 14px;
}

.detail-section h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--green);
}

.detail-list {
  display: grid;
  gap: 0;
}

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

.subject-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(109, 255, 199, .28);
  border-radius: 999px;
  background: rgba(109, 255, 199, .08);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.detail-empty-inline {
  color: var(--muted);
  font-size: 13px;
}

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

.risk-item {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 6px;
}

.risk-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.risk-head strong {
  font-size: 13px;
}

.risk-meta,
.risk-companies {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.kv {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}

.kv b {
  color: var(--muted);
  font-weight: 500;
}

.kv span {
  white-space: pre-wrap;
  word-break: break-word;
}

.social-security-kv {
  align-items: start;
}

.social-security-kv > b,
.edit-social-security-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.social-security-total {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 7px;
  border: 1px solid rgba(69, 224, 167, 0.45);
  border-radius: 999px;
  background: rgba(37, 189, 132, 0.12);
  color: #75e8ba;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.social-security-current {
  min-height: 20px;
}

.social-security-quick-add {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 2px;
}

.social-security-quick-add input {
  min-width: 0;
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}

.social-security-quick-add button {
  min-height: 32px;
  padding: 0 10px;
  border-color: rgba(109, 255, 199, .48);
  color: #aaf5d8;
  background: rgba(19, 91, 69, .48);
  font-size: 11px;
  white-space: nowrap;
}

.social-security-quick-add button:disabled {
  opacity: .62;
  cursor: wait;
}

.social-security-add-status {
  grid-column: 1 / -1;
  min-height: 16px;
  color: var(--muted);
  font-size: 10px;
}

.social-security-add-status.error { color: #ff8fa3; }
.social-security-add-status.success { color: #78e3b8; }

.company-form {
  padding: 14px 16px 16px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

input, select, textarea {
  width: 100%;
  min-height: 36px;
  color: var(--text);
  background: rgba(5, 14, 22, .8);
  border: 1px solid rgba(109, 255, 199, .22);
  border-radius: 6px;
  padding: 8px 10px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 58px;
}

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

.field-grid label {
  margin-bottom: 0;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
  margin-top: 12px;
}

.primary {
  border-color: rgba(116, 242, 161, .7);
  background: linear-gradient(180deg, rgba(32, 132, 92, .9), rgba(9, 54, 46, .95));
}

.check-result {
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 13px;
}

.alerts-panel {
  margin: 0 20px 24px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
}

.alert-panel-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.alert-export-btn {
  min-width: 66px;
  border-color: rgba(103, 205, 255, .48);
  color: #bfeaff;
  background: linear-gradient(180deg, rgba(25, 89, 119, .82), rgba(11, 45, 65, .92));
}

.alert-export-btn:hover {
  border-color: rgba(109, 255, 199, .72);
  color: #eafff7;
}

.alert-export-btn:disabled {
  opacity: .62;
  cursor: wait;
}

.filter-tabs button.active {
  border-color: rgba(116, 242, 161, .75);
  color: var(--green);
}

.alerts-list {
  display: grid;
  gap: 8px;
  padding: 12px 16px 16px;
}

.alert-item {
  display: grid;
  grid-template-columns: 74px 150px minmax(0, 1fr) 280px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius: 6px;
  font-size: 13px;
}

.level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  border-radius: 999px;
  font-weight: 700;
}

.level.high { color: #fff; background: rgba(255, 95, 122, .72); }
.level.mid { color: #1a1400; background: rgba(242, 208, 70, .85); }
.level.low { color: #03130a; background: rgba(116, 242, 161, .7); }

body.modal-open {
  overflow: hidden;
}

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

.edit-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 7, 12, .82);
  backdrop-filter: blur(6px);
}

.edit-dialog {
  position: relative;
  width: min(1180px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid rgba(109, 255, 199, .34);
  border-radius: 10px;
  background: linear-gradient(145deg, #0c1c29, #07121c);
  box-shadow: 0 28px 100px rgba(0, 0, 0, .58);
}

.flow-modal-dialog { width: min(680px, 94vw); }
.transaction-dialog { width: min(820px, 94vw); }
.compact-flow-form { padding-top: 20px; }
.compact-flow-form > label { display: block; margin-top: 13px; }
.compact-flow-form > label:first-of-type { margin-top: 0; }
.compact-flow-form textarea { min-height: 88px; }
.flow-form-note { margin-top: 10px; color: #7994a5; font-size: 11px; line-height: 1.65; }
.transaction-fields { margin: 15px 0 4px; }
.transaction-parties {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(103, 205, 255, .16);
  border-radius: 8px;
  background: rgba(6, 27, 43, .62);
}
.transaction-parties span { min-width: 0; }
.transaction-parties small,
.transaction-parties b { display: block; }
.transaction-parties small { color: #718b9d; font-size: 9px; }
.transaction-parties b { margin-top: 4px; overflow: hidden; color: #dff4ff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.transaction-parties i { color: #64d5ff; font-size: 18px; font-style: normal; text-align: center; }
.transaction-rank-preview { display: block; margin-top: 5px; color: #ff758f; font-size: 9px; line-height: 1.55; }
.danger-text { margin-right: auto; color: #ff8da1; }

.company-profile-dialog { width: min(1040px, 96vw); }
.company-profile-kind { display: inline-flex; margin-top: 7px; padding: 3px 8px; border: 1px solid rgba(94, 217, 255, .22); border-radius: 999px; color: #8fe6fa; background: rgba(23, 91, 117, .25); font-size: 9px; }
.company-profile-form { display: grid; gap: 15px; }
.company-profile-section { padding: 15px; border: 1px solid rgba(104, 207, 255, .14); border-radius: 10px; background: rgba(5, 24, 40, .58); }
.company-profile-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.company-profile-section-head b,
.company-profile-section-head small { display: block; }
.company-profile-section-head b { color: #def6ff; font-size: 13px; }
.company-profile-section-head small { margin-top: 3px; color: #6f91a5; font-size: 8px; letter-spacing: .08em; }
.company-bank-add { flex: 0 0 auto; padding: 7px 11px; border-color: rgba(84, 222, 180, .26); color: #9be9cf; background: rgba(30, 112, 87, .2); font-size: 9px; }
.company-bank-account-list { display: grid; gap: 9px; }
.company-bank-row { display: grid; grid-template-columns: 28px minmax(160px, 1fr) minmax(190px, 1.25fr) minmax(120px, .65fr) auto; align-items: end; gap: 9px; padding: 10px; border: 1px solid rgba(100, 198, 237, .11); border-radius: 8px; background: rgba(5, 19, 32, .68); }
.company-bank-row label { display: grid; gap: 5px; min-width: 0; color: #7896a8; font-size: 9px; }
.company-bank-row input { width: 100%; min-width: 0; }
.company-bank-index { align-self: center; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #8ee7ff; background: rgba(35, 126, 158, .25); font-size: 9px; font-weight: 800; }
.company-bank-remove { padding: 8px 9px; color: #ff91a6; font-size: 9px; }

/* Pair-based task decomposition and progress workbench */
.flow-statistics-section { display: grid; gap: 12px; margin-top: 16px; padding: 15px; border: 1px solid rgba(99, 207, 255, .13); border-radius: 12px; background: rgba(4, 18, 31, .56); }
.flow-project-statistics { display: grid; gap: 10px; }
.flow-project-stat-card { display: grid; grid-template-columns: minmax(210px, 1.2fr) 104px minmax(420px, 2.2fr); align-items: center; gap: 14px; padding: 13px; border: 1px solid rgba(91, 198, 236, .12); border-radius: 10px; background: linear-gradient(135deg, rgba(10, 39, 59, .78), rgba(5, 23, 38, .8)); }
.flow-project-stat-card > div { display: grid; gap: 4px; }
.flow-project-stat-card > div em { width: max-content; padding: 2px 7px; border-radius: 999px; color: #91e5ff; background: rgba(45, 141, 176, .19); font-size: 8px; font-style: normal; }
.flow-project-stat-card > div b { color: #e8f8ff; font-size: 12px; }
.flow-project-stat-card > div small { color: #718fa3; font-size: 9px; }
.flow-project-stat-card > span { position: relative; display: grid; width: 78px; height: 78px; place-content: center; justify-items: center; border-radius: 50%; background: conic-gradient(#45d9ab var(--progress, 0%), rgba(63, 103, 122, .2) 0); }
.flow-project-stat-card > span::after { position: absolute; inset: 6px; border-radius: 50%; background: #092235; content: ""; }
.flow-project-stat-card > span > * { position: relative; z-index: 1; }
.flow-project-stat-card > span b { color: #dffdf3; font-size: 15px; }
.flow-project-stat-card > span small { color: #6f9b91; font-size: 8px; }
.flow-project-stat-card dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0; }
.flow-project-stat-card dl div { min-width: 0; padding: 8px; border-radius: 7px; background: rgba(7, 29, 45, .72); }
.flow-project-stat-card dt { color: #708d9d; font-size: 8px; }
.flow-project-stat-card dd { margin: 4px 0 0; overflow: hidden; color: #d9f4ff; font-size: 10px; font-weight: 700; text-overflow: ellipsis; }
.flow-company-statistics-panel { border: 1px solid rgba(94, 198, 236, .1); border-radius: 9px; overflow: hidden; }
.flow-company-statistics-panel summary { padding: 10px 12px; color: #96bccc; cursor: pointer; font-size: 10px; }
.flow-company-statistics { max-height: 360px; overflow: auto; }
.flow-company-statistics table { width: 100%; border-collapse: collapse; font-size: 9px; }
.flow-company-statistics th, .flow-company-statistics td { padding: 8px 10px; border-top: 1px solid rgba(91, 177, 210, .09); color: #9db5c3; text-align: right; white-space: nowrap; }
.flow-company-statistics th:first-child { color: #e0f4fb; text-align: left; }
.flow-dispatch-tasks { display: grid; gap: 9px; }
.flow-pair-task { display: grid; grid-template-columns: minmax(230px, 1fr) auto; gap: 8px 14px; padding: 11px; border: 1px solid rgba(86, 193, 232, .12); border-radius: 9px; background: rgba(4, 23, 37, .68); }
.flow-pair-task > div:first-child { display: grid; gap: 4px; }
.flow-pair-task > div:first-child b { color: #e1f7ff; font-size: 11px; }
.flow-pair-task > div:first-child small { color: #7592a4; font-size: 8px; }
.flow-pair-task > em { color: #65dbb1; font-size: 10px; font-style: normal; }
.flow-pair-task-items { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.flow-task-business-details { grid-column: 1 / -1; border: 1px solid rgba(92, 183, 218, .1); border-radius: 7px; background: rgba(4, 18, 29, .5); }
.flow-task-business-details summary { padding: 7px 9px; color: #7ca4b7; cursor: pointer; font-size: 8px; }
.flow-task-party-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0 9px 8px; }
.flow-task-party-grid section { display: grid; gap: 3px; padding: 7px; border-radius: 6px; background: rgba(13, 42, 57, .55); }
.flow-task-party-grid em { color: #65cbe6; font-size: 7px; font-style: normal; }
.flow-task-party-grid b { color: #dff5fc; font-size: 9px; }
.flow-task-party-grid small { color: #7896a5; font-size: 7px; line-height: 1.5; }
.flow-task-party-grid small.missing { color: #ef9b75; }
.flow-task-business-details > p { margin: 0; padding: 0 9px 9px; color: #7f9dac; font-size: 8px; }
.flow-task-business-details > p b { color: #efcf7e; }
.flow-work-item { min-width: 0; padding: 8px; border: 1px solid rgba(94, 182, 215, .1); border-radius: 7px; background: rgba(10, 36, 51, .55); }
.flow-work-item-main { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.flow-work-item-main i { width: 7px; height: 7px; border-radius: 50%; background: #f6bd4d; box-shadow: 0 0 8px rgba(246, 189, 77, .45); }
.flow-work-item.completed .flow-work-item-main i { background: #43d8a4; box-shadow: 0 0 8px rgba(67, 216, 164, .4); }
.flow-work-item.auto_waiting .flow-work-item-main i { background: #5aaed9; }
.flow-work-item-main span { display: grid; min-width: 0; gap: 2px; }
.flow-work-item-main b { color: #dff6ff; font-size: 9px; }
.flow-work-item-main small { overflow: hidden; color: #6d8a9c; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.flow-work-item-main em { color: #7fa1b1; font-size: 7px; font-style: normal; }
.flow-work-item > p { margin: 6px 0 0; color: #88a8b7; font-size: 8px; }
.flow-evidence-file { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px; border-radius: 5px; background: rgba(8, 22, 33, .66); }
.flow-evidence-file b { margin-right: auto; overflow: hidden; color: #91afbd; font-size: 7px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.flow-evidence-file a { color: #70d6f1; font-size: 7px; text-decoration: none; }
.flow-pair-task-card { display: block; padding: 13px; }
.flow-pair-task-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow-pair-task-card > header span { display: grid; gap: 3px; }
.flow-pair-task-card > header em { width: max-content; padding: 2px 6px; border-radius: 999px; color: #7adbbd; background: rgba(52, 166, 130, .15); font-size: 8px; font-style: normal; }
.flow-pair-task-card > header b { color: #e7f8ff; font-size: 12px; }
.flow-pair-task-card > header small { color: #7794a4; font-size: 9px; }
.flow-pair-task-card > header strong { color: #72dfb8; font-size: 11px; }
.flow-my-work-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.flow-my-work-items .flow-task-completion { display: grid; grid-template-columns: minmax(140px, 1fr) auto auto; gap: 6px; margin-top: 8px; }
.flow-my-work-items .flow-task-completion textarea { min-height: 50px; padding: 7px; font-size: 8px; }
.flow-my-work-items .flow-task-completion label, .flow-my-work-items .flow-task-completion button { align-self: stretch; }
.flow-target-highlight { position: relative; z-index: 2; animation: flow-target-pulse 1s ease 4; }
.flow-mind-task.flow-target-highlight { border: 2px solid #ffad23; background: #fff4c9; box-shadow: 0 0 0 5px rgba(255, 173, 35, .2), 0 10px 28px rgba(181, 108, 0, .28); }
.flow-mind-task.flow-target-highlight::after { content: "通知定位任务"; position: absolute; right: 10px; top: -18px; padding: 3px 8px; border-radius: 999px; color: #fff; background: #e57518; box-shadow: 0 4px 12px rgba(181, 88, 0, .25); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
@keyframes flow-target-pulse { 50% { border-color: #ffb72b; background-color: rgba(255, 240, 187, .94); box-shadow: 0 0 0 5px rgba(255, 183, 43, .24), 0 0 34px rgba(255, 154, 26, .38); transform: translateY(-2px); } }
.personal-task-badge { right: 4px; top: -8px; background: #f3a52d; }
.personal-task-center { margin-top: 14px; padding: 14px; border: 1px solid rgba(84, 196, 234, .14); border-radius: 10px; background: rgba(6, 27, 43, .58); }
.personal-task-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.personal-task-head h3 { margin: 0; color: #e7f8ff; font-size: 13px; }
.personal-task-head p { margin: 4px 0 0; color: #7591a2; font-size: 9px; }
.personal-task-summary { display: flex; gap: 8px; margin: 10px 0; }
.personal-task-summary span { padding: 6px 9px; border-radius: 7px; color: #7f9dab; background: rgba(13, 49, 68, .65); font-size: 8px; }
.personal-task-summary b { color: #6ee0bc; font-size: 11px; }
.personal-task-reminder-list { display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.personal-task-reminder-list button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px; text-align: left; }
.personal-task-reminder-list button i { padding: 3px 5px; border-radius: 4px; color: #8cdff4; background: rgba(44, 131, 164, .2); font-size: 7px; font-style: normal; }
.personal-task-reminder-list button span { display: grid; gap: 2px; min-width: 0; }
.personal-task-reminder-list button b { color: #dff5fd; font-size: 9px; }
.personal-task-reminder-list button small { overflow: hidden; color: #6f8c9c; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.personal-task-reminder-list button em { color: #63d5b0; font-size: 8px; font-style: normal; }

.edit-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.edit-dialog-head h2 {
  margin-top: 4px;
}

.edit-company-form {
  max-height: calc(92vh - 78px);
  overflow: auto;
  padding: 18px 20px 20px;
}

.edit-basic-grid,
.edit-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.edit-field-grid {
  margin-top: 8px;
}

.edit-field-grid textarea {
  min-height: 84px;
}

.edit-social-person-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.edit-social-person-add input {
  min-width: 0;
  min-height: 34px;
  padding: 6px 9px;
}

.edit-social-person-add button {
  min-height: 34px;
  padding: 0 13px;
  border-color: rgba(109, 255, 199, .48);
  color: #aaf5d8;
  background: rgba(19, 91, 69, .48);
  white-space: nowrap;
}

.edit-field-grid label.edit-field-search-hit {
  color: #83ecc9;
}

.edit-field-grid textarea.edit-search-value-hit {
  border-color: rgba(109, 255, 199, .78);
  box-shadow: 0 0 0 2px rgba(109, 255, 199, .12), inset 0 0 18px rgba(56, 198, 151, .06);
}

.edit-field-grid textarea.edit-search-value-hit::selection {
  color: #06131a;
  background: #8effd9;
}

.edit-status {
  min-height: 24px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.edit-status.error {
  color: #ff8fa3;
}

.edit-status.success {
  color: #78e3b8;
}

.edit-actions {
  position: sticky;
  bottom: -20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 4px -20px -20px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(7, 18, 28, .96);
}

.edit-domain-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  min-width: 260px;
}

.edit-domain-search label {
  flex: 0 0 auto;
  color: #76d9bc;
  font-size: 12px;
  white-space: nowrap;
}

.edit-domain-search input {
  width: min(230px, 22vw);
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(103, 205, 255, .24);
  border-radius: 6px;
  color: #dff5ff;
  background: rgba(3, 14, 24, .82);
}

.edit-domain-search input:focus {
  outline: 0;
  border-color: rgba(109, 255, 199, .66);
  box-shadow: 0 0 0 2px rgba(109, 255, 199, .1);
}

.edit-domain-search button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(103, 205, 255, .32);
  border-radius: 6px;
  color: #bfeaff;
  background: rgba(22, 69, 92, .6);
  cursor: pointer;
}

.edit-domain-search button:hover {
  border-color: rgba(109, 255, 199, .7);
  color: #eafff7;
}

@media (max-width: 1100px) {
  .portal-grid,
  .process-layout {
    grid-template-columns: 1fr;
  }
  .home-hero { margin-top: 7vh; }
  .process-canvas { height: 68vh; }
  .layout {
    grid-template-columns: 1fr;
  }
  .map-wrap {
    height: 68vh;
  }
  .alert-item {
    grid-template-columns: 1fr;
  }
  .edit-basic-grid,
  .edit-field-grid {
    grid-template-columns: 1fr;
  }
  .edit-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .edit-domain-search {
    flex: 1 0 100%;
    min-width: 0;
    margin-right: 0;
  }
  .edit-domain-search input {
    width: auto;
    flex: 1 1 auto;
  }
  .invoice-risk-head,
  .flow-design-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .invoice-period-summary { width: 100%; }
  .invoice-company-alerts { grid-template-columns: 1fr; }
  .invoice-company-dimension-body { grid-template-columns: 330px minmax(0, 1fr); }
  .invoice-company-level-alerts { grid-template-columns: 1fr; }
  .invoice-analytics-selectors select { width: 220px; }
  .invoice-risk-list,
  .flow-designer-grid {
    grid-template-columns: 1fr;
  }
  .party-ranking-columns { display: none; }
  .party-ranking-row { grid-template-columns: 1fr 1fr; }
  .party-ranking-subject { grid-column: 1 / -1; border-bottom: 1px solid rgba(103, 187, 229, .08); }
  .invoice-data-update-body { grid-template-columns: 1fr; }
  .invoice-import-form { border-right: 0; border-bottom: 1px solid rgba(105, 211, 255, .12); }
  .invoice-source-update-grid { grid-template-columns: 1fr; }
  .invoice-source-action + .invoice-source-action { border-left: 0; border-top: 1px solid rgba(105, 211, 255, .1); }
  .subject-palette-card { position: static; }
  .external-resource-card { width: auto; }
  .subject-palette-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 300px; }
  .flow-rule-side { grid-template-columns: 1fr; }
  .rule-flow { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .home-view { overflow: auto; }
  .home-content { min-height: 1590px; }
  .home-brand { position: relative; top: auto; left: auto; padding-top: 4px; }
  .solar-system { min-height: 1460px; margin-top: 6px; }
  .central-star { top: 225px; }
  .orbit-track { top: 225px; width: 105%; height: 330px; }
  .orbit-track-inner { width: 78%; height: 240px; }
  .company-planet,
  .process-planet,
  .data-planet {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    animation: none;
  }
  .company-planet { top: 445px; }
  .data-planet { top: 785px; }
  .process-planet { top: 1050px; }
}

@media (max-width: 680px) {
  .home-content { width: min(100% - 28px, 1240px); padding-top: 22px; }
  .home-brand h1 { font-size: 18px; }
  .central-star { width: 330px; height: 330px; top: 205px; }
  .star-core { width: 262px; height: 262px; }
  .star-core h2 { font-size: 25px; }
  .star-core p { font-size: 9px; }
  .central-star .brand-mark { width: 46px; height: 46px; margin-bottom: 7px; }
  .solar-system { min-height: 1400px; }
  .orbit-track { top: 205px; }
  .company-planet { top: 390px; }
  .data-planet { top: 740px; }
  .process-planet { top: 990px; }
  .home-hero { margin: 8vh auto 32px; }
  .home-hero h2 { font-size: 34px; }
  .portal-card { grid-template-columns: 66px 1fr; min-height: 330px; padding: 22px; }
  .portal-icon { width: 62px; height: 62px; }
  .portal-icon i:nth-child(1) { left: 23px; top: 22px; }
  .portal-copy strong { font-size: 20px; }
  .portal-metrics { flex-direction: column; gap: 6px; padding-right: 100px; }
  .portal-action { right: 20px; bottom: 24px; }
  .home-footer { flex-direction: column; gap: 8px; align-items: center; }
  .module-topbar { align-items: flex-start; flex-direction: column; padding-top: 76px; }
  .process-status { width: 100%; }
  .process-workspace { padding: 0 10px 18px; }
  .process-workspace-tabs { grid-template-columns: 1fr; }
  .process-workspace-tabs button small { justify-self: start; }
  .invoice-summary { width: 100%; }
  .invoice-period-summary { grid-template-columns: 1fr; }
  .invoice-period-row { grid-template-columns: 1fr 1fr; }
  .invoice-period-row > strong { grid-column: 1 / -1; }
  .invoice-period-company-count { display: none; }
  .invoice-dimension-tabs { grid-template-columns: 1fr; padding: 12px 12px 3px; }
  .invoice-dimension-panel { padding: 0 12px 10px; }
  .invoice-dimension-panel .invoice-risk-details { margin: 12px -12px -10px; }
  .invoice-company-toolbar { align-items: stretch; flex-direction: column; }
  .invoice-company-toolbar label { justify-content: space-between; }
  .invoice-company-toolbar input { width: min(72vw, 280px); }
  .invoice-company-dimension-body { grid-template-columns: 1fr; }
  .invoice-company-directory { border-right: 0; border-bottom: 1px solid rgba(105, 211, 255, .13); }
  .invoice-company-risk-list { max-height: 330px; }
  .invoice-company-risk-details-head { align-items: flex-start; flex-direction: column; }
  .invoice-analytics-toolbar,
  .invoice-analytics-chart-head { align-items: stretch; flex-direction: column; }
  .invoice-analytics-selectors { align-items: stretch; flex-direction: column; }
  .invoice-analytics-selectors label { justify-content: space-between; }
  .invoice-analytics-selectors select,
  .invoice-analytics-selectors label:last-child select { width: min(72vw, 300px); }
  .invoice-analytics-summary { grid-template-columns: 1fr; }
  .invoice-analytics-legend { justify-content: flex-start; }
  .invoice-analytics-chart { overflow-x: auto; padding-inline: 12px; }
  .invoice-analytics-bars { min-width: 570px; }
  .invoice-data-update-head { align-items: flex-start; flex-direction: column; }
  .invoice-data-window { min-width: 0; width: 100%; text-align: left; }
  .invoice-import-fields { grid-template-columns: 1fr; }
  .invoice-import-file-field { grid-column: auto; }
  .invoice-import-item { grid-template-columns: 1fr; }
  .invoice-import-review-actions { justify-content: flex-start; }
  .invoice-summary > div,
  .invoice-summary > button { min-width: 0; flex: 1; padding: 9px 7px; }
  .invoice-rule-card { margin: 12px 12px 0; }
  .party-ranking-panel { margin: 12px 12px 0; }
  .party-ranking-head { align-items: stretch; flex-direction: column; }
  .party-ranking-toggle { align-items: flex-start; flex-direction: column; }
  .invoice-risk-details-head { align-items: flex-start; flex-direction: column; padding: 12px; }
  .invoice-company-group > summary { grid-template-columns: 1fr auto; }
  .company-risk-badges { grid-column: 1 / -1; grid-row: 2; }
  .party-ranking-head label { align-items: stretch; flex-direction: column; }
  .party-ranking-head input { width: 100%; }
  .party-ranking-row { grid-template-columns: 1fr; }
  .party-ranking-subject { grid-column: auto; }
  .rule-flow { gap: 7px; }
  .rule-node { min-width: 130px; }
  .invoice-list-head { padding: 16px 12px 10px; }
  .invoice-risk-list { padding: 0 12px 16px; max-height: none; }
  .flow-designer-grid { padding: 10px; }
  .subject-palette-list { grid-template-columns: 1fr; }
  .flow-card-head { align-items: flex-start; flex-direction: column; }
  .flow-graph-canvas { min-height: 560px; }
  .flow-canvas-legend > b { width: 100%; margin-left: 0; text-align: left; }
  .flow-direction-note { border-radius: 10px; }
  .flow-actions { flex-direction: column; }
}
.system-design-dialog { max-width: 680px; }
.system-design-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.compact-flow-form textarea { width:100%; resize:vertical; min-height:96px; }
@media (max-width:640px) { .system-design-grid { grid-template-columns:1fr; } }
@media (max-width: 820px) {
  .company-bank-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .company-bank-row label { grid-column: 2; }
  .company-bank-remove { grid-column: 3; grid-row: 1; }
  .company-profile-section-head { align-items: flex-start; flex-direction: column; }
  .flow-project-stat-card { grid-template-columns: 1fr auto; }
  .flow-project-stat-card dl { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-pair-task-items, .flow-my-work-items { grid-template-columns: 1fr; }
  .flow-task-party-grid { grid-template-columns: 1fr; }
  .flow-my-work-items .flow-task-completion { grid-template-columns: 1fr; }
}
/* Secure login */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: auto;
  padding: 32px;
  color: #f4f8ff;
  background:
    radial-gradient(circle at 16% 22%, rgba(17, 117, 184, .24), transparent 34%),
    radial-gradient(circle at 84% 70%, rgba(105, 45, 159, .18), transparent 32%),
    linear-gradient(135deg, #030916 0%, #08152b 48%, #050b19 100%);
}

.auth-gate[hidden],
#app[hidden] {
  display: none !important;
}

.auth-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .76;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.92) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(124,210,255,.9) 0 1px, transparent 1.5px);
  background-size: 83px 83px, 137px 137px;
  background-position: 0 0, 31px 19px;
}

.auth-stars-two {
  opacity: .32;
  transform: rotate(12deg) scale(1.1);
  background-size: 191px 191px, 251px 251px;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(380px, 1.12fr) minmax(360px, .88fr);
  width: min(1040px, 94vw);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(137, 202, 255, .2);
  border-radius: 28px;
  background: rgba(5, 14, 31, .82);
  box-shadow: 0 35px 90px rgba(0, 0, 0, .5), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(18px);
}

.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 590px;
  padding: 62px 58px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(12, 54, 92, .24), rgba(7, 19, 42, .4)),
    radial-gradient(circle at 48% 33%, rgba(255, 83, 41, .14), transparent 27%);
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-right: 1px solid rgba(130, 197, 255, .16);
  pointer-events: none;
}

.auth-brand-panel h1 {
  position: relative;
  z-index: 2;
  margin: 18px 0 13px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.12;
  letter-spacing: .04em;
  text-shadow: 0 0 32px rgba(80, 181, 255, .24);
}

.auth-brand-panel > p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #9fb5ce;
  font-size: 16px;
  letter-spacing: .08em;
}

.auth-brand-panel .eyebrow {
  position: relative;
  z-index: 2;
  color: #64d7ff;
}

.auth-security-note {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  width: max-content;
  margin-top: 34px;
  padding: 9px 14px;
  border: 1px solid rgba(76, 213, 177, .24);
  border-radius: 999px;
  color: #8fe6cf;
  background: rgba(44, 163, 136, .08);
  font-size: 12px;
}

.auth-orbit {
  position: absolute;
  top: 52px;
  left: 50%;
  width: 250px;
  height: 250px;
  transform: translateX(-50%);
  border: 1px solid rgba(115, 199, 255, .2);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(26, 145, 235, .12);
}

.auth-orbit::before,
.auth-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(115, 199, 255, .15);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.auth-orbit::before { inset: 35px -50px; }
.auth-orbit::after { inset: 72px -82px; }

.auth-orbit i {
  position: absolute;
  inset: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #ffe2a8 0 3%, #ff7a36 20%, #c52b26 52%, #4f0d20 76%, #140715 100%);
  box-shadow: 0 0 30px rgba(255, 80, 41, .62), 0 0 90px rgba(255, 56, 36, .2), inset -18px -18px 25px rgba(31,0,20,.55);
}

.auth-orbit b,
.auth-orbit span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5cd2ff;
  box-shadow: 0 0 14px #5cd2ff;
}

.auth-orbit b { left: -20px; top: 96px; }
.auth-orbit span { right: -52px; bottom: 54px; width: 10px; height: 10px; background: #9ef0bd; box-shadow: 0 0 14px #65eaa0; }

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 58px;
  background: linear-gradient(180deg, rgba(12, 27, 53, .76), rgba(7, 17, 35, .9));
}

.login-card-head { margin-bottom: 31px; }
.login-card-head small { color: #53cfff; font-size: 11px; letter-spacing: .18em; }
.login-card-head h2 { margin: 8px 0 7px; color: #f7fbff; font-size: 32px; }
.login-card-head p { margin: 0; color: #8499b2; font-size: 13px; }

.login-field {
  display: block;
  margin-bottom: 18px;
  color: #c8d5e5;
  font-size: 13px;
}

.login-field > span { display: block; margin: 0 0 8px 2px; }
.login-field > div:not(.captcha-row) {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid rgba(136, 177, 219, .22);
  border-radius: 10px;
  background: rgba(3, 11, 25, .62);
  transition: .2s ease;
}

.login-field > div:not(.captcha-row):focus-within,
.captcha-row > input:focus {
  border-color: rgba(67, 193, 255, .72);
  box-shadow: 0 0 0 3px rgba(51, 174, 239, .1);
}

.login-field i {
  width: 44px;
  color: #4fc7f6;
  font-size: 9px;
  text-align: center;
  font-style: normal;
}

.login-field input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  color: #f4f8ff;
  background: transparent;
  font: inherit;
}

.login-field input::placeholder { color: #52647b; }

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
  height: 48px;
}

.captcha-row > input {
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(136, 177, 219, .22);
  border-radius: 10px;
  background: rgba(3, 11, 25, .62);
}

.captcha-image-button {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(136, 177, 219, .22);
  border-radius: 10px;
  background: #0b1932;
  cursor: pointer;
}

.captcha-image-button img { width: 100%; height: 100%; object-fit: cover; }
.captcha-image-button em { position: absolute; inset: 0; display: grid; place-items: center; color: #7188a5; font-size: 12px; font-style: normal; background: #0b1932; }
.captcha-image-button.loaded em { display: none; }

.login-error {
  min-height: 25px;
  color: #ff8c9c;
  font-size: 12px;
}

.login-error.success { color: #78e3b8; }

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  height: 50px;
  border: 0;
  border-radius: 11px;
  color: #061426;
  background: linear-gradient(100deg, #55d7ff, #6ee7ba);
  box-shadow: 0 12px 30px rgba(53, 195, 226, .2);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.login-submit:disabled { opacity: .62; cursor: wait; }
.login-submit b { font-size: 20px; }
.login-footnote { margin: 14px 0 0; color: #61748b; font-size: 11px; text-align: center; }

.auth-text-button {
  margin: 12px auto 0;
  padding: 5px 10px;
  border: 0;
  color: #67cff7;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.auth-text-button:hover { color: #a8e9ff; }
.register-card { padding-top: 34px; padding-bottom: 34px; }
.register-card .login-card-head { margin-bottom: 20px; }
.register-card .login-field { margin-bottom: 12px; }

.user-center-button {
  position: fixed;
  top: 17px;
  right: 108px;
  z-index: 8500;
  padding: 8px 13px;
  border: 1px solid rgba(103, 214, 255, .3);
  border-radius: 999px;
  color: #d9f3ff;
  background: rgba(7, 40, 63, .78);
  box-shadow: 0 7px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  font-size: 12px;
  cursor: pointer;
}

.user-center-button span { color: #6dd8ff; font-weight: 700; }
.user-center-button:hover { border-color: rgba(105, 222, 255, .68); background: rgba(10, 55, 82, .88); }

.global-version-badge {
  position: fixed;
  top: auto;
  right: auto;
  bottom: 78px;
  left: 8.6vw;
  z-index: 8500;
  padding: 8px 14px;
  border: 1px solid rgba(82, 224, 255, .58);
  border-radius: 999px;
  color: #e8fbff;
  background: linear-gradient(135deg, rgba(10, 104, 139, .94), rgba(11, 69, 105, .94));
  box-shadow: 0 0 0 3px rgba(45, 203, 239, .1), 0 8px 24px rgba(0, 0, 0, .3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  pointer-events: none;
}
.global-version-badge[hidden] { display: none !important; }

.finance-workspace-button {
  position: fixed;
  top: 17px;
  right: 404px;
  z-index: 8500;
  padding: 8px 13px;
  border: 1px solid rgba(92, 225, 178, .38);
  border-radius: 999px;
  color: #d9fff0;
  background: rgba(12, 74, 59, .82);
  box-shadow: 0 7px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  font-size: 12px;
  cursor: pointer;
}
.finance-workspace-button[hidden], body.finance-task-mode .finance-workspace-button { display: none !important; }
.finance-workspace-button:hover { border-color: rgba(113, 244, 198, .72); background: rgba(15, 96, 75, .94); }

.flow-notification-button {
  position: fixed;
  top: 17px;
  right: 302px;
  z-index: 8500;
  padding: 8px 13px;
  border: 1px solid rgba(255, 174, 70, .36);
  border-radius: 999px;
  color: #ffe8bd;
  background: rgba(69, 39, 10, .78);
  box-shadow: 0 7px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  font-size: 12px;
  cursor: pointer;
}

.flow-notification-button:hover { border-color: rgba(255, 190, 90, .72); color: #fff7e8; background: rgba(91, 53, 13, .9); }

.pending-review-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #071426;
  border-radius: 999px;
  color: #fff;
  background: #ff4f6d;
  box-shadow: 0 0 14px rgba(255, 79, 109, .65);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.logout-button {
  position: fixed;
  top: 17px;
  right: 18px;
  z-index: 8500;
  padding: 8px 13px;
  border: 1px solid rgba(139, 195, 239, .24);
  border-radius: 999px;
  color: #a9c4dc;
  background: rgba(4, 13, 29, .72);
  box-shadow: 0 7px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  font-size: 12px;
  cursor: pointer;
}

.logout-button:hover { color: #fff; border-color: rgba(88, 205, 255, .55); }
.logout-button span { color: #68d5ff; }

.review-notification {
  position: fixed;
  top: 62px;
  right: 18px;
  z-index: 8800;
  display: grid;
  grid-template-columns: 34px minmax(150px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 330px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 111, 130, .46);
  border-radius: 12px;
  color: #f7fbff;
  background: linear-gradient(120deg, rgba(63, 16, 34, .96), rgba(11, 28, 50, .97));
  box-shadow: 0 18px 50px rgba(0,0,0,.42), 0 0 30px rgba(255, 66, 101, .13);
  backdrop-filter: blur(14px);
  cursor: pointer;
  animation: reviewNoticeIn .3s ease-out;
}

.review-notification > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ff5e79;
  background: rgba(255, 79, 109, .13);
  box-shadow: inset 0 0 0 1px rgba(255, 102, 126, .26);
  font-size: 10px;
  font-style: normal;
}

.review-notification span { display: block; text-align: left; }
.review-notification small,
.review-notification strong { display: block; }
.review-notification small { color: #ff9eac; font-size: 10px; letter-spacing: .08em; }
.review-notification strong { margin-top: 4px; color: #f6fbff; font-size: 13px; }
.review-notification strong b { color: #ff7087; font-size: 16px; }
.review-notification em { color: #73dfff; font-size: 11px; font-style: normal; }

.flow-notification-toast {
  top: 132px;
  border-color: rgba(255, 177, 68, .5);
  background: linear-gradient(120deg, rgba(76, 42, 7, .97), rgba(11, 28, 50, .97));
  box-shadow: 0 18px 50px rgba(0,0,0,.42), 0 0 30px rgba(255, 156, 41, .16);
}

.flow-notification-toast > i { color: #ffb44f; background: rgba(255, 174, 63, .14); box-shadow: inset 0 0 0 1px rgba(255, 188, 91, .28); }
.flow-notification-toast small { color: #ffc66f; }

@keyframes reviewNoticeIn {
  from { opacity: 0; transform: translateY(-10px) translateX(8px); }
  to { opacity: 1; transform: translateY(0) translateX(0); }
}

#personalCenterModal { z-index: 9000; }
.personal-center-dialog { width: min(820px, 94vw); max-height: 92vh; overflow: auto; }

.personal-profile-card {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 18px 20px 0;
  padding: 15px 18px;
  border: 1px solid rgba(78, 202, 255, .2);
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(18, 83, 116, .28), rgba(10, 28, 48, .5));
}

.personal-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(100, 220, 255, .5);
  border-radius: 50%;
  color: #72dcff;
  background: rgba(26, 131, 172, .18);
  font-size: 25px;
}

.personal-profile-card div { display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 12px; }
.personal-profile-card small { grid-column: 1 / -1; color: #7692a7; font-size: 10px; }
.personal-profile-card b { color: #effaff; font-size: 18px; }
.personal-profile-card em { padding: 3px 8px; border-radius: 999px; color: #68ddb1; background: rgba(65, 187, 143, .12); font-size: 10px; font-style: normal; }

.personal-password-form { max-height: none; overflow: visible; padding-bottom: 0; }
.personal-password-form h3,
.admin-review-head h3 { margin: 0; color: #eaf8ff; font-size: 16px; }
.personal-password-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.personal-password-grid label { color: #9bb3c5; font-size: 12px; }
.personal-password-grid input { width: 100%; margin-top: 7px; }
.personal-password-form .edit-actions { position: static; margin-top: 5px; }

.admin-review-section { margin: 24px 20px 20px; border-top: 1px solid rgba(102, 197, 239, .16); padding-top: 20px; }
.admin-review-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.admin-review-head p { margin: 5px 0 0; color: #7890a3; font-size: 11px; }
.admin-review-head button { padding: 6px 12px; }
.admin-user-list { display: grid; gap: 8px; max-height: 250px; overflow: auto; }
.admin-user-empty { padding: 24px; color: #6f8799; text-align: center; }

.admin-user-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(111, 181, 216, .14);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

.admin-user-item b,
.admin-user-item small { display: block; }
.admin-user-item b { color: #dff4ff; font-size: 13px; }
.admin-user-item small { margin-top: 4px; color: #70889b; font-size: 10px; }
.user-status { padding: 4px 7px; border-radius: 999px; color: #b7cad8; background: rgba(134, 155, 176, .14); font-size: 10px; text-align: center; }
.user-status.pending { color: #ffd983; background: rgba(217, 155, 42, .14); }
.user-status.approved { color: #7ce4b7; background: rgba(49, 184, 135, .14); }
.user-status.rejected { color: #ff9bab; background: rgba(220, 77, 101, .14); }
.admin-user-actions { display: flex; gap: 7px; }
.admin-user-actions button { padding: 6px 9px; font-size: 11px; }
.admin-user-actions .approve { color: #071810; border-color: transparent; background: #6eddae; }

.flow-work-center { margin-top: 22px; padding: 22px; }
.flow-role-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.flow-role-summary span { padding: 8px 11px; border: 1px solid rgba(55,151,197,.18); border-radius: 8px; color: #7f9bad; background: rgba(11,43,61,.05); font-size: 11px; }
.flow-role-summary b { margin-right: 5px; color: #175a78; }
.flow-notification-section,
.flow-dispatch-section { margin: 14px 0 16px; padding: 15px; border: 1px solid rgba(55,151,197,.16); border-radius: 11px; background: rgba(246,251,253,.78); }
.flow-dispatch-section { border-color: rgba(225,145,37,.3); background: linear-gradient(135deg, rgba(255,249,237,.92), rgba(249,252,253,.9)); }
.flow-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.flow-section-head h3 { margin: 0; color: #1a4d64; font-size: 14px; }
.flow-section-head p { margin: 4px 0 0; color: #82939d; font-size: 10px; }
.flow-section-head button { padding: 6px 9px; font-size: 9px; }
.flow-notification-list,
.flow-dispatch-list { display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.flow-notice-item { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 58px; padding: 8px 10px; border: 1px solid rgba(54,132,168,.14); border-radius: 8px; color: #1c5067; background: #fff; text-align: left; }
.flow-notice-item.unread { border-color: rgba(236,151,39,.38); background: #fffaf0; box-shadow: inset 3px 0 0 #ee9a2d; }
.flow-notice-item i { color: #e88f1f; font-size: 8px; font-style: normal; text-align: center; }
.flow-notice-item span,
.flow-notice-item b,
.flow-notice-item small { display: block; min-width: 0; }
.flow-notice-item b { color: #1b5067; font-size: 11px; }
.flow-notice-item small { margin-top: 4px; overflow: hidden; color: #80939f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.flow-notice-item time { display: block; margin-top: 4px; color: #527b8e; font-size: 8px; font-weight: 700; }
.flow-notice-item em { color: #3989aa; font-size: 9px; font-style: normal; }
.flow-notice-item.read { opacity: .68; }
.flow-dispatch-item { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.25fr) auto; align-items: center; gap: 13px; padding: 12px; border: 1px solid rgba(225,145,37,.24); border-radius: 9px; background: #fff; box-shadow: 0 5px 16px rgba(86,55,13,.06); }
.flow-dispatch-main b,
.flow-dispatch-main small { display: block; }
.flow-dispatch-main b { margin-top: 6px; color: #704710; font-size: 12px; }
.flow-dispatch-main small { margin-top: 4px; color: #9b896f; font-size: 9px; }
.flow-dispatch-tasks { display: flex; flex-wrap: wrap; gap: 5px; }
.flow-dispatch-tasks span { padding: 6px 8px; border-radius: 6px; color: #6d665b; background: #f6f1e9; font-size: 8px; }
.flow-dispatch-tasks b { margin-right: 4px; color: #d47b0b; }
.flow-dispatch-tasks em { margin-left: 5px; padding: 2px 4px; border-radius: 999px; color: #95620c; background: #fff0ce; font-style: normal; }
.flow-dispatch-tasks span.completed { color: #427460; background: #e8f7ef; }
.flow-dispatch-tasks span.completed em { color: #16764e; background: #cef0df; }
.flow-dispatch-tasks a { display: inline-block; margin-left: 6px; color: #1673a0; text-decoration: none; }
.flow-dispatch-tasks small { display: block; max-width: 260px; margin-top: 5px; color: #71838c; line-height: 1.45; }
.flow-dispatch-item > .dispatch { padding: 8px 10px; border-color: #dc891d; color: #fff; background: #ef9c2e; font-size: 10px; white-space: nowrap; }
.flow-dispatch-item > .dispatch:hover { background: #d98316; }
.flow-dispatch-progress { padding: 7px 9px; border-radius: 7px; color: #a3650a; background: #fff0ce; font-size: 10px; white-space: nowrap; }
.flow-dispatch-item.completed { border-color: rgba(53,164,116,.22); background: #fbfffd; }
.flow-dispatch-item.completed .flow-dispatch-progress { color: #16764e; background: #dff5e9; }
.flow-work-columns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 16px; }
.flow-work-columns > section { min-width: 0; padding: 15px; border: 1px solid rgba(55,151,197,.16); border-radius: 11px; background: rgba(246,251,253,.75); }
.flow-work-columns h3 { margin: 0 0 12px; color: #1a4d64; font-size: 14px; }
.flow-approval-list, .flow-task-list { display: grid; gap: 9px; max-height: 430px; overflow: auto; }
.flow-approval-item, .flow-task-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; border: 1px solid rgba(62,132,165,.14); border-radius: 9px; background: #fff; box-shadow: 0 4px 13px rgba(25,73,95,.05); }
.flow-approval-item b, .flow-approval-item small, .flow-task-item b, .flow-task-item small { display: block; }
.flow-approval-item b, .flow-task-item b { margin-top: 5px; color: #194d64; font-size: 12px; }
.flow-approval-item small, .flow-task-item small { margin-top: 4px; color: #8498a4; font-size: 9px; }
.flow-work-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.flow-work-actions button, .flow-task-item button { padding: 6px 8px; font-size: 9px; }
.flow-work-actions .dispatch { border-color: #e39125; color: #fff; background: #ef9c2e; }

/* Role-based process design workspace */
.flow-design-home { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 14px; padding: 22px; }
.flow-design-home > .flow-design-home-head,
.flow-design-home > .flow-create-entry { grid-column: 1 / -1; }
.flow-design-home > .flow-role-workspace { grid-column: 1; min-width: 0; }
.flow-design-home > .flow-home-notifications { grid-column: 2; min-width: 0; max-height: 540px; overflow: auto; }
.flow-design-home > .flow-home-notifications .flow-notification-list { margin-top: 32px; }
.flow-design-home-head, .flow-editor-page-head, .flow-role-workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.flow-design-home-head h2 { margin: 4px 0; color: #e5f7ff; font-size: 24px; }
.flow-design-home-head p { margin: 0; color: #7e9fb2; font-size: 11px; }
.flow-workspace-refresh { color: #a8d8eb; background: rgba(17, 58, 79, .72); }
.flow-design-home-actions { display: flex; align-items: center; gap: 9px; }
.flow-workspace-back { color: #9cf0d1; border-color: rgba(91, 222, 176, .28); background: rgba(17, 74, 64, .5); }
.flow-workspace-back:hover { color: #d9fff1; border-color: rgba(112, 240, 197, .48); background: rgba(23, 101, 84, .62); }
.flow-create-entry { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid rgba(72, 211, 166, .35); border-radius: 15px; background: linear-gradient(120deg, rgba(19, 93, 82, .74), rgba(10, 41, 61, .92)); box-shadow: 0 16px 36px rgba(0, 18, 33, .23); }
.flow-create-entry-icon { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(124, 255, 211, .55); border-radius: 18px; color: #d9fff1; background: rgba(55, 197, 151, .23); font-size: 32px; line-height: 1; }
.flow-create-entry span, .flow-role-workspace-head span { color: #54d9b0; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.flow-create-entry h3 { margin: 4px 0; color: #f0fffa; font-size: 18px; }
.flow-create-entry p { margin: 0; color: #92bdb7; font-size: 10px; }
.flow-create-entry > button { min-width: 112px; }
.flow-role-workspace, .flow-home-notifications { padding: 20px; border-radius: 14px; }
.flow-role-workspace-head { align-items: flex-start; }
.flow-role-workspace-head h2 { margin: 4px 0; color: #dff4ff; font-size: 18px; }
.flow-role-workspace-head p { margin: 0; color: #7896a9; font-size: 10px; }
.flow-role-workspace-head .flow-role-summary { justify-content: flex-end; margin: 0; }
.flow-role-workspace-list { display: grid; width: min(100%, 1180px); gap: 6px; margin-top: 13px; }
.flow-repository-panel { padding: 22px; }
.flow-repository-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.flow-repository-head h2 { margin:4px 0; color:#dff4ff; font-size:20px; }
.flow-repository-head p { margin:0; color:#7896a9; font-size:11px; }
.flow-repository-list { display:grid; gap:10px; margin-top:18px; }
.flow-repository-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:18px; padding:15px 16px; border:1px solid rgba(98,148,177,.2); border-radius:12px; background:rgba(9,24,39,.72); }
.flow-repository-row-main { min-width:0; display:grid; gap:5px; }
.flow-repository-row-main b { color:#e8f7ff; font-size:14px; }
.flow-repository-row-main small,.flow-repository-row-meta small { color:#7896a9; font-size:10px; }
.flow-repository-row-meta { display:grid; gap:5px; text-align:right; }
.flow-repository-row-meta strong { color:#55ddb4; font-size:12px; }
.flow-repository-row-actions { display:flex; gap:8px; }
.flow-repository-row-actions button { white-space:nowrap; }
@media (max-width:900px) { .flow-repository-row { grid-template-columns:1fr; } .flow-repository-row-meta { text-align:left; } }
.flow-workspace-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(155px, .72fr) auto; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid rgba(72, 148, 181, .17); border-radius: 9px; background: rgba(248, 252, 254, .96); box-shadow: 0 3px 10px rgba(18, 63, 84, .05); }
.flow-workspace-row-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 2px; min-width: 0; }
.flow-workspace-row-main .flow-status-pill { grid-column: 1; grid-row: 1; }
.flow-workspace-row-main b { grid-column: 2; grid-row: 1; overflow: hidden; color: #174c65; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.flow-workspace-row-main small { grid-column: 1 / -1; grid-row: 2; color: #8197a3; font-size: 8px; }
.flow-workspace-row-meta { display: grid; gap: 2px; min-width: 0; }
.flow-workspace-row-meta small { color: #8197a3; font-size: 8px; white-space: nowrap; }
.flow-workspace-row-meta strong { color: #245b71; font-size: 9px; white-space: nowrap; }
.flow-workspace-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.flow-workspace-row-actions button { padding: 5px 7px; font-size: 8px; }
.flow-workspace-row-actions .danger { border-color: rgba(218, 74, 91, .32); color: #d34759; background: #fff5f6; }
.flow-workspace-row-actions .warning { border-color: rgba(225, 151, 44, .4); color: #a46108; background: #fff9ee; }
.flow-workspace-row-actions button:disabled { cursor: not-allowed; opacity: .62; }
.flow-workspace-row.delete-pending { border-color: rgba(224, 118, 64, .34); background: #fffaf5; }
.flow-delete-request-state { display: inline-flex; margin-left: 7px; padding: 2px 6px; border-radius: 999px; font-style: normal; font-weight: 700; }
.flow-delete-request-state.pending { color: #b34a33; background: #ffe8df; }
.flow-delete-request-state.rejected { color: #856623; background: #fff1bf; }
.flow-home-notifications .flow-section-head { margin-bottom: 12px; }
.flow-editor-page { padding: 16px 0 0; }
.flow-editor-page .saved-flow-panel,
.flow-editor-page .flow-rule-side { display: none !important; }
#flowWorkCenter[hidden] { display: none !important; }
.flow-editor-page-head { margin: 0 22px 14px; padding: 11px 14px; border: 1px solid rgba(78, 164, 198, .2); border-radius: 11px; background: rgba(7, 31, 47, .76); }
.flow-editor-page-head > div { display: flex; align-items: center; gap: 9px; }
.flow-editor-page-head span { color: #d8eff9; font-size: 11px; font-weight: 700; }
.flow-editor-page-head b { padding: 4px 8px; border-radius: 999px; color: #77e7bd; background: rgba(54, 187, 140, .16); font-size: 9px; }
.flow-editor-page.readonly .subject-palette-card, .flow-editor-page.readonly .internal-company-ribbon { opacity: .55; pointer-events: none; }
.flow-editor-page.readonly #flowNodeLayer, .flow-editor-page.readonly #flowTransactionLayer, .flow-editor-page.readonly #flowConnectionPaths { pointer-events: none; }
.flow-editor-page.readonly #flowInfoBtn, .flow-editor-page.readonly #systemDesignFlow, .flow-editor-page.readonly #autoArrangeFlow, .flow-editor-page.readonly #flowSelectAll, .flow-editor-page.readonly #flowDistributeHorizontal, .flow-editor-page.readonly #flowDistributeVertical, .flow-editor-page.readonly #flowGroupScaleDown, .flow-editor-page.readonly #flowGroupScaleUp, .flow-editor-page.readonly #resetFlow, .flow-editor-page.readonly #saveFlowBtn, .flow-editor-page.readonly #writebackFlowBtn, .flow-editor-page.readonly #newFlowProject { display: none; }
.flow-editor-execution { padding: 17px; border-radius: 12px; }
.flow-company-totals { padding: 17px; border-radius: 12px; }
.flow-company-totals summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.flow-company-totals summary span { margin-left: 12px; font-size: 11px; font-weight: 400; }
.flow-company-totals p { color: #8298a4; font-size: 11px; }
.flow-company-totals-scroll { overflow-x: auto; }
.flow-company-totals table { width: 100%; min-width: 660px; border-collapse: collapse; background: #f8fcfe; color: #174d65; }
.flow-company-totals th, .flow-company-totals td { padding: 10px 12px; border: 1px solid #c6dce8; text-align: right; font-variant-numeric: tabular-nums; }
.flow-company-totals th { background: #eaf6fb; }
.flow-company-totals tr > :nth-child(-n+2) { text-align: left; }
.flow-company-totals tfoot { background: #e4f4ef; font-weight: 700; }
.flow-editor-execution-heading { flex: 1 1 680px; min-width: 0; }
.flow-editor-execution-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.flow-editor-execution-status { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #52788b; font-size: 9px; font-weight: 700; }
.flow-editor-execution-status select { min-width: 140px; height: 31px; padding: 5px 10px; border: 1px solid #c6dce8; border-radius: 7px; color: #173c50; background: #f8fcfe; font-size: 10px; }
.flow-editor-execution-search { display: flex; width: min(520px, 100%); align-items: center; gap: 8px; margin-top: 10px; }
.flow-editor-execution-search span { flex: 0 0 auto; color: #52788b; font-size: 9px; font-weight: 700; }
.flow-editor-execution-search input { width: 100%; min-width: 180px; height: 31px; padding: 5px 10px; border: 1px solid #c6dce8; border-radius: 7px; color: #173c50; background: #f8fcfe; font-size: 10px; }
.flow-editor-execution-search input:focus { border-color: #2b98c7; outline: 2px solid rgba(43, 152, 199, .13); }
.flow-editor-execution .flow-section-head > span { padding: 5px 9px; border-radius: 999px; color: #1c6681; background: #eaf6fb; font-size: 9px; }
.flow-editor-execution-actions { display: flex; align-items: center; gap: 8px; }
.flow-editor-execution-actions > span { padding: 5px 9px; border-radius: 999px; color: #1c6681; background: #eaf6fb; font-size: 9px; }
.flow-editor-execution-actions > button { padding: 7px 12px; font-size: 9px; }
.flow-editor-execution-list { display: grid; gap: 10px; margin-top: 13px; }
.flow-mind-project { position: relative; display: grid; grid-template-columns: minmax(250px, .9fr) minmax(360px, 1.45fr); align-items: center; gap: 58px; padding: 18px 18px 18px 20px; border: 1px solid rgba(57, 141, 176, .16); border-radius: 12px; background: #fff; }
.flow-mind-root { position: relative; display: grid; gap: 5px; padding: 14px 16px; border: 1px solid rgba(44, 137, 176, .3); border-radius: 10px; background: linear-gradient(135deg, #eaf7fb, #f8fcfd); box-shadow: 0 5px 16px rgba(29, 94, 122, .08); }
.flow-mind-root::after { content: ""; position: absolute; top: 50%; right: -59px; width: 59px; height: 2px; background: #8bbdce; transform: translateY(-50%); }
.flow-mind-root em { color: #43809a; font-size: 8px; font-style: normal; }
.flow-mind-root b { color: #174d65; font-size: 12px; line-height: 1.45; }
.flow-mind-root small { color: #8298a4; font-size: 8px; }
.flow-mind-project-executors { width: fit-content; margin-top: 3px; padding: 4px 7px; border-radius: 999px; color: #246e59; background: #dff5ec; font-size: 8px; font-weight: 700; }
.flow-mind-branches { position: relative; display: grid; gap: 8px; padding-left: 28px; }
.flow-mind-branches::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 0; width: 2px; border-radius: 2px; background: #8bbdce; }
.flow-mind-task { position: relative; display: grid; grid-template-columns: 8px minmax(0, 1fr) minmax(150px, auto); align-items: center; gap: 8px; min-height: 40px; padding: 9px 11px; border: 1px solid rgba(79, 148, 174, .13); border-radius: 8px; background: #f4f9fb; }
.flow-mind-task::before { content: ""; position: absolute; top: 50%; left: -28px; width: 28px; height: 2px; background: #8bbdce; transform: translateY(-50%); }
.flow-mind-task i { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: #efb83e; box-shadow: 0 0 0 3px rgba(239, 184, 62, .13); }
.flow-mind-task.completed i { background: #35bd8e; box-shadow: 0 0 0 3px rgba(53, 189, 142, .13); }
.flow-mind-task.automatic i { background: #69a9c6; box-shadow: 0 0 0 3px rgba(105, 169, 198, .13); }
.flow-mind-task span { display: grid; gap: 3px; min-width: 0; }
.flow-mind-task b { color: #24576c; font-size: 10px; line-height: 1.4; }
.flow-mind-task small { color: #7d949f; font-size: 8px; line-height: 1.4; }
.flow-mind-task-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.flow-task-progress { min-width: 118px; color: #26718f; font-size: 8px; }
.flow-task-progress summary { max-width: 190px; padding: 5px 7px; overflow: hidden; border: 1px solid rgba(55,151,197,.2); border-radius: 6px; color: #26718f; background: #eaf6fb; cursor: pointer; list-style: none; text-overflow: ellipsis; white-space: nowrap; }
.flow-mind-task:has(.flow-dispatch-progress[data-has-pending="true"]):not(.flow-target-highlight) { background: #fff5e6; border-color: #e7ad52; }
.flow-dispatch-progress summary { display: flex; flex-wrap: wrap; gap: 5px 12px; max-width: 440px; white-space: normal; overflow: visible; }
.flow-dispatch-progress summary > span { display: block; white-space: nowrap; color: #24576c; }
.flow-dispatch-progress summary b { font-size: 10px; }
.flow-dispatch-amount-field > div { flex-wrap: wrap; }
.flow-dispatch-amount-field .dispatch-money-uppercase { color: #f5d77c; font-size: 13px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
.finance-receipt-entries { padding: 16px; border: 1px solid #bdddd4; border-radius: 10px; background: #f0faf6; color: #24576c; }
.receipt-entry { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 10px; }
.receipt-entry label { display: grid; gap: 5px; flex: 1; min-width: 150px; }
.finance-receipt-entries strong { font-size: 18px; color: #137960; }
.flow-task-progress summary::-webkit-details-marker { display: none; }
.flow-task-progress summary::after { content: "⌄"; float: right; margin-left: 6px; }
.flow-task-progress[open] summary { border-color: rgba(42,128,111,.35); color: #176a59; background: #e4f4ef; }
.flow-task-progress ul { position: static; box-sizing: border-box; width: 100%; max-width: 440px; max-height: 250px; margin: 5px 0 0; padding: 7px; overflow: auto; border: 1px solid rgba(55,151,197,.2); border-radius: 8px; background: #fff; box-shadow: 0 9px 22px rgba(25,73,95,.16); list-style: none; }
.flow-mind-task:has(.flow-task-progress[open]) > .flow-mind-task-actions { grid-column: 2 / -1; align-items: flex-start; }
.flow-mind-task-actions > .flow-task-progress[open] { flex: 1 1 440px; min-width: 0; max-width: 440px; }
.flow-task-progress li small { overflow-wrap: anywhere; }
.flow-task-progress li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 6px; border-bottom: 1px solid #edf3f6; }
.flow-task-progress li:last-child { border-bottom: 0; }
.flow-task-progress li span, .flow-task-progress li b, .flow-task-progress li small { display: block; min-width: 0; }
.flow-task-progress li b { color: #24576c; font-size: 8px; }
.flow-task-progress li small { margin-top: 3px; color: #7d949f; font-size: 7px; line-height: 1.45; }
.flow-task-progress li em { padding: 3px 5px; border-radius: 999px; color: #367d64; background: #e4f4ed; font-size: 7px; font-style: normal; white-space: nowrap; }
.flow-task-progress li.empty { color: #8197a3; font-size: 8px; }
.flow-task-progress .flow-evidence-file { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border: 1px solid #c8dfe8; background: #eef7fa; }
.flow-task-progress .flow-evidence-file b { max-width: 230px; overflow: hidden; color: #244f60; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.flow-task-progress .flow-evidence-file a { padding: 2px 5px; border-radius: 4px; color: #0b668b; background: #dceff5; font-size: 8px; font-weight: 600; text-decoration: none; }
.flow-task-progress .flow-evidence-file a:hover { color: #fff; background: #16749a; }
.flow-mind-project > footer { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin-top: -2px; padding-top: 10px; border-top: 1px solid #edf3f6; }
.flow-editor-dispatch-task { padding: 7px 10px; font-size: 9px; }
.flow-work-item-dispatch { width: 100%; margin-top: 7px; }
.flow-dispatch-workspace-dialog { width: min(1240px, 97vw); max-height: 94vh; display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.flow-dispatch-workspace-dialog .edit-dialog-head p { margin: 5px 0 0; color: #6f8d9d; font-size: 10px; }
.flow-dispatch-workspace-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 22px 14px; padding: 13px 15px; border: 1px solid rgba(73, 179, 219, .18); border-radius: 10px; background: rgba(8, 30, 45, .76); }
.flow-dispatch-workspace-summary > div { display: grid; gap: 4px; }
.flow-dispatch-workspace-summary em { width: fit-content; padding: 3px 7px; border-radius: 999px; color: #f0bb4a; background: rgba(240, 187, 74, .12); font-size: 8px; font-style: normal; }
.flow-dispatch-workspace-summary b { color: #dff6ff; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.flow-dispatch-workspace-summary .flow-dispatch-summary-parties { display: flex; flex-wrap: wrap; gap: 6px 20px; color: #c8e8f3; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.flow-dispatch-workspace-summary small { color: #7594a4; font-size: 9px; }
.flow-dispatch-workspace-summary > strong { display: grid; justify-items: end; gap: 3px; color: #63d6aa; font-size: 14px; }
.flow-dispatch-workspace-summary > strong small { font-weight: 400; }
.flow-dispatch-workspace-list { display: grid; gap: 12px; min-height: 0; padding: 0 22px 22px; overflow: auto; }
.flow-dispatch-workspace-project { padding: 14px; border: 1px solid rgba(77, 167, 202, .16); border-radius: 11px; background: rgba(5, 23, 35, .8); }
.flow-dispatch-workspace-project > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(88, 161, 189, .12); }
.flow-dispatch-workspace-project > header span { display: grid; gap: 3px; }
.flow-dispatch-workspace-project > header em { color: #54b98f; font-size: 8px; font-style: normal; }
.flow-dispatch-workspace-project > header b { color: #d9f2fb; font-size: 12px; }
.flow-dispatch-workspace-project > header small { color: #6f8d9d; font-size: 8px; }
.flow-dispatch-workspace-project > header strong { flex: 0 0 auto; color: #e9b94f; font-size: 11px; }
.flow-dispatch-transaction-detail { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 10px 0; padding: 9px 11px; border-radius: 8px; color: #7898a8; background: rgba(9, 39, 56, .65); font-size: 8px; }
.flow-dispatch-transaction-detail b { color: #a9cedd; }
.flow-dispatch-workspace-items { display: grid; gap: 7px; }
.flow-dispatch-workspace-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 92px; align-items: center; gap: 10px; min-height: 54px; padding: 9px 11px; border: 1px solid rgba(83, 159, 188, .14); border-radius: 8px; background: rgba(13, 43, 58, .78); }
.flow-dispatch-workspace-item.focused { border-color: rgba(100, 222, 174, .72); box-shadow: 0 0 0 2px rgba(100, 222, 174, .1); }
.flow-dispatch-workspace-item > div { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: center; gap: 8px; }
.flow-dispatch-workspace-item i { width: 8px; height: 8px; border-radius: 50%; background: #f1b943; box-shadow: 0 0 0 3px rgba(241, 185, 67, .12); }
.flow-dispatch-workspace-item span { display: grid; gap: 3px; }
.flow-dispatch-workspace-item b { color: #d8f0f8; font-size: 10px; }
.flow-dispatch-workspace-item small { color: #6f8c9b; font-size: 8px; }
.flow-dispatch-workspace-item > em { min-width: 84px; padding: 4px 7px; border-radius: 999px; text-align: center; font-size: 8px; font-style: normal; }
.flow-dispatch-workspace-item > em.undispatched { color: #e8b84a; background: rgba(232, 184, 74, .12); }
.flow-dispatch-workspace-item > em.partial { color: #ffcf63; background: rgba(255, 174, 52, .14); }
.flow-dispatch-workspace-item > em.dispatched { color: #6bcdf0; background: rgba(107, 205, 240, .12); }
.flow-dispatch-workspace-item > em.completed { color: #64dcae; background: rgba(100, 220, 174, .12); }
.flow-dispatch-workspace-item > button { width: 92px; padding: 7px 8px; font-size: 8px; }
.flow-dispatch-workspace-item:not(:has(> button)) { grid-template-columns: minmax(0, 1fr) auto; }
.flow-dispatch-workspace-project.single-task { max-width: 980px; width: 100%; margin: 0 auto; }
.flow-dispatch-installment-form { display: grid; gap: 13px; margin-top: 12px; padding: 15px; border: 1px solid rgba(84, 189, 220, .18); border-radius: 10px; background: rgba(10, 38, 53, .72); }
.flow-dispatch-installment-form label { display: grid; gap: 6px; color: #8ca9b7; font-size: 9px; }
.flow-dispatch-installment-form input, .flow-dispatch-installment-form select, .flow-dispatch-installment-form textarea { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid rgba(91, 173, 204, .25); border-radius: 7px; color: #dff6ff; background: rgba(4, 23, 34, .86); }
.flow-dispatch-installment-form textarea { min-height: 64px; resize: vertical; }
.flow-dispatch-amount-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.flow-dispatch-amount-overview span { display: grid; gap: 4px; padding: 10px; border-radius: 8px; color: #7899a8; background: rgba(14, 52, 69, .72); font-size: 8px; }
.flow-dispatch-amount-overview b { color: #e7c35d; font-size: 13px; }
.flow-dispatch-amount-field > div { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); align-items: center; gap: 10px; }
.flow-dispatch-amount-field small { color: #ff776f; line-height: 1.55; }
.flow-dispatch-bank-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 10px; }
.flow-dispatch-invoice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.flow-invoice-dispatch-form { border-color: rgba(225, 138, 50, .3); }
.flow-dispatch-records { display: grid; gap: 7px; padding: 11px; border-radius: 8px; background: rgba(5, 25, 37, .72); }
.flow-dispatch-records > b { color: #acd5e3; font-size: 9px; }
.flow-dispatch-records p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding-top: 7px; border-top: 1px solid rgba(95, 165, 190, .12); color: #d8eff7; font-size: 9px; }
.flow-dispatch-records small { color: #7594a3; }
.flow-dispatch-installment-form > button { justify-self: end; min-width: 180px; }
.flow-receipt-expected-field small { color: #ff776f; font-size: 8px; line-height: 1.5; }
.flow-dispatch-fully-allocated { justify-self: end; color: #63d6aa; font-size: 10px; }
.flow-editor-project-state { padding: 5px 9px; border-radius: 999px; color: #527687; background: #edf5f8; font-size: 8px; font-style: normal; }
.flow-approval-project-summary { margin: 2px 0 14px; padding: 11px 12px; border: 1px solid rgba(66, 151, 186, .18); border-radius: 9px; background: #f6fafc; }
.flow-approval-project-summary b, .flow-approval-project-summary small { display: block; }
.flow-approval-project-summary b { color: #174d65; font-size: 13px; }
.flow-approval-project-summary small { margin-top: 5px; color: #78919e; font-size: 9px; }
.flow-approval-history { display: grid; gap: 7px; max-height: 330px; overflow: auto; }
.flow-approval-history article { padding: 9px; border-left: 3px solid #53b992; border-radius: 5px; background: #f4faf7; }
.flow-approval-history b, .flow-approval-history small, .flow-approval-history p { display: block; margin: 0; }
.flow-approval-history b { color: #22586c; font-size: 10px; }
.flow-approval-history small { margin-top: 3px; color: #8195a0; font-size: 8px; }
.flow-approval-history p { margin-top: 5px; color: #536f7d; font-size: 9px; }

@media (max-width: 1000px) {
  .flow-workspace-row { grid-template-columns: 1fr; }
  .flow-workspace-row-actions { justify-content: flex-start; }
  .flow-mind-project { grid-template-columns: minmax(210px, .85fr) minmax(300px, 1.15fr); gap: 38px; }
  .flow-mind-root::after { right: -39px; width: 39px; }
}

@media (max-width: 680px) {
  .flow-design-home-head, .flow-role-workspace-head { align-items: flex-start; flex-direction: column; }
  .flow-design-home { grid-template-columns: 1fr; }
  .flow-design-home > .flow-role-workspace, .flow-design-home > .flow-home-notifications { grid-column: 1; }
  .flow-design-home-actions { width: 100%; justify-content: flex-start; }
  .flow-create-entry { grid-template-columns: 48px minmax(0, 1fr); }
  .flow-create-entry-icon { width: 48px; height: 48px; }
  .flow-create-entry > button { grid-column: 1 / -1; }
  .flow-mind-project { grid-template-columns: 1fr; gap: 26px; }
  .flow-mind-root::after { top: auto; right: 50%; bottom: -27px; width: 2px; height: 27px; transform: translateX(50%); }
  .flow-mind-branches { padding-top: 0; padding-left: 22px; }
  .flow-mind-task::before { left: -22px; width: 22px; }
  .flow-editor-execution-actions { align-items: flex-end; flex-direction: column; }
  .flow-dispatch-workspace-summary, .flow-dispatch-workspace-project > header { align-items: flex-start; flex-direction: column; }
  .flow-dispatch-workspace-summary > strong { justify-items: start; }
  .flow-dispatch-workspace-item, .flow-dispatch-workspace-item:not(:has(> button)) { grid-template-columns: 1fr; }
  .flow-dispatch-workspace-item > em { width: fit-content; }
  .flow-dispatch-amount-overview, .flow-dispatch-bank-grid, .flow-dispatch-invoice-grid, .flow-dispatch-amount-field > div { grid-template-columns: 1fr; }
  .flow-dispatch-records p { flex-direction: column; }
}
.flow-status-pill { display: inline-flex; padding: 3px 7px; border-radius: 999px; color: #607685; background: #eaf0f3; font-size: 8px; font-style: normal; white-space: nowrap; }
.flow-status-pill.reviewer_pending, .flow-status-pill.admin_pending { color: #a56b05; background: #fff2cf; }
.flow-status-pill.reviewer_rejected, .flow-status-pill.admin_rejected { color: #bd4557; background: #ffe4e8; }
.flow-status-pill.approved { color: #a65a00; background: #ffe6c3; }
.flow-status-pill.dispatched { color: #1769a0; background: #dcf1ff; }
.flow-status-pill.completed { color: #178357; background: #dff7ec; }
.flow-task-item > span > em { float: left; margin-right: 7px; padding: 4px 7px; border-radius: 6px; color: #0f7181; background: #ddf5f4; font-size: 9px; font-style: normal; }
.flow-task-item.completed { opacity: .68; }
.flow-task-item > strong { color: #77909e; font-size: 10px; }
.flow-task-completion { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; align-items: center; gap: 7px; min-width: min(470px, 54%); }
.flow-task-completion textarea { min-width: 140px; min-height: 48px; padding: 7px 8px; resize: vertical; border: 1px solid rgba(55,151,197,.22); border-radius: 7px; color: #224e62; background: #f8fcfd; font: inherit; font-size: 9px; }
.flow-task-completion label { position: relative; overflow: hidden; padding: 7px 9px; border: 1px solid rgba(55,151,197,.24); border-radius: 7px; color: #26718f; background: #eef8fb; font-size: 9px; cursor: pointer; white-space: nowrap; }
.flow-task-completion label span { display: block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.flow-task-completion input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.flow-task-result { display: grid; justify-items: end; gap: 4px; max-width: 280px; }
.flow-task-result strong { color: #25805c; font-size: 10px; }
.flow-task-result small { color: #778d98; font-size: 9px; text-align: right; }
.flow-task-result a { color: #1673a0; font-size: 9px; text-decoration: none; }

/* 财务专员极简任务接收与执行工作台 */
body.finance-only-account { min-width: 0; overflow-x: hidden; background: #f3f6f8; }
body.finance-only-account #flowNotificationButton,
body.finance-only-account #userCenterButton,
body.finance-only-account #reviewNotification,
body.finance-only-account #flowNotificationToast { display: none !important; }
body.finance-only-account .global-version-badge {
  top: 24px;
  right: auto;
  bottom: auto;
  left: 28px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: calc(100vw - 190px);
  min-height: 0;
  border-color: #b8dbe5;
  color: #176079;
  background: #fff;
  box-shadow: 0 4px 12px rgba(20, 55, 72, .1);
  white-space: nowrap;
}
body.finance-only-account #logoutButton { top: 24px; right: 28px; z-index: 30; border-color: #d8e1e6; color: #536874; background: #fff; box-shadow: 0 4px 12px rgba(20, 55, 72, .08); }
.finance-workspace { min-height: 100vh; color: #243c49; background: linear-gradient(180deg, #17394a 0, #17394a 172px, #f3f6f8 172px, #f3f6f8 100%); }
.finance-workspace[hidden] { display: none !important; }
.finance-workspace-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; max-width: 1180px; min-height: 172px; margin: 0 auto; padding: 35px 150px 30px 24px; }
.finance-workspace-header small { color: #70d8bc; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.finance-workspace-header h1 { margin: 7px 0 5px; color: #f4fbfd; font-size: 27px; font-weight: 700; }
.finance-workspace-header p { margin: 0; color: #9db9c5; font-size: 11px; }
.finance-workspace-account { display: grid; justify-items: end; gap: 10px; padding-top: 3px; }
.finance-workspace-account span { max-width: 350px; overflow: hidden; color: #cae1e9; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.finance-workspace-account > div { display: flex; gap: 8px; }
.finance-workspace-account button { padding: 7px 12px; border-color: rgba(180, 226, 239, .25); color: #d6edf4; background: rgba(255, 255, 255, .07); font-size: 9px; }
.finance-workspace-account .finance-daily-report-button { border-color: rgba(112, 216, 188, .48); color: #d9fff3; background: rgba(27, 128, 104, .26); }
.finance-workspace-account .finance-daily-report-button[aria-expanded="true"] { border-color: #78e4c5; color: #fff; background: #18775f; box-shadow: 0 0 0 3px rgba(64, 213, 173, .13); }
.finance-workspace-account .finance-daily-detail-button { border-color: rgba(101, 204, 229, .46); color: #e0faff; background: rgba(37, 120, 146, .26); }
.finance-workspace-account .finance-task-notification-button { position: relative; border-color: rgba(255, 148, 148, .48); color: #ffe5e5; background: rgba(174, 42, 52, .28); }
.finance-workspace-account .finance-task-notification-button.has-unread { border-color: #ff858d; color: #fff; background: #bd3541; box-shadow: 0 0 0 3px rgba(255, 92, 105, .12); }
.finance-task-notification-button b { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid #17394a; border-radius: 999px; color: #fff; background: #e33f4d; font-size: 8px; }
.finance-task-notification-button b[hidden] { display: none !important; }
.finance-task-notification-toast { position: fixed; z-index: 45; top: 86px; right: 28px; display: flex; align-items: center; gap: 20px; max-width: min(440px, calc(100vw - 32px)); padding: 14px 17px; border: 1px solid #f18b93; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #b62f3b, #7f2530); box-shadow: 0 14px 32px rgba(97, 20, 29, .28); text-align: left; animation: reviewNoticeIn .3s ease-out; }
.finance-task-notification-toast[hidden] { display: none !important; }
.finance-task-notification-toast span { display: grid; gap: 4px; min-width: 0; }
.finance-task-notification-toast small { color: #ffd2d5; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.finance-task-notification-toast strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.finance-task-notification-toast em { flex: 0 0 auto; color: #fff2f3; font-size: 9px; font-style: normal; }
.finance-workspace-main { max-width: 1180px; margin: -26px auto 0; padding: 0 24px 50px; }
.finance-daily-report-panel { margin-bottom: 15px; overflow: hidden; border: 1px solid #9ccfc2; border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(17, 93, 75, .11); }
.finance-daily-report-panel[hidden] { display: none !important; }
.finance-daily-report-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-bottom: 1px solid #d8eee8; background: linear-gradient(135deg, #eaf8f4, #f8fcfb); }
.finance-daily-report-panel > header small { color: #21836b; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.finance-daily-report-panel > header h2 { margin: 4px 0; color: #185a4d; font-size: 16px; }
.finance-daily-report-panel > header p { margin: 0; color: #6e8f87; font-size: 8px; }
.finance-daily-report-panel > header button { border-color: #b7d8d0; color: #47766b; background: #fff; font-size: 8px; }
.finance-daily-report-header-actions { display: flex; align-items: center; gap: 8px; }
.finance-daily-report-panel > header .finance-daily-report-header-actions .primary { border-color: #24856e; color: #fff; background: #24856e; }
.finance-daily-report-form { display: grid; grid-template-columns: minmax(190px, .45fr) minmax(300px, 1fr) auto; align-items: end; gap: 12px; padding: 16px 18px 10px; }
.finance-daily-report-form > label { display: grid; gap: 6px; color: #68847d; font-size: 8px; }
.finance-daily-report-form input[type="date"] { min-height: 38px; padding: 8px 10px; border: 1px solid #cdded9; border-radius: 8px; color: #245548; background: #fff; }
.finance-daily-report-file { position: relative; min-height: 38px; padding: 7px 11px; overflow: hidden; border: 1px dashed #7eb6a8; border-radius: 8px; background: #f2faf8; cursor: pointer; }
.finance-daily-report-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.finance-daily-report-file em { overflow: hidden; color: #257b66; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.finance-daily-report-form button { min-height: 38px; border-color: #16755e; color: #fff; background: #16755e; }
.finance-daily-report-fields { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 2px 18px 13px; border-bottom: 1px solid #e7f0ed; }
.finance-daily-report-fields b { margin-right: 4px; color: #397266; font-size: 8px; }
.finance-daily-report-fields span { padding: 4px 7px; border-radius: 999px; color: #397469; background: #e8f5f1; font-size: 8px; }
.finance-daily-report-company-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 13px 18px 18px; }
.finance-daily-company { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 11px 12px; border: 1px solid #d8e5e1; border-radius: 10px; background: #f9fbfb; }
.finance-daily-company i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 9px; font-style: normal; }
.finance-daily-company span { display: grid; gap: 4px; min-width: 0; }
.finance-daily-company b { overflow: hidden; color: #375d54; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.finance-daily-company small { color: #789088; font-size: 8px; }
.finance-daily-company em { width: fit-content; padding: 3px 7px; border-radius: 999px; font-size: 8px; font-style: normal; white-space: nowrap; }
.finance-daily-company.reported { border-color: #98d0bd; background: #eff9f5; }
.finance-daily-company.reported i, .finance-daily-company.reported em { color: #1b775d; background: #d8f1e7; }
.finance-daily-company.missing { border-color: #efb5b9; background: #fff6f7; }
.finance-daily-company.missing b { color: #9c3e47; }
.finance-daily-company.missing i, .finance-daily-company.missing em { color: #b33c47; background: #ffe3e5; }
.finance-daily-detail-modal { z-index: 210; }
.finance-daily-detail-modal .company-data-daily-dialog { width: min(1540px, 97vw); }
.finance-task-notification-panel { margin-bottom: 14px; overflow: hidden; border: 1px solid #efb6bb; border-radius: 13px; background: #fff; box-shadow: 0 8px 24px rgba(116, 30, 39, .1); }
.finance-task-notification-panel[hidden] { display: none !important; }
.finance-task-notification-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 17px; border-bottom: 1px solid #f3d7da; background: #fff5f6; }
.finance-task-notification-panel > header small { color: #c33f4b; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.finance-task-notification-panel > header h2 { margin: 3px 0; color: #8e2e37; font-size: 15px; }
.finance-task-notification-panel > header p { margin: 0; color: #9b7478; font-size: 8px; }
.finance-task-notification-panel > header button { color: #9d3842; border-color: #edc2c6; background: #fff; font-size: 8px; }
.finance-task-notification-list { display: grid; gap: 7px; max-height: 300px; padding: 10px; overflow-y: auto; }
.finance-task-notice { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; padding: 10px; border: 1px solid #e1e8eb; border-radius: 9px; color: #284e5d; background: #fff; text-align: left; }
.finance-task-notice.unread { border-color: #efb2b8; background: #fff6f7; box-shadow: inset 3px 0 0 #dc4653; }
.finance-task-notice i { color: #dc4653; font-size: 8px; font-style: normal; text-align: center; }
.finance-task-notice span { display: grid; gap: 3px; min-width: 0; }
.finance-task-notice b { color: #334f5b; font-size: 10px; }
.finance-task-notice small { overflow: hidden; color: #788e97; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.finance-task-notice time { color: #9a7b7e; font-size: 7px; }
.finance-task-notice em { padding: 3px 6px; border-radius: 999px; color: #a24a51; background: #fde9eb; font-size: 8px; font-style: normal; }
.finance-task-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.finance-task-overview > div { display: flex; align-items: center; justify-content: space-between; min-height: 80px; padding: 18px 20px; border: 1px solid #e0e8ec; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(26, 65, 83, .08); }
.finance-task-overview small { color: #7e929d; font-size: 10px; }
.finance-task-overview b { color: #1f596d; font-size: 27px; }
.finance-task-tabs { display: flex; gap: 8px; margin: 24px 0 13px; padding-bottom: 9px; border-bottom: 1px solid #dbe4e8; }
.finance-task-tabs button { padding: 8px 14px; border-color: transparent; color: #748992; background: transparent; font-size: 10px; }
.finance-task-tabs button.active { border-color: #2c806f; color: #176a59; background: #e4f4ef; }
.finance-task-list { display: grid; gap: 15px; }
.finance-task-desk-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.finance-company-list { display: grid; gap: 8px; position: sticky; top: 16px; max-height: min(70vh, 720px); overflow-y: auto; }
.finance-company-list-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 11px 12px; text-align: left; border: 1px solid #dce7eb; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.finance-company-list-item:hover { border-color: #8bbdaf; transform: translateY(-1px); }
.finance-company-list-item.active { border-color: #2c806f; background: #e4f4ef; box-shadow: 0 4px 12px rgba(44, 128, 111, .12); }
.finance-company-list-item.has-pending { border-color: #ec9ba2; background: #fff6f7; box-shadow: inset 3px 0 0 #df4653; }
.finance-company-list-item.has-pending:hover { border-color: #df6670; background: #ffedef; }
.finance-company-list-item.has-pending.active { border-color: #d94754; background: #ffe9eb; box-shadow: inset 3px 0 0 #d93644, 0 4px 12px rgba(190, 49, 61, .14); }
.finance-company-list-item.has-pending b { color: #b73540; }
.finance-company-list-item.has-pending em { color: #b52e3a; background: #ffdfe2; }
.finance-company-list-item > span { display: grid; gap: 4px; min-width: 0; }
.finance-company-list-item b { overflow: hidden; color: #1f596d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.finance-company-list-item small { color: #8297a0; font-size: 8px; }
.finance-company-list-item em { flex: 0 0 auto; padding: 3px 6px; border-radius: 999px; color: #a06413; background: #fff2db; font-size: 8px; font-style: normal; white-space: nowrap; }
.finance-company-task-group { overflow: hidden; border: 1px solid #d7e3e7; border-radius: 14px; background: #f5f9fa; box-shadow: 0 8px 24px rgba(26, 59, 74, .07); }
.finance-company-task-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; border-bottom: 1px solid #d9e5e9; background: linear-gradient(135deg, #e9f4f5, #f8fbfc); }
.finance-company-task-header > div:first-child { display: grid; gap: 3px; min-width: 0; }
.finance-company-task-header > div:first-child small { color: #5e8b98; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.finance-company-task-header h2 { margin: 0; overflow: hidden; color: #174c5f; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.finance-company-task-header > div:last-child { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: #6f8791; font-size: 8px; }
.finance-company-task-header > div:last-child b { padding: 4px 7px; border-radius: 999px; color: #9a641b; background: #fff0d7; }
.finance-company-task-header > div:last-child span { padding: 4px 7px; border-radius: 999px; color: #28765b; background: #e1f3eb; }
.finance-company-task-header > div:last-child small { color: #7c929b; font-size: 8px; }
.finance-company-task-items { display: grid; gap: 12px; padding: 12px; }
.finance-company-task-items .finance-task-card { box-shadow: 0 3px 12px rgba(26, 59, 74, .05); }
.finance-task-card { overflow: hidden; border: 1px solid #dde6ea; border-radius: 13px; background: #fff; box-shadow: 0 6px 20px rgba(26, 59, 74, .06); }
.finance-task-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px 14px; border-top: 4px solid #4389a0; border-bottom: 1px solid #e9eef1; }
.finance-task-card.payment > header { border-top-color: #3988d1; }
.finance-task-card.receipt > header { border-top-color: #27a87d; }
.finance-task-card.invoice > header { border-top-color: #e18a32; }
.finance-task-card.invoice-received > header { border-top-color: #806bc7; }
.finance-task-card > header div { display: grid; gap: 4px; }
.finance-task-card > header em { width: fit-content; padding: 3px 7px; border-radius: 999px; color: #24627a; background: #e8f3f7; font-size: 9px; font-style: normal; font-weight: 700; }
.finance-task-card.payment > header em { color: #236ca9; background: #e5f2ff; }
.finance-task-card.receipt > header em { color: #197a5a; background: #e0f5ed; }
.finance-task-card.invoice > header em { color: #9c5a19; background: #fff0df; }
.finance-task-card.invoice-received > header em { color: #6551a9; background: #eeeafd; }
.finance-task-card > header h2 { margin: 1px 0; color: #193f50; font-size: 16px; }
.finance-task-card > header h2 i { margin: 0 8px; color: #9aadb5; font-style: normal; }
.finance-task-card > header p { margin: 0; color: #899ba3; font-size: 9px; }
.finance-task-card > header > strong { padding: 5px 9px; border-radius: 999px; color: #a06413; background: #fff2db; font-size: 9px; }
.finance-task-card.completed > header > strong { color: #237858; background: #e1f5ed; }
.finance-project-summary, .finance-task-data-grid { display: grid; gap: 10px; padding: 14px 20px; }
.finance-project-summary { grid-template-columns: repeat(5, 1fr); background: #fafcfd; }
.finance-task-data-grid { grid-template-columns: repeat(4, 1fr); border-top: 1px solid #edf1f3; }
.finance-project-summary span, .finance-task-data-grid span { display: grid; align-content: start; gap: 4px; min-width: 0; }
.finance-project-summary small, .finance-task-data-grid small { color: #8598a1; font-size: 8px; }
.finance-project-summary b, .finance-task-data-grid b { overflow-wrap: anywhere; color: #315564; font-size: 10px; }
.finance-task-data-grid b { color: #1c5267; font-size: 11px; }
.finance-task-data-grid em { color: #d24d4d; font-size: 8px; font-style: normal; line-height: 1.4; }
.finance-task-data-grid .finance-project-payment-totals { margin: 3px 0 0; color: #547986; font-size: 8px; font-weight: 700; line-height: 1.55; }
.finance-project-payment-totals strong { margin: 0 2px; color: #147559; font-size: 9px; }
.finance-project-payment-totals strong:last-child { color: #ca444e; }
.finance-task-execution { display: grid; gap: 13px; padding: 15px 20px 19px; border-top: 1px solid #e7edef; background: #fbfcfd; }
.finance-invoice-fields h4 { margin: 0 0 10px; color: #345d6d; font-size: 11px; }
.finance-invoice-fields > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.finance-invoice-fields label, .finance-completion-time, .finance-system-submit-time { display: grid; gap: 5px; color: #6f858f; font-size: 8px; }
.finance-invoice-fields label.wide { grid-column: span 2; }
.finance-invoice-fields input, .finance-invoice-fields select, .finance-completion-time input { min-height: 35px; padding: 7px 9px; border: 1px solid #d5e0e5; border-radius: 7px; color: #294f5e; background: #fff; font: inherit; font-size: 9px; }
.finance-system-submit-time b { display: flex; align-items: center; min-height: 35px; padding: 7px 9px; border: 1px solid #dce6e9; border-radius: 7px; color: #607983; background: #f4f7f8; font-size: 9px; font-weight: 500; }
.finance-task-submit-row { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(230px, 1fr) auto; align-items: end; gap: 10px; }
.finance-evidence-field { display: grid; gap: 7px; min-width: 0; }
.finance-evidence-upload { position: relative; display: grid; min-height: 35px; padding: 9px 11px; overflow: hidden; border: 1px dashed #9dbbc7; border-radius: 7px; color: #27718c; background: #f1f8fa; font-size: 9px; cursor: pointer; }
.finance-evidence-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.finance-pending-file-list { display: grid; gap: 6px; padding: 8px 9px; border: 1px solid #d8e6ea; border-radius: 7px; background: #fff; }
.finance-pending-file-list.empty { padding: 7px 9px; border-style: dashed; color: #8a9ca4; }
.finance-pending-file-list > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.finance-pending-file-list > header b { color: #2a7088; font-size: 9px; }
.finance-pending-file-list > header small, .finance-pending-file-list.empty > small { color: #8699a1; font-size: 8px; }
.finance-pending-file-list ul { display: grid; gap: 5px; max-height: 124px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.finance-pending-file { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 5px; background: #f4f8f9; }
.finance-pending-file span { overflow: hidden; color: #3e6473; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.finance-pending-file small { color: #91a0a6; font-size: 7px; }
.finance-pending-file button { min-width: 0; min-height: 0; padding: 2px 5px; border: 0; color: #c34e4e; background: transparent; font-size: 7px; }
.finance-task-submit-row button { min-height: 35px; min-width: 175px; }
.finance-task-action-buttons { display: grid; grid-template-columns: repeat(2, minmax(82px, 1fr)); align-items: end; gap: 6px; min-width: 190px; }
.finance-task-action-buttons > small { grid-column: 1 / -1; min-height: 12px; color: #6d8a95; font-size: 8px; text-align: right; }
.finance-task-action-buttons > button { min-width: 82px; padding-inline: 16px; border: 1px solid #9ab4bf; color: #3f6878; background: #fff; }
.finance-task-action-buttons > button.primary { border-color: #16745d; color: #fff; background: #16745d; }
.finance-validation-note { margin: -4px 0 0; color: #cf5d54; font-size: 8px; }
.finance-task-completed-result { display: grid; gap: 7px; padding: 16px 20px; border-top: 1px solid #e7edef; background: #f3faf7; }
.finance-task-completed-result > strong { color: #25805f; font-size: 11px; }
.finance-task-completed-result > small { color: #79928a; font-size: 8px; }
.finance-task-empty { display: grid; justify-items: center; gap: 7px; padding: 70px 20px; border: 1px dashed #cbd9df; border-radius: 12px; color: #78909b; background: #fff; }
.finance-task-empty b { color: #456775; font-size: 14px; }
.finance-task-empty p { margin: 0; font-size: 9px; }

.company-data-view { min-height: 100vh; color: #dff9ff; background: radial-gradient(circle at 48% 20%, rgba(18, 99, 101, .28), transparent 36%), radial-gradient(circle at 84% 68%, rgba(26, 70, 120, .2), transparent 35%), #03101c; }
.company-data-topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 88px; padding: 16px clamp(20px, 4vw, 64px); border-bottom: 1px solid rgba(100, 219, 205, .16); background: rgba(3, 16, 28, .9); backdrop-filter: blur(14px); }
.company-data-topbar small { color: #55ddbd; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.company-data-topbar h1 { margin: 5px 0 0; color: #f0ffff; font-size: 23px; }
.company-data-controls { display: flex; align-items: end; gap: 9px; }
.company-data-controls label { display: grid; gap: 5px; color: #79a5ad; font-size: 8px; }
.company-data-controls input { min-height: 36px; padding: 7px 10px; border: 1px solid rgba(112, 202, 198, .3); border-radius: 8px; color: #dff; background: rgba(9, 37, 51, .86); }
.company-data-controls button { min-height: 36px; border-color: rgba(92, 222, 193, .42); color: #d9fff4; background: rgba(27, 121, 101, .3); }
.company-data-workspace { width: min(1500px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 70px; }
.company-data-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.company-data-summary > article { display: grid; gap: 8px; min-height: 102px; padding: 15px; border: 1px solid rgba(100, 211, 202, .2); border-radius: 13px; background: linear-gradient(145deg, rgba(13, 45, 60, .9), rgba(5, 23, 36, .88)); box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.company-data-summary small { color: #6fa4ad; font-size: 8px; }
.company-data-summary b { color: #efffff; font-size: 19px; }
.company-data-summary b i { color: #7faab0; font-size: 9px; font-style: normal; font-weight: 500; }
.company-data-summary em { color: #4cd4b3; font-size: 8px; font-style: normal; }
.company-data-summary .warning b, .company-data-summary .warning em { color: #ff828a; }
.company-data-summary .income b { color: #61e3bc; }
.company-data-summary .expense b { color: #ff9299; }
.company-data-summary .balance b { color: #83dfff; }
.company-data-filter { display: grid; grid-template-columns: minmax(210px, 1fr) auto minmax(250px, 420px); align-items: center; gap: 18px; margin: 22px 0 13px; padding: 13px 15px; border: 1px solid rgba(80, 190, 190, .16); border-radius: 12px; background: rgba(6, 27, 42, .78); }
.company-data-filter-title { display: grid; gap: 4px; }
.company-data-filter b { color: #dffcff; font-size: 13px; }
.company-data-filter small { color: #6f9ba5; font-size: 8px; }
.company-data-filter input[type="search"] { width: 100%; min-height: 50px; padding: 8px 12px; border: 1px solid rgba(97, 203, 196, .25); border-radius: 9px; color: #dff; background: rgba(2, 16, 29, .8); }
.company-data-calendar { position: relative; justify-self: center; width: 242px; max-width: 100%; }
.company-data-calendar-toggle { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 7px 11px; border: 1px solid rgba(85, 224, 199, .38); border-radius: 9px; color: #e9ffff; background: linear-gradient(135deg, rgba(17, 91, 91, .5), rgba(6, 34, 49, .9)); box-shadow: 0 7px 18px rgba(0, 0, 0, .18); text-align: left; }
.company-data-calendar-toggle:hover, .company-data-calendar-toggle[aria-expanded="true"] { border-color: rgba(108, 241, 213, .8); box-shadow: 0 0 0 3px rgba(82, 224, 195, .1), 0 12px 28px rgba(0, 0, 0, .24); }
.company-data-calendar-toggle span { display: flex; align-items: center; gap: 9px; min-width: 0; }
.company-data-calendar-toggle span small { color: #63dfc1; font-size: 9px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.company-data-calendar-toggle span b { overflow: hidden; color: #dffcff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.company-data-calendar-toggle em { display: none; }
.company-data-calendar-toggle i { color: #69dac2; font-size: 13px; font-style: normal; }
.company-data-calendar-panel { position: absolute; z-index: 80; top: calc(100% + 10px); left: 50%; width: min(650px, 86vw); padding: 18px; border: 1px solid rgba(95, 229, 207, .42); border-radius: 16px; background: rgba(3, 22, 35, .98); box-shadow: 0 28px 70px rgba(0, 0, 0, .58); transform: translateX(-50%); }
.company-data-calendar-panel > header { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 10px; margin-bottom: 13px; }
.company-data-calendar-panel > header b { color: #e9ffff; font-size: 17px; text-align: center; }
.company-data-calendar-panel > header button { min-height: 36px; padding: 0; border-color: rgba(98, 206, 198, .28); color: #8ee5d2; background: rgba(10, 54, 68, .75); font-size: 22px; }
.company-data-calendar-week, .company-data-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.company-data-calendar-week { margin-bottom: 7px; color: #6f9ea7; font-size: 9px; text-align: center; }
.company-data-calendar-day { display: grid; align-content: space-between; gap: 5px; min-width: 0; min-height: 76px; padding: 8px; border: 1px solid rgba(92, 172, 177, .14); border-radius: 9px; color: #8aaeb4; background: rgba(7, 31, 45, .72); text-align: left; }
.company-data-calendar-day strong { color: #b8d5da; font-size: 12px; }
.company-data-calendar-day small { overflow: hidden; color: #718f98; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.company-data-calendar-day em { color: #5e9f99; font-size: 7px; font-style: normal; }
.company-data-calendar-day.has-data { border-color: rgba(75, 211, 183, .38); background: linear-gradient(145deg, rgba(20, 91, 84, .62), rgba(7, 40, 52, .86)); }
.company-data-calendar-day.has-data small { color: #7ef0ce; font-weight: 800; }
.company-data-calendar-day.selected { border-color: #70f1d4; box-shadow: 0 0 0 3px rgba(87, 231, 201, .12); }
.company-data-calendar-day.today strong::after { content: " 今"; color: #ffce72; font-size: 7px; }
.company-data-calendar-day.future { opacity: .34; cursor: not-allowed; }
.company-data-calendar-blank { min-height: 76px; }
.company-data-calendar-panel > p { margin: 13px 0 0; color: #6f969e; font-size: 8px; text-align: center; }
.company-data-company-list { min-width: 0; min-height: 500px; overflow: hidden; border: 1px solid rgba(91, 197, 195, .18); border-radius: 17px; background: radial-gradient(circle at 20% 18%, rgba(83, 218, 202, .08), transparent 28%), rgba(3, 17, 29, .88); box-shadow: inset 0 0 80px rgba(0, 0, 0, .22); }
.company-data-company-list-scroll { max-height: 720px; overflow: auto; }
.company-data-company-list-table { width: 100%; min-width: 1120px; border-collapse: separate; border-spacing: 0; color: #cde8eb; font-size: 9px; }
.company-data-company-list-table th { position: sticky; z-index: 3; top: 0; padding: 13px 12px; border-bottom: 1px solid rgba(98, 206, 198, .25); color: #7fadb4; background: #082334; font-weight: 700; text-align: left; white-space: nowrap; }
.company-data-company-list-table td { padding: 13px 12px; border-bottom: 1px solid rgba(91, 171, 174, .1); color: #bcdade; vertical-align: middle; }
.company-data-company-list-table tbody tr { cursor: pointer; outline: none; transition: background-color .16s ease, box-shadow .16s ease; }
.company-data-company-list-table tbody tr:hover, .company-data-company-list-table tbody tr:focus, .company-data-company-list-table tbody tr.active { background: rgba(29, 101, 102, .3); box-shadow: inset 3px 0 #70e9cf; }
.company-data-company-list-table tbody tr.missing { background-color: rgba(84, 30, 39, .06); }
.company-data-company-list-table tbody tr.missing:hover, .company-data-company-list-table tbody tr.missing:focus, .company-data-company-list-table tbody tr.missing.active { background-color: rgba(99, 43, 49, .24); }
.company-data-company-index { width: 38px; color: #638d95 !important; text-align: center; }
.company-data-company-short { display: inline-grid; min-width: 62px; min-height: 28px; place-items: center; padding: 3px 9px; border: 1px solid rgba(95, 222, 201, .22); border-radius: 999px; color: #78ead0; background: rgba(25, 104, 91, .22); font-weight: 800; white-space: nowrap; }
.company-data-company-name { min-width: 180px; }
.company-data-company-name strong { color: #e7fcff; font-size: 10px; line-height: 1.45; }
.company-data-company-amount { min-width: 126px; color: #d9f3f5 !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.company-data-company-amount.income { color: #66dab9 !important; }
.company-data-company-amount span, .company-data-company-amount small { display: block; }
.company-data-company-amount small { margin-top: 3px; color: #638d95; font-size: 7px; }
.company-data-company-status { display: inline-block; padding: 4px 8px; border-radius: 999px; color: #59dfbc; background: rgba(34, 156, 125, .16); font-size: 7px; font-style: normal; white-space: nowrap; }
.company-data-company-list-table tr.missing .company-data-company-status { color: #ff8b92; background: rgba(177, 45, 54, .18); }
.company-data-company-open { display: inline-flex; align-items: center; min-height: 27px; padding: 3px 9px; border: 1px solid rgba(91, 218, 197, .28); border-radius: 999px; color: #75e6cf; background: rgba(22, 98, 88, .2); font-size: 8px; font-weight: 800; white-space: nowrap; }
.company-data-company-view { min-height: 100vh; }
.company-data-company-topbar .module-navline { margin-bottom: 7px; }
.company-data-company-workspace { width: min(1640px, calc(100% - 48px)); }
.company-data-company-detail { min-height: 560px; overflow: hidden; border: 1px solid rgba(98, 205, 198, .24); border-radius: 18px; background: radial-gradient(circle at 90% 0, rgba(55, 174, 159, .12), transparent 30%), rgba(4, 22, 34, .94); box-shadow: 0 22px 60px rgba(0, 0, 0, .28); }
.company-data-company-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-bottom: 1px solid rgba(103, 211, 200, .16); background: linear-gradient(135deg, rgba(19, 74, 78, .58), rgba(7, 35, 50, .18)); }
.company-data-company-heading small { color: #5ad5b6; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.company-data-company-heading h2 { margin: 7px 0; color: #efffff; font-size: 24px; }
.company-data-company-heading p { margin: 0; color: #83abb1; font-size: 9px; }
.company-data-company-heading > span { padding: 6px 12px; border-radius: 999px; color: #68e2c1; background: rgba(40, 166, 132, .18); font-size: 9px; font-weight: 800; white-space: nowrap; }
.company-data-company-heading > span.missing { color: #ff9aa0; background: rgba(177, 45, 54, .2); }
.company-data-company-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 11px; padding: 20px 24px; border-bottom: 1px solid rgba(92, 185, 183, .12); }
.company-data-company-metrics article { display: grid; align-content: center; gap: 7px; min-height: 102px; padding: 15px; border: 1px solid rgba(85, 171, 171, .16); border-radius: 11px; background: rgba(2, 18, 30, .62); }
.company-data-company-metrics small { color: #7199a2; font-size: 8px; }
.company-data-company-metrics b { color: #e2fbff; font-size: 15px; font-variant-numeric: tabular-nums; }
.company-data-company-metrics em { color: #679099; font-size: 7px; font-style: normal; }
.company-data-company-metrics .income b { color: #5de0b8; }
.company-data-company-metrics .expense b { color: #ff9297; }
.company-data-company-metrics .balance b { color: #83dfff; }
.company-data-company-accounts { padding: 0 24px 24px; }
.company-data-company-accounts > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 0 13px; }
.company-data-company-accounts h3 { margin: 0 0 5px; color: #e6fdff; font-size: 16px; }
.company-data-company-accounts p { margin: 0; color: #739da5; font-size: 8px; }
.company-data-company-accounts > header > b { color: #62ddc1; font-size: 10px; }
.company-data-company-detail .company-data-account-table { max-height: none; overflow: auto; padding: 0; border: 1px solid rgba(88, 181, 181, .14); border-radius: 11px; }
.company-data-company-detail .company-data-account-table table { min-width: 1180px; font-size: 9px; }
.company-data-company-detail .company-data-account-table th { padding: 12px 10px; }
.company-data-company-detail .company-data-account-table td { padding: 10px; }
.company-data-account-table { max-height: 435px; overflow: auto; padding: 0 13px 15px; }
.company-data-account-table table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 8px; }
.company-data-account-table th { position: sticky; top: 0; padding: 8px; color: #76a7ae; background: #092334; text-align: left; }
.company-data-account-table td { padding: 9px 8px; border-top: 1px solid rgba(109, 188, 191, .1); color: #c5e2e6; vertical-align: top; }
.company-data-account-table td em { display: block; margin-top: 3px; color: #ff858d; font-size: 7px; font-style: normal; }
.company-data-account-table tr.unbalanced { background: rgba(170, 41, 52, .08); }
.company-data-missing { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 350px; padding: 30px; text-align: center; }
.company-data-missing b { color: #ff9298; font-size: 14px; }
.company-data-missing p { margin: 0; color: #789ca4; font-size: 9px; }
.company-data-daily-modal { position: fixed; z-index: 180; inset: 0; display: grid; place-items: center; padding: 28px; }
.company-data-daily-modal[hidden] { display: none; }
.company-data-daily-backdrop { position: absolute; inset: 0; background: rgba(0, 7, 14, .82); backdrop-filter: blur(7px); }
.company-data-daily-dialog { position: relative; display: grid; grid-template-rows: auto auto minmax(0, 1fr); width: min(1540px, 96vw); max-height: 92vh; overflow: hidden; border: 1px solid rgba(99, 226, 205, .38); border-radius: 18px; background: #061b29; box-shadow: 0 30px 90px rgba(0, 0, 0, .62); }
.company-data-daily-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid rgba(93, 199, 194, .18); background: linear-gradient(135deg, rgba(21, 83, 84, .48), rgba(5, 30, 44, .94)); }
.company-data-daily-dialog > header small { color: #57d9b8; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.company-data-daily-dialog > header h2 { margin: 5px 0; color: #f2ffff; font-size: 21px; }
.company-data-daily-dialog > header p { margin: 0; color: #83a9af; font-size: 9px; }
.company-data-daily-dialog > header button { border-color: rgba(102, 207, 199, .3); color: #d9ffff; background: rgba(9, 48, 62, .82); }
.company-data-daily-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 20px; border-bottom: 1px solid rgba(93, 199, 194, .12); }
.company-data-daily-summary span { display: grid; gap: 5px; padding: 10px 13px; border: 1px solid rgba(84, 185, 181, .14); border-radius: 9px; background: rgba(2, 16, 27, .62); }
.company-data-daily-summary small { color: #729ca4; font-size: 8px; }
.company-data-daily-summary b { color: #e3fdff; font-size: 13px; }
.company-data-daily-summary b.income { color: #62dfb9; }
.company-data-daily-summary b.expense { color: #ff8e95; }
.company-data-daily-table { overflow: auto; padding: 0 20px 20px; }
.company-data-daily-table table { width: 100%; min-width: 1250px; border-collapse: separate; border-spacing: 0; color: #c7e2e5; font-size: 9px; }
.company-data-daily-table th { position: sticky; z-index: 2; top: 0; padding: 12px 10px; border-bottom: 1px solid rgba(102, 209, 202, .25); color: #80b4ba; background: #092638; text-align: left; }
.company-data-daily-table td { padding: 10px; border-bottom: 1px solid rgba(91, 171, 174, .1); vertical-align: top; }
.company-data-daily-table tbody tr:hover { background: rgba(47, 130, 128, .08); }
.company-data-annotation-cell { padding: 4px !important; }
.company-data-annotation-cell > button { display: grid; gap: 4px; width: 100%; min-height: 56px; padding: 7px 8px; border: 1px solid transparent; border-radius: 7px; color: #d5eef0; background: rgba(5, 25, 37, .7); text-align: left; }
.company-data-annotation-cell > button:hover { border-color: rgba(255, 211, 90, .55); }
.company-data-annotation-cell > button b { font-size: 9px; }
.company-data-annotation-cell > button small { color: #5f858d; font-size: 7px; }
.company-data-annotation-cell > button em { color: #4b3b06; font-size: 8px; font-style: normal; line-height: 1.45; }
.company-data-annotation-cell > button i { color: #ff9aa0; font-size: 7px; font-style: normal; line-height: 1.4; }
.company-data-annotation-cell.has-annotation > button { border-color: #e9bd3f; color: #372a00; background: #ffd95f; box-shadow: inset 0 0 0 1px rgba(255, 247, 187, .5); }
.company-data-annotation-cell.has-annotation > button small { color: #66500d; }

@media (max-width: 980px) {
  .finance-daily-report-company-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-data-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .company-data-filter { grid-template-columns: 1fr auto; }
  .company-data-filter input[type="search"] { grid-column: 1 / -1; }
  .finance-task-desk-layout { grid-template-columns: 1fr; }
  .finance-company-list { position: static; display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 3px; }
  .finance-company-list-item { min-width: 190px; }
  .finance-company-task-header { align-items: flex-start; flex-direction: column; }
  .finance-company-task-header > div:last-child { flex-wrap: wrap; justify-content: flex-start; }
  .finance-project-summary, .finance-task-data-grid { grid-template-columns: repeat(2, 1fr); }
  .finance-invoice-fields > div { grid-template-columns: repeat(2, 1fr); }
  .finance-task-submit-row { grid-template-columns: 1fr; }
  .flow-work-columns { grid-template-columns: 1fr; }
  .flow-dispatch-item { grid-template-columns: 1fr auto; }
  .flow-dispatch-tasks { grid-column: 1 / -1; grid-row: 2; }
  .flow-task-item { align-items: flex-start; flex-direction: column; }
  .flow-task-completion { grid-template-columns: 1fr auto; min-width: 100%; }
  .flow-task-completion textarea { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .finance-daily-report-form { grid-template-columns: 1fr; }
  .finance-daily-report-company-status { grid-template-columns: 1fr; }
  .company-data-topbar { align-items: flex-start; flex-direction: column; }
  .company-data-controls { width: 100%; }
  .company-data-controls label { flex: 1; }
  .company-data-controls input { width: 100%; }
  .company-data-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-data-workspace { width: calc(100% - 24px); padding-top: 16px; }
  .company-data-company-heading { align-items: flex-start; flex-direction: column; padding: 20px; }
  .company-data-company-metrics, .company-data-company-accounts { padding-right: 14px; padding-left: 14px; }
  .company-data-filter { grid-template-columns: 1fr; align-items: stretch; }
  .company-data-filter input[type="search"] { grid-column: auto; width: 100%; }
  .company-data-calendar { justify-self: stretch; width: 100%; }
  .company-data-calendar-panel { position: fixed; top: 50%; left: 50%; width: calc(100vw - 24px); max-height: 86vh; overflow: auto; transform: translate(-50%, -50%); }
  .company-data-calendar-day { min-height: 65px; padding: 6px; }
  .company-data-calendar-day em { display: none; }
  .company-data-daily-modal { padding: 10px; }
  .company-data-daily-summary { grid-template-columns: repeat(2, 1fr); }
  .finance-workspace-header { padding: 30px 105px 30px 18px; }
  .finance-workspace-main { padding-right: 14px; padding-left: 14px; }
  .finance-task-overview { grid-template-columns: 1fr; }
  .finance-project-summary, .finance-task-data-grid, .finance-invoice-fields > div { grid-template-columns: 1fr; }
  .finance-invoice-fields label.wide { grid-column: auto; }
  .company-info-update-section { margin: 14px 12px 0; }
  .company-info-update-body { grid-template-columns: 1fr; }
  .company-info-update-action + .company-info-update-action { border-left: 0; border-top: 1px solid rgba(92, 201, 245, .11); }
  .company-info-update-item { grid-template-columns: 1fr; }
  .company-info-update-actions { justify-content: flex-start; }
  .auth-gate { padding: 18px; }
  .auth-shell { grid-template-columns: 1fr; width: min(470px, 96vw); }
  .auth-brand-panel { display: none; }
  .login-card { min-height: 560px; padding: 44px 34px; }
  .register-card { padding-top: 28px; padding-bottom: 28px; }
  .user-center-button { right: 102px; }
  .user-center-button span { display: none; }
  .flow-notification-button { right: 220px; }
  .finance-workspace-button { left: 12px; right: auto; }
  .flow-notification-button { font-size: 0; }
  .flow-notification-button::before { content: "通知"; font-size: 12px; }
  .review-notification { right: 10px; min-width: 0; width: calc(100vw - 20px); }
  .flow-dispatch-item { grid-template-columns: 1fr; }
  .flow-dispatch-tasks { grid-column: auto; grid-row: auto; }
  .flow-dispatch-item > .dispatch { justify-self: stretch; }
  .personal-password-grid { grid-template-columns: 1fr; }
  .admin-user-item { grid-template-columns: 60px minmax(0, 1fr); }
  .admin-user-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
.flow-list-search { display:flex; align-items:center; gap:8px; margin:12px 0; padding:8px 12px; border:1px solid rgba(104,170,204,.28); border-radius:10px; background:rgba(5,25,42,.56); color:#77bddb; }
.flow-list-search input { flex:1; min-width:0; border:0; outline:0; background:transparent; color:#e8f7ff; font:inherit; }
.flow-list-search input::placeholder { color:#6f8da0; }
.pending-dispatch-edit form { display: grid; gap: 8px; min-width: 230px; padding: 10px; background: #f3f8fa; color: #23475a; }
.pending-dispatch-edit label { display: grid; gap: 4px; }
.pending-dispatch-edit input { background: white; color: #23475a; border: 1px solid #9bbdcb; padding: 6px; }
.pending-dispatch-edit summary { cursor: pointer; color: #17678c; }
