.os-sidebar {
  background: #fff;
  color: #202632;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
}

.os-sidebar .su6-lockup { border-color: #e9ebee; }
.os-sidebar .su6-lockup b { font-size: 24px; }
.os-sidebar .su6-lockup b span { color: #ed4a1b; }
.os-sidebar nav a { color: #303a49; }
.os-sidebar nav a i { background: #f1f3f6; }
.os-sidebar nav a:hover,
.os-sidebar nav a.os-selected,
.os-sidebar nav a[aria-current] {
  background: #fff0e9;
  color: #a9320d;
}
.os-sidebar nav a:hover i,
.os-sidebar nav a.os-selected i { background: #ffe0d0; }

.os-guide {
  margin-top: auto;
  padding-top: 20px;
}
.os-guide summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 84px;
  padding: 8px 12px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(120deg, #aa300d, #ce4717);
  cursor: pointer;
  list-style: none;
}
.os-guide summary::-webkit-details-marker { display: none; }
.os-guide summary::after { content: '+'; margin-left: auto; font-size: 20px; }
.os-guide[open] summary::after { content: '−'; }
.os-guide img { width: 48px; height: 64px; object-fit: contain; }
.os-guide small { display: block; }
.os-guide p { margin: 8px 0 0; padding: 10px; border-radius: 10px; background: #fff0e9; }
@media (prefers-reduced-motion: no-preference) {
  .os-guide summary:hover img { transform: translateY(-4px); }
  .os-guide img { transition: transform .2s ease; }
}

.os-topbar,
.os-account,
.os-profile { display: flex; align-items: center; gap: 12px; }
.os-topbar {
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e1e5ea;
}
.os-location { color: #485465; }
.os-location strong { color: #202632; }
.os-profile,
.os-signout {
  padding: 5px 10px;
  border: 1px solid #dce1e7;
  border-radius: 10px;
  background: #fff;
  color: #202632;
  font-weight: 650;
}
.os-profile img,
.os-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.os-avatar { display: grid; place-items: center; background: #fff0e9; color: #a9320d; }

.os-workflow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  margin-bottom: 24px;
  border: 1px solid #e1e5ea;
  border-radius: 14px;
  background: #fff;
}
.os-workflow a { padding: 8px 12px; border-radius: 9px; color: #303a49; font-weight: 650; }
.os-workflow a:hover,
.os-workflow a[aria-current] { background: #fff0e9; color: #a9320d; }
.os-main .page-head h1 { letter-spacing: -.045em; }

@media (max-width: 900px) {
  .os-sidebar nav a { white-space: nowrap; }
  .os-guide { padding-top: 12px; }
  .os-guide summary { min-height: 52px; }
  .os-guide img { width: 30px; height: 38px; }
}

.os-main {
  --accent: #e84114;
  background: #f5f6f9;
}
.os-main .text-link { color: #b73813; }
.os-sidebar .su6-lockup { border-bottom: 0; gap: 4px; padding-bottom: 16px; }
.os-sidebar .su6-lockup b { font-size: 30px; letter-spacing: -.07em; }
.os-sidebar .su6-lockup img { width: 106px; }
.os-sidebar nav a { min-height: 48px; }
.os-sidebar nav a.os-selected { box-shadow: inset 3px 0 #f44b17; }
.os-guide summary {
  min-height: 148px;
  align-items: end;
  background: linear-gradient(135deg, #ff7825, #ed4817);
}
.os-guide img { width: 76px; height: 122px; }
.os-guide summary span { align-self: center; }

.os-topbar { margin-bottom: 26px; }
.os-main .os-dashboard-head { align-items: center; margin-bottom: 26px; }
.os-main .os-dashboard-head h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 850;
}
.os-dashboard-head p { margin: 6px 0 0; font-size: 17px; color: #4c586b; }
.os-dashboard-head .primary { white-space: nowrap; }
.os-workflow { gap: 5px; }
.os-workflow a { flex: 1 0 auto; text-align: center; }

.os-main .os-dashboard-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.os-dashboard-stats > div {
  display: grid;
  align-content: center;
  gap: 4px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 104px;
  padding: 12px;
}
.os-dashboard-stats i {
  display: grid;
  place-items: center;
  grid-row: span 2;
  align-self: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff0e9;
  color: #b73813;
  font-size: 19px;
  font-style: normal;
}
.os-dashboard-stats span { color: #4c586b; line-height: 1.2; }
.os-dashboard-stats > div:last-child i { color: #167343; background: #e1f6e9; }
.os-dashboard-stats > div:nth-child(5) i { color: #4c46a8; background: #eeedff; }
.os-dashboard-grid { grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); }
.os-dashboard-grid > section { align-self: start; }
.os-dashboard-grid .panel h2 { font-size: 20px; }
.os-deliveries .panel-head { align-items: center; margin-bottom: 10px; }
.os-deliveries .panel-head span,
.os-delivery time { background: #fff0e9; color: #a9320d; border-radius: 8px; padding: 3px 8px; }
.os-delivery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.os-delivery small { display: block; color: #576478; }
.os-delivery:hover strong { text-decoration: underline; }
.os-deliveries > .text-link { display: inline-block; margin-top: 10px; }

@media (max-width: 1320px) {
  .os-main .os-dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .os-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .os-guide summary { min-height: 56px; align-items: center; }
  .os-guide img { width: 34px; height: 42px; }
}
@media (max-width: 520px) {
  .os-main .os-dashboard-head { align-items: flex-start; flex-direction: column; }
  .os-main .os-dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Match the approved dashboard composition at desktop widths. */
.os-sidebar { width: clamp(232px, 18.75vw, 288px); padding: 20px 12px 26px; }
.os-sidebar .su6-lockup { padding: 4px 24px 20px; }
.os-sidebar .su6-lockup img { width: 120px; height: 66px; }
.os-sidebar .su6-lockup b { font-size: 37px; }
.os-sidebar nav { margin-top: 26px; gap: 3px; }
.os-sidebar nav a { min-height: 57px; padding: 10px 26px; gap: 24px; font-size: 19px; font-weight: 550; }
.os-sidebar nav svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.os-sidebar nav a.os-selected { color: #c43a0b; font-weight: 750; }
.os-main.main {
  margin-left: clamp(232px, 18.75vw, 288px);
  max-width: none;
  min-height: 100vh;
  padding: 17px 16px 26px 26px;
  color: #181f2d;
  background: #f5f6f9;
}
.os-topbar { min-height: 75px; margin: 0 0 30px; padding: 0 0 16px; }
.os-location { font-size: 19px; }
.os-home { margin-right: 11px; font-size: 25px; }
.os-profile { font-size: 17px; }
.os-profile img, .os-avatar { width: 42px; height: 42px; }
.os-main .os-dashboard-head { min-height: 112px; margin: 0 0 30px; padding-left: 10px; }
.os-dashboard-head p { font-size: 22px; }
.os-dashboard-head .primary {
  background: #ee4414;
  padding: 16px 28px;
  border-radius: 15px;
  font-size: 20px;
  box-shadow: none;
}
.os-workflow { min-height: 75px; align-items: center; padding: 10px; margin-bottom: 32px; }
.os-workflow a { padding: 12px 8px; font-size: 16px; }
.os-workflow a + a { border-left: 1px solid #eef0f4; }
.os-main .os-dashboard-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.os-dashboard-stats > div {
  min-height: 130px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 1px 2px #1722370a;
  border-color: #e2e6ed;
}
.os-dashboard-stats > div::after { display: none; }
.os-dashboard-stats i { width: 46px; height: 46px; font-size: 25px; }
.os-dashboard-stats span { font-size: 15px; }
.os-dashboard-stats b { font-size: 38px; }
.os-dashboard-stats > div:nth-child(4) i { background: #eeedff; color: #4c46a8; }
.os-dashboard-grid, .os-dashboard-extra { gap: 20px; }
.os-dashboard-grid .panel, .os-dashboard-extra .panel { background: #fff; border-color: #e2e6ed; }
.os-dashboard-grid .panel { min-height: 350px; }
.os-dashboard-grid .panel h2 { font-size: 25px; letter-spacing: -.04em; }
.os-dashboard-grid .panel-head { margin-bottom: 18px; }
.os-dashboard-extra { display: grid; grid-template-columns: 1fr 1fr; }
.os-brief-table { overflow-x: auto; }
.os-brief-table table { min-width: 0; width: 100%; }
.os-brief-table th { background: #f6f7f9; text-transform: none; }
.os-brief-table th, .os-brief-table td { padding: 14px 8px; white-space: normal; }
.os-brief-table small { display: block; color: #5e697b; }
.os-brief-table .task-title { white-space: normal; }
.os-guide { position: relative; padding-top: 34px; }
.os-guide summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 246px;
  padding: 10px 20px 18px;
  gap: 4px;
}
.os-guide summary img { width: 122px; height: 155px; grid-column: 1 / -1; }
.os-guide summary strong { font-size: 22px; }
.os-guide summary small { font-size: 15px; }
.os-guide summary::after {
  content: '→';
  align-self: end;
  width: 33px;
  height: 33px;
  text-align: center;
  border-radius: 50%;
  background: #fff;
  color: #bd350e;
}
.os-guide[open] summary::after { content: '→'; }
.os-guide p {
  position: absolute;
  right: 0;
  top: 0;
  max-width: 66%;
  margin: 0;
  background: #fff;
  border: 1px solid #e6e8ec;
  box-shadow: 0 4px 16px #17223715;
}
@media (max-width: 1200px) {
  .os-main .os-dashboard-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .os-dashboard-stats i { width: 34px; height: 34px; }
}
@media (max-width: 900px) {
  .os-sidebar { width: auto; }
  .os-main.main { margin-left: 0; padding: 16px; }
  .os-sidebar nav a { min-height: 44px; padding: 8px 14px; gap: 8px; font-size: 15px; }
  .os-guide { padding-top: 12px; }
  .os-guide summary { display: flex; min-height: 55px; padding: 6px 12px; gap: 10px; }
  .os-guide summary img { width: 32px; height: 42px; }
  .os-guide summary strong { font-size: 16px; }
  .os-guide p { position: static; max-width: none; }
  .os-dashboard-extra { grid-template-columns: 1fr; }
}
.os-tab-icon { display: inline-block; margin-right: 8px; font-size: 22px; line-height: 1; vertical-align: -.08em; }
.os-summary-label { margin: -9px 0 10px 9px; color: #556277; font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.os-dashboard-stats > div { min-height: 150px; }
.os-dashboard-stats > div:nth-child(3) i { color: #167343; background: #e1f6e9; }
.os-dashboard-stats > div:nth-child(4) i { color: #b73813; background: #fff0e9; }
.os-dashboard-stats > div:nth-child(5) i { color: #4c46a8; background: #eeedff; }
.os-guide p { right: 0; top: -10px; max-width: 58%; }
@media (max-width: 900px) {
  .os-guide p { max-width: none; }
  .os-dashboard-stats > div { min-height: 100px; }
}

/* The reference is a 1536 px image. Use compact desktop UI dimensions. */
.os-sidebar { width: 224px; padding: 16px 10px 20px; }
.os-sidebar .su6-lockup { padding: 3px 17px 13px; }
.os-sidebar .su6-lockup img { width: 94px; height: 52px; }
.os-sidebar .su6-lockup b { font-size: 28px; }
.os-sidebar nav { margin-top: 18px; }
.os-sidebar nav a { min-height: 44px; padding: 8px 18px; gap: 15px; font-size: 15px; }
.os-sidebar nav svg { width: 20px; height: 20px; }
.os-main.main { margin-left: 224px; padding: 13px 16px 22px 20px; }
.os-topbar { min-height: 56px; margin-bottom: 21px; padding-bottom: 10px; }
.os-location, .os-profile { font-size: 14px; }
.os-home { font-size: 19px; }
.os-profile img, .os-avatar { width: 31px; height: 31px; }
.os-main .os-dashboard-head { min-height: 84px; margin-bottom: 21px; }
.os-main .os-dashboard-head h1 { font-size: 42px; }
.os-dashboard-head p { font-size: 16px; }
.os-dashboard-head .primary { padding: 12px 19px; font-size: 15px; border-radius: 11px; }
.os-workflow { min-height: 54px; margin-bottom: 25px; padding: 6px; }
.os-workflow a { font-size: 13px; padding: 8px 7px; }
.os-tab-icon { font-size: 17px; margin-right: 6px; }
.os-main .os-dashboard-stats { gap: 10px; margin-bottom: 20px; }
.os-dashboard-stats > div { min-height: 108px; padding: 12px; }
.os-dashboard-stats span { font-size: 13px; }
.os-dashboard-stats b { font-size: 28px; }
.os-dashboard-stats i { width: 34px; height: 34px; font-size: 19px; }
.os-dashboard-grid .panel { min-height: 285px; padding: 15px; }
.os-dashboard-grid .panel h2 { font-size: 19px; }
.os-dashboard-grid .panel-head { margin-bottom: 12px; }
.os-brief-table th, .os-brief-table td { padding: 10px 7px; }
.os-guide summary { min-height: 192px; padding: 8px 14px 12px; }
.os-guide summary img { width: 95px; height: 120px; }
.os-guide summary strong { font-size: 17px; }
.os-guide summary small, .os-guide p { font-size: 12px; }
@media (max-width: 900px) {
  .os-sidebar { width: auto; }
  .os-main.main { margin-left: 0; padding: 14px; }
  .os-main .os-dashboard-head h1 { font-size: 34px; }
  .os-guide summary { min-height: 48px; }
  .os-guide summary img { width: 30px; height: 38px; }
}

.os-line-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.os-workflow a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.os-dashboard-stats > div { grid-template-columns: auto 1fr; }
.os-dashboard-stats small { grid-column: 1 / -1; color: #5a6679; margin-top: 4px; }
.os-assignee, .os-active-team, .os-team-faces { display: inline-flex; align-items: center; gap: 7px; }
.os-active-team[hidden] { display: none; }
.os-active-team { padding-right: 12px; border-right: 1px solid #e1e5ea; }
.os-assignee img, .os-initial, .os-live-face, .os-live-face img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none;
}
.os-initial, .os-live-face { display: inline-grid; place-items: center; background: #edf0f6; color: #414d61; font-size: 12px; }
.os-live-face { position: relative; }
.os-live-face::after, .os-team-count::before { background: #169044; border-radius: 50%; content: ''; }
.os-live-face::after { position: absolute; bottom: -1px; right: -1px; width: 9px; height: 9px; border: 2px solid white; }
.os-team-count { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #dce1e7; border-radius: 9px; background: white; white-space: nowrap; font-size: 12px; }
.os-team-count::before { width: 7px; height: 7px; }
.os-deliveries .panel-head h2 { display: flex; align-items: center; gap: 8px; }
.os-deliveries .panel-head > span { display: grid; place-items: center; min-width: 23px; height: 23px; border-radius: 50%; background: #c63e15; color: white; }
.os-delivery { justify-content: start; }
.os-delivery time { margin-left: auto; }
.os-delivery-marker { width: 13px; height: 13px; flex: none; border: 1px solid #8591a3; border-radius: 3px; }
.os-deliveries > .text-link { display: block; text-align: right; border-top: 1px solid var(--line); padding-top: 10px; }
.os-main .os-dashboard-head h1 { font-size: 34px; }
.os-dashboard-head p { font-size: 14px; }
.os-dashboard-stats b { font-size: 24px; }

/* CSS viewport width accounts for both display scaling and browser zoom. */
.os-sidebar nav a { font-size: 14px; min-height: 42px; }
.os-main .os-dashboard-head h1 { font-size: clamp(28px, 2.1vw, 32px); }
.os-dashboard-head .primary { font-size: 14px; }
.os-dashboard-grid .panel h2 { font-size: 17px; }
.os-dashboard-stats b { font-size: 23px; }
.os-dashboard-stats small { font-size: 12px; }
.os-brief-table td { font-size: 13px; }
.os-dashboard-grid > *, .os-dashboard-extra > * { min-width: 0; }
.os-brief-table { overflow-wrap: anywhere; }
.os-brief-table table { table-layout: fixed; }
.os-brief-table th:first-child { width: 32%; }
.os-brief-table th:nth-child(2) { width: 13%; }
.os-brief-table th:nth-child(3) { width: 18%; }
.os-brief-table th:nth-child(4) { width: 19%; }
.os-brief-table .badge { white-space: normal; }
.os-workflow { min-height: 49px; }
.os-account { flex-wrap: wrap; }
.os-main.main {
  padding-inline: clamp(16px, 2vw, 44px);
}
@media (min-width: 1051px) {
  .os-main .os-dashboard-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 901px) and (max-width: 1280px) {
  .os-sidebar { width: 192px; }
  .os-main.main { margin-left: 192px; }
  .os-sidebar nav a { gap: 10px; padding-inline: 12px; }
  .os-workflow a { gap: 4px; padding-inline: 5px; }
}
@media (max-width: 1050px) {
  .os-main .os-dashboard-stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .os-brief-table table { min-width: 580px; }
}
@media (max-width: 520px) {
  .os-main .os-dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .os-workflow a { flex: 1 1 42%; }
  .os-team-faces { display: none; }
}
@media (max-height: 780px) and (min-width: 901px) {
  .os-sidebar .su6-lockup { padding-bottom: 4px; }
  .os-sidebar nav { margin-top: 10px; }
  .os-sidebar nav a { min-height: 37px; }
  .os-guide { padding-top: 21px; }
  .os-guide summary { min-height: 135px; }
  .os-guide summary img { width: 62px; height: 75px; }
  .os-guide p { top: 0; }
}

.os-account { gap: 14px; }
.os-active-team { gap: 8px; padding-right: 14px; }
.os-team-faces:empty { display: none; }
.os-live-face, .os-live-face img { width: 32px; height: 32px; }
.os-team-count { min-height: 30px; }
.os-profile-menu { position: relative; }
.os-profile-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 3px 10px 3px 4px;
  gap: 8px;
  border-radius: 13px;
}
.os-profile-menu summary::-webkit-details-marker { display: none; }
.os-profile-menu summary .os-line-icon { width: 15px; height: 15px; }
.os-profile-menu[open] summary .os-line-icon { transform: rotate(180deg); }
.os-profile-actions {
  position: absolute;
  z-index: 22;
  top: calc(100% + 6px);
  right: 0;
  min-width: 155px;
  padding: 5px;
  border: 1px solid #dce1e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px #17223718;
}
.os-profile-actions a, .os-profile-actions .os-signout {
  display: block;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  text-align: left;
}
.os-profile-actions a:hover, .os-profile-actions .os-signout:hover { background: #fff0e9; }

.os-topbar {
  min-height: 58px;
  margin: -13px calc(-1 * clamp(16px, 2vw, 44px)) 14px;
  padding: 8px clamp(16px, 2vw, 44px);
  gap: 8px 16px;
  background: #fff;
}
.os-dashboard-title h1 { font-size: 21px; line-height: 1.15; margin: 0; }
.os-dashboard-title p { font-size: 12px; margin: 2px 0 0; color: #526076; }
.os-new-brief { font-size: 13px; padding: 7px 11px; box-shadow: none; }
.os-fullscreen {
  gap: 5px;
  padding: 7px 9px;
  background: #fff;
  color: #303a49;
  border: 1px solid #dce1e7;
  font-size: 13px;
}
.os-fullscreen[hidden] { display: none; }
.os-fullscreen .os-line-icon { width: 15px; height: 15px; }
@media (max-width: 900px) { .os-topbar { margin-top: -14px; } }

.os-guide { flex: 0 0 auto; padding-top: 12px; }
.os-guide summary {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 18px #ed6c2220;
}
.os-guide summary::after, .os-guide[open] summary::after { content: none; }
.os-guide-scene {
  display: block;
  position: relative;
  height: 128px;
  background: radial-gradient(ellipse at 22% 75%, #ffab50 0%, #ff7926 65%);
}
.os-guide summary img {
  position: absolute;
  bottom: 0;
  left: 15px;
  width: 105px;
  height: 118px;
  object-fit: contain;
  object-position: bottom;
}
.os-guide-hello {
  position: absolute;
  top: 15px;
  right: 10px;
  padding: 6px 9px;
  border-radius: 14px;
  color: #303a49;
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}
.os-guide-hello::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 100%;
  border: 4px solid transparent;
  border-top-color: #fff;
}
.os-guide-copy { display: block; padding: 10px 12px; background: #c94315; }
.os-guide summary strong { display: block; font-size: 15px; line-height: 1.2; }
.os-guide summary small { margin-top: 4px; }
.os-guide-action { display: flex; justify-content: space-between; margin-top: 7px; font-size: 12px; font-weight: 700; }
.os-guide p { position: static; max-width: none; margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .os-guide-scene img { animation: os-guide-wave 5s ease-in-out infinite; transform-origin: bottom center; }
}
@keyframes os-guide-wave {
  0%, 36%, 100% { transform: rotate(0); }
  12% { transform: rotate(-5deg); }
  24% { transform: rotate(3deg); }
}
@media (max-height: 780px) and (min-width: 901px) {
  .os-guide-scene { height: 92px; }
  .os-guide summary img { width: 79px; height: 85px; }
}


.os-guide summary { border-radius: 13px; }
.os-guide summary:focus { outline: none; }
.os-guide summary:focus-visible { outline: 2px solid #2377dc; outline-offset: 2px; }
.os-guide-scene { overflow: hidden; }
.os-guide summary img {
  width: 65%;
  height: auto;
  top: 10px;
  bottom: auto;
  left: 6px;
  transform-origin: 50% 40%;
}
.os-guide-hello { right: 9px; top: 19px; }
.os-guide-copy { background: #f65313; }
.os-guide-action { align-items: center; }
.os-guide-action > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #b9360e;
  font-size: 18px;
}
.os-guide-tip, .os-guide[open] .os-guide-greeting { display: none; }
.os-guide[open] .os-guide-tip { display: inline; }
.os-guide[open] .os-guide-hello {
  position: fixed;
  top: var(--guide-balloon-top, 0px);
  left: var(--guide-balloon-left, 0px);
  right: auto;
  z-index: 24;
  width: min(255px, calc(100vw - 24px));
  padding: 10px 13px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  box-shadow: 0 4px 16px #17223725;
}



.os-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
}
@media (max-width: 900px) {
  .os-main.main { overflow: visible; }
  .os-scroll-content { overflow-x: auto; }
}

.os-brief-table tbody td { padding-block: 14px; }

.os-brief-table .os-task-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.os-subpage-title { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.os-subpage-title h1 { font-size: 19px; line-height: 1.2; margin: 0; }
.os-subpage-title p { color: #526076; font-size: 12px; margin: 3px 0 0; }
.os-subpage-title .eyebrow { display: none; }
.os-subpage-title .brand-identity { gap: 9px; }
.os-subpage-title .brand-identity > img,
.os-subpage-title .brand-identity > span { width: 38px; height: 38px; border-radius: 8px; }
.os-subpage-actions, .os-subpage-actions .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.os-subpage-actions :is(.primary, .secondary, .ai-button, button) { padding: 6px 9px; font-size: 12px; box-shadow: none; }
.os-main .brand-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.os-main .brand-card { min-height: 0; border-radius: 13px; }
.os-main .brand-card-top { padding: 12px 12px 4px; }
.os-main .brand-logo-frame { height: 60px; padding: 7px; border-radius: 9px; }
.os-main .brand-logo-frame img { max-height: 44px; }
.os-main .brand-logo-frame .brand-initial { width: 34px; height: 34px; border-radius: 8px; font-size: 15px; }
.os-main .brand-card-copy { padding: 4px 12px 8px; }
.os-main .brand-card h2 { font-size: 16px; margin: 4px 0; }
.os-main .brand-card p { min-height: 0; margin: 0 0 4px; font-size: 13px; }
.os-main .brand-card .mini-stats { padding: 8px 12px; gap: 5px; flex-wrap: wrap; }

.os-topbar-heading { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; min-width: 0; }
.os-heading-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: #fff0e9; color: #b73813; }

.os-main .brand-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 275px), 1fr)); gap: 14px; }
.os-main .brand-logo-frame { height: 76px; }
.os-main .brand-logo-frame img { max-height: 54px; }
.os-main .brand-card-copy { padding: 6px 14px 10px; }
.os-main .brand-card h2 { font-size: 17px; }

.os-calendar { border: 1px solid #dfe6ef; border-radius: 15px; background: #fff; overflow: hidden; }
.os-cal-toolbar, .os-cal-month { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.os-cal-toolbar { padding: 12px 14px; }
.os-cal-toolbar :is(a, button, input), .os-cal-pick :is(button, input) {
  border: 1px solid #dce5ef; border-radius: 8px; background: #fff; color: #314158;
  width: auto; padding: 5px 9px; font-size: 13px;
}
.os-cal-toolbar strong { margin-inline: 4px; }
.os-cal-toolbar button:disabled { opacity: .45; cursor: default; }
.os-cal-undo { margin-left: auto; }
.os-cal-move { background: #f5f8fc; padding: 8px 14px; border-block: 1px solid #e4eaf3; font-size: 13px; color: #4e6079; }
.os-cal-move p { margin: 0; }
.os-cal-move output:not(:empty) { display: block; margin-top: 5px; }
.os-cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; }
.os-cal-scroll { overflow: auto; }
.os-cal-weekdays, .os-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 610px; }
.os-cal-weekdays { background: #f4f7fb; text-align: center; font-size: 12px; color: #4e6079; }
.os-cal-weekdays b { padding: 10px 3px; }
.os-cal-day { min-height: 104px; padding: 7px; border-top: 1px solid #e4eaf3; border-right: 1px solid #e4eaf3; transition: background .18s ease; }
.os-cal-day.is-outside { background: #f5f7fa; color: #65738a; }
.os-cal-day.is-drop-target { background: #ffebdc; outline: 2px solid #e8763d; outline-offset: -2px; }
.os-cal-day time { display: inline-grid; place-items: center; min-width: 23px; height: 23px; font-size: 12px; font-weight: 700; }
.os-cal-day time[aria-current] { background: #ba421c; color: #fff; border-radius: 7px; }
.os-cal-card {
  display: block; margin-top: 5px; padding: 6px 7px; border: 1px solid #e4eaf3;
  border-left: 3px solid var(--task-color, #e8763d); border-radius: 8px;
  background: #f6f8fc; color: #27374e; font-size: 12px; overflow-wrap: anywhere;
}
.os-cal-card[draggable] { cursor: grab; }
.os-cal-card.is-dragging { opacity: .5; }
.os-cal-card-title { display: block; font-weight: 700; }
.os-cal-card small { display: block; color: #52647c; }
.os-cal-shelf { padding: 12px; border-left: 1px solid #e4eaf3; background: #f9fbfd; min-width: 0; }
.os-cal-shelf h2 { margin: 0; font-size: 17px; }
.os-cal-shelf p { margin: 4px 0 10px; font-size: 12px; color: #52647c; }
.os-cal-shelf-list { max-height: 640px; overflow: auto; }
.os-cal-pick { font-size: 12px; margin: 3px 0 9px; }
.os-cal-pick summary { cursor: pointer; color: #4e6079; }
.os-cal-pick input { max-width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .os-cal-card { animation: os-calendar-in .22s ease-out; transition: transform .16s ease, background .16s ease; }
  .os-cal-card:hover { transform: translateY(-1px); background: #fff1e8; }
}
@keyframes os-calendar-in { from { opacity: 0; transform: translateY(3px); } }
@media (max-width: 1100px) {
  .os-cal-layout { grid-template-columns: minmax(0, 1fr); }
  .os-cal-shelf { border-left: 0; border-top: 1px solid #e4eaf3; }
  .os-cal-shelf-list { max-height: 260px; }
}

.os-topbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-width: 0;
}
.os-page-controls:empty { display: none; }
.os-page-controls:not(:empty) {
  padding-inline-end: 24px;
  border-inline-end: 1px solid #dce1e7;
}

.os-panel-description { display: block; margin-top: 2px; color: #526076; font-size: 12px; }
.os-module .os-main.main { padding: 0; background: transparent; }
.os-module .os-topbar {
  margin: 0;
  color: #202632;
  color-scheme: light;
}
.os-module .os-sidebar { color-scheme: light; }
.os-module .os-scroll-content { min-width: 0; }
.os-studio .shell { height: calc(100dvh - 58px); }
.os-postbox .os-scroll-content > main { margin-left: 0; padding: 16px; }
.os-postbox-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.os-postbox-tools .search { width: clamp(150px, 18vw, 290px); margin: 0; }
.os-transfer .os-transfer-tabs { height: auto; min-height: 0; padding: 4px 16px; }
.os-transfer .os-transfer-tabs nav { flex-wrap: wrap; gap: 4px 18px; }
.os-transfer .os-transfer-tabs nav a { padding-block: 7px; }
@media (min-width: 901px) {
  .os-transfer > .su6-ticker { left: 224px; width: calc(100% - 224px); }
}
@media (min-width: 901px) and (max-width: 1280px) {
  .os-transfer > .su6-ticker { left: 192px; width: calc(100% - 192px); }
}
@media (max-width: 900px) {
  .os-studio .shell { height: max(600px, calc(100dvh - 58px)); }
  .os-module .os-scroll-content { overflow: visible; }
}

.os-studio .os-page-controls .top-actions { flex-wrap: wrap; gap: 8px; }
.os-studio .os-page-controls :is(.top-brand, .global-search) {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #dce1e7;
  color: #303a49;
  padding: 7px 9px;
  font-size: 13px;
  white-space: nowrap;
}
.os-studio .os-page-controls .global-search:hover { background: #fff0e9; color: #a9320d; }
.os-studio .os-page-controls .global-search kbd { color: #526076; }

.os-studio .os-topbar .brand-logo {
  height: auto;
  width: auto;
  padding: 0;
  border: 0;
  color: #202632;
}
.os-studio .os-topbar .brand-name { display: block; }
.os-studio .os-topbar .brand-name small { color: #526076; }
.os-studio .os-topbar .brand-name span { color: #b64216 !important; }
.os-studio .finder .filters {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.os-studio .studio-sidebar .brand-add { padding: 0; line-height: 1; }
.os-studio .studio-sidebar .brand-row { justify-content: flex-start; }
.os-studio .studio-sidebar .brand-dot { display: inline-grid; flex: none; place-items: center; }

.os-studio .studio-brand-picker { display: none; position: relative; }
.os-studio .studio-brand-picker.has-picker { display: block; }
.os-studio .top-actions:has(.has-picker) .studio-brand-indicator { display: none; }
.os-studio .studio-brand-picker summary { cursor: pointer; list-style: none; }
.os-studio .studio-brand-picker summary::-webkit-details-marker { display: none; }
.studio-brand-popover {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  width: min(255px, calc(100vw - 24px));
  padding: 10px;
  background: #181e26;
  border: 1px solid #37404a;
  border-radius: 12px;
  color: #f5f6f8;
  box-shadow: 0 10px 28px #0005;
  color-scheme: dark;
}
.studio-brand-popover label { font-size: 12px; }
.studio-brand-popover input { margin-top: 4px; padding: 7px 8px; font-size: 13px; }
.studio-brand-popover .brand-items { display: grid; max-height: min(45vh, 300px); overflow: auto; }
.studio-brand-popover .brand-row { justify-content: flex-start; }
.studio-brand-popover .brand-row[hidden] { display: none; }
.studio-brand-popover .brand-dot { flex: none; }
.studio-brand-popover .brand-heading { display: none; }
.os-studio .studio-brand-popover .new-brand-inline { display: block; }

.os-studio .os-page-controls .studio-brand-picker summary {
  background: #fff0e9;
  border-color: #efb197;
  color: #9c3210;
}

.os-studio .studio-brand-popover label { display: block; margin: 0 0 8px; }
.os-studio .studio-brand-popover input {
  width: 100%;
  box-sizing: border-box;
  background: #11161d;
  border: 1px solid #465160;
  color: #f5f6f8;
  box-shadow: none;
  outline: none;
}
.os-studio .studio-brand-popover input:focus {
  border-color: #ff934f;
  box-shadow: 0 0 0 2px #ff934f33;
}
.os-studio .studio-brand-popover .brand-row {
  align-items: center;
  justify-content: flex-start;
  padding: 7px 8px;
  min-width: 0;
}
.os-studio .studio-brand-popover .brand-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}
.os-studio .studio-brand-popover .new-brand-inline {
  width: 100%;
  text-align: left;
  padding: 7px 8px;
}


.os-studio .studio-tool-title {
  min-width: 0;
  padding-inline-start: 10px;
  border-inline-start: 1px solid #dce1e7;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.os-transfer .os-topbar .os-transfer-tabs { padding: 0; border: 0; background: transparent; }
.os-transfer .os-topbar .os-transfer-tabs nav { gap: 2px 12px; width: auto; }
.os-transfer .os-topbar .os-transfer-tabs a { font-size: 12px; white-space: nowrap; }
body.os-transfer:has(> .su6-ticker) .tr-compose { height: auto; min-height: 0; }
body.os-transfer:has(> .su6-ticker) .tr-compose > .tr-form-card { max-height: none; overflow: visible; }
.os-transfer .tr-form-card, .os-transfer .tr-hero { min-width: 0; }
@media (min-width: 1061px) {
  .os-transfer .tr-compose { display: grid; grid-template-columns: minmax(310px, 380px) minmax(0, 1fr); }
}
@media (max-width: 1060px) {
  .os-transfer .tr-compose { display: flex; flex-direction: column; }
  .os-transfer .tr-compose > .tr-form-card { width: min(100% - 24px, 580px); margin-inline: auto; }
}
.tr-transfer-dialog {
  width: min(430px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: clamp(16px, 3vh, 28px);
  border: 1px solid #e7e2dc;
  border-radius: 22px;
  background: #fff;
  color: #252b36;
  text-align: center;
  box-shadow: 0 18px 60px #10182730;
  overflow: auto;
}
.tr-transfer-dialog::backdrop { background: #141b2860; }
.tr-transfer-ring {
  display: grid;
  place-items: center;
  width: clamp(96px, 23vh, 164px);
  aspect-ratio: 1;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle, white 61%, transparent 62%), conic-gradient(#ed5a24 var(--transfer-percent, 0%), #e9eaed 0);
}
.tr-transfer-ring strong { font-size: clamp(28px, 5vh, 44px); }
.tr-transfer-dialog h2 { margin: 0 0 8px; font-size: 23px; }
.tr-transfer-dialog > p { margin: 4px 0; font-size: 13px; }
.tr-transfer-companion { display: flex; align-items: center; gap: 10px; text-align: left; margin-block: 12px; }
.tr-transfer-companion img { width: 43px; height: 57px; object-fit: contain; }
.tr-transfer-companion p { flex: 1; margin: 0; padding: 9px 12px; border-radius: 12px; background: #fff0e9; font-size: 13px; }
.tr-transfer-actions { display: grid; gap: 8px; }
.tr-transfer-actions [hidden] { display: none !important; }
.tr-transfer-dialog.is-complete .tr-transfer-ring { background: #e9f6ee; color: #237448; }
@media (prefers-reduced-motion: no-preference) {
  .tr-transfer-dialog[open] .tr-transfer-companion img { animation: os-guide-wave 5s ease-in-out infinite; }
}

.os-postbox .mail-organizer-buttons button {
  background: #c54016;
  border-color: #c54016;
  color: #fff;
}
.os-postbox .mail-organizer-buttons button:hover {
  background: #a9320d;
  border-color: #a9320d;
  color: #fff;
}

/* Persistent app-level fullscreen when navigation reloads the current page. */
html.os-fullscreen-fallback,
html.os-fullscreen-fallback body { width: 100%; height: 100%; overflow: hidden; }
html.os-fullscreen-fallback .os-sidebar {
  position: fixed;
  z-index: 10001;
  top: 0;
  bottom: 0;
  height: 100dvh;
}
html.os-fullscreen-fallback .os-main.main {
  position: fixed;
  z-index: 10000;
  inset: 0 0 0 clamp(232px, 18.75vw, 288px);
  width: auto;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
html.os-fullscreen-fallback body.connect-staff > .workspace {
  position: fixed;
  z-index: 10000;
  inset: 0 0 0 calc(var(--connect-os-sidebar-width, 224px) + 244px);
  width: auto;
  height: 100dvh;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
html.os-fullscreen-fallback body.ai-studio-live {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
html.os-fullscreen-fallback body.ai-studio-live > header { flex: 0 0 78px; }
html.os-fullscreen-fallback body.ai-studio-live > main {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  overflow: auto;
}
@media (max-width: 900px) {
  html.os-fullscreen-fallback .os-main.main { inset: 0; }
  html.os-fullscreen-fallback body.connect-staff > .workspace { inset: 0 0 0 180px; }
}
@media (max-width: 1200px) and (min-width: 901px) {
  html.os-fullscreen-fallback body.connect-staff > .workspace {
    inset-inline-start: calc(var(--connect-os-sidebar-width, 192px) + 215px);
  }
}
@media (max-width: 650px) {
  html.os-fullscreen-fallback body.connect-staff > .workspace { inset-inline-start: 0; }
}

/* Existing dashboard cards also act as task filters. */
.os-dashboard-stats>a.os-stat-link{display:grid;align-content:center;gap:4px 10px;grid-template-columns:auto minmax(0,1fr);min-height:108px;padding:12px;background:#fff;border:1px solid #e2e6ed;border-radius:14px;color:inherit;box-shadow:0 1px 2px #1722370a;text-decoration:none}
.os-dashboard-stats>a.os-stat-link small{grid-column:1/-1;color:#526076;margin-top:5px}
.os-dashboard-stats>a.os-stat-link:hover{border-color:#ed8d68;box-shadow:0 3px 12px #e8763d15}
.os-dashboard-stats>a.os-stat-link:focus-visible{outline:2px solid #e8763d;outline-offset:3px}
.task-filter-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.task-filter-chips a{display:inline-flex;align-items:center;gap:9px;padding:9px 13px;border:1px solid #e0e4eb;background:#fff;border-radius:10px;color:#445064;font-size:13px}
.task-filter-chips a b{padding:2px 7px;border-radius:6px;background:#f1f3f6;font-size:12px}
.task-filter-chips a[aria-current]{background:#fff0e7;color:#b64118;border-color:#ffd3bb}
.os-dashboard-stats>a.os-stat-link:nth-child(3) i{color:#167343;background:#e1f6e9}
.os-dashboard-stats>a.os-stat-link:nth-child(4) i{color:#b73813;background:#fff0e9}
.os-dashboard-stats>a.os-stat-link:nth-child(5) i{color:#4c46a8;background:#eeedff}

/* Studio's header can wrap; allocate the actual remaining viewport height. */
body.os-studio{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.os-studio>.os-main{display:flex;flex-direction:column;flex:1 1 0;min-height:0;max-height:100dvh;overflow:hidden}
.os-studio .os-topbar{flex:0 0 auto}
.os-studio .os-scroll-content{flex:1 1 0;min-height:0;overflow:hidden}
.os-studio .shell{height:100%;min-height:0}
@media(max-width:900px){.os-studio>.os-sidebar .os-guide{display:none}}
