/* ==========================================================================
   claude.css — Claude 皮肤（由 tokens.css + app.css 作用域化生成）
   全部规则限定在 html[data-theme="claude"] 下，classic 不受任何影响。
   ========================================================================== */
html[data-theme="claude"]{--bg: #FAF9F5;
  --bg-sidebar: #F0EEE6;
  --surface: #FFFFFF;
  --surface-2: #F7F5EF;
  --surface-3: #FBFAF7;

  
  --text: #1F1E1D;
  --text-soft: #46423C;
  --text-muted: #6F6A61;
  --text-faint: #969085;

  
  --border: #E6E1D7;
  --border-strong: #D8D2C4;
  --border-subtle: #EFEBE3;

  
  --accent: #C96442;
  --accent-hover: #B55436;
  --accent-press: #A44A2F;
  --accent-soft: #F4E6DF;
  --accent-soft-2: #FAF0EB;
  --focus-ring: rgba(201, 100, 66, .20);

  
  --success: #3F7D5A;
  --success-bg: #EDF3EE;
  --warning: #A9761F;
  --warning-bg: #F8F1E2;
  --danger: #B4433A;
  --danger-bg: #F9ECEA;
  --info: #4B6B7C;
  --info-bg: #EDF2F4;

  
  --chart-1: #C96442;
  --chart-2: #4B6B7C;
  --chart-3: #A9761F;
  --chart-4: #7A6A8A;

  
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  
  --shadow: 0 1px 2px rgba(31, 30, 29, .05);
  --shadow-pop: 0 10px 30px -8px rgba(31, 30, 29, .18), 0 2px 6px rgba(31, 30, 29, .06);

  
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 48px;

  
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", Menlo, monospace;

  
  --sidebar-w: 242px;
  --content-max: 1320px;
  --control-h: 38px;

  
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .15s var(--ease);
  --t: .24s var(--ease);

  --z-drawer: 60;
  --z-toast: 90;
  --z-modal: 100;}
@media (prefers-reduced-motion: reduce){
html[data-theme="claude"]{--t-fast: none; --t: none;}
html[data-theme="claude"] *, html[data-theme="claude"] *::before, html[data-theme="claude"] *::after{animation-duration: .001ms !important; transition-duration: .001ms !important;}
}

html[data-theme="claude"] *, html[data-theme="claude"] *::before, html[data-theme="claude"] *::after{box-sizing: border-box;}
html[data-theme="claude"] *{margin: 0; padding: 0;}
html[data-theme="claude"], html[data-theme="claude"] body{height: 100%;}
html[data-theme="claude"]{-webkit-text-size-adjust: 100%;}
html[data-theme="claude"] body{font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;}
html[data-theme="claude"] [hidden]{display: none !important;}
html[data-theme="claude"] a{color: var(--accent); text-decoration: none;}
html[data-theme="claude"] a:hover{color: var(--accent-hover);}
html[data-theme="claude"] button, html[data-theme="claude"] input, html[data-theme="claude"] select, html[data-theme="claude"] textarea{font: inherit; color: inherit;}
html[data-theme="claude"] button{background: none; border: none; cursor: pointer;}
html[data-theme="claude"] svg{width: 18px; height: 18px; flex: none;}
html[data-theme="claude"] h1, html[data-theme="claude"] h2, html[data-theme="claude"] h3, html[data-theme="claude"] h4{font-weight: 500; line-height: 1.35;}
html[data-theme="claude"] :focus-visible{outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);}
html[data-theme="claude"] ::selection{background: var(--accent-soft); color: var(--text);}
html[data-theme="claude"] ::-webkit-scrollbar{width: 10px; height: 10px;}
html[data-theme="claude"] ::-webkit-scrollbar-thumb{background: #DDD7CA; border: 3px solid transparent; background-clip: content-box; border-radius: 999px;}
html[data-theme="claude"] ::-webkit-scrollbar-thumb:hover{background: #CBC4B4; background-clip: content-box;}
html[data-theme="claude"] ::-webkit-scrollbar-track{background: transparent;}
html[data-theme="claude"] .mono{font-family: var(--font-mono); font-size: 12.5px; letter-spacing: -.01em;}
html[data-theme="claude"] .muted{color: var(--text-muted);}
html[data-theme="claude"] .num{font-variant-numeric: tabular-nums;}
html[data-theme="claude"] .ta-r{text-align: right;}
html[data-theme="claude"] .sr-only{position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;}
html[data-theme="claude"] .login-wrap{position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 560px at 12% 6%, #F6EFE7 0%, transparent 62%),
    radial-gradient(760px 520px at 88% 96%, #F1EDE3 0%, transparent 58%),
    var(--bg);
  overflow: auto;}
html[data-theme="claude"] body.locked{overflow: hidden;}
html[data-theme="claude"] .login-card{width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 34px 28px;}
html[data-theme="claude"] .login-logo{width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 20px;}
html[data-theme="claude"] .login-logo svg{width: 22px; height: 22px;}
html[data-theme="claude"] .login-title{font-family: var(--font-display);
  font-size: 25px; letter-spacing: -.01em; color: var(--text);}
html[data-theme="claude"] .login-sub{font-size: 13px; color: var(--text-muted); margin: 6px 0 26px;}
html[data-theme="claude"] .login-card .field{margin-bottom: 16px;}
html[data-theme="claude"] .login-remember{display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-muted);
  margin: 2px 0 16px; cursor: pointer; user-select: none;}
html[data-theme="claude"] .login-remember input{accent-color: var(--accent); width: 14px; height: 14px;}
html[data-theme="claude"] .login-err{display: none; font-size: 12.5px; color: var(--danger);
  background: var(--danger-bg); border-radius: var(--radius-sm);
  padding: 8px 10px; margin-bottom: 12px;}
html[data-theme="claude"] .login-err.show{display: block;}
html[data-theme="claude"] .login-tip{font-size: 12px; color: var(--text-faint); margin-top: 16px; text-align: center;}
html[data-theme="claude"] .login-foot{margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border-subtle); font-size: 11.5px; color: var(--text-faint); text-align: center;}
html[data-theme="claude"] .shake{animation: shake .42s var(--ease);}
@keyframes shake{
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-6px); }
  44% { transform: translateX(5px); }
  66% { transform: translateX(-3px); }
  88% { transform: translateX(2px); }
}
html[data-theme="claude"] .app-shell{display: flex; min-height: 100vh;}
html[data-theme="claude"] .sidebar{width: var(--sidebar-w); flex: none;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 22px 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  z-index: var(--z-drawer);}
html[data-theme="claude"] .brand{display: flex; align-items: center; gap: 10px; padding: 2px 10px 18px;}
html[data-theme="claude"] .brand-mark{width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; flex: none;}
html[data-theme="claude"] .brand-mark svg{width: 17px; height: 17px;}
html[data-theme="claude"] .brand-text{display: flex; flex-direction: column; line-height: 1.25; min-width: 0;}
html[data-theme="claude"] .brand-name{font-family: var(--font-display); font-size: 15.5px; letter-spacing: -.01em;}
html[data-theme="claude"] .brand-sub{font-size: 11px; color: var(--text-muted); letter-spacing: .02em;}
html[data-theme="claude"] .nav{display: flex; flex-direction: column; gap: 2px;}
html[data-theme="claude"] .nav-group{font-size: 11px; letter-spacing: .08em; color: var(--text-faint);
  padding: 16px 12px 6px; text-transform: uppercase;}
html[data-theme="claude"] .nav-item{position: relative;
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--text-soft); font-size: 13.5px;
  cursor: pointer; transition: background var(--t-fast), color var(--t-fast);
  user-select: none;}
html[data-theme="claude"] .nav-item svg{width: 17px; height: 17px; color: var(--text-muted); transition: color var(--t-fast);}
html[data-theme="claude"] .nav-item:hover{background: rgba(255, 255, 255, .55); color: var(--text);}
html[data-theme="claude"] .nav-item.active{background: var(--surface); color: var(--text); box-shadow: var(--shadow);}
html[data-theme="claude"] .nav-item.active::before{content: ""; position: absolute; left: 0; top: 9px; bottom: 9px;
  width: 2.5px; border-radius: 2px; background: var(--accent);}
html[data-theme="claude"] .nav-item.active svg{color: var(--accent);}
html[data-theme="claude"] .nav-badge{margin-left: auto; font-style: normal; font-size: 11px;
  flex: none; white-space: nowrap;
  min-width: 24px; text-align: center;
  color: var(--text-muted); background: rgba(255, 255, 255, .7);
  border-radius: var(--radius-pill); padding: 1px 8px;}
html[data-theme="claude"] .nav-item > span{white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
html[data-theme="claude"] .nav-item.active .nav-badge{background: var(--surface-2); color: var(--text-soft);}
html[data-theme="claude"] .side-foot{margin-top: auto; padding: 16px 8px 4px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px;}
html[data-theme="claude"] .mode-chip{align-self: flex-start; font-size: 11px; letter-spacing: .02em;
  color: var(--text-muted); background: rgba(255, 255, 255, .65);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 2px 9px;}
html[data-theme="claude"] .mode-chip.is-local{color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft-2);}
html[data-theme="claude"] .who{display: flex; align-items: center; gap: 8px; min-width: 0;}
html[data-theme="claude"] .who-avatar{width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 11.5px; color: var(--text-soft); flex: none;}
html[data-theme="claude"] .who-name{font-size: 12.5px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
html[data-theme="claude"] .btn-logout{margin-top: 2px; justify-content: flex-start; color: var(--text-muted);}
html[data-theme="claude"] .btn-logout:hover{color: var(--danger);}
html[data-theme="claude"] .main{flex: 1; min-width: 0; display: flex; flex-direction: column;}
html[data-theme="claude"] .page{width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 32px 40px 56px;}
html[data-theme="claude"] .page-head{display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 26px; flex-wrap: wrap;}
html[data-theme="claude"] .head-main{display: flex; align-items: flex-start; gap: 8px; min-width: 0;}
html[data-theme="claude"] .page-title{font-family: var(--font-display);
  font-size: 30px; font-weight: 500; letter-spacing: -.015em; color: var(--text);}
html[data-theme="claude"] .page-desc{font-size: 13.5px; color: var(--text-muted); margin-top: 4px;}
html[data-theme="claude"] .page-actions{display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
html[data-theme="claude"] .content{display: block;}
html[data-theme="claude"] .view{animation: fadeIn .26s var(--ease-out) both;}
@keyframes fadeIn{ from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
html[data-theme="claude"] .hamburger.icon-btn{display: none;}
html[data-theme="claude"] .drawer-mask{display: none; position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1);
  background: rgba(31, 30, 29, .28);}
html[data-theme="claude"] .btn{display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--control-h); padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px; font-weight: 500; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);}
html[data-theme="claude"] .btn svg{width: 16px; height: 16px;}
html[data-theme="claude"] .btn:disabled{opacity: .55; cursor: default;}
html[data-theme="claude"] .btn-primary{background: var(--accent); color: #fff; border-color: var(--accent);}
html[data-theme="claude"] .btn-primary:hover:not(:disabled){background: var(--accent-hover); border-color: var(--accent-hover);}
html[data-theme="claude"] .btn-primary:active:not(:disabled){background: var(--accent-press);}
html[data-theme="claude"] .btn-soft{background: var(--surface); border-color: var(--border-strong); color: var(--text-soft);}
html[data-theme="claude"] .btn-soft:hover:not(:disabled){background: var(--surface-2); color: var(--text);}
html[data-theme="claude"] .btn-ghost{background: transparent; border-color: transparent; color: var(--text-muted);}
html[data-theme="claude"] .btn-ghost:hover:not(:disabled){background: var(--surface-2); color: var(--text);}
html[data-theme="claude"] .btn-danger{background: var(--danger); color: #fff; border-color: var(--danger);}
html[data-theme="claude"] .btn-danger:hover:not(:disabled){filter: brightness(.94);}
html[data-theme="claude"] .btn-sm{height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: var(--radius-xs);}
html[data-theme="claude"] .btn-sm svg{width: 14px; height: 14px;}
html[data-theme="claude"] .btn-block{width: 100%;}
html[data-theme="claude"] .icon-btn{width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: inline-grid; place-items: center; color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast);}
html[data-theme="claude"] .icon-btn:hover{background: var(--surface-2); color: var(--text);}
html[data-theme="claude"] .icon-btn.is-spinning svg{animation: spin .9s linear infinite;}
@keyframes spin{ to { transform: rotate(360deg); } }
html[data-theme="claude"] .spinner{width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin .7s linear infinite;}
html[data-theme="claude"] .card{background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 18px; overflow: hidden;}
html[data-theme="claude"] .card-head{display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px 0; min-height: 30px;}
html[data-theme="claude"] .card-head h3{font-family: var(--font-display); font-size: 17px; letter-spacing: -.01em;}
html[data-theme="claude"] .card-sub{font-size: 12px; color: var(--text-faint);}
html[data-theme="claude"] .card-body{padding: 16px 22px 22px;}
html[data-theme="claude"] .grid-2{display: grid; grid-template-columns: 1fr 1fr; gap: 18px;}
html[data-theme="claude"] .grid-2 > .card{margin-bottom: 0;}
html[data-theme="claude"] .stack-18{display: flex; flex-direction: column; gap: 18px;}
html[data-theme="claude"] .toolbar{display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;}
html[data-theme="claude"] .toolbar .spacer{flex: 1;}
html[data-theme="claude"] .search{position: relative; display: inline-flex; align-items: center;}
html[data-theme="claude"] .search svg{position: absolute; left: 12px; width: 15px; height: 15px; color: var(--text-faint); pointer-events: none;}
html[data-theme="claude"] .search input{height: var(--control-h); width: 288px; max-width: 100%;
  padding: 0 12px 0 34px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);}
html[data-theme="claude"] .search input::placeholder{color: var(--text-faint);}
html[data-theme="claude"] .search input:focus{outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring);}
html[data-theme="claude"] .field{display: flex; flex-direction: column; gap: 6px; min-width: 0;}
html[data-theme="claude"] .field > label{font-size: 12.5px; color: var(--text-muted);}
html[data-theme="claude"] .field .hint{font-size: 11.5px; color: var(--text-faint);}
html[data-theme="claude"] .input, html[data-theme="claude"] .select, html[data-theme="claude"] .textarea{width: 100%; height: var(--control-h); padding: 0 12px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);}
html[data-theme="claude"] .textarea{height: auto; min-height: 160px; padding: 10px 12px; resize: vertical; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6;}
html[data-theme="claude"] .input:focus, html[data-theme="claude"] .select:focus, html[data-theme="claude"] .textarea:focus{outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring);}
html[data-theme="claude"] .input:disabled, html[data-theme="claude"] .input[readonly]{background: var(--surface-2); color: var(--text-muted);}
html[data-theme="claude"] .select{appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F6A61' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 15px;}
html[data-theme="claude"] .form-grid{display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px;}
html[data-theme="claude"] .form-grid .full{grid-column: 1 / -1;}
html[data-theme="claude"] .copy-row{display: flex; gap: 8px;}
html[data-theme="claude"] .copy-row .input{font-family: var(--font-mono); font-size: 12px;}
html[data-theme="claude"] .switch{display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none;}
html[data-theme="claude"] .switch input{position: absolute; opacity: 0; width: 0; height: 0;}
html[data-theme="claude"] .slider{width: 38px; height: 22px; border-radius: 999px; background: #DCD6C8;
  position: relative; transition: background var(--t-fast); flex: none;}
html[data-theme="claude"] .slider::after{content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform var(--t-fast);}
html[data-theme="claude"] .switch input:checked + .slider{background: var(--accent);}
html[data-theme="claude"] .switch input:checked + .slider::after{transform: translateX(16px);}
html[data-theme="claude"] .switch input:focus-visible + .slider{box-shadow: 0 0 0 3px var(--focus-ring);}
html[data-theme="claude"] .switch-label{font-size: 13px; color: var(--text-soft);}
html[data-theme="claude"] .switch-row{display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--border-subtle);}
html[data-theme="claude"] .switch-row:last-child{border-bottom: none;}
html[data-theme="claude"] .switch-row strong{font-size: 13.5px; font-weight: 500; display: block;}
html[data-theme="claude"] .switch-row p{font-size: 12px; color: var(--text-muted); margin-top: 2px;}
html[data-theme="claude"] .seg{display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: var(--radius-pill);}
html[data-theme="claude"] .seg-btn{height: 28px; padding: 0 12px; border-radius: var(--radius-pill);
  font-size: 12.5px; color: var(--text-muted); white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);}
html[data-theme="claude"] .seg-btn:hover{color: var(--text);}
html[data-theme="claude"] .seg-btn.active{background: var(--surface); color: var(--text); box-shadow: var(--shadow);}
html[data-theme="claude"] .table-wrap{width: 100%; overflow-x: auto;}
html[data-theme="claude"] .table{width: 100%; border-collapse: collapse;}
html[data-theme="claude"] .table th{text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-faint);
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface); white-space: nowrap;}
html[data-theme="claude"] .table th:first-child, html[data-theme="claude"] .table td:first-child{padding-left: 22px;}
html[data-theme="claude"] .table th:last-child, html[data-theme="claude"] .table td:last-child{padding-right: 22px;}
html[data-theme="claude"] .table td{padding: 10px 14px; border-bottom: 1px solid var(--border-subtle);
  font-size: 13px; vertical-align: middle; white-space: nowrap;}
html[data-theme="claude"] .table td .cell-meta{white-space: normal;}
html[data-theme="claude"] .table tbody tr{transition: background var(--t-fast);}
html[data-theme="claude"] .table tbody tr:hover{background: var(--surface-3);}
html[data-theme="claude"] .table tbody tr:last-child td{border-bottom: none;}
html[data-theme="claude"] .cell-main{display: flex; align-items: center; gap: 10px; min-width: 0;}
html[data-theme="claude"] .cell-avatar{width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--surface-2); color: var(--text-soft);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 500;}
html[data-theme="claude"] .cell-name{font-size: 13.5px; font-weight: 500; color: var(--text);}
html[data-theme="claude"] .cell-meta{font-size: 11.5px; color: var(--text-faint);}
html[data-theme="claude"] .row-actions{display: inline-flex; gap: 2px; justify-content: flex-end; flex-wrap: nowrap;}
html[data-theme="claude"] .act{height: 28px; padding: 0 8px; border-radius: var(--radius-xs);
  font-size: 12.5px; color: var(--text-muted); white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);}
html[data-theme="claude"] .act:hover{background: var(--surface-2); color: var(--text);}
html[data-theme="claude"] .act.danger:hover{background: var(--danger-bg); color: var(--danger);}
html[data-theme="claude"] .act-ico{width: 26px; padding: 0; display: inline-grid; place-items: center; color: var(--text-faint);}
html[data-theme="claude"] .act-ico:hover{color: var(--text);}
html[data-theme="claude"] .act-ico svg{width: 14px; height: 14px;}
html[data-theme="claude"] .bar{height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden;}
html[data-theme="claude"] .bar > i{display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .5s var(--ease-out);}
html[data-theme="claude"] .bar-txt{font-size: 11.5px; color: var(--text-muted); margin-top: 4px;}
html[data-theme="claude"] .badge{display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: var(--radius-pill);
  font-size: 11.5px; line-height: 1; white-space: nowrap;
  background: var(--surface-2); color: var(--text-muted);}
html[data-theme="claude"] .badge .dot{width: 5px; height: 5px; border-radius: 50%; background: currentColor;}
html[data-theme="claude"] .badge-ok{background: var(--success-bg); color: var(--success);}
html[data-theme="claude"] .badge-info{background: var(--info-bg); color: var(--info);}
html[data-theme="claude"] .badge-warn{background: var(--warning-bg); color: var(--warning);}
html[data-theme="claude"] .badge-danger{background: var(--danger-bg); color: var(--danger);}
html[data-theme="claude"] .badge-off{background: #F2F0EA; color: var(--text-faint);}
html[data-theme="claude"] .meta-tag{font-size: 11px; padding: 1px 7px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-muted);}
html[data-theme="claude"] .kpi-grid{display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px;}
html[data-theme="claude"] .kpi{background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px 16px;}
html[data-theme="claude"] .kpi-top{display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;}
html[data-theme="claude"] .kpi-ico{width: 30px; height: 30px; border-radius: 9px;
  background: var(--surface-2); color: var(--text-soft);
  display: grid; place-items: center;}
html[data-theme="claude"] .kpi-ico svg{width: 16px; height: 16px;}
html[data-theme="claude"] .kpi-trend{font-size: 11.5px; color: var(--success); background: var(--success-bg); padding: 1px 7px; border-radius: var(--radius-pill);}
html[data-theme="claude"] .kpi-trend.down{color: var(--danger); background: var(--danger-bg);}
html[data-theme="claude"] .kpi-num{font-family: var(--font-display); font-size: 28px; letter-spacing: -.02em;
  line-height: 1.1; font-variant-numeric: tabular-nums;}
html[data-theme="claude"] .kpi-num small{font-family: var(--font-body); font-size: 12px; color: var(--text-muted); margin-left: 4px; letter-spacing: 0;}
html[data-theme="claude"] .kpi-label{font-size: 12px; color: var(--text-muted); margin-top: 7px;}
html[data-theme="claude"] .health-item{display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle);}
html[data-theme="claude"] .health-item:last-child{border-bottom: none;}
html[data-theme="claude"] .health-dot{width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none;}
html[data-theme="claude"] .health-dot.warn{background: var(--warning);}
html[data-theme="claude"] .health-dot.bad{background: var(--danger);}
html[data-theme="claude"] .health-name{font-size: 13px; color: var(--text); min-width: 76px;}
html[data-theme="claude"] .health-val{font-size: 12px; color: var(--text-muted); margin-left: auto; text-align: right;}
html[data-theme="claude"] .rank-item{padding: 7px 0;}
html[data-theme="claude"] .rank-top{display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-bottom: 6px;}
html[data-theme="claude"] .rank-top b{font-weight: 500;}
html[data-theme="claude"] .rank-top span{color: var(--text-muted); font-size: 11.5px; font-variant-numeric: tabular-nums;}
html[data-theme="claude"] .timeline{list-style: none;}
html[data-theme="claude"] .timeline li{position: relative; padding: 0 0 14px 20px; font-size: 12.5px; color: var(--text-soft);
  border-left: 1px solid var(--border); margin-left: 3px;}
html[data-theme="claude"] .timeline li:last-child{border-left-color: transparent; padding-bottom: 0;}
html[data-theme="claude"] .timeline li::before{content: ""; position: absolute; left: -4px; top: 6px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent);}
html[data-theme="claude"] .timeline time{display: block; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-bottom: 1px;}
html[data-theme="claude"] .airport-list{display: flex; flex-direction: column; gap: 16px;}
html[data-theme="claude"] .airport-card{background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px;}
html[data-theme="claude"] .airport-head{display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
html[data-theme="claude"] .airport-head h3{font-family: var(--font-display); font-size: 17.5px; margin-right: 4px;}
html[data-theme="claude"] .airport-head .btns{margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap;}
html[data-theme="claude"] .airport-meta{display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted); margin: 10px 0 12px;}
html[data-theme="claude"] .airport-meta b{font-weight: 500; color: var(--text-soft);}
html[data-theme="claude"] .airport-node-list{display: flex; flex-wrap: wrap; gap: 6px;}
html[data-theme="claude"] .node-chip{font-size: 11.5px; padding: 3px 9px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-soft); border: 1px solid transparent;}
html[data-theme="claude"] .node-chip.off{color: var(--text-faint); text-decoration: line-through; background: #F3F1EC;}
html[data-theme="claude"] .node-chip.muted{opacity: .5;}
html[data-theme="claude"] .node-chip.more{background: transparent; border-color: var(--border); color: var(--text-faint);}
html[data-theme="claude"] .st-log-card{background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 18px; margin-bottom: 16px;}
html[data-theme="claude"] .st-log-card summary{cursor: pointer; font-size: 12.5px; color: var(--text-soft);}
html[data-theme="claude"] .st-hint{color: var(--text-faint); font-size: 11.5px; margin-left: 6px;}
html[data-theme="claude"] .st-log{margin-top: 10px; display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow: auto;}
html[data-theme="claude"] .st-line{font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted);}
html[data-theme="claude"] .nm-bar{display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap;}
html[data-theme="claude"] .nm-search{flex: 1; min-width: 140px; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);}
html[data-theme="claude"] .nm-tip{font-size: 12px; color: var(--text-muted); margin-bottom: 10px;}
html[data-theme="claude"] .nm-grid{display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px; max-height: 320px; overflow: auto;
  padding: 4px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  background: var(--surface-3);}
html[data-theme="claude"] .nm-chip{display: flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 5px 9px; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 12px; color: var(--text-muted);
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);}
html[data-theme="claude"] .nm-chip:hover{border-color: var(--border-strong);}
html[data-theme="claude"] .nm-chip.on{border-color: var(--accent); background: var(--accent-soft-2); color: var(--text);}
html[data-theme="claude"] .nm-chip.ao{opacity: .72;}
html[data-theme="claude"] .nm-tick{width: 14px; color: var(--accent); font-size: 11px;}
html[data-theme="claude"] .nm-name{overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
html[data-theme="claude"] .nm-chip em{margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--warning);}
html[data-theme="claude"] .auth-box{border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;}
html[data-theme="claude"] .auth-bar{display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface-2);}
html[data-theme="claude"] .auth-cnt{font-size: 11.5px; color: var(--text-muted); margin-left: auto;}
html[data-theme="claude"] .auth-list{max-height: 180px; overflow: auto; padding: 6px; display: flex; flex-wrap: wrap; gap: 6px;}
html[data-theme="claude"] .auth-item{display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 4px 9px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-muted); cursor: pointer;}
html[data-theme="claude"] .auth-item.on{background: var(--accent-soft); color: var(--text);}
html[data-theme="claude"] .auth-item input{accent-color: var(--accent); width: 13px; height: 13px;}
html[data-theme="claude"] .mtg-grid{display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px;}
html[data-theme="claude"] .mtg-card{border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; background: var(--surface);}
html[data-theme="claude"] .mtg-top{display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;}
html[data-theme="claude"] .mtg-top b{font-size: 13.5px; font-weight: 500; letter-spacing: .01em;}
html[data-theme="claude"] .mtg-secret{display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted);
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 7px 10px; margin-bottom: 12px; word-break: break-all;}
html[data-theme="claude"] .mtg-secret .reveal{color: var(--accent); font-size: 11px; flex: none;}
html[data-theme="claude"] .mtg-actions{display: flex; gap: 6px; flex-wrap: wrap;}
html[data-theme="claude"] .mon-grid{display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px;}
html[data-theme="claude"] .mon-card{border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: var(--surface);}
html[data-theme="claude"] .mon-row{display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-muted); padding: 3px 0;}
html[data-theme="claude"] .mon-row b{font-weight: 500; color: var(--text-soft);}
html[data-theme="claude"] .legend{display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px;}
html[data-theme="claude"] .lg-item{display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted);}
html[data-theme="claude"] .lg-item i{width: 9px; height: 9px; border-radius: 3px; display: inline-block;}
html[data-theme="claude"] .lg-item b{color: var(--text-soft); font-weight: 500;}
html[data-theme="claude"] .lg-item em{font-style: normal; color: var(--text-faint); font-size: 11.5px;}
html[data-theme="claude"] .chart-wrap{width: 100%; overflow-x: auto;}
html[data-theme="claude"] .chart{width: 100%; height: auto; display: block;}
html[data-theme="claude"] .chart .ax{fill: var(--text-faint); font-size: 10px; font-family: var(--font-mono);}
html[data-theme="claude"] .hist-band-label{font-size: 10px;}
html[data-theme="claude"] .backup-list{display: flex; flex-direction: column; gap: 10px;}
html[data-theme="claude"] .backup-card{display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;}
html[data-theme="claude"] .backup-ico{width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); color: var(--text-soft); display: grid; place-items: center; flex: none;}
html[data-theme="claude"] .backup-main{flex: 1; min-width: 0;}
html[data-theme="claude"] .backup-file{font-family: var(--font-mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis;}
html[data-theme="claude"] .backup-actions{display: flex; gap: 6px; flex-wrap: wrap;}
html[data-theme="claude"] .token-list{display: flex; flex-direction: column; gap: 2px;}
html[data-theme="claude"] .token-item{display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background var(--t-fast);}
html[data-theme="claude"] .token-item:hover{background: var(--surface-2);}
html[data-theme="claude"] .token-main{width: 178px; flex: none; min-width: 0;}
html[data-theme="claude"] .token-key{display: block; font-size: 12px; color: var(--text); font-family: var(--font-mono);}
html[data-theme="claude"] .token-desc{display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 1px;}
html[data-theme="claude"] .token-val{font-family: var(--font-mono); font-size: 12px; color: var(--text-soft); flex: 1; word-break: break-all;}
html[data-theme="claude"] .token-copy{font-size: 11.5px; color: var(--accent); flex: none;}
html[data-theme="claude"] .empty{display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; text-align: center;}
html[data-theme="claude"] .empty-ico{width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-faint);
  display: grid; place-items: center; margin-bottom: 4px;}
html[data-theme="claude"] .empty-ico svg{width: 21px; height: 21px;}
html[data-theme="claude"] .empty-title{font-size: 14.5px; font-weight: 500; color: var(--text-soft);}
html[data-theme="claude"] .empty-hint{font-size: 12.5px; color: var(--text-faint); max-width: 380px;}
html[data-theme="claude"] .empty .btn{margin-top: 8px;}
html[data-theme="claude"] .empty.compact{padding: 22px 12px;}
html[data-theme="claude"] .empty.compact .empty-ico{width: 38px; height: 38px;}
html[data-theme="claude"] .skel{display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, #F1EEE6 25%, #F8F6F1 37%, #F1EEE6 63%); background-size: 400% 100%; animation: shimmer 1.25s ease infinite;}
html[data-theme="claude"] .skel + .skel{margin-top: 8px;}
html[data-theme="claude"] .skel.w-40{width: 40%;}
html[data-theme="claude"] .skel.w-60{width: 60%;}
html[data-theme="claude"] .skel.w-25{width: 25%;}
html[data-theme="claude"] tr.skel-row td{padding: 17px 14px;}
@keyframes shimmer{ 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
html[data-theme="claude"] .inline-err{display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--danger-bg); color: var(--danger);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12.5px; margin-bottom: 12px;}
html[data-theme="claude"] .inline-err .btn{margin-left: auto;}
html[data-theme="claude"] .pager{display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border-subtle); flex-wrap: wrap;}
html[data-theme="claude"] .pager-info{font-size: 12px; color: var(--text-faint);}
html[data-theme="claude"] .pager-btns{display: flex; align-items: center; gap: 4px;}
html[data-theme="claude"] .pager-btn{min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--radius-xs);
  font-size: 12.5px; color: var(--text-muted);}
html[data-theme="claude"] .pager-btn:hover{background: var(--surface-2); color: var(--text);}
html[data-theme="claude"] .pager-btn.active{background: var(--accent-soft); color: var(--accent);}
html[data-theme="claude"] .pager-btn:disabled{opacity: .4; cursor: default;}
html[data-theme="claude"] dialog.modal{border: none; padding: 0; background: transparent;
  width: min(640px, calc(100vw - 32px)); max-width: 100%;
  max-height: calc(100vh - 48px);
  margin: auto;}
html[data-theme="claude"] dialog.modal::backdrop{background: rgba(31, 30, 29, .30); backdrop-filter: blur(2px);}
html[data-theme="claude"] dialog.modal[open]{animation: pop .18s var(--ease-out) both;}
@keyframes pop{ from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
html[data-theme="claude"] .modal-panel{background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; max-height: calc(100vh - 48px);}
html[data-theme="claude"] dialog.modal.modal--wide{width: min(900px, calc(100vw - 32px));}
html[data-theme="claude"] dialog.modal.modal--sm{width: min(440px, calc(100vw - 32px));}
html[data-theme="claude"] .modal-head{display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 0;}
html[data-theme="claude"] .modal-head h3{font-family: var(--font-display); font-size: 20px; letter-spacing: -.01em;}
html[data-theme="claude"] .modal-head .sub{font-size: 12.5px; color: var(--text-muted); margin-top: 2px;}
html[data-theme="claude"] .modal-body{padding: 18px 24px; overflow-y: auto;}
html[data-theme="claude"] .modal-foot{display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 0 24px 20px;}
html[data-theme="claude"] .modal-foot .left{margin-right: auto;}
html[data-theme="claude"] .modal-tip{font-size: 11.5px; color: var(--text-faint); line-height: 1.7; margin-top: 10px;}
html[data-theme="claude"] .confirm-body{display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 26px 8px;}
html[data-theme="claude"] .confirm-ico{width: 46px; height: 46px; border-radius: 50%; background: var(--danger-bg); color: var(--danger); display: grid; place-items: center; margin-bottom: 4px;}
html[data-theme="claude"] .confirm-body h3{font-family: var(--font-display); font-size: 19px;}
html[data-theme="claude"] .confirm-body p{font-size: 13px; color: var(--text-muted); max-width: 360px;}
html[data-theme="claude"] .sub-head{display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px;}
html[data-theme="claude"] .sub-user{font-family: var(--font-display); font-size: 19px;}
html[data-theme="claude"] .sub-qr{display: flex; justify-content: center; padding: 6px 0 14px;}
html[data-theme="claude"] .qr-box{padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);}
html[data-theme="claude"] .qr-box svg{width: 168px; height: 168px; display: block;}
html[data-theme="claude"] .qr-fallback{font-size: 12px; color: var(--text-muted); text-align: center; max-width: 300px;}
html[data-theme="claude"] .toast-wrap{position: fixed; right: 20px; bottom: 20px; z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  pointer-events: none;}
html[data-theme="claude"] .toast{display: flex; align-items: flex-start; gap: 9px;
  max-width: 420px; padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-pop);
  font-size: 12.5px; color: var(--text-soft);
  animation: toastIn .22s var(--ease-out) both;}
html[data-theme="claude"] .toast.out{animation: toastOut .2s var(--ease) both;}
html[data-theme="claude"] .toast-ico{width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%;}
html[data-theme="claude"] .toast-ico svg{width: 11px; height: 11px;}
html[data-theme="claude"] .toast.ok .toast-ico{background: var(--success-bg); color: var(--success);}
html[data-theme="claude"] .toast.err .toast-ico{background: var(--danger-bg); color: var(--danger);}
html[data-theme="claude"] .toast.warn .toast-ico{background: var(--warning-bg); color: var(--warning);}
html[data-theme="claude"] .toast.info .toast-ico{background: var(--info-bg); color: var(--info);}
@keyframes toastIn{ from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut{ to { opacity: 0; transform: translateY(6px); } }
html[data-theme="claude"] .sl-banner{background: var(--warning-bg); color: var(--warning);
  border: 1px solid #EBDCBE; border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 12.5px; margin-bottom: 14px;}
html[data-theme="claude"] .sl-toolbar{gap: 8px;}
html[data-theme="claude"] .sl-toolbar .btn-ghost{border-color: var(--border); background: var(--surface); color: var(--text-soft);}
html[data-theme="claude"] .sl-toolbar .btn-ghost:hover:not(:disabled){background: var(--surface-2);}
html[data-theme="claude"] .sl-toolbar .search input{width: 240px;}
html[data-theme="claude"] .sl-select{height: var(--control-h); padding: 0 28px 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);}
html[data-theme="claude"] .sl-check{display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); cursor: pointer;}
html[data-theme="claude"] .sl-check input{accent-color: var(--accent);}
html[data-theme="claude"] .sl-meta{display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-faint); margin-bottom: 12px;}
html[data-theme="claude"] .sl-user{margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px;}
html[data-theme="claude"] .sl-user select{height: 30px; border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--surface); padding: 0 6px; font-size: 12px;}
html[data-theme="claude"] .sl-dirty{color: var(--accent); font-weight: 500;}
html[data-theme="claude"] .sl-stale{display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--warning-bg); color: var(--warning);
  border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12.5px; margin-bottom: 12px;}
html[data-theme="claude"] .sl-stale span{color: var(--text-muted); font-size: 11.5px;}
html[data-theme="claude"] .sl-table th, html[data-theme="claude"] .sl-table td{padding-top: 7px; padding-bottom: 7px; white-space: nowrap;}
html[data-theme="claude"] .sl-handle{color: var(--text-faint); cursor: grab; user-select: none; font-size: 12px; letter-spacing: -1px;}
html[data-theme="claude"] .sl-row.hidden-row{opacity: .55;}
html[data-theme="claude"] .sl-row.dragging{background: var(--accent-soft-2);}
html[data-theme="claude"] .sl-status, html[data-theme="claude"] .sl-orig{white-space: nowrap;}
html[data-theme="claude"] .sl-name{width: 100%; height: 30px; padding: 0 8px;
  border: 1px solid transparent; border-radius: var(--radius-xs);
  background: transparent; font-size: 13px; color: var(--text);}
html[data-theme="claude"] .sl-name:hover{border-color: var(--border); background: var(--surface);}
html[data-theme="claude"] .sl-name:focus{outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); background: var(--surface);}
html[data-theme="claude"] .sl-name.changed{color: var(--accent);}
html[data-theme="claude"] .sl-name.invalid{border-color: var(--danger); background: var(--danger-bg);}
html[data-theme="claude"] .sl-orig{font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint);}
html[data-theme="claude"] .sl-status{font-size: 11.5px; padding: 1px 7px; border-radius: var(--radius-pill);}
html[data-theme="claude"] .sl-status.ok{color: var(--text-muted); background: var(--surface-2);}
html[data-theme="claude"] .sl-status.renamed{color: var(--accent); background: var(--accent-soft);}
html[data-theme="claude"] .sl-status.hidden{color: var(--text-faint); background: #F1EFE9;}
html[data-theme="claude"] .sl-groups{display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px;}
html[data-theme="claude"] .sl-group-card{background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px;}
html[data-theme="claude"] .sl-group-name{display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 15px; margin-bottom: 10px;}
html[data-theme="claude"] .sl-chips{display: flex; flex-wrap: wrap; gap: 5px;}
html[data-theme="claude"] .sl-chip{font-size: 11.5px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-soft);}
html[data-theme="claude"] .sl-chip.fixed{background: transparent; border: 1px dashed var(--border-strong); color: var(--text-faint);}
html[data-theme="claude"] .sl-tip{font-size: 11.5px; color: var(--text-faint); line-height: 1.8; margin-top: 12px;}
html[data-theme="claude"] .sl-prev-grid{display: grid; grid-template-columns: 1fr 1fr; gap: 18px;}
html[data-theme="claude"] .sl-prev-col h4{font-family: var(--font-display); font-size: 14px; margin-bottom: 8px;}
html[data-theme="claude"] .sl-prev-item{padding: 7px 0; border-bottom: 1px solid var(--border-subtle); font-size: 12.5px;}
html[data-theme="claude"] .sl-prev-item .n{font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); margin-right: 6px;}
html[data-theme="claude"] .sl-prev-item b{font-weight: 500;}
html[data-theme="claude"] .sl-prev-item .g{font-size: 11px; color: var(--text-faint); margin-top: 1px;}
html[data-theme="claude"] .sl-modal-list{display: flex; flex-direction: column; gap: 8px;}
html[data-theme="claude"] .sl-hist-row, html[data-theme="claude"] .sl-stale-item{display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 9px 12px;}
html[data-theme="claude"] .sl-hist-main{flex: 1; min-width: 0;}
html[data-theme="claude"] .sl-hist-time{font-size: 11.5px; color: var(--text-faint); font-family: var(--font-mono);}
html[data-theme="claude"] .sl-hist-sum{font-size: 12.5px; color: var(--text-soft);}
html[data-theme="claude"] .sl-stale-item select{height: 30px; border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--surface); max-width: 220px;}
html[data-theme="claude"] .sl-stale-item code{font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); word-break: break-all;}
@media (max-width: 1180px){
html[data-theme="claude"] .kpi-grid{grid-template-columns: repeat(2, 1fr);}
html[data-theme="claude"] .grid-2{grid-template-columns: 1fr;}
html[data-theme="claude"] .sl-groups{grid-template-columns: 1fr;}
}
@media (max-width: 1023px){
html[data-theme="claude"] .sidebar{position: fixed; left: 0; top: 0; bottom: 0; height: 100vh;
    transform: translateX(-100%); transition: transform var(--t);
    box-shadow: var(--shadow-pop); width: 268px;}
html[data-theme="claude"] .app-shell.drawer-open .sidebar{transform: none;}
html[data-theme="claude"] .app-shell.drawer-open .drawer-mask{display: block;}
html[data-theme="claude"] .hamburger.icon-btn{display: inline-grid;}
html[data-theme="claude"] .page{padding: 20px 18px 48px;}
html[data-theme="claude"] .page-head{margin-bottom: 20px;}
html[data-theme="claude"] .page-title{font-size: 25px;}
html[data-theme="claude"] .search input{width: 100%;}
html[data-theme="claude"] .toolbar .search{flex: 1 1 100%;}
html[data-theme="claude"] .sl-prev-grid{grid-template-columns: 1fr;}
html[data-theme="claude"] .airport-head .btns{margin-left: 0; width: 100%;}
}
@media (max-width: 640px){
html[data-theme="claude"] .kpi-grid{grid-template-columns: 1fr;}
html[data-theme="claude"] .form-grid{grid-template-columns: 1fr;}
html[data-theme="claude"] .page-title{font-size: 23px;}
html[data-theme="claude"] .page-actions{width: auto; margin-left: auto;}
html[data-theme="claude"] .page-actions .btn{flex: 0 0 auto;}
html[data-theme="claude"] .table{width: max-content; min-width: 100%;}
html[data-theme="claude"] .table th, html[data-theme="claude"] .table td{white-space: nowrap;}
html[data-theme="claude"] .table td .cell-meta{white-space: normal;}
html[data-theme="claude"] .card-head{padding: 16px 16px 0;}
html[data-theme="claude"] .card-body{padding: 14px 16px 18px;}
html[data-theme="claude"] .table th:first-child, html[data-theme="claude"] .table td:first-child{padding-left: 16px;}
html[data-theme="claude"] .table th:last-child, html[data-theme="claude"] .table td:last-child{padding-right: 16px;}
html[data-theme="claude"] .backup-card{flex-wrap: wrap;}
html[data-theme="claude"] .backup-actions{width: 100%; justify-content: flex-end;}
html[data-theme="claude"] .modal-head{padding: 18px 18px 0;}
html[data-theme="claude"] .modal-body{padding: 16px 18px;}
html[data-theme="claude"] .modal-foot{padding: 0 18px 16px;}
html[data-theme="claude"] .toast-wrap{left: 12px; right: 12px; bottom: 12px; align-items: stretch;}
html[data-theme="claude"] .toast{max-width: none;}
html[data-theme="claude"] .sl-meta{gap: 10px;}
html[data-theme="claude"] .sl-user{margin-left: 0;}
}
