@import url("/ui/brand.css");

.masthead, .header-actions, .pages { display: flex; align-items: center; gap: 12px; }
.masthead { justify-content: space-between; margin-bottom: 25px; flex-wrap: wrap; }
.header-actions form, .hint { margin: 0; }
.theme-switch label { position: relative; display: grid; cursor: pointer; }
.theme-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.theme-icon::before {
  width: 19px;
  height: 19px;
  content: "";
  background: currentColor;
  mask: var(--theme-symbol) center / contain no-repeat;
}
.theme-light { --theme-symbol: url("/theme-light.png"); }
.theme-system { --theme-symbol: url("/theme-system.png"); }
.theme-dark { --theme-symbol: url("/theme-dark.png"); }
.layout {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(290px, .9fr) minmax(360px, 1.45fr);
  gap: 18px;
  align-items: start;
}
.settings { position: sticky; top: 18px; }
.card-title { flex-wrap: wrap; }
.settings .card-body { display: grid; gap: 18px; }
.tabs, .copy-line { display: grid; gap: 7px; }
.tabs { grid-template-columns: 1fr 1fr; }
.copy-line { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.tabs a { display: grid; place-items: center; text-align: center; text-decoration: none; }
.tabs a[aria-current="page"], .record-list button[aria-pressed="true"], .badge {
  color: var(--accent-dark);
  background: var(--accent-pale);
  border-color: var(--accent);
}
.badge { display: inline-block; margin-left: 5px; padding: 2px 6px; border-radius: 6px; font-size: 11px; }
.record-list button:hover { border-color: var(--accent); color: var(--accent-dark); }
.endpoint label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.hint { color: var(--muted); font-size: 12px; }
.hint:empty { display: none; }
.endpoint input { font: 12px/1.5 var(--font-mono); }
.endpoint .hint { margin-top: 5px; }
.record-list { margin: 0; padding: 0; list-style: none; }
.record-list { display: grid; gap: 7px; max-height: 65vh; margin-block: 12px; overflow: auto; padding: 3px; }
.record-list button {
  display: flex; width: 100%; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 9px;
  text-align: left; padding: 9px 10px; font-size: 13px;
}
.record-list small { font-size: 11px; color: var(--muted); }
.pages { justify-content: space-between; }
#xml:empty { display: none; }
.xml-status:not(:empty) { margin-top: 8px; }
.record-list .record-info { display: grid; min-width: 0; gap: 2px; }
.record-tag { font: 700 13px/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
@media (max-width: 1060px) {
  .layout { grid-template-columns: minmax(245px, .85fr) minmax(0, 1.4fr); }
  .settings { position: static; }
  .detail { grid-column: 1 / -1; }
  .record-list { max-height: 40vh; }
}
@media (max-width: 620px) {
  .page { padding: 20px 14px 32px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card-title, .card-body { padding: 14px; }
}
