/* AllStore Bootstrap — самостоятельное оформление для AllStore 3.3.
   Не требует Bootstrap JS, CDN или внешних шрифтов.
   Светлая тема задаётся по умолчанию; тёмная — классом или системной настройкой.
   Загрузите этот файл: Меню → Настройки → Личное оформление CSS.
   Сброс оформления: /settings?safe=1 → Стандартное. */
body { margin: 0; background: #f1f3f5; color: #212529; font-family: Arial, sans-serif; line-height: 1.5; }
a { color: #0758bc; text-decoration: underline; }
a:hover { color: #063e85; }
.header { background: #0d6efd; color: #fff; padding: 10px 12px; border-bottom: 3px solid #0a58ca; }
.header a { color: #fff; margin-right: 10px; }
.header .title { font-size: 20px; font-weight: bold; }
.container { background: transparent; max-width: 960px; margin: 0 auto; padding: 12px; }
.box { background: #fff; color: #212529; border: 1px solid #ced4da; border-radius: 6px; padding: 16px; margin-bottom: 16px; }
h2, h3 { color: #212529; line-height: 1.3; margin-top: 0; }
h2 { font-size: 23px; }
h3 { font-size: 18px; }
label { display: block; font-weight: bold; margin-top: 8px; margin-bottom: 5px; }
input, select, textarea { box-sizing: border-box; max-width: 100%; border: 1px solid #adb5bd; border-radius: 4px; background: #fff; color: #212529; padding: 8px; font: inherit; }
textarea { line-height: 1.45; }
input[type=submit], button, .button { box-sizing: border-box; display: inline-block; border: 1px solid #0d6efd; border-radius: 4px; background: #0d6efd; color: #fff; padding: 8px 12px; margin: 5px 3px 5px 0; font: inherit; text-decoration: none; cursor: pointer; max-width: 100%; white-space: normal; }
input[type=submit]:hover, button:hover, .button:hover { background: #0b5ed7; color: #fff; }
.danger, input.danger, button.danger { background: #b02a37; border-color: #b02a37; color: #fff; }
.small { color: #56616b; font-size: 0.88em; }
.badge { display: inline-block; background: #e9ecef; color: #343a40; border: 1px solid #ced4da; padding: 2px 6px; border-radius: 4px; }
.app-item { border-bottom: 1px solid #dee2e6; padding: 12px 0; }
.comment-card { background: #fff; border: 1px solid #ced4da; border-radius: 6px; padding: 12px; margin: 12px 0; }
.comment-heading { border-bottom: 1px solid #dee2e6; padding-bottom: 6px; }
.comment-heading .small { display: block; }
.comment-quote { margin: 10px 0; padding: 8px 10px; background: #eef4fc; color: #343a40; border-left: 3px solid #6ea8fe; }
.comment-quote p { margin: 4px 0; }
.comment-actions a { display: inline-block; margin-right: 10px; padding: 3px 0; }
.comment-tools { border-top: 1px solid #dee2e6; margin-top: 8px; padding-top: 6px; }
.pagination a, .pagination span, .tabs a { display: inline-block; color: #0758bc; background: #fff; border: 1px solid #ced4da; border-radius: 4px; padding: 5px 9px; margin: 3px 2px; }
.pagination .current { background: #0d6efd; color: #fff; }
.data-table { border-collapse: collapse; width: 100%; }
.data-table th { background: #e9ecef; color: #212529; }
.data-table th, .data-table td { border: 1px solid #ced4da; padding: 8px; }
.ok { background: #d1e7dd; color: #0f5132; border: 1px solid #a3cfbb; border-radius: 4px; padding: 10px; }
.err { background: #f8d7da; color: #842029; border: 1px solid #f1aeb5; border-radius: 4px; padding: 10px; }
.menu-list { margin: 0; padding-left: 20px; }
.menu-list li { padding: 7px 0; }
.stars { color: #916300; }
.log-view, .sql-preview, pre { background: #f8f9fa; color: #212529; border: 1px solid #dee2e6; padding: 10px; white-space: pre-wrap; word-wrap: break-word; }
.screens img { border: 1px solid #ced4da; border-radius: 3px; vertical-align: top; }
/* Размеры скриншотов выставляет сервер с сохранением пропорций. */
body.text-large { font-size: 18px; }
.density-compact .box { padding: 9px; margin-bottom: 10px; }
.density-compact .app-item, .density-compact .comment-card { padding: 7px; }
a:focus, button:focus, input:focus, select:focus, textarea:focus { outline: 2px solid #0d6efd; outline-offset: 2px; }
body.theme-dark { background: #15191d; color: #f1f3f5; }
.theme-dark .container { background: transparent; color: #f1f3f5; }
.theme-dark .header { background: #17375e; border-color: #38679e; }
.theme-dark .box, .theme-dark .comment-card { background: #212529; color: #f1f3f5; border-color: #58636e; }
.theme-dark h2, .theme-dark h3 { color: #f8f9fa; }
.theme-dark a { color: #9ac5ff; }
.theme-dark .header a { color: #fff; }
.theme-dark input, .theme-dark select, .theme-dark textarea { background: #171d23; color: #f8f9fa; border-color: #788694; }
.theme-dark input[type=submit], .theme-dark button, .theme-dark .button { background: #225cb0; border-color: #8bb9fa; color: #fff; }
.theme-dark .danger, .theme-dark input.danger, .theme-dark button.danger { background: #9b2939; border-color: #eb9ca8; color: #fff; }
.theme-dark .small { color: #bec9d3; }
.theme-dark .badge, .theme-dark .data-table th { background: #343d47; color: #f1f3f5; border-color: #657381; }
.theme-dark .comment-heading, .theme-dark .comment-tools, .theme-dark .app-item, .theme-dark .data-table td { border-color: #58636e; }
.theme-dark .comment-quote { background: #24364b; color: #eef4fc; border-color: #8bb9fa; }
.theme-dark .pagination a, .theme-dark .pagination span, .theme-dark .tabs a { background: #283746; color: #b6d4fe; border-color: #718292; }
.theme-dark .pagination .current { background: #225cb0; color: #fff; }
.theme-dark .ok { background: #173c31; color: #c5eddd; border-color: #699f88; }
.theme-dark .err { background: #48252c; color: #ffd5db; border-color: #bb7883; }
.theme-dark .stars { color: #ffda6a; }
.theme-dark .log-view, .theme-dark .sql-preview, .theme-dark pre { background: #171d23; color: #f1f3f5; border-color: #58636e; }
.theme-dark .screens img { border-color: #788694; }
@media (prefers-color-scheme: dark) {
 body.theme-system { background: #15191d; color: #f1f3f5; }
 .theme-system .container { background: transparent; color: #f1f3f5; }
 .theme-system .header { background: #17375e; border-color: #38679e; }
 .theme-system .box, .theme-system .comment-card { background: #212529; color: #f1f3f5; border-color: #58636e; }
 .theme-system h2, .theme-system h3 { color: #f8f9fa; }
 .theme-system a { color: #9ac5ff; }
 .theme-system .header a { color: #fff; }
 .theme-system input, .theme-system select, .theme-system textarea { background: #171d23; color: #f8f9fa; border-color: #788694; }
 .theme-system input[type=submit], .theme-system button, .theme-system .button { background: #225cb0; border-color: #8bb9fa; color: #fff; }
 .theme-system .danger, .theme-system input.danger, .theme-system button.danger { background: #9b2939; border-color: #eb9ca8; color: #fff; }
 .theme-system .small { color: #bec9d3; }
 .theme-system .badge, .theme-system .data-table th { background: #343d47; color: #f1f3f5; border-color: #657381; }
 .theme-system .comment-heading, .theme-system .comment-tools, .theme-system .app-item, .theme-system .data-table td { border-color: #58636e; }
 .theme-system .comment-quote { background: #24364b; color: #eef4fc; border-color: #8bb9fa; }
 .theme-system .pagination a, .theme-system .pagination span, .theme-system .tabs a { background: #283746; color: #b6d4fe; border-color: #718292; }
 .theme-system .pagination .current { background: #225cb0; color: #fff; }
 .theme-system .ok { background: #173c31; color: #c5eddd; border-color: #699f88; }
 .theme-system .err { background: #48252c; color: #ffd5db; border-color: #bb7883; }
 .theme-system .stars { color: #ffda6a; }
 .theme-system .log-view, .theme-system .sql-preview, .theme-system pre { background: #171d23; color: #f1f3f5; border-color: #58636e; }
 .theme-system .screens img { border-color: #788694; }
}
@media (max-width: 360px) {
 .container { padding: 4px; }
 .box { padding: 8px; margin-bottom: 8px; }
 .header { padding: 7px; }
 h2 { font-size: 19px; }
 h3 { font-size: 16px; }
 input, select, textarea { padding: 5px; }
 .comment-card { padding: 7px; }
 .comment-quote { padding: 6px; }
 button, .button, input[type=submit] { padding: 6px 8px; }
}
