/* Only the shared create/edit form and its dialogs. Existing screens stay unchanged. */
.w-page{padding:10px 7px 22px}.w-heading{display:flex;align-items:flex-start;gap:17px;margin:0 0 20px}.w-heading h1{font-size:27px;margin:0 0 7px;letter-spacing:-.6px}.w-heading p{margin:0;font-size:13px;color:var(--muted)}.w-back{width:36px;height:36px;background:white;border:1px solid #e5edf5;border-radius:7px;display:grid;place-items:center;flex-shrink:0}.w-back .icon{transform:rotate(180deg);width:20px;height:20px}.w-actions{display:flex;gap:10px;justify-content:flex-end}.w-actions-top{margin-left:auto}.w-actions .primary{gap:9px;min-width:138px;border-radius:7px;font-size:13px;min-height:40px}.w-actions .primary .icon{width:17px;height:17px}.w-actions .c-btn{min-width:96px;font-size:13px}.w-actions-bottom{display:none}.w-steps{display:flex;list-style:none;margin:0 auto 25px;padding:0 6%;width:100%;gap:0}.w-steps li{flex:1;position:relative}.w-steps li:not(:last-child):after{content:'';position:absolute;height:1px;background:#dfe8f1;top:18px;left:170px;right:18px}.w-steps button{border:0;background:none;display:flex;align-items:center;gap:14px;color:#52688d;font-size:13px;padding:0;position:relative;z-index:1}.w-steps button>span{width:35px;height:35px;border-radius:50%;background:#ebf1f8;color:var(--ink);display:grid;place-items:center;font-size:14px;font-weight:600;flex-shrink:0}.w-steps button>strong{font-weight:400}.w-steps .active button,.w-steps .done button{color:var(--green-dark)}.w-steps .active button>span,.w-steps .done button>span{background:var(--green);color:white}.w-steps button:disabled{cursor:default}.w-card{background:white;border:1px solid #e4edf5;border-radius:9px;padding:22px}.w-card h2{font-size:18px;margin:0 0 5px;letter-spacing:-.4px}.w-card-sub{margin:0 0 22px;font-size:13px;color:var(--muted)}.w-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px}.w-field{display:flex;flex-direction:column;gap:7px;font-size:13px;min-width:0;color:var(--ink)}.w-field b{color:#ee334b;font-weight:500}.w-field input,.w-field select,.w-field textarea,.w-relations summary{width:100%;min-width:0;min-height:38px;padding:8px 11px;border:1px solid #dce6f1;border-radius:6px;background:white;font-size:13px;color:var(--ink);font-weight:400}.w-field input::placeholder,.w-field textarea::placeholder{color:#778aac}.w-field textarea{resize:vertical;min-height:87px;line-height:1.6}.w-wide{grid-column:1/-1}.w-sector-pair,.w-location-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px}.w-relations{position:relative}.w-relations summary{list-style:none;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:26px}.w-relations summary:after{content:'⌄';position:absolute;right:12px;top:9px;color:#52678b}.w-relations summary::-webkit-details-marker{display:none}.w-relations>div{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:5;padding:10px;background:white;border:1px solid #dce6f1;box-shadow:0 8px 30px #17312416;border-radius:7px}.w-relations label{display:flex;align-items:center;gap:9px;padding:7px 3px;font-size:13px}.w-relations input{width:16px;height:16px;min-height:0;accent-color:var(--green)}.w-relations small{display:block;padding:6px 3px;font-size:10px;color:var(--muted)}.w-input-wrap{display:flex;gap:8px;min-width:0}.w-input-icon{width:37px;min-width:37px;display:grid;place-items:center;border:1px solid #e2ebf4;border-radius:6px;color:#4283df}.w-input-icon .icon{width:19px;height:19px}.w-communication{max-width:100%}.w-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:1px solid #c3ebd9;border-radius:6px;background:#eefbf4;color:var(--green-dark);font-size:14px;min-height:37px;cursor:pointer}.w-add .icon{width:19px;height:19px}.w-location-info{font-size:11px;color:var(--muted);margin:0}.w-people{display:grid;grid-template-columns:1fr 1fr;gap:15px}.w-person{display:flex;position:relative;gap:14px;align-items:flex-start;padding:18px;border:1px solid #e4ebf4;border-radius:8px;min-width:0}.w-person-avatar{width:48px;height:48px;display:grid;place-items:center;background:#e6f2ff;border-radius:50%;font-size:16px;flex-shrink:0}.w-person:nth-child(even) .w-person-avatar{background:#fde7ee}.w-person>div{flex:1;min-width:0}.w-person h3{font-size:16px;margin:0 0 5px}.w-person p{font-size:13px;color:var(--muted);margin:0 0 10px}.w-person .w-person-line{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere;font-size:12px}.w-person-line .icon{width:17px;height:17px;flex-shrink:0}.w-person-more{background:none;border:0;color:#456188;letter-spacing:2px;padding:3px;cursor:pointer}.w-person-badges{display:flex;gap:6px}.w-person-badges span{border-radius:20px;padding:5px 10px;background:#dffbea;color:#008b57;font-size:11px}.w-person-badges .w-passive{background:#edf1f5;color:#758298}.w-add-person{margin-top:22px;min-height:44px}.w-empty{font-size:13px;color:var(--muted);margin:15px 0 30px}.w-extra{max-width:100%}.w-tags{display:flex;flex-wrap:wrap;gap:7px;min-height:0}.w-tags>span{display:flex;align-items:center;gap:7px;border-radius:20px;background:#e6faef;color:#00894f;font-size:13px;padding:5px 11px}.w-tags button{border:0;background:none;color:inherit;font-size:18px;padding:0 2px}.w-custom{border-top:1px solid #e8eff4;padding-top:17px}.w-custom h3{font-size:14px;margin:0 0 12px}.w-custom-row{display:flex;align-items:flex-end;gap:8px;margin-bottom:12px}.w-custom-row .w-field{flex:1}.w-custom-row>button{width:35px;height:38px;border:1px solid #e3eaf1;border-radius:6px;background:#fff;font-size:20px;color:#789}.w-error{font-size:12px;color:#ab3b39;background:#fff0ee;border:1px solid #f4d0ca;border-radius:7px;padding:12px}.w-draft-caption{font-size:10px;color:#8294a9;text-align:right;margin:11px 0 0}.w-dialog-form{display:grid;gap:12px}.w-dialog-form>label,.w-map-coordinates label{font-size:12px;display:grid;gap:5px;color:var(--muted)}.w-dialog-form input,.w-map-coordinates input{width:100%;border:1px solid #dce6f1;border-radius:6px;background:white;min-height:40px;padding:9px;font-size:14px;color:var(--ink)}.w-dialog-form .w-check{display:flex;align-items:center;gap:8px}.w-dialog-form .w-check input{width:18px;min-height:18px;height:18px;accent-color:var(--green)}.w-dialog-actions{display:flex;justify-content:flex-end;gap:9px}.w-dialog-error{font-size:12px;color:#b74134;margin:0!important}.w-map-help{font-size:12px;margin-bottom:12px!important}.w-map{position:relative;height:280px;overflow:hidden;background:#edf2f2;border-radius:8px;cursor:crosshair}.w-map img{width:256px;height:256px;position:absolute;max-width:none}.w-map-pin{position:absolute;top:50%;left:50%;transform:translate(-50%,-100%);color:#009b61;pointer-events:none}.w-map-pin .icon{width:31px;height:31px;fill:white;stroke-width:2.5}.w-map-credit{position:absolute;bottom:0;right:0;background:#fffffff0;padding:2px 5px;font-size:9px;color:#315974}.w-map-controls{display:flex;gap:8px;margin:10px 0}.w-map-coordinates{display:grid;grid-template-columns:1fr 1fr;gap:10px}#w-map-status{font-size:11px;margin:10px 0!important}
@media(min-width:761px) and (max-width:1100px){.w-steps{padding:0}.w-steps button{gap:8px;font-size:11px}.w-steps li:not(:last-child):after{left:140px;right:10px}.w-heading h1{font-size:25px}.w-actions .primary{min-width:105px}.w-people{grid-template-columns:1fr}}
@media(max-width:760px){.w-page{padding:6px 3px 10px}.w-heading{gap:10px;margin:0 0 22px;align-items:flex-start}.w-heading h1{font-size:22px;margin:0 0 7px}.w-heading p{font-size:12px;line-height:1.5}.w-back{width:27px;height:29px;border:0;background:transparent;margin-left:-3px}.w-back .icon{width:21px;height:21px}.w-actions-top{display:none}.w-steps{padding:0;margin:0 0 24px;gap:3px}.w-steps li{min-width:0}.w-steps li:not(:last-child):after{top:17px;left:calc(50% + 22px);right:calc(-50% + 22px)}.w-steps button{flex-direction:column;align-items:center;width:100%;gap:8px;font-size:10px;padding:0;white-space:nowrap}.w-steps button>span{width:34px;height:34px;font-size:14px}.w-steps button>strong{font-size:10px;letter-spacing:-.3px}.w-card{padding:15px 13px;border-radius:9px}.w-card h2{font-size:17px;margin:0 0 6px}.w-card-sub{font-size:12px;line-height:1.5;margin-bottom:22px}.w-fields{gap:21px 14px}.w-field{font-size:12px;gap:8px}.w-field input,.w-field select,.w-field textarea,.w-relations summary{font-size:13px;min-height:40px;padding:9px}.w-basic>.w-field-legalName{grid-column:1/-1}.w-basic>.w-field-taxOffice{grid-column:1}.w-basic>.w-field-taxId{grid-column:2}.w-sector-pair{grid-column:1/-1;gap:14px}.w-communication{grid-template-columns:1fr;gap:14px}.w-location-pair{gap:14px}.w-field textarea{min-height:73px;line-height:1.5}.w-input-icon{width:36px;min-width:36px}.w-actions-bottom{display:flex;justify-content:stretch;margin-top:16px;gap:10px}.w-actions-bottom button{flex:1;min-height:44px;min-width:0;font-size:13px}.w-actions-bottom .primary{gap:8px}.w-draft-caption{font-size:9px;line-height:1.5;margin-top:10px}.w-people{grid-template-columns:1fr;gap:14px}.w-person{padding:15px 12px;gap:11px}.w-person-avatar{width:43px;height:43px;font-size:15px}.w-person h3{font-size:15px}.w-person p{font-size:12px}.w-person .w-person-line{font-size:11px;gap:6px;line-height:1.5}.w-person-line .icon{width:16px;height:16px}.w-person-badges span{font-size:10px;padding:4px 8px}.w-add-person{margin-top:20px;min-height:43px}.w-add{font-size:13px;min-height:38px}.w-extra{gap:17px 14px}.w-extra textarea{min-height:93px}.w-tags>span{font-size:12px}.w-custom h3{font-size:13px}.w-dialog-form input{font-size:16px}.w-map{height:230px}.w-map-controls{flex-wrap:wrap}.w-map-controls .c-btn{font-size:11px}.w-dialog-actions .primary{font-size:12px}.w-relations>div{min-width:160px;left:auto;right:0}.w-relations label{font-size:12px}.w-relations label input{min-height:0;height:16px}.w-relations summary{padding-right:25px;font-size:12px}.w-relations summary:after{right:9px;top:10px}}
@media(max-width:350px){.w-card{padding:13px 10px}.w-fields,.w-sector-pair{gap:18px 10px}.w-steps button>strong{font-size:9px}.w-field{font-size:11px}.w-field input,.w-field select,.w-field textarea{font-size:12px}.w-heading h1{font-size:21px}}
.w-relationship-control{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-height:38px;border:1px solid #dce6f1;border-radius:6px;padding:4px 6px;background:white}.w-relationship-control #w-relation-chips{display:contents}.w-relation-chip{display:inline-flex;gap:5px;align-items:center;background:#e6faef;color:#00894f;border-radius:5px;font-size:12px;padding:3px 6px;white-space:nowrap}.w-relation-chip button{border:0;background:none;color:inherit;font-size:17px;line-height:1;padding:1px 3px}.w-relationship-control .w-relations{flex:1;min-width:64px}.w-relationship-control .w-relations summary{border:0;min-height:27px;padding:4px 20px 4px 4px;font-size:12px}.w-relationship-control .w-relations summary:after{top:3px;right:4px}.w-relationship-control .w-relations>div{min-width:185px}.w-source-row{display:grid;grid-template-columns:1fr 1fr;gap:24px}.w-reference-field{position:relative}.w-reference-field small{font-size:10px;color:var(--muted);line-height:1.4}.w-source-options{position:absolute;top:64px;left:0;right:0;background:white;border:1px solid #dce6f1;border-radius:7px;box-shadow:0 8px 25px #19344518;max-height:230px;overflow:auto;z-index:6;padding:4px}.w-source-options button{display:block;width:100%;text-align:left;background:white;border:0;padding:10px;font-size:12px;color:var(--ink);line-height:1.5}.w-source-options button:hover,.w-source-options button:focus{background:#e9f9f1}.w-source-empty{display:block;padding:10px;font-size:11px;color:var(--muted)}
@media(max-width:760px){.w-source-row{gap:14px}.w-relationship-control{min-height:40px}.w-relation-chip{font-size:11px}.w-reference-field input{font-size:12px}.w-source-options{min-width:190px;left:auto;top:62px}.w-relationship-control .w-relations summary{font-size:11px}.w-relationship-control .w-relations>div{right:0}.w-reference-field small{font-size:9px}}
