/* src/companion/browser/phone.css */
:root {
  --phone-bg: #101011;
  --phone-panel: #161617;
  --phone-raised: #1d1d1f;
  --phone-inset: #111112;
  --phone-text: #f1eeea;
  --phone-muted: #a29da0;
  --phone-line: #323034;
  --phone-accent: #f23049;
  --phone-accent-soft: #361b22;
  --phone-success: #91c9ae;
  --phone-warning: #d5b783;
  color-scheme: dark;
  font-family:
    "Segoe UI",
    "Microsoft YaHei UI",
    sans-serif;
  background: var(--phone-bg);
  color: var(--phone-text);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body,
#root {
  min-height: 100%;
}
body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--phone-bg);
  color: var(--phone-text);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--phone-accent);
  outline-offset: 3px;
}
button:not(:disabled) {
  transition:
    background-color 140ms ease-out,
    border-color 140ms ease-out,
    color 140ms ease-out,
    transform 140ms ease-out;
}
button:not(:disabled):active {
  transform: translateY(1px);
}
.phone-list__migration {
  padding: 12px 16px;
  border-top: 1px solid var(--phone-line);
  color: var(--phone-muted);
  font-size: 13px;
  line-height: 1.6;
}
.phone-list__migration p {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.phone-list__migration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.phone-list__migration-actions button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--phone-line);
  border-radius: 8px;
  background: var(--phone-accent-soft);
  color: var(--phone-text);
}
.phone-list__migration-actions button:disabled {
  opacity: .4;
  cursor: default;
}
.phone-shell {
  --phone-gutter: 16px;
  position: relative;
  min-height: 100dvh;
  padding: 0 var(--phone-gutter) calc(24px + env(safe-area-inset-bottom));
  overflow-x: clip;
}
.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(58px + env(safe-area-inset-top));
  margin: 0 calc(0px - var(--phone-gutter)) 18px;
  padding: env(safe-area-inset-top) var(--phone-gutter) 0;
  border-bottom: 1px solid var(--phone-line);
  background: var(--phone-panel);
}
.phone-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}
.phone-mark {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.phone-header h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -.02em;
}
.phone-kicker {
  margin: 0 0 3px;
  color: var(--phone-accent);
  font:
    10px/1.5 Consolas,
    "Courier New",
    monospace;
  letter-spacing: .12em;
}
.phone-connection {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 36px;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--phone-line);
  border-radius: 5px;
  background: var(--phone-raised);
  color: var(--phone-muted);
  font:
    10px/1.3 Consolas,
    "Courier New",
    monospace;
  letter-spacing: .03em;
  white-space: nowrap;
}
.phone-connection::before {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.phone-connection[data-state=connected] {
  border-color: #426552;
  background: #17221c;
  color: var(--phone-success);
}
.phone-connection[data-state=offline] {
  border-color: #6a5939;
  background: #29231a;
  color: var(--phone-warning);
}
.phone-connection[data-state=revoked],
.phone-connection[data-state=error] {
  border-color: #743441;
  background: var(--phone-accent-soft);
  color: #ffb1be;
}
.phone-status {
  width: min(100%, 680px);
  min-height: 24px;
  margin: 0 auto 16px;
  color: var(--phone-muted);
  font-size: 13px;
  line-height: 1.65;
}
.phone-status[data-tone=warning] {
  color: var(--phone-warning);
}
.phone-status[data-tone=error] {
  color: #ff9cad;
}
.phone-panel {
  width: min(100%, 680px);
  margin: 0 auto 16px;
  padding: 20px 16px;
  border: 1px solid var(--phone-line);
  border-radius: 8px;
  background: var(--phone-panel);
}
.phone-panel h2,
.phone-panel h3 {
  margin: 0 0 9px;
  color: var(--phone-text);
  font-weight: 600;
  letter-spacing: -.01em;
}
.phone-panel h2 {
  font-size: 20px;
  line-height: 1.4;
}
.phone-panel h3 {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.45;
}
.phone-panel p {
  color: var(--phone-muted);
  font-size: 14px;
  line-height: 1.75;
}
.phone-panel form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.phone-panel label {
  color: var(--phone-text);
  font-size: 13px;
}
.phone-panel input {
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--phone-line);
  border-radius: 5px;
  background: var(--phone-inset);
  color: var(--phone-text);
  font-size: 16px;
}
.phone-panel input::placeholder {
  color: #807a7d;
}
.phone-panel input:focus {
  border-color: var(--phone-accent);
}
#pairing-pin {
  font-family:
    Consolas,
    "Courier New",
    monospace;
  letter-spacing: .12em;
}
.phone-help,
.phone-empty {
  margin: 0;
  color: var(--phone-muted);
  font-size: 12px !important;
}
.phone-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--phone-line);
  border-radius: 5px;
  background: var(--phone-raised);
  color: var(--phone-text);
  font-size: 14px;
  line-height: 1.3;
}
.phone-button:hover:not(:disabled) {
  border-color: #514d50;
  background: #252527;
}
.phone-button:disabled {
  cursor: not-allowed;
  opacity: .52;
}
.phone-button--primary {
  width: 100%;
  margin-top: 4px;
  border-color: var(--phone-accent);
  background: var(--phone-accent);
  color: #fff;
  font-weight: 650;
}
.phone-button--primary:hover:not(:disabled) {
  border-color: #ff4960;
  background: #ff4960;
}
.phone-button--quiet {
  padding-inline: 10px;
  border-color: transparent;
  background: transparent;
  color: var(--phone-muted);
}
.phone-button--quiet:hover:not(:disabled) {
  border-color: #423e41;
  background: var(--phone-raised);
  color: var(--phone-text);
}
.phone-list {
  display: grid;
  gap: 10px;
}
.phone-list:empty {
  display: none;
}
.phone-list > .phone-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--phone-line);
  border-radius: 6px;
  background: var(--phone-inset);
  color: var(--phone-text);
  text-align: left;
}
.phone-list > button.phone-list__item:hover {
  border-color: #5c3c46;
  background: #211a1e;
}
.phone-list > div.phone-list__item {
  padding: 0;
  overflow: hidden;
}
.phone-list > div.phone-list__item > .phone-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  width: auto;
  min-height: 62px;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px 0 0 5px;
  background: transparent;
  color: var(--phone-text);
  text-align: left;
}
.phone-list > div.phone-list__item > button.phone-list__item:hover {
  background: #211a1e;
}
.phone-list__item b,
.phone-list__item small {
  display: block;
}
.phone-list__item b {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-list__item small {
  margin-top: 3px;
  color: var(--phone-muted);
  font-size: 11px;
  line-height: 1.45;
}
.phone-list__arrow {
  flex: none;
  color: #ffadb9;
  font-size: 22px;
  line-height: 1;
}
.phone-list__remove {
  align-self: stretch;
  flex: none;
  min-width: 60px;
  min-height: 44px;
  padding: 7px 9px;
  border: 0;
  border-left: 1px solid #443139;
  border-radius: 0 5px 5px 0;
  background: #21171b;
  color: #ffb1be;
  font-size: 12px;
}
.phone-list__remove:hover:not(:disabled) {
  background: var(--phone-accent-soft);
  color: #fff;
}
.phone-list__confirmation {
  width: 100%;
  padding: 14px;
}
.phone-list__confirmation strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}
.phone-list__confirmation p {
  margin: 7px 0 0;
  color: var(--phone-muted);
  font-size: 12px;
  line-height: 1.6;
}
.phone-list__confirmation-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.phone-list__confirmation-actions .phone-button {
  flex: 1;
}
.phone-list__confirmation-remove {
  border-color: #743441;
  background: var(--phone-accent-soft);
  color: #ffb1be;
}
.phone-list__confirmation-remove:hover:not(:disabled) {
  border-color: var(--phone-accent);
  background: #54242f;
  color: #fff;
}
.phone-computer {
  gap: 0 !important;
}
.phone-computer.is-current {
  border-color: #426552 !important;
  background: #131a16 !important;
}
.phone-computer .phone-list__item > span:first-child {
  min-width: 0;
}
.phone-computer__badge {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #172c20;
  color: var(--phone-success);
  font: normal 10px/1.5 "Segoe UI", sans-serif;
  vertical-align: middle;
}
.phone-list__rename {
  align-self: stretch;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 7px 9px;
  border: 0;
  border-left: 1px solid var(--phone-line);
  background: var(--phone-raised);
  color: var(--phone-muted);
  font-size: 12px;
}
.phone-computer .phone-list__remove {
  min-width: 44px;
}
.phone-computer:has(.phone-computer__editor) {
  border-color: #5c3c46;
}
.phone-panel form.phone-computer__editor {
  margin: 0;
}
.phone-computer__editor label {
  display: grid;
  gap: 7px;
}
.phone-computer__count {
  text-align: right;
  color: var(--phone-muted);
}
.phone-computer__editor .phone-button--primary {
  width: auto;
  margin-top: 0;
}
.phone-computers-note {
  margin-top: 16px;
}
#devices-description {
  margin-bottom: 16px;
}
.phone-full-width {
  width: 100%;
  margin-top: 10px;
}
.phone-warning {
  color: var(--phone-warning) !important;
}
.phone-computer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid var(--phone-line);
  border-radius: 10px;
  background: var(--phone-inset);
}
.phone-computer-bar > span {
  min-width: 0;
}
.phone-computer-bar small,
.phone-computer-target small {
  display: block;
  margin-bottom: 4px;
  color: var(--phone-muted);
  font-size: 11px;
}
.phone-computer-bar strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.phone-computer-bar button {
  flex: none;
}
.phone-computer-target {
  padding: 16px;
  border: 1px solid var(--phone-line);
  border-radius: 10px;
  background: var(--phone-inset);
}
.phone-computer-target strong {
  display: block;
  margin: 6px 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.phone-computer-steps {
  list-style: none;
  margin: 6px 0;
  padding: 0;
  color: #777176;
  font-size: 13px;
  line-height: 1.6;
}
.phone-computer-steps li {
  position: relative;
  padding: 10px 0 10px 20px;
}
.phone-computer-steps li::before {
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #444047;
  content: "";
}
.phone-computer-steps li[data-done] {
  color: var(--phone-success);
}
.phone-computer-steps li[data-done]::before {
  background: var(--phone-success);
}
.phone-computer-steps li[aria-current] {
  color: #ffb1be;
}
.phone-computer-steps li[aria-current]::before {
  background: var(--phone-accent);
}
.phone-canvas__retry {
  width: 100%;
  margin-top: 12px;
}
.phone-sas {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--phone-line);
}
.phone-sas strong {
  display: block;
  margin: 7px 0 10px;
  color: #ffb1be;
  font:
    400 30px/1.25 Consolas,
    "Courier New",
    monospace;
  letter-spacing: .15em;
}
.phone-reader {
  position: fixed;
  z-index: 2;
  top: var(--phone-visible-top, 0px);
  left: 0;
  right: 0;
  height: var(--phone-visible-height, 100dvh);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  background: var(--phone-bg);
}
.phone-reader.is-loading {
  visibility: hidden;
  pointer-events: none;
}
html:has(.phone-reader:not([hidden]):not(.is-loading)),
body:has(.phone-reader:not([hidden]):not(.is-loading)) {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
.phone-shell:has(.phone-reader:not([hidden]):not(.is-loading)) {
  position: fixed;
  inset: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.phone-shell:has(.phone-reader:not([hidden]):not(.is-loading)) > :not(.phone-reader):not(.phone-switch) {
  display: none;
}
.phone-switch {
  position: fixed;
  z-index: 2;
  top: var(--phone-visible-top, 0px);
  left: 0;
  right: 0;
  height: var(--phone-visible-height, 100dvh);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--phone-bg);
}
html:has(.phone-switch:not([hidden])),
body:has(.phone-switch:not([hidden])) {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
.phone-shell:has(.phone-switch:not([hidden])) {
  position: fixed;
  inset: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.phone-shell:has(.phone-switch:not([hidden])) > :not(.phone-switch) {
  display: none;
}
.phone-switch__body {
  overflow-y: auto;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
  width: min(100%, 680px);
  margin: 0 auto;
  box-sizing: border-box;
}
.phone-switch__status {
  margin: 0;
  color: var(--phone-muted);
  font-size: 14px;
  line-height: 1.7;
}
.phone-switch__status[data-tone=failed] {
  color: #ffb1be;
}
.phone-switch h3 {
  margin: 12px 0 0;
  color: var(--phone-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
}
.phone-switch .phone-canvas__retry {
  margin-top: 0;
}
.phone-reader__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: calc(58px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 8px 0;
  border-bottom: 1px solid var(--phone-line);
  background: var(--phone-panel);
  color: var(--phone-text);
}
.phone-reader__bar span {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#portable-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: var(--phone-bg);
}
:root {
  --m-fast: 140ms;
  --m-base: 240ms;
  --m-slow: 340ms;
  --m-out: cubic-bezier(.22, 1, .36, 1);
  --m-sheet: cubic-bezier(.32, .72, 0, 1);
}
@keyframes phone-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes phone-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes phone-bar-in {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes phone-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .3;
  }
}
.phone-panel:not([hidden]),
.phone-switch:not([hidden]) {
  animation: phone-rise var(--m-slow) var(--m-out) both;
}
.phone-status {
  transition: color var(--m-base) ease;
}
.phone-status:not(:empty) {
  animation: phone-fade var(--m-base) ease both;
}
.phone-reader__bar {
  animation: phone-bar-in var(--m-base) var(--m-out) both;
}
.phone-list > .phone-list__item {
  animation: phone-rise var(--m-slow) var(--m-out) both;
}
.phone-list > .phone-list__item:nth-child(2) {
  animation-delay: 45ms;
}
.phone-list > .phone-list__item:nth-child(3) {
  animation-delay: 90ms;
}
.phone-list > .phone-list__item:nth-child(4) {
  animation-delay: 135ms;
}
.phone-list > .phone-list__item:nth-child(n+5) {
  animation-delay: 180ms;
}
.phone-list > button.phone-list__item {
  min-height: 68px;
  border-radius: 10px;
}
.phone-list > button.phone-list__item:active,
.phone-list > div.phone-list__item > button.phone-list__item:active {
  background: #2a1d22;
  transform: scale(.985);
}
.phone-list > button.phone-list__item,
.phone-list > div.phone-list__item > button.phone-list__item {
  transition:
    background-color var(--m-fast) ease,
    border-color var(--m-fast) ease,
    transform var(--m-fast) var(--m-out);
}
.phone-list > div.phone-list__item {
  border-radius: 10px;
}
.phone-button {
  min-height: 48px;
  border-radius: 10px;
}
.phone-button--primary:not(:disabled):active {
  transform: scale(.98);
}
.phone-panel input {
  border-radius: 10px;
  min-height: 48px;
  transition: border-color var(--m-base) ease, box-shadow var(--m-base) ease;
}
.phone-panel input:focus {
  border-color: var(--phone-accent);
  box-shadow: 0 0 0 3px #f2304926;
  outline: none;
}
.phone-connection {
  min-height: 36px;
  border-radius: 999px;
  padding-inline: 11px;
  transition:
    background-color var(--m-base) ease,
    border-color var(--m-base) ease,
    color var(--m-base) ease;
}
.phone-connection[data-state=initializing]::before,
.phone-connection[data-state=offline]::before,
.phone-connection[data-state=connecting]::before {
  animation: phone-pulse 1.5s ease-in-out infinite;
}
.phone-connection[data-state=connected]::before {
  box-shadow: 0 0 0 3px #91c9ae29;
}
.phone-reader__bar button {
  min-width: 56px;
}
.phone-switch__body > .phone-list {
  gap: 10px;
}
@media (min-width: 700px) {
  .phone-shell {
    --phone-gutter: 28px;
  }
  .phone-panel {
    padding: 25px 28px;
  }
}
@media (max-width: 360px) {
  .phone-list > div.phone-computer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .phone-list > div.phone-computer > .phone-list__item {
    grid-column: 1 / -1;
    width: 100%;
  }
  .phone-computer > .phone-list__confirmation {
    grid-column: 1 / -1;
  }
  .phone-computer > .phone-list__rename,
  .phone-computer > .phone-list__remove {
    min-height: 44px;
    border-top: 1px solid var(--phone-line);
    border-radius: 0;
  }
  .phone-header {
    gap: 8px;
  }
  .phone-header h1 {
    font-size: 18px;
  }
  .phone-connection {
    padding-inline: 7px;
    font-size: 9px;
  }
  .phone-panel {
    padding: 18px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/*# sourceMappingURL=relay-phone.css.map */
