/* CAROMY V0.1.26.7.1 — readability and compact horizontal layout.
 * Applied LAST after previous overflow & fine-control CSS.
 * Text / layout only; no input events, UI translations or physics changes.
 */
:root { --muted: #43564f; }
html { -webkit-text-size-adjust:100%; }
body { font-size:17px; }
/* Light main UI: darken helper text instead of darkening already dark backgrounds. */
.page-head p, .single-line-help, .hero-copy p, .profile-hero p,
.capture-btn small, .shot-card-note, .swipe-hint,
.lesson-empty p, .lesson-loading small, .library-card p,
#recommendStatus, .inline-status, .coach-message,
.mini-label, .rotation-toolbar > span, .ball-legend,
.topk-control > span, .shot-priority-meta,
.shot-specs span, .result-specs span, .stats-grid span,
.setting-row, .library-empty p, .shot-meta .meta-note {
  color:#42544f !important;
}
/* Give secondary prose real reading size; leave icon and numerical geometry alone. */
.page-head p, .single-line-help, .profile-hero p,
.lesson-empty p, .library-card p, .library-empty p,
.inline-status, .coach-message, .shot-card-note,
.swipe-hint, .shot-priority-meta {font-size:clamp(14px,3.55vw,16px)!important;line-height:1.5;}
.page-head h1 {font-size:clamp(23px,5.6vw,30px);line-height:1.25;}
.panel-head h2, .panel h2 {font-size:clamp(19px,4.9vw,23px);line-height:1.3;}
.capture-btn strong {font-size:clamp(14px,3.7vw,17px)!important;line-height:1.35;}
.capture-btn small {font-size:clamp(12px,3.05vw,14px)!important;line-height:1.4;}
.compact-select, .recognition-options label,
.topk-control > span, .rotation-toolbar > span,
.ball-legend, .mini-label {font-size:clamp(13px,3.15vw,15px)!important;line-height:1.35;}
.rotation-toolbar button, .topk-control select,
.recommend-actions .cta-primary, .capture-panel select,
.lesson-search-form button, .caromy-lesson-actions button,
.caromy-shot-try-btn, .caromy-teach-btn,
#view-profile .setting-row button,
#view-profile .segmented button {
 font-size:clamp(14px,3.45vw,17px)!important;
 line-height:1.3!important;
 height:auto!important; min-height:42px;
 white-space:normal!important; overflow-wrap:break-word;
}
.recommend-actions #recommendBtn {min-height:54px!important;}
.shot-card-top h3 {font-size:clamp(19px,4.6vw,23px)!important;line-height:1.34;}
.shot-rank, .shot-card .result-specs span, .shot-specs span {
 font-size:clamp(13px,3.2vw,15px)!important;color:#43544e!important;
}
.shot-card .result-specs b, .shot-card .shot-specs b {
 display:block;min-width:0;max-width:100%;
 font-size:clamp(15px,4.0vw,19px)!important;
 line-height:1.3;white-space:normal!important;
 overflow-wrap:anywhere!important;word-break:normal;
}
.shot-card .shot-specs > div,.shot-card .result-specs > div {min-width:0;max-width:100%;}

.shot-card .animation-bar button,
.shot-card .caromy-lesson-actions button,
.shot-card .save-btn, .shot-card .exclude-shot-btn {
 font-size:clamp(13px,3.4vw,16px)!important;
 height:auto!important;max-height:none!important;
 white-space:normal!important;overflow-wrap:break-word;
}
.shot-card .animation-bar > * {min-height:46px!important;}
.bottom-nav .nav-item small, .bottom.bottom-nav a small {
 font-size:clamp(11px,2.9vw,14px)!important;line-height:1.25!important;
}
/* Popup text flows by sentence/word, never outside the card or button. */
.guide-card, .busy-card, .caromy-v022-card,
.caromy-thanks-card, .axis-choice-card, .caromy-teach-continue-card {
 min-width:0; max-width:min(440px,calc(100vw - 28px));
 box-sizing:border-box;overflow-wrap:break-word;
}
.guide-card p, .busy-card p, .caromy-v022-card p,
.caromy-thanks-card p, .caromy-teach-continue-card p {
 color:#344c44!important;
 font-size:clamp(15px,3.8vw,18px)!important;
 line-height:1.65!important;word-break:keep-all;
 overflow-wrap:break-word;text-wrap:pretty;
}
.guide-card strong, .busy-card strong, .caromy-v022-card strong,
.caromy-thanks-card strong {font-size:clamp(19px,5vw,25px)!important;line-height:1.4!important;}
.guide-card button, .busy-card button, .caromy-v022-card button,
.caromy-thanks-card button, .caromy-teach-continue-card button {
 min-width:0;max-width:100%;height:auto!important;min-height:47px;
 padding:10px 8px!important;
 font-size:clamp(14px,3.6vw,17px)!important;
 line-height:1.35!important;white-space:normal!important;overflow-wrap:break-word;
}
/* Reduce empty pale-green canvas space on landscape table only.
 * app.js sets the canvas-wrap height; remove only legacy 215px minimum here.
 * Portrait keeps the original 255px minimum in JS. */
#layoutWorkbench .table-stage {min-height:0!important;}
#layoutWorkbench .table-stage canvas {max-width:100%;display:block;}
#layoutWorkbench .panel-head {margin-bottom:9px;}
#layoutWorkbench .rotation-toolbar {margin-top:4px;margin-bottom:6px;padding-block:7px;}
#layoutWorkbench .ball-legend {margin-top:7px;gap:7px 12px;}
#layoutWorkbench .recommend-actions {margin-top:9px;}
@media(max-width:380px){
 .capture-panel {padding:12px!important;}
 #layoutWorkbench.panel {padding:12px!important;}
 .shot-card .animation-bar {gap:4px!important;}
 .shot-card .animation-bar button {font-size:clamp(12px,3.2vw,14px)!important;}
 .shot-card .caromy-lesson-actions button {font-size:clamp(12px,3.1vw,14px)!important;}
}
/* Practice screen — compact 2×2 controls remain intact. */
.practice-four-grid .practice-tile .caromy-spec-label,
.practice-tile-heading .caromy-spec-label {
 color:#40564f!important;font-size:clamp(14px,3.7vw,18px)!important;
 line-height:1.35!important;
}
.practice-four-grid .practice-tile .caromy-spec-value,
.practice-tile-heading .caromy-spec-value {
 color:#172925!important;font-size:clamp(15px,4vw,20px)!important;
 line-height:1.3!important;overflow-wrap:break-word;
}
.practice-table-toolbar button, .practice-four-grid .practice-shoot,
.practice-four-grid .practice-retry button,
.caromy-power-step-btn, .table-footer, .hint {
 font-size:clamp(13px,3.25vw,16px)!important;
 line-height:1.3!important;
}
.practice-four-grid .practice-retry button,
.caromy-power-step-btn {min-width:0!important;max-width:100%;height:auto!important;white-space:normal!important;overflow-wrap:break-word;}
.practice-four-grid .practice-shoot {font-size:clamp(16px,4.2vw,20px)!important;}
.practice-table-toolbar button {color:#254e43!important;}
.table-footer,.hint,.intro p,.brand small {color:#43564f!important;}
@media(max-width:360px){
 .practice-four-grid .practice-tile .caromy-spec-label {font-size:14px!important;}
 .practice-four-grid .practice-tile .caromy-spec-value {font-size:15px!important;}
 .caromy-power-step-btn {font-size:12px!important;padding:6px 2px!important;}
 .practice-table-toolbar button {font-size:12px!important;}
}
