/* Public discovery and owner publication controls share the quiet lesson palette. */
body #app .shell .main .course-square { --square-ink:#243640; --square-muted:#6f818b; --square-line:#e3eaee; --square-accent:#315f72; width:100%; min-width:0; color:var(--square-ink); }
body #app .shell .main .course-square-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin:0 0 28px; }
body #app .shell .main .course-square-heading>div { min-width:0; max-width:750px; }
body #app .shell .main .course-square-eyebrow { display:block; margin:0 0 12px; color:#7a8e9a; font-size:10px; font-weight:500; letter-spacing:.1em; }
body #app .shell .main .course-square-heading h1 { margin:0; color:var(--square-ink); font-size:30px; font-weight:600; line-height:1.5; letter-spacing:.015em; overflow-wrap:anywhere; }
body #app .shell .main .course-square-heading p { margin:12px 0 0; color:var(--square-muted); font-size:13px; line-height:1.9; }
body #app .shell .main .course-square .square-button { display:inline-flex; justify-content:center; align-items:center; gap:6px; min-height:36px; max-width:100%; padding:8px 13px; border:1px solid var(--square-line); border-radius:5px; background:#fff; color:var(--square-ink); font-family:inherit; font-size:12px; font-weight:500; line-height:1.5; text-decoration:none; box-shadow:none; transition:none; white-space:nowrap; cursor:pointer; }
body #app .shell .main .course-square .square-button-primary { border-color:var(--square-accent); background:var(--square-accent); color:#fff; }
body #app .shell .main .course-square .square-button:hover:not(:disabled) { background:#f3f7f9; border-color:#b9cad3; }
body #app .shell .main .course-square .square-button-primary:hover { background:#254c5d; color:#fff; }
body #app .shell .main .course-square .square-button:disabled { color:#9baab1; background:#f7f9fa; border-color:#e8edef; cursor:default; }
body #app .shell .main .course-square .icon { width:16px; height:16px; flex-shrink:0; }
body #app .shell .main .course-square-themes { display:flex; flex-wrap:nowrap; align-items:center; gap:8px; width:100%; min-width:0; max-width:100%; margin:0 0 14px; padding:4px 3px 8px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; }
body #app .shell .main .course-square .square-theme-button { flex:0 0 auto; min-height:36px; padding:8px 12px; border-color:#e3eaee; color:#748892; font-size:12px; font-weight:400; }
body #app .shell .main .course-square .square-theme-button[aria-pressed="true"] { border-color:#afc8d3; background:#edf4f7; color:var(--square-accent); font-weight:600; }
body #app .shell .main .course-square-filters { display:grid; grid-template-columns:minmax(180px,1fr) 155px 155px auto; align-items:end; gap:12px; margin:0 0 18px; padding:0 0 22px; border-bottom:1px solid var(--square-line); }
body #app .shell .main .course-square-filters label { display:block; min-width:0; margin:0; }
body #app .shell .main .square-field-label { display:block; margin:0 0 7px; color:var(--square-muted); font-size:11px; font-weight:500; line-height:1.5; }
body #app .shell .main .course-square-filters input, body #app .shell .main .course-square-filters select { box-sizing:border-box; width:100%; min-width:0; height:42px; min-height:42px; margin:0; padding:9px 11px; border:1px solid var(--square-line); border-radius:5px; background:#fff; color:var(--square-ink); font-family:inherit; font-size:12px; line-height:1.5; box-shadow:none; transition:none; }
body #app .shell .main .course-square-filters .hb-select-trigger { box-sizing:border-box; min-width:0; height:42px; min-height:42px; padding:9px 11px; border:1px solid var(--square-line); border-radius:5px; background:#fff; color:var(--square-ink); font-size:12px; line-height:1.5; transition:none!important; }
body #app .shell .main .course-square-filters .hb-select-chevron { transition:none!important; }
body #app .shell .main .square-search-control { display:block; position:relative; }
body #app .shell .main .square-search-control>.icon { position:absolute; top:13px; left:12px; color:#8b9ca6; pointer-events:none; }
body #app .shell .main .square-search-control input { padding-left:36px; }
body #app .shell .main .course-square .square-filter-submit { min-height:42px; padding:9px 18px; }
body #app .shell .main .course-square-result-heading { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0 0 17px; }
body #app .shell .main .course-square-result-heading h2 { margin:0; color:var(--square-ink); font-size:16px; font-weight:600; line-height:1.6; }
body #app .shell .main .course-square-result-heading h2>span { margin-left:6px; color:var(--square-muted); font-size:12px; font-weight:400; }
body #app .shell .main .course-square-result-heading p { margin:0; color:var(--square-muted); font-size:11px; line-height:1.6; }
body #app .shell .main .course-square-result-heading>button { margin-left:auto; }
body #app .shell .main .course-square-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; gap:20px; }
body #app .shell .main .square-course-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid var(--square-line); border-radius:6px; background:#fff; box-shadow:none; transition:none; }
html.atelier-theme body #app .shell .main #course-square .square-course-card .square-course-image.card-art { display:block; position:relative; flex:none; height:auto!important; min-height:0!important; max-height:none!important; margin:0; border:0; border-bottom:1px solid var(--square-line); border-radius:0; background:#f6f8fa; aspect-ratio:16 / 9!important; overflow:hidden; }
html.atelier-theme body #app .shell .main #course-square .square-course-card .square-course-image.card-art .course-image-frame { position:absolute!important; inset:0; width:100%!important; height:100%!important; min-height:0!important; max-height:none!important; aspect-ratio:auto!important; background:#f6f8fa; }
html.atelier-theme body #app .shell .main #course-square .square-course-card .square-course-image.card-art .course-image-frame.course-image-empty { height:100%!important; min-height:0!important; aspect-ratio:auto!important; }
html.atelier-theme body #app .shell .main #course-square .square-course-card .square-course-image .course-image-placeholder { position:absolute; inset:0; min-height:0!important; padding:14px!important; color:#8397a1; font-size:11px; line-height:1.7; }
html.atelier-theme body #app .shell .main #course-square .square-course-card .square-course-image img[data-course-image] { object-fit:contain!important; object-position:center; }
body #app .shell .main .square-course-body { display:flex; flex-direction:column; flex:1; min-width:0; padding:17px 17px 14px; }
body #app .shell .main .square-course-meta { display:flex; align-items:center; flex-wrap:wrap; gap:7px; min-height:21px; margin-bottom:12px; color:var(--square-muted); font-size:10px; line-height:1.5; }
body #app .shell .main .square-level { padding:3px 6px; border-radius:3px; background:#eef4f7; color:var(--square-accent); font-size:10px; font-weight:600; }
body #app .shell .main .square-course-source { color:#7a8b94; }
body #app .shell .main .square-approved { display:inline-flex; align-items:center; gap:2px; margin-left:auto; color:#557f70; }
body #app .shell .main .square-approved .icon { width:12px; height:12px; }
body #app .shell .main .square-course-body h2 { margin:0 0 9px; color:var(--square-ink); font-size:18px; font-weight:600; line-height:1.6; overflow-wrap:anywhere; }
body #app .shell .main .square-course-body h2 a { color:inherit; text-decoration:none; }
body #app .shell .main .square-course-topic { min-width:0; margin:0 0 8px; overflow:hidden; color:#7c909a; font-size:11px; line-height:1.7; text-overflow:ellipsis; white-space:nowrap; }
body #app .shell .main .square-course-summary { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; margin:0 0 15px; overflow:hidden; color:var(--square-muted); font-size:12px; line-height:1.85; overflow-wrap:anywhere; }
body #app .shell .main .square-course-structure { margin-top:auto; padding:4px 0 12px; color:#8a9aa3; font-size:10px; line-height:1.7; }
body #app .shell .main .square-course-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding-top:12px; border-top:1px solid #edf1f3; }
body #app .shell .main .square-text-button { display:inline-flex; align-items:center; gap:4px; min-height:30px; margin:0; padding:2px 0; border:0; border-radius:2px; background:transparent; color:var(--square-accent); font-family:inherit; font-size:11px; font-weight:500; line-height:1.6; text-decoration:none; box-shadow:none; cursor:pointer; transition:none; }
body #app .shell .main .square-text-button:hover { color:#203f4d; text-decoration:underline; }
body #app .shell .main .course-square .square-join { min-height:32px; padding:6px 9px; font-size:10px; }
body #app .shell .main .square-pagination { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:24px 0 0; padding-top:18px; border-top:1px solid var(--square-line); color:var(--square-muted); font-size:11px; }
body #app .shell .main .square-pagination>div { display:flex; align-items:center; gap:13px; }
body #app .shell .main .square-pagination .square-button { min-height:32px; padding:6px 11px; font-size:11px; }
body #app .shell .main .square-empty, body #app .shell .main .square-loading { padding:56px 20px; text-align:center; color:var(--square-muted); font-size:13px; line-height:1.9; }
body #app .shell .main .square-empty>.icon, body #app .shell .main .square-empty>span .icon { width:28px; height:28px; margin-bottom:12px; color:#9fb2bc; }
body #app .shell .main .square-empty h3 { margin:0 0 9px; color:var(--square-ink); font-size:17px; font-weight:500; }
body #app .shell .main .square-empty p { max-width:460px; margin:0 auto 19px; color:var(--square-muted); font-size:12px; }
body #app .shell .main .course-square-feedback:empty { display:none; }
body #app .shell .main .square-error, body #app .shell .main .square-notice { margin:0 0 17px; padding:10px 12px; border-left:2px solid #aec5d0; background:#f4f8fa; color:#416775; font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
body #app .shell .main .square-error { border-left-color:#c99083; color:#965c4e; background:#fcf7f5; }
body #app .shell .main .course-square :is(button,a,input,select):focus-visible { outline:2px solid #80a5b7; outline-offset:3px; }

body #app .shell .main .course-publication { --publication-line:#e3eaed; --publication-accent:#315f72; margin:0 0 23px; padding:16px 0; border-top:1px solid var(--publication-line); border-bottom:1px solid var(--publication-line); color:#304651; }
body #app .shell .main .course-publication-row { display:flex; align-items:center; justify-content:space-between; gap:20px; }
body #app .shell .main .course-publication-copy { min-width:0; }
body #app .shell .main .course-publication-copy>strong { margin-right:11px; color:#304651; font-size:12px; font-weight:600; }
body #app .shell .main .course-publication-status { display:inline-block; padding:3px 7px; border-radius:3px; background:#f0f4f6; color:#6c828d; font-size:10px; font-weight:500; line-height:1.5; }
body #app .shell .main .course-publication-status-pending { background:#f9f3e6; color:#937748; }
body #app .shell .main .course-publication-status-published { background:#eef5f0; color:#527e67; }
body #app .shell .main .course-publication-status-rejected, body #app .shell .main .course-publication-status-invalidated { background:#fcf1ec; color:#a16c54; }
body #app .shell .main .course-publication-copy p, body #app .shell .main .course-publication-help { margin:6px 0 0; color:#829099; font-size:11px; line-height:1.8; }
body #app .shell .main .course-publication-actions { display:flex; align-items:center; justify-content:flex-end; flex-shrink:0; flex-wrap:wrap; gap:12px; }
body #app .shell .main .publication-button { display:inline-flex; align-items:center; justify-content:center; min-height:34px; max-width:100%; margin:0; padding:7px 12px; border:1px solid var(--publication-line); border-radius:4px; background:#fff; color:#48616e; font-family:inherit; font-size:11px; font-weight:500; line-height:1.6; white-space:nowrap; cursor:pointer; box-shadow:none; transition:none; }
body #app .shell .main .publication-primary { border-color:var(--publication-accent); background:var(--publication-accent); color:#fff; }
body #app .shell .main .publication-button:hover:not(:disabled) { border-color:#9fb8c3; background:#f3f7f8; }
body #app .shell .main .publication-primary:hover:not(:disabled) { border-color:#244c5e; background:#244c5e; color:#fff; }
body #app .shell .main .publication-button:disabled { opacity:.5; cursor:default; }
body #app .shell .main .publication-text-button { display:inline-flex; align-items:center; min-height:30px; padding:2px 0; border:0; border-radius:2px; background:transparent; color:var(--publication-accent); font-family:inherit; font-size:11px; line-height:1.6; text-decoration:none; cursor:pointer; box-shadow:none; transition:none; }
body #app .shell .main .publication-text-button:hover { text-decoration:underline; }
body #app .shell .main .publication-text-button:disabled { opacity:.5; cursor:default; }
body #app .shell .main .course-publication-confirm { margin-top:17px; padding:17px 19px; border:1px solid #dce7ec; border-radius:5px; background:#f7fafb; }
body #app .shell .main .course-publication-confirm h3 { margin:0 0 10px; color:#304651; font-size:14px; font-weight:600; line-height:1.6; }
body #app .shell .main .course-publication-confirm p { margin:0 0 14px; color:#71858f; font-size:12px; line-height:1.85; overflow-wrap:anywhere; }
body #app .shell .main .course-publication-confirm .publication-confirm-title { color:#405c69; font-size:13px; font-weight:500; }
body #app .shell .main .course-publication-confirm>div { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; }
body #app .shell .main .course-publication-reason { margin-top:12px; padding:10px 12px; border-left:2px solid #d7b79c; background:#fcf8f3; }
body #app .shell .main .course-publication-reason strong { color:#9a7351; font-size:11px; font-weight:500; }
body #app .shell .main .course-publication-reason p { margin:4px 0 0; color:#8c7a69; font-size:12px; line-height:1.8; white-space:pre-line; overflow-wrap:anywhere; }
body #app .shell .main .course-publication-feedback:empty { display:none; }
body #app .shell .main .publication-error, body #app .shell .main .publication-notice { margin:11px 0 0; color:#a36350; font-size:11px; line-height:1.8; overflow-wrap:anywhere; }
body #app .shell .main .publication-notice { color:#55826e; }
body #app .shell .main .course-publication :is(button,a):focus-visible { outline:2px solid #80a5b7; outline-offset:3px; }
body #app .shell .main .course-card .course-publication-status { margin-top:8px; }
body #app .shell .main.page-courses .course-sharing-meta { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin:5px 0 10px; }
body #app .shell .main.page-courses .course-sharing-meta .course-publication-status { margin-top:0; }
body #app .shell .main.page-courses .course-sharing-link { color:#537b8d; font-size:10px; line-height:1.6; text-decoration:none; }
body #app .shell .main.page-courses .course-sharing-link:hover { text-decoration:underline; }
body #app .shell .main.page-courses .course-sharing-link:focus-visible { outline:2px solid #80a5b7; outline-offset:3px; }
@media (max-width:1000px) {
 body #app .shell .main .course-square-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
 body #app .shell .main .course-square-filters { grid-template-columns:minmax(160px,1fr) 125px 125px auto; gap:9px; }
 body #app .shell .main .course-square-heading { gap:17px; }
 body #app .shell .main .course-square-heading h1 { font-size:27px; }
}
@media (max-width:640px) {
 body #app .shell .main .course-square-heading { display:block; margin-bottom:23px; }
 body #app .shell .main .course-square-heading h1 { font-size:24px; }
 body #app .shell .main .course-square-heading p { margin-top:10px; font-size:12px; }
 body #app .shell .main .course-square-heading>.square-button { margin-top:15px; }
 body #app .shell .main .course-square .square-theme-button { min-height:44px; padding:10px 13px; }
 body #app .shell .main .course-square-filters { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; padding-bottom:18px; }
 body #app .shell .main .course-square-search { grid-column:1 / -1; }
 body #app .shell .main .course-square-filters input, body #app .shell .main .course-square-filters select, body #app .shell .main .course-square-filters .hb-select-trigger { height:44px; min-height:44px; }
 body #app .shell .main .square-search-control>.icon { top:14px; }
 body #app .shell .main .course-square .square-filter-submit { grid-column:1 / -1; min-height:44px; }
 body #app .shell .main .course-square-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
 body #app .shell .main .square-course-body { padding:16px; }
 body #app .shell .main .square-pagination { flex-wrap:wrap; gap:12px; }
 body #app .shell .main .square-pagination>div { gap:10px; }
 body #app .shell .main .course-publication-row { display:block; }
 body #app .shell .main .course-publication-actions { justify-content:flex-start; margin-top:10px; gap:11px; }
 body #app .shell .main .course-publication-confirm { padding:15px; }
}
