/* ============================================================
 * 友逸付 · 财务中心（独立子系统）
 * 与协同平台主应用视觉区分：深色侧栏 + 墨绿主色 + 数据密集型表格
 * ============================================================ */

:root {
  --ink: #0b1322;
  --ink-2: #111c2f;
  --ink-3: #17253c;
  --acc: #0f766e;
  --acc-2: #14b8a6;
  --acc-soft: #ecfdf9;
  --inc: #15803d;
  --inc-soft: #f0fdf4;
  --exp: #be123c;
  --exp-soft: #fff1f2;
  --txt: #0f172a;
  --txt-2: #475569;
  --muted: #94a3b8;
  --line: #e6ebf3;
  --line-2: #f1f5f9;
  --bg: #f4f6fa;
  --card: #ffffff;
  --r: 12px;
  --side-w: 238px;
  --mono: "SF Mono", "DIN Alternate", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------------- 布局 ---------------- */
.fin-shell { display: flex; min-height: 100vh; }

.fin-side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w);
  background: linear-gradient(180deg, #0b1322 0%, #0d1728 55%, #0a1220 100%);
  display: flex; flex-direction: column; z-index: 40;
  border-right: 1px solid rgba(255,255,255,.04);
}
.fin-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 20px 20px 18px;
}
.fin-brand .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 34px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #04211d; font-size: 16px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(20,184,166,.28);
}
.fin-brand .bt { line-height: 1.25; min-width: 0; }
.fin-brand .bt b { display: block; color: #f1f5f9; font-size: 14.5px; letter-spacing: .04em; }
.fin-brand .bt span { display: block; color: #5f7d96; font-size: 9.5px; letter-spacing: .18em; margin-top: 2px; }

.fin-nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.fin-nav::-webkit-scrollbar { width: 0; }
.fin-nav .grp {
  font-size: 10px; letter-spacing: .14em; color: #445c75;
  padding: 16px 10px 7px; font-weight: 600;
}
.fin-nav a {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 8px; margin-bottom: 2px;
  color: #9db0c6; font-size: 13px; transition: all .16s;
}
.fin-nav a svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: .85; }
.fin-nav a:hover { background: rgba(255,255,255,.04); color: #e2e8f0; }
.fin-nav a.on {
  background: linear-gradient(90deg, rgba(20,184,166,.16), rgba(20,184,166,.04));
  color: #fff;
}
.fin-nav a.on svg { color: var(--acc-2); opacity: 1; }
.fin-nav a.on::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--acc-2);
}
.fin-nav a .badge-n {
  margin-left: auto; font-size: 10.5px; font-weight: 600;
  background: rgba(20,184,166,.2); color: #5eead4;
  padding: 1px 6px; border-radius: 20px; font-variant-numeric: tabular-nums;
}

.fin-side-foot {
  padding: 14px 16px 16px; border-top: 1px solid rgba(255,255,255,.06);
}
.fin-back {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  color: #8ea4bc; font-size: 12.5px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  transition: all .16s;
}
.fin-back:hover { color: #fff; background: rgba(255,255,255,.07); }
.fin-back svg { width: 14px; height: 14px; }
.fin-side-foot .ver { font-size: 10px; color: #3d5468; margin-top: 10px; text-align: center; letter-spacing: .05em; }

.fin-main { flex: 1; margin-left: var(--side-w); min-width: 0; display: flex; flex-direction: column; }

.fin-top {
  height: 60px; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px; position: sticky; top: 0; z-index: 30;
}
.fin-crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.fin-crumb b { color: var(--txt); font-weight: 600; font-size: 13.5px; }
.fin-crumb .sep { color: #cbd5e1; }
.fin-top .grow { flex: 1; }

.period {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 9px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--txt-2);
}
.period svg { width: 14px; height: 14px; color: var(--muted); }
.period select {
  border: 0; outline: none; background: transparent; font-size: 12.5px;
  color: var(--txt); cursor: pointer; font-variant-numeric: tabular-nums;
}

.fin-user { display: flex; align-items: center; gap: 8px; padding-left: 4px; }
.fin-user .av {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  color: #fff; font-size: 11.5px; font-weight: 600; flex: 0 0 30px;
}
.fin-user .um { line-height: 1.25; }
.fin-user .um b { display: block; font-size: 12.5px; font-weight: 600; }
.fin-user .um span { font-size: 10.5px; color: var(--muted); }

.fin-content { padding: 20px 24px 48px; max-width: 1680px; width: 100%; }

/* ---------------- 页头 ---------------- */
.fin-page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.fin-page-head h1 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.fin-page-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.fin-page-head .acts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------------- 按钮 ---------------- */
.fbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--txt-2);
  font-size: 12.5px; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.fbtn:hover { border-color: #cbd5e1; color: var(--txt); background: #fbfcfe; }
.fbtn svg { width: 14px; height: 14px; }
.fbtn.primary { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: 0 2px 8px rgba(15,118,110,.22); }
.fbtn.primary:hover { background: #0d6b63; border-color: #0d6b63; }
.fbtn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.fbtn.sm { height: 27px; padding: 0 9px; font-size: 11.5px; }
.fbtn.ghost { background: transparent; border-color: transparent; color: var(--txt-2); }
.fbtn.ghost:hover { background: #f1f5f9; }
.fbtn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------- 卡片 ---------------- */
.fcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.fcard-h {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 16px 0;
}
.fcard-h h3 { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: .01em; }
.fcard-h .sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.fcard-h .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.fcard-b { padding: 14px 16px 16px; }

/* ---------------- KPI ---------------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px 16px 14px; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--k, var(--acc));
}
.kpi .kh { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--txt-2); }
.kpi .kh .ico {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--k, var(--acc)) 10%, #fff);
  color: var(--k, var(--acc)); margin-left: auto;
}
.kpi .kh .ico svg { width: 13px; height: 13px; }
.kpi .kv { font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin: 9px 0 0; line-height: 1.1; }
.kpi .kv small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.kpi .kf { font-size: 11.5px; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.kpi .up { color: var(--inc); font-weight: 600; }
.kpi .down { color: var(--exp); font-weight: 600; }

/* ---------------- 网格 ---------------- */
.fgrid { display: grid; gap: 14px; margin-top: 14px; }
.fg-2 { grid-template-columns: 2fr 1fr; }
.fg-1-1 { grid-template-columns: 1fr 1fr; }
.fg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------------- 表格 ---------------- */
.ftable-wrap { overflow-x: auto; }
table.ftbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.8px; }
table.ftbl thead th {
  background: #f8fafc; color: #64748b; font-weight: 600; font-size: 11px;
  letter-spacing: .04em; text-align: left; padding: 9px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
table.ftbl thead th.r, table.ftbl td.r { text-align: right; }
table.ftbl tbody td {
  padding: 10px 12px; border-bottom: 1px solid var(--line-2);
  color: var(--txt); vertical-align: middle;
}
table.ftbl tbody tr:last-child td { border-bottom: 0; }
table.ftbl tbody tr:hover td { background: #fbfdff; }
table.ftbl tbody tr.click { cursor: pointer; }
table.ftbl .m { color: var(--txt-2); }
table.ftbl .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
table.ftbl tfoot td {
  padding: 10px 12px; background: #f8fafc; font-weight: 600;
  border-top: 1px solid var(--line); font-size: 12.5px;
}
.inc { color: var(--inc); }
.exp { color: var(--exp); }
.zero { color: #cbd5e1; }

/* ---------------- 标签 ---------------- */
.fbadge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 7px; border-radius: 5px;
  font-size: 10.8px; font-weight: 500; white-space: nowrap;
  background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0;
}
.fbadge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.fbadge.green { background: #f0fdf4; color: #15803d; border-color: #dcfce7; }
.fbadge.red { background: #fff1f2; color: #be123c; border-color: #ffe4e6; }
.fbadge.amber { background: #fffbeb; color: #b45309; border-color: #fef3c7; }
.fbadge.blue { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.fbadge.teal { background: #f0fdfa; color: #0f766e; border-color: #ccfbf1; }
.fbadge.gray { background: #f8fafc; color: #64748b; border-color: #eef2f7; }

/* ---------------- 页签 ---------------- */
.ftabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 4px; }
.ftabs button {
  position: relative; border: 0; background: transparent; cursor: pointer;
  padding: 11px 14px; font-size: 12.8px; color: var(--txt-2); font-weight: 500;
}
.ftabs button:hover { color: var(--txt); }
.ftabs button.on { color: var(--acc); font-weight: 600; }
.ftabs button.on::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; background: var(--acc); border-radius: 2px;
}
.ftabs .count { font-size: 10.5px; color: var(--muted); margin-left: 4px; }

/* ---------------- 工具条 ---------------- */
.ftoolbar { display: flex; align-items: center; gap: 9px; padding: 11px 14px; flex-wrap: wrap; }
.ffield {
  display: inline-flex; align-items: center; gap: 6px; height: 31px;
  padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.ffield svg { width: 13px; height: 13px; color: var(--muted); flex: 0 0 13px; }
.ffield input, .ffield select {
  border: 0; outline: none; background: transparent; font-size: 12.5px;
  color: var(--txt); width: 150px; font-family: inherit;
}
.ffield select { cursor: pointer; width: auto; max-width: 170px; }
.ffield input::placeholder { color: #b6c2d2; }

/* ---------------- 图表 ---------------- */
.fchart { width: 100%; display: block; }
.fchart .gl { stroke: #eef2f7; stroke-width: 1; }
.fchart .ax { font-size: 9.5px; fill: #94a3b8; font-variant-numeric: tabular-nums; }

.legend { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--txt-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 7px; height: 7px; border-radius: 2px; }

/* ---------------- 进度 / 条形 ---------------- */
.ftrack { height: 6px; border-radius: 6px; background: #f1f5f9; overflow: hidden; }
.ftrack i { display: block; height: 100%; border-radius: 6px; }

.hbar { display: flex; flex-direction: column; gap: 12px; }
.hbar .row .top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.hbar .row .nm { font-size: 12.3px; color: #334155; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .row .vl { font-size: 12px; font-weight: 600; color: var(--txt); }
.hbar .row .pc { font-size: 10.5px; color: var(--muted); width: 34px; text-align: right; }

/* ---------------- 迷你账户行 ---------------- */
.acct-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 0;
  border-bottom: 1px dashed var(--line-2);
}
.acct-row:last-child { border-bottom: 0; }
.acct-row .ico {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  flex: 0 0 32px; font-size: 11px; font-weight: 700;
}
.acct-row .ico svg { width: 15px; height: 15px; }
.acct-row .nm { flex: 1; min-width: 0; }
.acct-row .nm b { display: block; font-size: 12.5px; font-weight: 500; }
.acct-row .nm span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.acct-row .vl { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------- 空态 ---------------- */
.fempty { padding: 42px 20px; text-align: center; color: var(--muted); }
.fempty svg { width: 30px; height: 30px; color: #cbd5e1; margin-bottom: 8px; }
.fempty b { display: block; color: var(--txt-2); font-size: 13px; font-weight: 500; }

/* ---------------- 提示条 ---------------- */
.fhint {
  display: flex; gap: 9px; padding: 11px 13px; border-radius: 9px;
  background: #f6f9fc; border: 1px solid #e8eef6; font-size: 12px; color: #475569; line-height: 1.6;
}
.fhint svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; color: #64748b; }
.fhint.warn { background: #fffbeb; border-color: #fef3c7; color: #92400e; }
.fhint.warn svg { color: #b45309; }
.fhint.teal { background: var(--acc-soft); border-color: #ccfbf1; color: #115e59; }
.fhint.teal svg { color: var(--acc); }

/* ---------------- 弹窗 ---------------- */
.fmask {
  position: fixed; inset: 0; background: rgba(9,17,30,.42);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 24px; z-index: 100; animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } }
.fmodal {
  width: 100%; max-width: 520px; background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(9,17,30,.24); overflow: hidden;
  animation: pop .18s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: 0; } }
.fmodal.wide { max-width: 720px; }
.fmodal-h { display: flex; align-items: flex-start; gap: 10px; padding: 17px 18px 0; }
.fmodal-h h3 { margin: 0; font-size: 15px; font-weight: 650; }
.fmodal-h .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.fmodal-h .x {
  margin-left: auto; border: 0; background: transparent; cursor: pointer; color: #94a3b8;
  padding: 2px; border-radius: 6px; display: grid; place-items: center;
}
.fmodal-h .x:hover { background: #f1f5f9; color: #475569; }
.fmodal-b { padding: 16px 18px 6px; max-height: 66vh; overflow-y: auto; }
.fmodal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px 17px; }

.fgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg-full { grid-column: 1 / -1; }
.fg label { display: block; font-size: 11.8px; color: #475569; margin-bottom: 5px; font-weight: 500; }
.fg label .req { color: #dc2626; margin-left: 2px; }
.fg .inp, .fg .sel, .fg .txa {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; font-family: inherit; color: var(--txt);
  outline: none; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.fg .inp:focus, .fg .sel:focus, .fg .txa:focus {
  border-color: var(--acc); box-shadow: 0 0 0 3px rgba(15,118,110,.1);
}
.fg .inp.err { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.08); }
.fg .txa { min-height: 62px; resize: vertical; }
.fg .hint { display: block; font-size: 10.8px; color: var(--muted); margin-top: 4px; }

/* ---------------- Toast ---------------- */
.ftoast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.ftoast {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  background: #0f172a; color: #fff; border-radius: 9px; font-size: 12.5px;
  box-shadow: 0 10px 28px rgba(9,17,30,.28);
}
.ftoast svg { width: 14px; height: 14px; color: #5eead4; }
.ftoast.err svg { color: #fda4af; }

/* ---------------- 明细账头 ---------------- */
.ldg-head {
  display: flex; align-items: flex-start; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; margin-bottom: 14px;
}
.ldg-head .tt h2 { margin: 0; font-size: 18px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.ldg-head .tt .meta { font-size: 11.8px; color: var(--muted); margin-top: 5px; display: flex; gap: 14px; flex-wrap: wrap; }
.ldg-head .bal { margin-left: auto; text-align: right; }
.ldg-head .bal span { font-size: 11px; color: var(--muted); }
.ldg-head .bal b { display: block; font-size: 25px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------------- 权限页 ---------------- */
.pm-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.pm-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fbfcfe; }
.pm-item .t { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.pm-item .t svg { width: 14px; height: 14px; color: var(--acc); }
.pm-item p { margin: 0; font-size: 11.8px; color: #64748b; line-height: 1.65; }

.urow { display: flex; align-items: center; gap: 11px; padding: 11px 4px; border-bottom: 1px solid var(--line-2); }
.urow:last-child { border-bottom: 0; }
.urow .av { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 11.5px; font-weight: 600; flex: 0 0 32px; }
.urow .nm { min-width: 0; flex: 1; }
.urow .nm b { display: block; font-size: 12.8px; font-weight: 500; }
.urow .nm span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ---------------- 锁屏 ---------------- */
.lock-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 500px at 50% -10%, #12233a, #0b1322);
}
.lock-card {
  width: 100%; max-width: 430px; background: #fff; border-radius: 16px;
  padding: 34px 32px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.lock-card .ico {
  width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 16px;
  background: #fff1f2; color: #be123c; display: grid; place-items: center;
}
.lock-card .ico svg { width: 24px; height: 24px; }
.lock-card h2 { margin: 0 0 8px; font-size: 18px; }
.lock-card p { margin: 0; font-size: 13px; color: #64748b; line-height: 1.75; }
.lock-card .btns { margin-top: 22px; display: flex; gap: 10px; justify-content: center; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1240px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fg-2, .fg-1-1 { grid-template-columns: 1fr; }
  .pm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  :root { --side-w: 212px; }
  .fin-content { padding: 16px; }
  .fin-top { padding: 0 16px; }
  .fg-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .fin-side { transform: translateX(-100%); transition: transform .22s; }
  .fin-side.open { transform: none; }
  .fin-main { margin-left: 0; }
  .kpis { grid-template-columns: 1fr; }
  .fin-page-head { flex-wrap: wrap; }
  .fin-page-head .acts { margin-left: 0; width: 100%; }
  .fin-user .um { display: none; }
  .fin-crumb span:first-child, .fin-crumb .sep { display: none; }
  .fgrid2 { grid-template-columns: 1fr; }
  .fin-content { padding: 14px 12px 40px; }
}
.menu-toggle { display: none !important; }
@media (max-width: 760px) { .menu-toggle { display: grid !important; } }

/* ---------- 财务系统首屏加载 ---------- */
.fin-boot {
  position: fixed; inset: 0; z-index: 9999;
  background: #0f1520;
  display: grid; place-items: center;
}
.fin-boot .boot-inner { text-align: center; padding: 0 24px; }
.fin-boot .boot-logo {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px;
  background: linear-gradient(135deg, #0f766e, #115e59);
  color: #fff; font-size: 22px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(15, 118, 110, .35);
  animation: finBootPulse 1.8s ease-in-out infinite;
}
.fin-boot .boot-logo.err { background: #be123c; animation: none; }
.fin-boot .boot-txt { font-size: 13px; color: #94a3b8; line-height: 1.65; max-width: 340px; }
.fin-boot .boot-retry {
  margin-top: 15px; height: 34px; padding: 0 16px;
  border-radius: 8px; border: 1px solid #2b3648; background: #1a2331;
  color: #cbd5e1; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
@keyframes finBootPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.93); opacity: .8; }
}
