/* The CAD Verse shared UI standard. Scoped to identified ecosystem controls. */
:root{--tcv24-ink:#123b70;--tcv24-line:#c6d9e9;--tcv24-surface:#f4f9fc;--tcv24-hover:#e8f5fc;--tcv24-accent:#008eac;--tcv24-danger:#a52b40;--tcv24-radius:8px;--tcv24-control:36px;--tcv24-icon:18px;--tcv24-focus:#007e99}
/* R21.0.25: never force display, position or visibility on a component control.
 * A single background SVG replaces both legacy glyphs and pseudo-element icons. */
body:not(.wp-admin) [data-tcv24-control][data-tcv24-control],body:not(.wp-admin) #tcvm2-root [data-tcv24-control][data-tcv24-control]{box-sizing:border-box!important;width:var(--tcv24-control)!important;height:var(--tcv24-control)!important;min-width:var(--tcv24-control)!important;min-height:var(--tcv24-control)!important;max-width:var(--tcv24-control)!important;max-height:var(--tcv24-control)!important;flex:0 0 var(--tcv24-control)!important;padding:0!important;border:1px solid var(--tcv24-line)!important;border-radius:var(--tcv24-radius)!important;background-color:var(--tcv24-surface)!important;background-image:var(--tcv24-mask)!important;background-position:center!important;background-size:var(--tcv24-icon) var(--tcv24-icon)!important;background-repeat:no-repeat!important;color:transparent!important;text-shadow:none!important;box-shadow:none!important;font-size:0!important;line-height:0!important;text-indent:0!important;cursor:pointer}
body:not(.wp-admin) [data-tcv24-control][data-tcv24-control]>*,body:not(.wp-admin) #tcvm2-root [data-tcv24-control][data-tcv24-control]>*{display:none!important}
body:not(.wp-admin) [data-tcv24-control][data-tcv24-control]::before,body:not(.wp-admin) [data-tcv24-control][data-tcv24-control]::after,body:not(.wp-admin) #tcvm2-root [data-tcv24-control][data-tcv24-control]::before,body:not(.wp-admin) #tcvm2-root [data-tcv24-control][data-tcv24-control]::after{content:none!important;display:none!important}
[data-tcv24-control="close"]{--tcv24-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23123b70' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}
[data-tcv24-control="min"]{--tcv24-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14' fill='none' stroke='%23123b70' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}
[data-tcv24-control="max"]{--tcv24-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4H4v5m11-5h5v5M4 15v5h5m11-5v5h-5' fill='none' stroke='%23123b70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
body:not(.wp-admin) [data-tcv24-control][data-tcv24-control]:hover,body:not(.wp-admin) #tcvm2-root [data-tcv24-control][data-tcv24-control]:hover{background-color:var(--tcv24-hover)!important;border-color:var(--tcv24-accent)!important}
body:not(.wp-admin) [data-tcv24-control]:focus-visible{outline:2px solid var(--tcv24-focus)!important;outline-offset:2px!important}
body:not(.wp-admin) [data-tcv24-control]:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:760px),(pointer:coarse){:root{--tcv24-control:44px}}
/* Preserve native hidden attributes, even where legacy button CSS sets display. */
body:not(.wp-admin) [data-tcv24-control][data-tcv24-control][hidden],body:not(.wp-admin) #tcvm2-root [data-tcv24-control][data-tcv24-control][hidden]{display:none!important}
/* The existing application shells remain responsible for position and sizing. */
body:not(.wp-admin) :is(.tcv351-dialog-head,.tcvm23-dialog-head,.tcv220-preview-header,.etv-modal-head) h2{font-size:clamp(18px,2vw,23px)!important;line-height:1.25!important;color:var(--tcv24-ink)!important;font-weight:700!important}
body:not(.wp-admin) :is(.tcv351-dialog,.tcvm23-dialog,.tcv220-network-preview,.tcv216-save-confirm){border-radius:12px!important}
body:not(.wp-admin) :is(.tcvm21-button,.tcv-ui-btn,.tcvc-button):focus-visible{outline:2px solid var(--tcv24-focus)!important;outline-offset:2px!important}
body:not(.wp-admin) :is(.tcvm21-button,.tcv-ui-btn,.tcvc-button):not([data-tcv24-control]){border-radius:var(--tcv24-radius)}
body:not(.wp-admin) :is(.tcv351-dialog,.tcvm23-dialog,.tcvm2-dialog,.tcv24-follow-list){scrollbar-width:thin;scrollbar-color:#a8c0d0 transparent}
body:not(.wp-admin) :is(.tcv351-dialog,.tcvm23-dialog,.tcvm2-dialog) input:is([type=checkbox],[type=radio]){accent-color:var(--tcv24-accent)}
/* Auth: load outside the consolidated core bundle. Scope to login only. */
body:not(.wp-admin) #tcvm2-root [data-screen="login"] .tcv2114-sitekit{box-sizing:border-box!important;display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:12px auto 8px!important;text-align:center!important}
body:not(.wp-admin) #tcvm2-root [data-screen="login"] .tcv2114-sitekit .googlesitekit-sign-in-with-google__frontend-output-button{display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;max-width:320px!important;min-width:0!important;margin-inline:auto!important}
body:not(.wp-admin) #tcvm2-root [data-screen="login"] .tcv2114-sitekit iframe{display:block!important;margin-inline:auto!important;max-width:100%!important}
body:not(.wp-admin) #tcvm2-root [data-screen="login"] .tcv2113-or{display:flex!important;align-items:center!important;gap:10px!important;justify-content:center!important;text-align:center!important;color:#526779!important;font-size:12px!important;margin:12px 0!important}
body:not(.wp-admin) #tcvm2-root [data-screen="login"] .tcv2113-or::before,body:not(.wp-admin) #tcvm2-root [data-screen="login"] .tcv2113-or::after{content:"";height:1px;background:#d6e4eb;flex:1}
/* Compact following list; the full professional network remains unchanged. */
#tcvm25-network .tcv24-follow-list{display:flex!important;flex-direction:column!important;gap:0!important;max-height:50vh;overflow:auto;border:1px solid var(--tcv24-line);border-radius:var(--tcv24-radius);margin:8px 0 12px;padding:0!important}
#tcvm25-network .tcv24-follow-list:empty{display:none!important}
#tcvm25-network .tcv24-follow-row{box-sizing:border-box;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:54px;padding:8px 10px;background:#fff;border-bottom:1px solid #e1ebf2;text-align:left;color:var(--tcv24-ink)}
#tcvm25-network .tcv24-follow-row:last-child{border-bottom:0}
#tcvm25-network .tcv24-follow-avatar{width:36px!important;height:36px!important;max-width:36px!important;object-fit:cover;border-radius:50%;border:1px solid var(--tcv24-line)}
#tcvm25-network .tcv24-follow-identity{min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.25}
#tcvm25-network .tcv24-follow-identity strong,#tcvm25-network .tcv24-follow-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tcvm25-network .tcv24-follow-identity strong{font-size:13px;color:var(--tcv24-ink)!important}#tcvm25-network .tcv24-follow-identity small{font-size:11px;color:#526779!important}
#tcvm25-network .tcv24-unfollow{box-sizing:border-box;min-height:32px!important;height:32px!important;width:auto!important;min-width:0!important;padding:0 10px!important;border:1px solid #d9a8af!important;border-radius:var(--tcv24-radius)!important;color:var(--tcv24-danger)!important;background:#fff!important;font-size:12px!important;box-shadow:none!important;white-space:nowrap}
#tcvm25-network .tcv24-unfollow:hover{background:#fdf0f2!important}
#tcvm25-network .tcv54-search-row{display:flex!important;gap:8px;align-items:center}#tcvm25-network .tcv54-search-row input{flex:1;min-width:0;width:auto!important}
@media(max-width:760px),(pointer:coarse){#tcvm25-network .tcv24-unfollow{height:44px!important;min-height:44px!important}}
@media print{body:not(.wp-admin) [data-tcv24-control]{display:none!important}}
/* Shared form surfaces in the known modal families, not third-party widgets. */
body:not(.wp-admin) :is(.tcv351-dialog,.tcvm23-dialog,.tcvm2-dialog) :is(input[type=text],input[type=email],input[type=password],input[type=search],input[type=url],input[type=number],select,textarea):not([readonly]):not([disabled]){border-color:var(--tcv24-line);border-radius:var(--tcv24-radius);color:var(--tcv24-ink);font-family:inherit}
body:not(.wp-admin) :is(.tcv351-dialog,.tcvm23-dialog,.tcvm2-dialog) :is(input,select,textarea):focus-visible{outline:2px solid var(--tcv24-focus);outline-offset:1px}

/* R21.0.35: use the real SVG in dashboard window controls (background shorthand elsewhere cancels data URI). */
body:not(.wp-admin) #tcv213-dialog .tcv213-window-tools>button[data-tcv24-control]{color:#123b70!important;background-image:none!important;display:grid!important;place-items:center!important}
body:not(.wp-admin) #tcv213-dialog .tcv213-window-tools>button[data-tcv24-control]>svg{display:block!important;width:20px!important;height:20px!important;fill:none!important;stroke:#123b70!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}

