/* Finance demo layout retained from the original Finance source. */

    #hero {
      position: relative;
      width: 100%;
      height: 100svh;
      min-height: 640px;
      overflow: hidden;
      display: flex;
      align-items: center;
    }
    #capabilities {
      padding: calc(var(--pad-y) * 0.8) 0;
      position: relative;
    }
    #capabilities .section-inner {
      display: flex;
      flex-direction: column;
    }
    .cap-top { margin-bottom: 36px; }
    .cap-header {
      font-family: var(--sans);
      font-weight: 700;
      font-size: clamp(22px, 2.4vw, 30px);
      letter-spacing: -0.025em;
      line-height: 1.2;
      color: var(--text);
    }
    #capabilities .sys { max-width: 100%; margin-top: 34px; }
    #capabilities .cap-top { margin-bottom: 0; }
    @media (max-width: 960px) {
      #capabilities .sys-body { height: auto; }
    }
    .cap-hint {
      font-family: var(--sans);
      font-size: 13px;
      color: var(--text-muted);
      margin-top: 14px;
    }
    .cap-sub {
      font-family: var(--sans);
      font-size: 16px;
      color: var(--text-secondary);
      line-height: 1.65;
      max-width: 74ch;
      margin-top: 18px;
    }
    .cap-step:hover,
    .cap-step-num {
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.16em;
      color: var(--text-faint);
      padding-top: 4px;
      transition: color 0.3s ease;
      font-feature-settings: "tnum" 1;
    }
    .cap-step-body { display: flex; flex-direction: column; gap: 8px; }
    .cap-step-title {
      font-family: var(--sans);
      font-weight: 600;
      font-size: 15px;
      color: var(--text);
      letter-spacing: -0.01em;
    }
    .cap-step-desc {
      font-family: var(--sans);
      font-weight: 400;
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.6;
      opacity: 0;
      max-height: 0;
      overflow: hidden;
      transition: opacity 0.4s ease, max-height 0.4s ease;
      padding-top: 0;
    }
    #modules .mod-head { margin-bottom: 26px; max-width: 60ch; }
    .mod-head h2 {
      font-family: var(--sans);
      font-weight: 700;
      font-size: clamp(22px, 2.4vw, 30px);
      letter-spacing: -0.025em;
      line-height: 1.2;
    }
    .mod-cols {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      align-items: stretch;
    }
    .mod-cockpit-side {
      background: transparent;
      padding: clamp(28px, 4vw, 72px) clamp(16px, 2vw, 40px) clamp(28px, 4vw, 72px) clamp(16px, 3vw, 72px);
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 0;
    }
    .mod-text-side {
      background: transparent;
      padding: clamp(28px, 4vw, 72px) clamp(16px, 3vw, 72px) clamp(28px, 4vw, 72px) clamp(16px, 2vw, 40px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-width: 0;
    }
    .mod-cols {
      min-height: clamp(560px, 62vw, 720px);
    }
    .mod-stepper { display: flex; flex-direction: column; }
    .mod-step {
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 10px;
      padding: 13px 14px 13px 0;
      border-top: 1px solid var(--border);
      cursor: pointer;
      position: relative;
      transition: padding-left .4s cubic-bezier(.16,1,.3,1);
    }
    .mod-stepper .mod-step:last-child { border-bottom: 1px solid var(--border); }
    .mod-step::before {
      content: '';
      position: absolute;
      left: 0; top: -1px; bottom: 0;
      width: 2px;
      background: linear-gradient(180deg, var(--accent), var(--teal));
      transform: scaleY(0);
      transform-origin: center;
      transition: transform .5s cubic-bezier(.16,1,.3,1);
    }
    .mod-step.active { padding-left: 14px; }
    .mod-step.active::before { transform: scaleY(1); }
    .mod-step:hover .mod-step-title { color: var(--text); }
    .mod-step-num {
      font-family: var(--mono);
      font-size: 10.5px;
      letter-spacing: .12em;
      color: var(--text-faint);
      padding-top: 2px;
      transition: color .35s ease;
    }
    .mod-step.active .mod-step-num { color: var(--accent); }
    .mod-step-body { display: flex; flex-direction: column; min-width: 0; }
    .mod-step-title {
      font-family: var(--sans);
      font-weight: 600;
      font-size: 15px;
      letter-spacing: -0.012em;
      line-height: 1.32;
      color: var(--text-muted);
      transition: color .35s ease, font-weight .35s ease;
    }
    .mod-step.active .mod-step-title { color: var(--text); font-weight: 700; }
    .mod-step-desc {
      font-family: var(--sans);
      font-size: 13.5px;
      line-height: 1.52;
      color: var(--text-muted);
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height .5s cubic-bezier(.16,1,.3,1), opacity .4s ease, margin-top .4s ease;
    }
    .mod-step.active .mod-step-desc { max-height: 80px; opacity: 1; margin-top: 5px; }
    .mod-panel {
      position: relative;
      border: 1px solid var(--border);
      border-radius: 4px;
      background: var(--surface);
      padding: 26px 26px 28px;
      min-height: 250px;
      overflow: hidden;
    }
    .mod-panel::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; height: 1px;
      background: linear-gradient(90deg, var(--accent), var(--teal));
      opacity: .55;
    }
    .mod-pane {
      position: absolute;
      inset: 26px 26px 28px;
      opacity: 0;
      transform: translateY(8px);
      pointer-events: none;
      transition: opacity .45s ease, transform .45s cubic-bezier(.16,1,.3,1);
    }
    .mod-pane.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .mod-icon {
      width: 30px; height: 30px;
      border-radius: 2px;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 13px;
      background: linear-gradient(140deg, rgba(78,143,247,0.16), rgba(20,184,166,0.10));
      border: 1px solid rgba(78,143,247,0.24);
    }
    .mod-icon svg {
      width: 15px; height: 15px;
      stroke: var(--accent); fill: none;
      stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
    }
    .mod-pane-t {
      font-family: var(--sans);
      font-weight: 700;
      font-size: 16px;
      letter-spacing: -0.018em;
      color: var(--text);
      margin-bottom: 14px;
    }
    .mod-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
    .mod-list li {
      position: relative;
      padding-left: 16px;
      font-family: var(--sans);
      font-size: 14.5px;
      line-height: 1.56;
      color: var(--text-secondary);
      opacity: 0;
      transform: translateX(6px);
      transition: opacity .45s ease, transform .45s ease;
    }
    .mod-pane.active li { opacity: 1; transform: translateX(0); }
    .mod-pane.active li:nth-child(1){transition-delay:.10s}
    .mod-pane.active li:nth-child(2){transition-delay:.16s}
    .mod-pane.active li:nth-child(3){transition-delay:.22s}
    .mod-pane.active li:nth-child(4){transition-delay:.28s}
    .mod-list li::before {
      content: '';
      position: absolute;
      left: 0; top: 8px;
      width: 4px; height: 4px;
      border-radius: 50%;
      background: var(--accent);
      opacity: .6;
    }
    #modules .sys-cockpit {
      width: 100%;
      max-width: none;
      margin: 0;
    }
    #modules .sys-cockpit .sys-body {
      height: auto;
      aspect-ratio: 1140 / 640;
      max-height: 640px;
    }
    .sys-rail-empty { padding:8px 10px; font-size:11px; color:rgba(255,255,255,.28); font-style:italic; }
    .cap-export {
      font-size: 15px;
      color: var(--text);
      line-height: 1.6;
      margin-top: 40px;
      padding-top: 22px;
      border-top: 1px solid var(--border);
      max-width: none;
    }
    @media (max-width: 640px) {
      #hero { min-height: 580px; }
    }
    @media (max-width: 760px) { #hero { min-height:620px; height:auto; padding:96px 0 130px; } }
.sys{position:relative;border:1px solid var(--sys-border-2);border-radius:0;overflow:hidden;background:radial-gradient(58% 60% at 50% 30%, rgba(78,143,247,0.16), transparent 68%), radial-gradient(40% 45% at 85% 90%, rgba(20,184,166,0.08), transparent 70%), var(--sys-bg);font-family:var(--sans);box-shadow:0 40px 100px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.03) inset}
.sys *{font-family:inherit}
.sys::before,.sys::after{display:none !important}
.sys-topline{display:none !important}
.sys-rail-brand{display:flex;align-items:center;gap:10px;padding:2px 3px 14px}
.sys-burger{display:flex;flex-direction:column;gap:3px;cursor:pointer}
.sys-burger i{display:block;width:14px;height:1.5px;background:rgba(255,255,255,.5);border-radius:0}
.sys-logo{display:flex;align-items:center;gap:8px}
.sys-logo-svg{height:20px;width:auto;display:block}
.sys-logo-mark{width:22px;height:22px;border-radius:0;border:1.5px solid var(--cyan);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--cyan)}
.sys-logo-word{font-size:13px;font-weight:700;letter-spacing:.26em}
.sys-filters{display:flex;align-items:center;gap:12px;padding:11px 16px;border-bottom:1px solid var(--sys-border);flex-wrap:wrap}
.sys-sel{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:6px 10px;border:1px solid var(--sys-border);border-radius:0;font-size:11.5px;color:var(--sys-text-2);min-width:118px}
.sys-sel span:last-child{font-size:8px;color:var(--sys-muted)}
.sys-flabel{font-size:11px;color:var(--sys-muted)}
.sys-pills{display:flex;gap:5px}
.sys-pill{padding:6px 13px;border-radius:0;font-size:11.5px;font-weight:500;color:var(--sys-text-2);border:1px solid transparent;transition:background .35s,color .35s}
.sys-pill.on{background:var(--cyan);color:#04222a;font-weight:600}
.sys-filters-r{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:11px;color:var(--sys-muted)}
.sys-hide{padding:5px 11px;border:1px solid var(--sys-border);border-radius:0;color:var(--sys-text-2);font-size:11px}
.sys-chatlabel{display:none}
.sys-body{display:grid;grid-template-columns:236px 1fr;padding:14px 14px 14px 0;height:640px;position:relative}
.sys-rail{border:none;border-right:1px solid var(--sys-border);border-radius:0;padding:12px 14px;display:flex;flex-direction:column;background:rgba(255,255,255,.012);min-height:0;overflow:hidden}
.sys-greet{display:none;flex:1;min-height:0;align-items:center;justify-content:center;text-align:center}
.sys-greet-text{font-size:26px;font-weight:600;color:var(--sys-text);letter-spacing:.005em}
.sys-main.pre-chat .sys-greet{display:flex}
.sys-main.pre-chat .sys-scroll{display:none}
.sys-main.show-wf .sys-greet,.sys-main.show-wf .sys-scroll,.sys-main.show-wf .sys-input-wrap,.sys-main.show-wf .jump{display:none !important}
.sys-main.show-wf .cp-wrap{display:flex !important}
.sys-rail { position: relative; padding-bottom: 62px !important; }
.sys-user {
  position: absolute;
  left: 6px; right: 6px;
  bottom: 10px;
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s;
  cursor: default;
}
.sys-user:hover { background: rgba(255,255,255,0.045); }
.sys-user .sys-user-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a05a, #b47f38);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.sys-user .sys-user-body { display: flex; flex-direction: column; min-width: 0; }
.sys-user .sys-user-name {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.sys-user .sys-user-role {
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  color: rgba(255,255,255,0.45);
  line-height: 1.15;
  letter-spacing: 0.005em;
  margin-top: 1px;
}
.sys-user .sys-user-chev {
  margin-left: auto;
  width: 10px; height: 10px;
  stroke: rgba(255,255,255,0.4);
  stroke-width: 1.5;
  fill: none;
}
.sys-rail-menu{display:flex;flex-direction:column;gap:2px;margin-bottom:16px}
.sys-rail-menu .rmi{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:0;border:1px solid transparent;font-family:var(--sans);font-size:12px;font-weight:500;letter-spacing:.01em;color:var(--sys-text-2);cursor:pointer;transition:background .3s,color .3s,border-color .3s}
.sys-rail-menu .rmi{border-radius:7px}
.sys-rail-menu .rmi:hover{background:rgba(255,255,255,.045);color:#fff}
.sys-rail-menu .rmi.on{background:rgba(255,255,255,.07);border-color:transparent;color:var(--sys-text);font-weight:600}
.sys-rail-menu .rmi svg{width:13px;height:13px;flex:0 0 13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.sys-rail-div{height:1px;background:var(--sys-border);margin:0 3px 12px}
.sys-rail-menu .rmi[data-mode]{cursor:pointer}
.sys-input-wrap{display:flex;flex-direction:column;gap:0;width:100%;max-width:780px;margin:0 auto;position:relative}
.sys-attach{display:none;margin-bottom:-1px;padding:10px 16px 12px 18px;border:1px solid var(--sys-border-2);border-bottom:0;border-radius:14px 14px 0 0;background:rgba(255,255,255,.03)}
.sys-attach.on{display:block}
.sys-attach.on + .sys-input{border-radius:0 0 14px 14px;margin-top:0}
.sys-attach-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:var(--sys-muted);cursor:pointer;transition:color .25s;flex-shrink:0;margin-right:2px}
.sys-attach-btn:hover{color:#fff}
.sys-attach-btn svg{width:16px;height:16px}
.sys-rail-head{display:flex;align-items:center;justify-content:space-between;font-family:var(--sans);font-size:9.5px;font-weight:600;letter-spacing:.18em;color:var(--sys-muted);margin-bottom:11px;padding:0 3px}
.sys-rail-list{flex:1;overflow-y:auto;min-height:0;padding-right:3px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.14) transparent}
.sys-rail-list::-webkit-scrollbar{width:5px}
.sys-rail-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:0}
.sys-rail-foot{margin-top:10px;padding-top:10px;border-top:1px solid var(--sys-border);font-size:9.5px;color:var(--sys-muted)}
.sys-main{display:flex;flex-direction:column;padding-left:14px;min-width:0;min-height:0;overflow:hidden;position:relative}
.sys-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:14px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.16) transparent}
.sys-scroll::-webkit-scrollbar{width:7px}
.sys-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.13);border-radius:0}
.sys-scroll::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.24)}
.sys-stream{display:flex;flex-direction:column;gap:22px;padding:0 26px 10px 6px;width:100%;max-width:780px;margin:0 auto}
.sys-input{width:100%;max-width:780px;margin-left:auto;margin-right:auto;margin-top:14px;border:1px solid var(--sys-border-2);border-radius:14px;background:rgba(255,255,255,.03);padding:15px 16px 15px 18px;min-height:66px;display:flex;align-items:flex-start;gap:12px;box-shadow:0 8px 28px rgba(0,0,0,.32),0 0 0 1px rgba(255,255,255,.02) inset;transition:border-color .3s,box-shadow .3s}
.sys-input:hover{border-color:rgba(255,255,255,.2)}
.sys-input-txt{flex:1;font-size:12.5px;line-height:1.5;color:var(--sys-text);min-height:20px}
.sys-input-txt.ph{color:var(--sys-muted)}
.sys-send{width:32px;height:32px;border-radius:50%;flex-shrink:0;background:var(--blue);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .25s,box-shadow .25s}
.sys-send.fire{transform:scale(1.14);box-shadow:0 0 22px rgba(59,130,246,.55)}
.sys-send svg{width:14px;height:14px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:920px){
  .sys-body{grid-template-columns:1fr;height:auto}
  .sys-rail{display:none}
  .sys-main{padding-left:0}
  .sys-scroll{height:490px;flex:none}
  .sys-filters-r{display:none}
}
  .finance-sys .sys-body { height: 640px; }
  @media (max-width: 960px) {
    .finance-sys .sys-body { height: 560px; }
  }
