:root{color-scheme:light;--bg:#f4f6fa;--surface:#fff;--ink:#172235;--muted:#738096;--line:rgba(35,52,78,.08);--accent:#316ee8;--accent-soft:#eaf1ff;--success:#2b9a6a;--warning:#c98224;--danger:#d65e62;--shadow:0 14px 34px rgba(29,48,79,.08);--radius:24px;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 50% -15%,#fff 0,#f4f6fa 42%);color:var(--ink);min-height:100vh}.sk5-page{width:min(100%,720px);max-width:100%;margin:0 auto;padding:calc(14px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom))}.sk5-header{display:flex;align-items:center;gap:12px;margin-bottom:18px}.back-button,.icon-button{width:42px;height:42px;border:0;border-radius:15px;background:rgba(255,255,255,.8);color:var(--ink);display:grid;place-items:center;text-decoration:none;box-shadow:0 6px 18px rgba(40,58,91,.07);font-size:28px;line-height:1;transition:transform .2s ease,background .2s ease}.back-button:active,.icon-button:active{transform:scale(.94)}.icon-button span{font-size:23px}.header-title{flex:1}.eyebrow{display:block;font-size:10px;letter-spacing:.14em;color:#8a97aa;font-weight:700}.header-title h1{font-size:24px;line-height:1.12;margin:3px 0 0;letter-spacing:-.04em}.hero-card{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;padding:22px;border-radius:28px;background:linear-gradient(135deg,#f8fbff,#edf3ff);box-shadow:var(--shadow);margin-bottom:14px;animation:rise .45s both}.hero-copy{min-width:0}.hero-copy>span:not(.status-dot){font-size:12px;color:#6880a5;font-weight:700}.status-dot{width:8px;height:8px;display:inline-block;border-radius:50%;background:#a9b3c0;margin-right:7px;vertical-align:1px}.status-dot.online{background:var(--success);box-shadow:0 0 0 5px rgba(43,154,106,.12)}.status-dot.warn{background:var(--warning);box-shadow:0 0 0 5px rgba(201,130,36,.12)}.hero-copy h2{font-size:22px;margin:11px 0 4px;letter-spacing:-.03em}.hero-copy p{color:var(--muted);font-size:12px;margin:0}.hero-metrics{display:flex;gap:18px;flex:0 0 auto}.hero-metrics div{display:grid;gap:3px;text-align:right}.hero-metrics strong{font-size:24px;letter-spacing:-.05em}.hero-metrics span{font-size:11px;color:var(--muted)}.toolbar{display:flex;align-items:end;gap:8px;padding:11px 12px;border-radius:20px;background:rgba(255,255,255,.7);box-shadow:0 8px 24px rgba(35,52,78,.05);margin-bottom:14px}.filter-field{display:grid;gap:4px;min-width:84px;flex:0 0 auto}.filter-field span{font-size:10px;color:#8a97aa}.filter-field select,.filter-field input{width:100%;height:36px;border:0;border-radius:11px;background:#f3f6fb;color:var(--ink);padding:0 10px;font:inherit;font-size:13px;outline:0}.search-field{flex:1;min-width:0}.apply-button,.primary-button,.secondary-button{border:0;border-radius:12px;height:36px;padding:0 14px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.apply-button,.primary-button{background:var(--accent);color:#fff;box-shadow:0 7px 16px rgba(49,110,232,.22)}.apply-button:active,.primary-button:active,.secondary-button:active{transform:scale(.96)}.secondary-button{background:#f1f3f7;color:#65728a}.notice{padding:15px 16px;border-radius:18px;background:#fff7e8;color:#855a1f;font-size:13px;line-height:1.55;margin-bottom:12px;box-shadow:0 8px 24px rgba(118,88,37,.06)}.notice.error{background:#fff0f0;color:#9a4148}.notice a{color:inherit;font-weight:700}.instance-list{display:grid;gap:10px}.instance-card{position:relative;padding:17px;border-radius:22px;background:var(--surface);box-shadow:0 8px 23px rgba(28,47,78,.06);animation:rise .42s both}.instance-card:focus-within{box-shadow:0 0 0 2px rgba(49,110,232,.18),0 10px 28px rgba(28,47,78,.09)}.instance-head{display:flex;align-items:center;gap:8px}.line-index{width:26px;height:26px;display:grid;place-items:center;border-radius:9px;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:800}.line-title{font-size:15px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.line-city{font-size:11px;padding:5px 9px;border-radius:999px;background:#eef7f2;color:#35815f;white-space:nowrap}.more-button{border:0;background:#f3f5f9;color:#7a879b;width:32px;height:32px;border-radius:10px;font-size:20px;cursor:pointer}.endpoint{margin:13px 0 11px;padding:11px 12px;border-radius:14px;background:#f6f8fb;display:flex;align-items:center;justify-content:space-between;gap:10px}.endpoint strong{font-size:15px;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.endpoint small{font-size:10px;color:#8995a7;white-space:nowrap}.details{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.detail{min-width:0}.detail span{display:block;font-size:10px;color:#98a2b2;margin-bottom:4px}.detail strong{display:block;font-size:12px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.credentials{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;padding-top:11px;border-top:1px solid var(--line);font-size:12px;color:#67758c;min-height:23px}.credentials span:last-child{display:flex;align-items:center;gap:6px}.reveal-button{border:0;background:transparent;color:var(--accent);font:inherit;font-size:11px;padding:4px 0;cursor:pointer}.empty-card{padding:46px 20px;text-align:center;border-radius:24px;background:rgba(255,255,255,.75);box-shadow:var(--shadow)}.empty-icon{font-size:28px;color:#9eabc0}.empty-card h2{font-size:17px;margin:8px 0 4px}.empty-card p{font-size:12px;color:var(--muted);margin:0}.privacy-note{text-align:center;color:#a1aaba;font-size:10px;margin:18px 0 0}.action-dialog{border:0;padding:0;background:transparent;width:min(92vw,420px)}.action-dialog::backdrop{background:rgba(16,27,47,.28);backdrop-filter:blur(4px)}.dialog-card{position:relative;border:0;border-radius:25px;background:#fff;padding:22px;box-shadow:0 24px 70px rgba(18,34,62,.2)}.dialog-close{position:absolute;right:15px;top:13px;width:32px;height:32px;border:0;border-radius:10px;background:#f2f4f8;font-size:21px;color:#8290a4}.dialog-card h2{font-size:20px;margin:8px 0 4px}.dialog-card p{font-size:12px;color:var(--muted);margin:0 0 16px}.dialog-field{display:grid;gap:7px;margin:12px 0}.dialog-field label{font-size:12px;color:#65738b}.dialog-field input{width:100%;height:42px;border:1px solid var(--line);border-radius:12px;background:#f8f9fb;padding:0 12px;font:inherit;font-size:14px;outline:none}.dialog-field input:focus{border-color:rgba(49,110,232,.5);box-shadow:0 0 0 4px rgba(49,110,232,.1)}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.dialog-actions button{height:40px}.dialog-actions .secondary-button{padding:0 17px}.dialog-actions .primary-button{padding:0 19px}@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media (min-width:600px){.sk5-page{padding-top:30px}.hero-card{padding:25px}.instance-list{grid-template-columns:repeat(2,minmax(0,1fr))}.instance-card{min-height:208px}.toolbar{padding:12px 14px}}@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.choice-list{display:grid;gap:8px}.choice-button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;padding:0 14px;border:0;border-radius:14px;background:#f4f6fa;color:var(--ink);font:inherit;font-size:14px;font-weight:700;text-align:left;cursor:pointer}.choice-button span{font-size:10px;color:#8c98aa;font-weight:500}.choice-button:hover{background:var(--accent-soft);color:var(--accent)}.choice-button.danger{color:var(--danger)}
/* Shared SK5 workspace navigation */
.sk5-workspace{display:flex;min-height:100dvh}.sk5-sidebar{position:sticky;top:0;z-index:10;width:232px;height:100dvh;flex:0 0 232px;padding:24px 14px;background:rgba(255,255,255,.72);backdrop-filter:blur(22px);box-shadow:10px 0 32px rgba(35,52,78,.06);display:flex;flex-direction:column;gap:22px}.sk5-brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;padding:4px 8px}.sk5-brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:var(--accent-soft);color:var(--accent);font-weight:850}.sk5-brand strong{display:block;font-size:15px;letter-spacing:-.03em}.sk5-brand small{display:block;font-size:9px;color:#8c99ac;letter-spacing:.12em;margin-top:3px}.sk5-nav{display:grid;gap:5px}.sk5-nav a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:14px;color:#67758c;text-decoration:none;font-size:13px;font-weight:650;transition:background .2s ease,color .2s ease,transform .2s ease}.sk5-nav a:hover{background:#f2f5fa;color:var(--ink)}.sk5-nav a.active{background:var(--accent-soft);color:var(--accent)}.sk5-nav .nav-icon{width:25px;height:25px;display:grid;place-items:center;border-radius:9px;background:#f1f4f8;color:#738198;font-size:13px}.sk5-nav a.active .nav-icon{background:#dce8ff;color:var(--accent)}.sk5-nav .nav-label{flex:1}.sk5-side-foot{margin-top:auto;display:grid;gap:8px}.sk5-side-foot a{font-size:12px;color:#8793a5;text-decoration:none;padding:8px}.sk5-side-foot a:hover{color:var(--accent)}.sk5-menu-toggle{display:none}.sk5-scrim{display:none}.sk5-workspace>.sk5-page{flex:1;width:min(100%,940px);max-width:940px;margin:0 auto}.sk5-section-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:26px 0 13px}.sk5-section-head h2{font-size:18px;margin:0;letter-spacing:-.03em}.sk5-section-head p{margin:4px 0 0;color:var(--muted);font-size:11px}.quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.quick-link{display:flex;align-items:center;gap:10px;padding:14px;border:0;border-radius:18px;background:#fff;color:var(--ink);text-decoration:none;box-shadow:0 8px 23px rgba(28,47,78,.06);transition:transform .2s ease,box-shadow .2s ease}.quick-link:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(28,47,78,.1)}.quick-link strong{display:block;font-size:13px}.quick-link span{display:block;color:var(--muted);font-size:10px;margin-top:4px}.quick-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:12px;background:var(--accent-soft);color:var(--accent);font-weight:800}.dashboard-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:12px}.dashboard-card{padding:18px;border-radius:22px;background:#fff;box-shadow:0 8px 23px rgba(28,47,78,.06)}.dashboard-card h3{font-size:14px;margin:0 0 14px}.mini-list{display:grid;gap:8px}.mini-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.mini-row:last-child{border-bottom:0}.mini-row strong{font-size:12px}.mini-row span{color:var(--muted);white-space:nowrap}.manage-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px;border-radius:18px;background:#fff;box-shadow:0 8px 23px rgba(28,47,78,.06);margin-bottom:12px}.manage-toolbar .selection-count{margin-right:auto;color:var(--muted);font-size:12px}.manage-button{height:36px;padding:0 13px;border:0;border-radius:11px;background:#f1f4f8;color:#62718a;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.manage-button.primary{background:var(--accent);color:#fff}.manage-button.danger{background:#fff0f0;color:var(--danger)}.manage-button:disabled{opacity:.45;cursor:not-allowed}.management-list{display:grid;gap:9px}.management-row{display:grid;grid-template-columns:30px 28px 1fr auto;align-items:center;gap:10px;padding:13px 14px;border-radius:18px;background:#fff;box-shadow:0 7px 19px rgba(28,47,78,.05)}.management-row input{width:17px;height:17px;accent-color:var(--accent)}.management-row .row-main{min-width:0}.management-row .row-main strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.management-row .row-main span{display:block;color:var(--muted);font-size:10px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.management-row .row-side{text-align:right}.management-row .row-side strong{font-size:12px}.management-row .row-side span{display:block;color:var(--muted);font-size:10px;margin-top:4px}.agent-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-radius:20px;background:linear-gradient(135deg,#f2f7ff,#fff);box-shadow:0 8px 23px rgba(28,47,78,.06);margin-bottom:12px}.agent-card strong{display:block;font-size:14px}.agent-card p{margin:5px 0 0;color:var(--muted);font-size:11px}.agent-value{font-size:13px;font-weight:750;color:var(--accent);background:#eaf1ff;padding:8px 11px;border-radius:10px;white-space:nowrap}.api-doc-list{display:grid;gap:10px}.api-doc-card{padding:16px 18px;border-radius:20px;background:#fff;box-shadow:0 8px 23px rgba(28,47,78,.05)}.api-doc-card h3{font-size:14px;margin:0 0 6px}.api-doc-card code{font-size:10px;color:var(--accent);word-break:break-all}.api-doc-card p{font-size:11px;color:var(--muted);line-height:1.65;margin:9px 0 0}.api-doc-card .doc-method{display:inline-block;margin-right:7px;padding:3px 6px;border-radius:6px;background:#eaf7f1;color:#2b8a62;font-size:9px;font-weight:800}.sk5-page .list-toolbar{margin-top:4px}@media(max-width:760px){.sk5-sidebar{position:fixed;left:0;transform:translateX(-104%);transition:transform .24s cubic-bezier(.22,.61,.36,1);box-shadow:22px 0 55px rgba(20,35,60,.16)}.sk5-sidebar.open{transform:translateX(0)}.sk5-menu-toggle{position:fixed;display:grid;place-items:center;top:calc(14px + env(safe-area-inset-top));left:14px;z-index:8;width:40px;height:40px;border:0;border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 7px 20px rgba(28,47,78,.09);font-size:20px}.sk5-scrim{position:fixed;inset:0;z-index:9;border:0;background:rgba(18,31,54,.18);backdrop-filter:blur(2px)}.sk5-scrim:not([hidden]){display:block}.sk5-workspace>.sk5-page{width:100%;padding-top:calc(68px + env(safe-area-inset-top))}.sk5-header{margin-bottom:14px}.sk5-header .back-button{margin-left:48px}.quick-links{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:1fr}.management-row{grid-template-columns:27px 28px 1fr}.management-row .row-side{grid-column:3;text-align:left}.agent-card{align-items:flex-start;flex-direction:column}.agent-value{align-self:flex-start}}@media(max-width:420px){.sk5-workspace>.sk5-page{padding-left:14px;padding-right:14px}.toolbar{gap:6px;padding:10px}.toolbar .filter-field{min-width:76px}.toolbar .apply-button{padding:0 10px}.sk5-section-head{margin-top:20px}}
.status-chip{padding:6px 10px;border-radius:999px;background:#fff4df;color:#9c6b22;font-size:10px;font-weight:750}.text-link{color:var(--accent);font-size:11px;font-weight:750;text-decoration:none}.muted-line{color:var(--muted);font-size:11px}.usage-stats{display:grid;gap:13px}.usage-stats div{display:flex;align-items:center;justify-content:space-between;gap:10px}.usage-stats span{font-size:11px;color:var(--muted)}.usage-stats strong{font-size:14px}.recent-list{padding:0 5px}.recent-list .mini-row{padding:13px 8px;background:#fff;border-radius:14px;margin-bottom:5px;box-shadow:0 6px 16px rgba(28,47,78,.04)}.recent-list .mini-row:last-child{margin-bottom:0}
/* Refined mobile header and secondary sort menu */
.sort-menu{position:relative;flex:0 0 auto}
.secondary-menu-button{display:grid;place-items:center;height:36px;padding:0 14px;border-radius:12px;background:#f1f4f8;color:#61718a;font:inherit;font-size:13px;font-weight:700;cursor:pointer;list-style:none}
.secondary-menu-button::-webkit-details-marker{display:none}
.secondary-menu-button::after{content:'⌄';margin-left:6px;font-size:12px;color:#8b98aa}
.sort-menu[open] .secondary-menu-button{background:var(--accent-soft);color:var(--accent)}
.sort-menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:20;display:grid;gap:4px;min-width:150px;padding:7px;border-radius:15px;background:rgba(255,255,255,.96);box-shadow:0 14px 30px rgba(28,47,78,.14);border:1px solid rgba(35,52,78,.06)}
.sort-menu-panel button{border:0;border-radius:10px;background:transparent;color:#61718a;padding:9px 10px;text-align:left;font:inherit;font-size:12px;cursor:pointer}
.sort-menu-panel button:hover,.sort-menu-panel button.selected{background:var(--accent-soft);color:var(--accent);font-weight:700}
@media(max-width:760px){
  .sk5-menu-toggle{position:static;display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:0;border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 7px 20px rgba(28,47,78,.09);font-size:20px}
  .sk5-workspace>.sk5-page{padding-top:calc(14px + env(safe-area-inset-top))}
  .sk5-header .back-button{display:none}
}
.sort-menu.is-open .secondary-menu-button{background:var(--accent-soft);color:var(--accent)}
.sort-menu-panel[hidden]{display:none}
.secondary-menu-button::after{content:none}
.secondary-menu-button{width:38px;padding:0;border:1px solid rgba(35,52,78,.07);border-radius:13px;background:rgba(255,255,255,.86);box-shadow:0 5px 14px rgba(35,52,78,.08);color:#64738a}
.secondary-menu-button img{width:17px;height:17px;opacity:.72}
.secondary-menu-button:hover{background:#fff;box-shadow:0 7px 18px rgba(35,52,78,.12)}
.remark-trigger{min-width:0;padding:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:15px;font-weight:750;line-height:1.25;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:text;flex:1}
.remark-trigger:hover{text-decoration:underline;text-decoration-color:rgba(49,110,232,.45);text-underline-offset:4px}
.remark-inline-input{min-width:0;flex:1;width:100%;height:32px;padding:0 9px;border:1px solid rgba(49,110,232,.35);border-radius:10px;background:#f8fbff;color:var(--ink);font:inherit;font-size:15px;font-weight:700;outline:0;box-shadow:0 0 0 4px rgba(49,110,232,.09)}
.more-button{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;border:0;border-radius:12px;background:transparent;color:#7d899b;line-height:0;cursor:pointer;transition:background .2s ease,transform .2s ease}
.more-button img{width:16px;height:16px;opacity:.66}
.more-button:hover{background:#f2f5f9}
.more-button:active{transform:scale(.94)}
.sk5-subnav:has(a:only-child){display:none}
/* Shared Cardfolio sidebar trigger and compact SK5 navigation */
.sk5-global-sidebar-anchor{--app-sidebar-bg:#fff;--app-sidebar-text:var(--ink);--app-sidebar-line:rgba(35,52,78,.08);--app-sidebar-accent:var(--accent);display:grid;place-items:center;flex:0 0 40px;width:40px;height:42px}
.sk5-header .sk5-global-sidebar-anchor .app-sidebar-toggle{position:static;z-index:1;display:grid;width:40px;height:40px;border:0;border-radius:14px;background:rgba(255,255,255,.86);color:var(--ink);box-shadow:0 6px 18px rgba(40,58,91,.08);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.sk5-header .sk5-global-sidebar-anchor .app-sidebar-toggle img{width:18px;height:18px}
.sk5-subnav{display:flex;gap:6px;align-items:center;overflow-x:auto;margin:-5px 0 16px;padding:4px;border-radius:16px;background:rgba(255,255,255,.62);box-shadow:0 6px 18px rgba(35,52,78,.04);scrollbar-width:none}
.sk5-subnav::-webkit-scrollbar{display:none}
.sk5-subnav a{flex:0 0 auto;padding:8px 12px;border-radius:11px;color:#7b8799;text-decoration:none;font-size:11px;font-weight:700;white-space:nowrap;transition:background .2s ease,color .2s ease,transform .2s ease}
.sk5-subnav a:hover{background:#f1f4f8;color:var(--ink)}
.sk5-subnav a.active{background:var(--accent-soft);color:var(--accent);box-shadow:0 4px 12px rgba(49,110,232,.12)}
.more-button{display:grid;place-items:center;flex:0 0 36px;padding:0;line-height:1;letter-spacing:0;transform:none}
.more-button::first-letter{letter-spacing:0}
@media(max-width:760px){.sk5-global-sidebar-anchor{flex-basis:40px}.sk5-subnav{margin-top:-3px;margin-bottom:13px}.sk5-subnav a{padding:7px 10px;font-size:10px}.more-button{flex-basis:36px;width:36px;height:36px}.remark-inline-input{font-size:14px}}
.remark-inline-input{font-size:16px;box-shadow:none}
.instance-card:focus-within{box-shadow:0 8px 23px rgba(28,47,78,.06)}
.sort-menu-panel{backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.sort-menu-panel button.selected::after{content:'✓';float:right;margin-left:8px}
.secondary-menu-button:focus-visible,.more-button:focus-visible,.remark-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* Apple-like line card layout: quiet hierarchy, no editing chrome. */
.instance-list{gap:12px}
.instance-card,.instance-card:hover,.instance-card:focus-within{padding:18px 19px 16px;border:1px solid rgba(35,52,78,.045);border-radius:24px;background:rgba(255,255,255,.92);box-shadow:0 10px 28px rgba(29,48,79,.065);animation:none;transform:none;transition:none}
.instance-head{gap:10px;min-height:38px}
.line-index{width:30px;height:30px;border-radius:10px;background:#f0f4fb;color:#5574ae;font-size:11px;font-weight:700}
.line-identity{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.line-title{display:block;min-width:0;flex:1;font-size:16px;font-weight:700;line-height:1.3;cursor:text;outline:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.line-title:empty::before{content:attr(data-placeholder);color:#8a97aa}
.line-title:hover,.line-title:focus,.line-title:focus-visible{outline:0;text-decoration:none;border:0;background:transparent;box-shadow:none}
.line-title[aria-invalid="true"]{color:#c14952}
.line-city{font-size:10px;padding:5px 9px;border-radius:999px;background:#f0f7f3;color:#418566}
.more-button{flex:0 0 34px;width:34px;height:34px;border-radius:11px}
.more-button svg{width:17px;height:17px;fill:currentColor;stroke:none}
.endpoint{margin:15px 0 14px;padding:15px 16px;border-radius:16px;background:#f6f8fb;box-shadow:inset 0 1px rgba(255,255,255,.8)}
.endpoint strong{font-size:16px;font-weight:650;letter-spacing:-.02em}
.endpoint small{font-size:10px;color:#8e99aa}
.details{grid-template-columns:1fr 1fr;gap:14px;padding:0 2px}
.detail span,.credential span{font-size:10px;color:#99a3b2;margin-bottom:5px}
.detail strong,.credential b{font-size:12px;font-weight:600;color:#4f5c70}
.credentials{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:15px;padding:13px 2px 0;border-top:1px solid rgba(35,52,78,.07);font-size:11px;color:#67758c;min-height:0}
.credential{min-width:0;display:grid;gap:3px}
.credential span,.credential b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.secret{display:flex;align-items:center;gap:7px;min-width:0}
.secret b{flex:1}
.reveal-button{font-size:10px;padding:2px 0}
.remark-inline-input{border:0;background:transparent;box-shadow:none;padding:0;outline:0}
.remark-inline-input:focus{outline:0;border:0;box-shadow:none;background:transparent}
html,body{max-width:100%;overflow-x:hidden}
.toolbar-actions{display:flex;align-items:center;gap:7px;margin-left:auto}.toolbar-actions .secondary-menu-button{position:relative}.toolbar-actions .secondary-menu-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.toolbar-actions .secondary-menu-button img{width:17px;height:17px}.hidden-card-count{position:absolute;top:-5px;right:-5px;min-width:16px;height:16px;padding:0 4px;display:grid;place-items:center;border-radius:99px;background:#8794a9;color:#fff;font:700 9px/1 -apple-system,BlinkMacSystemFont,sans-serif}.hidden-card-panel{margin:-4px 0 12px;padding:11px 12px;border-radius:18px;background:rgba(255,255,255,.82);box-shadow:0 8px 22px rgba(35,52,78,.07)}.hidden-card-head{display:flex;align-items:center;justify-content:space-between;color:#6f7b8f;font-size:11px;margin-bottom:8px}.hidden-card-head button{width:24px;height:24px;border:0;border-radius:8px;background:#f2f4f8;color:#8691a2;font-size:17px;line-height:1}.hidden-card-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 9px;border-radius:11px;background:#f6f8fb;color:#53627a;font-size:12px}.hidden-card-row+.hidden-card-row{margin-top:5px}.hidden-card-row button{border:0;border-radius:9px;background:#e9eef8;color:#526d9b;padding:5px 8px;font-size:11px}.sync-action{display:inline-grid;place-items:center;width:27px;height:27px;border:0;border-radius:9px;background:#eef3fb;color:#5b77b1;flex:0 0 auto}.sync-action svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sync-action[data-state="connected"]{display:none}.sync-action:disabled{opacity:.55}.sync-status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:0 0 auto;background:#b7c0cc}.sync-status-dot.connected{background:#39a979;box-shadow:0 0 0 4px rgba(57,169,121,.13)}.sync-status-dot.mismatch{background:#d4a252;box-shadow:0 0 0 4px rgba(212,162,82,.12)}.sync-status-dot.duplicate{background:#cf7373;box-shadow:0 0 0 4px rgba(207,115,115,.12)}.instance-head .line-title{min-width:0}.instance-head .sync-status-dot{margin-left:2px}.instance-head .line-city{margin-left:auto}.instance-head .more-button{flex:0 0 auto}.sync-action + .more-button{margin-left:0}

/* Card content remains readable on narrow screens: each information band owns its space. */
.instance-card,.instance-card:hover,.instance-card:focus-within{padding:16px 17px 15px;border-color:rgba(35,52,78,.045);}
.instance-head{display:grid;grid-template-columns:30px minmax(0,1fr) auto auto;align-items:start;gap:9px;min-height:38px;}
.line-identity{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px 8px;min-width:0;}
.line-title{min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:break-word;line-height:1.35;}
.line-city{align-self:start;margin-left:0;}
.instance-head .sync-status-dot{align-self:center;margin:9px 0 0;}
.instance-head .more-button,.instance-head .sync-action{align-self:start;margin-top:0;}
.endpoint{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;min-height:62px;margin:13px 0 14px;padding:14px 15px;}
.endpoint strong{min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:break-word;line-height:1.4;}
.endpoint small{align-self:start;padding-top:2px;}
.details{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px;}
.detail strong,.credential b{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:break-word;line-height:1.35;}
.credentials{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;}
.credential{min-width:0;}
.secret{min-width:0;align-items:flex-start;}
.secret b{min-width:0;}
@media(max-width:420px){
  .instance-card,.instance-card:hover,.instance-card:focus-within{padding:15px 14px 14px;}
  .instance-head{grid-template-columns:28px minmax(0,1fr) auto auto;gap:8px;}
  .line-index{width:28px;height:28px;}
  .line-city{padding:4px 8px;}
  .endpoint{min-height:60px;padding:13px 14px;}
}

/* Keep the city/status chips beside the title while allowing only the title to wrap. */
.line-identity{display:flex;align-items:flex-start;gap:8px;}
.line-identity .line-title{flex:1;}
.line-identity .line-city{flex:0 0 auto;}

/* City code sheet: compact, searchable and consistent with the line toolbar. */
.city-code-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.city-code-dialog{width:min(92vw,480px);max-height:86dvh}
.city-code-card{max-height:86dvh;overflow:hidden;padding:22px 18px 16px}
.city-code-search{display:grid;gap:6px;margin:3px 0 9px;color:#8793a5;font-size:11px;font-weight:650}
.line-groups{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:2px 2px 10px;margin:-2px 0 11px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.line-groups::-webkit-scrollbar{display:none}
.line-groups button{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;height:34px;padding:0 12px;border:0;border-radius:999px;background:rgba(255,255,255,.78);color:#7b8799;box-shadow:0 6px 16px rgba(35,52,78,.06);font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
.line-groups button span{min-width:16px;color:#a3adbb;font-size:10px;font-weight:650}
.line-groups button:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(35,52,78,.09)}
.line-groups button.selected{background:var(--accent);color:#fff;box-shadow:0 8px 18px rgba(49,110,232,.2)}
.line-groups button.selected span{color:rgba(255,255,255,.78)}
.city-code-search input{width:100%;height:38px;border:0;border-radius:12px;background:#f3f6fb;color:var(--ink);padding:0 12px;font:inherit;font-size:13px;outline:0}
.city-code-search input:focus{box-shadow:0 0 0 3px rgba(49,110,232,.12);background:#edf3ff}
.city-code-summary{min-height:18px;color:#8a97aa;font-size:10px;margin:0 2px 7px}
.city-code-list{display:grid;gap:6px;max-height:52dvh;overflow:auto;padding:2px 2px 5px;scrollbar-width:thin}
.city-code-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:42px;padding:7px 10px;border-radius:13px;background:#f7f9fc;box-shadow:0 4px 12px rgba(35,52,78,.045)}
.city-code-row code{color:var(--accent);font:700 12px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif}
.city-code-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#41516b;font-size:12px;font-weight:650}
.city-code-row span{padding:4px 7px;border-radius:999px;background:#eef7f2;color:#4b8b6c;font-size:9px;white-space:nowrap}
.city-code-empty{padding:22px 8px;text-align:center;color:#9aa6b6;font-size:12px}
@media(max-width:420px){.city-code-card{padding:20px 14px 13px}.city-code-list{max-height:50dvh}.city-code-row{grid-template-columns:52px minmax(0,1fr) auto;padding-left:9px;padding-right:9px}}
