:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: #0b67c2;
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 48px auto;
}

.panel {
  background: #ffffff;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 20px;
}

.auth-panel {
  width: min(420px, 100%);
  margin: 12vh auto 0;
}

h1 {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.2;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

input {
  width: 100%;
  border: 1px solid #c8d2dc;
  border-radius: 6px;
  color: inherit;
  font: inherit;
  padding: 11px 12px;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #17202a;
  border-radius: 6px;
  background: #17202a;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

.secondary {
  background: #ffffff;
  color: #17202a;
}

.auth-panel .button {
  width: 100%;
  margin-top: 14px;
}

.muted,
.empty {
  color: #637083;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar h1 {
  margin: 0;
}

.create-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
}

.private-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f3a47;
  font-weight: 700;
  min-height: 42px;
  white-space: nowrap;
}

.private-toggle input {
  width: auto;
}

.links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.link-row {
  display: grid;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 14px 16px;
}

.short {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.target {
  color: #637083;
  overflow-wrap: anywhere;
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.message {
  border-radius: 6px;
  padding: 10px 12px;
}

.message.error {
  background: #ffe8e3;
  color: #8a1f11;
}

.message.success {
  background: #e7f7ec;
  color: #176331;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 920px);
    margin: 24px auto;
  }

  .create-form,
  .topbar {
    grid-template-columns: 1fr;
  }

  .create-form {
    display: grid;
  }

  button,
  .button {
    width: 100%;
  }
}
