/* ===== Тема «Windows 7» (Aero). Включается атрибутом data-skin="win7" на <html>.
   Остальные темы эти правила не затрагивают. ===== */
html[data-skin="win7"] {
  --font: "Segoe UI", Tahoma, "Noto Sans", Arial, sans-serif;
  --bg: #2f78b8;
  --mica: none;
  --card: #ffffff;
  --border: #d5dde9;
  --border-strong: #a7b4c4;
  --ctl-fill: #ffffff;
  --text: #1e1e1e;
  --muted: #5b6a7e;
  --accent: #3c7fb1;
  --accent-hover: #4a8fc3;
  --accent-press: #2f6c9b;
  --accent-bg: #dbe8f8;
  --accent-text: #1e395b;
  --r-sm: 3px; --r-md: 4px; --r-lg: 6px;
  --subtle: rgba(120,170,225,.22);
  --subtle-2: rgba(100,155,215,.38);
  --acrylic: rgba(222,236,252,.97);
  --stroke-surface: rgba(20,50,90,.7);
  --shadow-flyout: 3px 3px 10px rgba(0,0,0,.45);
  --shadow-card: none;
  --oc-head: #eef3f9; --oc-line: #d5dde9; --oc-sel: #cfe5fa; --oc-hover: #e3effb; --oc-grp: #f3f6fb;
  --glass: linear-gradient(180deg, rgba(190,218,246,.86), rgba(150,190,232,.82));
}
html[data-skin="win7"][data-aero-off] { --glass: linear-gradient(180deg, #bcd6f0, #a3c4e6); }

/* рабочий стол */
html[data-skin="win7"] body {
  background: radial-gradient(ellipse at 30% 15%, #6fb6e8 0, #2f78b8 38%, #14437a 72%, #0b2a52 100%) fixed;
  color: var(--text);
}
html[data-skin="win7"] body.has-taskbar { padding-bottom: 72px; }

/* окно с содержимым страницы */
html[data-skin="win7"] .container {
  background: var(--glass); border: 1px solid rgba(20,50,90,.75); border-radius: 8px 8px 0 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.55) inset, 0 8px 30px rgba(0,0,0,.5);
  padding: 0 7px 7px; margin: 14px auto 12px; max-width: calc(100vw - 40px);
}
html[data-skin="win7"] .container > .w7-title {
  height: 30px; display: flex; align-items: center; padding: 0 4px; font-size: 12.5px; font-weight: 600;
  color: #000; text-shadow: 0 0 8px #fff, 0 0 8px #fff, 0 0 3px #fff; user-select: none;
}
html[data-skin="win7"] .container > .card:first-of-type { margin-top: 0; }
html[data-skin="win7"] .card {
  border: 1px solid #6b7f97; border-radius: 0; background: #fff; box-shadow: none;
}
html[data-skin="win7"] .w7-title + .card, html[data-skin="win7"] .w7-title + .oc-tabs { margin-top: 0; }

/* кнопки */
html[data-skin="win7"] button {
  height: 26px; padding: 0 14px; font-size: 12px; font-weight: 400; color: #1b1b1b;
  background: linear-gradient(#f4f4f4 0, #ebebeb 49%, #dddddd 50%, #cfcfcf 100%);
  border: 1px solid #707070; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.85) inset; transition: none;
}
html[data-skin="win7"] button:hover {
  background: linear-gradient(#eaf6fd 0, #d9f0fc 49%, #bee6fd 50%, #a7d9f5 100%); border-color: #3c7fb1;
}
html[data-skin="win7"] button:active { background: linear-gradient(#c4e5f6, #98d1ef 49%, #68b3db 50%, #8bcbec); border-color: #2c628b; box-shadow: inset 0 0 4px rgba(0,0,0,.25); }
html[data-skin="win7"] button[type="submit"]:not(.secondary):not(.tb), html[data-skin="win7"] button.primary {
  background: linear-gradient(#eaf6fd 0, #d9f0fc 49%, #bee6fd 50%, #a7d9f5 100%); border-color: #3c7fb1;
}
html[data-skin="win7"] button.secondary { background: linear-gradient(#f4f4f4 0, #ebebeb 49%, #dddddd 50%, #cfcfcf 100%); border-color: #707070; color: #1b1b1b; }
html[data-skin="win7"] button.secondary:hover { background: linear-gradient(#eaf6fd 0, #d9f0fc 49%, #bee6fd 50%, #a7d9f5 100%); border-color: #3c7fb1; }
html[data-skin="win7"] button:disabled { opacity: .55; }

/* плитки-кнопки сверху страниц */
html[data-skin="win7"] button.tb {
  background: transparent; border: 1px solid transparent; box-shadow: none; color: #1e395b; border-radius: 3px;
}
html[data-skin="win7"] button.tb:hover {
  background: linear-gradient(#f4faff, #d7ecfb 48%, #bfe0f8 50%, #d9effc); border-color: #a8d0ee; box-shadow: 0 0 0 1px rgba(255,255,255,.8) inset;
}
html[data-skin="win7"] button.tb:active { background: linear-gradient(#dcebf9, #bcd9f2 48%, #a2c9ec 50%, #b6d4f0); border-color: #7da2ce; }
html[data-skin="win7"] button.tb:not(.secondary):not(:disabled) { background: transparent; }

/* поля */
html[data-skin="win7"] input, html[data-skin="win7"] select, html[data-skin="win7"] textarea {
  border: 1px solid #a7b4c4; border-top-color: #8896a8; border-bottom-color: #a7b4c4; border-radius: 2px; background: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,.08) inset; font-family: var(--font); font-size: 12px;
}
html[data-skin="win7"] input:focus, html[data-skin="win7"] select:focus, html[data-skin="win7"] textarea:focus {
  background: #fff; border-color: #3c7fb1; box-shadow: 0 0 3px rgba(60,127,177,.6);
}

/* таблицы */
html[data-skin="win7"] th, html[data-skin="win7"] .oc-grid th, html[data-skin="win7"] .table-scroll .oc-grid thead th {
  background: linear-gradient(#fff, #f1f5fa 48%, #e5ecf5 50%, #eef3f9); color: #1e395b; font-weight: 400;
  border: 1px solid #d5dde9; border-bottom-color: #b9c6d8; font-size: 12px;
}
html[data-skin="win7"] .oc-grid-wrap, html[data-skin="win7"] .table-scroll { border-color: #b9c6d8; }
html[data-skin="win7"] .oc-click tbody tr.sel td, html[data-skin="win7"] .oc-orders tr.sel td { background: linear-gradient(#e4f1fd, #cfe5fa); border-color: #b8d6f2; }
html[data-skin="win7"] .oc-click tbody tr:hover td { background: linear-gradient(#f4f9fe, #e3effb); }
html[data-skin="win7"] .oc-tabs a.on { background: #fff; border-color: #8aa0bb; color: #1e395b; }
html[data-skin="win7"] .oc-cmd { border-bottom-color: #d5dde9; }

/* статусы — «таблетки» */
html[data-skin="win7"] .badge { border-radius: 9px; border: 1px solid #9fb2cc; padding: 1px 9px; font-size: 11px; background: #e5ecf6; color: #2c4a73; }
html[data-skin="win7"] .badge.confirmed, html[data-skin="win7"] .badge.done { background: #e1f5d9; border-color: #8cc47a; color: #2a6a18; }
html[data-skin="win7"] .badge.new { background: #fff1c9; border-color: #e0b64a; color: #7a5600; }
html[data-skin="win7"] .badge.cancelled { background: #fde4e4; border-color: #e09a9a; color: #a01c1c; }
html[data-skin="win7"] .oc-st { border-radius: 9px; }

/* ===== панель задач ===== */
html[data-skin="win7"] .topbar {
  height: 54px; padding: 0 6px; border-top: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset;
}
html[data-skin="win7"] .topbar::before {
  background: linear-gradient(180deg, rgba(210,230,250,.55), rgba(50,90,140,.62) 45%, rgba(15,40,80,.82) 50%, rgba(40,75,120,.82));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
html[data-skin="win7"][data-aero-off] .topbar::before { background: linear-gradient(#3b66a0, #1d3f70 50%, #284f85); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-skin="win7"] .topbar .brand { height: 42px; padding: 0 8px 0 2px; margin-right: 6px; border-radius: 50%; }
html[data-skin="win7"] .topbar .brand span { display: none; }
html[data-skin="win7"] .topbar .brand img {
  width: 38px; height: 38px; margin-top: -6px; border: 1px solid #072a5a; background: radial-gradient(circle at 50% 30%, #bfe8ff 0, #4aa7e8 40%, #1b64b5 70%, #0c3c80);
  box-shadow: 0 0 8px rgba(120,200,255,.9), 0 0 0 2px rgba(255,255,255,.35) inset;
}
html[data-skin="win7"] .topbar .brand:hover { background: transparent; }
html[data-skin="win7"] .topbar .brand:hover img { box-shadow: 0 0 14px rgba(160,225,255,1), 0 0 0 2px rgba(255,255,255,.6) inset; }
html[data-skin="win7"] .admin-nav-link, html[data-skin="win7"] .admin-nav-group-btn {
  color: #fff; text-shadow: 0 0 3px #000; border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
  background: linear-gradient(rgba(255,255,255,.26), rgba(255,255,255,.05) 50%, rgba(255,255,255,.09)); box-shadow: none; height: 46px;
}
html[data-skin="win7"] .admin-nav-link:hover, html[data-skin="win7"] .admin-nav-group-btn:hover, html[data-skin="win7"] .admin-nav-group.open > .admin-nav-group-btn {
  background: linear-gradient(rgba(255,255,255,.45), rgba(190,225,255,.2) 50%, rgba(150,205,250,.3)); border-color: rgba(255,255,255,.65);
}
html[data-skin="win7"] .admin-nav-link.active, html[data-skin="win7"] .admin-nav-group.has-active > .admin-nav-group-btn {
  background: linear-gradient(rgba(255,255,255,.5), rgba(190,225,255,.25) 50%, rgba(150,205,250,.35)); border-color: rgba(255,255,255,.7); box-shadow: 0 0 6px rgba(140,210,255,.8) inset;
}
html[data-skin="win7"] .admin-nav-link.active::after, html[data-skin="win7"] .admin-nav-group.has-active > .admin-nav-group-btn::after { background: #9fd3ff; box-shadow: 0 0 4px #9fd3ff; }
html[data-skin="win7"] .tray-btn, html[data-skin="win7"] .clock-btn, html[data-skin="win7"] .user-menu summary { color: #fff; text-shadow: 0 0 3px #000; }
html[data-skin="win7"] .live-clock-time, html[data-skin="win7"] .live-clock-date, html[data-skin="win7"] .user-name { color: #fff; }
html[data-skin="win7"] .tray-btn:hover, html[data-skin="win7"] .clock-btn:hover { background: rgba(255,255,255,.22); }

/* выпадающие меню группы, пользователь, тема — «стекло» */
html[data-skin="win7"] .admin-nav-flyout, html[data-skin="win7"] .user-pop, html[data-skin="win7"] .nc-panel {
  background: linear-gradient(rgba(222,236,252,.96), rgba(176,204,238,.95)); border: 1px solid rgba(20,50,90,.85);
  border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 3px -2px 14px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #10243f;
}
html[data-skin="win7"] .admin-nav-flyout a { color: #10243f; border: 1px solid transparent; border-radius: 3px; }
html[data-skin="win7"] .admin-nav-flyout a:hover, html[data-skin="win7"] .admin-nav-flyout a.active, html[data-skin="win7"] .theme-opt:hover {
  border-color: #7da2ce; background: linear-gradient(#f6f9fd, #dbe8f8 48%, #c9ddf5 50%, #dde9f8);
}
html[data-skin="win7"] .nc { color: #10243f; }
html[data-skin="win7"] .nc-badge { background: #d9442a; }

/* контекстное меню по правой кнопке */
html[data-skin="win7"] .oc-menu {
  background: linear-gradient(90deg, #f1f1f1 0, #f1f1f1 28px, #fff 29px); border: 1px solid #979797; border-radius: 3px; padding: 2px;
  box-shadow: 3px 3px 6px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.9) inset;
}
html[data-skin="win7"] .oc-menu button {
  background: transparent; border: 1px solid transparent; border-radius: 2px; box-shadow: none; height: auto; padding: 4px 8px 4px 8px; font-size: 12px; color: #1b1b1b;
}
html[data-skin="win7"] .oc-menu button:hover { border-color: #7da2ce; background: linear-gradient(#f6f9fd, #dbe8f8 48%, #c9ddf5 50%, #dde9f8); }
html[data-skin="win7"] .oc-menu .oc-danger-i { color: #a01010; }
html[data-skin="win7"] .oc-menu-h { color: #666; border-bottom-color: #e0e0e0; }
html[data-skin="win7"] .oc-menu-sep { background: #e0e0e0; }

/* окна-диалоги */
html[data-skin="win7"] dialog.app-modal {
  background: var(--glass); border: 1px solid rgba(20,50,90,.85); border-radius: 8px; padding: 0 6px 6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 8px 30px rgba(0,0,0,.55);
}
html[data-skin="win7"] dialog.app-modal::backdrop { background: rgba(0,20,50,.3); }
html[data-skin="win7"] dialog.app-modal .modal-header {
  border: 0; padding: 0 2px; height: 30px; color: #000; text-shadow: 0 0 8px #fff, 0 0 8px #fff, 0 0 3px #fff; font-size: 12.5px;
}
html[data-skin="win7"] dialog.app-modal .modal-header h3, html[data-skin="win7"] dialog.app-modal .modal-header b { font-size: 12.5px; margin: 0; }
html[data-skin="win7"] dialog.app-modal .modal-close {
  width: 46px; height: 19px; padding: 0; margin-top: -10px; border: 1px solid #455a73; border-top: 0; border-radius: 0 0 5px 5px; color: #fff; font-size: 11px; font-weight: 700; text-shadow: none;
  background: linear-gradient(#e8a393, #d4614a 48%, #c22c14 50%, #df6a4d); box-shadow: none;
}
html[data-skin="win7"] dialog.app-modal .modal-close:hover { background: linear-gradient(#f4b7a8, #e8745c 48%, #d83a1e 50%, #f08060); }
html[data-skin="win7"] dialog.app-modal .modal-body { background: #fff; border: 1px solid #6b7f97; height: calc(94vh - 72px); padding: 14px; }
html[data-skin="win7"] dialog:not(.app-modal) { border: 1px solid rgba(20,50,90,.85); border-radius: 6px; background: #f0f0f0; box-shadow: 3px 3px 14px rgba(0,0,0,.5); }
html[data-skin="win7"] dialog:not(.app-modal)::backdrop { background: rgba(0,20,50,.3); }

/* справка */
html[data-skin="win7"] #help-drawer { background: #fff !important; border-left: 1px solid #6b7f97 !important; }

/* ===== меню «Пуск» ===== */
.w7-start[hidden] { display: none; }
.w7-start { position: fixed; left: 6px; bottom: 56px; z-index: 880; width: 480px; max-width: calc(100vw - 12px); display: none; gap: 6px; padding: 6px; border-radius: 8px 8px 0 0;
  background: linear-gradient(rgba(190,218,245,.94), rgba(120,165,215,.92)); border: 1px solid rgba(20,50,90,.85);
  box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 4px -2px 20px rgba(0,0,0,.55); }
html[data-skin="win7"] .w7-start:not([hidden]) { display: flex; }
.w7s-l { flex: 1.25; background: #fff; border: 1px solid #8aa0bb; border-radius: 4px; padding: 4px; display: flex; flex-direction: column; min-width: 0; }
.w7s-list { overflow-y: auto; max-height: min(66vh, 560px); }
.w7s-gh { font-size: 11px; color: #6a7d96; padding: 6px 8px 1px; font-weight: 600; text-transform: uppercase; }
.w7s-it { display: flex; align-items: center; gap: 8px; padding: 4px 8px; min-height: 28px; border: 1px solid transparent; border-radius: 3px; font-size: 12.5px; color: #1b1b1b; background: none; text-align: left; width: 100%; box-shadow: none; height: auto; }
.w7s-it i { font-style: normal; font-size: 17px; width: 22px; text-align: center; }
.w7s-it:hover, .w7s-it.on { border-color: #7da2ce; background: linear-gradient(#f6f9fd, #dbe8f8 48%, #c9ddf5 50%, #dde9f8); color: #1b1b1b; }
.w7s-it[hidden], .w7s-gh[hidden] { display: none; }
.w7s-search { padding: 6px 4px 2px; border-top: 1px solid #dfe6f0; margin-top: 4px; }
.w7s-search input { width: 100%; box-sizing: border-box; }
.w7s-r { flex: .85; background: linear-gradient(#2f5a8f, #1c3d68); border: 1px solid #0e2747; border-radius: 4px; padding: 6px 4px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.w7s-r .w7s-it { color: #fff; text-shadow: 0 0 2px #000; background: none; border-color: transparent; }
.w7s-r .w7s-it:hover { background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.1)); border-color: rgba(255,255,255,.55); color: #fff; }
.w7s-logo { display: flex; align-items: center; gap: 8px; padding: 2px 8px 8px; color: #fff; font-size: 14px; text-shadow: 0 0 3px #000; }
.w7s-logo img { width: 30px; height: 30px; border-radius: 50%; }
.w7s-out { margin: 10px 6px 4px; align-self: flex-start; padding: 4px 12px; border: 1px solid #707070; border-radius: 3px; background: linear-gradient(#f4f4f4, #ebebeb 49%, #ddd 50%, #cfcfcf); color: #1b1b1b; font-size: 12px; }
.w7s-out:hover { background: linear-gradient(#eaf6fd, #d9f0fc 49%, #bee6fd 50%, #a7d9f5); border-color: #3c7fb1; }
@media (max-width: 560px) { .w7s-r { display: none; } }

/* ===== окно «Настройки аккаунта» (во всех темах) ===== */
dialog.acc-dlg { width: min(620px, 96vw); height: auto; max-height: 90vh; }
dialog.acc-dlg .modal-body.acc-body { height: auto; max-height: calc(90vh - 70px); }
.acc-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border-strong); margin-bottom: 12px; }
.acc-tab { height: 30px; background: transparent !important; border: 1px solid transparent !important; border-bottom: 0 !important; border-radius: 3px 3px 0 0 !important; box-shadow: none !important; color: var(--text) !important; font-weight: 500; margin-bottom: -1px; }
.acc-tab.on { background: var(--card) !important; border-color: var(--border-strong) !important; font-weight: 600; }
.acc-h { font-weight: 600; margin: 4px 0 8px; }
.acc-themes { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-th { width: 122px; height: auto !important; padding: 6px !important; display: flex; flex-direction: column; gap: 6px; align-items: center; background: transparent !important; color: var(--text) !important; border: 1px solid transparent !important; box-shadow: none !important; font-size: 12px; }
.acc-th:hover { border-color: var(--border-strong) !important; background: var(--subtle) !important; }
.acc-th.sel { border-color: var(--accent) !important; background: var(--accent-bg) !important; }
.acc-th .pv { display: block; width: 100%; height: 58px; border: 1px solid #8a98ad; border-radius: 3px; overflow: hidden; padding-top: 6px; box-sizing: border-box; }
.acc-th .pv i { display: block; height: 10px; margin: 0 6px; border-radius: 2px; }
.acc-chk { display: block; margin: 12px 0 0; font-size: 13px; cursor: pointer; }
.acc-chk input { vertical-align: middle; margin-right: 6px; }
.acc-note { color: var(--muted); font-size: 12px; margin-top: 14px; }
html:not([data-skin="win7"]) #acc-aero-row { display: none; }

/* кнопки панели и меню «Пуск» не должны получать общий вид кнопок */
html[data-skin="win7"] .tray-btn, html[data-skin="win7"] .clock-btn, html[data-skin="win7"] .user-menu summary {
  background: transparent; border: 1px solid transparent; box-shadow: none; height: 40px; border-radius: 4px;
}
html[data-skin="win7"] .tray-btn:hover, html[data-skin="win7"] .clock-btn:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.5); }
html[data-skin="win7"] .tray-btn { width: 34px; }
html[data-skin="win7"] .w7s-r button.w7s-it, html[data-skin="win7"] .w7s-r a.w7s-it { background: none; border: 1px solid transparent; box-shadow: none; height: auto; color: #fff; }
html[data-skin="win7"] .w7s-r button.w7s-it:hover, html[data-skin="win7"] .w7s-r a.w7s-it:hover { background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.1)); border-color: rgba(255,255,255,.55); }
html[data-skin="win7"] .user-pop { bottom: 58px; }
html[data-skin="win7"] .admin-nav-flyout { bottom: 60px; }
html[data-skin="win7"] dialog.acc-dlg .modal-body { height: auto; }
.acc-th::before, .acc-th::after { display: none !important; }
/* плитки сохраняют свой размер (общий вид кнопок не должен их сжимать) */
html[data-skin="win7"] button.tb { height: 62px; padding: 4px 2px; }
html[data-skin="win7"] .modal-close, html[data-skin="win7"] .nc-icon-btn, html[data-skin="win7"] .emoji-btn { height: auto; }
html[data-skin="win7"] .emoji-btn { background: transparent; border: 1px solid transparent; box-shadow: none; padding: 2px 4px; }
html[data-skin="win7"] .emoji-btn.sel, html[data-skin="win7"] .emoji-btn:hover { border-color: #7da2ce; background: linear-gradient(#f6f9fd, #dbe8f8 48%, #c9ddf5 50%, #dde9f8); }

/* значки дока — по центру панели */
html[data-skin="win7"] .admin-nav { gap: 3px; }

/* меню «Пуск»: единая сетка значков и подписей */
html[data-skin="win7"] .w7s-it, html[data-skin="win7"] .w7s-r button.w7s-it, html[data-skin="win7"] .w7s-r a.w7s-it {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 4px 10px; min-height: 30px; box-sizing: border-box;
  font-size: 12.5px; font-weight: 400; line-height: 1.2; text-align: left; width: 100%;
}
html[data-skin="win7"] .w7s-it i { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; font-size: 17px; line-height: 1; }
html[data-skin="win7"] .w7s-it span { flex: 1; min-width: 0; text-align: left; }
html[data-skin="win7"] .w7s-logo img { flex: none; }

/* ===== окно приложения внутри окна на панели (страница открыта во фрейме) ===== */
html[data-win] .topbar, html[data-win] #nc, html[data-win] .ny-garland, html[data-win] #changelog-overlay, html[data-win] #w7-start, html[data-win] .w7-title, html[data-win] #acc-dlg ~ #help-overlay { display: none !important; }
html[data-win] body.has-taskbar { padding-bottom: 0; }
html[data-win][data-skin="win7"] body { background: #f4f7fb; }
html[data-win][data-skin="win7"] .container { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; max-width: none; }
html[data-win] .container { margin-top: 8px; }

/* ===== окна на панели ===== */
.w7-desk[hidden], .w7-wins[hidden] { display: none; }
.w7-desk { position: fixed; left: 0; right: 0; top: 0; bottom: 54px; z-index: 700; pointer-events: none; }
.w7-win {
  position: absolute; display: flex; flex-direction: column; pointer-events: auto; padding: 0 6px 6px; border-radius: 8px 8px 0 0;
  min-width: 380px; min-height: 240px; resize: both; overflow: hidden;
  background: linear-gradient(180deg, rgba(215,225,238,.86), rgba(190,205,225,.82)); border: 1px solid rgba(20,50,90,.75);
  box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 4px 14px rgba(0,0,0,.4);
}
.w7-win.act { background: var(--glass); box-shadow: 0 0 0 1px rgba(255,255,255,.55) inset, 0 8px 30px rgba(0,0,0,.55); }
.w7-win[hidden] { display: none; }
.w7-win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; resize: none; }
.w7-win .wt { height: 30px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 2px; font-size: 12.5px; color: #000; text-shadow: 0 0 8px #fff, 0 0 8px #fff, 0 0 3px #fff; user-select: none; }
.w7-win .wt b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w7-win .wc { display: flex; margin-top: -12px; }
.w7-win .wc button { width: 28px; height: 19px; padding: 0; border: 1px solid #455a73; border-top: 0; border-radius: 0; font-size: 11px; line-height: 17px; color: #222; text-shadow: none; box-shadow: none; background: linear-gradient(#e9f0f8 0, #cfdcec 48%, #b6c8de 50%, #d3e0ef); }
.w7-win .wc button:first-child { border-radius: 0 0 0 5px; }
.w7-win .wc button:hover { background: linear-gradient(#f3f8fd, #d9e8f7 48%, #c3d6ec 50%, #dce9f6); }
.w7-win .wc button.x { width: 46px; border-radius: 0 0 5px 0; color: #fff; font-weight: 700; background: linear-gradient(#e8a393, #d4614a 48%, #c22c14 50%, #df6a4d); }
.w7-win .wc button.x:hover { background: linear-gradient(#f4b7a8, #e8745c 48%, #d83a1e 50%, #f08060); }
.w7-win iframe { flex: 1; width: 100%; border: 1px solid #6b7f97; background: #fff; min-height: 0; }
.w7-shield { display: none; position: absolute; left: 0; right: 0; top: 30px; bottom: 0; }
.w7-desk.drag .w7-shield { display: block; }
.w7-wins { display: flex; align-items: center; gap: 3px; flex: 0 1 auto; min-width: 0; margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.35); overflow: hidden; }
.w7-wins:empty { display: none; }
.w7-wb { position: relative; display: flex; align-items: center; gap: 6px; flex: 0 1 150px; min-width: 70px; height: 42px; padding: 0 8px; margin: 0; color: #fff; text-shadow: 0 0 3px #000; font-size: 12px; font-weight: 400;
  border: 1px solid rgba(255,255,255,.28); border-radius: 4px; box-shadow: none; text-align: left;
  background: linear-gradient(rgba(255,255,255,.26), rgba(255,255,255,.05) 50%, rgba(255,255,255,.09)); }
.w7-wb em { font-style: normal; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w7-wb span { font-size: 17px; flex: none; }
.w7-wb:hover { background: linear-gradient(rgba(255,255,255,.45), rgba(190,225,255,.2) 50%, rgba(150,205,250,.3)); border-color: rgba(255,255,255,.65); }
.w7-wb.act { background: linear-gradient(rgba(255,255,255,.5), rgba(190,225,255,.25) 50%, rgba(150,205,250,.35)); border-color: rgba(255,255,255,.7); box-shadow: 0 0 6px rgba(140,210,255,.8) inset; }
.w7-wb.min { opacity: .72; }
.w7-wb::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 2px; height: 3px; border-radius: 2px; background: #9fd3ff; box-shadow: 0 0 4px #9fd3ff; }
html:not([data-skin="win7"]) #acc-wins-row { display: none; }
html[data-skin="win7"] .tray { margin-left: auto; }

/* кнопки-«ссылки» (напр. фамилия водителя в «Сменах и ЗП») не должны выглядеть как обычные кнопки */
html[data-skin="win7"] .driver-name-link, html[data-skin="win7"] .btn-link {
  height: auto; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; color: inherit; font: inherit;
  text-align: inherit; line-height: 1.25; white-space: normal;
}
html[data-skin="win7"] .driver-name-link { text-decoration: underline dotted; text-underline-offset: 2px; }
html[data-skin="win7"] .driver-name-link:hover, html[data-skin="win7"] .btn-link:hover { background: none; color: #0b5ea8; border: 0; }
/* небольшие окна (sm) — по высоте содержимого, без пустого места внизу */
html[data-skin="win7"] dialog.app-modal.sm .modal-body { height: auto; }
