/*
Theme Name: Devikp Raoru
Theme URI: https://example.com/
Author: Devikp Team
Author URI: https://example.com/
Description: Минималистичная стартовая тема для сайта на WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: devikp-theme
*/

/* Базовые стили */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.site-header,
.site-footer {
    background: white;
    padding: 0;
    overflow: visible;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.post-title {
    margin: 0 0 .5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

/* Main layout container */
#app-content {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Sidebar */
.projects-sidebar {
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 0;
    background: #534DFF;
    color: #ffffff;
    padding: 24px 20px;
    word-wrap: break-word;
    overflow-x: hidden;
}

.projects-inner { display: flex; flex-direction: column; height: 100%; }
.projects-title { margin: 0 0 16px; font-size: 28px; font-weight: 700; }
.projects-drag-info { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin: 0 0 15px 0; line-height: 1.4; font-style: italic; }

/* Projects search */
.projects-search {
    margin-bottom: 15px;
}

.projects-search-input {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-sizing: border-box;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.projects-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.projects-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Projects filter buttons */
.projects-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.filter-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.95);
    color: #534DFF;
}

.projects-list { list-style: none; margin: 0; padding: 0; gap: 10px; display: grid; max-height: 60vh; overflow-y: auto; }
.projects-list.dragging { overflow: hidden; }

/* Custom scrollbar for projects-list */
.projects-list::-webkit-scrollbar {
    width: 8px;
}

.projects-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.projects-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.projects-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Firefox scrollbar */
.projects-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}
.project-item { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.06); border-radius: 8px; padding: 10px 12px; cursor: move; transition: all 0.2s ease; max-width: 100%; }
.project-item:hover { background: rgba(255,255,255,0.1); }
.project-item.dragging { opacity: 0.5; }
.project-item.drag-over { border: 2px dashed rgba(255,255,255,0.3); }
.project-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.project-name { color: #fff; text-decoration: none; word-break: break-all; cursor: pointer; margin-bottom: 4px; max-width: 100%; overflow: hidden; }
.project-status-display { color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 400; }
.project-delete { background: transparent; border: 0; color: #fff; opacity: .85; cursor: pointer; }
.project-delete:hover { opacity: 1; text-decoration: underline; }

.projects-add { margin-top: 20px; background: rgba(255,255,255,0.06); border-radius: 12px; padding: 16px; }
.projects-add-title { margin: 0 0 8px; font-size: 22px; }
.add-project-form { display: grid; gap: 8px; }
.add-project-label { font-size: 14px; opacity: .9; }
.add-project-input { border-radius: 8px; border: none; padding: 10px 12px; font-size: 16px; }
.add-project-button { background: #fff; color: #000; border: none; border-radius: 8px; padding: 10px 12px; font-size: 16px; cursor: pointer; }

/* Right content area */
.right-content {
    flex: 0 0 75%;
    max-width: 75%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
}

.container { 
    margin: 0; 
    max-width: none; 
    padding: 0 30px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Project header specific positioning */
.project-header {
    margin: 0;
}

/* Ensure right pane content doesn't overlap with sidebar */
.project-content {
    margin: 0;
    padding: 0;
}

/* Right pane header */
.project-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin: 24px 0 20px 0; 
    padding: 0;
    overflow: visible;
    border-bottom: none;
}
.project-domain { 
    font-size: 40px; 
    font-weight: 700; 
    color: #333;
    margin: 0;
    line-height: 1.2;
}
.project-status { 
    font-size: 14px; 
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #a0a0a0; }

/* Status dropdown */
.status-dropdown {
    position: relative;
    display: inline-block;
    z-index: 10001;
}

.status-chip {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
}

.status-chip:hover {
    background: #e5e7eb;
}

.dropdown-arrow {
    font-size: 10px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.status-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.status-dropdown-menu {
    position: fixed;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    min-width: 200px;
    display: none;
    margin-top: 4px;
}

.status-dropdown.open .status-dropdown-menu {
    display: block;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.status-option:hover {
    background: #f3f4f6;
}

.status-option:first-child {
    border-radius: 8px 8px 0 0;
}

.status-option:last-child {
    border-radius: 0 0 8px 8px;
}

.status-option:only-child {
    border-radius: 8px;
}

.status-warning {
    font-size: 13px;
    color: #6b7280;
    text-align: right;
    line-height: 1.3;
    max-width: 400px;
    margin-right: 16px;
}
.status-in_progress .status-dot { background: #3182CE; }
.status-done .status-dot { background: #2F855A; }
.status-need_vks .status-dot { background: #D69E2E; }
.status-question_sent .status-dot { background: #805AD5; }
.status-checking .status-dot { background: #E53E3E; }

/* Quick Actions */
.quick-actions {
    margin: 0 0 30px 0;
}

.go-to-site-btn {
    display: inline-block;
    background: none;
    color: #333;
    padding: 0;
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px dotted #666;
    font-size: 16px;
}

.go-to-site-btn:hover {
    color: #534DFF;
    border-bottom-color: #534DFF;
}

/* Credentials Section */
.credentials-section {
    margin: 30px 0;
}

.credentials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.credentials-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.add-credential-btn {
    background: #10B981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.add-credential-btn:hover {
    background: #059669;
}

.credentials-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.credential-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.credential-info {
    flex: 1;
}

.credential-title {
    font-weight: 600;
    color: #534DFF;
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

.credential-title:hover {
    text-decoration: underline;
}

.credential-details {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
}

.credential-actions {
    display: flex;
    gap: 10px;
}

.copy-btn, .delete-cred-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.copy-btn {
    background: #e5e7eb;
    color: #374151;
}

.toggle-password-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-password-btn:hover {
    background: #e5e7eb;
}

.copy-btn:hover {
    background: #d1d5db;
}

.delete-cred-btn {
    background: #ef4444;
    color: white;
}

.delete-cred-btn:hover {
    background: #dc2626;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

.modal-close:hover {
    color: #374151;
}

.modal-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #534DFF;
    box-shadow: 0 0 0 3px rgba(83, 77, 255, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-cancel, .btn-save {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

.btn-save {
    background: #534DFF;
    color: white;
}

.btn-save:hover {
    background: #4338CA;
}

/* Corrections Section */
.corrections-section {
    margin: 30px 0;
}

/* Comments Section */
.comments-section {
    margin: 30px 0;
}

.comments-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.comments-title h3,
.developer-comments-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    text-align: left;
}

.comments-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.comments-column textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.comments-column textarea:focus {
    outline: none;
    border-color: #534DFF;
    box-shadow: 0 0 0 2px rgba(83, 77, 255, 0.1);
}

.comments-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: #534DFF;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background: #4338ca;
}

.screenshots-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.screenshot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.screenshot-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.screenshot-name {
    font-weight: 500;
    color: #333;
}

.screenshot-size {
    font-size: 12px;
    color: #6b7280;
}

.screenshot-actions {
    display: flex;
    gap: 16px;
}

.download-screenshot,
.delete-screenshot {
    font-size: 12px;
    cursor: pointer;
    border-bottom: 1px dotted #ccc;
    color: #6b7280;
    transition: color 0.2s;
}

.download-screenshot:hover {
    color: #534DFF;
}

.delete-screenshot {
    color: #dc3545;
}

.delete-screenshot:hover {
    color: #c82333;
}

/* Email notification info */
.email-notification-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

#screenshot-modal {
    display: none;
}

#screenshot-modal.show {
    display: flex !important;
}

/* Custom file input styles */
.file-input-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-bottom: 15px;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-input-label {
    display: inline-block;
    background: #534DFF !important;
    color: white !important;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.file-input-label:hover {
    background: #4338ca !important;
    color: white !important;
}

.file-input-label:active {
    background: #3730a3 !important;
    color: white !important;
}

.selected-files {
    margin-top: 10px;
}

.selected-file {
    display: inline-block;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 6px 10px;
    margin: 4px 8px 4px 0;
    font-size: 12px;
    color: #6b7280;
}

.corrections-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.corrections-header-left {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 20px;
    flex: 1;
    align-items: center;
}

.corrections-title h3,
.developer-mark-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    text-align: left;
}

.corrections-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.correction-row {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.correction-header {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 20px;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    align-items: center;
}

.correction-header:hover {
    background-color: #f8f9fa;
}

.correction-content {
    display: none;
    padding: 0 16px 16px 16px;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.correction-content.expanded {
    display: block;
}

.correction-description {
    margin: 16px 0 16px 0;
    color: #6b7280;
    line-height: 1.5;
    white-space: pre-line;
    word-wrap: break-word;
}

.correction-files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.correction-file-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.correction-file-item:hover {
    background-color: #f8f9fa;
    border-color: #534DFF;
    color: #534DFF;
}

.correction-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.correction-date {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.correction-title {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 1px dotted #666;
    display: inline-block;
    cursor: pointer;
}

.correction-title:hover {
    color: #534DFF;
    border-bottom-color: #534DFF;
}

.correction-files {
    margin-top: 8px;
}

.correction-file {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 4px;
}

.developer-mark {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.status-options {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.status-option {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.status-option:hover {
    background-color: #f3f4f6;
}

.status-option input[type="radio"] {
    display: none;
}

.status-option label {
    margin: 0;
    cursor: pointer;
    font-size: 12px;
    color: #6b7280;
    border-bottom: 1px dotted #ccc;
    display: inline-block;
    padding: 2px 0;
}

.status-option input[type="radio"]:checked + label {
    color: #333;
    font-weight: 600;
    border-bottom-color: #333;
}

/* Цветовая индикация для активных статусов в блоке "Отметка разработчика" */
.status-option input[type="radio"]:checked + label[for*="done_"] {
    color: #2F855A !important; /* Зеленый для "Выполнено" */
    border-bottom-color: #2F855A !important;
}

.status-option input[type="radio"]:checked + label[for*="in_progress_"] {
    color: #3182CE !important; /* Синий для "В работе" */
    border-bottom-color: #3182CE !important;
}

.status-option input[type="radio"]:checked + label[for*="need_vks_"] {
    color: #D69E2E !important; /* Оранжевый для "Требуется ВКС" */
    border-bottom-color: #D69E2E !important;
}

.status-option input[type="radio"]:checked + label[for*="question_sent_"] {
    color: #9F7AEA !important; /* Фиолетовый для "Вопросы отправлены в ТГ" */
    border-bottom-color: #9F7AEA !important;
}

.delete-correction-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.delete-correction-btn:hover {
    background: #c82333;
}

.status-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

.status-icon.done {
    background: #10B981;
}

.status-icon.in_progress {
    background: #3B82F6;
}

.status-icon.need_vks {
    background: #F59E0B;
}

.status-icon.question_sent {
    background: #8B5CF6;
}

.add-correction-btn {
    background: #10B981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

.add-correction-btn:hover {
    background: #059669;
}

.show-more-corrections {
    text-align: center;
    margin-top: 20px;
    padding: 20px 0;
}

.show-more-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.show-more-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.selected-files {
    margin-top: 10px;
}

.selected-file {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}

.form-group textarea:focus {
    outline: none;
    border-color: #534DFF;
    box-shadow: 0 0 0 3px rgba(83, 77, 255, 0.1);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Gate overlay */
.gate-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: #ffffff;
    z-index: 9999;
}

.gate-card {
    width: min(420px, 92vw);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    background: #fff;
}

.gate-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
}

.gate-form { display: grid; gap: 12px; }
.gate-label { font-size: 14px; color: #555; }
.gate-input {
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 16px;
}
.gate-input:focus { outline: none; border-color: #888; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.gate-button {
    padding: 10px 14px;
    border: 0;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.gate-button:disabled { opacity: .7; cursor: default; }
.gate-error { margin: 4px 0 0; color: #c53030; font-size: 14px; }


