v3.0.0.0
FlatlyPage
- *,
- *::before,
- *::after {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- }
-
- :root {
- --bg: #040405;
- --bg-elevated: #09090b;
- --bg-card: #0f0f12;
- --bg-hover: #16161a;
- --border: #1a1a1f;
- --border-focus: #2a2a31;
- --text: #f2f2f4;
- --text-muted: #8a8a95;
- --text-subtle: #62626c;
- --accent: #7c6df2;
- --accent-hover: #8f82f5;
- --accent-dim: rgba(124, 109, 242, 0.14);
- --success: #34c48c;
- --error: #f0546a;
- --blue: #4fb2e8;
- --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 22px rgba(0, 0, 0, 0.45);
- --inset-hairline: inset 0 1px 0 rgba(255, 255, 255, 0.03);
- --radius: 12px;
- --radius-sm: 8px;
- color-scheme: dark;
-
- --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
- --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
- --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
- --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
- }
-
- [data-theme="light"] {
- color-scheme: light;
- --bg: #f7f7f9;
- --bg-elevated: #ffffff;
- --bg-card: #f1f1f4;
- --bg-hover: #e9e9ee;
- --border: #e4e4ea;
- --border-focus: #d3d3dc;
- --text: #17171b;
- --text-muted: #6a6a76;
- --text-subtle: #9a9aa5;
- --accent: #6c5ce7;
- --accent-hover: #5c4bd6;
- --accent-dim: rgba(108, 92, 231, 0.1);
- --success: #34c48c;
- --error: #f0546a;
- --blue: #4fb2e8;
- --shadow-card: 0 1px 2px rgba(20, 20, 30, 0.04), 0 6px 16px rgba(20, 20, 30, 0.05);
- --inset-hairline: inset 0 1px 0 rgba(255, 255, 255, 0.6);
- --radius: 12px;
- --radius-sm: 8px;
-
- --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
- --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
- --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
- --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
- }
-
- body {
- font-family: var(--font-interface, 'Space Grotesk'), -apple-system, BlinkMacSystemFont, sans-serif;
- background: var(--bg);
- color: var(--text);
- line-height: 1.5;
- -webkit-font-smoothing: antialiased;
- }
-
- button,
- input,
- select,
- textarea {
- font-family: inherit;
- }
-
- a {
- color: inherit;
- text-decoration: none;
- }
-
- select option,
- select optgroup {
- background-color: var(--bg-elevated);
- color: var(--text);
- }
-
- .app {
- display: flex;
- min-height: 100vh;
- }
-
- .sidebar {
- width: 260px;
- background: var(--bg-elevated);
- border-right: 1px solid var(--border);
- display: flex;
- flex-direction: column;
- position: fixed;
- top: 0;
- left: 0;
- bottom: 0;
- z-index: 100;
- transition: transform var(--transition-smooth);
- will-change: transform;
- }
-
- .sidebar-header {
- padding: 20px 20px 16px;
- height: 64.5px;
- border-bottom: 1px solid var(--border);
- }
-
- .sidebar-logo {
- font-size: 1.125rem;
- font-weight: 700;
- display: flex;
- align-items: center;
- gap: 10px;
- }
-
- .sidebar-logo span {
- font-size: 0.75rem;
- font-weight: 500;
- background: var(--bg-card);
- padding: 2px 8px;
- border-radius: 4px;
- color: var(--text-muted);
- transition: background var(--transition-base), color var(--transition-base);
- }
-
- .sidebar-nav {
- padding: 16px 12px;
- flex: 1;
- overflow-y: auto;
- }
-
- .nav-section {
- margin-bottom: 24px;
- }
-
- .nav-label {
- font-size: 0.6875rem;
- font-weight: 600;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- color: var(--text-subtle);
- padding: 0 12px;
- margin-bottom: 8px;
- }
-
- .nav-item {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 10px 12px;
- font-size: 0.875rem;
- color: var(--text-muted);
- border-radius: var(--radius-sm);
- transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
- margin-bottom: 2px;
- will-change: background, color;
- }
-
- .nav-item:hover {
- background: var(--bg-hover);
- color: var(--text);
- transform: translateX(2px);
- }
-
- .nav-item.active {
- background: var(--bg-card);
- color: var(--text);
- }
-
- .nav-item svg {
- width: 18px;
- height: 18px;
- flex-shrink: 0;
- transition: transform var(--transition-fast);
- }
-
- .nav-item:hover svg {
- transform: scale(1.05);
- }
-
- .sidebar-footer {
- padding: 16px;
- border-top: 1px solid var(--border);
- }
-
- .user-menu {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 10px 12px;
- border-radius: var(--radius-sm);
- transition: background var(--transition-base);
- }
-
- .user-menu:hover {
- background: var(--bg-hover);
- }
-
- .user-avatar {
- width: 32px;
- height: 32px;
- background: linear-gradient(135deg, #94a3b8, #cbd5e1);
- border-radius: 8px;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 0.75rem;
- font-weight: 600;
- transition: transform var(--transition-base);
- }
-
- .user-menu:hover .user-avatar {
- transform: scale(1.05);
- }
-
- [data-theme="dark"] .user-avatar {
- background: linear-gradient(135deg, #333, #555);
- }
-
- .user-info {
- flex: 1;
- }
-
- .user-name {
- font-size: 0.875rem;
- font-weight: 500;
- }
-
- .user-role {
- font-size: 0.75rem;
- color: var(--text-muted);
- }
-
- .main {
- flex: 1;
- margin-left: 260px;
- transition: margin-left var(--transition-smooth);
- }
-
- .main-header {
- position: sticky;
- top: 0;
- z-index: 50;
- background: rgba(248, 250, 252, 0.8);
- backdrop-filter: blur(12px);
- border-bottom: 1px solid var(--border);
- padding: 0 32px;
- transition: background var(--transition-base), border-color var(--transition-base);
- }
-
- [data-theme="dark"] .main-header {
- background: color-mix(in srgb, var(--bg-elevated) 85%, transparent);
- }
-
- .main-header-inner {
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 64px;
- }
-
- .main-header h1 {
- font-size: 1rem;
- font-weight: 600;
- }
-
- .header-actions {
- display: flex;
- align-items: center;
- gap: 12px;
- }
-
- .mobile-nav-toggle {
- display: none;
- align-items: center;
- justify-content: center;
- width: 44px;
- height: 44px;
- padding: 0;
- background: transparent;
- border: none;
- border-radius: var(--radius-sm);
- cursor: pointer;
- color: var(--text);
- transition: background var(--transition-base), transform var(--transition-fast);
- }
-
- .mobile-nav-toggle:hover {
- background: var(--bg-hover);
- }
-
- .mobile-nav-toggle:active {
- transform: scale(0.95);
- }
-
- .mobile-nav-toggle svg {
- width: 24px;
- height: 24px;
- transition: transform var(--transition-base);
- }
-
- @media (max-width: 768px) {
- .mobile-nav-toggle {
- display: flex;
- }
- }
-
- .main-content {
- padding: 32px;
- max-width: 2100px;
- }
-
- .btn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- padding: 10px 18px;
- font-size: 0.875rem;
- font-weight: 500;
- border-radius: var(--radius-sm);
- cursor: pointer;
- transition: all var(--transition-base);
- border: none;
- font-family: inherit;
- will-change: transform, opacity;
- }
-
- .btn:active {
- transform: scale(0.98);
- }
-
- .btn svg {
- width: 16px;
- height: 16px;
- transition: transform var(--transition-fast);
- }
-
- .btn:hover svg {
- transform: scale(1.1);
- }
-
- .btn-primary {
- background: var(--text);
- color: var(--bg);
- }
-
- .btn-primary:hover {
- opacity: 0.9;
- transform: translateY(-1px);
- }
-
- .btn-secondary {
- background: var(--bg-elevated);
- color: var(--text);
- border: 1px solid var(--border);
- }
-
- .btn-secondary:hover {
- background: var(--bg-hover);
- border-color: var(--border-focus);
- transform: translateY(-1px);
- }
-
- .btn-ghost {
- background: transparent;
- color: var(--text-muted);
- }
-
- .btn-ghost:hover {
- background: var(--bg-hover);
- color: var(--text);
- }
-
- .btn-danger {
- background: var(--error);
- color: white;
- }
-
- .btn-danger:hover {
- opacity: 0.9;
- transform: translateY(-1px);
- }
-
- .btn-sm {
- padding: 6px 12px;
- font-size: 0.8125rem;
- }
-
- .btn-icon {
- padding: 8px;
- }
-
- .message {
- padding: 14px 18px;
- border-radius: var(--radius-sm);
- margin-bottom: 24px;
- font-size: 0.875rem;
- display: flex;
- align-items: center;
- gap: 12px;
- animation: slideIn var(--transition-smooth) ease-out;
- }
-
- @keyframes slideIn {
- from {
- opacity: 0;
- transform: translateY(-10px);
- }
-
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
-
- .message.success {
- background: rgba(34, 197, 94, 0.1);
- border: 1px solid rgba(34, 197, 94, 0.3);
- color: var(--success);
- }
-
- [data-theme="light"] .message.success {
- background: rgba(22, 163, 74, 0.1);
- border: 1px solid rgba(22, 163, 74, 0.3);
- }
-
- .message.error {
- background: rgba(239, 68, 68, 0.1);
- border: 1px solid rgba(239, 68, 68, 0.3);
- color: var(--error);
- }
-
- [data-theme="light"] .message.error {
- background: rgba(220, 38, 38, 0.1);
- border: 1px solid rgba(220, 38, 38, 0.3);
- }
-
- .form-section {
- margin-bottom: 32px;
- }
-
- .form-section-title {
- font-size: 0.9375rem;
- font-weight: 600;
- margin-bottom: 16px;
- }
-
- .form-row {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: 16px;
- }
-
- .form-row-3 {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 16px;
- }
-
- .form-group {
- margin-bottom: 20px;
- }
-
- .form-group:last-child {
- margin-bottom: 0;
- }
-
- .form-label {
- display: block;
- font-size: 0.8125rem;
- font-weight: 500;
- margin-bottom: 8px;
- color: var(--text-muted);
- transition: color var(--transition-fast);
- }
-
- .form-input,
- .form-textarea,
- .form-select {
- width: 100%;
- padding: 12px 14px;
- background: var(--bg-elevated);
- border: 1px solid var(--border);
- border-radius: var(--radius-sm);
- color: var(--text);
- font-size: 0.875rem;
- font-family: inherit;
- transition: border-color var(--transition-base), background var(--transition-base), transform var(--transition-fast);
- }
-
- .form-input:focus,
- .form-textarea:focus,
- .form-select:focus {
- outline: none;
- border-color: var(--border-focus);
- transform: translateY(-1px);
- }
-
- .form-textarea {
- min-height: 100px;
- resize: vertical;
- }
-
- .form-textarea.form-code {
- min-height: 280px;
- font-family: ui-monospace, Consolas, monospace;
- font-size: 0.8rem;
- line-height: 1.55;
- white-space: pre;
- overflow-x: auto;
- tab-size: 4;
- }
-
- .custom-html-item {
- padding: 16px;
- margin-top: 16px;
- border: 1px solid var(--border);
- border-radius: var(--radius, 12px);
- }
-
- .custom-html-head {
- display: flex;
- gap: 8px;
- align-items: center;
- margin-bottom: 10px;
- }
-
- .custom-html-head .form-input {
- flex: 1;
- min-width: 0;
- }
-
- .custom-html-item .form-textarea.form-code {
- min-height: 140px;
- }
-
- .analytics-switch {
- display: flex;
- align-items: center;
- gap: 12px;
- }
-
- .analytics-switch .form-switch {
- flex-shrink: 0;
- }
-
- .analytics-switch > label {
- font-size: 0.875rem;
- color: var(--text-muted);
- cursor: pointer;
- }
-
- .analytics-table {
- width: 100%;
- }
-
- .analytics-table th:last-child,
- .analytics-row-actions {
- text-align: right;
- white-space: nowrap;
- }
-
- .analytics-row-actions .btn + .btn {
- margin-left: 6px;
- }
-
- .analytics-name,
- .analytics-empty {
- font-weight: 600;
- }
-
- .analytics-actions {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 8px;
- }
-
- .analytics-actions [hidden] {
- display: none !important;
- }
-
- .analytics-status {
- font-size: 0.8rem;
- color: var(--text-muted);
- }
-
- .analytics-status.is-error {
- color: var(--error, #ef4444);
- }
-
- .card:has(> .analytics-table) {
- overflow-x: auto;
- }
-
- .form-hint {
- font-size: 0.75rem;
- color: var(--text-subtle);
- margin-top: 6px;
- }
-
- .form-switch {
- display: inline-block;
- position: relative;
- width: 48px;
- height: 24px;
- }
-
- .form-switch input {
- opacity: 0;
- width: 0;
- height: 0;
- }
-
- .form-switch label {
- position: absolute;
- cursor: pointer;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: var(--border);
- transition: background-color var(--transition-smooth);
- border-radius: 24px;
- }
-
- .form-switch label:before {
- position: absolute;
- content: "";
- height: 16px;
- width: 16px;
- left: 4px;
- bottom: 4px;
- background-color: white;
- transition: transform var(--transition-smooth);
- border-radius: 50%;
- will-change: transform;
- }
-
- .form-switch input:checked+label {
- background-color: var(--blue);
- }
-
- .form-switch input:checked+label:before {
- transform: translateX(24px);
- }
-
- .card {
- background: var(--bg-elevated);
- border: 1px solid var(--border);
- border-radius: var(--radius);
- overflow: hidden;
- transition: border-color var(--transition-base), transform var(--transition-base);
- }
-
- .card:hover {
- border-color: var(--border-focus);
- }
-
- .card-header {
- padding: 20px 24px;
- border-bottom: 1px solid var(--border);
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
-
- .card-title {
- font-size: 0.9375rem;
- font-weight: 600;
- }
-
- .card-body {
- padding: 24px;
- }
-
- .checkbox-label {
- display: inline-flex;
- align-items: center;
- gap: 12px;
- cursor: pointer;
- font-size: 0.875rem;
- font-weight: 500;
- color: var(--text);
- transition: all var(--transition-fast);
- padding: 2px 0;
- }
-
- .checkbox-label:hover {
- color: var(--accent);
- }
-
- .checkbox-label input[type="checkbox"] {
- position: relative;
- width: 20px;
- height: 20px;
- cursor: pointer;
- appearance: none;
- -webkit-appearance: none;
- background: var(--bg-card);
- border: 2px solid var(--border);
- border-radius: 6px;
- transition: all var(--transition-base);
- flex-shrink: 0;
- }
-
- .checkbox-label input[type="checkbox"]:hover {
- border-color: var(--border-focus);
- transform: scale(1.05);
- }
-
- .checkbox-label input[type="checkbox"]:checked {
- background: var(--blue);
- border-color: var(--blue);
- }
-
- .checkbox-label input[type="checkbox"]:checked::after {
- content: '';
- position: absolute;
- left: 6px;
- top: 2px;
- width: 4px;
- height: 9px;
- border: solid white;
- border-width: 0 2px 2px 0;
- transform: rotate(45deg);
- }
-
- .checkbox-label input[type="checkbox"]:focus {
- outline: none;
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
- }
-
- .checkbox-label input[type="checkbox"]:active {
- transform: scale(0.95);
- }
-
- .checkbox-label span {
- user-select: none;
- transition: color var(--transition-fast);
- }
-
- .table {
- width: 100%;
- border-collapse: collapse;
- }
-
- .table th,
- .table td {
- padding: 14px 20px;
- text-align: left;
- }
-
- .table th {
- font-size: 0.75rem;
- font-weight: 600;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- color: var(--text-subtle);
- background: var(--bg-card);
- border-bottom: 1px solid var(--border);
- }
-
- .table td {
- border-bottom: 1px solid var(--border);
- font-size: 0.875rem;
- transition: background var(--transition-fast);
- }
-
- .table tr:hover td {
- background: var(--bg-hover);
- }
-
- .table tr:last-child td {
- border-bottom: none;
- }
-
- .product-title {
- font-weight: 500;
- }
-
- .product-slug {
- color: var(--text-muted);
- font-size: 0.75rem;
- font-family: ui-monospace, monospace;
- }
-
- .product-date {
- color: var(--text-muted);
- font-size: 0.8125rem;
- }
-
- .product-actions {
- display: flex;
- gap: 8px;
- }
-
- .empty-state {
- text-align: center;
- padding: 64px 24px;
- color: var(--text-muted);
- animation: fadeIn var(--transition-smooth) ease-out;
- }
-
- @keyframes fadeIn {
- from {
- opacity: 0;
- }
-
- to {
- opacity: 1;
- }
- }
-
- .empty-state-icon {
- width: 48px;
- height: 48px;
- margin: 0 auto 16px;
- opacity: 0.3;
- transition: opacity var(--transition-base), transform var(--transition-base);
- }
-
- .empty-state:hover .empty-state-icon {
- opacity: 0.5;
- transform: scale(1.05);
- }
-
- .empty-state h3 {
- font-size: 1rem;
- margin-bottom: 8px;
- color: var(--text);
- }
-
- .empty-state p {
- font-size: 0.875rem;
- margin-bottom: 24px;
- }
-
- .editor-wrapper {
- background: var(--bg-elevated);
- border-radius: var(--radius);
- border: 1px solid var(--border);
- }
-
- .editor-toolbar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 12px 16px;
- border-bottom: 1px solid var(--border);
- background: var(--bg-card);
- border-radius: var(--radius) var(--radius) 0 0;
- flex-wrap: wrap;
- gap: 12px;
- }
-
- .editor-toolbar-left {
- display: flex;
- align-items: center;
- gap: 12px;
- }
-
- .editor-toolbar-right {
- display: flex;
- align-items: center;
- gap: 8px;
- flex-wrap: wrap;
- }
-
- .blocks-container {
- padding: 24px;
- min-height: 400px;
- }
-
- .block-item {
- background: var(--bg-card);
- border: 1px solid var(--border);
- border-radius: var(--radius-sm);
- margin-bottom: 12px;
- transition: border-color var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
- position: relative;
- will-change: transform, border-color;
- }
-
- .block-item:hover {
- border-color: var(--border-focus);
- }
-
- .block-item.dragging {
- opacity: 0.5;
- border-color: var(--blue);
- transform: scale(0.98);
- }
-
- .block-item.drag-over {
- border-color: var(--blue);
- background: rgba(59, 130, 246, 0.05);
- transform: scale(1.02);
- }
-
- .block-item.expanded {
- border-color: var(--blue);
- }
-
- .block-header {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 12px 16px;
- border-bottom: 1px solid transparent;
- cursor: pointer;
- user-select: none;
- transition: background var(--transition-fast);
- }
-
-
- .block-item.expanded .block-header {
- border-bottom-color: var(--border);
- }
-
- .block-drag {
- cursor: grab;
- color: var(--text-subtle);
- padding: 4px;
- display: flex;
- align-items: center;
- transition: color var(--transition-fast), transform var(--transition-fast);
- }
-
- .block-drag:hover {
- color: var(--text);
- transform: scale(1.1);
- }
-
- .block-drag:active {
- cursor: grabbing;
- }
-
- .block-type {
- font-size: 0.6875rem;
- font-weight: 600;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- color: var(--text-muted);
- background: var(--bg-elevated);
- padding: 4px 8px;
- border-radius: 4px;
- transition: background var(--transition-base), color var(--transition-base);
- }
-
- .block-title {
- flex: 1;
- font-size: 0.875rem;
- font-weight: 500;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .block-id-input {
- background: var(--bg-elevated);
- border: 1px solid var(--border);
- color: var(--text-muted);
- padding: 4px 8px;
- border-radius: 4px;
- font-size: 0.75rem;
- transition: all var(--transition-base);
- }
-
- .block-id-input:focus {
- outline: none;
- border-color: var(--blue);
- color: var(--text);
- background: var(--bg-card);
- transform: scale(1.02);
- }
-
- .block-id-input::placeholder {
- color: var(--text-subtle);
- }
-
- .block-actions {
- display: flex;
- gap: 4px;
- opacity: 0;
- transition: opacity var(--transition-base);
- }
-
- .block-item:hover .block-actions {
- opacity: 1;
- }
-
- .block-toggle {
- background: none;
- border: none;
- color: var(--text-muted);
- cursor: pointer;
- padding: 4px;
- transition: color var(--transition-fast), transform var(--transition-fast);
- display: flex;
- align-items: center;
- }
-
- .block-toggle:hover {
- color: var(--text);
- transform: scale(1.1);
- }
-
- .block-toggle:active {
- transform: scale(0.95);
- }
-
- .block-toggle svg {
- width: 18px;
- height: 18px;
- transition: transform var(--transition-smooth);
- }
-
- .block-content {
- padding: 16px;
- display: none;
- background: var(--bg-elevated);
- animation: expandContent var(--transition-smooth) ease-out;
- }
-
- @keyframes expandContent {
- from {
- opacity: 0;
- transform: translateY(-10px);
- }
-
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
-
- .block-item.expanded .block-content {
- display: block;
- }
-
- .block-item.expanded .block-toggle-arrow svg {
- transform: rotate(180deg);
- }
-
- .block-field {
- margin-bottom: 16px;
- }
-
- .block-field:last-child {
- margin-bottom: 0;
- }
-
- .block-field-label {
- font-size: 0.75rem;
- font-weight: 500;
- color: var(--text-muted);
- margin-bottom: 6px;
- display: flex;
- align-items: center;
- gap: 8px;
- }
-
- .block-field-input {
- width: 100%;
- padding: 10px 12px;
- background: var(--bg-card);
- border: 1px solid var(--border);
- border-radius: 6px;
- color: var(--text);
- font-size: 0.875rem;
- font-family: inherit;
- transition: border-color var(--transition-base), background var(--transition-base), transform var(--transition-fast);
- }
-
- .block-field-input:focus {
- outline: none;
- border-color: var(--border-focus);
- transform: translateY(-1px);
- box-shadow: 0 0 0 3px rgba(64, 64, 64, 0.1);
- }
-
- .block-field-textarea {
- min-height: 80px;
- resize: vertical;
- }
-
- .link-input-wrapper {
- position: relative;
- }
-
- .link-input-wrapper .form-input {
- padding-right: 40px;
- }
-
- .link-page-btn {
- position: absolute;
- right: 4px;
- top: 50%;
- transform: translateY(-50%);
- background: var(--bg-hover);
- border: none;
- padding: 6px 8px;
- border-radius: 4px;
- cursor: pointer;
- color: var(--text-muted);
- display: flex;
- align-items: center;
- transition: color var(--transition-base), background var(--transition-base), transform var(--transition-fast);
- }
-
- .link-page-btn:hover {
- color: var(--text);
- background: var(--border);
- transform: translateY(-50%) scale(1.05);
- }
-
- .link-page-btn:active {
- transform: translateY(-50%) scale(0.95);
- }
-
- .repeater-items {
- margin-top: 12px;
- }
-
- .repeater-item {
- background: var(--bg-elevated);
- border: 1px solid var(--border);
- border-radius: 6px;
- margin-bottom: 8px;
- overflow: hidden;
- transition: border-color var(--transition-base), transform var(--transition-fast);
- }
-
- .repeater-item:hover {
- border-color: var(--border-focus);
- }
-
- .repeater-item-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 10px 12px;
- background: var(--bg-card);
- border-bottom: 1px solid transparent;
- cursor: pointer;
- transition: background var(--transition-fast);
- }
-
- .repeater-item-header:hover {
- background: var(--bg-hover);
- }
-
- .repeater-item.expanded .repeater-item-header {
- border-bottom-color: var(--border);
- }
-
- .repeater-item-title {
- font-size: 0.8125rem;
- font-weight: 500;
- }
-
- .repeater-item-actions {
- display: flex;
- gap: 4px;
- }
-
- .repeater-item-content {
- padding: 12px;
- display: none;
- animation: expandContent var(--transition-smooth) ease-out;
- }
-
- .repeater-item.expanded .repeater-item-content {
- display: block;
- }
-
- .repeater-add {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 6px;
- width: 100%;
- padding: 10px;
- background: transparent;
- border: 1px dashed var(--border);
- border-radius: 6px;
- color: var(--text-muted);
- font-size: 0.8125rem;
- cursor: pointer;
- transition: all var(--transition-base);
- margin-top: 8px;
- }
-
- .repeater-add:hover {
- border-color: var(--border-focus);
- color: var(--text);
- background: var(--bg-hover);
- transform: scale(1.01);
- }
-
- .repeater-add:active {
- transform: scale(0.99);
- }
-
- .add-block-btn {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- width: 100%;
- padding: 16px;
- background: transparent;
- border: 2px dashed var(--border);
- border-radius: var(--radius-sm);
- color: var(--text-muted);
- font-size: 0.875rem;
- font-weight: 500;
- cursor: pointer;
- transition: all var(--transition-base);
- }
-
- .add-block-btn:hover {
- border-color: var(--border-focus);
- color: var(--text);
- background: var(--bg-hover);
- transform: scale(1.01);
- }
-
- .add-block-btn:active {
- transform: scale(0.99);
- }
-
- .modal-overlay {
- display: none;
- position: fixed;
- inset: 0;
- background: rgba(0, 0, 0, 0.75);
- z-index: 1000;
- align-items: center;
- justify-content: center;
- padding: 20px;
- animation: fadeIn var(--transition-base) ease-out;
- backdrop-filter: blur(4px);
- transition: backdrop-filter var(--transition-base);
- }
-
- [data-theme="light"] .modal-overlay {
- background: rgba(15, 23, 42, 0.5);
- }
-
- .modal-overlay.active {
- display: flex;
- }
-
- .modal {
- background: var(--bg-elevated);
- border: 1px solid var(--border);
- border-radius: var(--radius);
- width: 100%;
- max-width: 700px;
- max-height: 85vh;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- animation: modalSlideIn var(--transition-smooth) cubic-bezier(0.16, 1, 0.3, 1);
- will-change: transform, opacity;
- }
-
- @keyframes modalSlideIn {
- from {
- opacity: 0;
- transform: scale(0.95) translateY(20px);
- }
-
- to {
- opacity: 1;
- transform: scale(1) translateY(0);
- }
- }
-
- [data-theme="light"] .modal {
- box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
- }
-
- .modal-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 20px 24px;
- border-bottom: 1px solid var(--border);
- flex-shrink: 0;
- }
-
- .modal-title {
- font-size: 1rem;
- font-weight: 600;
- }
-
- .modal-close {
- background: none;
- border: none;
- color: var(--text-muted);
- cursor: pointer;
- padding: 4px;
- display: flex;
- transition: color var(--transition-fast), transform var(--transition-fast);
- }
-
- .modal-close:hover {
- color: var(--text);
- transform: scale(1.1);
- }
-
- .modal-close:active {
- transform: scale(0.95);
- }
-
- .modal-body {
- padding: 24px;
- overflow-y: auto;
- flex: 1;
- scrollbar-width: thin;
- scrollbar-color: var(--border-focus) transparent;
- }
-
- .modal-body::-webkit-scrollbar {
- width: 6px;
- }
-
- .modal-body::-webkit-scrollbar-track {
- background: transparent;
- margin-block: 4px;
- }
-
- .modal-body::-webkit-scrollbar-thumb {
- background-color: var(--border);
- border-radius: 10px;
- transition: background-color var(--transition-base);
- }
-
- .modal-body::-webkit-scrollbar-thumb:hover {
- background-color: var(--text-muted);
- }
-
- .block-types-grid {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 12px;
- }
-
- .block-type-card {
- background: var(--bg-card);
- border: 1px solid var(--border);
- border-radius: var(--radius-sm);
- padding: 20px;
- text-align: center;
- cursor: pointer;
- transition: all var(--transition-base);
- will-change: transform, border-color;
- }
-
- .block-type-card:hover {
- border-color: var(--border-focus);
- background: var(--bg-hover);
- transform: translateY(-4px);
- }
-
- .block-type-card:active {
- transform: translateY(-2px);
- }
-
- [data-theme="light"] .block-type-card:hover {
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
- }
-
- .block-type-card svg {
- width: 32px;
- height: 32px;
- margin-bottom: 12px;
- color: var(--text-muted);
- transition: transform var(--transition-base), color var(--transition-base);
- }
-
- .block-type-card:hover svg {
- transform: scale(1.1);
- color: var(--text);
- }
-
- .block-type-card h4 {
- font-size: 0.875rem;
- font-weight: 500;
- margin-bottom: 4px;
- }
-
- .block-type-card p {
- font-size: 0.75rem;
- color: var(--text-muted);
- }
-
- .modal-actions {
- display: flex;
- gap: 12px;
- justify-content: flex-end;
- margin-top: 24px;
- }
-
- .icon-select {
- display: flex;
- gap: 8px;
- flex-wrap: wrap;
- margin-top: 8px;
- }
-
- .icon-option {
- width: 36px;
- height: 36px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: var(--bg-elevated);
- border: 1px solid var(--border);
- border-radius: 6px;
- cursor: pointer;
- transition: all var(--transition-base);
- }
-
- .icon-option:hover {
- border-color: var(--border-focus);
- transform: scale(1.1);
- }
-
- .icon-option:active {
- transform: scale(0.95);
- }
-
- .icon-option.selected {
- border-color: var(--blue);
- background: rgba(59, 130, 246, 0.1);
- transform: scale(1.05);
- }
-
- .icon-option svg {
- width: 18px;
- height: 18px;
- color: var(--text-muted);
- transition: color var(--transition-fast);
- }
-
- .icon-option:hover svg {
- color: var(--text);
- }
-
- .page-selector {
- position: absolute;
- top: 100%;
- left: 0;
- right: 0;
- background: var(--bg-elevated);
- border: 1px solid var(--border);
- border-radius: var(--radius-sm);
- box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
- z-index: 100;
- display: none;
- max-height: 200px;
- overflow-y: auto;
- animation: dropdownSlideIn var(--transition-base) ease-out;
- }
-
- @keyframes dropdownSlideIn {
- from {
- opacity: 0;
- transform: translateY(-10px);
- }
-
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
-
- [data-theme="light"] .page-selector {
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
- }
-
- .page-selector.active {
- display: block;
- }
-
- .page-selector-item {
- padding: 10px 12px;
- cursor: pointer;
- font-size: 0.875rem;
- border-bottom: 1px solid var(--border);
- transition: background var(--transition-fast), transform var(--transition-fast);
- }
-
- .page-selector-item:last-child {
- border-bottom: none;
- }
-
- .page-selector-item:hover {
- background: var(--bg-hover);
- transform: translateX(4px);
- }
-
- .page-selector-item small {
- color: var(--text-muted);
- display: block;
- font-size: 0.75rem;
- }
-
- .settings-tabs {
- display: flex;
- gap: 4px;
- margin-bottom: 24px;
- background: var(--bg-card);
- padding: 4px;
- border-radius: var(--radius-sm);
- }
-
- .settings-tab {
- flex: 1;
- padding: 10px 16px;
- background: transparent;
- border: none;
- color: var(--text-muted);
- font-size: 0.875rem;
- font-weight: 500;
- border-radius: 6px;
- cursor: pointer;
- transition: all var(--transition-base);
- position: relative;
- }
-
- .settings-tab:hover {
- color: var(--text);
- }
-
- .settings-tab.active {
- background: var(--bg-elevated);
- color: var(--text);
- }
-
- .settings-panel {
- display: none;
- animation: fadeIn var(--transition-base) ease-out;
- }
-
- .settings-panel.active {
- display: block;
- }
-
- .image-text {
- padding: 60px 0;
- }
-
- .image-text-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 60px;
- align-items: center;
- }
-
- .image-text-grid.image-text-right {
- grid-template-columns: 1fr 1fr;
- direction: rtl;
- }
-
- .image-text-grid.image-text-right>* {
- direction: ltr;
- }
-
- .image-text-image img {
- width: 100%;
- height: auto;
- border-radius: 12px;
- display: block;
- transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
- }
-
- .image-text-image:hover img {
- transform: scale(1.02);
- }
-
- [data-theme="light"] .image-text-image:hover img {
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
- }
-
- .image-text-content h2 {
- font-size: 2.5rem;
- font-weight: 700;
- margin: 16px 0 12px;
- line-height: 1.2;
- }
-
- .image-text-content .text-content {
- font-size: 1rem;
- line-height: 1.6;
- color: var(--text-muted);
- margin: 20px 0 24px;
- }
-
- .image-text-content .btn {
- display: inline-block;
- margin-top: 12px;
- }
-
- .product-cards {
- padding: 60px 0;
- }
-
- .product-cards .section-header {
- margin-bottom: 48px;
- text-align: center;
- }
-
- .products-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
- gap: 32px;
- }
-
- .product-card {
- background: var(--bg-card);
- border: 1px solid var(--border);
- border-radius: 12px;
- padding: 32px 24px;
- text-align: center;
- transition: all var(--transition-smooth);
- will-change: transform, border-color;
- }
-
- .product-card:hover {
- border-color: var(--blue);
- box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
- transform: translateY(-8px);
- }
-
- [data-theme="light"] .product-card:hover {
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
- }
-
- .product-image {
- margin-bottom: 20px;
- display: flex;
- justify-content: center;
- height: 48px;
- }
-
- .product-image img {
- width: 48px;
- height: 48px;
- object-fit: contain;
- transition: transform var(--transition-base);
- }
-
- .product-card:hover .product-image img {
- transform: scale(1.1);
- }
-
- .product-card h3 {
- font-size: 1.125rem;
- font-weight: 600;
- margin: 16px 0 8px;
- }
-
- .product-description {
- font-size: 0.875rem;
- color: var(--text-muted);
- line-height: 1.5;
- margin: 12px 0 16px;
- }
-
- .product-features {
- list-style: none;
- padding: 0;
- margin: 16px 0 24px;
- text-align: left;
- }
-
- .product-features li {
- font-size: 0.875rem;
- color: var(--text-muted);
- padding: 6px 0 6px 24px;
- position: relative;
- }
-
- .product-features li::before {
- content: "✓";
- position: absolute;
- left: 0;
- color: var(--success);
- font-weight: 600;
- }
-
- .product-card .btn-sm {
- font-size: 0.8125rem;
- padding: 8px 16px;
- }
-
- ::selection {
- background-color: rgba(56, 115, 44, 0.855);
- color: #fafafa;
- }
-
- ::-moz-selection {
- background-color: rgba(56, 115, 44, 0.855);
- color: #fafafa;
- }
-
- [data-theme="light"] ::selection {
- background-color: rgba(37, 99, 235, 0.3);
- color: #0f172a;
- }
-
- [data-theme="light"] ::-moz-selection {
- background-color: rgba(37, 99, 235, 0.3);
- color: #0f172a;
- }
-
- .form-input::selection,
- .form-textarea::selection,
- .block-field-input::selection,
- .blocks-container ::selection {
- background-color: rgb(69, 71, 177);
- color: #fafafa;
- }
-
- .form-input::-moz-selection,
- .form-textarea::-moz-selection,
- .block-field-input::-moz-selection,
- .blocks-container ::-moz-selection {
- background-color: rgb(69, 71, 177);
- color: #fafafa;
- }
-
- [data-theme="light"] .form-input::selection,
- [data-theme="light"] .form-textarea::selection,
- [data-theme="light"] .block-field-input::selection,
- [data-theme="light"] .blocks-container ::selection {
- background-color: rgba(37, 99, 235, 0.3);
- color: #0f172a;
- }
-
- [data-theme="light"] .form-input::-moz-selection,
- [data-theme="light"] .form-textarea::-moz-selection,
- [data-theme="light"] .block-field-input::-moz-selection,
- [data-theme="light"] .blocks-container ::-moz-selection {
- background-color: rgba(37, 99, 235, 0.3);
- color: #0f172a;
- }
-
- @media (max-width: 1024px) {
- .sidebar {
- width: 220px;
- }
-
- .main {
- margin-left: 220px;
- }
-
- .block-types-grid {
- grid-template-columns: repeat(2, 1fr);
- }
-
- .main-content {
- padding: 24px;
- }
- }
-
- @media (max-width: 768px) {
-
- .sidebar {
- transform: translateX(-100%);
- width: 85%;
- max-width: 320px;
- transition: transform var(--transition-smooth) cubic-bezier(0.4, 0, 0.2, 1);
- box-shadow: none;
- }
-
- .sidebar.open {
- transform: translateX(0);
- box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
- }
-
- .sidebar::before {
- content: '';
- position: fixed;
- inset: 0;
- background: rgba(0, 0, 0, 0.6);
- opacity: 0;
- visibility: hidden;
- transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
- z-index: -1;
- left: 100%;
- width: 100vw;
- }
-
- [data-theme="light"] .sidebar::before {
- background: rgba(15, 23, 42, 0.4);
- }
-
- .sidebar.open::before {
- opacity: 1;
- visibility: visible;
- }
-
- .nav-item {
- padding: 14px 16px;
- font-size: 0.9375rem;
- margin-bottom: 4px;
- }
-
- .nav-item svg {
- width: 20px;
- height: 20px;
- }
-
- .nav-label {
- font-size: 0.75rem;
- padding: 0 16px;
- margin-bottom: 12px;
- }
-
- .sidebar-nav {
- padding: 20px 16px;
- }
-
- .sidebar-header {
- padding: 24px 20px 20px;
- }
-
- .sidebar-footer {
- padding: 20px;
- }
-
- .user-menu {
- padding: 14px 16px;
- }
-
- .user-avatar {
- width: 40px;
- height: 40px;
- font-size: 0.875rem;
- }
-
- .user-name {
- font-size: 0.9375rem;
- }
-
- .main {
- margin-left: 0;
- }
-
- .main-header {
- padding: 0 16px;
- }
-
- .main-header-inner {
- height: 60px;
- }
-
- .main-header h1 {
- font-size: 0.9375rem;
- }
-
- .header-actions {
- gap: 8px;
- }
-
- .main-content {
- padding: 20px 16px;
- }
-
- .btn {
- padding: 12px 20px;
- font-size: 0.9375rem;
- min-height: 44px;
- }
-
- .btn-sm {
- padding: 10px 14px;
- font-size: 0.875rem;
- min-height: 40px;
- }
-
- .btn-icon {
- padding: 10px;
- min-width: 44px;
- min-height: 44px;
- }
-
- .form-row,
- .form-row-3 {
- grid-template-columns: 1fr;
- gap: 0;
- }
-
- .form-group {
- margin-bottom: 24px;
- }
-
- .form-label {
- font-size: 0.875rem;
- margin-bottom: 10px;
- }
-
- .form-input,
- .form-textarea,
- .form-select {
- padding: 14px 16px;
- font-size: 1rem;
- min-height: 48px;
- border-radius: var(--radius);
- }
-
- .form-textarea {
- min-height: 120px;
- }
-
- .form-hint {
- font-size: 0.8125rem;
- margin-top: 8px;
- }
-
- .card {
- border-radius: var(--radius);
- }
-
- .card-header {
- padding: 16px 20px;
- flex-direction: column;
- align-items: flex-start;
- gap: 12px;
- }
-
- .card-title {
- font-size: 1rem;
- }
-
- .card-body {
- padding: 20px;
- }
-
- .table {
- display: block;
- }
-
- .table thead {
- display: none;
- }
-
- .table tbody {
- display: flex;
- flex-direction: column;
- gap: 12px;
- }
-
- .table tr {
- display: flex;
- flex-direction: column;
- background: var(--bg-card);
- border: 1px solid var(--border);
- border-radius: var(--radius-sm);
- padding: 16px;
- }
-
- .table tr:hover td {
- background: transparent;
- }
-
- .table td {
- padding: 8px 0;
- border-bottom: none;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
-
- .table td::before {
- content: attr(data-label);
- font-size: 0.75rem;
- font-weight: 600;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- color: var(--text-subtle);
- }
-
- .product-actions {
- justify-content: flex-end;
- padding-top: 12px;
- border-top: 1px solid var(--border);
- margin-top: 8px;
- }
-
- .product-title {
- font-size: 1rem;
- }
-
- .editor-toolbar {
- padding: 16px;
- flex-direction: column;
- align-items: stretch;
- }
-
- .editor-toolbar-left,
- .editor-toolbar-right {
- width: 100%;
- justify-content: space-between;
- }
-
- .editor-toolbar-right {
- flex-wrap: wrap;
- gap: 8px;
- }
-
- .blocks-container {
- padding: 16px;
- min-height: 300px;
- }
-
- .block-header {
- padding: 14px 16px;
- gap: 10px;
- flex-wrap: wrap;
- }
-
- .block-type {
- font-size: 0.625rem;
- padding: 3px 6px;
- }
-
- .block-title {
- flex: 1 1 100%;
- order: 3;
- margin-top: 8px;
- white-space: normal;
- }
-
- .block-id-input {
- display: none;
- }
-
- .block-actions {
- opacity: 1;
- }
-
- .block-content {
- padding: 16px;
- }
-
- .block-field {
- margin-bottom: 20px;
- }
-
- .block-field-input {
- padding: 12px 14px;
- font-size: 1rem;
- min-height: 48px;
- }
-
- .block-field-textarea {
- min-height: 100px;
- }
-
- .block-types-grid {
- grid-template-columns: 1fr;
- gap: 10px;
- }
-
- .block-type-card {
- padding: 16px;
- display: flex;
- align-items: center;
- text-align: left;
- gap: 16px;
- }
-
- .block-type-card svg {
- margin-bottom: 0;
- width: 28px;
- height: 28px;
- flex-shrink: 0;
- }
-
- .block-type-card h4 {
- margin-bottom: 2px;
- }
-
- .modal-overlay {
- padding: 0;
- align-items: flex-end;
- }
-
- .modal {
- max-width: 100%;
- max-height: 90vh;
- border-radius: var(--radius) var(--radius) 0 0;
- border-bottom: none;
- }
-
- .modal-header {
- padding: 20px;
- }
-
- .modal-title {
- font-size: 1.125rem;
- }
-
- .modal-close {
- padding: 8px;
- }
-
- .modal-body {
- padding: 20px;
- }
-
- .modal-actions {
- flex-direction: column;
- gap: 10px;
- }
-
- .modal-actions .btn {
- width: 100%;
- }
-
- .add-block-btn {
- padding: 20px;
- font-size: 0.9375rem;
- }
-
- .repeater-item-header {
- padding: 14px 16px;
- }
-
- .repeater-item-title {
- font-size: 0.875rem;
- }
-
- .repeater-item-content {
- padding: 16px;
- }
-
- .repeater-add {
- padding: 14px;
- font-size: 0.875rem;
- }
-
- .settings-tabs {
- overflow-x: auto;
- -webkit-overflow-scrolling: touch;
- scrollbar-width: none;
- padding: 6px;
- }
-
- .settings-tabs::-webkit-scrollbar {
- display: none;
- }
-
- .settings-tab {
- padding: 12px 16px;
- white-space: nowrap;
- flex: none;
- }
-
- .message {
- padding: 16px;
- font-size: 0.9375rem;
- flex-direction: column;
- text-align: center;
- gap: 8px;
- }
-
-
- .empty-state {
- padding: 48px 20px;
- }
-
- .empty-state-icon {
- width: 56px;
- height: 56px;
- }
-
- .empty-state h3 {
- font-size: 1.125rem;
- }
-
- .empty-state p {
- font-size: 0.9375rem;
- }
-
- .icon-option {
- width: 44px;
- height: 44px;
- }
-
- .icon-option svg {
- width: 20px;
- height: 20px;
- }
-
- .page-selector-item {
- padding: 14px 16px;
- font-size: 0.9375rem;
- }
-
- .page-selector-item small {
- font-size: 0.8125rem;
- margin-top: 4px;
- }
-
- .link-page-btn {
- padding: 10px 12px;
- }
-
- .image-text {
- padding: 40px 0;
- }
-
- .image-text-grid,
- .image-text-grid.image-text-right {
- grid-template-columns: 1fr;
- gap: 32px;
- }
-
- .image-text-grid.image-text-right {
- direction: ltr;
- }
-
- .image-text-content h2 {
- font-size: 1.75rem;
- margin: 12px 0 8px;
- }
-
- .image-text-content .text-content {
- font-size: 0.9375rem;
- margin: 16px 0 20px;
- }
-
- .image-text-image img {
- border-radius: 10px;
- }
-
- .product-cards {
- padding: 40px 0;
- }
-
- .product-cards .section-header {
- margin-bottom: 32px;
- }
-
- .products-grid {
- grid-template-columns: 1fr;
- gap: 20px;
- }
-
- .product-card {
- padding: 24px 20px;
- }
-
- .product-card:hover {
- transform: translateY(-4px);
- }
-
- .product-card h3 {
- font-size: 1.0625rem;
- }
-
- .product-description {
- font-size: 0.9375rem;
- }
-
- .product-features li {
- font-size: 0.9375rem;
- padding: 8px 0 8px 28px;
- }
-
- .product-card .btn-sm {
- width: 100%;
- justify-content: center;
- padding: 12px 16px;
- font-size: 0.9375rem;
- }
- }
-
- @media (max-width: 380px) {
- .main-content {
- padding: 16px 12px;
- }
-
- .card-header,
- .card-body {
- padding: 16px;
- }
-
- .block-header {
- padding: 12px 14px;
- }
-
- .blocks-container {
- padding: 12px;
- }
-
- .modal-header,
- .modal-body {
- padding: 16px;
- }
-
- .btn {
- padding: 12px 16px;
- }
- }
-
- .sidebar,
- .modal,
- .block-item,
- .nav-item,
- .btn,
- .form-input,
- .form-switch label:before,
- .product-card {
- -webkit-backface-visibility: hidden;
- backface-visibility: hidden;
- -webkit-perspective: 1000;
- perspective: 1000;
- }
-
- @media (prefers-reduced-motion: reduce) {
-
- *,
- *::before,
- *::after {
- animation-duration: 0.01ms !important;
- animation-iteration-count: 1 !important;
- transition-duration: 0.01ms !important;
- }
- }
-
- .app {
- gap: 14px;
- padding: 14px;
- }
-
- .sidebar {
- position: sticky;
- top: 14px;
- left: auto;
- bottom: auto;
- height: calc(100vh - 28px);
- flex-shrink: 0;
- border: 1px solid var(--border);
- border-radius: var(--radius);
- box-shadow: var(--shadow-card), var(--inset-hairline);
- }
-
- .sidebar-header {
- height: auto;
- padding: 18px 14px 16px;
- margin: 0 8px;
- }
-
- .sidebar-nav {
- padding: 12px 10px;
- }
-
- .nav-item {
- padding: 9px 12px;
- font-size: 0.84rem;
- font-weight: 500;
- }
-
- .nav-item:hover {
- background: var(--bg-card);
- }
-
- .nav-item.active {
- background: var(--accent-dim);
- color: var(--accent);
- font-weight: 600;
- box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
- }
-
- .nav-item.active:hover {
- transform: none;
- }
-
- .sidebar-footer {
- padding: 14px 10px 4px;
- margin-top: 10px;
- }
-
- .user-avatar,
- [data-theme="dark"] .user-avatar {
- background: var(--accent-dim);
- color: var(--accent);
- border-radius: 50%;
- font-weight: 700;
- }
-
- .main {
- margin-left: 0;
- min-width: 0;
- background: var(--bg-elevated);
- border: 1px solid var(--border);
- border-radius: var(--radius);
- box-shadow: var(--shadow-card), var(--inset-hairline);
- }
-
- .main-header,
- [data-theme="dark"] .main-header {
- background: color-mix(in srgb, var(--bg-elevated) 85%, transparent);
- border-radius: var(--radius) var(--radius) 0 0;
- }
-
- .main-header h1 {
- font-size: 1.15rem;
- font-weight: 700;
- letter-spacing: -0.01em;
- }
-
- .btn {
- font-weight: 600;
- }
-
- .btn-primary {
- background: linear-gradient(155deg, var(--accent-hover), var(--accent));
- color: #fff;
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), var(--inset-hairline);
- }
-
- .btn-primary:hover {
- opacity: 1;
- box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent), var(--inset-hairline);
- }
-
- .btn-secondary {
- background: var(--bg-card);
- border-color: var(--border-focus);
- }
-
- .btn-secondary:hover {
- background: var(--bg-hover);
- }
-
- .btn-danger {
- background: transparent;
- border: 1px solid var(--error);
- color: var(--error);
- }
-
- .btn-danger:hover {
- opacity: 1;
- background: color-mix(in srgb, var(--error) 14%, transparent);
- }
-
- .card {
- border-radius: 14px;
- box-shadow: var(--shadow-card), var(--inset-hairline);
- }
-
- .table th {
- background: color-mix(in srgb, var(--bg-card) 60%, var(--bg-elevated));
- font-size: 0.6875rem;
- letter-spacing: 0.07em;
- }
-
- .table td {
- border-bottom-color: color-mix(in srgb, var(--border) 65%, transparent);
- }
-
- .table tr:hover td {
- background: color-mix(in srgb, var(--bg-card) 65%, transparent);
- }
-
- .table tr:hover td:first-child {
- box-shadow: inset 2px 0 0 var(--accent);
- }
-
- .form-input:focus,
- .form-select:focus,
- .form-textarea:focus,
- .block-field-input:focus {
- border-color: var(--accent);
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
- outline: none;
- }
-
- .settings-tab.active {
- border-bottom-color: var(--accent);
- }
-
- @media (max-width: 1024px) {
- .sidebar {
- width: 220px;
- }
- }
-
- @media (max-width: 768px) {
- .app {
- padding: 0;
- gap: 0;
- }
-
- .sidebar {
- position: fixed;
- top: 0;
- left: 0;
- bottom: 0;
- height: auto;
- border-radius: 0 var(--radius) var(--radius) 0;
- }
-
- .main {
- border: none;
- border-radius: 0;
- box-shadow: none;
- width: 100%;
- }
-
- .main-header {
- border-radius: 0;
- }
- }
-
- .form-label,
- .block-field-label {
- font-size: 0.8125rem;
- font-weight: 600;
- color: var(--text-muted);
- }
-
- .form-input,
- .form-textarea,
- .form-select,
- .block-field-input {
- background: var(--bg);
- border: 1px solid var(--border);
- border-radius: var(--radius);
- padding: 13px 16px;
- font-weight: 500;
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
- }
-
- .form-input::placeholder,
- .form-textarea::placeholder,
- .block-field-input::placeholder {
- color: var(--text-subtle);
- font-weight: 400;
- }
-
- .form-input:focus,
- .form-textarea:focus,
- .form-select:focus,
- .block-field-input:focus {
- transform: none;
- }
-
- .checkbox-label {
- gap: 14px;
- font-weight: 600;
- color: var(--text-muted);
- }
-
- .checkbox-label:hover {
- color: var(--text);
- }
-
- .checkbox-label input[type="checkbox"] {
- width: 38px;
- height: 22px;
- border-radius: 999px;
- background: var(--bg-card);
- border: 1px solid var(--border);
- margin: 0;
- }
-
- .checkbox-label input[type="checkbox"]::before {
- content: "";
- position: absolute;
- top: 2px;
- left: 2px;
- width: 16px;
- height: 16px;
- border-radius: 50%;
- background: var(--text-muted);
- transition: transform var(--transition-base), background var(--transition-base);
- }
-
- .checkbox-label input[type="checkbox"]:hover {
- transform: none;
- border-color: var(--border-focus);
- }
-
- .checkbox-label input[type="checkbox"]:checked {
- background: var(--accent);
- border-color: var(--accent);
- box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 35%, transparent);
- }
-
- .checkbox-label input[type="checkbox"]:checked::before {
- transform: translateX(16px);
- background: #fff;
- }
-
- .checkbox-label input[type="checkbox"]:checked::after {
- display: none;
- }
-
- .checkbox-label input[type="checkbox"]:focus-visible {
- outline: 2px solid var(--accent);
- outline-offset: 2px;
- box-shadow: none;
- }
-
- .form-switch {
- width: 38px;
- height: 22px;
- }
-
- .form-switch label {
- background-color: var(--bg-card);
- border: 1px solid var(--border);
- border-radius: 999px;
- }
-
- .form-switch label:before {
- height: 16px;
- width: 16px;
- left: 2px;
- bottom: 2px;
- background-color: var(--text-muted);
- }
-
- .form-switch input:checked+label {
- background-color: var(--accent);
- border-color: var(--accent);
- box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 35%, transparent);
- }
-
- .form-switch input:checked+label:before {
- transform: translateX(16px);
- background-color: #fff;
- }
-
- .card,
- .block-item,
- .editor-wrapper {
- background: linear-gradient(180deg, color-mix(in srgb, var(--bg-elevated) 92%, #fff) 0%, var(--bg-elevated) 100%);
- border-radius: 14px;
- }
-
- .card {
- padding: 0;
- }
-
- .card-body {
- padding: 22px 24px;
- }
-
- .card:hover {
- border-color: var(--border-focus);
- }
-
- .settings-tabs {
- background: transparent;
- padding: 0;
- border-radius: 0;
- border-bottom: 1px solid var(--border);
- gap: 4px;
- }
-
- .settings-tab {
- flex: 0 0 auto;
- font-weight: 600;
- border-radius: 0;
- border-bottom: 2px solid transparent;
- }
-
- .settings-tab.active {
- background: transparent;
- color: var(--text);
- border-bottom-color: var(--accent);
- }
-
- .modal {
- border-radius: 14px;
- box-shadow: var(--shadow-md), var(--inset-hairline);
- }
-
- :root,
- [data-theme="light"] {
- --blue: var(--accent);
- }
-
- ::selection,
- [data-theme="light"] ::selection,
- .form-input::selection,
- .form-textarea::selection,
- .block-field-input::selection,
- .blocks-container ::selection,
- [data-theme="light"] .form-input::selection,
- [data-theme="light"] .form-textarea::selection,
- [data-theme="light"] .block-field-input::selection,
- [data-theme="light"] .blocks-container ::selection {
- background-color: color-mix(in srgb, var(--accent) 35%, transparent);
- color: var(--text);
- }
-
- .block-item.drag-over,
- .icon-option.selected {
- background: var(--accent-dim);
- }
-
- .checkbox-label input[type="checkbox"]:focus {
- box-shadow: none;
- }
-
- .form-input,
- .form-textarea,
- .form-select,
- .block-field-input {
- background: var(--bg);
- box-shadow: none;
- border-radius: 10px;
- padding: 11px 14px;
- }
-
- [data-theme="light"] .form-input,
- [data-theme="light"] .form-textarea,
- [data-theme="light"] .form-select,
- [data-theme="light"] .block-field-input {
- background: var(--bg-card);
- }
-
- .form-input:hover,
- .form-textarea:hover,
- .form-select:hover,
- .block-field-input:hover {
- border-color: var(--border-focus);
- }
-
- .form-input:focus,
- .form-textarea:focus,
- .form-select:focus,
- .block-field-input:focus {
- border-color: var(--accent);
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
- }
-
- .form-hint {
- font-size: 0.75rem;
- }
-
- .btn {
- border-radius: 10px;
- padding: 9px 16px;
- font-size: 0.8125rem;
- border: 1px solid transparent;
- }
-
- .btn-sm {
- padding: 6px 12px;
- font-size: 0.78rem;
- border-radius: 8px;
- }
-
- .btn-primary {
- border-color: var(--accent);
- }
-
- .btn-primary:hover {
- transform: translateY(-1px);
- background: linear-gradient(155deg, var(--accent-hover), var(--accent-hover));
- border-color: var(--accent-hover);
- }
-
- .btn-secondary {
- background: var(--bg-card);
- border-color: var(--border-focus);
- color: var(--text);
- }
-
- .btn-secondary:hover {
- background: var(--bg-hover);
- border-color: var(--border-focus);
- transform: none;
- }
-
- .btn-ghost {
- border-color: transparent;
- }
-
- .btn-danger {
- background: transparent;
- border-color: color-mix(in srgb, var(--error) 55%, transparent);
- color: var(--error);
- }
-
- .btn-danger:hover {
- transform: none;
- border-color: var(--error);
- }
-
- .btn:focus-visible {
- outline: 2px solid var(--accent);
- outline-offset: 2px;
- }
-
- .btn:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- }
-
- .main-header {
- border-bottom: 1px solid var(--border);
- }
-
- .main-header-inner {
- height: 60px;
- }
-
- .main-header h1 {
- font-size: 1.05rem;
- }
-
- .header-actions .btn {
- padding: 7px 12px;
- }
-
- .sidebar-logo {
- font-size: 1rem;
- }
-
- .sidebar-header {
- border-bottom: 1px solid var(--border);
- }
-
- .nav-label {
- font-size: 0.65rem;
- letter-spacing: 0.08em;
- }
-
- .nav-item svg {
- opacity: 0.85;
- }
-
- .nav-item.active svg {
- opacity: 1;
- }
-
- .sidebar-footer {
- border-top: 1px solid var(--border);
- }
-
- .editor-wrapper,
- .card {
- border: 1px solid var(--border);
- }
-
- .editor-toolbar {
- background: color-mix(in srgb, var(--bg-card) 55%, var(--bg-elevated));
- border-radius: 14px 14px 0 0;
- }
-
- .block-item {
- background: var(--bg-card);
- border-radius: 12px;
- box-shadow: none;
- }
-
- .block-item.expanded {
- border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
- }
-
- .block-item.expanded .block-header,
- .block-header {
- border-radius: 12px 12px 0 0;
- }
-
- .block-content {
- background: transparent;
- }
-
- .block-type {
- background: var(--bg-elevated);
- border: 1px solid var(--border);
- color: var(--text-muted);
- border-radius: 6px;
- letter-spacing: 0.06em;
- }
-
- .block-id-input {
- background: var(--bg);
- border-radius: 6px;
- }
-
- .block-id-input:focus {
- border-color: var(--accent);
- transform: none;
- }
-
- .repeater-item {
- background: var(--bg-elevated);
- border-radius: 10px;
- }
-
- .repeater-item-header {
- background: color-mix(in srgb, var(--bg-card) 60%, var(--bg-elevated));
- }
-
- .add-block-btn,
- .repeater-add {
- border: 1px dashed var(--border-focus);
- border-radius: 12px;
- }
-
- .add-block-btn:hover,
- .repeater-add:hover {
- border-color: var(--accent);
- color: var(--accent);
- background: var(--accent-dim);
- transform: none;
- }
-
- .link-page-btn {
- background: var(--bg-card);
- border: 1px solid var(--border);
- }
-
- .page-selector {
- border-radius: 12px;
- box-shadow: var(--shadow-md);
- }
-
- .block-type-card {
- border-radius: 12px;
- background: var(--bg-card);
- }
-
- .block-type-card:hover {
- border-color: var(--accent);
- background: var(--accent-dim);
- transform: none;
- }
-
- .block-type-card:hover svg {
- color: var(--accent);
- }
-
- .product-card:hover {
- box-shadow: var(--shadow-md);
- }
-
- .message {
- border-radius: 10px;
- }
-
- .message.success,
- [data-theme="light"] .message.success {
- background: color-mix(in srgb, var(--success) 12%, transparent);
- border-color: color-mix(in srgb, var(--success) 35%, transparent);
- }
-
- .message.error,
- [data-theme="light"] .message.error {
- background: color-mix(in srgb, var(--error) 12%, transparent);
- border-color: color-mix(in srgb, var(--error) 35%, transparent);
- }
-
- * {
- scrollbar-width: thin;
- scrollbar-color: var(--border-focus) transparent;
- }
-
- ::-webkit-scrollbar {
- width: 10px;
- height: 10px;
- }
-
- ::-webkit-scrollbar-track {
- background: transparent;
- }
-
- ::-webkit-scrollbar-thumb {
- background: var(--border-focus);
- border-radius: 999px;
- border: 2px solid var(--bg-elevated);
- background-clip: padding-box;
- }
-
- [data-theme="light"] .checkbox-label input[type="checkbox"]:checked,
- [data-theme="light"] .form-switch input:checked+label {
- background: color-mix(in srgb, var(--accent) 22%, #fff);
- border-color: color-mix(in srgb, var(--accent) 55%, #fff);
- box-shadow: none;
- }
-
- [data-theme="light"] .checkbox-label input[type="checkbox"]:checked::before,
- [data-theme="light"] .form-switch input:checked+label:before {
- background: var(--accent);
- }
-
- [data-theme="light"] .checkbox-label input[type="checkbox"]::before,
- [data-theme="light"] .form-switch label:before {
- background: var(--text-subtle);
- }
-
- @media (min-width: 769px) {
- html,
- body {
- height: 100%;
- overflow: hidden;
- }
-
- .app {
- height: 100vh;
- min-height: 0;
- overflow: hidden;
- }
-
- .sidebar {
- position: relative;
- top: 0;
- height: 100%;
- }
-
- .main {
- height: 100%;
- overflow-y: auto;
- overflow-x: hidden;
- }
-
- .main-header {
- border-radius: 0;
- }
- }
-
- :root {
- --ease-out: cubic-bezier(.22, 1, .36, 1);
- --ease-soft: cubic-bezier(.4, 0, .2, 1);
- --dur: .28s;
- }
-
- .btn {
- transition:
- background-color var(--dur) var(--ease-soft),
- border-color var(--dur) var(--ease-soft),
- color var(--dur) var(--ease-soft),
- box-shadow var(--dur) var(--ease-soft),
- transform var(--dur) var(--ease-out),
- opacity var(--dur) var(--ease-soft);
- }
-
- .btn:active {
- transform: scale(.97);
- transition-duration: .08s;
- }
-
- .btn-primary {
- background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent) 11%, transparent));
- border-color: color-mix(in srgb, var(--accent) 34%, transparent);
- color: var(--accent-hover);
- box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent), var(--inset-hairline);
- -webkit-backdrop-filter: blur(6px);
- backdrop-filter: blur(6px);
- }
-
- [data-theme="light"] .btn-primary {
- color: var(--accent);
- }
-
- .btn-primary:hover {
- background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 32%, transparent), color-mix(in srgb, var(--accent) 18%, transparent));
- border-color: color-mix(in srgb, var(--accent) 55%, transparent);
- color: var(--accent-hover);
- box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent), var(--inset-hairline);
- transform: translateY(-1px);
- opacity: 1;
- }
-
- [data-theme="light"] .btn-primary:hover {
- color: var(--accent);
- }
-
- .btn-primary:active {
- transform: translateY(0) scale(.98);
- }
-
- .btn-success {
- background: linear-gradient(180deg, color-mix(in srgb, var(--success) 22%, transparent), color-mix(in srgb, var(--success) 10%, transparent));
- border-color: color-mix(in srgb, var(--success) 34%, transparent);
- color: var(--success);
- box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 10%, transparent), var(--inset-hairline);
- }
-
- .btn-success:hover {
- background: linear-gradient(180deg, color-mix(in srgb, var(--success) 32%, transparent), color-mix(in srgb, var(--success) 18%, transparent));
- border-color: color-mix(in srgb, var(--success) 55%, transparent);
- }
-
- .btn-danger {
- background: linear-gradient(180deg, color-mix(in srgb, var(--error) 14%, transparent), color-mix(in srgb, var(--error) 6%, transparent));
- border-color: color-mix(in srgb, var(--error) 34%, transparent);
- color: var(--error);
- box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--error) 8%, transparent);
- }
-
- .btn-danger:hover {
- background: linear-gradient(180deg, color-mix(in srgb, var(--error) 26%, transparent), color-mix(in srgb, var(--error) 14%, transparent));
- border-color: color-mix(in srgb, var(--error) 55%, transparent);
- color: var(--error);
- transform: none;
- }
-
- .btn-secondary {
- background: linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 100%, #fff 3%), var(--bg-card));
- border-color: var(--border-focus);
- color: var(--text);
- box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 3%, transparent), var(--inset-hairline);
- }
-
- .btn-secondary:hover {
- background: linear-gradient(180deg, color-mix(in srgb, var(--bg-hover) 100%, #fff 3%), var(--bg-hover));
- border-color: color-mix(in srgb, var(--accent) 40%, var(--border-focus));
- transform: none;
- }
-
- .btn-ghost:hover {
- border-color: transparent;
- }
-
- .nav-item,
- .nav-item:hover,
- .nav-item:active,
- .nav-item.active {
- transform: none;
- transition: background-color .15s ease, color .15s ease;
- }
-
- .form-input,
- .form-textarea,
- .form-select,
- .block-field-input {
- background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 100%, #fff 2.5%), var(--bg));
- border-color: color-mix(in srgb, var(--border-focus) 80%, transparent);
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18), inset 0 0 0 1px color-mix(in srgb, var(--text) 2.5%, transparent);
- }
-
- [data-theme="light"] .form-input,
- [data-theme="light"] .form-textarea,
- [data-theme="light"] .form-select,
- [data-theme="light"] .block-field-input {
- background: linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 100%, #fff 30%), var(--bg-card));
- box-shadow: inset 0 1px 2px rgba(20, 20, 30, 0.06);
- }
-
- .form-input:hover,
- .form-textarea:hover,
- .form-select:hover,
- .block-field-input:hover {
- border-color: color-mix(in srgb, var(--accent) 30%, var(--border-focus));
- }
-
- .form-input:focus,
- .form-textarea:focus,
- .form-select:focus,
- .block-field-input:focus {
- background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--bg)), color-mix(in srgb, var(--accent) 3%, var(--bg)));
- border-color: color-mix(in srgb, var(--accent) 55%, transparent);
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
- }
-
- .form-select {
- cursor: pointer;
- }
-
- .checkbox-label input[type="checkbox"],
- .form-switch label {
- background: linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 100%, #fff 3%), var(--bg-card));
- border: 1px solid color-mix(in srgb, var(--border-focus) 90%, transparent);
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 0 0 1px color-mix(in srgb, var(--text) 3%, transparent);
- }
-
- .checkbox-label input[type="checkbox"]::before,
- .form-switch label:before {
- background: linear-gradient(180deg, color-mix(in srgb, var(--text-muted) 100%, #fff 12%), var(--text-muted));
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
- }
-
- .checkbox-label input[type="checkbox"]:hover {
- border-color: color-mix(in srgb, var(--accent) 35%, var(--border-focus));
- }
-
- .checkbox-label input[type="checkbox"]:checked,
- .form-switch input:checked+label,
- [data-theme="light"] .checkbox-label input[type="checkbox"]:checked,
- [data-theme="light"] .form-switch input:checked+label {
- background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 34%, transparent), color-mix(in srgb, var(--accent) 18%, transparent));
- border-color: color-mix(in srgb, var(--accent) 50%, transparent);
- box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent), 0 0 14px -4px color-mix(in srgb, var(--accent) 60%, transparent);
- }
-
- .checkbox-label input[type="checkbox"]:checked::before,
- .form-switch input:checked+label:before,
- [data-theme="light"] .checkbox-label input[type="checkbox"]:checked::before,
- [data-theme="light"] .form-switch input:checked+label:before {
- background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--accent-hover) 30%, #fff));
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
- }
-
- [data-theme="light"] .checkbox-label input[type="checkbox"]::before,
- [data-theme="light"] .form-switch label:before {
- background: linear-gradient(180deg, color-mix(in srgb, var(--text-muted) 100%, #fff 12%), var(--text-muted));
- }
-
- .checkbox-label input[type="checkbox"]:focus-visible {
- outline: none;
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
- }
-
- .table tr:hover td:first-child {
- box-shadow: none;
- }
-
- .settings-tab {
- transition: color var(--dur) var(--ease-soft), border-color var(--dur) var(--ease-soft);
- }
-
- .nav-more-btn,
- .nav-sheet,
- .nav-sheet-backdrop,
- .mobile-avatar {
- display: none;
- }
-
- @media (max-width: 768px) {
- body {
- background: var(--bg);
- }
-
- .app {
- display: block;
- padding: 0;
- gap: 0;
- height: auto;
- min-height: 100vh;
- overflow: visible;
- }
-
- html,
- body {
- height: auto;
- overflow: visible;
- }
-
- .sidebar {
- position: fixed;
- top: auto;
- left: calc(8px + env(safe-area-inset-left));
- right: calc(8px + env(safe-area-inset-right));
- bottom: calc(8px + env(safe-area-inset-bottom));
- width: auto;
- max-width: none;
- height: auto;
- transform: none;
- padding: 6px;
- flex-direction: row;
- align-items: center;
- background: var(--bg-elevated);
- border: 1px solid var(--border-focus);
- border-radius: 24px;
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), var(--inset-hairline);
- z-index: 60;
- transition: none;
- }
-
- .sidebar::before,
- .sidebar.open::before {
- display: none;
- }
-
- .sidebar .mobile-nav-toggle,
- .main-header .mobile-nav-toggle,
- .sidebar-header,
- .sidebar-footer,
- .nav-label {
- display: none;
- }
-
- .sidebar > a.nav-item {
- display: none;
- }
-
- .sidebar-nav {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-around;
- width: 100%;
- padding: 0;
- overflow: visible;
- }
-
- .nav-section {
- display: contents;
- margin: 0;
- }
-
- .sidebar-nav .nav-item {
- flex: 1;
- min-width: 0;
- flex-direction: column;
- justify-content: center;
- gap: 3px;
- margin: 0;
- padding: 7px 4px;
- font-size: 10px;
- font-weight: 600;
- border-radius: 18px;
- text-align: center;
- white-space: nowrap;
- overflow: hidden;
- }
-
- .sidebar-nav .nav-item svg {
- width: 20px;
- height: 20px;
- }
-
- .sidebar-nav .nav-item.nav-overflow-item {
- display: none;
- }
-
- .nav-more-btn {
- display: flex;
- flex: 1;
- min-width: 0;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 3px;
- padding: 7px 4px;
- background: none;
- border: none;
- border-radius: 18px;
- color: var(--text-muted);
- font: inherit;
- font-size: 10px;
- font-weight: 600;
- cursor: pointer;
- }
-
- .nav-more-btn svg {
- width: 20px;
- height: 20px;
- }
-
- .nav-more-btn.open {
- color: var(--accent);
- }
-
- .nav-sheet-backdrop {
- display: none;
- position: fixed;
- inset: 0;
- background: rgba(0, 0, 0, 0.45);
- z-index: 70;
- }
-
- .nav-sheet-backdrop.open {
- display: block;
- animation: fadeIn var(--transition-base) ease-out;
- }
-
- .nav-sheet {
- display: none;
- position: fixed;
- left: calc(8px + env(safe-area-inset-left));
- right: calc(8px + env(safe-area-inset-right));
- bottom: calc(8px + env(safe-area-inset-bottom));
- max-height: 70vh;
- overflow-y: auto;
- padding: 8px 10px calc(14px + env(safe-area-inset-bottom));
- background: var(--bg-elevated);
- border: 1px solid var(--border-focus);
- border-radius: 24px;
- box-shadow: var(--shadow-md);
- z-index: 71;
- }
-
- .nav-sheet.open {
- display: block;
- animation: modalSlideIn .38s cubic-bezier(.22, 1, .36, 1) backwards;
- }
-
- .nav-sheet-handle {
- width: 36px;
- height: 4px;
- margin: 6px auto 12px;
- border-radius: 999px;
- background: var(--border-focus);
- }
-
- .nav-sheet-link {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 12px 10px;
- color: var(--text);
- font-size: 14px;
- font-weight: 500;
- border-radius: var(--radius-sm);
- }
-
- .nav-sheet-link svg {
- width: 18px;
- height: 18px;
- flex-shrink: 0;
- }
-
- .nav-sheet-link:active {
- background: var(--bg-card);
- }
-
- .nav-sheet-link.active {
- color: var(--accent);
- background: var(--accent-dim);
- }
-
- .main {
- display: block;
- width: 100%;
- margin: 0;
- height: auto;
- overflow: visible;
- background: transparent;
- border: none;
- border-radius: 0;
- box-shadow: none;
- }
-
- .main-header,
- [data-theme="dark"] .main-header {
- position: sticky;
- top: 0;
- z-index: 50;
- padding: calc(12px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 12px calc(16px + env(safe-area-inset-left));
- background: var(--bg);
- border-bottom: none;
- border-radius: 0;
- backdrop-filter: none;
- }
-
- .main-header-inner {
- height: auto;
- min-height: 40px;
- gap: 10px;
- }
-
- .main-header h1 {
- font-size: 0.95rem;
- font-weight: 700;
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
-
- .header-actions {
- gap: 8px;
- flex-shrink: 0;
- }
-
- .header-actions .btn {
- min-height: 0;
- }
-
- .header-actions #theme-toggle-btn {
- width: 34px;
- height: 34px;
- padding: 0;
- border-radius: 999px;
- }
-
- .header-actions #theme-toggle-btn span {
- display: none;
- }
-
- .mobile-avatar {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 34px;
- height: 34px;
- border-radius: 50%;
- background: var(--accent-dim);
- color: var(--accent);
- font-size: 0.8rem;
- font-weight: 700;
- flex-shrink: 0;
- }
-
- .main-content {
- position: relative;
- min-height: calc(100vh - 64px);
- padding: 20px calc(16px + env(safe-area-inset-right)) 104px calc(16px + env(safe-area-inset-left));
- background: var(--bg-elevated);
- border-top: 1px solid var(--border);
- border-radius: 24px 24px 0 0;
- box-shadow: var(--inset-hairline);
- }
- }
-
- .ne-list {
- display: flex;
- flex-direction: column;
- gap: 10px;
- margin-bottom: 14px;
- }
-
- .ne-item {
- background: var(--bg);
- border: 1px solid var(--border);
- border-radius: var(--radius);
- padding: 10px;
- transition: border-color var(--transition-fast);
- }
-
- .ne-item:focus-within {
- border-color: var(--border-focus);
- }
-
- .ne-row {
- display: flex;
- align-items: center;
- gap: 8px;
- }
-
- .ne-row-compact {
- margin-bottom: 8px;
- }
-
- .ne-input {
- flex: 1;
- min-width: 0;
- height: 38px;
- padding: 0 12px;
- background: var(--bg-elevated);
- border: 1px solid var(--border);
- border-radius: var(--radius-sm);
- color: var(--text);
- font-size: 0.875rem;
- transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
- }
-
- .ne-input::placeholder {
- color: var(--text-subtle);
- }
-
- .ne-input:focus {
- outline: none;
- border-color: var(--accent);
- box-shadow: 0 0 0 3px var(--accent-dim);
- }
-
- .ne-select {
- flex: 0 0 auto;
- min-width: 140px;
- cursor: pointer;
- }
-
- .ne-title {
- font-weight: 600;
- }
-
- .ne-actions {
- display: flex;
- align-items: center;
- gap: 2px;
- flex-shrink: 0;
- }
-
- .ne-btn,
- .ne-icon-btn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 34px;
- height: 34px;
- flex-shrink: 0;
- background: transparent;
- border: 1px solid transparent;
- border-radius: var(--radius-sm);
- color: var(--text-muted);
- cursor: pointer;
- transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
- }
-
- .ne-btn:hover:not(:disabled) {
- background: var(--bg-hover);
- color: var(--text);
- }
-
- .ne-btn:disabled {
- opacity: 0.3;
- cursor: default;
- }
-
- .ne-btn-danger:hover:not(:disabled) {
- background: rgba(240, 84, 106, 0.12);
- color: var(--error);
- }
-
- .ne-icon-btn {
- width: 38px;
- height: 38px;
- background: var(--bg-elevated);
- border-color: var(--border);
- }
-
- .ne-icon-btn:hover,
- .ne-icon-btn.active {
- border-color: var(--accent);
- color: var(--accent);
- background: var(--accent-dim);
- }
-
- .ne-icon-svg {
- width: 18px;
- height: 18px;
- flex-shrink: 0;
- }
-
- .ne-picker {
- margin-top: 10px;
- padding: 10px;
- background: var(--bg-elevated);
- border: 1px solid var(--border);
- border-radius: var(--radius-sm);
- }
-
- .ne-picker-head {
- display: flex;
- gap: 8px;
- margin-bottom: 10px;
- }
-
- .ne-chip {
- flex-shrink: 0;
- padding: 0 14px;
- height: 38px;
- background: transparent;
- border: 1px solid var(--border);
- border-radius: var(--radius-sm);
- color: var(--text-muted);
- font-size: 0.8125rem;
- cursor: pointer;
- transition: background var(--transition-fast), color var(--transition-fast);
- }
-
- .ne-chip:hover {
- background: var(--bg-hover);
- color: var(--text);
- }
-
- .ne-picker-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
- gap: 6px;
- max-height: 200px;
- overflow-y: auto;
- }
-
- .ne-picker-item {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 40px;
- background: transparent;
- border: 1px solid transparent;
- border-radius: var(--radius-sm);
- color: var(--text-muted);
- cursor: pointer;
- transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
- }
-
- .ne-picker-item:hover {
- background: var(--bg-hover);
- color: var(--text);
- }
-
- .ne-picker-item.selected {
- background: var(--accent-dim);
- border-color: var(--accent);
- color: var(--accent);
- }
-
- .ne-empty {
- padding: 18px;
- margin-bottom: 14px;
- text-align: center;
- font-size: 0.8125rem;
- color: var(--text-subtle);
- border: 1px dashed var(--border);
- border-radius: var(--radius);
- }
-
- .ne-card .ne-empty {
- padding: 12px;
- margin-bottom: 8px;
- }
-
- .ne-columns {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
- gap: 14px;
- margin-bottom: 14px;
- }
-
- .ne-card {
- background: var(--bg);
- border: 1px solid var(--border);
- border-radius: var(--radius);
- overflow: hidden;
- }
-
- .ne-card-head {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 10px;
- border-bottom: 1px solid var(--border);
- background: var(--bg-elevated);
- }
-
- .ne-card-body {
- padding: 10px;
- }
-
- .ne-add {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 6px;
- width: 100%;
- padding: 8px;
- background: transparent;
- border: 1px dashed var(--border-focus);
- border-radius: var(--radius-sm);
- color: var(--text-muted);
- font-size: 0.8125rem;
- cursor: pointer;
- transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
- }
-
- .ne-add:hover {
- background: var(--bg-hover);
- color: var(--text);
- border-color: var(--accent);
- }
-
- @media (max-width: 640px) {
- .ne-row {
- flex-wrap: wrap;
- }
-
- .ne-input {
- flex: 1 1 100%;
- }
-
- .ne-select {
- flex: 1 1 100%;
- }
-
- .ne-columns {
- grid-template-columns: 1fr;
- }
- }
-
- .draft-banner {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 16px;
- margin-bottom: 20px;
- padding: 14px 18px;
- background: var(--accent-dim);
- border: 1px solid var(--accent);
- border-radius: var(--radius);
- }
-
- .draft-banner-text {
- display: flex;
- flex-direction: column;
- gap: 2px;
- font-size: 0.875rem;
- color: var(--text-muted);
- }
-
- .draft-banner-text strong {
- color: var(--text);
- }
-
- .draft-banner-actions {
- display: flex;
- gap: 8px;
- flex-shrink: 0;
- }
-
- @media (max-width: 640px) {
- .draft-banner {
- flex-direction: column;
- align-items: stretch;
- }
- }
-
- .media-field {
- position: relative;
- width: 100%;
- border-radius: var(--radius-sm);
- transition: box-shadow var(--transition-fast);
- }
-
- .media-row {
- display: flex;
- align-items: stretch;
- gap: 8px;
- }
-
- .media-row > input {
- flex: 1;
- min-width: 0;
- }
-
- .media-actions {
- display: flex;
- gap: 6px;
- flex-shrink: 0;
- }
-
- .media-actions .btn {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- white-space: nowrap;
- }
-
- .media-progress {
- display: none;
- height: 3px;
- margin-top: 8px;
- background: var(--border);
- border-radius: 3px;
- overflow: hidden;
- }
-
- .media-field.uploading .media-progress {
- display: block;
- }
-
- .media-progress-bar {
- width: 0;
- height: 100%;
- background: var(--accent);
- transition: width 120ms linear;
- }
-
- .media-field.uploading .media-actions {
- opacity: 0.5;
- pointer-events: none;
- }
-
- .media-status {
- margin-top: 6px;
- font-size: 0.75rem;
- color: var(--text-muted);
- }
-
- .media-status:empty {
- display: none;
- }
-
- .media-status.success {
- color: var(--success);
- }
-
- .media-status.error {
- color: var(--error);
- }
-
- .media-field.dragging {
- box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px var(--accent-dim);
- }
-
- .media-modal {
- position: fixed;
- inset: 0;
- z-index: 1000;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 24px;
- background: rgba(0, 0, 0, 0.6);
- backdrop-filter: blur(4px);
- }
-
- .media-modal-box {
- display: flex;
- flex-direction: column;
- width: min(900px, 100%);
- max-height: min(680px, 100%);
- background: var(--bg-elevated);
- border: 1px solid var(--border);
- border-radius: var(--radius);
- box-shadow: var(--shadow-card);
- overflow: hidden;
- }
-
- .media-modal-head {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 14px 16px;
- border-bottom: 1px solid var(--border);
- }
-
- .media-modal-head h3 {
- flex-shrink: 0;
- font-size: 1rem;
- font-weight: 600;
- }
-
- .media-modal-body {
- flex: 1;
- padding: 16px;
- overflow-y: auto;
- }
-
- .media-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
- gap: 12px;
- }
-
- .media-item {
- display: flex;
- flex-direction: column;
- gap: 4px;
- padding: 8px;
- text-align: left;
- background: var(--bg);
- border: 1px solid var(--border);
- border-radius: var(--radius-sm);
- color: var(--text);
- cursor: pointer;
- transition: border-color var(--transition-fast), background var(--transition-fast);
- }
-
- .media-item:hover {
- border-color: var(--accent);
- background: var(--bg-hover);
- }
-
- .media-thumb {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 96px;
- margin-bottom: 4px;
- color: var(--text-muted);
- background: var(--bg-card);
- border-radius: 6px;
- overflow: hidden;
- }
-
- .media-thumb img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
-
- .media-name {
- overflow: hidden;
- font-size: 0.75rem;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
-
- .media-size {
- font-size: 0.6875rem;
- color: var(--text-subtle);
- }
-
- .media-empty {
- padding: 40px 16px;
- text-align: center;
- font-size: 0.875rem;
- color: var(--text-subtle);
- }
-
- @media (max-width: 640px) {
- .media-row {
- flex-wrap: wrap;
- }
-
- .media-row > input {
- flex: 1 1 100%;
- }
-
- .media-modal-head {
- flex-wrap: wrap;
- }
- }
-
- @media (min-width: 769px) {
- .app {
- overflow: clip;
- }
-
- .sidebar {
- overflow: clip;
- }
- }
-
- @media (min-width: 769px) {
- .sidebar .nav-item,
- .sidebar .nav-item:hover,
- .sidebar .nav-item.active,
- .sidebar .nav-item.active:hover {
- font-weight: 500;
- }
- }
-
- .sidebar .nav-item,
- .sidebar .nav-item:hover,
- .sidebar .nav-item.active,
- .sidebar .nav-item.active:hover,
- .sidebar .nav-item svg,
- .sidebar .nav-item:hover svg,
- .sidebar .nav-item.active svg {
- transform: none;
- }
-
- .upd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
- .upd-actions form { margin: 0; }
- .upd-heading { margin: 20px 0 10px; font-size: 0.95rem; font-weight: 600; }
- .upd-changelog { margin: 0; padding-left: 20px; color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }
- .upd-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; margin-left: 6px; background: var(--bg-hover); color: var(--text-muted); }
- .upd-pill-added { background: rgba(52, 196, 140, 0.14); color: var(--success); }
- .upd-pill-modified { background: var(--accent-dim); color: var(--accent); }
- .upd-pill-deleted { background: rgba(240, 84, 106, 0.14); color: var(--error); }
- .upd-row-actions { display: flex; gap: 8px; justify-content: flex-end; }
- .upd-row-actions form { margin: 0; }
- .upd-file { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elevated); margin-bottom: 8px; overflow: hidden; }
- .upd-file summary { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; font-size: 0.875rem; }
- .upd-file summary .upd-pill { margin-left: 0; }
- .upd-path { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; }
- .upd-stats { display: flex; gap: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; }
- .upd-add { color: var(--success); }
- .upd-del { color: var(--error); }
- .upd-move { color: var(--blue); }
- .upd-note { padding: 0 14px 12px; margin: 0; }
- .upd-diff { border-top: 1px solid var(--border); overflow-x: auto; font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; line-height: 1.5; }
- .upd-line { display: flex; min-width: max-content; }
- .upd-ln { flex: 0 0 44px; padding: 0 8px; text-align: right; color: var(--text-subtle); user-select: none; }
- .upd-marker { flex: 0 0 22px; text-align: center; user-select: none; }
- .upd-code { white-space: pre; padding-right: 14px; }
- .upd-line-add { background: rgba(52, 196, 140, 0.12); }
- .upd-line-del { background: rgba(240, 84, 106, 0.12); }
- .upd-line-move { background: rgba(79, 178, 232, 0.12); }
- .upd-gap { padding: 2px 14px; color: var(--text-subtle); background: var(--bg-card); }
- .upd-warning { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid rgba(240, 84, 106, 0.35); border-radius: var(--radius-sm); background: rgba(240, 84, 106, 0.08); font-size: 0.85rem; line-height: 1.6; }
- .upd-warning > svg { flex-shrink: 0; color: var(--error); margin-top: 2px; }
- .upd-warning strong { color: var(--error); }
- .upd-warning p, .upd-warning ul { margin: 6px 0 0; color: var(--text-muted); }
- .upd-warning p strong { color: inherit; }
- .upd-warning ul { padding-left: 18px; }
- .upd-copy { font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; }
- .upd-auto-form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 16px; }
- .upd-last-run { margin-top: 16px; }
- .upd-last-run .upd-pill { margin-left: 4px; }
-
- .ai-fab {
- position: fixed; right: 24px; bottom: 24px; z-index: 900;
- display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
- border-radius: 999px;
- border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
- background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, transparent), color-mix(in srgb, var(--accent) 10%, transparent));
- -webkit-backdrop-filter: blur(14px) saturate(160%);
- backdrop-filter: blur(14px) saturate(160%);
- color: var(--accent); font: inherit; font-weight: 600; cursor: pointer;
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 0 transparent;
- transition: box-shadow var(--transition-base), transform var(--transition-base);
- }
- .ai-fab:hover,
- .ai-fab:focus-visible {
- outline: none;
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 22px 2px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 48px 8px color-mix(in srgb, var(--accent) 22%, transparent);
- }
- .ai-fab:active { transform: scale(0.97); }
- .ai-fab-hidden { display: none; }
- .ai-panel { position: fixed; right: 24px; bottom: 24px; z-index: 901; display: flex; flex-direction: column; width: 420px; max-width: calc(100vw - 32px); height: min(680px, calc(100vh - 48px)); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
- .ai-panel[hidden] { display: none; }
- .ai-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
- .ai-header-text { flex: 1; min-width: 0; }
- .ai-title { font-weight: 600; }
- .ai-subtitle { font-size: 0.78rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .ai-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font: inherit; font-size: 0.82rem; font-weight: 500; cursor: pointer; }
- .ai-btn:hover:not(:disabled) { background: var(--bg-hover); }
- .ai-btn:disabled { opacity: 0.45; cursor: default; }
- .ai-btn-primary { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
- .ai-icon-btn { display: inline-flex; padding: 6px; border: none; background: none; color: var(--text-muted); cursor: pointer; border-radius: var(--radius-sm); }
- .ai-icon-btn:hover { background: var(--bg-hover); color: var(--text); }
- .ai-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
- .ai-note { text-align: center; font-size: 0.82rem; line-height: 1.5; color: var(--text-muted); }
- .ai-msg { max-width: 92%; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.875rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
- .ai-msg-user { align-self: flex-end; background: var(--accent-dim); color: var(--text); }
- .ai-msg-assistant { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border); }
- .ai-msg-note { align-self: center; color: var(--text-muted); font-size: 0.8rem; }
- .ai-msg-error { border-color: var(--error); color: var(--error); }
- .ai-pending { color: var(--text-muted); }
- .ai-proposal { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); padding: 12px 14px; }
- .ai-ops { margin: 0 0 10px; padding-left: 18px; font-size: 0.85rem; line-height: 1.6; max-height: 190px; overflow-y: auto; }
- .ai-actions { display: flex; gap: 8px; }
- .ai-applied { color: var(--success); font-size: 0.85rem; font-weight: 500; }
- .ai-warning { color: var(--error); font-size: 0.8rem; margin-bottom: 8px; }
- .ai-muted { color: var(--text-muted); font-size: 0.82rem; }
- .ai-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
- .ai-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font: inherit; font-size: 0.82rem; font-weight: 500; cursor: pointer; }
- .ai-chip:hover { background: var(--bg-hover); }
- .ai-scope { display: flex; align-items: center; gap: 10px; padding: 0 16px 10px; font-size: 0.8rem; color: var(--text-muted); }
- .ai-select { flex: 1; min-width: 0; padding: 7px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 0.85rem; }
- .ai-composer { display: flex; gap: 10px; padding: 0 16px 16px; }
- .ai-input { flex: 1; min-width: 0; resize: none; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-focus); background: var(--bg); color: var(--text); font: inherit; font-size: 0.875rem; }
- .ai-input:focus { outline: none; border-color: var(--accent); }
- .ai-send { flex: 0 0 auto; width: 44px; border-radius: var(--radius-sm); border: 1px solid var(--accent); background: var(--accent-dim); color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
- .ai-send:disabled { opacity: 0.45; cursor: default; }
- @media (max-width: 600px) {
- .ai-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 85vh; border-radius: var(--radius) var(--radius) 0 0; }
- .ai-fab { right: 16px; bottom: 16px; }
- }
- .ai-scope-tab { flex: 1; min-width: 0; padding: 7px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.85rem; }
-
- html[data-glass="off"] *,
- html[data-glass="off"] *::before,
- html[data-glass="off"] *::after {
- -webkit-backdrop-filter: none !important;
- backdrop-filter: none !important;
- }
- html[data-glass="off"] .main-header { background: var(--bg-elevated); }
- html[data-glass="off"] .ai-fab { background: color-mix(in srgb, var(--accent) 22%, var(--bg-elevated)); }
- html[data-glass="off"] .modal-overlay { background: rgba(0, 0, 0, 0.8); }
- html[data-glass="off"] .media-modal { background: rgba(0, 0, 0, 0.7); }
-
- html[data-minimal="on"] *,
- html[data-minimal="on"] *::before,
- html[data-minimal="on"] *::after {
- transition: none !important;
- animation: none !important;
- scroll-behavior: auto !important;
- }
- html[data-minimal="on"] .preview-frame-wrapper.loading::after { animation: spin 0.8s linear infinite !important; }
-
- html[data-minimal="on"] .user-avatar { background: #94a3b8; }
- html[data-minimal="on"][data-theme="dark"] .user-avatar { background: #444; }
- html[data-minimal="on"] .card,
- html[data-minimal="on"] .block-item,
- html[data-minimal="on"] .editor-wrapper { background: var(--bg-elevated); }
- html[data-minimal="on"] .btn-primary { background: color-mix(in srgb, var(--accent) 16%, transparent); }
- html[data-minimal="on"] .btn-primary:hover { background: color-mix(in srgb, var(--accent) 25%, transparent); }
- html[data-minimal="on"] .btn-success { background: color-mix(in srgb, var(--success) 16%, transparent); }
- html[data-minimal="on"] .btn-success:hover { background: color-mix(in srgb, var(--success) 25%, transparent); }
- html[data-minimal="on"] .btn-danger { background: color-mix(in srgb, var(--error) 10%, transparent); }
- html[data-minimal="on"] .btn-danger:hover { background: color-mix(in srgb, var(--error) 20%, transparent); }
- html[data-minimal="on"] .btn-secondary { background: var(--bg-card); }
- html[data-minimal="on"] .btn-secondary:hover { background: var(--bg-hover); }
- html[data-minimal="on"] .form-input,
- html[data-minimal="on"] .form-textarea,
- html[data-minimal="on"] .form-select,
- html[data-minimal="on"] .block-field-input { background: var(--bg); }
- html[data-minimal="on"][data-theme="light"] .form-input,
- html[data-minimal="on"][data-theme="light"] .form-textarea,
- html[data-minimal="on"][data-theme="light"] .form-select,
- html[data-minimal="on"][data-theme="light"] .block-field-input { background: var(--bg-card); }
- html[data-minimal="on"] .form-input:focus,
- html[data-minimal="on"] .form-textarea:focus,
- html[data-minimal="on"] .form-select:focus,
- html[data-minimal="on"] .block-field-input:focus { background: color-mix(in srgb, var(--accent) 5%, var(--bg)); }
- html[data-minimal="on"] .checkbox-label input[type="checkbox"],
- html[data-minimal="on"] .form-switch label { background: var(--bg-card); }
- html[data-minimal="on"] .checkbox-label input[type="checkbox"]::before,
- html[data-minimal="on"] .form-switch label:before,
- html[data-minimal="on"][data-theme="light"] .checkbox-label input[type="checkbox"]::before,
- html[data-minimal="on"][data-theme="light"] .form-switch label:before { background: var(--text-muted); }
- html[data-minimal="on"] .checkbox-label input[type="checkbox"]:checked,
- html[data-minimal="on"] .form-switch input:checked+label { background: color-mix(in srgb, var(--accent) 26%, transparent); }
- html[data-minimal="on"] .checkbox-label input[type="checkbox"]:checked::before,
- html[data-minimal="on"] .form-switch input:checked+label:before { background: #fff; }
- html[data-minimal="on"] .ai-fab { background: color-mix(in srgb, var(--accent) 18%, var(--bg-elevated)); }
-
- html[data-minimal="on"] *,
- html[data-minimal="on"] *::before,
- html[data-minimal="on"] *::after {
- box-shadow: none !important;
- text-shadow: none !important;
- }
- html[data-minimal="on"] :focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; }
- html[data-minimal="on"] .form-input:focus,
- html[data-minimal="on"] .form-textarea:focus,
- html[data-minimal="on"] .form-select:focus,
- html[data-minimal="on"] .block-field-input:focus { border-color: var(--accent); }
-
- html[data-glass="off"] .btn-primary {
- background: var(--accent);
- border-color: var(--accent);
- color: #fff;
- }
- html[data-glass="off"] .btn-primary:hover {
- background: var(--accent-hover);
- border-color: var(--accent-hover);
- color: #fff;
- }
- html[data-glass="off"] .btn-success {
- background: var(--success);
- border-color: var(--success);
- color: #fff;
- }
- html[data-glass="off"] .btn-success:hover {
- background: color-mix(in srgb, var(--success) 88%, #000);
- border-color: color-mix(in srgb, var(--success) 88%, #000);
- color: #fff;
- }
- html[data-glass="off"] .btn-danger {
- background: transparent;
- border-color: var(--error);
- color: var(--error);
- }
- html[data-glass="off"] .btn-danger:hover {
- background: color-mix(in srgb, var(--error) 14%, transparent);
- border-color: var(--error);
- color: var(--error);
- }
- html[data-glass="off"] .checkbox-label input[type="checkbox"]:checked,
- html[data-glass="off"] .form-switch input:checked+label {
- background: var(--accent);
- border-color: var(--accent);
- }
- html[data-glass="off"] .checkbox-label input[type="checkbox"]:checked::before,
- html[data-glass="off"] .form-switch input:checked+label:before {
- background: #fff;
- }
- html[data-glass="off"] .ai-fab {
- background: var(--accent);
- border-color: var(--accent);
- color: #fff;
- }
-
- #editLangSwitch.lang-switch-short {
- min-width: 0 !important;
- width: auto;
- height: 34px;
- min-height: 0;
- padding: 0 22px 0 10px !important;
- font-size: 0.8rem;
- font-weight: 600;
- line-height: 1;
- border-radius: 999px;
- }
-