/* ===========================================================================
   SWORD PAVILION ·   Enterprise Integrated Intelligence Platform —  Site-wide styles
   ---------------------------------------------------------------------------
   Font declaration: Site uses only open-source licensed fonts (SIL OFL 1.1 / Free for commercial use), 
             Not inline, Do not distribute any commercial fonts. see docs/Font licensing statement.md
   =========================================================================== */

:root {
  /* Brand color —  Replace Logo Only this set of variables needs to be synced */
  --brand-900: #08182E;
  --brand-800: #0C2444;
  --brand-700: #123A6E;
  --brand-600: #17498A;
  --brand-500: #1B4C8C;
  --brand-300: #5B93D6;
  --brand-100: #E8F0FA;
  --brand-50:  #F4F8FD;
  --brand-gold: #C9A227;

  /* Neutral color */
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #FAFBFD;
  --surface-3: #F1F5F9;
  --border: #E3E8F0;
  --border-strong: #CBD5E1;
  /* Table row line / Table header background color: And the sample .tbl Align (vs.  --border Lighter, More breathing room between rows) */
  --row-line: #F1F4FA;
  --th-bg: #FAFBFE;
  --row-hover: #FAFCFF;
  --text: #0F172A;
  --text-2: #475569;
  --text-3: #7C8DA6;

  /* Semantic color (Financial scenarios: Red=Risk/Gain, green=Normal/Decline) */
  --danger: #D92D20;
  --danger-bg: #FEF3F2;
  --danger-border: #FDA29B;
  --success: #12805C;
  --success-bg: #ECFDF3;
  --success-border: #A6F4C5;
  --warning: #B54708;
  --warning-bg: #FFFAEB;
  --warning-border: #FEDF89;
  --info: #175CD3;
  --info-bg: #EFF8FF;
  --info-border: #B2DDFF;
  --neutral: #475569;
  --neutral-bg: #F1F5F9;

  /* Size */
  --sidebar-w: 252px;
  --header-h: 58px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .1);
  --sh-2: 0 4px 12px rgba(16, 24, 40, .08);
  --sh-3: 0 16px 40px rgba(16, 24, 40, .16);

  /* Font: All are open-source, freely licensed fonts + System generic family, No commercial fonts whatsoever */
  --font-sans: "Inter", "Noto Sans SC", "Source Han Sans SC", "HarmonyOS Sans SC",
               "LXGW WenKai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Inter", ui-monospace, "SFMono-Regular", "Consolas", monospace;

  /* Trademark font size: Fixed 12px */
  --fs-wordmark: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-600); text-decoration: none; }
button { font-family: inherit; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; background-clip: content-box; }

.app-root { height: 100%; }

/* ============================ Splash screen ============================ */
.boot-screen {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: radial-gradient(120% 90% at 50% 0%, #123A6E 0%, #08182E 62%);
  color: #fff;
}
.boot-logo { width: 68px; height: 68px; filter: drop-shadow(0 8px 24px rgba(11, 60, 120, .55)); }
.boot-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.boot-name { font-size: 15px; color: #C9DCF2; letter-spacing: .08em; }
.boot-bar { width: 190px; height: 3px; background: rgba(255, 255, 255, .16); border-radius: 3px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--brand-300), #fff); animation: boot 1.15s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }
.boot-tip { font-size: 12px; color: #7FA3CE; margin: 0; letter-spacing: .04em; }

/* ==================== Trademark typography (12px Fixed) ==================== */
.brand-wordmark {
  display: inline-block;
  font-family: var(--font-num);
  font-size: var(--fs-wordmark);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--brand-700);
  white-space: nowrap;
}
.brand-wordmark--light { color: #D7E4F7; }
.brand-wordmark--dark { color: #EAF2FC; }
.brand-wordmark--muted { color: var(--text-3); font-weight: 600; }

.brand-lockup { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-lockup img { flex: none; }
.brand-lockup .brand-stack { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-cn { font-size: 10px; letter-spacing: .3em; color: #8FB4DC; }
.brand-cn--muted { color: #7E93B4; }

/* Brand enlarged variant: Top left of the portal home page and login page (Including the enlarged trademark) */
.brand-lockup--lg { gap: 16px; }
.brand-lockup--lg img { width: 92px; height: 92px; border-radius: 12px; box-shadow: 0 10px 30px rgba(4, 14, 30, .35); }
.brand-lockup--lg .brand-wordmark { font-size: 34px; letter-spacing: .14em; }
.brand-lockup--lg .brand-stack { gap: 8px; }
.brand-lockup--lg .brand-cn { font-size: 15px; letter-spacing: .34em; }
/* Brand medium size: Top of the portal action card */
.brand-lockup--md { gap: 11px; }
.brand-lockup--md img { width: 46px; height: 46px; border-radius: 8px; }
.brand-lockup--md .brand-wordmark { font-size: 20px; }
.brand-lockup--md .brand-cn { font-size: 10.5px; letter-spacing: .26em; }

/* ============================ Sign-In Page ============================ */
.login-wrap { display: flex; height: 100%; background: var(--surface); }
.login-hero {
  position: relative; flex: 1 1 54%; overflow: hidden; color: #EAF2FC;
  background:
    radial-gradient(90% 70% at 12% 8%, rgba(59, 130, 246, .34) 0%, transparent 58%),
    radial-gradient(70% 60% at 88% 92%, rgba(201, 162, 39, .22) 0%, transparent 60%),
    linear-gradient(155deg, #0F3161 0%, #08182E 68%);
  padding: 46px 54px; display: flex; flex-direction: column; justify-content: space-between;
}
.login-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}
.login-hero > * { position: relative; z-index: 1; }
.hero-title { font-size: 30px; font-weight: 700; line-height: 1.34; margin: 26px 0 12px; letter-spacing: .01em; }
.hero-sub { font-size: 14px; color: #A9C6E6; max-width: 520px; line-height: 1.85; }
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; max-width: 560px; }
.hero-feature {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--r); padding: 13px 15px; backdrop-filter: blur(3px);
}
.hero-feature b { display: block; font-size: 13px; color: #FFFFFF; margin-bottom: 3px; font-weight: 600; }
.hero-feature span { font-size: 11.5px; color: #9DBBDD; line-height: 1.6; }
.hero-foot { font-size: 11.5px; color: #7FA3CE; display: flex; gap: 18px; flex-wrap: wrap; }

.login-panel { flex: 0 0 46%; display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--surface); }
.login-card { width: 100%; max-width: 384px; }

/* Portal home page action card */
.portal-card { max-width: 400px; }
.trial-note { font-size: 11.5px; color: var(--text-3); text-align: center; margin-top: 7px; }

/* ==================== Portal Home (Marketing long-page style) ==================== */
.portal { height: 100%; overflow-y: auto; background: var(--surface); scroll-behavior: smooth; }
/* Navigation spans two lines: row 1: brand logo, row 2: nav links. 
   When the trademark font size is larger (e.g. SWORD PAVILION™)Crammed onto the same row as the navigation, it would overlap, so force a line break.  */
.portal-nav {
  position: sticky; top: 0; z-index: 30; display: flex; flex-direction: column;
  align-items: stretch; gap: 0; padding: 10px 40px 0; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.portal-nav .brand-row { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; }
.portal-nav .brand-lockup { gap: 12px; }
.portal-nav .brand-lockup img { width: 42px; height: 42px; border-radius: 7px; box-shadow: 0 4px 14px rgba(4, 14, 30, .22); }
.portal-nav .brand-wordmark { font-size: 22px; color: var(--brand-700); }
/* Second row: Navigation links are left-aligned + Right-side action button */
.portal-nav .nav-row {
  display: flex; align-items: center; gap: 22px; padding: 10px 0 12px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.portal-nav .nav-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.portal-nav .nav-links a { font-size: 13px; color: var(--text-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.portal-nav .nav-links a:hover { color: var(--brand-600); }
.portal-nav .nav-links a.active { color: var(--brand-600); font-weight: 700; }
.portal-nav .nav-links a.active::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--brand-600); margin-top: 4px;
}
.portal-nav .nav-row .btn { margin-left: auto; }

.portal-hero {
  background:
    radial-gradient(90% 80% at 10% 0%, rgba(59, 130, 246, .38) 0%, transparent 55%),
    radial-gradient(60% 60% at 92% 100%, rgba(201, 162, 39, .2) 0%, transparent 60%),
    linear-gradient(155deg, #0F3161 0%, #08182E 70%);
  color: #EAF2FC; padding: 66px 40px 58px;
}
.portal-hero-inner { max-width: 1080px; margin: 0 auto; }
.portal-title { display: flex; align-items: center; gap: 14px; font-size: 34px; font-weight: 800; line-height: 1.32; margin: 0 0 10px; letter-spacing: .01em; }
/* The brand icon before the large title: Matches the font size (Same ratio as the home page 92px Icon / 62px Trademark) */
.portal-title img { flex: none; width: 50px; height: 50px; border-radius: 8px; box-shadow: 0 8px 22px rgba(4, 14, 30, .35); }
/* Secondary subtitle: vs. SWORD PAVILION The trademark font size is one size smaller */
.portal-subtitle { font-size: 18px; font-weight: 600; color: #C9DCF2; letter-spacing: .2em; margin: 0 0 16px; }

/* Home hero Brand area */
.home-brand { margin-bottom: 12px; }
/* Home hero Trademark: Font and SaaS Portal page hero title (.portal-title 34px/800/.01em)consistent; Icon at the same ratio 50px */
.home-brand img { width: 50px; height: 50px; border-radius: 8px; box-shadow: 0 8px 22px rgba(4, 14, 30, .35); }
.home-brand .home-mark { font-size: 34px; font-weight: 800; letter-spacing: .01em; font-family: inherit; color: #FFFFFF; margin: 0; }
.home-tagline { font-size: 15px; color: #BFD5EF; margin: 0 0 24px; line-height: 1.9; }
.home-tagline b { color: #FFFFFF; font-weight: 700; }
.fn-logo { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.portal-desc { font-size: 14.5px; color: #BFD5EF; line-height: 2.05; max-width: 880px; margin: 0; }
.portal-desc b { color: #FFFFFF; font-weight: 650; }
.hero-points { list-style: none; margin: 4px 0 0; padding: 0; max-width: 880px; }
.hero-points li { position: relative; padding-left: 20px; font-size: 13.5px; line-height: 2; color: #BFD5EF; margin: 0 0 4px; }
.hero-points li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: #F0C243; }
.hero-points b { color: #FFFFFF; font-weight: 650; }
.hero-points--light li { color: var(--text-2); }
.hero-points--light b { color: var(--text); }
/* 金色横条：按内容自适应宽度的独立盒子（不强制等宽；空间不足时自动折行） */
.portal-trial {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 24px 0 26px;
}
.portal-trial span {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #D8E9FB 0%, #FFFFFF 100%); color: #185FA5; font-weight: 700; font-size: 14px;
  padding: 9px 20px; border-radius: 8px;
}
.portal-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.portal-ctas .btn { height: 44px; padding: 0 24px; font-size: 14.5px; border-radius: 9px; }

.portal-sec { padding: 58px 40px; background: var(--surface); }
.portal-sec.alt { background: #F4F8FD; }
.portal-sec-inner { max-width: 1080px; margin: 0 auto; }
.portal-h2 { font-size: 25px; font-weight: 800; margin: 0 0 6px; color: var(--text); }
.portal-h2-sub { font-size: 13px; color: var(--text-3); margin-bottom: 28px; line-height: 1.8; max-width: 760px; }

.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; align-items: stretch; }
.cap-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cap-card {
  background: #FFFFFF; border: 1px solid var(--border); border-top: 3px solid var(--brand-500);
  border-radius: 10px; padding: 20px 22px; box-shadow: var(--sh-1);
  display: flex; flex-direction: column;
}
.cap-card.gold { border-top-color: var(--brand-gold); }
.cap-card b { font-size: 15px; color: var(--text); }
.cap-card p { font-size: 12.5px; color: var(--text-2); line-height: 1.85; margin: 0 0 12px; flex: 1; }
.cap-card .btn { margin-top: auto; }
.cap-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.cap-tags span {
  font-size: 11px; color: var(--brand-600); background: var(--brand-50);
  border: 1px solid var(--brand-100); padding: 2px 9px; border-radius: 999px;
}

.svc-card {
  background: #FFFFFF; border: 1px solid var(--border); border-left: 4px solid var(--brand-gold);
  border-radius: 10px; padding: 22px 26px; margin-bottom: 16px; box-shadow: var(--sh-1);
}
.svc-card h3 { margin: 0 0 4px; font-size: 16.5px; color: var(--text); }
.svc-card .svc-sub { font-size: 12px; color: var(--brand-600); font-weight: 600; margin-bottom: 10px; }
.svc-card p { font-size: 12.5px; color: var(--text-2); line-height: 1.9; margin: 0; }
.svc-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.svc-card li { font-size: 12.5px; color: var(--text-2); padding-left: 16px; position: relative; }
.svc-card li::before { content: "▪"; position: absolute; left: 2px; color: var(--brand-500); }

.portal-price { background: linear-gradient(165deg, #0C2444 0%, #08182E 75%); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.price-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; margin-left: auto; margin-right: auto; }
.price-card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px; padding: 28px 24px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: stretch;
}
.price-card .plan { font-size: 15px; font-weight: 700; color: #FFFFFF; }
.price-card .amount { font-family: var(--font-num); font-size: 32px; font-weight: 800; color: #F0C243; margin: 14px 0 4px; line-height: 1.15; }
.price-card .amount small { font-size: 13px; font-weight: 500; color: #9DBBDD; }
.price-card .plan-desc { font-size: 12.5px; color: #9DBBDD; line-height: 1.8; flex: 1; margin-bottom: 16px; }
.price-card .btn { margin-top: auto; height: 40px; }
.portal-price-foot { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }

.portal-foot { background: #050D1C; color: #5C7FA8; padding: 26px 40px; font-size: 11.5px; line-height: 2; }
.portal-foot-inner { max-width: 1080px; margin: 0 auto; }

/* Footer legal row: trademark statement + links to the legal documents (shared by all public pages) */
.portal-foot .foot-tm { color: #7C9AC0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(92, 127, 168, .22); }
.foot-links a { color: #8FB0D4; text-decoration: none; transition: color .15s ease; }
.foot-links a:hover { color: #F0C243; text-decoration: underline; }

/* Brand fine print shown under the wordmark on every public hero */
.brand-disclaimer { font-size: 12.5px; line-height: 1.7; color: rgba(201, 220, 242, .75); margin: 4px 0 18px; max-width: 760px; }

/* Legal / notice pages reached from the footer */
.legal-page { padding-top: 54px; padding-bottom: 72px; }
.legal-meta { font-size: 12px; color: var(--text-3); margin: -16px 0 26px; }
.legal-body { max-width: 880px; }
.legal-sec { margin-bottom: 26px; }
.legal-sec h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.legal-sec p { font-size: 13.5px; line-height: 1.9; color: #3D5069; margin: 0 0 9px; }
@media (max-width: 760px) {
  .legal-page { padding-top: 36px; padding-bottom: 48px; }
  .legal-sec p { font-size: 13px; }
  .foot-links { gap: 2px 14px; }
}

/* =============== Top-Level Home / Downloadable sub-page for localized deployment =============== */

.home-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 34px; align-items: stretch; }
.home-entries--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-entry {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px; padding: 22px 22px 20px; display: flex; flex-direction: column;
}
.home-entry h3 { font-size: 20px; font-weight: 800; color: #FFFFFF; margin: 12px 0 10px; }
.home-entry p { font-size: 13px; color: #BFD5EF; line-height: 1.95; margin: 0 0 20px; flex: 1; }
.home-entry .btn { height: 44px; font-size: 14.5px; border-radius: 9px; margin-top: auto; }
/* The four-card layout tightens the font size, Ensure equal height without breaking the layout */
.home-entries--four .home-entry { padding: 20px 20px 18px; }
.home-entries--four .home-entry h3 { font-size: 16px; line-height: 1.45; }
.home-entries--four .home-entry p { font-size: 12.5px; line-height: 1.8; }
.home-entries--four .home-entry .btn { height: 40px; font-size: 13.5px; }
.home-entries--four .he-tag { font-size: 10.5px; padding: 3px 9px; line-height: 1.5; border-radius: 8px; }
.he-tag { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.tag-blue { background: rgba(96, 165, 250, .18); color: #9EC5F5; border: 1px solid rgba(96, 165, 250, .4); }
.tag-gold { background: rgba(240, 194, 67, .2); color: #F3D07A; border: 1px solid rgba(240, 194, 67, .45); }

.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc-card {
  background: #FFFFFF; border: 1px solid var(--border); border-left: 3px solid var(--brand-500);
  border-radius: 10px; padding: 18px 22px; box-shadow: var(--sh-1);
}
.ico-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.doc-ico {
  flex: none; width: 38px; height: 38px; border-radius: 9px;
  color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.doc-card b { font-size: 14.5px; color: var(--text); }
.doc-card p { font-size: 12.5px; color: var(--text-2); line-height: 1.8; margin: 0; }

.dl-box {
  display: flex; align-items: center; gap: 20px; background: #FFFFFF;
  border: 1px solid var(--border); border-radius: 12px; padding: 24px 26px; box-shadow: var(--sh-1);
}
.dl-badge {
  width: 56px; height: 56px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.dl-meta { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.dl-meta b { font-size: 15.5px; color: var(--text); }
.dl-meta span { font-size: 12.5px; color: var(--text-2); }
.dl-meta .dl-note { font-size: 12px; color: #B54708; }
.dl-meta .dl-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; color: var(--text-3); word-break: break-all; line-height: 1.6;
}
.dl-box .btn { flex: 0 0 auto; }
.dl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.dl-step { background: #F4F8FD; border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.dl-step i {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-600);
  color: #FFFFFF; font-size: 12px; font-weight: 700; font-style: normal;
  align-items: center; justify-content: center; margin-bottom: 10px;
}
.dl-step b { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 6px; }
.dl-step p { font-size: 12px; color: var(--text-2); line-height: 1.85; margin: 0; }
.dl-tip { margin-top: 18px; font-size: 12.5px; color: var(--text-2); }
.dl-tip a { color: var(--brand-600); font-weight: 600; text-decoration: none; }

@media (max-width: 1180px) {
  .home-entries--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-nav { padding: 10px 24px 0; }
  .portal-nav .nav-links { gap: 14px; }
  .portal-nav .nav-links a { font-size: 12.5px; }
}

@media (max-width: 960px) {
  .portal-nav { padding: 10px 18px 0; }
  .portal-nav .brand-wordmark { font-size: 16px; letter-spacing: .1em; }
  .portal-hero { padding: 44px 18px; }
  .portal-title { font-size: 26px; }
  .portal-title img { width: 38px; height: 38px; }
  .portal-subtitle { font-size: 14.5px; }
  .brand-lockup--lg .home-mark { font-size: 34px; }
  .brand-lockup--lg img { width: 62px; height: 62px; }
  .home-brand img { width: 38px; height: 38px; }
  .home-brand .home-mark { font-size: 26px; }
  .brand-lockup--lg .brand-wordmark { font-size: 24px; }
  .portal-sec { padding: 40px 18px; }
  .cap-grid, .price-grid, .home-entries, .home-entries--four, .doc-grid, .dl-steps { grid-template-columns: 1fr; }
  .dl-box { flex-direction: column; align-items: flex-start; }
}
.login-card h1 { font-size: 21px; margin: 0 0 4px; font-weight: 700; }
.login-card .sub { color: var(--text-3); font-size: 12.5px; margin: 0 0 24px; }
.demo-accounts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.demo-chip {
  border: 1px dashed var(--border-strong); background: var(--surface-2); color: var(--text-2);
  border-radius: 999px; padding: 4px 10px; font-size: 11.5px; cursor: pointer; transition: .16s;
}
.demo-chip:hover { border-color: var(--brand-300); color: var(--brand-600); background: var(--brand-50); }
.login-note { margin-top: 22px; padding: 11px 13px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--r-sm); font-size: 11.5px; color: var(--text-2); line-height: 1.7; }

/* ============================ App skeleton ============================ */
.shell { display: flex; height: 100%; }

.sidebar {
  width: var(--sidebar-w); flex: none; background: linear-gradient(180deg, #0C2444 0%, #08182E 100%);
  color: #D7E4F7; display: flex; flex-direction: column; border-right: 1px solid #0A1E38;
}
.side-brand {
  height: var(--header-h); flex: none; display: flex; align-items: center; gap: 9px;
  padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.side-brand img { width: 46px; height: 46px; border-radius: 8px; box-shadow: 0 4px 14px rgba(4, 14, 30, .3); }
.side-brand .brand-wordmark { font-size: 16px; letter-spacing: .1em; }
.side-brand .brand-cn { font-size: 10.5px; letter-spacing: .2em; }
.side-brand .brand-stack { display: flex; flex-direction: column; gap: 2px; }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px 0; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); background-clip: content-box; }
.nav-group { margin-bottom: 14px; }
.nav-group-title {
  font-size: 10.5px; letter-spacing: .18em; color: #5C7FA8; padding: 4px 10px 7px 17px;
  text-transform: uppercase; font-weight: 600;
}
/* Collapsible group title: Clickable, Right-side collapse arrow (Rotates when collapsed -90°) */
.nav-group[data-group] > .nav-group-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  cursor: pointer; user-select: none; padding-right: 14px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-group[data-group] > .nav-group-title:hover { color: #8FB6E4; background: rgba(255, 255, 255, .05); }
.nav-group-title .chev {
  flex: 0 0 auto; width: 6px; height: 6px; margin-right: 2px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px); opacity: .85; transition: transform .18s ease;
}
.nav-group.collapsed > .nav-group-title .chev { transform: rotate(-45deg) translate(1px, -1px); }
.nav-group.collapsed > .nav-item { display: none; }
.nav-group--solo { margin-bottom: 14px; }
.nav-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 26px; border-radius: 0 8px 8px 0;
  color: #B9CFE8; font-size: 12.5px; cursor: pointer; transition: .15s; margin-bottom: 1px;
  border-left: 3px solid transparent; user-select: none;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(37, 99, 235, .38), rgba(37, 99, 235, .04)); color: #FFFFFF; border-left-color: #5B9BFF; font-weight: 600; }
/* Nav dot (Aligned Sample .nav-dot): Normal state 4px Gray-blue, the selected state is highlighted with a glow */
.nav-dot { width: 4px; height: 4px; border-radius: 50%; background: #3F5178; flex: 0 0 4px; transition: .15s; }
.nav-item:hover .nav-dot { background: #6E93BC; }
.nav-item.active .nav-dot { background: #5B9BFF; box-shadow: 0 0 6px #5B9BFF; }
.nav-item .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .dot { margin-left: auto; font-size: 10px; background: rgba(217, 45, 32, .9); color: #fff; border-radius: 999px; padding: 0 6px; line-height: 16px; }
.side-foot { padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 11px; color: #6E93BC; line-height: 1.7; }
.side-tm { margin-top: 8px; font-size: 10.5px; line-height: 1.6; color: rgba(160, 190, 222, .62); }
.step-card { background: #FFFFFF; border: 1px solid var(--border); border-left: 3px solid var(--brand-gold); border-radius: 10px; padding: 18px 20px; }
.step-ico { flex: none; width: 40px; height: 40px; border-radius: 9px; color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.step-card b { font-size: 14.5px; color: var(--text); }
.step-card p { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin: 0; }
.step-card p { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin: 0; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--header-h); flex: none; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 22px; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); z-index: 20;
}
/* Breadcrumb: Section Title / Page Name (Two levels, Aligned Sample .crumb) */
.topbar .crumb { font-size: 12px; color: var(--text-3); }
.topbar .crumb b { color: var(--text); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Page Header (Top of the content area): Title + Description + Right-side action area */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.page-head .ph-main { min-width: 0; }
.page-head h1 { font-size: 17px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.page-head h1 .ico { width: 18px; height: 18px; color: var(--brand-600); flex: none; }
.page-head p { font-size: 12px; color: var(--text-3); margin: 6px 0 0; line-height: 1.7; max-width: 820px; }
.page-head .actions { display: flex; gap: 8px; flex: 0 0 auto; align-items: center; }

.tenant-pill {
  display: flex; align-items: center; gap: 7px; background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; color: var(--brand-700); font-weight: 600;
}
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; }
.user-chip:hover { background: var(--surface-3); border-color: var(--border); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-300)); color: #fff; font-size: 12px; font-weight: 700;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-meta b { font-size: 12.5px; font-weight: 600; }
.user-meta span { font-size: 10.5px; color: var(--text-3); }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--text-2); position: relative; transition: .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--brand-600); border-color: var(--border-strong); }
.icon-btn .badge-dot {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 9.5px; display: grid; place-items: center; padding: 0 4px; font-weight: 700;
  border: 2px solid var(--surface);
}
.dropdown {
  position: absolute; right: 16px; top: calc(var(--header-h) - 6px); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-3); min-width: 230px; padding: 6px; z-index: 60;
}
.dropdown .dd-head { padding: 9px 11px; border-bottom: 1px solid var(--border); margin-bottom: 5px; }
.dropdown .dd-head b { display: block; font-size: 13px; }
.dropdown .dd-head span { font-size: 11px; color: var(--text-3); }
.dropdown .dd-item { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 7px; font-size: 12.5px; cursor: pointer; color: var(--text-2); }
.dropdown .dd-item:hover { background: var(--surface-3); color: var(--brand-600); }

.content { flex: 1; overflow-y: auto; padding: 18px 20px 40px; }
.page { animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
/* Adjacent blocks within the page are unified 16px spacing: Immediately adjacent after the fix card .two-col/.grid Fitting when lined up in a container (margin Collapse, Will not conflict with existing 16px Overlay) */
.page > * + * { margin-top: 16px; }

/* ============================ Card ============================ */
/* Aligned Sample .card: 14px Rounded corners, No shadow, Between cards 16px */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card + .card { margin-top: 16px; }
/* Card header aligned with the sample .card-title: Aligned at both the left and right ends, Explanatory text can be placed on the right (.hint / .right) */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.card-head h3 { margin: 0; font-size: 13px; font-weight: 600; }
.card-head .hint { font-size: 11px; color: var(--text-3); font-weight: 400; }
.card-head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 16px; }
.card-body.tight { padding: 10px 16px 16px; }
.card-body.flush { padding: 0; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* KPI row: Matches sample, Adapt the column count to the available width (Minimum per column 160px). 
   g3 / g4 / g5 The three levels only express "Density level" — Minimum widths are respectively 160 / 180 / 160, 
   The actual column count is left to the browser to decide based on container width, avoid fixed columns being squashed on narrow screens.  */
.g3 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.g5 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
/* ⚠ Same rule as .two-col: ratio tracks must also use minmax(0, Xfr) so a wide table inside cannot blow the track out */
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g-3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.grid > .card { min-width: 0; }

/* Two-column layout (Sample .two-col): 1fr 1fr, Narrower than 1200px Auto single column
   ⚠ Must use minmax(0,1fr): plain 1fr = minmax(auto,1fr), so the min-content of a wide table inside
   blows the track out and spills the card past main's right edge (measured on Unified Workspace / 2-2 / 2-3 / 4-3 / 6-3 / 9-3). */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1200px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.two-col > .card { min-width: 0; }
/* Fix: Adjacent cards within two columns drop the vertical margin (gap Already provided 16px spacing; Otherwise .card+.card margin-top Break stretch etc. High) */
.two-col > .card + .card { margin-top: 0; }

/* Key-value info table (Sample .info-tbl): The left-column label is fixed 120px, the right column adapts */
.info-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.info-tbl td { padding: 9px 16px; border-bottom: 1px solid var(--row-line); }
.info-tbl td:first-child { color: var(--text-3); width: 120px; }
.info-tbl tr:last-child td { border-bottom: none; }

/* Progress Bar (Sample .bar-wrap / .bar): width 80px, High 6px Inline bar of the */
.bar-wrap {
  background: #EEF2F9; height: 6px; border-radius: 4px; overflow: hidden; width: 80px;
  display: inline-block; vertical-align: middle; margin-right: 6px;
}
.bar { height: 100%; background: var(--brand-500); border-radius: 4px; display: block; }
.bar.green { background: var(--success); }
.bar.orange { background: var(--warning); }
.bar.red { background: var(--danger); }

/* ==================== Display page (SaasSample.html)Dedicated ==================== */
/* Sample KPI row: auto-fit Grid; The color bar passes through .green/.red/.orange Modifier class control */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi.green::before { background: var(--success); }
.kpi.red::before { background: var(--danger); }
.kpi.orange::before { background: var(--warning); }
.kpi .kpi-sub { font-size: 11px; color: #93A0BA; margin-top: 6px; }
/* Sample card header .card-title: Title on the left, Description span On the right (and .card-head Coexist without affecting each other) */
.card-title {
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.card-title span { font-size: 11px; color: var(--text-3); font-weight: 400; }
/* Display page badge color tone (Sample blue/green/red/orange/gray, and existing b-* Series coexist) */
.badge.blue { background: #E8F0FF; color: #2563EB; }
.badge.green { background: #E4F7EE; color: #0D8A5A; }
.badge.red { background: #FEECEB; color: #D43A44; }
.badge.orange { background: #FEF3E6; color: #D97706; }
.badge.gray { background: #EEF1F7; color: #6B7794; }

/* -------- Display page action feedback: Loading state / New Row / Report Card -------- */
.btn-loading { opacity: .82; cursor: progress; }
.spin-inline {
  width: 12px; height: 12px; margin-right: 6px; display: inline-block; vertical-align: -1px;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn:not(.btn-primary) .spin-inline { border-color: rgba(15, 23, 42, .22); border-top-color: var(--brand-600); }
/* New Row: highlight on entry, visible at a glance "The one just added" */
tr.row-new { animation: rowFlash 2.2s ease-out; }
@keyframes rowFlash {
  0% { background: #FFF7E0; }
  60% { background: #FFFBF0; }
  100% { background: transparent; }
}
.refresh-note { font-size: 11px; color: var(--text-3); margin-top: -6px; margin-bottom: 12px; }
/* Report Card (Output produced by the generate report action) */
.report-card { border-color: var(--brand-300); box-shadow: 0 2px 10px rgba(27, 76, 140, .10); }
.report-card .report-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 11.5px; color: var(--text-3); margin-bottom: 6px; }
.report-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0 14px; }
.report-kpis .rk { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 8px; padding: 9px 12px; }
.report-kpis .rk label { display: block; font-size: 11px; color: var(--text-3); }
.report-kpis .rk b { font-size: 16px; font-weight: 600; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.report-actions { display: flex; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid > .field.full { grid-column: 1 / -1; }

/* -------- Display page table interaction: Filter Bar / Sort Table Header / Pagination table footer / Empty State / row Click -------- */
.tbl-tools { display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.tbl-tools .input { width: auto; flex: 1 1 200px; max-width: 300px; height: 30px; font-size: 12.5px; }
.tbl-tools .tbl-hint { margin-left: auto; font-size: 11px; color: var(--text-3); white-space: nowrap; }
table.tbl thead th.sortable { cursor: pointer; user-select: none; }
table.tbl thead th.sortable:hover { color: var(--brand-600); }
table.tbl thead th .arrow { margin-left: 4px; font-size: 9px; opacity: .3; }
table.tbl thead th.sorted .arrow { opacity: 1; color: var(--brand-600); }
table.tbl tbody tr.row-click { cursor: pointer; }
table.tbl tbody tr.tbl-empty:hover { background: transparent; }
table.tbl tbody tr.tbl-empty td { padding: 32px 14px; text-align: center; color: var(--text-3); }
.pager.tbl-foot { font-size: 11.5px; }
.tbl-foot .tbl-stat b { color: var(--text-2); font-variant-numeric: tabular-nums; }
/* row Details Dialog */
.detail-kv { display: grid; grid-template-columns: 118px 1fr; gap: 9px 14px; font-size: 12.5px; align-items: baseline; }
.detail-kv dt { color: var(--text-3); }
.detail-kv dd { margin: 0; color: var(--text); word-break: break-word; }
.modal-note { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-3); }
/* Form: Required asterisk */
.field > label .req { color: var(--danger); font-style: normal; margin-left: 2px; }

/* KPI card */
.kpi {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px 16px; box-shadow: var(--sh-1); overflow: hidden; transition: .18s;
}
.kpi:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand-500); }
.kpi.c-danger::before { background: var(--danger); }
.kpi.c-success::before { background: var(--success); }
.kpi.c-warning::before { background: var(--warning); }
.kpi.c-gold::before { background: var(--brand-gold); }
.kpi .kpi-label { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
/* Numeric 20px/600 (Matches sample): Still keep numbers legible after the card narrows */
.kpi .kpi-value { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0; font-variant-numeric: tabular-nums; line-height: 1.25; }
.kpi .kpi-value small { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.kpi .kpi-foot { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.kpi .kpi-foot .up { color: var(--danger); font-weight: 600; }
.kpi .kpi-foot .down { color: var(--success); font-weight: 600; }

/* ============================ Button ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: 8px; font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  transition: .15s; white-space: nowrap; font-weight: 500;
}
.btn:hover { border-color: var(--brand-300); color: var(--brand-600); background: var(--brand-50); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, var(--brand-600), var(--brand-500)); border-color: var(--brand-600); color: #fff; }
.btn-primary:hover { background: linear-gradient(180deg, var(--brand-500), var(--brand-700)); color: #fff; border-color: var(--brand-700); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #B42318; color: #fff; border-color: #B42318; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--brand-600); }
.btn-ghost:hover { background: var(--brand-50); }
.btn-success { background: linear-gradient(180deg, #1DA75A, #12805C); border-color: #12805C; color: #fff; font-weight: 600; }
.btn-success:hover { background: linear-gradient(180deg, #158F4C, #0C6B4E); border-color: #0C6B4E; color: #fff; }
/* The accent-color button on the marketing page: Must be defined in .btn After the base class, otherwise it would be overridden by the base class background */
.btn-white { background: #FFFFFF; color: var(--brand-700); border-color: rgba(17, 74, 140, .28); font-weight: 600; }
.btn-white:hover { background: #E8F0FA; color: var(--brand-700); border-color: rgba(17, 74, 140, .28); }
.btn-gold { background: linear-gradient(180deg, #F0C243, #DFAE2E); border-color: #DFAE2E; color: #3A2B03; font-weight: 700; }
.btn-gold:hover { background: #E0B231; border-color: #C99A20; color: #3A2B03; }
.btn-sm { height: 26px; padding: 0 9px; font-size: 11.5px; border-radius: 6px; }
.btn-block { width: 100%; height: 38px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { height: 46px; font-size: 15px; border-radius: 10px; letter-spacing: .02em; }

/* ============================ Form ============================ */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 550; }
.field .tip { font-size: 11px; color: var(--text-3); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--border-strong);
  border-radius: 8px; font-size: 13px; font-family: inherit; background: var(--surface); color: var(--text);
  transition: .15s; outline: none;
}
.textarea { height: auto; padding: 8px 11px; resize: vertical; min-height: 68px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(27, 76, 140, .12); }
.input::placeholder { color: #A9B6C7; }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C8DA6' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }

.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.toolbar .input, .toolbar .select { width: auto; min-width: 140px; height: 32px; font-size: 12.5px; }
.toolbar .spacer { flex: 1; }
.field-row { display: flex; gap: 12px; }
.field-row > * { flex: 1; }

/* ============================ Table ============================ */
/* Aligned Sample .tbl: Table Header #FAFBFE, Row line #F1F4FA, Hover #FAFCFF */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
table.tbl thead th {
  background: var(--th-bg); color: var(--text-3); font-weight: 600; font-size: 11.5px;
  text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; letter-spacing: .02em;
  position: sticky; top: 0; z-index: 2;
}
table.tbl tbody td { padding: 10px 14px; border-bottom: 1px solid var(--row-line); vertical-align: middle; }
table.tbl tbody tr:hover { background: var(--row-hover); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
table.tbl td.mono { font-family: var(--font-num); font-size: 12px; }
table.tbl td .cell-title { font-weight: 550; color: var(--text); }
table.tbl td .cell-sub { font-size: 11px; color: var(--text-3); }
table.tbl tr.row-link { cursor: pointer; }
.empty-state { padding: 44px 16px; text-align: center; color: var(--text-3); font-size: 12.5px; }
.empty-state svg { opacity: .35; margin-bottom: 10px; }

.pager { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
.pager .right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pager .pg { min-width: 28px; height: 28px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); cursor: pointer; font-size: 12px; color: var(--text-2); }
.pager .pg:hover:not(:disabled) { border-color: var(--brand-300); color: var(--brand-600); }
.pager .pg.active { background: var(--brand-500); border-color: var(--brand-500); color: #fff; font-weight: 600; }
.pager .pg:disabled { opacity: .45; cursor: not-allowed; }

/* ============================ Row Actions Column ============================ */
table.tbl thead th.th-act { text-align: right; }
table.tbl tbody td.td-act { text-align: right; white-space: nowrap; }
.row-act {
  display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 9px;
  margin-left: 6px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface);
  color: var(--text-2); font-size: 11.5px; font-weight: 600; cursor: pointer; transition: .15s; font-family: inherit;
}
.row-act:hover { border-color: var(--brand-300); color: var(--brand-600); background: var(--brand-50); }
.row-act:disabled { opacity: .6; cursor: progress; }
.row-act--danger { color: var(--danger); border-color: var(--danger-border); background: var(--danger-bg); }
.row-act--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.row-act--running { color: #fff; border-color: #B45309; background: #D97706; }
.row-act--running:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

/* In-House "Owner / Owner" Dropdown: Options and "System Administration ·   Users & Roles" Same-origin */
table.tbl .cell-select {
  width: 100%; min-width: 104px; max-width: 150px;
  height: 26px; padding: 0 6px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text);
  font-size: 12px; font-family: inherit; cursor: pointer; transition: .15s;
}
table.tbl .cell-select:hover { border-color: var(--brand-300); }
table.tbl .cell-select:focus { outline: 2px solid var(--brand-100); outline-offset: 0; border-color: var(--brand-300); }
.row-act--done { opacity: .65; cursor: default; }
.row-act--done:hover { border-color: var(--border-strong); color: var(--text-2); background: var(--surface); }


/* ============================ Marker / Badge ============================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; line-height: 1;
}
.badge.b-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.badge.b-success { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.badge.b-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.badge.b-info { background: var(--info-bg); color: var(--info); border-color: var(--info-border); }
.badge.b-neutral { background: var(--neutral-bg); color: var(--neutral); border-color: var(--border); }
.badge.b-gold { background: #FDF6E3; color: #8A6D0B; border-color: #EBD9A3; }
.badge.plain { background: transparent; border-color: var(--border-strong); color: var(--text-2); font-weight: 500; }

.tag-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); font-size: 11px; color: var(--text-2); }
.dot-ind { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot-ind.d-red { background: var(--danger); }
.dot-ind.d-green { background: var(--success); }
.dot-ind.d-amber { background: #DC9A00; }
.dot-ind.d-blue { background: var(--brand-500); }
.dot-ind.d-gray { background: #94A3B8; }

.level-cell { display: flex; align-items: center; gap: 7px; }
.risk-bar { height: 5px; border-radius: 4px; background: var(--surface-3); overflow: hidden; width: 64px; flex: none; }
.risk-bar i { display: block; height: 100%; border-radius: 4px; }

/* ============================ Chart ============================ */
.chart { width: 100%; display: block; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-2); margin-top: 8px; }
.chart-legend .lg { display: flex; align-items: center; gap: 6px; }
.chart-legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.spark { display: block; }

/* Horizontal bar */
.hbars { display: flex; flex-direction: column; gap: 11px; }
.hbar-row { display: grid; grid-template-columns: 118px 1fr 62px; align-items: center; gap: 10px; font-size: 12px; }
.hbar-row .lbl { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-row .track { height: 8px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.hbar-row .track i { display: block; height: 100%; border-radius: 5px; transition: width .5s ease; }
.hbar-row .val { text-align: right; font-family: var(--font-num); font-size: 11.5px; color: var(--text-2); font-weight: 600; }

/* Donut chart */
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut-center { font-size: 11px; fill: var(--text-3); }
.donut-value { font-size: 20px; font-weight: 700; fill: var(--text); }

/* ============================ Drawer / Dialog / Tip ============================ */
.overlay { position: fixed; inset: 0; background: rgba(8, 24, 46, .42); z-index: 90; animation: fade .16s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 620px; max-width: 94vw; background: var(--surface);
  z-index: 95; display: flex; flex-direction: column; box-shadow: var(--sh-3); animation: slidein .22s ease;
}
@keyframes slidein { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0; font-size: 14.5px; }
.drawer-head .sub { font-size: 11.5px; color: var(--text-3); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px; }
.drawer-foot { padding: 13px 18px; border-top: 1px solid var(--border); display: flex; gap: 9px; justify-content: flex-end; background: var(--surface-2); }

.modal { position: fixed; z-index: 95; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 520px; max-width: 94vw; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; }
.modal-head { padding: 15px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; font-weight: 650; }
.modal-body { padding: 18px; max-height: 62vh; overflow-y: auto; }
.modal-foot { padding: 13px 18px; border-top: 1px solid var(--border); display: flex; gap: 9px; justify-content: flex-end; background: var(--surface-2); }

.toasts { position: fixed; top: 16px; right: 16px; z-index: 120; display: flex; flex-direction: column; gap: 9px; }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand-500);
  border-radius: var(--r); box-shadow: var(--sh-3); padding: 11px 15px; min-width: 260px; max-width: 400px;
  font-size: 12.5px; animation: slidein .2s ease;
}
.toast.ok { border-left-color: var(--success); }
.toast.err { border-left-color: var(--danger); }
.toast.warn { border-left-color: #DC9A00; }
.toast b { display: block; margin-bottom: 2px; font-size: 13px; }

/* ============================ Description List / Section ============================ */
.desc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 18px; }
.desc.one { grid-template-columns: 1fr; }
.desc .di { display: flex; flex-direction: column; gap: 2px; }
.desc .di label { font-size: 11px; color: var(--text-3); }
.desc .di span { font-size: 12.5px; color: var(--text); word-break: break-all; }
.desc .di span.mono { font-family: var(--font-num); }

.section-title { font-size: 12px; font-weight: 650; color: var(--text-2); margin: 20px 0 10px; padding-left: 9px; border-left: 3px solid var(--brand-500); line-height: 1.2; }
.section-title:first-child { margin-top: 0; }

.callout { border-radius: var(--r); padding: 12px 14px; font-size: 12.5px; line-height: 1.75; border: 1px solid; }
.callout.info { background: var(--info-bg); border-color: var(--info-border); color: #0B4A8F; }
.callout.warn { background: var(--warning-bg); border-color: var(--warning-border); color: #7A3D06; }
.callout.danger { background: var(--danger-bg); border-color: var(--danger-border); color: #8F1D16; }
.callout.ok { background: var(--success-bg); border-color: var(--success-border); color: #0A5C42; }
.callout b { font-weight: 650; }

.kv-list { display: flex; flex-direction: column; gap: 0; }
.kv-list .kv { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 12.5px; }
.kv-list .kv:last-child { border-bottom: none; }
.kv-list .kv label { flex: none; width: 104px; color: var(--text-3); font-size: 12px; }

.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 5px; bottom: 5px; width: 2px; background: var(--border); }
.timeline .tl { position: relative; padding-bottom: 15px; }
.timeline .tl::before { content: ""; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand-300); }
.timeline .tl.done::before { background: var(--success); border-color: var(--success); }
.timeline .tl.cur::before { background: var(--brand-500); border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(27, 76, 140, .14); }
.timeline .tl b { font-size: 12.5px; display: block; }
.timeline .tl span { font-size: 11.5px; color: var(--text-3); }

.rule-card { border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; background: var(--surface-2); }
.rule-card + .rule-card { margin-top: 9px; }
.rule-card .rc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.rule-card .rc-head b { font-size: 12.5px; }
.rule-card .rc-body { font-size: 11.5px; color: var(--text-2); line-height: 1.75; }

.metric-tile { border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; background: var(--surface); position: relative; overflow: hidden; }
.metric-tile .mt-name { font-size: 11.5px; color: var(--text-3); }
.metric-tile .mt-val { font-size: 19px; font-weight: 700; font-family: var(--font-num); margin: 4px 0 3px; }
.metric-tile .mt-foot { font-size: 10.5px; color: var(--text-3); display: flex; justify-content: space-between; gap: 8px; }
.metric-tile.lv-Critical { background: linear-gradient(180deg, #FFF 60%, var(--danger-bg)); border-color: var(--danger-border); }
.metric-tile.lv-Alert { background: linear-gradient(180deg, #FFF 60%, var(--warning-bg)); border-color: var(--warning-border); }
.metric-tile.lv-Watch { background: linear-gradient(180deg, #FFF 60%, var(--info-bg)); border-color: var(--info-border); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab { padding: 9px 14px; font-size: 12.5px; color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 550; }
.tab:hover { color: var(--brand-600); }
.tab.active { color: var(--brand-600); border-bottom-color: var(--brand-500); font-weight: 650; }

.md-report { font-size: 13px; line-height: 1.9; color: var(--text-2); }
.md-report h1 { font-size: 17px; color: var(--text); margin: 0 0 12px; }
.md-report h2 { font-size: 14px; color: var(--text); margin: 20px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.md-report h3 { font-size: 13px; color: var(--text); margin: 14px 0 6px; }
.md-report table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 8px 0 14px; }
.md-report th { background: var(--surface-2); text-align: left; padding: 7px 10px; border: 1px solid var(--border); font-weight: 600; color: var(--text-2); }
.md-report td { padding: 7px 10px; border: 1px solid var(--border); }
.md-report strong { color: var(--brand-700); }
.md-report ul { padding-left: 20px; margin: 6px 0; }
.md-report li { margin-bottom: 4px; }
.md-report blockquote { margin: 8px 0; padding: 8px 12px; background: var(--brand-50); border-left: 3px solid var(--brand-500); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-2); }

.loading-inline { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 40px; color: var(--text-3); font-size: 12.5px; }
.spinner { width: 15px; height: 15px; border: 2px solid var(--border-strong); border-top-color: var(--brand-500); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.footer-note { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-3); flex-wrap: wrap; }
.footer-note .right { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; }

.skeleton { background: linear-gradient(90deg, #EEF2F7 25%, #F7F9FC 37%, #EEF2F7 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 6px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.text-right { text-align: right; }
.text-muted { color: var(--text-3); }
.nowrap { white-space: nowrap; }
/* Monospaced numbering on display pages (Sample .mono Definition: monospace font + Grayish-blue small font) */
.mono { font-family: var(--font-num); font-size: 11.5px; color: #42506E; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-10 { gap: 10px; }

/* ============================ Responsive ============================ */
/* KPI The row itself is already auto-fit Adaptive, only the minimum column width is enforced here as a fallback, avoid being squeezed until unreadable on narrow screens */
@media (max-width: 1400px) { .g5 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
@media (max-width: 1180px) {
  .g3, .g4, .g5 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .g-2-1, .g-1-2, .g-3-2 { grid-template-columns: 1fr; }
  .login-hero { flex: 1 1 46%; padding: 34px; }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 64px; }
  .side-brand .brand-stack, .nav-group-title, .nav-item span.txt, .side-foot { display: none; }
  .side-nav .nav-group[data-group] > .nav-group-title { display: none; }  /* That sits over the collapsible title flex, On narrow screens keep only the dot */
  .nav-group.collapsed > .nav-item { display: flex; }   /* Narrow screens hide the group titles, the item must always be visible */
  .nav-item { justify-content: center; padding-left: 14px; }
  .g2, .g3, .g4, .g5 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .login-hero { display: none; }
  .login-panel { flex: 1; }
  .desc { grid-template-columns: 1fr; }
}

/* ============================ License & Entitlement ============================ */
.lic-slot { flex: none; }
.lic-slot:empty { display: none; }
.lic-banner {
  display: flex; align-items: center; gap: 10px; margin: 12px 20px 0; padding: 10px 14px;
  border-radius: var(--r); border: 1px solid; font-size: 12.5px; line-height: 1.65;
}
.lic-banner.warn { background: var(--warning-bg); border-color: var(--warning-border); color: #7A3D06; }
.lic-banner.danger { background: var(--danger-bg); border-color: var(--danger-border); color: #8F1D16; }
.lic-banner.info { background: var(--info-bg); border-color: var(--info-border); color: #0B4A8F; }
.lic-banner b { font-weight: 650; }
.lic-banner .lb-icon { flex: none; display: flex; align-items: center; }
.lic-banner .lb-body { flex: 1 1 auto; }
.lic-banner .lb-actions { flex: none; display: flex; gap: 8px; }

.lic-badge {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  padding: 4px 11px; font-size: 11.5px; font-weight: 650; border: 1px solid;
}
.lic-badge.trial { background: var(--warning-bg); color: #8A5B08; border-color: var(--warning-border); }
.lic-badge.paid { background: #FDF6E3; color: #8A6D0B; border-color: #EBD9A3; }
.lic-badge.danger { background: var(--danger-bg); color: #8F1D16; border-color: var(--danger-border); }
.lic-badge.ok { background: var(--success-bg); color: #0A5C42; border-color: var(--success-border); }

.lic-fp {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
  background: var(--surface-3); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px;
  user-select: all;
}

/* ===== Bulk import wizard (Excel Import Data Source) ===== */
.modal-wide { width: 920px; }
.import-wizard { font-size: 13px; }
.iw-steps { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 0 18px; }
.iw-step { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-3); font-size: 12.5px; min-width: 78px; }
.iw-step .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); display: block; }
.iw-step.active { color: var(--text); font-weight: 650; }
.iw-step.active .dot { background: var(--brand-500); }
.iw-step.done .dot { background: var(--brand-300, #5B93D6); }
.iw-line { flex: 1 1 40px; height: 1px; background: var(--border); margin-bottom: 20px; }
.iw-drop { border: 1px dashed var(--border-strong); border-radius: 10px; padding: 46px 16px; text-align: center; cursor: pointer; background: var(--surface-2); transition: border-color .15s, background .15s; }
.iw-drop:hover, .iw-drop.over { border-color: var(--brand-500); background: var(--brand-50); }
.iw-ico { font-size: 26px; color: var(--text-3); line-height: 1; }
.iw-t1 { margin: 8px 0 4px; font-size: 14px; color: var(--text); }
.iw-t2 { margin: 0; font-size: 12.5px; color: var(--text-3); }
.iw-tip { margin-top: 15px; font-size: 12.5px; color: var(--text-2); }
.iw-tip a { color: var(--info); text-decoration: none; font-weight: 650; }
.iw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.iw-hint { font-size: 12px; color: var(--text-3); margin: 10px 0 6px; }
.iw-prev-wrap { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.iw-preview { width: 100%; font-size: 12px; }
.iw-preview thead th { position: sticky; top: 0; z-index: 1; }
.iw-map { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.iw-run { padding: 30px 0; text-align: center; color: var(--text-2); }
.iw-bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; margin: 0 0 13px; }
.iw-bar > i { display: block; height: 100%; background: var(--brand-500); }
.iw-done { padding: 26px 0; text-align: center; }
.iw-ok { width: 46px; height: 46px; line-height: 46px; border-radius: 50%; background: var(--success-bg); color: var(--success); font-size: 22px; margin: 0 auto 12px; }

/* ---- Data Sources: Search Bar / Toolbar / Inline link button / Dialog (Refer to the data source management reference draft) ---- */
.ds-query { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.ds-query label { font-size: 12.5px; color: var(--text-dim, #5b6b7b); white-space: nowrap; }
.ds-query .input { width: 260px; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.tbl-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.tbl-toolbar .left { display: flex; gap: 8px; }
.icon-btn { border: 1px solid var(--border, #d8e0e8); background: #fff; color: var(--text-dim, #5b6b7b); border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 15px; line-height: 1; }
.icon-btn:hover { color: var(--primary, #2563eb); border-color: var(--primary, #2563eb); }
.row-act--link { background: none; border: none; box-shadow: none; padding: 2px 4px; color: var(--primary, #2563eb); }
.row-act--link.row-act--danger { color: var(--danger, #d64545); }

/* ---- The row action column is fixed: When scrolling horizontally "Details / Edit / Delete" Always visible ----
   v1.5.7: .table-wrap Already a horizontally scrolling container, and table.tbl Use border-collapse: separate, 
   sticky Won't lose the border. Table Header/row/hover/The four background colors for new rows each cover, avoid showing through the cells underneath.  */
table.tbl thead th.th-act {
  position: sticky; right: 0; top: 0; z-index: 3;
  background: var(--th-bg);
  box-shadow: inset 8px 0 8px -8px rgba(15, 23, 42, .18);
}
table.tbl tbody td.td-act {
  position: sticky; right: 0; z-index: 2;
  background: var(--surface);
  box-shadow: inset 8px 0 8px -8px rgba(15, 23, 42, .12);
}
table.tbl tbody tr:hover td.td-act { background: var(--row-hover); }
table.tbl tbody tr.row-new td.td-act { background: var(--surface); }
.row-chk { width: 14px; height: 14px; cursor: pointer; accent-color: var(--primary, #2563eb); }
.qmark { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-left: 4px; border: 1px solid var(--border, #d8e0e8); border-radius: 50%; font-size: 10px; color: var(--text-dim, #5b6b7b); cursor: help; font-style: normal; }
.pwd-wrap { position: relative; display: flex; width: 100%; }
.pwd-wrap .input { flex: 1; padding-right: 48px; }
.pwd-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--primary, #2563eb); cursor: pointer; font-size: 12px; }
.ds-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.ds-detail .kv { display: flex; gap: 8px; font-size: 13px; align-items: baseline; }
.ds-detail .kv label { color: var(--text-dim, #5b6b7b); white-space: nowrap; }
.ds-detail .kv span { word-break: break-all; }

/* ---- 3.1 Data Asset Detail Section: Tag Page min groups ---- */
.dt-tabs { flex-wrap: wrap; }
.dt-pane { display: none; }
.dt-pane.active { display: block; }
.dt-bar { margin-top: 2px; }

/* ---- Page-head switcher panes (bar reuses .tabs/.tab; toggled by initPageTabs in showcase.js) ---- */
.ph-pane { display: none; }
.ph-pane.active { display: block; }

/* Unified CTA buttons: yellow background, dark-blue hover (user decision 2026-10-22).
   Placed last so it overrides the variant definitions above. .btn-danger / .btn-ghost keep their semantics. */
.btn-primary, .btn-success, .btn-white, .btn-gold {
  background: linear-gradient(180deg, #F5CB54, #E8B92F); border-color: #DFAE2E; color: #3A2B03; font-weight: 700;
}
.btn-primary:hover, .btn-success:hover, .btn-white:hover, .btn-gold:hover {
  background: linear-gradient(180deg, #F6CF5E, #EFC03A); border-color: #C99A20; color: #3A2B03;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(240, 194, 67, .40);
}

/* Colored icon chips shared by cap-card / home-entry / plan rows (2026-10-22) */
.cap-ico { flex: none; width: 38px; height: 38px; border-radius: 9px; color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.plan-ico { display: inline-flex; width: 18px; height: 18px; border-radius: 4px; color: #FFFFFF; align-items: center; justify-content: center; margin-right: 6px; vertical-align: -4px; }
.word-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.wc-tag { font-size: 12.5px; font-weight: 600; color: #FFFFFF; padding: 5px 13px; border-radius: 999px; }
.saas-line { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--brand-600); }
.saas-ico { flex: none; display: inline-flex; width: 24px; height: 24px; border-radius: 6px; color: #FFFFFF; align-items: center; justify-content: center; }
.svc-def { font-size: 13.5px; color: var(--text-2); margin: 8px 0 0; }
.serve-note { font-size: 13.5px; font-weight: 600; color: var(--text); margin-top: 12px; }
