:root {
  --frame: #edf3f3;
  --paper: #fff;
  --well: #f4f7f7;
  --ink: #131416;
  --muted: #555f61;
  --line: #dce4e4;
  --accent: #1b6c80;
  font: 16px/1.5 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--frame);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.bar { height: 56px; display: flex; align-items: center; padding-inline: 30px; }
.brand { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 600; }
.sheet {
  min-height: calc(100svh - 104px);
  margin: 0 8px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  display: grid;
  place-items: center;
  padding: 64px 30px;
}
.layout {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
}
h1, h2, p { margin: 0; }
h1 { font-size: clamp(48px, 7vw, 88px); font-weight: 600; line-height: .98; letter-spacing: -.065em; }
.intro p { color: var(--muted); max-width: 26ch; font-size: 18px; margin-top: 24px; }
.route { display: flex; align-items: center; width: min(100%, 250px); margin-top: 42px; }
.route span { width: 10px; height: 10px; border: 2px solid var(--accent); border-radius: 50%; }
.route span:last-child { background: var(--accent); }
.route i { flex: 1; border-top: 1px dashed #9db6ba; }
.panel { border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; }
.modes { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.modes button { background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; padding: 8px 10px 10px; min-height: 44px; }
.modes [aria-pressed="true"] { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.fields { margin-block: 22px; }
.drop {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  background: var(--well);
  color: var(--ink);
  border: 1px dashed #9db6ba;
  border-radius: 8px;
  min-height: 174px;
  width: 100%;
  padding: 12px;
}
.drop:hover, .drop.dragging { border-color: var(--accent); background: var(--frame); }
.drop strong { overflow-wrap: anywhere; }
.drop span:last-child { color: var(--muted); font-size: 14px; }
.upload-icon { font-size: 28px; color: var(--accent); line-height: 1; margin-bottom: 9px; }
.url-fields { min-height: 174px; align-content: center; }
label { display: block; font-weight: 500; margin-bottom: 8px; }
input { width: 100%; color: var(--ink); padding: 11px; border: 1px solid #aebcbd; border-radius: 6px; background: white; }
.primary, .secondary { min-height: 46px; width: 100%; border-radius: 6px; padding: 10px 14px; text-decoration: none; }
.primary { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: white; font-weight: 600; border: 1px solid var(--ink); }
.primary:hover { background: #303537; }
.secondary { display: inline-grid; place-items: center; margin-top: 8px; color: var(--ink); border: 0; background: transparent; }
.secondary:hover { background: var(--well); }
.panel h2 { font-size: 25px; overflow-wrap: anywhere; line-height: 1.2; }
.panel p { color: var(--muted); overflow-wrap: anywhere; margin-block: 10px 20px; }
#share { font: 13px "IBM Plex Mono", monospace; margin-bottom: 12px; }
#status { margin: 12px 0 0; }
#status:empty { margin: 0; }
#status.error { color: #a62930; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 4px 30px 14px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }
@media (max-width: 680px) {
  .foot { padding-inline: 20px; }
  .bar { padding-inline: 20px; }
  .sheet { display: block; padding: 38px 19px; margin: 0; border-radius: 0; border-inline: 0; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .intro p { margin-top: 16px; }
  .route { margin-top: 24px; width: 155px; }
  .panel { padding: 17px; }
}
