@media (max-width: 700px) {
    .site-shell {
        width: min(var(--content-width), calc(100vw - 16px));
        padding-top: 10px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer {
        padding: 8px 10px;
    }

    .footer-main {
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .panel {
        padding: 16px;
    }

    .section-head h2 {
        font-size: clamp(1.3rem, 8vw, 2rem);
    }

    .nav-links,
    .hero-actions {
        width: 100%;
    }

    .footer-links {
        width: auto;
        justify-content: flex-end;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    

    .nav-links a,
    .btn,
    .footer-links a {
        width: 100%;
    }

    .nav-links a {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 7px 8px;
        border: 1px solid var(--border);
        background: var(--panel-deep);
        font-size: 0.9rem;
        line-height: 1.15;
        text-align: center;
        overflow-wrap: anywhere;
    }

    

    

    

    

    .auth-widget {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
        grid-column: 1 / -1;
    }

    .user-chip {
        width: 100%;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        justify-content: stretch;
        align-items: center;
        min-width: 0;
    }

    .user-name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .btn-logout {
        width: auto;
        min-width: 0;
        padding: 4px 10px;
        margin-left: 0;
        white-space: nowrap;
    }

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
}/* Alerts and Loading states */.webhook-alert {
    padding: 20px;
    margin-bottom: 24px;
    font-size: 1.2rem;
}.webhook-alert i {
    margin-right: 8px;
}.error-panel {
    border-color: #e74c3c !important;
}@media (max-width: 560px) {
    body {
        font-size: 0.98rem;
    }

    .brand {
        gap: 10px;
        min-width: 0;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        font-size: 1rem;
    }

    .brand-copy {
        min-width: 0;
    }

    .brand-copy strong,
    .brand-copy span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar,
    .site-footer {
        padding: 12px;
        box-shadow: var(--shadow-m);
    }

    .panel,
.inset-panel {
        padding: 14px;
        box-shadow: var(--shadow-m);
    }

    

    

    

    .item-list-controls {
        align-items: stretch;
        flex-direction: column;
    }
}@media (prefers-reduced-motion: reduce) {
    

    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }

    .three-background,
    .three-ui {
        display: none;
    }
}