@charset "UTF-8";
:root{color-scheme:light;--bg:#f6f7f9;--ink:#202b3b;--muted:#788395;--line:#e5e9ef;--blue:#355edc;--blue-light:#eef2ff;--green:#2e9b7a;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.6}button,input{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #90a9ff;outline-offset:3px}[hidden]{display:none!important}h1,h2,p{margin:0}h1{font-weight:600;letter-spacing:-1.3px;line-height:1.4;font-size:32px}h2{font-size:18px;font-weight:600}label{display:block;font-weight:500;margin:18px 0 7px}input:not([type=checkbox], [type=radio]){display:block;width:100%;height:44px;border:1px solid #dce2eb;border-radius:8px;background:#fff;padding:10px 12px;color:var(--ink);outline:none}input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #355edc13}input:read-only{background:#f7f8fa}input::placeholder{color:#a3acba}.muted{color:var(--muted)}.eyebrow{color:#8590a2;font-size:10px;font-weight:650;letter-spacing:2.1px;margin-bottom:13px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:20px;border-radius:8px;padding:11px 18px;font-weight:550;white-space:nowrap;line-height:1.4}.primary{border:1px solid var(--blue);background:var(--blue);color:#fff;box-shadow:0 3px 6px #355edc15}.primary:hover{background:#2b4fc1}.secondary{background:white;border:1px solid #dce2eb;color:#4a5a73}.secondary:hover{background:#f7f9ff}.full{width:100%;justify-content:space-between}.error{color:#bb3a45;font-size:13px;min-height:0;white-space:pre-line}.error:not(:empty){margin:15px 0}.brand-icon{width:44px;height:44px;border-radius:12px;background:var(--blue);color:white;display:inline-flex;align-items:center;justify-content:center;font-size:28px;line-height:1;box-shadow:0 4px 10px #355edc1a}.brand-icon.small{width:36px;height:36px;font-size:24px;border-radius:10px}.login-page{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:36px 20px;background:radial-gradient(ellipse at 50% 20%,#eef2fc 0%,#f6f7f9 65%)}.login-card{width:420px;background:#fff;border:1px solid #e5e9f1;border-radius:18px;box-shadow:0 12px 60px #29385707;padding:38px 38px 25px}.login-card .brand-icon{margin-bottom:28px}.login-card h1{font-size:31px;margin-bottom:16px}.login-card .muted{font-size:13px}.login-card form{margin-top:26px}.login-card form .primary{margin-top:22px}.login-footer{display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;letter-spacing:.4px;color:#969fad;border-top:1px solid #edf0f5;padding-top:20px;margin-top:28px}.status-dot{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:6px}.page-footer{position:fixed;bottom:22px;font-size:11px;color:#9ba4b2;letter-spacing:1px}.topbar{height:90px;padding:0 5vw;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px;font-weight:600;font-size:16px}.brand small{display:block;font-size:8px;letter-spacing:1.7px;font-weight:500;color:#8c97a7;margin-top:1px}.topbar nav{display:flex;align-items:center;gap:18px;font-size:12px}.user{color:#788395;border-right:1px solid var(--line);padding-right:20px}.text-button{border:none;background:transparent;padding:4px;color:#6f7d91;font-size:12px}.text-button:hover{color:var(--blue)}.workspace{max-width:1140px;margin:0 auto;padding:58px 32px 25px}.workspace-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:38px;gap:20px}.workspace-heading .eyebrow{margin-bottom:6px}.workspace-heading h1{display:flex;align-items:center;gap:15px;margin-bottom:7px}.workspace-heading .muted{font-size:13px}.count{font-size:12px;font-weight:500;letter-spacing:0;background:#e8ecf3;color:#77869b;padding:1px 8px;border-radius:6px}.workspace-heading .primary{font-size:12px;padding:11px 16px}.empty{border:1px dashed #d9e0eb;border-radius:14px;min-height:355px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#ffffff60;text-align:center;padding:30px}.empty-icon{font-size:28px;color:#8e9dbd;display:flex;align-items:center;justify-content:center;background:#edf1f8;border:1px solid #e1e7f1;border-radius:13px;width:56px;height:56px;margin-bottom:20px}.empty h2{font-size:17px;margin-bottom:9px}.empty p{color:#8d97a7;font-size:12px;line-height:1.9}.empty .secondary{font-size:12px;margin-top:24px;padding:10px 15px}.workspace-footer{display:flex;justify-content:space-between;color:#99a2b0;font-size:10px;border-top:1px solid var(--line);padding-top:22px;margin-top:45px}.service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.service-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:23px;transition:box-shadow .2s}.service-card:hover{box-shadow:0 5px 25px #233b6b08}.card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.service-icon{width:38px;height:38px;background:#edf2ff;color:#5470c9;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:500}.badge{font-size:10px;color:#4d9b81;border-radius:4px;background:#eff8f4;padding:3px 7px}.disabled .badge{color:#929ba9;background:#f1f3f6}.card-description{font-size:12px;margin-top:5px;min-height:40px;overflow-wrap:anywhere}.service-address{display:inline-block;font-size:11px;color:#8491a5;background:#f6f8fb;border-radius:4px;padding:3px 7px;margin:14px 0 20px;overflow-wrap:anywhere}.card-actions{border-top:1px solid #edf0f5;padding-top:14px;display:flex;justify-content:space-between;gap:8px;font-size:11px}.card-buttons{display:flex;gap:10px}.card-actions .text-button{font-size:10px;padding:1px}.open-link{color:var(--blue);font-weight:500}.danger:hover{color:#c6434b}.notice{border:1px solid #d1e6db;border-radius:8px;background:#f0faf4;padding:12px 16px;font-size:12px;color:#36785e;margin-bottom:25px}dialog{border:1px solid var(--line);border-radius:16px;width:480px;max-width:calc(100vw - 30px);max-height:90dvh;padding:28px;color:var(--ink);box-shadow:0 25px 90px #16274822}dialog::backdrop{background:#1e2b4650;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.icon-button{background:transparent;border:0;font-size:23px;line-height:1;color:#8d99ab;padding:2px 5px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.dialog-actions button{font-size:12px}.input-group{display:flex;align-items:center;border:1px solid #dce2eb;border-radius:8px;padding:0 12px;gap:8px;color:#97a3b5}.input-group input:not([type=checkbox]){border:0;box-shadow:none;padding:10px 0}.input-group:focus-within{border-color:var(--blue)}.checkbox{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:400;margin-top:20px}.checkbox input{accent-color:var(--blue);margin:0;width:14px;height:14px}.field-help{font-size:11px;line-height:1.7;color:#95a0af;margin:6px 0 0 22px}
@media(max-width:900px){.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace{padding-top:38px}}@media(max-width:600px){.topbar{height:74px;padding:0 20px}.topbar nav{gap:10px}.user{display:none}.brand{font-size:14px}.workspace{padding:30px 20px}.workspace-heading h1{font-size:27px}.workspace-heading{gap:12px;align-items:flex-start}.workspace-heading .primary{margin-top:28px;font-size:11px;padding:9px 10px}.workspace-heading .muted{font-size:11px}.service-grid{grid-template-columns:1fr}.workspace-footer{font-size:9px}.login-card{padding:30px 26px 23px;border-radius:14px}.login-card h1{font-size:29px}.page-footer{display:none}.empty{min-height:330px}}
.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}.workspace-heading{margin-bottom:30px}.workspace-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px}.tag-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;flex:1}.filter-tag{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid transparent;border-radius:7px;color:#7b8799;background:transparent;font-size:12px;max-width:100%;overflow-wrap:anywhere}.filter-tag:hover{background:#ecf0f7}.filter-tag.active{background:#fff;border-color:#dce3f0;color:#355edc;box-shadow:0 1px 3px #1d366008}.tag-count{font-size:10px;opacity:.65}.search-box{position:relative;width:250px;flex-shrink:0}.search-box>span{position:absolute;left:12px;top:6px;font-size:22px;color:#94a0b2;pointer-events:none}.search-box input:not([type=checkbox]){height:38px;padding-left:35px;font-size:12px;background:#fff;border-color:#e1e6ee}.service-card{min-width:0;display:flex;flex-direction:column}.service-card h2{overflow-wrap:anywhere;line-height:1.5}.card-description{min-height:38px;margin-top:7px;white-space:pre-line}.service-address{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-self:flex-start;margin:14px 0 13px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.7}.card-tags{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:20px;min-height:24px;align-content:flex-start}.tag-chip{background:#eef2f6;border:1px solid transparent;border-radius:5px;color:#79879b;font-size:10px;padding:3px 7px;line-height:1.4;max-width:100%;overflow-wrap:anywhere}.tag-chip:hover{border-color:#bdc9e2}.tag-chip[data-tag=codex]{background:#edf1ff;color:#5976c4}.tag-chip[data-tag=zcode]{background:#f3edff;color:#9471bb}.tag-chip[data-tag=others]{background:#eff2f5;color:#8290a0}.untagged{font-size:10px;color:#a6afbd;line-height:24px}.external-icon{background:#f0f3f7;color:#7d8eaa}.external-badge{background:#f2f4f8;color:#8b96a7}.card-actions{margin-top:auto;align-items:center}.card-buttons{gap:9px}.input-help{margin-top:7px;color:#95a0af;font-size:11px}.tag-suggestions{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}.empty #clear-filters{margin-top:20px;color:var(--blue)}.empty p{max-width:320px}.service-card.disabled .service-icon{filter:grayscale(1);opacity:.6}
@media(max-width:700px){.workspace-tools{align-items:stretch;flex-direction:column;gap:13px}.search-box{width:100%}.search-box input:not([type=checkbox]){height:40px}.filter-tag{padding:6px 9px}.workspace-heading{margin-bottom:25px}.card-actions .text-button{font-size:11px}.card-buttons{gap:12px}.card-actions{font-size:12px}.card-tags{gap:7px}.tag-chip{font-size:11px}}

/* Use the available screen width and keep the service directory compact. */
.topbar{height:60px;padding:0 16px}
.topbar-left{height:100%;display:flex;align-items:center;gap:20px;min-width:0}
.topbar .workspace-nav{height:100%;display:flex;align-items:stretch;gap:0;font-size:14px}
.workspace-nav-link{height:100%;display:inline-flex;align-items:center;gap:8px;padding:0 4px;border-bottom:2px solid transparent;white-space:nowrap;font-weight:600}
.workspace-nav-link.active{color:var(--blue);border-bottom-color:var(--blue)}
.workspace-nav-link .count{font-size:10px;padding:1px 6px;color:#7384a9;background:#eef2fb}
.workspace{width:100%;max-width:none;margin:0;padding:18px 16px}
.workspace-heading{margin-bottom:12px;gap:12px;align-items:center}
.workspace-heading .eyebrow,.workspace-heading .muted{display:none}
.workspace-heading h1{font-size:24px;letter-spacing:-.5px;gap:10px;margin:0}
.workspace-heading .primary{margin-top:0;padding:8px 13px}
.workspace-tools{gap:14px;margin-bottom:12px}
.workspace-controls{display:flex;align-items:center;gap:10px;flex-shrink:0;min-width:0}
.workspace-controls>.primary{height:38px;padding:0 13px;font-size:12px;flex-shrink:0}
.kind-filters{display:flex;flex-shrink:0;gap:2px;min-width:0;margin:0;padding:2px;border:1px solid #dce3f0;border-radius:8px;background:#ecf0f7}
.kind-filters label{margin:0;cursor:pointer}
.kind-filters label span{display:block;padding:6px 8px;border:1px solid transparent;border-radius:5px;color:#4a5a73;font-size:12px;line-height:18px;white-space:nowrap}
.kind-filters input:checked+span{border-color:#dce3f0;background:#fff;color:#355edc;box-shadow:0 1px 3px #1d366008}
.kind-filters label:hover span{color:var(--blue)}
.kind-filters input:focus-visible+span{outline:2px solid #90a9ff;outline-offset:-2px}
.search-box>.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;display:block;fill:none;stroke:#94a0b2;stroke-width:1.8;stroke-linecap:round;pointer-events:none}
.service-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:12px}
.service-card{padding:12px 14px;border-radius:8px}
.service-card.is-untagged{background:#fffbf1}
.card-top{gap:8px;margin-bottom:0;align-items:center}
.service-icon{width:26px;height:26px;border-radius:7px;font-size:12px;flex-shrink:0}
.service-icon.has-favicon{background:transparent}
.service-favicon{display:block;width:18px;height:18px;object-fit:contain}
.service-card h2{flex:1;min-width:0;font-size:14px;line-height:1.45;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.service-title-link{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;text-decoration:none}
.service-title-link:hover{color:var(--blue);text-decoration:none}
.service-title-link:focus-visible{outline-offset:-2px}
.badge{flex-shrink:0;font-size:9px;padding:2px 5px;white-space:nowrap}
.card-description{min-height:0;margin-top:6px;font-size:11px;line-height:1.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.service-address{margin:7px 0 8px;padding:0;background:transparent;font-size:10px;line-height:1.6}
.card-meta{display:flex;align-items:flex-start;gap:8px;margin-bottom:8px}
.card-meta .card-tags{flex:1;min-width:0;min-height:18px;gap:4px;margin-bottom:0}
.card-meta>.badge{margin-top:1px}
.tag-chip{padding:2px 6px;font-size:10px;line-height:1.4}
.untagged{font-size:10px;line-height:18px}
.card-actions{padding-top:7px;gap:6px;font-size:11px;line-height:1.5}
.card-buttons{gap:8px}
.card-actions .text-button{font-size:10px;padding:2px 0}
.workspace-footer{margin-top:20px;padding-top:12px}
.empty{min-height:210px}
.filter-tag[data-sortable=true]{cursor:grab;touch-action:none;user-select:none}
.tag-grip{font-size:13px;line-height:1;color:#a4afc0}
.filter-tag.is-dragging{opacity:.35}
.filter-tag.drop-before{box-shadow:inset 2px 0 var(--blue)}
.filter-tag.drop-after{box-shadow:inset -2px 0 var(--blue)}
.filter-tag.tag-drag-preview{position:fixed;z-index:1100;transform:translate(-50%,-50%);pointer-events:none;opacity:.95;background:#fff;border-color:#cbd7f4;box-shadow:0 4px 16px #233b6b20;cursor:grabbing}
.notice{position:fixed;right:16px;bottom:16px;z-index:1000;display:flex;align-items:center;gap:16px;max-width:min(420px,calc(100vw - 32px));margin:0;padding:10px 12px 10px 16px;font-size:12px;box-shadow:0 4px 20px #233b6b1a}
.notice-close{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;font-size:18px;line-height:1}
.notice-close:hover{background:#dcefe4}
.selected-tags{display:flex;flex-wrap:wrap;gap:7px;align-items:center;min-height:32px;margin-bottom:10px}
.selected-tags>.muted{font-size:12px}
.selected-tag{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:3px 5px 3px 10px;border:1px solid #dfe6fb;border-radius:6px;background:#eef2ff;color:#5470c9;font-size:12px;overflow-wrap:anywhere}
.remove-tag{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;font-size:17px;line-height:1}
.remove-tag:hover{background:#dde5ff}
.tag-add-row{display:flex;align-items:center;gap:8px}
.tag-add-row input{min-width:0;flex:1}
.tag-add-row>.secondary{height:44px;flex-shrink:0;padding:0 14px}
.tag-editor .tag-suggestions{margin-top:12px}
.tag-editor .tag-chip:disabled{cursor:default;opacity:.7}
.tag-editor .tag-chip[aria-pressed=true]{background:#edf1ff;color:#5976c4}
@media(max-width:700px){
  .topbar{padding:0 12px}.brand-icon.small{width:30px;height:30px;font-size:21px}
  .notice{right:12px;bottom:12px;max-width:calc(100vw - 24px)}
  .topbar-left{gap:14px}.topbar .workspace-nav{font-size:13px}
  .workspace{padding:14px 12px}.workspace-heading h1{font-size:22px}
  .workspace-tools{gap:10px}.filter-tag{padding:5px 8px}.service-grid{gap:10px}
  .workspace-controls{width:100%;gap:8px}.workspace-controls .search-box{width:auto;min-width:0;flex:1}
  .workspace-controls>.primary{height:40px;padding:0 12px}
  .card-actions .text-button{font-size:11px;padding:3px 0}.card-buttons{gap:12px}
}
@media(max-width:540px){
  .workspace-controls{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .kind-filters{grid-column:1/-1;justify-self:start}
}
