.settlement-dialog,.settlement-choice{box-sizing:border-box;color:var(--text,#172033);background:var(--card,#fff);border:1px solid #e2e5eb;border-radius:24px;box-shadow:0 24px 80px #0003;width:min(800px,calc(100vw - 24px));max-height:92dvh;padding:0;overflow:auto;text-align:start;font-size:1rem;line-height:1.6}
.settlement-dialog::backdrop,.settlement-choice::backdrop{background:#14202e80;backdrop-filter:blur(4px)}
.settlement-dialog header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--card,#fff);border-bottom:1px solid #e4e7eb;padding:16px 20px}
.settlement-dialog h2,.settlement-choice h2{font-size:1.25rem;margin:0}.settlement-dialog h3{font-size:1.1rem;margin:0 0 12px}.settlement-dialog p{margin:10px 0}.settlement-dialog small{font-size:.875rem;color:#626d7e}
.settlement-body{padding:20px}.settlement-intro{color:#626d7e}.settlement-panel{padding:18px;border:1px solid #e3e7ec;border-radius:18px;margin:16px 0;background:var(--card,#fff)}
.settlement-panel label:not(.settlement-check){display:grid;gap:8px;margin:14px 0}.settlement-dialog select,.settlement-dialog textarea{width:100%;box-sizing:border-box;min-height:48px;font:inherit;background:var(--card,#fff);color:inherit;border:1px solid #cfd6e0;border-radius:12px;padding:10px 12px}.settlement-dialog textarea{min-height:86px;resize:vertical}
.settlement-dialog button,.settlement-choice button{font:inherit;min-height:44px;padding:9px 15px;border:1px solid #cfd6e0;border-radius:12px;color:inherit;background:#f2f4f7;cursor:pointer;white-space:normal}.settlement-dialog button:focus-visible,.settlement-choice button:focus-visible{outline:3px solid #a67a00;outline-offset:3px}.settlement-dialog button:disabled{opacity:.5;cursor:default}.settlement-dialog .settlement-primary{background:#ffcf32;border-color:#ffcf32;color:#161a20;font-weight:700}.settlement-dialog .settlement-danger{background:transparent;color:#b72140;border-color:#b72140}
.settlement-sites{display:grid;gap:12px;margin:18px 0}.settlement-site{border:1px solid #e1e5ec;background:#f7f9fb;border-radius:14px;padding:14px;overflow-wrap:anywhere}.settlement-site>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.settlement-ready{color:#087b5e}.settlement-pending{color:#865b00}.settlement-dialog fieldset{border:0;padding:0;margin:20px 0}.settlement-check{display:flex;align-items:flex-start;gap:12px;padding:12px 0}.settlement-check input{flex:none;min-width:22px;width:22px;height:22px;accent-color:#087b5e;margin:3px 0 0}.settlement-check span{flex:1;min-width:0}.settlement-actions{display:flex;flex-wrap:wrap;gap:12px}.settlement-dialog [data-error]{color:#b72140;overflow-wrap:anywhere}.settlement-history{margin-top:28px}.settlement-history summary{cursor:pointer;min-height:44px}.settlement-choice{max-width:520px;padding:24px}.settlement-choice button{display:block;width:100%;margin-top:12px}
@media(max-width:600px){.settlement-dialog{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0}.settlement-dialog header{padding:12px 16px}.settlement-dialog h2{font-size:1.0625rem}.settlement-body{padding:16px;padding-bottom:max(24px,env(safe-area-inset-bottom))}.settlement-panel{padding:14px}.settlement-actions>button{flex:1}.settlement-choice{width:calc(100vw - 24px)}}
