:root {
  --bg: #080c11;
  --panel: #111821;
  --panel-2: #0c1219;
  --line: #283442;
  --text: #f1f5f7;
  --muted: #8795a5;
  --cyan: #58d6ee;
  --orange: #ff7138;
  --orange-2: #ff5038;
  --danger: #ff8a84;
  --success: #7fdfad;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #111c27 0, var(--bg) 38%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
.shell {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #344354;
  border-radius: 12px;
  background: #131c26;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
}
.brand span, .brand strong { display: block; }
.brand span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.brand strong { margin-top: 1px; font-size: 15px; }
.quiet-button, .text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}
.quiet-button {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
}
.text-button { padding: 5px 0 5px 12px; color: var(--cyan); }
.intro { padding: 34px 3px 22px; }
.intro h1 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(31px, 8vw, 47px);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.intro p {
  margin: 13px 0 0;
  max-width: 530px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(17, 24, 33, .95);
  box-shadow: 0 18px 55px rgba(0,0,0,.2);
}
.field-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.field-heading label { font-size: 12px; font-weight: 800; color: #cbd4dc; }
textarea, input {
  width: 100%;
  border: 1px solid #303e4d;
  border-radius: 13px;
  background: var(--panel-2);
  color: var(--text);
  outline: none;
  padding: 13px 14px;
}
textarea { min-height: 108px; resize: vertical; line-height: 1.45; }
textarea:focus, input:focus { border-color: #55c7df; box-shadow: 0 0 0 3px rgba(84,216,242,.08); }
.message {
  min-height: 18px;
  margin: 9px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.message.error { color: var(--danger); }
.message.success { color: var(--success); }
.destination-card {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #2d3b49;
  border-radius: 15px;
  background: var(--panel-2);
}
.destination-header { display: flex; align-items: center; gap: 13px; }
.pin {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,113,56,.12);
  color: var(--orange);
  font-size: 11px;
}
.destination-copy { flex: 1; min-width: 0; }
.destination-copy span, .destination-copy strong { display: block; }
.save-pin-button {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.save-pin-button[hidden] { display: none; }
.save-pin-button.saved {
  border-color: rgba(88,214,238,.7);
  background: rgba(88,214,238,.12);
  color: var(--cyan);
}
.source { margin-bottom: 3px; color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.destination-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.coords { margin-top: 4px; color: var(--muted); font-size: 12px; }
.name-field { display: block; margin-top: 14px; }
.name-field span, .manual label span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.manual { margin-top: 15px; padding-top: 14px; border-top: 1px solid #222e3a; }
.manual summary { cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 700; }
.coordinate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }

.action-card {
  margin-top: 18px;
}
.action-label {
  display: block;
  margin: 0 2px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.action-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.action-option {
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.action-option strong, .action-option small { display: block; }
.action-option strong { color: var(--text); font-size: 14px; }
.action-option small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.action-option.selected {
  border-color: rgba(88,214,238,.75);
  background: rgba(88,214,238,.09);
  box-shadow: 0 0 0 2px rgba(88,214,238,.05) inset;
}
.action-option.selected strong { color: var(--cyan); }

.send-button {
  width: 100%;
  min-height: 76px;
  margin-top: 18px;
  padding: 14px 19px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: white;
  box-shadow: 0 15px 36px rgba(255,92,55,.2);
  transition: transform .12s ease, opacity .12s ease;
}
.send-button:active:not(:disabled) { transform: scale(.99); }
.send-button:disabled { opacity: .32; cursor: not-allowed; box-shadow: none; }
.send-button.sent { background: linear-gradient(135deg, #1eaf77, #188e70); }
.send-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(0,0,0,.14);
  font-size: 25px;
}
.send-button strong, .send-button small { display: block; }
.send-button strong { font-size: 17px; }
.send-button small { margin-top: 3px; color: rgba(255,255,255,.77); }

.transfer-options {
  margin: 13px 4px 0;
  color: var(--muted);
  font-size: 11px;
}
.transfer-options summary {
  width: fit-content;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
}
.transfer-options label {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.transfer-options label span { font-weight: 700; }
.transfer-options select {
  min-width: 116px;
  padding: 8px 30px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}
.transfer-options p {
  margin: 8px 0 0;
  color: #687686;
  line-height: 1.4;
}
.music-note {
  margin: 11px 17px 0;
  text-align: center;
  color: #697685;
  font-size: 11px;
  line-height: 1.45;
}
.places-card[hidden], .places-clear[hidden], .places-empty[hidden] { display: none; }
.places-card { margin-top: 16px; padding: 14px 16px; }
.places-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.places-tabs { display: flex; gap: 6px; }
.places-tab {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.places-tab.selected {
  border-color: rgba(88,214,238,.7);
  background: rgba(88,214,238,.12);
  color: var(--cyan);
}
.places-clear { font-size: 12px; padding: 4px 2px; color: var(--muted); }
.places-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.place-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #24303d;
  border-radius: 12px;
  background: var(--panel-2);
}
.place-load {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}
.place-load strong, .place-load small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-load strong { font-size: 13px; color: var(--text); }
.place-load small { margin-top: 2px; font-size: 11px; color: var(--muted); }
.place-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(88,214,238,.12);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 750;
  vertical-align: 1px;
}
.place-remove {
  flex: 0 0 36px;
  height: 36px;
  margin-right: 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}
.place-remove:hover { color: var(--danger); }
.places-empty { margin: 6px 2px 2px; color: var(--muted); font-size: 12px; }
footer { padding: 25px 3px 0; text-align: center; color: #4f5b69; font-size: 11px; }

/* Release announcement: in-flow, independent of the sender controls. */
.release-notice[hidden], .release-details[hidden], .release-reopen[hidden], #shortLinkActions[hidden] { display: none; }
.release-notice {
  margin-top: 14px;
  border: 1px solid #2b4c5c;
  border-radius: 15px;
  background: #111f29;
}
.release-row { display: flex; align-items: center; padding: 3px 5px; }
.release-toggle, .release-dismiss, .release-reopen {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.release-toggle {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  color: var(--cyan);
  text-align: left;
  border-radius: 10px;
}
.release-label { flex: 1; min-width: 0; }
.release-label strong, .release-label small { display: block; }
.release-label strong { font-size: 13px; line-height: 1.35; }
.release-label small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.release-icon, .release-chevron { width: 19px; height: 19px; flex: 0 0 19px; }
.release-chevron { color: var(--muted); transition: transform .15s ease; }
.release-toggle[aria-expanded="true"] .release-chevron { transform: rotate(180deg); }
.release-dismiss { flex: 0 0 44px; height: 44px; color: var(--muted); border-radius: 10px; }
.release-dismiss svg { width: 17px; height: 17px; vertical-align: middle; }
.release-details { margin: 0 12px; padding: 12px 2px 14px; border-top: 1px solid #2b4c5c; }
.release-details ul { margin: 0; padding-left: 17px; font-size: 13px; line-height: 1.5; }
.release-details li + li { margin-top: 5px; }
.release-details li::marker { color: var(--cyan); }
.release-note { margin: 12px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.release-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.release-links a { color: var(--cyan); font-size: 12px; font-weight: 750; padding: 10px 0; text-decoration: none; }
.release-links .release-primary { color: #081218; background: var(--cyan); border-radius: 9px; padding: 10px 13px; }
.release-reopen { display: inline-block; color: var(--muted); font-size: 11px; padding: 8px; }
.release-reopen::before { content: "·"; margin-right: 7px; }
.release-toggle:focus-visible, .release-dismiss:focus-visible, .release-reopen:focus-visible,
.release-links a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 420px) {
  .coordinate-grid { grid-template-columns: 1fr; }
  .action-switch { grid-template-columns: 1fr; }
  .intro { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
