/* Responsive spacing and the raised service dock. Kept after the material theme. */
html[data-onto-theme=balanced],
html[data-onto-theme=balanced] body {
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
html[data-onto-theme=balanced] #app {
  max-width: 100%;
  overflow-x: clip;
}
html[data-onto-theme=balanced] #app :is(.ok-app,.onto-journey,.onto-auth-main,.ok-content,.oj-main,.ux-header,.ux-switcher,.ok-row-copy) {
  min-width: 0;
}
html[data-onto-theme=balanced] #app :is(.ok-app,.onto-journey) {
  overflow-x: clip;
}
html[data-onto-theme=balanced] #app :is(.ok-content,.oj-main,.onto-auth-panel) {
  overflow-wrap: anywhere;
}
/* Content sizes no longer scale up as a single image on wider phones. */
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ok-review {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  min-height: 0;
  padding: 22px;
  text-align: left;
}
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ok-review-top {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .045em;
}
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ok-review strong {
  max-width: 100%;
  font-size: clamp(26px,7vw,29px);
  line-height: 1.14;
  margin: 0;
}
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ok-review-bottom {
  font-size: 15px;
  line-height: 1.5;
  margin: 10px 0 0;
}
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ux-home-cta {
  width: 100%;
  min-height: 48px;
  margin: 22px 0 0;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.4;
}
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus::before {
  right: 8%;
  max-width: 80%;
}
/* A separate action, rather than a fifth root tab. */
#app .ok-bottom .ok-nav-add { display: none; }
@media(max-width:959px) {
  html[data-onto-theme=balanced] #app .ok-app .ok-content,
  html[data-onto-theme=balanced] #app .ok-app .ok-content.ok-is-home,
  html[data-onto-theme=balanced] #app .ok-app .ok-content.ux-hub {
    width: 100%;
    padding: 24px 22px calc(132px + env(safe-area-inset-bottom));
  }
  html[data-onto-theme=balanced] #app .ok-app .ok-content.ok-is-home { padding-top: 12px; }
  html[data-onto-theme=balanced] #app .ok-app .ux-header {
    height: 68px;
    min-height: 68px;
    padding: 12px 22px;
    gap: 14px;
  }
  html[data-onto-theme=balanced] #app .ok-app .ux-brand { width: 86px; flex: 0 0 86px; }
  html[data-onto-theme=balanced] #app .ok-app .ux-brand img { width: 86px; }
  html[data-onto-theme=balanced] #app .ok-app .ux-header>a.btn {
    width: 44px; min-width: 44px; height: 44px!important; min-height: 44px!important;
  }
  html[data-onto-theme=balanced] #app .layered-office-context {
    height: auto; min-height: 32px; margin: 0 0 24px; gap: 12px; font-size: 16px; line-height: 1.4;
  }
  html[data-onto-theme=balanced] #app .layered-demo { font-size: 12px; padding: 3px 8px; }
  html[data-onto-theme=balanced] #app .ok-app .compact-greeting { margin: 0 0 24px; }
  html[data-onto-theme=balanced] #app .ok-app .compact-greeting h1,
  html[data-onto-theme=balanced] #app .ok-app .compact-greeting h1>span {
    font-size: clamp(32px,9.2vw,40px);
    line-height: 1.12;
    letter-spacing: -.025em;
  }
  html[data-onto-theme=balanced] #app .ok-app .compact-attention {
    margin: 0 0 22px; font-size: 16px; font-weight: 500; line-height: 1.5;
  }
  html[data-onto-theme=balanced] #app .compact-all-tasks { margin: 10px 0 28px; }
  html[data-onto-theme=balanced] #app .compact-all-tasks button {
    min-height: 50px; padding: 8px 2px; font-size: 16px!important;
  }
  html[data-onto-theme=balanced] #app .compact-section-heading { margin: 0 0 16px; }
  html[data-onto-theme=balanced] #app .compact-services h2 { font-size: 26px; line-height: 1.2; }
  html[data-onto-theme=balanced] #app .ux-home-service-tiles { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  html[data-onto-theme=balanced] #app .ux-home-service-tile {
    min-width: 0; height: auto; min-height: 86px; padding: 14px 4px; gap: 8px; border-radius: 16px;
  }
  html[data-onto-theme=balanced] #app .ux-home-service-tile strong { font-size: 14px; line-height: 1.3; }
  html[data-onto-theme=balanced] #app .ux-home-service-tile .ok-row-icon,
  html[data-onto-theme=balanced] #app .ux-home-service-tile .ok-row-icon svg { width: 30px; height: 30px; }
  html[data-onto-theme=balanced] #app .compact-home-options { margin-top: 28px; }
  html[data-onto-theme=balanced] #app :is(.ok-heading,.compact-task-heading,.glow-page-heading,.ux-hub-intro) { margin-bottom: 28px; }
  html[data-onto-theme=balanced] #app :is(.ok-heading,.compact-task-heading,.glow-page-heading,.ux-hub-intro) h1 { font-size: clamp(30px,8.2vw,36px); line-height: 1.14; }
  html[data-onto-theme=balanced] #app .ok-content :is(.card,.qj-panel,.qj-form,.ok-doc-upload) { padding: 22px; margin-bottom: 24px; }
  html[data-onto-theme=balanced] #app .ok-content .ok-list .ok-row { padding: 18px 16px; gap: 14px; }
  html[data-onto-theme=balanced] #app .ok-content :is(.ok-list,.ok-filter-tabs,.balanced-quote-tabs) { margin-bottom: 24px; }
  html[data-onto-theme=balanced] #app :is(.oj-main,.onto-auth-panel) { padding-inline: 24px; }
  html[data-onto-theme=balanced] #app .oj-choices { gap: 16px; }
  /* The mask cuts through the surface so the real page shows through the notch. */
  html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom.ok-bottom--dock {
    position: fixed;
    inset: auto auto 0 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) 72px minmax(0,1fr) minmax(0,1fr);
    align-items: start;
    width: min(100%,540px);
    height: auto;
    min-height: 78px;
    padding: 6px 8px calc(10px + env(safe-area-inset-bottom));
    gap: 0;
    border: 0!important;
    border-radius: 0!important;
    background: none!important;
    box-shadow: none!important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    isolation: isolate;
    overflow: visible;
    filter: drop-shadow(0 -4px 16px #00171c26);
  }
  html[data-onto-theme=balanced] #app nav.ok-bottom--dock::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at 100% 100%,#ffd8be26,transparent 45%),linear-gradient(150deg,#fffef9 5%,#f7f7f0 65%,#e9f0e8);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 100' preserveAspectRatio='none'%3E%3Cpath d='M0 24Q0 0 24 0H140C151 0 154 5 158 17C164 35 175 43 195 43C215 43 226 35 232 17C236 5 239 0 250 0H366Q390 0 390 24V100H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 100' preserveAspectRatio='none'%3E%3Cpath d='M0 24Q0 0 24 0H140C151 0 154 5 158 17C164 35 175 43 195 43C215 43 226 35 232 17C236 5 239 0 250 0H366Q390 0 390 24V100H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  }
  html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button {
    width: 100%; min-height: 58px; padding: 8px 0!important; gap: 6px;
    border: 0; border-radius: 14px; background: none!important;
    color: #4e6767!important; font-size: 11px!important; line-height: 1.3;
  }
  html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button[aria-current=page] { color: #074c4f!important; font-weight: 700; }
  html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock .ok-nav-icon,
  html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock .ok-nav-icon svg { width: 23px; height: 23px; min-width: 23px; min-height: 23px; color: inherit; }
  html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock button[data-j-root=home][aria-current=page] svg { fill: #074c4f; stroke: #074c4f; }
  html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button.ok-nav-add {
    display: flex;
    position: relative;
    align-self: start;
    justify-self: center;
    width: 58px; height: 58px; min-height: 58px;
    margin-top: -31px;
    padding: 0!important;
    border: 1px solid #d9fff0;
    border-radius: 50%;
    color: #073b3f!important;
    background: radial-gradient(ellipse at 25% -15%,#f5fff4d9,transparent 65%),radial-gradient(ellipse at 100% 115%,#ffb39999,transparent 56%),linear-gradient(145deg,#c5ffe6,#a7e9cd)!important;
    box-shadow: inset 0 2px 2px #fff9,inset 0 -2px 3px #cf82633d,0 5px 12px #001c2330;
  }
  html[data-onto-theme=balanced] #app nav.ok-bottom--dock .ok-nav-add svg { width: 28px; height: 28px; }
  html[data-onto-theme=balanced] #app nav.ok-bottom--dock>button:focus-visible { outline-color: #08777b!important; outline-offset: -3px; }
  /* Workspace settings keep their three destinations, with the same dock finish. */
  html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav {
    inset: auto auto 0 50%; width: min(100%,540px);
    min-height: 78px; padding: 6px 12px calc(10px + env(safe-area-inset-bottom));
    border: 0!important; border-radius: 24px 24px 0 0!important;
    background: linear-gradient(150deg,#fffef9,#edf0e8)!important;
    box-shadow: 0 -4px 20px #00171c26!important;
  }
  html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav>a {
    min-height: 58px; color: #4e6767!important; background: none!important; font-size: 11px!important;
  }
  html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav>a[aria-current=page] { color: #074c4f!important; font-weight: 700; }
}
@media(max-width:360px) {
  html[data-onto-theme=balanced] #app .ok-app .ok-content,
  html[data-onto-theme=balanced] #app .ok-app .ok-content.ok-is-home { padding-inline: 18px; }
  html[data-onto-theme=balanced] #app .ux-home-service-tiles { gap: 8px; }
  html[data-onto-theme=balanced] #app .ux-home-service-tile strong { font-size: 12px; }
  html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ok-review { padding: 20px; }
}

/* Compact floating navigation: safe-area clearance sits outside the bar. */
@media(max-width:959px){
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom.ok-bottom--dock,
 html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav{
  bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);
  width:min(400px,calc(100% - 32px));
  min-height:62px;padding:4px 8px 6px;
 }
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom.ok-bottom--dock{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 60px minmax(0,1fr) minmax(0,1fr);
 }
 html[data-onto-theme=balanced] #app nav.ok-bottom--dock::before{border-radius:22px}
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button,
 html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav>a{
  min-height:50px;padding:5px 0!important;gap:4px;font-size:10px!important;
 }
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock .ok-nav-icon,
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock .ok-nav-icon svg,
 html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav svg{
  width:21px;height:21px;min-width:21px;min-height:21px;
 }
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button.ok-nav-add{
  width:50px;height:50px;min-height:50px;margin-top:-26px;
 }
 html[data-onto-theme=balanced] #app nav.ok-bottom--dock .ok-nav-add svg{width:25px;height:25px}
 html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav{border-radius:24px!important}
}

/* Reference proportion: a compact 70% dock, integrated with the glass palette. */
@media(max-width:959px){
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom.ok-bottom--dock,
 html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav{
  width:clamp(248px,70vw,324px);max-width:calc(100% - 40px);
  min-height:56px;padding:4px;bottom:max(16px,env(safe-area-inset-bottom));
 }
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom.ok-bottom--dock{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px minmax(0,1fr) minmax(0,1fr);
  filter:drop-shadow(0 6px 14px #001b1bcc);
 }
 html[data-onto-theme=balanced] #app nav.ok-bottom--dock::before{
  background:radial-gradient(ellipse at 12% -20%,#ceffe840,transparent 65%),linear-gradient(140deg,#265a50f2,#073d36f7 65%,#195448f5);
  box-shadow:inset 0 1px 1px #dcfff5a6,inset 0 -1px 1px #a6dcc43d;
  border-radius:24px;
 }
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button,
 html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav>a{
  min-height:44px;padding:4px 0!important;gap:3px;font-size:9.5px!important;
  color:#b7d7cb!important;position:relative;
 }
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button[aria-current=page],
 html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav>a[aria-current=page]{color:#c4ffe3!important}
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button[aria-current=page]::after,
 html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav>a[aria-current=page]::after{
  content:'';position:absolute;width:12px;height:2px;bottom:0;left:50%;transform:translateX(-50%);background:#ffac94;border-radius:3px;
 }
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock button[data-j-root=home][aria-current=page] svg{fill:#c4ffe3;stroke:#c4ffe3}
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock .ok-nav-icon,
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock .ok-nav-icon svg,
 html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav svg{width:20px;height:20px;min-width:20px;min-height:20px}
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button.ok-nav-add{width:44px;height:44px;min-height:44px;margin-top:-28px;color:#073b3f!important}
 html[data-onto-theme=balanced] #app nav.ok-bottom--dock .ok-nav-add svg{width:23px;height:23px}
 html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav{
  background:radial-gradient(ellipse at 12% -20%,#ceffe840,transparent 65%),linear-gradient(140deg,#265a50f2,#073d36f7)!important;
  box-shadow:inset 0 1px 1px #dcfff580,0 6px 14px #001b1b99!important;
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
 }
}

/* Warm pearl surfaces balance the deep teal backdrop. */
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ok-review,
html[data-onto-theme=balanced] #app .ok-app .ux-home-service-tile:nth-child(n){
 background:linear-gradient(120deg,transparent 8%,#fff9 25%,transparent 45%),radial-gradient(ellipse at 100% 110%,#f5cdbd55,transparent 55%),linear-gradient(145deg,#fffdf8fa,#eee9e1f5);
 color:#193e40;border-color:#fffaf0b3;
 box-shadow:inset 0 1px 2px #fff,inset 0 -1px 2px #a1948040,0 10px 24px #001b193b;
}
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus::before{opacity:.15}
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ok-review::after{background:linear-gradient(165deg,#fff5,transparent 35%);box-shadow:none}
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ok-review strong{color:#193e40;text-shadow:none}
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ok-review-top{color:#a94d38}
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ok-review-bottom{color:#526565}
html[data-onto-theme=balanced] #app .ok-app .ux-home-service-tile :is(strong,.ok-row-icon){color:#24494a;text-shadow:none}
html[data-onto-theme=balanced] #app .ok-app .ux-home-cta{
 background:radial-gradient(ellipse at 20% -20%,#fff8,transparent 60%),linear-gradient(120deg,#ffc0aa,#ff9d82)!important;
 color:#412b26!important;border-color:#ffd7c9;box-shadow:inset 0 1px 1px #ffefe6,0 3px 8px #a3664826;
}
@media(max-width:959px){
 html[data-onto-theme=balanced] #app nav.ok-bottom--dock::before{
 background:radial-gradient(ellipse at 15% -20%,#fff,transparent 70%),linear-gradient(145deg,#fffaf2f5,#e8e5ddf2);
 box-shadow:inset 0 1px 2px #fff,inset 0 -1px 1px #b2a79580;
 }
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button,
 html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav>a{color:#66716f!important}
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button[aria-current=page],
 html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav>a[aria-current=page]{color:#183e40!important}
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock button[data-j-root=home][aria-current=page] svg{fill:#183e40;stroke:#183e40}
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button.ok-nav-add{
 background:radial-gradient(ellipse at 25% -15%,#fff9,transparent 65%),linear-gradient(145deg,#ffc6af,#ff9d83)!important;
 border-color:#ffe2d3;color:#49332d!important;box-shadow:inset 0 2px 2px #fff9,inset 0 -2px 3px #c9765833,0 4px 10px #001c2340;
 }
 html[data-onto-theme=balanced] #app .ok-app nav.ux-global-nav{background:linear-gradient(145deg,#fffaf2f5,#e8e5ddf2)!important;box-shadow:inset 0 1px 2px #fff,0 6px 14px #001b1b66!important}
}

/* Selected C: one compact action and a single pearl service strip. */
html[data-onto-theme=balanced] #app .compact-focus-heading{display:flex;align-items:center;gap:16px;width:100%}
html[data-onto-theme=balanced] #app .compact-focus-icon{display:flex;align-items:center;justify-content:center;flex:0 0 48px;border-right:1px solid #073b3f30;padding-right:14px;color:#073b3f}
html[data-onto-theme=balanced] #app .compact-focus-icon svg{width:30px;height:30px}
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ok-review strong{font-size:21px;line-height:1.2;letter-spacing:-.025em}
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ok-review{padding:22px 20px;border-radius:20px}
html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ux-home-cta{
 background:radial-gradient(ellipse at 20% -70%,#68bcb46b,transparent 70%),linear-gradient(115deg,#06474a,#032f32)!important;
 color:#fff!important;border:1px solid #2e6e6c;box-shadow:inset 0 1px 1px #a4e9da66,0 3px 8px #001a1926;margin-top:24px;min-height:46px;font-size:16px;
}
html[data-onto-theme=balanced] #app .compact-all-tasks{border:0;margin:8px 0 34px;text-align:center}
html[data-onto-theme=balanced] #app .compact-all-tasks button{display:inline-flex;align-items:center;justify-content:center;gap:12px;font-size:15px!important;min-height:48px}
html[data-onto-theme=balanced] #app .compact-services .ux-home-service-tiles{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:16px 4px;border-radius:18px;
 background:linear-gradient(135deg,#fffdf9,#eeeae3);border:1px solid #fffdf4b3;box-shadow:inset 0 1px 1px #fff,0 7px 20px #001c2033;
}
html[data-onto-theme=balanced] #app .ok-app .compact-services .ux-home-service-tile:nth-child(n){
 background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;min-height:66px;height:auto;padding:4px;gap:8px;
}
html[data-onto-theme=balanced] #app .ok-app .compact-services .ux-home-service-tile+ .ux-home-service-tile{border-left:1px solid #073b3f26}
html[data-onto-theme=balanced] #app .ok-app .compact-services .ux-home-service-tile strong{font-size:13px;font-family:inherit;line-height:1.3}
html[data-onto-theme=balanced] #app .ok-app .compact-services .ok-row-icon,
html[data-onto-theme=balanced] #app .ok-app .compact-services .ok-row-icon svg{width:28px;height:28px}
html[data-onto-theme=balanced] #app .compact-home-options{margin-top:34px;font-size:12px;opacity:.8}
html[data-onto-theme=balanced] #app .ok-app .ux-brand img{content:normal;width:86px;height:auto;object-fit:contain}
html[data-onto-theme=balanced] #app .ok-app .ux-brand{min-height:44px;display:flex;align-items:center}
@media(max-width:959px){
 html[data-onto-theme=balanced] #app .ok-app .compact-greeting{margin-bottom:32px}
 html[data-onto-theme=balanced] #app .ok-app .compact-greeting h1,
 html[data-onto-theme=balanced] #app .ok-app .compact-greeting h1>span{font-size:clamp(30px,8.4vw,36px);line-height:1.12}
 html[data-onto-theme=balanced] #app nav.ok-bottom--dock::before{background:radial-gradient(ellipse at 10% -30%,#fff,transparent 65%),linear-gradient(135deg,#e9fff4f5,#b5decef5);box-shadow:inset 0 1px 2px #fff,inset 0 -1px 2px #5a8b7c66}
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button.ok-nav-add{background:radial-gradient(ellipse at 25% -15%,#fff9,transparent 65%),linear-gradient(145deg,#c5ffe6,#a7e9cd)!important;border-color:#d9fff0;color:#073b3f!important}
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button[aria-current=page]{background:#b7f4da99!important;border-radius:18px}
 html[data-onto-theme=balanced] #app .ok-app nav.ok-bottom--dock>button[aria-current=page]::after{display:none}
}
html[data-onto-theme=balanced] #app .compact-header-office{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
html[data-onto-theme=balanced] #app .compact-header-office summary{font-size:12px;min-height:44px;gap:6px;white-space:nowrap}
html[data-onto-theme=balanced] #app .compact-header-office summary svg{width:12px;height:12px}
html[data-onto-theme=balanced] #app .compact-header-office .layered-demo{font-size:10px;padding:2px 5px}
html[data-onto-theme=balanced] #app .ux-header:has(.compact-header-office){gap:10px}
@media(max-width:360px){
 html[data-onto-theme=balanced] #app .compact-header-office .layered-demo{display:none}
 html[data-onto-theme=balanced] #app .ok-app .ux-header{padding-inline:18px}
 html[data-onto-theme=balanced] #app .ok-app .ux-home-focus .ok-review strong{font-size:18px}
 html[data-onto-theme=balanced] #app .compact-focus-heading{gap:12px}
}

/* Wide layouts keep the compact home in reading order and reserve the header/nav stack. */
@media(min-width:960px){
 html[data-onto-theme=balanced] #app .ok-app .ok-content.ok-is-home{row-gap:28px;grid-template-rows:auto auto auto auto}
 html[data-onto-theme=balanced] #app .ok-app .ok-is-home .compact-greeting{grid-column:1/-1;grid-row:1;margin:0 0 8px}
 html[data-onto-theme=balanced] #app .ok-app .ok-is-home .ux-home-focus{grid-column:1;grid-row:2}
 html[data-onto-theme=balanced] #app .ok-app .ok-is-home .compact-services{grid-column:2;grid-row:2;margin:0}
 html[data-onto-theme=balanced] #app .ok-app .ok-is-home .compact-all-tasks{grid-column:1;grid-row:3;margin:0}
 html[data-onto-theme=balanced] #app .ok-app .ok-is-home .compact-home-options{grid-column:1/-1;grid-row:4;margin:0;width:100%}
 html[data-onto-theme=balanced] #app .ok-app:has(.balanced-quote-heading)>.ux-header{display:flex}
 html[data-onto-theme=balanced] #app .ok-app:has(.balanced-quote-heading)>.ok-content{padding-top:96px}
}

#app .compact-setup-entry{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:8px;color:inherit;font-weight:600;text-underline-offset:3px}
#app .compact-setup-entry svg{width:16px;height:16px}
