/* Тема «Минимализм» (2026-11-05) в духе старой почты (Roundcube, оформление Larry): чёрная шапка, серый фон,
   белые панели, голубое выделение, список писем столбцами. Без свечения, размытия, теней и анимации: это ещё и самая лёгкая тема. */
html[data-theme="minimal"] { --bg:#eaeaea; --gold:#017cb4; --gold2:#333; --dim:#666; --ink:#333; --ink2:#333; --ink3:#555; --dim2:#888;
  --cyan:#017cb4; --violet:#017cb4; --blue:#0069a6; --line:#ddd; --line2:#c8c8c8; --field:#fff; --pop:#fff; --viewer:#e9e9e9; --docbg:#f0f0f0;
  --topbg:#1c1c1c; --sidebg:#f0f0f0; --listbg:#fff; --readbg:#fff; --card:#f9f9f9; --veil:rgba(255,255,255,.9);
  --sans:"Lucida Grande",Verdana,Arial,Helvetica,sans-serif; }
html[data-theme="minimal"] body.brand { background: var(--bg); }
html[data-theme="minimal"] body.brand:before, html[data-theme="minimal"] #aurora { display: none; }
html[data-theme="minimal"] body.app { font-size: 13px; }
html[data-theme="minimal"] *, html[data-theme="minimal"] *:before, html[data-theme="minimal"] *:after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html[data-theme="minimal"] body.app.entering .layout, html[data-theme="minimal"] body.app.entering .top { animation: none; }

/* шапка */
html[data-theme="minimal"] .top { background: #1c1c1c; border-bottom: 1px solid #383838; box-shadow: none; color: #ccc; }
html[data-theme="minimal"] .top .ico, html[data-theme="minimal"] .top button { color: #ccc; }
html[data-theme="minimal"] .logo span { background: none; color: #fff; -webkit-text-fill-color: #fff; font-family: var(--sans); }
html[data-theme="minimal"] .logo small { color: #aaa; -webkit-text-fill-color: #aaa; }
html[data-theme="minimal"] .search input { background: #333; border: 1px solid #444; border-radius: 2px; color: #fff; box-shadow: none; }
html[data-theme="minimal"] .search input::placeholder { color: #aaa; }
html[data-theme="minimal"] .search input:focus { background: #fff; color: #333; border-color: #49b3d2; box-shadow: none; }

/* папки */
html[data-theme="minimal"] .side { border-right: 1px solid var(--line2); }
html[data-theme="minimal"] .compose { background: #f9f9f9; color: #333; border: 1px solid #c8c8c8; border-radius: 2px; box-shadow: none; font-weight: 700; text-shadow: none; }
html[data-theme="minimal"] .compose:hover { background: #d9ecf4; border-color: #49b3d2; transform: none; box-shadow: none; }
html[data-theme="minimal"] .folders li { border-radius: 0; color: #333; }
html[data-theme="minimal"] .folders li:hover { background: #e4e4e4; }
html[data-theme="minimal"] .folders li.on { background: #d9ecf4; color: #004458; font-weight: 700; box-shadow: none; }
html[data-theme="minimal"] .folders li.over { background: #d9ecf4 !important; outline: 1px solid #49b3d2 !important; }
html[data-theme="minimal"] .sideHead { color: #666; }
html[data-theme="minimal"] .qBar { background: #ddd; } html[data-theme="minimal"] .qBar i { background: #49b3d2; box-shadow: none; }

/* список писем */
html[data-theme="minimal"] .list { border-right: 1px solid var(--line2); }
html[data-theme="minimal"] .listHead { background: #f9f9f9; padding: 8px 12px; }
html[data-theme="minimal"] .listHead b { font-size: 15px; color: #333; }
html[data-theme="minimal"] .it { padding: 7px 12px; border-bottom: 1px solid #eaeaea; }
html[data-theme="minimal"] .it:hover { background: #f3f8fb; }
html[data-theme="minimal"] .it.on { background: #d9ecf4; box-shadow: none; }
html[data-theme="minimal"] .it.sel { background: #e8f3f8; }
html[data-theme="minimal"] .it.unread:before { display: none; }
html[data-theme="minimal"] .it.unread .who, html[data-theme="minimal"] .it.unread .subj { color: #004458; font-weight: 700; }
html[data-theme="minimal"] .it .snip { font-size: 12px; }
html[data-theme="minimal"] mark { background: #ffe08a; color: inherit; }

/* столбцы, как в старой почте: только если списку хватает ширины. Узкий список и телефон остаются в две строки */
.listCols { display: none; }
html[data-theme="minimal"] .list { container-type: inline-size; }
@container (min-width: 620px) {
  html[data-theme="minimal"] .listCols { display: grid; grid-template-columns: 20px 118px 1fr minmax(150px, 26%); column-gap: 10px; padding: 5px 12px; background: #f0f0f0; border-bottom: 1px solid #c8c8c8; color: #666; font-size: 12px; font-weight: 700; }
  /* тема и начало текста делят столбец: тема целиком, остаток серым */
  html[data-theme="minimal"] .it { grid-template-columns: 20px 118px fit-content(62%) minmax(0, 1fr) minmax(150px, 26%); column-gap: 10px; align-items: center; padding: 5px 12px; }
  html[data-theme="minimal"] .it .pick { grid-column: 1; grid-row: 1; }
  html[data-theme="minimal"] .it .when { grid-column: 2; grid-row: 1; white-space: nowrap; overflow: hidden; }
  html[data-theme="minimal"] .it .subj { grid-column: 3; grid-row: 1; }
  html[data-theme="minimal"] .it .snip { grid-column: 4; grid-row: 1; }
  html[data-theme="minimal"] .it .who { grid-column: 5; grid-row: 1; }
}

/* письмо и кнопки */
html[data-theme="minimal"] .btn, html[data-theme="minimal"] .tool { background: #f9f9f9; color: #333; border: 1px solid #c8c8c8; border-radius: 2px; box-shadow: none; }
html[data-theme="minimal"] .btn:hover, html[data-theme="minimal"] .tool:hover { background: #d9ecf4; border-color: #49b3d2; box-shadow: none; transform: none; }
html[data-theme="minimal"] .tool.on { background: #d9ecf4; border-color: #49b3d2; }
html[data-theme="minimal"] .btn.danger, html[data-theme="minimal"] .cErr, html[data-theme="minimal"] .atts button { color: #c0321a; }
html[data-theme="minimal"] .ghost, html[data-theme="minimal"] .toast, html[data-theme="minimal"] .vText { color: var(--ink); }
html[data-theme="minimal"] .body blockquote { color: var(--ink3); }
html[data-theme="minimal"] .modal { background: rgba(0,0,0,.35); }
html[data-theme="minimal"] .sheet, html[data-theme="minimal"] .menuPop, html[data-theme="minimal"] #musicMenu, html[data-theme="minimal"] .laterPop { background: #fff; border: 1px solid #aaa; border-radius: 2px; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
html[data-theme="minimal"] .sheetHead { background: #f0f0f0; }
html[data-theme="minimal"] .vTabs button.on, html[data-theme="minimal"] .newPw { background: #d9ecf4; border-color: #49b3d2; }
html[data-theme="minimal"] .themePick button.on { border-color: #49b3d2; box-shadow: 0 0 0 1px #49b3d2; }
html[data-theme="minimal"] .apAdd input:focus { border-color: #49b3d2; box-shadow: none; }
html[data-theme="minimal"] .themeAnim, html[data-theme="minimal"] .themeAnim * { transition: none !important; }
.themePick .t-minimal i { background: linear-gradient(#1c1c1c 0 26%, #f0f0f0 26% 45%, #fff 45%); border: 1px solid #c8c8c8; }

/* страница входа */
html[data-theme="minimal"] body.login, html[data-theme="minimal"] body.granted { background: #eaeaea; }
html[data-theme="minimal"] label, html[data-theme="minimal"] .rule { color: #555; }
html[data-theme="minimal"] body.login input { color: #333; background: #fff; border: 1px solid #c8c8c8; border-radius: 2px; box-shadow: none; caret-color: #333; }
html[data-theme="minimal"] .hint2, html[data-theme="minimal"] .rules, html[data-theme="minimal"] footer { color: #666; }
html[data-theme="minimal"] .pwEye { color: #017cb4; background: #f0f0f0; border-color: #c8c8c8; }

/* без золота, кругов и теней */
html[data-theme="minimal"] .themeBtn, html[data-theme="minimal"] #musicBtn, html[data-theme="minimal"] .meBtn { background: #333; border: 1px solid #444; border-radius: 2px; color: #ddd; box-shadow: none; }
html[data-theme="minimal"] .themeBtn:hover, html[data-theme="minimal"] #musicBtn:hover, html[data-theme="minimal"] .meBtn:hover { background: #444; border-color: #666; }
html[data-theme="minimal"] .meName { color: #ddd; }
html[data-theme="minimal"] #musicBtn.off { color: #888; }
html[data-theme="minimal"] .ava { background: #6a939f; color: #fff; border-radius: 2px; box-shadow: none; }
html[data-theme="minimal"] .laySw { border-color: #c8c8c8; border-radius: 2px; }
html[data-theme="minimal"] .laySw button.on { background: #d9ecf4; color: #004458; }
html[data-theme="minimal"] .send, html[data-theme="minimal"] .fab { background: #017cb4; color: #fff; border: 1px solid #006ca4; border-radius: 2px; box-shadow: none; text-shadow: none; }
html[data-theme="minimal"] .send:hover, html[data-theme="minimal"] .fab:hover { background: #006ca4; box-shadow: none; transform: none; }
html[data-theme="minimal"] .bookBtn { background: #f9f9f9; border-radius: 2px; color: #333; }
html[data-theme="minimal"] .bookBtn:hover { background: #d9ecf4; border-color: #49b3d2; }
html[data-theme="minimal"] .mHead { box-shadow: none; background: #fff; border-bottom: 1px solid #ddd; }
html[data-theme="minimal"] .mHead h2 { font-size: 18px; }
html[data-theme="minimal"] .msg { border-radius: 2px; background: #fff; box-shadow: none; }
html[data-theme="minimal"] body.login h1 { background: none; color: #333; -webkit-text-fill-color: #333; font-family: var(--sans); font-weight: 700; }
html[data-theme="minimal"] .seal { width: 100%; height: auto; padding: 10px; border-radius: 2px; background: #017cb4; color: #fff; box-shadow: none; animation: none; text-shadow: none; }
html[data-theme="minimal"] .seal:hover { background: #006ca4; box-shadow: none; transform: none; }

/* выбор языка в цветах темы */
html[data-theme="minimal"] #langBtn { background: #f9f9f9; color: #333; border: 1px solid #c8c8c8; border-radius: 2px; box-shadow: none; }
html[data-theme="minimal"] #langBtn:hover { background: #d9ecf4; border-color: #49b3d2; }
html[data-theme="minimal"] #langMenu { background: #fff; border: 1px solid #aaa; border-radius: 2px; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
html[data-theme="minimal"] #langMenu button { color: #333; border-radius: 2px; }
html[data-theme="minimal"] #langMenu button:hover { background: #f3f8fb; }
html[data-theme="minimal"] #langMenu button.on { background: #d9ecf4; border-color: #49b3d2; color: #004458; }

/* пункты меню: тёмный текст на белом */
html[data-theme="minimal"] .menuPop button, html[data-theme="minimal"] .menuPop a, html[data-theme="minimal"] #musicMenu button, html[data-theme="minimal"] .laterPop button { color: #333; border-radius: 0; }
html[data-theme="minimal"] .menuPop button:hover, html[data-theme="minimal"] #musicMenu button:hover, html[data-theme="minimal"] .laterPop button:hover { background: #d9ecf4; color: #004458; }
html[data-theme="minimal"] .menuPop button.on, html[data-theme="minimal"] #musicMenu button.on { background: #d9ecf4; color: #004458; }
html[data-theme="minimal"] .meAddr { color: #666; }
html[data-theme="minimal"] .it .snip { color: #666; }
html[data-theme="minimal"] #musicBtn.off { color: #aaa; }

/* «Важные»: красный флажок в теме «Минимализм» */
html[data-theme="minimal"] .it .marks.flag,
html[data-theme="minimal"] .btn.act[data-a="star"].on { color: #c0321a; }
html[data-theme="minimal"] .btn.act[data-a="star"].on { border-color: #c0321a; }
