:root{--ct-primary:#6D5DFB;--ct-primary-dark:#5546DF;--ct-soft:#F1EFFF;--ct-success:#168C63;--ct-warning:#D97706;--ct-text:#172033;--ct-muted:#667085;--ct-border:#E5E7EB;--ct-bg:#fff;--ct-shadow:0 14px 36px rgba(23,32,51,.08)}
.ct-app{max-width:1050px;margin:24px auto;color:var(--ct-text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.ct-app *{box-sizing:border-box}.ct-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.ct-header h2{margin:0 0 8px;font-size:clamp(28px,4vw,40px);line-height:1.1}.ct-header p{margin:0;color:var(--ct-muted);max-width:760px;line-height:1.65}.ct-badge{background:var(--ct-soft);color:var(--ct-primary-dark);font-weight:700;padding:8px 12px;border-radius:999px;white-space:nowrap}.ct-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ct-card{background:var(--ct-bg);border:1px solid var(--ct-border);border-radius:20px;box-shadow:var(--ct-shadow);padding:22px}.ct-card h3,.ct-card h4{margin-top:0}.ct-card label{display:block;font-weight:700;margin:14px 0 7px}.ct-card textarea,.ct-card select,.ct-card input{width:100%;min-height:48px;border:1px solid var(--ct-border);border-radius:12px;padding:11px 13px;font-size:16px;background:#fff;color:var(--ct-text)}.ct-card textarea{min-height:240px;resize:vertical;line-height:1.5;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.ct-card textarea:focus,.ct-card select:focus,.ct-card input:focus,.ct-card button:focus{outline:3px solid rgba(109,93,251,.2);outline-offset:2px;border-color:var(--ct-primary)}.ct-help,.ct-note{color:var(--ct-muted);line-height:1.55;font-size:14px}.ct-controls-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ct-shift-group{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.ct-card button{min-height:48px;border:1px solid var(--ct-border);background:#fff;color:var(--ct-text);border-radius:12px;padding:10px 14px;font-size:16px;font-weight:700;cursor:pointer;transition:.18s ease}.ct-card button:hover{transform:translateY(-1px);border-color:#cfd3dc}.ct-card button:disabled{opacity:.45;cursor:not-allowed;transform:none}.ct-card .ct-primary{background:var(--ct-primary);border-color:var(--ct-primary);color:#fff}.ct-card .ct-primary:hover{background:var(--ct-primary-dark)}.ct-actions,.ct-result-actions{display:flex;flex-wrap:wrap;gap:9px}.ct-status{min-height:24px;margin-top:12px;font-weight:700;color:var(--ct-success)}.ct-result-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.ct-result-head p{margin:5px 0 0;color:var(--ct-muted)}.ct-output{background:#101828;color:#f8fafc;padding:18px;border-radius:14px;min-height:230px;white-space:pre-wrap;overflow:auto;line-height:1.55;margin:18px 0}.ct-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ct-metrics>div{background:#f8fafc;border:1px solid var(--ct-border);padding:12px;border-radius:12px}.ct-metrics span{display:block;color:var(--ct-muted);font-size:13px;margin-bottom:5px}.ct-metrics strong{font-size:18px}.ct-subcard{margin-top:16px;padding-top:16px;border-top:1px solid var(--ct-border)}.ct-table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px;border-bottom:1px solid var(--ct-border)}th{font-size:13px;color:var(--ct-muted)}.ct-history-card{margin-top:18px}.ct-history-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.ct-history{display:grid;gap:10px}.ct-history-item{border:1px solid var(--ct-border);border-radius:12px;padding:12px}.ct-history-item strong{display:block;margin-bottom:4px}.ct-history-item span{color:var(--ct-muted);font-size:14px}.ct-capo-option{padding:10px 12px;background:#f8fafc;border:1px solid var(--ct-border);border-radius:10px;margin:8px 0}
@media(max-width:820px){.ct-grid{grid-template-columns:1fr}.ct-header,.ct-result-head{flex-direction:column}.ct-controls-grid{grid-template-columns:1fr}.ct-metrics{grid-template-columns:1fr}.ct-card{padding:18px}.ct-badge{align-self:flex-start}.ct-result-actions{width:100%}.ct-result-actions button{flex:1 1 140px}}
@media(max-width:480px){.ct-app{margin:14px auto}.ct-shift-group button{flex:1 1 calc(25% - 8px);padding-inline:6px}.ct-actions button{flex:1 1 100%}}
