:root {
  color-scheme: light;
  --desk-ink: #18332a;
  --desk-text: #405c51;
  --desk-muted: #526a5e;
  --desk-canvas: #f0f5f1;
  --desk-paper: #fff;
  --desk-line: #d4e3d9;
  --desk-tint: #e5f2e9;
  --desk-accent: #145b48;
  --desk-forest: #123c2f;
  --desk-up: #a6354c;
  --desk-down: #17654e;
  --desk-font: "Aptos", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --desk-gutter: clamp(16px, 3vw, 44px);
}

body.workspace {
  margin: 0;
  background: var(--desk-canvas);
  color: var(--desk-ink);
  font-family: var(--desk-font);
  font-variant-numeric: tabular-nums;
}

.workspace [hidden], html[data-access="public"] [data-private] { display: none !important; }
.workspace :focus-visible { outline: 2px solid #1f7659; outline-offset: 3px; }
.workspace .desk-skip {
  position: fixed;
  z-index: 150;
  top: 8px;
  left: var(--desk-gutter);
  padding: 8px 12px;
  color: #fff;
  background: var(--desk-forest);
  transform: translateY(-150%);
}
.workspace .desk-skip:focus { transform: translateY(0); }
.workspace [data-focus-login] { display: none; }
html[data-access="public"]:not(.focus-workspace) [data-focus-only] { display: none !important; }
html[data-access="public"]:not(.focus-workspace) .workspace [data-focus-login] {
  display: flex;
}
.workspace [data-focus-login] a { text-decoration: none; }
.workspace [data-focus-login] [aria-current] { cursor: default; }
html[data-access="public"]:not(.focus-workspace) .workspace.compact .j10-focusbar { display: none; }

.desk-header {
  flex: 0 0 auto;
  color: var(--desk-ink);
  background: var(--desk-paper);
  border-bottom: 1px solid var(--desk-line);
}
.desk-header-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-height: 64px;
  padding: 0 var(--desk-gutter);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
}
.desk-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--desk-ink);
  font-size: 17px;
  font-weight: 780;
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}
.desk-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--desk-forest);
  border-radius: 7px;
  font-size: 18px;
  font-weight: 750;
  line-height: 1;
}
.desk-nav {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
  align-self: stretch;
}
.desk-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  color: var(--desk-text);
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}
.desk-nav a:hover { background: var(--desk-canvas); color: var(--desk-accent); }
.desk-nav a[aria-current="page"] {
  border-bottom-color: var(--desk-accent);
  color: var(--desk-accent);
  background: #f0f7f2;
  font-weight: 750;
}
.desk-nav a:focus-visible { outline-offset: -4px; }
.desk-news { position: relative; display: flex; flex: 0 0 auto; }
.desk-news > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  color: var(--desk-text);
  font-size: 13px;
  font-weight: 650;
  box-sizing: border-box;
}
.desk-news > summary::-webkit-details-marker { display: none; }
.desk-news > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 2px 0 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.desk-news[open] > summary::after { margin-top: 3px; transform: rotate(225deg); }
.desk-news > summary { height: 100%; min-height: 44px; padding: 8px 13px; border-bottom: 2px solid transparent; }
.desk-news[open] > summary,
.desk-news:has(a[aria-current="page"]) > summary {
  color: var(--desk-accent);
  background: #f0f7f2;
  border-bottom-color: var(--desk-accent);
}
.desk-news > summary:hover { background: var(--desk-canvas); }
.desk-news > summary:focus-visible { outline-offset: -4px; }
.desk-news-popup {
  position: absolute;
  z-index: 120;
  top: calc(100% + 4px);
  inset-inline-start: 0;
  min-width: 184px;
  box-sizing: border-box;
  max-block-size: min(22rem, calc(100vh - 7rem));
  max-block-size: min(22rem, calc(100dvh - 7rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  background: var(--desk-paper);
  border: 1px solid var(--desk-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(18 60 47 / 14%);
}
.desk-news-popup a {
  display: flex;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px;
}
.desk-news-popup a[aria-current="page"] { box-shadow: inset 2px 0 var(--desk-accent); }
.desk-crude-link[aria-current="page"] {
  border-bottom-color: var(--desk-accent);
  color: var(--desk-accent);
  background: #f0f7f2;
  font-weight: 750;
}
.crude-tabs {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: min(100%, 1600px);
  padding: 12px var(--desk-gutter);
  margin: 0 auto;
  border-bottom: 1px solid var(--desk-line);
}
.crude-tabs a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid var(--desk-line);
  border-radius: 7px;
  color: var(--desk-text);
  background: var(--desk-paper);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.crude-tabs a:hover { border-color: #8fb8a2; color: var(--desk-accent); background: #f5faf6; }
.crude-tabs a[aria-current="page"] {
  border-color: var(--desk-accent);
  color: #fff;
  background: var(--desk-accent);
}
.crude-tabs a:focus-visible { outline-offset: 2px; }

.desk-status {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--desk-muted);
  font-size: 12px;
  white-space: nowrap;
}
.desk-main { width: min(100%, 1600px); margin-inline: auto; }
.desk-panel { min-width: 0; background: var(--desk-paper); border: 1px solid var(--desk-line); border-radius: 10px; }

.desk-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 18px 0 12px;
}
.desk-intro h1 { margin: 0; font-size: clamp(23px, 3vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.desk-intro p { margin: 5px 0 0; color: var(--desk-muted); font-size: 13px; }

@media (max-width: 1023px) {
  .desk-header-inner { column-gap: 14px; flex-wrap: wrap; row-gap: 0; padding-top: 8px; }
  .desk-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .desk-brand { font-size: 15px; min-height: 36px; }
  .desk-nav a { padding: 7px 10px; }
  .desk-status { gap: 6px; font-size: 11px; }
  .desk-intro { align-items: start; flex-wrap: wrap; }
  .crude-tabs { gap: 6px; }
  .crude-tabs a { flex: 1 1 auto; min-width: 92px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace *, .workspace *::before, .workspace *::after { scroll-behavior: auto !important; }
}

/* 原油决策 */
body.crude-workspace {
  --ink: var(--desk-ink); --ink2: var(--desk-text); --muted: var(--desk-muted);
  --line: var(--desk-line); --line2: #bed3c5; --bg: var(--desk-canvas);
  --panel: var(--desk-paper); --well: #eaf4ed; --tint: #edf6f0;
  --brand: var(--desk-accent); --brand-2: var(--desk-forest); --brand-3: var(--desk-ink);
  --up: var(--desk-up); --dn: var(--desk-down);
  --accent: var(--desk-accent); --shadow: none;
}

.crude-workspace .wrap { max-width: 1600px; padding: 22px var(--desk-gutter) 46px; }
.crude-workspace #health { color: var(--desk-muted); }
.crude-workspace #health::before { box-shadow: none; }
.crude-workspace #updated { color: var(--desk-ink); font-weight: 680; }
.crude-workspace .desk-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 4vw, 60px);
  padding: clamp(20px, 3vw, 36px);
  margin: 0 0 20px;
  border-radius: 12px;
  color: #fff;
  background: var(--desk-forest);
  border: 1px solid #0d3126;
  border-top: 3px solid #69bd97;
}
.desk-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(29px, 4vw, 47px);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -.045em;
}
.desk-hero p { margin: 0; max-width: 40ch; color: #c6e1d2; font-size: 13px; }
.desk-hero-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.desk-hero-counts div { padding: 2px clamp(8px, 1.7vw, 25px); border-left: 1px solid #527b69; }
.desk-hero-counts dt { color: #d5e9dd; font-size: 12px; }
.desk-hero-counts dd { margin: 3px 0 0; font-size: clamp(22px, 3vw, 38px); font-weight: 760; line-height: 1.2; }
.desk-hero-counts .desk-count-up dd { color: #ffc6ce; }
.desk-hero-counts .desk-count-down dd { color: #a5e1cb; }
.desk-balance { display: flex; gap: 3px; height: 5px; margin-top: 15px; overflow: hidden; border-radius: 3px; background: #527b69; }
.desk-balance span { flex: 0 1 0%; }
.desk-balance span:nth-child(1) { background: #ec889b; }
.desk-balance span:nth-child(2) { background: #a9c3b3; }
.desk-balance span:nth-child(3) { background: #62c3a5; }

.crude-workspace .radar { margin-bottom: 20px; }
.crude-workspace .radar-head { margin: 0 0 10px; padding: 0; background: none; border: 0; border-radius: 0; color: var(--desk-ink); }
.crude-workspace .radar-head h2 { font-size: 19px; font-weight: 750; color: var(--desk-ink); }
.crude-workspace .radar-meta { color: var(--desk-muted); }
.crude-workspace .radar-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.crude-workspace .rd-right, .crude-workspace .rd-charts { gap: 12px; }
.crude-workspace :is(.modcard, .cols > section, .cols > aside, .ins-card) { border-radius: 10px; }
.crude-workspace :is(.modcard, .cols > section, .cols > aside) > .sec { background: #f5faf6; }
.crude-workspace :is(.modcard, .cols > section, .cols > aside) > .sec h2 { color: var(--desk-ink); }
.crude-workspace .desk-refresh-note { margin: 0; padding: 6px 12px; color: var(--warn); font-size: 12px; }
.crude-workspace .rd-list { padding: 0; }
.crude-workspace .rd-item { border: 0; border-bottom: 1px solid var(--desk-line); border-radius: 0; padding: 13px 16px; }
.crude-workspace .rd-item + .rd-item { margin: 0; }
.crude-workspace .rd-item:last-child { border-bottom: 0; }
.crude-workspace .rd-title { font-size: 15px; }
.crude-workspace .rd-go { opacity: 1; color: var(--desk-accent); min-height: 30px; }
.crude-workspace .rd-go:hover { border-color: var(--desk-accent); background: var(--desk-tint); }
.crude-workspace .rd-desc, .crude-workspace .rd-digest p { line-height: 1.65; }
.crude-workspace .rd-meta, .crude-workspace .rd-top { flex-wrap: wrap; }
.crude-workspace .sum-card { border: 0; }
.crude-workspace .statboard { max-width: none; padding: 0; }
.crude-workspace .geo-dyn { background: #0d231b; height: clamp(470px, 68vh, 720px); }
.crude-workspace .geo-legend,
.crude-workspace .geo-badge { color: #b5d4c6; }
.crude-workspace .geo-legend span { background: #143329d9; border-color: #61958152; }
.crude-workspace .geo-brief,
.crude-workspace .geo-sum {
  background: linear-gradient(145deg, #183e30, #102b21);
  border-color: #477361;
  box-shadow: none;
}
.crude-workspace .geo-brief { border-left-color: #69bd97; }
.crude-workspace .pushgrid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.crude-workspace .rdm-ov {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  margin: auto;
  background: transparent;
  backdrop-filter: none;
}
.crude-workspace .rdm-ov:not([open]) { display: none; }
.crude-workspace .rdm-ov::backdrop { background: #123c2faa; }
.crude-workspace .rdm { background: var(--desk-paper); border-radius: 12px; max-height: min(90vh, 90dvh); }

@media (max-width: 900px) {
  .crude-workspace .radar-grid { grid-template-columns: minmax(0, 1fr); }
  .crude-workspace .rd-list { max-height: 330px; max-height: clamp(240px, 38svh, 330px); }
}
@media (max-width: 680px) {
  .crude-workspace .wrap { padding-top: 14px; }
  .crude-workspace .desk-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 15px 16px 16px;
    margin-bottom: 14px;
  }
  .desk-hero h1 { font-size: 27px; margin-bottom: 4px; }
  .desk-balance { margin-top: 9px; }
  .desk-hero-counts div:first-child { border-left: 0; padding-left: 0; }
  .crude-workspace .radar-head { flex-wrap: wrap; margin-bottom: 8px; }
  .crude-workspace .rd-item { padding: 12px; }
  .crude-workspace .rd-go { min-height: 36px; }
  .crude-workspace .geo-dyn { height: clamp(380px, 61vh, 550px); }
  .crude-workspace .rd-charts { grid-template-columns: minmax(0, 1fr); }
  .crude-workspace .rdm-ov { padding: 8px; }
  .crude-workspace .rdm-grid { padding: 12px; gap: 12px; }
  .crude-workspace .row { grid-template-columns: 44px minmax(0, 1fr) 47px; gap: 8px; padding-right: 6px; }
  .crude-workspace .hz-row { flex-wrap: wrap; }
}

/* 实时快讯 */
body.flash-workspace {
  --j-fg: var(--desk-ink); --j-fg-2: var(--desk-text); --j-muted: var(--desk-muted);
  --j-bg: var(--desk-paper); --j-line: var(--desk-line); --j-line-2: #c1d5c8;
  --j-hover: #f4f8f5; --j-red: var(--desk-accent); --j-red-soft: var(--desk-tint);
  --j-imp: var(--desk-up);
}
.flash-workspace .j10-shell { height: 100vh; height: 100dvh; }
.flash-workspace .j10-body { max-width: 1600px; width: 100%; margin: 0 auto; padding: 18px var(--desk-gutter) 14px; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.flash-workspace .j10-main { background: var(--desk-paper); border: 1px solid var(--desk-line); border-radius: 10px; overflow: hidden; }
.flash-workspace .j10-main :focus-visible { outline-offset: -2px; }
.flash-workspace .desk-intro { padding: 15px 18px 12px; border-bottom: 1px solid var(--desk-line); }
.flash-workspace .desk-intro h1 { font-size: clamp(22px, 3vw, 30px); }
.flash-workspace .j10-toolbar { background: #f5faf6; flex-wrap: wrap; }
.flash-workspace .j10-toolbar-right { flex: 1 1 220px; }
.flash-workspace .j10-search { width: 100%; min-width: 0; box-sizing: border-box; }
.flash-workspace .j10-search:focus-visible { outline-offset: 2px; }
.flash-workspace :is(.j10-chip, .j10-search, .j10-focus-btn, .j10-focus-edit) { min-height: 34px; border-radius: 6px; }
.flash-workspace .j10-item-title { font-size: 15px; line-height: 1.5; }
.flash-workspace .j10-item-content { max-width: 96ch; }
.flash-workspace .j10-rail { border: 1px solid var(--desk-line); border-radius: 10px; background: var(--desk-paper); }
.flash-workspace :is(.j10-focusbar, .j10-toolbar, .j10-rail-head) { color: var(--desk-ink); }
.flash-workspace .j10-lightbox { outline: none; }
.flash-workspace :is(.j10-rail-af,.j10-rail-v).利多 { color: var(--desk-up); }
.flash-workspace :is(.j10-rail-af,.j10-rail-v).利空 { color: var(--desk-down); }
.flash-workspace:is(.compact, .embedded) .desk-header-inner { min-height: 38px; padding: 0 10px; }
.flash-workspace:is(.compact, .embedded) .desk-nav, .flash-workspace.embedded .desk-brand { display: none; }
.flash-workspace.compact .desk-brand-mark { width: 24px; height: 24px; font-size: 14px; }
.flash-workspace.compact .j10-body { padding: 0; grid-template-columns: minmax(0, 1fr); }
.flash-workspace.compact .j10-main { border-radius: 0; }
.flash-workspace.compact .desk-intro { display: none; }
.flash-workspace.embedded .j10-body { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1101px) {
  .flash-workspace:not(.compact) .j10-body:has(> .j10-rail:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) minmax(234px, 28%);
  }
}
@media (max-width: 620px) {
  .flash-workspace .j10-body { padding: 8px 0 0; }
  .flash-workspace .j10-main { border-radius: 0; }
  .flash-workspace .desk-intro { padding: 12px; }
  .flash-workspace .j10-toolbar, .flash-workspace .j10-focusbar { padding-inline: 12px; }
  .flash-workspace:not(.compact, .embedded) .j10-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .flash-workspace:not(.compact, .embedded) .j10-toolbar > button { padding-inline: 3px; }
  .flash-workspace:not(.compact, .embedded) .j10-toolbar-right { grid-column: 1 / -1; width: 100%; }
  .flash-workspace:not(.compact, .embedded) .j10-search { font-size: 16px; min-height: 38px; }
  .flash-workspace .j10-item { padding-inline: 24px 12px; gap: 8px; }
  .flash-workspace .j10-item::before { left: 12px; }
  .flash-workspace .j10-item::after { left: 8.5px; }
  .flash-workspace .j10-item-time { flex-basis: 48px; }
}

/* 内部工作页与财经日历 */
body.support-workspace .wrap { box-sizing: border-box; }
body:is(.admin-workspace, .research-workspace) {
  --ink: var(--desk-ink); --ink2: var(--desk-text); --muted: var(--desk-muted);
  --panel: #f6faf7; --well: var(--desk-tint); --line: var(--desk-line);
  --line2: #bed3c5; --up: var(--desk-up); --dn: var(--desk-down);
}
body.calendar-workspace {
  --red: var(--desk-accent); --up: var(--desk-up); --dn: var(--desk-down);
  --fg: var(--desk-ink); --fg2: var(--desk-text); --muted: var(--desk-muted);
  --line: var(--desk-line); --line2: #bed3c5;
}
body.brief-workspace {
  --lnt-red: var(--desk-accent); --lnt-red-soft: var(--desk-tint);
  --lnt-red-line: #bed3c5; --lnt-acc: var(--desk-accent);
  --lnt-up: var(--desk-up); --lnt-down: var(--desk-down);
  --lnt-bg: var(--desk-canvas); --lnt-card2: #f5faf6;
  --lnt-side: #f5faf6; --lnt-fg: var(--desk-ink);
  --lnt-fg2: var(--desk-text); --lnt-dim: var(--desk-muted);
  --lnt-line: var(--desk-line); --lnt-line2: #bed3c5;
}
.support-workspace :is(button, select, input:not([type="checkbox"])) { min-height: 34px; }
.support-workspace .desk-intro { margin-bottom: 12px; border-bottom: 1px solid var(--desk-line); }
.support-workspace .desk-intro + .note { color: var(--desk-text); background: #f5faf6; border-color: var(--desk-line); }
.admin-workspace .tabbar .tabx { font-family: inherit; }
.admin-workspace .tabbar { flex-wrap: wrap; }
.admin-workspace .split > * { min-width: 0; overflow-wrap: anywhere; }
.research-workspace .drop { background: #edf6f0; border-color: #8eb49f; }
.research-workspace .drop:focus-within { outline: 2px solid #1f7659; outline-offset: 3px; }
.research-workspace .drop input { max-width: 100%; margin-top: 8px; }
.research-workspace .meta { color: var(--desk-muted); }
.brief-workspace .wrap { max-width: 1600px; margin-inline: auto; }
.brief-workspace .work > .desk-intro { padding-inline: 0; }
.brief-workspace .top-r { color: var(--desk-muted); }
.calendar-workspace .cal-work { margin: 16px auto 28px; width: min(calc(100% - 2 * var(--desk-gutter)), 1512px); overflow: clip; }
.calendar-workspace .cal-top { height: auto; min-height: 62px; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.calendar-workspace .cal-brand { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.calendar-workspace .cal-dates { flex-wrap: wrap; min-width: 0; }
.calendar-workspace :is(.cal-date-nav, .cal-date-actions) { display: flex; align-items: center; gap: 6px; }
.calendar-workspace :is(#d-prev, #d-next) { min-width: 30px; font-size: 17px; line-height: 1; }
.calendar-workspace .cal-date-nav .d { font-family: inherit; }
.calendar-workspace .cal-head { background: var(--desk-tint); }
.calendar-workspace .cal-dayhead { background: #f4f8f5; }
.calendar-workspace .cal-row:hover { background: #f4f8f5; }
.calendar-workspace .cal-row.soon:hover { background: #fff8f0; }
.calendar-workspace .cal-row.landed:hover { background: #fff4f4; }
.calendar-workspace .cal-row > :is(.nm, .v) { min-width: 0; overflow-wrap: anywhere; }
.calendar-workspace.embedded .desk-header { display: none; }
.calendar-workspace.embedded .cal-work { width: 100%; margin: 0; border: 0; border-radius: 0; }
@media (max-width: 600px) {
  .calendar-workspace .cal-work { width: 100%; margin-block: 8px 0; border-radius: 0; }
  .calendar-workspace:not(.embedded) .cal-top { padding: 10px 12px; }
  .calendar-workspace:not(.embedded) .cal-dates {
    flex: 1 0 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
  }
  .calendar-workspace:not(.embedded) .cal-date-nav { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; }
  .calendar-workspace:not(.embedded) .cal-date-nav .d { min-width: 0; font-size: 12px; }
  .calendar-workspace:not(.embedded) .cal-date-actions { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .calendar-workspace:not(.embedded) .cal-date-actions button { padding-inline: 4px; }
  .calendar-workspace:not(.embedded) .cal-dates input { width: 100%; }
  .calendar-workspace .cal-chips { padding-inline: 12px; }
  .calendar-workspace #cal-ctys {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 12px;
  }
  .calendar-workspace #cal-ctys > * { flex: none; white-space: nowrap; }
  .calendar-workspace .cal-head, .calendar-workspace .cal-row { padding-inline: 12px; }
  .support-workspace .wrap { padding-inline: 12px; }
}

@media (max-width: 900px) {
  .calendar-workspace .cal-head, .calendar-workspace .cal-row { grid-template-columns: 48px 68px minmax(0, 1fr) 66px; }
  .calendar-workspace .cal-row > .star { display: none; }
}
@media (max-width: 600px) {
  .calendar-workspace .cal-head { grid-template-columns: minmax(0, 1fr) 78px; letter-spacing: 0; }
  .calendar-workspace .cal-head :is(.cal-time-label, .cal-country-label) { display: none; }
  .calendar-workspace .cal-row {
    grid-template-columns: max-content minmax(0, 1fr) 78px;
    grid-template-areas: "time country actual" "event event actual";
    column-gap: 8px;
    row-gap: 2px;
    align-items: start;
  }
  .calendar-workspace .cal-row .t { grid-area: time; }
  .calendar-workspace .cal-row .cty { grid-area: country; }
  .calendar-workspace .cal-row .nm { grid-area: event; overflow-wrap: anywhere; }
  .calendar-workspace .cal-row .act { grid-area: actual; align-self: center; overflow-wrap: anywhere; }
  .calendar-workspace .cal-delta { display: block; margin-left: 0; }
}

@media (min-width: 1024px) {
  .workspace { --desk-header-size: 65px; }

  html:has(> body:is(.crude-workspace, .calendar-workspace):not(.embedded)) { scroll-padding-top: 77px; }
  body:is(.crude-workspace, .calendar-workspace):not(.embedded) .desk-header {
    position: sticky;
    top: 0;
    z-index: 130;
  }

  .crude-workspace .wrap { padding-top: 18px; }
  .crude-workspace .desk-hero {
    grid-template-columns: minmax(210px, 1fr) minmax(0, 2fr);
    padding: 22px clamp(24px, 3vw, 38px);
    margin-bottom: 17px;
  }
  .desk-hero h1 { font-size: clamp(34px, 3vw, 42px); }
  .desk-hero-counts dd { font-size: clamp(28px, 3vw, 34px); }
  .desk-balance { margin-top: 11px; }
  .crude-workspace :is(.radar-grid, .cols) {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 16px;
  }
  .crude-workspace .rd-list { max-height: clamp(330px, calc(100svh - 315px), 610px); }
  .crude-workspace :is(.rd-title, .rd-desc) { overflow-wrap: anywhere; }
  .crude-workspace .rd-desc { font-size: 13px; }
  .crude-workspace .rd-digest p { font-size: 14px; line-height: 1.7; }

  .flash-workspace:not(.compact, .embedded) .j10-toolbar { gap: 8px; }
  .flash-workspace:not(.compact, .embedded) .j10-toolbar-right {
    position: relative;
    min-width: 0;
  }
  .flash-workspace:not(.compact, .embedded) .j10-toolbar-right::before,
  .flash-workspace:not(.compact, .embedded) .j10-toolbar-right::after {
    content: "";
    position: absolute;
    display: block;
    pointer-events: none;
    color: var(--desk-muted);
  }
  .flash-workspace:not(.compact, .embedded) .j10-toolbar-right::before {
    top: 10px;
    left: 11px;
    width: 8px;
    height: 8px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
  }
  .flash-workspace:not(.compact, .embedded) .j10-toolbar-right::after {
    top: 21px;
    left: 19px;
    width: 5px;
    height: 1.5px;
    background: currentColor;
    transform: rotate(45deg);
  }
  .flash-workspace:not(.compact, .embedded) .j10-search {
    background: var(--desk-paper);
    padding-left: 31px;
  }
  .flash-workspace:not(.compact, .embedded) .j10-item-time { flex-basis: 64px; }
  .flash-workspace:not(.compact, .embedded) .j10-rail {
    padding: 0 0 12px;
    scrollbar-width: thin;
  }
  .flash-workspace:not(.compact, .embedded) .j10-rail-head {
    padding: 11px 14px;
    margin: 0;
    border-bottom: 1px solid var(--desk-line);
    background: #f5faf6;
    font-size: 13px;
  }
  .flash-workspace:not(.compact, .embedded) .j10-rail-list { margin: 0 12px; }

  .calendar-workspace:not(.embedded) {
    --cal-column-head-size: 38px;
  }
  .calendar-workspace:not(.embedded) :is(.cal-head, .cal-row) {
    grid-template-columns: 66px 116px 62px minmax(0, 1fr) repeat(2, clamp(86px, 7.5vw, 138px)) clamp(112px, 11vw, 170px);
    align-items: center;
    padding-inline: 20px;
  }
  .calendar-workspace:not(.embedded) .cal-head {
    top: var(--desk-header-size);
    min-height: var(--cal-column-head-size);
    font-size: 12px;
    letter-spacing: .025em;
  }
  .calendar-workspace:not(.embedded) .cal-dayhead {
    top: calc(var(--desk-header-size) + var(--cal-column-head-size));
    padding-inline: 20px;
  }
  .calendar-workspace:not(.embedded) .cal-row .nm { font-size: 14px; }
  .calendar-workspace:not(.embedded) :is(.cal-head, .cal-row) > :nth-child(5) {
    border-left: 1px solid var(--desk-line);
    padding-left: 10px;
  }
}

@media (max-height: 760px) {
  .flash-workspace:not(.compact, .embedded) .j10-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .flash-workspace:not(.compact, .embedded) .j10-body {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    min-height: auto;
  }
  .flash-workspace:not(.compact, .embedded) .j10-main {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
  }
  .flash-workspace:not(.compact, .embedded) .j10-stream {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
  }
  .flash-workspace:not(.compact, .embedded) .j10-rail {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
  }
}
