/* Local visual refresh. Presentation only; module authorization remains server-owned. */
.workspace-refresh {
  --work-bg: #f5f7f6;
  --work-paper: #fff;
  --work-ink: #1d2924;
  --work-muted: #697970;
  --work-line: #dce4df;
  --work-green: #216b57;
  --work-mint: #e3f1e9;
  --work-sidebar: #eef3f0;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--work-ink);
  background: var(--work-bg);
}
.workspace-refresh :is(button, input, select, textarea) { font-family: inherit; }
.workspace-refresh [hidden] { display: none !important; }
.workspace-refresh :is(a, button, summary, input, select):focus-visible { outline: 2px solid #216b57; outline-offset: 3px; }

/* A shared 64px identity bar, with the module switch immediately after the brand. */
.workspace-global-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 24px; border-bottom: 1px solid var(--work-line); background: #fff; }
.workspace-global-brand { display: flex; gap: 10px; align-items: center; color: var(--work-ink); text-decoration: none; flex-shrink: 0; font-size: 20px; }
.workspace-global-brand img { width: 36px; height: 36px; object-fit: contain; }
.workspace-global-account { margin-left: auto; }
.workspace-module-switch, .workspace-global-header .module-application-menu { position: relative; border-left: 1px solid var(--work-line); padding-left: 24px; }
.workspace-module-switch > summary, .workspace-global-header .module-application-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 600; color: var(--work-ink); padding: 8px 0; }
.workspace-module-switch > summary::-webkit-details-marker { display: none; }
.workspace-module-switch .module-menu-panel, .workspace-global-header .module-application-menu .module-menu-panel { left: 12px; right: auto; }
.workspace-refresh .module-menu-panel { border: 1px solid var(--work-line); border-radius: 10px; box-shadow: 0 12px 32px #1d292419; }
.workspace-global-header .identity { border: 0; background: transparent; padding: 5px; }
.workspace-global-header .identity-avatar { width: 34px; height: 34px; background: var(--work-green); }
.workspace-global-header .identity-copy strong { font-size: 14px; }
.workspace-global-header .identity-copy small { font-size: 11px; }

/* Login is an inline form rather than a modal. Brand expression stays on the left. */
.workspace-refresh #login-overlay.login-experience { position: relative; inset: auto; display: block; overflow: visible; min-height: 100dvh; color: var(--work-ink); background: var(--work-bg); --login-moon: #1d2924; --login-mist: #697970; --login-line: #dce4df; --login-copper: #216b57; --login-copper-hover: #185441; --login-danger: #ae403a; --portal-copper-bright: #216b57; --portal-mist: #697970; }
.workspace-refresh #login-overlay::before, .workspace-refresh #login-overlay::after { display: none; }
.workspace-refresh #login-overlay .portal-shell-content { width: 100%; min-height: 100dvh; padding: 0; }
.workspace-refresh #login-overlay .portal-topbar { display: flex; height: 80px; padding: 0 32px; gap: 24px; border-bottom: 0; background: var(--work-bg); box-shadow: none; backdrop-filter: none; }
.workspace-refresh #login-overlay .portal-brand { gap: 10px; }
.workspace-refresh #login-overlay .login-identity-mark { width: 40px; height: 40px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.workspace-refresh #login-overlay .login-identity-name { color: var(--work-ink); font-size: 22px; letter-spacing: 0; }
.workspace-refresh #login-overlay .login-identity-meta { color: var(--work-muted); font-size: 11px; letter-spacing: 0; }
.workspace-refresh #login-overlay .portal-account-actions { margin-left: auto; }
.workspace-refresh #login-overlay .environment-label { display: none; }
.workspace-refresh #login-overlay .portal-login-entry { min-height: 36px; padding: 6px 12px; border: 1px solid var(--work-line); color: var(--work-green); background: transparent; border-radius: 8px; }
.workspace-refresh #login-overlay .portal-navigation { margin: 0 auto; gap: 4px; }
.workspace-refresh #login-overlay .portal-navigation-link, .workspace-refresh #login-overlay .portal-nav-app { color: var(--work-muted); background: transparent; border: 0; border-radius: 7px; font-size: 13px; font-weight: 500; padding: 10px 12px; letter-spacing: 0; text-decoration: none; }
.workspace-refresh #login-overlay .portal-navigation-link:hover, .workspace-refresh #login-overlay .portal-nav-app:hover { color: var(--work-green); background: var(--work-mint); }
.workspace-refresh #login-overlay .portal-main { max-width: 1560px; margin: 0 auto; padding: 34px 40px 0; }
.workspace-refresh #login-overlay .portal-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); align-items: center; gap: clamp(36px, 5vw, 88px); min-height: calc(100dvh - 200px); padding: 0; width: 100%; pointer-events: auto; }
.workspace-refresh #login-overlay .portal-hero-copy { position: relative; display: flex; flex-direction: column; align-self: stretch; justify-content: flex-start; overflow: hidden; width: 100%; min-height: 550px; padding: 52px 40px 38px; border-radius: 16px; background: #154e3e; }
.workspace-refresh #login-overlay .portal-hero .login-kicker { position: relative; z-index: 3; color: #d6e8df; font-family: inherit; line-height: 1.5; font-size: 15px; letter-spacing: 0; margin: 0 0 28px; pointer-events: none; }
.workspace-refresh #login-overlay .portal-hero .login-headline { position: relative; z-index: 3; font-family: "STZhongsong", "Songti SC", "Noto Serif SC", serif; font-size: clamp(38px, 3.7vw, 60px); line-height: 1.45; letter-spacing: -.04em; margin: 0; color: #fff; max-width: 100%; pointer-events: none; }
.workspace-refresh #login-overlay .portal-hero .login-headline span { color: inherit; }
.workspace-refresh #login-overlay .portal-hero .login-subtitle { position: relative; z-index: 3; color: #c8ded2; margin-top: 16px; font-size: 14px; pointer-events: none; max-width: 100%; }
.workspace-refresh #login-overlay .portal-hero-actions, .workspace-refresh #login-overlay .portal-particle-note { display: none; }
.workspace-refresh #login-overlay .portal-trust-line { position: relative; z-index: 3; margin-top: auto; padding-top: 220px; color: #d8e9df; font-family: inherit; font-size: 13px; letter-spacing: 0; pointer-events: none; }
.workspace-refresh #login-overlay .portal-trust-line span + span::before { background: #86ac99; width: 1px; height: 14px; margin: 0 16px; }
.workspace-refresh #login-overlay .login-particle-stage { inset: auto 0 48px auto; width: 75%; height: 370px; min-height: 0; transform: none; filter: none; z-index: 1; }
.workspace-refresh #login-overlay .login-particle-atmosphere { display: none; }
.workspace-refresh #login-overlay .login-particle-fallback { width: 200px; right: 12%; opacity: .4; }
.workspace-refresh #login-overlay .portal-login-backdrop { position: static; inset: auto; display: block; width: 100%; padding: 0; background: transparent; backdrop-filter: none; pointer-events: auto; }
.workspace-refresh #login-overlay .portal-login-scrim, .workspace-refresh #login-overlay .portal-modal-close { display: none; }
.workspace-refresh #login-overlay .login-form { width: 100%; max-width: 440px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; margin: 0 auto; transform: none; }
.workspace-refresh #login-overlay .login-form-heading { margin-bottom: 32px; }
.workspace-refresh #login-overlay .login-form-heading h2 { margin: 0 0 10px; color: var(--work-ink); font: 700 30px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
.workspace-refresh #login-overlay .login-hint { color: var(--work-muted); font-size: 14px; line-height: 1.7; }
.workspace-refresh #login-overlay .form-group { margin-bottom: 24px; }
.workspace-refresh #login-overlay .form-group label { display: block; color: var(--work-ink); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.workspace-refresh #login-overlay .login-field-shell { border: 1px solid #cbd7d0; border-radius: 8px; background: #fff; box-shadow: none; }
.workspace-refresh #login-overlay .login-field-shell input { width: 100%; min-height: 50px; padding: 12px 46px 12px 14px; color: var(--work-ink); border: 0; background: transparent; border-radius: 8px; font-size: 15px; box-shadow: none; }
.workspace-refresh #login-overlay .login-field-shell input::placeholder { color: #89968e; }
.workspace-refresh #login-overlay .password-toggle { color: #78877f; }
.workspace-refresh #login-overlay .login-btn { margin-top: 8px; height: 50px; border: 1px solid var(--work-green); border-radius: 8px; color: white; background: var(--work-green); font-size: 16px; box-shadow: none; }
.workspace-refresh #login-overlay .login-btn:hover { background: #185441; }
.workspace-refresh #login-overlay .login-error { color: #ae403a; font-size: 13px; }
.workspace-login-help { text-align: center; color: var(--work-muted); font-size: 13px; margin: 22px 0 0; }
.workspace-refresh #login-overlay .login-footer { position: static; display: flex; justify-content: space-between; padding: 24px 40px; color: var(--work-muted); font-size: 11px; }
.workspace-refresh #login-overlay .login-particle-health { display: none; }
.workspace-refresh #login-overlay .portal-hero { min-height: min(680px, calc(100dvh - 200px)); }
.workspace-refresh #login-overlay .portal-login-backdrop { align-self: center; height: auto; }
.workspace-refresh #login-overlay .login-particle-stage.is-ready .login-particle-fallback { opacity: 0; }
.workspace-refresh #login-overlay .login-footer { background: transparent; border: 0; }
.workspace-refresh #login-overlay .login-headline { text-shadow: none; }
.workspace-refresh #login-overlay .login-kicker::before, .workspace-refresh #login-overlay .login-form::before { display: none; }
.workspace-refresh #login-overlay .login-kicker { padding-left: 0; }

/* Authenticated home: the same frame as the ledger, without the retired task module. */
.workspace-refresh #login-overlay.is-authenticated .portal-topbar { height: 64px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--work-line); }
.workspace-refresh #login-overlay.is-authenticated .login-identity-mark { width: 36px; height: 36px; }
.workspace-refresh #login-overlay.is-authenticated .login-identity-name { font-size: 20px; }
.workspace-refresh #login-overlay.is-authenticated .login-identity-meta { display: none; }
.workspace-refresh #login-overlay.is-authenticated .portal-navigation { position: fixed; top: 64px; bottom: 0; left: 0; width: 224px; margin: 0; padding: 26px 12px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; background: var(--work-sidebar); border-right: 1px solid var(--work-line); overflow-y: auto; }
.workspace-refresh #login-overlay.is-authenticated .portal-navigation-link, .workspace-refresh #login-overlay.is-authenticated .portal-nav-app { display: block; flex: none; margin: 0; width: 100%; min-height: 44px; padding: 12px 16px; text-align: left; color: var(--work-ink); font-size: 14px; white-space: normal; }
.workspace-refresh #login-overlay.is-authenticated .portal-navigation-link.is-active { background: #dceee3; color: var(--work-green); font-weight: 650; }
.workspace-refresh #login-overlay.is-authenticated .portal-app-navigation { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
.workspace-refresh #login-overlay.is-authenticated .portal-navigation-link::after { display: none; }
.workspace-refresh #login-overlay.is-authenticated .portal-main { margin: 0 0 0 224px; width: auto; max-width: none; padding: 36px 40px; }
.workspace-refresh #login-overlay.is-authenticated .portal-hero { display: block; min-height: 0; margin: 0 0 32px; }
.workspace-refresh #login-overlay.is-authenticated .portal-hero-copy { min-height: 0; display: block; padding: 0; width: 100%; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.workspace-refresh #login-overlay.is-authenticated .portal-hero .login-kicker { color: var(--work-muted); margin-bottom: 10px; font: 12px/1.5 "Segoe UI", "Microsoft YaHei", sans-serif; }
.workspace-refresh #login-overlay.is-authenticated .portal-hero .login-headline { font: 650 28px/1.5 "Segoe UI", "Microsoft YaHei", sans-serif; color: var(--work-ink); letter-spacing: 0; }
.workspace-refresh #login-overlay.is-authenticated .portal-hero .login-subtitle { color: var(--work-muted); margin: 8px 0 0; font-size: 14px; }
.workspace-refresh #login-overlay.is-authenticated .portal-trust-line, .workspace-refresh #login-overlay.is-authenticated .login-particle-stage, .workspace-refresh #login-overlay.is-authenticated .login-footer { display: none; }
.workspace-refresh #login-overlay .portal-user-account summary { border: 0; background: transparent; }
.workspace-refresh #login-overlay .portal-user-account { --account-surface: #fff; --account-line: #dce4df; --account-text: #1d2924; --account-muted: #697970; --account-accent: #216b57; --account-danger: #ae403a; }
.workspace-refresh #login-overlay .portal-account-menu { box-shadow: 0 12px 32px #1d292419; }
.workspace-refresh #login-overlay .portal-account-menu > a:hover { background: #e3f1e9; }
.workspace-refresh #login-overlay .portal-user-account summary strong { color: var(--work-ink); font-size: 14px; }
.workspace-refresh #login-overlay .portal-user-account summary small { color: var(--work-muted); }
.workspace-refresh #login-overlay .portal-user-avatar { border: 0; border-radius: 50%; background: var(--work-green); color: #fff; width: 34px; height: 34px; }
.workspace-refresh #portal-switch-links { display: grid; }
.workspace-refresh #portal-switch-links .workspace-switch-link { padding: 12px; font-size: 14px; color: var(--work-ink); background: transparent; border: 0; border-radius: 7px; text-decoration: none; text-align: left; }
.workspace-refresh #portal-switch-links .workspace-switch-link:hover { background: var(--work-mint); color: var(--work-green); }
.workspace-refresh #portal-switch-links .workspace-switch-link:disabled { opacity: .6; }
.workspace-home-content { width: 100%; max-width: none; }
.workspace-section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 20px; }
.workspace-home-content h2 { margin: 0; font: 650 18px/1.5 "Segoe UI", "Microsoft YaHei", sans-serif; }
.workspace-home-content p { margin: 6px 0 0; color: var(--work-muted); font-size: 13px; }
#workspace-app-count { font-size: 12px; color: var(--work-muted); white-space: nowrap; }
.workspace-app-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.workspace-refresh #login-overlay .workspace-app-card { display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: start; gap: 20px; min-height: 186px; padding: 28px; border: 1px solid var(--work-line); border-radius: 12px; background: #fff; color: var(--work-ink); text-decoration: none; text-align: left; transition: border-color 150ms, box-shadow 150ms; }
.workspace-refresh #login-overlay .workspace-app-card:hover { border-color: #9abbab; box-shadow: 0 4px 20px #1d292407; }
.workspace-app-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; color: var(--work-green); background: #edf5f0; font-size: 14px; font-weight: 650; }
.workspace-app-copy { display: grid; gap: 9px; padding-top: 2px; }
.workspace-app-copy strong { font-size: 18px; font-weight: 650; }
.workspace-app-copy > span { color: var(--work-muted); font-size: 13px; line-height: 1.7; }
.workspace-app-enter { grid-column: 2; color: var(--work-green); font-size: 13px; font-weight: 600; }
.workspace-app-card.is-pending { opacity: .65; cursor: default; }
.workspace-home-management { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 28px; background: #fff; border: 1px solid var(--work-line); border-radius: 12px; margin-top: 24px; }
.workspace-home-management a { color: var(--work-green); font-size: 13px; text-decoration: none; white-space: nowrap; }
.workspace-home-management a span { margin-left: 12px; }
.workspace-home-note { display: flex; gap: 12px; align-items: center; padding-top: 38px; color: var(--work-muted); font-size: 13px; }
.workspace-home-note img { width: 32px; height: 32px; opacity: .65; }
.workspace-home-note small { display: block; margin-top: 4px; font-size: 11px; color: #859289; }
.workspace-home-empty, .workspace-home-error { padding: 28px; border: 1px solid var(--work-line); border-radius: 10px; background: #fff; }

/* Only the live module adopts this skin; preserve its handlers and column preferences. */
.workspace-refresh.live-sample-page { --sample-page: #f5f7f6; --sample-ink: #1d2924; --sample-line: #dce4df; --sample-accent: #216b57; --sample-muted: #697970; font-size: 14px; }
.workspace-refresh .live-shell { min-height: calc(100dvh - 64px); }
.workspace-refresh .live-shell .sidebar { top: 64px; width: 224px; background: var(--work-sidebar); color: var(--work-ink); box-shadow: none; border-right: 1px solid var(--work-line); }
.workspace-back { display: flex; gap: 10px; align-items: center; padding: 24px 24px 8px; color: var(--work-ink); text-decoration: none; font-size: 14px; }
.workspace-refresh .live-shell .sidebar nav { padding: 12px; }
.workspace-refresh .live-shell .nav-group-title { font-size: 11px; font-weight: 500; letter-spacing: 0; padding-top: 22px; color: #7a8980; }
.workspace-refresh .live-shell .nav { color: var(--work-ink); font-size: 14px; min-height: 44px; border-radius: 7px; gap: 12px; }
.workspace-refresh .live-shell .nav:hover { background: #e2ebe5; color: var(--work-green); }
.workspace-refresh .live-shell .nav.is-active { background: #dceee3; box-shadow: none; color: var(--work-green); font-weight: 650; }
.workspace-refresh .live-shell .nav > span { color: inherit; }
.workspace-refresh .live-shell .main { margin-left: 224px; }
.workspace-refresh .live-shell .topbar { position: relative; top: auto; z-index: 3; height: auto; min-height: 94px; padding: 24px 28px 16px; border: 0; background: transparent; backdrop-filter: none; }
.workspace-refresh .live-shell .topbar h1 { font: 650 26px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif; color: var(--work-ink); }
.workspace-refresh .live-shell .top-actions { gap: 10px; }
.workspace-refresh .live-shell .button { border-radius: 8px; min-height: 36px; font-weight: 500; }
.workspace-refresh .live-shell .button.primary { background: var(--work-green); border-color: var(--work-green); }
.workspace-refresh .live-shell .button.primary:hover { background: #185441; }
.workspace-refresh .live-shell .live-filterbar { margin: 0 28px 16px; gap: 14px; }
.workspace-refresh .live-shell .live-filterbar label { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; }
.workspace-refresh .live-shell .live-filterbar select { min-width: 160px; background: #fff; font-size: 13px; border-color: var(--work-line); }
.workspace-refresh .live-shell #ledger { padding: 0 28px 28px; }
.workspace-refresh .live-shell .ledger-toolbar { gap: 12px; margin: 0; padding: 14px 16px; border: 1px solid var(--work-line); border-bottom: 0; border-radius: 10px 10px 0 0; background: #fff; }
.workspace-refresh .live-shell #ledger .table-panel { border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: none; }
.workspace-refresh .live-shell #ledger-new-sample { display: none; }
.workspace-refresh .live-shell #ledger .search-wrap input { background: #fff; font-size: 13px; border-color: var(--work-line); }
.workspace-refresh .live-shell #live-sample-table th { font-family: inherit; font-size: 15px; color: var(--work-ink); }
.workspace-refresh .live-shell #live-sample-table td { font-family: inherit; }
.workspace-refresh .live-shell #live-sample-table .ledger-quantity-cell { color: var(--work-ink); }
.workspace-refresh .live-shell #ledger .table-scroll { max-height: calc(100dvh - 355px); }
.workspace-refresh .live-shell #ledger .ledger-pagination { border-top: 1px solid var(--work-line); }

@media (min-width: 901px) {
  .workspace-refresh #login-overlay:not(.is-authenticated) .portal-navigation-link { padding-inline: 8px; font-size: 12px; }
}
@media (max-width: 1100px) {
  .workspace-refresh #login-overlay .portal-main { padding: 24px; }
  .workspace-refresh #login-overlay .portal-topbar { gap: 14px; padding: 0 24px; }
  .workspace-refresh #login-overlay .portal-hero { gap: 32px; }
  .workspace-refresh #login-overlay .portal-hero-copy { padding: 36px 28px; }
  .workspace-refresh #login-overlay .portal-hero .login-headline { font-size: 40px; }
  .workspace-refresh #login-overlay.is-authenticated .portal-main { padding: 28px; }
  .workspace-app-grid { gap: 14px; }
  .workspace-refresh #login-overlay .workspace-app-card { padding: 22px; gap: 14px; }
}
@media (max-width: 900px) {
  .workspace-refresh #login-overlay:not(.is-authenticated) .portal-topbar { flex-wrap: wrap; height: auto; min-height: 76px; padding-block: 14px; }
  .workspace-refresh #login-overlay:not(.is-authenticated) .portal-navigation { order: 3; width: 100%; overflow-x: auto; margin: 0; padding: 0; flex-wrap: nowrap; }
  .workspace-refresh #login-overlay:not(.is-authenticated) .portal-navigation-link { flex: 0 0 auto; font-size: 12px; padding: 8px; }
  .workspace-refresh #login-overlay .portal-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .workspace-refresh #login-overlay .portal-hero-copy { min-height: 280px; padding: 28px; }
  .workspace-refresh #login-overlay .portal-hero .login-headline { font-size: 34px; }
  .workspace-refresh #login-overlay .portal-trust-line { padding-top: 30px; }
  .workspace-refresh #login-overlay .login-particle-stage { width: 52%; height: 250px; bottom: 0; }
  .workspace-refresh #login-overlay .portal-login-backdrop { padding: 0 12px 24px; }
  .workspace-refresh #login-overlay .login-form { max-width: 520px; }
  .workspace-refresh #login-overlay .login-form-heading h2 { font-size: 26px; }
  .workspace-refresh #login-overlay.is-authenticated .portal-topbar { height: 64px; gap: 16px; }
  .workspace-refresh #login-overlay.is-authenticated .portal-navigation { position: static; width: 100%; height: auto; flex-direction: row; overflow-x: auto; padding: 8px 16px; border-right: 0; border-bottom: 1px solid var(--work-line); flex-wrap: nowrap; }
  .workspace-refresh #login-overlay.is-authenticated .portal-topbar { flex-wrap: wrap; height: auto; padding: 12px 16px 0; }
  .workspace-refresh #login-overlay.is-authenticated .portal-navigation { order: 4; flex: 1 0 calc(100% + 32px); margin: 0 -16px; }
  .workspace-refresh #login-overlay.is-authenticated .portal-navigation-link, .workspace-refresh #login-overlay.is-authenticated .portal-nav-app { width: auto; white-space: nowrap; min-height: 36px; font-size: 12px; padding: 8px 10px; }
  .workspace-refresh #login-overlay.is-authenticated .portal-app-navigation { width: auto; flex-direction: row; }
  .workspace-refresh #login-overlay.is-authenticated .portal-main { margin-left: 0; padding: 28px 20px; }
  .workspace-refresh #login-overlay.is-authenticated .portal-hero { margin-bottom: 28px; }
  .workspace-refresh #login-overlay.is-authenticated .portal-hero-copy { min-height: 0; padding: 0; }
  .workspace-refresh .live-shell .main { margin-left: 0; }
  .workspace-refresh .live-shell .sidebar { z-index: 25; }
  .workspace-refresh .live-shell .topbar { min-height: 82px; padding: 20px; }
  .workspace-refresh .live-shell .live-filterbar { margin: 0 20px 16px; }
  .workspace-refresh .live-shell #ledger { padding: 0 20px 24px; }
}
@media (min-width: 901px) and (max-width: 980px) {
  .workspace-refresh .live-shell .main { margin-left: 0; }
}
@media (max-width: 600px) {
  .workspace-global-header { padding: 0 16px; gap: 14px; }
  .workspace-global-brand { font-size: 17px; gap: 6px; }
  .workspace-global-brand img { width: 30px; height: 30px; }
  .workspace-module-switch, .workspace-global-header .module-application-menu { padding-left: 14px; }
  .workspace-module-switch > summary, .workspace-global-header .module-application-menu > summary { font-size: 13px; gap: 8px; }
  .workspace-global-header .identity-copy, .workspace-refresh #login-overlay .portal-user-account summary > span:nth-child(2) { display: none; }
  .workspace-global-header .module-application-menu .module-menu-panel { position: fixed; left: 16px; top: 60px; }
  .workspace-refresh #login-overlay .portal-topbar { padding-inline: 16px; }
  .workspace-refresh #login-overlay .portal-main { padding: 10px 16px; }
  .workspace-refresh #login-overlay .portal-hero-copy { min-height: 230px; padding: 24px; }
  .workspace-refresh #login-overlay .portal-hero .login-kicker { font-size: 12px; margin-bottom: 12px; }
  .workspace-refresh #login-overlay .portal-hero .login-headline { font-size: 30px; }
  .workspace-refresh #login-overlay .portal-hero .login-subtitle { display: none; }
  .workspace-refresh #login-overlay .portal-trust-line { padding-top: 34px; font-size: 11px; }
  .workspace-refresh #login-overlay .portal-trust-line span + span::before { margin-inline: 10px; }
  .workspace-refresh #login-overlay .login-particle-stage { width: 58%; height: 210px; opacity: .7; }
  .workspace-refresh #login-overlay .portal-login-backdrop { padding: 0 8px; }
  .workspace-refresh #login-overlay .login-form-heading { margin-bottom: 24px; }
  .workspace-refresh #login-overlay .login-footer { padding: 24px; }
  .workspace-refresh #login-overlay.is-authenticated .portal-main { padding: 24px 16px; }
  .workspace-refresh #login-overlay.is-authenticated .portal-hero-copy { padding: 0; min-height: 0; }
  .workspace-refresh #login-overlay.is-authenticated .portal-hero .login-headline { font-size: 23px; }
  .workspace-refresh #login-overlay.is-authenticated .portal-hero .login-subtitle { display: block; font-size: 13px; }
  .workspace-app-grid { grid-template-columns: 1fr; }
  .workspace-refresh #login-overlay .workspace-app-card { min-height: 156px; padding: 22px; }
  .workspace-app-copy strong { font-size: 17px; }
  .workspace-home-management { flex-direction: column; align-items: flex-start; padding: 22px; gap: 16px; }
  .workspace-refresh .live-shell .topbar { flex-wrap: wrap; gap: 16px; padding: 18px 16px; }
  .workspace-refresh .live-shell .topbar h1 { font-size: 23px; }
  .workspace-refresh .live-shell .top-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .workspace-refresh .live-shell .live-filterbar { margin: 0 16px 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .workspace-refresh .live-shell .live-filterbar label { display: grid; gap: 6px; }
  .workspace-refresh .live-shell .live-filterbar label:first-child { grid-column: 1/-1; }
  .workspace-refresh .live-shell .live-filterbar select { min-width: 0; width: 100%; }
  .workspace-refresh .live-shell #ledger { padding: 0 16px 24px; }
  .workspace-refresh .live-shell .ledger-toolbar { padding: 12px; flex-wrap: wrap; }
  .workspace-refresh .live-shell.ledger-active .ledger-stock-label { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; white-space: normal; }
  .workspace-refresh .live-shell .ledger-stock-label select { width: 100%; min-width: 0; }
  .workspace-refresh .live-shell .ledger-stock-label select:first-of-type { grid-column: 1; }
  .workspace-refresh .live-shell #ledger .table-scroll { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-refresh *, .workspace-refresh *::before, .workspace-refresh *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* V2: forest navigation, a welcoming portal, and a compact illustrated login. */
.workspace-refresh { --work-sidebar:#173f31; }
.workspace-refresh #login-overlay:not(.is-authenticated) .portal-main { max-width:1240px; padding:40px 32px 0; }
.workspace-refresh #login-overlay:not(.is-authenticated) .portal-hero { grid-template-columns:1.4fr 1fr; min-height:0; gap:48px; }
.workspace-refresh #login-overlay:not(.is-authenticated) .portal-hero-copy { height:480px; min-height:0; padding:48px 36px 30px; background:radial-gradient(ellipse at 75% 40%,#12543f 0%,#064632 70%); border-radius:12px; }
.workspace-refresh #login-overlay:not(.is-authenticated) .login-kicker { font-size:14px; margin-bottom:26px; }
.workspace-refresh #login-overlay:not(.is-authenticated) .login-headline { font-size:46px; line-height:1.35; max-width:52%; }
.workspace-refresh #login-overlay:not(.is-authenticated) .login-subtitle { display:none; }
.workspace-refresh #login-overlay:not(.is-authenticated) .portal-trust-line { padding-top:0; font-size:12px; }
.workspace-refresh #login-overlay:not(.is-authenticated) .login-form-heading h2 { font-size:28px; }
.workspace-refresh #login-overlay:not(.is-authenticated) .login-form { max-width:400px; }
.workspace-refresh #login-overlay:not(.is-authenticated) .login-field-shell input { min-height:44px; font-size:14px; }
.workspace-refresh #login-overlay:not(.is-authenticated) .form-group { margin-bottom:20px; }
.workspace-refresh #login-overlay:not(.is-authenticated) .login-btn { height:44px; }
.workspace-refresh #login-overlay:not(.is-authenticated) .login-particle-stage { inset:0 0 0 auto; width:72%; height:100%; opacity:1; }
.workspace-refresh #login-overlay:not(.is-authenticated) .login-particle-fallback { display:none; }
.workspace-refresh #login-overlay:not(.is-authenticated) .login-footer { max-width:1240px; margin:0 auto; padding:28px 32px; }
.workspace-refresh #login-overlay.is-authenticated .portal-navigation { background:var(--work-sidebar); border:0; }
.workspace-refresh #login-overlay.is-authenticated :is(.portal-navigation-link,.portal-nav-app) { color:#c6dad0; }
.workspace-refresh #login-overlay.is-authenticated .portal-navigation-link.is-active,
.workspace-refresh #login-overlay.is-authenticated :is(.portal-navigation-link,.portal-nav-app):hover { color:#fff; background:#286d55; }
.workspace-refresh #login-overlay.is-authenticated .portal-navigation-link.is-active { box-shadow:inset 3px 0 #93d3b3; }
.workspace-refresh #login-overlay.is-authenticated .portal-main { padding:32px 40px; }
.workspace-refresh #login-overlay.is-authenticated .portal-hero { max-width:none; margin-bottom:32px; }
.workspace-refresh #login-overlay.is-authenticated .portal-hero-copy { padding:36px 40px; min-height:190px; border-radius:12px; background:#e4eee7; border:1px solid #d5e4da; }
.workspace-refresh #login-overlay.is-authenticated .portal-hero-copy::after { content:''; position:absolute; right:36px; top:26px; width:150px; height:140px; background:url('/logo.png') center/contain no-repeat; opacity:.16; pointer-events:none; }
.workspace-refresh #login-overlay.is-authenticated .portal-hero .login-kicker { color:#527261; }
.workspace-refresh #login-overlay.is-authenticated .portal-hero .login-headline { color:#173f31; font-size:32px; }
.workspace-refresh #login-overlay.is-authenticated .portal-hero .login-subtitle { color:#527261; }
.workspace-refresh #login-overlay .workspace-app-card { min-height:164px; border-radius:12px; padding:26px; }
.workspace-refresh #login-overlay .workspace-app-card:hover { border-color:#216b57; box-shadow:0 6px 20px #173f310c; }
.workspace-refresh .live-shell .sidebar { background:#173f31; border:0; }
.workspace-refresh .live-shell :is(.workspace-back,.nav) { color:#c6dad0; }
.workspace-refresh .live-shell .nav-group-title { color:#94b4a4; }
.workspace-refresh .live-shell .nav:is(:hover,.is-active) { background:#286d55; color:white; }
.workspace-refresh .live-shell .nav.is-active { box-shadow:inset 3px 0 #93d3b3; }
.workspace-refresh #workspace .workspace-rail { background:#173f31; }
.workspace-refresh #workspace .workspace-eyebrow { display:none; }
.workspace-refresh #workspace .section-title { font-family:inherit; }
@media(min-width:1500px) { .workspace-refresh #login-overlay:not(.is-authenticated) .portal-main { padding-top:70px; } }
@media(max-width:900px) {
 .workspace-refresh #login-overlay:not(.is-authenticated) .portal-hero { grid-template-columns:1fr; gap:30px; }
 .workspace-refresh #login-overlay:not(.is-authenticated) .portal-hero-copy { height:360px; }
 .workspace-refresh #login-overlay:not(.is-authenticated) .portal-main { max-width:640px; padding:20px 24px; }
 .workspace-refresh #login-overlay:not(.is-authenticated) .login-headline { font-size:38px; }
 .workspace-refresh #login-overlay.is-authenticated .portal-main { padding:24px 20px; }
 .workspace-refresh #login-overlay.is-authenticated .portal-hero-copy { padding:28px; min-height:160px; }
 .workspace-refresh #login-overlay.is-authenticated .portal-hero .login-headline { font-size:25px; }
}
@media(max-width:600px) {
 .workspace-refresh #login-overlay:not(.is-authenticated) .portal-main { padding:12px 16px; }
 .workspace-refresh #login-overlay:not(.is-authenticated) .portal-hero-copy { height:260px; padding:26px 20px 22px; }
 .workspace-refresh #login-overlay:not(.is-authenticated) .login-headline { font-size:30px; }
 .workspace-refresh #login-overlay:not(.is-authenticated) .login-kicker { font-size:11px; margin-bottom:16px; }
 .workspace-refresh #login-overlay:not(.is-authenticated) .portal-trust-line { font-size:10px; }
 .workspace-refresh #login-overlay.is-authenticated .portal-hero-copy::after { width:80px; right:14px; opacity:.08; }
 .workspace-refresh #login-overlay.is-authenticated .portal-hero-copy { padding:24px; }
}
.workspace-global-header { z-index:50; }
.workspace-refresh #login-overlay.is-authenticated .portal-hero-copy::after { mix-blend-mode:multiply; }
.workspace-refresh :is(.workspace-global-header,.portal-navigation,.workspace-app-card) { font-family:"Microsoft YaHei","Segoe UI",sans-serif; }
@media(min-width:1021px) { .workspace-refresh #workspace { grid-template-columns:224px minmax(0,1fr); } }
.workspace-refresh #workspace .workspace-rail { padding:20px 12px; }
.workspace-refresh #workspace .rail-dot { background:#93d3b3; box-shadow:none; }
.workspace-refresh #workspace .workspace-topbar { background:#fff; box-shadow:none; }
.workspace-refresh #workspace .workspace-topbar h1 { font-size:24px; }

