:root {
  color-scheme: dark;
  --bg: #0f172a;
  --surface: #151f33;
  --surface-raised: #1a263b;
  --ink: #f1f5f9;
  --muted: #a2afc3;
  --border: #2b3850;
  --accent: #3b82f6;
  --space: 24px;
  font: 16px/1.6 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #93c5fd; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px; background: white; color: #0f172a; }
.skip-link:focus { top: 12px; }
.header { border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1280px; margin: auto; padding: 24px 40px; display: grid; grid-template-columns: 1fr minmax(220px, 400px) 1fr; gap: 32px; align-items: center; }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 12px; text-decoration: none; width: fit-content; font-size: 17px; font-weight: 750; letter-spacing: .06em; white-space: nowrap; }
.brand-mark { display: block; width: 44px; height: 44px; flex: none; object-fit: contain; }
.search { display: flex; align-items: center; gap: 10px; background: #131e32; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; }
.search:focus-within { border-color: #6f9bdd; }
.search svg { width: 19px; height: 19px; stroke: var(--muted); stroke-width: 1.7; flex: none; }
.search input { min-width: 0; width: 100%; color: var(--ink); background: none; border: 0; padding: 11px 0; }
.search input:focus-visible { outline-offset: 0; }
input::placeholder, textarea::placeholder { color: #8190a7; }
kbd { color: #93a2ba; font: 11px/1.4 "Segoe UI", sans-serif; white-space: nowrap; border: 1px solid #35435b; border-radius: 4px; padding: 3px 5px; }
.button { min-height: 44px; border: 1px solid #3b4a63; border-radius: 7px; padding: 10px 16px; color: #e2e8f0; background: #1a263b; font-size: 14px; font-weight: 600; display: inline-flex; gap: 9px; align-items: center; justify-content: center; transition: background 150ms, border-color 150ms; }
.button:hover { background: #24334d; border-color: #607698; }
.button-admin { justify-self: end; }
.button svg, .icon-button svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.6; }
.button-admin circle { fill: #1a263b; }
.button-primary { background: #2563eb; border-color: #3b82f6; color: white; }
.button-primary:hover { background: #1d4ed8; border-color: #93c5fd; }
.main { max-width: 1280px; padding: 0 40px; margin: auto; }
.page-heading { padding: 65px 0 52px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .17em; color: #94a6c1; margin: 0 0 15px; }
h1 { font-size: clamp(32px, 3.8vw, 48px); font-weight: 600; line-height: 1.18; letter-spacing: -.045em; margin: 0; }
.title-second-line { font-weight: 550; }
.intro { color: var(--muted); font-size: 16px; margin: 20px 0 0; }
.workspace-mark { padding: 10px 30px; }
.workspace-mark svg { width: 116px; height: 116px; stroke: #354866; stroke-width: 1; }
.workspace-mark rect:first-child { fill: #1a2d4c; stroke: #4776b6; }
.workspace-mark path { stroke: #6785ae; stroke-width: 1.5; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 26px; }
.section-heading h2 { font-size: 17px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 12px; }
.count { color: #aab9d0; border: 1px solid #384761; border-radius: 5px; font-size: 12px; font-weight: 500; padding: 0 7px; font-variant-numeric: tabular-nums; }
.section-note { color: #8d9db6; font-size: 13px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.app-card { min-width: 0; border: 1px solid #30405b; border-radius: 12px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease; }
.card-art { height: 154px; background: #18253d; position: relative; display: grid; place-items: center; border-bottom: 1px solid #2b3a54; overflow: hidden; }
.card-art::before, .card-art::after { content: ""; position: absolute; width: 186px; height: 186px; border: 1px solid #30425f; border-radius: 36px; transform: rotate(-22deg); }
.card-art::after { width: 130px; height: 130px; border-color: #3b5274; }
.card-art.pc { background: #19283a; }
.card-art svg { width: 54px; height: 54px; position: relative; z-index: 1; stroke: #b5ceef; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.card-index { position: absolute; left: 18px; top: 13px; color: #8095b6; font: 11px/1.5 ui-monospace, monospace; letter-spacing: .08em; }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.card-domain { color: #8da2c1; font-size: 12px; margin: 0 0 12px; overflow-wrap: anywhere; }
.card-body h3 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.025em; margin: 0 0 8px; overflow-wrap: anywhere; }
.card-description { color: var(--muted); font-size: 14px; margin: 0 0 26px; overflow-wrap: anywhere; }
.open-tool { margin-top: auto; font-size: 11px; letter-spacing: .07em; padding-inline: 18px; }
.app-card:focus-within { border-color: #6998dc; box-shadow: 0 0 24px #3b82f61c; }
@media (hover: hover) and (pointer: fine) { .app-card:hover { transform: translateY(-5px); border-color: #598bd1; box-shadow: 0 14px 28px #02061750, 0 0 25px #3b82f622; } }
footer { margin-top: 72px; border-top: 1px solid var(--border); padding: 24px 0 34px; color: #8292ac; font-size: 12px; display: flex; gap: 12px; justify-content: space-between; }
.footer-separator { color: #4c607e; padding: 0 10px; }
.empty-state { text-align: center; border: 1px dashed #3c4e6c; padding: 48px 24px; border-radius: 12px; }
.empty-state h3 { margin: 0 0 8px; font-size: 20px; }
.empty-state p { color: var(--muted); margin: 0 0 20px; }
.notice { background: #2e2930; color: #f5d4ad; border: 1px solid #6b5140; padding: 12px 16px; font-size: 14px; border-radius: 8px; }
dialog { width: min(560px, calc(100% - 32px)); max-height: 88dvh; padding: 0; border: 1px solid #41516d; border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 32px 100px #0008; }
dialog::backdrop { background: #020617b8; backdrop-filter: blur(5px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px 20px; border-bottom: 1px solid var(--border); }
.dialog-heading .eyebrow { margin-bottom: 6px; font-size: 10px; }
.dialog-heading h2 { font-size: 24px; letter-spacing: -.03em; margin: 0; font-weight: 600; }
.icon-button { border: 0; background: transparent; color: #b4c0d2; width: 44px; height: 44px; border-radius: 6px; display: grid; place-items: center; }
.icon-button:hover { background: #29364d; color: white; }
.dialog-content { padding: 20px 28px 28px; }
.dialog-description { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
form label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 7px; }
form label span { color: #91baff; }
form input, form textarea { width: 100%; background: #0f192c; color: var(--ink); border: 1px solid #3a4963; padding: 10px 12px; border-radius: 6px; font-size: 16px; }
form textarea { resize: vertical; min-height: 78px; }
.field-help { font-size: 12px; color: #93a4bf; margin: 6px 0 0; }
.form-error { color: #ffb5c2; font-size: 14px; }
.add-button { margin-top: 20px; width: 100%; }
.managed-section { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 28px; }
.managed-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.managed-heading h3 { font-size: 14px; margin: 0; font-weight: 600; }
#managed-count { color: #91a1ba; font-size: 12px; }
.managed-list { list-style: none; margin: 12px 0 0; padding: 0; }
.managed-list li { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid #29374f; }
.managed-info { min-width: 0; }
.managed-info strong { font-size: 14px; display: block; overflow-wrap: anywhere; }
.managed-info small { color: #91a1ba; display: block; overflow-wrap: anywhere; }
.delete-button { background: transparent; color: #e6aab5; border: 1px solid #65414e; padding: 7px 12px; border-radius: 6px; min-height: 44px; font-size: 13px; flex: none; }
.delete-button:hover { background: #3e2735; }
.dialog-footer { background: #121c2f; border-top: 1px solid var(--border); padding: 14px 28px; color: #8e9fba; font-size: 12px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #253650; color: #eff6ff; border: 1px solid #54739c; box-shadow: 0 10px 30px #0005; padding: 12px 20px; border-radius: 8px; max-width: calc(100% - 32px); font-size: 14px; z-index: 5; }
@media (max-width: 1000px) { .header-inner { grid-template-columns: auto 1fr auto; gap: 22px; } .search kbd { display: none; } .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .header-inner { padding: 18px 20px; grid-template-columns: 1fr auto; gap: 18px; } .search { grid-row: 2; grid-column: 1 / -1; } .brand { font-size: 15px; } .button-admin { padding-inline: 12px; } .main { padding-inline: 20px; } .page-heading { padding: 38px 0; } .workspace-mark { display: none; } .section-note { display: none; } .app-grid { grid-template-columns: 1fr; } .card-art { height: 160px; } footer { margin-top: 44px; flex-direction: column; } .dialog-content { padding: 18px 20px 24px; } .dialog-heading { padding-inline: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .app-card:hover { transform: none; } }

/* A narrow white reflection crosses the stationary silver finish. */
.header {
  box-shadow: inset 0 1px #7da9ef30;
}

.silver-title {
  --silver-edge: #71717a;
  display: inline-block;
  color: #d4d4d8;
}

.brand .silver-title {
  --silver-edge: #999da8;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .silver-title {
    background:
      linear-gradient(105deg, transparent 35%, #ffffff80 46%, #fff 50%, #ffffff80 54%, transparent 65%) no-repeat,
      linear-gradient(180deg, #ffffff 0%, #a1a1aa 50%, var(--silver-edge) 100%);
    background-size: 52% 100%, 100% 100%;
    background-position: -110% 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
  }

  .brand .silver-title { animation-delay: -700ms; }

  @media (prefers-reduced-motion: reduce) {
    .silver-title { animation: none; }
  }
}

@keyframes shine {
  from { background-position: -110% 0, 0 0; }
  to { background-position: 215% 0, 0 0; }
}

@media (forced-colors: active) {
  .silver-title {
    animation: none;
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }
  .brand .silver-title { color: LinkText; }
}
