.phone-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.phone-heading h1 {
  margin: 0.5rem 0;
}
.phone-heading p {
  margin: 0;
}
.phone-status {
  border: 1px solid var(--line, #ceddd4);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  font-size: 0.85rem;
}
.phone-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.phone-form {
  min-width: 0;
}
.phone-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.phone-panel {
  padding: 1.6rem;
  background: white;
  border: 1px solid #dce6df;
  border-radius: 16px;
  margin-bottom: 1.2rem;
}
.phone-panel h2 {
  margin: 0.6rem 0;
}
.phone-panel p,
.phone-panel small,
.phone-choices span,
.phone-save span,
.phone-costs dd {
  color: #60776c;
  line-height: 1.55;
}
.phone-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.phone-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
}
.phone-fields small {
  font-weight: 400;
}
.phone-fields input,
.phone-fields select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.phone-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.3rem;
}
.phone-choices label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.4rem 0.6rem;
  padding: 1rem;
  border: 1px solid #ceddd4;
  border-radius: 10px;
  cursor: pointer;
}
.phone-choices label:has(:checked) {
  background: #e7f4ee;
  border-color: #08756b;
}
.phone-choices input {
  width: auto;
  margin: 3px 0;
}
.phone-choices span {
  grid-column: 2;
  font-size: 0.88rem;
}
.phone-costs dt {
  font-weight: 650;
  margin-top: 1.25rem;
}
.phone-costs dd {
  margin: 0.4rem 0;
  font-size: 0.92rem;
}
.phone-note {
  border-top: 1px solid #dce6df;
  padding-top: 1rem;
}
.phone-save {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.phone-save span {
  font-size: 0.85rem;
}
.phone-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.phone-feedback {
  min-height: 1.5em;
}
.phone-layout [hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .phone-layout {
    grid-template-columns: 1fr;
  }
  .phone-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .phone-fields,
  .phone-choices {
    grid-template-columns: 1fr;
  }
  .phone-panel {
    padding: 1.2rem;
  }
  .phone-save {
    align-items: flex-start;
    flex-direction: column;
  }
}
.phone-form input:not([type="radio"]),
.phone-form select {
  font: inherit;
  color: #193c34;
  background: #fff;
  border: 1px solid #bacdc2;
  border-radius: 8px;
  padding: 0.75rem;
  min-height: 44px;
}
.phone-form input:focus-visible,
.phone-form select:focus-visible {
  outline: 2px solid #08756b;
  outline-offset: 2px;
}
.phone-form .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.phone-form input[type="radio"] {
  accent-color: #08756b;
}

.rcs-quick {
  margin: 1.5rem 0;
}
.rcs-quick fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
.rcs-quick [hidden] {
  display: none !important;
}
.rcs-quick .phone-save {
  margin-top: 1.25rem;
}
.rcs-manual > summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 650;
}
.rcs-quick-feedback {
  overflow-wrap: anywhere;
}
.rcs-market-explorer {
  margin-top: 2rem;
}
.market-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0;
}
.market-toolbar label {
  display: grid;
  gap: 0.4rem;
}
.market-toolbar select {
  max-width: 100%;
  min-height: 44px;
  padding: 0.65rem;
  border: 1px solid #bacdc2;
  border-radius: 8px;
  background: white;
  color: #193c34;
  font: inherit;
}
.market-map {
  border: 1px solid #dce6df;
  border-radius: 16px;
  overflow: hidden;
}
.market-map svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
}
.market-map path {
  fill: #cfddd5;
  stroke: #f5f8f5;
  stroke-width: 0.18;
  cursor: pointer;
  transition: fill 0.15s;
}
.market-map path:hover {
  fill: #77aaa0;
}
.market-map path.selected {
  fill: #08756b;
}
.market-selected {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.market-chip {
  border: 1px solid #08756b;
  border-radius: 24px;
  padding: 0.55rem 0.9rem;
  background: #e8f3ef;
  color: #193c34;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
}
.market-common {
  background: #edf5f0;
  border-radius: 12px;
  padding: 1rem 1.3rem;
}
.market-group {
  border: 1px solid #dce6df;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}
.market-group summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.4rem 0;
}
.market-results li {
  margin: 0.5rem 0;
}
.rcs-quick input[type="checkbox"] {
  min-height: 20px;
  width: 20px;
  padding: 0;
  accent-color: #08756b;
}
@media (max-width: 600px) {
  .market-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .market-toolbar select {
    width: 100%;
  }
  .market-map svg {
    min-height: 210px;
  }
}

.rcs-tabs,
.market-zoom {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
  align-items: center;
}
.rcs-tabs a {
  padding: 12px 16px;
  border: 1px solid var(--line, #dbe7e2);
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
}
.rcs-tabs a[aria-current] {
  background: var(--mint, #deeee7);
  font-weight: 650;
}
.sender-launch-dialog {
  width: min(760px, 90vw);
  max-height: 85vh;
  overflow: auto;
  border: 1px solid #dbe7e2;
  border-radius: 16px;
  padding: 24px;
  color: var(--ink);
  background: var(--paper, #fff);
}
.sender-launch-dialog::backdrop {
  background: #12352f80;
}
.sender-launch-dialog label,
.key-create label {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.rcs-sender code,
.activity-list code {
  overflow-wrap: anywhere;
}
.market-map svg {
  touch-action: pan-y;
  cursor: grab;
}
.market-map svg:active {
  cursor: grabbing;
}
.activity-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.key-secret input {
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .rcs-tabs {
    display: grid;
  }
  .sender-launch-dialog {
    padding: 16px;
  }
  .rcs-sender {
    display: block;
  }
}
