html.tt-shell{--accent:#ffd43b;--accent-text:#ffd43b;--preview-height:min(calc(420px * 16 / 9),calc(100dvh - 48px))}
html.tt-shell .preview-wrap{background:#70c5ce}
html.tt-shell .rules,html.tt-shell .help{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);color:var(--copy);font-size:15px}
html.tt-shell .rules h3,html.tt-shell .help h3{margin:0 0 8px;color:var(--ink)}
html.tt-shell .rules p,html.tt-shell .help p{margin:0 0 9px;line-height:1.6}
html.tt-shell .rules a,html.tt-shell .help a{color:var(--accent-text)}
html.tt-shell .gift-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
html.tt-shell .gift-options label,html.tt-shell .band-grid label{display:grid;gap:6px;color:var(--ink);font-size:14px;font-weight:750}
html.tt-shell .gift-options select,html.tt-shell .band-grid input,html.tt-shell .custom-rule select,html.tt-shell .custom-rule input{width:100%;min-width:0;min-height:46px;border:1px solid var(--line);border-radius:9px;background:var(--field);color:var(--ink);padding:11px 12px;font-size:15px;font-weight:600}
html.tt-shell .gift-legend-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px 0;border-top:1px solid var(--line)}
html.tt-shell .gift-copy>span{display:flex;align-items:center;gap:7px;margin-top:5px}
html.tt-shell .gift-copy small{display:block;margin-top:5px;color:var(--copy);font-size:14px;line-height:1.45}
html.tt-shell .tt-core-assigned-gift-icon{flex:0 0 auto;object-fit:contain}
html.tt-shell .band-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
html.tt-shell .band-grid input{font-variant-numeric:tabular-nums}
html.tt-shell .custom-gift-row{padding:13px 0;border-top:1px solid var(--line)}
html.tt-shell .custom-gift-row>.gift-legend-row{padding:0;border:0}
html.tt-shell .custom-rule{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.55fr) auto;gap:8px;align-items:end;margin-top:10px}
html.tt-shell .custom-rule label{display:grid;gap:5px;color:var(--copy);font-size:14px;font-weight:700}
html.tt-shell .custom-rule button{min-height:44px}
html.tt-shell .add-gift{margin-top:10px}
html.tt-shell .gift-actions{display:flex;justify-content:flex-end}
html.tt-shell .practice-panel .effects{grid-template-columns:repeat(2,minmax(0,1fr))}
html.tt-shell .settings-save-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 16px;padding:12px;border:1px solid #ffd43b66;border-radius:10px;background:#ffd43b0c}
html.tt-shell .settings-save-row p{margin:0}
html.tt-shell .settings-save-row .primary{flex:0 0 auto}
html.tt-shell .settings-error{min-height:1.4em;color:#ffaaa0}
@media(max-width:700px){html.tt-shell .gift-options,html.tt-shell .band-grid{grid-template-columns:1fr}html.tt-shell .custom-rule{grid-template-columns:1fr}html.tt-shell .settings-save-row{align-items:stretch;flex-direction:column}html.tt-shell .practice-panel .effects{grid-template-columns:1fr}}

html.tt-shell .input-grid small{font-size:14px}
html.tt-shell .input-grid{align-items:start}
