@font-face{font-family:SF Pro Text;src:url(/fonts/prolac-1.woff2)format("woff2");font-weight:400;font-style:normal;font-display:swap}

@font-face{font-family:SF Pro Text;src:url(/fonts/prolac-2.woff2)format("woff2");font-weight:500;font-style:normal;font-display:swap}

@font-face{font-family:SF Pro Display;src:url(/fonts/prolac-3.woff2)format("woff2");font-weight:400;font-style:normal;font-display:swap}

:root{--text-sm:14px;--text-md:16px;--text-lg:24px;--text-xl:40px;--button-height:36px;--button-radius:9px;--button-compact:88px;--button-standard:160px;--button-wide:232px;font-size:var(--text-md);font-weight:400;font-family:"SF Pro Text",Arial,sans-serif;color:#424245;background:#f5f5f7;font-synthesis:none;--blue:#007aff;--blue-dark:#0066d6;--text:#424245;--secondary:#7b8796;--line:#e3e7ee;--surface:#fff;--purple:#7662d6;--green:#299a71;--red:#c4514b}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:22px}
body{margin:0}
button,input,textarea{font:inherit}
button,a,input,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.58}
a{color:var(--blue)}
button:focus-visible,a:focus-visible{outline:3px solid #007aff3d;outline-offset:3px}
svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.topbar-inner,main{width:calc(100% - 64px);max-width:1440px;margin:auto}
.topbar-inner{min-height:70px;padding-top:9px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.company-line{font-size:var(--text-sm);color:#8a929e;letter-spacing:.035em;line-height:1.6}
.company-line span{letter-spacing:0;border-left:1px solid #d6dbe2;margin-left:12px;padding-left:12px;white-space:nowrap}
.topbar-right{display:flex;align-items:center;gap:18px}
.sync{display:flex;align-items:center;gap:7px;font-size:var(--text-sm);color:#788697;white-space:nowrap}
.sync i,.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);flex-shrink:0}
.sync.offline{color:var(--red)}
.sync.offline i{background:var(--red)}
main{padding:11px 0 28px}
.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 0 25px;border-bottom:1px solid #dfe1e7}
.title-line{display:flex;align-items:center;gap:17px;flex-wrap:wrap}
h1{font-family:"SF Pro Display","SF Pro Text",Arial,sans-serif;font-size:var(--text-xl);font-weight:400;letter-spacing:-1.1px;line-height:1.15;margin:0}
.heading p{font-size:var(--text-sm);line-height:1.65;color:#7b8796;margin:13px 0 0}
.environment{font-size:var(--text-sm);font-weight:400;color:#299a71;background:#edf8f0;padding:5px 9px;border-radius:7px;line-height:1.35;white-space:nowrap}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 15px;border-radius:10px;border:1px solid transparent;font-family:"SF Pro Text",Arial,sans-serif;font-size:var(--text-sm);line-height:1.35;font-weight:400;white-space:nowrap;transition:background .15s,border-color .15s,box-shadow .15s,color .15s}
.button.primary{color:#fff;background:var(--blue);border-color:var(--blue);box-shadow:0 2px 5px #007aff14}
.button.primary:hover{background:var(--blue-dark);border-color:var(--blue-dark);box-shadow:0 3px 8px #007aff25}
.button.secondary{color:#66758a;background:#fff;border-color:#dce2eb;box-shadow:0 1px 2px #00000004}
.button.secondary:hover{color:var(--blue);border-color:#b5d6fd;background:#f8fbff}
.button.small{min-height:33px;font-size:var(--text-sm);padding:7px 11px;border-radius:9px;gap:7px}
.button.small svg{width:15px;height:15px}
.plus{font-size:var(--text-md);line-height:1;font-weight:400}
.section-caption{font-size:var(--text-md);font-weight:400;color:#0071e3;letter-spacing:-.15px;margin:24px 0 16px}
h2{font-size:var(--text-md);font-weight:400;letter-spacing:-.25px;color:#0071e3;line-height:1.4;margin:0}
.summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.summary-item{border:1px solid #e4e7ee;border-radius:20px;background:linear-gradient(150deg,#fff,#fdfdff);padding:20px 21px 17px;box-shadow:0 6px 22px #14284204;min-width:0;min-height:116px;display:flex;flex-direction:column;justify-content:space-between}
.summary-top{display:flex;align-items:center;justify-content:space-between;gap:14px}
.summary-label{font-size:var(--text-sm);line-height:1.45;color:#7d8b9d}
.summary-item strong{font-family:"SF Pro Display","SF Pro Text",Arial,sans-serif;letter-spacing:-.5px;font-size:var(--text-xl);line-height:1.1;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:400;color:var(--stat-color,var(--blue))}
.summary-item small{font-size:var(--text-sm);line-height:1.5;color:#929ca9;display:block;margin-top:17px}
.stat-blue{--stat-color:#007aff}
.stat-purple{--stat-color:#7662d6}
.stat-green{--stat-color:#299a71}
.summary-item strong.sync-value{font-size:var(--text-lg);letter-spacing:-.35px}
.summary-item strong.sync-value.offline{color:var(--red)}
.section-nav{display:flex;align-items:center;gap:7px;margin:23px 0 18px;padding:0;overflow:auto;scrollbar-width:thin}
.section-nav a,.section-nav button{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:#667386;background:#ffffffb3;border:1px solid #dce1e9;border-radius:9px;padding:8px 12px;font-size:var(--text-sm);line-height:1.3;text-decoration:none;box-shadow:0 1px 2px #00000003;transition:all .15s}
.section-nav a:first-child{color:#007aff;border-color:#d1e4fd;background:#edf5ff}
.section-nav a:hover,.section-nav button:hover{color:var(--blue);border-color:#b6d5fc;background:#fff}
.section-nav svg{width:14px;height:14px}
.section-nav .nav-spacer{flex:1}
.data-card{background:#fff;border:1px solid #dfe3eb;border-radius:22px;padding:22px 22px 0;box-shadow:0 8px 26px #14284208;overflow:hidden;scroll-margin-top:20px}
.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
.table-title{display:flex;align-items:center;gap:9px}
.count{font-size:var(--text-sm);font-variant-numeric:tabular-nums;line-height:1.4;color:#007aff;background:#edf5ff;border:1px solid #e0edff;border-radius:7px;min-width:25px;padding:3px 7px;text-align:center}
.search{display:flex;align-items:center;gap:8px;width:305px;min-height:38px;padding:8px 11px;border:1px solid #e1e6ed;border-radius:10px;background:#fbfcfe;transition:box-shadow .15s,border-color .15s}
.search svg{width:16px;height:16px;color:#98a3b1}
.search input{background:transparent;border:0;outline:0;min-width:0;width:100%;font-size:var(--text-sm);color:#566478}
.search:focus-within{border-color:#96c5fe;box-shadow:0 0 0 3px #007aff0d}
input::placeholder,textarea::placeholder{color:#a0aaba}
.table-scroll{border:1px solid #e6e9ef;border-radius:12px;max-width:100%;overflow:auto}
table{border-collapse:collapse;border-spacing:0;white-space:nowrap;text-align:left;width:100%;font-variant-numeric:tabular-nums}
th{font-size:var(--text-sm);font-weight:400;background:#f9fafc;color:#84909e;border-bottom:1px solid #e7ebf1;padding:12px 14px;text-align:left}
th:first-child{width:27%;padding-left:18px}
th:last-child{width:100px;text-align:right;padding-right:18px}
td{font-size:var(--text-sm);color:#667487;border-bottom:1px solid #edf0f5;padding:16px 14px;line-height:1.45}
td:first-child{padding-left:18px}
td:last-child{padding-right:18px}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover td{background:#f9fbff}
.person{display:flex;align-items:center;gap:11px}
.avatar{width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,#edf5ff,#f5f9ff);border:1px solid #e0ebfa;color:#4f92de;display:grid;place-items:center;flex-shrink:0;font-size:var(--text-sm);font-weight:400}
.person-name{font-size:var(--text-sm);font-weight:400;color:#566b85;max-width:245px;overflow:hidden;text-overflow:ellipsis}
.person-id{font-size:var(--text-sm);color:#a0aabb;margin-top:4px;letter-spacing:.015em}
.contact-primary{font-size:var(--text-sm);color:#65788f}
.contact-secondary{font-size:var(--text-sm);color:#97a2b2;margin-top:4px;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.muted-cell{color:#b2bbc7}
.edit-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;min-width:74px;padding:7px 10px;border:1px solid #dceafb;border-radius:8px;background:#f2f7ff;color:#3482df;font-size:var(--text-sm);font-weight:400;white-space:nowrap;margin-left:auto}
.edit-button:hover{background:#e9f3ff;border-color:#b7d8fd}
.edit-button svg{width:13px;height:13px}
.empty-state{padding:41px 20px 43px;min-height:265px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid #e8edf4;border-radius:12px;background:linear-gradient(150deg,#fff,#fbfcff)}
.empty-icon{display:grid;place-items:center;width:53px;height:53px;border:1px solid #e0eafa;border-radius:16px;background:#f1f7ff;color:#7eafea;margin-bottom:17px}
.empty-icon svg{width:25px;height:25px}
.empty-state h3{color:#63758b;font-size:var(--text-md);font-weight:400;letter-spacing:-.2px;margin:0 0 9px}
.empty-state p{font-size:var(--text-sm);color:#98a2b1;line-height:1.7;max-width:360px;margin:0 0 20px}
.empty-state .button{min-height:36px;font-size:var(--text-sm);padding:8px 12px}
.table-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 0 17px;font-size:var(--text-sm);color:#98a3b2}
.private-note{display:flex;align-items:center;gap:6px}
.private-note svg{width:13px;height:13px;color:#99b4a9}
.activity-section{margin-top:22px;padding:21px 22px 11px;border:1px solid #dfe3eb;border-radius:22px;background:#fff;box-shadow:0 8px 26px #14284205;scroll-margin-top:20px}
.activity-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}
.activity-heading>span{font-size:var(--text-sm);color:#a0a9b6}
.activity-list{display:flex;flex-direction:column}
.activity-empty{font-size:var(--text-sm);line-height:1.65;color:#9aa5b4;margin:3px 0 16px}
.activity-row{display:flex;align-items:center;gap:11px;padding:13px 0;border-top:1px solid #edf0f5;font-size:var(--text-sm);line-height:1.6;color:#8a98ab}
.activity-row:first-child{border-top:0;padding-top:3px}
.activity-mark{background:#72a5e2;border-radius:50%;width:5px;height:5px;box-shadow:0 0 0 4px #f2f7fd;margin:0 5px;flex-shrink:0}
.activity-row strong{font-weight:400;color:#647e9b}
.activity-row time{font-size:var(--text-sm);color:#a5afbd;margin-left:auto;white-space:nowrap}
.activity-copy{overflow-wrap:anywhere}
footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0 10px;font-size:var(--text-sm);color:#a3acb9}
.footer-dot{margin:0 7px}
.footer-links{display:flex;align-items:center;gap:18px}
.text-button{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;padding:0;color:#7f91a7;font-size:var(--text-sm);line-height:1.5;text-decoration:none}
.text-button:hover{color:var(--blue)}
.text-button svg{width:13px;height:13px}
dialog{width:min(620px,calc(100% - 32px));max-height:92vh;border:1px solid #e0e6ef;border-radius:22px;background:#fff;color:var(--text);padding:28px;box-shadow:0 28px 100px #233b5d30;overflow:auto}
dialog::backdrop{background:#293b5247;backdrop-filter:blur(5px)}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.eyebrow{font-size:var(--text-sm);letter-spacing:.055em;color:#96a3b4;font-weight:400;margin-bottom:10px}
.dialog-heading h2{font-family:"SF Pro Display","SF Pro Text",Arial,sans-serif;font-size:var(--text-lg);color:#52667f;letter-spacing:-.6px;font-weight:400;line-height:1.2}
.icon-button{width:32px;height:32px;border:1px solid #e4e9f0;border-radius:10px;background:#f9fbfd;display:grid;place-items:center;flex-shrink:0;color:#8d9bae;font-size:var(--text-lg);font-weight:400;line-height:1}
.icon-button:hover{color:var(--blue);background:#f1f7ff;border-color:#d6e7fc}
.dialog-intro{font-size:var(--text-sm);line-height:1.75;color:#8a99ad;margin:14px 0 24px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px 18px}
.form-grid label,.device-label{display:block;font-size:var(--text-sm);font-weight:400;color:#73859d;line-height:1.5}
.full{grid-column:1/-1}
.required{color:#609be3}
input:not([type=search]),textarea{display:block;width:100%;border:1px solid #dfe6ef;border-radius:10px;padding:11px 12px;min-height:42px;margin-top:7px;background:#fbfcfe;color:#556b85;font-size:var(--text-sm);font-weight:400;outline:0;transition:background .15s,border-color .15s,box-shadow .15s}
input:not([type=search]):focus,textarea:focus{border-color:#8bbdf7;box-shadow:0 0 0 3px #007aff0b;background:#fff}
textarea{resize:vertical;line-height:1.7}
.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:26px;padding-top:21px;border-top:1px solid #edf0f5}
.right-actions{display:flex;align-items:center;gap:9px;margin-left:auto}
.danger{color:#c66d67;background:#fff8f7;border-color:#f1dedb}
.danger:hover{color:#b9524a;background:#fff1ee;border-color:#e6bfb8}
.danger-solid{color:#fff;background:#ca655e;border-color:#ca655e}
.danger-solid:hover{background:#b9514a;border-color:#b9514a}
.form-error{font-size:var(--text-sm);line-height:1.7;color:#b47554;border:1px solid #f0dfcf;border-radius:10px;background:#fff9f1;padding:12px 14px;margin-top:18px}
.conflict-button{color:#007aff;margin-top:13px;text-decoration:underline;text-underline-offset:4px}
.connection-error{border:1px solid #f0dfbd;border-radius:10px;background:#fffaf0;color:#aa8750;font-size:var(--text-sm);line-height:1.6;padding:12px 15px;margin:0 0 16px}
.address-list{display:flex;flex-direction:column;gap:9px}
.address-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(110deg,#f0f7ff,#fcfdff);border:1px solid #e0eaf8;border-radius:12px;padding:12px 14px}
.address-row code{font-family:"SF Pro Text",Arial,sans-serif;color:#4089df;font-size:var(--text-sm);overflow-wrap:anywhere;user-select:all}
.address-row .button{min-height:30px;font-size:var(--text-sm);padding:6px 10px;border-radius:8px}
.hint{font-size:var(--text-sm);line-height:1.8;color:#8d9aab;padding:14px 15px;background:#fafbfd;border:1px solid #e8edf5;border-radius:11px;margin:18px 0 23px}
.session-heading{color:#7187a1;font-size:var(--text-sm)}
.session-list{list-style:none;padding:0;margin:12px 0}
.session-list li{display:flex;align-items:center;gap:10px;border-top:1px solid #edf0f5;padding:11px 0;font-size:var(--text-sm);color:#8393a8}
.session-list li span:last-child{color:#9ab4a8;font-size:var(--text-sm);margin-left:auto}
.small-note{font-size:var(--text-sm);line-height:1.75;color:#a2adba;margin:15px 0 0}
.toast{position:fixed;z-index:10;left:50%;bottom:25px;transform:translateX(-50%);padding:13px 20px;max-width:calc(100% - 32px);background:#fff;border:1px solid #d7e5f7;border-radius:12px;color:#5c83b2;font-size:var(--text-sm);line-height:1.6;box-shadow:0 8px 30px #233b5d1c}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}
.login-page{min-height:100vh;background:#f5f5f7}
.login-page:before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 10%,#eaf2fc80,transparent 65%)}
.login-shell{width:calc(100% - 40px);max-width:450px;padding:80px 0 45px;position:relative;margin:auto}
.login-company{font-size:var(--text-sm);text-align:center;letter-spacing:.04em;color:#9aa3b0;margin-bottom:25px}
.brand{display:flex;justify-content:center;align-items:center;gap:11px;margin-bottom:30px;color:#52677f;font-family:"SF Pro Display","SF Pro Text",Arial,sans-serif;font-size:var(--text-lg);letter-spacing:-.65px;text-decoration:none;font-weight:400}
.brand img{width:38px;height:38px}
.brand b{font-weight:400;color:#7e9fc9}
.login-card{background:#fff;border:1px solid #e0e5ed;border-radius:24px;padding:32px;box-shadow:0 12px 40px #233b5d08}
.login-card h1{font-size:var(--text-xl);color:#526a88;letter-spacing:-.7px}
.login-card>p{font-size:var(--text-sm);line-height:1.75;color:#95a1b2;margin:12px 0 26px}
.login-card .eyebrow{font-size:var(--text-sm);color:#94a7bd;margin-bottom:13px}
.login-submit{width:100%;min-height:42px;justify-content:space-between;margin-top:22px}
.login-footnote{display:flex;align-items:center;gap:9px;font-size:var(--text-sm);line-height:1.6;color:#a0adba;border-top:1px solid #edf0f5;padding-top:21px;margin-top:25px}
.login-copyright{text-align:center;font-size:var(--text-sm);color:#a8b2bf;margin:24px 0 0}
@media(min-width:1650px){.topbar-inner,main{width:calc(100% - 96px)}
main{padding-top:15px}
.summary-item{min-height:126px;padding:23px 25px 20px}
.summary-item strong{font-size:var(--text-xl)}
.data-card{padding:25px 26px 0}
.activity-section{padding:23px 26px 13px}
td{padding-top:18px;padding-bottom:18px}
}
@media(max-width:1050px){.company-line{font-size:var(--text-sm)}
.company-line span{margin-left:8px;padding-left:8px}
.summary-item{padding:18px 17px 16px}
.summary-label{font-size:var(--text-sm)}
.summary-item strong{font-size:var(--text-lg)}
.summary-item strong.sync-value{font-size:var(--text-lg)}
.person-name{max-width:200px}
.topbar-right{gap:12px}
}
@media(max-width:760px){.topbar-inner,main{width:calc(100% - 36px)}
.topbar-inner{min-height:64px;gap:12px}
.company-line{max-width:225px;font-size:var(--text-sm)}
.company-line span{display:block;margin:4px 0 0;padding:0;border:0}
.sync{font-size:var(--text-sm)}
.topbar-right{gap:9px}
.topbar-right>.button{font-size:var(--text-sm);min-height:31px;padding:6px 9px}
.topbar-right>.button svg{width:13px;height:13px}
main{padding-top:13px}
.heading{padding-bottom:22px;gap:12px}
h1{font-size:var(--text-xl);letter-spacing:-.8px}
.title-line{gap:10px}
.environment{font-size:var(--text-sm);padding:4px 7px}
.heading p{font-size:var(--text-sm);max-width:290px;line-height:1.7}
.heading>.button{font-size:var(--text-sm);padding:10px 12px;min-height:38px}
.section-caption{font-size:var(--text-md);margin:22px 0 14px}
.summary{gap:10px}
.summary-item{padding:16px 13px;min-height:120px}
.summary-top{align-items:flex-start;flex-direction:column;gap:10px}
.summary-label{font-size:var(--text-sm)}
.summary-item strong{font-size:var(--text-lg)}
.summary-item strong.sync-value{font-size:var(--text-lg);white-space:normal}
.summary-item small{font-size:var(--text-sm);margin-top:12px}
.section-nav{margin:20px 0 15px}
.section-nav a,.section-nav button{font-size:var(--text-sm);padding:8px 10px}
.data-card{border-radius:19px;padding:18px 17px 0}
.table-toolbar{margin-bottom:16px}
.search{width:250px}
.table-scroll table{min-width:860px}
.table-footer{font-size:var(--text-sm);padding:14px 0}
.activity-section{border-radius:19px;padding:18px 17px 11px;margin-top:18px}
h2{font-size:var(--text-md)}
.activity-heading>span{font-size:var(--text-sm)}
.activity-row{font-size:var(--text-sm)}
.activity-row time{font-size:var(--text-sm)}
.private-note{font-size:var(--text-sm)}
.activity-heading{gap:10px}
footer{font-size:var(--text-sm);align-items:flex-start;padding-top:20px;gap:14px}
.footer-links{gap:14px}
.text-button{font-size:var(--text-sm)}
}
@media(max-width:540px){.topbar-right .sync{font-size:var(--text-sm);gap:0}
.topbar-right .sync i{width:7px;height:7px}
.heading{display:block}
.heading>.button{margin-top:20px;width:100%;min-height:40px;font-size:var(--text-sm)}
.heading p{max-width:none}
.title-line{justify-content:space-between}
h1{font-size:var(--text-xl)}
.company-line{font-size:var(--text-sm);max-width:200px}
.summary{grid-template-columns:1fr 1fr;gap:10px}
.summary-item{min-height:115px}
.stat-green{grid-column:1/-1;min-height:0;flex-direction:row;align-items:center;gap:16px;padding:14px}
.stat-green .summary-top{flex-direction:row;align-items:center;gap:14px}
.stat-green .summary-label{font-size:var(--text-sm)}
.stat-green strong.sync-value{font-size:var(--text-md)}
.stat-green small{font-size:var(--text-sm);text-align:right;max-width:120px;margin:0}
.section-nav .nav-spacer{display:none}
.section-nav{gap:6px}
.section-nav a,.section-nav button{padding:8px 9px;font-size:var(--text-sm)}
.section-nav svg{width:13px;height:13px}
.table-toolbar{flex-wrap:wrap;gap:14px}
.search{width:100%;min-height:39px}
.search input{font-size:var(--text-sm)}
.empty-state{min-height:275px;padding:32px 14px}
.empty-state p{font-size:var(--text-sm)}
.table-footer{gap:10px;font-size:var(--text-sm)}
.private-note{font-size:var(--text-sm);gap:4px}
.private-note svg{width:11px;height:11px}
.activity-heading{align-items:flex-start}
.activity-heading>span{max-width:110px;text-align:right;line-height:1.5}
.activity-row{align-items:flex-start;gap:9px;line-height:1.7}
.activity-mark{margin-top:7px}
.activity-row time{max-width:75px;text-align:right;white-space:normal;font-size:var(--text-sm);flex-shrink:0}
.activity-copy{min-width:0}
.footer-links{gap:10px;flex-shrink:0}
footer{line-height:1.7}
.footer-brand{max-width:180px}
dialog{width:calc(100% - 24px);padding:23px 19px;border-radius:20px;max-height:94vh}
.dialog-heading h2{font-size:var(--text-lg)}
.dialog-intro{font-size:var(--text-sm);margin:14px 0 21px}
.form-grid{grid-template-columns:1fr;gap:17px}
.dialog-actions{flex-wrap:wrap;gap:12px}
.right-actions{width:100%;margin-left:0}
.right-actions>.button{flex:1;min-height:42px}
.dialog-actions>.button{min-height:40px}
.button.danger{width:100%;order:2}
.address-row{padding:12px;gap:9px}
.address-row code{font-size:var(--text-sm)}
.address-row .button{font-size:var(--text-sm)}
.toast{width:max-content;max-width:calc(100% - 26px);min-width:230px;text-align:center;bottom:16px}
.login-shell{padding-top:48px;max-width:420px}
.login-company{font-size:var(--text-sm);line-height:1.8;margin-bottom:22px}
.login-card{padding:29px 23px;border-radius:22px}
.brand{font-size:var(--text-lg);margin-bottom:25px}
.login-card h1{font-size:var(--text-xl)}
.login-card>p{font-size:var(--text-sm)}
.login-submit{font-size:var(--text-sm)}
.login-footnote{font-size:var(--text-sm)}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}
*,*:before,*:after{transition:none!important}
}


/* Reglas generales: cuatro tamaños de texto, pesos 400/500 y tres anchos de botón.
   Estas reglas también se mantienen en pantallas chicas. */
body { font-size:var(--text-md); font-weight:400; }
strong, b { font-weight:400; }
.topbar-inner, main { width:calc(100% - 64px); max-width:none; }
.topbar-inner { min-height:82px; padding:16px 0; flex-wrap:wrap; }
.company-line { font-size:var(--text-sm); letter-spacing:0; }
.topbar-right { flex-wrap:wrap; gap:16px; }
.sync { font-size:var(--text-sm); gap:7px; }
.heading { padding-bottom:26px; }
h1 { font-size:var(--text-xl); font-weight:400; }
.heading p { font-size:var(--text-md); }
.environment { font-size:var(--text-sm); }
h2, .dialog-heading h2 { font-size:var(--text-lg); font-weight:400; }
.section-caption { font-size:var(--text-md); }
.summary { gap:18px; }
.summary-item { min-height:132px; padding:22px 24px; }
.summary-label { font-size:var(--text-md); }
.summary-item strong { font-size:var(--text-xl); font-weight:400; }
.summary-item strong.sync-value { font-size:var(--text-lg); }
.summary-item small { font-size:var(--text-sm); margin-top:18px; }
.section-nav { flex-wrap:wrap; overflow:visible; gap:10px; }
.count { font-size:var(--text-sm); }
.search { width:380px; min-height:40px; }
.search input { font-size:var(--text-sm); }
.table-scroll table { min-width:1050px; }
th, td { font-size:var(--text-sm); }
th { padding-top:14px; padding-bottom:14px; }
td { padding-top:18px; padding-bottom:18px; }
.person-name { font-size:var(--text-sm); font-weight:400; }
.person-id, .contact-primary, .contact-secondary, .avatar { font-size:var(--text-sm); }
.person-id { letter-spacing:0; }
.table-footer { flex-wrap:wrap; font-size:var(--text-sm); }
.activity-heading > span, .activity-row, .activity-row time, footer,
.private-note, .eyebrow, .dialog-intro, .form-grid label, .device-label,
.hint, .session-heading, .session-list li, .session-list li span:last-child,
.small-note, .address-row code, .form-error, .connection-error,
.empty-state p, .activity-empty, .toast, .login-company, .login-card > p,
.login-card .eyebrow, .login-footnote, .login-copyright { font-size:var(--text-sm); }
.activity-row strong { font-weight:400; }
.activity-row time { min-width:110px; }
.empty-state h3 { font-size:var(--text-md); }
footer { align-items:center; }
dialog { width:min(720px,calc(100% - 32px)); }
.form-grid { gap:20px; }
input:not([type=search]), textarea { font-size:var(--text-md); }
.session-list li { flex-wrap:wrap; }
.login-shell { max-width:520px; }
.brand { font-size:var(--text-lg); gap:0; }
.login-card h1 { font-size:var(--text-xl); }
.login-card > p { line-height:1.75; }

/* Una altura, un radio y tres anchos. Ninguna acción usa relleno de color. */
button, .button, .button.small, .button.primary, .button.secondary,
.edit-button, .icon-button, .text-button,
.section-nav a, .section-nav button,
.empty-state .button, .address-row .button,
.topbar-right > .button, .heading > .button, .login-submit,
.dialog-actions > .button, .right-actions > .button {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  flex:0 0 auto; width:var(--button-standard); height:var(--button-height);
  min-height:var(--button-height); max-height:var(--button-height);
  padding:0 10px; border:1px solid #d9e2ef; border-radius:var(--button-radius);
  background:transparent; box-shadow:none; color:#60758e;
  font-family:"SF Pro Text",Arial,sans-serif; font-size:var(--text-sm);
  line-height:1.25; font-weight:400; text-decoration:none; white-space:nowrap;
}
.button:hover, .button.primary:hover, .button.secondary:hover,
.edit-button:hover, .icon-button:hover, .text-button:hover,
.section-nav a:hover, .section-nav button:hover {
  background:#f5f9ff; border-color:#b8d6fb; color:#0071e3; box-shadow:none;
}
.button.primary, .edit-button, .section-nav a:first-child {
  background:transparent; color:#0071e3; border-color:#c4dcfc; box-shadow:none;
}
.edit-button, .icon-button, .address-row .button { width:var(--button-compact); min-width:0; }
.empty-state .button, .login-submit, .button.danger, .danger-solid { width:var(--button-wide); }
.danger, .danger-solid { color:#b9615b; border-color:#ead5d2; background:transparent; }
.danger:hover, .danger-solid:hover { color:#ae514a; border-color:#d8afaa; background:#fffaf9; }
.button svg, .button.small svg, .edit-button svg, .text-button svg,
.section-nav svg, .topbar-right > .button svg { width:14px; height:14px; }
.plus { font-size:var(--text-md); font-weight:400; }
.icon-button { font-size:var(--text-sm); }
.login-submit { display:flex; margin-left:auto; margin-right:auto; }
.dialog-actions { flex-wrap:wrap; }
.right-actions { flex-wrap:wrap; }
.conflict-button { margin-top:14px; width:var(--button-wide); }
.address-row code { min-width:0; }

@media(max-width:1100px) {
  .topbar-inner { gap:16px; }
  .summary-label { font-size:var(--text-sm); }
  .summary-top { align-items:flex-start; }
  .summary-item { padding:20px; }
  .summary-item strong { font-size:var(--text-xl); }
  .summary-item strong.sync-value { font-size:var(--text-lg); }
}
@media(max-width:800px) {
  .topbar-inner, main { width:calc(100% - 36px); }
  .company-line { max-width:none; font-size:var(--text-sm); line-height:1.65; }
  .company-line span { display:block; margin:2px 0 0; padding:0; border:0; }
  .topbar-right { gap:12px; }
  .topbar-right .sync { font-size:var(--text-sm); gap:7px; }
  .heading { flex-wrap:wrap; }
  .heading p { max-width:none; font-size:var(--text-md); }
  .heading > .button { margin-top:16px; }
  .title-line { justify-content:flex-start; gap:12px; }
  h1 { font-size:var(--text-xl); }
  .environment { font-size:var(--text-sm); }
  .summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .summary-top { flex-direction:column; gap:12px; }
  .summary-item { min-height:156px; }
  .summary-item small { font-size:var(--text-sm); }
  .stat-green { grid-column:1/-1; min-height:0; flex-direction:column; align-items:stretch; gap:0; }
  .stat-green .summary-top { flex-direction:row; align-items:center; justify-content:space-between; gap:14px; }
  .stat-green .summary-label { font-size:var(--text-sm); }
  .stat-green small { font-size:var(--text-sm); text-align:left; max-width:none; margin-top:16px; }
  .section-nav .nav-spacer { display:none; }
  .table-toolbar { flex-wrap:wrap; gap:16px; }
  .search { width:100%; }
  .table-footer, .private-note { font-size:var(--text-sm); }
  .activity-heading { flex-wrap:wrap; gap:10px; }
  .activity-heading > span { max-width:none; font-size:var(--text-sm); text-align:left; }
  .activity-row { font-size:var(--text-sm); flex-wrap:wrap; }
  .activity-copy { flex:1; }
  .activity-row time { font-size:var(--text-sm); max-width:none; }
  footer { font-size:var(--text-sm); flex-wrap:wrap; gap:16px; }
  .footer-brand { max-width:none; }
  .footer-links { flex-wrap:wrap; }
  .right-actions { width:auto; margin-left:auto; }
  .right-actions > .button { flex:0 0 auto; }
  .dialog-actions > .button { order:0; }
  .login-shell { width:calc(100% - 36px); }
  .login-card h1 { font-size:var(--text-xl); }
}
@media(max-width:540px) {
  .topbar-inner { padding:18px 0 20px; gap:16px; }
  .topbar-right { width:100%; justify-content:space-between; }
  .heading > .button { width:var(--button-standard); height:var(--button-height); }
  .summary-item { padding:17px; }
  .activity-row time { margin-left:26px; width:100%; text-align:left; }
  .form-grid { grid-template-columns:1fr; }
  .dialog-heading { gap:12px; align-items:flex-start; }
  .dialog-heading h2 { font-size:var(--text-lg); }
  .dialog-intro { font-size:var(--text-sm); }
  dialog { width:calc(100% - 24px); padding:23px 18px; }
  .dialog-actions, .right-actions { width:100%; justify-content:flex-end; }
  .right-actions { gap:10px; }
  .right-actions > .button { width:var(--button-standard); }
  .address-row { flex-wrap:wrap; }
  .address-row code { font-size:var(--text-sm); width:100%; }
  .login-company, .login-card > p, .login-footnote { font-size:var(--text-sm); }
}
.button.secondary[data-close] { width:var(--button-compact); }
.button.danger, .button.danger-solid { width:var(--button-wide); }
.button.login-submit { width:var(--button-wide); }

/* Acciones solo con texto. La jerarquía usa tamaño y color, con peso regular. */
:root { color:#171717; --text:#171717; --secondary:#62666d; }
body { color:var(--text); }
h1, h2, .section-caption, .dialog-heading h2,
.login-card h1, .brand { color:#171717; font-weight:400; }
.company-line, .company-line span, .login-company { color:#44484e; }
.heading p, .dialog-intro, .login-card > p { color:#62666d; }
.summary-label { color:#222; }
.summary-item small { color:#62666d; }
th { color:#222; font-weight:400; }
td, .person-name, .contact-primary { color:#171717; font-weight:400; }
.person-id, .contact-secondary, .table-footer, .private-note { color:#62666d; }
.activity-row, .activity-row strong { color:#303238; font-weight:400; }
.activity-heading > span, .activity-row time, .activity-empty, footer { color:#62666d; }
.form-grid label, .device-label, .session-heading { color:#222; font-weight:400; }
input:not([type=search]), textarea, .search input { color:#171717; font-weight:400; }
input::placeholder, textarea::placeholder { color:#737881; opacity:1; }
.eyebrow, .login-card .eyebrow, .hint, .session-list li, .small-note,
.login-footnote, .login-copyright, .empty-state p { color:#62666d; }
.empty-state h3 { color:#171717; font-weight:400; }
button, .button, .button.small, .button.secondary, .icon-button,
.text-button, .section-nav a, .section-nav button { color:#25282d; font-weight:400; }
.button.primary, .edit-button, .section-nav a:first-child { color:#0071e3; font-weight:400; }
.button.danger, .button.danger-solid { color:#b0514a; font-weight:400; }
button svg, button img, button [aria-hidden="true"],
.section-nav a svg, .section-nav a img { display:none; }
