/* Balanced, compact controls; minimum touch targets retained. */
#main .button{min-height:40px;padding:9px 16px;font-size:14px;line-height:1.4;max-width:100%;white-space:normal;overflow-wrap:anywhere;border-radius:12px}
#main .heading-actions{gap:8px;flex-wrap:wrap}
#main .page-heading h1{font-size:clamp(25px,3.2vw,36px);line-height:1.18}
.space-section{margin:26px 0 32px}
.space-section .section-heading{gap:12px;align-items:center}
.space-section h2{font-size:23px}
.space-home-heading p{margin-bottom:0}
.space-news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:16px}
.space-news-card{padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.space-news-card h3{font-size:21px;margin:0}
.space-news-card p{font-size:16px;line-height:1.55;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.space-news-card .button{margin-top:auto}
.space-learning-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
#main .space-learning-tabs .button{border-radius:999px;padding:10px 18px}
.space-search{display:grid;grid-template-columns:minmax(150px,1fr) auto;align-items:center;gap:12px;margin:16px 0 22px;max-width:100%}
.space-search>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.space-search input[type=search]{min-height:44px;padding:10px 15px;font-size:16px;border-radius:14px;margin:0}
.space-search>p{margin:0;font-size:13px;color:var(--muted,#716984)}
.learning-grid,#main .ecosystem-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:18px;align-items:stretch}
.learning-card{gap:0;padding:0;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.learning-card>.catalog-cover{border-radius:0;max-height:180px}
.space-card-body{padding:20px;display:flex;flex-direction:column;gap:10px;flex:1;min-width:0}
.space-card-body h2{font-size:22px;margin:0;line-height:1.25;overflow-wrap:anywhere}
.space-card-body p{margin:0;font-size:15px;line-height:1.55}
.space-card-body>.tag{align-self:flex-start}
.space-card-body .heading-actions{margin-top:auto;padding-top:8px}
.space-card-body>p:not(.learning-access-label){display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.space-progress{display:grid;gap:6px;margin:6px 0}
.space-progress progress{width:100%;height:7px;accent-color:var(--accent,#7250cf)}
.space-progress small{font-size:13px;color:var(--muted,#716984)}
.space-empty{padding:22px}
.space-empty h2,.space-empty h3{font-size:22px;margin-top:0}
.space-section .course-card{padding:0;overflow:hidden}
.space-section .course-body{padding:20px}
.space-section .course-body h3{font-size:22px}
.space-section .course-body>p{font-size:15px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.space-section .course-card>.catalog-cover{border-radius:0;max-height:180px}
.editor-workspace .editor-guide{align-self:start}
.editor-workspace .editor-guide summary{cursor:pointer;font-size:16px;font-weight:600}
.editor-workspace .editor-guide p,.editor-workspace .field-note{font-size:14px;line-height:1.5}
.editor-workspace .editor-actions{gap:8px;flex-wrap:wrap}
.editor-workspace .editor-current-cover img{display:block;width:100%;max-width:440px;max-height:240px;object-fit:contain;border-radius:14px}
.editor-workspace [data-content-asset-player] video{display:block;width:100%;max-width:680px;max-height:380px;border-radius:14px;background:#211a31}
.editor-workspace [data-content-asset-player] audio{width:100%;max-width:680px}
@media(max-width:700px){#main .button{min-height:44px;padding:10px 14px}.space-section{margin:24px 0}.space-section h2{font-size:22px}.space-search{grid-template-columns:1fr;gap:6px}.space-learning-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#main .space-learning-tabs .button{width:100%;justify-content:center;border-radius:12px;padding:8px 5px;font-size:13px;line-height:1.3;min-height:54px}.space-card-body,.space-news-card,.space-section .course-body{padding:18px}.space-card-body h2{font-size:21px}.space-section .section-heading{flex-wrap:wrap}.space-section .section-heading>.button{min-height:40px}.learning-card>.catalog-cover{max-height:170px}}
