:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-2: #eef3f0;
  --ink: #1f2933;
  --muted: #64707d;
  --line: #d9e0e6;
  --brand: #1f7a6b;
  --brand-dark: #15594f;
  --accent: #b85635;
  --ok: #218458;
  --warn: #a76d16;
  --bad: #b23b4a;
  --shadow: 0 14px 32px rgba(31, 41, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  background: #17212b;
  color: #f7fafb;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}

.brand-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #36a892;
  color: #071d19;
  font-weight: 900;
}

.help-icon-button {
  justify-self: end;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #dfe8ed;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.help-icon-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.role-chip {
  color: #c9d4dc;
  font-size: 13px;
  line-height: 1.45;
}

.sidebar-filter {
  display: grid;
  gap: 6px;
}

.sidebar-filter label {
  color: #aebbc5;
  font-size: 12px;
  font-weight: 800;
}

.sidebar-filter select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 8px 10px;
}

.sidebar-filter option {
  color: #1f2933;
}

.sidebar-filter option.own-mentee-option {
  background: #fff1d6;
}

.mentor-mini {
  display: grid;
  gap: 3px;
  color: #e9f0f3;
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.nav-full,
.nav-compact,
.nav-primary,
.nav-more-list {
  display: grid;
  gap: 8px;
}

.nav-compact {
  display: none;
}

.nav-more {
  display: grid;
  gap: 8px;
}

.nav-more summary {
  min-height: 42px;
  padding: 10px 12px;
  color: #dfe8ed;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary::after {
  content: "+";
  float: right;
  opacity: 0.72;
}

.nav-more[open] summary::after {
  content: "-";
}

.nav-more summary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav button {
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
  color: #dfe8ed;
  background: transparent;
  border-radius: 8px;
}

.nav button.active,
.nav button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.nav button:disabled:hover {
  background: transparent;
  color: #dfe8ed;
}

.sidebar-spacer {
  flex: 1;
  min-height: 8px;
}

.legal-links {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.sidebar .legal-links {
  margin-top: auto;
}

.sidebar-bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
  flex: 0 0 auto;
}

.sidebar-bottom .btn {
  width: 100%;
}

.sidebar-bottom .legal-links {
  margin-top: 0;
}

@media (min-width: 981px) and (max-height: 820px) {
  .sidebar {
    gap: 12px;
    padding-bottom: 14px;
    padding-top: 16px;
  }

  .brand {
    font-size: 18px;
  }

  .role-chip,
  .mentor-mini {
    font-size: 12px;
  }

  .nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 2px;
  }

  .nav-full {
    display: none;
  }

  .nav-compact {
    display: grid;
    gap: 8px;
  }

  .nav button,
  .nav-more summary {
    min-height: 38px;
    padding: 8px 12px;
  }

  .sidebar-spacer {
    display: none;
  }

  .sidebar-bottom {
    margin-top: 0;
    gap: 10px;
  }
}

.link-button {
  background: transparent;
  color: var(--brand);
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sidebar .link-button {
  color: #b9c7cf;
}

.link-button:hover {
  color: var(--brand-dark);
}

.sidebar .link-button:hover {
  color: #ffffff;
}

.content {
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar h1,
.auth-title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.topbar p,
.auth-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

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

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

.tariff-card {
  grid-column: span 2;
}

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

.tariff-details ul {
  margin-top: 0;
}

.loyalty-description {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
}

.loyalty-description p {
  margin: 0;
}

.loyalty-description ul {
  columns: 2;
  margin: 0;
  padding-left: 20px;
}

.loyalty-description li {
  break-inside: avoid;
  margin-bottom: 4px;
}

.access-card {
  align-self: stretch;
}

.access-stack {
  display: grid;
  gap: 14px;
}

.loyalty-card h3 {
  font-size: 24px;
  margin: 6px 0;
}

.compact-form {
  gap: 8px;
  margin-top: 10px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.card.flat {
  box-shadow: none;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
}

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

.metric strong {
  font-size: 28px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.answer-full-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.skillset-switcher {
  display: grid;
  gap: 12px;
}

.skillset-switcher h2 {
  margin: 0;
}

.btn {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn:hover {
  background: var(--brand-dark);
}

.btn.secondary {
  background: #e7ecef;
  color: var(--ink);
}

.btn.secondary:hover {
  background: #dbe4e8;
}

.btn.dictating,
.btn.dictating:hover {
  background: #ffe1e4;
  color: #8f2532;
  box-shadow: 0 0 0 0 rgba(143, 37, 50, 0.42);
  animation: dictationPulse 1s ease-in-out infinite;
}

.btn.warn {
  background: var(--accent);
}

@keyframes dictationPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(143, 37, 50, 0.42);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(143, 37, 50, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(143, 37, 50, 0);
  }
}

.btn.ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--line);
}

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

.btn.checking {
  position: relative;
}

.dictation-hint {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff1d6;
  color: #7d4f0f;
  font-size: 13px;
  line-height: 1.45;
}

.dictation-hint.visible {
  display: block;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f3f0;
  color: #176052;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tag.warn {
  background: #fff1d6;
  color: #7d4f0f;
}

.tag.bad {
  background: #ffe1e4;
  color: #8f2532;
}

.bad-text {
  color: #8f2532;
  font-weight: 700;
}

.tag.gray {
  background: #edf0f2;
  color: #596672;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
}

.auth-panel {
  background: var(--panel);
  padding: 36px;
  display: grid;
  align-content: center;
  gap: 22px;
  border-right: 1px solid var(--line);
}

.auth-side {
  padding: 40px;
  display: grid;
  align-content: center;
  gap: 18px;
  background:
    linear-gradient(rgba(23, 33, 43, 0.72), rgba(23, 33, 43, 0.72)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.auth-side h2 {
  font-size: 42px;
  line-height: 1.05;
  margin: 0;
  max-width: 680px;
}

.auth-side p {
  max-width: 620px;
  color: #dbe4ea;
  font-size: 17px;
}

.auth-help-link {
  width: max-content;
  margin-top: 8px;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-help-link:hover {
  color: #dbe4ea;
}

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

.legal-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.legal-consent input {
  margin-top: 3px;
}

.legal-consent label,
.legal-consent span {
  font-size: inherit;
  color: inherit;
  font-weight: 500;
}

.legal-consent .link-button {
  font-size: inherit;
  font-weight: 700;
}

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

.is-hidden {
  display: none !important;
}

.field label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
}

.mini-input {
  width: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.check-grid {
  display: grid;
  gap: 8px;
}

.check-grid label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-grid input[type="checkbox"] {
  margin-top: 2px;
}

.profile-photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  background: #eef2f4;
  border-radius: 8px;
  gap: 4px;
}

.segmented button {
  min-height: 36px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(31, 41, 51, 0.08);
}

.skillset-card {
  display: grid;
  gap: 10px;
}

.skillset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.assessment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.assessment-layout > .card:first-child {
  position: relative;
}

.checking-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(2px);
}

.checking-overlay span {
  color: var(--muted);
}

.loader {
  width: 34px;
  height: 34px;
  border: 4px solid #dbe4e8;
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.mini-loader {
  width: 20px;
  height: 20px;
  border-width: 3px;
}

.payment-loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.billing-action-row {
  align-items: center;
}

.billing-inline-error {
  color: var(--bad);
  font-weight: 700;
  line-height: 1.25;
  max-width: 420px;
}

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

.question-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.question-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.progress {
  height: 10px;
  background: #e2e8ed;
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.section-list {
  max-height: 620px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.section-button {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  display: grid;
  gap: 4px;
}

.section-button.active {
  border-color: var(--brand);
  background: #edf8f5;
}

.review-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.review-table th,
.review-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.review-table th {
  background: #eef3f0;
  font-size: 13px;
}

.answer-review-table {
  table-layout: fixed;
}

.answer-review-col-item {
  width: 28%;
}

.answer-review-col-answer {
  width: 40%;
}

.answer-review-col-status {
  width: 22%;
}

.answer-review-col-action {
  width: 10%;
}

.answer-review-table td,
.answer-review-table th {
  overflow-wrap: anywhere;
}

.answer-review-table td:last-child {
  white-space: nowrap;
}

.answer-review-table td:last-child .btn {
  width: 100%;
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.code-block {
  max-width: 560px;
  max-height: 280px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border-radius: 8px;
  background: #15202b;
  color: #e8eef5;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.sheet-breakdown {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.breakdown-row {
  border: 1px solid var(--line);
  background: #f8faf9;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.breakdown-row h3,
.breakdown-row p {
  margin: 0;
}

.grade-timeline {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 14px;
}

.mini-history {
  margin: 12px 0;
  display: grid;
  gap: 6px;
}

.grade-timeline.mini {
  gap: 5px;
  padding: 0;
}

.grade-timeline.mini .timeline-step {
  gap: 5px;
}

.grade-timeline.mini .grade-node {
  min-width: 88px;
  min-height: 48px;
  padding: 7px 8px;
}

.grade-timeline.mini .grade-node strong {
  font-size: 14px;
}

.grade-timeline.mini .grade-node span {
  font-size: 11px;
}

.grade-timeline.mini .timeline-arrow {
  font-size: 18px;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.grade-node {
  min-width: 128px;
  min-height: 68px;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
}

.grade-node strong {
  font-size: 18px;
}

.grade-node span {
  color: var(--muted);
  font-size: 13px;
}

.grade-node.confirmed {
  background: #e8f5ee;
  border-color: #abd9c2;
}

.grade-node.pending {
  background: #fff3d8;
  border-color: #e7c370;
}

.grade-node.neutral {
  background: #f1f4f6;
  border-color: #cfd7dd;
}

.grade-node.target-node {
  outline: 2px solid #aeb8c2;
  outline-offset: 2px;
}

.grade-timeline.target {
  padding-bottom: 8px;
}

.grade-timeline.target .timeline-arrow {
  color: #7a8792;
}

.timeline-arrow {
  color: var(--muted);
  font-size: 24px;
}

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

.history-session {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.history-session.confirmed {
  background: #f0faf5;
  border-color: #abd9c2;
}

.history-session.pending {
  background: #fff8e8;
  border-color: #e7c370;
}

.history-session p {
  margin: 4px 0 0;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  background: #17212b;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  z-index: 20;
}

.inline-toast {
  position: static;
  max-width: none;
  margin-top: 12px;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
}

.mentor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.mentor-card.unavailable {
  opacity: 0.72;
}

.mentor-photo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.mentor-photo.placeholder {
  display: grid;
  place-items: center;
  background: #e8f3f0;
  color: var(--brand);
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(23, 33, 43, 0.48);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-card {
  width: min(720px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.confirm-card {
  width: min(520px, 100%);
  display: grid;
  gap: 12px;
}

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

.modal-head h2 {
  margin: 0;
}

.legal-modal {
  width: min(920px, 100%);
}

.legal-document-text {
  display: grid;
  gap: 10px;
  color: var(--ink);
  line-height: 1.55;
}

.legal-document-text p {
  margin: 0;
}

.legal-document-text p:first-child,
.legal-document-text p:nth-child(2) {
  font-weight: 800;
}

.help-document-text a {
  color: var(--brand);
  font-weight: 800;
}

.legal-modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.achievement-modal {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  padding: 14px;
}

.achievement-modal .modal-head {
  margin-bottom: 8px;
}

.achievement-modal .modal-head p {
  font-size: 14px;
  margin: 4px 0 0;
}

.achievement-canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(24vh, 210px);
  border-radius: 8px;
  background: #081530;
  margin: 0 auto;
  object-fit: contain;
}

.share-network-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.share-network {
  min-height: 46px;
  border: 1px solid #d8e0e6;
  border-radius: 8px;
  background: #fff;
  color: #1d2a36;
  display: grid;
  place-items: center;
  gap: 2px;
  cursor: pointer;
  font-weight: 800;
}

.share-network:hover {
  border-color: var(--brand);
  background: #e8f5f1;
}

.share-network.selected {
  border-color: var(--brand);
  background: #d8f0e9;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.share-network span {
  font-size: 17px;
  line-height: 1;
}

.share-network small {
  font-size: 11px;
}

.share-copy {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f3f6f7;
  color: #536272;
}

.share-copy p {
  font-size: 13px;
  margin: 4px 0 0;
}

.share-desktop-steps {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.share-step {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-columns: auto 36px;
}

.share-step > span {
  color: #536272;
  font-size: 12px;
  font-weight: 800;
}

.share-step > small {
  color: #536272;
  font-size: 12px;
  grid-column: 1 / -1;
}

.share-step .icon-button {
  align-items: center;
  color: var(--brand);
  display: inline-flex;
  font-size: 19px;
  height: 36px;
  justify-content: center;
  text-decoration: none;
  width: 36px;
}

.confirm-card .button-row {
  justify-content: flex-start;
}

.preline {
  white-space: pre-line;
}

.mentor-request-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ai-details {
  display: grid;
  gap: 5px;
  min-width: 220px;
}

.ai-details p {
  margin: 0;
}

.scoring-dots {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  min-height: 24px;
}

.scoring-dots span {
  background: #9aa7b3;
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  width: 8px;
}

@media (max-width: 980px) {
  .shell,
  .auth-page,
  .assessment-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }

  .grid.cols-2,
  .grid.cols-3,
  .sheet-breakdown {
    grid-template-columns: 1fr;
  }

  .tariff-card {
    grid-column: auto;
  }

  .tariff-details {
    grid-template-columns: 1fr;
  }

  .auth-side {
    min-height: 280px;
  }
}

@media (max-width: 620px) {
  .share-network-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .share-desktop-steps {
    display: none;
  }

  .content,
  .auth-panel,
  .auth-side {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-session {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented {
    grid-template-columns: 1fr;
  }
}
