@font-face {
  font-family: Barlow;
  src: url("Barlow-Regular.2cce8c806c2d.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("Barlow-SemiBold.ede02f48d8db.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("Barlow-Bold.7130fdb0a3f9.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --brand: #156082;
  --brand-dark: #104b67;
  --brand-light: #e2edf3;
  --paper: #fff;
  --surface: #f7f9fb;
  --rail: #eef3f6;
  --ink: #182830;
  --muted: #495d68;
  --line: #cbd8e0;
  --error: #912b25;
  font-family: Barlow, system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
a { color: var(--brand-dark); text-underline-offset: .19em; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.workspace:focus { outline: none; }
.shell { display: grid; grid-template-columns: 16rem minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.25rem 1.25rem;
  background: var(--rail);
  border-right: 1px solid var(--line);
}
.wordmark {
  align-self: flex-start;
  margin-inline: .65rem;
  color: var(--ink);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 700;
  text-decoration: none;
}
.wordmark span { color: var(--brand); }
.product {
  margin: .45rem .65rem 2.25rem;
  color: var(--muted);
  font-weight: 600;
}
.sidebar nav { display: grid; gap: .3rem; }
.sidebar nav a {
  display: flex;
  gap: .55rem;
  align-items: center;
  padding: .58rem .65rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: .45rem;
}
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { background: var(--brand-light); color: var(--brand-dark); }
.nav-icon { display: inline-grid; place-items: center; width: 1.2rem; color: var(--brand); }
.sidebar-footer { margin-top: auto; padding: 1.5rem .65rem 0; }
.account { display: flex; gap: .58rem; align-items: center; }
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 700;
}
.username { overflow-wrap: anywhere; font-weight: 600; }
.logout {
  margin: .75rem 0 0;
  padding: 0;
  color: var(--brand-dark);
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .19em;
}
.legal { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .8rem; font-size: .9rem; }
.workspace { padding: clamp(2.8rem, 9vh, 7rem) clamp(1.25rem, 6vw, 6rem); }
.content { max-width: 48rem; margin-inline: auto; }
.content.narrow { max-width: 31rem; }
.page-heading { margin-bottom: 1.7rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 3.65rem); letter-spacing: -.04em; line-height: 1.08; }
h2 { font-size: 1.23rem; line-height: 1.25; }
.page-heading p { margin-top: .7rem; max-width: 39rem; color: var(--muted); font-size: 1.125rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: clamp(1.1rem, 3.5vw, 2rem);
  box-shadow: 0 2px 5px #18283007;
}
.stack { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
label { font-weight: 700; }
.optional { margin-left: .25rem; font-weight: 400; color: var(--muted); font-size: .94rem; }
input:not([type="hidden"]) {
  width: 100%;
  min-width: 0;
  min-height: 2.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  padding: .55rem .72rem;
  border: 1px solid #8399a6;
  border-radius: .4rem;
}
input::placeholder { color: #526874; }
input[aria-invalid="true"] { border-color: var(--error); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: fit-content;
  min-height: 2.75rem;
  padding: .53rem .95rem;
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: .4rem;
  cursor: pointer;
  text-decoration: none;
}
.primary { color: white; background: var(--brand); }
.primary:hover { color: white; background: var(--brand-dark); }
.secondary { color: var(--brand-dark); background: white; border-color: #8399a6; }
.secondary:hover { background: var(--brand-light); }
.errorlist { margin: 0; padding-left: 1.15rem; color: var(--error); }
.result { margin-top: 1rem; border-top: 3px solid var(--brand); }
.result-url, .search, .actions { display: flex; gap: .65rem; align-items: center; }
.result-url { margin-top: .8rem; }
.result-url input { color: var(--brand-dark); font-weight: 700; background: var(--surface); }
.destination { overflow-wrap: anywhere; color: var(--muted); }
.result .destination { margin: .5rem 0 1rem; }
.actions { flex-wrap: wrap; }
.copy-status { margin-top: .65rem; font-weight: 600; color: var(--brand-dark); }
.copy-status:not(:empty) {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: calc(100vw - 2rem);
  padding: .65rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .5rem;
  box-shadow: 0 3px 14px #18283020;
}
.search { margin-bottom: 1rem; }
.search a { white-space: nowrap; }
.link-list { margin: 0; padding-block: 0; list-style: none; }
.link-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-details { min-width: 0; overflow-wrap: anywhere; }
.short-link { font-weight: 700; }
.link-details time { color: var(--muted); font-size: .9rem; }
.empty a { display: inline-block; margin-top: .55rem; }
.pagination { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: .65rem; background: var(--paper); }
@media (max-height: 540px) and (min-width: 701px) {
  .sidebar { overflow-y: auto; }
}
@media (max-width: 700px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 1.05rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .wordmark, .product { margin-inline: 0; }
  .wordmark { font-size: 1.75rem; }
  .product { margin-bottom: .65rem; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar nav a { padding: .36rem .5rem; }
  .sidebar-footer { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; padding: .65rem 0 0; }
  .sidebar-footer:empty { display: none; }
  .legal, .logout { margin: 0; }
  .workspace { padding-top: 2rem; }
}
@media (max-width: 410px) {
  .search { flex-wrap: wrap; }
  .link-list li { align-items: flex-start; flex-direction: column; gap: .55rem; }
}
