.ch-app-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid #ffed00;border-radius:8px;background:transparent;color:#ffed00;font:700 13px/1.2 system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.ch-app-button:hover{background:#ffed00;color:#231f20}
.ch-app-button svg{width:19px;height:19px;flex:none}
.ch-app-short{display:none}
#ch-install-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 32px);margin:auto;inset:0;padding:0;border:0;border-top:7px solid #ffed00;border-radius:14px;background:#fff;color:#231f20;box-shadow:0 20px 70px #0005;font:16px/1.55 system-ui,sans-serif;overflow:auto}
#ch-install-dialog::backdrop{background:#0009}
#ch-install-dialog *{box-sizing:border-box}
.ch-app-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid #e4e1d8}
.ch-app-head h2{margin:0;font-size:21px;line-height:1.25}
.ch-app-close{min-width:44px;min-height:44px;border:1px solid #ccc;border-radius:8px;background:#fff;color:#231f20;font:24px/1 system-ui;cursor:pointer}
.ch-app-body{padding:20px 22px}.ch-app-body p{margin:0 0 16px}.ch-app-body h3{margin:22px 0 8px;font-size:17px}.ch-app-body ol{list-style:decimal;padding-left:23px;margin:8px 0 18px}.ch-app-body li{padding:4px 0}.ch-app-body details{margin:12px 0 20px}.ch-app-body summary{cursor:pointer;font-weight:700;padding:8px 0}
.ch-app-note{padding:12px 14px;background:#fffbd2;border-radius:8px;font-size:14px}
.ch-app-install{display:block;width:100%;min-height:48px;border:1px solid #231f20;border-radius:8px;background:#ffed00;color:#231f20;font:700 16px/1.4 system-ui;cursor:pointer;margin:12px 0}
.ch-app-install[hidden]{display:none}.ch-app-install:disabled{opacity:.65;cursor:wait}
#ch-app-status:empty{display:none}
.ch-app-body a{color:#231f20;text-decoration:underline;overflow-wrap:anywhere}
.ch-app-button:focus-visible,.ch-app-close:focus-visible,.ch-app-install:focus-visible{outline:3px solid #9b8500;outline-offset:3px}
[data-slot="sidebar-inset"]{min-width:0}
@media(max-width:1100px){.ch-app-long{display:none}.ch-app-short{display:inline}.topbar .private-label{display:none}.topbar .breadcrumb{min-width:0}.topbar .breadcrumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-right{gap:8px;flex-shrink:0}}
@media(max-width:767px){
  .ch-app-long{display:none}.ch-app-short{display:inline}.ch-app-button{padding:8px;gap:4px}
  .topbar-right{gap:8px}.topbar .breadcrumb{min-width:0}.topbar .breadcrumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  [data-slot="sidebar-inset"]{min-width:0}
  .workspace{padding-left:16px;padding-right:16px;padding-bottom:max(24px,env(safe-area-inset-bottom))}
  .dashboard-controls,.training-week-actions,.page-actions{flex-wrap:wrap}
  .dashboard-controls>.picker{min-width:0;max-width:100%}
  .skill-feature,.skill-copy,.training-phase-card,.phase-materials{min-width:0;overflow-wrap:anywhere}
  .skill-video,.skill-video-link,.skill-feature video,.skill-feature iframe{max-width:100%}
  .training-week-actions button,.phase-material,.dashboard-controls button{min-height:44px}
  .training-phase-grid,.training-phase-grid.lower-five{grid-template-columns:minmax(0,1fr)}
  .skill-feature-body{padding:16px}
  input,select,textarea{font-size:16px}
}
@media(display-mode:standalone){.topbar{padding-top:env(safe-area-inset-top);height:calc(72px + env(safe-area-inset-top))}.workspace{padding-bottom:max(24px,env(safe-area-inset-bottom))}}
@media(max-width:767px){
  .scout-dialog{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 20px);padding:20px 16px!important;scroll-padding-block:20px 150px;overflow-x:hidden}
  .scout-dialog .form-row{grid-template-columns:minmax(0,1fr)}
  .scout-form,.scout-form>*,.scout-form label,.scout-player>*{min-width:0}
  .scout-dialog input:not([type=radio]),.scout-dialog textarea{font-size:16px;width:100%;min-width:0;max-width:100%}
  .scout-dialog input:not([type=radio]),.scout-dialog button:not([role=checkbox]){min-height:44px}
  .scout-dialog textarea{min-height:120px;line-height:1.5}
  .scout-dialog .picker{max-width:100%;min-width:0}
  .scout-dialog button.picker{white-space:normal;height:auto;text-align:left}
  .scout-question{min-width:0;padding:12px}
  .scout-question legend{max-width:100%;white-space:normal;line-height:1.4}
  .scout-question .inline-tags{align-items:stretch;gap:8px}
  .scout-question .inline-tags label{min-height:44px;padding:8px 10px;border:1px solid #d3cfc5;border-radius:8px;background:#fff;line-height:1.4}
  .scout-question .inline-tags label:has(input:checked){background:#fff7a6;border-color:#8c7f00}
  .scout-question input[type=radio]{width:20px;height:20px;flex-shrink:0;accent-color:#231f20}
  .scout-player{padding:12px}.scout-player label.row{display:flex;align-items:center;min-height:44px}.scout-player button[role=checkbox]{width:22px;height:22px;min-height:22px;flex-shrink:0}
  .scout-dialog .form-footer{position:sticky;bottom:-20px;z-index:5;margin:12px -16px -20px;padding:12px 16px max(16px,env(safe-area-inset-bottom));background:#fff;border-top:2px solid #ffed00;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .scout-dialog .form-footer button{white-space:normal;height:auto;min-height:44px;padding:8px}
  .scout-dialog .form-footer button:last-child{grid-column:1/-1}
}
