:root{
  --yc-blue:#4f6ef7;
  --yc-blue-deep:#3154df;
  --yc-blue-soft:#eef2ff;
  --yc-cyan:#0f9fb4;
  --yc-green:#18a36b;
  --yc-amber:#d88716;
  --yc-red:#dc4c64;
  --yc-purple:#7c63d9;
  --yc-text:#172033;
  --yc-text-2:#445064;
  --yc-muted:#8792a5;
  --yc-line:#e2e7ef;
  --yc-line-strong:#d4dbe6;
  --yc-bg:#f5f7fa;
  --yc-card:#fff;
  --yc-sidebar:200px;
  --yc-topbar:50px;
  --yc-radius:8px;
  --yc-shadow:0 7px 22px rgba(34,51,84,.055);
  --yc-control-height:42px;
  --yc-button-height:38px;
  --yc-control-radius:7px;
  --yc-font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
}

html,body{min-height:100%;font-family:var(--yc-font);color:var(--yc-text);letter-spacing:0}
body{margin:0;background:var(--yc-bg);font-size:14px;overflow-x:hidden}
*{box-sizing:border-box}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;letter-spacing:0}
button{cursor:pointer}
[hidden]{display:none!important}

/* Login */
.yc-modern-login{min-height:100vh;background:linear-gradient(135deg,#f9fbfd 0%,#eef4f7 100%)!important;display:grid!important;place-items:center!important;padding:28px!important}
.yc-modern-login .login-screen{width:100%!important;min-height:0!important;display:grid!important;place-items:center!important;padding:0!important;background:transparent!important}
.yc-modern-login .login-panel{width:min(1080px,100%)!important;min-height:620px!important;display:grid!important;grid-template-columns:1.42fr 1fr!important;overflow:hidden!important;border:1px solid rgba(210,220,229,.92)!important;border-radius:10px!important;background:#fff!important;box-shadow:0 28px 80px rgba(41,63,84,.13)!important}
.yc-modern-login .login-brand{position:relative!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;padding:34px 46px 38px!important;background:linear-gradient(145deg,#e7f3f2 0%,#cfe6e4 100%)!important;color:var(--yc-text)!important;overflow:hidden!important}
.yc-modern-login .login-brand:before,.yc-modern-login .login-brand:after{content:"";position:absolute;border:1px solid rgba(68,130,124,.13);border-radius:50%}
.yc-modern-login .login-brand:before{width:420px;height:420px;right:-160px;top:-180px}
.yc-modern-login .login-brand:after{width:280px;height:280px;left:-120px;bottom:-130px}
.yc-modern-login .login-brand-name{position:relative;z-index:1;display:flex;align-items:center;gap:12px;font-size:18px}
.yc-brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:8px;background:linear-gradient(145deg,#5577fa,#3154df);color:#fff;font-size:13px;font-weight:900;box-shadow:0 8px 20px rgba(67,96,227,.22)}
.yc-modern-login .login-brand-copy{position:relative;z-index:1;max-width:570px}
.yc-modern-login .login-brand-copy>small,.login-form-eyebrow{display:block;margin-bottom:16px;color:#16806f;font-size:11px;font-weight:800;letter-spacing:.08em}
.yc-modern-login .login-brand h1{max-width:520px;margin:0!important;color:#172033!important;font-size:37px!important;line-height:1.28!important;font-weight:800!important;white-space:normal!important;overflow-wrap:anywhere}
.yc-modern-login .login-brand p{max-width:520px;margin:18px 0 28px;color:#5c6f76;font-size:15px;line-height:1.8}
.login-brand-features{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.login-brand-features article{min-width:0;display:grid;grid-template-columns:30px 1fr;gap:2px 9px;padding:15px;border:1px solid rgba(255,255,255,.84);border-radius:7px;background:rgba(255,255,255,.64);box-shadow:0 8px 22px rgba(68,112,109,.06)}
.login-brand-features i{grid-row:1/3;width:30px;height:30px;display:grid!important;place-items:center;color:#147a6b!important;background:#fff!important;border-radius:6px}
.login-brand-features b{font-size:15px}
.login-brand-features span{overflow:hidden;color:#748388;font-size:11px;white-space:nowrap;text-overflow:ellipsis}
.login-brand-foot{position:relative;z-index:1;display:flex;align-items:center;gap:8px;color:#61757a;font-size:12px}
.login-brand-foot i{color:#16806f}
.yc-modern-login .login-form{display:flex;flex-direction:column;justify-content:center;padding:58px 48px;background:#fff}
.yc-modern-login .login-form-eyebrow{margin-bottom:12px}
.yc-modern-login .login-title{margin:0 0 8px;color:#172033;font-size:31px;line-height:1.25;font-weight:800}
.yc-modern-login .login-hint{margin:0 0 32px;color:#7b8494;line-height:1.7}
.yc-modern-login .error{margin:-12px 0 18px;padding:10px 12px;border:1px solid #ffd7df;border-radius:6px;background:#fff5f7;color:#c93852;font-size:12px}
.login-input{height:50px;display:flex;align-items:center;gap:11px;margin-bottom:14px;padding:0 14px;border:1px solid #dfe4eb;border-radius:7px;background:#fff;transition:.18s ease}
.login-input:focus-within{border-color:#6e86f5;box-shadow:0 0 0 3px rgba(79,110,247,.11)}
.login-input i{width:18px;text-align:center;color:#9aa4b3}
.login-input input{min-width:0;flex:1;height:100%;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:#172033}
.login-form-meta{display:flex;align-items:center;justify-content:space-between;margin:4px 0 26px;color:#8b94a3;font-size:12px}
.login-form-meta label{display:flex;align-items:center;gap:7px;color:#596579}
.login-form-meta input{width:14px;height:14px;margin:0;accent-color:var(--yc-blue)}
.yc-modern-login .login-form>button{height:50px;display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:7px;background:var(--yc-blue);color:#fff;font-weight:700;box-shadow:0 12px 24px rgba(79,110,247,.22);transition:.18s ease}
.yc-modern-login .login-form>button:hover{background:var(--yc-blue-deep);transform:translateY(-1px)}
.login-security{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:22px;color:#9aa4b3;font-size:11px}

/* Shell */
.yc-modern-shell{overflow-x:hidden;background:var(--yc-bg)}
.yc-modern-shell .wrapper{min-height:100vh;background:var(--yc-bg)}
.yc-modern-shell .main-sidebar{position:fixed!important;inset:0 auto 0 0!important;width:var(--yc-sidebar)!important;min-height:100vh!important;overflow:hidden;border-right:1px solid var(--yc-line);background:#fff!important;box-shadow:none!important;z-index:1032;transition:width .2s ease,transform .2s ease}
.yc-modern-shell .brand-link{height:var(--yc-topbar);display:flex!important;align-items:center;gap:10px;padding:0 15px!important;border:0!important;border-bottom:1px solid var(--yc-line)!important;background:#fff!important;color:var(--yc-text)!important}
.yc-modern-shell .brand-link .yc-brand-mark{flex:0 0 30px;width:30px;height:30px;border-radius:6px;font-size:10px;box-shadow:none}
.yc-modern-shell .brand-text{min-width:0;display:flex;flex-direction:column;line-height:1.1}
.yc-modern-shell .brand-text b{font-size:15px;white-space:nowrap}
.yc-modern-shell .brand-text small{margin-top:3px;color:#a0a8b5;font-size:8px;font-weight:800;letter-spacing:.08em;white-space:nowrap}
.yc-modern-shell .sidebar{height:calc(100vh - var(--yc-topbar));display:flex;flex-direction:column;padding:14px 10px 12px;overflow-y:auto}
.yc-modern-shell .sidebar nav{flex:1}
.yc-sidebar-nav{display:grid;gap:2px;margin:0;padding:0;list-style:none}
.yc-sidebar-section{padding:14px 10px 6px;color:#a7afbd;font-size:10px;font-weight:700;white-space:nowrap}
.yc-sidebar-item{min-width:0;margin:0;padding:0;list-style:none}
.yc-sidebar-link{min-height:39px;display:flex;align-items:center;gap:10px;margin:0;padding:0 11px;border-radius:6px;color:#536074;background:transparent;font-size:13px;font-weight:500;transition:background-color .15s ease,color .15s ease;white-space:nowrap}
.yc-sidebar-link:hover{background:#f4f6fa;color:#273247}
.yc-sidebar-link.active{background:var(--yc-blue-soft);color:var(--yc-blue);box-shadow:inset 2px 0 0 var(--yc-blue)}
.yc-sidebar-link-icon{flex:0 0 18px;width:18px;text-align:center;font-size:13px;color:#8390a3}
.yc-sidebar-link.active .yc-sidebar-link-icon{color:var(--yc-blue)}
.yc-sidebar-link-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
.yc-sidebar-account{display:grid!important;grid-template-columns:32px minmax(0,1fr) 28px;align-items:center;gap:8px;padding:10px!important;border:1px solid var(--yc-line)!important;border-radius:7px!important;background:#fafbfc!important}
.yc-sidebar-avatar,.yc-top-avatar{display:grid;place-items:center;border-radius:50%;background:#edf1ff;color:var(--yc-blue);font-weight:800}
.yc-sidebar-avatar{width:32px;height:32px;font-size:12px}
.yc-sidebar-account>span:nth-child(2){min-width:0;display:flex;flex-direction:column}
.yc-sidebar-account b{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.yc-sidebar-account small{color:var(--yc-muted);font-size:10px}
.yc-sidebar-account a{width:28px;height:28px;display:grid;place-items:center;border-radius:5px;color:#8e98a7}
.yc-sidebar-account a:hover{background:#fff;color:var(--yc-red)}

.yc-modern-shell .main-header{position:fixed!important;inset:0 0 auto var(--yc-sidebar)!important;height:var(--yc-topbar)!important;display:flex!important;align-items:center;justify-content:space-between;margin:0!important;padding:0 16px!important;border:0!important;border-bottom:1px solid var(--yc-line)!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(12px);box-shadow:none!important;z-index:1031;transition:left .2s ease}
.yc-topbar-left,.yc-topbar-right{display:flex;align-items:center}
.yc-topbar-left{gap:10px;min-width:0}
.yc-icon-button,.yc-top-action,.yc-top-logout{width:32px;height:32px;display:grid;place-items:center;border:1px solid transparent;border-radius:6px;background:transparent;color:#687589}
.yc-icon-button:hover,.yc-top-action:hover,.yc-top-logout:hover{border-color:var(--yc-line);background:#f7f8fb;color:var(--yc-blue)}
.yc-top-action{padding:0}
.yc-topbar-title{min-width:0;display:flex;align-items:center;gap:8px;color:#647084;font-size:12px}
.yc-topbar-title span{font-weight:600}
.yc-topbar-title i{color:#c1c7d0;font-size:8px}
.yc-topbar-title small{overflow:hidden;color:#9aa4b3;text-overflow:ellipsis;white-space:nowrap}
.yc-topbar-right{gap:8px}
.yc-top-status{height:30px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid #d9eee5;border-radius:6px;background:#f3fbf7;color:#19885d;font-size:11px;font-weight:600}
.yc-top-status i{font-size:7px}
.yc-top-admin{height:38px;display:grid;grid-template-columns:30px auto 12px;align-items:center;gap:8px;padding:3px 7px;border-radius:7px;color:#465268}
.yc-top-admin:hover{background:#f6f8fb}
.yc-top-avatar{width:30px;height:30px;font-size:11px}
.yc-top-admin>span:nth-child(2){display:flex;flex-direction:column;line-height:1.15}
.yc-top-admin b{font-size:12px}
.yc-top-admin small{margin-top:2px;color:#a0a9b7;font-size:9px}
.yc-top-admin>i{color:#b2bac6;font-size:9px}
.yc-sidebar-mask{display:none}

.yc-modern-shell .content-wrapper{min-height:100vh!important;margin-left:var(--yc-sidebar)!important;padding-top:var(--yc-topbar);background:var(--yc-bg)!important;transition:margin-left .2s ease}
.yc-modern-shell .content-header{padding:0!important;background:#fff;border-bottom:1px solid var(--yc-line)}
.yc-shell-container{width:100%;max-width:1720px;margin:0 auto;padding-right:18px;padding-left:18px}
.yc-shell-page-intro{display:flex;align-items:stretch;justify-content:space-between;gap:22px;min-height:112px;padding-top:18px}
.yc-shell-page-identity{display:flex;align-items:flex-start;gap:13px;padding-bottom:18px}
.yc-shell-page-icon{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border:1px solid #dce3ff;border-radius:7px;background:#f2f5ff;color:var(--yc-blue);font-size:15px}
.yc-page-copy{min-width:0}
.yc-breadcrumb-line{display:flex!important;align-items:center;gap:7px;margin:0 0 6px!important;color:#9aa4b4!important;font-size:10px!important}
.yc-breadcrumb-line a{color:#7c8798}
.yc-breadcrumb-line i{font-size:7px}
.yc-page-copy h1{margin:0!important;color:var(--yc-text)!important;font-size:21px!important;line-height:1.25!important;font-weight:750!important}
.yc-page-copy p{margin:6px 0 0!important;color:#8792a3!important;font-size:12px!important;line-height:1.5!important}
.yc-shell-page-controls{display:flex;align-items:flex-end;align-self:stretch;min-width:0}
.yc-shell-context-nav{display:flex;align-items:flex-end;gap:4px;max-width:100%;overflow-x:auto}
.yc-shell-context-nav a{position:relative;flex:0 0 auto;display:flex;align-items:center;height:37px;padding:0 13px;color:#717d90;font-size:12px;font-weight:550;white-space:nowrap}
.yc-shell-context-nav a:hover,.yc-shell-context-nav a.is-active{color:var(--yc-blue)}
.yc-shell-context-nav a.is-active:after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;border-radius:2px 2px 0 0;background:var(--yc-blue)}
.yc-modern-shell .content{padding:16px 0 30px!important}
.yc-modern-shell .main-footer{margin-left:var(--yc-sidebar)!important;padding:14px 18px!important;border-top:1px solid var(--yc-line)!important;background:#fff!important;color:#8c96a5!important;font-size:11px!important;transition:margin-left .2s ease}
.yc-modern-shell .main-footer strong{margin-right:8px;color:#566276}
.yc-sidebar-collapsed .main-sidebar{width:60px!important}
.yc-sidebar-collapsed .main-header{left:60px!important}
.yc-sidebar-collapsed .content-wrapper,.yc-sidebar-collapsed .main-footer{margin-left:60px!important}
.yc-sidebar-collapsed .brand-text,.yc-sidebar-collapsed .yc-sidebar-section,.yc-sidebar-collapsed .yc-sidebar-link-label,.yc-sidebar-collapsed .yc-sidebar-account>span:nth-child(2),.yc-sidebar-collapsed .yc-sidebar-account>a{display:none!important}
.yc-sidebar-collapsed .brand-link{justify-content:center;padding:0!important}
.yc-sidebar-collapsed .sidebar{padding-left:9px;padding-right:9px}
.yc-sidebar-collapsed .yc-sidebar-link{justify-content:center;padding:0}
.yc-sidebar-collapsed .yc-sidebar-account{display:flex!important;justify-content:center;padding:8px!important}

/* Foundation components */
.yc-modern-shell .card,.yc-modern-shell .ops-panel,.yc-modern-shell .ops-task-dock,.yc-modern-shell .ops-welcome-band,.yc-modern-shell .ops2-hero{border:1px solid var(--yc-line)!important;border-radius:var(--yc-radius)!important;background:var(--yc-card)!important;box-shadow:var(--yc-shadow)!important}
.yc-modern-shell .card{margin:0 0 14px!important;padding:18px!important}
.yc-modern-shell .card+.card{margin-top:14px!important}
.yc-modern-shell h2,.yc-modern-shell h3,.yc-modern-shell h4{color:var(--yc-text);letter-spacing:0}
.yc-modern-shell .muted{color:var(--yc-muted)!important}
.yc-modern-shell .mono,.yc-modern-shell code,.yc-modern-shell .cell-pre{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace}
.yc-modern-shell .work-card-head,.yc-modern-shell .card-header-inline,.yc-modern-shell .ops-section-title,.yc-modern-shell .panel-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:-2px 0 16px;padding:0 0 13px;border-bottom:1px solid var(--yc-line)}
.yc-modern-shell .ops-section-title h3,.yc-modern-shell .work-card-head h3,.yc-modern-shell .panel-title{margin:0;font-size:15px;font-weight:700}
.yc-modern-shell .ops-section-title p,.yc-modern-shell .work-card-head p{margin:4px 0 0;color:var(--yc-muted);font-size:11px}
.yc-page-toolbar,.yc-page-toolbar-actions,.action-row,.actions,.yc-list-row-actions,.yc-row-top-actions,.command-actions,.content-panel-actions,.firmware-target-actions,.app-diy-theme-actions,.ios-stage-actions,.ios-identity-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.action-row{justify-content:flex-end;margin-top:16px;padding-top:14px;border-top:1px solid var(--yc-line)}
.yc-modern-shell button,.yc-modern-shell .btn-muted,.yc-modern-shell .btn-red,.yc-modern-shell .btn-compact,.yc-modern-shell .yc-shell-link,.yc-modern-shell .action-row a,.yc-modern-shell .actions a,.yc-modern-shell .yc-page-toolbar a{height:var(--yc-button-height);min-height:var(--yc-button-height);display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;border:1px solid var(--yc-blue);border-radius:6px;background:var(--yc-blue);color:#fff;font-size:12px;font-weight:650;line-height:1.2;white-space:nowrap;box-shadow:none;transition:border-color .15s ease,background-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease}
.yc-modern-shell button:hover,.yc-modern-shell .action-row a:hover,.yc-modern-shell .actions a:hover{filter:brightness(.97);transform:translateY(-1px)}
.yc-modern-shell button:focus-visible,.yc-modern-shell .yc-shell-link:focus-visible,.yc-modern-shell .action-row a:focus-visible,.yc-modern-shell .actions a:focus-visible,.yc-modern-shell .yc-page-toolbar a:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(79,110,247,.16)}
.yc-modern-shell button:disabled,.yc-modern-shell [disabled]{cursor:not-allowed;opacity:.48;transform:none!important}
.yc-modern-shell .yc-top-action{width:32px;height:32px;min-height:32px;padding:0;border-color:transparent;background:transparent;color:#687589}
.yc-modern-shell .yc-top-action:hover{border-color:var(--yc-line);background:#f7f8fb;color:var(--yc-blue);filter:none}
.yc-modern-shell .yc-sidebar-mask{height:auto;min-height:0;padding:0;border:0;border-radius:0;background:rgba(18,27,43,.42);color:transparent}
.yc-modern-shell .btn-muted,.yc-modern-shell button.btn-muted,.yc-modern-shell .is-secondary{border-color:var(--yc-line-strong)!important;background:#fff!important;color:#526075!important}
.yc-modern-shell .btn-muted:hover{border-color:#bfc8d6!important;background:#f8f9fb!important;color:#273248!important}
.yc-modern-shell .btn-red,.yc-modern-shell button.btn-red{border-color:#f3cad2!important;background:#fff5f7!important;color:#cf3d58!important}
.yc-modern-shell .btn-compact,.yc-modern-shell button.btn-compact{height:var(--yc-button-height);min-height:var(--yc-button-height);padding:0 10px;font-size:11px}
.yc-modern-shell .tag,.yc-modern-shell .tag-muted,.yc-modern-shell .tag-red{min-height:24px;display:inline-flex;align-items:center;justify-content:center;padding:0 8px;border:1px solid #cfe9df;border-radius:5px;background:#f0faf6;color:#16845b;font-size:10px;font-weight:650;white-space:nowrap}
.yc-modern-shell .tag-muted{border-color:#e0e5ec;background:#f7f8fa;color:#7d8899}
.yc-modern-shell .tag-red{border-color:#f5d1d7;background:#fff5f7;color:#ce4159}
.yc-modern-shell .green{color:var(--yc-green)!important}.yc-modern-shell .blue{color:var(--yc-blue)!important}.yc-modern-shell .warn{color:var(--yc-amber)!important}.yc-modern-shell .error{color:var(--yc-red)!important}
.error-box,.ios-record-alert{padding:11px 12px;border:1px solid #f3cbd3;border-radius:6px;background:#fff5f7;color:#c83e56;font-size:11px;line-height:1.6}
.empty-location{min-height:120px;display:flex;align-items:center;justify-content:center;gap:12px;color:#8e98a8}.empty-location>i{font-size:24px;color:#c3cad4}.empty-location b{font-size:12px}.empty-location p{margin:3px 0 0;font-size:10px}
.toggle-row,.iot-account-enabled{display:flex;align-items:center;gap:8px;color:#5f6c80;font-size:11px}.status-stack{display:grid;gap:6px}

.form-grid,.admin-form-grid,.login-bubble-fields,.iot-account-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important}
.form-grid>*,.admin-form-grid>*,.protocol-fields>*,.login-bubble-fields>*,.iot-account-fields>*{min-width:0}
.protocol-fields{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px!important}
.form-grid.compact-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.field{min-width:0;display:flex;flex-direction:column;gap:7px}
.field>label,.field>span,.yc-modern-shell form>label{min-width:0;color:#566276;font-size:12px;font-weight:650;line-height:1.45}
.field small,.yc-modern-shell form small{color:#929cab;font-size:10px;line-height:1.55}
.field-span-2{grid-column:span 2}
.yc-modern-shell input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=button]):not([type=submit]):not([type=reset]),.yc-modern-shell select,.yc-modern-shell textarea{width:100%;min-width:0;min-height:var(--yc-control-height);padding:10px 12px;border:1px solid #d7dee8;border-radius:var(--yc-control-radius);background:#fff;color:#243047;font-size:12px;line-height:1.35;outline:none;box-shadow:0 1px 2px rgba(28,43,68,.025);transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}
.yc-modern-shell input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=button]):not([type=submit]):not([type=reset]),.yc-modern-shell select{height:var(--yc-control-height)}
.yc-modern-shell input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=button]):not([type=submit]):not([type=reset]):hover,.yc-modern-shell select:hover,.yc-modern-shell textarea:hover{border-color:#bdc8d7}
.yc-modern-shell select{padding-right:38px;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23798598' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m1 1.25 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:12px 8px}
.yc-modern-shell select[multiple],.yc-modern-shell select[size]:not([size="1"]){min-height:112px;padding-right:12px;background-image:none}
.yc-modern-shell textarea{min-height:112px;height:auto;resize:vertical;line-height:1.65;overflow:auto}
.yc-modern-shell input::placeholder,.yc-modern-shell textarea::placeholder{color:#a2acba;opacity:1}
.yc-modern-shell input:focus,.yc-modern-shell select:focus,.yc-modern-shell textarea:focus{border-color:#7189f2!important;box-shadow:0 0 0 3px rgba(79,110,247,.12)!important}
.yc-modern-shell input[readonly],.yc-modern-shell textarea[readonly],.yc-modern-shell select[readonly]{border-color:#e1e6ed;background:#f7f9fb;color:#667287;box-shadow:none}
.yc-modern-shell input:disabled,.yc-modern-shell textarea:disabled,.yc-modern-shell select:disabled{border-color:#e3e7ed;background:#f3f5f8;color:#98a2b1;box-shadow:none;opacity:1;-webkit-text-fill-color:#98a2b1}
.yc-modern-shell input[aria-invalid=true],.yc-modern-shell select[aria-invalid=true],.yc-modern-shell textarea[aria-invalid=true]{border-color:#e38494;box-shadow:0 0 0 3px rgba(220,76,100,.09)}
@supports selector(input:user-invalid){.yc-modern-shell input:user-invalid,.yc-modern-shell select:user-invalid,.yc-modern-shell textarea:user-invalid{border-color:#e38494;box-shadow:0 0 0 3px rgba(220,76,100,.09)}}
.yc-modern-shell input:-webkit-autofill,.yc-modern-shell input:-webkit-autofill:hover,.yc-modern-shell input:-webkit-autofill:focus{-webkit-text-fill-color:#243047;-webkit-box-shadow:0 0 0 1000px #fff inset;transition:background-color 9999s ease-out}
.yc-modern-shell input[type=search]{-webkit-appearance:none;appearance:none}
.yc-modern-shell input[type=number]{font-variant-numeric:tabular-nums}
.yc-modern-shell input[type=date],.yc-modern-shell input[type=time],.yc-modern-shell input[type=datetime-local]{min-width:0;color-scheme:light}
.yc-modern-shell input[type=checkbox],.yc-modern-shell input[type=radio]{flex:0 0 auto;width:16px;height:16px;margin:0;accent-color:var(--yc-blue);vertical-align:middle}
.yc-modern-shell input[type=file]{width:100%;max-width:100%;height:var(--yc-control-height);min-height:var(--yc-control-height);padding:5px;border:1px solid #d7dee8;border-radius:var(--yc-control-radius);background:#fff;color:#68758a;font-size:11px;line-height:30px;overflow:hidden}
.yc-modern-shell input[type=file]::file-selector-button{min-height:30px;margin:0 10px 0 0;padding:0 11px;border:1px solid #d7dee8;border-radius:5px;background:#f6f8fb;color:#4c596e;font:600 11px var(--yc-font);cursor:pointer;transition:.15s ease}
.yc-modern-shell input[type=file]::file-selector-button:hover{border-color:#bdc8d7;background:#eef2f7;color:#273247}
.yc-modern-shell .toggle-row,.yc-modern-shell .iot-account-enabled{min-height:34px;line-height:1.45}
.yc-modern-shell .permission-switch{cursor:pointer;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}
.yc-modern-shell .permission-switch:hover{border-color:#c8d2e1;background:#fff}
.yc-modern-shell .permission-switch:has(input:checked){border-color:#c5d0fb;background:#f3f6ff;box-shadow:inset 0 0 0 1px rgba(79,110,247,.04)}
.yc-modern-shell .actions form,.yc-modern-shell .yc-list-row-actions form,.yc-modern-shell .yc-row-top-actions form,.yc-modern-shell .command-actions form,.yc-modern-shell .ios-stage-actions form,.yc-modern-shell .ios-identity-actions form{display:inline-flex;align-items:center;margin:0}
.form-panel{margin-bottom:14px;padding:15px;border:1px solid var(--yc-line);border-radius:7px;background:#fff}
.form-panel.subtle{background:#fafbfc}
.html-editor{min-height:180px}
.content-workflow,.content-panel-body,.admin-clean-page,.user-control-panel,.push-overview-card,.bms-raw-capture-panel{display:grid;gap:14px}
.content-workflow-head,.iot-query-tester-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--yc-line)}
.login-bubble-list,.iot-account-list{display:grid;gap:10px}.login-bubble-editor,.iot-account-row{padding:13px;border:1px solid var(--yc-line);border-radius:7px;background:#fff}.login-card-preview,.iot-account-row-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.login-card-preview>img,.login-card-preview>span{width:46px;height:46px;min-width:46px;max-width:46px;min-height:46px;max-height:46px;flex:0 0 46px;border:1px solid #dbe3ef;border-radius:50%;background:#eef2ff}.login-card-preview>img{display:block;object-fit:cover;object-position:center}.login-card-preview>span{display:grid;place-items:center;color:var(--yc-blue);font-weight:800}.login-card-preview>div{min-width:0;flex:1;display:flex;flex-direction:column}.login-card-preview em{color:#98a2b0;font-size:9px;font-style:normal}.login-card-options{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px}
.iot-account-summary,.iot-traffic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.iot-account-summary>div,.iot-traffic-grid>div,.iot-query-test-result{padding:11px;border:1px solid var(--yc-line);border-radius:6px;background:#fafbfc}.iot-query-tester{display:grid;gap:12px}.iot-query-tester-form{display:flex;align-items:flex-end;gap:8px}.iot-query-tester-form .field{flex:1}
.file-picker,.ios-file-field,.ios-certificate-drop{position:relative;padding:14px;border:1px dashed #cbd4e2;border-radius:7px;background:#fafbfe}
.file-picker:hover,.ios-file-field:hover,.ios-certificate-drop:hover{border-color:#8da1f4;background:#f6f8ff}
.yc-file-input,.ios-file-field input[type=file]{width:100%;color:#68758a;font-size:11px}

.table-wrap,.compact-table-wrap,.ops2-table-wrap,.mqtt-table-wrap,.command-history-table,.ios-package-table{width:100%;overflow-x:auto;border:1px solid var(--yc-line);border-radius:7px;background:#fff}
.yc-modern-shell table{width:100%;border-collapse:collapse;color:#445066;font-size:12px}
.yc-modern-shell th{padding:11px 12px;border-bottom:1px solid var(--yc-line);background:#f7f8fa;color:#626e80;font-size:11px;font-weight:700;text-align:left;white-space:nowrap}
.yc-modern-shell td{padding:12px;border-bottom:1px solid #edf0f4;vertical-align:middle}
.yc-modern-shell tbody tr:last-child td{border-bottom:0}
.yc-modern-shell tbody tr:hover td{background:#fafbff}
.yc-modern-shell td .actions{flex-wrap:nowrap}
.compact-table td,.compact-table th{padding:10px 11px}
.cell-pre{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.ops2-filter-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 14px!important;padding:12px!important;border:1px solid var(--yc-line)!important;border-radius:7px!important;background:#fafbfc!important}
.ops2-search{min-width:260px;max-width:460px;flex:1;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid #dce2ea;border-radius:6px;background:#fff}
.ops2-search i{color:#9ba5b4;font-size:11px}
.ops2-search input{min-height:36px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.ops2-filter-chips{display:flex;align-items:center;gap:5px;overflow-x:auto}
.ops2-filter-chips button{height:31px!important;min-height:31px!important;padding:0 10px!important;border-color:transparent!important;background:transparent!important;color:#7b8798!important;font-size:10px!important}
.ops2-filter-chips button.is-active{border-color:#d9e0ff!important;background:#eef2ff!important;color:var(--yc-blue)!important}

.yc-admin-modal,.yc-qr-modal{position:fixed!important;inset:0!important;z-index:2200!important;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(18,27,43,.48);backdrop-filter:blur(4px)}
.yc-admin-modal.is-open,.yc-qr-modal.is-open{display:flex!important}
.yc-admin-dialog,.yc-qr-card{width:min(600px,100%);max-height:calc(100vh - 48px);overflow:auto;padding:0!important;border:0!important;border-radius:9px!important;background:#fff!important;box-shadow:0 28px 80px rgba(20,31,53,.25)!important}
.yc-admin-dialog.is-wide{width:min(1120px,100%)}
.yc-modal-head{position:sticky;top:0;z-index:2;display:flex!important;align-items:center;justify-content:space-between;gap:16px;margin:0!important;padding:16px 18px!important;border-bottom:1px solid var(--yc-line)!important;background:rgba(255,255,255,.97)!important}
.yc-modal-head h3{margin:0;font-size:15px}
.yc-modal-head p{margin:4px 0 0;color:var(--yc-muted);font-size:10px}
.yc-admin-dialog>.card,.yc-admin-dialog>form,.yc-admin-dialog>.yc-user-detail-modal-body{margin:0!important;padding:18px!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.yc-modal-lock{overflow:hidden}
.yc-submit-loading{position:fixed;inset:0;z-index:4000;display:grid;place-items:center;padding:20px;background:rgba(20,31,48,.2);backdrop-filter:blur(2px)}
.yc-submit-loading-panel{min-width:150px;display:flex;align-items:center;justify-content:center;gap:10px;padding:15px 18px;border:1px solid var(--yc-line);border-radius:8px;background:#fff;color:#41506a;box-shadow:0 12px 34px rgba(20,31,53,.16);font-size:12px}
.yc-submit-loading-panel>span{width:17px;height:17px;border:2px solid #dce3f4;border-top-color:var(--yc-blue);border-radius:50%;animation:yc-loading-spin .75s linear infinite}
@keyframes yc-loading-spin{to{transform:rotate(360deg)}}
.yc-image-preview{position:fixed;inset:0;z-index:3000;display:none;place-items:center;padding:30px;background:rgba(9,15,27,.82)}
.yc-image-preview.is-open{display:grid}
.yc-image-preview img{max-width:min(1100px,92vw);max-height:86vh;object-fit:contain}
.yc-image-preview button{position:absolute;top:20px;right:20px;width:38px;height:38px;padding:0;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:rgba(0,0,0,.25);color:#fff;font-size:24px}

/* Device binding QR dialog */
.yc-page-devices #esp32QrModal .yc-qr-card{width:min(900px,calc(100vw - 48px));max-height:calc(100vh - 48px);padding:24px!important;overflow:auto}
.yc-page-devices #esp32QrModal .card-header-inline{align-items:flex-start;margin:0 0 20px;padding:0 0 16px}
.yc-page-devices #esp32QrModal .card-header-inline>div{min-width:0}
.yc-page-devices #esp32QrModal .card-header-inline h3{margin:0;font-size:18px;line-height:1.35}
.yc-page-devices #esp32QrModal .card-header-inline p{margin:6px 0 0;color:var(--yc-muted);font-size:12px;line-height:1.55}
.yc-page-devices #esp32QrModal .yc-qr-layout{display:grid;grid-template-columns:minmax(250px,.85fr) minmax(0,1.15fr);align-items:start;gap:22px}
.yc-page-devices #esp32QrModal .yc-qr-canvas-wrap{min-width:0;display:grid;place-items:center;padding:16px;border:1px solid var(--yc-line);border-radius:8px;background:#f7f9fc}
.yc-page-devices #esp32QrModal .yc-qr-image{display:block;width:min(100%,320px);aspect-ratio:1;object-fit:contain;image-rendering:pixelated;background:#fff}
.yc-page-devices #esp32QrModal .yc-qr-meta{min-width:0;display:grid;gap:12px}
.yc-page-devices #esp32QrModal .yc-qr-meta .field{min-width:0}
.yc-page-devices #esp32QrModal .yc-qr-meta .mono{min-width:0;overflow-wrap:anywhere;padding:10px 12px;border:1px solid var(--yc-line);border-radius:6px;background:#f8f9fb;color:#344158;font-size:12px;line-height:1.55}
.yc-page-devices #esp32QrModal .yc-qr-meta textarea{min-height:76px;font-family:"SFMono-Regular",Consolas,monospace;font-size:11px}
.yc-page-devices #esp32QrModal .yc-qr-meta .inline{display:flex;flex-wrap:wrap;gap:8px}

/* Page hero and metrics */
.ops2-hero{display:grid!important;grid-template-columns:minmax(300px,1.55fr) repeat(3,minmax(145px,.58fr))!important;gap:0!important;margin-bottom:14px!important;padding:0!important;overflow:hidden}
.ops2-hero.has-four{grid-template-columns:minmax(280px,1.35fr) repeat(4,minmax(125px,.5fr))!important}
.ops2-hero-copy{min-height:126px!important;display:flex!important;flex-direction:column;justify-content:center;padding:22px 24px!important;border:0!important;border-radius:0!important;background:linear-gradient(135deg,#f8faff,#eef3ff)!important;color:var(--yc-text)!important}
.ops2-eyebrow{margin:0 0 8px!important;color:var(--yc-blue)!important;font-size:10px!important;font-weight:800!important;letter-spacing:.06em!important}
.ops2-hero-copy h2{margin:0!important;font-size:22px!important;font-weight:750!important}
.ops2-hero-copy p{max-width:650px;margin:7px 0 0!important;color:#788497!important;font-size:11px!important;line-height:1.65!important}
.ops2-metric{min-height:126px!important;display:grid!important;grid-template-columns:34px 1fr!important;grid-template-rows:auto auto 1fr!important;align-content:center!important;gap:2px 9px!important;padding:18px!important;border:0!important;border-left:1px solid var(--yc-line)!important;border-radius:0!important;background:#fff!important}
.ops2-metric>i{grid-row:1/3;width:34px!important;height:34px!important;display:grid!important;place-items:center;border-radius:6px!important;background:#eef2ff!important;color:var(--yc-blue)!important}
.ops2-metric>span{color:#7e8999!important;font-size:10px!important}
.ops2-metric>b{font-size:23px!important;line-height:1.05!important}
.ops2-metric>small{grid-column:1/3;align-self:end;color:#a0a8b4!important;font-size:9px!important}
.ops2-metric.is-success>i{background:#edf9f4!important;color:var(--yc-green)!important}.ops2-metric.is-cyan>i{background:#edf9fb!important;color:var(--yc-cyan)!important}.ops2-metric.is-amber>i{background:#fff7e9!important;color:var(--yc-amber)!important}

/* Dashboard */
.ops-welcome-band{min-height:176px;display:grid!important;grid-template-columns:1.35fr .85fr;gap:20px;margin-bottom:14px!important;padding:25px 28px!important;overflow:hidden}
.ops-welcome-copy{display:flex;flex-direction:column;justify-content:center}
.dashboard-kicker{margin-bottom:9px;color:var(--yc-blue);font-size:10px;font-weight:800;letter-spacing:.06em}
.ops-welcome-copy h2{margin:0;font-size:26px;font-weight:760}
.ops-welcome-copy p{max-width:620px;margin:8px 0 18px;color:#7d8899;font-size:12px;line-height:1.65}
.ops-welcome-actions{display:flex;gap:8px}
.ops-welcome-actions a{min-height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border:1px solid var(--yc-blue);border-radius:6px;background:var(--yc-blue);color:#fff;font-size:11px;font-weight:650}
.ops-welcome-actions a.is-secondary{border-color:var(--yc-line);background:#fff;color:#536075}
.ops-welcome-visual{position:relative;min-height:124px;display:flex;align-items:center;justify-content:center;border-radius:7px;background:linear-gradient(135deg,#f1f5ff,#f7fafc);overflow:hidden}
.ops-welcome-visual img{max-width:240px;max-height:140px;object-fit:contain;filter:saturate(.85)}
.visual-chip{position:absolute;display:flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid rgba(255,255,255,.85);border-radius:6px;background:rgba(255,255,255,.9);color:#536075;font-size:9px;box-shadow:0 7px 20px rgba(32,50,80,.08)}
.visual-chip-online{left:15px;bottom:15px}.visual-chip-release{right:15px;top:15px}.visual-chip-online i{width:6px;height:6px;border-radius:50%;background:var(--yc-green)}
.ops-metric-rail{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}
.ops-metric-item{min-height:108px;display:grid!important;grid-template-columns:34px 1fr!important;grid-template-rows:auto auto auto!important;align-content:center;gap:2px 9px;padding:15px!important;border:1px solid var(--yc-line)!important;border-radius:7px!important;background:#fff!important;box-shadow:var(--yc-shadow)!important;color:var(--yc-text)!important}
.ops-metric-item>i{grid-row:1/3;width:34px;height:34px;display:grid;place-items:center;border-radius:6px;background:#eef2ff;color:var(--yc-blue)}
.ops-metric-item>span{color:#7c8798;font-size:10px}.ops-metric-item>b{font-size:22px;line-height:1.1}.ops-metric-item>small{grid-column:1/3;margin-top:7px;color:#9aa4b3;font-size:9px}
.ops-metric-item.is-cyan>i{background:#edf9fb;color:var(--yc-cyan)}.ops-metric-item.is-green>i{background:#edf9f4;color:var(--yc-green)}.ops-metric-item.is-red>i{background:#fff2f5;color:var(--yc-red)}.ops-metric-item.is-purple>i{background:#f4f1ff;color:var(--yc-purple)}.ops-metric-item.is-amber>i{background:#fff7e9;color:var(--yc-amber)}
.ops-dashboard-grid{display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(300px,.7fr);gap:14px;margin-bottom:14px}
.ops-panel{padding:17px!important}
.ops-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 0 15px;padding:0 0 12px;border-bottom:1px solid var(--yc-line)}
.ops-panel-head span:first-child{display:block;margin-bottom:3px;color:var(--yc-blue);font-size:9px;font-weight:800;letter-spacing:.05em}.ops-panel-head h3{margin:0;font-size:14px}.ops-panel-head p{margin:4px 0 0;color:#96a0ae;font-size:9px}.ops-panel-head strong{font-size:21px}.ops-panel-head strong small{color:#9099a8;font-size:9px;font-weight:500}.ops-panel-head>a{color:var(--yc-blue);font-size:10px}
.ops-bar-chart{height:220px;display:flex;align-items:flex-end;justify-content:space-around;gap:13px;padding:26px 8px 0;border-bottom:1px solid var(--yc-line);background:repeating-linear-gradient(to top,transparent 0,transparent 54px,#eef1f5 55px)}
.ops-bar-column{position:relative;height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px}.ops-bar-column i{width:min(32px,68%);height:var(--bar-height);min-height:8px;border-radius:4px 4px 0 0;background:linear-gradient(180deg,#7590fb,#4f6ef7)}.ops-bar-column small,.ops-bar-value{font-size:9px;color:#8792a3}.ops-bar-value{position:absolute;top:calc(100% - var(--bar-height) - 18px)}
.ops-chart-footer{display:flex;justify-content:space-between;padding-top:10px;color:#909aa9;font-size:9px}.ops-chart-footer span{display:flex;align-items:center;gap:6px}.ops-chart-footer i{width:7px;height:7px;border-radius:2px;background:var(--yc-blue)}
.ops-health-main{display:grid;grid-template-columns:132px 1fr;align-items:center;gap:18px;padding:8px 0 14px}.ops-health-ring{width:126px;height:126px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--yc-green) calc(var(--online-rate)*1%),#edf0f4 0)}.ops-health-ring:before{content:"";position:absolute;width:92px;height:92px;border-radius:50%;background:#fff}.ops-health-ring>div{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center}.ops-health-ring b{font-size:23px}.ops-health-ring span{color:#929cab;font-size:9px}.ops-health-legend{display:grid;gap:9px}.ops-health-legend>div{display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:7px;color:#697588;font-size:10px}.ops-health-legend i{width:7px;height:7px;border-radius:2px}.ops-health-legend i.online{background:var(--yc-green)}.ops-health-legend i.offline{background:#c7ced8}.ops-health-legend i.claimed{background:var(--yc-blue)}.ops-health-legend i.unclaimed{background:var(--yc-amber)}
.ops-claim-progress span{display:flex;justify-content:space-between;margin-bottom:6px;font-size:9px}.ops-claim-progress>i{display:block;height:6px;border-radius:6px;background:#edf0f4;overflow:hidden}.ops-claim-progress u{display:block;height:100%;border-radius:6px;background:var(--yc-blue)}
.ops-device-list,.ops-timeline{display:grid}.ops-device-row{display:grid;grid-template-columns:34px minmax(0,1fr) minmax(80px,.5fr) auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eef1f5}.ops-device-row:last-child{border-bottom:0}.ops-device-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:6px;background:#f2f4f7;color:#97a0ad}.ops-device-icon.is-online{background:#edf9f4;color:var(--yc-green)}.ops-device-copy{min-width:0;display:flex;flex-direction:column}.ops-device-copy b{font-size:11px}.ops-device-copy small{overflow:hidden;color:#98a1ae;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.ops-device-owner{overflow:hidden;color:#697588;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.ops-device-row em{display:flex;align-items:center;gap:5px;color:#9ba4b1;font-size:9px;font-style:normal}.ops-device-row em i{width:6px;height:6px;border-radius:50%;background:#c7ced8}.ops-device-row em.is-online{color:var(--yc-green)}.ops-device-row em.is-online i{background:var(--yc-green)}
.ops-timeline-row{display:grid;grid-template-columns:18px 1fr;gap:8px;min-height:48px}.ops-timeline-axis{position:relative;display:flex;justify-content:center}.ops-timeline-axis:after{content:"";position:absolute;top:13px;bottom:-2px;width:1px;background:#e5e9ef}.ops-timeline-row:last-child .ops-timeline-axis:after{display:none}.ops-timeline-axis i{position:relative;z-index:1;width:7px;height:7px;margin-top:5px;border:2px solid #aeb7c5;border-radius:50%;background:#fff}.ops-timeline-axis i.is-live{border-color:var(--yc-blue);background:var(--yc-blue)}.ops-timeline-row>div{display:flex;flex-direction:column}.ops-timeline-row b{font-size:11px}.ops-timeline-row small{margin-top:3px;color:#9ba4b2;font-size:9px}
.ops-task-dock{display:grid!important;grid-template-columns:250px 1fr;gap:18px;padding:17px!important}.ops-task-copy>span{color:var(--yc-blue);font-size:9px;font-weight:800}.ops-task-copy h3{margin:3px 0 4px;font-size:15px}.ops-task-copy p{margin:0;color:#929baa;font-size:9px}.ops-task-dock nav{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.ops-task-dock nav a{display:grid;grid-template-columns:32px 1fr 12px;align-items:center;gap:9px;padding:11px;border:1px solid var(--yc-line);border-radius:6px}.ops-task-dock nav>a>i{width:32px;height:32px;display:grid;place-items:center;border-radius:6px;background:#edf9f4;color:var(--yc-green)}.ops-task-dock nav span{display:flex;flex-direction:column;font-size:10px;font-weight:700}.ops-task-dock nav small{margin-top:2px;color:#9aa3b0;font-size:8px;font-weight:500}.ops-task-dock nav em{color:#b1bac6;font-size:9px}.ops-task-dock nav a.is-cyan>i{background:#edf9fb;color:var(--yc-cyan)}.ops-task-dock nav a.is-amber>i{background:#fff7e9;color:var(--yc-amber)}.ops-task-dock nav a.is-purple>i{background:#f4f1ff;color:var(--yc-purple)}
.ops-empty-state,.vehicle-empty-state,.ios-empty-state{min-height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#a0a9b7;font-size:11px}
.ops-empty-state i,.vehicle-empty-state i,.ios-empty-state i{font-size:22px;color:#c4cbd5}

/* Users and account management */
.user-group-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.user-group-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--yc-line);border-radius:7px;background:#fafbfc}.user-group-summary{min-width:0;display:flex;flex-direction:column}.user-group-summary b{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.user-group-summary span{margin-top:3px;color:#98a1af;font-size:9px}
.user-list{display:grid;gap:8px}.user-row-card{padding:13px;border:1px solid var(--yc-line);border-radius:7px;background:#fff;transition:.15s ease}.user-row-card:hover{border-color:#ccd5e5;box-shadow:0 6px 18px rgba(39,55,83,.05)}.user-row-topline{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(360px,1.15fr) auto;align-items:center;gap:14px}.user-row-identity{min-width:0;display:flex;align-items:center;gap:11px}.user-row-avatar{flex:0 0 40px;width:40px;height:40px;border-radius:50%;object-fit:cover}.user-row-avatar-empty{display:grid;place-items:center;background:#eef2ff;color:var(--yc-blue);font-size:11px;font-weight:800}.user-row-identity>div{min-width:0}.user-row-identity span{color:#9aa4b3;font-size:9px}.user-row-identity h4{overflow:hidden;margin:2px 0;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.user-row-identity p{margin:0;color:#7f8a9a;font-size:10px}.user-row-quick{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.yc-row-top-actions{justify-content:flex-end;flex-wrap:nowrap;gap:7px}.yc-page-users .yc-row-top-actions>.tag{height:var(--yc-button-height);min-height:var(--yc-button-height);padding:0 10px}
.admin-account-list{display:grid;gap:9px}.admin-account-card,.admin-account-row{display:grid;grid-template-columns:minmax(200px,1fr) minmax(260px,1.2fr) auto;align-items:center;gap:14px;padding:14px;border:1px solid var(--yc-line);border-radius:7px;background:#fff}.admin-account-main{display:flex;align-items:center;gap:10px}.admin-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#eef2ff;color:var(--yc-blue);font-weight:800}.admin-account-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.permission-grid,.permission-switch-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}.permission-switch{min-height:44px;display:flex;align-items:center;gap:8px;padding:9px;border:1px solid var(--yc-line);border-radius:6px;background:#fafbfc;font-size:10px}
.yc-page-admins .admin-account-list{grid-template-columns:minmax(0,1fr);align-items:stretch;gap:10px}
.yc-page-admins .admin-account-row{display:block;min-width:0;margin:0;padding:0;border:0;background:transparent}
.yc-page-admins .admin-account-card{display:block;width:100%;min-width:0;min-height:112px;padding:16px;border-radius:8px}
.yc-page-admins .admin-account-main{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:64px}
.yc-page-admins .admin-account-main>div:nth-child(2){min-width:0}
.yc-page-admins .admin-account-main h4{margin:3px 0;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.yc-page-admins .admin-account-main p{margin:0;color:#7c8798;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.yc-page-admins .admin-account-main .yc-row-top-actions{justify-content:flex-end;max-width:100%;white-space:nowrap}
.yc-page-admins .admin-account-main .admin-delete-form{display:inline-flex;margin:0}

/* Devices, firmware and protocol */
.ops2-command-bar,.ops2-protocol-toolbar{display:flex!important;align-items:center;justify-content:space-between;gap:12px}.ops2-command-bar>form{flex:1}.ops2-data-panel{padding:0!important;overflow:hidden}.ops2-data-panel>.ops-section-title,.ops2-data-panel>.work-card-head,.ops2-data-panel>.card-header-inline{margin:0!important;padding:15px 17px!important}.ops2-data-panel>.ops2-filter-row{margin:13px!important}.ops2-data-panel>.table-wrap,.ops2-data-panel>.ops2-table-wrap{border:0;border-top:1px solid var(--yc-line);border-radius:0}.ops2-table{min-width:980px}
.firmware-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.protocol-groups{display:grid;gap:10px}.protocol-group,.protocol-card,.ops2-protocol-item{padding:14px;border:1px solid var(--yc-line);border-radius:7px;background:#fff}.protocol-head{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:12px;margin-bottom:12px}.protocol-summary-chips{display:flex;gap:6px;flex-wrap:wrap}.bms-raw-hex,.payload-window,.mqtt-stream-window,.ios-record-log{padding:12px;border:1px solid #dfe5ed;border-radius:6px;background:#f7f9fc;color:#3f4c61;font-family:"SFMono-Regular",Consolas,monospace;font-size:10px;line-height:1.65;white-space:pre-wrap;word-break:break-word}.protocol-formula{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;min-width:0}.protocol-formula>.field{min-width:0}
.yc-page-protocols .protocol-sample-grid{width:100%;display:grid;grid-template-columns:minmax(180px,.8fr) repeat(3,minmax(0,1.2fr));align-items:stretch;gap:12px}
.yc-page-protocols .protocol-sample-grid>*{min-width:0}
.yc-page-protocols .protocol-sample-grid textarea{width:100%;min-height:148px;font-family:"SFMono-Regular",Consolas,monospace;font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.ops2-parser-layout,.parser-layout{display:grid!important;grid-template-columns:minmax(320px,.82fr) minmax(0,1.18fr);gap:14px}.ops2-parser-input,.result-card{padding:18px;border:1px solid var(--yc-line);border-radius:8px;background:#fff;box-shadow:var(--yc-shadow)}.parser-textarea{min-height:260px!important;font-family:"SFMono-Regular",Consolas,monospace!important}.parser-detail-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px}.parser-detail-columns>.card{min-width:0;margin:0!important}
.firmware-user-checklist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:340px;overflow:auto}.firmware-user-option{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid var(--yc-line);border-radius:6px;background:#fff}.firmware-user-option.is-selected{border-color:#b7c4fa;background:#f4f6ff}.firmware-user-avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#eef2ff;color:var(--yc-blue);font-size:10px}.firmware-user-meta{min-width:0;display:flex;flex-direction:column}.firmware-user-meta b{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.firmware-user-meta small{color:#98a2b0;font-size:8px}.firmware-target-panel,.firmware-target-edit{display:grid;gap:11px}.firmware-target-preview{display:flex;align-items:center;justify-content:space-between;padding:10px;border:1px solid var(--yc-line);border-radius:6px;background:#fafbfc}

/* User detail and monitoring */
.user-detail-profile,.user-device-summary,.device-bind-summary{display:grid;gap:14px}.user-detail-head{display:flex;align-items:center;gap:13px}.user-detail-avatar{width:54px;height:54px;border-radius:50%;object-fit:cover}.user-detail-avatar-empty{display:grid;place-items:center;background:#eef2ff;color:var(--yc-blue);font-weight:800}.user-status-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.user-status-summary>div{min-width:0;padding:11px;border:1px solid var(--yc-line);border-radius:6px;background:#fafbfc}.mqtt-summary-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.mqtt-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.mqtt-summary-card{min-width:0;min-height:108px;display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--yc-line);border-radius:6px;background:#fafbfc}.mqtt-summary-card b,.mqtt-summary-card small{min-width:0;overflow-wrap:anywhere}.mqtt-side-panel{display:grid;gap:10px}.vehicle-location-main{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.5fr);gap:14px}.vehicle-map-frame{min-height:360px;border:1px solid var(--yc-line);border-radius:7px;overflow:hidden;background:#eef2f5}.vehicle-map-frame iframe{width:100%;height:100%;min-height:360px;border:0}.vehicle-location-stats{display:grid;gap:8px}.vehicle-location-coordinate,.vehicle-location-meta{padding:11px;border:1px solid var(--yc-line);border-radius:6px;background:#fafbfc}.history-point-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.history-point-panel{min-width:0;min-height:108px;display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--yc-line);border-radius:6px;background:#fafbfc}.command-history-panel{margin-top:14px}.command-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.command-actions form{display:flex;margin:0}.command-actions>form>button{min-width:148px}
.history-point-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);align-items:start;gap:14px}.history-point-actions{min-width:0;display:grid;gap:11px;padding:13px;border:1px solid var(--yc-line);border-radius:7px;background:#fafbfc}.history-point-purge{display:flex;justify-content:flex-start}.history-cleanup-settings{min-width:0}.history-cleanup-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.72fr) auto;align-items:end;gap:10px}.history-cleanup-options>.toggle-row{min-height:42px;align-self:center;line-height:1.45}.history-cleanup-options>.field>span{color:#566276;font-size:11px;font-weight:650;line-height:1.45}.history-cleanup-options>button{min-width:130px}.history-point-last-run{padding-top:9px;border-top:1px solid var(--yc-line);font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.user-device-form{display:block}.user-device-fields-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.user-device-fields-grid>.field{min-width:0}.user-device-form>button{width:100%;margin-top:12px}.user-inline-edit{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.user-status-summary>div>span{color:#929cab;font-size:9px}.user-status-summary>div>b{display:block;min-width:0;margin-top:4px;font-size:11px;overflow-wrap:anywhere}.user-status-summary>div>small{color:#98a2b0;font-size:9px;overflow-wrap:anywhere}.yc-user-detail-modal-body{display:grid;gap:14px;padding:18px}.user-inline-edit .action-row{grid-column:1/-1;margin-top:0}.user-row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding-top:4px}.user-row-actions form{display:flex;margin:0}.user-row-actions .user-action-button{min-width:104px}.yc-copy-row{display:flex;align-items:center;gap:8px}.yc-copy-value{min-width:0;flex:1;overflow:hidden;padding:9px 10px;border:1px solid var(--yc-line);border-radius:6px;background:#f8f9fb;text-overflow:ellipsis;white-space:nowrap}
.network-switch-card{display:grid;gap:14px}.network-state-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.network-state-grid>div{min-width:0;padding:13px 14px;border:1px solid var(--yc-line);border-radius:7px;background:#fafbfc}.network-state-grid>div.is-active{border-color:#b9e4d2;background:#f3fbf7}.network-state-grid>div.is-offline{border-color:#f0d3d8;background:#fff8f9}.network-state-grid span,.network-state-grid small{display:block;color:var(--yc-muted);font-size:10px}.network-state-grid b{display:flex;align-items:center;gap:8px;margin:5px 0;color:var(--yc-text);font-size:15px}.network-state-grid b i{color:var(--yc-blue)}.network-switch-form{display:grid;gap:12px}.network-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.network-mode-options label{min-width:0;cursor:pointer}.network-mode-options input{position:absolute;opacity:0;pointer-events:none}.network-mode-options label>span{min-height:66px;display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;column-gap:10px;padding:11px 13px;border:1px solid var(--yc-line);border-radius:7px;background:#fff;transition:.16s ease}.network-mode-options label>span>i{grid-row:1/3;align-self:center;color:var(--yc-muted);font-size:18px;text-align:center}.network-mode-options label>span>b{align-self:end;font-size:12px}.network-mode-options label>span>small{align-self:start;color:var(--yc-muted);font-size:9px}.network-mode-options input:checked+span{border-color:#aebdfb;background:#f3f5ff;box-shadow:inset 3px 0 0 var(--yc-blue)}.network-mode-options input:checked+span>i{color:var(--yc-blue)}.network-wifi-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid var(--yc-line);border-radius:7px;background:#f8fafc}.network-wifi-fields[hidden]{display:none}.network-switch-footer{display:flex;align-items:center;justify-content:space-between;gap:14px}.network-switch-footer p{max-width:680px;margin:0!important;line-height:1.55}.network-switch-footer button{flex:0 0 auto}

/* Content, DIY and iOS */
.content-module-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:10px}.yc-modern-shell button.content-module-card{width:100%;height:auto;min-width:0;min-height:76px;display:grid!important;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;align-items:center!important;justify-content:initial!important;gap:3px 11px;padding:12px 14px!important;border:1px solid var(--yc-line)!important;border-radius:7px!important;background:#fff!important;color:var(--yc-text)!important;text-align:left;white-space:normal}.yc-modern-shell button.content-module-card:hover{border-color:#bdc9fa!important;background:#f9faff!important;transform:translateY(-1px)}.yc-modern-shell button.content-module-card.is-active{border-color:#bfcafb!important;background:#f3f6ff!important;box-shadow:inset 3px 0 0 var(--yc-blue)!important}.yc-modern-shell button.content-module-card>i{grid-column:1;grid-row:1/3;width:36px;height:36px;display:grid;place-items:center;border-radius:7px;background:#eef2ff;color:var(--yc-blue);font-size:14px}.yc-modern-shell button.content-module-card>strong{min-width:0;grid-column:2;grid-row:1;align-self:end;color:#26334a;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.yc-modern-shell button.content-module-card>small{min-width:0;grid-column:2;grid-row:2;align-self:start;color:#7f8a9b;font-size:10px;line-height:1.4;overflow-wrap:anywhere}.content-module-panel{display:none}.content-module-panel.is-active{display:block}.content-module-panels{margin-top:14px}.content-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;padding-bottom:12px;border-bottom:1px solid var(--yc-line)}
.app-diy-header,.app-diy-type-tabs,.app-diy-library,.app-diy-groups-panel{padding:15px!important}.app-diy-type-tabs{display:flex;gap:6px;overflow-x:auto}.app-diy-type-tabs a{flex:0 0 auto;min-height:34px;display:flex;align-items:center;padding:0 11px;border:1px solid var(--yc-line);border-radius:6px;color:#6d798b;font-size:10px}.app-diy-type-tabs a.is-active{border-color:#c7d1fc;background:#eef2ff;color:var(--yc-blue)}.app-diy-theme-grid,.vehicle-theme-grid,.app-diy-builtin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.app-diy-tile,.vehicle-theme-tile,.app-diy-builtin-card{overflow:hidden;border:1px solid var(--yc-line);border-radius:7px;background:#fff}.app-diy-art,.vehicle-theme-art{aspect-ratio:16/10;display:grid;place-items:center;background:#f1f3f7;overflow:hidden}.app-diy-art img,.vehicle-theme-art img{width:100%;height:100%;object-fit:cover}.app-diy-theme-summary,.vehicle-theme-edit,.app-diy-edit{padding:11px}.app-diy-group-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.app-diy-group-card,.app-diy-group-row{padding:12px;border:1px solid var(--yc-line);border-radius:7px;background:#fff}
.ios-release-console{padding:0!important;overflow:hidden}.ios-release-console-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;border-bottom:1px solid var(--yc-line)}.ios-release-tabs{display:flex;gap:4px;padding:0 17px;border-bottom:1px solid var(--yc-line);overflow-x:auto}.ios-release-tabs button{min-height:38px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#748094!important}.ios-release-tabs button.is-active{color:var(--yc-blue)!important;box-shadow:inset 0 -2px 0 var(--yc-blue)!important}.ios-workspace{padding:17px}.ios-stage-panel{display:none}.ios-stage-panel.is-active{display:block}.ios-stage-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.ios-identity-grid,.ios-record-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ios-identity-card,.ios-record-card{padding:13px;border:1px solid var(--yc-line);border-radius:7px;background:#fff}.ios-record-meta{display:grid;gap:5px}.ios-record-status{display:flex;align-items:center;justify-content:space-between}.ios-app-info,.ios-identity-user{display:flex;align-items:center;gap:10px}.ios-app-icon,.ios-app-placeholder,.ios-table-app-placeholder{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:#eef2ff;color:var(--yc-blue);object-fit:cover}

/* Responsive */
@media (max-width:1280px){
  .ops-metric-rail{grid-template-columns:repeat(3,1fr)}
  .ops2-hero.has-four{grid-template-columns:minmax(280px,1.2fr) repeat(2,1fr)}
  .ops2-hero.has-four .ops2-hero-copy{grid-row:span 2}
  .ops2-hero{grid-template-columns:minmax(280px,1.25fr) repeat(2,1fr)}
  .ops2-hero .ops2-metric:last-child{grid-column:2/4}
  .user-group-list,.app-diy-theme-grid,.vehicle-theme-grid,.app-diy-builtin-grid{grid-template-columns:repeat(3,1fr)}
  .content-module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ops-task-dock{grid-template-columns:210px 1fr}.ops-task-dock nav{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:1000px){
  .ops-dashboard-grid{grid-template-columns:1fr}
  .user-row-topline{grid-template-columns:minmax(0,1fr);gap:10px}.user-row-quick,.yc-row-top-actions{grid-column:1;grid-row:auto;justify-content:flex-start}
  .user-status-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mqtt-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .protocol-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}.protocol-formula{grid-template-columns:repeat(3,minmax(0,1fr))}
  .permission-grid,.permission-switch-grid{grid-template-columns:repeat(3,1fr)!important}
  .firmware-user-checklist,.ios-identity-grid,.ios-record-list,.app-diy-group-list{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:900px){
  :root{--yc-sidebar:224px}
  .yc-modern-shell .main-sidebar{transform:translateX(-100%);width:var(--yc-sidebar)!important;box-shadow:14px 0 35px rgba(26,39,62,.16)!important}
  .yc-modern-shell .main-header{left:0!important}
  .yc-modern-shell .content-wrapper,.yc-modern-shell .main-footer{margin-left:0!important}
  .yc-modern-shell .yc-mobile-menu-open .main-sidebar{transform:translateX(0)}
  .yc-modern-shell .yc-sidebar-mask{position:fixed;inset:0;z-index:1031;display:block;border:0;background:rgba(18,27,43,.42);opacity:0;pointer-events:none;transition:.2s ease}
  .yc-modern-shell .yc-mobile-menu-open .yc-sidebar-mask{opacity:1;pointer-events:auto}
  .yc-sidebar-collapsed .brand-text,.yc-sidebar-collapsed .yc-sidebar-section,.yc-sidebar-collapsed .yc-sidebar-link-label,.yc-sidebar-collapsed .yc-sidebar-account>span:nth-child(2),.yc-sidebar-collapsed .yc-sidebar-account>a{display:initial!important}
  .yc-sidebar-collapsed .brand-link{justify-content:flex-start;padding:0 15px!important}.yc-sidebar-collapsed .yc-sidebar-link{justify-content:flex-start;padding:0 11px}.yc-sidebar-collapsed .yc-sidebar-account{display:grid!important;justify-content:normal;padding:10px!important}
  .yc-shell-page-intro{display:block;padding-top:16px}
  .yc-shell-page-identity{padding-bottom:10px}
  .yc-shell-page-controls{overflow:hidden}
  .yc-shell-context-nav{width:100%}
  .ops2-hero,.ops2-hero.has-four{grid-template-columns:repeat(2,1fr)!important}
  .ops2-hero-copy,.ops2-hero.has-four .ops2-hero-copy{grid-column:1/3;grid-row:auto}
  .ops2-hero .ops2-metric:last-child{grid-column:auto}
  .ops-welcome-band{grid-template-columns:1fr}.ops-welcome-visual{display:none}
  .ops-task-dock{grid-template-columns:1fr}
  .content-module-grid{grid-template-columns:repeat(2,1fr)}
  .vehicle-location-main,.mqtt-summary-layout,.ops2-parser-layout,.parser-layout{grid-template-columns:1fr}
  .parser-detail-columns{grid-template-columns:1fr}
  .user-device-fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .network-switch-footer{align-items:stretch;flex-direction:column}.network-switch-footer button{width:100%}
  .yc-page-protocols .protocol-sample-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .yc-page-protocols .protocol-sample-grid>.field:first-child{grid-column:1/-1}
  .yc-page-protocols .protocol-head{grid-template-columns:repeat(2,minmax(0,1fr))}
  .yc-page-protocols .protocol-head>.field:last-child{grid-column:1/-1}
  .yc-page-admins .admin-account-list{grid-template-columns:minmax(0,1fr)}
  .history-point-layout{grid-template-columns:minmax(0,1fr)}
  .history-cleanup-options{grid-template-columns:minmax(0,1fr) minmax(180px,.7fr) auto}
}

@media (max-width:680px){
  .yc-modern-login{padding:0!important;background:#fff!important}
  .yc-modern-login .login-screen{width:100%!important}
  .yc-modern-login .login-panel{width:100%!important;min-height:100vh!important;grid-template-columns:1fr!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  .yc-modern-login .login-brand{min-height:215px!important;padding:24px!important;background:linear-gradient(145deg,#e7f3f2,#d7eae8)!important}
  .yc-modern-login .login-brand-copy{margin-top:25px}.yc-modern-login .login-brand h1{max-width:100%;font-size:23px!important;line-height:1.35!important}.yc-modern-login .login-brand p{margin:10px 0 0!important;font-size:12px!important}.login-brand-features,.login-brand-foot{display:none!important}
  .yc-modern-login .login-form{padding:34px 24px 40px;justify-content:flex-start}.yc-modern-login .login-title{font-size:25px}.yc-modern-login .login-hint{margin-bottom:24px}
  .yc-top-status,.yc-top-admin,.yc-top-logout{display:none!important}.yc-topbar-right{gap:2px}.yc-topbar-title span,.yc-topbar-title i{display:none}
  .yc-modern-shell .yc-shell-container{padding-right:11px;padding-left:11px}
  .yc-modern-shell .content{padding-top:11px!important}
  .yc-shell-page-icon{width:34px;height:34px;flex-basis:34px}.yc-page-copy h1{font-size:19px!important}.yc-page-copy p{font-size:11px!important}
  .yc-modern-shell .card{padding:14px!important;margin-bottom:10px!important}
  .ops2-hero,.ops2-hero.has-four{grid-template-columns:1fr 1fr!important;margin-bottom:10px!important}.ops2-hero-copy,.ops2-hero.has-four .ops2-hero-copy{grid-column:1/3;min-height:105px!important;padding:18px!important}.ops2-hero-copy h2{font-size:18px!important}.ops2-hero-copy p,.ops-welcome-copy p{white-space:normal!important;overflow-wrap:anywhere}.ops2-metric{min-height:100px!important;padding:13px!important}.ops2-metric>b{font-size:19px!important}.ops2-metric>small{display:none}
  .ops-welcome-band{min-height:auto;margin-bottom:10px!important;padding:19px!important}.ops-welcome-copy h2{font-size:21px}.ops-welcome-copy p{margin-bottom:14px}
  .ops-metric-rail{grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:10px}.ops-metric-item{min-height:92px;padding:12px!important}.ops-metric-item>b{font-size:19px}
  .ops-dashboard-grid{gap:10px;margin-bottom:10px}.ops-panel{padding:14px!important}.ops-bar-chart{height:190px}.ops-health-main{grid-template-columns:110px 1fr}.ops-health-ring{width:104px;height:104px}.ops-health-ring:before{width:76px;height:76px}
  .ops-task-dock{padding:14px!important}.ops-task-dock nav{grid-template-columns:1fr 1fr}
  .ops2-filter-row{align-items:stretch!important;flex-direction:column}.ops2-search{min-width:0;max-width:none}.ops2-filter-chips{padding-bottom:2px}
  .form-grid,.admin-form-grid,.protocol-fields,.login-bubble-fields,.iot-account-fields,.form-grid.compact-form{grid-template-columns:1fr!important}.protocol-formula{grid-template-columns:repeat(2,minmax(0,1fr))}.field-span-2{grid-column:auto}
  .action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  .action-row>button,.action-row>a,.action-row>form,.action-row>form>button{width:100%;min-width:0}
  .login-card-options{align-items:stretch;flex-wrap:wrap}.login-card-options>label{flex:1 1 150px}.login-card-options>button{flex:0 0 auto}
  .iot-query-tester-form>button{width:100%}
  .result-grid,.info-grid,.kv-grid,.status-grid,.history-point-grid{grid-template-columns:repeat(2,1fr)}
  .user-group-list{grid-template-columns:1fr}.app-diy-theme-grid,.vehicle-theme-grid,.app-diy-builtin-grid,.content-module-grid,.app-diy-group-list{grid-template-columns:1fr 1fr}
  .ops-section-title,.work-card-head,.card-header-inline{align-items:flex-start!important;flex-wrap:wrap}.ops-section-title>div:first-child,.work-card-head>div:first-child,.card-header-inline>div:first-child,.yc-page-toolbar>div:first-child{width:100%}.yc-page-toolbar-actions{width:100%;max-width:100%;flex:1 0 100%;justify-content:flex-start}.yc-page-toolbar-actions>button,.yc-page-toolbar-actions>a{flex:0 0 auto}.user-groups-card,.user-management-card{min-width:0;overflow:hidden}.user-group-card{width:100%;min-width:0;flex-wrap:wrap}.user-group-card .yc-list-row-actions{width:100%;justify-content:flex-end}
  .user-row-topline{grid-template-columns:1fr}.user-row-quick,.yc-row-top-actions{grid-column:1;grid-row:auto;justify-content:flex-start}.yc-row-top-actions{flex-wrap:wrap}
  .admin-account-card,.admin-account-row{grid-template-columns:1fr}.admin-account-fields{grid-template-columns:1fr}.permission-grid,.permission-switch-grid{grid-template-columns:repeat(2,1fr)!important}
  .user-status-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .user-device-summary{grid-template-columns:minmax(0,1fr)}
  .history-cleanup-options{grid-template-columns:minmax(0,1fr)}
  .history-cleanup-options>.toggle-row{min-height:38px}
  .history-cleanup-options>button{width:100%}
  .firmware-user-checklist,.ios-identity-grid,.ios-record-list{grid-template-columns:1fr}.firmware-fields-grid,.user-device-fields-grid,.user-inline-edit{grid-template-columns:1fr}
  .network-state-grid,.network-mode-options,.network-wifi-fields{grid-template-columns:1fr}
  .iot-account-summary,.iot-traffic-grid{grid-template-columns:1fr}.iot-query-tester-form{align-items:stretch;flex-direction:column}
  .yc-admin-modal,.yc-qr-modal{align-items:flex-end;padding:0}.yc-admin-dialog,.yc-qr-card{width:100%;max-height:92vh;border-radius:12px 12px 0 0!important}.yc-admin-dialog.is-wide{width:100%}
  .yc-page-devices #esp32QrModal .yc-qr-card{max-height:94vh;padding:18px!important}
  .yc-page-devices #esp32QrModal .yc-qr-layout{grid-template-columns:minmax(0,1fr);gap:14px}
  .yc-page-devices #esp32QrModal .yc-qr-canvas-wrap{padding:12px}
  .yc-page-devices #esp32QrModal .yc-qr-image{width:min(68vw,260px)}
  .yc-page-protocols .protocol-sample-grid{grid-template-columns:minmax(0,1fr)}
  .yc-page-protocols .protocol-sample-grid>.field:first-child{grid-column:auto}
  .yc-page-protocols .protocol-head{grid-template-columns:minmax(0,1fr)}
  .yc-page-protocols .protocol-head>.field:last-child{grid-column:auto}
  .yc-page-content .content-module-grid{grid-template-columns:minmax(0,1fr)}
  .yc-page-admins .admin-account-main{grid-template-columns:38px minmax(0,1fr);gap:10px}
  .yc-page-admins .admin-account-main .yc-row-top-actions{grid-column:2;justify-content:flex-start}
  .ops-device-row{grid-template-columns:34px minmax(0,1fr) auto}.ops-device-owner{display:none}
  .yc-modern-shell .main-footer{display:none}
}

@media (max-width:420px){
  .ops-metric-rail{grid-template-columns:1fr 1fr}.ops-metric-item{grid-template-columns:30px 1fr!important}.ops-metric-item>i{width:30px;height:30px}.ops-metric-item>small{display:none}
  .ops-task-dock nav,.user-group-list,.app-diy-theme-grid,.vehicle-theme-grid,.app-diy-builtin-grid,.content-module-grid,.app-diy-group-list{grid-template-columns:1fr}
  .result-grid,.info-grid,.kv-grid,.status-grid,.history-point-grid,.user-status-summary,.mqtt-summary-grid{grid-template-columns:1fr}
  .permission-grid,.permission-switch-grid{grid-template-columns:1fr!important}
  .action-row{grid-template-columns:1fr}
  .login-form-meta{align-items:flex-start;flex-direction:column;gap:8px}.login-form-meta>span{display:none}
}

.yc-modern-db{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--yc-bg)}
.db-screen{width:100%;display:grid;place-items:center}.db-card{width:min(560px,100%);padding:28px;border:1px solid var(--yc-line);border-radius:9px;background:#fff;box-shadow:var(--yc-shadow)}.db-card h1{margin:0 0 10px;font-size:24px}.db-card p{line-height:1.7}.db-card .error{padding:11px;border:1px solid #f3cbd3;border-radius:6px;background:#fff5f7;color:#c83e56}.db-actions{display:flex;justify-content:flex-end;margin-top:16px}.db-actions a{min-height:36px;display:inline-flex;align-items:center;padding:0 13px;border-radius:6px;background:var(--yc-blue);color:#fff;font-size:12px;font-weight:700}
.iot-account-row {
  border-left: 4px solid #2563eb;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.iot-account-row.iot-provider-zhengzhou {
  border-left-color: #0891b2;
}

.iot-account-row [data-iot-provider-field][hidden] {
  display: none !important;
}

.iot-provider-fixed {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #bfd0ea;
  border-radius: 9px;
  color: #245aa5;
  background: #f5f8fd;
}

.iot-provider-fixed i {
  width: 20px;
  text-align: center;
}

.iot-provider-fixed b {
  font-size: 14px;
}

.iot-provider-fixed span {
  margin-left: auto;
  color: #64809f;
  font-size: 12px;
}

.iot-provider-fixed.is-zhengzhou {
  border-color: #a9d9df;
  color: #08758a;
  background: #f1fbfc;
}

.iot-provider-fixed.is-zhengzhou span {
  color: #4e8792;
}

.content-panel-actions [data-iot-account-add="5giot"] {
  border-color: #bfd0ea;
  color: #245aa5;
  background: #f5f8fd;
}

.content-panel-actions .iot-add-zhengzhou {
  border-color: #a9d9df;
  color: #08758a;
  background: #f1fbfc;
}

@media (max-width: 760px) {
  .iot-account-row {
    border-left-width: 3px;
  }

  .iot-account-row .iot-account-fields > .field {
    grid-column: 1 / -1;
  }
}
