:root {
  font-family: Inter,"Segoe UI",system-ui,sans-serif;
  color: #152c2b;
  background: #f2f5ed;
  font-synthesis: none;
  --ink: #152c2b;
  --muted: #4d6259;
  --line: #c7d3c9;
  --green: #174f40;
  --acid: #daed94;
  --white: #fbfdf6;
  --error: #912d26;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  padding: 58px 0 54px;
}

a {
  color: inherit;
}

button,input,select,textarea {
  font: inherit;
}

button,a,input,select,textarea {
  outline-offset: 4px;
}

a:focus-visible,button:focus-visible,select:focus-visible {
  outline: 2px solid #19734f;
}

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

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 81px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  flex: none;
}

.language select {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  padding: 7px 11px;
  color: var(--ink);
  min-height: 36px;
}

body:has(.home) {
  background:
    radial-gradient(circle at 1px 1px, #54675223 1px, transparent 1.3px) center / 20px 20px,
    radial-gradient(ellipse at 16% 30%, #e9eedb, transparent 54%),
    radial-gradient(ellipse at 87% 65%, #eeebf9, transparent 52%),
    #f9f9f3;
}

main:has(.home) {
  display: grid;
  align-content: center;
  padding-block: 55px 95px;
}

.hero {
  margin-bottom: clamp(30px, 4.4vw, 58px);
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.95rem);
  line-height: 1.15;
  letter-spacing: -.045em;
  margin: 0 0 14px;
  font-weight: 760;
  text-wrap: balance;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  text-wrap: pretty;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 44px);
  position: relative;
}

.choices::before {
  content: "";
  position: absolute;
  inset-block: 12px;
  inset-inline-start: 50%;
  border-inline-start: 1px solid #75836c59;
}

.choice {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  min-height: 263px;
  padding: clamp(20px, 3vw, 37px);
  border: 1px solid var(--choice-line);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--choice-light), var(--choice-color));
  color: var(--choice-ink);
  box-shadow: 0 3px 5px #20301508, 0 16px 32px -22px var(--choice-shadow);
  text-decoration: none;
  transition: box-shadow .2s, border-color .2s;
}

.choice-send {
  --choice-light: #e8f2ce;
  --choice-color: #d5e9a1;
  --choice-ink: #203b27;
  --choice-line: #c3d694;
  --choice-shadow: #4b692f99;
  --art-disc: #c8df8b;
  --art-echo: #d6e9a7;
  --art-accent: #a3c86b;
}

.choice-box {
  --choice-light: #eeebfb;
  --choice-color: #dbd4f9;
  --choice-ink: #363058;
  --choice-line: #d1c9ed;
  --choice-shadow: #55408599;
  --art-disc: #cfc3f1;
  --art-echo: #ddd3f6;
  --art-accent: #b7a5e9;
}

.choice:hover,.choice:focus-visible {
  border-color: var(--choice-shadow);
  box-shadow: 0 14px 31px -14px var(--choice-shadow);
}

.choice h2 {
  margin: 0;
  font-size: clamp(1.24rem, 2.35vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.choice p {
  margin: 9px 0 0;
  font-size: .93rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.choice-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color .2s, color .2s;
}

.choice:hover .choice-arrow,.choice:focus-visible .choice-arrow {
  background-color: var(--choice-ink);
  border-color: var(--choice-ink);
  color: #fff;
}

.choice-art {
  width: 100%;
  height: auto;
  margin-inline-start: 5px;
}

.art-orbit {
  fill: none;
  stroke: currentColor;
  opacity: .23;
}

.art-disc {
  fill: var(--art-disc);
}

.art-lines {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.art-paper {
  fill: #fffdf3;
}

.art-echo {
  fill: var(--art-echo);
}

.art-accent {
  fill: var(--art-accent);
}

.art-spark {
  opacity: .64;
}

.footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 19px 0 27px;
  color: var(--muted);
  font-size: .88rem;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.page {
  max-width: 740px;
  margin: 0 auto;
}

.page h1,.maintenance h1 {
  font-size: clamp(2rem,5.8vw,3.8rem);
  line-height: 1.07;
  margin: 0 0 12px;
  letter-spacing: -.055em;
}

.page h2 {
  font-size: 1.22rem;
  margin: 0 0 12px;
  letter-spacing: -.025em;
}

.page p,.maintenance p {
  line-height: 1.55;
}

.intro {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 23px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
  margin-bottom: 16px;
}

.panel>:first-child {
  margin-top: 0;
}

.panel>:last-child {
  margin-bottom: 0;
}

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

.form label:not(.check) {
  display: grid;
  gap: 7px;
  font-weight: 660;
  font-size: .92rem;
}

.form input:not([type=checkbox]),.form select,.form textarea,.copyline input {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aebeb4;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 43px;
}

.form input[type=file] {
  border: 1px dashed #8da795;
  background: #f5f8ee;
  padding: 15px;
}

.form textarea {
  resize: vertical;
  min-height: 80px;
}

.form .check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .92rem;
  font-weight: 640;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.row,.copyline,.password-line {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.upload-fields,.settings-fields {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.copyline input,.password-line input {
  flex: 1;
  min-width: 120px;
}

.button {
  appearance: none;
  border: 1px solid var(--green);
  display: inline-flex;
  gap: .4em;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 9px;
  min-height: 43px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  width: fit-content;
}

.button.secondary {
  background: transparent;
  color: var(--green);
  border-color: #98afa0;
}

.button:disabled {
  opacity: .55;
  cursor: wait;
}

.button:hover:not(:disabled) {
  filter: brightness(.93);
}

.help,.mild,.timeline {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}

.note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.status {
  min-height: 1.35em;
  font-size: .92rem;
  color: var(--muted);
  margin: 0;
}

.status[data-error=true] {
  color: var(--error);
  font-weight: 640;
}

.upload-stat {
  display: grid;
  gap: 6px;
}

.transfer-meter {
  display: grid;
  gap: 6px;
  margin: 8px 0 5px;
}

.meter-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  color: var(--muted);
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
}

.meter-speed {
  white-space: nowrap;
}

.file-details {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

progress {
  width: 100%;
  height: 12px;
  accent-color: var(--green);
}

.hidden,[hidden] {
  display: none!important;
}

.files {
  display: grid;
  gap: 8px;
}

.file {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.file:last-child {
  border-bottom: 0;
}

.file-name {
  font-size: 1rem;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.file-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.qr-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin: 6px 0 14px;
}

.qr {
  display: block;
  width: min(100%, 276px);
  height: auto;
  border: 1px solid #cbd9c2;
  border-radius: 15px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-grid h2 {
  grid-column: 1/-1;
  margin: 0;
}

.admin-grid label:last-child {
  margin-bottom: 0;
}

.storage-list {
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(130px,1fr) minmax(0,1fr);
  font-size: .9rem;
  margin: 10px 0;
}

.storage-list dt {
  color: var(--muted);
}

.storage-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.maintenance {
  width: min(100%,740px);
  margin: 0 auto;
  padding-top: 34px;
}

.loading {
  padding: 40px 0;
  color: var(--muted);
}

@media(max-width:640px) {
  .shell {
    width: calc(100% - 34px);
  }
  .top {
    min-height: 65px;
  }
  main {
    padding-top: 35px;
  }
  main:has(.home) {
    padding-block: 37px 46px;
  }
  .hero {
    text-align: start;
  }
  .choices {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 24px;
  }
  .choices::before {
    inset: 50% 10px auto;
    border: 0;
    border-block-start: 1px solid #75836c59;
  }
  .choice {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    min-height: 178px;
    padding: 19px 17px 19px 21px;
    border-radius: 20px;
  }
  .choice-art {
    width: min(100%, 153px);
    justify-self: end;
    margin-inline-start: 0;
  }
  .choice-arrow {
    width: 35px;
    height: 35px;
    margin-top: 16px;
  }
  .panel {
    padding: 17px;
  }
  .split,.admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-grid h2 {
    grid-column: auto;
  }
  .file {
    align-items: flex-start;
    flex-direction: column;
  }
  .file-actions {
    justify-content: flex-start;
  }
  .file-details {
    width: 100%;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition: none!important;
  }
}
