
    .app-widget-copy {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      gap: 6px;
      min-width: 0;
      z-index: 1;
    }

    .app-widget-head strong {
      display: -webkit-box;
      color: rgba(248, 251, 255, 0.96);
      font-size: clamp(15px, 4.1vw, 19px);
      font-weight: 800;
      line-height: 1.06;
      letter-spacing: -0.02em;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .app-widget-copy small {
      display: -webkit-box;
      color: rgba(236, 243, 255, 0.72);
      font-size: 12px;
      line-height: 1.32;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .app-icon.app-entry,
    .app-widget.app-entry {
      animation: appIconIn 0.34s ease both;
    }

    .app-widget-skeleton {
      pointer-events: none;
      animation: none;
      overflow: hidden;
    }

    .app-widget-skeleton .app-widget-icon,
    .app-widget-skeleton strong,
    .app-widget-skeleton small {
      color: transparent;
      background: rgba(226, 238, 255, 0.11);
      border-radius: 12px;
    }

    .app-widget-skeleton strong {
      display: block;
      width: 72%;
      min-height: 18px;
    }

    .app-widget-skeleton small {
      display: block;
      width: 88%;
      min-height: 44px;
    }

    @keyframes appIconIn {
      from { opacity: 0; transform: translateY(8px) scale(0.94); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    body.no-motion *,
    body.no-motion *::before,
    body.no-motion *::after {
      animation: none !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }

    body.no-motion .home-hero::before {
      transform: none;
    }

    body.no-emboss::after {
      background: linear-gradient(180deg, rgba(2, 8, 23, 0.12), rgba(2, 8, 23, 0.76));
      opacity: 1;
      filter: none;
    }

    .widget-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 12px;
    }

    .widget-card {
      min-width: 0;
      border-radius: var(--radius-2xl);
      padding: 14px;
      color: var(--text);
      text-align: left;
    }

    .widget-card strong {
      display: block;
      font-size: 22px;
      line-height: 1;
      margin-top: 8px;
    }

    .widget-card span {
      color: var(--soft);
      font-size: 12px;
    }

    .app-menu {
      position: fixed;
      inset: 0;
      z-index: 30;
      display: none;
      padding: calc(20px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom));
      background: rgba(0, 0, 0, 0.24);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .app-menu.open {
      display: block;
      animation: viewIn 0.24s ease both;
    }

    .app-menu-panel {
      width: min(100%, 540px);
      max-height: calc(100vh - 44px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
      margin: 0 auto;
      overflow-y: auto;
      border-radius: 28px;
      padding: 18px;
    }

    .menu-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 16px;
    }

    .menu-list {
      display: grid;
      gap: 0;
      margin-top: 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .menu-row {
      display: grid;
      grid-template-columns: 28px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      min-height: 48px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      background: transparent;
      color: var(--text);
      text-align: left;
    }

    .menu-row small {
      color: var(--soft);
    }

    .app-detail-hero {
      display: grid;
      gap: 12px;
      margin-bottom: 18px;
      padding: 16px;
    }

    .app-detail-hero h2 {
      max-width: 18rem;
      font-size: clamp(22px, 6vw, 27px);
      font-weight: var(--font-weight-semibold);
      line-height: 1.08;
      letter-spacing: -0.02em;
    }

    .app-detail-hero .muted {
      max-width: 28rem;
      font-size: 15px;
      line-height: 1.4;
      color: var(--text-tertiary);
    }

    .app-detail-actions,
    .path-grid {
      display: grid;
      gap: 10px;
    }

    .path-card {
      width: 100%;
      min-height: 86px;
      border: 1px solid rgba(225, 240, 255, 0.18);
      border-radius: var(--radius-2xl);
      padding: 14px;
      background: rgba(5, 12, 28, 0.58);
      color: var(--text-primary);
      text-align: left;
      box-shadow: var(--shadow-inset);
    }

    .path-card strong {
      display: block;
      margin-bottom: 4px;
      font-size: 16px;
    }

    .path-card span {
      color: var(--text-tertiary);
      font-size: 13px;
      line-height: 1.35;
    }

    .market-toolbar-compact {
      margin-bottom: 18px;
    }

    .market-toolbar-compact .search {
      min-height: 44px;
    }

    .map-card {
      overflow: hidden;
      padding: 0;
    }

    .map-toolbar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(170px, 0.85fr);
      gap: 12px;
      align-items: end;
      padding: 16px 16px 12px;
      background: rgba(3, 9, 24, 0.78);
    }

    .map-toolbar h3 {
      margin: 3px 0 0;
    }

    .map-location-select-label {
      display: grid;
      gap: 5px;
      color: var(--text-tertiary);
      font-size: 12px;
    }

    .map-location-select {
      min-width: 0;
      width: 100%;
    }

    .map-frame-shell {
      position: relative;
      background: rgba(4, 9, 20, 0.92);
    }

    .map-pin-label {
      position: absolute;
      right: 12px;
      bottom: 12px;
      display: inline-flex;
      gap: 6px;
      align-items: center;
      max-width: calc(100% - 24px);
      padding: 8px 11px;
      border: 1px solid rgba(236, 243, 255, 0.32);
      border-radius: 999px;
      background: rgba(3, 9, 24, 0.88);
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 750;
    }

    .map-info {
      padding: 16px;
    }

    .map-frame {
      display: block;
      width: 100%;
      height: min(58vh, 360px);
      border: 0;
      background: rgba(4, 9, 20, 0.88);
    }

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

    .map-point-list {
      display: grid;
      gap: 7px;
      padding: 0 16px 16px;
    }

    .map-point-row {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      width: 100%;
      min-height: 54px;
      padding: 9px 11px;
      border: 1px solid var(--border-subtle);
      border-radius: 17px;
      background: rgba(4, 11, 27, 0.62);
      color: var(--text-primary);
      text-align: left;
    }

    .map-point-row.active {
      border-color: rgba(143, 211, 255, 0.52);
      background: rgba(16, 35, 68, 0.72);
    }

    .map-point-row strong,
    .map-point-row small {
      display: block;
    }

    .map-point-row small {
      margin-top: 2px;
      color: var(--text-tertiary);
    }

    .map-empty-card {
      text-align: center;
    }

    .map-empty-symbol {
      margin-bottom: 8px;
      font-size: 42px;
    }

    details.disclosure {
      margin-top: 10px;
      border: 1px solid var(--border-subtle);
      border-radius: 20px;
      padding: 9px 10px;
      background: rgba(5, 12, 27, 0.64);
    }

    details.disclosure summary {
      cursor: pointer;
      list-style: none;
      font-weight: 850;
    }

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

    .action-row > * {
      min-width: 0;
      max-width: 100%;
    }

    .tiny-button {
      min-height: 34px;
      border-radius: var(--radius-pill);
      padding: 0 11px;
      border: 1px solid rgba(225, 240, 255, 0.34);
      background: rgba(8, 16, 35, 0.9);
      color: var(--text);
      font-weight: 800;
      white-space: normal;
      overflow-wrap: anywhere;
      backdrop-filter: var(--glass-blur-lg) var(--glass-saturation);
      -webkit-backdrop-filter: var(--glass-blur-lg) var(--glass-saturation);
    }

    .tiny-button.danger {
      border-color: rgba(255, 154, 168, 0.46);
      background: rgba(95, 20, 35, 0.34);
      color: #ffecef;
    }

    .segmented {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
      padding: 5px;
      min-width: 0;
      max-width: 100%;
      border: 1px solid rgba(225, 240, 255, 0.24);
      border-radius: var(--radius-pill);
      background: rgba(4, 10, 23, 0.78);
      backdrop-filter: var(--glass-blur-lg) var(--glass-saturation);
      -webkit-backdrop-filter: var(--glass-blur-lg) var(--glass-saturation);
    }

    .segment {
      min-width: 0;
      min-height: 36px;
      border-radius: var(--radius-pill);
      background: transparent;
      color: var(--muted);
      font-weight: 800;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .segment.active {
      background: rgba(45, 94, 134, 0.58);
      color: var(--text);
      box-shadow: inset 0 1px 0 var(--glass-highlight);
    }


    .profile-mode-row,
    .admin-mode-toolbar {
      display: grid;
      align-items: center;
      gap: 8px;
      min-width: 0;
      contain: layout paint;
    }

    .profile-mode-row {
      grid-template-columns: minmax(0, 1fr);
    }

    .admin-mode-toolbar {
      grid-template-columns: minmax(0, 1fr) auto;
    }

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

    .profile-mode-select,
    .admin-mode-select {
      min-height: 44px;
      border-radius: var(--radius-pill);
      padding: 0 38px 0 14px;
      font-weight: 800;
      color: var(--text);
      background-color: rgba(4, 10, 23, 0.9);
    }

    .profile-mode-select {
      width: 100%;
      max-width: none;
    }

    .admin-mode-select {
      max-width: 190px;
    }

    .admin-mode-toolbar {
      grid-template-columns: minmax(170px, 0.62fr) minmax(0, 1fr);
    }

    .admin-mode-nav {
      flex-wrap: nowrap;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x proximity;
      padding-bottom: 2px;
    }

    .admin-mode-nav::-webkit-scrollbar {
      display: none;
    }

    .admin-mode-nav .filter {
      flex: 0 0 auto;
      scroll-snap-align: start;
    }

    .slim-card {
      padding-bottom: 14px;
    }

    .independent-widget-grid {
      align-items: stretch;
      contain: layout paint;
    }

    .independent-widget {
      min-height: 104px;
      transform: translateZ(0);
      will-change: transform;
    }

    #profile-list > * {
      animation: profile-panel-enter 0.18s var(--easing-standard) both;
    }

    @keyframes profile-panel-enter {
      from { opacity: 0; transform: translate3d(0, 8px, 0); }
      to { opacity: 1; transform: translate3d(0, 0, 0); }
    }

    @media (max-width: 430px) {
      .admin-mode-toolbar {
        grid-template-columns: 1fr;
      }

      .admin-mode-select {
        width: 100%;
        max-width: none;
      }
    }

    .bottom-nav {
      position: fixed;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 10;
      padding: 15px 14px calc(16px + env(safe-area-inset-bottom));
      background: transparent;
      pointer-events: none;
      transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0s;
    }

    /* iOS Telegram moves fixed elements above the software keyboard. Keep the
       navigation out of the typing area and restore it after editing. */
    body.keyboard-open .bottom-nav {
      opacity: 0;
      visibility: hidden;
      transform: translateY(calc(100% + env(safe-area-inset-bottom) + 24px));
      transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
    }
