:root {
  color-scheme: dark;
  --ink: #fcf8ff;
  --muted: #dbcbe7;
  --line: #644079;
  --field: #200d32;
  --pink: #f42cc9;
  font: 100%/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(ellipse at 10% 12%, #401466 0, transparent 47%),
    linear-gradient(135deg, #200a36, #130820 65%, #2f0c45);
  isolation: isolate;
}
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}
body::before {
  inset: 0 0 auto;
  height: 145px;
  background: radial-gradient(ellipse 32% 230% at 69% -192%, #49067a 68%, #8316bc 99%, transparent 100%),
    linear-gradient(145deg, #af0bc8 0 5%, transparent 5.1%);
}
body::after {
  right: 0; bottom: 0;
  width: min(20vw, 250px); height: min(11vw, 128px);
  background: linear-gradient(125deg, #7109b5, #df0abe);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
header { padding: 22px max(24px, calc((100vw - 1040px)/2)); }
.brand { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.brand img { display: block; width: 176px; max-width: 100%; height: auto; }
.brand span { color: var(--muted); font-size: .875rem; border-left: 1px solid #9b73af; padding-left: 16px; }
main { max-width: 1088px; margin: auto; padding: 32px 24px 64px; }
h1, h2 { color: var(--ink); line-height: 1.15; }
h1 { margin: 0; font-size: clamp(1.875rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -.045em; }
h1::after { content: ""; display: block; width: 58px; height: 4px; margin: 13px 0; background: var(--pink); border-radius: 4px; }
h2 { font-size: 1.25rem; letter-spacing: -.025em; margin: 0 0 16px; }
p { margin: 8px 0 20px; color: var(--muted); }
.notice { border-left: 4px solid #c077ff; padding: 10px 14px; background: #361649; border-radius: 0 8px 8px 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 18px; }
section { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(155deg, #36164d, #21102f 75%); box-shadow: 0 12px 32px #0c021e45; }
.entry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 8px; }
label { display: block; margin: 12px 0 6px; font-size: .9375rem; font-weight: 650; }
.entry label { margin-bottom: 0; }
.entry input, select { width: 100%; color: var(--ink); background: var(--field); border: 1px solid #876099; border-radius: 9px; padding: 10px; font: inherit; font-weight: 450; }
.entry input { display: block; margin-top: 5px; }
input::placeholder { color: #bfa9ca; }
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, #e4cdee 50%),linear-gradient(135deg, #e4cdee 50%, transparent 50%); background-position: calc(100% - 19px) center, calc(100% - 13px) center; background-size: 6px 6px; background-repeat: no-repeat; }
.alert-option { margin-top: 18px; }
input[type=checkbox] { accent-color: #e53fbf; }
button { border: 1px solid #f655d6; border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 700; cursor: pointer; background: #af087f; color: white; }
button.secondary { color: #f6dafa; background: #391644; border-color: #9a58ac; }
button:hover:enabled { background: #c50b93; }
button.secondary:hover:enabled { background: #51235e; }
button:disabled, select:disabled { opacity: .65; cursor: default; }
:focus-visible { outline: 3px solid #fba1ec; outline-offset: 3px; }
.actions, .page-top { display: flex; flex-wrap: wrap; }
.actions { gap: 8px; margin-top: 14px; }
.page-top { justify-content: space-between; align-items: flex-start; gap: 12px; }
.account { margin: 4px 0 16px; }
#results { margin-top: 18px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 10px 12px; overflow-wrap: anywhere; }
th { background: #51256d; }
td { border-top: 1px solid #573267; }
tbody tr:nth-child(even) { background: #301540; }
a { color: #f9ace9; }
#status { min-height: 24px; margin-bottom: 0; }
#connect { margin: 0 0 20px; }
#entries { margin-bottom: 4px; }
.signin { max-width: 540px; padding: 40px 24px; }
.signin section { padding: 30px; }
.signin h1 { font-size: clamp(1.625rem, 5vw, 2.25rem); }
.signin #login-status:empty, [hidden] { display: none !important; }
.signin #google-button { min-height: 44px; }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .entry { grid-template-columns: 1fr; }
  .entry button { justify-self: start; }
  section, .signin section { padding: 20px; }
}
