/* BabyQ user application — canonical final stylesheet.\n * Contains only current selectors and final declarations.\n */

@supports(height:100dvh) {
  :root{--babyq-layout-viewport-height:100dvh}
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

button,input,select,textarea {
  font: inherit;
}

.user-avatar {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  overflow: hidden;
  background: #0d1219;
}

.user-avatar.large {
  width: 52px;
  height: 52px;
  border-radius: 7px;
}

.brand-fallback,.user-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.user-photo {
  opacity: 0;
  z-index: 2;
}

.user-avatar.has-photo .user-photo {
  opacity: 1;
}

.user-avatar.has-photo .brand-fallback {
  opacity: 0;
}

.screen {
  display: grid;
  gap: 14px;
}

.state-screen {
  min-height: 65dvh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 10px;
}

.state-screen h1 {
  font-size: 25px;
  font-weight: 500;
  margin: 4px 0 0;
}

.state-screen p {
  margin: 0;
  color: var(--steel);
  font-size: 13px;
  max-width: 330px;
}

@keyframes spin {
  to{transform:rotate(360deg)}
}

.error-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,109,127,.35);
  color: #ff9baa;
  display: grid;
  place-items: center;
  border-radius: 7px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--steel);
}

.dot.good {
  background: var(--green);
  box-shadow: 0 0 14px rgba(56,217,149,.38);
}

.panel {
  overflow: hidden;
}

.stack {
  display: grid;
  gap: 9px;
}

.device-top,.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.device-title {
  display: grid;
  gap: 3px;
}

.badge.warn {
  border-color: rgba(255,197,104,.28);
  color: #ffd28a;
  background: rgba(255,197,104,.035);
}

.btn.danger {
  border-color: rgba(255,109,127,.3);
  color: #ff9baa;
  background: rgba(255,109,127,.035);
}

.btn.full {
  width: 100%;
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actions .btn {
  flex: 1;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--slate);
}

.profile-head small {
  display: block;
  color: var(--steel);
  font-size: 11px;
  margin-top: 3px;
}

.profile-info {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

.profile-row {
  display: grid;
  grid-template-columns: 90px minmax(0,1fr);
  gap: 10px;
  font-size: 11px;
}

.profile-row span {
  color: var(--steel);
}

.profile-row b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal {
  width: min(620px,calc(100vw - 24px));
  max-height: min(88dvh,800px);
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--bone);
}

.modal::backdrop {
  background: rgba(1,4,8,.72);
  backdrop-filter: blur(7px);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.modal-head p {
  font-size: 11px;
  color: var(--steel);
  margin: 5px 0 0;
}

.icon-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--slate);
  border-radius: 5px;
  background: transparent;
  color: var(--silver);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field:has([required])>label:after {
  content: " *";
  color: #ff9baa;
}

.textarea {
  min-height: 110px;
  padding: 11px;
  resize: vertical;
}

.input:focus,.select:focus,.textarea:focus {
  border-color: rgba(69,226,255,.42);
  box-shadow: 0 0 0 3px rgba(69,226,255,.07);
}

.field.invalid label {
  color: #ff9baa;
}

.field.invalid .input,.field.invalid .select,.field.invalid .textarea {
  border-color: rgba(255,109,127,.7);
  box-shadow: 0 0 0 3px rgba(255,109,127,.08);
}

.field-error {
  font-size: 10px;
  color: #ff9baa;
}

.modal-actions .btn {
  flex: 1;
}

.key-box {
  padding: 11px;
  border: 1px solid var(--slate);
  border-radius: 5px;
  background: #0a0f15;
  display: grid;
  gap: 9px;
}

.key-box code {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  color: var(--silver);
  word-break: break-all;
  max-height: 130px;
  overflow: auto;
}

.plan-price {
  font-size: 22px;
  font-weight: 500;
}

.plan-note {
  color: var(--steel);
  font-size: 11px;
}

@media(min-width:700px) {
  .summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.bottom-nav{left:50%;right:auto;width:520px;transform:translateX(-50%)}.device-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.plan-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
}

.icon-close svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-heading {
  align-items: flex-start;
}

.device-manage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.text-action {
  width: 100%;
  margin-top: 9px;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  color: var(--steel);
  font-size: 11px;
  text-align: center;
  cursor: pointer;
}

.text-action:hover {
  color: var(--bone);
}

.inline-note {
  margin: 0 0 12px;
  padding: 10px 11px;
  border: 1px solid rgba(69,226,255,.18);
  background: rgba(69,226,255,.035);
  border-radius: 5px;
  color: var(--silver);
  font-size: 11px;
  line-height: 1.45;
}

.benefit-card>div:first-child {
  display: grid;
  gap: 4px;
}

.benefit-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}

.benefit-actions .btn:last-child:nth-child(3) {
  grid-column: 1/-1;
}

.reward-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.reward-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(56,217,149,.2);
  background: rgba(56,217,149,.025);
  border-radius: 5px;
}

.reward-row>div {
  display: grid;
  gap: 3px;
}

.reward-row b {
  font-size: 12px;
  font-weight: 500;
}

.reward-row small {
  font-size: 9px;
  color: var(--steel);
}

.reward-row .btn {
  min-height: 34px;
  flex: 0 0 auto;
}

.success-block {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(56,217,149,.23);
  border-radius: 6px;
  background: rgba(56,217,149,.025);
}

.success-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56,217,149,.35);
  border-radius: 5px;
  color: var(--green);
}

.success-block>div {
  display: grid;
  gap: 5px;
}

.success-block strong {
  font-size: 13px;
  font-weight: 500;
}

.success-block p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--steel);
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:active {
  background: var(--graphite);
}

.support-thread.user-thread {
  display: grid;
  gap: 8px;
  max-height: 48dvh;
  overflow: auto;
  padding: 4px 1px 12px;
}

.user-thread .message.mine {
  justify-self: end;
  border-color: rgba(69,226,255,.2);
  background: rgba(69,226,255,.035);
}

.user-thread .message.support {
  justify-self: start;
}

.support-reply {
  margin-top: 4px;
}

@media(min-width:700px) {
  .benefit-card{grid-template-columns:1fr 1fr;align-items:end}.ref-code{padding-top:0;padding-left:16px;border-top:0;border-left:1px solid var(--slate)}.benefit-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.benefit-actions .btn:last-child:nth-child(3){grid-column:auto}
}

.connection-guide {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--slate);
  border-radius: 6px;
  background: #0b1017;
}

.connection-guide-head {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.connection-app-list {
  display: grid;
  gap: 8px;
}

.connection-app {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(71,87,107,.58);
  border-radius: 5px;
  background: var(--carbon);
}

.connection-app>div:first-child,.connection-app-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.method-tags {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.connection-main {
  margin-top: 12px;
}

.connection-material-list {
  margin-top: 4px;
}

.material-app {
  grid-template-columns: 1fr;
}

.private-note {
  margin-top: 11px;
  padding: 10px 11px;
  border-left: 2px solid rgba(255,197,104,.42);
  background: rgba(255,197,104,.025);
  color: var(--steel);
  font-size: 10px;
  line-height: 1.45;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(3,11,24,.55);
}

.history-row>div {
  display: grid;
  gap: 4px;
}

.history-row>div:last-child {
  text-align: right;
}

.history-row strong,.history-row b {
  font-size: 14px;
  font-weight: 600;
  color: var(--silver);
}

.history-row small {
  font-size: 12px;
  line-height: 1.5;
  color: var(--steel);
}

.history-delta {justify-self:end;border-radius:999px;padding:4px 10px;}
.history-delta.positive {color:var(--cyan);background:rgba(69,226,255,.08);}
.history-delta.negative {color:#f2acb5;background:rgba(242,172,181,.08);}
.history-delta.neutral {color:var(--silver);}

@media(max-width:520px) {
  .history-delta{justify-self:start}
  .connection-app{grid-template-columns:1fr}.method-tags{justify-content:flex-start}.connection-actions{grid-template-columns:1fr}.connection-actions .btn:only-child{grid-column:auto}.history-row{grid-template-columns:1fr}.history-row>div:last-child{text-align:left}
}

.ref-link-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media(min-width:700px) {
  .benefit-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.ref-link-actions{grid-column:1/-1}
}

@media(max-width:520px) {
  .ref-link-actions{grid-template-columns:1fr}
}

.order-pay {
  color: var(--cyan);
}

.order-pay:hover {
  color: var(--bone);
}

.order-cancel {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 10px;
  text-align: left;
  cursor: pointer;
  margin-top: 0;
  color: #ff9baa;
}

.order-cancel:hover {
  color: #ffc3ca;
}

.recommended-label {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 6px;
  border: 1px solid rgba(69,226,255,.23);
  border-radius: 4px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .04em;
}

.connection-app.recommended {
  border-color: rgba(69,226,255,.22);
  background: linear-gradient(135deg,rgba(69,226,255,.035),transparent 46%),var(--carbon);
}

.app-side {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.app-download {
  min-height: 32px;
  padding: 0 9px;
  font-size: 10px;
  width: auto;
}

.connection-app-copy .app-download {
  margin-top: 6px;
  justify-self: start;
}

.one-device-note {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(161,100,255,.18);
  background: rgba(161,100,255,.025);
  border-radius: 5px;
  color: var(--silver);
  font-size: 10px;
  line-height: 1.45;
}

.joined-referral {
  grid-column: 1/-1;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-top: 1px solid var(--slate);
  background: rgba(94,121,255,.025);
}

.joined-referral strong {
  font-size: 13px;
}

.joined-referral p {
  margin: 3px 0 0;
  color: var(--steel);
  font-size: 10px;
  line-height: 1.45;
}

.order-refunds {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}

.order-refunds small {
  color: #d7a6ff;
}

@media(max-width:520px) {
  .app-side{justify-items:start}.connection-app .app-download{width:100%}.user-brand-footer{min-height:116px;margin-top:26px;padding:22px 18px calc(100px + var(--safe-bottom))}.user-brand-footer img{width:min(248px,78vw)}
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.refresh-button:active {
  transform: rotate(12deg);
}

.refresh-button.loading {
  animation: spin .75s linear infinite;
}

.state-screen p,.hero p {
  font-size: 14px;
}

.profile-head strong {
  font-weight: 500;
  font-size: 16px;
}

.profile-head small,.profile-row {
  font-size: 12px;
}

.modal-head p,.field label,.inline-note,.section-note,.plan-note {
  font-size: 13px;
}

.empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--steel);
  font-size: 13px;
}

.support-subject {
  font-size: 14px;
}

.connection-guide-head p {
  margin: 0;
  color: var(--steel);
  line-height: 1.45;
  font-size: 12px;
}

.connection-app strong {
  font-weight: 500;
  color: var(--bone);
  font-size: 13px;
}

.connection-app small {
  line-height: 1.4;
  color: var(--steel);
  font-size: 11px;
}

.method-tags span {
  padding: 4px 6px;
  border: 1px solid rgba(69,226,255,.18);
  border-radius: 4px;
  color: var(--cyan);
  background: rgba(69,226,255,.025);
  font-family: var(--mono);
  letter-spacing: .035em;
  white-space: nowrap;
  font-size: 9px;
}

.one-device-note,.private-note {
  font-size: 11px;
}

.user-thread .message {
  max-width: 88%;
  padding: 10px 11px;
  border: 1px solid var(--slate);
  border-radius: 6px;
  background: #0c1118;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
}

.user-thread .message small {
  display: block;
  margin-top: 6px;
  color: var(--fog);
  font-size: 9px;
}

.connection-guide-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(71,87,107,.55);
}

.connection-guide-actions.two {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.subscription-lock-note {
  margin-top: 18px;
  padding: 11px 12px;
  border: 1px solid rgba(255,197,104,.20);
  background: rgba(255,197,104,.025);
  border-radius: 6px;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.5;
}

.traffic-value {
  font-family: var(--mono);
  font-size: 12px !important;
}

.connection-actions.three {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

@media(max-width:420px) {
  .connection-guide-actions.two,.connection-actions.three{grid-template-columns:1fr}.bottom-nav button{font-size:9.5px}.bottom-nav{left:6px;right:6px}
}

.user-brand-footer img {
  display: block;
  height: auto;
  object-fit: contain;
  filter: saturate(1) drop-shadow(0 8px 24px rgba(46,126,255,.16));
  width: min(252px,70vw);
  max-height: 72px;
}

.brand-home-button,.footer-brand-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.brand-home-button {
  text-align: left;
}

.footer-brand-button {
  display: block;
  max-width: min(300px,72vw);
}

.footer-brand-button img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  font-size: 15px;
}

.field label {
  color: var(--steel);
  font-size: 12px;
}

.message {
  font-size: 13px;
}

.message small {
  font-size: 10px;
}

.support-media-slot {
  margin-top: 8px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 7px;
}

.support-media-preview {
  display: block;
  width: min(100%,420px);
  max-height: 320px;
  object-fit: contain;
  border: 1px solid var(--slate);
  border-radius: 7px;
  background: #080b11;
}

.support-media-audio {
  display: block;
  width: min(100%,420px);
  min-height: 40px;
}

.support-attachment {
  min-height: 34px;
  font-size: 12px;
  margin-top: 0;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

.connection-actions.two {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

@media(max-width:480px) {
  .connection-actions.two{grid-template-columns:1fr}.user-brand-footer{min-height:104px;padding-bottom:calc(88px + var(--safe-bottom))}
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.bottom-nav button span:last-child {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-actions {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: stretch;
}

.connection-actions .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
}

.connection-actions .btn:only-child {
  grid-column: 1/-1;
  width: 100%;
}

@media(max-width:520px) {
  .app-topbar{padding-inline:12px}.app-content{padding-inline:12px}.bottom-nav{width:calc(100vw - 16px);padding-inline:4px}
}

@media(max-width:420px) {
  .app-topbar{min-height:calc(60px + var(--safe-top));padding:calc(8px + var(--safe-top)) 12px 8px}.app-content{padding-top:calc(80px + var(--safe-top))}.bottom-nav button{font-size:9px}
}

.auth-shell {
  width: min(100%,520px);
  margin: 7vh auto 0;
  padding: 28px;
  border: 1px solid var(--slate);
  border-radius: 12px;
  background: linear-gradient(145deg,rgba(69,226,255,.04),transparent 45%),var(--carbon);
  display: grid;
  gap: 14px;
  text-align: center;
}

.auth-shell>img {
  width: 72px;
  margin: auto;
}

.auth-shell h1 {
  margin: 4px 0 0;
}

.auth-shell p {
  margin: 0;
  color: var(--steel);
  line-height: 1.55;
}

.auth-link {
  border: 0;
  background: transparent;
  color: var(--cyan);
  padding: 10px;
  cursor: pointer;
}

.babyq-id {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(69,226,255,.24);
  border-radius: 7px;
  background: rgba(69,226,255,.035);
}

.babyq-id small {
  color: var(--steel);
}

.recovery-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 6px 24px;
  padding: 14px 14px 14px 42px;
  border: 1px solid var(--slate);
  background: #080b11;
}

.recovery-list code {
  font-family: var(--mono);
  color: var(--bone);
  font-size: 12px;
}

.recovery-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.countdown {
  color: var(--steel);
  text-align: center;
}

.security-list>div {
  display: grid;
  gap: 3px;
  padding: 11px;
  background: var(--carbon);
}

.security-list small {
  color: var(--steel);
}

.auth-desktop-hint {
  display: none;
  padding: 10px 12px;
  border: 1px solid rgba(69,226,255,.13);
  border-radius: 6px;
  background: rgba(69,226,255,.025);
  font-size: 12px;
  text-align: left;
}

@media(min-width:900px) {
  .auth-shell{width:min(100%,680px);padding:38px 52px;gap:16px}.auth-desktop-hint{display:block}
}

@media(max-width:560px) {
  .auth-shell{margin-top:2vh;padding:20px}.recovery-list{grid-template-columns:1fr}.recovery-actions{grid-template-columns:1fr}
}

@media(max-width:520px) {
  :root{--content-gutter:12px}.app-content{padding-left:var(--content-gutter);padding-right:var(--content-gutter)}.bottom-nav{left:var(--content-gutter);right:var(--content-gutter);width:auto;transform:none}
}

.app-title-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  column-gap: 7px;
  row-gap: 5px;
}

.connection-method-label {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 6px;
  border: 1px solid rgba(69,226,255,.18);
  border-radius: 4px;
  color: var(--cyan);
  background: rgba(69,226,255,.025);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .035em;
  white-space: nowrap;
}

.connection-app-copy>.method-tags {
  display: none;
}

.btn.compact {
  min-height: 36px;
  padding: 0 11px;
  font-size: 11px;
  white-space: nowrap;
}

.btn.primary:hover:not(:disabled) {
  border-color: rgba(69,226,255,.52);
  color: #8ceeff;
}

.btn.danger:hover:not(:disabled) {
  border-color: rgba(255,109,127,.55);
  background: rgba(255,109,127,.075);
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.security-list {
  display: grid;
  gap: 1px;
  background: var(--slate);
  border: 1px solid var(--slate);
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 6px;
}

.security-list>.security-row {
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
}

.security-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.security-label {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.security-browser {
  line-height: 1.35;
}

.security-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
}

@media(max-width:520px) {
  .security-list>.security-row{grid-template-columns:minmax(0,1fr);align-items:start}.security-actions{width:100%;justify-content:flex-start}.security-actions .btn.compact{flex:1 1 120px;min-height:40px;min-width:0}
}

body,.app-shell {
  min-height: var(--babyq-viewport-height);
}

.user-brand-footer {
  max-width: 920px;
  border-top: 1px solid rgba(90,108,130,.2);
  pointer-events: none;
  flex: 0 0 auto;
  margin-top: auto;
  display: flex;
  justify-content: center;
  opacity: .6;
  min-height: 118px;
  margin: 34px auto 0;
  padding: 24px 18px;
  align-items: flex-end;
}

.modal-actions {
  position: sticky;
  bottom: -17px;
  z-index: 4;
  margin: 17px -17px -17px;
  padding: 11px 17px calc(17px + var(--safe-bottom));
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--slate);
  background: rgba(17,21,29,.97);
  padding-bottom: calc(17px + var(--babyq-effective-safe-bottom));
}

@media(max-width:520px) {
  .user-brand-footer{min-height:104px;margin-top:26px;padding:20px 18px}
}

html,body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: radial-gradient(circle at 80% 0,rgba(33,74,151,.15),transparent 33%),var(--bg-primary);
  color: var(--text-primary);
}

.refresh-button svg,.nav-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.02em;
  font-size: 25px;
  font-weight: 700;
}

.app-brand img {
  object-fit: cover;
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.refresh-button,.profile-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-color: var(--border-soft);
  background: rgba(7,16,29,.72);
  color: var(--text-primary);
}

.refresh-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--slate);
  background: var(--carbon);
  color: var(--silver);
  border-radius: 7px;
  display: grid;
  place-items: center;
  line-height: 1;
  cursor: pointer;
  font-size: 26px;
}

.notification-button {
  position: relative;
  font-size: 26px;
}

.notification-count {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--purple);
  color: white;
  font-size: 11px;
  line-height: 18px;
}

.hero {
  border: 1px solid var(--slate);
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: 38px 44% 34px 34px;
  border-radius: var(--radius-hero);
  border-color: rgba(55,180,255,.58);
  background: radial-gradient(circle at 82% 52%,rgba(46,178,255,.23),transparent 18%),radial-gradient(circle at 94% 16%,rgba(140,79,255,.34),transparent 37%),linear-gradient(135deg,#061a2d,#07172d 58%,#171044);
  box-shadow: var(--glow-cyan),var(--glow-violet);
}

.hero:after {
  content: '✓';
  position: absolute;
  right: 9%;
  top: 56px;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(31,215,255,.65);
  border-radius: 50%;
  color: #80f2bd;
  font-size: 95px;
  font-weight: 700;
  text-shadow: 0 0 24px currentColor;
  box-shadow: inset 0 0 34px rgba(31,215,255,.22),0 0 36px rgba(123,92,255,.28);
}

.eyebrow {
  text-transform: uppercase;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--cyan);
}

.hero h1 {
  line-height: 1.08;
  letter-spacing: -.035em;
  font-size: clamp(36px,4vw,46px);
  font-weight: 750;
  margin: 22px 0 14px;
}

.hero p {
  margin: 0;
  line-height: 1.5;
  font-size: 17px;
  color: var(--text-secondary);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 16px;
  color: var(--text-secondary);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.summary-card,.panel,.device-card,.plan-card,.ticket-card {
  border: 1px solid var(--slate);
  border-color: var(--border-soft);
  border-radius: var(--radius-card);
  background: linear-gradient(145deg,rgba(17,35,60,.92),rgba(7,16,29,.96));
  box-shadow: var(--shadow-surface);
}

.summary-card {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 24px;
}

.summary-card small,.muted {
  font-size: 15px;
  color: var(--text-secondary);
}

.summary-card strong {
  font-weight: 500;
  letter-spacing: -.025em;
  font-size: 38px;
  color: var(--text-primary);
}

.panel-head {
  border-bottom: 1px solid var(--slate);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  border-color: var(--border-soft);
}

.panel-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.panel-head p {
  color: var(--steel);
  margin: 4px 0 0;
  font-size: 15px;
}

.panel-body {
  padding: 18px;
}

.device-card,.plan-card,.ticket-card {
  display: grid;
  padding: 22px;
  gap: 17px;
}

.device-title strong {
  font-weight: 500;
  font-size: 22px;
}

.device-title small {
  color: var(--steel);
  font-size: 15px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--slate);
  font-family: var(--mono);
  letter-spacing: .045em;
  color: var(--silver);
  min-height: 30px;
  border-radius: 12px;
  padding: 0 10px;
  font-size: 12px;
}

.device-meta {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.meta {
  border: 1px solid rgba(71,87,107,.5);
  display: grid;
  gap: 3px;
  padding: 13px;
  border-radius: 14px;
  border-color: var(--border-soft);
  background: rgba(3,11,24,.55);
}

.meta small {
  color: var(--fog);
  font-size: 13px;
}

.meta b {
  font-weight: 500;
  color: var(--silver);
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
}

.btn {
  border: 1px solid var(--line);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  min-height: 52px;
  border-radius: var(--radius-control);
  padding: 0 18px;
  border-color: var(--border-soft);
  font-size: 17px;
  font-weight: 650;
  color: var(--text-primary);
  transition: transform .2s,box-shadow .2s,border-color .2s;
}

.btn.primary {
  border-color: rgba(95,197,255,.72);
  background: var(--gradient);
  box-shadow: 0 8px 28px rgba(30,128,255,.3);
  color: #fff;
}

.btn.secondary {
  background: rgba(13,27,48,.82);
}

.btn:hover:not(:disabled) {
  color: var(--bone);
  transform: translateY(-1px);
  border-color: var(--border-active);
  box-shadow: var(--glow-cyan);
}

.btn:active:not(:disabled) {
  transform: scale(.985);
}

.nav-icon {
  font-family: var(--mono);
  line-height: 1;
  font-size: 24px;
}

.profile-popover {
  position: fixed;
  z-index: 50;
  top: calc(60px + var(--safe-top));
  right: 12px;
  width: min(320px,calc(100vw - 24px));
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  border-color: var(--border-soft);
  background: var(--surface-2);
  box-shadow: var(--shadow-surface);
}

.modal-head h2 {
  font-weight: 500;
  margin: 0;
  font-size: 26px;
}

.modal-head p,.field label {
  font-size: 15px;
}

.input,.select,.textarea {
  width: 100%;
  border: 1px solid var(--slate);
  color: var(--bone);
  outline: none;
  border-radius: 14px;
  border-color: var(--border-soft);
  background: var(--bg-primary);
  font-size: 16px;
}

.input,.select {
  padding: 0 11px;
  height: 52px;
}

.section-title {
  margin: 0 0 2px;
  font-size: 32px;
  font-weight: 750;
}

.section-note {
  margin: 0;
  line-height: 1.45;
  font-size: 13px !important;
  color: var(--text-secondary);
}

@media(max-width:620px) {
  .app-topbar{left:12px;right:12px;min-height:66px;border-radius:20px}.app-content{padding-top:calc(94px + var(--safe-top));padding-left:16px;padding-right:16px}.app-brand{font-size:22px}.app-brand img{width:36px;height:36px}.refresh-button,.profile-button{width:44px;height:44px}.hero{min-height:0;padding:27px 22px 28px}.hero:after{display:none}.hero h1{font-size:38px}.summary-card{min-height:132px;padding:19px}.summary-card strong{font-size:32px}.panel-head{padding:19px}.panel-head h2{font-size:24px}.device-card{padding:18px}.bottom-nav{left:12px;right:12px}.bottom-nav button{font-size:13px}.modal-card{padding:20px}.modal-head h2{font-size:23px}
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}
}

.totp-qr {
  display: block;
  width: min(240px,72vw);
  height: auto;
  margin: 0 auto 18px;
  padding: 10px;
  border-radius: 18px;
  background: #f6f9ff;
  box-shadow: var(--glow-cyan);
}

.notification-row {
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.notification-row:before {
  content: '•';
  display: grid;
  place-items: center;
  align-self: start;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--border-active);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(31,215,255,.06);
  font-size: 20px;
  line-height: 1;
}

.notification-row.unread .security-label:before {
  content: '●';
  margin-right: 8px;
  color: var(--cyan);
}

.security-list>.notification-row {
  grid-template-columns: 34px minmax(0,1fr) auto;
}

@media(max-width:620px) {
  .modal{width:calc(100vw - 16px);margin:auto 8px 8px;max-height:calc(var(--babyq-viewport-height) - var(--safe-top) - 8px)}.modal-card{max-height:inherit;border-radius:26px 26px 20px 20px}
}

.app-content {
  padding: calc(79px + var(--safe-top)) 14px calc(92px + var(--safe-bottom));
  margin: 0 auto;
  flex: 1 0 auto;
  padding-inline: max(14px,calc((100vw - var(--content-max))/2 + 14px));
  padding-bottom: var(--babyq-nav-reserve);
  max-width: 1200px;
  padding-top: calc(108px + var(--safe-top));
  gap: 20px;
  width: min(calc(100% - 40px),1180px);
  margin-inline: auto;
  padding-left: 0;
  padding-right: 0;
}

.app-topbar {
  position: fixed;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(90,108,130,.28);
  padding-inline: max(14px,calc((100vw - var(--content-max))/2 + 14px));
  top: calc(10px + var(--safe-top));
  min-height: 76px;
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: rgba(9,20,38,.78);
  box-shadow: var(--shadow-surface);
  backdrop-filter: blur(22px);
  width: min(calc(100% - 40px),1180px);
  margin-inline: auto;
  left: 0;
  right: 0;
}

@media(min-width:900px) {
  .auth-shell{width:min(100%,920px);min-height:520px;margin:4vh auto 0;padding:56px clamp(48px,8vw,104px);border-radius:26px;background:radial-gradient(circle at 12% 18%,rgba(31,215,255,.14),transparent 28%),radial-gradient(circle at 88% 82%,rgba(140,79,255,.18),transparent 32%),var(--surface-1);box-shadow:var(--shadow-surface),var(--glow-violet)}.auth-shell>img{width:92px}.auth-shell h1{font-size:38px}.auth-shell p{font-size:16px}
}

@media(max-width:620px) {
  .app-content{width:calc(100% - 32px)}.app-topbar{width:calc(100% - 24px)}.bottom-nav{width:calc(100% - 24px)}
}

.hero h2 {
  margin: 12px 0 6px;
  font-size: clamp(38px,5vw,58px);
  line-height: 1;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions .btn {
  flex: 1;
}

.summary-date {
  font-size: 20px !important;
}

.chip-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

@media(max-width:620px) {
  .hero-actions{display:grid}.hero h2{font-size:40px}
}

.modal, .modal-card, .profile-popover, .bottom-nav, .panel, .device-card, .ticket-card, .hero {
  background-clip: padding-box !important;
}

.modal-card {
  max-height: min(88dvh,800px);
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  border-color: var(--border-active);
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg,rgba(16,31,51,.98),rgba(12,24,40,.99)) padding-box !important;
  border: 1px solid rgba(73,174,255,.34) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.48),inset 0 1px rgba(255,255,255,.025) !important;
}

.modal-card::before,.modal-card::after, .profile-popover::before,.profile-popover::after, .panel::before,.panel::after, .device-card::before,.device-card::after, .ticket-card::before,.ticket-card::after {
  content: none !important;
  display: none !important;
}

.notification-row, .security-row.notification-row {
  width: 100%;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  margin: 0;
  border: 1px solid rgba(82,112,149,.52) !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg,rgba(19,35,58,.98),rgba(13,24,40,.98)) !important;
  color: #edf3f8 !important;
  text-align: left;
  box-shadow: none !important;
}

.notification-row.unread {
  border-color: rgba(69,226,255,.48) !important;
  background: linear-gradient(145deg,rgba(20,48,71,.99),rgba(18,27,50,.99)) !important;
}

.notification-row .security-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.notification-row .security-label {
  color: #f4f8fc !important;
  font-weight: 650;
  font-size: 14px;
}

.notification-row small {
  color: #9fb0c5 !important;
  line-height: 1.45;
}

.notification-unread {
  display: inline-flex;
  border: 1px solid var(--border-active);
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(69,226,255,.12);
  color: #70e9ff !important;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.babyq-id strong {
  font-family: var(--mono);
  word-break: break-word;
  font-size: clamp(15px,4vw,20px) !important;
  letter-spacing: .035em !important;
  overflow-wrap: anywhere;
}

.post-auth-create-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(82,112,149,.38);
  display: grid;
  gap: 8px;
  text-align: center;
}

.post-auth-create-wrap small {
  color: #8fa0b4;
  font-size: 11px;
}

.post-auth-create-wrap .btn {
  min-height: 44px;
  font-weight: 650;
}

.auth-explanation {
  font-size: 12px;
  display: none !important;
}

.device-card {
  position: relative;
  overflow: hidden;
  padding: 11px !important;
  border-radius: 14px !important;
  border-color: rgba(66,112,169,.48) !important;
  background: linear-gradient(145deg,rgba(16,31,51,.98),rgba(10,21,36,.99)) !important;
}

.device-platform-copy {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 8px;
}

.device-platform-copy .device-top {
  align-items: flex-start;
  gap: 8px;
}

.device-platform-copy .device-title {
  gap: 5px;
  min-width: 0;
}

.device-platform-copy .device-title strong {
  font-size: 16px !important;
  line-height: 1.15;
  font-weight: 650 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-platform-copy .chip-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.device-platform-copy .badge {
  min-height: 21px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 8px;
}

.device-platform-copy .device-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px 16px !important;
}

.device-platform-copy .meta {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: baseline;
  gap: 5px !important;
  min-width: 0;
}

.device-platform-copy .meta small {
  font-size: 9px !important;
  color: #7e91aa !important;
}

.device-platform-copy .meta b {
  font-size: 10px !important;
  color: #b9c8da !important;
  font-weight: 500 !important;
}

.device-platform-copy>.btn {
  min-height: 37px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  font-weight: 650;
}

@media(max-width:460px) {
  .device-card{padding:9px!important}
  .device-platform-layout{grid-template-columns:78px minmax(0,1fr);gap:10px}
  .device-platform-artwork{min-height:105px;padding:5px}
  .device-platform-art{width:70px;height:92px}
  .device-platform-copy .device-title strong{font-size:15px!important}
  .device-platform-copy .device-meta{gap:3px 10px!important}
}

.benefit-card {
  display: grid;
  position: relative;
  overflow: hidden;
  padding: 15px !important;
  gap: 12px !important;
  border: 1px solid rgba(69,226,255,.34) !important;
  border-radius: 14px !important;
  background: radial-gradient(circle at 88% 15%,rgba(108,76,255,.16),transparent 30%),
    linear-gradient(145deg,rgba(8,44,69,.78),rgba(13,26,46,.98) 55%,rgba(31,20,67,.72)) !important;
}

.benefit-card .eyebrow {
  color: #45dfff;
  font-size: 9px;
  letter-spacing: .09em;
}

.benefit-card strong {
  letter-spacing: -.025em;
  font-size: 20px !important;
  font-weight: 650 !important;
  color: #f5f8fc;
}

.benefit-card small {
  font-size: 10px !important;
  color: #9aacc1 !important;
}

.benefit-card .ref-code {
  padding: 10px 0 0 !important;
  border-top: 1px solid rgba(83,112,148,.34) !important;
  border-left: 0 !important;
}

.benefit-card .ref-code button {
  max-width: 60%;
  padding: 6px 9px !important;
  border: 1px solid rgba(69,226,255,.2) !important;
  border-radius: 8px !important;
  background: rgba(69,226,255,.05) !important;
}

.benefit-card .ref-link-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.order-list {
  display: grid !important;
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(72,102,139,.48) !important;
  border-radius: 12px !important;
  background: transparent !important;
}

.order-row {
  justify-content: space-between;
  min-width: 0;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 13px !important;
  background: linear-gradient(145deg,rgba(15,29,48,.98),rgba(11,22,37,.98)) !important;
  border-bottom: 1px solid rgba(72,102,139,.34);
}

.order-row:last-child {
  border-bottom: 0;
}

.order-row>div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #eef4fb !important;
  white-space: normal !important;
  line-height: 1.3;
}

.order-row small {
  font-size: 9px !important;
  line-height: 1.4;
  color: #8fa0b4 !important;
}

.order-state {
  justify-items: end;
  flex: 0 0 auto;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px !important;
  min-width: 86px;
}

.order-state strong {
  font-size: 13px !important;
  font-weight: 650 !important;
  color: #f0f5fb !important;
  white-space: nowrap;
}

.order-state .badge {
  min-height: 21px;
  border-radius: 999px;
  font-size: 8px;
  white-space: nowrap;
}

.order-inline-actions {
  margin-top: 7px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.order-pay,.order-cancel {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: left;
  font-size: 10px !important;
}

@media(max-width:420px) {
  .order-row{gap:8px!important;padding:11px!important}
  .order-state{min-width:74px}
  .order-state strong{font-size:12px!important}
  .order-state .badge{padding:0 6px!important}
}

.file-input {
  min-height: 44px;
  font-size: 12px;
  width: 100%;
  padding: 7px;
  border: 1px solid rgba(82,112,149,.52);
  border-radius: 10px;
  background: #0b1524;
  color: #9fb0c5;
}

.file-input::file-selector-button {
  min-height: 36px;
  margin-right: 10px;
  padding: 0 13px;
  border: 1px solid rgba(69,226,255,.30);
  border-radius: 8px;
  background: linear-gradient(135deg,rgba(17,133,218,.24),rgba(104,76,227,.24));
  color: #eaf8ff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

dialog.modal.support-fullscreen {
  width: 100vw !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

dialog.modal.support-fullscreen .modal-card {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0 !important;
  border-width: 0 !important;
  padding: calc(16px + var(--safe-top)) max(14px,calc((100vw - 820px)/2)) calc(14px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg,#102038 0%,#0b192b 100%) !important;
}

dialog.modal.support-fullscreen .modal-head, dialog.modal.support-fullscreen .support-thread, dialog.modal.support-fullscreen .support-reply, dialog.modal.support-fullscreen .support-reply + .field, dialog.modal.support-fullscreen .modal-actions {
  width: min(100%,760px);
  margin-left: auto !important;
  margin-right: auto !important;
}

dialog.modal.support-fullscreen .modal-head {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

dialog.modal.support-fullscreen .modal-head h2 {
  font-size: 20px;
  font-weight: 650;
}

dialog.modal.support-fullscreen .modal-head p {
  font-size: 11px;
}

dialog.modal.support-fullscreen .support-thread.user-thread {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow: auto;
  overscroll-behavior: contain;
  display: grid !important;
  grid-auto-rows: max-content;
  align-content: start !important;
  gap: 9px !important;
  padding: 12px 2px 18px !important;
  scroll-behavior: smooth;
}

dialog.modal.support-fullscreen .user-thread .message {
  width: max-content;
  max-width: min(76%,560px) !important;
  min-width: 90px;
  padding: 10px 12px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(83,111,146,.48) !important;
  background: #0a1422 !important;
  color: #eff5fb;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

dialog.modal.support-fullscreen .user-thread .message.mine {
  justify-self: end !important;
  border-color: rgba(69,226,255,.34) !important;
  background: linear-gradient(145deg,rgba(16,53,75,.94),rgba(14,35,58,.98)) !important;
}

dialog.modal.support-fullscreen .user-thread .message.support {
  justify-self: start !important;
}

dialog.modal.support-fullscreen .user-thread .message small {
  margin-top: 5px !important;
  color: #71839b !important;
  font-size: 8px !important;
}

dialog.modal.support-fullscreen .support-media-slot {
  margin-top: 8px;
}

dialog.modal.support-fullscreen .support-media-preview {
  max-width: 100%;
  border-radius: 9px;
}

dialog.modal.support-fullscreen .support-reply {
  flex: 0 0 auto;
  margin-top: 0 !important;
  gap: 5px;
}

dialog.modal.support-fullscreen .support-reply .textarea {
  min-height: 74px !important;
  max-height: 150px !important;
  resize: vertical;
  border-radius: 11px;
  background: #081321;
}

dialog.modal.support-fullscreen .support-reply + .field {
  flex: 0 0 auto;
  margin-top: 7px;
  gap: 5px;
}

dialog.modal.support-fullscreen .modal-actions {
  position: static !important;
  flex: 0 0 auto;
  margin-top: 9px !important;
  margin-bottom: 0 !important;
  padding: 9px 0 0 !important;
  background: transparent !important;
}

dialog.modal.support-fullscreen .modal-actions .btn {
  min-height: 42px;
  border-radius: 10px;
  font-weight: 650;
}

@media(max-width:520px) {
  dialog.modal.support-fullscreen .modal-card{padding-left:12px;padding-right:12px}
  dialog.modal.support-fullscreen .user-thread .message{max-width:84%!important}
}

@supports(-webkit-touch-callout:none) {
  .modal-card,.panel,.device-card,.ticket-card,.profile-popover,.bottom-nav{
  -webkit-mask-image:-webkit-radial-gradient(white,black);
  }
}

.post-telegram-totp-recovery {
  margin-top: 14px;
  padding: 13px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(69,226,255,.25);
  border-radius: 12px;
  background: linear-gradient(145deg,rgba(16,45,65,.72),rgba(15,27,45,.92));
}

.post-telegram-totp-recovery strong {
  color: #edf7ff;
  font-size: 13px;
  font-weight: 650;
}

.post-telegram-totp-recovery p {
  margin: 0;
  color: #93a6bb;
  font-size: 10px;
  line-height: 1.5;
}

.post-telegram-totp-recovery .btn {
  margin-top: 2px;
  min-height: 40px;
}

dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .modal-card > *, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .modal-head > *, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .form-grid, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .field, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .babyq-id, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .security-list, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .security-row, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .post-telegram-totp-recovery, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .inline-note, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .modal-actions {
  min-width: 0 !important;
  max-width: 100% !important;
}

dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .babyq-id strong, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .security-label, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) p, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) small, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .input, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .select, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .textarea, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .btn.full {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) img, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) svg {
  max-width: 100%;
}

dialog.modal.account-creation-modal {
  width: min(560px,calc(100vw - 20px)) !important;
}

dialog.modal.account-creation-modal .modal-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  max-height: min(90dvh,780px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

dialog.modal.account-creation-modal .modal-card > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

dialog.modal.account-creation-modal .modal-head {
  margin-bottom: 2px !important;
}

dialog.modal.account-creation-modal .account-identity-block, dialog.modal.account-creation-modal .account-secret-block {
  padding: 13px 14px !important;
  border-radius: 12px !important;
}

dialog.modal.account-creation-modal .account-qr-help {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(69,226,255,.25);
  border-radius: 12px;
  background: linear-gradient(145deg,rgba(12,40,58,.82),rgba(13,27,46,.96));
}

dialog.modal.account-creation-modal .account-qr-help strong {
  color: #eefaff;
  font-size: 14px;
  line-height: 1.3;
}

dialog.modal.account-creation-modal .account-qr-help p {
  margin: 0 !important;
  color: #b5c5d7;
  font-size: 12px;
  line-height: 1.5;
}

dialog.modal.account-creation-modal .account-qr-help small {
  color: #8195ac;
  font-size: 10px;
  line-height: 1.45;
}

dialog.modal.account-creation-modal .totp-qr {
  width: min(230px,68vw) !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 10px !important;
  border-radius: 14px !important;
  background: #fff !important;
}

dialog.modal.account-creation-modal .account-totp-field {
  display: grid !important;
  gap: 9px !important;
}

dialog.modal.account-creation-modal .account-create-submit {
  min-height: 50px !important;
  margin-top: 2px !important;
}


/* Anonymous browser registration: one scoped ceremony, not another CSS patch layer. */
dialog.modal.account-creation-modal.registration-ceremony {
  width: min(706px,calc(100vw - 24px)) !important;
  max-height: min(92dvh,850px) !important;
}

dialog.modal.account-creation-modal.registration-ceremony .modal-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  max-height: min(92dvh,850px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

dialog.modal.account-creation-modal.registration-ceremony .registration-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  padding: 24px 28px 18px;
  border-bottom: 1px solid rgba(89,133,177,.20);
  margin: 0 !important;
}

.registration-title {
  min-width: 0;
}

.registration-eyebrow {
  display: block;
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #65ddf7;
}

.registration-head h2 {
  margin: 0 0 6px !important;
  font-size: clamp(22px,3vw,27px) !important;
  font-weight: 750 !important;
  letter-spacing: -.025em;
}

.registration-head p {
  max-width: 470px;
  margin: 0 !important;
  color: #9cafc4;
  font-size: 13px !important;
  line-height: 1.5;
}

.registration-head .icon-close {
  flex: 0 0 auto;
}

.registration-flow {
  display: grid;
  gap: 18px;
  padding: 20px 28px 22px;
  min-width: 0;
  flex: 0 0 auto;
}

.registration-step {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.registration-step + .registration-step {
  padding-top: 18px;
  border-top: 1px solid rgba(89,133,177,.18);
}

.registration-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}

.registration-step-heading > div {
  min-width: 0;
}

.registration-step-number {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(66,202,248,.36);
  border-radius: 9px;
  background: rgba(30,174,219,.11);
  color: #75e2fb;
  font-size: 12px;
  font-weight: 800;
}

.registration-step-heading h3 {
  margin: 2px 0 3px;
  color: #f2f7ff;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 750;
}

.registration-step-heading p {
  margin: 0 !important;
  color: #96a9bf;
  font-size: 12px;
  line-height: 1.45;
}

dialog.modal.account-creation-modal.registration-ceremony .registration-identity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px !important;
  min-width: 0;
  margin: 0 !important;
  padding: 12px 14px !important;
  text-align: left !important;
}

.registration-identity-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

dialog.modal.account-creation-modal.registration-ceremony .registration-identity-card small {
  font-size: 10px !important;
  letter-spacing: .05em;
}

dialog.modal.account-creation-modal.registration-ceremony .registration-identity-card strong {
  font-size: clamp(17px,2.6vw,21px) !important;
  overflow-wrap: anywhere;
}

.registration-copy {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(71,182,232,.35);
  border-radius: 9px;
  background: rgba(38,158,217,.1);
  color: #91e7ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.registration-copy:hover,
.registration-copy:focus-visible,
.registration-manual-toggle:hover,
.registration-manual-toggle:focus-visible {
  border-color: rgba(93,222,252,.8);
  outline-offset: 3px;
  color: #d9f8ff;
}

.registration-setup-grid {
  display: grid;
  grid-template-columns: minmax(0,212px) minmax(0,1fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

.registration-qr-panel,
.registration-help-panel {
  min-width: 0;
  border: 1px solid rgba(88,136,180,.25);
  border-radius: 14px;
  background: linear-gradient(145deg,rgba(11,32,54,.94),rgba(10,23,40,.88));
}

.registration-qr-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 15px 10px;
}

dialog.modal.account-creation-modal.registration-ceremony .registration-qr-panel .totp-qr {
  display: block !important;
  width: min(180px,100%) !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 8px !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.registration-qr-panel > span {
  color: #9dafc5;
  font-size: 11px;
  text-align: center;
  line-height: 1.4;
}

.registration-help-panel {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 16px 17px;
}

.registration-help-panel > strong {
  color: #eef8ff;
  font-size: 14px;
}

.registration-help-panel p {
  margin: 0 !important;
  color: #bdcbdc;
  font-size: 12px;
  line-height: 1.55;
}

.registration-manual-toggle {
  justify-self: start;
  padding: 8px 0 2px;
  border: 0;
  border-bottom: 1px dashed rgba(73,206,243,.54);
  background: transparent;
  color: #6cdefa;
  text-align: left;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  cursor: pointer;
}

.registration-manual-toggle span {
  display: inline-block;
  margin-left: 3px;
}

.registration-manual-toggle[aria-expanded="true"] span {
  transform: rotate(180deg);
}

.registration-manual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 13px 15px;
  min-width: 0;
  border: 1px dashed rgba(93,180,222,.38);
  border-radius: 12px;
  background: rgba(14,36,55,.72);
}

.registration-manual[hidden],
.registration-feedback[hidden] {
  display: none !important;
}

.registration-manual > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.registration-manual small {
  color: #9db0c3;
  font-size: 10px;
}

.registration-manual .registration-secret {
  display: block;
  max-width: 100%;
  color: #e5f5ff;
  font-size: 12px;
  letter-spacing: .07em;
  overflow-wrap: anywhere;
  user-select: text;
}

.registration-manual .registration-manual-note {
  flex-basis: 100%;
}

.registration-verification {
  padding-bottom: 2px;
}

dialog.modal.account-creation-modal.registration-ceremony .registration-code-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0 !important;
}

.registration-code-field label {
  color: #d7e7f6;
  font-size: 12px !important;
  font-weight: 700;
}

dialog.modal.account-creation-modal.registration-ceremony .registration-code-field .totp-code-control {
  width: min(100%,342px);
  margin: 0;
}

.registration-code-field > small {
  color: #879db4;
  font-size: 11px;
  line-height: 1.45;
}

.registration-feedback {
  padding: 9px 11px;
  border: 1px solid rgba(255,120,131,.34);
  border-radius: 10px;
  background: rgba(85,25,36,.28);
  color: #ffd6dc;
  font-size: 12px;
  line-height: 1.45;
}

dialog.modal.account-creation-modal.registration-ceremony .registration-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 14px 28px 17px;
  border-top: 1px solid rgba(89,133,177,.24);
  background: linear-gradient(180deg,#101f33,#0c1a2c);
}

.registration-footer > span {
  max-width: 230px;
  color: #91a8bd;
  font-size: 11px;
  line-height: 1.4;
}

dialog.modal.account-creation-modal.registration-ceremony .registration-footer .account-create-submit {
  width: min(100%,230px) !important;
  flex: 0 0 auto;
  min-height: 48px !important;
  margin: 0 !important;
  font-size: 14px;
}

.registration-footer .account-create-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

@media(max-width:660px) {
  dialog.modal.account-creation-modal.registration-ceremony .registration-setup-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  dialog.modal.account-creation-modal.registration-ceremony .registration-qr-panel {
    padding: 12px;
  }

  dialog.modal.account-creation-modal.registration-ceremony .registration-head {
    padding: 19px 17px 14px;
  }

  dialog.modal.account-creation-modal.registration-ceremony .registration-flow {
    padding: 17px 16px;
    gap: 17px;
  }

  dialog.modal.account-creation-modal.registration-ceremony .registration-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding: 12px 16px max(14px,var(--safe-bottom));
  }

  dialog.modal.account-creation-modal.registration-ceremony .registration-footer .account-create-submit {
    width: 100% !important;
  }
}

@media(max-width:420px) {
  dialog.modal.account-creation-modal.registration-ceremony .registration-head {
    padding: 16px 15px 13px;
  }

  dialog.modal.account-creation-modal.registration-ceremony .registration-flow {
    padding: 14px;
    gap: 15px;
  }

  dialog.modal.account-creation-modal.registration-ceremony .registration-identity-card {
    align-items: flex-start;
  }

  dialog.modal.account-creation-modal.registration-ceremony .registration-copy {
    padding: 7px 9px;
    font-size: 11px;
  }

  dialog.modal.account-creation-modal.registration-ceremony .registration-qr-panel .totp-qr {
    width: min(166px,100%) !important;
  }
}

.totp-code-control {
  position: relative;
  width: min(100%,360px);
  margin: 2px auto 0;
  cursor: text;
}

.totp-code-cells {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 8px;
}

.totp-code-cell {
  min-width: 0;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(82,112,149,.64);
  border-radius: 11px;
  background: linear-gradient(180deg,rgba(9,22,38,.98),rgba(7,17,30,.98));
  color: #f4f8fc;
  font-size: 23px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  transition: border-color .12s ease,background .12s ease,box-shadow .12s ease,transform .12s ease;
}

.totp-code-cell.filled {
  border-color: rgba(69,226,255,.42);
  background: linear-gradient(180deg,rgba(10,36,52,.98),rgba(8,23,38,.98));
}

.totp-code-control.focused .totp-code-cell.active {
  border-color: rgba(69,226,255,.9);
  box-shadow: 0 0 0 2px rgba(69,226,255,.12),inset 0 1px rgba(255,255,255,.035);
  transform: translateY(-1px);
}

.totp-code-control.complete .totp-code-cell {
  border-color: rgba(86,226,168,.48);
}

.totp-code-native, dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .totp-code-native {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: transparent !important;
  caret-color: transparent !important;
  opacity: .01 !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

.field.invalid .totp-code-cell {
  border-color: rgba(255,94,113,.75) !important;
}

dialog.modal.trial-device-modal {
  width: min(520px,calc(100vw - 16px)) !important;
  max-height: min(82dvh,680px) !important;
}

dialog.modal.trial-device-modal .modal-card {
  min-height: min(66dvh,560px);
  max-height: min(82dvh,680px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

dialog.modal.trial-device-modal .modal-head {
  flex: 0 0 auto;
}

dialog.modal.trial-device-modal .field {
  flex: 1 1 auto;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

dialog.modal.trial-device-modal .trial-device-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

dialog.modal.trial-device-modal .trial-device-picker {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 2px 1px 8px;
  margin-top: 2px;
}

dialog.modal.trial-device-modal .trial-device-option {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(82,112,149,.52);
  border-radius: 11px;
  background: linear-gradient(145deg,rgba(17,32,52,.98),rgba(11,23,39,.98));
  color: #edf3f8;
  text-align: left;
  cursor: pointer;
}

dialog.modal.trial-device-modal .trial-device-option.selected {
  border-color: rgba(69,226,255,.62);
  background: linear-gradient(145deg,rgba(15,54,76,.98),rgba(22,31,61,.98));
  box-shadow: inset 0 0 0 1px rgba(69,226,255,.12);
}

dialog.modal.trial-device-modal .trial-device-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

dialog.modal.trial-device-modal .trial-device-copy strong {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
  overflow-wrap: anywhere;
}

dialog.modal.trial-device-modal .trial-device-copy small {
  font-size: 10px;
  line-height: 1.35;
  color: #8fa0b4;
}

dialog.modal.trial-device-modal .trial-device-check {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(82,112,149,.6);
  border-radius: 50%;
  color: transparent;
  background: rgba(8,18,31,.72);
  font-size: 14px;
  font-weight: 800;
}

dialog.modal.trial-device-modal .trial-device-option.selected .trial-device-check {
  border-color: rgba(69,226,255,.72);
  background: rgba(69,226,255,.13);
  color: #69eaff;
}

dialog.modal.trial-device-modal #trialClaimSubmit {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 3;
  flex: 0 0 auto;
  min-height: 50px !important;
  margin-top: 10px !important;
  padding: 0 15px !important;
  font-size: 13px !important;
  background: #0b2630 !important;
  box-shadow: 0 -10px 22px rgba(12,24,40,.92);
}

@media(max-width:520px) {
  .profile-popover{
  left:8px!important;
  right:8px!important;
  width:auto!important;
  max-width:none!important;
  margin-inline:auto!important;
  }
  
  dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen){
  width:calc(100vw - 16px)!important;
  max-width:calc(100vw - 16px)!important;
  }
  
  dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .modal-card{
  padding:15px 13px!important;
  }
  
  dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .modal-actions{
  flex-wrap:wrap;
  }
  
  dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .modal-actions .btn{
  min-width:0!important;
  flex:1 1 132px!important;
  }
  
  dialog.modal.account-creation-modal .modal-card{
  gap:14px!important;
  max-height:92dvh!important;
  }
  
  dialog.modal.account-creation-modal .account-qr-help{
  padding:12px;
  }
  
  .totp-code-control{
  width:100%;
  }
  
  .totp-code-cells{
  gap:6px;
  }
  
  .totp-code-cell{
  height:50px;
  border-radius:9px;
  font-size:21px;
  }
  
  dialog.modal.trial-device-modal .modal-card{
  min-height:min(70dvh,580px);
  }
  
  dialog.modal.trial-device-modal .trial-device-option{
  min-height:66px;
  padding:12px;
  }
}

.telegram-unlink-protected {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

body.auth-surface .app-topbar, body .app-topbar:has(#authenticatedTopbar.hidden) {
  display: none !important;
}

body.auth-surface #authenticatedTopbar, body.auth-surface #authenticatedFooter, body.auth-surface #bottomNav, body.auth-surface #profilePopover {
  display: none !important;
}

body.auth-surface .app-content {
  padding-top: calc(18px + var(--safe-top)) !important;
  padding-bottom: calc(24px + var(--safe-bottom)) !important;
}

.auth-field-error {
  margin-top: 1px;
  line-height: 1.35;
}

body:not(.auth-surface) {
  /* Telegram iOS sheet height is NOT always the CSS 100dvh viewport. */
  height: var(--babyq-viewport-height, 100dvh);
  min-height: 0;
  overflow: hidden !important;
}

body:not(.auth-surface) .app-shell {
  height: var(--babyq-viewport-height, 100dvh);
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body:not(.auth-surface) .app-topbar {
  position: relative !important;
  inset: auto !important;
  z-index: 30;
  flex: 0 0 auto;
  min-height: calc(62px + var(--safe-top));
  padding: calc(8px + var(--safe-top)) 15px 8px;
  background: #080b11 !important;
  backdrop-filter: none !important;
  box-shadow: 0 7px 24px rgba(0,0,0,.18);
}

body:not(.auth-surface) .app-content {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 14px 18px !important;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

body:not(.auth-surface) .bottom-nav:not(.hidden) {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  z-index: 25;
  flex: 0 0 auto;
  width: calc(100% - 16px) !important;
  max-width: 520px;
  min-height: 61px;
  height: 61px;
  margin: 8px auto max(8px, var(--babyq-effective-safe-bottom));
  background: #0f131a !important;
  backdrop-filter: none !important;
  box-shadow: 0 -7px 24px rgba(0,0,0,.16);
}

body:not(.auth-surface) .user-brand-footer {
  margin-bottom: 0 !important;
}

body:not(.auth-surface) .profile-popover {
  top: calc(62px + var(--safe-top) + 6px) !important;
}

.home-hero-polished {
  padding: 14px 15px !important;
  border-radius: 10px !important;
}

.home-hero-polished .eyebrow {
  font-size: 9px !important;
}

.home-hero-polished h1 {
  margin: 7px 0 2px !important;
  font-size: 22px !important;
  line-height: 1.08 !important;
}

.home-hero-polished h2 {
  margin: 0 0 4px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
}

.home-hero-polished > p {
  font-size: 11px !important;
  line-height: 1.4 !important;
}

.home-hero-polished .status-line {
  margin-top: 9px !important;
  gap: 6px !important;
  font-size: 10px !important;
}

.home-hero-polished .hero-actions {
  margin-top: 10px !important;
  gap: 7px !important;
}

.home-hero-polished .hero-actions .btn {
  min-height: 34px !important;
  padding: 0 10px !important;
  font-size: 10px !important;
}

.home-summary-grid {
  gap: 9px !important;
}

.home-summary-grid .summary-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(82,112,149,.48);
  border-radius: 10px;
  background: rgba(11,20,31,.86);
}

.home-summary-grid .summary-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-summary-grid .summary-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-summary-grid .summary-copy small {
  order: 2;
  font-size: 9px !important;
  line-height: 1.25;
}

.home-summary-grid .summary-copy strong {
  order: 1;
  font-size: 20px !important;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-summary-grid .summary-card[data-summary-kind="devices"] .summary-icon {
  color: #7edfff;
  border-color: rgba(69,226,255,.28);
  background: rgba(69,226,255,.06);
}

.home-summary-grid .summary-card[data-summary-kind="active"] .summary-icon {
  color: #6ee1ad;
  border-color: rgba(56,217,149,.28);
  background: rgba(56,217,149,.06);
}

.home-summary-grid .summary-card[data-summary-kind="online"] .summary-icon {
  color: #8ea7ff;
  border-color: rgba(94,121,255,.3);
  background: rgba(94,121,255,.07);
}

.home-summary-grid .summary-card[data-summary-kind="expiry"] .summary-icon {
  color: #d1a8ff;
  border-color: rgba(161,100,255,.3);
  background: rgba(161,100,255,.07);
}

.home-summary-grid .summary-card[data-summary-kind="expiry"] .summary-date {
  font-size: 14px !important;
  text-overflow: clip;
}

@media(min-width:700px) {
  body:not(.auth-surface) .bottom-nav:not(.hidden){
  left:auto!important;
  right:auto!important;
  width:520px!important;
  }
  
  .home-summary-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:520px) {
  body:not(.auth-surface) .app-content{
  padding:12px 10px 14px!important;
  }
  
  body:not(.auth-surface) .bottom-nav:not(.hidden){
  width:calc(100% - 12px)!important;
  margin:6px auto calc(6px + var(--safe-bottom));
  }
  
  .home-hero-polished{
  padding:12px 13px!important;
  }
  
  .home-hero-polished h1{
  font-size:20px!important;
  }
  
  .home-summary-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  
  .home-summary-grid .summary-card{
  min-height:76px;
  grid-template-columns:34px minmax(0,1fr);
  padding:10px!important;
  gap:8px!important;
  }
  
  .home-summary-grid .summary-icon{
  width:34px;
  height:34px;
  border-radius:9px;
  }
  
  .home-summary-grid .summary-icon svg{
  width:18px;
  height:18px;
  }
}

body.browser-standalone {
  min-height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.browser-standalone .app-shell {
  width: 100%;
  min-height: 100dvh !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column;
  overflow: visible !important;
}

body.browser-standalone:not(.auth-surface) .app-content {
  flex: 1 0 auto !important;
  min-height: 0 !important;
  width: min(100%,1120px) !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 18px 24px 104px !important;
  overflow: visible !important;
  scrollbar-gutter: auto !important;
}

body.browser-standalone:not(.auth-surface) #screen, body.browser-standalone:not(.auth-surface) .screen {
  width: 100%;
  min-width: 0;
}

body.browser-standalone:not(.auth-surface) .bottom-nav:not(.hidden) {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 12px !important;
  transform: translateX(-50%) !important;
  width: min(520px,calc(100vw - 24px)) !important;
  max-width: 520px !important;
  margin: 0 !important;
  z-index: 40;
  background: rgba(15,19,26,.98) !important;
  backdrop-filter: blur(16px) !important;
}

body.browser-standalone:not(.auth-surface) .profile-popover {
  position: fixed !important;
  top: 72px !important;
  right: max(12px,calc((100vw - 1120px)/2 + 12px)) !important;
}

body.browser-standalone.auth-surface {
  overflow-y: auto !important;
}

body.browser-standalone.auth-surface .app-shell {
  min-height: 100dvh !important;
}

body.browser-standalone.auth-surface .app-content {
  width: min(100%,560px) !important;
  max-width: 560px !important;
  min-height: 100dvh;
  margin: 0 auto !important;
  padding: clamp(28px,8vh,82px) 20px 36px !important;
  display: grid;
  align-items: start;
  overflow: visible !important;
}

body.browser-standalone.auth-surface #screen, body.browser-standalone.auth-surface .screen {
  width: 100%;
}


@media(min-width:900px) {
  body.browser-standalone:not(.auth-surface) .home-hero-polished{
  padding:18px 20px!important;
  }
  
  body.browser-standalone:not(.auth-surface) .home-summary-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(min-width:1100px) {
  body.browser-standalone:not(.auth-surface) .app-topbar{
  min-height:72px!important;
  padding-top:10px!important;
  padding-bottom:10px!important;
  padding-left:max(28px,calc((100vw - 1360px)/2))!important;
  padding-right:max(28px,calc((100vw - 1360px)/2))!important;
  }
  
  body.browser-standalone:not(.auth-surface) .app-content{
  width:min(calc(100% - 160px),1360px)!important;
  max-width:1360px!important;
  padding:28px 32px 64px!important;
  }
  
  body.browser-standalone:not(.auth-surface) #screen.browser-home-dashboard{
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:18px;
  align-items:start;
  }
  
  body.browser-standalone:not(.auth-surface) #screen.browser-home-dashboard > .home-hero-polished,
  body.browser-standalone:not(.auth-surface) #screen.browser-home-dashboard > .home-summary-grid{
  grid-column:1 / -1;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  }
  
  body.browser-standalone:not(.auth-surface) #screen.browser-home-dashboard > .panel{
  grid-column:span 6;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  align-self:start;
  }
  
  body.browser-standalone:not(.auth-surface) #screen.browser-home-dashboard > .panel:only-of-type{
  grid-column:1 / -1;
  }
  
  body.browser-standalone:not(.auth-surface) .home-hero-polished{
  padding:22px 24px!important;
  border-radius:14px!important;
  }
  
  body.browser-standalone:not(.auth-surface) .home-hero-polished h1{
  font-size:29px!important;
  }
  
  body.browser-standalone:not(.auth-surface) .home-hero-polished h2{
  font-size:17px!important;
  }
  
  body.browser-standalone:not(.auth-surface) .home-hero-polished > p{
  max-width:760px;
  font-size:13px!important;
  }
  
  body.browser-standalone:not(.auth-surface) .home-hero-polished .hero-actions .btn{
  min-height:40px!important;
  padding:0 15px!important;
  font-size:12px!important;
  }
  
  body.browser-standalone:not(.auth-surface) .home-summary-grid{
  gap:14px!important;
  }
  
  body.browser-standalone:not(.auth-surface) .home-summary-grid .summary-card{
  min-height:96px;
  padding:14px!important;
  border-radius:13px!important;
  }
  
  body.browser-standalone:not(.auth-surface) .bottom-nav:not(.hidden){
  top:50%!important;
  bottom:auto!important;
  left:22px!important;
  right:auto!important;
  transform:translateY(-50%)!important;
  width:104px!important;
  max-width:104px!important;
  height:auto!important;
  padding:8px!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:5px!important;
  border-radius:18px!important;
  }
  
  body.browser-standalone:not(.auth-surface) .bottom-nav button{
  min-height:64px!important;
  padding:8px 4px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  border-radius:12px!important;
  }
  
  body.browser-standalone:not(.auth-surface) .bottom-nav .nav-icon{
  width:20px!important;
  height:20px!important;
  }
  
  body.browser-standalone:not(.auth-surface) .profile-popover{
  top:78px!important;
  right:max(24px,calc((100vw - 1360px)/2 + 24px))!important;
  }
  
  body.browser-standalone:not(.auth-surface) .user-brand-footer{
  margin-top:22px!important;
  }
}

@media(max-width:699px) {
  body.browser-standalone:not(.auth-surface) .app-content{
  padding:14px 12px 94px!important;
  }
  
  body.browser-standalone:not(.auth-surface) .bottom-nav:not(.hidden){
  bottom:max(6px,var(--safe-bottom))!important;
  width:calc(100vw - 12px)!important;
  }
  
  body.browser-standalone.auth-surface .app-content{
  padding:24px 14px 30px!important;
  }
}

.app-brand span {
  white-space: nowrap;
}

.home-hero {
  position: relative;
  overflow: hidden;
  display: grid !important;
  grid-template-columns: minmax(0,1.35fr) minmax(250px,.65fr) !important;
  align-items: stretch !important;
  gap: 18px !important;
  padding: 18px !important;
  border-color: rgba(69,226,255,.34) !important;
  background: radial-gradient(circle at 88% 18%,rgba(113,73,255,.24),transparent 34%),
    radial-gradient(circle at 8% 110%,rgba(35,191,255,.14),transparent 34%),
    linear-gradient(135deg,rgba(7,35,56,.98),rgba(15,27,58,.99) 58%,rgba(39,24,87,.92)) !important;
}

.home-hero::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -76px;
  top: -92px;
  border: 1px solid rgba(69,226,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(69,226,255,.025),0 0 0 52px rgba(118,78,255,.025);
  pointer-events: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.home-hero-copy .eyebrow {
  color: #55e5ff !important;
  font-size: 9px !important;
  font-weight: 750 !important;
  letter-spacing: .10em !important;
}

.home-hero-copy h1 {
  margin: 8px 0 3px !important;
  font-size: clamp(23px,2.1vw,32px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.025em !important;
}

.home-hero-copy h2 {
  margin: 0 0 6px !important;
  color: #dce9f5 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 620 !important;
}

.home-hero-copy>p {
  max-width: 620px !important;
  margin: 0 !important;
  color: #9eb1c7 !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}

.home-hero-copy .status-line {
  margin-top: 10px !important;
  padding: 6px 9px !important;
  border: 1px solid rgba(94,124,158,.25);
  border-radius: 999px;
  background: rgba(6,17,31,.34);
  font-size: 9px !important;
}

.home-hero-copy .hero-actions {
  width: 100%;
  max-width: 620px;
  margin-top: 12px !important;
  gap: 8px !important;
}

.home-hero-copy .hero-actions .btn {
  min-height: 39px !important;
  border-radius: 10px !important;
  font-size: 10px !important;
  font-weight: 680 !important;
}

.home-hero-orb {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(69,226,255,.38);
  border-radius: 50%;
  background: radial-gradient(circle,rgba(69,226,255,.17),rgba(69,226,255,.035) 58%,transparent 60%);
  box-shadow: 0 0 28px rgba(69,226,255,.10);
}

.home-hero-orb svg {
  width: 38px;
  height: 38px;
  fill: rgba(69,226,255,.035);
  stroke: #5fe5ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-hero-visual.online .home-hero-orb {
  border-color: rgba(79,231,164,.48);
  background: radial-gradient(circle,rgba(79,231,164,.19),rgba(79,231,164,.04) 58%,transparent 60%);
  box-shadow: 0 0 30px rgba(79,231,164,.12);
}

.home-hero-visual.online .home-hero-orb svg {
  stroke: #71eab4;
}

.home-summary-grid .summary-card {
  border-radius: 10px !important;
  background: linear-gradient(145deg,rgba(19,27,39,.98),rgba(12,18,27,.98)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  min-height: 88px !important;
  padding: 12px 14px !important;
  display: grid !important;
  grid-template-columns: 40px minmax(0,1fr) !important;
  align-items: center !important;
  gap: 11px !important;
}

.home-summary-grid .summary-card .summary-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 11px !important;
  display: grid !important;
  place-items: center !important;
}

.home-summary-grid .summary-card .summary-icon svg {
  width: 23px !important;
  height: 23px !important;
}

.home-summary-grid .summary-card .summary-copy {
  display: grid !important;
  gap: 3px !important;
  align-content: center !important;
}

.home-summary-grid .summary-card .summary-copy small {
  font-size: 9px !important;
  line-height: 1.12 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase;
}

.home-summary-grid .summary-card .summary-copy strong {
  font-size: 20px !important;
  line-height: 1.06 !important;
  white-space: nowrap;
}

.home-summary-grid .summary-card[data-summary-kind="expiry"] .summary-copy strong {
  font-size: 16px !important;
  letter-spacing: -.02em !important;
}

.devices-panel {
  border-color: rgba(69,226,255,.27) !important;
  background: radial-gradient(circle at 91% 8%,rgba(69,226,255,.075),transparent 27%),
    linear-gradient(145deg,rgba(15,29,48,.99),rgba(10,20,34,.99)) !important;
}

.devices-panel .panel-head {
  padding: 16px 18px !important;
  background: rgba(7,17,29,.34);
}

.devices-panel .panel-head h2 {
  font-size: 18px !important;
}

.devices-panel .panel-body {
  padding: 14px !important;
}

.benefit-card>div:first-child strong {
  max-width: 700px;
  font-size: 18px !important;
  line-height: 1.2 !important;
}

.ref-code {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--slate);
  align-items: center !important;
  gap: 14px !important;
}

.ref-code span {
  font-size: 12px !important;
  line-height: 1.2 !important;
  color: #c0cfdf !important;
  font-weight: 650;
}

.ref-code button {
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-family: var(--mono);
  cursor: pointer;
  padding: 4px 0;
  min-height: 38px;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: .035em;
}

.ref-link-actions {
  padding-top: 12px;
  border-top: 1px solid var(--slate);
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.ref-link-actions .referral-primary {
  width: 100% !important;
  min-height: 44px !important;
  border-radius: 10px !important;
  font-weight: 650 !important;
}

.notification-dot {
  width: 9px;
  height: 9px;
  display: block;
  align-self: center;
  justify-self: center;
  border-radius: 50%;
  background: #50e4ff;
  box-shadow: 0 0 0 4px rgba(69,226,255,.075),0 0 14px rgba(69,226,255,.30);
}

.notification-read .notification-dot {
  width: 7px;
  height: 7px;
  background: #53677f;
  box-shadow: none;
}

.notification-copy .notification-unread {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0 !important;
  padding: 3px 6px !important;
  border-radius: 999px !important;
  font-size: 8px !important;
}

.notification-copy small {
  grid-column: 1 / -1;
  font-size: 10px !important;
  line-height: 1.42 !important;
  color: #9dadc0 !important;
}

.notification-read .notification-copy .security-label {
  color: #c7d1dd !important;
}

.notification-read .notification-copy small {
  color: #718297 !important;
}

dialog.admin-reauth-modal {
  width: min(500px,calc(100vw - 20px)) !important;
}

dialog.admin-reauth-modal .modal-actions {
  position: static !important;
  bottom: auto !important;
  margin: 16px 0 0 !important;
  padding: 12px 0 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  border-top: 1px solid rgba(82,112,149,.35) !important;
  background: transparent !important;
}

dialog.admin-reauth-modal .modal-actions .btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
}

.session-note {
  margin: 8px 0 11px;
  padding: 9px 10px;
  border: 1px solid rgba(69,226,255,.16);
  border-radius: 9px;
  background: rgba(69,226,255,.035);
  color: #8fa2b7;
  font-size: 9px;
  line-height: 1.45;
}

.session-row .security-copy {
  min-width: 0;
}

.session-row .security-browser {
  color: #ecf6ff !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 650 !important;
  overflow-wrap: anywhere;
}

.session-row .security-copy small {
  margin-top: 4px;
  color: #8094aa !important;
  font-size: 9px !important;
}

@media(max-width:700px) {
  .home-hero{
  grid-template-columns:1fr!important;
  gap:11px!important;
  padding:14px!important;
  }
  .home-hero-copy h1{font-size:23px!important}
  .home-hero-copy .hero-actions{max-width:none}
  .home-hero-visual{
  min-height:0;
  grid-template-columns:56px minmax(0,1fr);
  grid-template-rows:auto auto;
  justify-items:start;
  gap:6px 10px;
  padding:10px 11px;
  }
  .home-hero-orb{
  grid-row:1 / span 2;
  width:52px;
  height:52px;
  }
  .home-hero-orb svg{width:29px;height:29px}
  .home-hero-state{align-self:end;text-align:left;font-size:11px}
  .home-hero-quick{
  grid-column:2;
  align-self:start;
  }
  .home-hero-quick span{padding:5px 4px}
  .home-hero-quick small{font-size:6px}
  .home-hero-quick b{font-size:9px}
}

@media(max-width:520px) {
  .home-summary-grid .summary-card{
  min-height:82px!important;
  grid-template-columns:36px minmax(0,1fr)!important;
  gap:9px!important;
  padding:11px!important;
  }
  .home-summary-grid .summary-card .summary-icon{width:36px!important;height:36px!important}
  .home-summary-grid .summary-card .summary-icon svg{width:21px!important;height:21px!important}
  .home-summary-grid .summary-card .summary-copy strong{font-size:18px!important}
  .home-summary-grid .summary-card[data-summary-kind="expiry"] .summary-copy strong{font-size:14px!important}
  .device-overview{align-items:flex-start;flex-direction:column}
  .device-status{margin-left:46px}
  dialog.admin-reauth-modal .modal-actions{grid-template-columns:1fr!important}
  .notification-row.notification-item,
  .security-row.notification-row.notification-item{grid-template-columns:10px minmax(0,1fr) 12px!important;padding:12px!important;gap:9px!important}
}

@media (min-width:1100px) {
  body.browser-standalone:not(.auth-surface) #screen.browser-home-dashboard > .devices-panel {
    grid-column: 1 / -1 !important;
  }

  body.browser-standalone:not(.auth-surface) #screen.browser-home-dashboard > .devices-panel .device-list, body.browser-standalone:not(.auth-surface) #screen.browser-home-dashboard > .devices-panel .stack {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

.notification-row.notification-item::before, .security-row.notification-row.notification-item::before, .notification-row.notification-item.unread .security-label::before {
  content: none !important;
  display: none !important;
}

.notification-copy {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 4px 8px !important;
  align-items: start;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.notification-copy .security-label, .notification-copy small {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere;
  word-break: normal !important;
}

.notification-copy .security-label {
  grid-column: 1;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 650 !important;
  white-space: normal !important;
}

dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .modal-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .modal-card::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

@media (max-width:520px) {
  .notification-row.notification-item, .security-row.notification-row.notification-item {
    grid-template-columns: 12px minmax(0,1fr) 14px !important;
  }
}

@media(min-width:1100px) {
  body.browser-standalone:not(.auth-surface) .app-content{
  padding-bottom:118px!important;
  }
  body.browser-standalone:not(.auth-surface) .bottom-nav:not(.hidden){
  top:auto!important;
  right:auto!important;
  bottom:16px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(680px,calc(100vw - 48px))!important;
  max-width:680px!important;
  height:68px!important;
  padding:6px!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:6px!important;
  border-radius:16px!important;
  }
  body.browser-standalone:not(.auth-surface) .bottom-nav button{
  min-height:54px!important;
  padding:0 12px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border-radius:11px!important;
  font-size:11px!important;
  }
  body.browser-standalone:not(.auth-surface) .bottom-nav .nav-icon{
  width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
  }
  body.browser-standalone:not(.auth-surface) .bottom-nav button span:last-child{
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  }
}

dialog.ux-notifications-modal .modal-card {
  max-height: min(82dvh,760px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

dialog.ux-notifications-modal .modal-card::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

dialog.ux-notifications-modal .security-list {
  display: grid;
  gap: 8px;
}

dialog.ux-notifications-modal .notification-row {
  width: 100%;
  min-width: 0;
  text-align: left;
  border-radius: 12px !important;
  overflow: hidden;
}

dialog.ux-notifications-modal .notification-row>span:last-child {
  width: 16px;
  display: grid;
  place-items: center;
  color: #71869d;
}

@media(max-width:560px) {
  .ref-link-actions.ux-referral-actions{
  grid-template-columns:1fr!important;
  }
}

.bottom-nav {
  position: fixed;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 4px;
  bottom: var(--babyq-nav-bottom);
  height: var(--babyq-nav-height);
  padding: 7px 10px;
  border-radius: 28px;
  border-color: var(--border-active);
  background: rgba(7,16,29,.86);
  backdrop-filter: blur(24px);
  width: min(calc(100% - 40px),720px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  isolation: isolate;
  border: 1px solid rgba(105,126,153,.58) !important;
  background-clip: padding-box !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.30) !important;
  overflow: hidden !important;
}

.bottom-nav button.active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,rgba(69,226,255,0),rgba(69,226,255,.72),rgba(161,100,255,.72),rgba(161,100,255,0));
  pointer-events: none;
}

.bottom-nav button:focus-visible {
  border-color: rgba(69,226,255,.72) !important;
  border: 0 !important;
  outline: 2px solid rgba(69,226,255,.58) !important;
  outline-offset: -4px !important;
  box-shadow: none !important;
}


.profile-button {
  width: 40px;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--slate);
  background: var(--carbon);
  display: grid;
  place-items: center;
  border-radius: 50% !important;
}

.profile-button .user-avatar, .user-avatar.large, .user-avatar .brand-fallback, .user-avatar .user-photo {
  border-radius: 50% !important;
}

dialog.miniapp-notifications-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #080b11 !important;
}

dialog.miniapp-notifications-fullscreen::backdrop {
  background: #080b11 !important;
  backdrop-filter: none !important;
}

dialog.miniapp-notifications-fullscreen .modal-card {
  width: 100% !important;
  max-width: none !important;
  min-height: 100dvh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: calc(18px + var(--safe-top)) 14px calc(18px + var(--safe-bottom)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #080b11 !important;
  box-shadow: none !important;
  overflow: auto !important;
  overscroll-behavior: contain;
}

dialog.miniapp-notifications-fullscreen .modal-head {
  position: sticky;
  top: calc(-18px - var(--safe-top));
  z-index: 3;
  margin: calc(-18px - var(--safe-top)) -14px 14px !important;
  padding: calc(18px + var(--safe-top)) 14px 12px !important;
  background: rgba(8,11,17,.98) !important;
  border-bottom: 1px solid rgba(71,87,107,.45);
}

@supports not (height:100dvh) {
  dialog.miniapp-notifications-fullscreen, dialog.miniapp-notifications-fullscreen .modal-card {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
  }
}

dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) {
  width: min(620px,calc(100vw - 20px)) !important;
  max-width: calc(100vw - 20px) !important;
  position: fixed !important;
  top: 50% !important;
  bottom: auto !important;
  left: 50% !important;
  right: auto !important;
  margin: 0 !important;
  transform: translate(-50%,-50%) !important;
  overflow-x: hidden !important;
}

dialog.modal.support-fullscreen, dialog.modal.miniapp-notifications-fullscreen {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

html.terms-consent-open,body.terms-consent-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.terms-consent-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: max(18px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% -10%,rgba(50,88,164,.24),transparent 34%),rgba(4,9,20,.985);
  color: #f5f7fb;
  font-family: inherit;
}

.terms-consent-card {
  width: min(100%,720px);
  max-height: min(94dvh,900px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  background: linear-gradient(180deg,rgba(19,27,43,.98),rgba(10,15,25,.99));
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.terms-consent-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 750;
}

.terms-consent-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.terms-consent-head {
  display: grid;
  gap: 7px;
}

.terms-consent-kicker {
  color: #77d89a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.terms-consent-head h1 {
  margin: 0;
  font-size: clamp(26px,7vw,36px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.terms-consent-head p {
  margin: 0;
  color: rgba(232,238,248,.76);
  font-size: 14px;
  line-height: 1.5;
}

.terms-consent-document {
  min-height: 220px;
  flex: 1 1 430px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
}

.terms-consent-pdf {
  display: block;
  width: 100%;
  min-height: 220px;
  flex: 1 1 auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  background: #fff;
}

.terms-consent-pdf-fallback {
  height: 100%;
  min-height: 220px;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(180deg,#f8fafc,#eef3f8);
  color: #243044;
}

.terms-consent-pdf-fallback p {
  margin: 0;
  color: #243044;
  font-weight: 650;
}

.terms-consent-pdf-fallback a {
  color: #0f7a40;
  font-weight: 800;
  text-decoration: none;
}

.terms-consent-open-pdf {
  align-self: flex-start;
  padding: 3px 1px;
  color: #8de5ad;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.terms-consent-open-pdf:focus-visible,.terms-consent-pdf-fallback a:focus-visible {
  outline: 2px solid #77d89a;
  outline-offset: 3px;
  border-radius: 4px;
}

.terms-consent-unavailable {
  padding: 16px;
  border: 1px solid rgba(255,113,113,.3);
  border-radius: 15px;
  background: rgba(255,91,91,.09);
  color: #ffb9b9;
  font-size: 14px;
  line-height: 1.5;
}

.terms-consent-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  cursor: pointer;
  color: rgba(245,247,251,.9);
  font-size: 14px;
  line-height: 1.45;
}

.terms-consent-check.disabled {
  cursor: not-allowed;
  opacity: .55;
}

.terms-consent-error {
  padding: 10px 12px;
  border: 1px solid rgba(255,113,113,.28);
  border-radius: 12px;
  background: rgba(255,91,91,.09);
  color: #ffb1b1;
  font-size: 13px;
  line-height: 1.4;
}

.terms-consent-error.hidden {
  display: none;
}

.terms-consent-accept {
  min-height: 52px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 15px;
  background: #3ddc84;
  color: #06110b;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease,opacity .15s ease,filter .15s ease;
}

.terms-consent-accept:active:not(:disabled) {
  transform: scale(.985);
}

.terms-consent-accept:disabled {
  cursor: not-allowed;
  opacity: .42;
  filter: saturate(.45);
}

.terms-consent-accept.loading {
  pointer-events: none;
  opacity: .72;
}

@media(max-width:520px) {
  .terms-consent-gate{align-items:stretch;padding-left:10px;padding-right:10px}.terms-consent-card{max-height:calc(100dvh - max(20px,env(safe-area-inset-top)) - max(20px,env(safe-area-inset-bottom)));margin:auto 0;padding:16px;border-radius:21px;gap:12px}.terms-consent-document{min-height:180px;flex-basis:42dvh}.terms-consent-pdf,.terms-consent-pdf-fallback{min-height:180px}.terms-consent-head h1{font-size:28px}
}

:root {
  --safe-top: env(safe-area-inset-top,0px);
  --babyq-layout-viewport-height: 100vh;
  --babyq-viewport-height: var(--tg-viewport-stable-height,var(--babyq-layout-viewport-height));
  --babyq-telegram-safe-bottom: 0px;
  --babyq-telegram-content-safe-bottom: 0px;
  --safe-bottom: max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px),var(--babyq-telegram-safe-bottom));
  --babyq-content-safe-bottom: max(var(--tg-content-safe-area-inset-bottom,0px),var(--babyq-telegram-content-safe-bottom));
  --babyq-effective-safe-bottom: max(var(--safe-bottom),var(--babyq-content-safe-bottom));
  --babyq-nav-bottom: calc(var(--babyq-nav-gap) + var(--babyq-effective-safe-bottom) + var(--babyq-viewport-compensation));
  --babyq-nav-reserve: calc(var(--babyq-nav-height) + var(--babyq-nav-bottom) + 20px);
  --void: #080b11;
  --carbon: #11151d;
  --graphite: #181e28;
  --slate: #283240;
  --line: #303b4a;
  --bone: #edf3f8;
  --silver: #b7c2cf;
  --steel: #7d8a9a;
  --fog: #566170;
  --magenta: #e04bcf;
  --amber: #ffc568;
  --danger: #ff6d7f;
  --deep: #0c2730;
  --font: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mono: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  --content-max: 920px;
  --content-gutter: max(14px,calc((100vw - var(--content-max))/2 + 14px));
  --bg-primary: #040914;
  --bg-secondary: #07101d;
  --surface-1: #091426;
  --surface-2: #0d1b30;
  --surface-3: #11233c;
  --text-primary: #f6f9ff;
  --text-secondary: #aab8cd;
  --text-muted: #718198;
  --cyan: #1fd7ff;
  --blue: #168cff;
  --violet: #7b5cff;
  --purple: #a64dff;
  --green: #20e59a;
  --border-soft: rgba(111,164,255,.16);
  --border-active: rgba(56,194,255,.38);
  --gradient: linear-gradient(135deg,#08bfff 0%,#247cff 48%,#8c4fff 100%);
  --radius-control: 14px;
  --radius-card: 20px;
  --radius-hero: 24px;
  --shadow-surface: 0 18px 44px rgba(0,3,12,.36);
  --glow-cyan: 0 0 28px rgba(31,215,255,.18);
  --glow-violet: 0 0 32px rgba(123,92,255,.18);
  --babyq-nav-height: 76px;
  --babyq-nav-gap: 12px;
  --babyq-viewport-compensation: 0px !important;
  --bq-motion-fast: 120ms;
  --bq-motion-base: 190ms;
  --bq-motion-slow: 320ms;
  --bq-motion-ease: cubic-bezier(.2,.8,.2,1);
  --bq-motion-emphasized: cubic-bezier(.16,1,.3,1);
  --bq-focus: rgba(69,226,255,.82);
  --bq-focus-soft: rgba(69,226,255,.14);
  --bq-hover-edge: rgba(91,154,255,.34);
  --bq-hover-glow: rgba(69,226,255,.10);
  --bq-press-glow: rgba(165,92,255,.13);
}

button, .btn, .text-action, .order-pay, .order-cancel, .ref-code button, .refresh-button, .profile-button, .brand-home-button, .footer-brand-button, .bottom-nav button, a {
  -webkit-tap-highlight-color: transparent;
}

button, .btn, .text-action, .order-pay, .order-cancel, .ref-code button, .refresh-button, .profile-button, .brand-home-button, .footer-brand-button, .bottom-nav button {
  position: relative;
  transition: transform var(--bq-motion-fast) var(--bq-motion-ease),
    border-color var(--bq-motion-base) ease,
    background-color var(--bq-motion-base) ease,
    color var(--bq-motion-base) ease,
    box-shadow var(--bq-motion-base) ease,
    filter var(--bq-motion-base) ease,
    opacity var(--bq-motion-base) ease;
}

button:not(:disabled):not([data-tab]):active, .btn:not(:disabled):active, .text-action:not(:disabled):active, .order-pay:not(:disabled):active, .order-cancel:not(:disabled):active, .ref-code button:not(:disabled):active, .refresh-button:not(:disabled):active, .profile-button:not(:disabled):active, .brand-home-button:not(:disabled):active, .footer-brand-button:not(:disabled):active {
  transform: scale(.975);
  filter: brightness(.97);
}

.btn.primary, .terms-consent-accept {
  overflow: hidden;
  isolation: isolate;
}

.btn.primary::before, .terms-consent-accept::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -80%;
  bottom: -80%;
  left: -42%;
  width: 30%;
  pointer-events: none;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.20),transparent);
  transform: translateX(-220%) rotate(14deg);
  transition: transform 520ms var(--bq-motion-emphasized);
}

.btn.primary:not(:disabled):active::before, .terms-consent-accept:not(:disabled):active::before {
  transform: translateX(520%) rotate(14deg);
}

button:disabled, .btn:disabled, .terms-consent-accept:disabled {
  transition-duration: var(--bq-motion-fast);
}

:where(button,.btn,.text-action,.order-pay,.order-cancel,.ref-code button,.refresh-button,.profile-button,.brand-home-button,.footer-brand-button,.bottom-nav button,a,.input,.select,.textarea,.file-input):focus-visible {
  outline: 2px solid var(--bq-focus) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px var(--bq-focus-soft) !important;
}

.input, .select, .textarea, .file-input {
  transition: border-color var(--bq-motion-base) ease,
    box-shadow var(--bq-motion-base) ease,
    background-color var(--bq-motion-base) ease;
}

.input:focus, .select:focus, .textarea:focus, .file-input:focus {
  border-color: rgba(69,226,255,.52) !important;
  box-shadow: 0 0 0 3px rgba(69,226,255,.08) !important;
}

.panel, .hero, .device-card, .plan-card, .benefit-card, .summary-card, .ticket-card, .clickable-card, .home-hero-polished, .joined-referral, .order-row, .history-row, .security-row, .notification-row, .profile-popover, .terms-consent-card, .auth-shell, .auth-card, .post-auth-card, .success-block, .inline-note, .empty {
  transition: transform var(--bq-motion-base) var(--bq-motion-ease),
    border-color var(--bq-motion-base) ease,
    box-shadow var(--bq-motion-base) ease,
    background-color var(--bq-motion-base) ease,
    opacity var(--bq-motion-base) ease;
}

@keyframes bq-surface-enter {
  from{opacity:0;transform:translate3d(0,8px,0) scale(.995)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1)}
}

dialog.modal[open] .modal-card {
  animation: bq-modal-enter 220ms var(--bq-motion-emphasized) both;
  transform-origin: 50% 18%;
}

@keyframes bq-modal-enter {
  from{opacity:0;transform:scale(.975) translate3d(0,5px,0)}
  to{opacity:1;transform:scale(1) translate3d(0,0,0)}
}

.profile-popover.bq-popover-enter:not(.hidden) {
  animation: bq-popover-enter 180ms var(--bq-motion-emphasized) both;
  transform-origin: 90% 0;
}

@keyframes bq-popover-enter {
  from{opacity:0;transform:translate3d(0,-5px,0) scale(.975)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1)}
}

.bottom-nav button.active {
  border-color: rgba(69,226,255,.34) !important;
  border: 0 !important;
  box-shadow: none !important;
  background: linear-gradient(180deg,rgba(69,226,255,.105),rgba(69,226,255,.035)) !important;
  color: var(--cyan) !important;
}

.bottom-nav button.active .nav-icon {
  filter: drop-shadow(0 0 7px rgba(69,226,255,.22));
}

.bottom-nav button.active span {
  text-shadow: 0 0 12px rgba(69,226,255,.20);
}

.app-brand img, .footer-brand-button img, .user-avatar, .notification-count {
  transition: transform var(--bq-motion-base) var(--bq-motion-emphasized),
    filter var(--bq-motion-base) ease,
    box-shadow var(--bq-motion-base) ease,
    opacity var(--bq-motion-base) ease;
}

.app-topbar .app-brand {
  min-width: 0;
  flex: 1 1 auto;
}

.app-topbar .app-brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-topbar .topbar-actions {
  flex: 0 0 auto;
}

@media (max-width:340px) {
  #screen, .device-list, .device-card, .device-platform-layout, .device-platform-copy {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .section-heading {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    align-items: start !important;
    gap: 8px !important;
  }

  .section-heading>div {
    min-width: 0 !important;
  }

  .section-heading .section-note {
    overflow-wrap: anywhere;
  }

  .device-platform-layout {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 9px !important;
  }

  .device-platform-artwork {
    min-height: 86px !important;
  }

  .device-platform-art {
    width: 62px !important;
    height: 78px !important;
  }

  .device-platform-copy>.btn.full {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

.notification-count:not(.hidden) {
  animation: bq-notification-pop 260ms var(--bq-motion-emphasized) both;
}

@keyframes bq-notification-pop {
  0%{transform:scale(.65);opacity:0}
  70%{transform:scale(1.08);opacity:1}
  100%{transform:scale(1);opacity:1}
}

.badge.good {
  border-color: rgba(56,217,149,.28);
  color: #7be7b7;
  background: rgba(56,217,149,.035);
  box-shadow: 0 0 0 1px rgba(49,217,144,.10) inset,0 0 14px rgba(49,217,144,.05);
}

.field.invalid .input, .field.invalid .select, .field.invalid .textarea {
  animation: bq-invalid-nudge 180ms ease-out 1;
}

@keyframes bq-invalid-nudge {
  0%,100%{transform:translateX(0)}
  35%{transform:translateX(-3px)}
  70%{transform:translateX(3px)}
}

.loader {
  width: 32px;
  height: 32px;
  border: 2px solid var(--slate);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin .75s linear infinite;
  filter: drop-shadow(0 0 8px rgba(69,226,255,.22));
}

.bq-ripple-host {
  overflow: hidden !important;
  isolation: isolate;
}

.bq-ripple {
  position: absolute;
  z-index: 20;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle,rgba(255,255,255,.28) 0,rgba(119,205,255,.16) 46%,rgba(119,205,255,0) 72%);
  transform: scale(0);
  opacity: .95;
  animation: bq-ripple 460ms ease-out forwards;
}

@keyframes bq-ripple {
  to{transform:scale(var(--bq-ripple-scale,12));opacity:0}
}

@media (hover:hover) and (pointer:fine) {
  .btn:not(:disabled):hover, .order-pay:not(:disabled):hover, .ref-code button:not(:disabled):hover {
    transform: translate3d(0,-1px,0);
    box-shadow: 0 7px 20px rgba(0,0,0,.18),0 0 0 1px var(--bq-hover-edge) inset;
    filter: brightness(1.045);
  }

  .btn.primary:not(:disabled):hover::before, .terms-consent-accept:not(:disabled):hover::before {
    transform: translateX(520%) rotate(14deg);
  }

  .btn.secondary:not(:disabled):hover, .refresh-button:not(:disabled):hover, .profile-button:not(:disabled):hover, .brand-home-button:not(:disabled):hover, .footer-brand-button:not(:disabled):hover {
    border-color: rgba(69,226,255,.34) !important;
    box-shadow: 0 0 0 1px rgba(69,226,255,.07) inset,0 7px 22px rgba(0,0,0,.14);
  }

  .bottom-nav button:not(:disabled):not(.active):hover {
    background: rgba(69,226,255,.045);
  }

  .bottom-nav button:not(:disabled):hover .nav-icon {
    filter: drop-shadow(0 0 7px rgba(69,226,255,.18));
  }

  .device-card:hover, .plan-card:hover, .benefit-card:hover, .summary-card:hover, .ticket-card:hover, .clickable-card:hover {
    transform: translate3d(0,-2px,0);
    border-color: var(--bq-hover-edge) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.16),0 0 0 1px rgba(69,226,255,.025) inset;
  }

  .panel:hover {
    border-color: rgba(91,154,255,.24) !important;
  }

  .order-row:hover, .history-row:hover, .security-row:hover, .notification-row:hover {
    background-color: rgba(69,226,255,.025) !important;
    border-color: rgba(69,226,255,.12) !important;
  }

  .app-brand:hover img, .footer-brand-button:hover img {
    transform: scale(1.035);
    filter: drop-shadow(0 0 8px rgba(69,226,255,.16));
  }

  .profile-button:hover .user-avatar {
    transform: scale(1.045);
    box-shadow: 0 0 0 2px rgba(69,226,255,.18),0 0 14px rgba(69,226,255,.09);
  }

  .input:hover, .select:hover, .textarea:hover, .file-input:hover {
    border-color: rgba(137,152,170,.50);
  }
}

@media (hover:none), (pointer:coarse) {
  button:not(:disabled):active, .btn:not(:disabled):active, .bottom-nav button:not(:disabled):active {
    box-shadow: 0 0 0 1px rgba(69,226,255,.11) inset,0 0 18px var(--bq-press-glow);
  }
}

.terms-consent-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #3ddc84;
  transition: transform var(--bq-motion-fast) var(--bq-motion-ease),filter var(--bq-motion-base) ease;
}

.terms-consent-check input:checked {
  transform: scale(1.05);
  filter: drop-shadow(0 0 5px rgba(49,217,144,.22));
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  #screen > .bq-motion-enter, dialog.modal[open] .modal-card, .profile-popover.bq-popover-enter:not(.hidden) {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .bq-ripple {
    display: none !important;
  }
}

@keyframes bq-surface-enter {
  from{transform:translate3d(0,6px,0) scale(.997)}
  to{transform:translate3d(0,0,0) scale(1)}
}

html.browser-standalone, body.browser-standalone {
  min-height: 100%;
  height: auto !important;
  scrollbar-gutter: auto;
}

body.browser-standalone:not(.auth-surface) .app-topbar .app-brand {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: calc(100% - 174px) !important;
}

body.browser-standalone:not(.auth-surface) .app-topbar .topbar-actions:not(.hidden) {
  min-width: max-content;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

@media(min-width:700px) {
  html.browser-standalone,
  body.browser-standalone{
  scrollbar-gutter:stable;
  }
  
  body.browser-standalone:not(.auth-surface) .app-topbar{
  top:10px!important;
  width:min(calc(100% - 32px),1120px)!important;
  margin-top:10px!important;
  }
}

@media(min-width:1100px) {
  body.browser-standalone:not(.auth-surface) .app-topbar{
  width:min(calc(100% - 160px),1360px)!important;
  max-width:1360px!important;
  min-height:68px!important;
  padding:9px 18px!important;
  }
}

#screen.nav-pending {
  position: relative;
  pointer-events: none !important;
  cursor: progress;
}

#screen.nav-pending::after {
  content: "";
  position: absolute;
  z-index: 8;
  top: -6px;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg,transparent,rgba(69,226,255,.82),rgba(122,83,255,.78),transparent);
  transform: scaleX(.28);
  transform-origin: left center;
  animation: nav-progress 920ms ease-in-out .28s infinite alternate;
}

@keyframes nav-progress {
  from{opacity:.34;transform:translateX(-12%) scaleX(.28)}
  to{opacity:.82;transform:translateX(12%) scaleX(.88)}
}

#screen > .bq-motion-enter {
  animation-delay: var(--bq-enter-delay,0ms);
  animation: none !important;
  transform: none !important;
}

.home-hero-visual {
  position: relative;
  z-index: 1;
  min-height: 178px;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(85,140,196,.28);
  border-radius: 14px;
  background: linear-gradient(145deg,rgba(7,20,36,.60),rgba(18,25,55,.72));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  grid-template-rows: 1fr !important;
  align-content: center !important;
}

@media(max-width:700px) {
  .home-hero .home-hero-visual{
  display:none!important;
  }
}

dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .modal-actions {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  margin: 18px 0 0 !important;
  padding: 14px 0 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 10px !important;
  border-top: 1px solid rgba(82,112,149,.30) !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .modal-actions .btn {
  min-width: 0 !important;
  min-height: 46px !important;
  margin: 0 !important;
  flex: 1 1 0 !important;
}

dialog.ux-notifications-modal .security-list, dialog.miniapp-notifications-fullscreen .security-list {
  gap: 9px !important;
}

.notification-row.notification-item, .security-row.notification-row.notification-item {
  display: grid !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 14px minmax(0,1fr) 18px !important;
  min-height: 72px !important;
  padding: 11px 12px !important;
  gap: 10px !important;
  border-color: rgba(74,116,156,.38) !important;
  background: linear-gradient(145deg,rgba(16,34,53,.97),rgba(12,24,41,.98)) !important;
}

.notification-row.notification-item.unread, .security-row.notification-row.notification-item.unread {
  border-color: rgba(69,226,255,.48) !important;
  background: linear-gradient(145deg,rgba(18,47,69,.98),rgba(17,29,52,.99)) !important;
}

.notification-item.notification-read {
  border-color: rgba(72,96,126,.28) !important;
  background: linear-gradient(145deg,rgba(14,27,44,.91),rgba(11,21,35,.94)) !important;
}

.notification-copy .notification-preview {
  display: -webkit-box !important;
  grid-column: 1 / -1 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  color: #91a4b9 !important;
  line-height: 1.42 !important;
  overflow-wrap: anywhere;
  word-break: normal !important;
}

.notification-copy .notification-date {
  grid-column: 1 / -1 !important;
  color: #667b92 !important;
  font-size: 9px !important;
}

dialog.closed-support-modal {
  width: min(620px,calc(100vw - 24px)) !important;
  max-height: min(88dvh,800px) !important;
}

dialog.closed-support-modal .modal-card {
  max-height: min(88dvh,800px) !important;
  overflow: auto !important;
}

dialog.closed-support-modal .support-thread.user-thread {
  min-height: 0 !important;
  max-height: min(52dvh,480px) !important;
  overflow: auto !important;
  display: grid !important;
  grid-auto-rows: max-content;
  align-content: start !important;
  gap: 9px !important;
  padding: 2px 1px 8px !important;
  overscroll-behavior: contain;
}

dialog.closed-support-modal .user-thread .message {
  width: max-content;
  max-width: min(84%,520px) !important;
  min-width: 90px;
  padding: 10px 12px !important;
  border: 1px solid rgba(83,111,146,.42) !important;
  border-radius: 13px !important;
  background: #0a1422 !important;
  color: #eff5fb;
}

dialog.closed-support-modal .user-thread .message.mine {
  justify-self: end !important;
  border-color: rgba(69,226,255,.30) !important;
  background: linear-gradient(145deg,rgba(16,53,75,.90),rgba(14,35,58,.96)) !important;
}

dialog.closed-support-modal .user-thread .message.support {
  justify-self: start !important;
}

.support-thread.user-thread .message > div:first-child {
  min-width: 0;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.support-closed-note {
  margin: 10px 0 0 !important;
}

@media(max-width:320px) {
  dialog.modal:not(.support-fullscreen):not(.miniapp-notifications-fullscreen) .modal-actions{
  flex-direction:column!important;
  }
}

.bottom-nav button, .bottom-nav button:active, .bottom-nav button.active, .bottom-nav button:not(:disabled):hover {
  transform: none !important;
}

.bottom-nav button .nav-icon, .bottom-nav button:active .nav-icon, .bottom-nav button.active .nav-icon, .bottom-nav button:not(:disabled):hover .nav-icon {
  transform: none !important;
}

.bottom-nav button {
  border-radius: 5px;
  background: transparent;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 4px 2px;
  font-size: 13px;
  gap: 5px;
  color: var(--text-secondary);
  font-weight: 600;
  margin: 0 !important;
  position: relative !important;
  min-width: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transition: background-color var(--bq-motion-base,190ms) ease,
    color var(--bq-motion-base,190ms) ease,
    box-shadow var(--bq-motion-base,190ms) ease,
    filter var(--bq-motion-base,190ms) ease,
    opacity var(--bq-motion-base,190ms) ease !important;
}

.bottom-nav button .nav-icon {
  transition: filter var(--bq-motion-base,190ms) ease,
    color var(--bq-motion-base,190ms) ease,
    opacity var(--bq-motion-base,190ms) ease !important;
  transform-origin: center !important;
}

.auth-shell > h1 {
  max-width: 620px;
  margin: 8px auto 4px !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.auth-shell .form-grid {
  gap: 18px !important;
}

.auth-shell .field {
  gap: 9px !important;
}

.auth-shell .auth-label {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 2px;
  padding: 5px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(69,226,255,.18);
  border-radius: 999px;
  background: linear-gradient(135deg,rgba(69,226,255,.07),rgba(94,121,255,.045));
  color: #dceaf8 !important;
  font-size: 14px !important;
  line-height: 1.2;
  font-weight: 750 !important;
  letter-spacing: .01em;
}

.auth-shell .auth-label::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(69,226,255,.48);
}

.babyq-id-control {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(79,105,137,.68);
  border-radius: 12px;
  background: #080d17;
  transition: border-color 180ms ease,box-shadow 180ms ease,background-color 180ms ease;
}

.babyq-id-control:focus-within {
  border-color: rgba(69,226,255,.62);
  box-shadow: 0 0 0 3px rgba(69,226,255,.08),0 0 24px rgba(69,226,255,.06);
  background: #09111d;
}

.babyq-id-prefix {
  height: 100%;
  padding: 0 3px 0 16px;
  display: flex;
  align-items: center;
  color: #61e7ff;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .035em;
  text-shadow: 0 0 12px rgba(69,226,255,.16);
  user-select: none;
}

.babyq-id-suffix.input {
  min-width: 0;
  height: 52px !important;
  flex: 1 1 auto;
  padding: 0 14px 0 1px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f2f7fb !important;
  font-family: var(--mono);
  font-size: 18px !important;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.babyq-id-suffix::placeholder {
  color: #68788b;
  font-weight: 500;
  letter-spacing: .015em;
  text-transform: none;
}

.babyq-id-canonical {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.auth-field-hint {
  max-width: 440px;
  margin: 0 auto;
  color: #708398;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.auth-shell .field.invalid .babyq-id-control {
  border-color: rgba(255,109,127,.72) !important;
  box-shadow: 0 0 0 3px rgba(255,109,127,.08) !important;
}

.auth-shell .field-error.auth-field-error {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.form-alert {
  position: relative !important;
  top: auto !important;
  z-index: 4;
  width: fit-content !important;
  max-width: min(100%,560px) !important;
  margin: 0 auto 14px !important;
  padding: 10px 16px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,109,127,.42) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg,rgba(65,18,29,.96),rgba(39,12,20,.98)) !important;
  color: #ffd0d6 !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  font-weight: 600;
  text-align: center !important;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 24px rgba(36,7,13,.18);
}

.auth-shell > .auth-feedback {
  margin: 2px auto 4px !important;
}

.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  color: var(--bone);
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
  bottom: calc(82px + var(--babyq-effective-safe-bottom) + var(--babyq-viewport-compensation));
  border-color: var(--border-active);
  background: var(--surface-2);
  font-size: 15px;
  width: fit-content !important;
  max-width: min(calc(100vw - 28px),460px) !important;
  min-width: 0 !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  text-align: center !important;
  line-height: 1.4 !important;
  overflow-wrap: anywhere;
  backdrop-filter: blur(18px);
}

.toast[data-feedback-kind="success"] {
  border-color: rgba(56,217,149,.44) !important;
  background: linear-gradient(135deg,rgba(13,54,42,.96),rgba(9,36,34,.98)) !important;
  color: #baf3d9 !important;
  box-shadow: 0 12px 34px rgba(4,30,24,.30),0 0 22px rgba(56,217,149,.07) !important;
}

.toast[data-feedback-kind="error"] {
  border-color: rgba(255,109,127,.44) !important;
  background: linear-gradient(135deg,rgba(65,18,29,.96),rgba(39,12,20,.98)) !important;
  color: #ffd0d6 !important;
  box-shadow: 0 12px 34px rgba(36,7,13,.28) !important;
}

.toast[data-feedback-kind="info"], .toast:not([data-feedback-kind]) {
  border-color: rgba(69,226,255,.32) !important;
  background: linear-gradient(135deg,rgba(11,39,54,.97),rgba(13,25,48,.98)) !important;
  color: #d9f8ff !important;
  box-shadow: 0 12px 34px rgba(3,23,38,.30),0 0 22px rgba(69,226,255,.06) !important;
}

dialog.account-creation-modal .account-identity {
  position: relative;
  gap: 7px !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(69,226,255,.42) !important;
  border-radius: 14px !important;
  background: radial-gradient(circle at 12% 0%,rgba(69,226,255,.10),transparent 38%),
    linear-gradient(135deg,rgba(15,45,64,.82),rgba(17,29,53,.88)) !important;
  box-shadow: 0 0 0 1px rgba(69,226,255,.035) inset,0 12px 30px rgba(0,0,0,.12);
  text-align: center;
}

dialog.account-creation-modal .account-identity small {
  color: #91eafa !important;
  font-size: 12px !important;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}

dialog.account-creation-modal .account-identity strong {
  color: #f5fbff !important;
  font-size: 22px !important;
  line-height: 1.25;
  font-weight: 800 !important;
  letter-spacing: .075em !important;
  text-shadow: 0 0 16px rgba(69,226,255,.10);
}

dialog.account-creation-modal .account-qr-help {
  margin: 16px 0 4px !important;
  padding: 15px 16px !important;
  border: 1px solid rgba(69,226,255,.25) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg,rgba(13,43,61,.72),rgba(13,26,45,.88)) !important;
  color: #cbd8e6 !important;
  text-align: left !important;
}

dialog.account-creation-modal .account-qr-help > strong {
  display: block;
  margin-bottom: 9px;
  color: #f1f7fb !important;
  font-size: 15px !important;
  line-height: 1.3;
}

dialog.account-creation-modal .account-qr-help ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

dialog.account-creation-modal .account-qr-help li {
  padding-left: 2px;
  font-size: 12px;
  line-height: 1.52;
}

dialog.account-creation-modal .account-qr-help b {
  color: #eff7ff;
  font-weight: 700;
}

dialog.account-creation-modal .account-qr-help small {
  display: block;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(86,116,148,.28);
  color: #8195aa !important;
  font-size: 10px !important;
  line-height: 1.48;
}

dialog.account-creation-modal .totp-qr {
  width: min(76vw,320px) !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 16px auto !important;
  display: block !important;
  border-radius: 14px !important;
}

dialog.account-creation-modal .account-code-field > label {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 2px;
  padding: 5px 11px;
  border: 1px solid rgba(69,226,255,.16);
  border-radius: 999px;
  background: rgba(69,226,255,.045);
  color: #dceaf8 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  text-align: center;
}

@media(max-width:560px) {
  .auth-shell > h1{
  max-width:320px;
  font-size:31px!important;
  }
  .auth-shell .auth-label{
  font-size:13px!important;
  }
  .babyq-id-prefix,
  .babyq-id-suffix.input{
  font-size:16px!important;
  }
  dialog.account-creation-modal .account-identity strong{
  font-size:20px!important;
  }
}

.badge.trial {
  border-color: rgba(255,199,84,.4) !important;
  background: rgba(255,199,84,.08) !important;
  color: #ffd98e !important;
  box-shadow: 0 0 18px rgba(255,190,72,.08);
}

.trial-home-cta, .trial-onboarding-card, .trial-payment-spotlight {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,196,88,.34) !important;
  background: radial-gradient(circle at 88% 8%,rgba(255,190,72,.17),transparent 30%),
    linear-gradient(145deg,rgba(48,31,6,.92),rgba(16,27,47,.98) 54%,rgba(19,31,55,.97)) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.trial-home-cta::after, .trial-onboarding-card::after, .trial-payment-spotlight::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -76px;
  bottom: -94px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(69,226,255,.12),transparent 70%);
  pointer-events: none;
}

.trial-home-cta,
#screen > .trial-home-cta {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  grid-column: 1 / -1 !important;
  justify-self: stretch !important;
  box-sizing: border-box;
  padding: 15px 16px;
  border-radius: 15px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
}

.trial-home-cta>div {
  min-width: 0;
  display: grid;
  gap: 6px;
  position: relative;
  z-index: 1;
}

/* Badges are intrinsic labels, not stretched grid rows. */
.trial-home-cta .badge.trial {
  justify-self: start;
  width: max-content;
  max-width: 100%;
}

.trial-home-cta strong {
  color: #f6f8fc;
  font-size: 17px;
  line-height: 1.25;
}

.trial-home-cta p {
  margin: 0;
  color: #b8c5d6;
  font-size: 11px;
  line-height: 1.5;
}

.trial-home-cta .btn {
  position: relative;
  z-index: 1;
  min-width: 108px;
}

.trial-onboarding-card {
  border-radius: 15px;
  padding: 15px;
  display: grid;
  gap: 10px;
}

.trial-onboarding-title {
  display: grid;
  justify-items: start;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.trial-onboarding-title strong {
  color: #f6f8fc;
  font-size: 20px;
  line-height: 1.2;
}

.trial-onboarding-card>p {
  margin: 0;
  color: #b8c6d8;
  font-size: 12px;
  line-height: 1.58;
  position: relative;
  z-index: 1;
}

.trial-onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.trial-onboarding-steps span {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(101,124,155,.3);
  border-radius: 11px;
  background: rgba(5,13,24,.42);
  color: #d6e0ec;
  font-size: 10px;
  line-height: 1.35;
  display: grid;
  gap: 6px;
}

.trial-onboarding-steps b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,199,84,.12);
  color: #ffd98e;
  font-size: 11px;
}

.trial-onboarding-actions {
  margin-top: 14px;
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr) minmax(0,1fr);
  gap: 8px !important;
}

.trial-onboarding-alert {
  margin-left: auto !important;
  margin-right: auto !important;
}

.trial-payment-spotlight {
  border-radius: 16px !important;
}

.trial-payment-spotlight .panel-head {
  border-bottom-color: rgba(255,196,88,.18) !important;
}

.trial-payment-spotlight .panel-head h2 {
  color: #fff4d4;
}

.trial-payment-spotlight .panel-head h2::before {
  content: "БЕСПЛАТНО · ";
  color: #ffd98e;
  font-family: var(--mono);
  font-size: .5em;
  letter-spacing: .08em;
  vertical-align: middle;
}


.trial-device-card {
  border-color: rgba(255,196,88,.32) !important;
  box-shadow: 0 0 0 1px rgba(255,196,88,.03),0 12px 30px rgba(0,0,0,.14) !important;
}

@media(max-width:620px) {
  .trial-home-cta{
  grid-template-columns:1fr;
  }
  .trial-home-cta .btn{
  width:100%;
  }
  .trial-onboarding-steps{
  grid-template-columns:1fr;
  }
  .trial-onboarding-steps span{
  grid-template-columns:23px minmax(0,1fr);
  align-items:center;
  }
  .trial-onboarding-actions{
  grid-template-columns:1fr!important;
  }
}

body.browser-standalone:not(.auth-surface) .app-topbar {
  position: sticky !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 30;
  flex: 0 0 auto;
  top: 8px !important;
  margin: 8px auto 0 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  border: 1px solid rgba(80,109,146,.42) !important;
  border-radius: 16px !important;
  background: rgba(8,15,26,.94) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.22) !important;
  backdrop-filter: blur(18px) !important;
  width: calc(100% - 24px) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media(min-width:700px) {
  body.browser-standalone:not(.auth-surface) .app-topbar{
  width:min(calc(100% - 48px),1072px)!important;
  max-width:1072px!important;
  }
}

@media(min-width:1100px) {
  body.browser-standalone:not(.auth-surface) .app-topbar{
  width:min(calc(100% - 224px),1296px)!important;
  max-width:1296px!important;
  min-height:64px!important;
  padding:8px 18px!important;
  }
  
  body.browser-standalone:not(.auth-surface) .profile-popover{
  right:max(112px,calc((100vw - 1296px)/2 + 12px))!important;
  }
}

.device-platform-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 94px minmax(0,1fr) !important;
  align-items: center !important;
}

.device-platform-artwork {
  display: grid;
  place-items: center;
  border: 1px solid rgba(72,119,178,.45);
  border-radius: 12px;
  background: linear-gradient(145deg,rgba(8,20,35,.95),rgba(12,28,47,.95));
  overflow: hidden;
  width: 94px !important;
  height: 94px !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
  align-self: center !important;
  padding: 7px !important;
}

.device-platform-art {
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.34));
  width: 100% !important;
  height: 100% !important;
  max-width: 80px !important;
  max-height: 80px !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media(max-width:460px) {
  .device-platform-layout{
  grid-template-columns:78px minmax(0,1fr)!important;
  gap:10px!important;
  }
  
  .device-platform-artwork{
  width:78px!important;
  height:78px!important;
  min-height:0!important;
  padding:5px!important;
  }
  
  .device-platform-art{
  max-width:68px!important;
  max-height:68px!important;
  }
}





/* BabyQ INCY transport chips. Only availability is displayed here; selected
   transport comes from the INCY client and must not be guessed from 3X-UI. */
.protocol-strip {display:flex;flex-wrap:wrap;justify-content:center;gap:8px;align-items:stretch;width:100%;margin:12px 0;}
.protocol-chip {display:inline-flex;flex:1 1 110px;min-width:0;align-items:center;justify-content:center;gap:6px;padding:7px 11px;
  border:1px solid rgba(137,165,207,.27);border-radius:12px;
  background:rgba(29,44,67,.45);color:inherit;font-weight:650;font-size:12px;
  line-height:1.35;white-space:nowrap;}
.protocol-chip.chip-awg {border-color:rgba(83,196,153,.45);background:rgba(83,196,153,.095);}
.protocol-chip.chip-vless {border-color:rgba(100,166,246,.45);background:rgba(100,166,246,.10);}
.protocol-chip.chip-hy2 {border-color:rgba(241,173,85,.45);background:rgba(241,173,85,.10);}
.protocol-chip[aria-current="true"] {outline:2px solid currentColor;outline-offset:2px;}


/* Space between connection instructions and the primary device action. */
.device-link-actions { margin-block: 20px 16px; }

/* A real pending request, not a simulated progress percentage. */
#issueIncyLink[aria-busy="true"] { display:flex;align-items:center;justify-content:center;gap:10px;cursor:wait; }
.incy-link-spinner { width:16px;height:16px;flex:none;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:incy-link-spin .8s linear infinite; }
@keyframes incy-link-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .incy-link-spinner { animation:none; } }

/* Inbox reader: full text is scrollable, list preview is intentionally compact. */
dialog.bq-inbox-dialog{width:min(760px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:0;overflow:auto;}
dialog.bq-inbox-dialog .modal-card{padding:0;max-height:none;overflow:visible;}
.bq-inbox{font-size:15px;line-height:1.55;padding:22px;min-width:0;color:var(--text,#e6eef8);}
.bq-inbox-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px;}
.bq-inbox h2{font-size:22px;line-height:1.3;margin:0 0 8px;overflow-wrap:anywhere;}
.bq-inbox-head p,.bq-inbox time{display:block;font-size:13px;line-height:1.5;color:var(--muted,#a5b4c7);margin:0;}
.bq-inbox button{font:inherit;cursor:pointer;border:1px solid #36485d;border-radius:10px;background:#102033;color:inherit;padding:10px 14px;text-align:left;white-space:normal;}
.bq-inbox button:disabled{opacity:.55;cursor:wait;}
.bq-inbox button:focus-visible{outline:2px solid #39d5ef;outline-offset:3px;}
.bq-inbox-close{font-size:24px!important;line-height:1!important;flex-shrink:0;}
.bq-inbox-tools{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px;}
.bq-inbox-list{display:grid;gap:10px;max-height:58dvh;overflow:auto;padding:3px;overscroll-behavior:contain;}
.bq-inbox-row{display:flex!important;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:16px!important;}
.bq-inbox-row.is-unread{border-left:3px solid #39d5ef;background:#122b41;}
.bq-inbox-copy{display:grid;gap:6px;min-width:0;}
.bq-inbox-copy strong{display:block;font-size:15px;font-weight:650;line-height:1.4;overflow-wrap:anywhere;}
.bq-inbox-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.55;color:#b8c8dc;overflow-wrap:anywhere;}
.bq-inbox-detail{max-height:62dvh;overflow:auto;overscroll-behavior:contain;padding:0 8px 12px 0;}
.bq-inbox-message{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;line-height:1.7;font-size:16px;margin-top:22px;}
.bq-inbox-message a{color:#64d9f4;text-decoration:underline;}
.bq-inbox-message code{white-space:pre-wrap;overflow-wrap:anywhere;}
.bq-inbox-footer{padding-top:16px;}.bq-inbox-footer button,.bq-inbox-more{width:100%;text-align:center!important;margin-top:10px;}
.bq-inbox-error{background:#45262c;color:#ffd9df;padding:12px;border-radius:10px;}.bq-inbox-empty{padding:18px;color:#a5b4c7;}
@media(max-width:600px){.bq-inbox{padding:16px;}.bq-inbox-list{max-height:60dvh;}.bq-inbox-detail{max-height:65dvh;}.bq-inbox h2{font-size:20px;}.bq-inbox-tools button{font-size:13px;}}
