.shared-hoso-form-modal {
    --primary:#0891b2; --primary-dark:#0e7490; --primary-soft:#ecfeff; --primary-mid:#cffafe;
    --success:#16a34a; --danger:#dc2626; --surface:#fff; --surface-muted:#f8fafc;
    --text:#0f172a; --text-2:#334155; --text-3:#64748b; --muted:#94a3b8;
    --border:#e2e8f0; --radius:10px; --radius-md:14px; --radius-lg:18px;
    --shadow-md:0 10px 28px rgba(15,23,42,.12),0 4px 8px rgba(15,23,42,.06);
    --shadow-lg:0 24px 48px rgba(15,23,42,.16),0 8px 16px rgba(15,23,42,.08);
    --transition:.2s cubic-bezier(.4,0,.2,1);
    display:none; position:fixed; inset:0; background:rgba(15,23,42,.6); backdrop-filter:blur(4px);
    z-index:1000; justify-content:center; align-items:center; padding:16px;
}
.shared-hoso-form-modal:not([hidden]) { display:flex; }
.shared-hoso-form-modal .modal-content { background:var(--surface); border-radius:var(--radius-lg); height:95vh; position:relative; box-shadow:var(--shadow-lg); border:1px solid var(--border); }
.shared-hoso-form-modal .nhap-modal-header { padding:16px 22px 14px; border-bottom:2px solid #10b981; display:flex; justify-content:space-between; align-items:center; flex-shrink:0; background:linear-gradient(135deg,#f0fdf4,#fff); }
.shared-hoso-form-modal .nhap-modal-title { color:#10b981; margin:0; font-size:.97rem; font-weight:800; display:flex; align-items:center; gap:8px; }
.shared-hoso-form-modal .nhap-modal-actions { display:flex; gap:6px; align-items:center; }
.shared-hoso-form-modal .nhap-icon-btn { background:transparent; width:32px; height:32px; border-radius:var(--radius); cursor:pointer; font-size:.85rem; display:flex; align-items:center; justify-content:center; transition:all var(--transition); }
.shared-hoso-form-modal .nhap-icon-btn.expand { border:1px solid #10b981; color:#10b981; }
.shared-hoso-form-modal .nhap-icon-btn.expand:hover { background:#10b981; color:#fff; }
.shared-hoso-form-modal .nhap-icon-btn.close-x { border:1px solid var(--danger); color:var(--danger); }
.shared-hoso-form-modal .nhap-icon-btn.close-x:hover { background:var(--danger); color:#fff; }
.shared-hoso-form-modal .form-section { background:var(--surface-muted); padding:16px; border-radius:var(--radius-md); border:1.5px solid var(--border); margin-bottom:14px; }
.shared-hoso-form-modal .form-section-header { display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.shared-hoso-form-modal .form-section-icon { width:28px; height:28px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:.78rem; color:#fff; flex-shrink:0; }
.shared-hoso-form-modal .form-section-icon.blue { background:#2563eb; }
.shared-hoso-form-modal .form-section-icon.slate { background:#475569; }
.shared-hoso-form-modal .form-section-icon.amber { background:#d97706; }
.shared-hoso-form-modal .form-section-icon.green { background:#16a34a; }
.shared-hoso-form-modal .form-section-icon.teal { background:var(--primary); }
.shared-hoso-form-modal .form-section-title { font-size:.82rem; font-weight:800; color:var(--text); text-transform:uppercase; letter-spacing:.04em; }
.shared-hoso-form-modal .edit-label { display:block; font-size:.8rem; color:var(--text-3); font-weight:700; margin-bottom:5px; }
.shared-hoso-form-modal .edit-input,
.shared-hoso-form-modal .score-input { border:1.5px solid var(--border); border-radius:var(--radius); background:#fff; color:var(--text); outline:none; transition:border-color var(--transition),box-shadow var(--transition); }
.shared-hoso-form-modal .edit-input { width:100%; min-height:43px; padding:9px 11px; font-size:.9rem; }
.shared-hoso-form-modal .edit-input:focus,
.shared-hoso-form-modal .score-input:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(8,145,178,.12); outline:none; }
.shared-hoso-form-modal select.edit-input { appearance:none; -webkit-appearance:none; height:43px; min-height:43px; padding:9px 42px 9px 11px; line-height:1.45; background-color:#fff; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:18px 18px; box-shadow:none; cursor:pointer; }
.shared-hoso-form-modal textarea.edit-input { resize:vertical; min-height:68px; }
.shared-hoso-form-modal .score-box { background:linear-gradient(135deg,#f0fdf4,#ecfdf5); border:1.5px solid #bbf7d0; padding:16px; border-radius:var(--radius-md); }
.shared-hoso-form-modal .score-input { width:80px; padding:9px 8px; text-align:center; font-weight:800; color:var(--text); font-size:1rem; }
.shared-hoso-form-modal .score-label { display:block; font-size:.78rem; color:var(--text-3); margin-bottom:6px; font-weight:700; }
.shared-hoso-form-modal .nhap-duplicate-status { border-radius:8px; padding:8px 10px; font-size:.82rem; font-weight:800; line-height:1.45; }
.shared-hoso-form-modal input[type="checkbox"] { accent-color:var(--primary); }
.shared-hoso-form-modal .nhap-dropdown-wrapper { position:relative; }
.shared-hoso-form-modal .nhap-dropdown-list { display:none; position:absolute; top:100%; left:0; right:0; z-index:9999; background:#fff; max-height:200px; overflow-y:auto; border:1.5px solid var(--primary)!important; border-radius:var(--radius-md)!important; box-shadow:var(--shadow-md)!important; list-style:none; padding:4px; margin:4px 0 0; overscroll-behavior:contain; }
.shared-hoso-form-modal .nhap-dropdown-list.show { display:block; }
.shared-hoso-form-modal .nhap-dropdown-list li { gap:0; padding:8px 11px; border-radius:var(--radius); cursor:pointer; font-size:.85rem; display:flex; justify-content:space-between; align-items:center; transition:background var(--transition); }
.shared-hoso-form-modal .nhap-dropdown-list li:hover { background:var(--primary-soft)!important; color:var(--primary); }
.shared-hoso-form-modal .nhap-dropdown-list li span.kv-badge { font-size:.68rem; background:var(--primary-mid); color:var(--primary-dark); padding:2px 7px; border-radius:5px; font-weight:700; }
.shared-hoso-form-modal .nhap-dropdown-list .no-result { color:var(--danger); text-align:center; padding:10px; font-style:italic; font-size:.82rem; }
.shared-hoso-form-modal .nhap-copy-btn { margin-top:8px; width:100%; padding:7px; font-size:.8rem; font-weight:700; background:transparent; border:1.5px dashed var(--primary); color:var(--primary); border-radius:var(--radius)!important; cursor:pointer; transition:all var(--transition); }
.shared-hoso-form-modal .nhap-copy-btn:hover { background:var(--primary); color:#fff; }
.shared-hoso-form-modal .btn { min-height:0; background:var(--primary); color:#fff; border:none; padding:9px 16px; border-radius:var(--radius); cursor:pointer; font-size:.875rem; font-weight:700; display:inline-flex; align-items:center; justify-content:center; gap:7px; box-shadow:0 2px 8px rgba(0,0,0,.1); transition:all var(--transition); white-space:nowrap; }
.shared-hoso-form-modal .address-preview { padding:6px 10px; background:#e0f2fe; border-radius:8px; font-size:.8rem; color:#0369a1; display:none; border-left:3px solid #0284c7; }
.shared-hoso-form-modal .priority-hint { margin-top:4px; padding:0; border:0; background:transparent; border-radius:0; font-size:.74rem; line-height:1.45; }
