:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #17191d;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --blue: #075de8;
  --muted: #687385;
  --rule: #e2e6eb;
  --page-width: 1344px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
a { color: inherit; }

.site-header {
  height: 78px;
  padding: 0 max(36px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; text-decoration: none; letter-spacing: -.04em; }
.wordmark-symbol { display: grid; place-items: center; width: 37px; height: 37px; color: #fff; background: #17191d; border-radius: 50% 50% 50% 8px; font-size: 12px; letter-spacing: -.08em; }
.header-label { color: #353b45; font-size: 14px; }

.page-shell { width: min(var(--page-width), calc(100% - 72px)); margin: 0 auto; }
.intro { padding: 53px 0 33px; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 56px); font-weight: 600; letter-spacing: -.065em; line-height: 1.1; }
.intro p { margin: 10px 0 0; color: var(--muted); font-size: 19px; line-height: 1.5; letter-spacing: -.025em; }

.search-box { height: 58px; display: flex; align-items: center; gap: 13px; padding: 0 17px; border: 1px solid #cfd5de; border-radius: 6px; color: #7c8798; transition: border-color .16s, box-shadow .16s; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #075de81c; }
.search-box svg { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; }
.search-box input { width: 100%; height: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #20242a; font-size: 16px; }
.search-box input::placeholder { color: #778295; opacity: 1; }
.search-hint { border: 1px solid #d9dee5; border-radius: 4px; padding: 1px 7px; color: #778295; font-size: 12px; line-height: 1.6; font-family: inherit; }

.filters { display: flex; align-items: center; gap: 32px; margin-top: 27px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; position: relative; min-height: 42px; padding: 0 0 13px; border: 0; color: #687385; background: transparent; cursor: pointer; font-size: 15px; font-weight: 500; }
.filter:hover, .filter:focus-visible { color: var(--blue); }
.filter:focus-visible, .open-link:focus-visible, .wordmark:focus-visible, .site-footer a:focus-visible { outline: 3px solid #075de84d; outline-offset: 4px; border-radius: 3px; }
.filter.is-active { color: var(--blue); font-weight: 600; }
.filter.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--blue); content: ''; }

.app-list { border-bottom: 1px solid var(--rule); }
.app-row { min-height: 100px; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; column-gap: 19px; padding: 15px 2px; border-bottom: 1px solid var(--rule); }
.app-row:last-child { border-bottom: 0; }
.app-mark { width: 54px; height: 54px; display: grid; place-items: center; }
.app-mark svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.app-mark.coral { color: #eb493e; }
.app-mark.blue { color: #1967e9; }
.app-mark.gold { color: #d9a31b; }
.app-mark.green { color: #168152; }
.app-mark.coral svg, .app-mark.blue svg, .app-mark.gold svg { fill: currentColor; stroke: #fff; stroke-width: 1.1; }
.app-mark.coral svg path:nth-child(2) { stroke: #fff; }
.app-copy h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.035em; }
.app-copy p { margin: 4px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.open-link { display: inline-flex; align-items: center; gap: 9px; padding: 10px 0 10px 14px; color: var(--blue); text-decoration: none; font-size: 16px; font-weight: 500; white-space: nowrap; }
.open-link span { font-size: 19px; line-height: 1; transition: transform .16s; }
.open-link:hover span { transform: translate(2px, -2px); }
.empty-state { padding: 30px 2px; color: var(--muted); font-size: 15px; }
.empty-state[hidden], .app-list[hidden] { display: none; }

.site-footer { width: min(var(--page-width), calc(100% - 72px)); min-height: 70px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; color: #7a8492; font-size: 12px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer a span { margin-left: 3px; }

@media (min-width: 1440px) {
  .page-shell { padding-top: 4px; }
  .intro { padding-top: 61px; padding-bottom: 36px; }
  .app-row { min-height: 100px; }
}

@media (max-width: 640px) {
  .site-header { height: 66px; padding: 0 21px; }
  .wordmark { gap: 9px; font-size: 15px; }
  .wordmark-symbol { width: 33px; height: 33px; }
  .page-shell, .site-footer { width: calc(100% - 42px); }
  .intro { padding: 38px 0 24px; }
  h1 { max-width: 440px; font-size: clamp(37px, 10vw, 48px); }
  .intro p { max-width: 34ch; margin-top: 10px; font-size: 16px; }
  .search-box { height: 49px; }
  .filters { gap: 11px; margin-top: 21px; }
  .filter { min-height: 40px; padding-bottom: 12px; font-size: 12px; }
  .app-row { min-height: 91px; grid-template-columns: 45px minmax(0, 1fr); column-gap: 12px; padding: 14px 0; }
  .app-mark { width: 43px; height: 43px; }
  .app-mark svg { width: 40px; height: 40px; }
  .app-copy h2 { font-size: 16px; }
  .app-copy p { margin-top: 3px; font-size: 13px; }
  .open-link { grid-column: 2; padding: 7px 0 0; font-size: 13px; }
  .site-footer { min-height: 68px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-width: 0; }
.viewer-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.session-action, .retry-button { border: 0; background: transparent; padding: 8px 0; color: var(--blue); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.session-action:focus-visible, .retry-button:focus-visible { outline: 3px solid #075de84d; outline-offset: 4px; border-radius: 3px; }
.session-action:disabled { cursor: wait; opacity: .6; }
.directory-status { padding: 24px 2px 0; color: var(--muted); font-size: 15px; }
.retry-button { margin-bottom: 24px; }
[hidden] { display: none !important; }
@media (max-width: 640px) {
  .header-actions { gap: 12px; }
  .header-actions .header-label { display: none; }
  .viewer-name { max-width: 85px; font-size: 12px; }
  .session-action { font-size: 13px; }
}
@media (max-width: 380px) { .viewer-name { max-width: 52px; } }

.admin-editor { margin: 0 0 30px; padding: 24px; border: 1px solid var(--rule); border-radius: 6px; }
.editor-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.editor-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.editor-heading p, .editor-access p, #editor-status { color: var(--muted); line-height: 1.5; font-size: 14px; }
.editor-heading p { margin: 8px 0 0; max-width: 70ch; }
.editor-app { min-width: 0; padding: 20px; margin: 22px 0; border: 1px solid var(--rule); border-radius: 5px; }
.editor-app legend { padding: 0 7px; font-weight: 600; }
.editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.editor-field { display: flex; flex-direction: column; gap: 7px; color: #353b45; font-size: 13px; }
.editor-field input:not([type="checkbox"]), .editor-field select, .editor-field textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid #cfd5de; border-radius: 4px; background: #fff; color: #20242a; font: inherit; font-size: 15px; }
.editor-field textarea { resize: vertical; }
.editor-field input:focus-visible, .editor-field textarea:focus-visible, .editor-field select:focus-visible { outline: 3px solid #075de81c; border-color: var(--blue); }
.editor-access { display: grid; gap: 14px; margin-top: 20px; padding-top: 3px; border-top: 1px solid var(--rule); }
.editor-access .editor-field:has(input[type="checkbox"]) { flex-direction: row-reverse; justify-content: flex-end; align-items: center; }
.editor-field input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--blue); }
.editor-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.editor-button { padding: 10px 14px; border: 1px solid #cfd5de; border-radius: 4px; background: #fff; color: #353b45; font: inherit; font-size: 14px; cursor: pointer; }
.editor-button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.editor-button:focus-visible { outline: 3px solid #075de84d; outline-offset: 3px; }
.editor-button:disabled { opacity: .5; cursor: default; }
.remove-app { margin-top: 18px; }
@media (max-width: 640px) {
  .site-header { height: auto; min-height: 66px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 12px; }
  .header-actions { flex-wrap: wrap; }
  .admin-editor { padding: 16px; }
  .editor-fields { grid-template-columns: minmax(0, 1fr); }
  .editor-app { padding: 14px; }
  .editor-heading { gap: 10px; }
}
