/* FYS customer and site-operations presentation. Behavior stays in the original controllers. */
:root:has(body[data-fys-surface]) {
  color-scheme: light;
  --background: #f2f1ed; --surface: #fffefa; --raised: #ede9df; --border: #d8d7d1;
  --text: #171d28; --muted: #576172; --accent: #214a80;
  --attention: #815219; --success: #286045; --danger: #a02d36;
  --fys-well: #172846; --fys-lit: #dfebf9; --fys-moss: #ffc184;
  --fys-display: "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
body[data-fys-surface] {
  font: 16px/1.6 var(--fys-display);
  -webkit-font-smoothing: antialiased;
}
body[data-fys-surface] :is(h1,h2,h3) {text-wrap: balance; letter-spacing: -.022em}
body[data-fys-surface] :is(button,a,input,textarea,select,summary):focus-visible {
  outline: 2px solid #2860a3; outline-offset: 3px;
}
body[data-fys-surface] header.wrap {
  width: min(1220px, calc(100% - 72px)); min-height: 72px; gap: 10px 28px;
}
body[data-fys-surface] header.wrap .brand {color: var(--text); text-decoration: none}
body[data-fys-surface] header.wrap .logo {
  display: inline-flex; align-items: center; justify-content:center; gap: 4px;
  min-width: 54px; min-height: 36px; padding: 3px 9px; border: 0;
  border-radius: 10px; background: var(--fys-well); color: #f2f1ed; font-weight: 760; letter-spacing: -.04em;
}
body[data-fys-surface] header.wrap .brand-dot {width:5px;height:5px;background:var(--fys-moss)}
body[data-fys-surface] header.wrap nav {display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px}
body[data-fys-surface] header.wrap nav a {color:var(--text);min-height:40px;display:inline-flex;align-items:center}
body[data-fys-surface] footer.wrap {padding-block:24px 34px;gap:12px;color:var(--muted)}
body[data-fys-surface] footer.wrap .management-link {color:var(--muted);background:transparent;border-color:transparent}
body[data-fys-surface] :is(.pill,.eyebrow) {
  color:#403418; background:#f4ead8; border-color:#e7d9bc; letter-spacing:.055em;
}
body[data-fys-surface] :is(.btn,.button,button[type=submit],.chat-compose button) {
  background: var(--fys-well); color: #fffefa; border-color: var(--fys-well);
  border-radius: 9px; min-height:44px; padding-block:10px; box-shadow:none;
}
body[data-fys-surface] :is(.home-hero .button:not(.secondary),.chat-launch) {
  background:var(--fys-well);color:#fffefa;border-color:var(--fys-well);
}
body[data-fys-surface="checkout"] .chat-launch {display:none}
body[data-fys-surface] :is(.btn,.button,button[type=submit],.chat-compose button):hover {background:#234b80;color:#fffefa}
body[data-fys-surface] :is(.button.secondary,.button.light,.button.ghost,.btn.secondary) {
  background: var(--surface); color: var(--accent); border-color:var(--border);
}
body[data-fys-surface] :is(.button.secondary,.button.light,.button.ghost,.btn.secondary):hover {
  background:var(--raised); color:var(--text); border-color:#adb7c7;
}
body[data-fys-surface] :is(.notice,.callout) {
  padding:10px 13px;
  background:#ede9df; color:#4a5262; border-color:#d8d8d1; border-radius:10px;
}
body[data-fys-surface] :is(.product,.form-panel,.order-card,.help-box,.service-summary,.journey-panel) {
  box-shadow: 0 4px 20px #131b2e08; border-radius: 16px;
}
body[data-fys-surface] :is(input,textarea,select) {border-radius: 8px}
body[data-fys-surface] :is(input,textarea)::placeholder {color:#667183;opacity:1}
body[data-fys-surface] :is(.page,.reconciliation-main) {min-width:0}
body[data-fys-surface="home"] .page {width:min(1220px,calc(100% - 72px));padding-top:32px}
body[data-fys-surface="home"] .home-hero {
  display:grid; grid-template-columns:minmax(0,1.04fr) minmax(0,1fr); gap:44px; align-items:center;
  padding:clamp(20px,4vw,48px) 0 clamp(22px,4vw,50px);background:transparent!important;border:0;
}
body[data-fys-surface="home"] .hero-copy {min-width:0}
body[data-fys-surface="home"] .hero-copy h1 {
  max-width:17ch; font:700 clamp(42px,4.6vw,67px)/1.055 var(--fys-display);
  margin:22px 0; letter-spacing:-.045em; text-wrap:balance;
}
body[data-fys-surface="home"] .hero-copy h1 span {color:#2a557d}
html[lang^="zh"] body[data-fys-surface="home"] .hero-copy h1 {
  font-size:clamp(40px,5vw,72px); letter-spacing:-.046em; line-height:1.12;max-width:12em;
}
body[data-fys-surface="home"] .hero-brief {max-width:48ch;font-size:clamp(16px,1.45vw,19px);color:var(--muted)}
body[data-fys-surface="home"] .hero-copy .notice {background:transparent;border:0;padding:0;font-size:13px;color:var(--muted)}
body[data-fys-surface="home"] .hero-experience {
  min-width:0;width:100%;background:radial-gradient(ellipse at 110% -15%,#3a5d85,transparent 62%),#172941!important;
  border:1px solid #314b70;border-radius:22px;padding:clamp(19px,3.5vw,40px);box-shadow:0 20px 48px #17253d26;
  color:var(--fys-lit);
}
body[data-fys-surface="home"] .hero-experience :is(h2,strong,.preview-link,.preview-title) {color:#fcfdff}
body[data-fys-surface="home"] .hero-experience h2 {font-size:clamp(26px,3vw,42px);line-height:1.06;margin:17px 0 16px}
body[data-fys-surface="home"] .hero-experience .pill {background:#2e4161;color:#ffdcac;border-color:#547499}
body[data-fys-surface="home"] .hero-document-preview {border:1px solid #607da1!important;background:#203653!important;border-radius:12px}
body[data-fys-surface="home"] .hero-document-preview :is(span,p,small) {color:#dce8fa}
body[data-fys-surface="home"] .hero-document-preview :is(.preview-title,.preview-result,.preview-history li) {
  border-color:#567296;background:transparent!important
}
body[data-fys-surface="home"] .preview-result strong {color:var(--fys-moss);font-variant-numeric:tabular-nums}
body[data-fys-surface="home"] .preview-link {display:inline-block;text-underline-offset:4px;margin-top:12px}
body[data-fys-surface="home"] .home-section {margin-block:46px}
body[data-fys-surface="home"] :is(#services,.demo-directory,.workflow-case,.contact-panel) {
  border-top:1px solid var(--border);padding-top:24px;
}
body[data-fys-surface="home"] .demo-directory {margin-block:36px;border-radius:0;background:none}
body[data-fys-surface="home"] .demo-directory .experience-line {background:var(--surface);border:1px solid var(--border);border-radius:12px}
body[data-fys-surface="home"] .workflow-case {background:linear-gradient(135deg,#e1e8f4,#f5f7fa);border:1px solid var(--border);border-radius:16px;padding:clamp(18px,3vw,34px)}
body[data-fys-surface="home"] .workflow-case video {max-width:100%;border-radius:13px}
body[data-fys-surface="home"] :is(.faq-section,.contact-panel) {color:var(--text)}
body[data-fys-surface="home"] .contact-panel {background:#e8edf5!important;border:1px solid #ccd7e7;border-radius:15px;padding:clamp(18px,4vw,32px)}
body[data-fys-surface="home"] .contact-panel p {color:var(--muted)}
.fys-page-lead {margin:20px 0 24px;max-width:900px}
.fys-page-lead h1 {font-size:clamp(32px,4vw,58px);line-height:1.1;margin:0 0 12px}
.fys-page-lead p {max-width:70ch;color:var(--muted)}
.fys-intake-split {display:grid;grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr);align-items:start;gap:18px}
.fys-intake-split > :is(.form-panel,.help-box) {margin:0;min-width:0}
.fys-intake-split .help-box {border-left:3px solid #a97935;background:#f0ece3;align-self:start}
body[data-fys-surface="order"] #order-view {margin-top:16px}
body[data-fys-surface="order"] #order-view:not([hidden]):empty {display:none}
body[data-fys-surface="checkout"] .page {max-width:960px}
body[data-fys-surface="checkout"] .order-card {padding:clamp(17px,3vw,32px);border-top:3px solid #426da1}
body[data-fys-surface="checkout"] .order-card > :is(p,div){overflow-wrap:anywhere}
body[data-fys-surface="case"] .reconciliation-intro {
  background:linear-gradient(120deg,#e4ebf5,#f8f9fb);border:1px solid var(--border);border-radius:20px;padding:clamp(20px,4vw,42px)
}
body[data-fys-surface="case"] .reconciliation-panel {border-radius:15px;border-color:var(--border)}
body[data-fys-surface="services"] .page > h1 {font-size:clamp(38px,5vw,62px);line-height:1.08;max-width:20ch}
body[data-fys-surface="services"] .report-case {background:#ede9df;border-radius:18px;padding:clamp(17px,3vw,32px)}
body[data-fys-surface="services"] .report-case-step {background:var(--surface);border-radius:12px}
body[data-fys-surface="policy"] .page {max-width:780px}
body[data-fys-surface="policy"] .page > :is(.order-card,.product) {padding:clamp(18px,4vw,42px)}
body[data-fys-surface="owner"] .owner-main {width:min(1140px,calc(100% - 36px));margin-inline:auto}
body[data-fys-surface="owner"] .owner-intro {background:#e7edf6;color:var(--text);border-color:var(--border);border-radius:16px}
body[data-fys-surface="editor"] {
  --ops-bg:#f2f1ed;--ops-surface:#fffefa;--ops-text:#171d28;--ops-muted:#576172;--ops-border:#d8d7d1;
}
body[data-fys-surface="editor"] .ops-top {border-bottom:1px solid #d8d7d1}
body[data-fys-surface="editor"] :is(.ops-panel,.ops-card) {border-radius:13px}
@media(max-width:900px) {
  body[data-fys-surface="home"] .home-hero {gap:24px}
  body[data-fys-surface="home"] .page,body[data-fys-surface] header.wrap {width:calc(100% - 40px)}
}
@media(max-width:640px) {
  body[data-fys-surface] header.wrap {width:calc(100% - 30px);padding-block:9px}
  body[data-fys-surface] header.wrap nav {gap:2px 12px;max-width:100%}
  body[data-fys-surface] header.wrap nav a {min-height:38px;font-size:13px}
  body[data-fys-surface="home"] .page {width:calc(100% - 30px);padding-top:12px}
  body[data-fys-surface="home"] .home-hero {grid-template-columns:minmax(0,1fr);padding-bottom:30px}
  body[data-fys-surface="home"] .hero-copy h1 {max-width:none;margin-block:16px}
  body[data-fys-surface="home"] .home-section {margin-block:28px}
  body[data-fys-surface="home"] .hero-experience {border-radius:16px}
  .fys-intake-split {grid-template-columns:minmax(0,1fr)}
  .fys-page-lead {margin-block:16px}
}
@media(prefers-reduced-motion:reduce) {html{scroll-behavior:auto}}

body[data-fys-surface="home"] .home-hero .hero-experience :is(.preview-caption,.preview-result span) {color:#dceafa}
body[data-fys-surface="case"] :is(.exception-row,.duplicate-row) {background:#f7ead5!important;color:#4f351c}
