/* Atlas browser and embedded HubMir workspace */
.layout-atlas .browser-chrome {
  gap: 3px;
  padding-inline: 9px;
  background: #202124;
}
.layout-atlas .keep-tab {
  flex-basis: 126px;
  background: #333539;
  color: #f0f1f3;
}
.layout-atlas .keep-tab:is(:hover,[aria-expanded=true]) { background: #44474c; }
.layout-atlas .other-tab { background: #292b2e; border-color: #424449; }
.layout-atlas .browser-add { display: grid; place-items: center; color: #eceef1; }
.layout-atlas .browser-add svg, .atlas-browser-nav svg { width: 14px; height: 14px; }
.atlas-browser-window { color: #e1e3e7; font-size: 14px; align-self: center; padding-inline: 8px; }
.layout-atlas .browser-address { background: #333539; border-color: #232427; color: #d9dce1; }
.layout-atlas .address-value { background: #232427; color: #e3e5e9; border-radius: 20px; }
.atlas-browser-nav { display: flex; align-items: center; gap: 10px; }
.atlas-browser-nav svg:nth-child(2) { opacity: .52; }
.layout-atlas .tab-menu { left: 11px; top: 34px; background: #2b2d30; color: #f1f3f4; border-color: #47494d; }
.layout-atlas .tab-menu [aria-disabled] { color: #acb0b5; }
.layout-atlas .close-other-tabs { background: #43474e; color: #f1f3f4; font-weight: 650; }
.layout-atlas .close-other-tabs:hover { background: #555d67; }
.layout-atlas .sim-cursor { left: 19px; top: 12px; background: #fff; filter: drop-shadow(0 0 2px #151e28); }

.atlas-office { display: block; }
.story-overview:empty { height: 53.4cqw; }
.atlas-workspace {
  --ground: #fff;
  --surface: #f1f8fc;
  --raised: #e8f4f9;
  --border: #dbeaf4;
  --control: #bfd9eb;
  --muted: #426187;
  --ink: #0b1630;
  --accent: #007d96;
  --accent-text: #fff;
  --assistant: #d7f6f8;
  --line: #d9e9f4;
  --s: 1cqw;
  height: calc(53.4 * var(--s));
  position: relative;
  display: flex;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-size: calc(.76 * var(--s));
  line-height: 1.35;
}
.atlas-office[data-theme="dark"] .atlas-workspace {
  --ground: #0a1c29;
  --surface: #0c2232;
  --raised: #102c40;
  --border: #1f4156;
  --control: #315972;
  --muted: #acc7e4;
  --ink: #f2f7ff;
  --accent: #31d9e6;
  --accent-text: #071722;
  --assistant: #10394a;
  --line: #2a495e;
  color-scheme: dark;
}
.atlas-workspace :is(input, select, button) { font: inherit; color: inherit; }
.atlas-office-icon {
  display: block;
  flex: none;
  width: calc(1.15 * var(--s, 12px));
  height: calc(1.15 * var(--s, 12px));
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.atlas-icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: calc(2.08 * var(--s));
  height: calc(2.18 * var(--s));
  padding: 0;
  border: 1px solid transparent;
  border-radius: calc(.46 * var(--s));
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.atlas-icon-button:hover { color: var(--accent); background: var(--raised); }
.atlas-workspace :focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.atlas-workspace [hidden] { display: none !important; }

.atlas-sidebar {
  width: 15.3%;
  flex: none;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: calc(.7 * var(--s)) calc(.65 * var(--s)) calc(.35 * var(--s));
  border-right: 1px solid var(--border);
  background: var(--ground);
}
.atlas-office-brand {
  min-height: calc(5.45 * var(--s));
  display: grid;
  align-items: center;
  padding-inline: calc(.8 * var(--s));
}
.atlas-office-brand img { width: calc(10.8 * var(--s)); max-width: 100%; height: auto; }
.atlas-office-brand :is(.atlas-logo-dark, .atlas-logo-mark) { display: none; }
.atlas-office[data-theme="dark"] .atlas-logo-light { display: none; }
.atlas-office[data-theme="dark"] .atlas-logo-dark { display: block; }
.atlas-project {
  display: flex;
  align-items: center;
  gap: calc(.54 * var(--s));
  min-height: calc(3.66 * var(--s));
  margin: calc(.42 * var(--s)) calc(.33 * var(--s)) calc(1.16 * var(--s)) 0;
  padding: calc(.55 * var(--s));
  border: 1px solid var(--border);
  border-radius: calc(.58 * var(--s));
  background: var(--surface);
}
.atlas-project-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: calc(1.92 * var(--s));
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: calc(.43 * var(--s));
  background: var(--ground);
  color: var(--muted);
}
.atlas-project > span:last-child { flex: 1; min-width: 0; }
.atlas-project small { display: block; color: var(--muted); font-size: .84em; }
.atlas-project select {
  display: block;
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0;
  font-weight: 750;
  text-overflow: ellipsis;
}
.atlas-nav {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--control) var(--surface);
  padding-right: calc(.16 * var(--s));
}
.atlas-nav-group + .atlas-nav-group { margin-top: calc(1.22 * var(--s)); }
.atlas-nav-group p {
  margin: 0 0 calc(.56 * var(--s)) calc(.64 * var(--s));
  text-transform: uppercase;
  letter-spacing: .075em;
  color: var(--muted);
  font-weight: 750;
  font-size: .76em;
}
.atlas-nav a {
  display: flex;
  align-items: center;
  gap: calc(.62 * var(--s));
  min-height: calc(2.42 * var(--s));
  margin-bottom: calc(.075 * var(--s));
  padding: calc(.35 * var(--s)) calc(.65 * var(--s));
  color: var(--muted);
  text-decoration: none;
  border-radius: calc(.46 * var(--s));
}
.atlas-nav a:is(:hover,[aria-current]) { color: var(--accent); background: var(--raised); }
.atlas-nav [aria-current] { font-weight: 750; }
.atlas-nav a > span { display: block; }
.atlas-boundary {
  position: absolute;
  top: calc(1.26 * var(--s));
  left: 15.3%;
  transform: translateX(-50%);
  z-index: 2;
  width: calc(1.67 * var(--s));
  height: calc(1.67 * var(--s));
  background: var(--ground);
  border-color: var(--border);
  box-shadow: 0 2px 6px #0b345313;
}
.atlas-office[data-sidebar="collapsed"] .atlas-sidebar { width: 4.6%; padding-inline: calc(.44 * var(--s)); }
.atlas-office[data-sidebar="collapsed"] .atlas-boundary { left: 4.6%; }
.atlas-office[data-sidebar="collapsed"] :is(.atlas-project,.atlas-nav-group p,.atlas-nav a span,.atlas-logo-light,.atlas-logo-dark) { display: none; }
.atlas-office[data-sidebar="collapsed"] .atlas-logo-mark { display: block; }
.atlas-office[data-sidebar="collapsed"] .atlas-office-brand { padding-inline: calc(.34 * var(--s)); }
.atlas-office[data-sidebar="collapsed"] .atlas-nav a { justify-content: center; }

.atlas-office-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.atlas-topbar {
  position: relative;
  z-index: 1;
  min-height: calc(4.52 * var(--s));
  display: flex;
  align-items: center;
  gap: calc(.65 * var(--s));
  justify-content: space-between;
  padding: 0 calc(2.6 * var(--s)) 0 calc(2.82 * var(--s));
  background: var(--ground);
  border-bottom: 1px solid var(--border);
}
.atlas-crumb, .atlas-top-actions, .atlas-identity { display: flex; align-items: center; }
.atlas-crumb { color: var(--muted); gap: calc(.76 * var(--s)); white-space: nowrap; font-size: .93em; }
.atlas-crumb svg { width: calc(.71 * var(--s)); height: calc(.71 * var(--s)); }
.atlas-top-actions { gap: calc(.86 * var(--s)); }
.atlas-find, .atlas-popover { position: relative; }
.atlas-find > label {
  display: flex;
  align-items: center;
  gap: calc(.51 * var(--s));
  width: calc(12.24 * var(--s));
  min-height: calc(2.27 * var(--s));
  padding: calc(.36 * var(--s)) calc(.59 * var(--s));
  border: 1px solid var(--control);
  border-radius: calc(.46 * var(--s));
  color: var(--muted);
  background: var(--surface);
}
.atlas-find input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; }
.atlas-find input::placeholder { color: var(--muted); opacity: 1; }
.atlas-find label:focus-within { outline: 1px solid var(--accent); }
.atlas-popover summary { list-style: none; }
.atlas-popover summary::-webkit-details-marker { display: none; }
.atlas-popover-panel {
  position: absolute;
  z-index: 2;
  top: calc(100% + .32 * var(--s));
  right: 0;
  min-width: calc(12 * var(--s));
  max-width: calc(22 * var(--s));
  padding: calc(.6 * var(--s));
  border: 1px solid var(--border);
  border-radius: calc(.48 * var(--s));
  color: var(--ink);
  background: var(--ground);
  box-shadow: 0 5px 18px #09284022;
}
.atlas-search-results a { display: block; padding: .5em; border-radius: .4em; color: var(--muted); text-decoration: none; }
.atlas-search-results a:hover { background: var(--raised); color: var(--accent); }
.atlas-identity { white-space: nowrap; gap: calc(.62 * var(--s)); padding-inline: calc(.3 * var(--s)); }
.atlas-identity > span:last-child { display: grid; }
.atlas-identity b { font-size: 1.06em; }
.atlas-identity small { font-size: .88em; color: var(--muted); }
.atlas-avatar {
  width: calc(2.36 * var(--s));
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--raised);
  color: var(--accent);
  font-weight: 800;
  font-size: .86em;
}
.atlas-topbar [data-office-mobile] { display: none; }

.atlas-dashboard {
  min-width: 0;
  flex: 1;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--control) transparent;
  padding: calc(1.06 * var(--s)) calc(1.43 * var(--s)) calc(1.3 * var(--s));
}
.atlas-assistant { display: flex; justify-content: flex-end; margin-bottom: calc(.96 * var(--s)); }
.atlas-assistant a {
  display: flex;
  align-items: center;
  gap: calc(.52 * var(--s));
  padding: calc(.67 * var(--s)) calc(1.04 * var(--s));
  border-radius: calc(2 * var(--s));
  color: var(--ink);
  background: var(--assistant);
  font-weight: 800;
  text-decoration: none;
}
.atlas-assistant a:hover { color: var(--accent); }
.atlas-assistant svg { color: var(--accent); }
.atlas-dashboard h3 {
  font-size: calc(1.92 * var(--s));
  letter-spacing: -.026em;
  font-weight: 700;
  line-height: 1.14;
  margin: 0 0 calc(1.44 * var(--s));
}
.atlas-toolbar, .atlas-toolbar-fields, .atlas-toolbar-actions { display: flex; align-items: center; gap: calc(.5 * var(--s)); }
.atlas-toolbar { position: relative; justify-content: space-between; }
.atlas-toolbar :is(select, button, label.atlas-period), .atlas-widget-select select {
  min-height: calc(2.52 * var(--s));
  padding: 0 calc(.55 * var(--s));
  border: 1px solid var(--control);
  border-radius: calc(.45 * var(--s));
  background: var(--ground);
}
.atlas-toolbar select { padding-right: calc(.28 * var(--s)); cursor: pointer; }
.atlas-toolbar .atlas-period { display: flex; align-items: center; gap: calc(.35 * var(--s)); }
.atlas-toolbar .atlas-period select { min-height: 0; border: 0; padding-left: 0; }
.atlas-toolbar .atlas-period svg { color: var(--muted); }
.atlas-toolbar-actions button { width: calc(2.6 * var(--s)); }
.atlas-toolbar :is(button,select):hover { border-color: var(--accent); }
.atlas-toolbar button[data-office-add] { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
.atlas-toolbar[data-folded] :is(.atlas-toolbar-fields,[data-office-picker],[data-office-refresh],[data-office-add]) { display: none; }
.atlas-toolbar[data-folded] { justify-content: flex-end; }
.atlas-widget-picker { display: grid; gap: .55em; width: max-content; }
.atlas-widget-picker label { display: flex; align-items: center; gap: .45em; }
.atlas-widget-picker input { accent-color: var(--accent); }
.atlas-overview-meta { margin: calc(.49 * var(--s)) 0 calc(.95 * var(--s)); color: var(--muted); font-size: .86em; }
.atlas-overview-meta [role="status"]:not(:empty)::before { content: " · "; }

.atlas-widget-grid { display: grid; grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr)); gap: calc(.91 * var(--s)); }
.atlas-widget-grid[data-columns="1"] { --columns: 1; }
.atlas-widget-grid[data-columns="2"] { --columns: 2; }
.atlas-widget {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: calc(.7 * var(--s));
  padding: calc(.94 * var(--s));
}
.atlas-widget-body { display: flex; flex-direction: column; flex: 1; }
.atlas-widget-head { display: flex; align-items: center; gap: calc(.45 * var(--s)); margin-bottom: calc(.66 * var(--s)); }
.atlas-widget-head img { width: calc(1.75 * var(--s)); height: calc(1.75 * var(--s)); object-fit: contain; }
.atlas-widget-head h4 { margin: 0 auto 0 0; line-height: 1.12; font-size: 1.23em; font-weight: 750; }
.atlas-widget-head a { text-decoration: none; color: inherit; }
.atlas-widget-head a:hover { color: var(--accent); }
.atlas-widget-head button { width: calc(1.6 * var(--s)); height: calc(1.6 * var(--s)); }
.atlas-widget-grip { color: var(--muted); }
.atlas-widget-select { display: grid; min-width: 0; gap: calc(.23 * var(--s)); margin-bottom: calc(.63 * var(--s)); color: var(--muted); font-size: .93em; }
.atlas-widget-select:first-child { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: calc(.37 * var(--s)); }
.atlas-widget-select select { min-width: 0; min-height: calc(1.75 * var(--s)); color: var(--ink); }
.atlas-metrics { display: flex; flex-wrap: wrap; align-items: start; gap: calc(.74 * var(--s)) calc(.9 * var(--s)); margin: calc(.8 * var(--s)) 0; }
.atlas-metrics > div { flex: 1 1 41%; }
.atlas-metrics dt { color: var(--muted); font-size: .89em; }
.atlas-metrics dd { margin: calc(.31 * var(--s)) 0 0; line-height: 1.12; white-space: nowrap; }
.atlas-metrics dd b { font-size: calc(1.69 * var(--s)); letter-spacing: -.025em; font-weight: 850; }
.atlas-metrics dd small { color: var(--muted); font-size: .77em; }
.atlas-widget .office-search { font-size: .93em; color: var(--ink); margin-block: calc(.88 * var(--s)); }
.atlas-widget .office-growth { font-size: .9em; color: var(--muted); }
.atlas-chart-legend { display: flex; flex-wrap: wrap; gap: .28em .8em; font-size: .76em; color: var(--muted); margin: auto 0 calc(.38 * var(--s)); padding-top: calc(.72 * var(--s)); }
.atlas-chart-legend span::before { content: ""; display: inline-block; vertical-align: middle; width: .9em; height: 2px; margin-right: .4em; background: #12b7c9; }
.atlas-chart-legend span:nth-child(2)::before { background: #2587df; }
.atlas-chart-legend span:nth-child(3)::before { background: #8e5cf5; }
.atlas-widget canvas { display: block; width: 100%; height: calc(8.75 * var(--s)); margin-top: calc(.5 * var(--s)); }
.atlas-widget.office-google canvas { margin-top: auto; height: calc(11.3 * var(--s)); }
.atlas-chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .75em; margin-top: calc(.24 * var(--s)); }
.atlas-widget-days { margin-top: calc(.7 * var(--s)); color: var(--muted); font-size: .88em; }
.atlas-widget-days summary { cursor: pointer; }
.atlas-widget-days [data-daily] { padding-top: .45em; }
.atlas-widget-days [data-daily] > div { display: flex; justify-content: space-between; border-block-start: 1px solid var(--border); padding: .25em 0; }

.phone-device .atlas-workspace { --s: 3.9cqw; height: 100%; }
.phone-device .atlas-office { height: 100%; }
.phone-device :is(.atlas-sidebar,.atlas-boundary,.atlas-find,.atlas-topbar [data-office-theme],.atlas-notifications,.atlas-open,.atlas-identity>span:last-child,.atlas-crumb>span,.atlas-crumb>svg,.atlas-toolbar [data-office-layout],.atlas-toolbar [data-office-bundle],.atlas-toolbar [data-office-save],.atlas-toolbar [data-office-picker],.atlas-toolbar [data-office-refresh],.atlas-toolbar [data-office-fold]) { display: none; }
.phone-device .atlas-topbar [data-office-mobile] { display: inline-grid; }
.phone-device .atlas-topbar { justify-content: flex-start; padding-inline: calc(.65 * var(--s)); }
.phone-device .atlas-top-actions { margin-left: auto; }
.phone-device .atlas-widget-grid { grid-template-columns: 1fr; }
.phone-device .atlas-dashboard h3 { font-size: calc(1.64 * var(--s)); text-wrap: balance; }
.phone-device .atlas-dashboard { padding-inline: calc(.67 * var(--s)); }

@media (max-width: 720px) {
  .atlas-browser-window { display: none; }
  .layout-atlas .keep-tab { flex-basis: 94px; }
  .story-overview:empty { height: min(486px, 67svh); }
  .story-overview .atlas-workspace { --s: 13px; height: min(486px, 67svh); }
  .story-overview :is(.atlas-sidebar,.atlas-boundary,.atlas-crumb>span,.atlas-crumb>svg,.atlas-identity,.atlas-open) { display: none; }
  .story-overview .atlas-topbar { justify-content: start; padding-inline: 9px; min-height: 44px; gap: 3px; }
  .story-overview .atlas-topbar [data-office-mobile] { display: inline-grid; }
  .story-overview .atlas-top-actions { margin-left: auto; gap: 2px; }
  .story-overview .atlas-find > label { width: min(120px, 37cqw); }
  .story-overview .atlas-dashboard { padding-inline: 10px; }
  .story-overview .atlas-toolbar { flex-wrap: wrap; }
  .story-overview .atlas-toolbar-fields { flex-wrap: wrap; }
  .story-overview .atlas-toolbar [data-office-layout] { display: none; }
  .story-overview .atlas-dashboard h3 { font-size: 20px; }
  .story-overview .atlas-assistant { margin-bottom: 7px; }
  .story-overview .atlas-toolbar :is(select, button, label.atlas-period) { min-height: 28px; }
  .story-overview .atlas-widget-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .story-overview .atlas-topbar [data-office-theme] { display: none; }
}
:is(.story-overview,.phone-device) .atlas-office[data-mobile-menu="open"] .atlas-sidebar {
  display: flex;
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  width: min(77%, 216px);
  padding-top: calc(3.7 * var(--s));
  box-shadow: 3px 0 14px #142d4730;
}
:is(.story-overview,.phone-device) .atlas-office[data-mobile-menu="open"] .atlas-topbar { z-index: 4; }
.atlas-widget-grip { cursor: grab; }
.atlas-widget-grip:active { cursor: grabbing; }
