/* Sankero — a restrained workspace with strong type and a single blue action. */
:root {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172345;
  background: #f3f5fa;
  font-size: 16px;
  line-height: 1.5;
  --ink: #172345;
  --muted: #5d6984;
  --line: #dce1eb;
  --blue: #234dde;
  --paper: #ffffff;
  --soft: #e9eefb;
  --danger: #a91c32;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--blue);
  text-underline-offset: 4px;
}
::selection {
  background: #cdd9ff;
  color: var(--ink);
}
header {
  min-height: 92px;
  background: var(--ink);
  color: var(--paper);
  padding: 22px max(24px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header a {
  color: var(--paper);
  text-decoration: none;
}
.brand {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
main {
  max-width: 1120px;
  margin: 48px auto 80px;
  padding: 0 24px;
}
h1 {
  font-size: 40px;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: 23px;
  font-weight: 730;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  line-height: 1.25;
}
p {
  margin: 12px 0 20px;
  max-width: 70ch;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.intro h2 {
  margin: 0;
}
.login-panel {
  max-width: 400px;
  margin: 13vh auto;
}
.login-panel h1 {
  margin-bottom: 40px;
}
.login-panel + .notice {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.link-composer {
  background: var(--paper);
  padding: 36px 40px;
  border-top: 3px solid var(--ink);
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.destination-row {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 24px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 8px;
}
input,
select,
button {
  font: inherit;
}
input,
select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #a8b3ca;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 24px;
  caret-color: var(--blue);
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
input:hover,
select:hover {
  border-color: var(--muted);
}
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: var(--paper);
  padding: 11px 20px;
  cursor: pointer;
  font-weight: 650;
  transition: background-color 150ms ease-out;
  white-space: nowrap;
}
button:hover {
  background: #1639b6;
}
button:active {
  background: #122f98;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: var(--soft);
  color: #203c92;
}
.secondary:hover {
  background: #d8e3ff;
}
.header-action {
  color: var(--paper);
  background: transparent;
  border: 1px solid #7180a0;
}
.header-action:hover {
  background: #293859;
}
.header-action:focus-visible {
  outline-color: #b5c7ff;
}
.danger {
  background: transparent;
  color: var(--danger);
  font-size: 14px;
  min-height: 44px;
  padding: 9px 12px;
}
.danger:hover {
  background: #fff0f0;
}
.composer-footer,
.publish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
#destination-preview {
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.publisher {
  margin-bottom: 28px;
  padding: 28px 32px;
  border: 1px solid #a8b3ca;
  border-radius: 12px;
}
.domain-input {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid #a8b3ca;
  border-radius: 6px;
  margin-bottom: 24px;
}
.domain-input input {
  border: 0;
  margin: 0;
  background: transparent;
}
.domain-input span {
  padding-right: 13px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
input[type="file"] {
  font-size: 14px;
}
input::file-selector-button {
  font: inherit;
  padding: 5px 10px;
  margin-right: 12px;
  border: 0;
  border-radius: 3px;
  background: var(--soft);
  color: #203c92;
  cursor: pointer;
}
.result {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 28px;
}
.copy-row {
  display: flex;
  gap: 12px;
  align-items: start;
}
.copy-row input {
  margin-bottom: 8px;
  font-size: 14px;
}
.people-section {
  margin-top: 48px;
}
.table-wrap {
  position: relative;
  max-width: 100%;
  overflow: auto;
  scrollbar-color: #a8b3ca transparent;
}
table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  padding: 0 16px 14px;
  border-bottom: 1px solid #a8b3ca;
  white-space: nowrap;
}
td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
th:last-child,
td:last-child {
  padding-right: 0;
  text-align: right;
}
td:first-child {
  font-weight: 650;
  min-width: 170px;
  overflow-wrap: anywhere;
  max-width: 300px;
}
td small {
  display: block;
  margin-top: 5px;
  font-weight: 400;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.status.live {
  color: #1a6046;
}
.status.inactive {
  color: var(--muted);
}
.notice {
  padding: 14px 18px;
  border: 1px solid #a8b9ed;
  border-radius: 6px;
  background: #edf3ff;
  color: #234087;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.error {
  color: var(--danger);
  background: #fff1f1;
  border-color: #dba3ad;
}
.empty {
  padding: 30px 0;
  color: var(--muted);
}
.compact {
  max-width: 560px;
  margin: 10vh auto;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
}
.compact h1 {
  font-size: 32px;
}
.wide {
  width: 100%;
}
.check {
  display: flex;
  align-items: start;
  font-weight: 400;
  margin: 28px 0;
  font-size: 14px;
}
.check input {
  width: 18px;
  min-height: 18px;
  margin: 3px 12px 0 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.quiet-home {
  background: var(--paper);
}
.quiet-home main {
  margin: 0;
  padding: 32px 40px;
}
.quiet-home .brand {
  font-size: 22px;
  color: var(--ink);
}
@media (max-width: 720px) {
  header {
    min-height: 80px;
    padding: 20px 24px;
  }
  .brand {
    font-size: 30px;
  }
  main {
    margin-top: 32px;
    padding: 0 20px;
  }
  h1 {
    font-size: 32px;
  }
  .login-panel {
    margin: 12vh auto;
  }
  .login-panel h1 {
    font-size: 36px;
  }
  .field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .destination-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .link-composer {
    padding: 26px 22px;
  }
  .publisher {
    padding: 24px 20px;
  }
  .composer-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .publish-footer {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }
  .card {
    padding: 28px;
  }
  .intro {
    gap: 12px;
  }
  .intro button {
    padding: 10px 13px;
    font-size: 14px;
  }
  .people-section {
    margin-top: 36px;
  }
  .compact {
    margin-top: 8vh;
  }
}
@media (max-width: 380px) {
  .destination-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .copy-row {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}
