.kit-editor,.kit-choice-host{color:var(--text-primary,#172033);font-size:14px;line-height:1.5;min-width:0}
.kit-editor{display:grid;gap:16px}
.kit-editor h3,.kit-editor h4{font-weight:700;margin:0 0 10px}
.kit-grid,.kit-component-row{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.kit-component-row{padding:12px 0;border-bottom:1px solid var(--border-subtle,#d9dee7)}
.kit-component-row strong{overflow-wrap:anywhere;grid-column:1/-1}
.kit-input,.kit-editor input:not([type="radio"]):not([type="checkbox"]),.kit-editor select{box-sizing:border-box;width:100%;max-width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--border-default,#c7ced9);border-radius:8px;background:var(--surface-primary,#fff);color:inherit}
.kit-question{min-width:0;padding:16px;border:1px solid var(--border-default,#c7ced9);border-radius:12px;margin:0}
.kit-question legend{padding:0 6px;font-weight:700;max-width:100%;overflow-wrap:anywhere}
.kit-help{color:var(--text-secondary,#516075);font-size:13px}
.kit-error{color:var(--semantic-danger-text,#b42318)}
.kit-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.kit-toolbar>*{min-width:0;max-width:100%}
.kit-toolbar select{flex:1;min-width:140px}
.kit-answer-editor{margin:16px 0;padding:12px;border:1px solid var(--border-subtle,#d9dee7);border-radius:8px;background:var(--surface-secondary,#f7f9fc)}
.kit-components,.kit-choice-form,.kit-search-results{display:grid;gap:12px}
.kit-answer{display:flex;gap:10px;align-items:center;margin-top:8px;padding:12px;border:1px solid var(--border-default,#c7ced9);border-radius:8px;cursor:pointer;overflow-wrap:anywhere}
.kit-answer.selected{border-color:var(--accent-primary,#2563eb);background:var(--accent-primary-muted,#eff6ff)}
.kit-answer input{flex:none;width:18px;height:18px;accent-color:var(--accent-primary,#2563eb)}
.kit-price{font-size:17px;font-weight:700}
.kit-summary{padding:12px;background:var(--surface-secondary,#f7f9fc);border-radius:8px;overflow-wrap:anywhere}
.kit-editor button,.kit-choice-host button{padding:9px 12px;border-radius:8px;border:1px solid var(--border-default,#c7ced9);cursor:pointer;white-space:normal;line-height:1.3;max-width:100%;color:inherit;background:var(--surface-primary,#fff)}
.kit-editor button[class*="bg-primary-600"],.kit-choice-host button[class*="bg-primary-600"]{color:#fff;background:var(--accent-primary,#2563eb)}
.kit-editor button:disabled,.kit-choice-host button:disabled{opacity:.5;cursor:not-allowed}
.kit-editor button svg,.kit-choice-host button svg{width:20px;height:20px;flex:none}
.kit-editor :focus-visible,.kit-choice-host :focus-visible{outline:3px solid var(--accent-primary,#2563eb);outline-offset:2px}
:is(.kit-choice-host,.kit-editor) [role=dialog]{position:fixed;inset:0;z-index:10020;overflow-y:auto;background:rgba(0,0,0,.55)}
:is(.kit-choice-host,.kit-editor) [role=dialog]>div{display:flex;justify-content:center;align-items:center;min-height:100%;padding:16px;box-sizing:border-box}
:is(.kit-choice-host,.kit-editor) [role=dialog]>div>div:last-child{position:relative;width:100%;max-width:560px;background:var(--surface-primary,#fff);border-radius:16px;z-index:1}
:is(.kit-choice-host,.kit-editor) [role=dialog]>div>div:last-child>div{padding:16px;box-sizing:border-box}
:is(.kit-choice-host,.kit-editor) [role=dialog]>div>div:last-child>div:first-child,:is(.kit-choice-host,.kit-editor) [role=dialog]>div>div:last-child>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:12px}
:is(.kit-choice-host,.kit-editor) [role=dialog] h3{font-size:18px;font-weight:700;overflow-wrap:anywhere}
:is(.kit-choice-host,.kit-editor) [role=dialog]>div>div:last-child>div:nth-child(2){max-height:70vh;overflow-y:auto}
@media(max-width:540px){.kit-grid,.kit-component-row{grid-template-columns:minmax(0,1fr)}.kit-question{padding:12px}:is(.kit-choice-host,.kit-editor) [role=dialog]>div{padding:8px}:is(.kit-choice-host,.kit-editor) [role=dialog]>div>div:last-child>div{padding:12px}}

.kit-editor p{margin:0}.kit-editor input,.kit-editor select{font:inherit}

.kit-answer-editor summary{cursor:pointer;overflow-wrap:anywhere}.kit-answer-editor[open] summary{margin-bottom:12px}
