/* TT SAVE mobile chrome — m.ttsave-ru-bot.com */
:root {
  --tt-header-h: 3.4rem;
  --tt-tab-h: 4.15rem;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

body.tt-m-site {
  padding-top: calc(var(--tt-header-h) + var(--safe-t));
  padding-bottom: calc(var(--tt-tab-h) + var(--safe-b) + 0.4rem);
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body.tt-m-site .tt-m-header,
body.tt-m-site .tt-m-main,
body.tt-m-site .tt-m-footer,
body.tt-m-site .tt-m-tabbar {
  width: 100%;
  max-width: none;
}

.tt-m-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: calc(var(--tt-header-h) + var(--safe-t));
  padding: var(--safe-t) 14px 0;
  background: rgba(12, 16, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #2c3554;
}

.tt-m-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f4f7ff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  min-width: 0;
}
.tt-m-brand img { width: 30px; height: 30px; display: block; }
.tt-m-brand span { white-space: nowrap; }

.tt-m-account {
  flex-shrink: 0;
  color: #071018;
  text-decoration: none;
  background: linear-gradient(120deg, #2ee7ff 0%, #5b8cff 48%, #b14bff 100%);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tt-m-main {
  margin: 0 auto;
  padding: 12px 16px 8px;
  max-width: 640px;
  width: 100%;
}

body.tt-m-site h1 {
  font-size: 1.72rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
body.tt-m-site .lead { font-size: 0.95rem; }
body.tt-m-site form,
body.tt-m-site #download-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
body.tt-m-site .input-group-wrap,
body.tt-m-site #url-input,
body.tt-m-site button[type="submit"] {
  width: 100%;
}
body.tt-m-site .input-group-wrap {
  display: flex;
  gap: 8px;
}
body.tt-m-site .progress-steps-row,
body.tt-m-site .format-options-grid,
body.tt-m-site .plans-grid,
body.tt-m-site .grid {
  display: grid;
  grid-template-columns: 1fr;
}
body.tt-m-site nav { display: none; }

.tt-m-footer {
  margin: 20px auto 8px;
  max-width: 640px;
  padding: 0 16px 8px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.5;
}
.tt-m-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.tt-m-footer-links a { color: #a7b0c9; text-decoration: none; }
body.tt-m-site .sr-badge {
  max-width: 100%;
  margin: 16px auto 10px;
}
body.tt-m-site .sr-badge-card {
  justify-content: flex-start;
  text-align: left;
}
body.tt-m-site .sr-badge-go { display: none; }
.tt-m-switch {
  margin: 14px 0 0;
  color: #a7b0c9;
}
.tt-m-switch a {
  color: #67e8ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tt-m-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tt-tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(12, 16, 32, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #2c3554;
}
.tt-m-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #a7b0c9;
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 600;
  min-width: 0;
  padding: 6px 2px;
  text-align: center;
}
.tt-m-tab svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tt-m-tab.is-active { color: #67e8ff; font-weight: 800; }

.site-view-switch {
  margin: 14px 0 0;
  text-align: center;
}
.site-view-switch a {
  color: #a7b0c9;
  text-decoration: underline;
  text-underline-offset: 2px;
}
