.cosplan-app{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:24px;background:#fff;color:#191725;padding:24px;border-radius:16px;max-width:1100px;margin:24px auto;box-sizing:border-box;font-family:inherit}.cosplan-app *{box-sizing:border-box}.cosplan-preview{min-width:0;align-self:start}.cosplan-preview canvas{display:block;width:100%;height:auto;touch-action:none;cursor:grab;border-radius:8px}.cosplan-preview canvas:active{cursor:grabbing}.cosplan-preview p,.cosplan-privacy{font-size:13px;color:#625e6f}.cosplan-controls h2{font-size:32px;margin:0 0 8px;color:#191725}.cosplan-controls label{display:block;font-weight:600;margin:8px 0}.cosplan-format{width:100%;padding:10px;border:1px solid #ccc;border-radius:6px}.cosplan-day{border:1px solid #ddd;border-radius:10px;margin:16px 0;padding:12px;min-width:0}.cosplan-day legend{font-weight:700;padding:0 5px}.cosplan-selected{border-color:#7600ff;box-shadow:0 0 0 1px #7600ff}.cosplan-upload-photo{display:block;width:100%;font-size:12px}.cosplan-controls button{cursor:pointer;border:1px solid #ddd;border-radius:6px;padding:8px 10px;background:#f5f3fa;color:#191725;font:inherit;font-size:13px}.cosplan-controls button:disabled{opacity:.45;cursor:not-allowed}.cosplan-edit{margin-top:10px}.cosplan-zoom{display:block;width:100%;accent-color:#7600ff}.cosplan-buttons{display:flex;flex-wrap:wrap;gap:6px}.cosplan-controls .cosplan-download{width:100%;background:#7600ff;color:#fff;font-size:16px;font-weight:700;border:0;padding:14px}.cosplan-status{font-size:14px;min-height:2em}.cosplan-app :focus-visible{outline:3px solid #8e44ff;outline-offset:3px}@media(max-width:720px){.cosplan-app{grid-template-columns:1fr;padding:14px;gap:12px}.cosplan-preview{max-width:520px;margin:auto;width:100%}}

.cosplan-move{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0}.cosplan-move button{min-height:44px}.cosplan-app .cosplan-zoom{min-height:32px}

/* Compact tabbed editor, scoped to avoid theme styles and other plugins. */
.cosplan-app{display:flex;flex-wrap:wrap;align-items:flex-start}
.cosplan-app .cosplan-preview{flex:1.4 1 320px;min-width:0}
.cosplan-app .cosplan-controls{flex:1 1 260px;min-width:0;max-width:100%}
.cosplan-app .cosplan-controls h2{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:clamp(20px,2.5vw,26px)!important;line-height:1.2!important;font-weight:750!important;white-space:nowrap!important;letter-spacing:-.4px!important;text-transform:none!important;margin:0 0 8px!important;overflow-wrap:normal!important;word-break:normal!important}
.cosplan-app .cosplan-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:12px 0 0}
.cosplan-app .cosplan-tab{min-height:44px;padding:8px 4px;font-size:13px;font-weight:700;border:1px solid #d4cce2;border-radius:7px;background:#f5f3fa;color:#332746;line-height:1.2}
.cosplan-app .cosplan-tab[aria-selected="true"]{background:#7600ff;color:#fff;border-color:#7600ff}
.cosplan-app .cosplan-tab-filled:after{content:" ✓";font-size:11px}
.cosplan-app .cosplan-day{margin:12px 0;min-width:0;width:100%}
.cosplan-app .cosplan-day[hidden]{display:none!important}
.cosplan-app .cosplan-day legend{font-size:15px;line-height:1.2;width:auto}
.cosplan-app input[type=file]{max-width:100%;min-width:0}
.cosplan-app .cosplan-preview canvas{max-height:75vh;max-height:75svh;width:auto;max-width:100%;margin:0 auto}
@media(max-width:720px){.cosplan-app{display:flex;gap:14px}.cosplan-app .cosplan-preview,.cosplan-app .cosplan-controls{flex-basis:100%;width:100%}.cosplan-app .cosplan-preview canvas{max-height:60vh;max-height:60svh}.cosplan-app .cosplan-controls h2{font-size:24px!important}.cosplan-app .cosplan-tab{font-size:14px}}

.cosplan-app .cosplan-buttons{margin-top:12px}.cosplan-app .cosplan-preview canvas{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
