:root{
  --bg:#eef7ff; --card:#ffffff; --ink:#17324d; --muted:#6b7a8f; --line:#dce8f3;
  --primary:#246bfe; --primary-dark:#1550c8; --soft:#eaf2ff; --teal:#19a7a5; --danger:#d64545;
  --shadow:0 18px 50px rgba(33,80,130,.12); --radius:22px;
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:linear-gradient(135deg,#f7fbff 0%,var(--bg) 100%);color:var(--ink);min-height:100vh}
a{color:var(--primary);text-decoration:none} a:hover{text-decoration:underline}.page-shell{max-width:1220px;margin:0 auto;padding:18px}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);border:1px solid var(--line);border-radius:24px;padding:12px 14px;box-shadow:0 10px 30px rgba(36,107,254,.08)}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:800}.brand:hover{text-decoration:none}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:14px;color:white;background:linear-gradient(135deg,var(--primary),var(--teal));box-shadow:0 10px 20px rgba(36,107,254,.25)}.nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.nav a,.link-button{border:0;background:transparent;font:inherit;color:var(--muted);padding:9px 12px;border-radius:14px;cursor:pointer}.nav a:hover,.link-button:hover{background:var(--soft);color:var(--primary);text-decoration:none}.pill-link{background:var(--primary)!important;color:#fff!important}.inline-form{display:inline}.nav-toggle{display:none;border:1px solid var(--line);background:var(--card);border-radius:14px;padding:9px 12px;color:var(--ink)}.main{padding:28px 0}.hero{display:grid;grid-template-columns:1.25fr .75fr;gap:28px;align-items:center;min-height:70vh}.hero-copy,.hero-card,.auth-card,.panel,.form-card,.preview-card,.empty-state{background:rgba(255,255,255,.9);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.hero-copy{padding:48px}.hero h1{font-size:clamp(2.2rem,6vw,4.8rem);line-height:.98;margin:12px 0}.hero p{font-size:1.15rem;color:var(--muted);max-width:660px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.75rem;font-weight:800;color:var(--teal)}.hero-actions,.contact-actions,.card-bottom,.split-links,.panel-head,.page-head,.toolbar-form,.search-box{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.hero-card{padding:18px;display:grid;gap:14px}.mini-card,.action-card,.stat-card,.category-card,.user-row,.contact-card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:18px}.mini-card{display:grid;gap:4px}.mini-card span,.muted{color:var(--muted)}.small{font-size:.88rem}.center{text-align:center}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:15px;padding:11px 16px;font-weight:700;cursor:pointer;min-height:42px;transition:.18s ease}.btn:hover{text-decoration:none;transform:translateY(-1px);box-shadow:0 10px 22px rgba(36,107,254,.12)}.btn.primary{background:linear-gradient(135deg,var(--primary),var(--primary-dark));border-color:transparent;color:white}.btn.ghost{background:var(--soft);color:var(--primary)}.btn.danger{background:#fff3f3;color:var(--danger);border-color:#ffd3d3}.btn.small{padding:7px 10px;min-height:34px;border-radius:12px;font-size:.88rem}.btn.full{width:100%}.auth-card{max-width:480px;margin:40px auto;padding:28px}.auth-card.wide{max-width:760px}.form-card{padding:22px;display:grid;gap:16px}.form-card.compact{align-self:start}.input,.select{width:100%;border:1px solid var(--line);background:#f9fcff;color:var(--ink);border-radius:16px;padding:13px 14px;outline:none;font:inherit;transition:.18s}.input:focus,.select:focus{border-color:var(--primary);background:#fff;box-shadow:0 0 0 4px rgba(36,107,254,.10)}.textarea{min-height:94px;resize:vertical}.textarea.tall{min-height:140px}label{display:grid;gap:7px;font-weight:700}.hint,.counter{font-weight:500;color:var(--muted)}.counter.warn{color:#a66a00}.counter.bad{color:var(--danger)}.two-col,.settings-grid,.form-preview-grid,.split-panel{display:grid;grid-template-columns:1fr 1fr;gap:20px}.page-head{justify-content:space-between;margin-bottom:22px}.page-head h1{font-size:clamp(2rem,4vw,3.2rem);margin:0 0 8px}.stats-grid,.quick-grid,.cards-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.stat-card strong{display:block;font-size:2rem}.stat-card span{color:var(--muted)}.action-card{color:var(--ink);display:grid;gap:8px}.action-card:hover{text-decoration:none;border-color:#bdd3ff;box-shadow:var(--shadow)}.action-card span{color:var(--muted)}.panel{padding:22px;margin-bottom:22px}.panel-head{justify-content:space-between;margin-bottom:14px}.panel-head h2{margin:0}.list-stack{display:grid;gap:12px}.space-top{margin-top:16px}.category-card,.user-row{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 10px;font-size:.75rem;font-weight:800;margin-left:8px}.badge.public{background:#e9fff8;color:#087f68}.badge.private{background:#fff0f4;color:#b51b4b}.actions-menu{position:relative}.actions-menu summary{list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:14px;padding:8px 10px;background:#fff}.actions-menu[open]{z-index:5}.actions-menu[open] summary{background:var(--soft)}.actions-menu form,.stacked-mini{display:grid;gap:8px}.small-input{font-size:.9rem;padding:9px 10px;border-radius:12px}.contact-card{display:grid;gap:12px;overflow:hidden}.contact-head{display:flex;justify-content:space-between;gap:10px}.contact-head strong{display:block;font-size:1.08rem}.contact-lines p{margin:8px 0;word-break:break-word}.contact-lines span{display:block;color:var(--muted);font-size:.76rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.chip,.soft-value{display:inline-flex;border-radius:999px;background:var(--soft);padding:7px 10px;font-size:.88rem;color:var(--primary);font-weight:700}.soft-value{color:var(--muted);background:#f6f9fc}.empty-soft{border:1px dashed var(--line);border-radius:18px;padding:22px;text-align:center;color:var(--muted);background:#fbfdff}.search-box{background:#fff;border:1px solid var(--line);padding:10px;border-radius:20px}.search-box .input{flex:1;min-width:220px}.sticky-search{position:sticky;top:86px;z-index:10}.form-preview-grid{align-items:start}.preview-card{padding:24px;position:sticky;top:100px}.preview-card h2{margin:10px 0 18px}.preview-card p,.preview-inline p{word-break:break-word;white-space:pre-wrap}.question-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.flash-stack{position:fixed;right:20px;top:92px;z-index:100;display:grid;gap:10px;max-width:min(420px,calc(100vw - 32px))}.flash{display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:16px;padding:13px 14px;box-shadow:var(--shadow);border:1px solid var(--line);background:#fff}.flash-success{border-color:#bdf2df;background:#f0fff9}.flash-error{border-color:#ffc9c9;background:#fff3f3}.flash-warning{border-color:#ffe1a8;background:#fffaf0}.flash button{border:0;background:transparent;font-size:1.2rem;cursor:pointer}.debug-box{text-align:left;white-space:pre-wrap;background:#172033;color:#fff;border-radius:14px;padding:14px;overflow:auto}.empty-state{text-align:center;padding:42px;margin:50px auto;max-width:700px}.public-nav{margin-left:auto}
@media(max-width:980px){.hero,.two-col,.settings-grid,.form-preview-grid,.split-panel{grid-template-columns:1fr}.stats-grid,.quick-grid,.cards-grid{grid-template-columns:repeat(2,1fr)}.preview-card{position:static}.hero{min-height:auto}.hero-copy{padding:32px}.nav-toggle{display:inline-flex}.nav{display:none;position:absolute;left:14px;right:14px;top:70px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:12px;box-shadow:var(--shadow)}.nav.open{display:flex}.nav a,.nav .inline-form,.link-button{width:100%;text-align:left}.link-button{display:block}.public-nav{display:flex;position:static;background:transparent;border:0;box-shadow:none;padding:0;width:auto}.public-nav a{width:auto}}
@media(max-width:620px){.page-shell{padding:10px}.topbar{border-radius:18px}.hero-copy,.panel,.auth-card,.form-card{padding:18px}.stats-grid,.quick-grid,.cards-grid{grid-template-columns:1fr}.page-head{align-items:stretch}.page-head .btn{width:100%}.category-card,.user-row,.contact-head{flex-direction:column}.search-box{align-items:stretch}.search-box .input,.search-box .select,.search-box .btn{width:100%;min-width:0}.question-pair{grid-template-columns:1fr}.flash-stack{left:10px;right:10px;top:auto;bottom:10px}.sticky-search{top:78px}.brand span:last-child{max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

/* Recovery question selectors */
.selector-intro{display:grid;gap:5px;background:linear-gradient(135deg,#f4f9ff,#eefdfb);border:1px solid var(--line);border-radius:20px;padding:16px 18px;color:var(--ink)}
.selector-intro strong{font-size:1rem}.selector-intro span{color:var(--muted);font-size:.93rem}.custom-question-row{align-items:start;background:#fbfdff;border:1px solid var(--line);border-radius:20px;padding:14px}.select-shell{position:relative;display:block}.select-shell:after{content:"⌄";position:absolute;right:14px;top:50%;transform:translateY(-54%);pointer-events:none;color:var(--primary);font-size:1.15rem;font-weight:900}.fancy-select{appearance:none;-webkit-appearance:none;padding-right:44px;background:linear-gradient(180deg,#fff,#f6fbff);box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}.fancy-select:hover{border-color:#bdd3ff;background:#fff}.fancy-select option[disabled]{color:#a7b2c1}.required-dot{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#eef6ff;color:var(--primary);font-size:.68rem;font-weight:800;padding:2px 8px;margin-left:6px;vertical-align:middle}.answer-input{background:#fff}.recovery-form .hint{font-size:.78rem}.question-pair.has-duplicate{border-color:#ffd1d1;background:#fff7f7}.question-pair.has-duplicate .fancy-select{border-color:#d64545;box-shadow:0 0 0 4px rgba(214,69,69,.08)}
@media(max-width:620px){.custom-question-row{padding:12px}.selector-intro{padding:14px}.required-dot{margin-left:0;width:max-content}}

/* Production search, pagination, and selector refinements */
.head-actions{display:flex;gap:12px;flex-wrap:wrap}.compact-actions{grid-template-columns:repeat(3,1fr)}.roomy-search{gap:14px;margin-bottom:10px}.grow-field{flex:1;min-width:240px}.selector-field{min-width:230px;flex:0 0 260px}.wide-selector{flex:0 0 280px}.results-gap{margin-top:18px}.category-layout{align-items:start}.list-panel{min-width:0}.category-search{margin-bottom:6px}.improved-category-card{align-items:center}.category-main{min-width:0;display:grid;gap:8px}.category-main strong{word-break:break-word}.category-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.category-meta .badge{margin-left:0}.category-actions-menu{flex:0 0 auto}.actions-popover{position:absolute;right:0;top:calc(100% + 8px);width:min(340px,calc(100vw - 42px));background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:12px;display:grid;gap:10px}.inline-actions{display:flex;gap:8px;flex-wrap:wrap}.update-category-form{gap:10px}.chip-button{border:0;cursor:pointer;font:inherit}.chip-button:hover{text-decoration:none;background:#dbe9ff}.suggest-wrap{position:relative}.suggestions-box{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:40;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;padding:6px}.suggestion-item{display:block;width:100%;border:0;background:#fff;text-align:left;padding:10px 12px;border-radius:12px;color:var(--ink);cursor:pointer}.suggestion-item:hover{background:var(--soft);color:var(--primary)}.remote-select{position:relative;width:100%}.remote-button{width:100%;min-height:48px;display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--line);background:#f9fcff;color:var(--ink);border-radius:16px;padding:12px 14px;font:inherit;font-weight:700;cursor:pointer;text-align:left}.remote-button:hover,.remote-select.open .remote-button{border-color:var(--primary);background:#fff;box-shadow:0 0 0 4px rgba(36,107,254,.10)}.remote-caret{color:var(--primary);font-weight:900}.remote-menu{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:60;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:10px;display:grid;gap:10px}.remote-search{min-height:44px}.remote-options{display:grid;gap:6px;max-height:260px;overflow:auto}.remote-option{border:0;background:#fff;text-align:left;border-radius:14px;padding:10px 12px;display:grid;gap:3px;color:var(--ink);cursor:pointer}.remote-option:hover{background:var(--soft)}.remote-option span,.remote-empty{color:var(--muted);font-size:.86rem}.remote-empty{padding:10px;text-align:center}.pagination{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:20px}.page-link,.page-dots{min-width:38px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;border-radius:12px;padding:8px 12px;font-weight:800}.page-link.active{background:var(--primary);color:#fff;border-color:var(--primary)}.page-link.disabled{pointer-events:none;color:#a4b0bf;background:#f7f9fb}.page-dots{border:0;background:transparent;color:var(--muted)}.access-layout .user-row{align-items:center}.shared-search-form{align-items:flex-start}.shared-search-form .btn{min-height:48px}.cards-grid .contact-card{height:100%}.contact-actions{margin-top:2px}.card-bottom{border-top:1px solid var(--line);padding-top:12px;margin-top:2px}.remote-select + .counter{margin-top:6px}
@media(max-width:980px){.compact-actions{grid-template-columns:1fr}.selector-field,.wide-selector{flex:1 1 260px}.actions-popover{position:static;width:100%;margin-top:8px}.improved-category-card{align-items:stretch}.category-actions-menu{width:100%}.category-actions-menu summary{width:max-content;margin-left:auto}.shared-search-form{align-items:stretch}}
@media(max-width:620px){.head-actions{width:100%}.head-actions .btn{width:100%}.grow-field,.selector-field,.wide-selector{min-width:0;flex:1 1 100%;width:100%}.remote-menu{position:fixed;left:12px;right:12px;top:100px;max-height:70vh;overflow:auto}.remote-options{max-height:45vh}.inline-actions .btn{flex:1}.contact-actions .chip{flex:1;justify-content:center}.pagination{justify-content:flex-start}.page-link,.page-dots{min-width:34px;min-height:34px;padding:7px 10px}.improved-category-card{gap:12px}.category-main{width:100%}}

/* vNext: integrated picker selectors, icons, submit loaders, and share-ready cards */
.hidden{display:none!important}.icon{display:inline-flex;align-items:center;justify-content:center;line-height:1;margin-right:7px;font-weight:900}.btn .icon,.chip .icon,.link-button .icon,.nav-toggle .icon{flex:0 0 auto}.icon-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.icon-chip{align-items:center;gap:3px}.icon-chip .icon{margin-right:4px}.btn[disabled],button[disabled]{opacity:.7;cursor:not-allowed;transform:none!important}.loader{width:16px;height:16px;border-radius:999px;border:2px solid rgba(255,255,255,.55);border-top-color:#fff;display:inline-block;animation:spin .75s linear infinite}.btn:not(.primary) .loader{border-color:rgba(36,107,254,.2);border-top-color:var(--primary)}@keyframes spin{to{transform:rotate(360deg)}}
.picker-select{position:relative;width:100%}.picker-trigger{width:100%;min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff,#f6fbff);color:var(--ink);padding:12px 14px;text-align:left;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.75);transition:.18s ease}.picker-trigger:hover,.picker-select.open .picker-trigger{border-color:var(--primary);background:#fff;box-shadow:0 0 0 4px rgba(36,107,254,.10)}.picker-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}.picker-trigger strong{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;background:var(--soft);color:var(--primary);padding:7px 10px;font-size:.85rem}.picker-panel{position:absolute;left:0;right:0;top:calc(100% + 10px);z-index:80;background:#fff;border:1px solid var(--line);border-radius:24px;padding:14px;box-shadow:0 26px 70px rgba(23,50,77,.18);display:grid;gap:13px}.picker-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.picker-top strong{display:block;color:var(--ink)}.picker-top small{display:block;color:var(--muted);font-weight:500;margin-top:2px}.picker-close{border:0;background:#f1f6ff;color:var(--primary);width:36px;height:36px;border-radius:14px;font-size:1.4rem;line-height:1;cursor:pointer}.picker-search{display:grid;gap:6px;margin:0}.picker-search span{font-size:.76rem;text-transform:uppercase;letter-spacing:.07em;color:var(--primary);font-weight:900}.picker-options{display:grid;gap:8px;max-height:280px;overflow:auto;padding-right:2px}.picker-option{border:1px solid transparent;background:#fff;text-align:left;border-radius:16px;padding:11px 12px;display:grid;gap:4px;color:var(--ink);cursor:pointer}.picker-option:hover,.picker-option:focus{background:var(--soft);border-color:#cfe0ff;outline:none}.picker-option strong{font-size:.97rem}.picker-option span,.remote-empty,.picker-loading{color:var(--muted);font-size:.86rem}.picker-loading{text-align:center;padding:8px}.suggestions-box{z-index:90}.contact-card{position:relative}.contact-card .contact-actions{padding-top:2px}.card-bottom form{margin:0}.card-bottom .btn,.card-bottom form{display:inline-flex}.category-card .btn,.user-row .btn{white-space:nowrap}.actions-popover .btn{gap:7px}.flash button .icon{margin-right:0}
@media(max-width:760px){.picker-panel{position:fixed;left:12px;right:12px;top:86px;max-height:calc(100vh - 110px);overflow:auto}.picker-options{max-height:52vh}.icon-actions .chip,.icon-actions .btn{flex:1;justify-content:center}.card-bottom{align-items:stretch}.card-bottom form{width:100%}.card-bottom .btn{width:100%}.category-card .inline-actions{display:grid;grid-template-columns:1fr 1fr}.category-card .inline-actions .btn{width:100%}.user-row{align-items:stretch}.user-row form,.user-row .btn{width:100%}.search-box .btn{justify-content:center}}
.page-next-icon{margin-left:7px;margin-right:0}.pagination .icon{margin-right:7px}.pagination .page-next-icon{margin-right:0}

/* Access and share refinements */
.access-user-row.already-allowed-row{border-color:#bdebd9;background:linear-gradient(135deg,#ffffff,#f3fff9)}
.access-state{margin:.3rem 0 0;color:#087f68!important;font-weight:700}.chip-button[disabled]{opacity:.82}.chip-button .loader{width:14px;height:14px;margin-right:6px}
@media(max-width:760px){.access-layout .user-row{gap:12px}.access-layout .user-row>div{width:100%}}

/* Bootstrap Icons local SVG sprite */
.bi{width:1em;height:1em;fill:currentColor;display:block;flex:0 0 auto}.icon .bi{width:1em;height:1em}.picker-close .icon,.flash button .icon{margin:0}.picker-close .bi,.flash button .bi{width:.9em;height:.9em}.btn .icon,.chip .icon,.link-button .icon,.nav-toggle .icon{display:inline-flex}.page-next-icon{margin-left:7px;margin-right:0}.loader + span,.icon + span{margin-left:0}.share-help{font-size:.78rem;color:var(--muted);margin-top:4px}


/* Responsive topbar and share-format refinements */
.brand{min-width:0;}
.nav-toggle{align-items:center;justify-content:center;gap:6px;flex-shrink:0;font-weight:800;white-space:nowrap;}
.nav-toggle .icon{margin-right:0;}
.nav-toggle-text{display:inline-block;}
@media(max-width:620px){
  .topbar{gap:8px;padding:10px 11px;}
  .brand{gap:8px;min-width:0;overflow:hidden;}
  .brand-mark{width:34px;height:34px;border-radius:12px;flex:0 0 34px;}
  .brand span:last-child{max-width:calc(100vw - 118px);}
  .nav-toggle{width:42px;height:42px;padding:0;border-radius:14px;}
  .nav-toggle .bi{width:1.25em;height:1.25em;}
  .nav-toggle-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
}
@media(max-width:380px){
  .brand span:last-child{max-width:calc(100vw - 106px);}
  .brand-mark{width:32px;height:32px;flex-basis:32px;}
  .nav-toggle{width:40px;height:40px;}
}

/* Public landing navigation uses the same compact menu on tablets/phones */
.install-btn[hidden]{display:none!important;}
@media(max-width:980px){
  .public-nav{display:none;position:absolute;left:14px;right:14px;top:70px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:12px;box-shadow:var(--shadow);width:auto;margin-left:0;}
  .public-nav.open{display:flex;}
  .public-nav a,.public-nav .link-button{width:100%;text-align:left;}
}

/* vNext: timeline, invitation access, and country-code phone selector */
.phone-grid{display:grid;grid-template-columns:minmax(210px,.8fr) 1fr 1fr;gap:16px;align-items:start}.country-code-select{position:relative;width:100%}.country-trigger{width:100%;min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff,#f6fbff);color:var(--ink);padding:12px 14px;text-align:left;cursor:pointer;font-weight:800}.country-trigger:hover,.country-code-select.open .country-trigger{border-color:var(--primary);background:#fff;box-shadow:0 0 0 4px rgba(36,107,254,.10)}.country-trigger [data-country-label]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.country-panel{position:absolute;left:0;right:0;top:calc(100% + 10px);z-index:90;background:#fff;border:1px solid var(--line);border-radius:24px;padding:14px;box-shadow:0 26px 70px rgba(23,50,77,.18);display:grid;gap:12px}.country-options{display:grid;gap:7px;max-height:290px;overflow:auto}.country-option{border:1px solid transparent;background:#fff;text-align:left;border-radius:16px;padding:10px 12px;display:grid;gap:3px;color:var(--ink);cursor:pointer}.country-option:hover,.country-option:focus{background:var(--soft);border-color:#cfe0ff;outline:none}.country-option span{color:var(--muted);font-size:.86rem}.row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.contact-head .source-label{color:var(--teal);font-weight:800}.access-search-panel{scroll-margin-top:105px}[data-results-section]{scroll-margin-top:110px}.timeline-source{display:inline-flex;align-items:center;border-radius:999px;background:#effaf7;color:#087f68;font-size:.76rem;font-weight:900;padding:3px 9px;margin-left:6px}@media(max-width:980px){.phone-grid{grid-template-columns:1fr}.country-panel{position:fixed;left:12px;right:12px;top:86px;max-height:calc(100vh - 110px);overflow:auto}.country-options{max-height:52vh}.row-actions{width:100%}.row-actions form,.row-actions .btn{flex:1;width:100%}}

/* Country code picker aligned with the category picker */
.country-code-select.picker-select{width:100%}
.country-code-select .picker-trigger strong{gap:6px}
.country-code-select .country-options{display:grid;gap:8px;max-height:280px;overflow:auto;padding-right:2px}
.country-code-select .country-option[hidden]{display:none!important}
.phone-helper,.phone-normalized-preview{display:block;margin-top:6px;color:var(--muted);font-size:.82rem;line-height:1.35}.phone-normalized-preview{font-weight:800;color:var(--teal)}.phone-normalized-preview.bad{color:#b42318}
@media(max-width:760px){.country-code-select .picker-panel{position:fixed;left:12px;right:12px;top:86px;max-height:calc(100vh - 110px);overflow:auto}.country-code-select .country-options{max-height:52vh}}

/* vNext: visible country code picker and dynamic phone formatting */
.country-code-select .country-option.selected,
.country-code-select .country-option[aria-selected="true"]{
  background:linear-gradient(180deg,#eff6ff,#f7fbff);
  border-color:#b9d4ff;
  box-shadow:0 0 0 3px rgba(36,107,254,.08);
}
.country-code-select .picker-options::before{
  content:'Country codes';
  display:block;
  font-size:.74rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--primary);
  font-weight:900;
  padding:2px 2px 4px;
}
.phone-grid .input[inputmode="tel"]{letter-spacing:.04em;font-weight:800}
.phone-normalized-preview{background:#effaf7;border:1px solid #c8eee4;border-radius:12px;padding:7px 10px;width:max-content;max-width:100%}
.phone-normalized-preview:empty{display:none}
@media(max-width:420px){
  .country-code-select .picker-trigger{padding:11px 12px;gap:8px}
  .country-code-select .picker-trigger strong{font-size:.78rem;padding:6px 8px}
  .phone-grid .input[inputmode="tel"]{font-size:1rem}
}

/* Final country picker: visibly populated, searchable, and resilient */
.country-trigger-main{display:grid;gap:2px;min-width:0}
.country-trigger-label{font-weight:900;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.country-trigger-help{font-size:.76rem;color:var(--muted);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.country-count-pill{display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:100%;border:1px solid #cfe0ff;background:#f4f8ff;color:var(--primary);border-radius:999px;padding:7px 11px;font-size:.82rem;font-weight:900}
.country-count-pill .icon{margin-right:0}
.country-code-select .country-options{border:1px solid var(--line);border-radius:18px;padding:8px;background:#fbfdff;max-height:340px}
.country-code-select .country-option{grid-template-columns:auto 1fr;align-items:center;column-gap:10px;min-height:52px;background:#fff;border-color:#eef3f8}
.country-code-select .country-option[hidden]{display:none!important}
.country-code-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:linear-gradient(135deg,var(--primary),var(--teal));color:#fff;font-weight:1000;min-width:68px;padding:8px 10px;letter-spacing:.02em}
.country-option-text{display:grid;gap:2px;min-width:0}
.country-option-text strong{white-space:normal;word-break:break-word}
.country-option-text small{color:var(--muted);font-weight:700}
.country-native-label{border-top:1px solid var(--line);padding-top:10px;margin-top:2px}
.country-native-label span{font-size:.76rem;text-transform:uppercase;letter-spacing:.07em;color:var(--primary);font-weight:900}
.country-native-select{background:#fff;font-weight:800}
.phone-format-input{font-weight:900;letter-spacing:.05em;font-variant-numeric:tabular-nums;background:#fff!important}
.phone-format-input::placeholder{font-weight:700;letter-spacing:.02em;color:#8a9ab0}
@media(max-width:620px){
  .country-code-badge{min-width:62px;padding:7px 9px}
  .country-trigger-help{white-space:normal}
  .country-code-select .country-options{max-height:48vh}
}

/* Targeted contact form + country selector refinement.
   Keeps the existing picker/phone formatting behavior intact. */
.contact-form-layout{
  grid-template-columns:1fr !important;
  max-width:100%;
}
.contact-form-layout .form-card,
.contact-form-layout .preview-card{
  width:100%;
  max-width:100%;
}
.contact-form-layout .preview-card{
  position:static;
}
.contact-form-layout .phone-grid{
  display:grid;
  grid-template-columns:1fr !important;
  gap:16px;
  max-width:100%;
}
.contact-form-layout label,
.contact-form-layout .input,
.contact-form-layout .select,
.contact-form-layout textarea{
  max-width:100%;
  min-width:0;
}

.country-code-select,
.country-code-select *{
  box-sizing:border-box;
}
.country-code-select{
  max-width:100%;
  min-width:0;
}
.country-code-select .picker-trigger,
.country-code-select .country-trigger{
  max-width:100%;
  min-width:0;
}
.country-code-select .picker-trigger > span,
.country-trigger-main{
  min-width:0;
}
.country-code-select .picker-trigger strong{
  flex:0 0 auto;
}
.country-code-select .picker-panel.country-panel{
  max-width:min(720px, calc(100vw - 32px));
  overflow:hidden;
}
.country-code-select .picker-top{
  flex-wrap:wrap;
}
.country-code-select .picker-search,
.country-code-select .country-native-label,
.country-code-select .country-native-select,
.country-code-select .country-options{
  width:100%;
  max-width:100%;
  min-width:0;
}
.country-code-select .country-options{
  overflow-x:hidden;
}
.country-code-select .country-option{
  grid-template-columns:minmax(58px, auto) minmax(0, 1fr);
  max-width:100%;
  min-width:0;
}
.country-code-badge,
.country-code-select .country-code-badge,
.country-code-select .country-option .country-code-badge{
  color:#fff !important;
  -webkit-text-fill-color:#fff;
  white-space:nowrap;
  min-width:62px;
  max-width:100%;
  flex-shrink:0;
}
.country-code-badge *,
.country-code-select .country-code-badge *{
  color:#fff !important;
  -webkit-text-fill-color:#fff;
}
.country-option-text,
.country-option-text strong,
.country-option-text small{
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:normal;
}

@media(max-width:1200px){
  .country-code-select .picker-panel.country-panel{
    position:fixed;
    left:16px;
    right:16px;
    top:clamp(72px, 10vh, 96px);
    width:auto;
    max-width:calc(100vw - 32px);
    max-height:calc(100vh - 112px);
    overflow:auto;
    z-index:120;
  }
  .country-code-select .country-options{
    max-height:48vh;
  }
}
@media(max-width:520px){
  .country-code-select .picker-panel.country-panel{
    left:10px;
    right:10px;
    top:72px;
    max-width:calc(100vw - 20px);
    max-height:calc(100vh - 92px);
    padding:12px;
    border-radius:20px;
  }
  .country-code-select .country-option{
    grid-template-columns:1fr;
    gap:7px;
  }
  .country-code-badge,
  .country-code-select .country-code-badge,
  .country-code-select .country-option .country-code-badge{
    width:max-content;
    min-width:0;
  }
  .country-code-select .picker-trigger{
    align-items:flex-start;
  }
  .country-code-select .picker-trigger strong{
    padding:6px 8px;
    font-size:.78rem;
  }
}

/* Final country selector mobile-safe layout: category-style picker, no overflow. */
.contact-form-layout{
  grid-template-columns:1fr !important;
}
.contact-form-layout .phone-grid{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:16px !important;
  width:100%;
  max-width:100%;
}
.country-code-select{
  width:100%;
  max-width:100%;
  min-width:0;
  position:relative;
  isolation:isolate;
}
.country-code-select,
.country-code-select *{
  box-sizing:border-box;
}
.country-code-select .country-trigger{
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  overflow:hidden;
}
.country-trigger-main{
  min-width:0;
  max-width:100%;
  display:grid;
  gap:2px;
}
.country-trigger-label,
.country-trigger-help{
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
}
.country-code-select .country-trigger strong{
  flex:0 0 auto;
  max-width:max-content;
  white-space:nowrap;
}
.country-code-select .country-panel{
  width:100%;
  max-width:min(680px, calc(100vw - 32px));
  min-width:0;
  overflow:hidden;
}
.country-code-select .picker-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
.country-code-select .picker-top > div{
  min-width:0;
}
.country-code-select .picker-top strong,
.country-code-select .picker-top small{
  overflow-wrap:anywhere;
}
.country-code-select .picker-search,
.country-code-select .picker-search input,
.country-code-select .country-options,
.country-code-select .country-option,
.country-option-text{
  width:100%;
  max-width:100%;
  min-width:0;
}
.country-code-select .country-options{
  display:grid;
  gap:8px;
  overflow-y:auto;
  overflow-x:hidden;
  padding:8px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fbfdff;
  max-height:min(340px, 48vh);
}
.country-code-select .country-option{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid #eef3f8;
  border-radius:16px;
  background:#fff;
  color:var(--ink);
  overflow:hidden;
}
.country-code-select .country-option:hover,
.country-code-select .country-option:focus,
.country-code-select .country-option.selected,
.country-code-select .country-option[aria-selected="true"]{
  background:var(--soft);
  border-color:#cfe0ff;
  outline:none;
}
.country-code-select .country-code-badge,
.country-code-select .country-option .country-code-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-width:62px;
  max-width:100%;
  padding:8px 10px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--primary),var(--teal));
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-weight:1000;
  line-height:1;
  white-space:nowrap;
  flex:0 0 auto;
}
.country-code-select .country-code-badge *,
.country-code-select .country-option .country-code-badge *{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
.country-code-select .country-option-text{
  display:grid;
  gap:2px;
  overflow:hidden;
}
.country-code-select .country-option-text strong,
.country-code-select .country-option-text small{
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:normal;
}
.country-code-select .country-option-text small{
  color:var(--muted);
}
.country-native-label{
  display:none !important;
}
.country-count-pill{
  width:100%;
  max-width:100%;
  justify-content:center;
  overflow-wrap:anywhere;
  text-align:center;
}
@media(max-width:1100px){
  .country-code-select .country-panel{
    position:fixed !important;
    left:14px !important;
    right:14px !important;
    top:14px !important;
    bottom:14px !important;
    width:auto !important;
    max-width:none !important;
    max-height:none !important;
    overflow:hidden !important;
    z-index:1000 !important;
    display:grid;
    grid-template-rows:auto auto auto minmax(0,1fr) auto;
    gap:12px;
    padding:14px;
    border-radius:22px;
  }
  .country-code-select .country-options{
    max-height:none !important;
    min-height:0;
    height:100%;
  }
}
@media(max-width:520px){
  .country-code-select .country-panel{
    left:8px !important;
    right:8px !important;
    top:8px !important;
    bottom:8px !important;
    padding:12px;
    border-radius:20px;
  }
  .country-code-select .picker-top{
    align-items:center;
  }
  .country-code-select .picker-top small{
    display:none;
  }
  .country-code-select .country-count-pill{
    font-size:.76rem;
    padding:7px 9px;
  }
  .country-code-select .country-option{
    grid-template-columns:auto minmax(0,1fr);
    gap:8px;
    padding:9px;
  }
  .country-code-select .country-code-badge,
  .country-code-select .country-option .country-code-badge{
    min-width:54px;
    padding:7px 8px;
    font-size:.84rem;
  }
  .country-code-select .country-option-text strong{
    font-size:.92rem;
  }
  .country-code-select .country-option-text small{
    font-size:.78rem;
  }
  .country-code-select .country-trigger{
    align-items:center;
    padding:11px 12px;
  }
  .country-code-select .country-trigger strong{
    padding:6px 8px;
    font-size:.78rem;
  }
}
@media(max-width:360px){
  .country-code-select .country-option{
    grid-template-columns:1fr;
  }
  .country-code-select .country-code-badge,
  .country-code-select .country-option .country-code-badge{
    justify-self:start;
    min-width:0;
  }
}

/* Final authoritative responsive country-code picker + phone input containment.
   This intentionally mirrors the category picker behavior while fixing mobile overflow. */
.contact-form-layout,
.contact-form-layout .form-card,
.contact-form-layout .preview-card,
.contact-form-layout .phone-grid,
.contact-form-layout label {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.contact-form-layout { grid-template-columns: 1fr !important; }
.contact-form-layout .preview-card { position: static !important; }
.contact-form-layout .phone-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  overflow: visible !important;
}
.contact-form-layout .input,
.contact-form-layout textarea,
.contact-form-layout .picker-select,
.contact-form-layout .country-code-select {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.country-code-select,
.country-code-select * { box-sizing: border-box !important; }
.country-code-select {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  isolation: isolate;
}
.country-code-select .country-trigger,
.country-code-select .picker-trigger {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  overflow: hidden !important;
}
.country-code-select .country-trigger-main {
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 1 1 auto !important;
  display: grid !important;
  gap: 2px !important;
}
.country-code-select .country-trigger-label,
.country-code-select .country-trigger-help {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.country-code-select .country-trigger strong,
.country-code-select .picker-trigger strong {
  flex: 0 0 auto !important;
  max-width: max-content !important;
  white-space: nowrap !important;
}
.country-code-select .country-panel,
.country-code-select .picker-panel.country-panel {
  width: 100% !important;
  max-width: min(720px, calc(100vw - 28px)) !important;
  min-width: 0 !important;
  overflow: hidden !important;
  z-index: 1000 !important;
}
.country-code-select .picker-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
}
.country-code-select .picker-top > div {
  min-width: 0 !important;
  max-width: calc(100% - 48px) !important;
}
.country-code-select .picker-top strong,
.country-code-select .picker-top small {
  display: block !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
.country-code-select .picker-close {
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 2 !important;
}
.country-code-select .country-count-pill,
.country-code-select .picker-search,
.country-code-select .picker-search input,
.country-code-select .country-options,
.country-code-select .country-option,
.country-code-select .country-option-text {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.country-code-select .country-count-pill {
  justify-content: center !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
.country-code-select .country-options {
  display: grid !important;
  gap: 8px !important;
  min-height: 0 !important;
  max-height: min(340px, 48vh) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 8px !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  background: #fbfdff !important;
}
.country-code-select .country-option {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border: 1px solid #eef3f8 !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--ink) !important;
  overflow: visible !important;
  text-align: left !important;
}
.country-code-select .country-option:hover,
.country-code-select .country-option:focus,
.country-code-select .country-option.selected,
.country-code-select .country-option[aria-selected="true"] {
  background: var(--soft) !important;
  border-color: #cfe0ff !important;
  outline: none !important;
}
.country-code-select .country-code-badge,
.country-code-select .country-option .country-code-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 62px !important;
  max-width: 100% !important;
  padding: 8px 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--primary), var(--teal)) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}
.country-code-select .country-code-badge *,
.country-code-select .country-option .country-code-badge * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.country-code-select .country-option-text {
  display: grid !important;
  gap: 2px !important;
  overflow: visible !important;
}
.country-code-select .country-option-text strong,
.country-code-select .country-option-text small {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.25 !important;
}
.country-code-select .country-option-text small { color: var(--muted) !important; }
.country-code-select .country-native-label { display: none !important; }
.phone-format-input,
.contact-form-layout input[data-phone-input] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: clamp(.92rem, 2.8vw, 1rem) !important;
  letter-spacing: .035em !important;
  font-variant-numeric: tabular-nums !important;
}
.phone-helper,
.phone-normalized-preview {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  white-space: normal !important;
  line-height: 1.35 !important;
  font-size: clamp(.76rem, 2.7vw, .88rem) !important;
}
.phone-normalized-preview {
  border-radius: 12px;
  background: #f6f9fc;
  padding: 7px 9px;
}
@media (max-width: 1100px) {
  .country-code-select .country-panel,
  .country-code-select .picker-panel.country-panel {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 92px !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    padding: 14px !important;
    border-radius: 22px !important;
    display: grid !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
    gap: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 28px 80px rgba(23,50,77,.22) !important;
  }
  .country-code-select .country-options {
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
  }
}
@media (max-width: 640px) {
  .country-code-select .country-panel,
  .country-code-select .picker-panel.country-panel {
    left: 10px !important;
    right: 10px !important;
    top: 84px !important;
    bottom: 10px !important;
    padding: 12px !important;
    border-radius: 20px !important;
  }
  .country-code-select .country-trigger,
  .country-code-select .picker-trigger {
    padding: 11px 12px !important;
  }
  .country-code-select .country-trigger strong,
  .country-code-select .picker-trigger strong {
    padding: 6px 8px !important;
    font-size: .78rem !important;
  }
  .country-code-select .country-trigger-help { display: none !important; }
  .country-code-select .picker-top small { display: none !important; }
  .country-code-select .country-count-pill { display: none !important; }
  .country-code-select .country-option {
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 9px !important;
  }
  .country-code-select .country-code-badge,
  .country-code-select .country-option .country-code-badge {
    min-width: 54px !important;
    padding: 7px 8px !important;
    font-size: .84rem !important;
  }
  .country-code-select .country-option-text strong { font-size: .92rem !important; }
  .country-code-select .country-option-text small { font-size: .78rem !important; }
}
@media (max-width: 380px) {
  .country-code-select .country-option {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }
  .country-code-select .country-code-badge,
  .country-code-select .country-option .country-code-badge {
    justify-self: start !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .country-code-select .picker-top > div { max-width: calc(100% - 42px) !important; }
  .country-code-select .picker-close { width: 34px !important; height: 34px !important; }
}


/* Country picker visibility fix: keep the panel closed until the user opens it.
   This is intentionally last so mobile fixed-panel rules cannot override .hidden. */
.country-code-select .country-panel.hidden,
.country-code-select .picker-panel.country-panel.hidden,
.country-code-select .country-panel[hidden],
.country-code-select .picker-panel.country-panel[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.country-code-select.open .country-panel:not(.hidden):not([hidden]),
.country-code-select.open .picker-panel.country-panel:not(.hidden):not([hidden]) {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Final contact form layout: form + preview inline on roomy screens, stacked on small screens.
   Inputs/selectors/textareas inside the form remain full-width blocks. */
.contact-form-layout.form-preview-grid {
  display: grid !important;
  gap: 20px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
}
.contact-form-layout .form-card,
.contact-form-layout .preview-card {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
.contact-form-layout .form-card,
.contact-form-layout .form-card > label,
.contact-form-layout .phone-grid,
.contact-form-layout .phone-grid > label {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
.contact-form-layout .form-card .input,
.contact-form-layout .form-card .select,
.contact-form-layout .form-card textarea,
.contact-form-layout .form-card input,
.contact-form-layout .form-card select,
.contact-form-layout .form-card .picker-select,
.contact-form-layout .form-card .country-code-select {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.contact-form-layout .form-card textarea {
  resize: vertical !important;
}
@media (min-width: 1024px) {
  .contact-form-layout.form-preview-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr) !important;
  }
  .contact-form-layout .preview-card {
    position: sticky !important;
    top: 100px !important;
  }
}
@media (max-width: 1023px) {
  .contact-form-layout.form-preview-grid {
    grid-template-columns: 1fr !important;
  }
  .contact-form-layout .preview-card {
    position: static !important;
  }
}

/* Access tabs + timeline source refinement */
.contact-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-top:3px;
}
.timeline-source.from-source,
.contact-head .timeline-source.from-source{
  background:#eaf2ff !important;
  border:1px solid #c9dcff !important;
  color:var(--primary) !important;
  box-shadow:0 8px 18px rgba(36,107,254,.08);
}
.access-tabs-panel{
  overflow:hidden;
}
.access-tabs-head{
  margin-bottom:16px;
}
.access-tab-list{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:24px;
  background:linear-gradient(135deg,#f7fbff,#eef6ff);
  margin-bottom:18px;
}
.access-tab-button{
  border:1px solid transparent;
  background:#fff;
  color:var(--muted);
  border-radius:18px;
  min-height:68px;
  padding:12px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:9px;
  text-align:left;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(23,50,77,.06);
  transition:.18s ease;
}
.access-tab-button:hover,
.access-tab-button:focus{
  color:var(--primary);
  border-color:#cfe0ff;
  outline:none;
  transform:translateY(-1px);
}
.access-tab-button.active{
  color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  border-color:transparent;
  box-shadow:0 14px 28px rgba(36,107,254,.22);
}
.access-tab-button .icon{margin-right:0;}
.access-tab-button strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  min-height:28px;
  border-radius:999px;
  background:#eef5ff;
  color:var(--primary);
  padding:3px 8px;
  font-size:.82rem;
}
.access-tab-button.active strong{
  background:rgba(255,255,255,.2);
  color:#fff;
}
.access-tab-panel{
  display:grid;
  gap:14px;
}
.access-tab-panel[hidden]{display:none!important;}
.access-section-title{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.access-section-title h3{
  margin:0 0 4px;
  font-size:1.22rem;
}
.access-tab-search{
  background:#f7fbff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:12px;
}
.access-tab-content .pagination{
  margin-top:4px;
}
@media(max-width:980px){
  .access-tab-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:620px){
  .access-tab-list{
    grid-template-columns:1fr;
    padding:7px;
    border-radius:20px;
  }
  .access-tab-button{
    min-height:56px;
    border-radius:16px;
    padding:10px 11px;
  }
  .access-tab-search{
    display:grid;
    grid-template-columns:1fr;
  }
  .access-tab-search .btn,
  .access-tab-search .grow-field{
    width:100%;
  }
}

/* Final stable search suggestions + beautiful access tabs */
.suggestions-box.hidden,
.suggestions-box[hidden]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.suggestions-box{
  max-height:min(320px, 52vh);
  overflow:auto;
}

.contact-head .timeline-source.from-source,
.timeline-source.from-source{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  background:#eaf2ff!important;
  border:1px solid #bed5ff!important;
  color:#0d6efd!important;
  border-radius:999px!important;
  font-weight:900!important;
  box-shadow:0 8px 18px rgba(13,110,253,.10)!important;
}
.contact-head .timeline-source.from-source::before,
.timeline-source.from-source::before{
  content:'•';
  color:#0d6efd;
  font-size:1.1em;
  line-height:1;
}

.access-tabs-panel{
  overflow:visible!important;
  background:linear-gradient(180deg,#ffffff,#f8fbff)!important;
}
.access-tabs-head{
  margin-bottom:18px!important;
}
.access-tab-list{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  margin:0 0 18px!important;
}
.access-tab-button{
  position:relative!important;
  min-width:0!important;
  min-height:92px!important;
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  padding:16px!important;
  border:1px solid #dbe7ff!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,#ffffff,#f6faff)!important;
  color:#26425f!important;
  text-decoration:none!important;
  box-shadow:0 14px 32px rgba(23,50,77,.07)!important;
  overflow:hidden!important;
  cursor:pointer!important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease!important;
}
.access-tab-button::after{
  content:'';
  position:absolute;
  inset:auto 14px 0 14px;
  height:4px;
  border-radius:999px 999px 0 0;
  background:transparent;
  transition:.18s ease;
}
.access-tab-button:hover,
.access-tab-button:focus-visible{
  transform:translateY(-2px)!important;
  border-color:#b9ceff!important;
  box-shadow:0 18px 38px rgba(36,107,254,.13)!important;
  outline:none!important;
}
.access-tab-button.active{
  color:#fff!important;
  background:linear-gradient(135deg,#246bfe,#174dcc)!important;
  border-color:transparent!important;
  box-shadow:0 20px 42px rgba(36,107,254,.28)!important;
}
.access-tab-button.active::after{
  background:rgba(255,255,255,.7);
}
.access-tab-button .icon{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border-radius:16px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  background:#edf4ff!important;
  color:#246bfe!important;
}
.access-tab-button.active .icon{
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
}
.access-tab-copy{
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
  flex:1 1 auto!important;
}
.access-tab-copy span{
  display:block!important;
  font-weight:950!important;
  line-height:1.15!important;
  color:inherit!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.access-tab-copy small{
  display:block!important;
  font-size:.78rem!important;
  line-height:1.25!important;
  color:#6b7c90!important;
  font-weight:700!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.access-tab-button.active .access-tab-copy small{
  color:rgba(255,255,255,.78)!important;
}
.access-tab-button strong{
  min-width:34px!important;
  height:34px!important;
  padding:0 10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  background:#e7f0ff!important;
  color:#246bfe!important;
  font-size:.84rem!important;
  font-weight:950!important;
  box-shadow:inset 0 0 0 1px rgba(36,107,254,.08)!important;
}
.access-tab-button.active strong{
  background:rgba(255,255,255,.20)!important;
  color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)!important;
}
.access-tab-content{
  border:1px solid #dfe9fb!important;
  border-radius:28px!important;
  background:#fff!important;
  padding:18px!important;
  box-shadow:0 18px 42px rgba(23,50,77,.08)!important;
}
.access-tab-panel{
  animation:accessPanelIn .16s ease-out;
}
@keyframes accessPanelIn{
  from{opacity:.55; transform:translateY(5px);}
  to{opacity:1; transform:translateY(0);}
}
.access-tab-search{
  background:linear-gradient(180deg,#f9fcff,#f4f8ff)!important;
  border:1px solid #dfe9fb!important;
  border-radius:22px!important;
  padding:14px!important;
}
@media(max-width:1120px){
  .access-tab-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:720px){
  .access-tab-list{
    display:flex!important;
    grid-template-columns:none!important;
    overflow-x:auto!important;
    overscroll-behavior-x:contain!important;
    scroll-snap-type:x mandatory!important;
    gap:12px!important;
    padding:2px 2px 10px!important;
    margin-left:-2px!important;
    margin-right:-2px!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .access-tab-list::-webkit-scrollbar{height:7px;}
  .access-tab-list::-webkit-scrollbar-thumb{background:#cbdcfb;border-radius:999px;}
  .access-tab-button{
    flex:0 0 min(88vw,330px)!important;
    min-height:88px!important;
    scroll-snap-align:start!important;
    padding:14px!important;
    border-radius:22px!important;
  }
  .access-tab-button .icon{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    border-radius:14px!important;
  }
  .access-tab-content{
    padding:14px!important;
    border-radius:24px!important;
  }
  .access-tab-search{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .access-tab-search .grow-field,
  .access-tab-search .btn{
    width:100%!important;
  }
}

/* Final access tabs + suggestion stability polish */
.suggest-wrap.suggest-closed .suggestions-box,
.suggest-wrap.suggest-picked .suggestions-box,
.suggestions-box.hidden,
.suggestions-box[hidden]{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
.suggest-wrap .suggestions-box{
  display:block;
  width:100%;
  max-height:min(320px, 54vh);
  overflow:auto;
  overscroll-behavior:contain;
}
.suggestion-item{
  white-space:normal;
  overflow-wrap:anywhere;
}

#access-tabs,
.access-tabs-panel{
  scroll-margin-top:115px;
}
.access-tabs-panel{
  overflow:visible!important;
}
.access-tabs-panel .panel-head{
  gap:14px;
}
.access-tab-list{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
  margin:0 0 18px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  overflow:visible!important;
}
.access-tab-button{
  position:relative!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
  min-height:96px!important;
  padding:16px!important;
  border:1px solid #dbe7ff!important;
  border-radius:26px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%)!important;
  color:#253d5b!important;
  text-decoration:none!important;
  box-shadow:0 16px 36px rgba(23,50,77,.08)!important;
  overflow:hidden!important;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease!important;
}
.access-tab-button::before{
  content:'';
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg,#80aaff,#246bfe);
  opacity:.18;
}
.access-tab-button:hover,
.access-tab-button:focus-visible{
  border-color:#adc7ff!important;
  box-shadow:0 20px 44px rgba(36,107,254,.14)!important;
  transform:translateY(-1px)!important;
  outline:none!important;
}
.access-tab-button.active{
  color:#fff!important;
  border-color:transparent!important;
  background:linear-gradient(135deg,#246bfe 0%,#174dcc 100%)!important;
  box-shadow:0 22px 48px rgba(36,107,254,.26)!important;
}
.access-tab-button.active::before{
  background:rgba(255,255,255,.88);
  opacity:.85;
}
.access-tab-button .icon{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  border-radius:18px!important;
  background:#edf4ff!important;
  color:#246bfe!important;
}
.access-tab-button.active .icon{
  color:#fff!important;
  background:rgba(255,255,255,.18)!important;
}
.access-tab-copy{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
}
.access-tab-copy span{
  display:block!important;
  color:inherit!important;
  font-weight:950!important;
  line-height:1.12!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.access-tab-copy small{
  display:block!important;
  color:#667a92!important;
  font-size:.78rem!important;
  font-weight:750!important;
  line-height:1.25!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.access-tab-button.active .access-tab-copy small{
  color:rgba(255,255,255,.78)!important;
}
.access-tab-button strong{
  min-width:36px!important;
  height:36px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 11px!important;
  border-radius:999px!important;
  background:#e7f0ff!important;
  color:#246bfe!important;
  font-weight:950!important;
  font-size:.84rem!important;
  box-shadow:inset 0 0 0 1px rgba(36,107,254,.08)!important;
}
.access-tab-button.active strong{
  color:#fff!important;
  background:rgba(255,255,255,.2)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)!important;
}
.access-tab-content{
  border:1px solid #dfe9fb!important;
  border-radius:28px!important;
  background:linear-gradient(180deg,#ffffff,#fbfdff)!important;
  padding:18px!important;
  box-shadow:0 18px 42px rgba(23,50,77,.08)!important;
  overflow:visible!important;
}
.access-tab-panel[hidden],
.access-tab-panel.hidden{
  display:none!important;
}
.access-tab-panel.active{
  display:grid!important;
  gap:14px!important;
}
.access-section-title h3{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0 0 4px!important;
}
.access-section-title h3 .icon{
  width:34px!important;
  height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:13px!important;
  color:#246bfe!important;
  background:#edf4ff!important;
  margin:0!important;
}
.access-tab-search{
  display:flex!important;
  align-items:flex-start!important;
  gap:12px!important;
  background:linear-gradient(180deg,#f9fcff,#f4f8ff)!important;
  border:1px solid #dfe9fb!important;
  border-radius:22px!important;
  padding:14px!important;
}
.access-tab-search .btn{
  min-height:48px;
}
@media(max-width:1120px){
  .access-tab-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:720px){
  .access-tab-list{
    display:flex!important;
    grid-template-columns:none!important;
    gap:12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-x:contain!important;
    scroll-snap-type:x proximity!important;
    padding:2px 2px 10px!important;
    margin-left:-2px!important;
    margin-right:-2px!important;
  }
  .access-tab-list::-webkit-scrollbar{height:7px;}
  .access-tab-list::-webkit-scrollbar-thumb{background:#cbdcfb;border-radius:999px;}
  .access-tab-button{
    flex:0 0 min(88vw,340px)!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;
    min-height:90px!important;
    padding:14px!important;
    border-radius:22px!important;
    scroll-snap-align:start!important;
  }
  .access-tab-button .icon{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    border-radius:15px!important;
  }
  .access-tab-content{
    padding:14px!important;
    border-radius:24px!important;
  }
  .access-tab-search{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .access-tab-search .grow-field,
  .access-tab-search .btn{
    width:100%!important;
  }
}
@media(max-width:420px){
  .access-tab-button{
    flex-basis:90vw!important;
    gap:10px!important;
  }
  .access-tab-button strong{
    min-width:32px!important;
    height:32px!important;
    padding:0 9px!important;
  }
}
