.identity-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.55fr);gap:32px;padding:30px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:16px;margin-bottom:24px}.identity-hero h2{font-size:27px;margin:6px 0 12px;color:var(--ui-text)}.identity-hero p{line-height:1.7;color:var(--ui-secondary);max-width:650px}.identity-methods{display:flex;flex-direction:column;justify-content:center;gap:14px}.identity-methods span{display:flex;align-items:center;gap:14px;font-size:13px;color:var(--ui-text);padding:13px;border-radius:10px;background:var(--ui-subtle)}.identity-methods b{color:var(--ui-accent);font-size:12px}.identity-toolbar{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:20px 0}.identity-toolbar form{display:flex;gap:8px}.identity-toolbar input{width:260px}.identity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px}.identity-card{min-width:0;border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-surface);padding:20px}.identity-card header{display:flex;gap:12px;align-items:center;margin-bottom:16px}.identity-card header strong{font-size:15px}.identity-card small,.identity-request small{display:block;font-size:11px;color:var(--ui-muted);line-height:1.7;overflow-wrap:anywhere}.identity-channel{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--ui-line);padding:14px 0}.identity-channel>div{min-width:0}.identity-channel strong{font-size:12px}.identity-channel p{font-size:12px;line-height:1.7;margin:7px 0 0}.identity-controls{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.identity-controls .btn{font-size:11px;padding:6px 9px}.identity-proof{display:inline-block;color:var(--ui-muted);font-size:10px;margin-left:6px}.identity-proof.valid{color:var(--tone-green-text)}.identity-id{font-size:11px;color:var(--ui-muted);overflow-wrap:anywhere}.identity-id summary{cursor:pointer}.identity-id code{display:block;margin-top:8px}.identity-pagination{display:flex;justify-content:center;gap:18px;align-items:center;margin:24px 0;font-size:12px}.identity-request{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--ui-line);padding:14px 0}.identity-request strong{font-size:12px}.identity-request>div{min-width:0}.identity-requests{max-height:420px;overflow:auto}.identity-guide{line-height:1.75}.identity-guide h3{color:var(--ui-text)}.identity-guide ol{padding-left:22px}.identity-check{display:flex;align-items:center;gap:8px;font-size:13px}.identity-check input{width:auto}
.draft-dialog{width:1080px;max-width:calc(100vw - 28px)}.draft-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.draft-chat{height:300px;overflow:auto;background:var(--ui-subtle);border:1px solid var(--ui-line);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px}.draft-bubble{padding:10px 13px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface);max-width:94%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}.draft-bubble.in{align-self:flex-end;background:var(--ui-hover)}.draft-buttons{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.draft-buttons button{font-size:11px}.draft-compose{display:flex;gap:8px;margin:12px 0}.draft-compose input{min-width:0;flex:1}.draft-trace{max-height:375px;overflow:auto;display:flex;flex-direction:column;gap:8px}.draft-step{border:1px solid var(--ui-line);border-radius:10px;padding:10px 12px;color:var(--ui-text);font-size:12px}.draft-step button{border:0;background:transparent;color:var(--ui-accent);padding:0;font:inherit;cursor:pointer;text-align:left}.draft-step small{display:block;color:var(--ui-muted);margin-top:4px;line-height:1.6}.draft-step.error{border-color:var(--ui-danger)}.draft-state{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.draft-state code{background:var(--ui-subtle);padding:4px 6px;border-radius:5px;font-size:10px;overflow-wrap:anywhere}.draft-caption{padding:12px 14px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-subtle);font-size:12px;line-height:1.7;margin:0 0 18px;color:var(--ui-secondary)}.readiness-list{display:flex;flex-direction:column;gap:12px}.readiness-item{display:flex;align-items:flex-start;gap:14px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:13px;padding:20px}.readiness-item>div{flex:1;min-width:0}.readiness-item p{margin:7px 0 0;color:var(--ui-secondary);line-height:1.65;font-size:13px}.readiness-dot{width:30px;height:30px;display:grid;place-items:center;background:var(--ui-subtle);color:var(--tone-amber-text);border-radius:50%;flex:none}.readiness-dot.ok{color:var(--tone-green-text)}.readiness-dot.error{color:var(--ui-danger)}.readiness-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.readiness-head h2{margin:0 0 8px}.readiness-item .btn{flex:none}.draft-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.draft-fields textarea{font-family:ui-monospace,monospace;font-size:12px}.crm-field-code{font:10px ui-monospace,monospace;color:var(--ui-muted);margin-left:6px}
.draft-compose input,.identity-toolbar input{font-family:inherit;font-size:13px;line-height:1.5;padding:10px 12px;color:var(--ui-text);background:var(--ui-subtle);border:1px solid var(--ui-line);border-radius:9px;outline-offset:3px}.draft-compose input::placeholder,.identity-toolbar input::placeholder{color:var(--ui-muted)}.draft-settings{margin-top:20px;padding:14px 0;border-top:1px solid var(--ui-line)}.draft-settings>summary{cursor:pointer;color:var(--ui-accent);font-size:13px}.draft-settings[open]>summary{margin-bottom:16px}.draft-bubble{flex-shrink:0}.crm-choice-select{margin-bottom:8px}#crm-choice-status{font-size:12px;line-height:1.6;color:var(--ui-muted);margin:12px 0}
@media(max-width:900px){.identity-hero{grid-template-columns:1fr}.identity-methods{display:none}.draft-layout{grid-template-columns:1fr}.draft-chat{height:240px}.draft-trace{max-height:240px}}@media(max-width:600px){.identity-hero{padding:20px}.identity-hero h2{font-size:23px}.identity-toolbar{display:block}.identity-toolbar form{margin-top:12px}.identity-toolbar input{width:100%;min-width:0}.identity-channel{flex-direction:column}.identity-controls{flex-direction:row;flex-wrap:wrap}.identity-card{padding:16px}.readiness-item{flex-wrap:wrap;padding:16px}.readiness-item .btn{margin-left:44px}.draft-fields{grid-template-columns:1fr}.draft-compose .btn{padding:8px}.draft-dialog .modal-body{padding:16px}}

#draft-identity-controls { margin: 16px 0; }
