/* =========================================================================
   Phase 14 — toast system
   ========================================================================= */

.gs-toast-stack {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 360px;
}

.gs-toast {
    pointer-events: auto;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    background: #1f2937;          /* default info */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.gs-toast--info    { background: #1f2937; }
.gs-toast--success { background: #16a34a; }
.gs-toast--error   { background: #dc2626; }

.gs-toast--in  { opacity: 1; transform: translateY(0); }
.gs-toast--out { opacity: 0; transform: translateY(8px); }

@media (max-width: 480px) {
    .gs-toast-stack { left: 8px; right: 8px; max-width: none; }
}

/* =========================================================================
   Phase 15 — 480px phone breakpoint for the heavy collaborative surfaces.
   The 720px breakpoints in vc/code/whiteboard catch tablets + landscape
   phones; this layer targets portrait phones (≤480) where every horizontal
   pixel matters.
   ========================================================================= */
@media (max-width: 480px) {
    /* Video — icon-only toolbar (button labels already drop below 720px;
       tighten padding so 10+ tools fit a 360px viewport without wrap). */
    .vc-btn { padding: 8px 10px; font-size: 12px; gap: 4px; }
    .vc-banner { padding: 6px 10px; font-size: 12px; }
    .vc-tile__name { font-size: 11px; }

    /* Code editor — collapse the file-tree to a stripe; user can scroll
       horizontally to switch files when needed. Better than the 240px
       tree eating half a phone screen. */
    .code-shell { grid-template-rows: auto 1fr; }
    .code-tree { max-height: 140px; }
    .code-pane__head { padding: 8px 10px; }
    .code-pane__path { font-size: 12px; }
    .code-pane__actions { gap: 6px; }

    /* Whiteboard — same shape as Code; the toolbar already wraps. */
    .wb-tree { max-height: 140px; }
    .wb-toolbar { padding: 6px 8px; gap: 4px; }
    .wb-tool { padding: 6px 8px; font-size: 12px; }
    .wb-toolbar__color input[type="color"] { width: 28px; height: 24px; }
    .wb-toolbar__width input[type="range"] { width: 72px; }

    /* Empty-state cards — let the body wrap closer to the edges. */
    .code-pane__empty, .wb-pane__empty { padding: 24px 16px; }
    .code-pane__icon, .wb-pane__icon { font-size: 36px; }
}
