html,
body {
  margin: 0;
  min-height: 100%;
}

/* Dedicated ChatGPT-like mobile home. Keep this at the end to beat older mobile rules. */
.ov-mobile-home {
  display: none;
}

@media (max-width: 768px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    background: #fff !important;
  }

  body {
    margin: 0 !important;
  }

  .guest-shell.is-home-workspace,
  .guest-shell.is-home-workspace.is-sidebar-collapsed {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(109, 74, 255, 0.08), transparent 34%),
      #ffffff !important;
  }

  .guest-shell.is-home-workspace .guest-sidebar,
  .guest-shell.is-home-workspace.is-sidebar-collapsed .guest-sidebar,
  .guest-shell.is-home-workspace:not(.is-mobile-sidebar-open) .guest-sidebar,
  .guest-shell.is-home-workspace:not(.is-mobile-sidebar-open) .mobile-drawer {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(100%) !important;
  }

  .guest-shell.is-home-workspace.is-mobile-sidebar-open .guest-sidebar.mobile-drawer {
    display: block !important;
    width: 82vw !important;
    max-width: 340px !important;
    min-width: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }

  .mobile-header {
    display: grid !important;
    grid-template-columns: 44px 1fr auto !important;
    align-items: center !important;
    height: 58px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2300 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    direction: ltr !important;
  }

  .mobile-menu-btn,
  .mobile-icon-btn,
  .mobile-login-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(109, 74, 255, 0.12) !important;
    background: #fff !important;
    color: #15152f !important;
    box-shadow: 0 6px 18px rgba(44, 34, 89, 0.04) !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
  }

  .mobile-menu-btn {
    justify-self: start !important;
    gap: 3px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .mobile-menu-btn span {
    width: 15px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: #15152f !important;
    display: block !important;
  }

  .mobile-brand {
    justify-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #6d4aff !important;
  }

  .mobile-brand-mark,
  .mobile-brand-mark img {
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    object-fit: contain !important;
  }

  .mobile-header-actions {
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .mobile-icon-btn svg,
  .mobile-login-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.25 !important;
  }

  .guest-shell.is-home-workspace .guest-main,
  .guest-shell.is-home-workspace.is-sidebar-collapsed .guest-main,
  .guest-main.home-orlixor-main {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: calc(100dvh - 58px) !important;
    margin: 0 !important;
    padding: 8px 14px 112px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    box-sizing: border-box !important;
    background: transparent !important;
  }

  .guest-shell.is-home-workspace .home-main-topbar,
  .guest-shell.is-home-workspace .guest-main-topbar,
  .guest-shell.is-home-workspace .home-desktop-hero,
  .guest-shell.is-home-workspace .home-desktop-actions,
  .guest-shell.is-home-workspace .guest-quick-grid:not(.ov-mobile-actions),
  .guest-shell.is-home-workspace .home-quick-grid {
    display: none !important;
  }

  .ov-mobile-home {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: min(100%, 390px) !important;
    max-width: 390px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .ov-mobile-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    padding: 5px 0 12px !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .ov-mobile-logo,
  .ov-mobile-logo img {
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    object-fit: contain !important;
  }

  .ov-mobile-hero h1 {
    margin: 3px 0 0 !important;
    font-size: 23px !important;
    line-height: 1.22 !important;
    font-weight: 900 !important;
    color: #15152f !important;
    letter-spacing: 0 !important;
  }

  .ov-mobile-hero p {
    margin: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #8b8fa8 !important;
  }

  .ov-mobile-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .ov-mobile-action {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 58px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(109, 74, 255, 0.11) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 28px rgba(44, 34, 89, 0.055) !important;
    color: #15152f !important;
    text-align: right !important;
    box-sizing: border-box !important;
  }

  .ov-mobile-action-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 12px !important;
    display: inline-grid !important;
    place-items: center !important;
    background: #f3efff !important;
    color: #6d4aff !important;
  }

  .ov-mobile-action-icon svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2.35 !important;
  }

  .ov-mobile-action-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .ov-mobile-action-copy strong {
    display: block !important;
    margin: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    color: #15152f !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .ov-mobile-action-copy small {
    display: block !important;
    margin: 3px 0 0 !important;
    font-size: 10.8px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #9aa0b8 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .guest-shell.is-home-workspace .guest-conversation-card {
    display: none !important;
  }

  .guest-shell.is-home-workspace .guest-attachment-pills {
    width: min(100%, 390px) !important;
    max-width: 390px !important;
    margin-inline: auto !important;
  }

  .guest-shell.is-home-workspace .home-compose,
  .guest-shell.is-home-workspace .guest-compose {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: 390px !important;
    margin: 0 auto !important;
    min-height: 74px !important;
    padding: 12px 12px 10px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(109, 74, 255, 0.12) !important;
    background: #ffffff !important;
    box-shadow: 0 16px 42px rgba(44, 34, 89, 0.09) !important;
    z-index: 2250 !important;
    display: grid !important;
    grid-template-columns: 1fr 46px !important;
    grid-template-rows: auto auto !important;
    gap: 10px 10px !important;
    box-sizing: border-box !important;
  }

  .guest-shell.is-home-workspace .home-compose .compose-input,
  .guest-shell.is-home-workspace .guest-compose .compose-input {
    grid-column: 1 / 3 !important;
    width: 100% !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
    color: #15152f !important;
    text-align: right !important;
  }

  .guest-shell.is-home-workspace .home-compose-actions {
    grid-column: 1 / 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  .guest-shell.is-home-workspace .home-compose-tool {
    height: 32px !important;
    min-width: 0 !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(109, 74, 255, 0.13) !important;
    background: #fff !important;
    color: #69708d !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    box-shadow: none !important;
  }

  .guest-shell.is-home-workspace .home-compose-tool svg {
    width: 14px !important;
    height: 14px !important;
  }

  .guest-shell.is-home-workspace .home-compose .compose-send,
  .guest-shell.is-home-workspace .guest-compose .compose-send {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
    width: 46px !important;
    height: 46px !important;
    align-self: end !important;
    justify-self: end !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #7c4dff, #5f35f4) !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(109, 74, 255, 0.28) !important;
  }

  .guest-shell.is-home-workspace .home-compose-note,
  .guest-shell.is-home-workspace .guest-compose-note {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .guest-shell.is-home-workspace .guest-main,
  .guest-main.home-orlixor-main {
    padding-inline: 12px !important;
  }

  .ov-mobile-action {
    min-height: 54px !important;
    padding: 9px 10px !important;
  }

  .ov-mobile-action-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .ov-mobile-action-copy strong {
    font-size: 13px !important;
  }

  .ov-mobile-action-copy small {
    font-size: 10.3px !important;
  }
}

@media (max-width: 768px) {
  .desktop-app {
    display: none !important;
  }

  .mobile-app {
    display: flex !important;
    flex-direction: column;
    min-height: 100dvh;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    background: #ffffff;
    color: #15152f;
    direction: rtl;
    box-sizing: border-box;
    padding-bottom: 150px;
  }

  .mobile-header {
    height: 64px;
    padding: 0 16px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 0;
    box-shadow: none;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-icon-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    background: #f6f2ff;
    color: #6d4aff;
    display: grid;
    place-items: center;
    font-size: 18px;
  }

  .mobile-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
  }

  .mobile-menu-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    background: #f6f2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
  }

  .mobile-menu-btn span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #6d4aff;
    display: block;
  }

  .mobile-home {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 16px 14px 0;
    box-sizing: border-box;
  }

  .mobile-hero,
  .ov-mobile-hero {
    text-align: center;
    padding: 18px 0 20px;
  }

  .mobile-hero-logo,
  .ov-mobile-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
  }

  .mobile-hero h1,
  .ov-mobile-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    color: #15152f;
  }

  .mobile-hero p,
  .ov-mobile-hero p {
    margin: 0;
    font-size: 14px;
    color: #8b8fa8;
    font-weight: 600;
  }

  .mobile-actions,
  .ov-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .mobile-action-card,
  .ov-mobile-action {
    width: 100%;
    min-height: 68px;
    border: 1px solid rgba(109, 74, 255, 0.12);
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: right;
    box-shadow: 0 8px 24px rgba(21, 21, 47, 0.04);
    box-sizing: border-box;
  }

  .mobile-action-icon,
  .ov-mobile-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f2edff;
    color: #6d4aff;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    font-size: 20px;
  }

  .mobile-action-card strong,
  .ov-mobile-action-copy strong {
    display: block;
    font-size: 14px;
    color: #15152f;
    line-height: 1.3;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-action-card small,
  .ov-mobile-action-copy small {
    display: block;
    font-size: 11px;
    color: #8b8fa8;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-composer,
  .guest-compose.home-compose.mobile-composer {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: 430px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(109, 74, 255, 0.14);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(109, 74, 255, 0.16);
    padding: 12px;
    z-index: 100;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .mobile-composer textarea,
  .guest-compose.home-compose.mobile-composer .compose-input {
    grid-column: 1 / 3;
    width: 100%;
    min-height: 48px;
    max-height: 100px;
    border: 0;
    outline: 0;
    resize: none;
    font-size: 15px;
    color: #15152f;
    background: transparent;
    text-align: right;
    font-family: inherit;
    box-sizing: border-box;
  }

  .mobile-composer-actions,
  .guest-compose.home-compose.mobile-composer .home-compose-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-composer-actions button,
  .guest-compose.home-compose.mobile-composer .home-compose-tool {
    border: 0;
    border-radius: 999px;
    background: #f6f2ff;
    color: #6d4aff;
    padding: 9px 12px;
    font-weight: 700;
  }

  .mobile-send,
  .guest-compose.home-compose.mobile-composer .compose-send {
    margin-right: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: #6d4aff;
    color: #ffffff;
    font-size: 18px;
  }

  .mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 35, 0.35);
    z-index: 40;
    display: none;
  }

  .mobile-app.is-mobile-sidebar-open .mobile-drawer-backdrop {
    display: block;
  }

  .mobile-app .guest-sidebar.mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 82vw;
    max-width: 340px;
    background: #ffffff;
    z-index: 45;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -20px 0 60px rgba(20, 20, 50, 0.18);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .mobile-app.is-mobile-sidebar-open .guest-sidebar.mobile-drawer {
    transform: translateX(0);
  }

  .mobile-app .guest-main-topbar,
  .mobile-app .guest-conversation-card:not(.is-home-conversation) {
    display: none;
  }

  .mobile-app .guest-quick-grid,
  .mobile-app .home-quick-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Independent mobile app shell */
.mobile-app {
  display: none;
}

@media (max-width: 768px) {
  .desktop-app {
    display: none !important;
  }

  .mobile-app {
    display: flex !important;
    flex-direction: column;
    min-height: 100dvh;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    background: #ffffff;
    color: #15152f;
    direction: rtl;
    box-sizing: border-box;
    padding-bottom: 150px;
  }

  .mobile-header {
    height: 64px;
    padding: 0 16px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 0;
    box-shadow: none;
  }

  .mobile-logo,
  .mobile-brand-mark,
  .mobile-hero-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-icon-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    background: #f6f2ff;
    color: #6d4aff;
    display: grid;
    place-items: center;
    font-size: 18px;
  }

  .mobile-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
  }

  .mobile-menu-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    background: #f6f2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
  }

  .mobile-menu-btn span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #6d4aff;
    display: block;
  }

  .mobile-home {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 16px 14px 0;
    box-sizing: border-box;
  }

  .mobile-hero,
  .ov-mobile-hero {
    text-align: center;
    padding: 18px 0 20px;
  }

  .mobile-hero-logo,
  .ov-mobile-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
  }

  .mobile-hero h1,
  .ov-mobile-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    color: #15152f;
  }

  .mobile-hero p,
  .ov-mobile-hero p {
    margin: 0;
    font-size: 14px;
    color: #8b8fa8;
    font-weight: 600;
  }

  .mobile-actions,
  .ov-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .mobile-action-card,
  .ov-mobile-action {
    width: 100%;
    min-height: 68px;
    border: 1px solid rgba(109, 74, 255, 0.12);
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: right;
    box-shadow: 0 8px 24px rgba(21, 21, 47, 0.04);
    box-sizing: border-box;
  }

  .mobile-action-icon,
  .ov-mobile-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f2edff;
    color: #6d4aff;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    font-size: 20px;
  }

  .mobile-action-card strong,
  .ov-mobile-action-copy strong {
    display: block;
    font-size: 14px;
    color: #15152f;
    line-height: 1.3;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-action-card small,
  .ov-mobile-action-copy small {
    display: block;
    font-size: 11px;
    color: #8b8fa8;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-composer,
  .guest-compose.home-compose.mobile-composer {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: 430px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(109, 74, 255, 0.14);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(109, 74, 255, 0.16);
    padding: 12px;
    z-index: 100;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .mobile-composer textarea,
  .guest-compose.home-compose.mobile-composer .compose-input {
    grid-column: 1 / 3;
    width: 100%;
    min-height: 48px;
    max-height: 100px;
    border: 0;
    outline: 0;
    resize: none;
    font-size: 15px;
    color: #15152f;
    background: transparent;
    text-align: right;
    font-family: inherit;
    box-sizing: border-box;
  }

  .mobile-composer-actions,
  .guest-compose.home-compose.mobile-composer .home-compose-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-composer-actions button,
  .guest-compose.home-compose.mobile-composer .home-compose-tool {
    border: 0;
    border-radius: 999px;
    background: #f6f2ff;
    color: #6d4aff;
    padding: 9px 12px;
    font-weight: 700;
  }

  .mobile-send,
  .guest-compose.home-compose.mobile-composer .compose-send {
    margin-right: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: #6d4aff;
    color: #ffffff;
    font-size: 18px;
  }

  .mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 35, 0.35);
    z-index: 40;
    display: none;
  }

  .mobile-app.is-mobile-sidebar-open .mobile-drawer-backdrop {
    display: block;
  }

  .mobile-app .guest-sidebar.mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 82vw;
    max-width: 340px;
    background: #ffffff;
    z-index: 45;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -20px 0 60px rgba(20, 20, 50, 0.18);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .mobile-app.is-mobile-sidebar-open .guest-sidebar.mobile-drawer {
    transform: translateX(0);
  }

  .mobile-app .guest-main-topbar,
  .mobile-app .guest-conversation-card:not(.is-home-conversation) {
    display: none;
  }

  .mobile-app .guest-quick-grid,
  .mobile-app .home-quick-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

body.orlixor-guest-page {
  font-family: "Cairo", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(123, 92, 255, 0.15), transparent 22%),
    radial-gradient(circle at top left, rgba(123, 92, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #fefeff 0%, #f6f3ff 100%);
  color: #17173a;
  overflow-x: hidden;
}

body[data-workspace-mode="home"] {
  height: 100vh;
  overflow: visible;
  background: #fbfbff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.guest-root {
  min-height: 100vh;
}

body[data-workspace-mode="home"] .guest-root {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.guest-shell {
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 28px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 286px;
  gap: 18px;
  align-items: start;
  direction: ltr;
}

.guest-shell.is-home-workspace {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  gap: 0;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
}

.guest-shell.theme-dark {
  color: #eff0ff;
}

.guest-shell svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-sidebar,
.guest-main,
.guest-sidepanel {
  direction: rtl;
  text-align: right;
  border: 1px solid rgba(111, 76, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 24px 56px rgba(31, 44, 93, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.guest-shell.theme-dark .guest-sidebar,
.guest-shell.theme-dark .guest-main,
.guest-shell.theme-dark .guest-sidepanel {
  background: rgba(18, 18, 40, 0.92);
  border-color: rgba(151, 125, 255, 0.18);
  box-shadow:
    0 24px 56px rgba(6, 8, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.guest-sidebar {
  position: sticky;
  top: 18px;
  min-height: calc(100vh - 46px);
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guest-shell.is-home-workspace .guest-sidebar {
  position: sticky;
  left: 0;
  gap: 10px;
  overflow: hidden;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  padding: 24px 16px 18px;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-right: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 0;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.94);
  box-sizing: border-box;
}

.guest-shell.is-home-workspace .guest-main {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.78);
  padding: 24px 56px 24px;
  gap: 0;
  align-content: stretch;
  grid-template-rows: 58px 270px 112px minmax(30px, 1fr) 164px 34px;
}

.guest-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.guest-brand-combo {
  width: 168px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  direction: ltr;
}

.guest-brand-word {
  color: #101936;
  font-size: 1.95rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.guest-brand .guest-brand-symbol {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  object-fit: contain;
}

.guest-brand img {
  width: 168px;
  max-width: 100%;
  height: auto;
  display: block;
}

.guest-shell.is-home-workspace .guest-brand img {
  width: 150px;
}

.guest-shell.is-home-workspace .guest-brand-full.guest-brand-combo {
  width: 150px;
  min-height: 52px;
  gap: 7px;
}

.guest-shell.is-home-workspace .guest-brand .guest-brand-symbol {
  width: 39px;
  height: 39px;
  flex-basis: 39px;
  object-fit: contain;
  object-position: center;
}

.guest-shell.is-home-workspace .guest-brand-word {
  font-size: 1.8rem;
}

.guest-new-chat {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  background: linear-gradient(135deg, #7b5cff, #5d37ff);
  box-shadow: 0 18px 34px rgba(111, 76, 255, 0.24);
  font-weight: 800;
}

.guest-shell.is-home-workspace .guest-new-chat {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 0.78rem;
  box-shadow: 0 12px 24px rgba(111, 76, 255, 0.2);
}

.guest-projects-panel {
  display: grid;
  gap: 8px;
}

.guest-projects-toggle {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(111, 76, 255, 0.18);
  border-radius: 14px;
  padding: 7px 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  color: #2a2354;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(111, 76, 255, 0.08);
  text-align: start;
}

.guest-projects-toggle.has-active-project {
  border-color: rgba(111, 76, 255, 0.34);
  background: linear-gradient(135deg, rgba(111, 76, 255, 0.11), rgba(255, 255, 255, 0.95));
}

.guest-projects-toggle-icon,
.guest-project-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: rgba(111, 76, 255, 0.1);
}

.guest-projects-toggle-icon svg,
.guest-project-icon svg,
.guest-projects-toggle i svg,
.guest-project-create svg,
.guest-project-new-chat svg,
.guest-project-conversation svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.guest-projects-toggle-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.guest-projects-toggle-copy strong {
  color: #1b1741;
  font-size: 0.9rem;
  font-weight: 900;
}

.guest-projects-toggle-copy small {
  overflow: hidden;
  color: #8c89ad;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.guest-projects-card {
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 18px;
  padding: 10px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(46, 31, 98, 0.08);
}

.guest-projects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.guest-projects-head strong {
  color: #201a49;
  font-size: 0.86rem;
  font-weight: 900;
}

.guest-project-create,
.guest-projects-load,
.guest-project-new-chat {
  border: 0;
  color: #6d4aff;
  background: rgba(111, 76, 255, 0.08);
  font-weight: 900;
}

.guest-project-create {
  min-height: 30px;
  border-radius: 10px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
}

.guest-project-create:disabled {
  opacity: 0.6;
  cursor: wait;
}

.guest-projects-list {
  max-height: min(34vh, 320px);
  overflow: auto;
  display: grid;
  gap: 7px;
  padding-inline-end: 2px;
}

.guest-project-item {
  display: grid;
  gap: 8px;
}

.guest-project-row {
  width: 100%;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  color: #211b4b;
  background: rgba(247, 244, 255, 0.72);
  text-align: start;
}

.guest-project-item.is-active .guest-project-row {
  border-color: rgba(111, 76, 255, 0.28);
  background: linear-gradient(135deg, rgba(111, 76, 255, 0.13), rgba(255, 255, 255, 0.98));
}

.guest-project-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.guest-project-copy strong {
  overflow: hidden;
  color: #1e1848;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.guest-project-copy small {
  overflow: hidden;
  color: #9290ad;
  font-size: 0.64rem;
  font-weight: 750;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.guest-project-conversations {
  margin-inline-start: 6px;
  padding: 7px;
  border-radius: 14px;
  display: grid;
  gap: 7px;
  background: rgba(244, 240, 255, 0.64);
}

.guest-project-new-chat,
.guest-projects-load {
  min-height: 31px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.66rem;
}

.guest-project-conversation {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #2a2354;
  background: rgba(255, 255, 255, 0.86);
  text-align: start;
}

.guest-project-conversation span {
  grid-row: span 2;
  color: #6d4aff;
}

.guest-project-conversation strong,
.guest-project-conversation small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.guest-project-conversation strong {
  font-size: 0.7rem;
  font-weight: 900;
}

.guest-projects-view-all {
  min-height: 32px;
  border: 0;
  border-radius: 11px;
  color: #6d4aff;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 900;
}

.guest-project-conversation small,
.guest-projects-note,
.guest-projects-empty {
  color: #8d8aa8;
  font-size: 0.65rem;
  font-weight: 750;
}

.guest-projects-note,
.guest-projects-empty {
  border-radius: 12px;
  padding: 10px;
  line-height: 1.7;
  background: rgba(247, 244, 255, 0.7);
  text-align: center;
}

.guest-projects-empty.is-error {
  color: #b42342;
  background: rgba(255, 241, 243, 0.86);
}

.guest-shell.theme-dark .guest-projects-toggle,
.guest-shell.theme-dark .guest-projects-card,
.guest-shell.theme-dark .guest-project-conversation {
  color: #f1efff;
  border-color: rgba(151, 125, 255, 0.18);
  background: rgba(31, 28, 58, 0.88);
}

.guest-shell.theme-dark .guest-project-row,
.guest-shell.theme-dark .guest-project-conversations,
.guest-shell.theme-dark .guest-projects-note,
.guest-shell.theme-dark .guest-projects-empty {
  background: rgba(151, 125, 255, 0.11);
}

.guest-shell.theme-dark .guest-projects-toggle-copy strong,
.guest-shell.theme-dark .guest-projects-head strong,
.guest-shell.theme-dark .guest-project-copy strong {
  color: #f7f4ff;
}

.guest-search-box {
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(111, 76, 255, 0.11);
  background: rgba(255, 255, 255, 0.95);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8890ae;
}

.guest-shell.is-home-workspace .guest-search-box {
  min-height: 42px;
  border-radius: 10px;
  padding: 0 12px;
}

.guest-shell.is-home-workspace .guest-history-item {
  min-height: 34px;
  padding: 5px 8px;
  border-radius: 9px;
  gap: 7px;
  grid-template-columns: auto minmax(0, 1fr);
}

.guest-shell.is-home-workspace .guest-history-item-wrap {
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 2px;
}

.guest-shell.is-home-workspace .guest-history-more {
  width: 18px;
  height: 18px;
  border-radius: 7px;
}

.guest-shell.is-home-workspace .thread-actions-menu {
  left: 2px;
  top: calc(100% + 4px);
  width: 126px;
  padding: 5px;
}

.guest-shell.is-home-workspace .thread-actions-menu button {
  min-height: 27px;
  padding: 0 7px;
  font-size: 0.62rem;
}

.guest-shell.is-home-workspace .guest-history-copy strong {
  font-size: 0.72rem;
  line-height: 1.25;
}

.guest-shell.is-home-workspace .guest-history-copy small {
  font-size: 0.64rem;
  line-height: 1.15;
}

.guest-shell.theme-dark .guest-search-box {
  background: rgba(28, 28, 54, 0.92);
  border-color: rgba(151, 125, 255, 0.16);
  color: #a8abd0;
}

.guest-search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: 0.95rem;
}

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

.guest-nav-link {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  color: #1c214b;
  font-size: 1.03rem;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.guest-shell.theme-dark .guest-nav-link {
  color: #eff0ff;
}

.guest-nav-link:hover {
  background: rgba(111, 76, 255, 0.06);
  transform: translateX(2px);
}

.guest-nav-link.is-active {
  color: #6549ff;
  background: linear-gradient(135deg, rgba(111, 76, 255, 0.14), rgba(111, 76, 255, 0.08));
}

.guest-history-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-inline-end: 4px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.guest-shell.is-home-workspace .guest-history-wrap {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 2px;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: none;
}

.guest-shell.is-home-workspace .guest-history-wrap::-webkit-scrollbar,
.guest-shell.is-home-workspace .guest-sidepanel::-webkit-scrollbar,
.guest-shell.is-home-workspace .guest-conversation-card::-webkit-scrollbar {
  display: none;
}

.guest-history-group {
  display: grid;
  gap: 8px;
}

.guest-shell.is-home-workspace .guest-history-group {
  gap: 4px;
}

.guest-history-group h3 {
  margin: 0;
  padding: 0 6px;
  color: #9ca2bf;
  font-size: 0.92rem;
  font-weight: 800;
}

.guest-shell.is-home-workspace .guest-history-group h3 {
  padding: 0 4px;
  font-size: 0.74rem;
  line-height: 1.15;
}

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

.guest-shell.is-home-workspace .guest-history-list {
  gap: 2px;
}

.guest-history-item-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 4px;
}

.guest-history-item {
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: transparent;
  padding: 12px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: #2a315f;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
  cursor: pointer;
}

.guest-shell.theme-dark .guest-history-item {
  background: transparent;
  color: #e8e9fb;
}

.guest-history-item:hover {
  background: rgba(111, 76, 255, 0.045);
}

.guest-history-item-wrap.is-active .guest-history-item {
  background: linear-gradient(135deg, rgba(111, 76, 255, 0.12), rgba(111, 76, 255, 0.05));
  box-shadow: inset 0 0 0 1px rgba(111, 76, 255, 0.1);
}

.guest-history-more {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #8d93b3;
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.guest-history-more:hover,
.guest-history-item-wrap.menu-open .guest-history-more {
  color: #6547ff;
  background: rgba(111, 76, 255, 0.1);
}

.guest-history-more svg {
  width: 15px;
  height: 15px;
}

.thread-actions-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 8px;
  z-index: 80;
  width: 142px;
  padding: 6px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(31, 44, 93, 0.16);
  direction: rtl;
}

.thread-actions-menu button {
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #1f2747;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.thread-actions-menu button:hover {
  background: rgba(111, 76, 255, 0.075);
  color: #6547ff;
}

.thread-actions-menu button.danger {
  color: #ef334b;
}

.thread-actions-menu button.danger:hover {
  background: rgba(239, 51, 75, 0.08);
}

.thread-actions-menu i {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
}

.thread-actions-menu svg {
  width: 14px;
  height: 14px;
}

.guest-history-dot,
.guest-history-badge {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #8d93b3;
}

.guest-shell.is-home-workspace .guest-history-dot,
.guest-shell.is-home-workspace .guest-history-badge {
  width: 16px;
  height: 16px;
}

.guest-shell.is-home-workspace .guest-history-dot svg,
.guest-shell.is-home-workspace .guest-history-badge svg {
  width: 15px;
  height: 15px;
}

.guest-history-copy {
  display: grid;
  gap: 3px;
  text-align: right;
}

.guest-history-copy strong {
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 800;
}

.guest-history-copy small {
  color: #8d93b3;
  font-size: 0.8rem;
}

.guest-upgrade-card,
.guest-user-card {
  border: 1px solid rgba(111, 76, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px rgba(111, 76, 255, 0.08);
}

.guest-shell.theme-dark .guest-upgrade-card,
.guest-shell.theme-dark .guest-user-card {
  background: rgba(28, 30, 54, 0.95);
  border-color: rgba(151, 125, 255, 0.14);
}

.guest-upgrade-card {
  width: 100%;
  border: 1px solid rgba(111, 76, 255, 0.08);
  font-family: inherit;
  text-align: right;
  color: inherit;
  cursor: pointer;
  padding: 18px 16px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
}

.guest-shell.is-home-workspace .guest-upgrade-card,
.guest-shell.is-home-workspace .guest-user-card {
  border-radius: 12px;
}

.guest-shell.is-home-workspace .guest-user-card.is-member {
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  gap: 8px;
  box-shadow: none;
  background: transparent;
  cursor: default;
}

.guest-shell.is-home-workspace .guest-user-card.is-member .guest-user-avatar {
  position: relative;
  border-radius: 50%;
  color: #674cff;
  background: rgba(111, 76, 255, 0.12);
}

.guest-shell.is-home-workspace .guest-user-card.is-member .guest-user-avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #25c76f;
}

.guest-shell.is-home-workspace .guest-upgrade-card {
  min-height: 58px;
  padding: 8px 10px;
  grid-template-columns: 34px 1fr;
  gap: 8px;
}

.guest-shell.is-home-workspace .guest-user-card {
  min-height: 64px;
  padding: 10px 12px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
}

.guest-shell.is-home-workspace .upgrade-mark,
.guest-shell.is-home-workspace .guest-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.guest-shell.is-home-workspace .guest-upgrade-card strong,
.guest-shell.is-home-workspace .guest-user-copy strong {
  margin-bottom: 2px;
  font-size: 0.76rem;
  line-height: 1.35;
}

.guest-shell.is-home-workspace .guest-upgrade-card span,
.guest-shell.is-home-workspace .guest-user-copy small {
  font-size: 0.62rem;
  line-height: 1.35;
}

.guest-shell.is-home-workspace .guest-user-action {
  padding: 5px 8px;
  font-size: 0.68rem;
  white-space: nowrap;
}

.guest-user-menu {
  width: 22px;
  height: 22px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: #8b92ae;
  cursor: pointer;
}

.guest-user-menu:hover {
  color: #6547ff;
  background: rgba(111, 76, 255, 0.1);
}

.guest-user-menu svg {
  width: 16px;
  height: 16px;
}

.upgrade-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #674cff;
  background: linear-gradient(180deg, rgba(111, 76, 255, 0.14), rgba(111, 76, 255, 0.05));
}

.guest-upgrade-card strong,
.guest-user-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.03rem;
}

.guest-upgrade-card span,
.guest-user-copy small {
  color: #8087a6;
  font-size: 0.85rem;
  line-height: 1.7;
}

.guest-user-card {
  margin-top: auto;
  border: 0;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: right;
}

.guest-user-card.is-guest {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 255, 0.96));
}

.guest-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #684cff;
  background: linear-gradient(180deg, rgba(111, 76, 255, 0.14), rgba(111, 76, 255, 0.05));
  font-weight: 900;
}

.guest-user-copy {
  display: grid;
}

.guest-user-action {
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7b5cff, #5d37ff);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.guest-user-card.is-orlixor-guest {
  position: relative;
  min-height: 128px;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  direction: ltr;
  display: block;
  background:
    radial-gradient(circle at 18% 20%, rgba(123, 92, 255, 0.075) 0 2px, transparent 2.5px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 255, 0.98));
  background-size: 14px 14px, auto;
  box-shadow: 0 16px 34px rgba(111, 76, 255, 0.1);
}

.guest-user-card.is-orlixor-guest::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 40px;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(123, 92, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.guest-user-card.is-orlixor-guest .guest-user-head {
  position: absolute;
  top: 12px;
  left: 116px;
  right: 56px;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  direction: rtl;
}

.guest-user-card.is-orlixor-guest .guest-user-head strong {
  margin: 0;
  color: #151936;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 900;
}

.guest-user-card.is-orlixor-guest .guest-user-head small {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 100% 50%, #7b5cff 0 2px, transparent 2.5px),
    linear-gradient(90deg, #7b5cff, #7b5cff);
  background-size: 100% 100%, calc(100% - 10px) 3px;
  background-position: center, left center;
  background-repeat: no-repeat;
}

.guest-user-card.is-orlixor-guest .guest-user-lines {
  position: absolute;
  top: 40px;
  left: 116px;
  right: 58px;
  z-index: 1;
  display: grid;
  gap: 2px;
  direction: rtl;
}

.guest-user-card.is-orlixor-guest .guest-user-lines span {
  min-height: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 4px;
  color: #737897;
  font-size: 0.6rem;
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
}

.guest-user-card.is-orlixor-guest .guest-user-lines i {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #6d4cff;
  background: rgba(123, 92, 255, 0.09);
}

.guest-user-card.is-orlixor-guest .guest-user-lines svg {
  width: 11px;
  height: 11px;
}

.guest-user-card.is-orlixor-guest .guest-user-avatar {
  position: absolute;
  right: 14px;
  top: 58px;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #6d4cff;
  background:
    radial-gradient(circle at 45% 35%, rgba(255, 255, 255, 0.88), transparent 34%),
    linear-gradient(180deg, rgba(123, 92, 255, 0.16), rgba(123, 92, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.guest-user-card.is-orlixor-guest .guest-user-avatar svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.4;
}

.guest-user-card.is-orlixor-guest .guest-user-action {
  position: absolute;
  left: 14px;
  top: 61px;
  z-index: 1;
  min-height: 44px;
  width: 94px;
  max-width: 94px;
  border-radius: 15px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(111, 76, 255, 0.23);
}

.guest-user-card.is-orlixor-guest .guest-user-action svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

.guest-shell.is-home-workspace .guest-user-card.is-orlixor-guest {
  min-height: 64px;
  padding: 10px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  direction: rtl;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
}

.guest-shell.is-home-workspace .guest-user-card.is-orlixor-guest::after {
  display: none;
}

.guest-shell.is-home-workspace .guest-user-card.is-orlixor-guest .guest-user-head {
  position: static;
  grid-column: 2;
  grid-row: 1;
  justify-items: start;
  gap: 0;
  min-width: 0;
}

.guest-shell.is-home-workspace .guest-user-card.is-orlixor-guest .guest-user-head strong {
  font-size: 0.8rem;
}

.guest-shell.is-home-workspace .guest-user-card.is-orlixor-guest .guest-user-head small,
.guest-shell.is-home-workspace .guest-user-card.is-orlixor-guest .guest-user-lines,
.guest-shell.is-home-workspace .guest-user-card.is-orlixor-guest .guest-user-lines span {
  display: none;
}

.guest-shell.is-home-workspace .guest-user-card.is-orlixor-guest .guest-user-avatar {
  position: static;
  grid-column: 1;
  grid-row: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.guest-shell.is-home-workspace .guest-user-card.is-orlixor-guest .guest-user-avatar svg {
  width: 20px;
  height: 20px;
}

.guest-shell.is-home-workspace .guest-user-card.is-orlixor-guest .guest-user-action {
  position: static;
  grid-column: 2 / 4;
  grid-row: 2;
  justify-self: start;
  min-height: 28px;
  width: auto;
  max-width: none;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.68rem;
}

.guest-main {
  min-height: calc(100vh - 46px);
  padding: 24px 28px 22px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.guest-main-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.guest-shell.is-home-workspace .guest-main-topbar {
  align-items: center;
  gap: 10px;
  min-height: 106px;
}

.guest-shell.is-home-workspace .ai-switcher {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.ai-switcher {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #252a52;
  font-weight: 800;
  cursor: pointer;
}

.model-switcher-wrap {
  position: relative;
  display: inline-flex;
  z-index: 20;
}

.model-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(286px, calc(100vw - 24px));
  max-height: min(84vh, 430px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px;
  border: 1px solid rgba(111, 76, 255, 0.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(28, 33, 67, 0.04);
  direction: rtl;
}

.model-menu::-webkit-scrollbar {
  display: none;
}

.model-menu::after {
  content: none !important;
  display: none !important;
}

.model-menu::before {
  content: none !important;
  display: none !important;
}

.model-menu-head {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 7px;
  border-bottom: 1px solid rgba(111, 76, 255, 0.08);
  text-align: center;
}

.model-menu-head > span {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #6c47ff;
  background: transparent;
}

.model-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #6c47ff;
  background: rgba(111, 76, 255, 0.08);
}

.model-menu-head strong,
.model-option-copy strong {
  display: block;
  color: #1c2143;
  font-weight: 900;
}

.model-menu-head strong {
  font-size: 0.82rem;
}

.model-menu-head small,
.model-option-copy small {
  color: #8c94ad;
  font-size: 0.59rem;
  line-height: 1.42;
}

.model-menu-head b {
  display: none;
}

.model-menu-list {
  display: grid;
  gap: 5px;
  padding: 6px 0 4px;
}

.model-option {
  width: 100%;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 14px;
  padding: 6px 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  direction: ltr;
  text-align: right;
  cursor: pointer;
  min-height: 54px;
}

.model-option.is-disabled {
  opacity: 0.76;
  cursor: not-allowed;
  border-style: dashed;
}

.model-option.active {
  border-color: #6c47ff;
  background: rgba(111, 76, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(111, 76, 255, 0.22);
}

.model-option-radio {
  width: 15px;
  height: 15px;
  border: 1px solid rgba(111, 76, 255, 0.2);
  border-radius: 999px;
}

.model-option.active .model-option-radio {
  border-color: #6c47ff;
  background: #6c47ff;
  position: relative;
}

.model-option.active .model-option-radio::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.52rem;
  font-weight: 900;
}

.model-option-copy em {
  display: none;
}

.model-option-copy {
  direction: rtl;
  min-width: 0;
}

.model-option-copy strong {
  font-size: 0.75rem;
  line-height: 1.28;
}

.model-option-copy small {
  line-height: 1.34;
}

.model-option-badge {
  display: inline-flex;
  margin-inline-start: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  color: #6c47ff;
  background: rgba(111, 76, 255, 0.1);
  font-size: 0.52rem;
  vertical-align: middle;
}

.model-turbo .model-option-icon {
  color: #10b981;
  background: rgba(16, 185, 129, 0.13);
}

.model-pro .model-option-icon {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}

.model-creative .model-option-icon {
  color: #ec4899;
  background: rgba(236, 72, 153, 0.12);
}

.model-alpha .model-option-icon {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

.model-menu-note {
  margin: 0;
  padding: 7px 8px;
  border-radius: 11px;
  color: #6c47ff;
  background: rgba(111, 76, 255, 0.08);
  font-size: 0.58rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guest-shell.theme-dark .ai-switcher {
  background: rgba(30, 32, 58, 0.95);
  border-color: rgba(151, 125, 255, 0.14);
  color: #edf0ff;
}

.ai-switcher-mark {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
}

.ai-switcher-mark img,
.guest-message-mark img,
.ai-card-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.guest-hero-copy {
  flex: 1;
  min-width: min(100%, 420px);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}

.guest-hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  line-height: 1.2;
  font-weight: 900;
}

.guest-shell.is-home-workspace .guest-hero-copy h1 {
  font-size: 2.15rem;
  line-height: 1.1;
}

.guest-shell.is-home-workspace .guest-hero-copy {
  gap: 3px;
}

.guest-shell.is-home-workspace .guest-hero-copy p {
  max-width: 620px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.guest-hero-copy p {
  margin: 0;
  max-width: 720px;
  color: #7f86a4;
  font-size: 1rem;
  line-height: 1.9;
}

.guest-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.guest-shell.is-home-workspace .guest-quick-grid {
  gap: 12px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.guest-shell.is-home-workspace .guest-quick-card {
  min-height: 76px;
  padding: 11px 14px;
  border-radius: 10px;
  gap: 10px;
}

.guest-shell.is-home-workspace .guest-quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.guest-shell.is-home-workspace .guest-quick-copy strong {
  font-size: 0.86rem;
  line-height: 1.35;
}

.guest-shell.is-home-workspace .guest-quick-copy span {
  font-size: 0.7rem;
  line-height: 1.35;
}

.guest-quick-card {
  min-height: 106px;
  border: 1px solid rgba(111, 76, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  text-align: right;
  color: #1d2248;
  box-shadow: 0 12px 30px rgba(31, 44, 93, 0.035);
}

.guest-shell.theme-dark .guest-quick-card {
  background: rgba(28, 30, 54, 0.95);
  border-color: rgba(151, 125, 255, 0.14);
  color: #f0f1ff;
}

.guest-quick-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #684cff;
  background: rgba(111, 76, 255, 0.07);
}

.guest-quick-copy {
  display: grid;
  gap: 5px;
}

.guest-quick-copy strong {
  font-size: 1.08rem;
  font-weight: 800;
}

.guest-quick-copy span {
  color: #878daa;
  font-size: 0.9rem;
  line-height: 1.75;
}

.guest-conversation-card {
  border: 1px solid rgba(111, 76, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  padding: 26px 24px 22px;
  box-shadow: 0 20px 40px rgba(31, 44, 93, 0.04);
}

.guest-conversation-card.is-home-conversation {
  padding-top: 22px;
}

.guest-scroll-bottom {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: clamp(112px, 17vh, 172px);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(109, 74, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #6d4aff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px rgba(39, 33, 89, 0.13);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 2300;
}

.guest-scroll-bottom.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, 0);
}

.guest-scroll-bottom svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
}

.guest-scroll-bottom:hover {
  border-color: rgba(109, 74, 255, 0.34);
  box-shadow: 0 16px 34px rgba(109, 74, 255, 0.18);
}

.guest-shell.theme-dark .guest-scroll-bottom,
.mobile-app.theme-dark .guest-scroll-bottom {
  background: rgba(35, 36, 64, 0.96);
  border-color: rgba(151, 125, 255, 0.24);
  color: #a995ff;
}

@media (max-width: 768px) {
  .guest-scroll-bottom {
    left: 50%;
    right: auto;
    bottom: calc(104px + env(safe-area-inset-bottom));
    width: 38px;
    height: 38px;
    transform: translate(-50%, 8px);
  }

  .guest-scroll-bottom.is-visible {
    transform: translate(-50%, 0);
  }
}

.guest-shell.is-home-workspace .guest-conversation-card {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 18px 14px;
  border-radius: 10px;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}

.guest-shell.is-home-workspace .guest-messages {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: 100%;
  padding-top: 2px;
  direction: ltr;
}

.guest-shell.is-home-workspace .guest-message-row.user {
  align-self: flex-end;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  width: min(44vw, 460px);
  margin-left: auto;
  margin-right: clamp(40px, 7vw, 118px);
  direction: ltr;
}

.guest-shell.is-home-workspace .guest-message-row.user .guest-message.user {
  align-self: flex-end;
  width: 100%;
  min-height: 52px;
  padding: 13px 18px 10px;
  border-radius: 14px;
  display: grid;
  justify-items: end;
  gap: 7px;
  background: linear-gradient(135deg, rgba(126, 89, 255, 0.12), rgba(126, 89, 255, 0.06));
  color: #1b2142;
  box-shadow: none;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: right;
  direction: rtl;
}

.guest-shell.is-home-workspace .guest-message-row.user .guest-message.user small {
  color: #8d93b3;
  font-size: 0.72rem;
  font-weight: 700;
}

.guest-message-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #684cff;
  background: rgba(111, 76, 255, 0.12);
  font-weight: 900;
}

.guest-message-avatar img,
.guest-user-avatar img,
.home-avatar-image img,
.settings-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.guest-shell.is-home-workspace .guest-message.assistant {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-self: flex-start;
  width: min(46vw, 560px);
  max-width: calc(100% - 72px);
  margin-left: clamp(38px, 6vw, 104px);
  margin-right: auto;
  direction: ltr;
}

.guest-shell.is-home-workspace .guest-message-mark {
  width: 34px;
  height: 34px;
}

.guest-shell.is-home-workspace .guest-message-body {
  width: 100%;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 42px rgba(31, 44, 93, 0.035);
  padding: 20px 22px 17px;
  direction: rtl;
  text-align: right;
}

.guest-shell.is-home-workspace .guest-message-body h3 {
  display: block;
  margin: 0;
  color: #111827;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.9;
}

.guest-shell.is-home-workspace .guest-message-body ul {
  margin: 0;
  color: #111827;
  font-size: 0.94rem;
  line-height: 2;
  padding-inline-start: 0;
  list-style: none;
}

.guest-shell.is-home-workspace .guest-message-body h3 + ul {
  margin-top: 2px;
}

.guest-shell.is-home-workspace .guest-message-body li {
  margin: 0 0 0.35rem;
}

.guest-shell.is-home-workspace .guest-message-actions {
  justify-content: flex-start;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(111, 76, 255, 0.08);
  direction: rtl;
  gap: 7px;
  align-items: center;
}

.guest-shell.is-home-workspace .guest-message-actions .feedback-chip {
  width: auto;
  height: auto;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.guest-shell.is-home-workspace .guest-message-actions .feedback-btn {
  width: 30px;
  height: 30px;
}

.guest-shell.is-home-workspace .ghost-action {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #7c86a6;
}

.guest-shell.is-home-workspace .ghost-action.text-action {
  width: auto;
  min-width: 0;
  padding: 0 9px;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
}

.guest-shell.theme-dark.is-home-workspace .guest-message.user {
  background: rgba(255, 255, 255, 0.1);
  color: #f7f7ff;
}

.guest-shell.theme-dark.is-home-workspace .guest-message-body {
  background: rgba(28, 30, 54, 0.92);
  border-color: rgba(151, 125, 255, 0.14);
}

.guest-shell.theme-dark.is-home-workspace .guest-conversation-card,
.guest-shell.theme-dark.is-home-workspace .guest-conversation-card.is-home-conversation {
  background: transparent;
  border-color: transparent;
}

.guest-shell.theme-dark.is-home-workspace .guest-message-body ul {
  color: #f4f5ff;
}

.guest-shell.theme-dark.is-home-workspace .guest-message-body h3 {
  color: #f7f7ff;
}

.guest-shell.is-home-workspace .guest-compose {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  border-radius: 10px;
  padding: 8px;
}

.guest-shell.is-home-workspace .compose-attach,
.guest-shell.is-home-workspace .compose-send {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.guest-shell.is-home-workspace .guest-compose-note {
  font-size: 0.76rem;
}

.guest-shell.is-home-workspace .guest-sidepanel {
  display: none;
}

.home-main-topbar {
  direction: ltr;
  flex-wrap: nowrap;
  grid-row: 1;
}

.guest-shell.is-home-workspace .home-main-topbar {
  min-height: 58px;
  align-items: center;
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher {
  width: 204px;
  min-height: 52px;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  font-size: 0.88rem;
}

.home-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  direction: ltr;
}

.balance-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.guest-shell.is-home-workspace .home-top-actions .ghost-balance {
  min-width: 178px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 13px;
  background: rgba(247, 244, 255, 0.96);
  font-size: 0.88rem;
  box-shadow: 0 14px 30px rgba(88, 70, 180, 0.06);
}

.balance-caret {
  color: #6f789a;
  font-size: 0.95rem;
  line-height: 1;
  transform: translateY(-1px);
}

.balance-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 45;
  width: 196px;
  padding: 17px 16px 15px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 55px rgba(33, 34, 72, 0.14);
  color: #1a2042;
  text-align: center;
  direction: rtl;
}

.balance-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 24px;
  width: 14px;
  height: 14px;
  background: inherit;
  border-top: 1px solid rgba(111, 76, 255, 0.1);
  border-right: 1px solid rgba(111, 76, 255, 0.1);
  transform: rotate(-45deg);
}

.balance-popover-label,
.balance-popover-hint,
.balance-popover p {
  display: block;
  color: #8d93b3;
  font-size: 0.68rem;
  font-weight: 800;
}

.balance-popover strong {
  display: block;
  margin-top: 6px;
  color: #684cff;
  font-size: 1.08rem;
  font-weight: 950;
}

.balance-popover-hint {
  margin-top: 13px;
}

.balance-timer,
.daily-timer {
  direction: ltr;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 9px 10px 7px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(111, 76, 255, 0.12), rgba(111, 76, 255, 0.05));
  color: #684cff;
  font-weight: 800;
  font-size: 22px;
}

.balance-timer b,
.balance-timer i,
.daily-timer span {
  font: inherit;
  font-weight: inherit;
  font-style: normal;
}

.balance-timer-labels,
.daily-labels {
  direction: ltr;
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 4px;
  color: #9aa0bd;
  font-size: 13px;
  font-weight: 700;
}

.balance-popover p {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(111, 76, 255, 0.08);
  line-height: 1.7;
}

.guest-shell.is-home-workspace .home-top-actions .circle-control,
.home-avatar-button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(111, 76, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #171c41;
  display: grid;
  place-items: center;
}

.home-avatar-button {
  position: relative;
  overflow: visible;
  font-weight: 900;
  color: #684cff;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.home-avatar-image {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(111, 76, 255, 0.12);
  box-shadow: 0 12px 28px rgba(111, 76, 255, 0.08);
}

.home-avatar-button i {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: block;
  background: #25c76f;
}

.home-hero-panel {
  grid-row: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  direction: rtl;
}

.home-hero-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.home-hero-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.home-hero-panel h1 {
  margin: 0;
  color: #171936;
  font-size: clamp(1.75rem, 2vw, 2.25rem);
  line-height: 1.18;
  font-weight: 900;
}

.home-hero-panel p {
  margin: 0;
  color: #828aa8;
  font-size: 0.98rem;
  font-weight: 700;
}

.guest-shell.is-home-workspace .home-quick-grid {
  grid-row: 3;
  max-width: 1210px;
  width: 100%;
  margin: -8px auto 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-self: start;
  direction: rtl;
}

.guest-shell.is-home-workspace .home-quick-grid .guest-quick-card {
  min-height: 104px;
  border-radius: 15px;
  padding: 18px 18px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  box-shadow: 0 18px 38px rgba(31, 44, 93, 0.035);
}

.guest-shell.is-home-workspace .home-quick-grid .guest-quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.guest-shell.is-home-workspace .home-quick-grid .guest-quick-copy strong {
  font-size: 0.84rem;
  line-height: 1.35;
}

.guest-shell.is-home-workspace .home-quick-grid .guest-quick-copy span {
  font-size: 0.68rem;
  line-height: 1.55;
}

.guest-shell.is-home-workspace .home-compose {
  grid-row: 5;
  position: relative;
  display: block;
  max-width: 1080px;
  width: min(100%, 1080px);
  min-height: 162px;
  margin: 0 auto;
  padding: 0;
  border-radius: 18px;
  box-shadow: 0 22px 46px rgba(31, 44, 93, 0.045);
}

.guest-shell.is-home-workspace .home-orlixor-main.is-chatting {
  grid-template-rows: 58px minmax(0, 1fr) 164px 34px;
}

.guest-shell.is-home-workspace .home-orlixor-main.is-chatting.has-attachments {
  grid-template-rows: 58px minmax(0, 1fr) auto 164px 34px;
}

.guest-shell.is-home-workspace .home-orlixor-main.is-chatting .guest-conversation-card {
  grid-row: 2;
  max-width: 1080px;
  width: min(100%, 1080px);
  align-self: stretch;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px clamp(18px, 4vw, 54px) 18px;
}

.guest-shell.is-home-workspace .home-orlixor-main.is-chatting .home-compose {
  grid-row: 3;
}

.guest-shell.is-home-workspace .home-orlixor-main.is-chatting .home-compose-note {
  grid-row: 4;
}

.guest-shell.is-home-workspace .home-orlixor-main.is-chatting .guest-attachment-pills {
  grid-row: 3;
  z-index: 3;
  align-self: end;
  margin-top: 18px;
  margin-bottom: 8px;
}

.guest-shell.is-home-workspace .home-orlixor-main.is-chatting.has-attachments .home-compose {
  grid-row: 4;
}

.guest-shell.is-home-workspace .home-orlixor-main.is-chatting.has-attachments .home-compose-note {
  grid-row: 5;
}

.guest-shell.is-home-workspace .home-compose .compose-input {
  position: absolute;
  top: 34px;
  right: 34px;
  left: 104px;
  width: auto;
  color: #171c41;
  font-size: 1rem;
  text-align: right;
}

.home-compose-actions {
  position: absolute;
  left: 28px;
  bottom: 24px;
  display: flex;
  gap: 16px;
  direction: rtl;
}

.home-compose-tool {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #757d9e;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.guest-shell.is-home-workspace .home-compose .compose-send {
  position: absolute;
  right: 30px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.guest-shell.is-home-workspace .home-compose .compose-send-status {
  top: 80px;
  right: 126px;
  left: 34px;
  bottom: auto;
  text-align: right;
}

.home-compose-note {
  grid-row: 6;
  align-self: end;
}

.guest-shell.is-home-workspace .guest-conversation-card {
  grid-row: 4;
  align-self: stretch;
}

.guest-shell.is-home-workspace .guest-conversation-card.is-home-conversation {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.guest-shell.is-home-workspace .guest-attachment-pills {
  grid-row: 4;
  width: min(100%, 1080px);
  margin: 0 auto;
  align-self: end;
}

.guest-shell.theme-dark .guest-conversation-card {
  background: rgba(28, 30, 54, 0.96);
  border-color: rgba(151, 125, 255, 0.14);
}

.guest-conversation-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.guest-conversation-head strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.guest-conversation-head p {
  margin: 0;
  color: #8a91af;
  line-height: 1.8;
}

.guest-conversation-status {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(111, 76, 255, 0.08);
  color: #684cff;
  font-size: 0.8rem;
  font-weight: 800;
}

.guest-messages {
  display: grid;
  gap: 18px;
}

.guest-message.user {
  margin-inline-start: auto;
  max-width: min(76%, 620px);
  padding: 16px 18px;
  border-radius: 18px;
  border-top-left-radius: 8px;
  background: linear-gradient(135deg, #7b5cff, #5d37ff);
  color: #fff;
  box-shadow: 0 16px 32px rgba(111, 76, 255, 0.2);
}

.guest-message.assistant {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.guest-message-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.guest-message-body {
  border: 1px solid rgba(111, 76, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  padding: 22px 22px 18px;
  box-shadow: 0 18px 34px rgba(31, 44, 93, 0.04);
  display: grid;
  gap: 12px;
}

.guest-shell.theme-dark .guest-message-body {
  background: rgba(32, 34, 60, 0.98);
  border-color: rgba(151, 125, 255, 0.16);
}

.guest-message-body h3 {
  margin: 0;
  font-size: 1.12rem;
}

.guest-message-body ul {
  margin: 0;
  padding-inline-start: 18px;
  color: #2b315f;
  line-height: 2;
}

.guest-shell.theme-dark .guest-message-body ul {
  color: #eff1ff;
}

.guest-message-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(111, 76, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.guest-message-actions .feedback-chip {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.82rem;
}

.guest-message-actions .feedback-btn {
  flex: 0 0 auto;
}

.ghost-action {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(111, 76, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #616b92;
  display: grid;
  place-items: center;
}

.ghost-action.text-action {
  width: auto;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.ghost-action.feedback-btn {
  color: #8b93ad;
  background: transparent;
  border-color: transparent;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ghost-action.feedback-btn:hover {
  color: #6d4cff;
  transform: scale(1.05);
}

.ghost-action.feedback-btn.liked {
  color: #6d4cff;
}

.ghost-action.feedback-btn.liked svg path {
  fill: currentColor;
}

.guest-shell.theme-dark .ghost-action {
  background: rgba(32, 34, 60, 0.98);
  border-color: rgba(151, 125, 255, 0.16);
  color: #d7daf1;
}

.guest-attachment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: flex-end;
  direction: ltr;
}

.guest-attachment-pill {
  position: relative;
  width: min(100%, 430px);
  min-height: 128px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(111, 76, 255, 0.14);
  background: rgba(255, 255, 255, 0.98);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 18px;
  color: #515a83;
  box-shadow: 0 18px 42px rgba(31, 44, 93, 0.07);
  direction: rtl;
  overflow: visible;
}

.guest-attachment-pill:not(.has-preview) {
  grid-template-columns: minmax(0, 1fr) 104px;
}

.guest-attachment-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 50%;
  background: #fff;
  color: #8b92af;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(31, 44, 93, 0.08);
  cursor: pointer;
}

.guest-attachment-info {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.guest-attachment-file-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f3efff;
  color: #6d4cff;
  display: grid;
  place-items: center;
}

.guest-attachment-file-icon svg {
  width: 20px;
  height: 20px;
}

.guest-attachment-info strong,
.guest-attachment-info small,
.guest-attachment-info em {
  display: block;
  min-width: 0;
  text-align: right;
}

.guest-attachment-info strong {
  color: #20264b;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guest-attachment-info small {
  margin-top: 10px;
  color: #7f88a8;
  font-size: 0.78rem;
  font-style: normal;
}

.guest-attachment-info em {
  position: relative;
  margin-top: 12px;
  padding-right: 18px;
  color: #20a96d;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.guest-attachment-info em::before {
  content: "";
  position: absolute;
  top: 0.45em;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20c77a;
  box-shadow: 0 0 0 3px rgba(32, 199, 122, 0.16);
}

.guest-attachment-preview {
  width: 132px;
  height: 108px;
  border-radius: 14px;
  object-fit: cover;
  justify-self: end;
  background: #f4f0ff;
  box-shadow: inset 0 0 0 1px rgba(111, 76, 255, 0.08);
}

.guest-attachment-preview.placeholder {
  display: grid;
  place-items: center;
  color: #6d4cff;
}

.guest-attachment-preview.placeholder svg {
  width: 34px;
  height: 34px;
}

.guest-attachment-pill button:not(.guest-attachment-remove) {
  border: 0;
  background: transparent;
  color: #8b92af;
}

.guest-compose {
  position: relative;
  border: 1px solid rgba(111, 76, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  box-shadow: 0 18px 34px rgba(31, 44, 93, 0.04);
}

.guest-shell.theme-dark .guest-compose {
  background: rgba(28, 30, 54, 0.95);
  border-color: rgba(151, 125, 255, 0.14);
}

.compose-attach,
.compose-send {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.compose-attach {
  background: rgba(111, 76, 255, 0.08);
  color: #684cff;
}

.compose-send {
  position: relative;
  cursor: pointer;
  background: linear-gradient(135deg, #7b5cff, #5d37ff);
  color: #fff;
  box-shadow: 0 14px 28px rgba(111, 76, 255, 0.22);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.compose-send svg {
  width: 22px;
  height: 22px;
}

.compose-send:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(111, 76, 255, 0.26);
}

.compose-send:disabled {
  cursor: not-allowed;
}

.compose-send.is-sending {
  overflow: visible;
  background: linear-gradient(180deg, #ffffff, #f7f2ff);
  color: #6d4cff;
  box-shadow: 0 13px 30px rgba(132, 102, 255, 0.16);
}

.compose-send.is-sending::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 5px solid rgba(124, 92, 255, 0.18);
  border-top-color: rgba(124, 92, 255, 0.82);
  animation: compose-send-spin 900ms linear infinite;
}

.compose-loading-dots {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.compose-loading-dots i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  animation: compose-dot-pulse 900ms ease-in-out infinite;
}

.compose-loading-dots i:nth-child(2) {
  animation-delay: 120ms;
}

.compose-loading-dots i:nth-child(3) {
  animation-delay: 240ms;
}

.compose-send-status {
  position: absolute;
  right: 72px;
  bottom: -24px;
  color: #6d4cff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.5;
  pointer-events: none;
}

.compose-send-status.is-error {
  color: #e4405f;
}

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

@keyframes compose-dot-pulse {
  0%,
  80%,
  100% {
    opacity: 0.42;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

.compose-input {
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  min-width: 0;
  font-size: 0.98rem;
}

.compose-input:disabled {
  opacity: 1;
  cursor: wait;
}

.guest-compose-note {
  margin: 0;
  text-align: center;
  color: #9da4c2;
  font-size: 0.86rem;
}

.guest-sidepanel {
  position: sticky;
  top: 18px;
  min-height: calc(100vh - 46px);
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.guest-shell.is-home-workspace .guest-sidepanel {
  gap: 0;
  padding: 20px 16px 16px;
  overflow: auto;
  scrollbar-width: none;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  border-top: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(111, 76, 255, 0.1);
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.94);
}

.guest-sidepanel-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.guest-shell.is-home-workspace .guest-sidepanel-top {
  margin-bottom: 12px;
  gap: 8px;
}

.ghost-balance,
.circle-control,
.ai-switcher,
.side-select select,
.delete-chat-btn {
  transition: transform 160ms ease, background 160ms ease;
}

.ghost-balance {
  min-height: 46px;
  border: 1px solid rgba(111, 76, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #684cff;
  font-size: 0.88rem;
  font-weight: 800;
}

.circle-control {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(111, 76, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #2b315f;
  display: grid;
  place-items: center;
  position: relative;
}

.guest-shell.is-home-workspace .ghost-balance {
  min-height: 42px;
  border-radius: 10px;
  gap: 6px;
  font-size: 0.78rem;
}

.guest-shell.is-home-workspace .circle-control {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.guest-shell.theme-dark .ghost-balance,
.guest-shell.theme-dark .circle-control,
.guest-shell.theme-dark .side-select select,
.guest-shell.theme-dark .file-dropzone,
.guest-shell.theme-dark .delete-chat-btn {
  background: rgba(28, 30, 54, 0.95);
  border-color: rgba(151, 125, 255, 0.14);
  color: #eff0ff;
}

.side-card {
  border: 1px solid rgba(111, 76, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  padding: 18px;
  box-shadow: 0 18px 34px rgba(31, 44, 93, 0.04);
}

.guest-shell.is-home-workspace .side-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 16px 0;
  border-top: 1px solid rgba(111, 76, 255, 0.09);
}

.guest-shell.is-home-workspace .side-card:first-of-type {
  border-top: 0;
  padding-top: 6px;
}

.guest-shell.theme-dark .side-card {
  background: rgba(28, 30, 54, 0.95);
  border-color: rgba(151, 125, 255, 0.14);
}

.ai-card-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.guest-shell.is-home-workspace .ai-card-brand {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ai-card-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(111, 76, 255, 0.09);
  display: grid;
  place-items: center;
}

.ai-card-brand strong,
.side-card h3 {
  margin: 0;
  font-size: 1rem;
}

.ai-card-brand span,
.side-card span,
.side-card p {
  color: #878daa;
  font-size: 0.85rem;
}

.ai-card-model {
  min-height: 42px;
  border-radius: 14px;
  border: 1px dashed rgba(111, 76, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b50ff;
  font-weight: 800;
}

.guest-shell.is-home-workspace .ai-card-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.guest-shell.is-home-workspace .ai-card-brand strong,
.guest-shell.is-home-workspace .side-card h3 {
  font-size: 0.92rem;
}

.guest-shell.is-home-workspace .ai-card-brand span,
.guest-shell.is-home-workspace .side-card span,
.guest-shell.is-home-workspace .side-card p {
  font-size: 0.74rem;
  line-height: 1.45;
}

.guest-shell.is-home-workspace .ai-card-model {
  min-height: 38px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.settings-card {
  display: grid;
  gap: 12px;
}

.guest-shell.is-home-workspace .settings-card {
  gap: 10px;
}

.side-select {
  display: grid;
  gap: 6px;
}

.guest-shell.is-home-workspace .side-select {
  gap: 5px;
}

.side-select select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(111, 76, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  padding: 0 12px;
  color: #202652;
}

.guest-shell.is-home-workspace .side-select select {
  min-height: 42px;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 0.86rem;
  font-weight: 800;
}

.side-toggle {
  min-height: 48px;
  border: 1px solid rgba(111, 76, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #29305d;
}

.guest-shell.is-home-workspace .side-toggle {
  min-height: 42px;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.side-toggle-track {
  width: 46px;
  height: 28px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(111, 76, 255, 0.14);
  display: flex;
  align-items: center;
}

.side-toggle-track b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 8px rgba(31, 44, 93, 0.14);
  transition: transform 160ms ease;
}

.side-toggle.is-on .side-toggle-track {
  background: linear-gradient(135deg, #7b5cff, #5d37ff);
}

.side-toggle.is-on .side-toggle-track b {
  transform: translateX(-18px);
}

.file-dropzone {
  width: 100%;
  min-height: 96px;
  border: 1px dashed rgba(111, 76, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #9097b6;
  text-align: center;
  line-height: 1.9;
}

.guest-shell.is-home-workspace .file-dropzone {
  min-height: 76px;
  border-radius: 10px;
  font-size: 0.74rem;
  line-height: 1.7;
}

.guest-shell.is-home-workspace .file-list {
  gap: 8px;
  margin-top: 10px;
}

.guest-shell.is-home-workspace .file-row {
  border-radius: 10px;
  padding: 9px;
  gap: 9px;
}

.guest-shell.is-home-workspace .file-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.guest-shell.is-home-workspace .file-row strong,
.guest-shell.is-home-workspace .stat-row strong {
  font-size: 0.78rem;
}

.guest-shell.is-home-workspace .stat-row {
  padding: 8px 0;
  font-size: 0.76rem;
}

.file-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.file-row {
  border: 1px solid rgba(111, 76, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.guest-shell.theme-dark .file-row {
  background: rgba(32, 34, 60, 0.98);
  border-color: rgba(151, 125, 255, 0.16);
}

.file-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ff5a63;
  background: rgba(255, 90, 99, 0.08);
}

.file-row strong,
.stat-row strong {
  display: block;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(111, 76, 255, 0.08);
}

.stat-row:first-of-type {
  border-top: 0;
}

.delete-chat-btn {
  min-height: 52px;
  border: 1px solid rgba(255, 91, 99, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #ff5b63;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
}

.guest-shell.is-home-workspace .delete-chat-btn {
  min-height: 44px;
  margin-top: 12px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.side-empty,
.guest-empty-side {
  color: #969dbc;
  font-size: 0.88rem;
  line-height: 1.8;
}

.requires-auth {
  position: relative;
}

.requires-auth::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.guest-toast-stack {
  position: fixed;
  top: 18px;
  left: 18px;
  display: grid;
  gap: 10px;
  z-index: 1000;
}

.guest-toast {
  min-width: 220px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(24, 36, 74, 0.96);
  color: #fff;
  box-shadow: 0 20px 42px rgba(24, 36, 74, 0.22);
}

.settings-gate {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 18px;
}

.settings-gate[hidden] {
  display: none;
}

.settings-gate-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 22, 38, 0.36);
  backdrop-filter: blur(9px);
}

.settings-modal-card {
  position: relative;
  width: min(860px, calc(100vw - 44px));
  height: min(590px, calc(100vh - 36px));
  min-height: 0;
  max-height: min(620px, calc(100vh - 36px));
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  direction: ltr;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 34px 90px rgba(20, 24, 50, 0.22);
}

.settings-modal-card svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #151936;
  font-size: 1.35rem;
  cursor: pointer;
}

.settings-modal-side {
  direction: rtl;
  padding: 42px 22px 16px;
  border-left: 1px solid rgba(111, 76, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #6547ff;
  background: rgba(111, 76, 255, 0.12);
  font-weight: 900;
  font-size: 1.12rem;
}

.settings-avatar-upload {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  cursor: pointer;
}

.settings-avatar-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.settings-avatar-upload small {
  color: #674cff;
  font-size: 0.62rem;
  font-weight: 900;
}

.settings-profile strong,
.settings-profile span {
  display: block;
}

.settings-profile strong {
  color: #171936;
  font-size: 0.88rem;
}

.settings-profile span {
  color: #7e86a5;
  font-size: 0.7rem;
}

.settings-modal-nav {
  display: grid;
  gap: 4px;
}

.settings-modal-nav button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  color: #1c2345;
  cursor: pointer;
}

.settings-modal-nav button.active {
  color: #6547ff;
  background: rgba(111, 76, 255, 0.12);
}

.settings-modal-nav button span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.settings-modal-nav button svg {
  width: 16px;
  height: 16px;
}

.settings-modal-nav button b {
  flex: 1;
  text-align: right;
  font-size: 0.76rem;
}

.settings-logout-btn {
  margin-top: auto;
  min-height: 38px;
  border: 0;
  border-top: 1px solid rgba(111, 76, 255, 0.1);
  padding: 10px 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  color: #f24555;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.settings-modal-main {
  direction: rtl;
  padding: 50px 24px 18px;
  overflow: auto;
}

.settings-modal-main header {
  margin-bottom: 16px;
}

.settings-modal-main h2 {
  margin: 0 0 6px;
  color: #151936;
  font-size: 1.18rem;
  font-weight: 900;
}

.settings-modal-main p {
  margin: 0;
  color: #8c94ad;
  font-size: 0.74rem;
}

.settings-general-head {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-general-head > span,
.settings-option-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #6547ff;
  background: rgba(111, 76, 255, 0.1);
  font-weight: 900;
}

.settings-general-head strong {
  display: block;
  color: #151936;
  font-size: 0.86rem;
}

.settings-option-list {
  display: grid;
  gap: 8px;
}

.settings-option-row {
  min-height: 58px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 14px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(140px, auto);
  align-items: center;
  gap: 10px;
  background: #fff;
}

.settings-option-copy strong,
.settings-option-copy small {
  display: block;
}

.settings-option-copy strong {
  color: #151936;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.settings-option-copy small {
  color: #8c94ad;
  font-size: 0.62rem;
}

.settings-option-row select {
  min-width: 136px;
  min-height: 34px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 10px;
  padding: 0 14px;
  color: #505878;
  background: #fff;
  font-weight: 700;
}

.settings-inline-action,
.settings-pill {
  min-height: 34px;
  border: 1px solid rgba(111, 76, 255, 0.14);
  border-radius: 10px;
  padding: 0 14px;
  display: inline-grid;
  place-items: center;
  color: #6547ff;
  background: rgba(111, 76, 255, 0.08);
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
}

.settings-inline-action {
  cursor: pointer;
}

.settings-inline-action:hover {
  border-color: rgba(111, 76, 255, 0.26);
  background: rgba(111, 76, 255, 0.13);
}

.settings-inline-action.danger {
  color: #ff4d57;
  border-color: rgba(255, 77, 87, 0.16);
  background: rgba(255, 77, 87, 0.08);
}

.settings-inline-action.success {
  color: #059669;
  border-color: rgba(5, 150, 105, 0.14);
  background: rgba(5, 150, 105, 0.1);
}

.settings-inline-action.success:hover {
  border-color: rgba(5, 150, 105, 0.24);
  background: rgba(5, 150, 105, 0.14);
}

.settings-pill.success {
  color: #059669;
  border-color: rgba(5, 150, 105, 0.14);
  background: rgba(5, 150, 105, 0.1);
}

.settings-segmented {
  min-height: 34px;
  padding: 4px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 10px;
  background: #fff;
  display: flex;
  gap: 4px;
}

.settings-segmented button {
  min-width: 56px;
  border: 0;
  border-radius: 8px;
  color: #4c5578;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.settings-segmented button.active {
  color: #6547ff;
  background: rgba(111, 76, 255, 0.13);
}

.upgrade-gate {
  position: fixed;
  inset: 0;
  z-index: 1450;
  display: grid;
  place-items: center;
  padding: 48px;
}

.upgrade-gate-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(111, 76, 255, 0.18), transparent 32%),
    rgba(23, 24, 42, 0.38);
  backdrop-filter: blur(10px);
}

.upgrade-modal-card {
  position: relative;
  width: min(980px, calc(100vw - 96px));
  height: min(700px, calc(100dvh - 96px));
  max-height: calc(100dvh - 96px);
  overflow: hidden;
  padding: 22px 18px 0;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 12%, rgba(111, 76, 255, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 38px 110px rgba(23, 24, 42, 0.24);
  direction: rtl;
  display: flex;
  flex-direction: column;
}

.upgrade-close-btn {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(111, 76, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: #171936;
  font-size: 1.2rem;
  cursor: pointer;
}

.upgrade-modal-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 52px;
  margin: 0 0 8px;
  padding-inline-start: 56px;
}

.upgrade-title-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #684cff;
  background: rgba(111, 76, 255, 0.12);
}

.upgrade-modal-head h2 {
  margin: 0;
  color: #171936;
  font-size: clamp(1.65rem, 2.2vw, 2rem);
  line-height: 1.15;
  font-weight: 900;
}

.upgrade-modal-head h2 span {
  color: #684cff;
}

.upgrade-modal-head p {
  margin: 4px 0 0;
  color: #8b92ad;
  font-size: 0.78rem;
  font-weight: 700;
}

.upgrade-period-tabs {
  width: max-content;
  max-width: 100%;
  min-height: 36px;
  margin: 4px auto 14px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(31, 44, 93, 0.08);
}

.upgrade-period-tabs button,
.upgrade-period-tabs span,
.upgrade-period-tabs b {
  min-width: 72px;
  min-height: 27px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #7f86a4;
  background: transparent;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
}

.upgrade-period-tabs button.active {
  color: #684cff;
  background: rgba(111, 76, 255, 0.12);
}

.upgrade-period-tabs span {
  min-width: 56px;
  color: #684cff;
  background: rgba(111, 76, 255, 0.1);
  font-size: 0.62rem;
}

.upgrade-period-tabs b {
  color: #138d76;
  background: rgba(38, 199, 143, 0.1);
}

.upgrade-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  direction: ltr;
}

.upgrade-plan {
  position: relative;
  direction: rtl;
  min-height: 0;
  padding: 16px 14px 14px;
  border: 1px solid rgba(111, 76, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 48px rgba(31, 44, 93, 0.05);
  display: flex;
  flex-direction: column;
}

.upgrade-plan.is-featured {
  border-color: rgba(111, 76, 255, 0.75);
  background:
    radial-gradient(circle at 92% 18%, rgba(111, 76, 255, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 255, 0.95));
  box-shadow: 0 26px 70px rgba(111, 76, 255, 0.18);
}

.upgrade-best {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid rgba(111, 76, 255, 0.18);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #684cff;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.58rem;
}

.upgrade-plan-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
}

.upgrade-plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #684cff;
  background: rgba(111, 76, 255, 0.12);
}

.upgrade-plan:first-child .upgrade-plan-icon {
  color: #14936f;
  background: rgba(37, 199, 111, 0.12);
}

.upgrade-plan:nth-child(2) .upgrade-plan-icon {
  color: #3289f4;
  background: rgba(50, 137, 244, 0.12);
}

.upgrade-plan h3 {
  margin: 0;
  color: #171936;
  font-size: 1.08rem;
  font-weight: 900;
}

.upgrade-plan h3 small {
  display: block;
  margin: 2px 0 0;
  color: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  opacity: 0.8;
}

.upgrade-plan p {
  margin: 4px 0 0;
  color: #8d93b3;
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 700;
}

.upgrade-price {
  margin: 12px 0 5px;
  color: #6a728f;
}

.upgrade-price strong {
  margin-inline-end: 10px;
  color: #684cff;
  font-size: clamp(2.05rem, 2.9vw, 2.7rem);
  line-height: 1;
  font-weight: 900;
}

.upgrade-plan:first-child .upgrade-price strong {
  color: #188464;
}

.upgrade-plan:nth-child(2) .upgrade-price strong {
  color: #3289f4;
}

.upgrade-plan-xp {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  margin: 0 0 10px !important;
  padding: 0 10px;
  border-radius: 999px;
  color: #684cff !important;
  background: rgba(111, 76, 255, 0.09);
  font-size: 0.72rem !important;
  font-weight: 900 !important;
}

.upgrade-plan.is-green .upgrade-plan-xp {
  color: #138d76 !important;
  background: rgba(38, 199, 143, 0.11);
}

.upgrade-plan.is-blue .upgrade-plan-xp {
  color: #3289f4 !important;
  background: rgba(50, 137, 244, 0.1);
}

.upgrade-plan-action {
  width: 100%;
  min-height: 39px;
  border: 1px solid rgba(111, 76, 255, 0.16);
  border-radius: 999px;
  color: #684cff;
  background: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.upgrade-plan.is-featured .upgrade-plan-action {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #7b5cff, #684cff);
  box-shadow: 0 18px 38px rgba(111, 76, 255, 0.22);
}

.upgrade-plan-action.is-current {
  color: #9aa0b8;
  background: rgba(245, 246, 252, 0.95);
  cursor: default;
}

.upgrade-plan ul {
  margin: 11px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  list-style: none;
}

.upgrade-plan li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #3d4567;
  font-size: 0.72rem;
  line-height: 1.36;
  font-weight: 700;
}

.upgrade-plan li svg {
  width: 13px;
  height: 13px;
  color: #684cff;
  flex: 0 0 auto;
}

.upgrade-modal-foot {
  margin: 12px -18px 0;
  padding: 10px 18px;
  border-top: 1px solid rgba(111, 76, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: rgba(249, 248, 255, 0.72);
}

.upgrade-modal-foot span {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 8px;
  align-items: center;
  color: #202747;
}

.upgrade-modal-foot svg {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  padding: 8px;
  border-radius: 50%;
  color: #684cff;
  background: rgba(111, 76, 255, 0.1);
}

.upgrade-modal-foot b {
  font-size: 0.68rem;
}

.upgrade-modal-foot small {
  color: #8b92ad;
  font-size: 0.6rem;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1400;
}

.auth-gate[hidden] {
  display: none;
}

.auth-gate-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 11, 26, 0.5);
  backdrop-filter: blur(6px);
}

.auth-gate-panel {
  position: relative;
  width: min(980px, calc(100% - 24px));
  margin: 26px auto;
  border-radius: 28px;
  border: 1px solid rgba(111, 76, 255, 0.16);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 34px 80px rgba(17, 20, 44, 0.24);
  overflow: hidden;
}

.auth-gate-head {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(111, 76, 255, 0.08);
}

.auth-gate-head strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.auth-gate-head span {
  color: #8087a6;
  font-size: 0.88rem;
}

.auth-gate-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(111, 76, 255, 0.08);
  color: #684cff;
  font-size: 1.45rem;
}

.auth-gate-frame {
  width: 100%;
  height: min(82vh, 860px);
  border: 0;
  background: transparent;
}

.auth-gate-footer {
  padding: 14px 22px 22px;
  display: flex;
  justify-content: flex-end;
}

.auth-gate-link {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #684cff;
  font-weight: 800;
}

@media (max-width: 980px) {
  .upgrade-modal-card {
    width: min(100%, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    padding: 30px 20px 0;
  }

  .upgrade-close-btn {
    top: 18px;
    left: 18px;
  }

  .upgrade-modal-head {
    padding-inline-start: 56px;
  }

  .upgrade-period-tabs {
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
  }

  .upgrade-plans {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .upgrade-plan {
    min-height: auto;
    padding: 22px;
  }

  .upgrade-modal-foot {
    margin-inline: -20px;
    padding-inline: 20px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .upgrade-gate {
    padding: 10px;
  }

  .upgrade-modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 18px;
    padding: 24px 14px 0;
  }

  .upgrade-modal-head {
    padding-inline-start: 50px;
    align-items: flex-start;
  }

  .upgrade-title-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .upgrade-modal-head h2 {
    font-size: 1.55rem;
  }

  .upgrade-period-tabs button,
  .upgrade-period-tabs span,
  .upgrade-period-tabs b {
    min-width: 78px;
    padding: 0 12px;
  }

  .upgrade-plan-head {
    gap: 12px;
  }

  .upgrade-plan-icon {
    width: 52px;
    height: 52px;
  }

  .upgrade-price {
    margin: 24px 0 20px;
  }
}

@media (min-width: 981px) {
  .upgrade-gate {
    padding: 48px;
  }

  .upgrade-modal-card {
    width: min(980px, calc(100vw - 96px));
    height: min(700px, calc(100dvh - 96px));
    max-height: calc(100dvh - 96px);
    overflow: hidden;
    padding: 22px 18px 0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
  }

  .upgrade-close-btn {
    top: 22px;
    left: 22px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.2rem;
  }

  .upgrade-modal-head {
    min-height: 52px;
    margin: 0 0 8px;
    padding-inline-start: 56px;
  }

  .upgrade-title-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .upgrade-title-mark svg,
  .upgrade-plan-icon svg,
  .upgrade-modal-foot svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .upgrade-modal-head h2 {
    font-size: clamp(1.65rem, 2.2vw, 2rem);
  }

  .upgrade-modal-head p {
    margin-top: 4px;
    font-size: 0.78rem;
  }

  .upgrade-period-tabs {
    min-height: 36px;
    margin: 4px auto 14px;
    padding: 4px;
  }

  .upgrade-period-tabs button,
  .upgrade-period-tabs span,
  .upgrade-period-tabs b {
    min-width: 72px;
    min-height: 27px;
    padding: 0 10px;
    font-size: 0.66rem;
  }

  .upgrade-period-tabs span {
    min-width: 56px;
  }

  .upgrade-plans {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
  }

  .upgrade-plan {
    min-height: 0;
    padding: 16px 14px 14px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 44px rgba(31, 44, 93, 0.045);
  }

  .upgrade-best {
    top: 12px;
    left: 12px;
    min-height: 22px;
    padding: 0 9px;
    font-size: 0.58rem;
  }

  .upgrade-plan-head {
    min-height: 50px;
    gap: 10px;
  }

  .upgrade-plan-icon {
    width: 44px;
    height: 44px;
  }

  .upgrade-plan.is-free .upgrade-plan-icon {
    color: #16a77b;
    background: rgba(38, 199, 143, 0.12);
  }

  .upgrade-plan.is-green .upgrade-plan-icon {
    color: #15946c;
    background: rgba(37, 199, 111, 0.13);
  }

  .upgrade-plan.is-blue .upgrade-plan-icon {
    color: #3289f4;
    background: rgba(50, 137, 244, 0.12);
  }

  .upgrade-plan.is-featured .upgrade-plan-icon {
    color: #684cff;
    background: rgba(111, 76, 255, 0.14);
  }

  .upgrade-plan h3 {
    font-size: 1.08rem;
  }

  .upgrade-plan h3 small {
    display: block;
    margin: 2px 0 0;
    font-size: 0.66rem;
  }

  .upgrade-plan p {
    margin-top: 4px;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .upgrade-price {
    margin: 12px 0 5px;
  }

  .upgrade-price strong {
    font-size: clamp(2.05rem, 2.9vw, 2.7rem);
  }

  .upgrade-plan.is-free .upgrade-price strong,
  .upgrade-plan.is-green .upgrade-price strong {
    color: #148968;
  }

  .upgrade-plan.is-blue .upgrade-price strong {
    color: #3289f4;
  }

  .upgrade-plan-xp {
    min-height: 29px;
    margin-bottom: 10px !important;
    padding: 0 10px;
    font-size: 0.72rem !important;
  }

  .upgrade-plan.is-free .upgrade-plan-xp,
  .upgrade-plan.is-green .upgrade-plan-xp {
    color: #138d76 !important;
    background: rgba(38, 199, 143, 0.11);
  }

  .upgrade-plan-action {
    min-height: 39px;
    font-size: 0.78rem;
  }

  .upgrade-plan ul {
    margin: 11px 0 0;
    gap: 6px;
  }

  .upgrade-plan li {
    gap: 7px;
    font-size: 0.72rem;
    line-height: 1.36;
  }

  .upgrade-plan li svg {
    width: 13px;
    height: 13px;
  }

  .upgrade-modal-foot {
    margin: 12px -18px 0;
    padding: 10px 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .upgrade-modal-foot span {
    grid-template-columns: 30px 1fr;
    gap: 2px 8px;
  }

  .upgrade-modal-foot svg {
    width: 30px;
    height: 30px;
    padding: 8px;
  }

  .upgrade-modal-foot b {
    font-size: 0.68rem;
  }

  .upgrade-modal-foot small {
    font-size: 0.6rem;
  }
}

@media (min-width: 981px) and (max-height: 790px) {
  .upgrade-gate {
    padding: 32px;
  }

  .upgrade-modal-card {
    width: min(940px, calc(100vw - 64px));
    height: calc(100dvh - 64px);
    max-height: calc(100dvh - 64px);
    padding: 16px 16px 0;
  }

  .upgrade-modal-head {
    min-height: 48px;
    margin-bottom: 6px;
  }

  .upgrade-title-mark {
    width: 38px;
    height: 38px;
  }

  .upgrade-modal-head h2 {
    font-size: 1.55rem;
  }

  .upgrade-modal-head p {
    font-size: 0.68rem;
  }

  .upgrade-period-tabs {
    margin-bottom: 12px;
  }

  .upgrade-plan {
    padding: 12px 12px 10px;
  }

  .upgrade-plan-head {
    min-height: 48px;
  }

  .upgrade-plan-icon {
    width: 38px;
    height: 38px;
  }

  .upgrade-plan h3 {
    font-size: 0.98rem;
  }

  .upgrade-plan p {
    font-size: 0.65rem;
  }

  .upgrade-price {
    margin-top: 10px;
  }

  .upgrade-price strong {
    font-size: 2.05rem;
  }

  .upgrade-plan-xp {
    min-height: 24px;
    margin-bottom: 7px !important;
    font-size: 0.64rem !important;
  }

  .upgrade-plan-action {
    min-height: 32px;
  }

  .upgrade-plan ul {
    margin-top: 10px;
    gap: 5px;
  }

  .upgrade-plan li {
    font-size: 0.64rem;
    line-height: 1.3;
  }

  .upgrade-modal-foot {
    margin: 8px -16px 0;
    padding: 7px 16px;
  }
}

@media (max-width: 1320px) {
  .guest-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .guest-sidepanel {
    grid-column: 1 / -1;
    position: static;
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .guest-shell {
    grid-template-columns: 1fr;
  }

  .guest-sidebar,
  .guest-main,
  .guest-sidepanel {
    position: static;
    min-height: auto;
  }

  .guest-sidebar {
    order: 1;
  }

  .guest-main {
    order: 2;
  }

  .guest-sidepanel {
    order: 3;
  }

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

  .settings-modal-card {
    grid-template-columns: 260px minmax(0, 1fr);
    width: min(900px, calc(100vw - 24px));
  }

  .settings-modal-main {
    padding-inline: 26px;
  }
}

@media (max-width: 720px) {
  .guest-shell {
    width: min(100%, calc(100% - 14px));
    padding: 10px 0 18px;
  }

  .guest-sidebar,
  .guest-main,
  .guest-sidepanel {
    border-radius: 22px;
  }

  .guest-sidebar,
  .guest-main,
  .guest-sidepanel {
    padding: 16px 14px;
  }

  .guest-main-topbar,
  .guest-conversation-head,
  .guest-sidepanel-top {
    grid-template-columns: 1fr;
    display: grid;
  }

  .guest-quick-grid {
    grid-template-columns: 1fr;
  }

  .guest-message.user {
    max-width: 92%;
  }

  .guest-shell.is-home-workspace .guest-message-row.user {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    gap: 10px;
  }

  .guest-shell.is-home-workspace .guest-message-row.user .guest-message.user {
    padding: 13px 15px 11px;
    font-size: 0.84rem;
  }

  .guest-message-avatar {
    width: 34px;
    height: 34px;
  }

  .guest-shell.is-home-workspace .guest-message.assistant {
    grid-template-columns: 28px minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .guest-shell.is-home-workspace .guest-message-mark {
    width: 28px;
    height: 28px;
  }

  .balance-popover {
    left: 0;
    right: auto;
    width: min(78vw, 210px);
  }

  .guest-compose {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .compose-attach,
  .compose-send {
    width: 42px;
    height: 42px;
  }

  .auth-gate-panel {
    width: min(100%, calc(100% - 12px));
    margin: 10px auto;
    border-radius: 22px;
  }

  .auth-gate-frame {
    height: 84vh;
  }

  .settings-gate {
    padding: 10px;
  }

  .settings-modal-card {
    width: min(100%, calc(100vw - 12px));
    max-height: calc(100vh - 20px);
    min-height: 0;
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .settings-modal-side {
    padding: 52px 18px 14px;
    border-left: 0;
    border-bottom: 1px solid rgba(111, 76, 255, 0.1);
  }

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

  .settings-modal-main {
    padding: 28px 18px 22px;
  }

  .settings-option-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .settings-option-row select,
  .settings-segmented {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 1320px) {
  .guest-shell.is-home-workspace {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .guest-shell.is-home-workspace .guest-sidepanel {
    display: none;
  }
}

@media (max-width: 1080px) {
  body[data-workspace-mode="home"] {
    overflow: hidden;
  }

  .guest-shell.is-home-workspace {
    width: 100%;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .guest-shell.is-home-workspace .guest-sidebar,
  .guest-shell.is-home-workspace .guest-main,
  .guest-shell.is-home-workspace .guest-sidepanel {
    position: sticky;
    top: 0;
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .guest-shell.is-home-workspace .guest-sidebar {
    order: initial;
  }

  .guest-shell.is-home-workspace .guest-main {
    order: initial;
    padding-inline: 24px;
    grid-template-rows: 54px auto auto auto 150px 30px;
  }

  .guest-shell.is-home-workspace .guest-sidepanel {
    order: initial;
  }

  .guest-shell.is-home-workspace .guest-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .guest-shell.is-home-workspace {
    width: 100%;
    padding: 0;
    grid-template-columns: 78px minmax(0, 1fr);
    overflow: hidden;
  }

  .guest-shell.is-home-workspace .guest-sidebar,
  .guest-shell.is-home-workspace .guest-main,
  .guest-shell.is-home-workspace .guest-sidepanel {
    padding-block: 16px;
    border-radius: 0;
  }

  .guest-shell.is-home-workspace .guest-sidebar {
    padding: 12px 8px;
    gap: 10px;
  }

  .guest-shell.is-home-workspace .guest-brand {
    justify-content: center;
  }

  .guest-shell.is-home-workspace .guest-brand img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    object-position: left center;
  }

  .guest-shell.is-home-workspace .guest-brand .guest-brand-symbol,
  .guest-shell.is-home-workspace .guest-brand .guest-brand-mark {
    width: 46px;
    height: 46px;
    object-fit: contain;
    object-position: center;
  }

  .guest-shell.is-home-workspace .guest-new-chat {
    min-height: 48px;
    justify-content: center;
    padding: 0;
  }

  .guest-shell.is-home-workspace .guest-new-chat span,
  .guest-shell.is-home-workspace .guest-search-box input,
  .guest-shell.is-home-workspace .guest-history-copy,
  .guest-shell.is-home-workspace .guest-history-group h3,
  .guest-shell.is-home-workspace .guest-upgrade-card div,
  .guest-shell.is-home-workspace .guest-user-copy,
  .guest-shell.is-home-workspace .guest-user-head,
  .guest-shell.is-home-workspace .guest-user-lines,
  .guest-shell.is-home-workspace .guest-user-action,
  .guest-shell.is-home-workspace .guest-history-badge {
    display: none;
  }

  .guest-shell.is-home-workspace .guest-search-box,
  .guest-shell.is-home-workspace .guest-history-item,
  .guest-shell.is-home-workspace .guest-upgrade-card,
  .guest-shell.is-home-workspace .guest-user-card {
    min-height: 46px;
    padding: 0;
    display: grid;
    place-items: center;
  }

  .guest-shell.is-home-workspace .guest-main {
    padding: 14px 12px;
    grid-template-rows: 46px auto auto auto 142px 28px;
  }

  .guest-shell.is-home-workspace .guest-sidepanel {
    display: none;
  }

  .guest-shell.is-home-workspace .guest-main-topbar {
    display: flex;
    grid-template-columns: initial;
  }

  .guest-shell.is-home-workspace .model-switcher-wrap {
    min-width: 0;
  }

  .guest-shell.is-home-workspace .home-main-topbar .ai-switcher {
    width: 150px;
    min-height: 44px;
    font-size: 0.72rem;
    padding: 0 10px;
  }

  .model-menu {
    left: -4px;
    width: min(286px, calc(100vw - 56px));
    padding: 10px;
  }

  .guest-shell.is-home-workspace .guest-sidepanel-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .guest-shell.is-home-workspace .guest-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Sidebar collapse/expand control */
.guest-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  direction: ltr;
}

.guest-brand .guest-brand-mark {
  display: none;
  width: 46px;
  height: 46px;
  object-fit: contain;
  object-position: center;
}

.guest-sidebar-toggle {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(111, 76, 255, 0.16);
  border-radius: 14px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(111, 76, 255, 0.16);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.guest-sidebar-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 76, 255, 0.34);
  box-shadow: 0 14px 28px rgba(111, 76, 255, 0.2);
}

.guest-sidebar-toggle .toggle-collapsed {
  display: none;
}

.guest-collapsed-tools {
  display: none;
}

.tools-main {
  direction: rtl;
  min-height: 100vh;
  padding: clamp(22px, 3.8vw, 38px) clamp(18px, 4vw, 42px);
  overflow-y: auto;
  background:
    radial-gradient(circle at 13% 12%, rgba(111, 76, 255, 0.055), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(124, 89, 255, 0.06), transparent 28%),
    #fff;
}

.guest-shell.is-home-workspace .tools-main {
  grid-column: 2;
  grid-row: 1 / -1;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: block;
  align-content: initial;
  grid-template-rows: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 34px clamp(28px, 4vw, 54px) 24px;
}

.guest-shell.is-home-workspace.is-tools-workspace {
  grid-template-columns: 296px minmax(0, 1fr);
  overflow: hidden;
}

.guest-shell.is-home-workspace.is-tools-workspace .guest-sidebar {
  grid-column: 1;
  grid-row: 1;
  gap: 16px;
  padding: 28px 18px 20px;
}

.guest-shell.is-home-workspace.is-tools-workspace .tools-main {
  grid-column: 2;
  grid-row: 1;
  max-width: none;
  background:
    radial-gradient(circle at 13% 12%, rgba(111, 76, 255, 0.055), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(124, 89, 255, 0.06), transparent 28%),
    #fff;
}

.guest-shell.is-tools-workspace .tools-sidebar-search {
  min-height: 52px;
  border-radius: 16px;
  border-color: rgba(111, 76, 255, 0.14);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(31, 44, 93, 0.035);
}

.guest-shell.is-tools-workspace .tools-sidebar-search input {
  font-size: 0.9rem;
  font-weight: 800;
}

.tools-sidebar-panel {
  display: grid;
  gap: 14px;
}

.tools-sidebar-recent {
  padding: 16px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 8%, rgba(111, 76, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(252, 250, 255, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 18px 38px rgba(111, 76, 255, 0.07);
}

.tools-sidebar-recent h3 {
  margin: 0 0 12px;
  color: #6b4cff;
  font-size: 1rem;
  font-weight: 950;
  text-align: right;
}

.tools-sidebar-last-card {
  width: 100%;
  min-height: 116px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 17px;
  padding: 13px 12px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  color: #172044;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(31, 44, 93, 0.045);
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.tools-sidebar-tool-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #6b4cff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.15), rgba(111, 76, 255, 0.06));
}

.tools-sidebar-tool-icon svg {
  width: 28px;
  height: 28px;
}

.tools-sidebar-tool-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tools-sidebar-tool-copy strong {
  overflow: hidden;
  color: #172044;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tools-sidebar-tool-copy small {
  overflow: hidden;
  color: #858da9;
  font-size: 0.76rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tools-sidebar-arrow {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #283058;
  background: rgba(111, 76, 255, 0.07);
  font-size: 2rem;
  line-height: 1;
}

.tools-sidebar-progress {
  grid-column: 1 / 3;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(111, 76, 255, 0.12);
}

.tools-sidebar-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7b5cff, #5d37ff);
}

.tools-sidebar-last-card b {
  justify-self: end;
  color: #828aa7;
  font-size: 0.76rem;
  font-weight: 900;
}

.tools-sidebar-follow,
.tools-sidebar-browse {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(111, 76, 255, 0.055);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 950;
  cursor: pointer;
}

.tools-sidebar-browse {
  margin-top: auto;
}

.tools-sidebar-follow {
  margin-top: 12px;
}

.tools-sidebar-follow svg,
.tools-sidebar-browse svg {
  width: 22px;
  height: 22px;
}

.tools-sidebar-empty {
  min-height: 210px;
  padding: 26px 18px;
  border-top: 1px solid rgba(111, 76, 255, 0.11);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.tools-sidebar-empty > span {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.09);
}

.tools-sidebar-empty > span svg {
  width: 28px;
  height: 28px;
}

.tools-sidebar-empty strong {
  color: #172044;
  font-size: 1rem;
  font-weight: 950;
}

.tools-sidebar-empty p {
  max-width: 220px;
  margin: 0;
  color: #858da9;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.8;
}

.guest-shell.is-sidebar-collapsed .tools-sidebar-panel,
.guest-shell.is-sidebar-collapsed .tools-sidebar-browse {
  display: none;
}

.tools-page {
  position: relative;
  width: min(100%, 1018px);
  margin: 0 auto;
  padding-top: 18px;
}

.tools-page-actions {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: 4;
  display: flex;
  direction: ltr;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.tools-page-actions > * {
  pointer-events: auto;
}

.tools-xp-badge {
  position: static;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(111, 76, 255, 0.16);
  border-radius: 999px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(111, 76, 255, 0.08);
  font: inherit;
  cursor: pointer;
}

.tools-xp-badge span {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
}

.tools-xp-badge span svg {
  width: 17px;
  height: 17px;
}

.tools-xp-badge b {
  color: #172044;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 950;
}

.tools-xp-badge small {
  color: #8b94b2;
  font-size: 0.65rem;
  font-weight: 900;
}

.tools-main-topbar {
  width: min(100%, 1120px);
  margin: 0 auto 18px;
  direction: ltr;
}

.tools-main-topbar .model-switcher-wrap,
.tools-main-topbar .home-top-actions {
  direction: rtl;
}

.tools-hero {
  text-align: center;
  margin-bottom: 16px;
  padding-top: 8px;
}

.tools-title-row {
  display: inline-flex;
  direction: rtl;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tools-title-row h1 {
  margin: 0;
  color: #172044;
  font-size: clamp(1.3rem, 2.15vw, 1.7rem);
  font-weight: 950;
  letter-spacing: 0;
}

.tools-title-accent {
  color: #6b4cff;
}

.tools-title-icon {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.08);
}

.tools-title-icon svg {
  width: 16px;
  height: 16px;
}

.tools-hero p {
  margin: 5px 0 0;
  color: #8c94ad;
  font-size: 0.82rem;
  font-weight: 800;
}

.tools-filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(86px, 1fr));
  gap: 10px;
  margin: 0 auto 14px;
}

.tools-filter {
  min-height: 36px;
  border: 1px solid rgba(111, 76, 255, 0.16);
  border-radius: 999px;
  color: #8c94ad;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(111, 76, 255, 0.035);
}

.tools-filter.is-active {
  color: #6b4cff;
  border-color: rgba(111, 76, 255, 0.46);
  background: rgba(255, 255, 255, 0.98);
}

.tools-unified-bar {
  width: min(100%, 1120px);
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 18px;
}

.tools-unified-filter,
.tools-unified-return {
  min-width: 104px;
  height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(111, 76, 255, 0.14);
  border-radius: 999px;
  color: #6f789f;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(31, 35, 75, 0.045);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.tools-unified-filter.is-active {
  color: #6b4cff;
  border-color: rgba(111, 76, 255, 0.42);
  background: #fff;
  box-shadow: 0 10px 26px rgba(111, 76, 255, 0.1);
}

.tools-unified-return {
  min-width: 142px;
  height: 42px;
  direction: ltr;
  justify-content: space-between;
  gap: 10px;
  padding: 0 8px 0 15px;
  color: #172044;
  border-color: rgba(111, 76, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(111, 76, 255, 0.08);
}

.tools-unified-return span {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #7b5cff, #5d37ff);
  box-shadow: 0 10px 22px rgba(111, 76, 255, 0.24);
  font-size: 1.1rem;
  font-weight: 950;
  line-height: 1;
}

.tools-unified-return b {
  direction: rtl;
  font-size: 0.75rem;
  font-weight: 950;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
}

.tool-card {
  position: relative;
  min-height: 136px;
  padding: 18px 16px 13px;
  border: 1px solid rgba(111, 76, 255, 0.14);
  border-radius: 18px;
  color: #172044;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(22, 30, 68, 0.045);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 76, 255, 0.38);
  box-shadow: 0 18px 42px rgba(111, 76, 255, 0.1);
}

.tool-card-star {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 15px;
  height: 15px;
  color: #8d95b2;
}

.tool-availability-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 25px;
  max-width: 118px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f9b76;
  background: rgba(26, 214, 163, 0.13);
  font-size: 0.64rem;
  font-weight: 950;
  white-space: nowrap;
}

.tool-availability-badge.is-unavailable {
  color: #7f87a8;
  background: rgba(127, 135, 168, 0.1);
}

.tool-availability-badge.is-development {
  color: #9b6a10;
  background: rgba(255, 185, 80, 0.18);
}

.tool-availability-badge + .tool-card-icon,
.tool-card-star + .tool-availability-badge + .tool-card-icon {
  margin-top: 20px;
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #6b4cff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.16), rgba(111, 76, 255, 0.07));
}

.tool-card-icon svg,
.tool-card-star svg {
  width: 20px;
  height: 20px;
}

.tool-card strong {
  font-size: 0.92rem;
  font-weight: 950;
}

.tool-card-copy {
  min-height: 28px;
  color: #8c94ad;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.5;
}

.tools-grid.is-subscriber-filter .tool-card {
  min-height: 158px;
}

.tools-grid.is-subscriber-filter .tool-card strong {
  min-height: 24px;
  font-size: 0.94rem;
  line-height: 1.28;
}

.tools-grid.is-subscriber-filter .tool-card-copy {
  min-height: 38px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tools-suggest {
  width: fit-content;
  margin: 22px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  text-align: center;
  color: #929ab2;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.45;
}

.tools-suggest button {
  border: 0;
  padding: 0;
  color: #6d4cff;
  background: transparent;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
}

.tool-card-action {
  min-height: 26px;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid rgba(111, 76, 255, 0.34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 950;
}

.tool-card-action b {
  font-size: 0.78rem;
  line-height: 1;
}

.tool-card[data-dev-tool],
.free-tool-card[data-dev-tool] {
  cursor: default;
}

.tool-card[data-dev-tool]:hover,
.free-tool-card[data-dev-tool]:hover {
  border-color: rgba(255, 185, 80, 0.44);
  box-shadow: 0 16px 36px rgba(255, 185, 80, 0.1);
}

.tool-card-action.is-development,
.writing-tool-action.is-development,
.summary-tool-action.is-development,
.data-tool-action.is-development,
.productivity-tool-action.is-development,
.education-tool-action.is-development {
  border-color: rgba(255, 185, 80, 0.36);
  color: #9b6a10;
  background: rgba(255, 185, 80, 0.12);
}

.free-tools-main {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
}

.guest-shell.is-tools-workspace.is-subscriber-tools {
  width: min(1680px, calc(100% - 28px));
  grid-template-columns: 270px minmax(0, 1fr);
}

.guest-shell.is-tools-workspace.is-subscriber-tools .guest-sidepanel {
  display: none;
}

.guest-shell.is-home-workspace .free-tools-main {
  padding: 18px clamp(22px, 3vw, 44px) 28px;
}

.free-tools-main > .tools-main-topbar {
  display: none;
}

.free-tools-page {
  width: min(100%, 1384px);
  padding: 0 0 26px;
}

.free-tools-back-link {
  width: fit-content;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px auto;
  padding: 0;
  border: 0;
  color: #6b4cff;
  background: transparent;
  font: inherit;
  font-size: 1.12rem;
  font-weight: 950;
  direction: ltr;
  cursor: pointer;
}

.free-tools-back-link span {
  font-size: 1.2em;
  line-height: 1;
}

.free-tools-main svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.free-tools-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 0 0 16px;
}

.free-tools-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  direction: ltr;
}

.free-tools-gift {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #6b4cff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.11), rgba(111, 76, 255, 0.03));
  border: 1px solid rgba(111, 76, 255, 0.11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92), 0 18px 36px rgba(111, 76, 255, 0.08);
}

.free-tools-gift svg {
  width: 39px;
  height: 39px;
  stroke-width: 2.35;
}

.free-tools-title h1 {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  direction: rtl;
  color: #101938;
  font-size: 2.78rem;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}

.free-tools-title h1 span,
.free-tools-title h1 b {
  display: inline-block;
}

.free-tools-title h1 b {
  color: #6b4cff;
}

.free-tools-sparkle {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #6b4cff;
}

.free-tools-sparkle svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.3;
}

.free-tools-hero p {
  margin: 14px 0 12px;
  color: #7884a8;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 900;
}

.free-tools-locked-badge {
  min-height: 40px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  color: #6847ff;
  background: rgba(111, 76, 255, 0.06);
  border: 1px solid rgba(111, 76, 255, 0.11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.free-tools-locked-badge svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.free-tools-locked-badge b {
  font-size: 0.9rem;
  font-weight: 950;
}

.free-tools-locked-badge.is-open {
  color: #0f8d62;
  background: rgba(21, 190, 128, 0.08);
  border-color: rgba(21, 190, 128, 0.16);
}

.free-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 0;
}

.free-tool-card {
  height: 148px;
  min-height: 148px;
  padding: 18px 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(118, 88, 255, 0.08);
  border-radius: 14px;
  color: #101938;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(31, 35, 75, 0.055);
  text-align: right;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.free-tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 76, 255, 0.22);
  box-shadow: 0 20px 40px rgba(59, 45, 126, 0.09);
}

.free-tool-card.is-unlocked {
  border-color: rgba(21, 190, 128, 0.16);
  box-shadow: 0 16px 34px rgba(21, 190, 128, 0.07);
}

.free-tool-card.is-unlocked .free-tool-icon,
.free-tool-lock.is-open {
  color: #0f8d62;
  background: rgba(21, 190, 128, 0.08);
}

.free-tool-card.is-development {
  border-color: rgba(255, 185, 80, 0.2);
}

.free-tool-lock.is-development {
  color: #9b6a10;
  background: rgba(255, 185, 80, 0.14);
}

.free-tool-body {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.free-tool-icon {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #6b4cff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.1), rgba(111, 76, 255, 0.025));
}

.free-tool-icon svg {
  width: 39px;
  height: 39px;
  stroke-width: 2.15;
}

.free-tool-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
  padding-top: 4px;
}

.free-tool-copy strong {
  color: #101938;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 950;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.free-tool-copy small {
  color: #7b87aa;
  font-size: 0.73rem;
  line-height: 1.55;
  font-weight: 850;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.free-tool-lock {
  min-height: 31px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  border-radius: 9px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.055);
}

.free-tool-lock b {
  font-size: 0.83rem;
  line-height: 1;
  font-weight: 950;
}

.free-tool-lock svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.45;
}

.free-tools-benefits {
  margin-top: 16px;
  min-height: 92px;
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px dashed rgba(111, 76, 255, 0.3);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 28px rgba(31, 35, 75, 0.035);
}

.free-tools-benefit {
  min-width: 0;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.free-tools-benefit i {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.07);
  font-style: normal;
}

.free-tools-benefit i svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.15;
}

.free-tools-benefit span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.free-tools-benefit b {
  color: #101938;
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 950;
}

.free-tools-benefit small {
  color: #7b87aa;
  font-size: 0.74rem;
  line-height: 1.65;
  font-weight: 850;
}

.free-tools-pricing-btn {
  min-width: 162px;
  min-height: 56px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, #7a56ff 0%, #5f35f5 100%);
  box-shadow: 0 16px 30px rgba(111, 76, 255, 0.26);
  font-size: 0.96rem;
  font-weight: 950;
  cursor: pointer;
}

.free-tools-plan-badge {
  min-width: 230px;
  min-height: 56px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 10px;
  color: #0f8d62;
  background: rgba(21, 190, 128, 0.08);
  border: 1px solid rgba(21, 190, 128, 0.16);
  font-size: 0.88rem;
  font-weight: 950;
}

.free-tools-plan-badge svg {
  width: 22px;
  height: 22px;
}

.free-tools-pricing-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

@media (max-width: 1240px) {
  .free-tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .free-tools-benefits {
    flex-wrap: wrap;
  }

  .free-tools-benefit {
    flex: 1 1 30%;
  }

  .free-tools-pricing-btn,
  .free-tools-plan-badge {
    min-width: 190px;
  }
}

@media (max-width: 900px) {
  .guest-shell.is-home-workspace .free-tools-main,
  .free-tools-main {
    padding: 20px 14px 28px;
  }

  .free-tools-title {
    flex-wrap: wrap;
    gap: 12px;
  }

  .free-tools-gift {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 20px;
  }

  .free-tools-gift svg {
    width: 34px;
    height: 34px;
  }

  .free-tools-title h1 {
    width: 100%;
    order: 3;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 2.08rem;
  }

  .free-tools-sparkle {
    width: 22px;
    height: 22px;
  }

  .free-tools-hero p {
    font-size: 0.95rem;
  }

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

  .free-tools-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .free-tools-benefit {
    width: 100%;
  }

  .free-tools-pricing-btn,
  .free-tools-plan-badge {
    width: 100%;
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .free-tools-title h1 {
    font-size: 1.72rem;
  }

  .free-tools-locked-badge {
    width: 100%;
    min-height: 38px;
    padding-inline: 14px;
  }

  .free-tools-locked-badge b {
    font-size: 0.8rem;
  }

  .free-tools-grid {
    grid-template-columns: 1fr;
  }

  .free-tool-card {
    min-height: 138px;
    padding: 18px 16px 12px;
  }

  .free-tool-body {
    gap: 14px;
  }

  .free-tool-icon {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border-radius: 19px;
  }

  .free-tool-icon svg {
    width: 32px;
    height: 32px;
  }

  .free-tools-benefits {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}

/* Subscriber tools index matching the compact reference layout. */
.guest-shell.is-tools-workspace.is-subscriber-tools {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  display: block;
  padding: 0;
  background: linear-gradient(180deg, #fbfbff 0%, #ffffff 46%, #fbfaff 100%);
}

.guest-shell.is-tools-workspace.is-subscriber-tools .guest-sidebar,
.guest-shell.is-tools-workspace.is-subscriber-tools .guest-sidepanel {
  display: none;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-main {
  width: 100%;
  min-height: 100vh;
  border-radius: 0;
  padding: 34px clamp(28px, 4vw, 54px) 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(117, 82, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #fbfbff 0%, #ffffff 52%, #fbfaff 100%);
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-page {
  width: min(100%, 1018px);
  margin: 0 auto;
  padding-top: 18px;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-hero {
  padding: 8px 0 14px;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-title {
  gap: 10px;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-gift {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(111, 76, 255, 0.1);
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-gift svg {
  width: 22px;
  height: 22px;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-title h1 {
  gap: 7px;
  font-size: clamp(1.65rem, 2.2vw, 2.18rem);
  line-height: 1.15;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-sparkle {
  width: 20px;
  height: 20px;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-sparkle svg {
  width: 19px;
  height: 19px;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-hero p {
  margin: 5px 0 5px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #8590b3;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-locked-badge {
  min-height: 21px;
  padding: 0 12px;
  gap: 6px;
  color: #16a56f;
  background: rgba(21, 190, 128, 0.1);
  border-color: rgba(21, 190, 128, 0.17);
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-locked-badge b {
  font-size: 0.62rem;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-locked-badge svg {
  width: 11px;
  height: 11px;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-grid {
  direction: rtl;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-card {
  position: relative;
  height: 158px;
  min-height: 158px;
  padding: 16px 16px 13px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  border-color: rgba(111, 76, 255, 0.09);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 27px rgba(31, 35, 75, 0.055);
  text-align: center;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-card.is-unlocked {
  border-color: rgba(111, 76, 255, 0.09);
  box-shadow: 0 12px 27px rgba(31, 35, 75, 0.055);
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 76, 255, 0.24);
  box-shadow: 0 18px 34px rgba(111, 76, 255, 0.11);
}

.free-tool-favorite {
  position: absolute;
  top: 17px;
  left: 17px;
  width: 17px;
  height: 17px;
  color: #7380a9;
}

.free-tool-favorite svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-body {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 16px;
  color: #774dff;
  background: linear-gradient(145deg, rgba(118, 82, 255, 0.13), rgba(118, 82, 255, 0.035));
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-card.is-unlocked .free-tool-icon {
  color: #774dff;
  background: linear-gradient(145deg, rgba(118, 82, 255, 0.13), rgba(118, 82, 255, 0.035));
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.25;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-copy {
  gap: 3px;
  padding-top: 0;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-copy strong {
  font-size: 0.94rem;
  line-height: 1.25;
  letter-spacing: 0;
  -webkit-line-clamp: 2;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-copy small {
  width: min(100%, 178px);
  margin: 0 auto;
  font-size: 0.7rem;
  line-height: 1.42;
  color: #8590ad;
  font-weight: 900;
  -webkit-line-clamp: 2;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-lock,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-lock.is-open {
  width: fit-content;
  min-height: 26px;
  max-width: 100%;
  padding: 0 12px;
  border-radius: 999px;
  color: #774dff;
  background: rgba(118, 82, 255, 0.08);
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-lock b {
  font-size: 0.68rem;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-lock svg {
  width: 11px;
  height: 11px;
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-card.requires-auth .free-tool-lock {
  color: #7f87a8;
  background: rgba(127, 135, 168, 0.1);
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-card.is-development {
  border-color: rgba(255, 185, 80, 0.2);
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-lock.is-development {
  color: #9b6a10;
  background: rgba(255, 185, 80, 0.14);
}

.guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-benefits {
  min-height: 68px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1.55fr 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(31, 35, 75, 0.045);
}

.free-tools-footer-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: right;
}

.free-tools-footer-card i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #774dff;
  background: rgba(118, 82, 255, 0.08);
  font-style: normal;
}

.free-tools-footer-card i svg {
  width: 21px;
  height: 21px;
}

.free-tools-footer-card span,
.free-tools-suggest-center {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.free-tools-footer-card b,
.free-tools-suggest-center span {
  color: #172044;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 950;
}

.free-tools-footer-card small,
.free-tools-suggest-center small {
  color: #7d88aa;
  font-size: 0.64rem;
  line-height: 1.45;
  font-weight: 800;
}

.free-tools-suggest-center {
  justify-items: center;
  text-align: center;
}

.free-tools-suggest-center button {
  min-height: 31px;
  margin-top: 2px;
  padding: 0 24px;
  border: 1px solid rgba(111, 76, 255, 0.25);
  border-radius: 999px;
  color: #6b4cff;
  background: #fff;
  box-shadow: 0 10px 23px rgba(111, 76, 255, 0.08);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  cursor: pointer;
}

@media (max-width: 1240px) {
  .tools-unified-bar {
    flex-wrap: wrap;
  }

  .guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-main {
    padding: 18px 14px 24px;
  }

  .guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .tools-unified-filter,
  .tools-unified-return {
    min-width: calc(50% - 7px);
  }

  .guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-grid {
    grid-template-columns: 1fr;
  }

  .guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-card {
    height: 116px;
  }
}

.storage-tools-main {
  min-height: 100%;
  background:
    radial-gradient(circle at 22% 10%, rgba(122, 89, 255, 0.055), transparent 32%),
    radial-gradient(circle at 84% 12%, rgba(122, 89, 255, 0.04), transparent 30%),
    #ffffff;
}

.storage-tools-page {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 18px 0 30px;
}

.storage-tools-page .tools-page-actions {
  top: 2px;
}

.storage-tools-page .tools-unified-return {
  min-width: 156px;
  height: 42px;
  border-radius: 16px;
}

.storage-tools-page .tools-xp-badge {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 16px;
}

.storage-tools-hero {
  margin: 0 auto 22px;
  padding-top: 26px;
  text-align: center;
}

.storage-tools-title-row {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  direction: rtl;
}

.storage-tools-title-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.08);
}

.storage-tools-title-icon svg {
  width: 22px;
  height: 22px;
}

.storage-tools-hero h1 {
  margin: 0;
  color: #111936;
  font-size: clamp(1.72rem, 2.05vw, 2.12rem);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: 0;
}

.storage-tools-hero p {
  margin: 7px 0 0;
  color: #6f7899;
  font-size: 0.84rem;
  line-height: 1.65;
  font-weight: 850;
}

.storage-tools-tabs {
  width: min(100%, 940px);
  gap: 8px;
  margin: 0 auto 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.storage-tools-tabs .tools-unified-filter {
  min-width: 90px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  color: #7b84a6;
  border-color: rgba(111, 76, 255, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(31, 35, 75, 0.045);
  font-size: 0.71rem;
}

.storage-tools-tabs .tools-unified-filter.is-active {
  color: #6b4cff;
  border-color: rgba(111, 76, 255, 0.55);
  box-shadow: 0 12px 28px rgba(111, 76, 255, 0.11);
}

.storage-tools-grid {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
}

.storage-tool-card {
  position: relative;
  min-height: 154px;
  padding: 18px 16px 14px;
  border: 1px solid rgba(111, 76, 255, 0.095);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #111936;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 13px 34px rgba(31, 35, 75, 0.052);
  text-align: center;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.storage-tool-card.is-ready {
  border-color: rgba(111, 76, 255, 0.2);
  box-shadow: 0 16px 36px rgba(111, 76, 255, 0.08);
}

.storage-tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 76, 255, 0.23);
  box-shadow: 0 20px 42px rgba(111, 76, 255, 0.1);
}

.storage-tool-star {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #7d879e;
}

.storage-tool-star svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.storage-tool-dev-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9b6a10;
  background: rgba(255, 185, 80, 0.14);
  font-size: 0.64rem;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.storage-tool-dev-badge.is-ready {
  color: #5d3eff;
  background: rgba(111, 76, 255, 0.12);
}

.storage-tool-availability {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 27px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.storage-tool-availability.is-available {
  color: #07966e;
  background: #dffbed;
  box-shadow: inset 0 0 0 1px rgba(7, 150, 110, 0.06);
}

.storage-tool-availability.is-development {
  color: #9b6a10;
  background: rgba(255, 185, 80, 0.14);
}

.storage-tool-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #754dff;
  background: linear-gradient(145deg, rgba(118, 82, 255, 0.13), rgba(118, 82, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(118, 82, 255, 0.035);
}

.storage-tool-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.15;
}

.storage-tool-card strong {
  margin-top: 2px;
  color: #111936;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: 0;
}

.storage-tool-card small {
  width: min(100%, 180px);
  min-height: 34px;
  color: #7d879e;
  font-size: 0.66rem;
  line-height: 1.55;
  font-weight: 850;
}

.storage-tool-status {
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #9b6a10;
  background: rgba(255, 185, 80, 0.13);
  font-size: 0.68rem;
  font-weight: 950;
}

.storage-tool-status.is-ready {
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid rgba(111, 76, 255, 0.42);
  color: #6d4aff;
  background: #fff;
  box-shadow: 0 10px 24px rgba(111, 76, 255, 0.08);
  font-size: 0.76rem;
}

.storage-tool-status.is-ready b {
  font-size: 0.9rem;
  line-height: 1;
}

@media (max-width: 1240px) {
  .storage-tools-tabs {
    gap: 8px;
  }

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

@media (max-width: 900px) {
  .storage-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .storage-tools-page {
    padding: 16px 0 28px;
  }

  .storage-tools-hero {
    padding-top: 54px;
  }

  .storage-tools-grid {
    grid-template-columns: 1fr;
  }

  .storage-tool-card {
    min-height: 154px;
  }
}

.storage-tools-tabs {
  width: min(100%, 1120px);
  gap: 12px;
  margin: 0 auto 24px;
  flex-wrap: wrap;
}

.storage-tools-tabs .tools-unified-filter {
  min-width: 104px;
  height: 37px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.smart-storage-page {
  width: min(100%, 1160px);
  padding-bottom: 18px;
}

.smart-storage-hero {
  direction: rtl;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 420px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}

.smart-storage-hero-copy,
.smart-storage-hero-usage,
.smart-storage-stat-card,
.smart-storage-toolbar,
.smart-storage-create-panel,
.smart-storage-upload-status,
.smart-storage-folder-header,
.smart-storage-bulk-bar,
.smart-storage-grid-block,
.smart-storage-packages,
.smart-storage-locked {
  border: 1px solid rgba(111, 76, 255, 0.1);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 45px rgba(111, 76, 255, 0.08);
  backdrop-filter: blur(18px);
}

.smart-storage-locked {
  width: min(100%, 760px);
  margin: 54px auto 30px;
  padding: 36px 30px;
  border-radius: 30px;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  direction: rtl;
}

.smart-storage-locked-icon {
  width: 68px;
  height: 68px;
  border-radius: 24px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.13), rgba(245, 241, 255, 0.96));
  color: #6d4cff;
}

.smart-storage-locked-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.smart-storage-locked strong {
  color: #111936;
  font-size: 1.45rem;
  font-weight: 900;
}

.smart-storage-locked p {
  max-width: 520px;
  margin: 0;
  color: #7d86a3;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.9;
}

.smart-storage-hero-copy {
  border-radius: 28px;
  padding: 26px 28px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.smart-storage-hero-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.smart-storage-hero-title h1 {
  margin: 0;
  color: #111936;
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
}

.smart-storage-hero-title p,
.smart-storage-hero-copy p {
  margin: 0;
  color: #7b83a4;
  font-size: 0.98rem;
  line-height: 1.9;
}

.smart-storage-hero-icon {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(110, 74, 255, 0.13), rgba(110, 74, 255, 0.06));
  color: #6b4cff;
}

.smart-storage-hero-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.smart-storage-hero-usage {
  border-radius: 28px;
  padding: 22px 24px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.smart-storage-usage-top,
.smart-storage-usage-meta,
.smart-storage-section-head,
.smart-storage-folder-header,
.smart-storage-bulk-bar,
.smart-storage-packages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.smart-storage-usage-top strong {
  color: #111936;
  font-size: 1.45rem;
  font-weight: 800;
}

.smart-storage-usage-top span {
  color: #7b83a4;
  font-size: 0.92rem;
  font-weight: 700;
}

.smart-storage-progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(111, 76, 255, 0.08);
  overflow: hidden;
}

.smart-storage-progress.small {
  height: 8px;
}

.smart-storage-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6b4cff, #8d5cf6);
}

.smart-storage-usage-meta {
  color: #7b83a4;
}

.smart-storage-usage-meta b {
  color: #111936;
  font-size: 0.92rem;
}

.smart-storage-stat-grid {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.smart-storage-stat-card {
  border-radius: 22px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.smart-storage-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(110, 74, 255, 0.12), rgba(110, 74, 255, 0.05));
  color: #6b4cff;
  flex: 0 0 auto;
}

.smart-storage-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.smart-storage-stat-card strong,
.smart-storage-stat-card b {
  display: block;
}

.smart-storage-stat-card strong {
  color: #111936;
  font-size: 1rem;
  font-weight: 800;
}

.smart-storage-stat-card b {
  margin-top: 4px;
  color: #7b83a4;
  font-size: 0.74rem;
  font-weight: 700;
}

.smart-storage-stat-card small {
  display: block;
  margin-top: 4px;
  color: #9aa2bd;
  font-size: 0.69rem;
}

.smart-storage-toolbar {
  direction: rtl;
  border-radius: 26px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto auto auto minmax(250px, 1fr) 150px 150px;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.smart-storage-primary-btn,
.smart-storage-secondary-btn,
.smart-storage-select,
.smart-storage-search {
  border-radius: 18px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  background: #fff;
  min-height: 50px;
}

.smart-storage-primary-btn,
.smart-storage-secondary-btn {
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #111936;
  font-weight: 800;
  font-size: 0.9rem;
}

.smart-storage-primary-btn {
  background: linear-gradient(135deg, #6b4cff, #8d5cf6);
  color: #fff;
  box-shadow: 0 16px 30px rgba(111, 76, 255, 0.18);
}

.smart-storage-primary-btn span,
.smart-storage-secondary-btn span {
  display: inline-flex;
}

.smart-storage-primary-btn svg,
.smart-storage-secondary-btn svg,
.smart-storage-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.smart-storage-secondary-btn.danger,
.smart-storage-icon-btn.danger {
  color: #b33434;
}

.smart-storage-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.smart-storage-search input {
  border: 0;
  outline: none;
  width: 100%;
  min-width: 0;
  background: transparent;
  color: #111936;
  font-size: 0.92rem;
}

.smart-storage-select {
  width: 100%;
  padding: 0 14px;
  color: #111936;
  font-size: 0.9rem;
  outline: none;
}

.smart-storage-create-panel,
.smart-storage-upload-status {
  border-radius: 24px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.smart-storage-create-panel p,
.smart-storage-upload-status strong {
  margin: 0;
  color: #7b83a4;
}

.smart-storage-create-panel strong,
.smart-storage-section-head strong {
  color: #111936;
  font-size: 1.1rem;
  font-weight: 800;
}

.smart-storage-create-panel input {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  padding: 0 16px;
  outline: none;
  background: #fff;
  color: #111936;
}

.smart-storage-create-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.smart-storage-folder-header,
.smart-storage-bulk-bar,
.smart-storage-packages {
  border-radius: 24px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.smart-storage-folder-header-title h2 {
  margin: 0;
  color: #111936;
  font-size: 1.65rem;
  font-weight: 800;
}

.smart-storage-folder-header-title span,
.smart-storage-folder-header-copy p,
.smart-storage-section-head p,
.smart-storage-packages-copy p {
  color: #7b83a4;
  margin: 4px 0 0;
  font-size: 0.88rem;
  line-height: 1.8;
}

.smart-storage-folder-actions,
.smart-storage-bulk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.smart-storage-folder-grid {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.smart-storage-folder-card {
  position: relative;
  direction: ltr;
  border-radius: 18px;
  border: 1px solid rgba(111, 76, 255, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 32px rgba(111, 76, 255, 0.055);
  padding: 16px 18px;
  min-height: 112px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.smart-storage-folder-card-icon {
  grid-row: 1 / span 3;
  width: 58px;
  height: 50px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b4cff;
  background: linear-gradient(180deg, rgba(110, 74, 255, 0.12), rgba(110, 74, 255, 0.05));
}

.smart-storage-folder-card-icon.is-yellow {
  background: transparent;
  color: #f2b51f;
}

.smart-storage-folder-card-icon svg {
  width: 44px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.smart-storage-folder-card-icon .smart-storage-yellow-folder,
.smart-storage-folder-card-icon .smart-storage-yellow-folder path {
  width: 54px;
  height: 44px;
  stroke: none;
}

.smart-storage-folder-card-icon .smart-storage-yellow-folder path:nth-child(1) {
  fill: #f6c343;
}

.smart-storage-folder-card-icon .smart-storage-yellow-folder path:nth-child(2) {
  fill: #ffd767;
}

.smart-storage-folder-card-icon .smart-storage-yellow-folder path:nth-child(3) {
  fill: none;
  stroke: #e3a91d;
}

.smart-storage-folder-card strong {
  grid-column: 2;
  direction: rtl;
  text-align: right;
  color: #111936;
  font-size: 0.92rem;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-storage-folder-card small,
.smart-storage-folder-card span {
  grid-column: 2;
  direction: rtl;
  text-align: right;
  color: #7b83a4;
  font-size: 0.72rem;
  line-height: 1.45;
}

.smart-storage-folder-card .smart-storage-folder-card-icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  direction: ltr;
  text-align: center;
  line-height: 1;
}

.smart-storage-folder-card-menu {
  position: absolute;
  top: 12px;
  left: 12px;
}

.smart-storage-folder-card-menu button {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  background: #fff;
  color: #8a90aa;
}

.smart-storage-file-grid {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.smart-storage-file-card {
  border-radius: 22px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 34px rgba(111, 76, 255, 0.06);
  padding: 14px;
  display: grid;
  grid-template-columns: 26px 68px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.smart-storage-file-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.smart-storage-file-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.smart-storage-file-check span {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(111, 76, 255, 0.18);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.smart-storage-file-check input:checked + span {
  color: #fff;
  background: linear-gradient(135deg, #6b4cff, #8d5cf6);
  border-color: transparent;
}

.smart-storage-file-check span svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.smart-storage-file-thumb,
.smart-storage-recent-thumb {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(110, 74, 255, 0.12), rgba(110, 74, 255, 0.05));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b4cff;
}

.smart-storage-file-thumb img,
.smart-storage-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.smart-storage-file-copy strong,
.smart-storage-recent-copy strong {
  display: block;
  color: #111936;
  font-size: 0.92rem;
  font-weight: 800;
}

.smart-storage-file-copy small,
.smart-storage-file-copy span,
.smart-storage-recent-copy small,
.smart-storage-recent-copy span {
  display: block;
  color: #7b83a4;
  font-size: 0.74rem;
  margin-top: 4px;
}

.smart-storage-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.smart-storage-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  background: #fff;
  color: #6b4cff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.smart-storage-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(17, 25, 54, 0.28);
  backdrop-filter: blur(14px);
}

.smart-storage-preview-modal {
  direction: rtl;
  width: min(980px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(111, 76, 255, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 90px rgba(17, 25, 54, 0.22);
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto;
}

.smart-storage-preview-head,
.smart-storage-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
}

.smart-storage-preview-head {
  border-bottom: 1px solid rgba(111, 76, 255, 0.1);
}

.smart-storage-preview-head strong {
  display: block;
  color: #111936;
  font-size: 1.02rem;
  font-weight: 800;
  max-width: 72vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-storage-preview-head span {
  display: block;
  color: #7b83a4;
  font-size: 0.78rem;
  margin-top: 4px;
}

.smart-storage-preview-body {
  min-height: 320px;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(180deg, rgba(247, 244, 255, 0.88), rgba(255, 255, 255, 0.96));
}

.smart-storage-preview-body img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(17, 25, 54, 0.16);
  background: #fff;
}

.smart-storage-preview-note {
  max-width: 420px;
  text-align: center;
  color: #7b83a4;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.smart-storage-preview-note span {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b4cff;
  background: linear-gradient(180deg, rgba(110, 74, 255, 0.14), rgba(110, 74, 255, 0.06));
}

.smart-storage-preview-note strong {
  color: #111936;
  font-size: 1rem;
  font-weight: 800;
}

.smart-storage-preview-note p {
  margin: 0;
  line-height: 1.8;
}

.smart-storage-preview-note.is-error strong {
  color: #b42318;
}

.smart-storage-preview-actions {
  justify-content: flex-start;
  border-top: 1px solid rgba(111, 76, 255, 0.1);
}

.smart-storage-empty-state {
  border-radius: 22px;
  border: 1px dashed rgba(111, 76, 255, 0.2);
  background: rgba(255, 255, 255, 0.72);
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  color: #7b83a4;
}

.smart-storage-empty-state.wide {
  grid-column: 1 / -1;
}

.smart-storage-empty-state span {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(110, 74, 255, 0.12), rgba(110, 74, 255, 0.05));
  color: #6b4cff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.smart-storage-empty-state span svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.smart-storage-empty-state strong {
  color: #111936;
  font-size: 1.02rem;
  font-weight: 800;
}

.smart-storage-empty-state p {
  margin: 0;
  max-width: 420px;
  line-height: 1.8;
}

.smart-storage-grid-block {
  border-radius: 26px;
  padding: 18px;
  margin-bottom: 16px;
}

.smart-storage-section-head {
  margin-bottom: 14px;
}

.smart-storage-section-head span {
  color: #8a90aa;
  font-size: 0.82rem;
  font-weight: 700;
}

.smart-storage-recent-grid {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.smart-storage-recent-card {
  border-radius: 20px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  background: rgba(255, 255, 255, 0.95);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.smart-storage-recent-thumb {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.smart-storage-packages {
  border-radius: 28px;
  padding: 18px;
  margin-bottom: 8px;
}

.smart-storage-packages-copy {
  max-width: 330px;
}

.smart-storage-packages-copy strong {
  color: #111936;
  font-size: 1.02rem;
  font-weight: 800;
}

.smart-storage-package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
}

.smart-storage-package-card {
  border-radius: 22px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  background: rgba(255, 255, 255, 0.92);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.smart-storage-package-card.is-featured {
  background: linear-gradient(180deg, rgba(110, 74, 255, 0.12), rgba(255, 255, 255, 0.96));
  border-color: rgba(111, 76, 255, 0.2);
}

.smart-storage-package-card span {
  color: #8a90aa;
  font-size: 0.8rem;
  font-weight: 700;
}

.smart-storage-package-card strong {
  color: #111936;
  font-size: 1.25rem;
  font-weight: 800;
}

.smart-storage-package-card small {
  color: #7b83a4;
  font-size: 0.75rem;
}

@media (max-width: 1240px) {
  .smart-storage-hero,
  .smart-storage-stat-grid,
  .smart-storage-folder-grid,
  .smart-storage-recent-grid,
  .smart-storage-package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .smart-storage-hero,
  .smart-storage-toolbar,
  .smart-storage-stat-grid,
  .smart-storage-folder-grid,
  .smart-storage-file-grid,
  .smart-storage-recent-grid,
  .smart-storage-package-grid {
    grid-template-columns: 1fr;
  }

  .smart-storage-folder-header,
  .smart-storage-bulk-bar,
  .smart-storage-packages {
    flex-direction: column;
    align-items: stretch;
  }

  .smart-storage-file-card {
    grid-template-columns: 26px 56px minmax(0, 1fr);
  }

  .smart-storage-file-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.image-enhancer-main {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 58%, #ffffff 100%);
}

.image-enhancer-main svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-enhancer-page {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 0 28px;
}

.image-enhancer-back {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px auto;
  padding: 0 16px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 12px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(50, 38, 118, 0.06);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.image-enhancer-back span {
  direction: ltr;
  font-size: 1.05rem;
}

.image-enhancer-hero {
  min-height: 74px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  margin-bottom: 26px;
}

.image-enhancer-hd {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #6b4cff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.13), rgba(111, 76, 255, 0.04));
  border: 1px solid rgba(111, 76, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.88), 0 18px 44px rgba(111, 76, 255, 0.1);
}

.image-enhancer-hd svg {
  width: 43px;
  height: 43px;
  stroke-width: 2.4;
}

.image-enhancer-hero h1 {
  margin: 0;
  color: #111936;
  font-size: 2.08rem;
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: 0;
}

.image-enhancer-hero p {
  margin: 8px 0 0;
  color: #7783a5;
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 850;
}

.image-enhancer-sparkle {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: #7a57ff;
  margin-bottom: 4px;
}

.image-enhancer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.92fr);
  gap: 24px;
  align-items: stretch;
  direction: ltr;
}

.image-enhancer-grid > * {
  direction: rtl;
}

.image-enhancer-upload-card,
.image-enhancer-card,
.image-enhancer-tip,
.image-enhancer-settings,
.image-enhancer-preview article,
.image-enhancer-steps,
.image-enhancer-privacy,
.image-enhancer-locked {
  border: 1px solid rgba(111, 76, 255, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(37, 34, 83, 0.055);
}

.image-enhancer-upload-card {
  min-height: 354px;
  border-radius: 18px;
  padding: 12px;
}

.image-enhancer-dropzone {
  min-height: 330px;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 38px 26px;
  border: 2px dashed rgba(111, 76, 255, 0.34);
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #fbf8ff);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.image-enhancer-dropzone.is-drag-over {
  border-color: #6b4cff;
  background: #f4efff;
  transform: translateY(-2px);
}

.image-enhancer-upload-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #704eff;
  background: rgba(111, 76, 255, 0.08);
}

.image-enhancer-upload-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 2.2;
}

.image-enhancer-dropzone h2,
.image-enhancer-card h2,
.image-enhancer-tip h2,
.image-enhancer-steps h2,
.image-enhancer-privacy h2,
.image-enhancer-locked h1 {
  margin: 0;
  color: #111936;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 950;
  letter-spacing: 0;
}

.image-enhancer-dropzone p,
.image-enhancer-tip p,
.image-enhancer-privacy p,
.image-enhancer-locked p {
  margin: 0;
  color: #7c87a7;
  font-size: 0.82rem;
  line-height: 1.75;
  font-weight: 850;
}

.image-enhancer-dropzone small {
  color: #7c87a7;
  font-size: 0.76rem;
  line-height: 1.75;
  font-weight: 850;
}

.image-enhancer-primary,
.image-enhancer-run,
.image-enhancer-download,
.image-enhancer-locked button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(180deg, #7b55ff 0%, #5f35f5 100%);
  box-shadow: 0 16px 30px rgba(111, 76, 255, 0.22);
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.image-enhancer-primary {
  min-width: 168px;
  padding: 0 24px;
}

.image-enhancer-primary svg,
.image-enhancer-run svg,
.image-enhancer-download svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

.image-enhancer-info {
  display: grid;
  gap: 20px;
}

.image-enhancer-card {
  position: relative;
  min-height: 224px;
  border-radius: 18px;
  padding: 28px 34px 24px;
}

.image-enhancer-card-icon {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.08);
}

.image-enhancer-card ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.image-enhancer-card li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: #6f7b9e;
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 850;
}

.image-enhancer-card li svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #6b4cff;
  stroke-width: 2.4;
}

.image-enhancer-tip {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 18px;
  padding: 22px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 255, 0.96));
}

.image-enhancer-tip > span,
.image-enhancer-privacy > span,
.image-enhancer-locked > span {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.08);
}

.image-enhancer-tip svg,
.image-enhancer-privacy svg,
.image-enhancer-locked svg {
  width: 30px;
  height: 30px;
}

.image-enhancer-settings {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(180px, auto) auto;
  gap: 14px;
  align-items: end;
  border-radius: 18px;
  padding: 18px;
}

.image-enhancer-settings label {
  display: grid;
  gap: 8px;
  color: #172044;
  font-size: 0.8rem;
  font-weight: 950;
}

.image-enhancer-settings select {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(111, 76, 255, 0.14);
  border-radius: 12px;
  color: #172044;
  background: #ffffff;
  padding: 0 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
}

.image-enhancer-run {
  min-width: 180px;
  padding: 0 20px;
}

.image-enhancer-run:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.image-enhancer-reset {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(111, 76, 255, 0.16);
  border-radius: 10px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.055);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  cursor: pointer;
}

.image-enhancer-status {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #5b38f0;
  background: rgba(111, 76, 255, 0.07);
  border: 1px solid rgba(111, 76, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 900;
}

.image-enhancer-status.is-error {
  color: #dc3f62;
  background: rgba(255, 78, 116, 0.08);
  border-color: rgba(255, 78, 116, 0.16);
}

.image-enhancer-status p {
  margin: 0;
}

.image-enhancer-status span {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(111, 76, 255, 0.12);
}

.image-enhancer-status i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #7b55ff, #5f35f5);
}

.image-enhancer-preview {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.image-enhancer-preview article {
  min-width: 0;
  border-radius: 18px;
  padding: 16px;
}

.image-enhancer-preview header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.image-enhancer-preview h2 {
  margin: 0;
  color: #111936;
  font-size: 0.95rem;
  font-weight: 950;
}

.image-enhancer-preview header span {
  color: #7b86a7;
  font-size: 0.76rem;
  font-weight: 850;
}

.image-enhancer-preview article > div {
  height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfaff, #ffffff);
  border: 1px solid rgba(111, 76, 255, 0.09);
}

.image-enhancer-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-enhancer-preview .is-empty div > span {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.08);
}

.image-enhancer-preview .is-empty svg {
  width: 38px;
  height: 38px;
}

.image-enhancer-download-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: #6f7b9e;
  font-size: 0.84rem;
  font-weight: 900;
}

.image-enhancer-download {
  min-width: 178px;
  padding: 0 22px;
}

.image-enhancer-steps {
  margin-top: 22px;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}

.image-enhancer-steps > div {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.image-enhancer-steps article {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.image-enhancer-step-number {
  position: absolute;
  top: 0;
  right: calc(50% + 24px);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #6b4cff;
  font-size: 0.78rem;
  font-weight: 950;
}

.image-enhancer-steps i {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.08);
  font-style: normal;
}

.image-enhancer-steps i svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.25;
}

.image-enhancer-steps strong {
  color: #111936;
  font-size: 0.9rem;
  font-weight: 950;
}

.image-enhancer-steps small {
  color: #7b86a7;
  font-size: 0.75rem;
  line-height: 1.6;
  font-weight: 850;
}

.image-enhancer-privacy {
  margin-top: 22px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 18px;
  padding: 18px 24px;
  text-align: center;
  background: linear-gradient(90deg, rgba(111, 76, 255, 0.07), rgba(255, 255, 255, 0.96), rgba(111, 76, 255, 0.06));
}

.image-enhancer-locked {
  min-height: 430px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  border-radius: 18px;
  padding: 38px;
  text-align: center;
}

.image-enhancer-locked p {
  max-width: 540px;
}

.image-enhancer-locked button {
  min-width: 160px;
  padding: 0 22px;
}

@media (max-width: 980px) {
  .image-enhancer-grid,
  .image-enhancer-preview {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .image-enhancer-main {
    padding: 20px 14px 28px;
  }

  .image-enhancer-hero {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .image-enhancer-hero h1 {
    font-size: 1.72rem;
  }

  .image-enhancer-hd {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    border-radius: 20px;
  }

  .image-enhancer-hd svg {
    width: 36px;
    height: 36px;
  }

  .image-enhancer-dropzone {
    min-height: 292px;
    padding: 30px 18px;
  }

  .image-enhancer-card {
    padding: 24px 20px 22px;
  }

  .image-enhancer-card-icon {
    position: static;
    margin-bottom: 12px;
  }

  .image-enhancer-settings,
  .image-enhancer-steps > div {
    grid-template-columns: 1fr;
  }

  .image-enhancer-run,
  .image-enhancer-reset,
  .image-enhancer-download {
    width: 100%;
  }

  .image-enhancer-preview article > div {
    height: 250px;
  }

  .image-enhancer-download-row {
    display: grid;
    justify-items: stretch;
    text-align: center;
  }

  .image-enhancer-privacy {
    flex-direction: column;
  }
}

.image-clarifier-main {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 56%, #ffffff 100%);
}

.image-clarifier-main svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-clarifier-page {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 0 28px;
}

.image-clarifier-back {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px auto;
  padding: 0 16px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 12px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(50, 38, 118, 0.06);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.image-clarifier-back span {
  direction: ltr;
  font-size: 1.05rem;
}

.image-clarifier-hero {
  min-height: 74px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
  text-align: center;
}

.image-clarifier-icon {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #6b4cff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.13), rgba(111, 76, 255, 0.04));
  border: 1px solid rgba(111, 76, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.88), 0 18px 44px rgba(111, 76, 255, 0.1);
}

.image-clarifier-icon svg {
  width: 43px;
  height: 43px;
  stroke-width: 2.35;
}

.image-clarifier-sparkles {
  width: 54px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  color: #a48cff;
  margin-bottom: 2px;
}

.image-clarifier-sparkles svg {
  width: 24px;
  height: 24px;
}

.image-clarifier-hero h1 {
  margin: 0;
  color: #111936;
  font-size: 2.08rem;
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: 0;
}

.image-clarifier-hero p {
  max-width: 520px;
  margin: 8px auto 0;
  color: #7783a5;
  font-size: 0.88rem;
  line-height: 1.75;
  font-weight: 850;
}

.image-clarifier-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.95fr);
  gap: 18px;
  align-items: stretch;
  direction: ltr;
}

.image-clarifier-top-grid > * {
  direction: rtl;
}

.image-clarifier-upload-card,
.image-clarifier-card,
.image-clarifier-tip,
.image-clarifier-controls,
.image-clarifier-comparison,
.image-clarifier-meta,
.image-clarifier-locked {
  border: 1px solid rgba(111, 76, 255, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(37, 34, 83, 0.055);
}

.image-clarifier-upload-card {
  min-height: 286px;
  border-radius: 18px;
  padding: 12px;
}

.image-clarifier-dropzone {
  min-height: 262px;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px 24px;
  border: 2px dashed rgba(111, 76, 255, 0.34);
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #fbf8ff);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.image-clarifier-dropzone.is-drag-over {
  border-color: #6b4cff;
  background: #f4efff;
  transform: translateY(-2px);
}

.image-clarifier-upload-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #704eff;
  background: rgba(111, 76, 255, 0.08);
}

.image-clarifier-upload-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 2.2;
}

.image-clarifier-dropzone h2,
.image-clarifier-card h2,
.image-clarifier-tip h2,
.image-clarifier-meta h2,
.image-clarifier-locked h1 {
  margin: 0;
  color: #111936;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 950;
  letter-spacing: 0;
}

.image-clarifier-dropzone p,
.image-clarifier-tip p,
.image-clarifier-locked p {
  margin: 0;
  color: #7c87a7;
  font-size: 0.82rem;
  line-height: 1.75;
  font-weight: 850;
}

.image-clarifier-dropzone small {
  color: #7c87a7;
  font-size: 0.74rem;
  line-height: 1.75;
  font-weight: 850;
}

.image-clarifier-primary,
.image-clarifier-run,
.image-clarifier-download,
.image-clarifier-locked button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(180deg, #7b55ff 0%, #5f35f5 100%);
  box-shadow: 0 16px 30px rgba(111, 76, 255, 0.22);
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.image-clarifier-primary {
  min-width: 168px;
  padding: 0 24px;
}

.image-clarifier-primary svg,
.image-clarifier-run svg,
.image-clarifier-download svg,
.image-clarifier-reset svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

.image-clarifier-info-stack {
  display: grid;
  gap: 12px;
}

.image-clarifier-card {
  position: relative;
  min-height: 190px;
  border-radius: 18px;
  padding: 24px 32px 20px;
}

.image-clarifier-card-icon {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.08);
}

.image-clarifier-card ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.image-clarifier-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6f7b9e;
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 850;
}

.image-clarifier-card li svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #6b4cff;
  stroke-width: 2.4;
}

.image-clarifier-tip {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  padding: 18px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 255, 0.96));
}

.image-clarifier-tip > span,
.image-clarifier-locked > span {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.08);
}

.image-clarifier-tip svg,
.image-clarifier-locked svg {
  width: 28px;
  height: 28px;
}

.image-clarifier-controls {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(150px, 190px) repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  border-radius: 14px;
  padding: 10px;
  direction: ltr;
}

.image-clarifier-controls > * {
  direction: rtl;
}

.image-clarifier-controls label {
  min-height: 54px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 10px;
  padding: 0 14px;
  color: #172044;
  background: #ffffff;
}

.image-clarifier-controls label > span {
  grid-column: 2;
  color: #172044;
  font-size: 0.75rem;
  font-weight: 950;
}

.image-clarifier-controls select {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  border: 0;
  color: #6f7b9e;
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  outline: 0;
}

.image-clarifier-controls label svg {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  justify-self: center;
  color: #6b4cff;
}

.image-clarifier-run {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
}

.image-clarifier-run:disabled,
.image-clarifier-download.is-disabled {
  cursor: not-allowed;
  opacity: 0.56;
  box-shadow: none;
}

.image-clarifier-status {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #5b38f0;
  background: rgba(111, 76, 255, 0.07);
  border: 1px solid rgba(111, 76, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 900;
}

.image-clarifier-status.is-error {
  color: #dc3f62;
  background: rgba(255, 78, 116, 0.08);
  border-color: rgba(255, 78, 116, 0.16);
}

.image-clarifier-status p {
  margin: 0;
}

.image-clarifier-status span {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(111, 76, 255, 0.12);
}

.image-clarifier-status i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #7b55ff, #5f35f5);
}

.image-clarifier-workspace {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
  direction: ltr;
}

.image-clarifier-workspace > * {
  direction: rtl;
}

.image-clarifier-comparison,
.image-clarifier-meta {
  border-radius: 16px;
  padding: 12px;
}

.image-clarifier-stage {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4f0ff, #ffffff);
  border: 1px solid rgba(111, 76, 255, 0.08);
}

.image-clarifier-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-clarifier-after-layer {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  overflow: hidden;
  border-left: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow: -18px 0 24px rgba(17, 25, 54, 0.08);
}

.image-clarifier-after-layer img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.image-clarifier-label {
  position: absolute;
  top: 14px;
  min-width: 48px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(20, 20, 42, 0.72);
  font-size: 0.76rem;
  font-weight: 950;
}

.image-clarifier-label.is-before {
  left: 14px;
}

.image-clarifier-label.is-after {
  right: 14px;
  background: #6b4cff;
}

.image-clarifier-divider {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.96);
  transform: translateX(-1px);
}

.image-clarifier-divider i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #6b4cff;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 25, 54, 0.16);
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.image-clarifier-empty-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.82);
  transform: translate(-50%, -50%);
}

.image-clarifier-empty-mark svg {
  width: 42px;
  height: 42px;
}

.image-clarifier-comparison.is-empty .image-clarifier-stage {
  display: grid;
  place-items: center;
}

.image-clarifier-comparison.is-empty .image-clarifier-stage p {
  margin: 112px 0 0;
  color: #7c87a7;
  font-size: 0.86rem;
  font-weight: 900;
}

.image-clarifier-comparison footer {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #7c87a7;
  font-size: 0.76rem;
  font-weight: 850;
}

.image-clarifier-comparison footer p {
  margin: 0;
}

.image-clarifier-comparison footer svg {
  width: 14px;
  height: 14px;
}

.image-clarifier-meta {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
}

.image-clarifier-meta h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.image-clarifier-meta dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.image-clarifier-meta dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #7c87a7;
  font-size: 0.76rem;
  font-weight: 850;
}

.image-clarifier-meta dt,
.image-clarifier-meta dd {
  margin: 0;
  min-width: 0;
}

.image-clarifier-meta dd {
  overflow: hidden;
  color: #172044;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-clarifier-download {
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
  padding: 0 18px;
}

.image-clarifier-meta small {
  margin-top: -8px;
  color: #8b95b1;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 850;
}

.image-clarifier-reset {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(111, 76, 255, 0.16);
  border-radius: 10px;
  color: #172044;
  background: #ffffff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  cursor: pointer;
}

.image-clarifier-locked {
  min-height: 430px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  border-radius: 18px;
  padding: 38px;
  text-align: center;
}

.image-clarifier-locked p {
  max-width: 540px;
}

.image-clarifier-locked button {
  min-width: 160px;
  padding: 0 22px;
}

@media (max-width: 1040px) {
  .image-clarifier-top-grid,
  .image-clarifier-workspace {
    grid-template-columns: 1fr;
  }

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

  .image-clarifier-run {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .image-clarifier-main {
    padding: 20px 14px 28px;
  }

  .image-clarifier-hero {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .image-clarifier-hero h1 {
    font-size: 1.72rem;
  }

  .image-clarifier-icon {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    border-radius: 20px;
  }

  .image-clarifier-icon svg {
    width: 36px;
    height: 36px;
  }

  .image-clarifier-dropzone {
    min-height: 260px;
    padding: 28px 18px;
  }

  .image-clarifier-card {
    padding: 24px 20px 22px;
  }

  .image-clarifier-card-icon {
    position: static;
    margin-bottom: 12px;
  }

  .image-clarifier-controls {
    grid-template-columns: 1fr;
  }

  .image-clarifier-stage {
    height: 248px;
  }

  .image-clarifier-meta {
    padding: 20px;
  }
}

.png-pdf-main {
  background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 58%, #ffffff 100%);
}

.png-pdf-main svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.png-pdf-page {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 0 28px;
}

.png-pdf-back {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px auto;
  padding: 0 16px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 12px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(50, 38, 118, 0.06);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.png-pdf-back span {
  direction: ltr;
  font-size: 1.05rem;
}

.png-pdf-hero {
  min-height: 74px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
  text-align: center;
}

.png-pdf-hero-icon {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #6b4cff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.13), rgba(111, 76, 255, 0.04));
  border: 1px solid rgba(111, 76, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.88), 0 18px 44px rgba(111, 76, 255, 0.1);
}

.png-pdf-hero-icon svg {
  width: 43px;
  height: 43px;
  stroke-width: 2.35;
}

.png-pdf-sparkles {
  width: 54px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  color: #a48cff;
  margin-bottom: 2px;
}

.png-pdf-sparkles svg {
  width: 24px;
  height: 24px;
}

.png-pdf-hero h1 {
  margin: 0;
  color: #111936;
  font-size: 2.08rem;
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: 0;
}

.png-pdf-hero p {
  max-width: 540px;
  margin: 8px auto 0;
  color: #7783a5;
  font-size: 0.88rem;
  line-height: 1.75;
  font-weight: 850;
}

.png-pdf-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.92fr);
  gap: 18px;
  align-items: stretch;
  direction: ltr;
}

.png-pdf-top-grid > *,
.png-pdf-workspace > * {
  direction: rtl;
}

.png-pdf-upload-card,
.png-pdf-card,
.png-pdf-privacy,
.png-pdf-images-panel,
.png-pdf-options,
.png-pdf-tips,
.png-pdf-status,
.png-pdf-locked {
  border: 1px solid rgba(111, 76, 255, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(37, 34, 83, 0.055);
}

.png-pdf-upload-card {
  min-height: 286px;
  border-radius: 18px;
  padding: 12px;
}

.png-pdf-dropzone {
  min-height: 262px;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px 24px;
  border: 2px dashed rgba(111, 76, 255, 0.34);
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #fbf8ff);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.png-pdf-dropzone.is-drag-over {
  border-color: #6b4cff;
  background: #f4efff;
  transform: translateY(-2px);
}

.png-pdf-upload-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #704eff;
  background: rgba(111, 76, 255, 0.08);
}

.png-pdf-upload-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 2.2;
}

.png-pdf-dropzone h2,
.png-pdf-card h2,
.png-pdf-privacy h2,
.png-pdf-images-panel h2,
.png-pdf-options h2,
.png-pdf-tips h2,
.png-pdf-locked h1 {
  margin: 0;
  color: #111936;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 950;
  letter-spacing: 0;
}

.png-pdf-dropzone p,
.png-pdf-privacy p,
.png-pdf-locked p {
  margin: 0;
  color: #7c87a7;
  font-size: 0.82rem;
  line-height: 1.75;
  font-weight: 850;
}

.png-pdf-dropzone small,
.png-pdf-result-size {
  color: #7c87a7;
  font-size: 0.74rem;
  line-height: 1.75;
  font-weight: 850;
  text-align: center;
}

.png-pdf-primary,
.png-pdf-convert,
.png-pdf-download,
.png-pdf-locked button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(180deg, #7b55ff 0%, #5f35f5 100%);
  box-shadow: 0 16px 30px rgba(111, 76, 255, 0.22);
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.png-pdf-primary {
  min-width: 168px;
  padding: 0 24px;
}

.png-pdf-primary svg,
.png-pdf-convert svg,
.png-pdf-download svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

.png-pdf-info-stack {
  display: grid;
  gap: 12px;
}

.png-pdf-card {
  position: relative;
  min-height: 190px;
  border-radius: 18px;
  padding: 24px 32px 20px;
}

.png-pdf-card-icon {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.08);
}

.png-pdf-card ul,
.png-pdf-tips ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.png-pdf-card li,
.png-pdf-tips li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6f7b9e;
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 850;
}

.png-pdf-card li svg,
.png-pdf-tips li svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #6b4cff;
  stroke-width: 2.4;
}

.png-pdf-privacy {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  padding: 18px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 255, 0.96));
}

.png-pdf-privacy > span,
.png-pdf-locked > span {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.08);
}

.png-pdf-privacy svg,
.png-pdf-locked svg {
  width: 28px;
  height: 28px;
}

.png-pdf-workspace {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
  direction: ltr;
}

.png-pdf-images-panel,
.png-pdf-options,
.png-pdf-tips {
  border-radius: 16px;
  padding: 18px;
}

.png-pdf-images-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.png-pdf-images-panel header div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.png-pdf-images-panel header button,
.png-pdf-image-actions button,
.png-pdf-reset {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 9px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.055);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  cursor: pointer;
}

.png-pdf-images-panel header button:disabled,
.png-pdf-image-actions button:disabled,
.png-pdf-convert:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
}

.png-pdf-images-panel header svg,
.png-pdf-image-actions svg {
  width: 15px;
  height: 15px;
}

.png-pdf-images-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.png-pdf-images-list.is-empty {
  grid-template-columns: 1fr;
}

.png-pdf-images-list.is-empty > div {
  min-height: 190px;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px dashed rgba(111, 76, 255, 0.18);
  border-radius: 14px;
  color: #7c87a7;
  text-align: center;
}

.png-pdf-images-list.is-empty svg {
  width: 42px;
  height: 42px;
  color: #6b4cff;
}

.png-pdf-images-list.is-empty p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 850;
}

.png-pdf-image-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(111, 76, 255, 0.11);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 34, 83, 0.045);
  cursor: grab;
}

.png-pdf-image-item.is-dragging {
  opacity: 0.56;
  cursor: grabbing;
}

.png-pdf-image-item img {
  width: 100%;
  height: 104px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f2ff;
}

.png-pdf-image-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.png-pdf-image-copy strong {
  overflow: hidden;
  color: #172044;
  font-size: 0.8rem;
  font-weight: 950;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.png-pdf-image-copy small {
  color: #7c87a7;
  font-size: 0.7rem;
  font-weight: 850;
}

.png-pdf-image-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.png-pdf-image-actions button {
  width: 32px;
  min-height: 30px;
  padding: 0;
}

.png-pdf-drag-handle {
  position: absolute;
  bottom: 8px;
  left: 10px;
  color: #9a8ee3;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0;
}

.png-pdf-settings {
  display: grid;
  gap: 14px;
}

.png-pdf-options {
  display: grid;
  gap: 12px;
}

.png-pdf-options label {
  display: grid;
  gap: 7px;
  color: #172044;
  font-size: 0.78rem;
  font-weight: 950;
}

.png-pdf-options select {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(111, 76, 255, 0.13);
  border-radius: 10px;
  color: #172044;
  background: #ffffff;
  padding: 0 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.png-pdf-options input {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(111, 76, 255, 0.13);
  border-radius: 10px;
  color: #172044;
  background: #ffffff;
  padding: 0 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.png-pdf-options select:disabled,
.png-pdf-options input:disabled {
  color: #7c87a7;
  background: #faf8ff;
}

.png-pdf-options > small {
  color: #7c87a7;
  font-size: 0.74rem;
  line-height: 1.7;
  font-weight: 850;
}

.pdf-png-workspace {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.pdf-png-file-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.pdf-png-file-info span {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fbf8ff);
}

.pdf-png-file-info b {
  color: #172044;
  font-size: 0.76rem;
  font-weight: 950;
}

.pdf-png-file-info small {
  overflow: hidden;
  color: #7c87a7;
  font-size: 0.74rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-png-preview-title {
  margin: 10px 0 12px !important;
}

.pdf-png-previews {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pdf-png-previews.is-empty {
  grid-template-columns: 1fr;
}

.pdf-png-previews.is-empty > div {
  min-height: 186px;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px dashed rgba(111, 76, 255, 0.18);
  border-radius: 14px;
  color: #7c87a7;
  text-align: center;
}

.pdf-png-previews.is-empty svg {
  width: 42px;
  height: 42px;
  color: #6b4cff;
}

.pdf-png-previews.is-empty p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 850;
}

.pdf-png-page-preview,
.pdf-png-more-pages {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(111, 76, 255, 0.11);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 34, 83, 0.045);
}

.pdf-png-page-preview img {
  width: 100%;
  height: 134px;
  object-fit: contain;
  border-radius: 10px;
  background: #f7f4ff;
}

.pdf-png-page-preview span,
.pdf-png-more-pages span {
  color: #6f7b9e;
  font-size: 0.74rem;
  font-weight: 900;
}

.pdf-png-more-pages {
  min-height: 172px;
  color: #6b4cff;
  background: linear-gradient(180deg, #ffffff, #fbf8ff);
}

.pdf-png-more-pages b {
  font-size: 1.25rem;
  font-weight: 950;
}

.pdf-png-custom-pages.is-hidden {
  display: none !important;
}

.pdf-unlock-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
  direction: ltr;
}

.pdf-unlock-layout > * {
  direction: rtl;
}

.pdf-unlock-hero {
  justify-content: flex-start;
  text-align: right;
}

.pdf-unlock-left,
.pdf-unlock-center,
.pdf-unlock-right {
  display: grid;
  gap: 16px;
}

.pdf-unlock-left .png-pdf-upload-card {
  min-height: 310px;
}

.pdf-unlock-left .png-pdf-dropzone {
  min-height: 290px;
}

.pdf-unlock-feature-card ul,
.pdf-unlock-steps {
  display: grid;
  gap: 12px;
}

.pdf-unlock-feature-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdf-unlock-feature-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #667296;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.8;
}

.pdf-unlock-feature-card li svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 4px;
  color: #6b4cff;
}

.pdf-unlock-note {
  min-height: 92px;
}

.pdf-unlock-file-card,
.pdf-unlock-form-card,
.pdf-unlock-steps {
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(37, 34, 83, 0.055);
}

.pdf-unlock-file-card,
.pdf-unlock-form-card {
  padding: 22px;
}

.pdf-unlock-file-card header,
.pdf-unlock-steps h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.pdf-unlock-file-card h2,
.pdf-unlock-form-card h2,
.pdf-unlock-steps h2 {
  margin: 0;
  color: #111936;
  font-size: 1rem;
  font-weight: 950;
}

.pdf-unlock-file-card header button {
  width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 10px;
  color: #6b4cff;
  background: #ffffff;
  cursor: pointer;
}

.pdf-unlock-file-card header button svg {
  width: 16px;
  height: 16px;
}

.pdf-unlock-file-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7f7, #ffffff);
  border: 1px solid rgba(255, 92, 92, 0.14);
}

.pdf-unlock-file-row.is-empty {
  background: linear-gradient(180deg, #fbfaff, #ffffff);
  border-color: rgba(111, 76, 255, 0.1);
}

.pdf-unlock-file-row > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ff4f6d;
  background: rgba(255, 79, 109, 0.1);
}

.pdf-unlock-file-row svg {
  width: 26px;
  height: 26px;
}

.pdf-unlock-file-row div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.pdf-unlock-file-row strong,
.pdf-unlock-file-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-unlock-file-row strong {
  color: #172044;
  font-size: 0.86rem;
  font-weight: 950;
}

.pdf-unlock-file-row small {
  color: #7c87a7;
  font-size: 0.72rem;
  font-weight: 850;
}

.pdf-unlock-file-row b {
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 950;
}

.pdf-unlock-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 177, 55, 0.18);
  border-radius: 12px;
  color: #8a6117;
  background: rgba(255, 177, 55, 0.08);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.8;
}

.pdf-unlock-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.pdf-unlock-mode-grid label,
.pdf-unlock-ownership label {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  color: #172044;
  background: #ffffff;
  cursor: pointer;
}

.pdf-unlock-mode-grid label.is-active,
.pdf-unlock-ownership label.is-active {
  border-color: rgba(111, 76, 255, 0.46);
  background: rgba(111, 76, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(111, 76, 255, 0.12);
}

.pdf-unlock-ownership label.is-danger {
  border-color: rgba(255, 78, 116, 0.28);
  background: rgba(255, 78, 116, 0.07);
}

.pdf-unlock-mode-grid input,
.pdf-unlock-ownership input {
  accent-color: #6b4cff;
}

.pdf-unlock-mode-grid span,
.pdf-unlock-ownership span {
  font-size: 0.78rem;
  font-weight: 950;
}

.pdf-unlock-mode-grid small {
  color: #7c87a7;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.65;
}

.pdf-unlock-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.pdf-unlock-fields label,
.pdf-unlock-legal label:not(.png-pdf-toggle) {
  display: grid;
  gap: 8px;
}

.pdf-unlock-fields label.is-muted {
  opacity: 0.58;
}

.pdf-unlock-fields span,
.pdf-unlock-legal h3,
.pdf-unlock-legal label > span {
  color: #172044;
  font-size: 0.78rem;
  font-weight: 950;
}

.pdf-unlock-fields input,
.pdf-unlock-legal select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 10px;
  padding: 0 12px;
  color: #172044;
  background: #ffffff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  outline: none;
}

.pdf-unlock-fields input:focus,
.pdf-unlock-legal select:focus {
  border-color: rgba(111, 76, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(111, 76, 255, 0.08);
}

.pdf-unlock-legal {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(111, 76, 255, 0.045);
}

.pdf-unlock-legal h3,
.pdf-unlock-legal p {
  margin: 0;
}

.pdf-unlock-legal p {
  color: #667296;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.8;
}

.pdf-unlock-ownership {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(90px, 0.5fr);
  gap: 10px;
}

.pdf-unlock-confirm {
  align-items: flex-start;
  min-height: auto;
  padding: 12px;
}

.pdf-unlock-confirm span {
  line-height: 1.75;
}

.pdf-unlock-actions {
  grid-template-columns: 220px minmax(0, 1fr) 210px;
}

.pdf-unlock-steps {
  padding: 22px;
}

.pdf-unlock-steps div {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 12px;
  padding-bottom: 18px;
}

.pdf-unlock-steps div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px;
  right: 20px;
  width: 1px;
  height: calc(100% - 34px);
  background: linear-gradient(180deg, rgba(111, 76, 255, 0.2), rgba(111, 76, 255, 0.04));
}

.pdf-unlock-steps div > span {
  grid-row: 1 / span 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.08);
}

.pdf-unlock-steps div > span svg {
  width: 18px;
  height: 18px;
}

.pdf-unlock-steps b {
  color: #6b4cff;
  font-size: 0.72rem;
  font-weight: 950;
}

.pdf-unlock-steps strong {
  color: #172044;
  font-size: 0.82rem;
  font-weight: 950;
}

.pdf-unlock-steps p {
  margin: 0;
  color: #7c87a7;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.75;
}

.image-converter-workspace {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.image-converter-images-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-converter-image-item {
  cursor: default;
}

.image-converter-image-item img {
  height: 118px;
}

.image-converter-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(37, 34, 83, 0.12);
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.image-converter-format-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 44px;
  overflow: hidden;
  border: 1px solid rgba(111, 76, 255, 0.13);
  border-radius: 10px;
  background: #ffffff;
}

.image-converter-format-tabs button {
  border: 0;
  border-left: 1px solid rgba(111, 76, 255, 0.1);
  color: #172044;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.image-converter-format-tabs button:last-child {
  border-left: 0;
}

.image-converter-format-tabs button.is-active {
  color: #6b4cff;
  background: linear-gradient(180deg, rgba(111, 76, 255, 0.14), rgba(111, 76, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(111, 76, 255, 0.26);
}

.image-converter-custom-size {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.image-converter-custom-size.is-hidden {
  display: none;
}

.image-converter-tip {
  min-height: 94px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 255, 0.96));
}

.image-converter-tip p {
  margin: 10px 0 0;
  color: #7c87a7;
  font-size: 0.78rem;
  line-height: 1.75;
  font-weight: 850;
}

.image-converter-panel-footer {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 14px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.055);
  font-size: 0.78rem;
  font-weight: 950;
}

.image-converter-panel-footer span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.image-compressor-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
  direction: ltr;
}

.image-compressor-layout > * {
  direction: rtl;
}

.image-compressor-hero {
  justify-content: flex-start;
  text-align: right;
}

.image-compressor-left,
.image-compressor-center,
.image-compressor-right {
  display: grid;
  gap: 16px;
}

.image-compressor-left .png-pdf-upload-card {
  min-height: 290px;
}

.image-compressor-left .png-pdf-dropzone {
  min-height: 270px;
}

.image-compressor-options {
  min-height: 250px;
}

.image-compressor-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.image-compressor-range input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #6b4cff;
}

.image-compressor-range small {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  color: #7c87a7;
  font-size: 0.69rem;
  font-weight: 850;
}

.image-compressor-range b {
  min-width: 48px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 950;
}

.image-compressor-custom-size {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
}

.image-compressor-custom-size.is-disabled {
  opacity: 0.58;
}

.image-compressor-custom-size input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 10px;
  padding: 0 12px;
  color: #172044;
  background: #ffffff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  outline: none;
}

.image-compressor-custom-size span {
  color: #7c87a7;
  font-size: 0.72rem;
  font-weight: 900;
}

.image-compressor-preview-card {
  min-height: 510px;
}

.image-compressor-compare-frame {
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8f6ff, #ffffff);
}

.image-compressor-compare-frame.is-empty > div {
  display: grid;
  place-items: center;
  gap: 12px;
  color: #7c87a7;
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.image-compressor-compare-frame.is-empty svg {
  width: 48px;
  height: 48px;
  color: #6b4cff;
}

.image-compressor-compare,
.image-compressor-single-preview {
  position: relative;
  width: min(100%, 680px);
  height: 310px;
  overflow: hidden;
  border-radius: 14px;
  background: #eef0ff;
  box-shadow: 0 18px 42px rgba(37, 34, 83, 0.1);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.image-compressor-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-compressor-compare img,
.image-compressor-single-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-compressor-compare img:first-child {
  border-left: 2px solid rgba(255, 255, 255, 0.9);
}

.image-compressor-compare span,
.image-compressor-single-preview span {
  position: absolute;
  top: 16px;
  z-index: 2;
  min-width: 104px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #ffffff;
  background: rgba(22, 29, 57, 0.78);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.6;
  text-align: center;
}

.image-compressor-compare .is-before {
  right: 16px;
}

.image-compressor-compare .is-after,
.image-compressor-single-preview span {
  left: 16px;
  right: auto;
  background: rgba(111, 76, 255, 0.88);
}

.image-compressor-compare i {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 38px;
  height: 38px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #6b4cff;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 34, 83, 0.16);
  font-style: normal;
  font-weight: 950;
}

.image-compressor-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.image-compressor-stats div {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 12px;
  background: rgba(111, 76, 255, 0.035);
  text-align: center;
}

.image-compressor-stats dt,
.image-compressor-stats dd {
  margin: 0;
}

.image-compressor-stats dt {
  color: #7c87a7;
  font-size: 0.72rem;
  font-weight: 850;
}

.image-compressor-stats dd {
  color: #172044;
  font-size: 0.86rem;
  font-weight: 950;
}

.image-compressor-stats div:last-child dd {
  color: #6b4cff;
}

.image-compressor-note {
  min-height: 86px;
}

.image-compressor-list-panel {
  padding: 16px;
}

.image-compressor-list-panel header {
  margin-bottom: 10px;
}

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

.image-compressor-list.is-empty {
  min-height: 180px;
  place-items: center;
  text-align: center;
  color: #7c87a7;
  font-size: 0.82rem;
  font-weight: 850;
}

.image-compressor-list.is-empty svg {
  width: 42px;
  height: 42px;
  color: #6b4cff;
}

.image-compressor-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 13px;
  background: #ffffff;
}

.image-compressor-item img {
  width: 92px;
  height: 66px;
  object-fit: cover;
  border-radius: 10px;
}

.image-compressor-item div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.image-compressor-item strong,
.image-compressor-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-compressor-item strong {
  color: #172044;
  font-size: 0.78rem;
  font-weight: 950;
}

.image-compressor-item small {
  color: #7c87a7;
  font-size: 0.7rem;
  font-weight: 850;
}

.image-compressor-item button {
  width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 9px;
  color: #6b4cff;
  background: #ffffff;
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
}

.image-compressor-features ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.image-compressor-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #667296;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.8;
}

.image-compressor-features li svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 4px;
  color: #6b4cff;
}

.image-compressor-actions {
  grid-template-columns: 220px minmax(0, 1fr) 210px;
}

.image-rotator-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: stretch;
  direction: ltr;
}

.image-rotator-layout > * {
  direction: rtl;
}

.image-rotator-hero {
  justify-content: flex-start;
  text-align: right;
}

.image-rotator-left {
  display: grid;
  gap: 16px;
}

.image-rotator-left .png-pdf-upload-card {
  min-height: 340px;
}

.image-rotator-left .png-pdf-dropzone {
  min-height: 316px;
}

.image-rotator-tips {
  min-height: 160px;
  padding-top: 24px;
}

.image-rotator-preview-card,
.image-rotator-options .png-pdf-options {
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(37, 34, 83, 0.055);
}

.image-rotator-preview-card {
  min-height: 520px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 22px;
}

.image-rotator-preview-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.image-rotator-preview-card h2 {
  margin: 0;
  color: #111936;
  font-size: 1rem;
  font-weight: 950;
}

.image-rotator-zoom {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(111, 76, 255, 0.055);
  color: #6b4cff;
  font-size: 0.74rem;
  font-weight: 950;
}

.image-rotator-zoom span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.image-rotator-preview-frame {
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8f6ff, #ffffff);
}

.image-rotator-preview-frame img {
  max-width: 100%;
  max-height: 390px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(37, 34, 83, 0.1);
}

.image-rotator-preview-frame.is-empty > div {
  display: grid;
  place-items: center;
  gap: 12px;
  color: #7c87a7;
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.image-rotator-preview-frame.is-empty svg {
  width: 48px;
  height: 48px;
  color: #6b4cff;
}

.image-rotator-info-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 14px;
  background: rgba(111, 76, 255, 0.04);
}

.image-rotator-info-row div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  border-left: 1px solid rgba(111, 76, 255, 0.1);
}

.image-rotator-info-row div:last-child {
  border-left: 0;
}

.image-rotator-info-row dt,
.image-rotator-info-row dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-rotator-info-row dt {
  color: #7c87a7;
  font-size: 0.72rem;
  font-weight: 850;
}

.image-rotator-info-row dd {
  color: #172044;
  font-size: 0.76rem;
  font-weight: 950;
}

.image-rotator-options .png-pdf-options {
  min-height: 520px;
  padding: 22px;
}

.image-rotator-options .png-pdf-options h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.image-rotator-options .png-pdf-options h2 svg {
  color: #6b4cff;
}

.image-rotator-angle-badge {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.07);
  font-size: 0.76rem;
  font-weight: 950;
}

.image-rotator-options .png-pdf-options > button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 10px;
  color: #172044;
  background: #ffffff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.image-rotator-options .png-pdf-options > button:hover {
  color: #6b4cff;
  border-color: rgba(111, 76, 255, 0.38);
  background: rgba(111, 76, 255, 0.045);
}

.image-rotator-options .png-pdf-options > button svg {
  width: 18px;
  height: 18px;
  color: #6b4cff;
}

.image-rotator-custom-angle {
  display: grid;
  gap: 8px;
}

.image-rotator-custom-angle > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 8px;
}

.image-rotator-custom-angle button {
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(180deg, #7b55ff 0%, #5f35f5 100%);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  cursor: pointer;
}

.image-rotator-custom-angle small {
  color: #7c87a7;
  font-size: 0.7rem;
  font-weight: 850;
}

.image-rotator-status {
  margin-top: 16px;
}

.image-rotator-actions {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 230px;
  gap: 14px;
  margin-top: 16px;
  align-items: center;
}

.image-rotator-actions .png-pdf-convert,
.image-rotator-actions .png-pdf-download {
  width: 100%;
}

.image-rotator-reset {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 12px;
  color: #172044;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 34, 83, 0.04);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  cursor: pointer;
}

.image-rotator-reset:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.image-rotator-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  color: #7c87a7;
  font-size: 0.74rem;
  font-weight: 850;
}

.image-rotator-privacy svg {
  width: 14px;
  height: 14px;
  color: #6b4cff;
}

.image-cropper-layout {
  grid-template-columns: 270px minmax(0, 1fr) 310px;
}

.image-cropper-info {
  min-height: 160px;
}

.image-cropper-info h2,
.image-cropper-tip-card h2 {
  margin-bottom: 16px;
}

.image-cropper-info dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.image-cropper-info dl div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(111, 76, 255, 0.09);
}

.image-cropper-info dl div:last-child {
  border-bottom: 0;
}

.image-cropper-info dt,
.image-cropper-info dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-cropper-info dt {
  color: #7c87a7;
  font-size: 0.72rem;
  font-weight: 850;
}

.image-cropper-info dd {
  color: #172044;
  font-size: 0.75rem;
  font-weight: 950;
}

.image-cropper-tip-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.image-cropper-tip-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #667296;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.8;
}

.image-cropper-tip-card li svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 4px;
  color: #6b4cff;
}

.image-cropper-preview-card {
  min-height: 560px;
}

.image-rotator-zoom button,
.image-rotator-zoom span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.07);
}

.image-rotator-zoom button {
  cursor: pointer;
}

.image-rotator-zoom button:hover {
  background: rgba(111, 76, 255, 0.14);
}

.image-rotator-zoom button svg,
.image-rotator-zoom span svg {
  width: 14px;
  height: 14px;
}

.image-cropper-canvas-frame {
  min-height: 372px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(45deg, rgba(111, 76, 255, 0.05) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(45deg, transparent 75%, rgba(111, 76, 255, 0.05) 75%) 0 0 / 22px 22px,
    linear-gradient(180deg, #fbfaff, #ffffff);
  touch-action: none;
}

.image-cropper-canvas-frame canvas {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(37, 34, 83, 0.12);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.image-cropper-canvas-frame.is-empty > div {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #7c87a7;
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.image-cropper-canvas-frame.is-empty svg {
  width: 48px;
  height: 48px;
  color: #6b4cff;
}

.image-cropper-output-row {
  grid-template-columns: 1.3fr 0.9fr 0.9fr 0.8fr;
}

.image-cropper-options .png-pdf-options {
  gap: 16px;
}

.image-cropper-options .png-pdf-options label {
  display: grid;
  gap: 9px;
}

.image-cropper-options .png-pdf-options label > span {
  color: #172044;
  font-size: 0.77rem;
  font-weight: 950;
}

.image-cropper-ratio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.image-cropper-ratio-grid button,
.image-cropper-move-grid button,
.image-cropper-rotate-row button {
  min-height: 38px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 9px;
  color: #172044;
  background: #ffffff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  cursor: pointer;
}

.image-cropper-ratio-grid button:hover,
.image-cropper-move-grid button:hover,
.image-cropper-rotate-row button:hover,
.image-cropper-ratio-grid button.is-active {
  color: #6b4cff;
  border-color: rgba(111, 76, 255, 0.45);
  background: rgba(111, 76, 255, 0.055);
}

.image-cropper-custom-size {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.image-cropper-custom-size input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 10px;
  padding: 0 12px;
  color: #172044;
  background: #ffffff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  outline: none;
}

.image-cropper-custom-size input:focus {
  border-color: rgba(111, 76, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(111, 76, 255, 0.08);
}

.image-cropper-move-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.image-cropper-move-grid button {
  min-height: 34px;
  padding: 0;
  font-size: 0.88rem;
}

.image-cropper-rotate-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.image-cropper-actions {
  grid-template-columns: 260px minmax(0, 1fr) 230px;
}

.png-pdf-toggle {
  min-height: 44px;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(111, 76, 255, 0.055);
}

.png-pdf-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #6b4cff;
}

.png-pdf-status {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #5b38f0;
  background: rgba(111, 76, 255, 0.07);
  font-size: 0.82rem;
  font-weight: 900;
}

.png-pdf-status.is-error {
  color: #dc3f62;
  background: rgba(255, 78, 116, 0.08);
  border-color: rgba(255, 78, 116, 0.16);
}

.png-pdf-status p {
  margin: 0;
}

.png-pdf-status span {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(111, 76, 255, 0.12);
}

.png-pdf-status i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #7b55ff, #5f35f5);
}

.png-pdf-convert,
.png-pdf-download {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
}

.png-pdf-download {
  background: linear-gradient(180deg, #16b987 0%, #0f936d 100%);
  box-shadow: 0 16px 30px rgba(15, 147, 109, 0.18);
}

.png-pdf-locked {
  min-height: 430px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  border-radius: 18px;
  padding: 38px;
  text-align: center;
}

.png-pdf-locked p {
  max-width: 540px;
}

.png-pdf-locked button {
  min-width: 160px;
  padding: 0 22px;
}

@media (max-width: 1060px) {
  .png-pdf-top-grid,
  .png-pdf-workspace {
    grid-template-columns: 1fr;
  }

  .png-pdf-images-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .image-converter-workspace {
    grid-template-columns: 1fr;
  }

  .image-rotator-layout,
  .image-rotator-actions,
  .image-cropper-layout,
  .image-cropper-actions,
  .image-compressor-layout,
  .image-compressor-actions,
  .pdf-unlock-layout,
  .pdf-unlock-actions {
    grid-template-columns: 1fr;
  }

  .image-rotator-left,
  .image-compressor-left,
  .image-compressor-right,
  .pdf-unlock-left,
  .pdf-unlock-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .png-pdf-main {
    padding: 20px 14px 28px;
  }

  .png-pdf-hero {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .png-pdf-hero h1 {
    font-size: 1.72rem;
  }

  .png-pdf-hero-icon {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    border-radius: 20px;
  }

  .png-pdf-hero-icon svg {
    width: 36px;
    height: 36px;
  }

  .png-pdf-dropzone {
    min-height: 260px;
    padding: 28px 18px;
  }

  .pdf-png-file-info,
  .pdf-png-previews,
  .image-converter-images-list,
  .image-converter-custom-size,
  .image-rotator-info-row,
  .image-cropper-output-row,
  .image-cropper-custom-size,
  .image-compressor-stats,
  .image-compressor-custom-size,
  .pdf-unlock-mode-grid,
  .pdf-unlock-fields,
  .pdf-unlock-ownership {
    grid-template-columns: 1fr;
  }

  .image-rotator-left,
  .image-compressor-left,
  .image-compressor-right,
  .pdf-unlock-left,
  .pdf-unlock-right {
    grid-template-columns: 1fr;
  }

  .image-rotator-preview-card,
  .image-rotator-options .png-pdf-options,
  .image-compressor-preview-card,
  .pdf-unlock-file-card,
  .pdf-unlock-form-card,
  .pdf-unlock-steps {
    min-height: auto;
    padding: 18px;
  }

  .image-rotator-preview-card header {
    align-items: stretch;
    flex-direction: column;
  }

  .image-rotator-preview-frame,
  .image-cropper-canvas-frame,
  .image-compressor-compare-frame {
    min-height: 260px;
  }

  .image-rotator-preview-frame img,
  .image-cropper-canvas-frame canvas {
    max-height: 300px;
  }

  .image-compressor-compare,
  .image-compressor-single-preview {
    height: 250px;
  }

  .image-compressor-custom-size span {
    display: none;
  }

  .image-rotator-info-row div {
    border-left: 0;
    border-bottom: 1px solid rgba(111, 76, 255, 0.1);
  }

  .image-rotator-info-row div:last-child {
    border-bottom: 0;
  }

  .png-pdf-card {
    padding: 24px 20px 22px;
  }

  .png-pdf-card-icon {
    position: static;
    margin-bottom: 12px;
  }

  .png-pdf-images-panel header,
  .png-pdf-images-panel header div {
    align-items: stretch;
    flex-direction: column;
  }

  .png-pdf-images-list {
    grid-template-columns: 1fr;
  }
}

.smart-search-page {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.smart-search-back {
  border: 0;
  color: #6b4cff;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.smart-search-hero {
  text-align: center;
  margin: 2px 0 28px;
}

.smart-search-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.smart-search-title h1 {
  margin: 0;
  color: #172044;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.smart-search-title span {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.09);
  display: grid;
  place-items: center;
}

.smart-search-title svg {
  width: 24px;
  height: 24px;
}

.smart-search-hero p {
  margin: 8px 0 0;
  color: #8c94ad;
  font-size: 0.92rem;
  font-weight: 850;
}

.smart-search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: stretch;
}

.smart-search-box,
.smart-search-info,
.smart-search-result,
.smart-suggestions button,
.smart-history article {
  border: 1px solid rgba(111, 76, 255, 0.13);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(22, 30, 68, 0.045);
}

.smart-search-box {
  border-radius: 22px;
  padding: 28px;
}

.smart-search-query {
  height: 54px;
  border: 1px solid rgba(111, 76, 255, 0.16);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.92);
}

.smart-search-query svg {
  width: 20px;
  height: 20px;
  margin-inline: auto;
}

.smart-search-query input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  color: #172044;
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-align: right;
}

.smart-search-query input::placeholder {
  color: #a1a8bf;
}

.smart-search-example {
  margin: 11px 0 28px;
  color: #9aa1b8;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: right;
}

.smart-search-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  gap: 16px;
}

.smart-search-controls label {
  height: 48px;
  border: 1px solid rgba(111, 76, 255, 0.14);
  border-radius: 14px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.86);
}

.smart-search-controls select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #5c6482;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.smart-search-controls svg {
  width: 18px;
  height: 18px;
}

.smart-search-submit {
  height: 48px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #7a5cff, #5a31f4);
  box-shadow: 0 16px 32px rgba(111, 76, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 950;
  cursor: pointer;
}

.smart-search-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.smart-search-info {
  border-radius: 20px;
  padding: 26px 22px;
}

.smart-search-info h2,
.smart-suggestions h2,
.smart-history h2 {
  margin: 0 0 10px;
  color: #172044;
  font-size: 1rem;
  font-weight: 950;
}

.smart-search-info p {
  margin: 0 0 16px;
  color: #8c94ad;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.8;
}

.smart-search-info span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8c94ad;
  font-size: 0.8rem;
  font-weight: 900;
  margin-top: 12px;
}

.smart-search-info b {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #fff;
  background: #6b4cff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}

.smart-search-result {
  border-radius: 20px;
  margin: 22px auto 0;
  padding: 22px;
}

.smart-search-result.is-error {
  border-color: rgba(255, 76, 92, 0.24);
}

.smart-search-result header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.smart-search-result strong {
  color: #172044;
  font-size: 1rem;
  font-weight: 950;
}

.smart-search-result header span {
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.09);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.74rem;
  font-weight: 950;
}

.smart-search-answer {
  color: #253052;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.9;
}

.smart-search-answer p {
  margin: 0 0 10px;
}

.smart-search-sources {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.smart-search-sources b {
  color: #172044;
  font-size: 0.82rem;
}

.smart-search-sources a {
  color: #6b4cff;
  text-decoration: none;
  border: 1px solid rgba(111, 76, 255, 0.16);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.74rem;
  font-weight: 900;
}

.smart-search-open-chat {
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #6b4cff;
  padding: 10px 18px;
  font-weight: 950;
}

.smart-suggestions,
.smart-history {
  margin-top: 30px;
  text-align: center;
}

.smart-suggestions > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.smart-suggestions button {
  min-height: 46px;
  border-radius: 12px;
  color: #8c94ad;
  font-size: 0.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}

.smart-suggestions svg {
  width: 16px;
  height: 16px;
  color: #6b4cff;
}

.smart-history {
  border-top: 1px solid rgba(111, 76, 255, 0.09);
  padding-top: 24px;
}

.smart-history > div {
  display: grid;
  gap: 0;
}

.smart-history article {
  min-height: 48px;
  border-radius: 0;
  border-width: 1px 1px 0;
  display: grid;
  grid-template-columns: 42px 120px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  text-align: right;
}

.smart-history article:first-child {
  border-radius: 14px 14px 0 0;
}

.smart-history article:last-child {
  border-bottom-width: 1px;
  border-radius: 0 0 14px 14px;
}

.smart-history button {
  border: 0;
  color: #8c94ad;
  background: transparent;
  cursor: pointer;
}

.smart-history strong {
  color: #6b7290;
  font-size: 0.82rem;
  font-weight: 900;
}

.smart-history span {
  color: #a1a8bf;
  font-size: 0.74rem;
  font-weight: 800;
}

.writing-page {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.writing-back {
  border: 0;
  color: #6b4cff;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  cursor: pointer;
}

.writing-hero {
  text-align: center;
  margin: 0 0 18px;
}

.writing-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.writing-title h1 {
  margin: 0;
  color: #172044;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.writing-title span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.1);
  display: grid;
  place-items: center;
}

.writing-title svg {
  width: 22px;
  height: 22px;
}

.writing-hero p {
  margin: 7px 0 0;
  color: #8c94ad;
  font-size: 0.88rem;
  font-weight: 850;
}

.writing-task-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.writing-task-card {
  min-height: 58px;
  border: 1px solid rgba(111, 76, 255, 0.13);
  border-radius: 14px;
  color: #172044;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 8px;
  padding: 10px 12px;
  text-align: right;
  box-shadow: 0 14px 30px rgba(22, 30, 68, 0.035);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.writing-task-card:hover,
.writing-task-card.is-active {
  border-color: rgba(111, 76, 255, 0.45);
  box-shadow: 0 16px 34px rgba(111, 76, 255, 0.09);
  transform: translateY(-1px);
}

.writing-task-card span {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.09);
  display: grid;
  place-items: center;
}

.writing-task-card svg {
  width: 16px;
  height: 16px;
}

.writing-task-card strong {
  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
}

.writing-task-card small {
  color: #9aa1b8;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.writing-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.writing-settings-card,
.writing-form-card,
.writing-result,
.writing-examples {
  border: 1px solid rgba(111, 76, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 44px rgba(22, 30, 68, 0.045);
}

.writing-settings-card {
  padding: 18px;
}

.writing-settings-card h2 {
  margin: 0 0 14px;
  color: #172044;
  font-size: 0.96rem;
  font-weight: 950;
}

.writing-setting {
  display: block;
  margin-bottom: 11px;
}

.writing-setting > span,
.writing-field > span {
  display: block;
  margin-bottom: 7px;
  color: #172044;
  font-size: 0.76rem;
  font-weight: 950;
}

.writing-setting div {
  height: 42px;
  border: 1px solid rgba(111, 76, 255, 0.13);
  border-radius: 13px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.88);
}

.writing-setting select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #5c6482;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.writing-setting svg {
  width: 16px;
  height: 16px;
}

.writing-submit-side {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #7a5cff, #5a31f4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(111, 76, 255, 0.2);
}

.writing-form-card {
  padding: 22px;
}

.writing-field {
  display: block;
  margin-bottom: 16px;
}

.writing-field input,
.writing-field textarea {
  width: 100%;
  border: 1px solid rgba(111, 76, 255, 0.13);
  border-radius: 14px;
  outline: 0;
  color: #172044;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-weight: 850;
  text-align: right;
}

.writing-field input {
  height: 48px;
  padding: 0 16px;
}

.writing-field textarea {
  min-height: 178px;
  resize: vertical;
  padding: 16px;
  line-height: 1.9;
}

.writing-field input::placeholder,
.writing-field textarea::placeholder {
  color: #a1a8bf;
}

.writing-field small {
  display: block;
  margin-top: 6px;
  color: #a1a8bf;
  font-size: 0.68rem;
  font-weight: 850;
}

.writing-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.writing-actions button,
.writing-result button {
  min-height: 42px;
  border: 1px solid rgba(111, 76, 255, 0.14);
  border-radius: 999px;
  padding: 0 18px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 950;
}

.writing-actions button[type="submit"] {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #7a5cff, #5a31f4);
  box-shadow: 0 16px 34px rgba(111, 76, 255, 0.2);
}

.writing-actions svg,
.writing-result svg {
  width: 16px;
  height: 16px;
}

.writing-result {
  margin-top: 18px;
  padding: 18px 20px;
}

.writing-result.is-error {
  border-color: rgba(255, 76, 92, 0.24);
}

.writing-result header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.writing-result strong {
  color: #172044;
  font-size: 0.98rem;
  font-weight: 950;
}

.writing-result header span {
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.09);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 950;
}

.writing-output {
  color: #253052;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.9;
}

.writing-output p {
  margin: 0 0 10px;
}

.writing-examples {
  margin-top: 18px;
  padding: 16px 18px;
}

.writing-examples header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #172044;
}

.writing-examples h2 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 950;
}

.writing-examples header svg {
  width: 16px;
  height: 16px;
  color: #6b4cff;
}

.writing-examples > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.writing-examples button {
  min-height: 48px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 13px;
  color: #8c94ad;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  font-size: 0.76rem;
  font-weight: 900;
}

.writing-examples svg {
  width: 16px;
  height: 16px;
  color: #6b4cff;
}

.tone-page {
  width: min(100%, 1180px);
}

.tone-hero {
  margin-bottom: 26px;
}

.tone-title {
  justify-content: center;
}

.tone-task-tabs {
  margin-bottom: 26px;
}

.tone-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.tone-settings-card,
.tone-editor-card,
.tone-examples {
  border: 1px solid rgba(111, 76, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(22, 30, 68, 0.045);
}

.tone-settings-card {
  padding: 22px;
}

.tone-settings-card h2 {
  margin: 0 0 22px;
  color: #172044;
  font-size: 1rem;
  font-weight: 950;
}

.tone-settings-card > p {
  margin: 0 0 12px;
  color: #172044;
  font-size: 0.82rem;
  font-weight: 950;
}

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

.tone-option {
  min-height: 66px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 13px;
  padding: 10px 13px;
  color: #172044;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  grid-template-columns: 22px 36px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 10px;
  text-align: right;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tone-option:hover,
.tone-option.is-active {
  border-color: rgba(111, 76, 255, 0.58);
  box-shadow: 0 16px 34px rgba(111, 76, 255, 0.1);
  transform: translateY(-1px);
}

.tone-option-check {
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(139, 148, 174, 0.42);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 0.5rem;
}

.tone-option.is-active .tone-option-check {
  border-color: #6b4cff;
  background: #6b4cff;
}

.tone-option-icon {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.09);
  display: grid;
  place-items: center;
}

.tone-option-icon svg {
  width: 17px;
  height: 17px;
}

.tone-option strong {
  font-size: 0.86rem;
  font-weight: 950;
}

.tone-option small {
  color: #9aa1b8;
  font-size: 0.69rem;
  font-weight: 850;
}

.tone-level {
  display: block;
  margin-top: 20px;
}

.tone-level > span {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #172044;
  font-size: 0.82rem;
  font-weight: 950;
}

.tone-level svg {
  width: 16px;
  height: 16px;
  color: #6b4cff;
}

.tone-level select {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(111, 76, 255, 0.16);
  border-radius: 13px;
  color: #5c6482;
  background: rgba(255, 255, 255, 0.94);
  padding: 0 14px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
}

.tone-submit {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #7a5cff, #5a31f4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(111, 76, 255, 0.2);
}

.tone-submit svg {
  width: 16px;
  height: 16px;
}

.tone-cost {
  display: block;
  margin-top: 12px;
  color: #8c94ad;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.tone-editor-card {
  padding: 0;
  overflow: hidden;
}

.tone-text-panel {
  padding: 24px;
}

.tone-text-panel header {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: #172044;
}

.tone-text-panel h2 {
  margin: 0 0 6px;
  color: #172044;
  font-size: 0.98rem;
  font-weight: 950;
}

.tone-text-panel p {
  margin: 0;
  color: #9aa1b8;
  font-size: 0.76rem;
  font-weight: 850;
}

.tone-text-panel header > svg {
  width: 20px;
  height: 20px;
  color: #6b4cff;
  flex: 0 0 auto;
}

.tone-text-panel textarea,
.tone-output-box {
  width: 100%;
  min-height: 168px;
  border: 1px solid rgba(111, 76, 255, 0.14);
  border-radius: 14px;
  outline: 0;
  color: #172044;
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.95;
  text-align: right;
}

.tone-text-panel textarea {
  resize: vertical;
}

.tone-text-panel textarea::placeholder {
  color: #a1a8bf;
}

.tone-output-box {
  min-height: 160px;
  border-color: rgba(111, 76, 255, 0.34);
}

.tone-output-box.is-empty {
  color: #a1a8bf;
  border-style: dashed;
}

.tone-output-box p {
  margin: 0 0 8px;
  color: inherit;
  font-size: inherit;
}

.tone-text-panel > small {
  display: block;
  margin-top: 7px;
  color: #8c94ad;
  font-size: 0.72rem;
  font-weight: 850;
}

.tone-divider {
  height: 1px;
  margin: 0;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.12);
  display: grid;
  place-items: center;
  font-weight: 950;
  position: relative;
  z-index: 0;
  line-height: 0;
  font-size: 1.1rem;
  isolation: isolate;
}

.tone-divider::before {
  content: "";
  width: 34px;
  height: 34px;
  border: 1px solid rgba(111, 76, 255, 0.14);
  border-radius: 999px;
  background: #fff;
  position: absolute;
  z-index: -1;
}

.tone-result-actions {
  padding: 0 24px 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tone-result-actions button {
  min-height: 42px;
  border: 1px solid rgba(111, 76, 255, 0.14);
  border-radius: 13px;
  color: #253052;
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 950;
}

.tone-result-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tone-result-actions svg {
  width: 16px;
  height: 16px;
  color: #6b4cff;
}

.tone-error {
  margin-top: 16px;
}

.tone-examples {
  margin-top: 22px;
  padding: 16px 20px;
}

.tone-examples header {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #172044;
}

.tone-examples h2 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 950;
}

.tone-examples header svg {
  width: 16px;
  height: 16px;
  color: #6b4cff;
}

.tone-examples > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.tone-examples button {
  min-height: 44px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 13px;
  color: #8c94ad;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  font-size: 0.75rem;
  font-weight: 900;
}

.tone-examples svg {
  width: 16px;
  height: 16px;
  color: #6b4cff;
}

.expand-page {
  width: min(100%, 1240px);
}

.expand-layout {
  grid-template-columns: 360px minmax(0, 1fr);
}

.expand-settings-card {
  min-height: 500px;
}

.expand-level {
  margin-top: 0;
}

.expand-level > small {
  display: block;
  margin-top: 8px;
  color: #9aa1b8;
  font-size: 0.68rem;
  font-weight: 850;
}

.expand-focus-title {
  margin: 18px 0 10px;
  color: #172044;
  font-size: 0.82rem;
  font-weight: 950;
}

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

.expand-focus-option {
  min-height: 72px;
  border: 1px solid rgba(111, 76, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  color: #172044;
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 9px;
  padding: 10px;
  text-align: right;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.expand-focus-option:hover,
.expand-focus-option.is-active {
  border-color: rgba(111, 76, 255, 0.58);
  background: linear-gradient(135deg, rgba(111, 76, 255, 0.09), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 30px rgba(111, 76, 255, 0.11);
  transform: translateY(-1px);
}

.expand-focus-option > span {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.1);
  display: grid;
  place-items: center;
}

.expand-focus-option svg {
  width: 16px;
  height: 16px;
}

.expand-focus-option strong {
  color: #172044;
  font-size: 0.78rem;
  font-weight: 950;
}

.expand-focus-option small {
  color: #9aa1b8;
  font-size: 0.64rem;
  font-weight: 850;
}

.expand-focus-option i {
  grid-row: 1 / span 2;
  color: #6b4cff;
  font-style: normal;
  font-size: 0.7rem;
}

.expand-submit {
  margin-top: 16px;
}

.expand-page .tone-text-panel textarea,
.expand-page .tone-output-box {
  min-height: 156px;
  font-size: 0.9rem;
}

.expand-page .tone-task-tabs {
  margin-bottom: 22px;
}

.expand-examples {
  margin-top: 24px;
}

.summary-page {
  width: min(100%, 1240px);
}

.summary-layout {
  grid-template-columns: 390px minmax(0, 1fr);
}

.summary-settings-card {
  min-height: 520px;
}

.summary-option-title {
  margin: 18px 0 10px;
  color: #172044;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 950;
}

.summary-option-title:first-of-type {
  margin-top: 0;
}

.summary-option-title svg {
  width: 16px;
  height: 16px;
  color: #6b4cff;
}

.summary-choice-grid {
  display: grid;
  gap: 10px;
}

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

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

.summary-choice {
  min-height: 76px;
  border: 1px solid rgba(111, 76, 255, 0.13);
  border-radius: 13px;
  color: #172044;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 8px;
  padding: 10px;
  text-align: right;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.summary-choice:hover,
.summary-choice.is-active {
  border-color: rgba(111, 76, 255, 0.58);
  background: linear-gradient(135deg, rgba(111, 76, 255, 0.08), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 30px rgba(111, 76, 255, 0.11);
  transform: translateY(-1px);
}

.summary-choice-icon {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.1);
  display: grid;
  place-items: center;
}

.summary-choice-icon svg {
  width: 15px;
  height: 15px;
}

.summary-choice strong {
  color: #172044;
  font-size: 0.75rem;
  font-weight: 950;
}

.summary-choice small {
  color: #9aa1b8;
  font-size: 0.62rem;
  font-weight: 850;
}

.summary-choice i {
  grid-row: 1 / span 2;
  color: #6b4cff;
  font-size: 0.6rem;
  font-style: normal;
}

.summary-length-choice {
  grid-template-columns: 1fr 18px;
  min-height: 68px;
}

.summary-level {
  margin-top: 18px;
}

.summary-page .tone-text-panel textarea,
.summary-page .tone-output-box {
  min-height: 166px;
  font-size: 0.9rem;
}

.summary-page .tone-output-box {
  min-height: 154px;
}

.summary-page .tone-task-tabs {
  margin-bottom: 22px;
}

.summary-examples {
  margin-top: 24px;
}

.correction-page {
  width: min(100%, 1240px);
}

.correction-layout {
  grid-template-columns: 390px minmax(0, 1fr);
}

.correction-settings-card {
  min-height: 520px;
}

.correction-settings-card h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.correction-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.correction-choice {
  min-height: 82px;
  border: 1px solid rgba(111, 76, 255, 0.13);
  border-radius: 14px;
  color: #172044;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px 8px;
  padding: 11px 10px;
  text-align: right;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.correction-choice:hover,
.correction-choice.is-active {
  border-color: rgba(111, 76, 255, 0.6);
  background: linear-gradient(135deg, rgba(111, 76, 255, 0.09), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 30px rgba(111, 76, 255, 0.11);
  transform: translateY(-1px);
}

.correction-choice-icon {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.1);
  display: grid;
  place-items: center;
}

.correction-choice-icon svg {
  width: 15px;
  height: 15px;
}

.correction-choice strong {
  color: #172044;
  font-size: 0.72rem;
  font-weight: 950;
}

.correction-choice small {
  color: #9aa1b8;
  font-size: 0.6rem;
  font-weight: 850;
}

.correction-choice i {
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(139, 148, 174, 0.34);
  border-radius: 999px;
  color: transparent;
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  font-style: normal;
}

.correction-choice.is-active i {
  border-color: #6b4cff;
  color: #fff;
  background: #6b4cff;
}

.correction-level {
  margin-top: 16px;
}

.correction-level small {
  display: block;
  margin-top: 7px;
  color: #9aa1b8;
  font-size: 0.68rem;
  font-weight: 850;
}

.correction-toggle {
  margin-top: 18px;
  border: 1px solid rgba(111, 76, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 14px;
  color: #172044;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 950;
}

.correction-toggle input {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(139, 148, 174, 0.22);
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease;
}

.correction-toggle input::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 14px rgba(22, 30, 68, 0.18);
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  transition: transform 0.18s ease;
}

.correction-toggle input:checked {
  background: linear-gradient(135deg, #7a5cff, #5a31f4);
}

.correction-toggle input:checked::after {
  transform: translateX(18px);
}

.correction-submit {
  margin-top: 16px;
}

.correction-page .tone-text-panel textarea,
.correction-page .tone-output-box {
  min-height: 164px;
  font-size: 0.9rem;
}

.correction-page .tone-output-box {
  min-height: 156px;
}

.correction-output-box:not(.is-empty) {
  border-color: rgba(27, 176, 120, 0.28);
  background: linear-gradient(135deg, rgba(27, 176, 120, 0.08), rgba(255, 255, 255, 0.96));
}

.correction-task-tabs {
  margin-bottom: 22px;
}

.correction-examples {
  margin-top: 24px;
}

.style-main > .tools-main-topbar {
  display: none;
}

.style-page {
  width: min(100%, 1320px);
  padding-top: 2px;
}

.style-page .tone-back {
  margin-bottom: 0;
  color: #6b4cff;
  font-size: 0.82rem;
  font-weight: 950;
}

.style-page .tone-hero {
  margin: -4px 0 24px;
}

.style-page .tone-title {
  gap: 12px;
}

.style-page .tone-title h1 {
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  letter-spacing: -0.035em;
}

.style-page .tone-title > span {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.16), rgba(111, 76, 255, 0.07));
}

.style-page .tone-hero p {
  margin-top: 8px;
  color: #9aa1b8;
  font-size: 0.9rem;
}

.style-page .correction-task-tabs {
  gap: 14px;
  margin-bottom: 22px;
}

.style-page .writing-task-card {
  min-height: 78px;
  border-radius: 16px;
  padding: 13px 16px;
  grid-template-columns: 34px minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(22, 30, 68, 0.035);
}

.style-page .writing-task-card span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.style-page .writing-task-card strong {
  font-size: 0.84rem;
}

.style-page .writing-task-card small {
  font-size: 0.69rem;
}

.style-page .writing-task-card.is-active {
  border-color: rgba(111, 76, 255, 0.64);
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.075), rgba(255, 255, 255, 0.98));
}

.style-layout {
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.style-settings-card,
.style-editor-card,
.style-examples {
  border-radius: 18px;
  border-color: rgba(111, 76, 255, 0.12);
  box-shadow: 0 18px 42px rgba(22, 30, 68, 0.035);
}

.style-settings-card {
  min-height: 0;
  padding: 24px 24px 20px;
}

.style-settings-card h2 {
  margin-bottom: 22px;
  font-size: 1.03rem;
}

.style-settings-card > p:not(.summary-option-title) {
  margin-bottom: 12px;
  text-align: center;
}

.style-goal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.style-choice {
  min-height: 72px;
  border-radius: 13px;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  padding: 10px 9px;
}

.style-choice .correction-choice-icon {
  width: 30px;
  height: 30px;
  border-radius: 11px;
}

.style-choice strong {
  font-size: 0.72rem;
}

.style-choice small {
  font-size: 0.58rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.style-choice i,
.style-level-grid .summary-choice i {
  font-size: 0;
}

.style-choice.is-active,
.style-level-grid .summary-choice.is-active {
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.095), rgba(255, 255, 255, 0.98));
}

.style-level-grid {
  gap: 10px;
  margin-bottom: 18px;
}

.style-level-grid .summary-choice {
  min-height: 68px;
  border-radius: 13px;
  padding: 10px 12px;
}

.style-level-grid .summary-choice strong {
  font-size: 0.82rem;
}

.style-level-grid .summary-choice small {
  font-size: 0.68rem;
}

.style-page .tone-level {
  margin-top: 0;
}

.style-page .tone-level select {
  height: 44px;
  border-radius: 13px;
}

.style-page .correction-toggle {
  min-height: 70px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
}

.style-page .correction-toggle input {
  grid-row: 1 / span 2;
}

.style-page .correction-toggle span {
  display: none;
}

.style-page .correction-toggle b,
.style-page .correction-toggle small {
  text-align: right;
}

.style-page .correction-submit {
  height: 48px;
  margin-top: 14px;
  border-radius: 13px;
  font-size: 0.9rem;
}

.style-page .tone-cost {
  margin-top: 14px;
}

.style-editor-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.style-text-panel {
  padding: 24px 26px 18px;
}

.style-output-panel {
  padding-top: 22px;
}

.style-text-panel header {
  margin-bottom: 14px;
}

.style-text-panel h2 {
  font-size: 0.98rem;
}

.style-text-panel p {
  font-size: 0.76rem;
}

.style-page .tone-text-panel textarea,
.style-page .tone-output-box {
  min-height: 138px;
  border-radius: 13px;
  padding: 20px 22px;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.9;
}

.style-page .tone-output-box {
  min-height: 142px;
}

.style-output-box:not(.is-empty) {
  border-color: rgba(111, 76, 255, 0.36);
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.08), rgba(255, 255, 255, 0.98));
}

.style-page .tone-divider {
  margin-top: 0;
}

.style-result-actions {
  width: min(100%, 520px);
  padding: 0 26px 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.style-result-actions button {
  min-height: 42px;
  border-radius: 12px;
}

.style-examples {
  position: relative;
  margin-top: 20px;
  padding: 18px 22px;
}

.style-examples header {
  margin-bottom: 14px;
}

.style-examples header::after {
  content: "عرض الكل";
  position: absolute;
  inset-inline-end: 22px;
  color: #6b4cff;
  font-size: 0.78rem;
  font-weight: 950;
}

.style-examples > div {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.style-examples button {
  min-height: 52px;
  border-radius: 13px;
  padding-inline: 18px;
  background: linear-gradient(145deg, rgba(250, 249, 255, 0.96), rgba(255, 255, 255, 0.94));
}

/* Keep compact writing-tool choices readable without breaking Arabic words. */
.expand-focus-option,
.summary-choice,
.correction-choice,
.style-choice {
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  direction: rtl;
}

.expand-focus-option > *,
.summary-choice > *,
.correction-choice > *,
.style-choice > * {
  min-width: 0;
}

.expand-focus-option > span,
.summary-choice-icon,
.correction-choice-icon,
.style-choice .correction-choice-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.expand-focus-option strong,
.summary-choice strong,
.correction-choice strong,
.style-choice strong {
  grid-column: 2;
  grid-row: 1;
}

.expand-focus-option small,
.summary-choice small,
.correction-choice small,
.style-choice small {
  grid-column: 2;
  grid-row: 2;
}

.expand-focus-option i,
.summary-choice i,
.correction-choice i,
.style-choice i {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: center;
}

.summary-length-choice strong,
.style-level-grid .summary-choice strong {
  grid-column: 1;
}

.summary-length-choice small,
.style-level-grid .summary-choice small {
  grid-column: 1;
}

.summary-length-choice i,
.style-level-grid .summary-choice i {
  grid-column: 2;
}

.expand-focus-option strong,
.expand-focus-option small,
.summary-choice strong,
.summary-choice small,
.correction-choice strong,
.correction-choice small,
.style-choice strong,
.style-choice small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: normal;
  text-align: right;
  white-space: normal;
  word-break: keep-all;
}

.expand-focus-option strong,
.summary-choice strong,
.correction-choice strong,
.style-choice strong {
  color: #172044;
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1.42;
}

.expand-focus-option small,
.summary-choice small,
.correction-choice small,
.style-choice small {
  color: #9aa1b8;
  font-size: 0.6rem;
  font-weight: 850;
  line-height: 1.45;
}

.summary-type-grid .summary-choice,
.summary-length-grid .summary-choice,
.correction-type-grid .correction-choice,
.style-goal-grid .style-choice,
.style-level-grid .summary-choice,
.expand-focus-grid .expand-focus-option {
  align-content: center;
}

.summary-length-grid .summary-choice strong,
.style-level-grid .summary-choice strong {
  font-size: 0.82rem;
}

.summary-length-grid .summary-choice small,
.style-level-grid .summary-choice small {
  font-size: 0.66rem;
}

.style-goal-grid .style-choice {
  min-height: 74px;
  padding: 10px 11px;
}

.style-goal-grid .style-choice strong,
.correction-type-grid .correction-choice strong,
.summary-type-grid .summary-choice strong {
  font-size: 0.7rem;
}

.style-goal-grid .style-choice small,
.correction-type-grid .correction-choice small,
.summary-type-grid .summary-choice small {
  font-size: 0.56rem;
}

/* Style assistant cards use fixed lanes: selector, readable text, icon. */
.style-goal-grid .style-choice {
  display: grid;
  direction: ltr;
  grid-template-columns: 18px minmax(0, 1fr) 30px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 6px;
  min-height: 82px;
  padding: 11px 9px;
  text-align: right;
}

.style-goal-grid .style-choice .correction-choice-icon {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  width: 30px;
  height: 30px;
  transform: none;
}

.style-goal-grid .style-choice i {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: start;
  transform: none;
}

.style-goal-grid .style-choice strong,
.style-goal-grid .style-choice small {
  grid-column: 2;
  max-width: 100%;
  overflow: visible;
  direction: rtl;
  text-align: right;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
}

.style-goal-grid .style-choice strong {
  grid-row: 1;
  align-self: end;
  font-size: 0.75rem;
  line-height: 1.22;
}

.style-goal-grid .style-choice small {
  grid-row: 2;
  align-self: start;
  font-size: 0.58rem;
  line-height: 1.28;
}

.style-level-grid .summary-choice {
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(0, 1fr) 18px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 8px;
  min-height: 74px;
  padding: 12px 13px;
  text-align: right;
}

.style-level-grid .summary-choice i {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: end;
}

.style-level-grid .summary-choice strong,
.style-level-grid .summary-choice small {
  grid-column: 1;
  max-width: 100%;
  overflow: visible;
  direction: rtl;
  text-align: right;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
}

.style-level-grid .summary-choice strong {
  grid-row: 1;
  font-size: 0.86rem;
  line-height: 1.25;
}

.style-level-grid .summary-choice small {
  grid-row: 2;
  font-size: 0.68rem;
  line-height: 1.3;
}

/* Linguistic correction cards: fixed text area with pinned icon and selector. */
.correction-type-grid .correction-choice:not(.style-choice) {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 118px;
  padding: 14px 14px 44px;
  overflow: hidden;
  direction: rtl;
  text-align: right;
}

.correction-type-grid .correction-choice:not(.style-choice) .correction-choice-icon {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 32px;
  height: 32px;
  transform: none;
}

.correction-type-grid .correction-choice:not(.style-choice) i {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-color: rgba(139, 148, 174, 0.34);
  background: transparent;
  color: transparent;
  font-size: 0;
}

.correction-type-grid .correction-choice:not(.style-choice).is-active i {
  border-color: #6b4cff;
  background: transparent;
}

.correction-type-grid .correction-choice:not(.style-choice) i::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6b4cff;
  opacity: 0;
}

.correction-type-grid .correction-choice:not(.style-choice).is-active i::after {
  opacity: 1;
}

.correction-type-grid .correction-choice:not(.style-choice) strong,
.correction-type-grid .correction-choice:not(.style-choice) small {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  direction: rtl;
  text-align: right;
  text-overflow: clip;
  white-space: normal;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: break-word;
  letter-spacing: 0;
}

.correction-type-grid .correction-choice:not(.style-choice) strong {
  color: #172044;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.32;
}

.correction-type-grid .correction-choice:not(.style-choice) small {
  margin-top: 4px;
  color: #9aa1b8;
  font-size: 0.61rem;
  font-weight: 850;
  line-height: 1.35;
}

/* Summary cards use the same non-overlapping lanes as the reference. */
.summary-type-grid .summary-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 112px;
  padding: 14px 14px 44px;
  overflow: hidden;
  direction: rtl;
  text-align: right;
}

.summary-type-grid .summary-choice .summary-choice-icon {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 32px;
  height: 32px;
  transform: none;
}

.summary-type-grid .summary-choice i {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 0;
}

.summary-type-grid .summary-choice i::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6b4cff;
  opacity: 0;
}

.summary-type-grid .summary-choice.is-active i::after {
  opacity: 1;
}

.summary-type-grid .summary-choice strong,
.summary-type-grid .summary-choice small,
.summary-length-grid .summary-length-choice strong,
.summary-length-grid .summary-length-choice small {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  direction: rtl;
  text-align: right;
  text-overflow: clip;
  white-space: normal;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: break-word;
  letter-spacing: 0;
}

.summary-type-grid .summary-choice strong {
  color: #172044;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.32;
}

.summary-type-grid .summary-choice small {
  margin-top: 4px;
  color: #9aa1b8;
  font-size: 0.61rem;
  font-weight: 850;
  line-height: 1.35;
}

.summary-length-grid .summary-length-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
  padding: 14px 16px 14px 34px;
  overflow: hidden;
  direction: rtl;
  text-align: right;
}

.summary-length-grid .summary-length-choice i {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 0;
}

.summary-length-grid .summary-length-choice i::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6b4cff;
  opacity: 0;
}

.summary-length-grid .summary-length-choice.is-active i::after {
  opacity: 1;
}

.summary-length-grid .summary-length-choice strong {
  color: #172044;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.24;
}

.summary-length-grid .summary-length-choice small {
  margin-top: 4px;
  color: #9aa1b8;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.28;
}

.guest-rail-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  color: #172044;
  background: transparent;
  display: grid;
  place-items: center;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.guest-rail-btn:hover {
  color: #6b4cff;
  background: rgba(111, 76, 255, 0.08);
  transform: translateY(-1px);
}

.guest-rail-label {
  display: none;
}

.guest-shell.is-sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr) 286px;
}

.guest-shell.is-home-workspace.is-sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}

.guest-shell.is-sidebar-collapsed .guest-sidebar {
  padding: 22px 9px 18px;
  align-items: center;
  gap: 12px;
}

.guest-shell.is-sidebar-collapsed .guest-sidebar-head {
  width: 100%;
  min-height: auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.guest-shell.is-sidebar-collapsed .guest-brand {
  width: 52px;
  height: 52px;
  justify-content: center;
}

.guest-shell.is-sidebar-collapsed .guest-brand-full {
  display: none;
}

.guest-shell.is-sidebar-collapsed .guest-brand .guest-brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.guest-shell.is-sidebar-collapsed .guest-sidebar-toggle {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  border-radius: 16px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(111, 76, 255, 0.16);
  box-shadow: 0 14px 28px rgba(111, 76, 255, 0.1);
}

.guest-shell.is-sidebar-collapsed .guest-sidebar-toggle .toggle-expanded {
  display: none;
}

.guest-shell.is-sidebar-collapsed .guest-sidebar-toggle .toggle-collapsed {
  display: block;
}

.guest-shell.is-sidebar-collapsed .guest-new-chat,
.guest-shell.is-sidebar-collapsed .guest-upgrade-card,
.guest-shell.is-sidebar-collapsed .guest-user-card {
  width: 52px;
  min-height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
}

.guest-shell.is-sidebar-collapsed .guest-new-chat {
  margin-top: 4px;
  min-height: 58px;
  height: 58px;
  box-shadow: 0 18px 30px rgba(111, 76, 255, 0.26);
}

.guest-shell.is-sidebar-collapsed .guest-collapsed-tools {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.guest-shell.is-sidebar-collapsed .guest-rail-btn.is-tools {
  width: 52px;
  height: 58px;
  color: #6b4cff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.14), rgba(111, 76, 255, 0.06));
  border: 1px solid rgba(111, 76, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 24px rgba(111, 76, 255, 0.08);
}

.guest-shell.is-sidebar-collapsed .guest-rail-btn.is-tools svg {
  width: 18px;
  height: 18px;
}

.guest-shell.is-sidebar-collapsed .guest-rail-btn.is-tools .guest-rail-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
}

.guest-shell.is-sidebar-collapsed .guest-rail-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.guest-shell.is-sidebar-collapsed .guest-new-chat i,
.guest-shell.is-sidebar-collapsed .guest-search-box span,
.guest-shell.is-sidebar-collapsed .guest-history-more,
.guest-shell.is-sidebar-collapsed .upgrade-mark,
.guest-shell.is-sidebar-collapsed .guest-user-avatar {
  margin: 0;
}

.guest-shell.is-sidebar-collapsed .guest-new-chat span,
.guest-shell.is-sidebar-collapsed .guest-projects-panel,
.guest-shell.is-sidebar-collapsed .guest-search-box,
.guest-shell.is-sidebar-collapsed .guest-history-wrap,
.guest-shell.is-sidebar-collapsed .guest-search-box input,
.guest-shell.is-sidebar-collapsed .guest-history-copy,
.guest-shell.is-sidebar-collapsed .guest-history-group h3,
.guest-shell.is-sidebar-collapsed .guest-history-badge,
.guest-shell.is-sidebar-collapsed .guest-upgrade-card,
.guest-shell.is-sidebar-collapsed .guest-upgrade-card div,
.guest-shell.is-sidebar-collapsed .guest-user-copy,
.guest-shell.is-sidebar-collapsed .guest-user-head,
.guest-shell.is-sidebar-collapsed .guest-user-lines,
.guest-shell.is-sidebar-collapsed .guest-user-action,
.guest-shell.is-sidebar-collapsed .guest-user-menu {
  display: none;
}

.guest-shell.is-sidebar-collapsed .guest-user-card {
  flex: 0 0 auto;
}

@media (max-width: 1080px) {
  .tools-filters {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tools-filter {
    flex: 0 0 auto;
    padding-inline: 20px;
  }

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

  .smart-search-layout {
    grid-template-columns: 1fr;
  }

  .writing-task-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .writing-task-card {
    flex: 0 0 170px;
  }

  .writing-layout {
    grid-template-columns: 1fr;
  }

  .tone-layout {
    grid-template-columns: 1fr;
  }

  .style-layout {
    grid-template-columns: 1fr;
  }

  .style-page .writing-task-card {
    flex-basis: 180px;
  }

  .tone-examples > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .writing-examples > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smart-suggestions > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tools-main {
    padding: 24px 14px 32px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tool-card {
    min-height: 142px;
    padding: 18px 16px 14px;
  }

  .smart-search-box {
    padding: 18px;
  }

  .smart-search-controls,
  .smart-suggestions > div,
  .writing-examples > div,
  .tone-examples > div,
  .expand-focus-grid,
  .correction-type-grid,
  .summary-type-grid,
  .summary-length-grid,
  .tone-result-actions {
    grid-template-columns: 1fr;
  }

  .style-goal-grid,
  .style-level-grid,
  .style-examples > div {
    grid-template-columns: 1fr;
  }

  .writing-form-card,
  .writing-settings-card,
  .tone-settings-card,
  .tone-text-panel {
    padding: 16px;
  }

  .tone-task-tabs {
    margin-bottom: 16px;
  }

  .tone-text-panel textarea,
  .tone-output-box {
    min-height: 140px;
  }

  .tone-result-actions {
    padding: 0 16px 16px;
  }

  .writing-field textarea {
    min-height: 150px;
  }

  .writing-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .writing-actions button {
    width: 100%;
  }

  .smart-history article {
    grid-template-columns: 32px 1fr 34px;
  }

  .smart-history article span {
    display: none;
  }
}

@media (max-width: 720px) {
  .guest-sidebar-toggle {
    display: none;
  }

  .guest-brand .guest-brand-full {
    display: none;
  }

  .guest-brand .guest-brand-mark {
    display: block;
  }
}

/* Orlixor writing tools polish */
.tools-writing-main {
  padding: 24px 28px 28px;
  gap: 18px;
  background:
    radial-gradient(circle at 52% 16%, rgba(111, 76, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 251, 255, 0.98));
}

.tools-main-topbar {
  width: min(100%, 1120px);
  margin-inline: auto;
  align-items: center;
}

.tools-main-topbar .model-switcher-wrap {
  min-width: min(390px, 45vw);
}

.tools-main-topbar .ai-switcher {
  position: relative;
  min-width: min(390px, 45vw);
  min-height: 76px;
  padding: 0 24px;
  border-radius: 24px;
  gap: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(118, 88, 255, 0.14);
  box-shadow: 0 18px 44px rgba(32, 22, 86, 0.08);
}

.tools-main-topbar .ai-switcher-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.14), rgba(111, 76, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(111, 76, 255, 0.08);
}

.tools-main-topbar .ai-switcher-mark img {
  width: 38px;
  height: 38px;
}

.tools-main-topbar .ai-switcher-divider {
  display: inline-block;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(118, 88, 255, 0.22), transparent);
}

.tools-main-topbar .ai-switcher-name {
  position: relative;
  z-index: 1;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #161936;
}

.tools-main-topbar .ai-switcher-caret {
  position: relative;
  z-index: 1;
  margin-inline-start: auto;
  font-style: normal;
  font-size: 1.45rem;
  font-weight: 900;
  color: #171a37;
}

.tools-main-topbar .ai-switcher-dots {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  width: 96px;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(111, 76, 255, 0.44) 1.5px, transparent 1.7px);
  background-size: 12px 12px;
  mask-image: radial-gradient(circle at 100% 50%, #000 0 36%, transparent 72%);
}

.writing-tools-page {
  position: relative;
  width: min(100%, 980px);
  margin-inline: auto;
  padding: 4px 0 0;
}

.tools-back-chat {
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid rgba(118, 88, 255, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: #6246ff;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(42, 31, 92, 0.06);
}

.tools-back-chat i {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.tools-back-chat svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.writing-tools-hero {
  width: 100%;
  padding: 48px 0 20px;
  text-align: center;
}

.writing-tools-hero .tools-hero-icon,
.tools-hero-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #6b4cff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.16), rgba(111, 76, 255, 0.06));
}

.writing-tools-hero .tools-hero-icon svg,
.tools-hero-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
}

.writing-tools-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
  color: #151936;
}

.writing-tools-hero p {
  margin: 8px 0 0;
  color: #96a0bb;
  font-size: 1rem;
  font-weight: 800;
}

.writing-tools-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 4px auto 24px;
  overflow: visible;
}

.writing-tools-filters .tools-filter {
  min-width: 120px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(22, 25, 54, 0.04);
}

.writing-tools-filters .tools-filter.active {
  color: #6b4cff;
  border-color: rgba(111, 76, 255, 0.46);
  background: rgba(255, 255, 255, 0.98);
}

.writing-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.writing-tool-card {
  position: relative;
  min-height: 178px;
  padding: 22px 20px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(118, 88, 255, 0.12);
  box-shadow: 0 18px 42px rgba(34, 26, 88, 0.055);
  align-items: center;
  text-align: center;
}

.writing-tool-card .tool-favorite {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  width: 18px;
  height: 18px;
  color: #9ba4c0;
}

.writing-tool-card .tool-favorite svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.writing-tool-card .tool-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 18px;
  color: #6b4cff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.16), rgba(111, 76, 255, 0.06));
}

.writing-tool-card .tool-icon svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
}

.writing-tool-card strong {
  font-size: 1rem;
  font-weight: 950;
  color: #171a37;
}

.writing-tool-card p {
  max-width: 160px;
  margin: 8px auto 0;
  color: #8f99b6;
  font-size: 0.78rem;
  line-height: 1.75;
  font-weight: 800;
}

.writing-tool-card .tool-foot {
  width: 100%;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.writing-tool-card .tool-foot small {
  color: #9aa3bb;
  font-size: 0.7rem;
  font-weight: 850;
}

.writing-tool-card .tool-foot b {
  min-width: 54px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(25, 190, 139, 0.12);
  color: #10a875;
  font-size: 0.72rem;
  font-weight: 950;
}

.writing-tools-suggest {
  margin-top: 20px;
  text-align: center;
  color: #9aa3bb;
  font-size: 0.86rem;
  font-weight: 850;
}

.writing-tools-suggest button {
  border: 0;
  background: transparent;
  color: #6b4cff;
  font-weight: 950;
}

.tools-writing-main .writing-tools-page {
  width: min(100%, 1018px);
  padding-top: 18px;
}

.tools-writing-main .writing-tools-hero {
  padding: 8px 0 16px;
  text-align: center;
}

.tools-writing-main .writing-tools-hero h1 {
  margin: 0;
  color: #172044;
  font-size: clamp(1.3rem, 2.15vw, 1.7rem);
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
}

.tools-writing-main .writing-tools-hero p {
  margin: 5px 0 0;
  color: #8c94ad;
  font-size: 0.82rem;
  font-weight: 800;
}

.tools-writing-main .writing-tools-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
}

.tools-writing-main .writing-tool-card {
  min-height: 154px;
  padding: 18px 16px 14px;
  gap: 6px;
}

.tools-writing-main .writing-tool-card .tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  margin: 0;
}

.tools-writing-main .writing-tool-card .tool-card-icon svg {
  width: 21px;
  height: 21px;
}

.tools-writing-main .writing-tool-card strong {
  margin-top: 2px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.tools-writing-main .writing-tool-card .tool-card-copy {
  min-height: 34px;
  max-width: 180px;
  margin: 0 auto;
  color: #8c94ad;
  font-size: 0.66rem;
  line-height: 1.55;
}

.writing-tool-action {
  min-height: 26px;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid rgba(111, 76, 255, 0.34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 950;
}

.writing-tool-action b {
  font-size: 0.78rem;
  line-height: 1;
}

.tools-summary-main .summary-tools-page {
  width: min(100%, 1018px);
  padding-top: 18px;
}

.tools-summary-main .summary-tools-hero {
  padding: 8px 0 14px;
  text-align: center;
}

.tools-summary-main .summary-tools-hero h1 {
  margin: 0;
  color: #172044;
  font-size: clamp(1.3rem, 2.15vw, 1.7rem);
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
}

.tools-summary-main .summary-tools-hero p {
  margin: 5px 0 0;
  color: #8c94ad;
  font-size: 0.82rem;
  font-weight: 800;
}

.summary-tools-sections {
  display: grid;
  gap: 18px;
}

.summary-tools-block {
  display: grid;
  gap: 10px;
}

.summary-tools-block h2 {
  justify-self: end;
  margin: 0 8px 0 0;
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 7px;
  color: #172044;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.2;
}

.summary-tools-block h2 span {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7652ff;
}

.summary-tools-block h2 svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.tools-summary-main .summary-tools-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
}

.tools-summary-main .summary-tool-card {
  min-height: 154px;
  padding: 18px 16px 14px;
  gap: 6px;
}

.tools-summary-main .summary-tool-card .tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  margin: 0;
}

.tools-summary-main .summary-tool-card .tool-card-icon svg {
  width: 21px;
  height: 21px;
}

.tools-summary-main .summary-tool-card strong {
  margin-top: 2px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.tools-summary-main .summary-tool-card .tool-card-copy {
  min-height: 34px;
  max-width: 180px;
  margin: 0 auto;
  color: #8c94ad;
  font-size: 0.66rem;
  line-height: 1.55;
}

.summary-tool-action {
  min-height: 26px;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid rgba(111, 76, 255, 0.34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 950;
}

.summary-tool-action b {
  font-size: 0.78rem;
  line-height: 1;
}

.tools-data-main .data-tools-page {
  width: min(100%, 1018px);
  padding-top: 18px;
}

.tools-data-main .data-tools-hero {
  padding: 8px 0 16px;
  text-align: center;
}

.tools-data-main .data-tools-hero h1 {
  margin: 0;
  color: #172044;
  font-size: clamp(1.3rem, 2.15vw, 1.7rem);
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
}

.tools-data-main .data-tools-hero p {
  margin: 5px 0 0;
  color: #8c94ad;
  font-size: 0.82rem;
  font-weight: 800;
}

.data-tools-block {
  display: grid;
  gap: 10px;
}

.data-tools-block h2 {
  justify-self: end;
  margin: 0 8px 0 0;
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 7px;
  color: #172044;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.2;
}

.data-tools-block h2 span {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7652ff;
}

.data-tools-block h2 svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.tools-data-main .data-tools-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
}

.tools-data-main .data-tool-card {
  min-height: 154px;
  padding: 18px 16px 14px;
  gap: 6px;
}

.tools-data-main .data-tool-card .tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  margin: 0;
  color: #6b4cff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.16), rgba(111, 76, 255, 0.07));
}

.tools-data-main .data-tool-card .tool-card-icon svg {
  width: 21px;
  height: 21px;
}

.tools-data-main .data-tool-card strong {
  margin-top: 2px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.tools-data-main .data-tool-card .tool-card-copy {
  min-height: 34px;
  max-width: 180px;
  margin: 0 auto;
  color: #8c94ad;
  font-size: 0.66rem;
  line-height: 1.55;
}

.data-tool-action {
  min-height: 26px;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid rgba(111, 76, 255, 0.34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 950;
}

.data-tool-action b {
  font-size: 0.78rem;
  line-height: 1;
}

.tools-productivity-main .productivity-tools-page {
  width: min(100%, 1018px);
  padding-top: 18px;
}

.tools-productivity-main .productivity-tools-hero {
  padding: 8px 0 16px;
  text-align: center;
}

.tools-productivity-main .productivity-tools-hero h1 {
  margin: 0;
  color: #172044;
  font-size: clamp(1.3rem, 2.15vw, 1.7rem);
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
}

.tools-productivity-main .productivity-tools-hero p {
  margin: 5px 0 0;
  color: #8c94ad;
  font-size: 0.82rem;
  font-weight: 800;
}

.productivity-tools-block {
  display: grid;
  gap: 10px;
}

.productivity-tools-block h2 {
  justify-self: end;
  margin: 0 8px 0 0;
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 7px;
  color: #172044;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.2;
}

.productivity-tools-block h2 span {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7652ff;
}

.productivity-tools-block h2 svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.tools-productivity-main .productivity-tools-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
}

.tools-productivity-main .productivity-tool-card {
  min-height: 154px;
  padding: 18px 16px 14px;
  gap: 6px;
}

.tools-productivity-main .productivity-tool-card .tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  margin: 0;
  color: #6b4cff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.16), rgba(111, 76, 255, 0.07));
}

.tools-productivity-main .productivity-tool-card .tool-card-icon svg {
  width: 21px;
  height: 21px;
}

.tools-productivity-main .productivity-tool-card strong {
  margin-top: 2px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.tools-productivity-main .productivity-tool-card .tool-card-copy {
  min-height: 34px;
  max-width: 180px;
  margin: 0 auto;
  color: #8c94ad;
  font-size: 0.66rem;
  line-height: 1.55;
}

.productivity-tool-action {
  min-height: 26px;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid rgba(111, 76, 255, 0.34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 950;
}

.productivity-tool-action b {
  font-size: 0.78rem;
  line-height: 1;
}

.tools-education-main .education-tools-page {
  width: min(100%, 1018px);
  padding-top: 18px;
}

.tools-education-main .education-tools-hero {
  padding: 8px 0 16px;
  text-align: center;
}

.tools-education-main .education-tools-hero h1 {
  margin: 0;
  color: #172044;
  font-size: clamp(1.3rem, 2.15vw, 1.7rem);
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
}

.tools-education-main .education-tools-hero p {
  margin: 5px 0 0;
  color: #8c94ad;
  font-size: 0.82rem;
  font-weight: 800;
}

.education-tools-block {
  display: grid;
  gap: 10px;
}

.education-tools-block h2 {
  justify-self: end;
  margin: 0 8px 0 0;
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 7px;
  color: #172044;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.2;
}

.education-tools-block h2 span {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7652ff;
}

.education-tools-block h2 svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.tools-education-main .education-tools-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
}

.tools-education-main .education-tool-card {
  min-height: 154px;
  padding: 18px 16px 14px;
  gap: 6px;
}

.tools-education-main .education-tool-card .tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  margin: 0;
  color: #6b4cff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.16), rgba(111, 76, 255, 0.07));
}

.tools-education-main .education-tool-card .tool-card-icon svg {
  width: 21px;
  height: 21px;
}

.tools-education-main .education-tool-card strong {
  margin-top: 2px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.tools-education-main .education-tool-card .tool-card-copy {
  min-height: 34px;
  max-width: 180px;
  margin: 0 auto;
  color: #8c94ad;
  font-size: 0.66rem;
  line-height: 1.55;
}

.education-tool-action {
  min-height: 26px;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid rgba(111, 76, 255, 0.34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #6b4cff;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 950;
}

.education-tool-action b {
  font-size: 0.78rem;
  line-height: 1;
}

.guest-shell.is-sidebar-collapsed {
  grid-template-columns: 82px minmax(0, 1fr) 286px;
}

.guest-shell.is-home-workspace.is-sidebar-collapsed,
.guest-shell.is-tools-workspace.is-sidebar-collapsed {
  grid-template-columns: 82px minmax(0, 1fr);
}

.guest-shell.is-sidebar-collapsed .guest-sidebar {
  min-height: 100vh;
  height: 100vh;
  padding: 26px 10px 24px;
  border-radius: 0;
  border-inline-start: 0;
  border-top: 0;
  border-bottom: 0;
  align-items: center;
  gap: 24px;
  box-shadow: 14px 0 34px rgba(46, 35, 102, 0.045);
}

.guest-shell.is-sidebar-collapsed .guest-sidebar-head {
  width: 100%;
  flex-direction: column;
  gap: 28px;
}

.guest-shell.is-sidebar-collapsed .guest-brand {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.guest-shell.is-sidebar-collapsed .guest-brand .guest-brand-mark {
  width: 48px;
  height: 48px;
}

.guest-shell.is-sidebar-collapsed .guest-sidebar-toggle {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  color: #6b4cff;
  box-shadow: 0 12px 28px rgba(46, 35, 102, 0.09);
}

.guest-shell.is-sidebar-collapsed .guest-new-chat {
  width: 58px;
  height: 62px;
  min-height: 62px;
  border-radius: 18px;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #7b58ff, #5b31f7);
  box-shadow: 0 18px 34px rgba(111, 76, 255, 0.28);
}

.guest-shell.is-sidebar-collapsed .guest-new-chat i svg {
  width: 29px;
  height: 29px;
}

.guest-shell.is-sidebar-collapsed .guest-collapsed-tools {
  width: 100%;
  flex: 0 0 auto;
  margin-top: 0;
  gap: 23px;
}

.guest-shell.is-sidebar-collapsed .guest-rail-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: transparent;
  border: 0;
  color: #151936;
  box-shadow: none;
}

.guest-shell.is-sidebar-collapsed .guest-rail-btn svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.1;
}

.guest-shell.is-sidebar-collapsed .guest-rail-btn.is-tools {
  width: 58px;
  height: 62px;
  border-radius: 18px;
  color: #6b4cff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.14), rgba(111, 76, 255, 0.05));
  border: 1px solid rgba(111, 76, 255, 0.12);
  box-shadow: 0 14px 30px rgba(111, 76, 255, 0.08);
}

.guest-shell.is-sidebar-collapsed .guest-rail-btn.is-tools svg {
  width: 23px;
  height: 23px;
}

.guest-shell.is-sidebar-collapsed .guest-rail-btn.is-tools .guest-rail-label {
  font-size: 0.64rem;
  line-height: 1;
  margin-top: 1px;
}

.guest-shell.is-sidebar-collapsed .guest-nav,
.guest-shell.is-sidebar-collapsed .guest-projects-panel,
.guest-shell.is-sidebar-collapsed .guest-search-box,
.guest-shell.is-sidebar-collapsed .guest-history-wrap,
.guest-shell.is-sidebar-collapsed .guest-upgrade-card,
.guest-shell.is-sidebar-collapsed .guest-user-card {
  display: none;
}

@media (max-width: 1180px) {
  .writing-tools-grid,
  .summary-tools-grid,
  .data-tools-grid,
  .productivity-tools-grid,
  .education-tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tools-main-topbar .model-switcher-wrap,
  .tools-main-topbar .ai-switcher {
    min-width: min(340px, 48vw);
  }
}

@media (max-width: 860px) {
  .tools-writing-main,
  .tools-summary-main,
  .tools-data-main,
  .tools-productivity-main,
  .tools-education-main {
    padding: 18px 14px 26px;
  }

  .tools-main-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tools-main-topbar .model-switcher-wrap,
  .tools-main-topbar .ai-switcher {
    width: 100%;
    min-width: 0;
  }

  .tools-back-chat {
    position: static;
    margin-bottom: 14px;
  }

  .writing-tools-hero,
  .summary-tools-hero,
  .data-tools-hero,
  .productivity-tools-hero,
  .education-tools-hero {
    padding-top: 8px;
  }

  .writing-tools-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .writing-tools-grid,
  .summary-tools-grid,
  .data-tools-grid,
  .productivity-tools-grid,
  .education-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .writing-tools-grid,
  .summary-tools-grid,
  .data-tools-grid,
  .productivity-tools-grid,
  .education-tools-grid {
    grid-template-columns: 1fr;
  }

  .tools-main-topbar .ai-switcher {
    min-height: 64px;
    border-radius: 20px;
  }

  .tools-main-topbar .ai-switcher-mark {
    width: 48px;
    height: 48px;
  }

  .tools-main-topbar .ai-switcher-name {
    font-size: 1.2rem;
  }
}

/* Restore tools index and place the large model card on the chat interface only */
.tools-main-topbar.is-tools-index {
  direction: rtl;
  width: min(100%, 1120px);
  margin: 0 auto 16px;
  align-items: center;
  justify-content: space-between;
}

.tools-main-topbar.is-tools-index .tools-back-chat {
  position: static;
  inset: auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  white-space: nowrap;
}

.tools-main-topbar.is-tools-index .home-top-actions {
  direction: ltr;
  margin-inline-start: auto;
}

.guest-shell.is-home-workspace .home-main-topbar .model-switcher-wrap {
  width: clamp(320px, 34vw, 430px);
  min-width: clamp(320px, 34vw, 430px);
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher {
  position: relative;
  width: 100%;
  min-height: 72px;
  justify-content: flex-start;
  gap: 18px;
  padding: 0 22px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(118, 88, 255, 0.14);
  box-shadow: 0 18px 42px rgba(32, 22, 86, 0.08);
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.16), rgba(111, 76, 255, 0.05));
  box-shadow: inset 0 0 0 1px rgba(111, 76, 255, 0.08);
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-mark img {
  width: 38px;
  height: 38px;
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-divider {
  display: inline-block;
  width: 1px;
  height: 44px;
  flex: 0 0 1px;
  background: linear-gradient(180deg, transparent, rgba(118, 88, 255, 0.22), transparent);
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-name {
  position: relative;
  z-index: 1;
  color: #151936;
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1;
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-caret {
  position: relative;
  z-index: 1;
  margin-inline-start: auto;
  color: #161936;
  font-style: normal;
  font-size: 1.45rem;
  font-weight: 950;
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-dots {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  width: 96px;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(111, 76, 255, 0.44) 1.5px, transparent 1.7px);
  background-size: 12px 12px;
  mask-image: radial-gradient(circle at 100% 50%, #000 0 36%, transparent 72%);
}

.guest-shell.is-sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr) 286px;
}

.guest-shell.is-home-workspace.is-sidebar-collapsed,
.guest-shell.is-tools-workspace.is-sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}

.guest-shell.is-sidebar-collapsed .guest-sidebar {
  width: 76px;
  min-width: 76px;
  max-width: 76px;
  padding: 24px 8px 22px;
  gap: 22px;
}

.guest-shell.is-sidebar-collapsed .guest-sidebar-head {
  gap: 24px;
}

.guest-shell.is-sidebar-collapsed .guest-brand {
  width: 48px;
  height: 48px;
}

.guest-shell.is-sidebar-collapsed .guest-brand .guest-brand-mark {
  width: 44px;
  height: 44px;
}

.guest-shell.is-sidebar-collapsed .guest-sidebar-toggle,
.guest-shell.is-sidebar-collapsed .guest-rail-btn {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.guest-shell.is-sidebar-collapsed .guest-new-chat,
.guest-shell.is-sidebar-collapsed .guest-rail-btn.is-tools {
  width: 56px;
  height: 58px;
  min-height: 58px;
  border-radius: 17px;
}

.guest-shell.is-sidebar-collapsed .guest-collapsed-tools {
  gap: 20px;
}

@media (max-width: 860px) {
  .guest-shell.is-home-workspace .home-main-topbar .model-switcher-wrap {
    width: min(100%, 390px);
    min-width: 0;
  }

  .guest-shell.is-home-workspace .home-main-topbar .ai-switcher {
    min-height: 64px;
    border-radius: 20px;
  }

  .tools-main-topbar.is-tools-index {
    flex-direction: row;
    align-items: center;
  }
}

/* Final scope: the large model switcher belongs to the chat home only. */
.guest-shell:not(.is-home-workspace) .model-switcher-wrap,
.guest-shell.is-tools-workspace .model-switcher-wrap,
.guest-shell.is-home-workspace .guest-main-topbar:not(.home-main-topbar) .model-switcher-wrap {
  display: none !important;
}

.guest-shell.is-home-workspace .home-main-topbar .model-switcher-wrap {
  display: inline-flex !important;
  width: clamp(248px, 28vw, 330px);
  min-width: clamp(248px, 28vw, 330px);
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher {
  min-height: 54px;
  gap: 12px;
  padding: 0 14px;
  border-radius: 17px;
  box-shadow: 0 14px 34px rgba(32, 22, 86, 0.06);
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-mark img,
.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-mark svg {
  width: 28px;
  height: 28px;
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-divider {
  height: 32px;
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-name {
  font-size: clamp(1.12rem, 1.45vw, 1.38rem);
  letter-spacing: -0.035em;
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-caret {
  font-size: 1rem;
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-dots {
  width: 68px;
  opacity: 0.36;
  background-size: 10px 10px;
}

@media (max-width: 760px) {
  .guest-shell.is-home-workspace .home-main-topbar .model-switcher-wrap {
    width: min(100%, 300px);
    min-width: 0;
  }

  .guest-shell.is-home-workspace .home-main-topbar .ai-switcher {
    min-height: 50px;
    border-radius: 16px;
  }

  .guest-shell.is-home-workspace .home-main-topbar .ai-switcher-name {
    font-size: 1.08rem;
  }
}

/* Final polish requested: compact chat switcher, smaller collapsed rail, and top-left back button. */
.guest-shell.is-home-workspace .home-main-topbar .model-switcher-wrap {
  width: clamp(220px, 24vw, 290px);
  min-width: clamp(220px, 24vw, 290px);
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher {
  min-height: 48px;
  gap: 10px;
  padding: 0 12px;
  border-radius: 15px;
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-mark {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-mark img,
.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-mark svg {
  width: 24px;
  height: 24px;
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-divider {
  height: 28px;
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-name {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.guest-shell.is-home-workspace .home-main-topbar .ai-switcher-dots {
  width: 56px;
}

.tools-back-chat,
.tools-main-topbar.is-tools-index .tools-back-chat,
.tools-back-chat.tools-back-chat-inline {
  position: absolute;
  inset: auto auto auto 0;
  left: 0;
  right: auto;
  top: 0;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  gap: 6px;
  white-space: nowrap;
}

.tools-back-chat i,
.tools-back-chat svg {
  width: 15px;
  height: 15px;
}

.tools-main-topbar.is-tools-index {
  position: relative;
  min-height: 48px;
}

.guest-shell.is-sidebar-collapsed {
  grid-template-columns: 68px minmax(0, 1fr) 286px;
}

.guest-shell.is-home-workspace.is-sidebar-collapsed,
.guest-shell.is-tools-workspace.is-sidebar-collapsed {
  grid-template-columns: 68px minmax(0, 1fr);
}

.guest-shell.is-sidebar-collapsed .guest-sidebar {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  padding: 20px 6px;
  gap: 18px;
}

.guest-shell.is-sidebar-collapsed .guest-brand {
  width: 44px;
  height: 44px;
}

.guest-shell.is-sidebar-collapsed .guest-brand .guest-brand-mark {
  width: 40px;
  height: 40px;
}

.guest-shell.is-sidebar-collapsed .guest-sidebar-toggle,
.guest-shell.is-sidebar-collapsed .guest-rail-btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 14px;
}

.guest-shell.is-sidebar-collapsed .guest-new-chat,
.guest-shell.is-sidebar-collapsed .guest-rail-btn.is-tools {
  width: 50px;
  height: 54px;
  min-height: 54px;
  border-radius: 16px;
}

.guest-shell.is-sidebar-collapsed .guest-new-chat {
  display: grid;
  place-items: center;
  padding: 0;
}

.guest-shell.is-sidebar-collapsed .guest-new-chat i {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  margin: 0;
}

.guest-shell.is-sidebar-collapsed .guest-new-chat i svg {
  width: 25px;
  height: 25px;
}

.guest-shell.is-sidebar-collapsed .guest-collapsed-tools {
  gap: 17px;
}

.guest-shell.is-sidebar-collapsed .guest-rail-btn svg {
  width: 23px;
  height: 23px;
}

.guest-shell.is-sidebar-collapsed .guest-rail-btn.is-tools svg {
  width: 21px;
  height: 21px;
}

.guest-shell.is-sidebar-collapsed .guest-rail-btn.is-tools .guest-rail-label {
  font-size: 0.6rem;
  line-height: 1.05;
}

@media (max-width: 760px) {
  .guest-shell.is-home-workspace .home-main-topbar .model-switcher-wrap {
    width: min(100%, 270px);
    min-width: 0;
  }
}

.notification-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff5a8d, #7c4dff);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(124, 77, 255, 0.22);
}

.notifications-gate {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: block;
  padding: 0;
  direction: rtl;
  pointer-events: none;
}

.notifications-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 21, 43, 0.10);
  backdrop-filter: blur(5px);
  cursor: pointer;
  pointer-events: auto;
}

.notifications-panel {
  position: fixed;
  top: 74px;
  right: 24px;
  width: min(392px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 94px));
  overflow-y: auto;
  border: 1px solid #eee8ff;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 78px rgba(109, 76, 255, 0.18);
  color: #111936;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 77, 255, 0.34) transparent;
  pointer-events: auto;
}

.notification-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid #f1ecff;
}

.notification-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-header-icon,
.notification-icon,
.notifications-empty span,
.notifications-loading span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #6d4cff;
  background: #f2ecff;
}

.notification-header-icon svg,
.notification-icon svg,
.notifications-empty svg,
.notifications-loading svg,
.notification-section-title svg,
.notifications-footer svg {
  stroke: currentColor;
  fill: none;
}

.notification-header-icon svg path,
.notification-icon svg path,
.notifications-empty svg path,
.notifications-loading svg path,
.notification-section-title svg path,
.notifications-footer svg path {
  stroke: currentColor;
  fill: none;
}

.notification-header-icon {
  width: 50px;
  height: 50px;
  border-radius: 17px;
}

.notification-header h2 {
  margin: 0;
  font-size: 1.36rem;
  font-weight: 900;
  letter-spacing: 0;
}

.notification-header p {
  margin: 4px 0 0;
  color: #7680a8;
  font-size: 0.86rem;
  font-weight: 800;
}

.notification-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #30375f;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.notification-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 18px;
}

.notification-tabs button {
  border: 1px solid #eee8ff;
  border-radius: 15px;
  padding: 11px 14px;
  background: #fff;
  color: #7b6fa3;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.notification-tabs button.active {
  border-color: #cdbdff;
  background: #f7f2ff;
  color: #6d4cff;
  box-shadow: 0 10px 26px rgba(109, 76, 255, 0.08);
}

.notification-tabs button.active::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: #6d4cff;
}

.notification-section {
  padding: 18px 20px;
  border-top: 1px solid #f4f0ff;
}

.notification-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.notification-section-title div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #111936;
}

.notification-section-title div > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: #f5f0ff;
  color: #6d4cff;
}

.notification-section-title button,
.notifications-footer button {
  border: 0;
  background: transparent;
  color: #6d4cff;
  font-weight: 900;
  cursor: pointer;
}

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

.notification-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid #eee8ff;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 44, 93, 0.04);
  cursor: pointer;
}

.notification-card.unread {
  border-color: #d8caff;
  background: linear-gradient(180deg, #fff, #fbf8ff);
}

.notification-card.is-hero {
  grid-template-columns: 54px 1fr;
  min-height: 110px;
  background:
    radial-gradient(circle at 14% 50%, rgba(124, 77, 255, 0.14), transparent 26%),
    linear-gradient(135deg, #fff, #fbf8ff);
}

.notification-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
}

.notification-card.is-hero .notification-icon {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  box-shadow: inset 0 0 0 1px rgba(124, 77, 255, 0.08);
}

.notification-card-body {
  min-width: 0;
}

.notification-badge-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f2ecff;
  color: #6d4cff;
  font-size: 0.72rem;
  font-weight: 900;
}

.notification-card h4 {
  margin: 7px 0 3px;
  color: #111936;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
}

.notification-card.is-hero h4 {
  font-size: 1.02rem;
}

.notification-card p {
  margin: 0;
  color: #7680a8;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.55;
}

.notification-card small {
  display: inline-flex;
  margin-top: 7px;
  color: #7d86ad;
  font-size: 0.76rem;
  font-weight: 800;
}

.notifications-loading,
.notifications-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 156px;
  padding: 24px;
  text-align: center;
}

.notifications-loading span,
.notifications-empty span {
  width: 52px;
  height: 52px;
  border-radius: 17px;
}

.notifications-empty strong,
.notifications-loading strong {
  color: #111936;
  font-size: 1.05rem;
  font-weight: 900;
}

.notifications-empty p {
  margin: 0;
  max-width: 310px;
  color: #7d86ad;
  font-weight: 700;
  line-height: 1.7;
}

.notifications-empty.is-error span {
  color: #ef476f;
  background: #fff0f4;
}

.notifications-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 20px 20px;
  border-top: 1px solid #f4f0ff;
}

.notifications-footer button:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6a7096;
}

.notifications-footer svg,
.notification-header svg,
.notification-section-title svg,
.notification-card svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 760px) {
  .notifications-gate {
    padding: 0;
    display: block;
  }

  .notifications-panel {
    width: 100%;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    border: 0;
  }

  .notification-header,
  .notification-tabs,
  .notification-section,
  .notifications-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .notification-card {
    grid-template-columns: 48px 1fr;
  }

  .notification-card.is-hero .notification-icon {
    width: 60px;
    height: 60px;
  }
}

.notifications-gate.is-compact {
  display: block;
  pointer-events: none;
}

.notifications-gate.is-compact .notifications-backdrop {
  background: transparent;
  backdrop-filter: none;
  pointer-events: auto;
}

.notifications-panel.is-compact {
  top: 66px;
  right: 18px;
  width: min(280px, calc(100vw - 24px));
  max-height: min(528px, calc(100vh - 78px));
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid #eee8ff;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 18px 48px rgba(31, 44, 93, 0.12);
}

.notifications-gate.is-open .notifications-panel:not(.is-compact) {
  top: 66px;
  right: 18px;
  width: min(280px, calc(100vw - 24px));
  max-height: min(528px, calc(100vh - 78px));
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(31, 44, 93, 0.12);
}

.notifications-gate.is-open .notifications-panel:not(.is-compact) .notification-header,
.notifications-gate.is-open .notifications-panel:not(.is-compact) .notification-tabs,
.notifications-gate.is-open .notifications-panel:not(.is-compact) .notification-section-title,
.notifications-gate.is-open .notifications-panel:not(.is-compact) .notification-badge-label,
.notifications-gate.is-open .notifications-panel:not(.is-compact) .notification-card p,
.notifications-gate.is-open .notifications-panel:not(.is-compact) .notification-card small {
  display: none;
}

.notifications-gate.is-open .notifications-panel:not(.is-compact) .notification-section {
  padding: 7px 10px;
  border-top: 0;
}

.notifications-gate.is-open .notifications-panel:not(.is-compact) .notification-section-list {
  gap: 7px;
}

.notifications-gate.is-open .notifications-panel:not(.is-compact) .notification-card {
  grid-template-columns: 42px 1fr;
  min-height: 62px;
  padding: 8px 9px;
  border-radius: 12px;
  box-shadow: 0 9px 24px rgba(31, 44, 93, 0.035);
}

.notifications-gate.is-open .notifications-panel:not(.is-compact) .notification-card.is-hero {
  min-height: 62px;
  background: #fff;
}

.notifications-gate.is-open .notifications-panel:not(.is-compact) .notification-icon,
.notifications-gate.is-open .notifications-panel:not(.is-compact) .notification-card.is-hero .notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.notifications-gate.is-open .notifications-panel:not(.is-compact) .notification-card h4 {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.notifications-gate.is-open .notifications-panel:not(.is-compact) .notifications-footer {
  justify-content: center;
  padding: 10px 12px 12px;
}

.notification-mini-header {
  direction: ltr;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 11px 8px;
  border-bottom: 1px solid #f2efff;
}

.notification-mini-header > * {
  direction: rtl;
}

.notification-mini-header strong {
  color: #111936;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.notification-mini-link,
.notification-mini-settings {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.notification-mini-link {
  justify-self: start;
  color: #6d4cff;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.notification-mini-settings {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: #7280a8;
}

.notification-mini-settings svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}

.notification-mini-list {
  display: grid;
  gap: 7px;
  padding: 9px 10px 10px;
}

.notification-card.is-dropdown {
  direction: ltr;
  display: grid;
  grid-template-columns: 8px 42px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 62px;
  padding: 8px 9px;
  border-radius: 12px;
  border-color: #eee8ff;
  box-shadow: 0 9px 24px rgba(31, 44, 93, 0.035);
}

.notification-card.is-dropdown.unread {
  border-color: #e5ddff;
  background: #fff;
}

.notification-card.is-dropdown .notification-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #6d4cff;
}

.notification-card.is-dropdown:not(.unread) .notification-unread-dot {
  opacity: 0;
}

.notification-card.is-dropdown .notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #f2ecff;
}

.notification-card.is-dropdown .notification-icon svg {
  width: 18px;
  height: 18px;
}

.notification-card.is-dropdown .notification-card-body {
  direction: rtl;
  text-align: right;
}

.notification-card.is-dropdown h4 {
  margin: 0 0 3px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #111936;
}

.notification-card.is-dropdown p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #7680a8;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1.45;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.notification-card.is-dropdown small {
  margin-top: 3px;
  color: #95a0be;
  font-size: 0.62rem;
  font-weight: 800;
}

.notifications-panel.is-compact .notifications-loading,
.notifications-panel.is-compact .notifications-empty {
  min-height: 190px;
  padding: 26px 18px;
}

.notifications-panel.is-compact .notifications-empty strong,
.notifications-panel.is-compact .notifications-loading strong {
  font-size: 0.86rem;
}

.notifications-panel.is-compact .notifications-empty p {
  max-width: 210px;
  font-size: 0.72rem;
}

.notifications-panel.is-compact .notifications-footer {
  justify-content: center;
  padding: 10px 12px 12px;
  border-top: 1px solid #f2efff;
}

.notifications-panel.is-compact .notifications-footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 30px;
  color: #6d4cff;
  font-size: 0.72rem;
  font-weight: 900;
}

.notifications-panel.is-compact .notifications-footer svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 760px) {
  .notifications-panel.is-compact {
    top: 62px;
    right: 12px;
    width: min(280px, calc(100vw - 24px));
    height: auto;
    max-height: min(528px, calc(100vh - 74px));
    border: 1px solid #eee8ff;
    border-radius: 16px;
  }
}

/* Tools pages use the same top actions as the chat home: XP, bell, theme, avatar on the visual right. */
.guest-shell.is-tools-workspace .tools-main-topbar {
  direction: ltr;
  justify-content: flex-end;
}

.guest-shell.is-tools-workspace .tools-main-topbar.is-tools-index {
  direction: ltr;
  justify-content: space-between;
}

.guest-shell.is-tools-workspace .tools-main-topbar .home-top-actions {
  direction: ltr !important;
  flex-direction: row;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 0;
}

.guest-shell.is-tools-workspace .tools-main-topbar .home-top-actions .ghost-balance span:not(.balance-caret) {
  direction: rtl;
  unicode-bidi: plaintext;
}

.guest-shell.is-tools-workspace .tools-main-topbar .tools-back-chat {
  margin-right: auto;
  margin-left: 0;
}

.guest-shell.is-tools-workspace .tool-detail-main-shell {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.guest-shell.is-tools-workspace .tool-detail-main-shell > section,
.guest-shell.is-tools-workspace .tool-detail-main-shell > .guest-main {
  width: 100%;
}

.guest-shell.is-tools-workspace .tool-detail-chrome {
  width: min(1280px, calc(100% - 200px));
  margin: 18px auto 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  direction: ltr;
}

.guest-shell.is-tools-workspace .tool-page-top-actions {
  width: auto;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  direction: ltr !important;
}

.guest-shell.is-tools-workspace .tool-page-top-actions .balance-menu-wrap {
  order: 0;
}

.guest-shell.is-tools-workspace .tool-page-top-actions .ghost-balance {
  min-width: 230px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 15px;
  border-color: rgba(111, 76, 255, 0.12);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  box-shadow: 0 14px 32px rgba(111, 76, 255, 0.08);
}

.guest-shell.is-tools-workspace .tool-page-top-actions .ghost-balance span:not(.balance-caret) {
  direction: rtl;
  unicode-bidi: plaintext;
}

.guest-shell.is-tools-workspace .tool-page-top-actions .circle-control,
.guest-shell.is-tools-workspace .tool-page-top-actions .home-avatar-button {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(111, 76, 255, 0.1);
  box-shadow: 0 14px 30px rgba(34, 23, 84, 0.06);
}

.guest-shell.is-tools-workspace .tool-detail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6d4aff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0;
  cursor: pointer;
}

.guest-shell.is-tools-workspace .tool-detail-back:hover {
  color: #5133ff;
}

.guest-shell.is-tools-workspace .tool-detail-back span[aria-hidden="true"] {
  direction: ltr;
  font-size: 1.05rem;
  transform: translateY(-1px);
}

.guest-shell.is-tools-workspace .tool-detail-main-shell .png-pdf-back,
.guest-shell.is-tools-workspace .tool-detail-main-shell .image-enhancer-back,
.guest-shell.is-tools-workspace .tool-detail-main-shell .image-clarifier-back,
.guest-shell.is-tools-workspace .tool-detail-main-shell .remove-watermark-back {
  display: none !important;
}

@media (max-width: 760px) {
  .guest-shell.is-tools-workspace .tool-detail-chrome {
    width: min(100%, calc(100% - 28px));
    margin-top: 18px;
    align-items: stretch;
  }

  .guest-shell.is-tools-workspace .tool-page-top-actions {
    justify-content: flex-end;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .guest-shell.is-tools-workspace .tool-page-top-actions .ghost-balance {
    min-height: 50px;
    padding: 0 14px;
    white-space: nowrap;
  }

  .guest-shell.is-tools-workspace .tool-page-top-actions .circle-control,
  .guest-shell.is-tools-workspace .tool-page-top-actions .home-avatar-button {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 15px;
  }

  .guest-shell.is-tools-workspace .tool-detail-back {
    align-self: flex-end;
  }
}

@media (max-width: 760px) {
  .guest-shell.is-tools-workspace.is-subscriber-tools {
    width: 100%;
    min-height: 100vh;
    display: block;
    padding: 0;
  }

  .guest-shell.is-tools-workspace.is-subscriber-tools .guest-sidebar,
  .guest-shell.is-tools-workspace.is-subscriber-tools .guest-sidepanel {
    display: none;
  }

  .guest-shell.is-tools-workspace.is-subscriber-tools .free-tools-main,
  .guest-shell.is-tools-workspace.is-subscriber-tools .image-enhancer-main,
  .guest-shell.is-tools-workspace.is-subscriber-tools .image-clarifier-main,
  .guest-shell.is-tools-workspace.is-subscriber-tools .png-pdf-main,
  .guest-shell.is-tools-workspace.is-subscriber-tools .pdf-png-main,
  .guest-shell.is-tools-workspace.is-subscriber-tools .pdf-unlock-main,
  .guest-shell.is-tools-workspace.is-subscriber-tools .image-converter-main,
  .guest-shell.is-tools-workspace.is-subscriber-tools .image-compressor-main,
  .guest-shell.is-tools-workspace.is-subscriber-tools .image-rotator-main,
  .guest-shell.is-tools-workspace.is-subscriber-tools .image-ocr-main,
  .guest-shell.is-tools-workspace.is-subscriber-tools .image-cropper-main,
  .guest-shell.is-tools-workspace.is-subscriber-tools .file-merger-main,
  .guest-shell.is-tools-workspace.is-subscriber-tools .remove-watermark-main {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    padding: 20px 14px 28px;
  }
}

.tool-suggestion-gate {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  direction: rtl;
}

.tool-suggestion-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 22, 45, 0.22);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.tool-suggestion-card {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: min(88vh, 860px);
  overflow: auto;
  border: 1px solid #eee8ff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 10%, rgba(126, 87, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff, #fbf9ff);
  box-shadow: 0 28px 90px rgba(83, 55, 170, 0.22);
  padding: 28px;
}

.tool-suggestion-close {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid #eee8ff;
  border-radius: 14px;
  background: #fff;
  color: #111936;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
}

.tool-suggestion-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-left: 56px;
}

.tool-suggestion-mark {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #6d4cff;
  background: #f2ecff;
  box-shadow: inset 0 0 0 1px #e7ddff;
}

.tool-suggestion-mark svg {
  width: 28px;
  height: 28px;
}

.tool-suggestion-head h2 {
  margin: 0;
  color: #111936;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.1;
  font-weight: 950;
}

.tool-suggestion-head p,
.tool-suggestion-reward,
.tool-suggestion-form label span,
.tool-suggestion-upload small {
  color: #8b94b0;
  font-weight: 800;
}

.tool-suggestion-head p {
  margin: 8px 0 0;
  max-width: 560px;
  line-height: 1.7;
}

.tool-suggestion-reward {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed #cdbdff;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7f2ff, #ffffff);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.tool-suggestion-reward span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #6d4cff;
  background: #fff;
}

.tool-suggestion-form {
  display: grid;
  gap: 14px;
}

.tool-suggestion-grid,
.tool-suggestion-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tool-suggestion-form label {
  display: grid;
  gap: 8px;
}

.tool-suggestion-field {
  width: 100%;
  border: 1px solid #eee8ff;
  border-radius: 16px;
  background: #fff;
  color: #111936;
  padding: 13px 14px;
  font: inherit;
  font-weight: 800;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-suggestion-field:focus {
  border-color: #a58bff;
  box-shadow: 0 0 0 4px rgba(109, 76, 255, 0.1);
}

textarea.tool-suggestion-field {
  min-height: 96px;
  resize: vertical;
  line-height: 1.7;
}

.tool-suggestion-importance,
.tool-suggestion-upload {
  border: 1px solid #eee8ff;
  border-radius: 20px;
  background: #fff;
  padding: 14px;
}

.tool-suggestion-importance {
  display: grid;
  gap: 12px;
}

.tool-suggestion-importance > div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.tool-suggestion-importance button {
  border: 1px solid #eee8ff;
  border-radius: 12px;
  background: #fbf9ff;
  color: #6f7694;
  min-height: 38px;
  font-weight: 950;
  cursor: pointer;
}

.tool-suggestion-importance button.is-active {
  background: linear-gradient(135deg, #7c4dff, #5b32f6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(109, 76, 255, 0.25);
}

.tool-suggestion-upload {
  cursor: pointer;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
}

.tool-suggestion-upload span {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #6d4cff;
  background: #f2ecff;
}

.tool-suggestion-upload b {
  color: #111936;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-suggestion-alert {
  margin: 0;
  border-radius: 16px;
  padding: 13px 16px;
  font-weight: 900;
  line-height: 1.6;
}

.tool-suggestion-alert.is-error {
  background: #fff1f3;
  color: #d9365f;
  border: 1px solid #ffd3dd;
}

.tool-suggestion-alert.is-created,
.tool-suggestion-alert.is-matched {
  background: #effaf5;
  color: #0f9c6b;
  border: 1px solid #c9f3df;
}

.tool-suggestion-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  padding-top: 4px;
}

.tool-suggestion-primary,
.tool-suggestion-secondary {
  border-radius: 16px;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 950;
  cursor: pointer;
}

.tool-suggestion-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #7c4dff, #5b32f6);
  box-shadow: 0 16px 32px rgba(109, 76, 255, 0.24);
}

.tool-suggestion-primary:disabled {
  cursor: wait;
  opacity: 0.72;
}

.tool-suggestion-secondary {
  border: 1px solid #eee8ff;
  color: #6f7694;
  background: #fff;
}

@media (max-width: 760px) {
  .tool-suggestion-gate {
    padding: 0;
    align-items: end;
  }

  .tool-suggestion-card {
    width: 100%;
    max-height: 94vh;
    border-radius: 24px 24px 0 0;
    padding: 22px 16px;
  }

  .tool-suggestion-grid,
  .tool-suggestion-bottom-row {
    grid-template-columns: 1fr;
  }

  .tool-suggestion-head {
    padding-left: 48px;
  }
}

.tool-suggestion-main {
  width: 100%;
}

.tool-suggestion-page {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 22px 20px 34px;
  display: grid;
  gap: 18px;
  direction: rtl;
}

.tool-suggestion-topbar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  direction: ltr;
}

.tool-suggestion-return {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #ece4ff;
  background: linear-gradient(180deg, #ffffff, #fbf8ff);
  color: #1d2146;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(109, 76, 255, 0.07);
  cursor: pointer;
}

.tool-suggestion-return span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f2ecff;
  color: #6d4cff;
  font-size: 1rem;
  line-height: 1;
}

.tool-suggestion-breadcrumb {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8b94b0;
  font-size: 0.95rem;
  font-weight: 800;
}

.tool-suggestion-breadcrumb b {
  color: #1d2146;
  font-weight: 950;
}

.tool-suggestion-hero {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  padding: 8px 0 2px;
}

.tool-suggestion-hero-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-suggestion-hero-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #6d4cff;
  background: #f2ecff;
  box-shadow: inset 0 0 0 1px #e8ddff;
}

.tool-suggestion-hero-mark svg {
  width: 22px;
  height: 22px;
}

.tool-suggestion-hero h1 {
  margin: 0;
  color: #1d2146;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.1;
  font-weight: 950;
}

.tool-suggestion-hero p {
  margin: 0;
  color: #7f88a6;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 800;
}

.tool-suggestion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  grid-template-areas: "form side";
  gap: 18px;
  align-items: start;
  direction: ltr;
}

.tool-suggestion-form-card {
  grid-area: form;
  direction: rtl;
  border: 1px solid #ece4ff;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #fbf8ff);
  box-shadow: 0 16px 40px rgba(109, 76, 255, 0.08);
  padding: 26px;
  display: grid;
  gap: 18px;
}

.tool-suggestion-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tool-suggestion-card-head h2 {
  margin: 0;
  color: #1d2146;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 950;
}

.tool-suggestion-card-head > span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #f2ecff;
  color: #6d4cff;
  box-shadow: inset 0 0 0 1px #e8ddff;
}

.tool-suggestion-card-head > span svg {
  width: 22px;
  height: 22px;
}

.tool-suggestion-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.tool-suggestion-form-card label {
  display: grid;
  gap: 10px;
}

.tool-suggestion-form-card label > span {
  color: #7e88a6;
  font-weight: 900;
  font-size: 1rem;
}

.tool-suggestion-form-card label > small {
  color: #9aa1bb;
  font-weight: 800;
  line-height: 1.6;
  margin-top: -4px;
}

.tool-suggestion-wide-field {
  position: relative;
  padding-bottom: 24px;
}

.tool-suggestion-counter {
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: #8b94b0;
  font-size: 0.9rem;
  font-weight: 900;
}

.tool-suggestion-field {
  width: 100%;
  border: 1px solid #ece4ff;
  border-radius: 18px;
  background: #fff;
  color: #1d2146;
  padding: 16px 18px;
  font: inherit;
  font-weight: 800;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tool-suggestion-field:focus {
  border-color: #8d6bff;
  box-shadow: 0 0 0 4px rgba(109, 76, 255, 0.12);
}

.tool-suggestion-wide-field textarea.tool-suggestion-field {
  min-height: 128px;
  resize: vertical;
  line-height: 1.8;
}

.tool-suggestion-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.tool-suggestion-importance,
.tool-suggestion-upload {
  border: 1px solid #ece4ff;
  border-radius: 24px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(109, 76, 255, 0.06);
}

.tool-suggestion-importance {
  display: grid;
  gap: 10px;
}

.tool-suggestion-importance > span {
  color: #1d2146;
  font-weight: 950;
  font-size: 1.05rem;
}

.tool-suggestion-importance > small {
  color: #9aa1bb;
  font-weight: 800;
}

.tool-suggestion-importance > div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.tool-suggestion-importance button {
  border: 1px solid #ece4ff;
  border-radius: 16px;
  background: #fbf8ff;
  color: #6f7694;
  min-height: 48px;
  font-weight: 950;
  cursor: pointer;
}

.tool-suggestion-importance button.is-active {
  background: linear-gradient(135deg, #7c4dff, #5b32f6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(109, 76, 255, 0.22);
}

.tool-suggestion-upload {
  cursor: pointer;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 14px;
}

.tool-suggestion-upload span {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #6d4cff;
  background: #f2ecff;
  box-shadow: inset 0 0 0 1px #e8ddff;
}

.tool-suggestion-upload span svg {
  width: 24px;
  height: 24px;
}

.tool-suggestion-upload b {
  display: block;
  color: #1d2146;
  font-weight: 950;
  margin-bottom: 6px;
}

.tool-suggestion-upload small {
  display: block;
  color: #8b94b0;
  font-weight: 800;
  line-height: 1.7;
}

.tool-suggestion-alert {
  margin: 0;
  border-radius: 18px;
  padding: 15px 18px;
  font-weight: 900;
  line-height: 1.6;
}

.tool-suggestion-alert.is-error {
  background: #fff1f3;
  color: #d9365f;
  border: 1px solid #ffd3dd;
}

.tool-suggestion-alert.is-created,
.tool-suggestion-alert.is-matched {
  background: #effaf5;
  color: #0f9c6b;
  border: 1px solid #c9f3df;
}

.tool-suggestion-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 6px;
}

.tool-suggestion-primary,
.tool-suggestion-secondary {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  font-weight: 950;
  cursor: pointer;
}

.tool-suggestion-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #7c4dff, #5b32f6);
  box-shadow: 0 16px 32px rgba(109, 76, 255, 0.24);
}

.tool-suggestion-primary svg {
  width: 18px;
  height: 18px;
}

.tool-suggestion-primary:disabled {
  cursor: wait;
  opacity: 0.72;
}

.tool-suggestion-secondary {
  border: 1px solid #ece4ff;
  background: #fff;
  color: #6f7694;
}

.tool-suggestion-info-panel {
  grid-area: side;
  direction: rtl;
  display: grid;
  gap: 16px;
}

.tool-suggestion-side-card {
  border: 1px solid #ece4ff;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #fbf8ff);
  box-shadow: 0 16px 40px rgba(109, 76, 255, 0.08);
  padding: 22px;
}

.tool-suggestion-how {
  display: grid;
  gap: 18px;
}

.tool-suggestion-how > header,
.tool-suggestion-stats > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-suggestion-how h2,
.tool-suggestion-stats h3,
.tool-suggestion-reward-card h3 {
  margin: 0;
  color: #1d2146;
  font-weight: 950;
  font-size: 1.28rem;
}

.tool-suggestion-side-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #6d4cff;
  background: #f2ecff;
  box-shadow: inset 0 0 0 1px #e8ddff;
}

.tool-suggestion-side-icon svg {
  width: 20px;
  height: 20px;
}

.tool-suggestion-how > header p {
  margin: 8px 0 0;
  color: #8b94b0;
  font-weight: 800;
  line-height: 1.7;
}

.tool-suggestion-steps {
  display: grid;
  gap: 16px;
}

.tool-suggestion-steps article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.tool-suggestion-steps article > span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #6d4cff;
  background: #f2ecff;
  box-shadow: inset 0 0 0 1px #e8ddff;
}

.tool-suggestion-steps article > span svg {
  width: 20px;
  height: 20px;
}

.tool-suggestion-steps article b {
  display: block;
  color: #1d2146;
  font-weight: 950;
  margin-bottom: 6px;
}

.tool-suggestion-steps article small {
  color: #8b94b0;
  font-weight: 800;
  line-height: 1.7;
}

.tool-suggestion-stats {
  display: grid;
  gap: 16px;
}

.tool-suggestion-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tool-suggestion-stats-grid > div {
  border: 1px solid #ece4ff;
  border-radius: 18px;
  background: #fff;
  padding: 16px 14px;
  text-align: center;
}

.tool-suggestion-stats-grid strong {
  display: block;
  color: #6d4cff;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 950;
  margin-bottom: 8px;
}

.tool-suggestion-stats-grid small {
  color: #8b94b0;
  font-weight: 800;
  line-height: 1.6;
}

.tool-suggestion-reward-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
  border-color: #f2dfb8;
  background: linear-gradient(180deg, #fffaf0, #fffdf8);
}

.tool-suggestion-reward-card > span {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #d48a00;
  background: #fff6df;
  box-shadow: inset 0 0 0 1px #f2d79d;
}

.tool-suggestion-reward-card > span svg {
  width: 26px;
  height: 26px;
}

.tool-suggestion-reward-card p {
  margin: 8px 0 0;
  color: #b87b07;
  font-weight: 800;
  line-height: 1.8;
}

.tool-suggestion-footnote {
  border: 1px solid #ece4ff;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fbf8ff);
  box-shadow: 0 12px 30px rgba(109, 76, 255, 0.06);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  color: #7f88a6;
  font-weight: 900;
  line-height: 1.8;
}

.tool-suggestion-footnote span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #6d4cff;
  background: #f2ecff;
  box-shadow: inset 0 0 0 1px #e8ddff;
  flex: 0 0 auto;
}

.tool-suggestion-footnote span svg {
  width: 18px;
  height: 18px;
}

.tool-suggestion-footnote p {
  margin: 0;
}

@media (max-width: 1180px) {
  .tool-suggestion-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "side"
      "form";
  }
}

@media (max-width: 760px) {
  .tool-suggestion-page {
    padding: 14px 14px 28px;
  }

  .tool-suggestion-topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: stretch;
  }

  .tool-suggestion-breadcrumb {
    justify-self: start;
    flex-wrap: wrap;
  }

  .tool-suggestion-hero {
    justify-items: start;
    text-align: right;
    padding: 0 2px;
  }

  .tool-suggestion-form-card,
  .tool-suggestion-side-card {
    padding: 18px;
    border-radius: 24px;
  }

  .tool-suggestion-grid,
  .tool-suggestion-bottom-row,
  .tool-suggestion-stats-grid {
    grid-template-columns: 1fr;
  }

  .tool-suggestion-actions {
    flex-direction: column-reverse;
  }

  .tool-suggestion-primary,
  .tool-suggestion-secondary {
    width: 100%;
    justify-content: center;
  }

  .tool-suggestion-footnote {
    padding: 16px;
    justify-content: flex-start;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .guest-shell.is-home-workspace {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .guest-shell.is-home-workspace .guest-sidebar {
    width: 88px;
    min-width: 88px;
    max-width: 88px;
    padding: 14px 10px;
  }

  .guest-shell.is-home-workspace .guest-main {
    padding: 20px 18px;
    grid-template-rows: 52px auto auto minmax(220px, 1fr) 150px 30px;
  }

  .guest-shell.is-home-workspace .guest-sidepanel {
    display: none;
  }

  .guest-shell.is-home-workspace .guest-brand {
    justify-content: center;
  }

  .guest-shell.is-home-workspace .guest-brand img,
  .guest-shell.is-home-workspace .guest-brand .guest-brand-symbol,
  .guest-shell.is-home-workspace .guest-brand .guest-brand-mark {
    width: 44px;
    height: 44px;
  }

  .guest-shell.is-home-workspace .guest-new-chat {
    min-height: 46px;
    justify-content: center;
    padding: 0;
  }

  .guest-shell.is-home-workspace .guest-new-chat span,
  .guest-shell.is-home-workspace .guest-search-box input,
  .guest-shell.is-home-workspace .guest-history-copy,
  .guest-shell.is-home-workspace .guest-history-group h3,
  .guest-shell.is-home-workspace .guest-upgrade-card div,
  .guest-shell.is-home-workspace .guest-user-copy,
  .guest-shell.is-home-workspace .guest-user-head,
  .guest-shell.is-home-workspace .guest-user-lines,
  .guest-shell.is-home-workspace .guest-user-action,
  .guest-shell.is-home-workspace .guest-history-badge {
    display: none;
  }

  .guest-shell.is-home-workspace .guest-search-box,
  .guest-shell.is-home-workspace .guest-history-item,
  .guest-shell.is-home-workspace .guest-upgrade-card,
  .guest-shell.is-home-workspace .guest-user-card {
    min-height: 46px;
    padding: 0;
    display: grid;
    place-items: center;
  }

  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-shell.is-home-workspace .home-main-topbar .ai-switcher {
    width: min(200px, 100%);
  }
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .guest-shell.is-home-workspace {
    width: 100%;
    padding: 0;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .guest-shell.is-home-workspace .guest-sidebar,
  .guest-shell.is-home-workspace .guest-main,
  .guest-shell.is-home-workspace .guest-sidepanel {
    padding-block: 16px;
    border-radius: 0;
  }

  .guest-shell.is-home-workspace .guest-sidebar {
    display: none;
  }

  .guest-shell.is-home-workspace .guest-brand {
    justify-content: center;
  }

  .guest-shell.is-home-workspace .guest-brand img,
  .guest-shell.is-home-workspace .guest-brand .guest-brand-symbol,
  .guest-shell.is-home-workspace .guest-brand .guest-brand-mark {
    width: 42px;
    height: 42px;
  }

  .guest-shell.is-home-workspace .guest-new-chat {
    min-height: 44px;
    justify-content: center;
    padding: 0;
  }

  .guest-shell.is-home-workspace .guest-new-chat span,
  .guest-shell.is-home-workspace .guest-search-box input,
  .guest-shell.is-home-workspace .guest-history-copy,
  .guest-shell.is-home-workspace .guest-history-group h3,
  .guest-shell.is-home-workspace .guest-upgrade-card div,
  .guest-shell.is-home-workspace .guest-user-copy,
  .guest-shell.is-home-workspace .guest-user-head,
  .guest-shell.is-home-workspace .guest-user-lines,
  .guest-shell.is-home-workspace .guest-user-action,
  .guest-shell.is-home-workspace .guest-history-badge {
    display: none;
  }

  .guest-shell.is-home-workspace .guest-search-box,
  .guest-shell.is-home-workspace .guest-history-item,
  .guest-shell.is-home-workspace .guest-upgrade-card,
  .guest-shell.is-home-workspace .guest-user-card {
    min-height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
  }

  .guest-shell.is-home-workspace .guest-main {
    padding: 14px 12px;
    grid-template-rows: 46px auto auto auto 142px 28px;
    min-width: 0;
    width: 100%;
  }

  .guest-shell.is-home-workspace .guest-sidepanel {
    display: none;
  }

  .guest-shell.is-home-workspace .guest-main-topbar,
  .guest-shell.is-home-workspace .guest-conversation-head,
  .guest-shell.is-home-workspace .guest-sidepanel-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    grid-template-columns: 1fr;
  }

  .guest-shell.is-home-workspace .guest-hero-copy h1 {
    font-size: 28px;
    text-align: center;
  }

  .guest-shell.is-home-workspace .guest-hero-copy p {
    font-size: 16px;
    line-height: 1.75;
    text-align: center;
  }

  .guest-shell.is-home-workspace .home-main-topbar .ai-switcher {
    width: 100%;
    min-height: 44px;
    font-size: 0.72rem;
    padding: 0 10px;
  }

  .guest-shell.is-home-workspace .home-quick-grid .guest-quick-card,
  .guest-shell.is-home-workspace .guest-quick-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .guest-shell.is-home-workspace .guest-quick-icon {
    width: 40px;
    height: 40px;
  }

  .guest-shell.is-home-workspace .guest-conversation-card,
  .guest-shell.is-home-workspace .home-compose {
    width: 100%;
    max-width: 100%;
  }

  .guest-shell.is-home-workspace .guest-compose,
  .guest-shell.is-home-workspace .home-compose {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .guest-shell.is-home-workspace .compose-attach,
  .guest-shell.is-home-workspace .compose-send {
    width: 42px;
    height: 42px;
  }

  .guest-shell.is-home-workspace .compose-input {
    min-height: 46px;
  }
}

@media (max-width: 768px) {
  .guest-shell.is-home-workspace {
    grid-template-columns: 1fr !important;
  }

  .guest-shell.is-home-workspace .guest-sidebar {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .guest-shell.is-home-workspace .guest-sidepanel {
    display: none !important;
  }

  .guest-shell.is-home-workspace .guest-main {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .guest-shell.is-home-workspace .guest-main-topbar,
  .guest-shell.is-home-workspace .guest-conversation-head {
    width: 100% !important;
  }

  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    grid-template-columns: 1fr !important;
  }
}

.home-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(109, 76, 255, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(109, 76, 255, 0.12);
  color: var(--brand-strong);
  padding: 0;
  cursor: pointer;
}

.home-sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 1024px) {
  .home-sidebar-toggle {
    display: inline-flex;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 170;
  }

  .guest-shell.is-home-workspace {
    width: 100%;
    grid-template-columns: 1fr !important;
    overflow: hidden;
  }

  .guest-shell.is-home-workspace .guest-sidebar {
    display: grid !important;
    position: fixed !important;
    top: 12px !important;
    left: 12px !important;
    width: min(320px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    height: calc(100dvh - 24px) !important;
    z-index: 160 !important;
    transform: translateX(-110%);
    transition: transform 220ms ease, opacity 220ms ease;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    overflow: auto;
    border-radius: 28px !important;
    padding: 16px !important;
  }

  .guest-shell.is-home-workspace:not(.is-mobile-sidebar-open) .guest-sidebar,
  .guest-shell.is-home-workspace.is-sidebar-collapsed .guest-sidebar {
    transform: translateX(-110%) !important;
  }

  .guest-shell.is-home-workspace:not(.is-mobile-sidebar-open)::after {
    content: none !important;
    display: none !important;
  }

  .guest-shell.is-home-workspace .guest-main {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .guest-shell.is-home-workspace .guest-sidepanel {
    display: none !important;
  }

  .guest-shell.is-home-workspace .guest-main-topbar,
  .guest-shell.is-home-workspace .guest-conversation-head,
  .guest-shell.is-home-workspace .guest-sidepanel-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    grid-template-columns: 1fr !important;
  }

  .guest-shell.is-home-workspace .guest-main-topbar .ai-switcher {
    width: 100%;
    min-height: 44px;
    font-size: 0.72rem;
    padding: 0 10px;
  }

  .guest-shell.is-home-workspace .guest-hero-copy h1 {
    font-size: 28px;
    text-align: center;
  }

  .guest-shell.is-home-workspace .guest-hero-copy p {
    font-size: 16px;
    line-height: 1.75;
    text-align: center;
  }
}

/* Mobile/tablet home shell: top bar like the reference and sidebar as an on-demand drawer. */
.home-mobile-logo {
  display: none;
}

@media (max-width: 1024px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .guest-shell.is-home-workspace {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .guest-shell.is-home-workspace .guest-main {
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding-inline: clamp(14px, 3vw, 28px) !important;
  }

  .guest-shell.is-home-workspace .home-main-topbar {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 44px 44px 44px;
    align-items: center;
    gap: 10px;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 58px;
    padding: 10px 0 12px !important;
    direction: ltr;
  }

  .guest-shell.is-home-workspace .home-main-topbar .model-switcher-wrap {
    display: none !important;
  }

  .guest-shell.is-home-workspace .home-top-actions {
    display: contents !important;
  }

  .guest-shell.is-home-workspace .home-top-actions .balance-menu-wrap {
    display: none !important;
  }

  .home-sidebar-toggle {
    display: inline-flex !important;
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    justify-self: start;
    order: 1;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    box-shadow: none;
    background: #fff;
  }

  .home-mobile-logo {
    display: grid;
    place-items: center;
    justify-self: center;
    order: 2;
    width: 48px;
    height: 48px;
    color: var(--brand-strong);
  }

  .home-mobile-logo svg,
  .home-mobile-logo img {
    width: 42px;
    height: 42px;
    display: block;
  }

  .guest-shell.is-home-workspace .home-top-actions .circle-control,
  .guest-shell.is-home-workspace .home-avatar-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    justify-self: end;
  }

  .guest-shell.is-home-workspace .home-top-actions [data-open-notifications] {
    order: 3;
  }

  .guest-shell.is-home-workspace .home-top-actions [data-theme-toggle] {
    order: 4;
  }

  .guest-shell.is-home-workspace .home-top-actions .home-avatar-button {
    order: 5;
  }

  .guest-shell.is-home-workspace .guest-sidebar {
    display: grid !important;
    position: fixed !important;
    top: 12px !important;
    left: 12px !important;
    width: min(320px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    height: calc(100dvh - 24px) !important;
    z-index: 160 !important;
    transform: translateX(-112%) !important;
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    overflow: auto !important;
    border-radius: 28px !important;
    padding: 16px !important;
  }

  .guest-shell.is-home-workspace.is-mobile-sidebar-open .guest-sidebar {
    transform: translateX(0) !important;
    opacity: 1;
    pointer-events: auto;
  }

  .guest-shell.is-home-workspace:not(.is-mobile-sidebar-open) .guest-sidebar {
    transform: translateX(-112%) !important;
    opacity: 0;
    pointer-events: none;
  }

  .guest-shell.is-home-workspace::after {
    content: none !important;
    display: none !important;
  }

  .guest-shell.is-home-workspace.is-mobile-sidebar-open::after {
    content: "" !important;
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(4px);
    z-index: 150;
  }

  .guest-shell.is-home-workspace .guest-sidepanel {
    display: none !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel {
    padding-top: clamp(14px, 3vw, 28px);
  }

  .guest-shell.is-home-workspace .guest-hero-copy h1,
  .guest-shell.is-home-workspace .home-hero-panel h1 {
    font-size: clamp(30px, 5.4vw, 40px) !important;
    line-height: 1.15;
    text-align: center;
  }

  .guest-shell.is-home-workspace .guest-hero-copy p,
  .guest-shell.is-home-workspace .home-hero-panel p {
    font-size: clamp(14px, 2.2vw, 17px) !important;
    text-align: center;
  }
}

@media (min-width: 541px) and (max-width: 1024px) {
  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
  }
}

@media (max-width: 540px) {
  .guest-shell.is-home-workspace .home-main-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 40px 40px 40px;
    gap: 7px;
  }

  .home-sidebar-toggle,
  .guest-shell.is-home-workspace .home-top-actions .circle-control,
  .guest-shell.is-home-workspace .home-avatar-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 13px !important;
  }

  .home-mobile-logo {
    width: 44px;
    height: 44px;
  }

  .home-mobile-logo svg,
  .home-mobile-logo img {
    width: 38px;
    height: 38px;
  }

  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .guest-shell.is-home-workspace .guest-main {
    padding-inline: 12px !important;
  }
}

/* Final mobile lock: no collapsed rail on phones; only hamburger drawer is allowed. */
@media (max-width: 1024px) {
  .guest-shell.is-home-workspace,
  .guest-shell.is-home-workspace.is-sidebar-collapsed {
    grid-template-columns: 1fr !important;
    padding-inline: 0 !important;
  }

  .guest-shell.is-home-workspace .guest-main,
  .guest-shell.is-home-workspace.is-sidebar-collapsed .guest-main {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .guest-shell.is-home-workspace .guest-sidebar,
  .guest-shell.is-home-workspace.is-sidebar-collapsed .guest-sidebar,
  .guest-shell.is-home-workspace:not(.is-sidebar-collapsed) .guest-sidebar {
    position: fixed !important;
    inset-block-start: 12px !important;
    inset-inline-start: 12px !important;
    width: min(318px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    height: calc(100dvh - 24px) !important;
    transform: translateX(-112%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 160 !important;
  }

  .guest-shell.is-home-workspace.is-mobile-sidebar-open .guest-sidebar,
  .guest-shell.is-home-workspace.is-sidebar-collapsed.is-mobile-sidebar-open .guest-sidebar {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .guest-shell.is-home-workspace:not(.is-mobile-sidebar-open)::after,
  .guest-shell.is-home-workspace.is-sidebar-collapsed:not(.is-mobile-sidebar-open)::after {
    content: none !important;
    display: none !important;
  }
}

@media (max-width: 540px) {
  .guest-shell.is-home-workspace .home-main-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 40px 40px !important;
    padding: 8px 0 10px !important;
  }

  .guest-shell.is-home-workspace .home-top-actions [data-theme-toggle] {
    display: none !important;
  }

  .guest-shell.is-home-workspace .home-hero-mark {
    display: none !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel {
    gap: 8px !important;
    padding-top: 8px !important;
    padding-bottom: 10px !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel h1 {
    font-size: 26px !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel p {
    font-size: 13px !important;
  }

  .guest-shell.is-home-workspace .guest-quick-card {
    min-height: 58px !important;
    grid-template-columns: minmax(0, 1fr) 42px !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
    gap: 10px !important;
  }

  .guest-shell.is-home-workspace .guest-quick-icon {
    grid-column: 2;
    grid-row: 1;
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  .guest-shell.is-home-workspace .guest-quick-copy {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
    align-content: center;
  }

  .guest-shell.is-home-workspace .guest-quick-copy strong {
    font-size: 13px !important;
  }

  .guest-shell.is-home-workspace .guest-quick-copy span {
    font-size: 10px !important;
  }
}

/* Responsive service cards: desktop row, tablet grid, mobile compact list. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.features-grid,
.quick-actions,
.action-cards,
.guest-shell.is-home-workspace .guest-quick-grid,
.guest-shell.is-home-workspace .home-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 920px;
  margin: 28px auto 0;
  padding: 0;
}

.feature-card,
.action-card,
.guest-shell.is-home-workspace .guest-quick-card {
  min-width: 0;
  width: 100%;
  height: 128px;
  border-radius: 18px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.guest-shell.is-home-workspace .guest-quick-icon,
.feature-card .icon,
.action-card .icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.guest-shell.is-home-workspace .guest-quick-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  justify-items: center;
}

.guest-shell.is-home-workspace .guest-quick-copy strong,
.feature-card h3,
.action-card h3 {
  font-size: 14px;
  line-height: 1.3;
  margin: 0;
}

.guest-shell.is-home-workspace .guest-quick-copy span,
.feature-card p,
.action-card p {
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
  opacity: 0.76;
}

@media (max-width: 1024px) {
  .features-grid,
  .quick-actions,
  .action-cards,
  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    max-width: 100% !important;
    padding: 0 18px !important;
    margin-top: 28px !important;
  }

  .feature-card,
  .action-card,
  .guest-shell.is-home-workspace .guest-quick-card {
    height: 120px;
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  .features-grid,
  .quick-actions,
  .action-cards,
  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 14px !important;
    margin-top: 22px !important;
  }

  .feature-card,
  .action-card,
  .guest-shell.is-home-workspace .guest-quick-card {
    height: auto !important;
    min-height: 72px !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 14px !important;
    text-align: right !important;
    direction: rtl;
  }

  .guest-shell.is-home-workspace .guest-quick-icon,
  .feature-card .icon,
  .action-card .icon {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    order: 0;
  }

  .guest-shell.is-home-workspace .guest-quick-copy {
    order: 1;
    min-width: 0;
    justify-items: start;
    text-align: right;
  }

  .guest-shell.is-home-workspace .guest-quick-copy strong,
  .feature-card h3,
  .action-card h3 {
    font-size: 15px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }

  .guest-shell.is-home-workspace .guest-quick-copy span,
  .feature-card p,
  .action-card p {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 4px 0 0 !important;
    opacity: 0.75;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Final card layout lock: matches the responsive service-card reference. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.features-grid,
.quick-actions,
.action-cards,
.guest-shell.is-home-workspace .guest-quick-grid,
.guest-shell.is-home-workspace .home-quick-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(120px, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 1280px !important;
  margin: 32px auto 0 !important;
  padding: 0 24px !important;
  box-sizing: border-box;
}

.feature-card,
.action-card,
.guest-shell.is-home-workspace .guest-quick-card {
  min-width: 0 !important;
  width: 100% !important;
  height: 128px !important;
  border-radius: 18px !important;
  padding: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  text-align: right !important;
  box-sizing: border-box;
  overflow: hidden;
}

.guest-shell.is-home-workspace .guest-quick-icon,
.feature-card .icon,
.action-card .icon {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
}

.guest-shell.is-home-workspace .guest-quick-copy {
  min-width: 0 !important;
  display: grid !important;
  gap: 4px !important;
  justify-items: start !important;
  text-align: right !important;
}

.guest-shell.is-home-workspace .guest-quick-copy strong,
.guest-shell.is-home-workspace .guest-quick-copy span,
.feature-card h3,
.feature-card p,
.action-card h3,
.action-card p {
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .features-grid,
  .quick-actions,
  .action-cards,
  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 0 18px !important;
    margin-top: 28px !important;
    max-width: 100% !important;
  }

  .feature-card,
  .action-card,
  .guest-shell.is-home-workspace .guest-quick-card {
    height: 120px !important;
    border-radius: 18px !important;
  }
}

@media (max-width: 640px) {
  .features-grid,
  .quick-actions,
  .action-cards,
  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 14px !important;
    margin-top: 22px !important;
    max-width: 100% !important;
  }

  .feature-card,
  .action-card,
  .guest-shell.is-home-workspace .guest-quick-card {
    display: flex !important;
    height: auto !important;
    min-height: 72px !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 14px !important;
    direction: rtl !important;
    text-align: right !important;
  }

  .guest-shell.is-home-workspace .guest-quick-icon,
  .feature-card .icon,
  .action-card .icon {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    order: 0 !important;
  }

  .guest-shell.is-home-workspace .guest-quick-copy {
    flex: 1 1 auto !important;
    order: 1 !important;
    min-width: 0 !important;
    justify-items: start !important;
    text-align: right !important;
  }

  .guest-shell.is-home-workspace .guest-quick-copy strong,
  .feature-card h3,
  .action-card h3 {
    font-size: 15px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }

  .guest-shell.is-home-workspace .guest-quick-copy span,
  .feature-card p,
  .action-card p {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 4px 0 0 !important;
    opacity: 0.75 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
  }
}

/* Mobile hard reset: keep desktop intact and make the phone layout own the full viewport. */
@media (max-width: 768px) {
  html,
  body,
  .orlixor-guest-page,
  .guest-root {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .guest-shell,
  .guest-shell.is-home-workspace,
  .guest-shell.is-home-workspace.is-sidebar-collapsed {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    grid-template-columns: 1fr !important;
  }

  .guest-sidebar,
  .guest-shell .guest-sidebar,
  .guest-shell.is-home-workspace .guest-sidebar,
  .guest-shell.is-home-workspace.is-sidebar-collapsed .guest-sidebar,
  .guest-collapsed-tools,
  .guest-rail-btn,
  aside {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
    position: absolute !important;
    inset: auto !important;
    overflow: hidden !important;
  }

  .guest-main,
  .guest-shell .guest-main,
  .guest-shell.is-home-workspace .guest-main,
  .guest-shell.is-home-workspace.is-sidebar-collapsed .guest-main,
  main {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px 12px 18px !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    overflow-x: hidden !important;
    grid-column: 1 / -1 !important;
  }

  .guest-shell.is-home-workspace .home-main-topbar,
  .home-main-topbar,
  .guest-main-topbar,
  .topbar,
  .header,
  .navbar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 8px 0 10px !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel,
  .guest-shell.is-home-workspace .guest-hero-panel,
  .welcome-section,
  .hero-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 18px auto 14px !important;
    padding: 0 8px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel h1,
  .guest-shell.is-home-workspace .guest-hero-copy h1,
  .welcome-section h1,
  .hero-section h1 {
    font-size: 30px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    margin-inline: auto !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel p,
  .guest-shell.is-home-workspace .guest-hero-copy p {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .features-grid,
  .quick-actions,
  .action-cards,
  .cards-grid,
  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  .feature-card,
  .action-card,
  .quick-card,
  .card,
  .guest-shell.is-home-workspace .guest-quick-card,
  .guest-shell.is-home-workspace .home-quick-grid .guest-quick-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 76px !important;
    padding: 16px !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    direction: rtl !important;
    text-align: right !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .guest-shell.is-home-workspace .guest-quick-icon,
  .feature-card .icon,
  .action-card .icon,
  .quick-card .icon,
  .card .icon {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    order: 0 !important;
  }

  .guest-shell.is-home-workspace .guest-quick-copy {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    order: 1 !important;
    text-align: right !important;
    justify-items: start !important;
  }

  .guest-shell.is-home-workspace .guest-quick-copy strong,
  .feature-card h3,
  .action-card h3,
  .quick-card h3,
  .card h3 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }

  .guest-shell.is-home-workspace .guest-quick-copy span,
  .feature-card p,
  .action-card p,
  .quick-card p,
  .card p {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 4px 0 0 !important;
    opacity: 0.75 !important;
    white-space: normal !important;
  }

  .guest-shell.is-home-workspace .guest-conversation-card,
  .guest-shell.is-home-workspace .home-compose,
  .chat-input-container,
  .message-input-wrapper,
  .composer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 16px 0 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  html,
  body,
  .orlixor-guest-page,
  .guest-root {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  body {
    overflow-x: hidden !important;
  }

  .guest-shell,
  .guest-shell.is-home-workspace,
  .guest-shell.is-home-workspace.is-sidebar-collapsed,
  .guest-shell.is-tools-workspace,
  .guest-shell.is-tools-workspace.is-sidebar-collapsed {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    grid-template-columns: 1fr !important;
  }

  aside,
  .guest-sidebar,
  .app-sidebar,
  [class*="sidebar"],
  [class*="Sidebar"],
  [class*="side-bar"],
  [id*="sidebar"],
  .guest-collapsed-tools,
  .guest-rail-btn {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    inset: auto !important;
    transform: none !important;
    overflow: hidden !important;
  }

  .mobile-header {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    height: 64px;
    padding: 0 16px;
    align-items: center;
    justify-content: stretch;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 2100;
    background: #ffffff;
    border-bottom: 1px solid rgba(109, 74, 255, 0.08);
    box-sizing: border-box;
    direction: ltr;
  }

  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text, #15152f);
    display: grid;
    place-items: center;
    padding: 0;
  }

  .mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    margin: 2px 0;
  }

  .mobile-brand {
    font-weight: 800;
    font-size: 20px;
    color: var(--text, #15152f);
    text-align: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-login-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(109, 74, 255, 0.16);
    box-shadow: none;
    display: grid;
    place-items: center;
    color: var(--primary, #6d4aff);
    overflow: hidden;
  }

  .mobile-login-btn.is-auth {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(109, 74, 255, 0.16);
    box-shadow: none;
    overflow: hidden;
  }

  .mobile-login-btn span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
  }

  .mobile-login-btn.is-auth img,
  .mobile-login-btn.is-auth svg {
    width: 100%;
    height: 100%;
  }

  .mobile-drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 82vw !important;
    max-width: 340px !important;
    background: #ffffff !important;
    z-index: 2200 !important;
    transform: translateX(100%) !important;
    transition: transform 0.25s ease !important;
    box-shadow: -20px 0 60px rgba(20, 20, 50, 0.18) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .guest-shell.is-mobile-sidebar-open .mobile-drawer {
    transform: translateX(0) !important;
  }

  .mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 35, 0.35);
    z-index: 2190;
    display: none;
  }

  .guest-shell.is-mobile-sidebar-open .mobile-drawer-backdrop {
    display: block;
  }

  .guest-main,
  .guest-shell .guest-main,
  .guest-shell.is-home-workspace .guest-main,
  .guest-shell.is-home-workspace.is-sidebar-collapsed .guest-main,
  .main-content,
  .content,
  .chat-main,
  main,
  .app-main,
  [class*="main"],
  [class*="Main"],
  [class*="content"],
  [class*="Content"],
  [class*="chat"],
  [class*="Chat"] {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 64px 12px 120px !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .guest-main-topbar,
  .home-main-topbar,
  .tools-main-topbar,
  .topbar,
  .header,
  .navbar {
    display: none !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel,
  .welcome-section,
  .hero-section {
    width: 100% !important;
    max-width: 100% !important;
    min-height: calc(100dvh - 190px) !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center !important;
    padding: 0 24px !important;
    margin: 0 !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel h1,
  .guest-shell.is-home-workspace .guest-hero-copy h1,
  .welcome-section h1,
  .hero-section h1 {
    font-size: 30px !important;
    line-height: 1.25 !important;
    margin: 16px 0 8px !important;
    color: var(--text, #15152f) !important;
    text-align: center !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel p,
  .guest-shell.is-home-workspace .guest-hero-copy p,
  .welcome-section p,
  .hero-section p {
    font-size: 16px !important;
    color: var(--muted, #8b8fa8) !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .features-grid,
  .quick-actions,
  .action-cards,
  .cards-grid,
  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    display: none !important;
  }

  .guest-shell.is-home-workspace .guest-conversation-card,
  .guest-shell.is-home-workspace .home-compose,
  .guest-shell.is-home-workspace .guest-attachment-pills {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 12px 0 0 !important;
    box-sizing: border-box !important;
  }

  .guest-shell.is-home-workspace .guest-conversation-card {
    padding: 0 0 92px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .guest-shell.is-home-workspace .guest-conversation-head {
    padding: 0 4px 14px !important;
  }

  .guest-shell.is-home-workspace .guest-messages {
    padding-inline: 0 !important;
  }

  .guest-compose,
  .home-compose,
  .chat-input-container,
  .message-input-wrapper,
  .composer,
  .input-area {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    min-height: 56px !important;
    border-radius: 28px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 30px rgba(109, 74, 255, 0.14) !important;
    border: 1px solid rgba(109, 74, 255, 0.14) !important;
    z-index: 2101 !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
  }

  textarea,
  input[type="text"] {
    font-size: 16px !important;
  }

  .send-button,
  .send-btn,
  .compose-send {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #6d4aff !important;
  }

  [class*="grid"],
  [class*="Grid"],
  [class*="cards"],
  [class*="Cards"],
  [class*="features"],
  [class*="Features"],
  [class*="quick"],
  [class*="Quick"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  [class*="card"],
  [class*="Card"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 76px !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 14px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  html,
  body,
  #app,
  .app,
  .layout,
  .guest-root,
  .orlixor-guest-page,
  .guest-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .guest-shell {
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .guest-sidebar:not(.mobile-drawer),
  .guest-sidepanel,
  [class*="sidebar"]:not(.mobile-drawer),
  [class*="Sidebar"]:not(.mobile-drawer),
  [class*="sidepanel"],
  [class*="Sidepanel"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }

  .mobile-header {
    display: flex !important;
  }

  .guest-main,
  .guest-shell .guest-main,
  .guest-shell.is-home-workspace .guest-main,
  .guest-shell.is-home-workspace.is-sidebar-collapsed .guest-main,
  .main-content,
  .content,
  .chat-main,
  main,
  .app-main,
  [class*="main"],
  [class*="Main"],
  [class*="content"],
  [class*="Content"],
  [class*="chat"],
  [class*="Chat"] {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 64px 14px 124px !important;
    transform: none !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .guest-main-topbar,
  .home-main-topbar,
  .tools-main-topbar,
  .topbar,
  .header,
  .navbar {
    display: none !important;
  }

  .guest-shell.is-home-workspace .guest-main > .home-main-topbar,
  .guest-shell.is-home-workspace .guest-main > .guest-main-topbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  .guest-shell.is-home-workspace .guest-main > .home-main-topbar *,
  .guest-shell.is-home-workspace .guest-main > .guest-main-topbar * {
    display: none !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel,
  .guest-shell.is-home-workspace .guest-hero-copy,
  .welcome-section,
  .hero-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 16px 0 12px !important;
    padding: 0 8px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .guest-shell.is-home-workspace .home-hero-mark,
  .guest-shell.is-home-workspace .guest-hero-mark,
  .guest-shell.is-home-workspace .home-hero-panel > span[aria-hidden="true"] {
    margin-inline: auto !important;
    align-self: center !important;
    justify-self: center !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel h1,
  .guest-shell.is-home-workspace .guest-hero-copy h1,
  .welcome-section h1,
  .hero-section h1 {
    font-size: 30px !important;
    line-height: 1.2 !important;
    margin: 8px 0 !important;
    text-align: center !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel p,
  .guest-shell.is-home-workspace .guest-hero-copy p,
  .welcome-section p,
  .hero-section p {
    font-size: 16px !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    text-align: center !important;
    color: var(--muted, #8b8fa8) !important;
  }

  .features-grid,
  .quick-actions,
  .action-cards,
  .cards-grid,
  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    display: none !important;
  }

  .guest-shell.is-home-workspace .guest-conversation-card,
  .guest-shell.is-home-workspace .guest-attachment-pills,
  .guest-shell.is-home-workspace .home-compose {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 12px 0 0 !important;
    box-sizing: border-box !important;
  }

  .guest-shell.is-home-workspace .guest-conversation-card {
    padding: 0 0 104px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .guest-shell.is-home-workspace .guest-conversation-head,
  .guest-shell.is-home-workspace .guest-messages {
    padding-inline: 0 !important;
  }

  .guest-compose,
  .home-compose,
  .chat-input-container,
  .message-input-wrapper,
  .composer,
  .input-area {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    min-height: 56px !important;
    border-radius: 28px !important;
    padding: 8px 10px !important;
    background: #ffffff !important;
    border: 1px solid rgba(109, 74, 255, 0.14) !important;
    box-shadow: 0 8px 30px rgba(109, 74, 255, 0.14) !important;
    z-index: 2101 !important;
    box-sizing: border-box !important;
  }

  textarea,
  input[type="text"] {
    font-size: 16px !important;
  }

  .send-button,
  .send-btn,
  .compose-send {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #6d4aff !important;
  }

  .mobile-drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 82vw !important;
    max-width: 340px !important;
    background: #fff !important;
    z-index: 2200 !important;
    transform: translateX(100%) !important;
    transition: transform 0.25s ease !important;
    box-shadow: -20px 0 60px rgba(20, 20, 50, 0.18) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .guest-shell.is-mobile-sidebar-open .mobile-drawer {
    transform: translateX(0) !important;
  }

  .mobile-drawer-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 15, 35, 0.35) !important;
    z-index: 2190 !important;
    display: none !important;
  }

  .guest-shell.is-mobile-sidebar-open .mobile-drawer-backdrop {
    display: block !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel,
  .guest-shell.is-home-workspace .guest-hero-copy,
  .welcome-section,
  .hero-section {
    min-height: calc(100dvh - 250px) !important;
    justify-content: center !important;
  }

  .guest-shell.is-home-workspace .home-hero-mark,
  .guest-shell.is-home-workspace .guest-hero-mark,
  .guest-shell.is-home-workspace .home-hero-panel > span[aria-hidden="true"] {
    margin-inline: auto !important;
    align-self: center !important;
    justify-self: center !important;
  }

  .guest-shell.is-home-workspace .guest-conversation-card,
  .guest-shell.is-home-workspace .guest-attachment-pills,
  .guest-shell.is-home-workspace .home-compose,
  .guest-shell.is-home-workspace .guest-compose {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .guest-shell.is-home-workspace .home-compose,
  .guest-shell.is-home-workspace .guest-compose,
  .chat-input-container,
  .message-input-wrapper,
  .composer,
  .input-area {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    z-index: 2205 !important;
    width: auto !important;
    max-width: none !important;
    min-height: 56px !important;
    border-radius: 28px !important;
    padding: 8px 10px !important;
    background: #ffffff !important;
    border: 1px solid rgba(109, 74, 255, 0.14) !important;
    box-shadow: 0 8px 30px rgba(109, 74, 255, 0.14) !important;
    box-sizing: border-box !important;
  }

  .guest-shell.is-home-workspace .home-compose .compose-input,
  .guest-shell.is-home-workspace .guest-compose .compose-input,
  .chat-input-container textarea,
  .message-input-wrapper textarea,
  .composer textarea,
  .input-area textarea {
    font-size: 16px !important;
  }

  .guest-shell.is-home-workspace .home-compose .compose-send,
  .guest-shell.is-home-workspace .guest-compose .compose-send,
  .send-button,
  .send-btn,
  .compose-send {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #6d4aff !important;
  }

  .features-grid,
  .quick-actions,
  .action-cards,
  .cards-grid,
  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
  }

  .guest-shell.is-home-workspace .guest-quick-card,
  .guest-shell.is-home-workspace .home-quick-grid .guest-quick-card,
  .feature-card,
  .action-card,
  .quick-card,
  .card {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 72px !important;
    height: auto !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
  }

  .guest-shell.is-home-workspace .guest-quick-icon,
  .feature-card .icon,
  .action-card .icon,
  .quick-card .icon,
  .card .icon {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }

  .guest-shell.is-home-workspace .guest-quick-copy,
  .feature-card > div,
  .action-card > div,
  .quick-card > div,
  .card > div {
    min-width: 0 !important;
    text-align: right !important;
  }

  .guest-shell.is-home-workspace .guest-quick-copy strong,
  .feature-card h3,
  .action-card h3,
  .quick-card h3,
  .card h3 {
    font-size: 15px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
  }

  .guest-shell.is-home-workspace .guest-quick-copy span,
  .feature-card p,
  .action-card p,
  .quick-card p,
  .card p {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin: 4px 0 0 !important;
    opacity: 0.8 !important;
  }
}

@media (max-width: 768px) {
  [hidden] {
    display: none !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel,
  .guest-shell.is-home-workspace .guest-hero-copy,
  .welcome-section,
  .hero-section {
    min-height: auto !important;
    justify-content: flex-start !important;
    padding-top: 8px !important;
    gap: 6px !important;
  }

  .guest-shell.is-home-workspace .home-hero-mark,
  .guest-shell.is-home-workspace .guest-hero-mark,
  .guest-shell.is-home-workspace .home-hero-panel > span[aria-hidden="true"] {
    width: 40px !important;
    height: 40px !important;
    margin: 0 auto 4px !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel h1,
  .guest-shell.is-home-workspace .guest-hero-copy h1,
  .welcome-section h1,
  .hero-section h1 {
    font-size: 26px !important;
    line-height: 1.18 !important;
    margin: 6px 0 4px !important;
  }

  .guest-shell.is-home-workspace .home-hero-panel p,
  .guest-shell.is-home-workspace .guest-hero-copy p,
  .welcome-section p,
  .hero-section p {
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
  }

  .guest-shell.is-home-workspace .guest-quick-grid,
  .guest-shell.is-home-workspace .home-quick-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
  }

  .guest-shell.is-home-workspace .guest-quick-card,
  .guest-shell.is-home-workspace .home-quick-grid .guest-quick-card {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 72px !important;
    height: auto !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
  }

  .guest-shell.is-home-workspace .guest-quick-icon {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }

  .guest-shell.is-home-workspace .guest-quick-copy strong {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  .guest-shell.is-home-workspace .guest-quick-copy span {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-top: 4px !important;
  }

  .guest-shell.is-home-workspace .guest-compose {
    left: 12px !important;
    right: 12px !important;
  }
}

/* FINAL mobile home layer: placed last intentionally so the phone view stops inheriting desktop layout. */
@media (max-width: 768px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    background: #fff !important;
  }

  .guest-shell.is-home-workspace,
  .guest-shell.is-home-workspace.is-sidebar-collapsed {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(109, 74, 255, 0.08), transparent 34%),
      #ffffff !important;
  }

  .guest-shell.is-home-workspace:not(.is-mobile-sidebar-open) .guest-sidebar,
  .guest-shell.is-home-workspace:not(.is-mobile-sidebar-open) .mobile-drawer,
  .guest-shell.is-home-workspace.is-sidebar-collapsed:not(.is-mobile-sidebar-open) .guest-sidebar {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(100%) !important;
  }

  .guest-shell.is-home-workspace.is-mobile-sidebar-open .guest-sidebar.mobile-drawer {
    display: block !important;
    width: 82vw !important;
    max-width: 340px !important;
    min-width: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }

  .mobile-header {
    display: grid !important;
    grid-template-columns: 44px 1fr auto !important;
    align-items: center !important;
    height: 58px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2300 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    direction: ltr !important;
  }

  .mobile-menu-btn,
  .mobile-icon-btn,
  .mobile-login-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: transparent !important;
    color: #15152f !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
  }

  .mobile-menu-btn {
    justify-self: start !important;
    gap: 3px !important;
  }

  .mobile-menu-btn span {
    width: 15px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: #15152f !important;
    display: block !important;
  }

  .mobile-brand {
    justify-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #6d4aff !important;
    font-size: 0 !important;
  }

  .mobile-brand-mark,
  .mobile-brand-mark img {
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    object-fit: contain !important;
  }

  .mobile-header-actions {
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .mobile-icon-btn svg,
  .mobile-login-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.25 !important;
  }

  .guest-shell.is-home-workspace .guest-main,
  .guest-shell.is-home-workspace.is-sidebar-collapsed .guest-main,
  .guest-main.home-orlixor-main {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    min-height: calc(100dvh - 58px) !important;
    margin: 0 !important;
    padding: 8px 14px 112px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    box-sizing: border-box !important;
    background: transparent !important;
  }

  .guest-shell.is-home-workspace .home-main-topbar,
  .guest-shell.is-home-workspace .guest-main-topbar,
  .guest-shell.is-home-workspace .home-desktop-hero,
  .guest-shell.is-home-workspace .home-desktop-actions,
  .guest-shell.is-home-workspace .guest-quick-grid:not(.ov-mobile-actions),
  .guest-shell.is-home-workspace .home-quick-grid {
    display: none !important;
  }

  .ov-mobile-home {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: min(100%, 390px) !important;
    max-width: 390px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .ov-mobile-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    padding: 5px 0 12px !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .ov-mobile-logo,
  .ov-mobile-logo img {
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    object-fit: contain !important;
  }

  .ov-mobile-hero h1 {
    margin: 3px 0 0 !important;
    font-size: 23px !important;
    line-height: 1.22 !important;
    font-weight: 900 !important;
    color: #15152f !important;
    letter-spacing: 0 !important;
  }

  .ov-mobile-hero p {
    margin: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #8b8fa8 !important;
  }

  .ov-mobile-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .ov-mobile-action {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 58px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(109, 74, 255, 0.11) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 28px rgba(44, 34, 89, 0.055) !important;
    color: #15152f !important;
    text-align: right !important;
    box-sizing: border-box !important;
  }

  .ov-mobile-action-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 12px !important;
    display: inline-grid !important;
    place-items: center !important;
    background: #f3efff !important;
    color: #6d4aff !important;
  }

  .ov-mobile-action-icon svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2.35 !important;
  }

  .ov-mobile-action-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .ov-mobile-action-copy strong {
    display: block !important;
    margin: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    color: #15152f !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .ov-mobile-action-copy small {
    display: block !important;
    margin: 3px 0 0 !important;
    font-size: 10.8px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #9aa0b8 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .guest-shell.is-home-workspace .guest-conversation-card {
    display: none !important;
  }

  .guest-shell.is-home-workspace .guest-attachment-pills {
    width: min(100%, 390px) !important;
    max-width: 390px !important;
    margin-inline: auto !important;
  }

  .guest-shell.is-home-workspace .home-compose,
  .guest-shell.is-home-workspace .guest-compose {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: 390px !important;
    margin: 0 auto !important;
    min-height: 74px !important;
    padding: 12px 12px 10px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(109, 74, 255, 0.12) !important;
    background: #ffffff !important;
    box-shadow: 0 16px 42px rgba(44, 34, 89, 0.09) !important;
    z-index: 2250 !important;
    display: grid !important;
    grid-template-columns: 1fr 46px !important;
    grid-template-rows: auto auto !important;
    gap: 10px 10px !important;
    box-sizing: border-box !important;
  }

  .guest-shell.is-home-workspace .home-compose .compose-input,
  .guest-shell.is-home-workspace .guest-compose .compose-input {
    grid-column: 1 / 3 !important;
    width: 100% !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
    color: #15152f !important;
    text-align: right !important;
  }

  .guest-shell.is-home-workspace .home-compose-actions {
    grid-column: 1 / 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  .guest-shell.is-home-workspace .home-compose-tool {
    height: 32px !important;
    min-width: 0 !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(109, 74, 255, 0.13) !important;
    background: #fff !important;
    color: #69708d !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    box-shadow: none !important;
  }

  .guest-shell.is-home-workspace .home-compose-tool svg {
    width: 14px !important;
    height: 14px !important;
  }

  .guest-shell.is-home-workspace .home-compose .compose-send,
  .guest-shell.is-home-workspace .guest-compose .compose-send {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
    width: 46px !important;
    height: 46px !important;
    align-self: end !important;
    justify-self: end !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #7c4dff, #5f35f4) !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(109, 74, 255, 0.28) !important;
  }

  .guest-shell.is-home-workspace .home-compose-note,
  .guest-shell.is-home-workspace .guest-compose-note {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .guest-shell.is-home-workspace .guest-main,
  .guest-main.home-orlixor-main {
    padding-inline: 12px !important;
  }

  .ov-mobile-action {
    min-height: 54px !important;
    padding: 9px 10px !important;
  }

  .ov-mobile-action-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .ov-mobile-action-copy strong {
    font-size: 13px !important;
  }

  .ov-mobile-action-copy small {
    font-size: 10.3px !important;
  }
}

@media (min-width: 1025px) {
  .guest-shell.is-home-workspace .home-hero-panel {
    gap: 6px !important;
  }

  .guest-shell.is-home-workspace .home-hero-mark {
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 10px !important;
  }

  .guest-shell.is-home-workspace .home-quick-grid {
    max-width: 1080px !important;
    margin: -12px auto 0 !important;
    gap: 10px !important;
  }

  .guest-shell.is-home-workspace .home-quick-grid .guest-quick-card {
    height: 106px !important;
    padding: 14px 12px !important;
    border-radius: 15px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    text-align: center !important;
  }

  .guest-shell.is-home-workspace .home-quick-grid .guest-quick-icon {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 12px !important;
  }

  .guest-shell.is-home-workspace .home-quick-grid .guest-quick-copy {
    gap: 2px !important;
    justify-items: center !important;
  }

  .guest-shell.is-home-workspace .home-quick-grid .guest-quick-copy strong {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  .guest-shell.is-home-workspace .home-quick-grid .guest-quick-copy span {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }
}
.browser-launch-btn {
  color: #6d4aff;
}

.browser-launch-btn svg {
  width: 20px;
  height: 20px;
}

/* Smart storage folder detail view */
.smart-storage-folder-workspace {
  direction: rtl;
  display: grid;
  gap: 18px;
  padding-bottom: 18px;
}

.smart-storage-folder-topbar {
  position: relative;
  min-height: 138px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.72fr) minmax(260px, 1fr);
  align-items: start;
  gap: 18px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 48px rgba(111, 76, 255, 0.08);
  padding: 22px;
}

.smart-storage-folder-back {
  grid-column: 3;
  justify-self: end;
  min-height: 58px;
  min-width: 230px;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(111, 76, 255, 0.2);
}

.smart-storage-folder-title-card {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  color: #111936;
}

.smart-storage-folder-title-card h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 800;
}

.smart-storage-folder-title-card h2 span {
  width: 34px;
  height: 34px;
  color: #6d4aff;
}

.smart-storage-folder-title-card time,
.smart-storage-folder-title-card p {
  display: block;
  margin: 6px 0 0;
  color: #8a90aa;
  font-size: 0.92rem;
  font-weight: 700;
}

.smart-storage-folder-action-row {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.smart-storage-folder-action-row .smart-storage-secondary-btn,
.smart-storage-more-btn {
  min-height: 52px;
  border-radius: 14px;
  padding: 0 18px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: #111936;
  box-shadow: 0 12px 24px rgba(111, 76, 255, 0.06);
}

.smart-storage-folder-action-row .smart-storage-secondary-btn.danger {
  color: #d94b63;
}

.smart-storage-more-wrap {
  position: relative;
  z-index: 8;
}

.smart-storage-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #6d4aff;
}

.smart-storage-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 230px;
  overflow: hidden;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(22, 20, 55, 0.14);
}

.smart-storage-more-menu button {
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid rgba(111, 76, 255, 0.08);
  background: transparent;
  color: #232544;
  padding: 0 16px;
  cursor: pointer;
}

.smart-storage-more-menu button:last-child {
  border-bottom: 0;
}

.smart-storage-more-menu button span {
  width: 20px;
  height: 20px;
  color: #6d4aff;
}

.smart-storage-more-menu button.is-danger {
  color: #d94b63;
}

.smart-storage-more-menu button.is-danger span {
  color: #d94b63;
}

.smart-storage-folder-dashboard {
  display: grid;
  grid-template-columns: 294px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.smart-storage-folder-sidebar {
  display: grid;
  gap: 16px;
}

.smart-storage-side-card {
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(111, 76, 255, 0.06);
  padding: 18px;
}

.smart-storage-side-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  color: #111936;
  font-size: 1.06rem;
  font-weight: 800;
}

.smart-storage-side-card h3 span,
.smart-storage-side-card button span,
.smart-storage-folder-stat-strip article span {
  width: 23px;
  height: 23px;
  color: #6d4aff;
}

.smart-storage-side-card button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: #5e6380;
  font-weight: 800;
  cursor: pointer;
}

.smart-storage-side-card hr {
  border: 0;
  border-top: 1px solid rgba(111, 76, 255, 0.1);
  margin: 12px 0;
}

.smart-storage-side-row,
.smart-storage-usage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #7d839f;
  font-weight: 700;
}

.smart-storage-side-row strong,
.smart-storage-usage-meta b {
  color: #111936;
}

.smart-storage-view-switch {
  display: inline-flex;
  gap: 8px;
  margin-top: 12px;
}

.smart-storage-view-switch button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  background: #fff;
  color: #8a90aa;
}

.smart-storage-view-switch button.is-active {
  background: linear-gradient(135deg, #7a4cff, #4a24f6);
  color: #fff;
}

.smart-storage-supported-note {
  margin-top: 18px;
  border-radius: 16px;
  background: rgba(111, 76, 255, 0.07);
  padding: 14px;
  text-align: center;
  color: #6d4aff;
  font-size: 0.86rem;
  font-weight: 800;
}

.smart-storage-supported-note strong {
  display: block;
  margin-bottom: 4px;
  color: #8a90aa;
}

.smart-storage-folder-content {
  min-width: 0;
}

.smart-storage-folder-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.smart-storage-folder-stat-strip article {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(111, 76, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 30px rgba(111, 76, 255, 0.05);
  color: #111936;
}

.smart-storage-folder-stat-strip article strong,
.smart-storage-folder-stat-strip article small {
  display: block;
}

.smart-storage-folder-stat-strip article small {
  margin-top: 3px;
  color: #8a90aa;
  font-weight: 700;
}

.smart-storage-folder-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 14px;
}

.smart-storage-folder-content-head h3 {
  margin: 0;
  color: #111936;
  font-size: 1.1rem;
  font-weight: 800;
}

.smart-storage-folder-search {
  width: min(300px, 100%);
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0 14px;
  color: #8a90aa;
}

.smart-storage-folder-search span {
  width: 20px;
  height: 20px;
}

.smart-storage-folder-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111936;
  font: inherit;
}

.smart-storage-folder-workspace .smart-storage-file-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.smart-storage-folder-workspace .smart-storage-file-card {
  position: relative;
  min-height: 272px;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
}

.smart-storage-folder-workspace .smart-storage-file-check {
  position: absolute;
  top: 18px;
  right: 18px;
}

.smart-storage-file-more {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #7d839f;
  cursor: pointer;
}

.smart-storage-file-more svg {
  width: 22px;
  height: 22px;
}

.smart-storage-folder-workspace .smart-storage-file-thumb {
  width: 138px;
  height: 112px;
  margin-top: 18px;
  border-radius: 18px;
}

.smart-storage-folder-workspace .smart-storage-file-copy {
  min-width: 0;
}

.smart-storage-folder-workspace .smart-storage-file-copy strong {
  max-width: 100%;
  display: block;
  color: #111936;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-storage-folder-workspace .smart-storage-file-copy span {
  display: inline-flex;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(111, 76, 255, 0.08);
  color: #6d4aff;
  padding: 2px 8px;
  font-size: 0.74rem;
  font-weight: 800;
}

.smart-storage-folder-workspace .smart-storage-file-actions {
  width: 100%;
  justify-content: center;
  border-top: 1px solid rgba(111, 76, 255, 0.1);
  padding-top: 12px;
}

.smart-storage-file-grid.is-list {
  grid-template-columns: 1fr;
}

.smart-storage-file-grid.is-list .smart-storage-file-card {
  min-height: 104px;
  grid-template-columns: 34px 76px minmax(0, 1fr) auto;
  text-align: start;
  place-items: center stretch;
}

.smart-storage-file-grid.is-list .smart-storage-file-more {
  position: static;
  order: -1;
}

.smart-storage-file-grid.is-list .smart-storage-file-check {
  position: static;
}

.smart-storage-file-grid.is-list .smart-storage-file-thumb {
  width: 70px;
  height: 58px;
  margin: 0;
}

.smart-storage-empty-state.is-folder-empty {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
}

.smart-storage-folder-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #8a90aa;
}

.smart-storage-folder-pagination label,
.smart-storage-folder-pagination div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.smart-storage-folder-pagination select,
.smart-storage-folder-pagination button,
.smart-storage-folder-pagination b {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(111, 76, 255, 0.12);
  border-radius: 10px;
  background: #fff;
}

.smart-storage-folder-pagination b {
  background: linear-gradient(135deg, #7a4cff, #4a24f6);
  color: #fff;
}

.smart-storage-folder-footer {
  text-align: center;
  color: #9aa0b8;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .smart-storage-folder-topbar {
    grid-template-columns: 1fr;
  }

  .smart-storage-folder-back,
  .smart-storage-folder-title-card,
  .smart-storage-folder-action-row {
    grid-column: auto;
    justify-self: stretch;
  }

  .smart-storage-folder-title-card {
    order: -1;
  }

  .smart-storage-folder-dashboard {
    grid-template-columns: 1fr;
  }

  .smart-storage-folder-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .smart-storage-folder-workspace .smart-storage-file-grid,
  .smart-storage-folder-stat-strip,
  .smart-storage-folder-sidebar {
    grid-template-columns: 1fr;
  }

  .smart-storage-folder-content-head,
  .smart-storage-folder-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .smart-storage-folder-action-row .smart-storage-secondary-btn,
  .smart-storage-more-wrap,
  .smart-storage-more-btn,
  .smart-storage-folder-back {
    width: 100%;
  }
}

/* Smart storage final interaction and preview polish */
.guest-shell.is-home-workspace.is-tools-workspace .smart-storage-main,
.guest-shell.is-tools-workspace .smart-storage-main {
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scroll-behavior: auto !important;
}

.smart-storage-folder-workspace {
  max-width: 1450px;
  margin-inline: auto;
  gap: 24px !important;
}

.smart-storage-folder-topbar {
  direction: ltr !important;
  grid-template-columns: minmax(330px, 1fr) minmax(260px, 0.68fr) minmax(330px, 1fr) !important;
  grid-template-areas: "actions title back" !important;
  align-items: start !important;
  min-height: 154px !important;
  padding: 28px !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 22px 58px rgba(111, 76, 255, 0.075) !important;
}

.smart-storage-folder-back,
.smart-storage-folder-title-card,
.smart-storage-folder-action-row {
  direction: rtl !important;
}

.smart-storage-folder-back {
  grid-area: back !important;
  justify-self: end !important;
  width: 238px !important;
  min-width: 238px !important;
  min-height: 60px !important;
  border-radius: 15px !important;
  font-size: 0.94rem !important;
}

.smart-storage-folder-title-card {
  grid-area: title !important;
  justify-self: center !important;
  align-self: center !important;
}

.smart-storage-folder-title-card h2 {
  font-size: 1.74rem !important;
  line-height: 1.15 !important;
  gap: 10px !important;
}

.smart-storage-folder-title-card h2 span {
  width: 31px !important;
  height: 31px !important;
}

.smart-storage-folder-title-card time,
.smart-storage-folder-title-card p {
  font-size: 0.93rem !important;
  margin-top: 8px !important;
}

.smart-storage-folder-action-row {
  grid-area: actions !important;
  justify-self: start !important;
  width: min(500px, 100%) !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.smart-storage-folder-action-row .smart-storage-secondary-btn,
.smart-storage-folder-action-row .smart-storage-more-btn {
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  justify-content: center !important;
  font-size: 0.9rem !important;
  white-space: nowrap !important;
}

.smart-storage-more-wrap {
  width: 100% !important;
}

.smart-storage-more-menu {
  left: 0 !important;
  right: auto !important;
  z-index: 20 !important;
}

.smart-storage-folder-dashboard {
  direction: ltr !important;
  grid-template-columns: minmax(0, 1fr) 310px !important;
  gap: 22px !important;
  align-items: start !important;
}

.smart-storage-folder-content {
  direction: rtl !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.smart-storage-folder-sidebar {
  direction: rtl !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.smart-storage-folder-stat-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin-bottom: 20px !important;
}

.smart-storage-folder-stat-strip article {
  min-height: 96px !important;
  border-radius: 20px !important;
  gap: 16px !important;
}

.smart-storage-folder-content-head {
  align-items: center !important;
  margin: 0 0 16px !important;
}

.smart-storage-folder-content-head h3 {
  font-size: 1.18rem !important;
}

.smart-storage-folder-search {
  width: 330px !important;
  min-height: 50px !important;
  border-radius: 14px !important;
}

.smart-storage-folder-workspace .smart-storage-file-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 18px !important;
}

.smart-storage-folder-workspace .smart-storage-file-card {
  min-height: 266px !important;
  padding: 18px !important;
  border-radius: 18px !important;
}

.smart-storage-folder-workspace .smart-storage-file-thumb {
  width: 142px !important;
  height: 112px !important;
  margin-top: 16px !important;
  border-radius: 17px !important;
}

.smart-storage-file-grid.is-list .smart-storage-file-card {
  min-height: 106px !important;
}

.smart-storage-preview-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999 !important;
  display: grid !important;
  place-items: start center !important;
  padding: 108px 36px 42px !important;
  background: rgba(15, 18, 36, 0.12) !important;
  backdrop-filter: blur(2px) !important;
  overflow-y: auto !important;
}

.smart-storage-preview-modal {
  direction: rtl !important;
  width: min(940px, calc(100vw - 400px)) !important;
  min-width: min(760px, calc(100vw - 72px)) !important;
  max-height: calc(100vh - 142px) !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  overflow: hidden !important;
  border: 1px solid rgba(111, 76, 255, 0.13) !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 24px 60px rgba(17, 24, 54, 0.14) !important;
}

.smart-storage-preview-head {
  min-height: 64px !important;
  padding: 18px 28px 10px !important;
  border-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.smart-storage-preview-head strong {
  color: #111936 !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
}

.smart-storage-preview-head span {
  color: #8a90aa !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
}

.smart-storage-preview-toolbar {
  min-height: 54px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 28px 14px !important;
  border-bottom: 1px solid rgba(111, 76, 255, 0.09) !important;
}

.smart-storage-preview-toolbar button,
.smart-storage-preview-toolbar a {
  height: 40px !important;
  min-width: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 1px solid rgba(111, 76, 255, 0.12) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111936 !important;
  padding: 0 13px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.smart-storage-preview-toolbar svg {
  width: 18px !important;
  height: 18px !important;
}

.smart-storage-preview-divider {
  width: 1px !important;
  height: 28px !important;
  background: rgba(111, 76, 255, 0.11) !important;
  margin-inline: 6px !important;
}

.smart-storage-preview-layout {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 268px !important;
  overflow: hidden !important;
}

.smart-storage-preview-canvas {
  min-width: 0 !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: minmax(290px, 1fr) 78px !important;
  gap: 14px !important;
  padding: 16px 28px 20px !important;
  overflow: hidden !important;
}

.smart-storage-preview-image-stage {
  min-height: 310px !important;
  display: grid !important;
  place-items: center !important;
  overflow: auto !important;
  border: 1px solid rgba(111, 76, 255, 0.09) !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #fbf9ff 0%, #f8f5ff 100%) !important;
}

.smart-storage-preview-image-stage img {
  max-width: 96% !important;
  max-height: 390px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform-origin: center !important;
  transition: transform 160ms ease !important;
}

.smart-storage-preview-thumbs {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  min-height: 70px !important;
}

.smart-storage-preview-thumbs button {
  width: 92px !important;
  height: 58px !important;
  border: 1px solid rgba(111, 76, 255, 0.1) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #6d4aff !important;
  cursor: pointer !important;
  overflow: hidden !important;
}

.smart-storage-preview-thumbs button:first-child,
.smart-storage-preview-thumbs button:last-child {
  width: 38px !important;
  font-size: 1.5rem !important;
}

.smart-storage-preview-thumbs button.is-active {
  border-color: #6d4aff !important;
  box-shadow: 0 0 0 2px rgba(111, 76, 255, 0.12) !important;
}

.smart-storage-preview-thumbs img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.smart-storage-preview-info {
  min-width: 0 !important;
  border-right: 1px solid rgba(111, 76, 255, 0.09) !important;
  background: #fff !important;
  padding: 24px 22px !important;
  overflow-y: auto !important;
}

.smart-storage-preview-info h3 {
  margin: 0 0 22px !important;
  color: #111936 !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
}

.smart-storage-preview-info dl {
  display: grid !important;
  gap: 15px !important;
  margin: 0 !important;
}

.smart-storage-preview-info dl div {
  display: grid !important;
  grid-template-columns: 86px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
}

.smart-storage-preview-info dt {
  color: #7f86a6 !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}

.smart-storage-preview-info dd {
  min-width: 0 !important;
  margin: 0 !important;
  color: #111936 !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.smart-storage-preview-delete {
  width: 100% !important;
  min-height: 48px !important;
  margin-top: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border: 1px solid rgba(217, 75, 99, 0.18) !important;
  border-radius: 12px !important;
  background: rgba(217, 75, 99, 0.05) !important;
  color: #d94b63 !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.smart-storage-preview-note {
  min-height: 310px !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 10px !important;
  border-radius: 12px !important;
  background: rgba(111, 76, 255, 0.055) !important;
}

.smart-storage-preview-modal:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-height: none !important;
  border-radius: 0 !important;
}

@media (max-width: 1180px) {
  .smart-storage-folder-topbar {
    direction: rtl !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "back"
      "title"
      "actions" !important;
    min-height: auto !important;
  }

  .smart-storage-folder-back,
  .smart-storage-folder-title-card,
  .smart-storage-folder-action-row {
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .smart-storage-folder-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .smart-storage-folder-dashboard {
    direction: rtl !important;
    grid-template-columns: 1fr !important;
  }

  .smart-storage-folder-content,
  .smart-storage-folder-sidebar {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .smart-storage-folder-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .smart-storage-preview-modal {
    width: min(940px, calc(100vw - 48px)) !important;
    min-width: 0 !important;
  }
}

@media (max-width: 760px) {
  .smart-storage-preview-backdrop {
    padding: 24px 12px !important;
  }

  .smart-storage-preview-layout {
    grid-template-columns: 1fr !important;
  }

  .smart-storage-preview-info {
    border-right: 0 !important;
    border-top: 1px solid rgba(111, 76, 255, 0.09) !important;
  }

  .smart-storage-preview-toolbar {
    flex-wrap: wrap !important;
  }

  .smart-storage-folder-action-row,
  .smart-storage-folder-stat-strip,
  .smart-storage-folder-workspace .smart-storage-file-grid,
  .smart-storage-folder-sidebar {
    grid-template-columns: 1fr !important;
  }

  .smart-storage-folder-search {
    width: 100% !important;
  }
}

/* Stable tools category bar across storage sections */
.stable-tools-tabs.tools-unified-bar,
.storage-tools-page > .stable-tools-tabs.tools-unified-bar,
.smart-storage-page > .stable-tools-tabs.tools-unified-bar {
  position: sticky !important;
  top: 10px !important;
  z-index: 40 !important;
  width: min(100%, 1200px) !important;
  min-height: 58px !important;
  margin: 0 auto 28px !important;
  padding: 5px 0 8px !important;
  display: flex !important;
  direction: rtl !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)) !important;
  backdrop-filter: blur(14px) !important;
  border-radius: 999px !important;
}

.stable-tools-tabs.tools-unified-bar::-webkit-scrollbar {
  display: none !important;
}

.stable-tools-tabs .tools-unified-filter,
.storage-tools-tabs.stable-tools-tabs .tools-unified-filter,
.smart-storage-page > .stable-tools-tabs .tools-unified-filter {
  flex: 0 0 auto !important;
  min-width: 128px !important;
  height: 48px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(111, 76, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #737b9b !important;
  box-shadow: 0 8px 20px rgba(32, 38, 82, 0.035) !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.stable-tools-tabs .tools-unified-filter.is-active,
.storage-tools-tabs.stable-tools-tabs .tools-unified-filter.is-active,
.smart-storage-page > .stable-tools-tabs .tools-unified-filter.is-active {
  color: #6d4aff !important;
  border-color: rgba(111, 76, 255, 0.48) !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(111, 76, 255, 0.11) !important;
}

@media (max-width: 900px) {
  .stable-tools-tabs.tools-unified-bar,
  .storage-tools-page > .stable-tools-tabs.tools-unified-bar,
  .smart-storage-page > .stable-tools-tabs.tools-unified-bar {
    justify-content: flex-start !important;
    gap: 10px !important;
    min-height: 54px !important;
    margin-bottom: 20px !important;
    padding-inline: 4px !important;
  }

  .stable-tools-tabs .tools-unified-filter,
  .storage-tools-tabs.stable-tools-tabs .tools-unified-filter,
  .smart-storage-page > .stable-tools-tabs .tools-unified-filter {
    min-width: 112px !important;
    height: 44px !important;
    padding: 0 16px !important;
    font-size: 0.86rem !important;
  }
}

/* Keep storage category tabs fully visible in one clean row */
.stable-tools-tabs.tools-unified-bar,
.storage-tools-page > .stable-tools-tabs.tools-unified-bar,
.smart-storage-page > .stable-tools-tabs.tools-unified-bar {
  position: relative !important;
  top: auto !important;
  width: min(100%, 1088px) !important;
  max-width: 100% !important;
  min-height: 54px !important;
  margin: 0 auto 24px !important;
  padding: 4px !important;
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 10px !important;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

.stable-tools-tabs .tools-unified-filter,
.storage-tools-tabs.stable-tools-tabs .tools-unified-filter,
.smart-storage-page > .stable-tools-tabs .tools-unified-filter {
  width: 100% !important;
  min-width: 0 !important;
  height: 46px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 0.82rem !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

@media (max-width: 980px) {
  .stable-tools-tabs.tools-unified-bar,
  .storage-tools-page > .stable-tools-tabs.tools-unified-bar,
  .smart-storage-page > .stable-tools-tabs.tools-unified-bar {
    gap: 7px !important;
  }

  .stable-tools-tabs .tools-unified-filter,
  .storage-tools-tabs.stable-tools-tabs .tools-unified-filter,
  .smart-storage-page > .stable-tools-tabs .tools-unified-filter {
    height: 42px !important;
    padding: 0 6px !important;
    font-size: 0.76rem !important;
  }
}

/* The collapsed sidebar already has a compact new-chat shortcut in the rail.
   Hide the duplicate bottom plus button so the rail stays clean. */
.guest-shell.is-sidebar-collapsed .guest-new-chat {
  display: none !important;
}

/* Compact subscriber/free tools page, matching the latest reference cards. */
.guest-shell.is-tools-workspace .free-tools-main {
  padding: 30px clamp(30px, 4vw, 58px) 34px !important;
  background:
    radial-gradient(circle at 52% 0%, rgba(111, 76, 255, 0.075), transparent 33%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 44%, #fbfaff 100%) !important;
}

.guest-shell.is-tools-workspace .free-tools-page {
  width: min(100%, 1130px) !important;
  margin: 0 auto !important;
  padding-top: 16px !important;
}

.guest-shell.is-tools-workspace .free-tools-page .tools-page-actions {
  top: 0 !important;
  align-items: center !important;
}

.guest-shell.is-tools-workspace .free-tools-page .tools-unified-return {
  min-width: 168px !important;
  height: 45px !important;
  padding-inline: 8px 16px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.guest-shell.is-tools-workspace .free-tools-page .tools-xp-badge {
  min-height: 43px !important;
  height: 43px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
}

.guest-shell.is-tools-workspace .free-tools-hero {
  padding: 0 0 20px !important;
}

.guest-shell.is-tools-workspace .free-tools-title {
  gap: 12px !important;
}

.guest-shell.is-tools-workspace .free-tools-gift {
  width: 64px !important;
  height: 64px !important;
  flex-basis: 64px !important;
  border-radius: 20px !important;
  color: #6d4aff !important;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.12), rgba(111, 76, 255, 0.035)) !important;
  box-shadow: 0 16px 34px rgba(111, 76, 255, 0.09) !important;
}

.guest-shell.is-tools-workspace .free-tools-gift svg {
  width: 33px !important;
  height: 33px !important;
}

.guest-shell.is-tools-workspace .free-tools-title h1,
.tools-hero.is-subscriber-tools .tools-title-row h1 {
  font-size: clamp(1.95rem, 3vw, 2.52rem) !important;
  line-height: 1.08 !important;
}

.guest-shell.is-tools-workspace .free-tools-sparkle {
  width: 22px !important;
  height: 22px !important;
}

.guest-shell.is-tools-workspace .free-tools-sparkle svg {
  width: 21px !important;
  height: 21px !important;
}

.guest-shell.is-tools-workspace .free-tools-hero p {
  margin: 9px 0 0 !important;
  color: #8088a8 !important;
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
}

.guest-shell.is-tools-workspace .free-tools-locked-badge {
  display: none !important;
}

.guest-shell.is-tools-workspace .free-tools-page > .tools-unified-bar {
  width: min(100%, 1015px) !important;
  margin: 0 auto 22px !important;
  gap: 13px !important;
  flex-wrap: nowrap !important;
}

.guest-shell.is-tools-workspace .free-tools-page > .tools-unified-bar .tools-unified-filter {
  min-width: 108px !important;
  height: 40px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  color: #7b83a3 !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.guest-shell.is-tools-workspace .free-tools-page > .tools-unified-bar .tools-unified-filter.is-active {
  color: #6d4aff !important;
  border-color: rgba(111, 76, 255, 0.44) !important;
  background: #fff !important;
}

.guest-shell.is-tools-workspace .free-tools-grid {
  width: 100% !important;
  display: grid !important;
  direction: rtl !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px 16px !important;
}

.guest-shell.is-tools-workspace .free-tool-card {
  position: relative !important;
  height: 154px !important;
  min-height: 154px !important;
  padding: 18px 18px 12px !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 11px !important;
  border: 1px solid rgba(111, 76, 255, 0.075) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 30px rgba(30, 36, 78, 0.045) !important;
  text-align: right !important;
}

.guest-shell.is-tools-workspace .free-tool-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(111, 76, 255, 0.22) !important;
  box-shadow: 0 18px 38px rgba(80, 61, 150, 0.09) !important;
}

.guest-shell.is-tools-workspace .free-tool-card.is-unlocked {
  border-color: rgba(111, 76, 255, 0.075) !important;
  box-shadow: 0 14px 30px rgba(30, 36, 78, 0.045) !important;
}

.guest-shell.is-tools-workspace .free-tool-favorite {
  top: 16px !important;
  right: 17px !important;
  left: auto !important;
  color: #a2a9bf !important;
}

.guest-shell.is-tools-workspace .free-tool-body {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 62px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 17px !important;
  direction: ltr !important;
}

.guest-shell.is-tools-workspace .free-tool-icon {
  width: 62px !important;
  height: 62px !important;
  flex-basis: 62px !important;
  grid-column: 1 !important;
  border-radius: 20px !important;
  color: #6d4aff !important;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.12), rgba(111, 76, 255, 0.035)) !important;
}

.guest-shell.is-tools-workspace .free-tool-icon svg {
  width: 31px !important;
  height: 31px !important;
  stroke-width: 2.25 !important;
}

.guest-shell.is-tools-workspace .free-tool-copy {
  grid-column: 2 !important;
  direction: rtl !important;
  text-align: right !important;
  align-self: center !important;
  gap: 5px !important;
  padding-top: 0 !important;
}

.guest-shell.is-tools-workspace .free-tool-copy strong {
  color: #151b3a !important;
  font-size: 0.98rem !important;
  line-height: 1.25 !important;
  font-weight: 950 !important;
  -webkit-line-clamp: 2 !important;
}

.guest-shell.is-tools-workspace .free-tool-copy small {
  width: 100% !important;
  color: #828ba9 !important;
  font-size: 0.72rem !important;
  line-height: 1.48 !important;
  font-weight: 850 !important;
  -webkit-line-clamp: 2 !important;
}

.guest-shell.is-tools-workspace .free-tool-lock,
.guest-shell.is-tools-workspace .free-tool-lock.is-open,
.guest-shell.is-tools-workspace .free-tool-lock.is-development {
  width: 100% !important;
  min-height: 29px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  color: #6d4aff !important;
  background: rgba(111, 76, 255, 0.055) !important;
}

.guest-shell.is-tools-workspace .free-tool-lock b {
  font-size: 0 !important;
}

.guest-shell.is-tools-workspace .free-tool-lock b::before {
  content: "تجربة الأداة";
  font-size: 0.73rem !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

.guest-shell.is-tools-workspace .free-tool-lock svg {
  width: 12px !important;
  height: 12px !important;
  stroke-width: 2.6 !important;
}

.guest-shell.is-tools-workspace .free-tool-card:nth-child(4) .free-tool-icon,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(6) .free-tool-icon,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(9) .free-tool-icon,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(10) .free-tool-icon,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(12) .free-tool-icon,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(16) .free-tool-icon {
  color: #0f9b76 !important;
  background: rgba(15, 155, 118, 0.075) !important;
}

.guest-shell.is-tools-workspace .free-tool-card:nth-child(4) .free-tool-lock,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(6) .free-tool-lock,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(9) .free-tool-lock,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(10) .free-tool-lock,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(12) .free-tool-lock,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(16) .free-tool-lock {
  color: #0f9b76 !important;
  background: rgba(15, 155, 118, 0.07) !important;
}

.guest-shell.is-tools-workspace .free-tools-benefits {
  margin-top: 18px !important;
}

@media (max-width: 1180px) {
  .guest-shell.is-tools-workspace .free-tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .guest-shell.is-tools-workspace .free-tools-page > .tools-unified-bar {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 820px) {
  .guest-shell.is-tools-workspace .free-tools-main {
    padding: 22px 16px 28px !important;
  }

  .guest-shell.is-tools-workspace .free-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .guest-shell.is-tools-workspace .free-tools-title h1 {
    font-size: 1.9rem !important;
  }
}

@media (max-width: 560px) {
  .guest-shell.is-tools-workspace .free-tools-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Keep tool section icons on the right in RTL layouts. */
.storage-tools-title-row {
  direction: rtl !important;
}

.storage-tools-title-icon {
  order: -1 !important;
}

.summary-tools-block h2,
.data-tools-block h2,
.productivity-tools-block h2,
.education-tools-block h2 {
  direction: rtl !important;
  flex-direction: row !important;
  justify-self: start !important;
}

.summary-tools-block h2 span,
.data-tools-block h2 span,
.productivity-tools-block h2 span,
.education-tools-block h2 span {
  flex: 0 0 auto !important;
}

/* Free subscriber tools cards: keep the favorite star clean and out of the title. */
.guest-shell.is-tools-workspace .free-tool-card {
  overflow: hidden !important;
}

.guest-shell.is-tools-workspace .free-tool-favorite {
  top: 15px !important;
  right: 16px !important;
  left: auto !important;
  z-index: 3 !important;
  width: 18px !important;
  height: 18px !important;
  display: inline-grid !important;
  place-items: center !important;
  color: #a7aec3 !important;
  background: transparent !important;
  pointer-events: none !important;
}

.guest-shell.is-tools-workspace .free-tool-favorite svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
}

.guest-shell.is-tools-workspace .free-tool-copy {
  padding-inline-start: 38px !important;
}

.guest-shell.is-tools-workspace .free-tool-copy strong,
.guest-shell.is-tools-workspace .free-tool-copy small {
  text-align: right !important;
}

/* Remove watermark tool */
.guest-shell.is-tools-workspace.is-subscriber-tools .remove-watermark-main {
  padding: 0 !important;
  background: #ffffff !important;
  color: #111731 !important;
  overflow: auto !important;
}

.remove-watermark-page {
  min-height: 100vh;
  direction: rtl;
  background:
    radial-gradient(circle at 16% 14%, rgba(126, 87, 255, 0.11), transparent 32%),
    radial-gradient(circle at 86% 32%, rgba(126, 87, 255, 0.07), transparent 28%),
    #fff;
  padding: 28px 52px 34px;
}

.remove-watermark-returnbar {
  width: min(100%, 1280px);
  margin: 0 auto 20px;
  display: flex;
  justify-content: flex-start;
}

.remove-watermark-returnbar button {
  border: 0;
  background: transparent;
  color: #6d4aff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  padding: 8px 2px;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.remove-watermark-returnbar button:hover {
  color: #4f2cf5;
  transform: translateX(-2px);
}

.remove-watermark-nav {
  height: 86px;
  margin: 0 -52px 26px;
  padding: 0 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid rgba(111, 76, 255, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.remove-watermark-brand,
.remove-watermark-nav nav,
.remove-watermark-nav > div {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.remove-watermark-brand {
  text-decoration: none;
  color: #111731;
  font-size: 1.15rem;
  font-weight: 950;
}

.remove-watermark-brand span {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
}

.remove-watermark-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.remove-watermark-nav nav {
  justify-content: center;
  gap: 44px;
}

.remove-watermark-nav button {
  border: 0;
  background: transparent;
  color: #202744;
  font-weight: 850;
  cursor: pointer;
}

.remove-watermark-login,
.remove-watermark-theme {
  border: 1px solid rgba(111, 76, 255, 0.22) !important;
  background: #fff !important;
  color: #6d4aff !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(63, 43, 126, 0.06);
}

.remove-watermark-login {
  height: 42px;
  padding: 0 18px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
}

.remove-watermark-login svg,
.remove-watermark-theme svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.35;
}

.remove-watermark-theme {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #303955 !important;
}

.remove-watermark-breadcrumb {
  width: min(100%, 1180px);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: #8088a8;
  font-size: 0.88rem;
  font-weight: 800;
}

.remove-watermark-breadcrumb button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.remove-watermark-hero {
  width: min(100%, 1280px);
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: 270px 1fr 270px;
  align-items: center;
  gap: 28px;
  min-height: 192px;
}

.remove-watermark-hero.is-image {
  grid-template-columns: 250px 1fr 250px;
}

.remove-watermark-hero-art {
  position: relative;
  min-height: 168px;
}

.rw-art-card {
  position: absolute;
  inset: 28px auto auto 52px;
  width: 118px;
  height: 88px;
  border-radius: 20px;
  background: linear-gradient(145deg, #9e82ff, #6541ef);
  box-shadow: 0 28px 54px rgba(109, 74, 255, 0.25);
  transform: rotate(-8deg);
}

.rw-art-card::before {
  content: "";
  position: absolute;
  inset: 29px 38px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: #fff;
  opacity: 0.92;
}

.rw-art-card.is-small {
  width: 96px;
  height: 74px;
  inset: 54px auto auto 130px;
  transform: rotate(8deg);
  opacity: 0.78;
}

.rw-art-ring {
  position: absolute;
  inset: 82px auto auto 70px;
  width: 190px;
  height: 46px;
  border: 4px solid rgba(109, 74, 255, 0.22);
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(-12deg);
}

.remove-watermark-hero-copy {
  text-align: center;
}

.remove-watermark-hero-copy h1 {
  margin: 0;
  color: #141936;
  font-size: clamp(2.15rem, 3.4vw, 3.15rem);
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: 0;
}

.remove-watermark-hero-copy p {
  margin: 14px auto 22px;
  color: #606987;
  font-size: 1rem;
  font-weight: 700;
}

.remove-watermark-tabs {
  width: min(100%, 430px);
  height: 48px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(111, 76, 255, 0.2);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.remove-watermark-tabs button {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #7b83a3;
  font-weight: 950;
  cursor: pointer;
}

.remove-watermark-tabs button.is-active {
  color: #6d4aff;
  background: rgba(111, 76, 255, 0.04);
  box-shadow: inset 0 -2px 0 #6d4aff;
}

.remove-watermark-tabs svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.remove-watermark-hero-badges {
  display: grid;
  gap: 12px;
}

.remove-watermark-hero-badges article,
.remove-watermark-benefits article,
.remove-watermark-card,
.remove-watermark-preview-panel,
.remove-watermark-settings {
  border: 1px solid rgba(111, 76, 255, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(45, 36, 93, 0.06);
}

.remove-watermark-hero-badges article {
  min-height: 72px;
  border-radius: 12px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 12px;
  align-items: center;
}

.remove-watermark-hero-badges svg {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  color: #6d4aff;
}

.remove-watermark-hero-badges article:first-child svg {
  color: #2cc772;
}

.remove-watermark-hero-badges b,
.remove-watermark-benefits b {
  color: #141936;
  font-weight: 950;
}

.remove-watermark-hero-badges span,
.remove-watermark-benefits small {
  color: #717a98;
  font-size: 0.82rem;
  font-weight: 700;
}

.remove-watermark-card {
  width: min(100%, 1280px);
  margin: 0 auto 16px;
  border-radius: 10px;
  padding: 28px 32px 22px;
}

.remove-watermark-url-field,
.remove-watermark-url-field span,
.remove-watermark-url-field div,
.remove-watermark-dropzone,
.remove-watermark-rights {
  display: grid;
}

.remove-watermark-url-field {
  gap: 12px;
}

.remove-watermark-url-field > span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: #141936;
  font-weight: 950;
}

.remove-watermark-url-field svg {
  width: 22px;
  height: 22px;
  color: #6d4aff;
}

.remove-watermark-url-field div {
  grid-template-columns: 1fr 58px;
  border: 1px solid rgba(111, 76, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.remove-watermark-url-field input {
  height: 50px;
  border: 0;
  padding: 0 18px;
  outline: none;
  color: #141936;
  font-weight: 750;
}

.remove-watermark-url-field i {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(111, 76, 255, 0.15);
  color: #6d4aff;
}

.remove-watermark-url-field small {
  text-align: center;
  color: #6e7898;
  font-weight: 700;
}

.remove-watermark-divider {
  height: 42px;
  margin: 8px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  color: #7f87a3;
  font-weight: 900;
}

.remove-watermark-divider::before,
.remove-watermark-divider::after {
  content: "";
  height: 1px;
  background: rgba(111, 76, 255, 0.16);
}

.remove-watermark-platforms h2 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  color: #141936;
  font-size: 1rem;
  font-weight: 950;
}

.remove-watermark-platforms h2 svg {
  width: 22px;
  height: 22px;
  color: #6d4aff;
}

.remove-watermark-platforms > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.remove-watermark-platforms button {
  height: 78px;
  border: 1px solid rgba(111, 76, 255, 0.16);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  gap: 4px;
  color: #141936;
  font-weight: 900;
  cursor: pointer;
  position: relative;
}

.remove-watermark-platforms button.is-active {
  border-color: #6d4aff;
  background: rgba(111, 76, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(111, 76, 255, 0.14);
}

.remove-watermark-platforms button.is-active::after {
  content: "✓";
  position: absolute;
  top: -10px;
  right: -9px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6d4aff;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.remove-watermark-platforms b {
  font-size: 1.55rem;
  line-height: 1;
}

.is-tiktok { color: #101426; }
.is-instagram { color: #d62976; }
.is-youtube { color: #ff2626; }
.is-capcut { color: #0d0d15; }
.is-kwai { color: #ff6b00; }
.is-direct { color: #6d4aff; }

.remove-watermark-dropzone {
  min-height: 84px;
  margin-top: 16px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1.5px dashed rgba(111, 76, 255, 0.34);
  border-radius: 10px;
  padding: 15px 22px;
  color: #141936;
  cursor: pointer;
}

.remove-watermark-dropzone > span svg,
.remove-watermark-dropzone > span {
  width: 36px;
  height: 36px;
  color: #6d4aff;
}

.remove-watermark-dropzone b {
  font-weight: 950;
}

.remove-watermark-dropzone small {
  color: #68718e;
  font-weight: 700;
}

.remove-watermark-dropzone button {
  height: 42px;
  padding: 0 22px;
  border: 1px solid rgba(111, 76, 255, 0.18);
  border-radius: 10px;
  background: #fff;
  color: #6d4aff;
  font-weight: 950;
}

.remove-watermark-image-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(340px, 0.9fr);
  gap: 28px;
}

.remove-watermark-preview-panel,
.remove-watermark-settings {
  border-radius: 10px;
  padding: 22px;
}

.remove-watermark-preview-panel h2,
.remove-watermark-settings h2 {
  margin: 0 0 16px;
  color: #141936;
  font-size: 1rem;
  font-weight: 950;
}

.remove-watermark-preview {
  position: relative;
  min-height: 322px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(140deg, #d4ebff, #8fc3eb 42%, #5a8a51 43%, #2f6e52 70%, #a6d8ef);
  display: grid;
  place-items: center;
  color: #fff;
}

.remove-watermark-preview::before {
  content: "© Gemini";
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  font-weight: 800;
  pointer-events: none;
}

.remove-watermark-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 2px, transparent 2px 44px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.22) 0 2px, transparent 2px 54px);
  opacity: 0.52;
  pointer-events: none;
}

.remove-watermark-preview img {
  width: 100%;
  height: 100%;
  min-height: 322px;
  object-fit: cover;
  display: block;
}

.remove-watermark-preview.has-image::before,
.remove-watermark-preview.has-image::after {
  display: none;
}

.remove-watermark-original-badge,
.remove-watermark-preview em {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  color: #fff;
  background: rgba(22, 27, 52, 0.72);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
}

.remove-watermark-original-badge {
  top: 12px;
  left: 12px;
  padding: 7px 10px;
}

.remove-watermark-preview em {
  bottom: 12px;
  right: 12px;
  padding: 8px 12px;
}

.remove-watermark-preview-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  z-index: 3;
}

.remove-watermark-preview-placeholder svg {
  width: 44px;
  height: 44px;
}

.remove-watermark-preview > b {
  z-index: 3;
  align-self: start;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.24);
}

.remove-watermark-preview-panel footer {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.remove-watermark-preview-panel footer button,
.remove-watermark-zoom {
  height: 44px;
  border: 1px solid rgba(111, 76, 255, 0.16);
  border-radius: 9px;
  background: #fff;
  color: #6d4aff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 900;
}

.remove-watermark-preview-panel footer svg {
  width: 18px;
  height: 18px;
}

.remove-watermark-preview-panel footer button:first-child {
  padding: 0 18px;
}

.remove-watermark-zoom {
  justify-self: end;
  width: 165px;
  color: #7d86a5;
}

.remove-watermark-zoom button {
  border: 0 !important;
  width: 36px !important;
  height: 36px !important;
  color: #7d86a5 !important;
}

.remove-watermark-settings > p {
  margin: 20px 0 12px;
  color: #141936;
  font-weight: 950;
}

.remove-watermark-settings > small {
  display: block;
  margin-top: -8px;
  color: #858daa;
  font-weight: 700;
}

.remove-watermark-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.remove-watermark-choice-grid.is-two {
  grid-template-columns: repeat(2, 1fr);
}

.remove-watermark-choice-grid button {
  height: 54px;
  border: 1px solid rgba(111, 76, 255, 0.16);
  border-radius: 10px;
  background: #fff;
  color: #525d7c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 900;
  cursor: pointer;
}

.remove-watermark-choice-grid button.is-active {
  color: #6d4aff;
  border-color: #6d4aff;
  background: rgba(111, 76, 255, 0.04);
}

.remove-watermark-choice-grid svg {
  width: 18px;
  height: 18px;
}

.remove-watermark-manual-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.remove-watermark-manual-grid label {
  display: grid;
  gap: 5px;
  color: #7f87a3;
  font-size: 0.7rem;
  font-weight: 900;
}

.remove-watermark-manual-grid input {
  height: 38px;
  border: 1px solid rgba(111, 76, 255, 0.16);
  border-radius: 8px;
  padding: 0 8px;
  text-align: center;
  font-weight: 800;
}

.remove-watermark-info {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 9px;
  background: rgba(111, 76, 255, 0.075);
  color: #7d6db5;
  font-size: 0.86rem;
  line-height: 1.7;
  font-weight: 800;
}

.remove-watermark-submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #7f4dff, #5127f5);
  color: #fff;
  box-shadow: 0 16px 32px rgba(91, 53, 243, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 950;
  cursor: pointer;
}

.remove-watermark-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.remove-watermark-submit svg {
  width: 19px;
  height: 19px;
}

.remove-watermark-submit.is-wide {
  margin-top: 16px;
}

.remove-watermark-rights {
  margin-top: 16px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  color: #67718f;
  font-size: 0.86rem;
  line-height: 1.7;
  font-weight: 800;
}

.remove-watermark-rights input {
  width: 18px;
  height: 18px;
  accent-color: #6d4aff;
}

.remove-watermark-progress {
  height: 9px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(111, 76, 255, 0.08);
  overflow: hidden;
}

.remove-watermark-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #5127f5);
}

.remove-watermark-status,
.remove-watermark-job {
  margin: 12px 0 0;
  color: #6d4aff;
  font-weight: 850;
  text-align: center;
}

.remove-watermark-status.is-error {
  color: #d94f62;
}

.remove-watermark-job {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: #4d5571;
}

.remove-watermark-job a {
  color: #6d4aff;
  font-weight: 950;
}

.remove-watermark-benefits {
  width: min(100%, 1280px);
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.remove-watermark-benefits article {
  min-height: 84px;
  border-radius: 10px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 2px 14px;
  align-items: center;
}

.remove-watermark-benefits article span {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(111, 76, 255, 0.08);
  color: #6d4aff;
  display: grid;
  place-items: center;
}

.remove-watermark-benefits svg {
  width: 28px;
  height: 28px;
}

.remove-watermark-note {
  width: min(100%, 1280px);
  min-height: 54px;
  margin: 0 auto;
  border-radius: 10px;
  background: rgba(111, 76, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #707a99;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1180px) {
  .remove-watermark-page {
    padding-inline: 24px;
  }

  .remove-watermark-nav {
    margin-inline: -24px;
  }

  .remove-watermark-nav nav {
    gap: 20px;
  }

  .remove-watermark-hero,
  .remove-watermark-hero.is-image {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .remove-watermark-hero-art,
  .remove-watermark-hero-badges {
    display: none;
  }

  .remove-watermark-image-layout {
    grid-template-columns: 1fr;
  }

  .remove-watermark-platforms > div,
  .remove-watermark-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .remove-watermark-page {
    padding: 18px 14px 24px;
  }

  .remove-watermark-nav {
    height: auto;
    margin-inline: -14px;
    padding: 14px;
    grid-template-columns: 1fr;
  }

  .remove-watermark-nav nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .remove-watermark-hero-copy h1 {
    font-size: 1.85rem;
  }

  .remove-watermark-card {
    padding: 18px 14px;
  }

  .remove-watermark-platforms > div,
  .remove-watermark-benefits,
  .remove-watermark-choice-grid,
  .remove-watermark-choice-grid.is-two {
    grid-template-columns: 1fr;
  }

  .remove-watermark-preview-panel footer,
  .remove-watermark-dropzone {
    grid-template-columns: 1fr;
  }

  .remove-watermark-zoom {
    justify-self: stretch;
    width: 100%;
  }
}

/* Browser-only image flip tool */
.image-flip-main {
  background:
    radial-gradient(circle at 18% 8%, rgba(111, 76, 255, 0.09), transparent 32%),
    radial-gradient(circle at 90% 26%, rgba(111, 76, 255, 0.07), transparent 28%),
    #fbfaff !important;
}

.image-flip-page {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.image-flip-hero {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  justify-content: end !important;
  text-align: right !important;
  min-height: 120px !important;
  padding: 26px 28px !important;
  border: 1px solid rgba(111, 76, 255, 0.1) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 18px 46px rgba(37, 34, 83, 0.045) !important;
}

.image-flip-hero .png-pdf-hero-icon {
  width: 86px !important;
  height: 86px !important;
  border-radius: 24px !important;
  color: #6d4aff !important;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.12), rgba(111, 76, 255, 0.035)) !important;
}

.image-flip-hero h1 {
  margin: 0 0 8px !important;
  color: #111731 !important;
  font-size: clamp(1.9rem, 3vw, 2.55rem) !important;
  font-weight: 950 !important;
  line-height: 1.06 !important;
}

.image-flip-hero p {
  margin: 0 !important;
  color: #8189a8 !important;
  font-size: 0.95rem !important;
  font-weight: 850 !important;
}

.image-flip-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.image-flip-features article {
  min-height: 78px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(111, 76, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(37, 34, 83, 0.04);
}

.image-flip-features article span {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #6d4aff;
  background: rgba(111, 76, 255, 0.09);
}

.image-flip-features article svg {
  width: 24px;
  height: 24px;
}

.image-flip-features b,
.image-flip-features small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-flip-features b {
  color: #111731;
  font-size: 0.82rem;
  font-weight: 950;
}

.image-flip-features small {
  color: #858dab;
  font-size: 0.68rem;
  font-weight: 850;
}

.image-flip-layout {
  grid-template-columns: 295px minmax(0, 1fr) !important;
  gap: 18px !important;
}

.image-flip-controls {
  display: grid;
  gap: 16px;
  align-content: start;
}

.image-flip-controls .png-pdf-upload-card,
.image-flip-controls .png-pdf-dropzone {
  min-height: 220px !important;
}

.image-flip-type-card {
  display: grid;
  gap: 12px;
  padding: 18px !important;
}

.image-flip-type-card h2,
.image-flip-tip h2 {
  margin: 0;
  color: #111731;
  font-size: 0.92rem;
  font-weight: 950;
}

.image-flip-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.image-flip-type-grid button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(111, 76, 255, 0.18);
  border-radius: 12px;
  color: #172044;
  background: #ffffff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.image-flip-type-grid button:hover,
.image-flip-type-grid button.is-active {
  color: #6d4aff;
  border-color: rgba(111, 76, 255, 0.58);
  background: rgba(111, 76, 255, 0.065);
}

.image-flip-type-grid svg {
  width: 18px;
  height: 18px;
}

.image-flip-run {
  width: 100%;
  min-height: 54px !important;
}

.image-flip-tip {
  min-height: auto !important;
  padding: 18px !important;
}

.image-flip-tip p {
  margin: 8px 0 0;
  color: #858dab;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.75;
}

.image-flip-preview-card {
  min-height: 560px !important;
  padding: 22px !important;
}

.image-flip-preview-card header {
  align-items: center;
}

.image-flip-mode-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #0f9b76;
  background: rgba(15, 155, 118, 0.08);
  font-size: 0.72rem;
  font-weight: 950;
}

.image-flip-compare {
  position: relative;
  min-height: 380px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  overflow: hidden;
}

.image-flip-compare.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.image-flip-compare.is-empty {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(111, 76, 255, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, #faf8ff, #ffffff);
}

.image-flip-compare.is-empty > div {
  display: grid;
  place-items: center;
  gap: 12px;
  color: #7c87a7;
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.image-flip-compare.is-empty svg {
  width: 56px;
  height: 56px;
  color: #6d4aff;
}

.image-flip-compare figure {
  position: relative;
  min-width: 0;
  min-height: 380px;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f4ff, #ffffff);
}

.image-flip-compare figcaption {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #7b83a3;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(37, 34, 83, 0.06);
  font-size: 0.7rem;
  font-weight: 950;
}

.image-flip-compare figcaption.is-success {
  color: #0f9b76;
  background: rgba(236, 255, 247, 0.92);
}

.image-flip-compare img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(37, 34, 83, 0.1);
}

.image-flip-divider {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #6d4aff;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 34, 83, 0.12);
  transform: translate(-50%, -50%);
  font-size: 1rem;
  font-weight: 950;
}

.image-flip-result-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
}

.image-flip-result-actions .png-pdf-download,
.image-flip-result-actions .image-rotator-reset {
  min-height: 54px;
}

.image-flip-result-actions .png-pdf-download:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 1120px) {
  .image-flip-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-flip-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 680px) {
  .image-flip-hero,
  .image-flip-features,
  .image-flip-compare,
  .image-flip-result-actions,
  .image-flip-type-grid {
    grid-template-columns: 1fr !important;
  }

  .image-flip-hero {
    text-align: center !important;
    justify-items: center !important;
  }

  .image-flip-compare figure {
    min-height: 260px;
  }

  .image-flip-divider {
    display: none;
  }
}

.image-ocr-main {
  background:
    radial-gradient(circle at 82% 4%, rgba(124, 82, 255, 0.11), transparent 28%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 48%, #fbfaff 100%);
}

.image-ocr-page {
  width: min(1380px, calc(100vw - 52px));
  margin: 0 auto;
  padding: 26px 0 38px;
}

.image-ocr-back {
  margin-bottom: 18px;
}

.image-ocr-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  min-height: 112px;
  text-align: right;
}

.image-ocr-hero-icon {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #6d4aff;
  background: linear-gradient(145deg, #ffffff, #f0eaff);
  border: 1px solid #eee8ff;
  box-shadow: 0 22px 54px rgba(109, 74, 255, 0.13);
}

.image-ocr-hero-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 2.4;
}

.image-ocr-hero h1 {
  margin: 0;
  color: #14142b;
  font-size: clamp(32px, 3.1vw, 48px);
  font-weight: 900;
  letter-spacing: 0;
}

.image-ocr-hero p,
.image-ocr-hero small {
  display: block;
  margin: 10px 0 0;
  color: #7b7a99;
  font-size: 16px;
  font-weight: 700;
}

.image-ocr-hero small {
  margin-top: 6px;
  color: #9090ab;
  font-size: 14px;
}

.image-ocr-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 2px 0 20px;
}

.image-ocr-features article {
  min-height: 82px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  column-gap: 12px;
  padding: 14px 16px;
  border: 1px solid #ece5ff;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(32, 20, 70, 0.05);
}

.image-ocr-features article span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f1ecff;
}

.image-ocr-features article svg {
  width: 20px;
  height: 20px;
}

.image-ocr-features article b {
  color: #14142b;
  font-size: 14px;
  font-weight: 900;
}

.image-ocr-features article small {
  color: #8a8aa7;
  font-size: 12px;
  font-weight: 700;
}

.image-ocr-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  direction: ltr;
}

.image-ocr-layout > * {
  direction: rtl;
}

.image-ocr-controls {
  display: grid;
  gap: 14px;
}

.image-ocr-upload-card,
.image-ocr-settings-card,
.image-ocr-tips,
.image-ocr-result-card {
  border: 1px solid #ebe4ff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(31, 20, 65, 0.06);
}

.image-ocr-upload-card {
  padding: 14px;
}

.image-ocr-dropzone {
  min-height: 315px;
  border: 1.5px dashed #b9a7ff;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: linear-gradient(180deg, rgba(250, 248, 255, 0.96), rgba(255, 255, 255, 0.92));
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.image-ocr-dropzone.is-drag-over {
  border-color: #6d4aff;
  box-shadow: inset 0 0 0 4px rgba(109, 74, 255, 0.08);
  transform: translateY(-1px);
}

.image-ocr-dropzone > span {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f0eaff;
}

.image-ocr-dropzone > span svg {
  width: 38px;
  height: 38px;
}

.image-ocr-dropzone h2 {
  margin: 0;
  color: #14142b;
  font-size: 18px;
  font-weight: 900;
}

.image-ocr-dropzone p,
.image-ocr-dropzone small {
  margin: 0;
  color: #8c8ba9;
  font-size: 13px;
  font-weight: 700;
}

.image-ocr-settings-card,
.image-ocr-tips {
  padding: 16px;
}

.image-ocr-settings-card h2,
.image-ocr-tips h2 {
  margin: 0 0 12px;
  color: #14142b;
  font-size: 15px;
  font-weight: 900;
}

.image-ocr-language-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.image-ocr-language-grid button,
.image-ocr-toggle {
  min-height: 42px;
  border: 1px solid #e8e2ff;
  border-radius: 12px;
  background: #ffffff;
  color: #6f6f91;
  font-weight: 900;
  cursor: pointer;
}

.image-ocr-language-grid button.is-active {
  color: #6d4aff;
  border-color: #9c86ff;
  background: #f5f1ff;
}

.image-ocr-toggle {
  margin-top: 10px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.image-ocr-toggle input {
  accent-color: #6d4aff;
}

.image-ocr-tips {
  display: grid;
  gap: 8px;
}

.image-ocr-tips div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8f6ff;
}

.image-ocr-tips div span {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #ffffff;
}

.image-ocr-tips p {
  margin: 0;
  color: #777694;
  font-size: 13px;
  font-weight: 800;
}

.image-ocr-result-card {
  min-height: 640px;
  padding: 18px;
}

.image-ocr-result-card > header,
.image-ocr-text-panel header,
.image-ocr-run-row,
.image-ocr-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.image-ocr-result-card > header h2,
.image-ocr-text-panel h3 {
  margin: 0;
  color: #14142b;
  font-size: 15px;
  font-weight: 900;
}

.image-ocr-result-card > header button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #ffd9df;
  border-radius: 11px;
  background: #fff6f7;
  color: #e94b61;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  cursor: pointer;
}

.image-ocr-result-card > header button svg {
  width: 16px;
  height: 16px;
}

.image-ocr-preview-frame {
  margin-top: 12px;
  min-height: 252px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee9ff;
  background: #fbfaff;
  display: grid;
  place-items: center;
}

.image-ocr-preview-frame img {
  width: 100%;
  height: 100%;
  max-height: 292px;
  object-fit: cover;
  display: block;
}

.image-ocr-preview-frame.is-empty div {
  display: grid;
  place-items: center;
  gap: 10px;
  color: #8d8cab;
  text-align: center;
  font-weight: 800;
}

.image-ocr-preview-frame.is-empty span {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f0eaff;
}

.image-ocr-preview-frame.is-empty svg {
  width: 38px;
  height: 38px;
}

.image-ocr-preview-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.image-ocr-preview-tools span,
.image-ocr-language-pill,
.image-ocr-success {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #777694;
  background: #f7f5ff;
  border: 1px solid #ede7ff;
  font-size: 12px;
  font-weight: 900;
}

.image-ocr-success {
  color: #16a05d;
  background: #ecfff5;
  border-color: #c9f3dc;
}

.image-ocr-run-row {
  margin: 10px 0 14px;
}

.image-ocr-run-row .png-pdf-convert {
  width: min(320px, 100%);
}

.image-ocr-text-panel {
  border: 1px solid #eee8ff;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.image-ocr-text-panel header {
  padding: 12px 14px;
  border-bottom: 1px solid #f0ecff;
}

.image-ocr-text-panel pre {
  margin: 0;
  min-height: 188px;
  max-height: 300px;
  overflow: auto;
  padding: 18px;
  color: #17172f;
  font: 800 15px/1.9 "Cairo", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  white-space: pre-wrap;
  background: linear-gradient(180deg, #ffffff, #fcfbff);
}

.image-ocr-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 14px;
}

.image-ocr-actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #e6defe;
  border-radius: 12px;
  background: #ffffff;
  color: #6d4aff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  cursor: pointer;
}

.image-ocr-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.image-ocr-actions button svg {
  width: 17px;
  height: 17px;
}

.image-ocr-status {
  margin-top: 16px;
}

@media (max-width: 1100px) {
  .image-ocr-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-ocr-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .image-ocr-page {
    width: min(100% - 22px, 560px);
    padding-top: 16px;
  }

  .image-ocr-hero {
    align-items: flex-start;
    gap: 14px;
  }

  .image-ocr-hero-icon {
    width: 66px;
    height: 66px;
    border-radius: 20px;
  }

  .image-ocr-hero-icon svg {
    width: 32px;
    height: 32px;
  }

  .image-ocr-hero h1 {
    font-size: 28px;
  }

  .image-ocr-features {
    grid-template-columns: 1fr;
  }

  .image-ocr-dropzone {
    min-height: 250px;
  }

  .image-ocr-result-card {
    min-height: auto;
    padding: 14px;
  }

  .image-ocr-run-row,
  .image-ocr-result-card > header,
  .image-ocr-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .image-ocr-run-row .png-pdf-convert,
  .image-ocr-actions button {
    width: 100%;
    justify-content: center;
  }
}

.delete-pages-main {
  background:
    radial-gradient(circle at 18% 18%, rgba(139, 92, 246, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 58%, #fbfaff 100%);
  color: #14142b;
}

.delete-pages-page {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 36px;
  direction: rtl;
}

.delete-pages-back {
  margin-bottom: 14px;
}

.delete-pages-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  min-height: 128px;
  padding: 24px 6px 18px;
  text-align: right;
}

.delete-pages-hero-icon {
  width: 92px;
  height: 92px;
  border-radius: 30px;
  display: inline-grid;
  place-items: center;
  color: #6d4aff;
  background: linear-gradient(145deg, #ffffff, #f1ecff);
  border: 1px solid rgba(109, 74, 255, 0.12);
  box-shadow: 0 22px 48px rgba(109, 74, 255, 0.12);
  flex: 0 0 auto;
}

.delete-pages-hero-icon svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delete-pages-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 900;
  color: #10122d;
  letter-spacing: 0;
}

.delete-pages-hero p {
  margin: 0;
  max-width: 670px;
  color: #8286a3;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 800;
}

.delete-pages-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 2px 0 18px;
}

.delete-pages-features article {
  min-height: 72px;
  border: 1px solid rgba(109, 74, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(20, 20, 43, 0.035);
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 12px;
}

.delete-pages-features article span {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f2edff;
}

.delete-pages-features article svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.delete-pages-features b {
  color: #14142b;
  font-size: 13px;
  font-weight: 900;
}

.delete-pages-features small {
  color: #8a8faa;
  font-size: 11px;
  font-weight: 800;
}

.delete-pages-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 2fr);
  gap: 12px;
  align-items: stretch;
  direction: ltr;
}

.delete-pages-sidebar,
.delete-pages-workspace,
.delete-pages-compare article,
.delete-pages-tools-row article {
  border: 1px solid rgba(109, 74, 255, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(20, 20, 43, 0.045);
}

.delete-pages-sidebar {
  border-radius: 18px;
  overflow: hidden;
  direction: rtl;
}

.delete-pages-upload {
  padding: 14px;
}

.delete-pages-dropzone {
  min-height: 236px;
  border: 1.5px dashed rgba(109, 74, 255, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 243, 255, 0.78));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 18px 14px;
  transition: 0.2s ease;
}

.delete-pages-dropzone.is-drag-over {
  border-color: #6d4aff;
  box-shadow: 0 0 0 5px rgba(109, 74, 255, 0.08);
}

.delete-pages-dropzone > span {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f2edff;
}

.delete-pages-dropzone svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delete-pages-dropzone h2 {
  margin: 0;
  color: #15152f;
  font-size: 16px;
  font-weight: 900;
}

.delete-pages-dropzone p,
.delete-pages-dropzone small {
  margin: 0;
  color: #8a8faa;
  font-weight: 800;
}

.delete-pages-dropzone small {
  font-size: 10px;
}

.delete-pages-thumbs-card {
  border-top: 1px solid rgba(109, 74, 255, 0.1);
  padding: 14px;
}

.delete-pages-thumbs-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.delete-pages-thumbs-card header b {
  color: #15152f;
  font-size: 14px;
  font-weight: 900;
}

.delete-pages-thumbs-card header span,
.delete-pages-selected-label {
  color: #8b90aa;
  font-size: 11px;
  font-weight: 900;
}

.delete-pages-selected-label {
  display: block;
  color: #ef4444;
  margin-bottom: 8px;
}

.delete-pages-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-height: 112px;
}

.delete-pages-thumbs button {
  position: relative;
  min-height: 84px;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid rgba(109, 74, 255, 0.12);
  background: #fff;
  cursor: pointer;
  transition: 0.16s ease;
}

.delete-pages-thumbs button:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 74, 255, 0.42);
}

.delete-pages-thumbs button.is-selected {
  border-color: #ff6b6b;
  background: #fff5f5;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.12);
}

.delete-pages-thumbs img {
  width: 100%;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
  background: #f5f3ff;
}

.delete-pages-thumbs button > span {
  display: block;
  color: #15152f;
  font-size: 11px;
  font-weight: 900;
  margin-top: 3px;
}

.delete-pages-thumbs i {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ff4d5e;
  color: #fff;
  font-size: 11px;
  font-style: normal;
}

.delete-pages-thumbs.is-empty {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #faf8ff;
  color: #8a8faa;
  text-align: center;
}

.delete-pages-thumbs.is-empty svg {
  width: 26px;
  height: 26px;
  color: #8b5cf6;
  stroke: currentColor;
  fill: none;
}

.delete-pages-danger,
.delete-pages-clear {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.delete-pages-danger {
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: #fff5f5;
  color: #e5485b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.delete-pages-danger svg,
.delete-pages-clear svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.delete-pages-clear {
  border: 1px solid rgba(109, 74, 255, 0.12);
  background: #fff;
  color: #6d4aff;
}

.delete-pages-danger:disabled,
.delete-pages-clear:disabled,
.delete-pages-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.delete-pages-workspace {
  border-radius: 18px;
  padding: 14px;
  direction: rtl;
}

.delete-pages-compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-height: 342px;
  direction: ltr;
}

.delete-pages-compare article {
  border-radius: 16px;
  padding: 14px;
  min-height: 340px;
  direction: rtl;
}

.delete-pages-compare header {
  display: flex;
  justify-content: space-between;
  color: #15152f;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.delete-pages-divider {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #6d4aff;
  border: 1px solid rgba(109, 74, 255, 0.12);
  box-shadow: 0 12px 24px rgba(20, 20, 43, 0.08);
  font-weight: 900;
}

.delete-pages-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 10px;
  align-content: start;
  min-height: 275px;
}

.delete-pages-preview-grid figure {
  position: relative;
  margin: 0;
  min-height: 122px;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f4ff;
  border: 1px solid rgba(20, 20, 43, 0.08);
  box-shadow: 0 10px 18px rgba(20, 20, 43, 0.05);
}

.delete-pages-preview-grid figure.is-removed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(239, 68, 68, 0.14);
  border: 2px solid #ff6b6b;
  border-radius: inherit;
}

.delete-pages-preview-grid figure.is-removed::before {
  content: "حذف";
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: #ff4d5e;
  font-size: 10px;
  font-weight: 900;
}

.delete-pages-preview-grid img {
  width: 100%;
  height: 100%;
  min-height: 122px;
  object-fit: cover;
  display: block;
}

.delete-pages-preview-grid.is-empty {
  display: grid;
  place-items: center;
  color: #8a8faa;
  font-weight: 800;
  text-align: center;
  border-radius: 12px;
  background: #faf8ff;
}

.delete-pages-tools-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 1.2fr;
  gap: 12px;
  margin-top: 14px;
}

.delete-pages-tools-row article {
  min-height: 84px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  color: #15152f;
  font-weight: 900;
}

.delete-pages-tools-row small {
  color: #8a8faa;
  font-size: 12px;
  font-weight: 900;
}

.delete-pages-tools-row b {
  color: #15152f;
  font-size: 13px;
  font-weight: 900;
}

.delete-pages-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.delete-pages-actions .png-pdf-download,
.delete-pages-actions .image-rotator-reset {
  width: 100%;
  min-height: 54px;
  justify-content: center;
}

.delete-pages-status {
  margin-top: 14px;
}

.delete-pages-success {
  margin: 14px 0 0;
  min-height: 38px;
  border-radius: 8px;
  background: #eefbf4;
  color: #12a166;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
}

.delete-pages-success svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
}

@media (max-width: 1100px) {
  .delete-pages-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delete-pages-layout,
  .delete-pages-compare {
    grid-template-columns: 1fr;
  }

  .delete-pages-divider {
    position: static;
    transform: none;
    margin: -2px auto;
  }
}

@media (max-width: 680px) {
  .delete-pages-page {
    width: min(100% - 22px, 560px);
    padding-top: 16px;
  }

  .delete-pages-hero {
    align-items: flex-start;
    padding-top: 10px;
  }

  .delete-pages-hero-icon {
    width: 66px;
    height: 66px;
    border-radius: 20px;
  }

  .delete-pages-hero-icon svg {
    width: 32px;
    height: 32px;
  }

  .delete-pages-hero h1 {
    font-size: 27px;
  }

  .delete-pages-features,
  .delete-pages-tools-row,
  .delete-pages-actions {
    grid-template-columns: 1fr;
  }

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

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

.edit-image-text-main {
  min-height: 100vh;
  background: linear-gradient(180deg, #fbfaff 0%, #ffffff 34%, #fbf9ff 100%);
  color: #10132f;
  overflow-x: hidden;
}

.edit-image-text-page {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.edit-image-text-back {
  margin: 0 0 14px auto;
}

.edit-image-text-hero {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 12px 0 20px;
  text-align: right;
}

.edit-image-text-hero-icon {
  width: 94px;
  height: 94px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: linear-gradient(145deg, #ffffff, #f3edff);
  box-shadow: 0 18px 42px rgba(109, 74, 255, 0.14);
  border: 1px solid #eee8ff;
  flex: 0 0 auto;
}

.edit-image-text-hero-icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edit-image-text-hero h1 {
  margin: 0;
  font-size: clamp(31px, 3.9vw, 48px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
  color: #11142f;
}

.edit-image-text-hero p {
  margin: 10px 0 0;
  color: #7c82a0;
  font-size: 16px;
  font-weight: 700;
  max-width: 700px;
}

.edit-image-text-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 22px;
}

.edit-image-text-features article {
  min-height: 72px;
  border: 1px solid #eee8ff;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(23, 18, 55, 0.05);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: center;
  direction: rtl;
}

.edit-image-text-features article span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  grid-row: span 2;
  color: #6d4aff;
  background: #f4efff;
}

.edit-image-text-features svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edit-image-text-features b {
  color: #10132f;
  font-size: 13px;
  font-weight: 900;
}

.edit-image-text-features small {
  color: #8a90aa;
  font-size: 11px;
  font-weight: 700;
}

.edit-image-text-workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  direction: ltr;
  align-items: start;
}

.edit-image-text-workspace > * {
  direction: rtl;
}

.edit-image-text-sidebar {
  display: grid;
  gap: 14px;
}

.edit-image-text-upload,
.edit-image-text-panel,
.edit-image-text-preview-card,
.edit-image-text-export article,
.edit-image-text-export aside {
  border: 1px solid #ece6ff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 40px rgba(31, 25, 75, 0.06);
}

.edit-image-text-upload,
.edit-image-text-panel {
  padding: 16px;
}

.edit-image-text-upload > strong,
.edit-image-text-panel > header strong,
.edit-image-text-preview-card > header strong,
.edit-image-text-export strong {
  color: #11142f;
  font-size: 15px;
  font-weight: 900;
}

.edit-image-text-dropzone {
  margin-top: 12px;
  min-height: 210px;
  border: 1.5px dashed #bba9ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #fdfcff, #fbf8ff);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px 18px;
  color: #151835;
}

.edit-image-text-dropzone.is-drag-over {
  border-color: #6d4aff;
  background: #f5f0ff;
}

.edit-image-text-dropzone > span {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f2ecff;
}

.edit-image-text-dropzone svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edit-image-text-dropzone h2 {
  margin: 12px 0 4px;
  font-size: 16px;
  font-weight: 900;
}

.edit-image-text-dropzone p,
.edit-image-text-dropzone small {
  margin: 0;
  color: #8a90aa;
  font-size: 12px;
  font-weight: 700;
}

.edit-image-text-dropzone .png-pdf-primary {
  width: min(190px, 100%);
  height: 44px;
  margin: 12px auto 8px;
  border-radius: 10px;
}

.edit-image-text-panel header,
.edit-image-text-preview-card > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.edit-image-text-panel header button,
.edit-image-text-preview-actions button,
.edit-image-text-editor header button {
  min-height: 36px;
  border: 1px solid #ece6ff;
  border-radius: 10px;
  background: #fff;
  color: #6d4aff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-weight: 900;
}

.edit-image-text-panel header button:disabled,
.edit-image-text-preview-actions button:disabled {
  opacity: 0.45;
}

.edit-image-text-panel header button svg,
.edit-image-text-editor header button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.edit-image-text-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.edit-image-text-tabs button {
  height: 42px;
  border: 1px solid #ece6ff;
  border-radius: 12px;
  background: #fff;
  color: #7e85a2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
}

.edit-image-text-tabs button.is-active {
  color: #6d4aff;
  border-color: #bcaaff;
  background: #f5f0ff;
}

.edit-image-text-tabs svg,
.edit-image-text-layer svg,
.edit-image-text-add-row svg,
.edit-image-text-export svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edit-image-text-layers {
  display: grid;
  gap: 8px;
  max-height: 228px;
  overflow: auto;
  padding-inline-end: 2px;
}

.edit-image-text-layer {
  min-height: 58px;
  border: 1px solid #eee8ff;
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  text-align: right;
  color: #11142f;
}

.edit-image-text-layer.is-active {
  border-color: #9b83ff;
  background: #f8f4ff;
  box-shadow: inset 0 0 0 1px rgba(109, 74, 255, 0.08);
}

.edit-image-text-layer span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f2ecff;
}

.edit-image-text-layer b {
  min-width: 0;
  color: #11142f;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-image-text-layer small {
  min-width: 0;
  color: #8a90aa;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-image-text-empty-layer {
  min-height: 96px;
  border-radius: 14px;
  background: #faf8ff;
  display: grid;
  place-items: center;
  text-align: center;
  color: #8a90aa;
  padding: 16px;
}

.edit-image-text-empty-layer span {
  color: #6d4aff;
}

.edit-image-text-add-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.edit-image-text-add-row button {
  min-height: 42px;
  border: 1px solid #bcaaff;
  border-radius: 12px;
  background: #fff;
  color: #6d4aff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 900;
}

.edit-image-text-editor {
  border-top: 1px solid #f0eaff;
  padding-top: 12px;
  display: grid;
  gap: 10px;
}

.edit-image-text-editor header button {
  color: #ef4444;
}

.edit-image-text-editor label {
  display: grid;
  gap: 6px;
  color: #11142f;
  font-size: 12px;
  font-weight: 900;
}

.edit-image-text-editor textarea,
.edit-image-text-editor input,
.edit-image-text-editor select {
  width: 100%;
  border: 1px solid #e7e0ff;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  color: #11142f;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.edit-image-text-editor textarea:focus,
.edit-image-text-editor input:focus,
.edit-image-text-editor select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.12);
}

.edit-image-text-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.edit-image-text-editor details {
  border: 1px solid #f0eaff;
  border-radius: 12px;
  padding: 10px;
}

.edit-image-text-editor summary {
  cursor: pointer;
  color: #6d4aff;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.edit-image-text-preview-card {
  padding: 16px;
  min-height: 590px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
}

.edit-image-text-preview-actions {
  display: inline-flex;
  gap: 8px;
}

.edit-image-text-stage-wrap {
  min-height: 430px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f8f6ff);
  border: 1px solid #f0eaff;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 18px;
}

.edit-image-text-stage-wrap.is-empty {
  overflow: hidden;
}

.edit-image-text-stage {
  position: relative;
  transform-origin: center;
  transition: transform 0.18s ease;
  max-width: 100%;
}

.edit-image-text-stage img {
  display: block;
  max-width: min(100%, 900px);
  max-height: 510px;
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(20, 20, 45, 0.09);
}

.edit-image-text-box {
  position: absolute;
  border: 1.5px dashed #7c5cff;
  border-radius: 8px;
  padding: 4px 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 900;
  line-height: 1.14;
  white-space: pre-wrap;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(109, 74, 255, 0.12);
}

.edit-image-text-box.is-link {
  border-color: #22c55e;
}

.edit-image-text-box.is-selected {
  border-style: solid;
  box-shadow: 0 0 0 4px rgba(109, 74, 255, 0.17), 0 12px 30px rgba(109, 74, 255, 0.15);
}

.edit-image-text-box i {
  position: absolute;
  top: -1px;
  inset-inline-end: -1px;
  border-radius: 0 8px 0 8px;
  background: #6d4aff;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  padding: 3px 7px;
}

.edit-image-text-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  color: #8a90aa;
  gap: 10px;
}

.edit-image-text-placeholder span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #f3edff;
  color: #6d4aff;
}

.edit-image-text-placeholder svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.edit-image-text-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  border: 1px solid #ece6ff;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
}

.edit-image-text-toolbar button,
.edit-image-text-toolbar span {
  min-width: 42px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f7f3ff;
  font-weight: 900;
}

.edit-image-text-toolbar span {
  min-width: 58px;
  color: #7c82a0;
  background: #fff;
}

.edit-image-text-export {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 18px;
  direction: ltr;
}

.edit-image-text-export > * {
  direction: rtl;
  padding: 16px;
}

.edit-image-text-export-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.edit-image-text-export label {
  display: grid;
  gap: 6px;
  color: #7c82a0;
  font-size: 12px;
  font-weight: 900;
}

.edit-image-text-export select {
  min-height: 44px;
  border: 1px solid #e7e0ff;
  border-radius: 12px;
  padding: 0 12px;
  color: #11142f;
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.edit-image-text-export .png-pdf-convert,
.edit-image-text-export .png-pdf-download,
.edit-image-text-export .image-rotator-reset {
  min-height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.edit-image-text-export aside {
  display: grid;
  gap: 10px;
  align-content: center;
}

.edit-image-text-export aside p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #17a673;
  font-size: 13px;
  font-weight: 800;
}

.edit-image-text-export aside svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
}

.edit-image-text-status {
  margin-top: 14px;
}

@media (max-width: 1120px) {
  .edit-image-text-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edit-image-text-workspace,
  .edit-image-text-export {
    grid-template-columns: 1fr;
  }

  .edit-image-text-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .edit-image-text-preview-card {
    min-height: 520px;
  }
}

@media (max-width: 720px) {
  .edit-image-text-page {
    width: min(100% - 22px, 560px);
    padding-top: 16px;
  }

  .edit-image-text-hero {
    align-items: flex-start;
    gap: 14px;
  }

  .edit-image-text-hero-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .edit-image-text-hero-icon svg {
    width: 34px;
    height: 34px;
  }

  .edit-image-text-hero h1 {
    font-size: 28px;
  }

  .edit-image-text-hero p {
    font-size: 14px;
  }

  .edit-image-text-features,
  .edit-image-text-sidebar,
  .edit-image-text-export-grid {
    grid-template-columns: 1fr;
  }

  .edit-image-text-stage-wrap {
    min-height: 300px;
    padding: 10px;
  }

  .edit-image-text-stage img {
    max-height: 330px;
  }

  .edit-image-text-field-grid,
  .edit-image-text-add-row {
    grid-template-columns: 1fr;
  }
}

/* Unified tool card states: available tools stay Orlixor purple, dev tools stay warm orange. */
.tool-availability-badge,
.tool-availability-badge.is-available,
.storage-tool-availability.is-available {
  color: #6d4aff !important;
  background: rgba(111, 76, 255, 0.1) !important;
  box-shadow: inset 0 0 0 1px rgba(111, 76, 255, 0.08) !important;
}

.tool-availability-badge.is-development,
.storage-tool-availability.is-development,
.free-tool-availability.is-development,
.guest-shell.is-tools-workspace .free-tool-lock.is-development,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-lock.is-development {
  color: #9b6a10 !important;
  background: rgba(255, 185, 80, 0.14) !important;
  border-color: rgba(255, 185, 80, 0.28) !important;
}

.free-tool-card.is-unlocked,
.guest-shell.is-tools-workspace .free-tool-card.is-unlocked,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-card.is-unlocked {
  border-color: rgba(111, 76, 255, 0.16) !important;
  box-shadow: 0 16px 34px rgba(111, 76, 255, 0.07) !important;
}

.free-tool-card.is-unlocked .free-tool-icon,
.guest-shell.is-tools-workspace .free-tool-card.is-unlocked .free-tool-icon,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-card.is-unlocked .free-tool-icon {
  color: #6d4aff !important;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.13), rgba(111, 76, 255, 0.04)) !important;
}

.guest-shell.is-tools-workspace .free-tool-card:nth-child(4) .free-tool-icon,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(6) .free-tool-icon,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(9) .free-tool-icon,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(10) .free-tool-icon,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(12) .free-tool-icon,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(16) .free-tool-icon,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(4) .free-tool-lock,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(6) .free-tool-lock,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(9) .free-tool-lock,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(10) .free-tool-lock,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(12) .free-tool-lock,
.guest-shell.is-tools-workspace .free-tool-card:nth-child(16) .free-tool-lock {
  color: #6d4aff !important;
  background: rgba(111, 76, 255, 0.075) !important;
}

.free-tool-availability {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6d4aff;
  background: rgba(111, 76, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(111, 76, 255, 0.08);
  font-size: 0.67rem;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.free-tool-availability.is-unavailable {
  color: #7f87a8;
  background: rgba(127, 135, 168, 0.1);
  box-shadow: inset 0 0 0 1px rgba(127, 135, 168, 0.07);
}

.guest-shell.is-tools-workspace .free-tool-favorite,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-favorite {
  top: 16px !important;
  left: 16px !important;
  right: auto !important;
}

.guest-shell.is-tools-workspace .free-tool-lock,
.guest-shell.is-tools-workspace .free-tool-lock.is-open,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-lock,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-lock.is-open {
  width: fit-content !important;
  min-height: 34px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(111, 76, 255, 0.42) !important;
  border-radius: 999px !important;
  gap: 8px !important;
  color: #6d4aff !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(111, 76, 255, 0.08) !important;
}

.guest-shell.is-tools-workspace .free-tool-lock b,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-lock b {
  font-size: 0.75rem !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

.guest-shell.is-tools-workspace .free-tool-lock b::before,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-lock b::before {
  content: none !important;
  display: none !important;
}

.guest-shell.is-tools-workspace .free-tool-lock > span[aria-hidden="true"],
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-lock > span[aria-hidden="true"] {
  font-size: 0.86rem;
  line-height: 1;
  transform: translateY(-1px);
}

.guest-shell.is-tools-workspace .free-tool-card.requires-auth .free-tool-lock,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-card.requires-auth .free-tool-lock {
  color: #7f87a8 !important;
  background: rgba(127, 135, 168, 0.08) !important;
  border-color: rgba(127, 135, 168, 0.18) !important;
  box-shadow: none !important;
}

.guest-shell.is-tools-workspace .free-tool-lock.is-development,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-lock.is-development,
.guest-shell.is-tools-workspace .free-tool-card.is-development .free-tool-lock,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-card.is-development .free-tool-lock {
  color: #9b6a10 !important;
  background: rgba(255, 185, 80, 0.14) !important;
  border-color: rgba(255, 185, 80, 0.32) !important;
  box-shadow: none !important;
}

/* Fix free tools overlap: keep the availability pill above the content lane. */
.guest-shell.is-tools-workspace .free-tool-card,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-card {
  height: 182px !important;
  min-height: 182px !important;
  padding: 42px 18px 14px !important;
  gap: 10px !important;
  overflow: hidden !important;
}

.guest-shell.is-tools-workspace .free-tool-card.is-development,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-card.is-development {
  padding-top: 36px !important;
}

.guest-shell.is-tools-workspace .free-tool-availability,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-availability {
  top: 13px !important;
  right: 46px !important;
  left: auto !important;
  max-width: calc(100% - 92px) !important;
  min-height: 26px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  color: #009e72 !important;
  background: #dffbed !important;
  box-shadow: inset 0 0 0 1px rgba(0, 158, 114, 0.07) !important;
  font-size: 0.67rem !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

.guest-shell.is-tools-workspace .free-tool-availability.is-unavailable,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-availability.is-unavailable {
  color: #7f87a8 !important;
  background: rgba(127, 135, 168, 0.1) !important;
  box-shadow: inset 0 0 0 1px rgba(127, 135, 168, 0.07) !important;
}

.guest-shell.is-tools-workspace .free-tool-availability.is-development,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-availability.is-development {
  color: #9b6a10 !important;
  background: rgba(255, 185, 80, 0.14) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 185, 80, 0.28) !important;
}

.guest-shell.is-tools-workspace .free-tool-favorite,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-favorite {
  top: 16px !important;
  left: 18px !important;
  right: auto !important;
  z-index: 3 !important;
}

.guest-shell.is-tools-workspace .free-tool-body,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-body {
  min-height: 88px !important;
  align-items: center !important;
}

.guest-shell.is-tools-workspace .free-tool-copy strong,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-copy strong {
  min-height: 2.5em !important;
  display: -webkit-box !important;
  overflow: hidden !important;
}

.guest-shell.is-tools-workspace .free-tool-copy small,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-copy small {
  min-height: 2.95em !important;
}

.guest-shell.is-tools-workspace .free-tool-lock,
.guest-shell.is-tools-workspace .free-tool-lock.is-open,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-lock,
.guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-lock.is-open {
  align-self: center !important;
  min-width: 134px !important;
  max-width: 100% !important;
}

@media (max-width: 760px) {
  .guest-shell.is-tools-workspace .free-tool-card,
  .guest-shell.is-tools-workspace.is-subscriber-tools .free-tool-card {
    height: auto !important;
    min-height: 178px !important;
  }
}

.tool-availability-badge.is-available,
.storage-tool-availability.is-available {
  color: #009e72 !important;
  background: #dffbed !important;
  box-shadow: inset 0 0 0 1px rgba(0, 158, 114, 0.07) !important;
}

/* File merger free tool */
.file-merger-main {
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at 86% 8%, rgba(111, 76, 255, 0.1), transparent 34%),
    radial-gradient(circle at 10% 26%, rgba(111, 76, 255, 0.08), transparent 30%),
    #fbfaff;
  color: #14142b;
}

.file-merger-page {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.file-merger-back {
  margin: 0 0 20px auto;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid #e8e2ff;
  color: #6d4aff;
  background: #fff;
  box-shadow: 0 16px 30px rgba(111, 76, 255, 0.08);
}

.file-merger-hero {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  justify-content: end;
  gap: 22px;
  margin-bottom: 18px;
  text-align: right;
}

.file-merger-hero-icon {
  width: 88px;
  height: 88px;
  display: inline-grid;
  place-items: center;
  border-radius: 28px;
  color: #6d4aff;
  background: linear-gradient(145deg, rgba(111, 76, 255, 0.13), rgba(255, 255, 255, 0.95));
  box-shadow: 0 22px 45px rgba(111, 76, 255, 0.12);
}

.file-merger-hero-icon svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.file-merger-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 950;
  letter-spacing: 0;
}

.file-merger-hero p {
  margin: 0;
  max-width: 620px;
  margin-right: auto;
  color: #7b7a99;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.9;
}

.file-merger-features,
.file-merger-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.file-merger-features article,
.file-merger-benefits article,
.file-merger-side,
.file-merger-list-panel,
.file-merger-preview-panel {
  border: 1px solid #ece6ff;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(20, 20, 43, 0.055);
}

.file-merger-features article,
.file-merger-benefits article {
  min-height: 86px;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.file-merger-features article > span,
.file-merger-benefits article > svg {
  width: 54px;
  height: 54px;
  min-width: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  color: #6d4aff;
  background: #f1ecff;
}

.file-merger-features svg,
.file-merger-benefits svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.file-merger-features strong,
.file-merger-benefits strong {
  display: block;
  color: #14142b;
  font-size: 0.98rem;
  font-weight: 950;
}

.file-merger-features small,
.file-merger-benefits small {
  display: block;
  margin-top: 4px;
  color: #8a90aa;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.5;
}

.file-merger-workspace {
  display: grid;
  grid-template-columns: 300px minmax(420px, 1fr) 330px;
  gap: 16px;
  align-items: stretch;
}

.file-merger-side,
.file-merger-list-panel,
.file-merger-preview-panel {
  border-radius: 24px;
  padding: 18px;
}

.file-merger-side {
  display: grid;
  gap: 14px;
}

.file-merger-dropzone {
  min-height: 218px;
  border: 1.5px dashed rgba(111, 76, 255, 0.42);
  border-radius: 18px;
  padding: 20px 16px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 10px;
  background: linear-gradient(180deg, #fff, #fcfbff);
}

.file-merger-dropzone.is-drag-over {
  border-color: #6d4aff;
  background: rgba(111, 76, 255, 0.06);
}

.file-merger-upload-icon {
  width: 66px;
  height: 66px;
  display: inline-grid;
  place-items: center;
  color: #6d4aff;
}

.file-merger-upload-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.file-merger-dropzone h2,
.file-merger-list-panel h2,
.file-merger-preview-panel h2 {
  margin: 0;
  color: #14142b;
  font-size: 1rem;
  font-weight: 950;
}

.file-merger-dropzone p,
.file-merger-dropzone small,
.file-merger-list-panel small,
.file-merger-preview-panel small {
  margin: 0;
  color: #8a90aa;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.55;
}

.file-merger-dropzone button,
.file-merger-primary,
.file-merger-secondary,
.file-merger-result button {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 950;
  cursor: pointer;
}

.file-merger-dropzone button,
.file-merger-primary,
.file-merger-result button {
  color: #fff;
  background: linear-gradient(135deg, #7c4dff, #4f2cff);
  box-shadow: 0 16px 32px rgba(111, 76, 255, 0.18);
}

.file-merger-dropzone button {
  padding: 0 18px;
}

.file-merger-dropzone button svg,
.file-merger-primary svg,
.file-merger-secondary svg,
.file-merger-list-panel button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.file-merger-settings {
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid #eee8ff;
}

.file-merger-settings h3,
.file-merger-formats h3 {
  margin: 0 0 12px;
  color: #14142b;
  font-size: 0.95rem;
  font-weight: 950;
}

.file-merger-settings label,
.file-merger-segment {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.file-merger-settings label > span,
.file-merger-segment > span {
  color: #14142b;
  font-size: 0.78rem;
  font-weight: 900;
}

.file-merger-settings select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #e6dfff;
  border-radius: 12px;
  padding: 0 12px;
  color: #14142b;
  background: #fff;
  font-weight: 850;
}

.file-merger-segment {
  grid-template-columns: 1fr 1fr;
}

.file-merger-segment > span {
  grid-column: 1 / -1;
}

.file-merger-segment button {
  min-height: 40px;
  border: 1px solid #e6dfff;
  border-radius: 12px;
  color: #7f87a8;
  background: #fff;
  font-weight: 900;
}

.file-merger-segment button.is-active {
  color: #6d4aff;
  border-color: #9c85ff;
  background: rgba(111, 76, 255, 0.08);
}

.file-merger-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fbfaff;
  border: 1px solid #eee8ff;
}

.file-merger-toggle input {
  accent-color: #6d4aff;
}

.file-merger-list-panel {
  display: flex;
  min-height: 540px;
  flex-direction: column;
}

.file-merger-list-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.file-merger-list-panel > header button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: #ff4d6d;
  background: #fff3f5;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.file-merger-list-panel > header button:disabled,
.file-merger-primary:disabled,
.file-merger-secondary:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.file-merger-list {
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: start;
}

.file-merger-list.is-empty {
  place-items: center;
  min-height: 340px;
  color: #8a90aa;
  text-align: center;
}

.file-merger-list.is-empty > div {
  display: grid;
  place-items: center;
  gap: 12px;
}

.file-merger-list.is-empty span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #6d4aff;
  background: #f1ecff;
}

.file-merger-list.is-empty svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.file-merger-item {
  min-height: 64px;
  display: grid;
  grid-template-columns: 22px 42px minmax(0, 1fr) 34px 34px 58px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #eee8ff;
  border-radius: 14px;
  background: #fff;
}

.file-merger-item:hover {
  border-color: #d8ccff;
  box-shadow: 0 12px 24px rgba(111, 76, 255, 0.08);
}

.file-merger-drag {
  color: #a0a5bc;
  cursor: grab;
  font-weight: 950;
}

.file-merger-type {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #6d4aff;
  background: #f1ecff;
  font-size: 0.68rem;
  font-weight: 950;
}

.file-merger-type.is-pdf {
  color: #f04444;
  background: #fff0f0;
}

.file-merger-type.is-docx {
  color: #1d5bcf;
  background: #edf3ff;
}

.file-merger-type.is-xlsx {
  color: #149968;
  background: #e8fff4;
}

.file-merger-type.is-pptx {
  color: #e86d24;
  background: #fff4eb;
}

.file-merger-type.is-txt {
  color: #009e72;
  background: #e8fff4;
}

.file-merger-type.is-image {
  color: #8b5cf6;
  background: #f1ecff;
}

.file-merger-item strong {
  display: block;
  max-width: 100%;
  color: #14142b;
  font-size: 0.86rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-merger-item small {
  display: block;
  margin-top: 3px;
  color: #8a90aa;
  font-size: 0.72rem;
  font-weight: 800;
}

.file-merger-item > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  color: #6d4aff;
  background: #f7f4ff;
}

.file-merger-item > button[data-file-merger-remove] {
  color: #ff4d6d;
  background: #fff3f5;
}

.file-merger-order {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.file-merger-order button {
  width: 27px;
  height: 27px;
  border: 1px solid #e7e1ff;
  border-radius: 8px;
  color: #6d4aff;
  background: #fff;
  font-weight: 950;
}

.file-merger-order button:disabled {
  color: #c3c7d8;
}

.file-merger-list-panel > footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.file-merger-list-panel > footer span {
  min-height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #8a90aa;
  background: #fbfaff;
  border: 1px solid #eee8ff;
  font-size: 0.72rem;
  font-weight: 850;
}

.file-merger-list-panel > footer b {
  display: block;
  color: #14142b;
  font-size: 0.88rem;
}

.file-merger-preview-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.file-merger-preview-stack {
  min-height: 188px;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #fdfcff, #f7f4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.file-merger-preview-stack.is-empty {
  color: #8a90aa;
  text-align: center;
  font-weight: 850;
}

.file-merger-preview-stack > span {
  position: relative;
  width: 58px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee8ff;
  box-shadow: 0 10px 20px rgba(20, 20, 43, 0.06);
  transform: translateY(calc((var(--i) - 3) * 3px));
}

.file-merger-preview-stack b {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #6d4aff;
  font-size: 0.65rem;
}

.file-merger-preview-stack img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.file-merger-zoom-row {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid #eee8ff;
  border-radius: 12px;
  background: #fff;
}

.file-merger-zoom-row button,
.file-merger-zoom-row b {
  min-width: 34px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #7f87a8;
  background: transparent;
  font-weight: 900;
}

.file-merger-status {
  border-radius: 14px;
  padding: 12px;
  background: #edfdf4;
  color: #009e72;
  font-weight: 850;
}

.file-merger-status.is-error {
  color: #d92d4b;
  background: #fff3f5;
}

.file-merger-status p {
  margin: 0 0 8px;
}

.file-merger-status span {
  display: block;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 158, 114, 0.15);
}

.file-merger-status i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #00b884;
}

.file-merger-primary,
.file-merger-secondary {
  width: 100%;
  min-height: 50px;
}

.file-merger-secondary {
  border: 1px solid #eee8ff;
  color: #6d4aff;
  background: #fff;
}

.file-merger-result {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #eee8ff;
  background: #fbfaff;
}

.file-merger-result strong {
  color: #14142b;
  font-weight: 950;
}

.file-merger-result button {
  min-height: 42px;
}

.file-merger-formats {
  display: grid;
  gap: 8px;
}

.file-merger-formats button {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #eee8ff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #14142b;
  background: #fff;
  text-align: right;
}

.file-merger-formats button:hover {
  border-color: #9c85ff;
}

.file-merger-formats button b {
  color: #6d4aff;
  font-weight: 950;
}

.file-merger-formats button small {
  color: #8a90aa;
}

.file-merger-formats details {
  border: 1px solid #eee8ff;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.file-merger-formats summary {
  cursor: pointer;
  padding: 12px;
  color: #6d4aff;
  font-weight: 950;
}

.file-merger-formats details div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.file-merger-formats details button {
  min-height: 42px;
  justify-content: center;
  color: #6d4aff;
  font-weight: 950;
}

.file-merger-benefits {
  margin-top: 18px;
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  .file-merger-workspace {
    grid-template-columns: 1fr 1fr;
  }

  .file-merger-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .file-merger-features,
  .file-merger-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .file-merger-main {
    padding: 18px 12px 28px;
  }

  .file-merger-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .file-merger-hero p {
    margin: 0 auto;
  }

  .file-merger-features,
  .file-merger-benefits,
  .file-merger-workspace,
  .file-merger-side {
    grid-template-columns: 1fr;
  }

  .file-merger-item {
    grid-template-columns: 20px 38px minmax(0, 1fr) 32px 32px;
  }

  .file-merger-order {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .file-merger-list-panel > footer {
    grid-template-columns: 1fr;
  }
}

.file-splitter-main {
  min-height: 100vh;
  padding: 28px clamp(18px, 3vw, 46px) 42px;
  background:
    radial-gradient(circle at 18% 10%, rgba(109, 74, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 42%, #fbfaff 100%);
  color: #15172f;
  overflow-x: hidden;
}

.file-splitter-main svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-splitter-page {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.file-splitter-back {
  margin-bottom: 22px;
}

.file-splitter-hero {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
  text-align: right;
  margin-bottom: 24px;
}

.file-splitter-hero-icon {
  width: 104px;
  height: 104px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffffff, #f4efff);
  border: 1px solid #ece5ff;
  color: #6d4aff;
  box-shadow: 0 24px 58px rgba(109, 74, 255, 0.12);
}

.file-splitter-hero-icon svg {
  width: 54px;
  height: 54px;
  stroke-width: 1.8;
}

.file-splitter-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  font-weight: 950;
  color: #15172f;
}

.file-splitter-hero p {
  margin: 0;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.9;
  color: #7f86a5;
  font-weight: 800;
}

.file-splitter-features,
.file-splitter-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.file-splitter-features article,
.file-splitter-benefits article,
.file-splitter-upload,
.file-splitter-options,
.file-splitter-card,
.file-splitter-info,
.file-splitter-preview,
.file-splitter-status {
  border: 1px solid #ece5ff;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(52, 40, 120, 0.06);
}

.file-splitter-features article,
.file-splitter-benefits article {
  min-height: 82px;
  padding: 16px 18px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
}

.file-splitter-features article > span,
.file-splitter-benefits article > svg {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f3eeff;
  flex: 0 0 auto;
}

.file-splitter-features svg,
.file-splitter-benefits svg {
  width: 22px;
  height: 22px;
}

.file-splitter-features b,
.file-splitter-benefits strong {
  display: block;
  font-size: 15px;
  font-weight: 950;
  color: #15172f;
}

.file-splitter-features small,
.file-splitter-benefits small {
  display: block;
  color: #8990aa;
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.file-splitter-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(360px, 1.25fr) minmax(280px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.file-splitter-left,
.file-splitter-center,
.file-splitter-right {
  display: grid;
  gap: 16px;
}

.file-splitter-upload,
.file-splitter-options,
.file-splitter-card,
.file-splitter-info,
.file-splitter-preview {
  padding: 18px;
}

.file-splitter-dropzone {
  min-height: 236px;
  border: 1.5px dashed #bfaeff;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  gap: 8px;
}

.file-splitter-dropzone.is-drag-over {
  border-color: #6d4aff;
  background: #f5f1ff;
}

.file-splitter-dropzone > span {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f4efff;
}

.file-splitter-dropzone svg {
  width: 38px;
  height: 38px;
}

.file-splitter-dropzone strong {
  color: #15172f;
  font-size: 18px;
  font-weight: 950;
}

.file-splitter-dropzone small,
.file-splitter-dropzone em {
  color: #8990aa;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
}

.file-splitter-dropzone button,
.file-splitter-primary,
.file-splitter-download,
.file-splitter-secondary {
  border: 0;
  border-radius: 12px;
  min-height: 46px;
  padding: 0 22px;
  font-family: inherit;
  font-weight: 950;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.file-splitter-dropzone button,
.file-splitter-primary {
  color: #fff;
  background: linear-gradient(135deg, #7c4dff, #5f2cff);
  box-shadow: 0 18px 34px rgba(109, 74, 255, 0.22);
}

.file-splitter-primary:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

.file-splitter-options h2,
.file-splitter-card h2,
.file-splitter-info h2,
.file-splitter-preview h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 950;
  color: #15172f;
}

.file-splitter-options {
  display: grid;
  gap: 10px;
}

.file-splitter-options button {
  min-height: 72px;
  border: 1px solid #ece5ff;
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: right;
  font-family: inherit;
  cursor: pointer;
}

.file-splitter-options button span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #d8cdfd;
  flex: 0 0 auto;
}

.file-splitter-options button.is-active {
  border-color: #a68dff;
  background: #fbf8ff;
}

.file-splitter-options button.is-active span {
  border-color: #6d4aff;
  box-shadow: inset 0 0 0 4px #fff;
  background: #6d4aff;
}

.file-splitter-options b {
  color: #15172f;
  font-weight: 950;
}

.file-splitter-options small,
.file-splitter-options p {
  margin: 4px 0 0;
  color: #8990aa;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.7;
}

.file-splitter-options p {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
  background: #f8f5ff;
}

.file-splitter-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.file-splitter-tabs button,
.file-splitter-input-row input,
.file-splitter-size-settings input,
.file-splitter-size-settings select {
  border: 1px solid #e6ddff;
  border-radius: 12px;
  background: #fff;
  min-height: 44px;
  font-family: inherit;
  font-weight: 900;
  color: #15172f;
}

.file-splitter-tabs button {
  color: #7f86a5;
  cursor: pointer;
}

.file-splitter-tabs button.is-active {
  color: #6d4aff;
  border-color: #9f83ff;
  background: #fbf8ff;
  box-shadow: inset 0 -2px 0 #6d4aff;
}

.file-splitter-size-settings,
.file-splitter-input-row,
.file-splitter-extra {
  display: grid;
  gap: 12px;
}

.file-splitter-size-settings label,
.file-splitter-input-row {
  color: #15172f;
  font-weight: 950;
}

.file-splitter-size-settings label div {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.file-splitter-size-settings input[type="number"],
.file-splitter-input-row input {
  width: 100%;
  padding: 0 14px;
}

.file-splitter-size-settings select {
  width: 92px;
}

.file-splitter-size-settings input[type="range"] {
  accent-color: #6d4aff;
}

.file-splitter-range-labels {
  display: flex;
  justify-content: space-between;
  color: #8990aa;
  font-size: 11px;
  font-weight: 900;
}

.file-splitter-size-settings p,
.file-splitter-extra {
  color: #7f86a5;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 800;
  background: #fbf9ff;
  border-radius: 14px;
  padding: 14px;
}

.file-splitter-extra label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.file-splitter-file {
  display: flex;
  flex-direction: row-reverse;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: #fbf9ff;
  margin-bottom: 14px;
}

.file-splitter-file > span {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #ef4444;
}

.file-splitter-file strong,
.file-splitter-file small {
  display: block;
  word-break: break-word;
}

.file-splitter-file strong {
  color: #15172f;
  font-size: 14px;
  font-weight: 950;
}

.file-splitter-file small {
  color: #8990aa;
  font-weight: 800;
}

.file-splitter-info dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.file-splitter-info dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #8990aa;
  font-size: 13px;
  font-weight: 800;
}

.file-splitter-info dd {
  margin: 0;
  color: #15172f;
  font-weight: 950;
}

.file-splitter-preview > div {
  display: grid;
  gap: 10px;
}

.file-splitter-preview section {
  min-height: 58px;
  border: 1px solid #ece5ff;
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: #fff;
}

.file-splitter-preview section > span {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f3eeff;
}

.file-splitter-preview b,
.file-splitter-preview small,
.file-splitter-preview em {
  display: block;
  font-style: normal;
}

.file-splitter-preview b {
  color: #15172f;
  font-size: 13px;
  font-weight: 950;
}

.file-splitter-preview small,
.file-splitter-preview em {
  color: #8990aa;
  font-size: 12px;
  font-weight: 800;
}

.file-splitter-status {
  padding: 14px;
  color: #059669;
  font-weight: 900;
  background: #effdf6;
}

.file-splitter-status.is-error {
  color: #dc2626;
  background: #fff5f5;
}

.file-splitter-status p {
  margin: 0 0 10px;
}

.file-splitter-status span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #dcfce7;
  overflow: hidden;
}

.file-splitter-status i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #10b981);
}

.file-splitter-primary,
.file-splitter-download,
.file-splitter-secondary {
  width: 100%;
}

.file-splitter-download {
  color: #fff;
  background: linear-gradient(135deg, #7c4dff, #5f2cff);
}

.file-splitter-secondary {
  color: #6d4aff;
  border: 1px solid #e6ddff;
  background: #fbf9ff;
}

.file-splitter-secondary:disabled {
  opacity: 0.7;
  cursor: default;
}

.file-splitter-benefits {
  margin-top: 22px;
}

@media (max-width: 1180px) {
  .file-splitter-layout {
    grid-template-columns: 1fr;
  }

  .file-splitter-features,
  .file-splitter-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .file-splitter-main {
    padding: 18px 12px 28px;
  }

  .file-splitter-hero,
  .file-splitter-features,
  .file-splitter-benefits {
    grid-template-columns: 1fr;
  }

  .file-splitter-hero {
    text-align: center;
    justify-content: center;
    flex-direction: column;
  }

  .file-splitter-tabs {
    grid-template-columns: 1fr;
  }
}

.file-password-main {
  direction: rtl;
  min-height: 100%;
  padding: 22px 28px 30px;
  background:
    radial-gradient(circle at 12% 8%, rgba(109, 74, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 58%, #fbfaff 100%);
  color: #14142b;
}

.file-password-main svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-password-page {
  max-width: 1380px;
  margin: 0 auto;
}

.file-password-back {
  margin-bottom: 14px;
}

.file-password-hero {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
}

.file-password-hero-icon {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: linear-gradient(145deg, #ffffff, #f1ecff);
  border: 1px solid #ebe4ff;
  box-shadow: 0 20px 45px rgba(109, 74, 255, 0.14);
}

.file-password-hero-icon svg {
  width: 42px;
  height: 42px;
}

.file-password-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 950;
  letter-spacing: 0;
}

.file-password-hero p {
  margin: 10px 0 0;
  max-width: 740px;
  color: #7b7a99;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 700;
}

.file-password-features,
.file-password-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.file-password-features article,
.file-password-benefits article,
.file-password-upload-card,
.file-password-supported,
.file-password-privacy,
.file-password-card,
.file-password-summary,
.file-password-security,
.file-password-status {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ece6ff;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(20, 20, 43, 0.055);
}

.file-password-features article,
.file-password-benefits article {
  min-height: 78px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.file-password-features article > span,
.file-password-benefits article > svg {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f1ebff;
}

.file-password-features svg,
.file-password-benefits svg {
  width: 23px;
  height: 23px;
}

.file-password-features b,
.file-password-benefits strong {
  display: block;
  color: #14142b;
  font-size: 14px;
  font-weight: 950;
}

.file-password-features small,
.file-password-benefits small {
  display: block;
  margin-top: 4px;
  color: #8a8aa8;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 700;
}

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

.file-password-left,
.file-password-center,
.file-password-right {
  display: grid;
  gap: 16px;
}

.file-password-upload-card,
.file-password-supported,
.file-password-privacy,
.file-password-card,
.file-password-summary,
.file-password-security {
  padding: 18px;
}

.file-password-upload-card h2,
.file-password-card h2,
.file-password-summary h2,
.file-password-security h2 {
  margin: 0 0 14px;
  color: #14142b;
  font-size: 16px;
  font-weight: 950;
}

.file-password-dropzone {
  min-height: 230px;
  border: 1.5px dashed #b9a8ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbf9ff);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.file-password-dropzone.is-drag-over {
  border-color: #6d4aff;
  background: #f4f0ff;
  transform: translateY(-2px);
}

.file-password-dropzone > span {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f0ebff;
}

.file-password-dropzone svg {
  width: 34px;
  height: 34px;
}

.file-password-dropzone strong {
  color: #14142b;
  font-size: 16px;
  font-weight: 950;
}

.file-password-dropzone small,
.file-password-dropzone em {
  color: #8b8ba5;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.file-password-dropzone button,
.file-password-primary,
.file-password-download,
.file-password-secondary {
  border: 0;
  border-radius: 12px;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.file-password-dropzone button,
.file-password-primary {
  background: linear-gradient(135deg, #7b4dff, #5528f2);
  color: #fff;
  box-shadow: 0 16px 34px rgba(109, 74, 255, 0.22);
}

.file-password-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.file-password-supported h3,
.file-password-output h3,
.file-password-tips b {
  margin: 0 0 12px;
  display: block;
  color: #14142b;
  font-size: 14px;
  font-weight: 950;
}

.file-password-supported div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.file-password-supported span {
  min-height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f5f1ff;
  border: 1px solid #ece5ff;
  font-size: 11px;
  font-weight: 950;
}

.file-password-supported .is-pdf {
  color: #ef4444;
  background: #fff2f2;
}

.file-password-supported .is-zip,
.file-password-supported .is-pptx {
  color: #f59e0b;
  background: #fff8ea;
}

.file-password-supported .is-xlsx,
.file-password-supported .is-7z {
  color: #16a34a;
  background: #edfff5;
}

.file-password-supported button {
  margin-top: 10px;
  width: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #6d4aff;
  font-weight: 950;
  cursor: pointer;
}

.file-password-privacy {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #7f7fa2;
  font-weight: 800;
}

.file-password-privacy svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 16px;
  color: #6d4aff;
  background: #f0ebff;
}

.file-password-privacy p {
  margin: 0;
  line-height: 1.7;
  font-size: 13px;
}

.file-password-file-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  border: 1px solid #eee8ff;
  border-radius: 14px;
  padding: 12px;
}

.file-password-file-row.is-empty {
  grid-template-columns: 46px minmax(0, 1fr);
}

.file-password-file-row > span {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #ef4444;
  background: #fff1f1;
}

.file-password-file-row strong,
.file-password-file-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-password-file-row strong {
  color: #14142b;
  font-weight: 950;
}

.file-password-file-row small {
  margin-top: 4px;
  color: #8b8ba5;
  font-weight: 700;
}

.file-password-file-row button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  color: #ef4444;
  background: #fff5f5;
  cursor: pointer;
}

.file-password-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.file-password-action-grid button {
  min-height: 96px;
  border: 1px solid #eee8ff;
  border-radius: 16px;
  background: #fff;
  color: #8585a4;
  padding: 14px;
  text-align: right;
  cursor: pointer;
}

.file-password-action-grid button.is-active {
  border-color: #6d4aff;
  background: #f6f2ff;
  color: #6d4aff;
}

.file-password-action-grid i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  border: 3px solid currentColor;
}

.file-password-action-grid b,
.file-password-action-grid small {
  display: block;
}

.file-password-action-grid b {
  margin-top: 8px;
  color: #14142b;
  font-size: 14px;
  font-weight: 950;
}

.file-password-action-grid small {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
}

.file-password-fields {
  display: grid;
  gap: 10px;
}

.file-password-fields label {
  display: grid;
  gap: 7px;
}

.file-password-fields label.is-muted {
  opacity: 0.55;
}

.file-password-fields span {
  color: #14142b;
  font-size: 13px;
  font-weight: 950;
}

.file-password-fields input {
  min-height: 50px;
  border: 1px solid #e6defd;
  border-radius: 13px;
  padding: 0 16px;
  color: #14142b;
  outline: 0;
  font-weight: 850;
}

.file-password-fields input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(109, 74, 255, 0.1);
}

.file-password-strength {
  margin-top: 10px;
}

.file-password-strength span {
  display: block;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #f1edff;
}

.file-password-strength b {
  display: block;
  height: 100%;
  width: 0;
  background: #a5a5b8;
  transition: width 0.2s ease;
}

.file-password-strength.is-weak b {
  background: #ef4444;
}

.file-password-strength.is-medium b {
  background: #f59e0b;
}

.file-password-strength.is-strong b {
  background: #22c55e;
}

.file-password-strength small {
  display: block;
  margin-top: 7px;
  color: #8b8ba5;
  font-weight: 800;
}

.file-password-output {
  margin-top: 16px;
}

.file-password-output div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.file-password-output button {
  min-height: 42px;
  border: 1px solid #e9e2ff;
  border-radius: 12px;
  background: #fff;
  color: #6f6f91;
  font-weight: 950;
  cursor: pointer;
}

.file-password-output button.is-active {
  color: #6d4aff;
  border-color: #a78bfa;
  background: #f5f0ff;
}

.file-password-tips {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbf9ff, #f1ecff);
}

.file-password-tips ul,
.file-password-security ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.file-password-tips li,
.file-password-security li {
  color: #69708d;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
}

.file-password-tips li::before {
  content: "✓";
  color: #22c55e;
  margin-left: 7px;
}

.file-password-summary dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.file-password-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #7f7f9f;
  font-weight: 800;
}

.file-password-summary dd {
  margin: 0;
  color: #14142b;
  font-weight: 950;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-password-security li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.file-password-security svg {
  color: #6d4aff;
}

.file-password-status {
  padding: 14px;
  color: #16a34a;
  font-weight: 850;
}

.file-password-status.is-error {
  color: #ef4444;
  background: #fff7f7;
  border-color: #ffd4d4;
}

.file-password-status p {
  margin: 0 0 8px;
}

.file-password-status span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #eee8ff;
  overflow: hidden;
}

.file-password-status i {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, #22c55e, #6d4aff);
}

.file-password-primary,
.file-password-download,
.file-password-secondary {
  width: 100%;
}

.file-password-download {
  background: #f2edff;
  color: #6d4aff;
  border: 1px solid #d8ccff;
}

.file-password-secondary {
  background: #fff;
  border: 1px solid #e8e2ff;
  color: #6d4aff;
}

.file-password-right > small {
  color: #8b8ba5;
  text-align: center;
  line-height: 1.7;
  font-weight: 750;
}

.file-password-benefits {
  margin-top: 18px;
}

@media (max-width: 1180px) {
  .file-password-layout {
    grid-template-columns: 1fr 1fr;
  }

  .file-password-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .file-password-features,
  .file-password-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .file-password-main {
    padding: 18px 12px 28px;
  }

  .file-password-hero,
  .file-password-layout,
  .file-password-right,
  .file-password-features,
  .file-password-benefits,
  .file-password-action-grid,
  .file-password-output div {
    grid-template-columns: 1fr;
  }

  .file-password-hero {
    justify-items: center;
    text-align: center;
  }
}

.image-editor-main {
  background: linear-gradient(180deg, #fbfaff 0%, #ffffff 54%, #f8f7ff 100%);
  padding: 24px;
}

.image-editor-page {
  width: min(100%, 1480px);
  margin: 0 auto;
  color: #111827;
}

.image-editor-top,
.image-editor-layout,
.image-editor-features article,
.image-editor-panel,
.image-editor-export,
.image-editor-info,
.image-editor-dropzone,
.image-editor-stage,
.image-editor-left {
  border: 1px solid #ece7ff;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(109, 74, 255, 0.07);
}

.image-editor-top {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(340px, 0.75fr);
  gap: 24px;
  align-items: center;
  padding: 20px;
  border-radius: 28px;
}

.image-editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.image-editor-actions button,
.image-editor-actions .image-editor-back,
.image-editor-open,
.image-editor-panel button,
.image-editor-export button,
.image-editor-export a,
.image-editor-thumbs button,
.image-editor-zoom button,
.image-editor-zoom span {
  height: 46px;
  border-radius: 12px;
  border: 1px solid #e4dcff;
  background: #fff;
  color: #6d4aff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 850;
  text-decoration: none;
}

.image-editor-open {
  background: linear-gradient(135deg, #7c4dff, #532bff);
  color: #fff;
  box-shadow: 0 14px 30px rgba(109, 74, 255, 0.22);
}

.image-editor-actions button:disabled,
.image-editor-panel button:disabled,
.image-editor-export button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.image-editor-actions svg,
.image-editor-title svg,
.image-editor-left svg,
.image-editor-panel svg,
.image-editor-info svg,
.image-editor-export svg,
.image-editor-features svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.image-editor-title {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  text-align: right;
}

.image-editor-title > span {
  width: 82px;
  height: 82px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: linear-gradient(145deg, #f3edff, #ffffff);
  box-shadow: inset 0 0 0 1px #eee7ff;
}

.image-editor-title > span svg {
  width: 38px;
  height: 38px;
}

.image-editor-title h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 950;
  letter-spacing: 0;
}

.image-editor-title p {
  margin: 0;
  color: #8186a2;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.8;
}

.image-editor-features {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.image-editor-features article {
  border-radius: 16px;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  padding: 14px;
  text-align: right;
}

.image-editor-features article span {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f3edff;
}

.image-editor-features b {
  font-size: 14px;
  font-weight: 900;
}

.image-editor-features small {
  color: #8a8fa8;
  font-weight: 750;
}

.image-editor-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: stretch;
  border-radius: 28px;
  padding: 16px;
}

.image-editor-left {
  border-radius: 20px;
  padding: 12px;
}

.image-editor-left > strong {
  display: block;
  margin: 8px 8px 14px;
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}

.image-editor-left button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-inline-start: 3px solid transparent;
  background: transparent;
  color: #6f7691;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  text-align: right;
  font-weight: 850;
}

.image-editor-left button.is-active {
  color: #6d4aff;
  background: #f4efff;
  border-inline-start-color: #6d4aff;
}

.image-editor-left button small {
  color: #fff;
  background: #8b5cf6;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
}

.image-editor-center {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.image-editor-stage {
  min-height: 520px;
  border-radius: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
}

.image-editor-stage figure {
  position: relative;
  margin: 0;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f8f8ff;
}

.image-editor-stage figure:first-child {
  border-radius: 14px 0 0 14px;
}

.image-editor-stage figure:last-child {
  border-radius: 0 14px 14px 0;
}

.image-editor-stage figcaption {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  color: #fff;
  background: rgba(17, 24, 39, 0.78);
  padding: 7px 12px;
  border-radius: 10px;
  font-weight: 850;
  font-size: 12px;
}

.image-editor-stage img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.image-editor-divider {
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-inline: -22px;
  z-index: 3;
  color: #6d4aff;
  background: #fff;
  box-shadow: 0 12px 28px rgba(109, 74, 255, 0.18);
  font-weight: 950;
}

.image-editor-dropzone {
  min-height: 520px;
  border-radius: 20px;
  border-style: dashed;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #7b82a0;
  text-align: center;
}

.image-editor-dropzone > span {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f3edff;
}

.image-editor-dropzone svg {
  width: 40px;
  height: 40px;
}

.image-editor-dropzone h2 {
  margin: 0;
  color: #111827;
  font-size: 26px;
  font-weight: 950;
}

.image-editor-thumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.image-editor-thumbs > img {
  width: 92px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid transparent;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
}

.image-editor-thumbs > img.is-active {
  border-color: #6d4aff;
}

.image-editor-zoom {
  margin-inline-start: auto;
  display: flex;
  gap: 8px;
}

.image-editor-zoom button,
.image-editor-zoom span {
  min-width: 44px;
  padding: 0 12px;
}

.image-editor-info {
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 14px;
}

.image-editor-info b {
  display: block;
  margin-bottom: 10px;
  font-weight: 950;
}

.image-editor-info dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.image-editor-info dt,
.image-editor-info dd {
  margin: 0;
}

.image-editor-info dt {
  color: #8b91aa;
  font-size: 12px;
  font-weight: 800;
}

.image-editor-info dd {
  color: #273047;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.image-editor-info article:last-child div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.image-editor-info article:last-child button {
  border: 1px solid #e7e1ff;
  color: #6d4aff;
  background: #f7f3ff;
  border-radius: 12px;
  min-height: 38px;
  padding: 0 12px;
  font-weight: 850;
}

.image-editor-right {
  display: grid;
  gap: 14px;
  align-content: start;
}

.image-editor-panel,
.image-editor-export {
  border-radius: 18px;
  padding: 16px;
}

.image-editor-panel header,
.image-editor-export label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.image-editor-panel strong,
.image-editor-export span {
  color: #111827;
  font-weight: 950;
}

.image-editor-slider {
  display: grid;
  grid-template-columns: 72px 1fr 32px 20px;
  gap: 10px;
  align-items: center;
  color: #7a819c;
  font-size: 12px;
  font-weight: 850;
  margin: 12px 0;
}

.image-editor-slider input {
  accent-color: #6d4aff;
  width: 100%;
}

.image-editor-slider b {
  color: #6d4aff;
  font-size: 12px;
}

.image-editor-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.image-editor-filters button {
  height: auto;
  min-height: 74px;
  flex-direction: column;
  padding: 8px;
  color: #3b4261;
}

.image-editor-filters button.is-active {
  color: #6d4aff;
  border-color: #bcaaff;
  background: #f5f1ff;
}

.image-editor-filters button span {
  width: 44px;
  height: 38px;
  border-radius: 12px;
  display: block;
}

.image-editor-filters small {
  font-weight: 850;
  font-size: 11px;
}

.image-editor-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.image-editor-ai-grid button {
  height: 72px;
  flex-direction: column;
  padding: 8px;
  background: #faf8ff;
}

.image-editor-ai-grid b {
  font-size: 11px;
  color: #7b6cbd;
}

.image-editor-export {
  display: grid;
  gap: 10px;
}

.image-editor-export label {
  margin: 0;
}

.image-editor-export select {
  min-height: 42px;
  border: 1px solid #e4dcff;
  border-radius: 12px;
  color: #6d4aff;
  font-weight: 850;
  padding: 0 10px;
  background: #fff;
}

.image-editor-export .png-pdf-download {
  background: linear-gradient(135deg, #7c4dff, #532bff);
  color: #fff;
  border: 0;
  width: 100%;
}

.image-editor-status {
  margin-top: 14px;
}

@media (max-width: 1240px) {
  .image-editor-top,
  .image-editor-layout {
    grid-template-columns: 1fr;
  }

  .image-editor-title {
    justify-content: center;
    text-align: center;
  }

  .image-editor-left {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .image-editor-left > strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .image-editor-main {
    padding: 14px 10px 24px;
  }

  .image-editor-actions,
  .image-editor-features,
  .image-editor-left,
  .image-editor-info,
  .image-editor-filters,
  .image-editor-ai-grid {
    grid-template-columns: 1fr;
  }

  .image-editor-stage {
    min-height: 360px;
    grid-template-columns: 1fr;
  }

  .image-editor-stage figure:first-child,
  .image-editor-stage figure:last-child {
    border-radius: 14px;
  }

  .image-editor-divider {
    display: none;
  }

  .image-editor-title h1 {
    font-size: 30px;
  }
}

.summary-maker-main {
  padding: 24px 28px 36px;
  background:
    radial-gradient(circle at 78% 6%, rgba(109, 74, 255, 0.11), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
}

.summary-maker-page {
  width: min(1480px, 100%);
  margin: 0 auto;
  direction: rtl;
  color: #14142b;
}

.summary-maker-back {
  margin-bottom: 14px;
  background: #fff;
  color: #6d4aff;
  border: 1px solid #ded4ff;
  box-shadow: 0 16px 32px rgba(109, 74, 255, 0.08);
}

.summary-maker-hero {
  min-height: 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.summary-maker-title {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  text-align: right;
}

.summary-maker-hero-icon {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: linear-gradient(145deg, #ffffff, #f0ebff);
  border: 1px solid #ece5ff;
  box-shadow: 0 24px 50px rgba(109, 74, 255, 0.16);
}

.summary-maker-hero-icon svg {
  width: 44px;
  height: 44px;
}

.summary-maker-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: 0;
}

.summary-maker-hero p {
  margin: 10px 0 0;
  color: #8589a7;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 750;
}

.summary-maker-sparkles {
  width: 42px;
  height: 42px;
  color: #7b4dff;
}

.summary-maker-features,
.summary-maker-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.summary-maker-features article,
.summary-maker-benefits article,
.summary-maker-card {
  border: 1px solid #ece7ff;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(20, 20, 43, 0.055);
}

.summary-maker-features article,
.summary-maker-benefits article {
  min-height: 76px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas: "icon title" "icon text";
  align-items: center;
  gap: 0 12px;
}

.summary-maker-features article > span,
.summary-maker-benefits article > svg {
  grid-area: icon;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f3efff;
}

.summary-maker-features svg,
.summary-maker-benefits svg {
  width: 22px;
  height: 22px;
}

.summary-maker-features b,
.summary-maker-benefits b {
  grid-area: title;
  color: #14142b;
  font-size: 14px;
  font-weight: 950;
}

.summary-maker-features small,
.summary-maker-benefits span {
  grid-area: text;
  color: #8b90aa;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 750;
}

.summary-maker-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
  direction: ltr;
}

.summary-maker-card {
  padding: 18px;
  min-width: 0;
  direction: rtl;
}

.summary-maker-card h2 {
  margin: 0 0 14px;
  color: #14142b;
  font-size: 16px;
  font-weight: 950;
}

.summary-maker-tabs,
.summary-maker-quick-row,
.summary-maker-result header div {
  display: grid;
  gap: 8px;
}

.summary-maker-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 12px;
  background: #f7f4ff;
}

.summary-maker-tabs button,
.summary-maker-quick-row button,
.summary-maker-result header button,
.summary-maker-type-grid button,
.summary-maker-length button {
  min-height: 42px;
  border: 1px solid #e7dfff;
  border-radius: 12px;
  background: #fff;
  color: #7b6f9c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  cursor: pointer;
}

.summary-maker-tabs button.is-active,
.summary-maker-type-grid button.is-active,
.summary-maker-length button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #7c4dff, #5528f2);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(109, 74, 255, 0.18);
}

.summary-maker-tabs svg,
.summary-maker-quick-row svg,
.summary-maker-result header svg {
  width: 18px;
  height: 18px;
}

.summary-maker-input textarea {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  border: 1px solid #e8e1ff;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  color: #14142b;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 750;
  outline: none;
}

.summary-maker-input textarea:focus {
  border-color: #9d84ff;
  box-shadow: 0 0 0 4px rgba(109, 74, 255, 0.08);
}

.summary-maker-input > small {
  display: block;
  margin-top: 7px;
  color: #8b90aa;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  direction: ltr;
}

.summary-maker-quick-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
}

.summary-maker-quick-row button {
  min-height: 38px;
  font-size: 12px;
}

.summary-maker-dropzone {
  min-height: 185px;
  border: 1.5px dashed #b9a8ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbf9ff);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  text-align: center;
  padding: 20px;
}

.summary-maker-dropzone.is-drag-over {
  border-color: #6d4aff;
  background: #f4f0ff;
}

.summary-maker-dropzone > span {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f1ebff;
}

.summary-maker-dropzone > span svg {
  width: 30px;
  height: 30px;
}

.summary-maker-dropzone strong {
  color: #14142b;
  font-size: 15px;
  font-weight: 950;
}

.summary-maker-dropzone p,
.summary-maker-dropzone small,
.summary-maker-dropzone em {
  margin: 0;
  color: #8b90aa;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.summary-maker-dropzone button,
.summary-maker-primary {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #7b4dff, #5528f2);
  color: #fff;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(109, 74, 255, 0.22);
}

.summary-maker-note {
  margin-top: 12px;
  min-height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbf9ff, #f5f0ff);
  color: #817da1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
}

.summary-maker-note svg {
  width: 22px;
  height: 22px;
  color: #6d4aff;
}

.summary-maker-field {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.summary-maker-field > span {
  color: #14142b;
  font-size: 13px;
  font-weight: 950;
}

.summary-maker-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.summary-maker-type-grid button {
  position: relative;
  min-height: 128px;
  padding: 14px 10px;
  flex-direction: column;
}

.summary-maker-type-grid button span {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f2eeff;
  color: #6d4aff;
}

.summary-maker-type-grid button.is-active span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.summary-maker-type-grid b {
  color: inherit;
  font-size: 13px;
  font-weight: 950;
}

.summary-maker-type-grid small {
  color: inherit;
  opacity: 0.74;
  font-size: 11px;
  font-weight: 800;
}

.summary-maker-type-grid i {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #6d4aff;
  font-style: normal;
  font-size: 12px;
}

.summary-maker-length {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 4px solid #eee8ff;
}

.summary-maker-length button {
  min-height: 36px;
  font-size: 12px;
}

.summary-maker-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e6dfff;
  border-radius: 12px;
  background: #fff;
  color: #6f7596;
  padding: 0 12px;
  font-weight: 850;
  outline: none;
}

.summary-maker-toggles {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}

.summary-maker-toggles label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #676f8f;
  font-size: 12px;
  font-weight: 850;
}

.summary-maker-toggles input {
  accent-color: #6d4aff;
}

.summary-maker-primary {
  width: 100%;
}

.summary-maker-primary:disabled,
.summary-maker-result button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.summary-maker-error {
  margin: 12px 0 0;
  color: #dc2626;
  background: #fff1f1;
  border: 1px solid #ffd1d1;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 850;
}

.summary-maker-result {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.summary-maker-result header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.summary-maker-result header h2 {
  margin: 0;
}

.summary-maker-result header div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-maker-result header button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.summary-maker-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: #8b90aa;
}

.summary-maker-empty > span {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: #6d4aff;
  background: #f4f0ff;
}

.summary-maker-empty svg {
  width: 52px;
  height: 52px;
}

.summary-maker-empty strong {
  color: #14142b;
  font-size: 16px;
  font-weight: 950;
}

.summary-maker-empty p {
  margin: 0;
  max-width: 280px;
  color: #8187a4;
  font-size: 12px;
  line-height: 1.8;
  font-weight: 750;
}

.summary-maker-output {
  min-height: 360px;
  max-height: 470px;
  overflow: auto;
  border: 1px solid #ede7ff;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  color: #1f2740;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 750;
}

.summary-maker-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.summary-maker-stats article {
  min-height: 68px;
  border: 1px solid #eee8ff;
  border-radius: 14px;
  background: #fbfaff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
}

.summary-maker-stats b {
  color: #14142b;
  font-size: 18px;
  font-weight: 950;
}

.summary-maker-stats span {
  color: #8187a4;
  font-size: 11px;
  font-weight: 800;
}

.summary-maker-benefits {
  margin-top: 16px;
}

.summary-maker-benefits article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
}

.summary-maker-benefits div {
  min-width: 0;
}

@media (max-width: 1180px) {
  .summary-maker-layout {
    grid-template-columns: 1fr;
  }

  .summary-maker-features,
  .summary-maker-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .summary-maker-main {
    padding: 16px 10px 24px;
  }

  .summary-maker-hero,
  .summary-maker-title,
  .summary-maker-features,
  .summary-maker-benefits,
  .summary-maker-type-grid,
  .summary-maker-length,
  .summary-maker-quick-row,
  .summary-maker-stats {
    grid-template-columns: 1fr;
  }

  .summary-maker-title {
    justify-items: center;
    text-align: center;
  }

  .summary-maker-result header {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-maker-hero-icon {
    width: 78px;
    height: 78px;
  }
}
