/* TRAININGDAY V3 · IMAGE-FIRST EDITOR */
.extra-page{max-width:1380px;margin:0 auto;padding:24px clamp(14px,3vw,30px) 70px;color:#15253b}
.extra-page.hidden{display:none!important}.ex-titleline{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px;flex-wrap:wrap}.ex-eyebrow{font-size:11px;font-weight:850;letter-spacing:.14em;color:#60809c;text-transform:uppercase}.ex-headline{font-size:clamp(22px,3vw,31px);letter-spacing:-.045em;color:#122947;margin:3px 0}.ex-lead{font-size:13px;color:#61738a;margin:5px 0}.ex-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.ex-btn{font-family:inherit;font-size:13px;font-weight:750;background:#fff;border:1px solid #d7e1ec;border-radius:11px;color:#14314d;padding:11px 15px;cursor:pointer;min-height:42px;touch-action:manipulation;display:inline-flex;align-items:center;justify-content:center;gap:8px}.ex-btn.primary{background:#193857;border-color:#193857;color:white}.ex-btn.accent{background:#ad3447;border-color:#ad3447;color:white}.ex-btn.light{background:#edf3f9}.ex-btn:disabled{opacity:.35;cursor:default}.ex-btn:active{transform:translateY(1px)}.ex-stat{font-size:12px;font-weight:750;color:#72869a}.ex-planlist{display:flex;flex-direction:column;gap:10px}.ex-plan-item{background:#fff;border:1px solid #e0e7ee;border-radius:16px;display:flex;gap:15px;align-items:center;padding:10px 13px;box-shadow:0 3px 15px #0b244308;min-height:104px}.ex-plan-index{color:#8091a5;font-size:16px;font-weight:900;width:27px;text-align:center;flex-shrink:0}.ex-image{width:180px;height:105px;object-fit:contain;background:#2b7e4e;border-radius:9px;flex-shrink:0}.ex-plan-caption{flex:1;min-width:0}.ex-plan-name{font-size:16px;font-weight:850;line-height:1.25;color:#142f4d}.ex-mini{font-size:12px;color:#7a8da1;margin-top:6px}.ex-duration{width:62px;height:39px;text-align:center;border:1px solid #e0e5ea;border-radius:9px;color:#274361;font-size:14px;font-weight:800}.ex-plan-move{display:flex;flex-direction:column;gap:3px}.ex-iconbutton{width:36px;height:34px;display:grid;place-items:center;background:#f3f6fa;border:0;color:#61788f;border-radius:8px;font-size:18px;cursor:pointer;touch-action:manipulation}.ex-empty{border:2px dashed #cad5e1;background:#f8fafc;border-radius:18px;padding:46px 20px;text-align:center;color:#71859a}.ex-footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:22px}.ex-topbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.ex-search{background:white;border:1px solid #d9e3ed;border-radius:12px;padding:12px 15px;font:inherit;font-size:15px;min-width:220px;flex:1;color:#15304a}.ex-chiplist{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 19px}.ex-chip{border:1px solid #d7e1ea;background:white;color:#627d92;border-radius:18px;padding:8px 12px;font-size:12px;font-weight:740;cursor:pointer;min-height:38px}.ex-chip.on{background:#173654;color:white;border-color:#173654}.ex-cardgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ex-card{border:1px solid #e0e8ef;overflow:hidden;border-radius:16px;background:white;box-shadow:0 6px 18px #0f29400a;cursor:pointer;display:flex;flex-direction:column;min-width:0;transition:transform .15s,box-shadow .15s;touch-action:manipulation}.ex-card:active{transform:scale(.991)}.ex-card-picture{height:auto;aspect-ratio:3/2;background:#28804c;display:flex;align-items:center;justify-content:center;overflow:hidden}.ex-card-picture img{width:100%;height:100%;object-fit:contain}.ex-card-copy{padding:13px 13px 15px}.ex-card-name{font-weight:840;color:#17314c;font-size:14px;line-height:1.3;min-height:34px}.ex-card-sub{font-size:11px;color:#778ba0;margin-top:7px}.ex-card-add{color:#c04855;font-size:12px;font-weight:850;margin-top:12px}.ex-tag{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#61778f;background:#edf2f8;border-radius:6px;padding:5px 7px;font-weight:850}.ex-modal-overlay{position:fixed;z-index:10030;inset:0;background:#06192bc2;display:flex;align-items:center;justify-content:center;padding:18px}.ex-detail{width:min(820px,100%);max-height:min(920px,92vh);overflow:auto;background:white;border-radius:18px;padding:20px;box-shadow:0 15px 70px #0004}.ex-detail img{width:100%;max-height:55vh;object-fit:contain;background:#287c4a;border-radius:12px}.ex-detail h2{margin:14px 0 4px;color:#17324d}.ex-detail p{color:#52677d;font-size:14px;line-height:1.55;white-space:pre-wrap}.ex-detail-buttons{display:flex;gap:9px;justify-content:flex-end;margin-top:12px;flex-wrap:wrap}
/* editor layout */
.editor-shell{max-width:1230px;margin:auto}.editor-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}.editor-input{font:800 19px/1.2 inherit;font-family:inherit;font-size:18px;font-weight:850;border:1px solid #dae3eb;border-radius:10px;padding:11px 13px;color:#18314e;min-width:230px;flex:1;background:#fff}.editor-toggle{display:flex;border:1px solid #dae4ed;background:#edf2f7;padding:4px;border-radius:12px;gap:3px}.editor-toggle button{background:transparent;border:0;padding:10px 12px;border-radius:9px;color:#576e83;font-weight:800;font-size:12px;cursor:pointer}.editor-toggle button.on{background:white;color:#193a56;box-shadow:0 2px 8px #0001}.editor-main{display:grid;grid-template-columns:1fr 210px;gap:15px;align-items:start}.editor-workspace{background:#eaf0f4;border:1px solid #d8e4ee;border-radius:16px;padding:15px;min-width:0}.editor-field-wrap{display:flex;justify-content:center;align-items:center;min-height:350px;max-height:65vh}.editor-pitch{display:block;width:100%;max-height:62vh;aspect-ratio:1000/650;border-radius:8px;box-shadow:0 12px 25px #112e2740;touch-action:none;user-select:none;overflow:visible}.editor-pitch.half{aspect-ratio:505/648;width:min(75%,550px)}.editor-pitch svg{width:100%;height:100%;display:block;touch-action:none;user-select:none}.editor-pitch text{user-select:none;pointer-events:none}.editor-hint{font-size:12px;color:#5c748a;text-align:center;margin-top:10px}.editor-groups{display:flex;flex-direction:column;gap:12px}.editor-group{border:1px solid #dce5ef;background:white;border-radius:14px;padding:12px}.editor-group h3{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#7e91a5;margin:0 0 10px}.editor-toolgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.editor-tool{border:1px solid #e5ebf0;background:#f5f7fa;border-radius:9px;min-height:52px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:5px 3px;font:700 10px inherit;font-size:10px;color:#455d74;cursor:pointer;touch-action:manipulation}.editor-tool span:first-child{font-size:23px;font-weight:650}.editor-tool.active{background:#e5effb;border-color:#4d80b1;color:#173655;box-shadow:inset 0 0 0 1px #4d80b1}.editor-swatches{display:flex;gap:8px;justify-content:space-between;margin:5px 0}.editor-swatch{width:33px;height:33px;border-radius:100%;border:3px solid transparent;box-shadow:0 0 0 1px #ced8e4;cursor:pointer}.editor-swatch.active{border-color:#122d4a;box-shadow:0 0 0 2px #fff inset,0 0 0 2px #122d4a}.editor-bottom{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-top:12px}.editor-more{background:white;padding:15px;border-radius:14px;border:1px solid #dce6ef;margin-top:15px}.editor-more textarea{font:inherit;font-size:13px;color:#233c52;border:1px solid #dde5ec;border-radius:9px;padding:10px;min-height:55px;width:100%;resize:vertical}.editor-more label{font-size:12px;font-weight:750;color:#577087;display:block;margin:10px 0 5px}.editor-object{cursor:grab}.editor-object:active{cursor:grabbing}.editor-preview{pointer-events:none}.editor-toolbar-small{display:flex;gap:6px;flex-wrap:wrap}.ex-help{color:#667e93;font-size:12px;line-height:1.4}.ex-divider{height:1px;background:#e1e8ee;margin:8px 0}
@media(max-width:900px){.editor-main{grid-template-columns:1fr}.editor-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.editor-workspace{padding:8px}.editor-toolgrid{grid-template-columns:repeat(3,1fr)}.editor-field-wrap{min-height:250px}.ex-cardgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.extra-page{padding:14px 12px 70px}.ex-image{width:130px;height:91px}}
@media(max-width:530px){.editor-groups{grid-template-columns:1fr}.ex-cardgrid{gap:9px}.ex-card-picture{height:auto;aspect-ratio:3/2}.ex-card-copy{padding:10px}.ex-card-name{font-size:12px}.ex-plan-item{gap:8px}.ex-plan-name{font-size:13px}.ex-image{width:95px;height:78px}.ex-duration{width:48px}.ex-plan-move{gap:1px}.ex-btn{padding:9px 11px;font-size:12px}.editor-toggle{width:100%;justify-content:stretch}.editor-toggle button{flex:1}.editor-input{min-width:0;width:100%}}
#exPrintArea{display:none}
@media print{body.td-print-plan > *:not(#exPrintArea){display:none!important}body.td-print-plan #exPrintArea{display:block!important;position:static!important;background:white;color:black!important;padding:5mm}#exPrintArea .print-grid{display:grid;grid-template-columns:1fr 1fr;gap:7mm}#exPrintArea .print-item{break-inside:avoid;padding:3mm;border:1px solid #aaa}#exPrintArea .print-item h3{font-size:11pt;margin:0 0 2mm}#exPrintArea .print-item img{max-width:100%;height:65mm;object-fit:contain;background:#27784a}#exPrintArea .print-item p{font-size:9pt;margin:2mm 0;line-height:1.2;white-space:pre-line}@page{size:A4 portrait;margin:9mm}}

@media(max-width:530px){.ex-cardgrid{grid-template-columns:1fr}.ex-card-picture{aspect-ratio:3/2}}
