/*
 * Virii8 Workspace Shell CSS module: v8-shell-tools-style
 * Extracted from shell-core.css during v1.6.122 modular shell refactor.
 * Load order is controlled by V8E_Module_WorkspaceShell::enqueue_embedded_shell_assets().
 */
/* ---- v8-shell-tools-style ---- */
.v8-device-desktop .v8-global-controls,
  .v8-device-tablet .v8-global-controls {
    display: none !important;
  }

  #v8-win-start.v8-shell-tools-trigger {
    display: grid;
    overflow: hidden;
    position: relative;
  }

  .v8-platform-mac:not(.v8-device-phone) #v8-win-start.v8-shell-tools-trigger {
    display: grid !important;
  }

  #v8-win-start.v8-shell-tools-trigger::before {
    display: none !important;
  }

  #v8-win-start.v8-shell-tools-trigger .v8-shell-tools-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 6px;
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
  }

  .v8-platform-mac #v8-win-start.v8-shell-tools-trigger .v8-shell-tools-logo {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .v8-shell-tools-popout {
    position: absolute;
    left: 20px;
    bottom: 72px;
    z-index: 100050;
    width: min(360px, calc(100% - 24px));
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
    color: #fff;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    backdrop-filter: blur(26px) saturate(170%);
    box-shadow:
      0 28px 70px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    touch-action: none;
    user-select: none;
  }

  .v8-shell-tools-popout.active {
    display: flex;
    animation: v8-fade-in 0.16s ease forwards;
  }

  .v8-shell-tools-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: grab;
  }

  .v8-shell-tools-header:active {
    cursor: grabbing;
  }

  .v8-shell-tools-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .v8-shell-tools-brand img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px;
    flex: 0 0 auto;
  }

  .v8-shell-tools-brand-text {
    min-width: 0;
  }

  .v8-shell-tools-brand-title {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.1;
  }

  .v8-shell-tools-brand-subtitle {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .v8-shell-tools-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
  }

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

  .v8-shell-tools-action {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  }

  .v8-shell-tools-action:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.22);
  }

  .v8-shell-tools-action.active {
    background: rgba(56, 189, 248, 0.95);
    border-color: rgba(56, 189, 248, 0.95);
    color: #04131c;
  }

  .v8-shell-tools-action svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex: 0 0 auto;
  }

  .v8-shell-tools-device {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    font-weight: 600;
  }

  .v8-shell-tools-popout.v8-hide-apps [data-action="apps"] {
    display: none;
  }

  .v8-shell-tools-popout.v8-hide-apps .v8-shell-tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v8-mobile-shell-switcher {
    display: none;
  }

  .v8-mobile-shell-summary {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .v8-mobile-shell-summary strong {
    color: #fff;
  }

  .v8-shell-tools-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .v8-shell-tools-section-title {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .v8-shell-tools-mobile-trigger {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: none;
    place-items: center;
    padding: 0;
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
  }

  .v8-shell-tools-mobile-trigger img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 5px;
    pointer-events: none;
  }

  .v8-device-phone .v8-shell-tools-mobile-trigger {
    display: grid;
  }

  .v8-device-phone .v8-shell-tools-popout {
    width: min(94vw, 420px);
    max-width: 420px;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    touch-action: auto;
  }

  .v8-device-phone .v8-shell-tools-popout.active {
    display: flex !important;
  }

  .v8-device-phone .v8-shell-tools-header {
    cursor: default;
  }

  .v8-device-phone .v8-mobile-shell-switcher {
    display: flex;
  }
