@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #101112;
  --panel-raised: #151617;
  --border: #25282b;
  --text: #f1f2f4;
  --muted: #8b9097;
  --subtle: #5e646b;
  --accent: #a9bcf4;
  --green: #58c89a;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html { min-width: 320px; background: var(--bg); }
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; }
.workspace { width: min(1260px, calc(100% - 48px)); margin: 0 auto; padding: 104px 0 28px; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1260px) / 2));
  border-bottom: 1px solid #1c1e20;
  background: rgb(5 5 5 / 94%);
  backdrop-filter: blur(12px);
}
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: 28px;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.7px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 7px;
  background: #f0f1f3;
}
.brand-mark i { width: 2px; border-radius: 3px; background: #101113; }
.brand-mark i:first-child { height: 8px; }
.brand-mark i:last-child { height: 14px; }
.nav-item {
  flex: 0 0 auto;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a5aab0;
  cursor: pointer;
  font-size: 12px;
}
.nav-item.active { background: transparent; color: #f0f1f2; }
.nav-count {
  min-width: 19px;
  padding: 2px 5px;
  border-radius: 20px;
  background: #282b2e;
  color: #bfc3c8;
  text-align: center;
  font: 10px var(--mono);
}
.nav-glyph { width: 15px; height: 13px; position: relative; display: inline-block; }
.inbox-glyph { border: 1px solid currentColor; border-radius: 3px; }
.inbox-glyph::before { content: ""; position: absolute; left: -1px; right: -1px; top: 3px; height: 5px; border: 1px solid currentColor; border-radius: 2px; background: #17191b; }
.inbox-glyph::after { content: ""; position: absolute; top: 6px; left: 5px; width: 4px; height: 2px; border-bottom: 1px solid currentColor; }
.header-search {
  flex: 0 1 430px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto;
  padding: 0 13px;
  border: 1px solid #24272a;
  border-radius: 8px;
  background: #101112;
}
.header-search > span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 1.4px solid #777d84;
  border-radius: 50%;
  position: relative;
}
.header-search > span::after { content: ""; position: absolute; right: -4px; bottom: -2px; width: 5px; height: 1px; background: #777d84; transform: rotate(45deg); }
.header-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.header-search input::placeholder { color: #777d84; }
.top-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 15px; }
.live-indicator { display: flex; align-items: center; gap: 8px; color: #a6abb1; font-size: 11px; white-space: nowrap; }
.live-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #173125; }
.icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #eff0f2;
  color: #101113;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.icon-button:hover { background: #d9dce0; }
.icon-button.small { width: 31px; height: 31px; border-color: var(--border); background: #171819; color: #dfe1e4; font-size: 14px; }

.endpoint-bar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}
.endpoint-copy { display: flex; min-width: 0; align-items: center; gap: 14px; }
.endpoint-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.new-endpoint-button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 7px; background: #242526; color: #e9eaec; cursor: pointer; font-size: 12px; }
.new-endpoint-button:hover { background: #303132; }
.endpoint-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #303337;
  border-radius: 10px;
  background: #191b1d;
}
.endpoint-icon span { width: 12px; height: 12px; position: relative; border: 1.5px solid #c6cbd2; border-radius: 50%; }
.endpoint-icon span::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 4px; height: 4px; border-radius: 50%; background: #c6cbd2; }
.endpoint-text { min-width: 0; }
.eyebrow { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .035em; }
.endpoint-text code { display: block; max-width: min(64vw, 720px); overflow: hidden; color: #e9eaec; text-overflow: ellipsis; white-space: nowrap; font: 12px/1.4 var(--mono); }
.copy-button {
  min-height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #eff0f2;
  color: #151618;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}
.copy-button:hover { background: #dadddf; }
.copy-icon { width: 13px; height: 13px; position: relative; display: inline-block; border: 1.3px solid currentColor; border-radius: 2px; }
.copy-icon::before { content: ""; position: absolute; top: -4px; left: 3px; width: 8px; height: 9px; border: 1.3px solid currentColor; border-radius: 2px; background: inherit; }

.content-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 34px 0 15px; }
.title-row { display: flex; align-items: center; gap: 10px; }
.content-head h1 { margin: 0; color: #f2f3f4; font-size: 21px; font-weight: 650; letter-spacing: -.4px; }
.content-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.total-pill { min-width: 22px; padding: 3px 7px; border-radius: 20px; background: #222527; color: #c4c8cd; text-align: center; font: 10px var(--mono); }
.head-actions { display: flex; align-items: center; }
.text-button { padding: 6px 0 6px 10px; border: 0; background: transparent; color: #9ca1a7; cursor: pointer; font-size: 11px; }
.text-button:hover { color: var(--text); }

.inspector {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(275px, .82fr) minmax(360px, 1.18fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}
.request-pane { position: relative; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.pane-heading {
  height: 45px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid var(--border);
  color: #a7acb2;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .035em;
}
.sort-label { display: flex; align-items: center; gap: 7px; color: #7c8289; font-size: 10px; font-weight: 400; letter-spacing: 0; }
.sort-label i { width: 0; height: 0; border-top: 4px solid #8b9096; border-right: 3px solid transparent; border-left: 3px solid transparent; }
.request-list { overflow: auto; }
.request-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px 12px;
  border: 0;
  border-bottom: 1px solid #202224;
  background: #101112;
  text-align: left;
  cursor: pointer;
}
.request-row:hover { background: #17191b; }
.request-row.selected { background: #191b1f; box-shadow: inset 2px 0 var(--accent); }
.method-badge {
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 5px;
  border-radius: 5px;
  background: #282d37;
  color: #b7c8f5;
  font: 10px var(--mono);
}
.method-badge.get { background: #212c35; color: #9cc8e8; }
.method-badge.put, .method-badge.patch { background: #332e24; color: #d8c08b; }
.method-badge.delete { background: #35272a; color: #e6a4aa; }
.method-badge.options, .method-badge.head { background: #242f2b; color: #a1cbbb; }
.row-main { flex: 1; min-width: 0; }
.row-path { display: block; overflow: hidden; color: #e9eaec; text-overflow: ellipsis; white-space: nowrap; font: 11px var(--mono); }
.row-preview { display: block; overflow: hidden; margin-top: 5px; color: #80868c; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.row-time { flex: 0 0 auto; padding-top: 2px; color: #777d83; font: 9px var(--mono); }
.empty-list {
  position: absolute;
  inset: 46px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #101112;
  text-align: center;
}
.empty-list.hidden { display: none; }
.empty-symbol { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid #292c2f; border-radius: 50%; }
.empty-symbol span { width: 16px; height: 12px; position: relative; border: 1px solid #8a9097; border-radius: 3px; }
.empty-symbol span::after { content: ""; position: absolute; top: -4px; left: 4px; width: 6px; height: 4px; border: 1px solid #8a9097; border-bottom: 0; border-radius: 3px 3px 0 0; background: #101112; }
.empty-list strong, .detail-empty strong { color: #e7e8ea; font-size: 12px; font-weight: 600; }
.empty-list p, .detail-empty p { max-width: 230px; margin: 6px 0 10px; color: #82888e; font-size: 10px; }
.sample-link { padding: 5px; border: 0; background: transparent; color: #d3d6da; cursor: pointer; font-size: 10px; }
.sample-link:hover { color: #fff; }

.detail-pane { min-width: 0; position: relative; background: #101112; }
.detail-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.detail-empty.hidden { display: none; }
.detail-empty-mark { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 11px; border: 1px solid #2b2e31; border-radius: 50%; color: #9ba1a8; font-size: 17px; }
.request-detail { padding: 19px 22px 22px; }
.request-detail.hidden { display: none; }
.detail-topline { display: flex; align-items: center; justify-content: space-between; }
.detail-topline > div { display: flex; align-items: center; gap: 10px; }
.detail-label { color: #858b91; font: 10px var(--mono); }
.status-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; background: #1e3027; color: #8dd2af; font: 9px var(--mono); }
.status-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.request-title { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.request-title .method-badge { min-width: 48px; padding: 5px 7px; font-size: 10px; }
.request-title code { overflow: hidden; color: #e9eaec; text-overflow: ellipsis; white-space: nowrap; font: 12px var(--mono); }
.request-meta { display: flex; flex-wrap: wrap; gap: 7px 15px; margin: 10px 0 18px; color: #858b91; font-size: 10px; }
.request-meta span { display: inline-flex; align-items: center; gap: 5px; }
.request-meta b { color: #c6c9cd; font-weight: 500; }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border); }
.tab { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 0 9px; border: 0; background: transparent; color: #81878d; cursor: pointer; font-size: 11px; }
.tab.active { color: #e8e9eb; font-weight: 600; }
.tab.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #d6d9dd; }
.tab span { padding: 2px 5px; border-radius: 10px; background: #202224; color: #a4a9af; font: 9px var(--mono); }
.tab-content { min-height: 170px; }
.tab-content.hidden { display: none; }
.code-toolbar { height: 34px; display: flex; align-items: center; justify-content: space-between; color: #7f858b; font: 9px var(--mono); letter-spacing: .04em; }
.format-button { padding: 4px 0; border: 0; background: transparent; color: #c7ccd2; cursor: pointer; font: 10px var(--sans); }
.code-block { max-height: 300px; min-height: 136px; overflow: auto; margin: 0; padding: 13px 14px; border: 1px solid #272a2d; border-radius: 9px; background: #090a0b; color: #d0d3d7; white-space: pre-wrap; overflow-wrap: anywhere; font: 10px/1.75 var(--mono); }
.code-block code { font: inherit; }
.headers-table { max-height: 300px; overflow: auto; }
.header-row { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 9px 2px; border-bottom: 1px solid #202224; font: 10px/1.5 var(--mono); }
.header-row strong { overflow-wrap: anywhere; color: #8d939a; font-weight: 400; }
.header-row span { overflow-wrap: anywhere; color: #d7d9dd; }
.workspace-footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; color: #6f757b; font-size: 9px; }
.workspace-footer span:first-child { display: flex; align-items: center; gap: 7px; }
.workspace-footer i { width: 5px; height: 5px; margin: 0; border-radius: 50%; background: var(--green); }

.example-dialog { position: relative; width: min(460px, calc(100vw - 30px)); padding: 25px; border: 1px solid #303336; border-radius: 16px; background: #111213; color: var(--text); box-shadow: 0 18px 60px #000b; }
.example-dialog::backdrop { background: #000b; backdrop-filter: blur(3px); }
.example-dialog h2 { margin: 5px 0 7px; font-size: 20px; letter-spacing: -.4px; }
.example-dialog p { margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.example-dialog pre { overflow: auto; margin: 0; padding: 14px; border: 1px solid #26292c; border-radius: 9px; background: #08090a; color: #d7d9dc; white-space: pre-wrap; overflow-wrap: anywhere; font: 10px/1.7 var(--mono); }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: #a6abb1; cursor: pointer; font-size: 22px; }
.dialog-copy { margin-top: 13px; }
.toast { position: fixed; z-index: 20; bottom: 22px; left: 50%; padding: 9px 14px; border: 1px solid #36393d; border-radius: 8px; background: #1a1c1e; color: #f2f3f4; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .15s, transform .15s; font-size: 11px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .workspace { width: calc(100% - 36px); }
  .topbar { padding: 0 18px; }
  .header-search { flex-basis: 300px; margin: 0 20px; }
  .live-indicator { font-size: 0; }
  .live-indicator i { margin: 0; }
  .inspector { grid-template-columns: minmax(240px, .82fr) minmax(300px, 1.18fr); }
}
@media (max-width: 700px) {
  .workspace { width: calc(100% - 24px); padding-top: 82px; }
  .topbar { height: 60px; padding: 0 12px; }
  .brand { gap: 7px; margin-right: 10px; font-size: 15px; }
  .brand-mark { width: 25px; height: 25px; }
  .nav-item { width: 35px; justify-content: center; padding: 0; }
  .nav-label { display: none; }
  .nav-count { min-width: 16px; padding: 2px 4px; }
  .header-search { flex: 1 1 auto; min-width: 50px; height: 35px; margin: 0 9px; padding: 0 10px; }
  .top-actions { gap: 7px; }
  .icon-button { width: 33px; height: 33px; }
  .endpoint-bar { min-height: 72px; gap: 10px; padding: 11px; border-radius: 13px; }
  .endpoint-copy { gap: 9px; }
  .endpoint-icon { width: 31px; height: 31px; }
  .endpoint-text code { max-width: calc(100vw - 150px); font-size: 10px; }
  .copy-button { min-height: 34px; padding: 0 10px; font-size: 11px; }
  .new-endpoint-button { min-height: 34px; padding: 0 10px; font-size: 11px; }
  .endpoint-bar { flex-wrap: wrap; }
  .endpoint-actions { margin-left: auto; }
  .content-head { align-items: flex-end; margin: 24px 0 12px; }
  .content-head h1 { font-size: 17px; }
  .content-head p { max-width: 220px; font-size: 10px; }
  .inspector { min-height: 720px; grid-template-columns: 1fr; grid-template-rows: 300px minmax(380px, 1fr); border-radius: 13px; }
  .request-pane { border-right: 0; border-bottom: 1px solid var(--border); }
  .detail-pane { min-height: 380px; }
  .request-detail { padding: 15px; }
  .code-block { min-height: 110px; max-height: 200px; }
  .headers-table { max-height: 200px; }
  .workspace-footer { font-size: 8px; }
}
@media (max-width: 430px) {
  .top-actions { gap: 5px; }
  .live-indicator { display: none; }
  .endpoint-text code { max-width: calc(100vw - 130px); }
  .request-meta { gap: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Controls and spacing follow the reference's understated dark interface. */
.topbar { height: 76px; background: #000; border-bottom-color: #181818; backdrop-filter: none; }
.workspace { padding-top: 112px; }
.brand { font-size: 22px; font-weight: 700; letter-spacing: -.9px; }
.nav-item { color: #929292; font-size: 14px; cursor: default; }
.nav-item.active { color: #aaa; }
.nav-count { background: transparent; color: #777; }
.header-search { height: 40px; background: #151515; border-color: transparent; border-radius: 8px; }
.header-search input { font-size: 14px; }
.endpoint-bar, .inspector { background: #0d0d0d; border-color: #222; border-radius: 20px; }
.endpoint-bar { min-height: 110px; padding: 22px 26px; }
.eyebrow { color: #999; font-size: 12px; letter-spacing: 0; }
.endpoint-text code { font-size: 14px; }
.copy-button, .new-endpoint-button, .copy-body-button, .sample-link, .text-button {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px;
  background: rgba(255,255,255,.1); color: #fff; font: 400 14px var(--sans);
  cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.copy-button { background: #fff; color: #111; }
.copy-button:hover { background: #dcdcdc; }
.new-endpoint-button:hover, .copy-body-button:hover, .sample-link:hover, .text-button:hover { background: rgba(255,255,255,.19); color: #fff; }
.copy-button:active, .new-endpoint-button:active, .copy-body-button:active, .sample-link:active, .text-button:active { transform: scale(.98); }
.content-head { margin: 42px 0 20px; }
.content-head h1 { font-size: 26px; font-weight: 600; }
.content-head p { font-size: 14px; }
.total-pill { font-size: 11px; }
.inspector { min-height: 460px; }
.request-pane { border-color: #242424; }
.pane-heading { height: 56px; border-color: #242424; font-size: 12px; }
.sort-label { font-size: 12px; }
.empty-list, .detail-pane { background: #0d0d0d; }
.empty-list { inset: 57px 0 0; }
.empty-list strong, .detail-empty strong { font-size: 16px; font-weight: 600; }
.empty-list p, .detail-empty p { max-width: 250px; font-size: 13px; line-height: 1.5; }
.sample-link { margin-top: 8px; }
.request-row { background: #0d0d0d; transition: background-color .2s ease; }
.request-row:hover { background: #1b1b1b; }
.request-row.selected { background: #1b1b1b; box-shadow: inset 2px 0 #dedede; }
.tab { font-size: 13px; transition: color .2s ease; }
.tab:hover { color: #fff; }
.format-button { font-size: 12px; }
.format-button:disabled { opacity: .4; cursor: default; }
.dialog-close { position: static; float: right; padding: 6px 10px; border-radius: 8px; background: #252525; font-size: 12px; }
.dialog-close:hover { background: #333; }
.example-dialog { border-radius: 20px; }
@media (max-width: 700px) {
  .topbar { height: 64px; }
  .workspace { padding-top: 86px; }
  .brand { font-size: 19px; }
  .nav-item { display: none; }
  .header-search { margin-right: 0; }
  .endpoint-bar { padding: 18px; }
  .endpoint-text code { max-width: calc(100vw - 65px); }
  .endpoint-actions { width: 100%; margin: 8px 0 0; }
  .copy-button, .new-endpoint-button { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .content-head { margin-top: 32px; }
  .content-head h1 { font-size: 21px; }
  .content-head p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.header-search { transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.header-search:focus-within { background: #1c1c1c; border-color: #777; box-shadow: 0 0 0 3px #ffffff12; }
.header-search > span:first-child { transition: border-color .2s ease; }
.header-search:focus-within > span:first-child { border-color: #eee; }
.header-search { position: relative; overflow: hidden; }
.header-search > .search-progress { position: absolute; inset: auto 12px 0; width: auto; height: 2px; border: 0; border-radius: 2px; background: #eee; opacity: 0; transform: scaleX(0); transform-origin: left; transition: transform .25s ease, opacity .25s ease; }
.header-search > .search-progress::after { display: none; }
.header-search.is-typing > .search-progress { opacity: .85; transform: scaleX(1); }
.header-search input { caret-color: #fff; }
.request-detail:not(.hidden), .tab-content:not(.hidden), .empty-list:not(.hidden), .detail-empty:not(.hidden) { animation: appear .2s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.example-dialog[open] { animation: dialog-in .2s ease both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; } }


/* Consistent type scale and alignment for the inspector. */
.endpoint-copy { flex: 1 1 auto; min-width: 0; }
.endpoint-text { width: 100%; }
.endpoint-text code { max-width: 100%; font-size: 14px; line-height: 1.5; }
.eyebrow { font-size: 13px; font-weight: 500; line-height: 1.4; }
.pane-heading { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.sort-label { font-size: 13px; }
.request-row { align-items: center; padding: 16px; gap: 12px; }
.method-badge, .request-title .method-badge { min-width: 52px; font-size: 11px; line-height: 1.4; }
.row-path, .request-title code { font-size: 13px; line-height: 1.5; }
.row-preview, .row-time { font-size: 12px; }
.request-detail { padding: 24px; }
.detail-topline { gap: 16px; }
.detail-topline > div { flex-wrap: wrap; }
.detail-label { font: 500 13px/1.4 var(--sans); color: #a8a8a8; }
.status-chip { font-size: 11px; }
.request-meta { font-size: 12px; line-height: 1.5; }
.tab { font-size: 14px; }
.tab span { font-size: 11px; }
.code-toolbar { min-height: 44px; font-size: 11px; }
.code-block, .header-row { font-size: 12px; line-height: 1.6; }
.example-dialog { max-height: calc(100vh - 32px); overflow: auto; }
.example-dialog p { font-size: 14px; line-height: 1.5; }
.example-dialog pre { font-size: 12px; }
.dialog-close { float: none; position: absolute; top: 20px; right: 20px; }
.example-dialog h2 { padding-right: 70px; line-height: 1.3; }
@media (max-width: 700px) {
  .endpoint-copy { flex-basis: 100%; }
  .endpoint-text code { max-width: 100%; font-size: 12px; }
  .endpoint-actions { justify-content: flex-start; }
  .request-detail { padding: 18px; }
  .detail-topline { align-items: flex-start; }
  .copy-body-button { font-size: 12px; padding: 0 10px; }
  .header-row { grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr); }
}


/* Inbox at left; URL and request details share the main workspace. */
.workspace { width: 100%; max-width: none; min-height: 100vh; padding: 64px 0 0; }
.topbar { height: 64px; padding: 0 28px; border-bottom: 1px solid #242424; }
.brand { margin-right: 24px; font-size: 18px; }
.nav-item { font-size: 13px; }
.inspector { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 290px minmax(0, 1fr); margin: 0; border: 0; border-radius: 0; background: #0b0b0b; }
.request-pane { min-height: calc(100vh - 64px); background: #101010; border-right: 1px solid #292929; }
.pane-heading { height: 62px; padding: 0 20px; border: 0; font-size: 13px; }
.pane-heading #request-count { margin-left: 5px; color: #888; font-weight: 400; }
.pane-heading .text-button { min-height: 32px; padding: 0 10px; font-size: 12px; background: transparent; color: #aaa; }
.pane-heading .text-button:hover { background: #292929; color: #fff; }
.header-search { flex: none; height: 38px; margin: 0 16px 14px; border: 1px solid #303030; background: #171717; }
.header-search:focus-within { border-color: #999; box-shadow: none; }
.empty-list { inset: 115px 0 auto; min-height: 160px; justify-content: flex-start; padding: 28px 18px; background: transparent; }
.empty-list strong { font-size: 14px; }
.empty-list p { font-size: 12px; }
.empty-list .sample-link { min-height: 34px; font-size: 12px; }
.request-list { overflow: auto; }
.request-row { background: transparent; }
.detail-pane { min-height: calc(100vh - 64px); background: #0b0b0b; }
.endpoint-bar { min-height: 0; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 30px 36px 28px; border: 0; border-bottom: 1px solid #242424; border-radius: 0; background: transparent; }
.endpoint-copy { flex: 1 1 320px; }
.endpoint-text code { font-size: 13px; }
.endpoint-actions { margin: 0; }
.detail-content { position: relative; min-height: 400px; }
.detail-empty { justify-content: flex-start; align-items: flex-start; padding: 36px; text-align: left; }
.request-detail { max-width: 960px; padding: 32px 36px; }
.request-detail:not(.hidden), .tab-content:not(.hidden) { animation: content-enter .22s ease both; }
@keyframes content-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.empty-list:not(.hidden), .detail-empty:not(.hidden) { animation: none; }
.request-row, button { transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
@media (max-width: 700px) {
  .workspace { width: 100%; padding-top: 60px; }
  .topbar { height: 60px; padding: 0 16px; }
  .nav-item { display: flex; width: auto; }
  .nav-label { display: inline; }
  .inspector { display: flex; flex-direction: column; min-height: calc(100vh - 60px); }
  .request-pane { min-height: 240px; border-right: 0; border-bottom: 1px solid #292929; }
  .pane-heading { height: 54px; }
  .header-search { flex: none; margin: 0 16px 12px; }
  .empty-list { position: relative; inset: auto; min-height: 130px; padding: 16px; }
  .request-list { max-height: 260px; }
  .detail-pane { min-height: 320px; }
  .endpoint-bar { padding: 24px 20px; }
  .endpoint-copy { flex-basis: 100%; }
  .endpoint-actions { width: auto; margin: 0; }
  .detail-content { min-height: 220px; }
  .detail-empty { padding: 24px 20px; }
  .request-detail { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }


/* Final layout refinements */
.topbar { position: sticky; top: 0; background: rgba(5,5,5,.96); backdrop-filter: blur(16px); }
.workspace { padding-top: 0; }
.inspector { min-height: calc(100vh - 64px); }
.brand { font-size: 19px; letter-spacing: -.5px; }
.nav-item { color: #b0b0b0; }
.request-pane { background: #0c0c0d; }
.pane-heading { padding: 0 22px; }
.header-search { margin-left: 18px; margin-right: 18px; background: #161617; border-color: #2a2a2c; }
.header-search:focus-within { background: #1a1a1b; border-color: #777; }
.detail-pane { background: #080808; }
.endpoint-bar { align-items: center; gap: 20px; padding: 34px 40px; }
.endpoint-text .eyebrow { margin-bottom: 8px; color: #a5a5aa; }
.endpoint-text code { color: #f0f0f2; font-size: 14px; }
.endpoint-actions { gap: 10px; }
.new-endpoint-button, .copy-button, .copy-body-button, .sample-link, .text-button {
  transition: background-color .32s cubic-bezier(.22,1,.36,1), color .32s ease, transform .32s cubic-bezier(.22,1,.36,1), box-shadow .32s ease;
}
.new-endpoint-button:hover, .copy-button:hover, .copy-body-button:hover, .sample-link:hover { transform: translateY(-1px); }
.new-endpoint-button:active, .copy-button:active, .copy-body-button:active, .sample-link:active { transform: translateY(0) scale(.98); }
.request-row { transition: background-color .3s ease, box-shadow .3s ease; }
.request-detail:not(.hidden), .tab-content:not(.hidden) { animation: content-enter .4s cubic-bezier(.22,1,.36,1) both; }
.example-dialog[open] { animation: dialog-in .4s cubic-bezier(.22,1,.36,1) both; }
@media (max-width: 700px) {
  .topbar { height: 60px; }
  .inspector { min-height: calc(100vh - 60px); }
  .endpoint-bar { padding: 24px 20px; }
  .endpoint-text code { font-size: 12px; }
  .request-pane { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* Header and inbox */
.brand { display: inline-flex; align-items: center; gap: 9px; margin: 0; }
.brand-sticker { display: block; flex: 0 0 30px; width: 30px; height: 30px; }
.brand-sticker svg { display: block; width: 100%; height: 100%; }
.pane-heading { height: 68px; padding: 0 20px; color: #ededf0; font-size: 15px; font-weight: 600; }
.pane-heading #request-count { display: inline-block; min-width: 22px; margin-left: 5px; color: #888; font-size: 12px; font-weight: 400; text-align: center; }
.pane-heading .text-button { color: #999; }
.header-search { height: 40px; margin-bottom: 14px; transition: background-color .35s cubic-bezier(.22,1,.36,1), border-color .35s ease, box-shadow .35s ease; }
.header-search:focus-within { border-color: #909095; background: #1b1b1d; box-shadow: 0 0 0 3px rgba(255,255,255,.045); }
.header-search.has-value { border-color: #58585d; }
.header-search input { transition: color .3s ease; }
.request-row.search-result { animation: search-result-in .3s cubic-bezier(.22,1,.36,1) both; }
@keyframes search-result-in { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.empty-list { inset: 121px 0 auto; align-items: flex-start; padding: 30px 22px; text-align: left; }
.empty-list p { margin-top: 7px; }
.empty-list .sample-link { margin-top: 12px; }
@media (max-width: 700px) {
  .brand { font-size: 19px; }
  .brand-sticker { flex-basis: 28px; width: 28px; height: 28px; }
  .pane-heading { height: 58px; }
  .empty-list { inset: auto; padding: 18px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* Shared visual rhythm */
:root { --ease-ui: cubic-bezier(.22, 1, .36, 1); }
body { letter-spacing: -.01em; }
.topbar { z-index: 10; }
.brand { gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.035em; }
.brand-sticker { width: 32px; height: 32px; flex-basis: 32px; }
.request-pane { background: #0e0e10; }
.pane-heading { height: 72px; padding: 0 22px; font-size: 15px; letter-spacing: -.01em; }
.pane-heading #request-count { color: #77777d; }
.header-search { height: 42px; margin: 0 18px 16px; border-radius: 10px; }
.header-search input { font: 400 13px/1.4 var(--sans); }
.empty-list { inset: 130px 0 auto; padding: 28px 22px; }
.empty-list strong, .detail-empty strong { font-size: 15px; line-height: 1.4; font-weight: 600; }
.empty-list p, .detail-empty p { color: #939399; font-size: 13px; line-height: 1.55; }
.empty-list .sample-link { margin-top: 14px; }
.endpoint-bar { padding: 36px 40px; align-items: center; }
.endpoint-text .eyebrow { margin-bottom: 9px; font-size: 13px; color: #aaaab1; }
.endpoint-text code { font-size: 14px; line-height: 1.5; }
.endpoint-actions { gap: 10px; }
.detail-empty { padding: 38px 40px; }
.request-detail { padding: 34px 40px; }
.request-row { min-height: 76px; border-bottom-color: #202023; }
.request-row.selected { box-shadow: inset 2px 0 #f0f0f2; }
.row-main { display: block; }
.row-path { color: #eeeef0; }
.row-preview { margin-top: 6px; color: #929298; }
.request-title { margin-top: 20px; }
.request-meta { margin: 13px 0 24px; color: #a0a0a6; }
.tabs { gap: 24px; }
.tab { padding-bottom: 12px; }
.tab.active::after { transition: background-color .3s ease; }
.copy-button, .new-endpoint-button, .copy-body-button, .sample-link, .text-button {
  min-height: 40px; border-radius: 8px; font-size: 13px; font-weight: 500;
}
.pane-heading .text-button { min-height: 34px; font-size: 12px; }
.request-row, .copy-button, .new-endpoint-button, .copy-body-button, .sample-link, .text-button, .tab {
  transition: background-color .3s var(--ease-ui), color .3s var(--ease-ui), border-color .3s var(--ease-ui), transform .3s var(--ease-ui), box-shadow .3s var(--ease-ui);
}
.request-row:active { transform: scale(.994); }
.request-detail:not(.hidden), .tab-content:not(.hidden) { animation: content-enter .45s var(--ease-ui) both; }
.example-dialog[open] { animation: dialog-in .45s var(--ease-ui) both; }
.toast { transition: opacity .3s var(--ease-ui), transform .3s var(--ease-ui); }

.app-loading {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; background: #080808;
  color: #f3f3f4; font-size: 19px; font-weight: 700; letter-spacing: -.03em;
  opacity: 1; visibility: visible; transition: opacity .45s var(--ease-ui), visibility .45s;
}
.app-loading.is-finished { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-sticker { width: 52px; height: 52px; display: grid; place-items: center; }
.loading-sticker svg { width: 100%; height: 100%; }
.loading-caption { margin-top: 3px; color: #88888e; font-size: 12px; font-weight: 400; letter-spacing: 0; }
@media (max-width: 700px) {
  .brand-sticker { width: 28px; height: 28px; flex-basis: 28px; }
  .pane-heading { height: 60px; }
  .header-search { margin-bottom: 12px; }
  .empty-list { inset: auto; padding: 20px 20px 26px; }
  .endpoint-bar { padding: 26px 20px; }
  .endpoint-text code { font-size: 12px; }
  .detail-empty, .request-detail { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* Workspace surfaces */
:root { --surface-border: #252528; --quiet-text: #a0a0a7; }
.topbar { border-bottom: 1px solid var(--surface-border); }
.inspector { grid-template-columns: 304px minmax(0, 1fr); }
.request-pane { border-right: 1px solid var(--surface-border); background: #0d0d0f; }
.pane-heading { padding: 0 24px; }
.header-search { margin-left: 20px; margin-right: 20px; }
.empty-list { padding-left: 24px; padding-right: 24px; }
.detail-pane { background: #09090a; }
.endpoint-bar { padding: 32px 40px; border-bottom: 1px solid var(--surface-border); }
.endpoint-text .eyebrow { color: var(--quiet-text); font-size: 13px; font-weight: 500; }
.endpoint-text code { font-size: 13px; letter-spacing: 0; }
.detail-empty, .request-detail { padding-left: 40px; padding-right: 40px; }
.detail-empty strong, .empty-list strong { color: #e9e9ec; font-size: 15px; font-weight: 600; }
.detail-empty p, .empty-list p { color: var(--quiet-text); }
.tabs, .request-row, .header-row { border-color: var(--surface-border); }
.app-loading { gap: 12px; font-size: 20px; letter-spacing: -.03em; }
.loading-caption { display: flex; align-items: center; gap: 8px; margin: 0; color: #9a9aa0; }
.loading-spinner { width: 13px; height: 13px; border: 1.5px solid #404044; border-top-color: #dedee0; border-radius: 50%; animation: loading-spin .8s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .inspector { display: flex; }
  .request-pane { border-right: 0; border-bottom: 1px solid var(--surface-border); }
  .pane-heading { padding: 0 20px; }
  .header-search { margin-left: 16px; margin-right: 16px; }
  .endpoint-bar { padding: 25px 20px; }
  .detail-empty, .request-detail { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .loading-spinner { animation: none; border-color: #888; }
}


/* Inbox transitions preserve elements until their exit has finished. */
.request-list { position: relative; }
.request-row {
  opacity: 1; transform: translateY(0);
  transition: opacity .24s ease, transform .24s cubic-bezier(.22,1,.36,1),
    background-color .25s ease, box-shadow .25s ease;
}
.request-row.is-entering, .request-row.is-leaving { opacity: 0; transform: translateY(6px); }
.request-row.is-leaving { pointer-events: none; }
.empty-list {
  opacity: 1; transform: translateY(0); visibility: visible;
  transition: opacity .24s ease, transform .24s cubic-bezier(.22,1,.36,1), visibility 0s;
}
.empty-list.is-hidden { opacity: 0; transform: translateY(6px); visibility: hidden; pointer-events: none; transition: opacity .24s ease, transform .24s cubic-bezier(.22,1,.36,1), visibility 0s .24s; }
.pane-heading { letter-spacing: -.015em; }
.pane-heading #request-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 8px; border-radius: 6px; background: #202023; color: #aaaab1; font: 500 11px/1 var(--sans); vertical-align: middle; }
.endpoint-text .eyebrow { color: #b8b8be; }
.endpoint-text code { color: #f1f1f3; }
.request-row.selected { background: #1c1c1f; }
.empty-list p, .detail-empty p { line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
  .request-row, .empty-list { transition-duration: .01ms !important; }
}


.agent-link { flex: 1 0 100%; min-width: 0; padding-top: 18px; border-top: 1px solid #242428; }
.agent-link .eyebrow { margin-bottom: 7px; color: #b8b8be; }
.agent-link-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.agent-link-row a { min-width: 0; overflow: hidden; color: #d6d6dd; font: 12px/1.5 var(--mono); text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.agent-link-row a:hover { color: #fff; text-decoration: underline; }
.agent-copy { flex: 0 0 auto; padding: 6px 9px; border: 0; border-radius: 7px; background: #242426; color: #e5e5e8; cursor: pointer; font: 500 12px var(--sans); transition: background-color .25s ease; }
.agent-copy:hover { background: #363638; }
.agent-hint { display: block; margin-top: 6px; color: #8f8f96; font-size: 12px; }
@media (max-width: 700px) { .agent-link-row { align-items: flex-start; flex-direction: column; gap: 8px; } .agent-link-row a { max-width: 100%; } }


/* Access and session management */
.access-screen { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: #080808; }
.access-card, .admin-panel { width: min(100%, 440px); padding: 32px; border: 1px solid #29292c; border-radius: 18px; background: #111113; }
.access-emoji { font-size: 30px; line-height: 1; margin-bottom: 18px; }
.access-card h1, .admin-panel h1 { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.035em; }
.access-card p, .admin-panel p, .sessions-dialog > p { margin: 9px 0 24px; color: #a4a4aa; font-size: 14px; line-height: 1.55; }
.access-form, .session-form { display: flex; flex-direction: column; gap: 10px; }
.access-form label, .session-form label { color: #c5c5ca; font-size: 13px; }
.access-form input, .session-form input { min-width: 0; height: 44px; padding: 0 13px; border: 1px solid #343438; border-radius: 8px; outline: 0; background: #19191b; color: #f2f2f3; font: 14px var(--sans); transition: border-color .2s ease, background .2s ease; }
.access-form input:focus, .session-form input:focus { border-color: #a0a0a5; background: #202022; }
.access-form .copy-button { width: 100%; margin-top: 6px; }
.form-error { display: block; min-height: 18px; color: #f2a4a4; font-size: 12px; }
.access-link { display: inline-block; padding: 6px 0; border: 0; background: none; color: #b6b6bd; text-decoration: none; cursor: pointer; font: 13px var(--sans); }
.access-link:hover { color: #fff; }
.access-card > .access-link { margin-top: 10px; }
.top-session { margin-left: auto; }
.sessions-dialog { width: min(520px, calc(100vw - 30px)); max-height: min(680px, calc(100vh - 30px)); overflow: auto; padding: 28px; border: 1px solid #333337; border-radius: 18px; background: #111113; color: #f2f2f3; }
.sessions-dialog::backdrop { background: #000c; backdrop-filter: blur(4px); }
.sessions-dialog h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.sessions-list { display: grid; gap: 7px; margin: 0 0 22px; max-height: 240px; overflow: auto; }
.session-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #29292d; border-radius: 8px; background: #1b1b1e; color: #eee; text-align: left; cursor: pointer; transition: background .25s ease, border-color .25s ease; }
.session-option:hover { border-color: #54545b; background: #252528; }
.session-option strong { overflow-wrap: anywhere; font-size: 13px; }
.session-option span { flex: 0 0 auto; color: #9999a0; font-size: 12px; }
.session-form > div { display: flex; gap: 8px; }
.session-form input { flex: 1 1 auto; }
.sessions-dialog .access-link { margin: 16px 18px 0 0; }
.admin-page { min-height: 100vh; }
.admin-container { width: min(100% - 40px, 800px); margin: 0 auto; padding: 30px 0 60px; }
.admin-brand { display: inline-block; margin-bottom: 48px; color: white; font-size: 19px; font-weight: 700; text-decoration: none; }
.admin-panel { margin: 0 auto; }
.admin-panel#admin-dashboard { width: 100%; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.admin-heading p { margin-bottom: 26px; }
.key-reveal { display: grid; gap: 10px; margin: 24px 0; padding: 18px; border: 1px solid #45454b; border-radius: 9px; background: #1b1b1e; }
.key-reveal p { margin: 0; font-size: 12px; }
.key-reveal code { overflow-wrap: anywhere; color: #fff; font: 12px/1.6 var(--mono); }
.key-reveal button { justify-self: start; }
.keys-list { margin-top: 28px; border-top: 1px solid #29292c; }
.key-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #29292c; font-size: 13px; }
.key-row strong { flex: 1; overflow-wrap: anywhere; }
.key-row span { color: #9999a0; font-size: 12px; }
@media (max-width: 480px) {
  .access-card, .admin-panel, .sessions-dialog { padding: 22px; }
  .session-form > div { flex-direction: column; }
  .session-form .copy-button { min-height: 44px; }
  .admin-heading { flex-direction: column; }
}


/* Administrator sign-in */
.admin-page { min-height: 100vh; background: #080809; }
.admin-container { width: min(100% - 48px, 1120px); min-height: 100vh; display: flex; flex-direction: column; margin: 0 auto; padding: 0 0 72px; }
.admin-brand { display: inline-flex; align-items: center; align-self: flex-start; gap: 9px; height: 72px; margin: 0; color: #f2f2f4; font-size: 19px; font-weight: 700; letter-spacing: -.035em; }
.admin-brand-mark { width: 30px; height: 30px; flex: 0 0 30px; }
.admin-brand-mark svg, .admin-sticker svg { display: block; width: 100%; height: 100%; }
.admin-panel { width: min(100%, 440px); margin: auto; padding: 36px; border: 1px solid #2a2a2e; border-radius: 18px; background: #121214; box-shadow: 0 18px 60px #0006; }
#admin-login { animation: admin-panel-in .55s cubic-bezier(.22,1,.36,1) both; }
.admin-sticker { width: 56px; height: 56px; margin: -4px 0 20px; }
.admin-panel h1 { color: #f5f5f6; font-size: 24px; line-height: 1.2; letter-spacing: -.035em; }
#admin-login > p { max-width: 310px; margin: 10px 0 26px; color: #a5a5ac; font-size: 14px; line-height: 1.55; }
#admin-login-form { gap: 10px; }
#admin-login-form label { color: #d0d0d5; font-size: 13px; font-weight: 500; }
#admin-code { height: 50px; padding: 0 15px; border-color: #38383d; background: #19191c; color: #f7f7f8; font: 500 18px/1 var(--sans); letter-spacing: .12em; caret-color: #fff; transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease; }
#admin-code::placeholder { color: #77777e; letter-spacing: .12em; }
#admin-code:hover { border-color: #626269; }
#admin-code:focus { border-color: #a7a7ae; background: #1d1d20; box-shadow: 0 0 0 3px #ffffff0c; }
#admin-code[aria-invalid="true"] { border-color: #d77d83; box-shadow: 0 0 0 3px #d77d8316; }
#admin-login-form .admin-submit { height: 46px; margin-top: 8px; border-radius: 8px; font-size: 14px; transition: background-color .25s ease, transform .25s cubic-bezier(.22,1,.36,1), opacity .25s ease; }
#admin-login-form .admin-submit:hover { transform: translateY(-1px); }
#admin-login-form .admin-submit:active { transform: translateY(0) scale(.99); }
#admin-login-form .admin-submit:disabled { opacity: .6; cursor: wait; transform: none; }
#admin-error { min-height: 18px; line-height: 1.5; }
#admin-error:not(:empty) { animation: admin-error-in .3s ease both; }
.admin-back { display: inline-block; margin-top: 12px; color: #a6a6ad; font-size: 13px; text-decoration: none; transition: color .25s ease; }
.admin-back:hover { color: #fff; }
.admin-panel#admin-dashboard { margin: 40px auto auto; }
.admin-enter { animation: admin-panel-in .5s cubic-bezier(.22,1,.36,1) both; }
.key-reveal:not(.hidden) { animation: admin-panel-in .4s cubic-bezier(.22,1,.36,1) both; }
@keyframes admin-panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes admin-error-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
  .admin-container { width: calc(100% - 32px); padding-bottom: 40px; }
  .admin-brand { height: 64px; }
  .admin-panel { padding: 28px 24px; }
  .admin-panel h1 { font-size: 22px; }
  .admin-panel#admin-dashboard { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-panel, .admin-enter, #admin-error, .key-reveal { animation: none !important; }
  #admin-code, #admin-login-form .admin-submit, .admin-back { transition-duration: .01ms !important; }
}


/* Shared header and access transitions */
body { transition: opacity .2s ease, transform .2s ease; }
body.page-leaving { opacity: 0; transform: translateY(4px); pointer-events: none; }
.admin-header { position: sticky; top: 0; z-index: 10; height: 64px; display: flex; align-items: center; padding: 0 28px; border-bottom: 1px solid #252528; background: rgba(5,5,5,.96); backdrop-filter: blur(16px); }
.admin-brand { height: 64px; gap: 10px; margin: 0; font-size: 19px; }
.admin-brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
.admin-container { width: min(100% - 48px, 1120px); min-height: calc(100vh - 64px); padding: 32px 0 72px; }
.admin-panel#admin-dashboard { margin: 24px auto auto; }
.access-screen { inset: 64px 0 0; z-index: 9; overflow-y: auto; }
.access-screen:not(.hidden) ~ .app-shell .top-session { visibility: hidden; }
.access-card { padding: 36px; background: #121214; border-color: #2a2a2e; box-shadow: 0 18px 60px #0006; animation: access-enter .45s cubic-bezier(.22,1,.36,1) both; }
.login-sticker { width: 56px; height: 56px; margin: -4px 0 20px; }
.login-sticker svg { display: block; width: 100%; height: 100%; }
.access-card h1 { font-size: 24px; }
.access-form input { height: 50px; transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.access-form input:focus { box-shadow: 0 0 0 3px #ffffff0c; }
.access-form button:disabled { opacity: .6; cursor: wait; }
#login-error:not(:empty) { animation: admin-error-in .3s ease both; }
.sessions-dialog[open] { animation: access-enter .35s cubic-bezier(.22,1,.36,1) both; }
@keyframes access-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .admin-header { height: 60px; padding: 0 16px; }
  .admin-brand { height: 60px; }
  .admin-brand-mark { width: 28px; height: 28px; flex-basis: 28px; }
  .admin-container { width: calc(100% - 32px); min-height: calc(100vh - 60px); padding: 24px 0 40px; }
  .access-screen { top: 60px; }
}
@media (max-width: 480px) { .access-card { padding: 28px 24px; } .access-card h1 { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) {
  body, .access-card, .sessions-dialog, #login-error { animation: none !important; transition-duration: .01ms !important; }
}


/* Administrator TOTP setup */
.totp-help { margin-top: 18px; padding-top: 16px; border-top: 1px solid #2b2b2f; color: #aaaab1; font-size: 13px; line-height: 1.55; }
.totp-help summary { width: fit-content; color: #d2d2d7; cursor: pointer; transition: color .25s ease; }
.totp-help summary:hover { color: #fff; }
.totp-help summary:focus-visible { outline: 2px solid #a9bcf4; outline-offset: 4px; border-radius: 3px; }
.totp-help[open] .totp-help-content { animation: admin-error-in .3s ease both; }
.totp-help-content { padding-top: 12px; }
.admin-panel .totp-help-content p { margin: 0 0 10px; color: #aaaab1; font-size: 12px; line-height: 1.6; }
.totp-help-content > code { display: block; overflow-x: auto; padding: 10px 12px; border: 1px solid #303034; border-radius: 7px; background: #0b0b0c; color: #efeff0; font: 12px/1.5 var(--mono); }
.totp-help-content ol { margin: 12px 0; padding-left: 19px; font-size: 12px; }
.totp-help-content li + li { margin-top: 6px; }
.totp-help-content p code { color: #d4d4d9; font: 11px var(--mono); overflow-wrap: anywhere; }
#admin-login .admin-back { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .totp-help[open] .totp-help-content { animation: none; } }

