/* Стили страницы «air_curtains_manual_profile_editor». Вынесены из <style> в шаблоне без правки правил.
 * Ссылка стоит ровно там, где стоял блок: порядок в каскаде сохранён. */

* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
            background: var(--slate-50);
            color: var(--slate-900);
            line-height: 1.6;
            padding: 20px;
        }

        /* AIR-CURTAINS-MANUAL-SELECTION-ACTION-PANEL-01: overrides
           workbench.css's .action-bar (position: fixed) -- this page's own
           stylesheet now loads AFTER workbench.css specifically so this
           wins the cascade without !important. See the HTML comment next
           to workbench.css's <link> and this task's CURRENT_STATE.md
           section J for why `position: fixed` + a chasing padding-bottom
           doesn't actually prevent content from passing under the bar
           while scrolling -- this page never gets embedded as a fragment
           (unlike air_curtains_project.html), so the fix applies directly,
           no branching needed. */
        body.ac-standalone-shell {
            display: flex;
            flex-direction: column;
            height: 100dvh;
            overflow: hidden;
        }

        body.ac-standalone-shell > .app-header {
            flex: 0 0 auto;
        }

        body.ac-standalone-shell > .ac-scroll-main {
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
            padding-bottom: 20px;
        }

        .action-bar {
            position: static;
            width: 100%;
            flex: 0 0 auto;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            padding: 30px;
        }
        
        header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--slate-200);
        }
        
        h1 {
            color: var(--slate-900);
            font-size: 2rem;
            margin-bottom: 8px;
        }
        
        .subtitle {
            color: var(--slate-500);
            font-size: 1rem;
        }
        
        .form-section {
            margin-bottom: 30px;
            padding: 20px;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: var(--slate-50);
            /* Same fix as .field in air_curtains_project.css (CDW-UXFORM-03):
               without this, a native scrollIntoView() (keyboard nav, anchor
               links, or a future "jump to section" control) aligns a
               section's bottom flush with the raw viewport edge -- which is
               visually behind the fixed .action-bar, since scrollIntoView
               has no notion of the space that panel occupies. scroll-margin-
               bottom is honored by scrollIntoView natively and tracks the
               panel's real height via the same --action-panel-height
               variable the body padding uses. */
            scroll-margin-bottom: calc(var(--action-panel-height, 150px) + 20px);
        }
        
        .form-section h2 {
            color: var(--slate-900);
            margin-bottom: 20px;
            font-size: 1.5rem;
            border-bottom: 1px solid var(--slate-200);
            padding-bottom: 10px;
        }
        
        .form-row {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            color: var(--slate-700);
            font-size: 0.9rem;
        }
        
        input, select, textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--slate-300);
            border-radius: 6px;
            font-size: 14px;
            background: var(--white);
        }
        
        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: var(--blue-500);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }
        
        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .checkbox-group input[type="checkbox"] {
            width: auto;
        }
        
        .buttons {
            display: flex;
            gap: 10px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        button {
            padding: 12px 20px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-primary {
            background: var(--blue-500);
            color: white;
        }
        
        .btn-primary:hover {
            background: var(--blue-600);
        }
        
        .btn-secondary {
            background: var(--slate-200);
            color: var(--slate-700);
        }
        
        .btn-secondary:hover {
            background: var(--slate-300);
        }
        
        .btn-success {
            background: var(--emerald-500);
            color: white;
        }
        
        .btn-success:hover {
            background: var(--emerald-600);
        }
        
        .btn-danger {
            background: var(--red-500);
            color: white;
        }
        
        .btn-danger:hover {
            background: var(--red-600);
        }
        
        .back-button {
            display: inline-block;
            padding: 12px 20px;
            background: var(--slate-200);
            color: var(--slate-700);
            text-decoration: none;
            border-radius: 6px;
            font-weight: 600;
            margin-top: 20px;
            transition: background 0.2s;
        }
        
        .back-button:hover {
            background: var(--slate-300);
        }
        
        .repeatable-section {
            border: 1px dashed var(--slate-300);
            border-radius: 6px;
            padding: 15px;
            margin-bottom: 15px;
            background: white;
        }
        
        .remove-button {
            background: var(--red-500);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 5px 10px;
            cursor: pointer;
            font-size: 12px;
            margin-top: 10px;
        }
        
        .add-button {
            background: var(--emerald-500);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 8px 12px;
            cursor: pointer;
            font-size: 14px;
            margin: 10px 0;
        }
        
        .status-indicator {
            padding: 8px 12px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.9rem;
            display: inline-block;
            margin-left: 10px;
        }
        
        .status-draft {
            background: var(--red-100);
            color: var(--red-800);
        }
        
        .status-approved {
            background: var(--green-100);
            color: var(--green-800);
        }
        
        .status-needs-review {
            background: var(--yellow-100);
            color: var(--yellow-800);
        }
        
        @media (max-width: 768px) {
            .container {
                padding: 15px;
            }
            
            .form-row {
                grid-template-columns: 1fr;
            }
            
            .buttons {
                flex-direction: column;
            }
            
            button {
                width: 100%;
            }
        }
