:root{--ink:#1f3034;--muted:#78878b;--green:#148b74;--green-light:#e9f5ef;--border:#e3e9e6;--surface:#fff;--bg:#f5f7f5;--sidebar:#142e2b;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;font-size:14px;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:7px;min-height:39px;padding:9px 16px;font-weight:600;transition:background .15s}button:disabled{opacity:.5;cursor:wait}a{color:var(--green);text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #7bd3be;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:28px;font-weight:650;letter-spacing:-.8px}h2{font-size:17px;font-weight:650}h3{font-size:14px;font-weight:600}label{display:block;font-size:13px;font-weight:600;margin:21px 0 9px}input,select,textarea{border:1px solid #d8e1dd;border-radius:7px;background:white;color:var(--ink);padding:10px 12px;min-height:41px;max-width:100%;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #b0dace;border-color:var(--green)}textarea{resize:vertical;line-height:1.7}input[readonly]{background:#f7faf8;font-family:Consolas,monospace;font-size:12px}.primary{color:white;background:var(--green)}.primary:hover{background:#107561}.secondary{background:white;border:1px solid #d8e1dd;color:#435955}.secondary:hover{background:#f0f6f2}.text-button{background:transparent;color:var(--muted);font-weight:400;padding:4px 8px;min-height:30px}.wide{width:100%;justify-content:space-between}.muted{color:var(--muted);line-height:1.7}.small{font-size:12px;line-height:1.8}.eyebrow{font-size:10px;letter-spacing:1.9px;font-weight:650;color:var(--green)}[hidden]{display:none!important}.brand{display:flex;gap:12px;align-items:center;color:white;font-size:21px;font-weight:650;letter-spacing:1px}.brand img{width:39px;height:39px}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:1.5px;margin-top:3px;color:#a4bab3}.login-screen{display:grid;grid-template-columns:48% 52%;min-height:100vh}.login-story{background:#142e2b;padding:46px 9%;display:flex;flex-direction:column;justify-content:space-between;color:white;position:relative;overflow:hidden}.login-story:after{content:"";position:absolute;width:430px;height:430px;border:1px solid #29463f;border-radius:50%;bottom:-300px;right:-120px;box-shadow:0 0 0 60px #1b393330,0 0 0 120px #1b393320;pointer-events:none}.story-body{padding:65px 0;position:relative;z-index:1}.story-body .eyebrow{color:#8ebda4}.story-body h1{font-size:43px;line-height:1.5;letter-spacing:1px;margin:22px 0}.story-body p{color:#adc2b8;line-height:2.1;font-size:15px}.story-foot{font-size:11px;color:#769b8c;letter-spacing:1px}.connection-visual{display:flex;align-items:center;gap:10px;margin-top:43px;font-size:10px;color:#bfd4c9;white-space:nowrap}.connection-visual span,.connection-visual b{padding:11px 9px;border:1px solid #426050;border-radius:7px;font-weight:400}.connection-visual b{background:#244f3f;color:#a6dfbd;border-color:#487f5e}.connection-visual i{width:20px;height:1px;background:#66816d}.login-panel{display:flex;align-items:center;justify-content:center;background:#fafbf9;padding:40px}.login-card{width:350px;max-width:100%}.login-card h2{font-size:28px;margin:15px 0 12px}.login-card .primary{margin-top:6px}.login-note{font-size:11px;color:#8a9990;line-height:1.9;margin-top:25px}.error{font-size:12px;color:#bd4a43;min-height:18px;line-height:1.7;margin:10px 0}.workspace{display:flex;min-height:100vh}aside{width:224px;position:fixed;inset:0 auto 0 0;background:var(--sidebar);padding:29px 20px;color:#b5c7c0;display:flex;flex-direction:column;z-index:5}aside .brand{padding:0 8px}.nav-label{font-size:10px;color:#78948a;letter-spacing:1px;margin:44px 16px 14px}nav{display:flex;flex-direction:column;gap:7px}nav a{color:#acbeb6;padding:12px 16px;border-radius:7px;display:flex;align-items:center;gap:13px;font-size:13px}nav a span{font-size:20px;line-height:1;display:inline-flex;width:19px;justify-content:center}nav a:hover{background:#234039;color:white}nav a.active{background:#265145;color:#e3f4e8;box-shadow:inset 3px 0 #79cba5}.aside-bottom{margin-top:auto;border-top:1px solid #2e4740;padding:21px 8px 0;font-size:11px}.protocol-dot{display:inline-block;width:6px;height:6px;background:#83c49d;border-radius:50%;margin-right:7px}.version{float:right;font-size:10px;background:#2a463b;padding:2px 6px;border-radius:4px}.aside-bottom p{font-size:10px;color:#739084;margin:14px 0 0}.main-shell{margin-left:224px;min-width:0;width:calc(100% - 224px)}.topbar{height:74px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;background:white;border-bottom:1px solid var(--border)}.breadcrumb{color:#87938b;font-size:12px}.breadcrumb span{margin:0 13px;color:#c5cec7}.breadcrumb b{color:#4e6157;font-weight:500}.top-actions{display:flex;align-items:center;gap:12px;font-size:12px}.sync-label{font-size:11px;color:#819188;margin-right:10px}.sync-label:before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#91b8a0;margin-right:7px}.avatar{background:#edf3ed;color:#5e7d68;border-radius:50%;display:flex;width:29px;height:29px;align-items:center;justify-content:center;font-size:11px}main{padding:36px;max-width:1600px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:28px}.page-heading h1{margin:10px 0}.page-heading p{color:var(--muted);font-size:12px}.heading-actions{display:flex;gap:10px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.stat{background:white;border:1px solid var(--border);border-radius:10px;padding:22px 24px}.stat-top{display:flex;justify-content:space-between;color:#79877d;font-size:12px;align-items:center}.stat-icon{width:30px;height:30px;background:#f1f6ef;color:#729578;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:17px}.stat strong{font-size:34px;letter-spacing:-1px;font-weight:600;display:block;margin:8px 0 6px}.stat p{font-size:10px;color:#90a091}.stat p.attention{color:#bb8242}.panel{background:white;border:1px solid var(--border);border-radius:10px;overflow:hidden;margin-bottom:24px}.panel-heading{padding:23px 24px;display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-heading p{font-size:11px;color:var(--muted);margin-top:6px}.panel-heading a{font-size:11px;white-space:nowrap}.overview-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(290px,1fr);gap:24px}.flow-panel{padding:25px}.flow-panel h2{margin:10px 0 26px}.flow-step{display:flex;gap:17px;margin-bottom:24px;position:relative}.flow-step:not(:last-of-type):after{content:"";position:absolute;left:15px;top:34px;width:1px;height:21px;background:#e2eae2}.flow-step>b{width:32px;height:32px;flex-shrink:0;border-radius:50%;background:#eef5ed;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;color:#7c9b77}.flow-step h3{font-size:12px;padding-top:2px}.flow-step p{font-size:10px;line-height:1.6;color:var(--muted);margin-top:6px}.subtle-note{font-size:11px;color:#79917a;background:#f5f8f1;border-radius:6px;padding:12px 14px;line-height:1.8}.empty{padding:42px 24px;text-align:center;color:var(--muted)}.empty-symbol{display:flex;align-items:center;justify-content:center;border:1px solid #e5ece3;background:#f8faf5;border-radius:12px;color:#8aa48c;width:47px;height:47px;margin:0 auto 16px;font-size:23px}.empty h3{color:#536b5b;margin-bottom:9px;font-size:13px}.empty p{font-size:11px;line-height:1.9}.empty a{display:inline-block;font-size:11px;margin-top:16px}.notice{padding:13px 17px;border:1px solid #dfe9df;background:#eff5ed;color:#67816a;border-radius:7px;font-size:12px;line-height:1.8;margin-bottom:21px}.notice.warning{background:#fdf7ed;border-color:#f0e4ca;color:#a47d42}.device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.device-card{background:white;border:1px solid var(--border);border-radius:10px;padding:24px}.device-card .device-title{display:flex;justify-content:space-between;gap:10px;margin-bottom:17px}.device-card .device-title h2{font-size:16px}.device-card dl{margin:15px 0 20px}.device-card dt{font-size:11px;width:85px;color:var(--muted);float:left;clear:left;line-height:2.6}.device-card dd{margin-left:90px;font-size:11px;line-height:2.6;overflow-wrap:anywhere}.device-actions{display:flex;gap:9px;border-top:1px solid var(--border);padding-top:18px;flex-wrap:wrap}.device-actions button{font-size:11px;min-height:32px;padding:7px 12px}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:4px;font-size:10px;white-space:nowrap;background:#eff2ef;color:#7b8d7e;line-height:1.4}.badge.good{background:#eaf5ee;color:#5e946b}.badge.warn{background:#fbf2e2;color:#b18b4e}.badge.bad{background:#fbeeee;color:#b9756f}.device-row{padding:19px 24px;border-top:1px solid #eef1eb;display:flex;align-items:center;gap:13px}.device-symbol{width:35px;height:42px;background:#f1f6ef;border:1px solid #e5ece3;border-radius:7px;color:#8aa17d;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}.device-row h3{font-size:12px}.device-row p{font-size:10px;color:var(--muted);margin-top:7px;overflow-wrap:anywhere}.device-row .badge{margin-left:auto}.toolbar{padding:19px 22px;border-bottom:1px solid var(--border);display:flex;gap:10px}.toolbar input{max-width:330px;min-width:120px}.toolbar select{max-width:200px}.toolbar button{font-size:12px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px}th{padding:13px 20px;background:#f9fbf7;color:#8a978d;font-size:10px;white-space:nowrap;font-weight:500;border-bottom:1px solid #eaf0e6}td{padding:17px 20px;border-bottom:1px solid #edf1e9;line-height:1.7;vertical-align:middle;max-width:350px;overflow-wrap:anywhere}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfb}td .cell-sub{display:block;font-size:10px;color:#94a094;margin-top:3px}.ellipsis{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:300px}.row-link{padding:3px 0;background:transparent;color:var(--green);font-size:11px;min-height:24px;margin-right:10px}.pagination{padding:15px 22px;border-top:1px solid var(--border);display:flex;gap:12px;align-items:center;font-size:11px;color:var(--muted)}.pagination span{margin-right:auto}.pagination button{font-size:11px;min-height:30px;padding:5px 10px}.settings-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:24px}.settings-card{padding:26px}.settings-card h2{margin:12px 0 17px}.settings-card p{font-size:12px}.copy-row{display:flex;gap:8px;margin:0 0 12px}.copy-row button{font-size:12px;white-space:nowrap}.setup-steps{padding-left:19px;font-size:12px;color:#75866f;line-height:2.5;margin-top:22px}dl{margin:20px 0}dt{font-size:12px;color:var(--muted);line-height:2.7}dd{font-size:12px;margin:0 0 6px;overflow-wrap:anywhere}.settings-card dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}.settings-card dt,.settings-card dd{line-height:1.8;margin:0}footer{font-size:10px;color:#a5afa2;margin:32px 0 0;text-align:center}footer span{padding:0 8px}dialog{border:1px solid var(--border);border-radius:12px;padding:28px;width:530px;max-width:calc(100vw - 28px);max-height:90vh;overflow:auto;color:var(--ink);box-shadow:0 20px 80px #142e2b30}dialog::backdrop{background:#102a2460;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-heading h2{font-size:22px;margin-top:9px}.close{border:0;background:#f4f6f1;font-size:23px;line-height:1;padding:3px;width:33px;min-height:33px;font-weight:400;color:#84947d}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}#command-account{margin-top:8px}#compose-form .notice{margin-top:18px;margin-bottom:0}.detail-dialog{width:850px}#detail-summary{margin:20px 0 15px}pre{white-space:pre-wrap;word-break:break-word;background:#f6f8f3;border:1px solid #e8eee2;padding:18px;border-radius:7px;font:12px/1.9 Consolas,"Microsoft YaHei",monospace;max-height:60vh;overflow:auto}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#254436;color:white;border-radius:8px;padding:13px 22px;box-shadow:0 5px 25px #233e3320;z-index:100;font-size:12px;max-width:90vw}
@media(min-width:1500px){main{padding:44px 48px}.topbar{padding:0 48px}}@media(max-width:1100px){aside{width:190px;padding:25px 14px}.main-shell{margin-left:190px;width:calc(100% - 190px)}main{padding:26px}.topbar{padding:0 26px}.stats{gap:12px}.stat{padding:19px}.overview-grid{grid-template-columns:1fr}.flow-panel{display:none}.settings-grid{grid-template-columns:1fr}.device-grid{grid-template-columns:1fr}.sync-label{display:none}}@media(max-width:700px){.login-screen{grid-template-columns:1fr}.login-story{min-height:200px;padding:25px}.story-body{padding:22px 0 0}.story-body h1{font-size:26px;margin:8px 0}.story-body h1 br{display:none}.story-body p,.connection-visual,.story-foot,.story-body .eyebrow{display:none}.login-panel{padding:35px 25px}.login-card h2{font-size:24px}aside{position:static;width:100%;padding:16px 15px}.workspace{flex-direction:column}aside .brand img{width:30px;height:30px}aside .brand{font-size:18px}aside .brand small{display:inline;margin-left:8px}.nav-label,.aside-bottom{display:none}nav{flex-direction:row;overflow-x:auto;margin-top:16px;gap:5px}nav a{padding:9px 10px;white-space:nowrap;font-size:11px;gap:5px}nav a span{font-size:15px;width:auto}nav a.active{box-shadow:none}main{padding:22px 15px}.main-shell{margin:0;width:100%}.topbar{height:54px;padding:0 18px}.top-actions{gap:6px}.avatar{display:none}.page-heading{align-items:flex-start;flex-direction:column;gap:18px}.page-heading h1{font-size:24px}.heading-actions{width:100%;justify-content:flex-end}.stats{grid-template-columns:repeat(2,1fr);gap:10px}.stat{padding:16px}.stat strong{font-size:29px}.stat-top{font-size:11px}.stat-icon{width:26px;height:26px}.panel-heading{padding:19px 17px}.panel-heading h2{font-size:15px}.toolbar{padding:15px;flex-wrap:wrap}.toolbar input{max-width:none;flex:1}.toolbar select{max-width:100%;width:auto;flex:1}.toolbar button{flex-shrink:0}.settings-card{padding:20px}.settings-card dl{grid-template-columns:1fr 1fr}.device-card{padding:20px}.device-row{padding:18px 16px}td,th{padding:13px 15px}.copy-row{flex-wrap:wrap}.copy-row input{width:100%}.copy-row button{margin-left:auto}.pagination{padding:14px 15px}.pagination span{font-size:10px}dialog{padding:22px}footer{line-height:2}}
.automation-master{padding:26px;display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:22px}.automation-master h2{margin-top:10px}.automation-master p{margin-bottom:0}.automation-panel{margin-top:22px}.automation-item{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--border)}.automation-item:last-child{border-bottom:0}.automation-item>div{min-width:0}.automation-item h3{margin:0;font-size:14px;overflow-wrap:anywhere}.automation-item p{margin:7px 0 0;line-height:1.7}.automation-switch{border:1px solid #dce5df;border-radius:24px;background:#f0f4f1;color:#61756d;min-width:82px;padding:9px 13px;white-space:nowrap;flex-shrink:0}.automation-switch[aria-checked=true]{background:#e2f4eb;color:#087454;border-color:#acd8c4}.switch-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:currentColor;margin-right:7px}.rule-numbers{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rule-checks{display:flex;flex-wrap:wrap;gap:15px;margin-top:18px}.rule-checks label,.rule-enable{display:flex;gap:8px;align-items:center}.rule-checks input,.rule-enable input{width:16px;min-height:16px;height:16px;margin:0;accent-color:#138d70}.rule-enable{margin:18px 0}.automation-note{padding:15px 0}.automation-master .automation-switch{min-width:100px}@media(max-width:700px){.automation-master{padding:20px;align-items:flex-start;flex-direction:column}.automation-master .automation-switch{min-width:150px}.rule-numbers{grid-template-columns:1fr}.automation-panel .panel-heading{flex-wrap:wrap}.automation-item{align-items:flex-start}.automation-item h3{font-size:13px}}
#automation-rules table{min-width:720px}#automation-runs table{min-width:760px}
.compose-mode{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;font-size:12px}.compose-mode label,.arg-empty{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:12px;font-weight:400}.compose-mode input,.arg-empty input{width:16px;height:16px;min-height:16px;margin:0;accent-color:var(--green)}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}#catalog-search{max-width:380px}#catalog-table table{min-width:780px}#operations-table table,#media-table table{min-width:760px}#media-status{padding:0 22px 15px}#command-json{font-family:Consolas,monospace}#command-notes{overflow-wrap:anywhere}#media-target-actions{margin-top:16px}.arg-field{margin-top:10px}#compose-dialog{width:660px}#command-fields label{overflow-wrap:anywhere}#command-type{font-size:12px}#catalog-table .cell-sub{white-space:normal;max-width:440px}aside nav{overflow-y:auto;min-height:0}@media(max-width:700px){aside nav{overflow-y:hidden}.compose-mode{align-items:flex-start;flex-wrap:wrap}}

.contacts-device-row{display:flex;align-items:center;gap:16px;padding:0 22px 20px}.contacts-device-row label{margin:0;flex-shrink:0}.contacts-device-row select{max-width:580px}.contacts-tabs{display:flex;gap:20px;padding:0 22px;border-bottom:1px solid var(--border)}.contacts-tabs button{border-radius:0;background:none;border-bottom:3px solid transparent;color:var(--muted);padding:12px 6px}.contacts-tabs button.active{color:var(--green);border-bottom-color:var(--green)}.contacts-tabs span{border-radius:12px;background:#eef3ef;min-width:25px;padding:2px 7px;font-size:11px}.contacts-sync-note{padding:16px 22px 0;color:var(--muted);font-size:12px;line-height:1.9;overflow-wrap:anywhere}.contacts-footnote{border-top:1px solid var(--border);padding:16px 22px;font-size:11px;color:var(--muted);line-height:1.8}.contact-identity{display:flex;align-items:center;gap:12px}.contact-avatar{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;flex-shrink:0;background:#e9f5ef;color:var(--green);font-weight:600}.contact-identity>div{min-width:0}#contacts-table table{min-width:850px}#contacts-search{max-width:440px}#contacts-account{overflow-wrap:anywhere}#contacts-members-summary{margin-top:5px}.contacts-heading>div{min-width:0}.contacts-heading>button{flex-shrink:0}@media(max-width:700px){.contacts-heading{align-items:flex-start;flex-wrap:wrap;gap:14px}.contacts-device-row{padding:0 17px 17px;gap:10px}.contacts-device-row select{font-size:12px}.contacts-tabs{padding:0 17px}.contacts-sync-note{padding:15px 17px 0}.contacts-footnote{padding:15px 17px}}
.contact-detail-table{width:100%;min-width:0;table-layout:fixed;border:1px solid var(--border);border-radius:7px;margin-bottom:16px}.contact-detail-table th:nth-child(1){width:25%}.contact-detail-table th:nth-child(2){width:29%}.contact-detail-table th:nth-child(3){width:46%}.contact-detail-table th,.contact-detail-table td{white-space:normal;overflow-wrap:anywhere;padding:12px 14px;vertical-align:top}.contact-detail-table td code{font:12px/1.8 Consolas,monospace;color:var(--muted)}.contact-detail-table .contact-detail-value{white-space:pre-wrap;line-height:1.8}#detail-raw-toggle{margin:0 0 8px;font-size:12px}@media(max-width:700px){.contact-detail-table th,.contact-detail-table td{padding:10px 8px;font-size:12px}.contact-detail-table td code{font-size:10px}.contact-detail-table th:nth-child(1){width:25%}.contact-detail-table th:nth-child(2){width:30%}.contact-detail-table th:nth-child(3){width:45%}}
