:root {
  color-scheme: light;
  font: 16px system-ui, sans-serif;
  color: #18263b;
  background: #f4f6fb;
  --border: #dce3ee;
  --muted: #4b5e76;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { background: #f5f9fb; color: #245268; padding: 26px 18px; border-right: 1px solid #dce6ec; }
.brand { display: flex; align-items: center; gap: 12px; color: #214c60; text-decoration: none; font-size: .94rem; font-weight: 750; padding: 0 0 23px; }
.brand-mark { position: relative; display: grid; place-items: center; flex: 0 0 27px; height: 27px; color: #2369a6; }
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  height: 23px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.brand-mark::before { width: 23px; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat; }
.brand-mark::after { width: 10px; }
.brand small, .tool small { display: block; }
.brand small { color: #496676; font-weight: 450; margin-top: 3px; }
nav { padding-top: 16px; border-top: 1px solid #dce6ec; display: grid; gap: 5px; }
nav a { color: inherit; text-decoration: none; padding: 11px 10px; border-radius: 8px; font-size: .9rem; }
nav a span { display: inline-block; width: 17px; }
nav a:hover { background: #e6f0f6; }
nav a[aria-current] { background: #d7eafa; color: #194e71; font-weight: 700; }
.topbar { background: white; border-bottom: 1px solid var(--border); min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 10px clamp(16px, 4vw, 48px); font-size: .9rem; font-weight: 650; }
.preview, .badge { background: #edf2fa; color: #405674; border-radius: 6px; padding: 4px 8px; font-size: .8rem; }
.workspace { max-width: 1260px; margin: auto; padding: 36px clamp(16px, 4vw, 48px); }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
h1 { font-size: clamp(1.75rem, 4vw, 2.55rem); letter-spacing: -.04em; margin: 0; }
h2 { font-size: 1.15rem; margin: 0; }
p { color: var(--muted); line-height: 1.5; }
.heading p { margin: 6px 0 0; }
button, input { font: inherit; }
button { cursor: pointer; }
.primary, .secondary { padding: 9px 13px; border: 1px solid var(--border); border-radius: 8px; font-size: .88rem; font-weight: 650; }
.primary { background: #174fa6; border-color: #174fa6; color: white; }
.primary:hover { background: #123e81; }
.secondary { background: #fff; color: #213c63; }
.secondary:hover { background: #edf3fd; }
.panel, dialog { background: white; border: 1px solid var(--border); border-radius: 13px; }
input { width: 100%; border: 1px solid #b9c7db; border-radius: 7px; padding: 9px 11px; color: inherit; }
.empty { margin: 0; padding: 36px 15px; text-align: center; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--border); }
th { background: #f6f8fc; font-size: .85rem; }
td { font-size: .9rem; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
a { color: #154a96; }
.tool { padding: 20px; }
.tool p { font-size: .92rem; }
.tool small { margin-top: 7px; }
details { margin: 12px 0; font-size: .9rem; }
summary { cursor: pointer; font-weight: 650; }
dialog { color: inherit; width: min(500px, calc(100% - 24px)); padding: 23px; }
dialog::backdrop { background: #0d1a3080; }
dialog label { display: block; font-weight: 650; font-size: .88rem; margin: 14px 0 5px; }
label span { color: var(--muted); font-weight: 400; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.error { color: #961e2e; }
dt { font-weight: 650; margin-top: 10px; }
dd { margin-left: 0; color: var(--muted); overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid #4c89e6; outline-offset: 3px; }
@media (max-width: 700px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { padding: 14px; border-right: 0; border-bottom: 1px solid #dce6ec; }
  .brand { padding-bottom: 10px; }
  nav { display: flex; flex-wrap: wrap; padding-top: 9px; }
  .workspace { padding-top: 22px; }
}

.nav-group { margin-top: 13px; }
.nav-group h2 { color: #466c80; padding: 0 10px; margin-bottom: 5px; font-size: .78rem; }
.nav-group a { display: block; padding-left: 17px; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 5px; }
.row-actions button { border: 0; background: transparent; color: #154a96; padding: 0; margin: 0; font: inherit; }
.row-actions .delete-action { color: #a12738; }
.row-actions button:hover { text-decoration: underline; }
.archive-badge { margin-left: 8px; }
td small { display: block; color: var(--muted); white-space: normal; margin-top: 4px; }
td:last-child { white-space: normal; }
.tool { max-width: 680px; }
@media (hover: hover) and (pointer: fine) {
  .row-actions { opacity: 0; }
  tr:hover .row-actions, tr:focus-within .row-actions { opacity: 1; }
}
@media (max-width: 700px) {
  nav { display: grid; }
  .nav-group { margin-top: 5px; }
}

.destination { display: inline-block; margin-top: 3px; font-weight: 650; text-underline-offset: .18em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tool .destination-description { margin-top: 0; font-size: 1.06rem; }

