
        #sf-page{
            color-scheme: light;
            --background: #ffffff;
            --foreground: #09090b;
            --card: #ffffff;
            --card-foreground: #09090b;
            --popover: #ffffff;
            --popover-foreground: #09090b;
            --primary: #18181b;
            --primary-foreground: #fafafa;
            --secondary: #f4f4f5;
            --secondary-foreground: #18181b;
            --muted-foreground: #71717a;
            --accent: #f4f4f5;
            --accent-foreground: #18181b;
            --destructive: #ef4444;
            --destructive-foreground: #fafafa;
            --border: #e4e4e7;
            --input: #e4e4e7;
            --ring: #18181b;
            --radius: 0.6rem;
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
            --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        }

        
        /* Reset de base da página. Com `:where()` a especificidade fica a
           zero: limpa os valores do browser, mas deixa o design system
           (shell.css) mandar nas classes — sem isto, o #id esmagava o
           padding dos cartões do Armazenamento e tudo ficava encostado. */
        :where(#sf-page) *{
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            border-color: var(--border);
        }

        #sf-page{
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: var(--background);
            color: var(--foreground);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
        }

        #sf-page .container{
            width: 100%;
        }

        /* No desktop, o composer fica centrado na vertical. `:has` limita isto
           às páginas que têm a coluna (#sf-page) — o /condominio não muda. */
        @media (min-width: 1025px) {
            .sf-content:has(#sf-page) {
                display: flex;
                flex-direction: column;
            }
            #sf-page {
                flex: 1;
                display: flex;
                flex-direction: column;
            }
        }


        #sf-page .preview-bar{
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-block-end: 0.75rem;
        }

        #sf-page [hidden]{
            display: none !important;
        }

        #sf-page .file-preview{
            position: relative;
            width: 4rem;
            height: 4rem;
            flex: 0 0 4rem;
            padding: 0;
            border: 1px solid var(--border);
            border-radius: 0.75rem;
            background: var(--secondary);
            font: inherit;
            cursor: pointer;
        }

        #sf-page .file-preview img{
            display: block;
            width: 100%;
            height: 100%;
            border-radius: inherit;
            object-fit: cover;
        }

        #sf-page .file-preview-doc{
            position: relative;
            display: flex;
            height: 100%;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.15rem;
            padding: 0.25rem;
            overflow: hidden;
            border-radius: inherit;
            color: var(--muted-foreground);
            text-align: center;
        }

        #sf-page .file-preview-doc img{
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        #sf-page .file-preview-doc svg{
            inline-size: 2.65rem;
            block-size: 2.65rem;
        }


        #sf-page .remove-file{
            position: absolute;
            inset-block-start: -0.35rem;
            inset-inline-end: -0.35rem;
            display: grid;
            width: 2.75rem;
            height: 2.75rem;
            place-items: center;
            border: 0;
            border-radius: 50%;
            background: transparent;
            color: transparent;
            font: inherit;
            font-size: 0;
            cursor: pointer;
        }

        #sf-page .remove-file::before{
            display: grid;
            width: 1.6rem;
            height: 1.6rem;
            place-items: center;
            border: 2px solid #fff;
            border-radius: 50%;
            background: var(--primary);
            color: #fff;
            content: '×';
            font-size: 1rem;
            box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
        }



        #sf-page .composer-sr-only{
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip-path: inset(50%);
            white-space: nowrap;
        }








        #sf-page .remove-file:focus-visible{
            outline: 2px solid var(--ring);
            outline-offset: 2px;
        }




        #sf-page .composer-hint{
            margin-block: 0.6rem 1rem;
            color: var(--muted-foreground);
            font-size: 0.8125rem;
            text-align: center;
        }






        #sf-page .camera-container{
            display: none;
            width: 100%;
            flex-direction: column;
            align-items: center;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            background: #000;
            position: relative;
            margin-block-end: 0.75rem;
        }

        #sf-page .camera-video{
            width: 100%;
            max-height: 320px;
            object-fit: cover;
        }

        #sf-page .camera-actions{
            position: absolute;
            bottom: 1rem;
            display: flex;
            gap: 1rem;
            z-index: 10;
        }

        /* Buttons */
        #sf-page .btn{
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            height: 2.5rem;
            padding: 0 1.25rem;
            font-size: 0.875rem;
            font-weight: 500;
            border-radius: calc(var(--radius) - 2px);
            cursor: pointer;
            transition: all 0.15s ease;
            border: 1px solid transparent;
            text-decoration: none;
        }

        #sf-page .btn-primary{
            background-color: var(--primary);
            color: var(--primary-foreground);
        }

        #sf-page .btn-primary:hover{
            opacity: 0.9;
        }

        #sf-page .btn-secondary{
            background-color: var(--secondary);
            color: var(--secondary-foreground);
            border-color: var(--border);
        }

        #sf-page .btn-secondary:hover{
            background-color: var(--accent);
        }



                #sf-page .casa-column{
            display: flex;
            flex-direction: column;
            gap: 1rem;
            inline-size: 100%;
            max-inline-size: none;
        }

        /* Escala proporcional do feed: a coluna ocupa a largura disponível e
           texto/ícones crescem com o ecrã. clamp() garante 16px como mínimo
           (sem zoom automático no iOS e sem texto minúsculo). */
        #sf-page .casa-column{
            max-inline-size: 100%;
            font-size: clamp(1rem, 0.55rem + 0.9vw, 1.3rem);
        }

/* Alvos de toque: os tamanhos já são fixos (40/36px) e cabem a 360px. */
