.artisan-mobile-app {
  display: none;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--orange);
  font-weight: 900;
  cursor: pointer;
}

.mobile-bottom-bar button {
  border: 0;
  background: transparent;
}

@media (max-width: 900px) {
  body {
    background: #f5f6f8;
  }

  .portal-shell {
    padding: 18px 14px 92px;
  }

  .portal-hero {
    display: none;
  }

  #portal-content {
    display: block;
  }

  #portal-content > .panel {
    display: none;
  }

  .artisan-mobile-app {
    display: block;
  }

  .artisan-mobile-panel {
    display: none;
  }

  .artisan-mobile-panel.active {
    display: grid;
    gap: 14px;
  }

  .artisan-mobile-top,
  .artisan-card,
  .artisan-request-card,
  .artisan-revenue-summary {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 32, 0.05);
  }

  .artisan-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
  }

  .artisan-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
  }

  .artisan-avatar {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: #111820;
    color: #fff;
    font-weight: 950;
  }

  .artisan-identity h1,
  .artisan-screen-head h2,
  .artisan-card h2,
  .artisan-card h3,
  .artisan-request-card h3 {
    margin: 0;
    color: var(--ink);
  }

  .artisan-identity h1 {
    font-size: 1rem;
  }

  .artisan-identity p,
  .artisan-screen-head span,
  .artisan-card p,
  .artisan-request-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
  }

  .artisan-online-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 900;
  }

  .artisan-online-switch input {
    position: absolute;
    opacity: 0;
  }

  .artisan-online-switch i {
    position: relative;
    display: block;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #cfd5dd;
  }

  .artisan-online-switch i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 160ms ease;
  }

  .artisan-online-switch input:checked + i {
    background: #16a34a;
  }

  .artisan-online-switch input:checked + i::after {
    transform: translateX(18px);
  }

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

  .artisan-stat {
    min-height: 92px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }

  .artisan-stat strong {
    display: block;
    color: var(--ink);
    font-size: 1.55rem;
    line-height: 1;
  }

  .artisan-stat span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
  }

  .artisan-card {
    display: grid;
    gap: 12px;
    padding: 16px;
  }

  .artisan-card-title,
  .artisan-screen-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .artisan-screen-head {
    padding: 6px 2px;
  }

  .artisan-card h2,
  .artisan-screen-head h2 {
    font-size: 1.18rem;
  }

  .artisan-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .artisan-tabs button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 900;
  }

  .artisan-tabs button.active {
    border-color: var(--orange);
    background: var(--orange);
    color: #fff;
  }

  .artisan-list {
    display: grid;
    gap: 12px;
  }

  .artisan-list.compact .artisan-request-actions {
    display: none;
  }

  .artisan-request-card {
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .artisan-request-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .artisan-service-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-weight: 950;
  }

  .artisan-badge {
    border-radius: 999px;
    padding: 5px 8px;
    background: #fff1e8;
    color: var(--orange-dark);
    font-size: 0.72rem;
    font-weight: 950;
  }

  .artisan-request-meta,
  .artisan-money-grid,
  .artisan-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .artisan-request-meta span,
  .artisan-money-grid span,
  .artisan-profile-grid span {
    border-radius: 8px;
    padding: 10px;
    background: var(--soft);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 850;
  }

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

  .artisan-request-actions button,
  .artisan-map-button,
  .artisan-primary-action {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 950;
  }

  .artisan-request-actions .accept,
  .artisan-primary-action {
    border: 0;
    background: var(--orange);
    color: #fff;
  }

  .artisan-request-actions .decline,
  .artisan-map-button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
  }

  .artisan-revenue-summary {
    display: grid;
    gap: 10px;
    padding: 16px;
  }

  .artisan-money-hero strong {
    display: block;
    color: var(--ink);
    font-size: 2rem;
  }

  .artisan-money-hero span {
    color: #16a34a;
    font-weight: 900;
  }

  .artisan-chart {
    display: flex;
    height: 96px;
    align-items: end;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    background: linear-gradient(180deg, #fff, #f1fbf6);
  }

  .artisan-chart i {
    flex: 1;
    border-radius: 999px 999px 0 0;
    background: #16a34a;
  }

  .artisan-chart i:nth-child(1) { height: 28%; }
  .artisan-chart i:nth-child(2) { height: 42%; }
  .artisan-chart i:nth-child(3) { height: 36%; }
  .artisan-chart i:nth-child(4) { height: 58%; }
  .artisan-chart i:nth-child(5) { height: 50%; }
  .artisan-chart i:nth-child(6) { height: 78%; }

  .mobile-bottom-bar {
    grid-template-columns: repeat(5, 1fr);
    padding-inline: 6px;
  }

  .mobile-bottom-bar button {
    display: grid;
    place-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
  }

  .mobile-bottom-bar button.active {
    color: var(--orange);
  }

  .mobile-bottom-bar button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}
