/* The SMS workspace ships independently; keep its mobile theme self-contained. */
@media (max-width: 700px) {
  .app-shell {
    --sms-gold: #dec38a;
    --sms-text: #f0eee7;
    --sms-muted: #a4aaa2;
    --sms-line: rgba(221, 196, 143, .15);
    --sms-panel: #151b17;
    min-height: 100svh;
    background: radial-gradient(ellipse at 95% 0, #a8883c12, transparent 42%), #0b0f0d;
    color: var(--sms-text);
    color-scheme: dark;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  .app-shell button, .app-shell select, .app-shell input { -webkit-tap-highlight-color: transparent; }
  .app-shell button:focus-visible, .app-shell a:focus-visible, .app-shell select:focus-visible {
    outline: 2px solid var(--sms-gold);
  }
  .app-shell .topbar {
    height: auto;
    min-height: 68px;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px;
    gap: 12px;
    background: #0e1410ed;
    border-color: var(--sms-line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .app-shell .brand { font-size: 20px; letter-spacing: -.65px; }
  .app-shell .brand > span:last-child { color: var(--sms-gold); font-weight: 600; }
  .app-shell .brand-icon { width: 27px; height: 27px; margin-right: 8px; border-radius: 0; background: transparent; }
  .app-shell .top-caption { display: none; }
  .app-shell .top-actions { gap: 9px; }
  .app-shell .top-actions select { font-size: 11px; border: 0; padding: 8px 3px; background: transparent; color: var(--sms-muted); }
  .app-shell .top-actions .back-to-cards { font-size: 0; width: 34px; height: 34px; padding: 7px; border: 1px solid var(--sms-line); border-radius: 50%; }
  .app-shell .back-to-cards svg { width: 18px; height: 18px; }
  .app-shell .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 9px 8px calc(9px + env(safe-area-inset-bottom, 0px));
    background: #101712f5;
    border: 0;
    border-top: 1px solid var(--sms-line);
    z-index: 40;
    overflow: visible;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .app-shell .sidebar > button {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 6px 0;
    min-height: 49px;
    min-width: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9ba49b;
    font-size: 10px;
    font-weight: 500;
    white-space: normal;
    text-align: center;
  }
  .app-shell .sidebar > button.active { color: #e9d4a5; background: linear-gradient(180deg, #ddbf7720, #ddbf7700); }
  .app-shell .sidebar > button.active::before { content: ''; position: absolute; top: -9px; left: 35%; width: 30%; height: 2px; background: #dec38a; border-radius: 0 0 3px 3px; }
  .app-shell .sidebar svg { width: 20px; height: 20px; stroke-width: 1.6; }
  .app-shell .sidebar .count { position: absolute; right: 12%; top: 0; padding: 1px 4px; font-size: 9px; margin: 0; }
  .app-shell .sidebar .nav-label, .app-shell .wallet-box, .app-shell .side-foot { display: none; }
  .app-shell main { margin: 0; padding: 25px 18px calc(106px + env(safe-area-inset-bottom, 0px)); }
  .app-shell .page-heading { margin-bottom: 24px; gap: 12px; }
  .app-shell .eyebrow { color: #cbb77f; font-size: 9px; letter-spacing: 2.1px; margin: 0 0 11px; }
  .app-shell h1 { font-size: 27px; font-weight: 600; letter-spacing: -.7px; margin: 0; }
  .app-shell h2 { font-size: 16px; font-weight: 600; }
  .app-shell h2 > b { background: #d8bd7a13; color: #d9bf88; border: 1px solid #d8bd7a25; border-radius: 50%; font-size: 11px; }
  .app-shell button, .app-shell select { background: #19211b; color: var(--sms-text); border-color: var(--sms-line); border-radius: 10px; }
  .app-shell button:hover:not(:disabled) { background: #222c23; }
  .app-shell button:disabled { opacity: .5; }
  .app-shell .subtle { padding: 10px; font-size: 11px; color: var(--sms-muted); }
  .app-shell .panel { background: linear-gradient(135deg, #1c231c70, transparent 65%), var(--sms-panel); border-color: var(--sms-line); border-radius: 18px; padding: 20px 16px; margin-bottom: 16px; }
  .app-shell .notice { gap: 12px; background: #1b241a; border-color: var(--sms-line); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
  .app-shell .notice strong { color: #e2d1ac; font-size: 13px; font-weight: 600; line-height: 1.6; }
  .app-shell .notice p { color: #afb8a9; font-size: 12px; line-height: 1.8; }
  .app-shell .notice > svg { display: none; }
  .app-shell .notice > .status-pill { display: none; }
  .app-shell .sign-in-notice { display: flex; flex-direction: column; align-items: stretch; padding: 30px 22px; gap: 23px; background: radial-gradient(ellipse at top right, #ba964a16, transparent 70%), #151c16; }
  .app-shell .sign-in-notice > svg { display: block; width: 27px; height: 27px; color: #dec38a; }
  .app-shell .sign-in-notice strong { font-size: 19px; }
  .app-shell .sign-in-notice p { margin-top: 13px; font-size: 13px; }
  .app-shell .purchase-rules { font-size: 12px; color: #b9c0b5; padding: 17px; }
  .app-shell .purchase-rules summary { color: #e0dbc9; font-weight: 500; }
  .app-shell .purchase-rules a, .app-shell .text-button, .app-shell .help > a { color: var(--sms-gold); }
  .app-shell .workspace { display: flex; flex-direction: column; gap: 16px; }
  .app-shell .selection, .app-shell .inbox-panel { width: 100%; }
  .app-shell .section-head { gap: 15px; flex-wrap: wrap; }
  .app-shell .section-head p, .app-shell .fine-print, .app-shell .muted, .app-shell .list-footer { color: var(--sms-muted); }
  .app-shell .section-head p { line-height: 1.6; }
  .app-shell .filters { width: 100%; gap: 8px; }
  .app-shell .search { background: #0e1510; border-color: #c7b17d26; border-radius: 10px; min-height: 43px; color: #a8b09e; flex: 1; }
  .app-shell .search input { font-size: 13px; min-width: 0; color: var(--sms-text); max-width: none; padding: 12px 0; }
  .app-shell .search input::placeholder { color: #8c978d; }
  .app-shell .search:focus-within { border-color: #d2b677; box-shadow: 0 0 0 2px #d2b67714; }
  .app-shell .filters select, .app-shell .section-head > select { font-size: 11px; max-width: 155px; min-height: 43px; }
  .app-shell .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 350px; padding: 2px 2px 6px; }
  .app-shell .service-tile { flex-wrap: wrap; gap: 9px; padding: 13px 10px; background: #1b241d; border: 1px solid #ffffff06; border-radius: 12px; }
  .app-shell .service-logo { width: 28px; height: 28px; border-radius: 8px; }
  .app-shell .service-tile > div { flex: 1; }
  .app-shell .service-tile strong { font-size: 12px; font-weight: 500; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
  .app-shell .service-tile small { color: #a6b09f; }
  .app-shell .tile-price { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; width: 100%; margin-top: 2px; color: #e8d3a5; font-size: 13px; }
  .app-shell .tile-price small { font-size: 9px; }
  .app-shell .selected { background: #3b3621 !important; border-color: #bba168 !important; box-shadow: none; }
  .app-shell .selected-check { color: #e4c987; right: 5px; top: 5px; }
  .app-shell .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app-shell .country-grid button { display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding: 13px 10px; }
  .app-shell .country-grid b { grid-column: 2; margin: 0; color: #e8d3a5; }
  .app-shell .country-grid small, .app-shell .channel-list small { color: #a6b09f; }
  .app-shell .country-flag { width: 28px; }
  .app-shell .channel-list button { grid-template-columns: 1.3fr .7fr .8fr .7fr; gap: 7px; padding: 14px 9px; font-size: 11px; }
  .app-shell .channel-list b { color: #e8d3a5; }
  .app-shell .channel-list svg { display: none; }
  .app-shell .step-empty, .app-shell .empty, .app-shell .loading-line { color: #a0aa9d; font-size: 12px; line-height: 1.7; }
  .app-shell .purchase-bar { background: #192219; border-color: var(--sms-line); border-radius: 16px; padding: 18px; position: static; flex-direction: column; align-items: stretch; box-shadow: none; }
  .app-shell .purchase-bar span { color: #a6af9e; }
  .app-shell .purchase-bar strong { line-height: 1.7; }
  .app-shell .primary { min-height: 46px; padding: 13px 19px; background: linear-gradient(110deg, #eddaaa, #cdb071); color: #1d2419; border: 1px solid #e8d09a55; border-radius: 12px; font-size: 13px; font-weight: 650; }
  .app-shell .primary:hover:not(:disabled) { background: #ebd49e; }
  .app-shell .inbox-panel { position: static; min-height: 0; }
  .app-shell .inbox-empty { color: #a0aa9c; padding: 32px 12px; }
  .app-shell .inbox-empty svg { color: #c0a974; }
  .app-shell .inbox-empty h3 { color: #e2dfd0; font-weight: 500; }
  .app-shell .count, .app-shell .status-pill { color: #e1c995; border-color: #ddc28930; background: #c9aa6020; }
  .app-shell .feedback, .app-shell .preview-note { background: #322b19; border-color: #bca06455; color: #ecd8a6; }
  .app-shell .order-filters { gap: 6px; flex-wrap: wrap; }
  .app-shell .order-filters button { padding: 8px 11px; font-size: 11px; border-radius: 20px; }
  .app-shell .order-card { border-color: var(--sms-line); }
  .app-shell .order-actions { flex-wrap: wrap; }
  .app-shell .order-actions select { max-width: 100%; font-size: 11px; }
  .app-shell .order-title { align-items: center; line-height: 1.6; }
  .app-shell .order-card > small, .app-shell .countdown { color: var(--sms-muted); }
  .app-shell .phone { background: #0c140e; border-color: #c9b17d26; color: #e4dbbf; font-size: 17px; min-height: 48px; }
  .app-shell .code { background: #26341e; border-color: #81995e45; padding: 15px; color: #efdda9; }
  .app-shell .code small { color: #bac5a9; }
  .app-shell .code strong { font-size: 25px; }
  .app-shell .refund { color: #b4ce9b; }
  .app-shell .account-panel { padding: 26px 22px; }
  .app-shell .account-panel > svg { color: var(--sms-gold); margin-bottom: 22px; }
  .app-shell .account-panel > p { color: #a8b3a1; }
  .app-shell .account-panel > .balance-large { font-size: 42px; color: #ebd4a1; font-variant-numeric: tabular-nums; }
  .app-shell .account-panel .primary { display: flex; margin-top: 25px; }
  .app-shell .help > a { font-size: 12px; display: block; margin-bottom: 22px; }
  .app-shell .help details { border-color: var(--sms-line); }
  .app-shell .help summary { font-size: 14px; line-height: 1.7; }
  .app-shell .help p { color: #acb4a6; font-size: 13px; }
  .app-shell .modal-backdrop { z-index: 10050; background: #000b; padding: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .app-shell .modal { max-height: calc(100svh - 40px - env(safe-area-inset-bottom, 0px)); overflow-y: auto; padding: 28px 22px; background: linear-gradient(145deg, #242a1e, #141c16 55%); border: 1px solid #c8ac6b40; border-radius: 22px; box-shadow: 0 24px 90px #0007; }
  .app-shell .modal .close { background: #ffffff09; border: 1px solid var(--sms-line); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; }
  .app-shell .modal h2 { font-size: 25px; }
  .app-shell .modal dt { color: #aeb8a5; }
  .app-shell .total { border-color: var(--sms-line); }
  .app-shell .total strong { color: #ebd4a1; }
  .app-shell .skeleton-grid > div { background: #232c22; }
}
@media (max-width: 360px) {
  .app-shell main { padding-left: 12px; padding-right: 12px; }
  .app-shell .topbar { padding-left: 14px; padding-right: 14px; }
  .app-shell .panel { padding-left: 13px; padding-right: 13px; }
  .app-shell .service-grid { grid-template-columns: 1fr; max-height: 350px; }
  .app-shell .tile-price { width: auto; }
  .app-shell .sidebar .nav-text { font-size: 9px; }
}

@media(max-width:700px){html,body{background:#0b0f0d;color-scheme:dark}.app-shell{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}.app-shell .sidebar>button{white-space:nowrap}.app-shell .sidebar>button .count{white-space:normal}}
