/* ==========================================================================
1. ГЛОБАЛЬНЫЕ СТИЛИ (BASE)
========================================================================== */
*, *::before, *::after {
box-sizing: border-box;
border-width: 0;
border-style: solid;
border-color: hsl(220, 13%, 91%);
}

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: hsl(220, 25%, 98%);
color: hsl(222, 47%, 11%);
margin: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.hidden { display: none !important; }

/* ==========================================================================
2. КОМПОНЕНТЫ ИНТЕРФЕЙСА (GLOBAL UI)
========================================================================== */
.content { max-width: 1200px; margin: 24px auto; padding: 0 16px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
#page-title { font-size: 1.8em; font-weight: 700; margin: 0; }

/* Карточки */
.card {
background-color: #fff;
border: 1px solid hsl(220, 13%, 91%);
border-radius: 1rem;
box-shadow: 0 2px 8px hsla(221, 83%, 53%, 0.07);
overflow: hidden;
margin-bottom: 1.5rem;
}
.card:last-child { margin-bottom: 0; }
.card-title { font-size: 1.125rem; font-weight: 600; padding: 1rem 1.5rem; margin: 0; border-bottom: 1px solid hsl(220,
13%, 91%); }
.card-body { padding: 1.5rem; }
.card-body h4 { margin: 0 0 0.75rem 0; font-size: 1rem; }
.card-body h4:not(:first-child) { margin-top: 1.5rem; }

/* Переключатели вкладок */
.segmented-control {
display: flex; padding: 4px; background-color: hsl(220, 15%, 95%); border-radius: 0.5rem;
}
.segmented-control button {
flex: 1; padding: 10px; font-size: 0.95rem; font-weight: 600;
color: hsl(220, 9%, 46%); background: transparent; border-radius: 0.5rem;
cursor: pointer; border: none; transition: all 0.2s;
display: flex; align-items: center; justify-content: center;
}
.segmented-control button i { margin-right: 8px; }
.segmented-control button.active {
background-color: hsl(0, 0%, 100%); color: hsl(222, 47%, 11%);
box-shadow: 0 2px 8px hsla(221, 83%, 53%, 0.07);
}

/* Кнопки */
.btn-primary {
display: inline-flex; align-items: center; justify-content: center;
padding: 10px 20px; font-size: 1rem; font-weight: 600;
color: white; background-color: hsl(221, 83%, 53%);
border-radius: 0.5rem; cursor: pointer; border: none; text-decoration: none;
transition: background-color 0.2s;
}
.btn-primary:hover, .modal-btn-confirm:hover { background-color: hsl(221, 83%, 65%); }
.btn-primary:disabled { background-color: #cbd5e1; cursor: not-allowed; }

.secondary-btn {
display: inline-flex; align-items: center; justify-content: center;
padding: 8px 16px; font-size: 0.9rem; font-weight: 600;
color: hsl(220, 9%, 46%); background-color: hsl(220, 15%, 95%);
border-radius: 0.5rem; cursor: pointer; border: none;
transition: background-color 0.2s;
}
.secondary-btn:hover { background-color: hsl(220, 13%, 91%); color: hsl(222, 47%, 11%); }

.action-btn {
display: inline-flex; align-items: center; justify-content: center;
padding: 8px; background: transparent; border-radius: 50%;
color: hsl(220, 9%, 46%); cursor: pointer; border: none;
transition: all 0.2s;
}
.action-btn:hover { background-color: hsl(220, 15%, 95%); color: hsl(222, 47%, 11%); }

/* Формы */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.875rem; color: hsl(220, 9%,
46%); }
input, select, textarea {
width: 100%; padding: 10px 14px; font-size: 1rem;
color: hsl(222, 47%, 11%); background-color: hsl(220, 25%, 98%);
border: 1px solid hsl(220, 13%, 91%); border-radius: 0.5rem;
font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: hsl(221, 83%, 53%); box-shadow: 0 0 0 2px
hsla(221, 83%, 53%, 0.5); }

/* Лоадер */
.loader {
border: 4px solid #f3f3f3; border-top: 4px solid hsl(221, 83%, 53%);
border-radius: 50%; width: 40px; height: 40px;
animation: spin 1s linear infinite; margin: 20px auto;
}
.loader-small {
border: 2px solid #f3f3f3; border-top: 2px solid hsl(221, 83%, 53%);
border-radius: 50%; width: 20px; height: 20px;
animation: spin 1s linear infinite; display: inline-block;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Модальные окна */
.modal {
display: none; position: fixed; z-index: 2000; top: 0; right: 0; bottom: 0; left: 0;
align-items: center; justify-content: center; background: hsla(0, 0%, 0%, 0.5);
}
.modal-content {
position: relative; background: #fff; border-radius: 1rem; padding: 2rem;
width: 90%; max-width: 600px; box-shadow: 0 8px 24px hsla(221, 83%, 53%, 0.15);
}
.modal-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin: 0 0 1.5rem; color: hsl(222, 47%, 11%); }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.modal-actions > * { margin-left: 0.75rem; }
.close-btn { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border-radius: 50%; background:
hsl(220, 15%, 95%); border: none; cursor: pointer; font-size: 1.5rem; color: hsl(220, 9%, 46%); }
.close-btn:hover { background-color: hsl(220, 13%, 91%); color: hsl(222, 47%, 11%); }

.modal-btn-confirm {
display: inline-flex; align-items: center; justify-content: center;
padding: 10px 20px; font-size: 1rem; font-weight: 600;
color: white; background-color: hsl(221, 83%, 53%);
border-radius: 0.5rem; cursor: pointer; border: none;
}
.modal-btn-cancel {
display: inline-flex; align-items: center; justify-content: center;
padding: 10px 20px; font-size: 1rem; font-weight: 600;
color: hsl(220, 9%, 46%); background-color: hsl(220, 15%, 95%);
border-radius: 0.5rem; cursor: pointer; border: none;
}

/* ==========================================================================
3. НАВИГАЦИЯ (NAVBAR)
========================================================================== */
.navbar {
position: sticky; top: 0; z-index: 1000; width: 100%;
background-color: hsla(0, 0%, 100%, 0.85);
border-bottom: 1px solid hsl(220, 13%, 91%);
box-shadow: 0 2px 8px hsla(221, 83%, 53%, 0.07);
backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.navbar-container {
max-width: 1200px; height: 60px; margin: 0 auto; padding: 0 16px;
display: flex; justify-content: space-between; align-items: center;
}
.navbar-links, .navbar-actions { display: flex; align-items: center; }
.navbar-links > * { margin-right: 0.5rem; }

.navbar-balance {
margin-right: 12px; font-weight: 700; color: hsl(222, 47%, 11%);
background-color: #f1f5f9; padding: 6px 12px; border-radius: 12px;
font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px;
border: 1px solid #e2e8f0; cursor: default;
}
.navbar-balance i { color: #16a34a; }

#nav-user-button { position: relative; padding: 0; border: none; background: transparent; cursor: pointer; display:
flex; align-items: center; }
.navbar-avatar-wrapper { position: relative; width: 36px; height: 36px; }
.navbar-avatar-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid
hsl(220, 13%, 91%); transition: border-color 0.2s; }
#nav-user-button:hover .navbar-avatar-wrapper img { border-color: hsl(221, 83%, 53%); }

.notification-badge {
position: absolute; top: -4px; right: -4px; background-color: #ef4444;
color: white; font-size: 0.65rem; font-weight: 700; height: 18px; min-width: 18px;
display: flex; align-items: center; justify-content: center;
border-radius: 9px; border: 2px solid white; box-shadow: 0 1px 2px rgba(0,0,0,0.1); z-index: 10; padding: 0 4px;
}

.dropdown { position: relative; }
.dropbtn {
display: flex; align-items: center; padding: 8px 12px; font-size: 0.95rem;
font-weight: 600; color: hsl(220, 9%, 46%); background: transparent;
border-radius: 0.5rem; border: none; cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.dropbtn i { margin-right: 0.5rem; }
.dropbtn:hover, .dropbtn.active { background-color: hsl(220, 15%, 95%); color: hsl(222, 47%, 11%); }

.dropdown-content {
display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
background-color: #fff; border: 1px solid hsl(220, 13%, 91%);
border-radius: 1rem; box-shadow: 0 8px 24px hsla(221, 83%, 53%, 0.15);
z-index: 1001; padding: 0.5rem; overflow: visible;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
display: block; padding: 10px 12px; color: hsl(222, 47%, 11%);
text-decoration: none; font-weight: 500; border-radius: 0.5rem;
}
.dropdown-content a:hover { background-color: hsl(220, 15%, 95%); }

/* Nested Dropdown */
.nested-dropdown { position: relative; }
.nested-btn {
display: flex; justify-content: space-between; align-items: center; width: 100%;
padding: 12px 16px; color: hsl(222, 47%, 11%); text-decoration: none;
font-weight: 500; border: none; background: transparent; cursor: pointer;
border-radius: 0.5rem; transition: background-color 0.2s; font-size: 0.95rem; text-align: left;
}
.nested-btn:hover { background-color: hsl(220, 15%, 95%); }
.nested-btn i.arrow { font-size: 0.8em; opacity: 0.5; transition: transform 0.2s; }
.nested-content {
display: none; background-color: #fff; min-width: 220px; z-index: 1002;
border-radius: 0.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.15);
border: 1px solid hsl(220, 13%, 91%); padding: 5px 0;
}
.nested-content a { display: block; padding: 10px 16px; color: hsl(222, 47%, 11%); text-decoration: none; font-size:
0.9rem; transition: background 0.2s; }
.nested-content a:hover { background-color: hsl(220, 15%, 95%); color: hsl(221, 83%, 53%); }
.nested-content a i { width: 20px; text-align: center; margin-right: 8px; color: hsl(220, 9%, 46%); }

@media (min-width: 769px) {
.nested-content { position: absolute; left: 100%; top: -5px; margin-left: 5px; }
@media (min-width: 769px) {
.nested-content {
position: absolute;
left: 100%;
top: -5px;
margin-left: 5px;
}

/* --- ДОБАВИТЬ ЭТОТ БЛОК --- */
/* Невидимый мост для удержания курсора */
.nested-content::before {
content: "";
position: absolute;
top: 0; /* От самого верха */
bottom: 0; /* До самого низа */
left: -20px; /* Сдвигаем влево навстречу курсору */
width: 25px; /* Ширина должна перекрывать margin-left (5px) + запас */
background: transparent; /* Делаем его невидимым */
z-index: -1; /* Чтобы не перекрывал контент */
}
/* -------------------------- */

.nested-dropdown:hover > .nested-content {
display: block;
animation: fadeInLeft 0.2s ease-out;
}
/* ... анимация ... */
}

.nested-dropdown:hover > .nested-content { display: block; animation: fadeInLeft 0.2s ease-out; }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); }
}
}
@media (max-width: 768px) {
.nested-content { position: static; box-shadow: none; border: none; border-left: 2px solid hsl(220, 13%, 91%);
background-color: #f8fafc; margin: 0 10px 10px 20px; width: auto; }
.nested-dropdown.active > .nested-content { display: block; }
.nested-dropdown.active .arrow { transform: rotate(90deg); }
}

.profile-dropdown-menu {
display: none; position: absolute; top: 60px; right: 16px; width: 240px;
background-color: white; border: 1px solid hsl(220, 13%, 91%); border-radius: 0.5rem;
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); z-index: 2000; padding: 0.5rem 0;
animation: fadeIn 0.1s ease-out;
}
.profile-dropdown-menu.show { display: block; }
.profile-dropdown-menu .dropdown-item {
display: flex; align-items: center; width: 100%; padding: 0.75rem 1rem;
color: hsl(222, 47%, 11%); text-decoration: none; font-size: 0.95rem;
background: transparent; border: none; cursor: pointer; text-align: left;
}
.profile-dropdown-menu .dropdown-item:hover { background-color: hsl(220, 15%, 95%); }
.profile-dropdown-menu .dropdown-item i { width: 20px; margin-right: 10px; text-align: center; color: hsl(220, 9%, 46%);
}
.dropdown-divider { height: 1px; background-color: hsl(220, 13%, 91%); margin: 0.5rem 0; }
.menu-badge { background-color: #ef4444; color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 10px;
margin-left: auto; font-weight: 600; }

/* ==========================================================================
4. ГЛОБАЛЬНЫЕ КОМПОНЕНТЫ (КАРТОЧКИ ЗАДАЧ И ГАЛЕРЕЯ)
========================================================================== */

/* --- КАРТОЧКА ЗАДАЧИ (Task Card Visual) --- */
.tasks-grid {
display: flex; overflow-x: auto; padding: 16px 24px;
scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tasks-grid::-webkit-scrollbar { display: none; }

.task-card-visual {
position: relative; flex: 0 0 260px; width: 260px; height: 320px;
border-radius: 24px; overflow: hidden;
background-color: #1e293b; background-size: cover; background-position: center;
box-shadow: 0 10px 30px -10px rgba(0,0,0,0.2);
cursor: pointer; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
border: 1px solid rgba(255,255,255,0.1); margin-right: 16px;
}
.task-card-visual:last-child { margin-right: 0; }
.task-card-visual:active { transform: scale(0.96); }
.task-card-visual.no-image { background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%); }

.task-card-visual::after {
content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1;
background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 25%, transparent 50%, rgba(0,0,0,0.8) 80%,
rgba(0,0,0,0.95) 100%);
}

.task-content-wrapper {
position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2;
display: flex; flex-direction: column; justify-content: space-between; padding: 20px;
}

.task-deadline-badge {
align-self: flex-end; background: rgba(0, 0, 0, 0.5); color: white;
font-size: 0.75rem; font-weight: 700; padding: 6px 12px; border-radius: 20px;
border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(4px);
}

.task-info-block { display: flex; flex-direction: column; }
.task-card-title {
color: white; font-size: 1.3rem; font-weight: 800; line-height: 1.1;
text-shadow: 0 2px 8px rgba(0,0,0,0.8); margin-bottom: 6px;
}
.task-card-desc {
color: rgba(255, 255, 255, 0.95); font-size: 0.85rem; font-weight: 500;
line-height: 1.4; text-shadow: 0 1px 4px rgba(0,0,0,0.8);
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
overflow: hidden; margin-bottom: 12px;
}

.task-rewards-container { display: flex; flex-direction: column; }
.task-rewards-container > div { margin-bottom: 6px; }
.task-badge-group { display: flex; flex-wrap: wrap; }
.task-badge-group .task-badge { margin-right: 8px; }

.task-badge {
display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 10px;
font-size: 0.85rem; font-weight: 700; background: rgba(0, 0, 0, 0.55);
border: 1px solid rgba(255,255,255,0.15); color: white;
backdrop-filter: blur(8px); box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.task-badge i { margin-right: 6px; font-size: 1em; }
.badge-text { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block;
vertical-align: bottom; font-weight: 600; }
.task-badge.rating { color: #fde047; }
.task-badge.money { color: #4ade80; }
.task-badge.extra { color: #ffffff; }

.task-completed-overlay {
position: absolute; top: 0; right: 0; bottom: 0; left: 0;
background: rgba(16, 185, 129, 0.85); z-index: 20;
display: flex; align-items: center; justify-content: center;
backdrop-filter: blur(4px);
}
.task-completed-overlay i { font-size: 5rem; color: white; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2)); }
.task-expired-overlay {
position: absolute; top: 0; right: 0; bottom: 0; left: 0;
background: rgba(239, 68, 68, 0.85); z-index: 20;
display: flex; align-items: center; justify-content: center;
backdrop-filter: blur(4px);
}
.task-expired-overlay i { font-size: 5rem; color: white; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2)); }

@media (max-width: 480px) {
.task-card-visual { flex: 0 0 85vw; width: 85vw; height: 380px; margin-right: 12px; }
.tasks-grid { padding: 16px; }
}

/* --- МОДАЛЬНОЕ ОКНО ЗАДАЧИ (Task Details Modal) --- */
.task-details-modal {
/* No specific width needed if parent handles it */
}

.task-modal-header { margin-bottom: 1rem; }
.modal-task-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem 0; line-height: 1.2; }
.modal-task-meta { display: flex; gap: 10px; font-size: 0.85rem; color: hsl(220, 9%, 46%); }
.deadline-badge { display: inline-flex; align-items: center; background: hsl(220, 15%, 95%); padding: 4px 8px;
border-radius: 6px; }
.deadline-badge i { margin-right: 6px; }

.task-modal-description {
font-size: 1rem; line-height: 1.6; color: hsl(222, 47%, 11%);
margin-bottom: 1.5rem; white-space: pre-wrap;
}

.task-modal-rewards-title {
font-size: 0.75rem; text-transform: uppercase; font-weight: 700;
color: hsl(220, 9%, 46%); margin-bottom: 0.5rem; letter-spacing: 0.5px;
}

.task-modal-rewards-grid {
display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1.5rem;
}

.modal-reward-row {
display: flex; align-items: center; padding: 0.75rem;
border-radius: 0.75rem; background-color: #f8fafc;
border: 1px solid #e2e8f0;
}

/* Цвета наград */
.modal-reward-row.yellow .reward-icon-box { background: #fef9c3; color: #ca8a04; }
.modal-reward-row.green .reward-icon-box { background: #dcfce7; color: #16a34a; }
.modal-reward-row.purple .reward-icon-box { background: #f3e8ff; color: #9333ea; }
.modal-reward-row.blue .reward-icon-box { background: #dbeafe; color: #2563eb; }
.modal-reward-row.gray .reward-icon-box { background: #f1f5f9; color: #64748b; }

.reward-icon-box {
width: 40px; height: 40px; border-radius: 0.5rem;
display: flex; align-items: center; justify-content: center;
font-size: 1.2rem; margin-right: 1rem; flex-shrink: 0;
}

.reward-info-box { flex-grow: 1; }
.reward-title { font-weight: 600; font-size: 0.95rem; color: hsl(222, 47%, 11%); }
.reward-sub { font-size: 0.85rem; color: hsl(220, 9%, 46%); }

/* Картинка внутри модалки */
.task-modal-image-wrapper {
width: 100%; height: 200px; border-radius: 0.75rem;
overflow: hidden; position: relative; cursor: pointer;
margin-bottom: 1rem; border: 1px solid #e2e8f0;
background-color: #f8fafc;
}

.task-modal-image-wrapper img {
width: 100%; height: 100%; object-fit: cover;
transition: transform 0.3s;
}

.image-zoom-overlay {
position: absolute; top: 0; right: 0; bottom: 0; left: 0;
background: rgba(0,0,0,0.3); display: flex;
align-items: center; justify-content: center;
opacity: 0; transition: opacity 0.2s;
}

.image-zoom-overlay i {
color: white; font-size: 2rem;
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.task-modal-image-wrapper:hover .image-zoom-overlay { opacity: 1; }
.task-modal-image-wrapper:hover img { transform: scale(1.05); }

/* --- ГЛОБАЛЬНЫЙ ПРОСМОТРЩИК ИЗОБРАЖЕНИЙ --- */
.modal-content.image-viewer-modal {
width: 95vw; height: 90vh; max-width: 1400px; padding: 0;
background: transparent; box-shadow: none; overflow: hidden;
}
.image-viewer-layout {
display: grid; grid-template-columns: 1fr 360px; grid-template-rows: 1fr;
width: 100%; height: 100%; background-color: hsl(0, 0%, 0%);
border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.image-viewer-main {
position: relative; background-color: #000; display: flex;
align-items: center; justify-content: center; overflow: hidden;
}
.image-viewer-main img, .image-viewer-main video {
max-width: 100%; max-height: 100%; object-fit: contain;
}
.viewer-nav-btn {
position: absolute; top: 50%; transform: translateY(-50%);
background: rgba(255, 255, 255, 0.1); color: white; border: none;
width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
transition: background 0.2s; z-index: 10;
}
.viewer-nav-btn:hover { background: rgba(255, 255, 255, 0.3); }
.viewer-nav-btn.prev { left: 20px; }
.viewer-nav-btn.next { right: 20px; }
.viewer-nav-btn:disabled { display: none; }

.image-viewer-sidebar {
background-color: #fff; display: flex; flex-direction: column; border-left: 1px solid #ddd;
}
.sidebar-header {
padding: 16px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center;
}
.sidebar-header h3 { margin: 0; font-size: 1.1rem; }
.sidebar-comments { flex-grow: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.viewer-comment { display: flex; gap: 10px; font-size: 0.95rem; }
.viewer-comment img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.viewer-comment-content { background: #f1f5f9; padding: 8px 12px; border-radius: 12px; border-top-left-radius: 2px; }
.viewer-comment-author { font-weight: 700; font-size: 0.85rem; margin-bottom: 2px; color: #334155; }
.viewer-comment-time { font-size: 0.7rem; color: #94a3b8; margin-top: 4px; display: block; }

.sidebar-footer { padding: 12px; border-top: 1px solid #eee; background: #fff; }
.viewer-actions-row { display: flex; align-items: center; margin-bottom: 10px; }
.like-btn {
background: none; border: none; cursor: pointer; font-size: 1.5rem; color: #ccc;
transition: transform 0.1s, color 0.2s; display: flex; align-items: center; gap: 8px;
}
.like-btn.liked { color: #ef4444; }
.like-btn:active { transform: scale(1.2); }
.like-count { font-size: 1rem; font-weight: 600; color: #333; }
.viewer-input-row { display: flex; gap: 8px; }
.viewer-input { flex-grow: 1; border: 1px solid #cbd5e1; border-radius: 20px; padding: 8px 14px; outline: none; }
.viewer-input:focus { border-color: hsl(221, 83%, 53%); }

@media (max-width: 900px) {
.modal-content.image-viewer-modal { width: 100vw; height: 100vh; border-radius: 0; }
.image-viewer-layout { grid-template-columns: 1fr; grid-template-rows: 1fr 40%; border-radius: 0; }
.image-viewer-sidebar { border-left: none; border-top: 1px solid #333; }
}