.claim-screen,
.phone-home {
  box-sizing: border-box;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.claim-screen {
  background: #fff;
  color: #273246;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.claim-screen * {
  box-sizing: border-box;
}
.claim-screen .claim-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #7048e8;
}
.claim-brand::before {
  content: '';
  width: 24px;
  height: 24px;
  background: url(icon-192.png) center/contain no-repeat;
}
.claim-screen .claim-name {
  font:
    12px ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  color: #667085;
}
.claim-screen h1 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 0;
}
.claim-screen p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 360px;
  margin: 0;
}
.claim-screen canvas {
  max-width: 100%;
  width: 198px !important;
  height: auto !important;
  aspect-ratio: 1;
}
.claim-screen a {
  font-size: 13px;
  color: #7048e8;
}
.claim-screen small {
  font-size: 12px;
  color: #667085;
  max-width: 300px;
  line-height: 1.5;
}
.claim-screen button {
  font:
    600 14px -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  width: 100%;
  max-width: 300px;
  cursor: pointer;
}
.claim-screen .claim-primary {
  background: #7048e8;
  color: white;
}
.claim-screen .claim-secondary {
  background: #f1f3f5;
  color: #273246;
}
.claim-screen button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.claim-screen :focus-visible {
  outline: 3px solid #b197fc;
  outline-offset: 3px;
}
.claim-success {
  border-radius: 50%;
  background: #edf8f0;
  color: #237f4c;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  font-size: 30px;
}
.phone-home {
  position: relative;
  background: linear-gradient(145deg, #ded6fc, #b8cdeb 55%, #e9e3ef);
  color: #273246;
  padding: 65px 20px 35px;
  text-align: center;
  min-height: 440px;
}
.home-clock {
  font-size: 60px;
  font-weight: 300;
  letter-spacing: -3px;
}
.phone-home p {
  font-size: 14px;
}
.home-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 90px;
}
.home-apps span {
  display: grid;
  place-items: center;
  background: #ffffffb8;
  border-radius: 14px;
  height: 45px;
  font-size: 24px;
}
.home-apps small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
}
.home-indicator {
  position: absolute;
  bottom: 12px;
  height: 4px;
  width: 90px;
  border-radius: 4px;
  background: #273246;
  left: calc(50% - 45px);
}
body.claim-page {
  margin: 0;
  background: #fff;
}
body.claim-page #claim-root {
  min-height: 100vh;
}
.claim-role {
  color: #7048e8;
  background: #f0ecff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}
.claim-phrase {
  font-family: ui-monospace, monospace;
  padding: 10px;
  background: #f1f3f5;
  border-radius: 8px;
}
.claim-notice {
  color: #9c3b32;
}
.claim-screen.claim-review {
  padding: 20px;
  gap: 10px;
}
.claim-screen.claim-review h1 {
  font-size: 24px;
}
.claim-screen.claim-review p {
  font-size: 13px;
  line-height: 1.45;
}
.claim-screen.claim-review .claim-warning {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff4e5;
  color: #7a4100;
  font-weight: 600;
  text-align: left;
}
.claim-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 320px;
}
.claim-actions .claim-secondary {
  flex: 1 1 0;
}
.claim-actions .claim-primary {
  flex: 2 1 0;
}
.enrollment-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  text-align: left;
}
.enrollment-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
}
.enrollment-form input {
  width: 100%;
  padding: 11px;
  border: 1px solid #ccd1db;
  border-radius: 8px;
  font: inherit;
}
.enrollment-form button {
  max-width: none;
}
.enrollment-form #notice:empty {
  display: none;
}
.username-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.claim-screen .username-change {
  width: auto;
  padding: 5px 0 5px 8px;
  background: none;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
}
#username-options small {
  display: block;
  margin-top: 8px;
}
.claim-screen {
  padding: 24px;
  gap: 14px;
}

body.claim-page > main,
body.claim-page > main > .phone-home,
body.claim-page > main > .claim-screen {
  min-height: 100vh;
}

.companion-home {
  max-width: 540px;
}
.companion-request {
  width: 100%;
  border: 1px solid #e3def2;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  text-align: left;
}
.companion-request h2 {
  font-size: 18px;
  margin: 0 0 10px;
}
.companion-request button {
  margin-top: 14px;
}
