@font-face {
  font-family: Kanit;
  src: url("/assets/kanit-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Kanit;
  src: url("/assets/kanit-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Kanit;
  src: url("/assets/kanit-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Kanit;
  src: url("/assets/kanit-thai-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}
@font-face {
  font-family: Kanit;
  src: url("/assets/kanit-thai-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}
@font-face {
  font-family: Kanit;
  src: url("/assets/kanit-thai-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}
:root {
  --pink: #ee5e91;
  --rose: #db275e;
  --action: #b91d50;
  --purple: #523c78;
  --ink: #332a40;
  --muted: #6b6170;
  --paper: #fffcfd;
  --soft: #f9e8ee;
  --line: #e9dfe5;
  --green: #08783f;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.7 Kanit,
    Tahoma,
    sans-serif;
}
a {
  color: var(--purple);
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
.button {
  min-height: 48px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.5;
  background: var(--purple);
  color: #fff;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.button.secondary,
button.secondary {
  background: white;
  color: var(--purple);
  border-color: #cbbcd5;
}
.button.quiet,
button.quiet {
  background: transparent;
  color: var(--purple);
  padding: 10px 8px;
}
button:hover,
.button:hover {
  filter: brightness(0.96);
}
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 21px;
  line-height: 1.5;
  font-weight: 500;
}
h3 {
  font-weight: 500;
}
small,
.small {
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.6px;
  font-weight: 500;
  color: #9f2853;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--purple);
  font-weight: 500;
  font-size: 25px;
  letter-spacing: -1px;
}
.brand img {
  border-radius: 10px;
}
.brand small {
  display: block;
  font:
    9px/1.6 Arial,
    sans-serif;
  letter-spacing: 0.2px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  background: #fff;
  color: var(--muted);
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.notice {
  padding: 14px 18px;
  background: var(--soft);
  border-radius: 12px;
  font-size: 14px;
  color: var(--purple);
}
.error {
  color: #a02041 !important;
}
.notice.error {
  background: #fff0f0;
}
.status {
  min-height: 26px;
  font-size: 14px;
  color: var(--muted);
}
.hidden,
[hidden] {
  display: none !important;
}
label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
input,
select {
  min-height: 48px;
  border: 1px solid #d5c9d8;
  border-radius: 9px;
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
  width: 100%;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  max-width: 760px;
  width: calc(100% - 32px);
  max-height: 88dvh;
  color: var(--ink);
}
dialog::backdrop {
  background: #332a4077;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.dialog-head h2 {
  margin: 0;
}
.close {
  font-size: 22px;
  padding: 0;
  width: 48px;
  flex-shrink: 0;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.panel-head {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 18px;
}
.panel-head h2 {
  margin-bottom: 2px;
}
.panel-head p {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
td,
th {
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.full {
  grid-column: 1/-1;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.toolbar label {
  flex: 1;
  min-width: 150px;
}
.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 7px;
  background: #f1edf7;
  color: var(--purple);
  font-size: 12px;
  white-space: nowrap;
}
.pill.verified {
  background: #edf7f0;
  color: #22643e;
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.link-output {
  width: 100%;
  font-family: monospace;
  font-size: 13px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline > li {
  border-left: 2px solid #e4d7eb;
  padding: 0 0 24px 20px;
}
.timeline time {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.timeline h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.timeline .event {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0;
}
.page-footer {
  color: var(--muted);
  font-size: 12px;
  padding: 24px 0;
}
.page-footer a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.login-card {
  max-width: 460px;
  margin: 70px auto;
  padding: 32px;
}
.login-card .brand {
  margin-bottom: 30px;
}
.login-card h1 {
  font-size: 29px;
}
.login-card form {
  display: grid;
  gap: 16px;
}
.login-card .button {
  width: 100%;
}
.privacy-page {
  max-width: 780px;
  margin: 40px auto;
  padding: 24px;
}
.privacy-page h1 {
  font-size: 32px;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  .panel-head {
    gap: 12px;
  }
  dialog {
    padding: 20px;
  }
  .login-card {
    margin: 24px 16px;
  }
  .toolbar label {
    min-width: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
