/*
 * FHC 視窗教室 － 佈景主題
 * 外觀「參考」各時代視窗介面的配色與操作方式，全部以 CSS 自行繪製，沒有使用任何官方圖片。
 */

/* ======================================================
   經典灰（9x／2000 風格）
   ====================================================== */
.theme-classic {
  --font: Tahoma, "PMingLiU", "新細明體", "Microsoft JhengHei", sans-serif;
  --fs: 12px;
  --face: #c0c0c0;
  --win-bg: #fff;
  --win-border: #c0c0c0;
  --title-h: 22px;
  --title-bg: linear-gradient(90deg, #000080, #1084d0);
  --title-bg-off: linear-gradient(90deg, #808080, #b5b5b5);
  --title-fg: #fff;
  --tb-h: 32px;
  --tb-bg: #c0c0c0;
  --tb-fg: #000;
  --btn-bg: #c0c0c0;
  --btn-border: transparent;
  --menu-bg: #c0c0c0;
  --menu-hover: #000080;
  --sel-bg: #000080;
  --accent: #000080;
  --shadow: none;
  --raise: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff;
  --sink: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
}
.theme-classic .win { padding: 3px; border: 0; box-shadow: var(--raise); }
.theme-classic .win.is-max { padding: 2px; }
.theme-classic .win-title { padding: 0 2px 0 3px; }
.theme-classic .win-body { box-shadow: inset 1px 1px #808080; }
.theme-classic .win-btn { width: 16px; height: 14px; background: #c0c0c0; box-shadow: var(--raise); color: #000; border: 0; }
.theme-classic .win-btn:active { box-shadow: var(--sink); }
.theme-classic .win-close { margin-left: 2px; }
.theme-classic .win-min span { left: 4px; right: 6px; bottom: 3px; }
.theme-classic .win-max span { left: 3px; top: 2px; right: 3px; bottom: 3px; }
.theme-classic .win-close span::before, .theme-classic .win-close span::after { width: 8px; margin-left: -4px; height: 1.5px; }
.theme-classic .btn, .theme-classic .tab, .theme-classic .calc-key { border: 0; border-radius: 0; box-shadow: var(--raise); }
.theme-classic .btn:active:not(:disabled), .theme-classic .pt-tool.on { box-shadow: var(--sink); filter: none; }
.theme-classic .btn-primary { outline: 1px dotted #000; outline-offset: -5px; }
.theme-classic input[type=text], .theme-classic input[type=search], .theme-classic select, .theme-classic textarea { border: 0; border-radius: 0; box-shadow: var(--sink); padding: 4px 5px; }
.theme-classic .ctx { border: 0; box-shadow: var(--raise); padding: 3px; }
.theme-classic .ctx-sep { background: #808080; border-bottom: 1px solid #fff; }
.theme-classic .app-menu:hover { background: #000080; color: #fff; }
.theme-classic #taskbar { box-shadow: inset 0 1px #dfdfdf, inset 0 2px #fff; padding: 3px 2px 2px; }
.theme-classic .tb-start { height: 100%; padding: 0 6px 0 4px; box-shadow: var(--raise); }
.theme-classic .tb-start.pressed { box-shadow: var(--sink); }
.theme-classic .tb-start-text { font-size: 13px; }
.theme-classic .tb-quick { border-left: 1px solid #808080; box-shadow: inset 1px 0 #fff; margin-left: 3px; padding-left: 5px; }
.theme-classic .tb-qbtn:hover { background: none; border-color: transparent; box-shadow: var(--raise); }
.theme-classic .tb-task { height: 100%; border: 0; border-radius: 0; background: #c0c0c0; box-shadow: var(--raise); }
.theme-classic .tb-task.active { box-shadow: var(--sink); background: repeating-conic-gradient(#fff 0 25%, #c0c0c0 0 50%) 0 0 / 2px 2px; font-weight: bold; }
.theme-classic .tb-tray { box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; margin-left: 4px; }
.theme-classic .tb-clock { flex-direction: row; gap: 0; }
.theme-classic .tb-date { display: none; }
.theme-classic .tb-showdesk { display: none; }
.theme-classic #start-menu { box-shadow: var(--raise); padding: 3px; width: 400px; }
.theme-classic .sm-banner { display: block; position: relative; flex: none; width: 26px; overflow: hidden; background: linear-gradient(#1084d0, #000080); color: #c0c0c0; }
.theme-classic .sm-banner span { position: absolute; left: 0; bottom: 8px; width: 26px; display: flex; flex-direction: column; align-items: center; font-size: 15px; line-height: 1.15; }
.theme-classic .sm-banner i { font-style: normal; }
.theme-classic .sm-banner b + i { margin-top: 4px; }
.theme-classic .sm-banner b { color: #fff; }
.theme-classic .sm-head, .theme-classic .sm-sec-title { display: none; }
.theme-classic .sm-search { margin: 4px; }
.theme-classic .sm-cols { overflow: hidden; }
.theme-classic .sm-left { overflow: auto; padding: 0; }
.theme-classic .sm-item .ico svg { width: 20px; height: 20px; }
.theme-classic .sm-sec + .sm-sec { border-top: 1px solid #808080; box-shadow: inset 0 1px #fff; padding-top: 2px; margin-top: 2px; }
.theme-classic .sm-right { width: 150px; padding: 0 0 0 2px; border-left: 1px solid #808080; box-shadow: inset 1px 0 #fff; }
.theme-classic .sm-item, .theme-classic .sm-place { border-radius: 0; padding: 2px 6px; }
.theme-classic .sm-item:hover, .theme-classic .sm-place:hover { background: #000080; color: #fff; }
.theme-classic .sm-place-sep { background: #808080; }
.theme-classic .sm-foot { flex-direction: column; align-items: stretch; padding: 0; border-top: 1px solid #808080; box-shadow: inset 0 1px #fff; }
.theme-classic .sm-pw { border-radius: 0; padding: 4px 6px; }
.theme-classic .sm-pw:hover { background: #000080; color: #fff; }
.theme-classic #calendar { border: 0; box-shadow: var(--raise); border-radius: 0; }
.theme-classic .tabs { border-bottom-color: #808080; }
.theme-classic .tab.on { background: #c0c0c0; }
.theme-classic .dicon.sel .dicon-label { background: #000080; }
.theme-classic .dicon.sel { background: none; border-color: transparent; }
.theme-classic .dicon.sel .ico { filter: brightness(.6) sepia(1) hue-rotate(190deg) saturate(4); }

/* ======================================================
   晴空藍（XP 風格）
   ====================================================== */
.theme-xp {
  --font: Tahoma, "Microsoft JhengHei", "PingFang TC", sans-serif;
  --fs: 12px;
  --face: #ece9d8;
  --win-bg: #fff;
  --win-border: #0831d9;
  --title-h: 30px;
  --title-bg: linear-gradient(#0a5fe8, #3c8cf8 8%, #0a5fe8 40%, #0753e0 88%, #0446c8);
  --title-bg-off: linear-gradient(#7c9be6, #a5bff3 10%, #7a96df 50%, #6b88d4);
  --tb-h: 36px;
  --tb-bg: linear-gradient(#1f5ed8, #3a83f0 4%, #2b6be0 10%, #2463da 90%, #1a48b3);
  --btn-bg: linear-gradient(#fff, #ecebe6 85%, #d6d0c5);
  --btn-border: #003c74;
  --menu-hover: #316ac5;
  --accent: #316ac5;
  --radius: 8px 8px 0 0;
  --shadow: 2px 4px 14px rgba(0, 0, 0, .4);
}
.theme-xp .win { border-width: 0 3px 3px; border-style: solid; border-color: #0831d9; background: var(--face); }
.theme-xp .win:not(.win-active) { border-color: #7a96df; }
.theme-xp .win-title { border-radius: 7px 7px 0 0; margin: 0 -3px; padding: 0 6px 0 8px; text-shadow: 1px 1px #0b2a78; font-size: 13px; }
.theme-xp .win.is-max .win-title { border-radius: 0; }
.theme-xp .win.is-max { border-width: 0; }
.theme-xp .win-btn { width: 22px; height: 22px; border: 1px solid #fff; border-radius: 3px; color: #fff;
  background: radial-gradient(circle at 80% 85%, #2a6af0, #4d8cf7 60%, #7fb0ff); }
.theme-xp .win-btn:hover { filter: brightness(1.15); }
.theme-xp .win-close { background: radial-gradient(circle at 80% 85%, #c5340b, #e35a2c 60%, #f2916d); }
.theme-xp .win-close span::before, .theme-xp .win-close span::after { width: 12px; height: 2.5px; }
.theme-xp .win:not(.win-active) .win-btn { opacity: .7; }
.theme-xp .btn { border-radius: 3px; }
.theme-xp .btn:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #f8b636; filter: none; }
.theme-xp .tb-start {
  padding: 0 22px 0 10px; margin-right: 6px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(#3b9c3b, #5ec95e 10%, #3a9e3a 50%, #2f8a2f 92%, #1f6e1f);
  box-shadow: inset -2px 0 3px rgba(0,0,0,.3), 2px 0 3px rgba(0,0,0,.25);
  text-shadow: 1px 1px 2px #133d13;
}
.theme-xp .tb-start:hover, .theme-xp .tb-start.pressed { filter: brightness(1.1); }
.theme-xp .tb-start-text { font-style: italic; font-size: 17px; }
.theme-xp .tb-start .ico { filter: drop-shadow(1px 1px 1px rgba(0,0,0,.4)); }
.theme-xp .tb-task { background: linear-gradient(#5a9cf8, #3c81f3 15%, #3577ec); border-color: #1b4ab0; box-shadow: inset 1px 1px rgba(255,255,255,.35); }
.theme-xp .tb-task.active { background: linear-gradient(#1a47aa, #1e52b7); box-shadow: inset 1px 1px 2px rgba(0,0,0,.4); }
.theme-xp .tb-tray { background: linear-gradient(#0c8be6, #19b9f3 5%, #0f9ced 15%, #1195ec 90%, #0a74cc); border-left: 1px solid #0a4bb5; box-shadow: inset 1px 0 #36c4ff; }
.theme-xp .tb-date { display: none; }
.theme-xp .tb-showdesk { display: none; }
.theme-xp #start-menu { flex-direction: column; width: 420px; border-radius: 8px 8px 0 0; overflow: hidden; border: 1px solid #0b3fb0; }
.theme-xp .sm-head { background: linear-gradient(#1868ce, #3b8af0 12%, #1a64c8 70%, #1453b3); color: #fff; padding: 8px 10px; text-shadow: 1px 1px 2px #052a6e; }
.theme-xp .sm-head .ico { border: 2px solid #fff; border-radius: 4px; background: #fff; }
.theme-xp .sm-search { margin: 6px 8px; }
.theme-xp .sm-cols { border-top: 2px solid #f6a43f; }
.theme-xp .sm-left { background: #fff; }
.theme-xp .sm-right { background: #d3e5fa; border-left: 1px solid #95bdee; }
.theme-xp .sm-place { font-weight: bold; color: #0a246a; }
.theme-xp .sm-place:hover { color: #fff; }
.theme-xp .sm-sec-title { color: #0a246a; }
.theme-xp .sm-sec + .sm-sec { border-top: 1px solid #ddd; }
.theme-xp .sm-foot { background: linear-gradient(#1868ce, #3b8af0 12%, #1a64c8 70%, #1453b3); color: #fff; }
.theme-xp .sm-foot .ico { border-radius: 4px; }
.theme-xp #calendar { border-radius: 6px; border-color: #0b3fb0; }
.theme-xp .tabs { background: var(--face); }

/* ======================================================
   透明玻璃（7 風格）
   ====================================================== */
.theme-glass {
  --font: "Segoe UI", "Microsoft JhengHei", "PingFang TC", sans-serif;
  --fs: 13px;
  --face: #f0f0f0;
  --win-bg: #fff;
  --title-h: 30px;
  --title-bg: transparent;
  --title-bg-off: transparent;
  --title-fg: #000;
  --tb-h: 40px;
  --tb-bg: linear-gradient(rgba(70, 90, 120, .55), rgba(20, 30, 50, .7));
  --btn-bg: linear-gradient(#f2f2f2, #ebebeb 50%, #dddddd 51%, #cfcfcf);
  --btn-border: #707070;
  --menu-bg: #f5f6f7;
  --menu-hover: #d6e9fd;
  --menu-hover-fg: #000;
  --sel-bg: #cce8ff;
  --sel-fg: #000;
  --accent: #2a72c5;
  --radius: 6px;
  --shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 6px 26px rgba(0, 0, 0, .55);
}
.theme-glass .win {
  padding: 0 7px 7px;
  background: linear-gradient(rgba(180, 210, 240, .6), rgba(140, 175, 215, .55));
  border: 1px solid rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
}
.theme-glass .win:not(.win-active) { background: rgba(210, 222, 235, .55); }
.theme-glass .win.is-max { padding: 0; }
.theme-glass .win-body { border: 1px solid rgba(0,0,0,.45); }
.theme-glass .win-title { padding: 0 0 0 4px; }
.theme-glass .win-title-text { font-weight: normal; text-shadow: 0 0 8px #fff, 0 0 12px #fff, 0 0 4px #fff; }
.theme-glass .win-btns { gap: 0; align-self: flex-start; border: 1px solid rgba(0,0,0,.5); border-top: 0; border-radius: 0 0 5px 5px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.theme-glass .win-btn { width: 28px; height: 19px; color: #fff; background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.2) 50%, rgba(0,0,0,.05) 51%, rgba(255,255,255,.3)); border: 0; border-right: 1px solid rgba(0,0,0,.35); filter: drop-shadow(0 0 1px #000); }
.theme-glass .win-btn:hover { background: linear-gradient(#bfe6ff, #5bbfff 50%, #2aa0f0 51%, #8ed6ff); }
.theme-glass .win-close { width: 46px; border-right: 0; background: linear-gradient(#e8a493, #d0705a 50%, #c03a1e 51%, #d97b62); }
.theme-glass .win-close:hover { background: linear-gradient(#ffb5a3, #f0553a 50%, #e02f0d 51%, #ff9a7a); }
.theme-glass .win-min span { bottom: 5px; }
.theme-glass .win-close span::before, .theme-glass .win-close span::after { width: 11px; height: 2.5px; }
.theme-glass .btn { border-radius: 3px; }
.theme-glass .btn:hover:not(:disabled) { background: linear-gradient(#eaf6fd, #d9f0fc 50%, #bee6fd 51%, #a7d9f5); border-color: #3c7fb1; filter: none; }
.theme-glass #taskbar { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.35); }
.theme-glass .tb-start { width: 54px; padding: 0; justify-content: center; }
.theme-glass .tb-start .ico {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.75), rgba(255,255,255,0) 50%), radial-gradient(circle at 50% 100%, #6ed1ff, #1a6ad8 55%, #0b2e6e);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 6px rgba(120,200,255,.6);
}
.theme-glass .tb-start:hover .ico, .theme-glass .tb-start.pressed .ico { box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 14px #9fe0ff; }
.theme-glass .tb-start-text { display: none; }
.theme-glass .tb-task { flex-basis: 60px; justify-content: center; background: linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.05)); border-color: rgba(255,255,255,.3); }
.theme-glass .tb-task .ico svg { width: 24px; height: 24px; }
.theme-glass .tb-task-text { display: none; }
.theme-glass .tb-task.active { background: linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.15)); box-shadow: 0 0 8px rgba(255,255,255,.4) inset; }
.theme-glass .tb-task.min { opacity: .8; }
.theme-glass .tb-showdesk { width: 14px; border-left-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
#start-menu { transition: none; }
.theme-glass #start-menu { flex-direction: row; width: 440px; border-radius: 6px 6px 0 0; padding: 8px; background: linear-gradient(rgba(60,90,130,.75), rgba(20,35,60,.85)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(0,0,0,.6); }
.theme-glass .sm-main { display: grid; grid-template-columns: 1fr 160px; grid-template-rows: 1fr auto; gap: 0 8px; }
.theme-glass .sm-head { display: none; }
.theme-glass .sm-cols { display: contents; }
.theme-glass .sm-left { grid-column: 1; grid-row: 1; background: #fff; border-radius: 4px 4px 0 0; border: 1px solid rgba(0,0,0,.4); border-bottom: 0; }
.theme-glass .sm-search { grid-column: 1; grid-row: 2; align-self: start; margin: 0; border-radius: 0 0 4px 4px; border: 1px solid rgba(0,0,0,.4); padding: 6px; }
.theme-glass .sm-right { grid-column: 2; grid-row: 1; width: auto; color: #fff; }
.theme-glass .sm-place:hover { background: linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,.1)); color: #fff; }
.theme-glass .sm-place-sep { background: rgba(255,255,255,.25); }
.theme-glass .sm-foot { grid-column: 2; grid-row: 2; color: #fff; flex-wrap: wrap; justify-content: flex-start; padding: 0; }
.theme-glass .sm-pw { padding: 3px 5px; font-size: 12px; }
.theme-glass .sm-item:hover { background: linear-gradient(#f2f9fd, #d6ecfb); color: #000; box-shadow: 0 0 0 1px #7da2ce inset; }
.theme-glass #calendar { background: rgba(245,248,252,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.theme-glass .ctx { border-radius: 4px; background: #f5f6f7; }

/* ======================================================
   現代圓角（10／11 風格）
   ====================================================== */
.theme-modern {
  --font: "Segoe UI Variable Text", "Segoe UI", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  --fs: 13px;
  --face: #f3f3f3;
  --win-bg: #fff;
  --win-border: rgba(0, 0, 0, .18);
  --title-h: 34px;
  --title-bg: #f3f3f3;
  --title-bg-off: #fafafa;
  --title-fg: #1b1b1b;
  --tb-h: 46px;
  --tb-bg: rgba(238, 242, 248, .82);
  --tb-fg: #1b1b1b;
  --btn-bg: #fbfbfb;
  --btn-border: rgba(0,0,0,.14);
  --menu-bg: rgba(249, 249, 249, .96);
  --menu-hover: rgba(0, 0, 0, .06);
  --menu-hover-fg: #000;
  --sel-bg: #cfe4fa;
  --sel-fg: #000;
  --accent: #005fb8;
  --radius: 8px;
  --shadow: 0 10px 34px rgba(0, 0, 0, .28), 0 0 1px rgba(0,0,0,.4);
}
.theme-modern .win { overflow: hidden; }
.theme-modern .win-title { padding: 0 0 0 10px; }
.theme-modern .win-title-text { font-weight: normal; font-size: 12px; }
.theme-modern .win:not(.win-active) .win-title-text { color: #999; }
.theme-modern .win-btns { gap: 0; align-self: stretch; }
.theme-modern .win-btn { width: 46px; height: 100%; color: #1b1b1b; border: 0; }
.theme-modern .win-btn:hover { background: rgba(0,0,0,.06); }
.theme-modern .win-close:hover { background: #c42b1c; color: #fff; }
.theme-modern .win-min span { left: 18px; right: 18px; bottom: 50%; height: 1px; }
.theme-modern .win-max span { left: 18px; right: 18px; top: 50%; bottom: auto; height: 10px; margin-top: -5px; border-width: 1px; border-radius: 2px; }
.theme-modern .is-max .win-max span { left: 19px; right: 17px; }
.theme-modern .is-max .win-max span::before { border-width: 1px; border-radius: 2px; left: -3px; top: 2px; background: transparent; }
.theme-modern .win-close span::before, .theme-modern .win-close span::after { width: 12px; height: 1px; }
.theme-modern .win-body { border-top: 1px solid rgba(0,0,0,.06); }
.theme-modern .btn { border-radius: 4px; border-bottom-color: rgba(0,0,0,.25); }
.theme-modern .btn-primary { background: var(--accent); color: #fff; outline: 0; border-color: #004c93; }
.theme-modern input[type=text], .theme-modern input[type=search], .theme-modern select { border-radius: 4px; border: 1px solid rgba(0,0,0,.15); border-bottom: 2px solid var(--accent); }
.theme-modern .ctx { border-radius: 8px; border: 1px solid rgba(0,0,0,.12); padding: 4px; }
.theme-modern .ctx-item { border-radius: 4px; padding: 6px 20px 6px 8px; }
.theme-modern #taskbar { -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); border-top: 1px solid rgba(0,0,0,.08); }
.theme-modern .tb-center { justify-content: center; gap: 2px; }
.theme-modern .tb-tasks { flex: 0 1 auto; }
.theme-modern .tb-start, .theme-modern .tb-qbtn, .theme-modern .tb-task {
  width: 40px; height: 40px; flex: none; padding: 0; justify-content: center; border-radius: 6px; border: 0; background: transparent;
}
.theme-modern .tb-start { margin: 0; }
.theme-modern .tb-start .ico svg { width: 24px; height: 24px; }
.theme-modern .tb-qbtn .ico svg, .theme-modern .tb-task .ico svg { width: 24px; height: 24px; }
.theme-modern .tb-start:hover, .theme-modern .tb-qbtn:hover, .theme-modern .tb-task:hover, .theme-modern .tb-start.pressed { background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.theme-modern .tb-start-text, .theme-modern .tb-task-text { display: none; }
.theme-modern .tb-task { position: relative; }
.theme-modern .tb-task::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 6px; height: 3px; margin-left: -3px; border-radius: 2px; background: #8a8a8a; }
.theme-modern .tb-task.active { background: rgba(255,255,255,.7); }
.theme-modern .tb-task.active::after { width: 16px; margin-left: -8px; background: var(--accent); }
.theme-modern .tb-qbtn { border: 0; }
.theme-modern .tb-tray-btn:hover, .theme-modern .tb-clock:hover { background: rgba(255,255,255,.7); border-radius: 4px; }
.theme-modern .tb-clock { align-items: flex-end; padding: 0 8px; }
.theme-modern .tb-showdesk { border-left-color: rgba(0,0,0,.15); }
.theme-modern #start-menu {
  left: 50%; transform: translateX(-50%); bottom: calc(var(--tb-h) + 12px);
  width: 620px; max-width: calc(100% - 16px); border-radius: 8px; border: 1px solid rgba(0,0,0,.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); background: rgba(243, 243, 243, .9);
}
.theme-modern .sm-head { display: none; }
.theme-modern .sm-search { margin: 20px 28px 8px; padding: 8px 14px; border-radius: 20px; border: 1px solid rgba(0,0,0,.1); border-bottom: 2px solid var(--accent); background: #fff; }
.theme-modern .sm-right { display: none; }
.theme-modern .sm-left { padding: 6px 20px 10px; }
.theme-modern .sm-sec-title { font-size: 13px; color: #1b1b1b; padding: 10px 8px 6px; }
.theme-modern .sm-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.theme-modern .sm-item { flex-direction: column; gap: 6px; padding: 10px 2px; text-align: center; font-size: 12px; border-radius: 6px; }
.theme-modern .sm-item .ico svg { width: 32px; height: 32px; }
.theme-modern .sm-item-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.theme-modern .sm-item:hover { background: rgba(255,255,255,.8); }
.theme-modern #start-menu.searching .sm-grid { grid-template-columns: 1fr; }
.theme-modern #start-menu.searching .sm-item { flex-direction: row; text-align: left; padding: 6px 10px; }
.theme-modern .sm-foot { justify-content: flex-end; padding: 10px 28px; background: rgba(0,0,0,.035); border-top: 1px solid rgba(0,0,0,.07); }
.theme-modern .sm-foot-user { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.theme-modern .sm-pw > span:not(.ico) { display: none; }
.theme-modern .sm-pw { padding: 8px; border-radius: 6px; }
.theme-modern .sm-pw:hover { background: rgba(0,0,0,.06); }
.theme-modern #calendar { border-radius: 8px; border-color: rgba(0,0,0,.12); bottom: calc(var(--tb-h) + 12px); right: 12px; }
.theme-modern .tabs { border-bottom-color: rgba(0,0,0,.12); }
.theme-modern .tab { border-color: rgba(0,0,0,.12); }
.theme-modern .app-toolbar, .theme-modern .app-menubar, .theme-modern .app-status { border-color: rgba(0,0,0,.07); }
.theme-modern .dicon { border-radius: 4px; }

@media (max-width: 699px) {
  .theme-modern .sm-grid { grid-template-columns: repeat(4, 1fr); }
  .theme-modern .tb-center { justify-content: flex-start; }
  .theme-glass #start-menu { width: auto; }
  .theme-glass .sm-main { grid-template-columns: 1fr; }
  .theme-glass .sm-foot { grid-column: 1; grid-row: 3; padding-top: 6px; }
  .theme-xp #start-menu, .theme-classic #start-menu { width: auto; }
  .theme-classic .sm-right { display: none; }
}
