body
{
   background-color: #0B111E;
   color: #000000;
   font-family: Arial;
   font-weight: normal;
   font-size: 16px;
   line-height: 1.1875;
   margin: 0;
   padding: 0;
}
#wb_icon_webbuilder
{
   vertical-align: top;
}
#icon_webbuilder
{
   border: 0px solid #000000;
   border-radius: 10px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_browser
{
   vertical-align: top;
}
#icon_browser
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_word
{
   vertical-align: top;
}
#icon_word
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_excel
{
   vertical-align: top;
}
#icon_excel
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_weather
{
   vertical-align: top;
}
#icon_weather
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_notepad
{
   vertical-align: top;
}
#icon_notepad
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_calc
{
   vertical-align: top;
}
#icon_calc
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_paint
{
   vertical-align: top;
}
#icon_paint
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_explorer
{
   vertical-align: top;
}
#icon_explorer
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_photos
{
   vertical-align: top;
}
#icon_photos
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_terminal
{
   vertical-align: top;
}
#icon_terminal
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_media
{
   vertical-align: top;
}
#icon_media
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_settings
{
   vertical-align: top;
}
#icon_settings
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_taskmanager
{
   vertical-align: top;
}
#icon_taskmanager
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_stickynotes
{
   vertical-align: top;
}
#icon_stickynotes
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_clock
{
   vertical-align: top;
}
#icon_clock
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_icon_minesweeper
{
   vertical-align: top;
}
#icon_minesweeper
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_user_avatar
{
   vertical-align: top;
}
#user_avatar
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#wb_user_name
{
   background-color: transparent;
   background-image: none;
   border: 0px solid #000000;
   border-radius: 0px;
   margin: 0;
   padding: 0;
   text-align: left;
}
#user_name
{
   color: #FFFFFF;
   font-family: Arial;
   font-weight: bold;
   font-style: normal;
   font-size: 32px;
   margin: 0;
   text-align: left;
   text-transform: none;
}
#wb_start_logo
{
   vertical-align: top;
}
#start_logo
{
   border: 0px solid #000000;
   border-radius: 0px;
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
}
#desktop_wallpapers_gallery
{
   box-sizing: border-box;
   font-size: 0;
   width: 100%;
   height: 100%;
   display: block;
   margin: 0;
}
#desktop_wallpapers_gallery .thumbnails
{
   margin: 0;
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
}
#desktop_wallpapers_gallery .thumbnail
{
   position: relative;
   min-height: 1px;
   box-sizing: border-box;
   float: none;
   width: auto;
   padding: 3px 3px 3px 3px;
   text-align: center;
   vertical-align: top;
}
#desktop_wallpapers_gallery .thumbnail img
{
   border: 0px solid #DEE2E6;
   display: block;
   width: 100%;
   height: auto;
   max-width: 100%;
   box-sizing: border-box;
   border-radius: 0px;
}
#app_notepad_doc
{
   border: 1px solid #DEE2E6;
   border-radius: 4px;
   background-color: #FFFFFF;
   background-image: none;
   color: #212529;
   font-family: Arial;
   font-weight: normal;
   font-style: normal;
   font-size: 16px;
   text-align: left;
   padding: 4px 4px 4px 4px;
   margin: 0;
   overflow: auto;
   resize: none;
}
#app_notepad_doc:focus
{
   border-color: #66AFE9;
   box-shadow: inset 0px 1px 1px rgba(0,0,0,0.075), 0px 0px 8px rgba(102,175,233,0.60);
   outline: 0;
}
#app_stickynotes_memo
{
   border: 1px solid #DEE2E6;
   border-radius: 4px;
   background-color: #FFFFFF;
   background-image: none;
   color: #212529;
   font-family: Arial;
   font-weight: normal;
   font-style: normal;
   font-size: 16px;
   text-align: left;
   padding: 4px 4px 4px 4px;
   margin: 0;
   overflow: auto;
   resize: none;
}
#app_stickynotes_memo:focus
{
   border-color: #66AFE9;
   box-shadow: inset 0px 1px 1px rgba(0,0,0,0.075), 0px 0px 8px rgba(102,175,233,0.60);
   outline: 0;
}
#app_word_doc
{
   border: 1px solid #DEE2E6;
   border-radius: 4px;
   background-color: #FFFFFF;
   background-image: none;
   color: #212529;
   font-family: Arial;
   font-weight: normal;
   font-style: normal;
   font-size: 16px;
   text-align: left;
   padding: 4px 4px 4px 4px;
   margin: 0;
   overflow: auto;
   resize: none;
}
#app_word_doc:focus
{
   border-color: #66AFE9;
   box-shadow: inset 0px 1px 1px rgba(0,0,0,0.075), 0px 0px 8px rgba(102,175,233,0.60);
   outline: 0;
}
#wb_pc_name
{
   background-color: transparent;
   background-image: none;
   border: 0px solid #000000;
   border-radius: 0px;
   margin: 0;
   padding: 0;
   text-align: left;
}
#pc_name
{
   color: #FFFFFF;
   font-family: Arial;
   font-weight: bold;
   font-style: normal;
   font-size: 27px;
   margin: 0;
   text-align: left;
   text-transform: none;
}
:root {
  --win-accent: #0078D4;
  --win-accent-hover: #1084D9;
  --win-accent-active: #006CBE;
  --win-accent-subtle: rgba(0, 120, 212, 0.18);

  /* Dark Theme Default */
  --win-window-bg: #20242E;
  --win-window-border: rgba(255, 255, 255, 0.18);
  --win-window-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.4);
  --win-window-text: #F8FAFC;
  --win-window-subtext: #94A3B8;

  --win-titlebar-bg: #181B22;
  --win-titlebar-text: #F8FAFC;
  --win-titlebar-border: rgba(255, 255, 255, 0.08);

  --win-taskbar-bg: rgba(24, 27, 34, 0.88);
  --win-taskbar-border: rgba(255, 255, 255, 0.12);
  --win-taskbar-text: #E2E8F0;

  --win-flyout-bg: rgba(28, 33, 44, 0.94);
  --win-flyout-border: rgba(255, 255, 255, 0.15);
  --win-flyout-text: #F8FAFC;
  --win-flyout-subtext: #94A3B8;

  --win-card-bg: #1A1D24;
  --win-card-border: rgba(255, 255, 255, 0.08);
  --win-card-text: #F8FAFC;

  --win-section-bg: #1A1D24;
  --win-section-border: rgba(255, 255, 255, 0.08);
}

body.win-light-theme {
  /* Fluent Light Theme */
  --win-window-bg: #FFFFFF;
  --win-window-border: rgba(0, 0, 0, 0.12);
  --win-window-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 0 1px rgba(0, 0, 0, 0.22);
  --win-window-text: #0F172A;
  --win-window-subtext: #64748B;

  --win-titlebar-bg: #F1F5F9;
  --win-titlebar-text: #0F172A;
  --win-titlebar-border: #E2E8F0;

  --win-taskbar-bg: rgba(241, 245, 249, 0.92);
  --win-taskbar-border: rgba(0, 0, 0, 0.1);
  --win-taskbar-text: #0F172A;

  --win-flyout-bg: rgba(255, 255, 255, 0.96);
  --win-flyout-border: rgba(0, 0, 0, 0.12);
  --win-flyout-text: #0F172A;
  --win-flyout-subtext: #64748B;

  --win-card-bg: #F8FAFC;
  --win-card-border: #E2E8F0;
  --win-card-text: #0F172A;

  --win-section-bg: #F8FAFC;
  --win-section-border: #E2E8F0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #0B111E;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  overflow: hidden;
  user-select: none;
}

.win-desktop-root {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('images/win11_bloom_blue.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease;
  overflow: hidden;
}

.win-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999990;
  transition: background-color 0.4s ease, opacity 0.4s ease;
}
.win-screen-overlay.night-active {
  background-color: rgba(245, 158, 11, 0.18);
  mix-blend-mode: multiply;
}

.win-desktop-icons {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
  max-height: calc(100vh - 70px);
  z-index: 10;
}

.win-desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 78px;
  padding: 4px 2px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.win-desktop-icon:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.win-desktop-icon.selected {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.win-icon-custom-img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  margin-bottom: 3px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.win-icon-img {
  font-size: 28px;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.win-icon-label {
  color: #FFFFFF;
  font-size: 10.5px;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.8);
  word-break: break-word;
  line-height: 1.2;
}

/* START MENU & LIVE SEARCH STYLES */
.win-start-menu {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.95);
  width: 560px;
  min-height: 480px;
  background: rgba(28, 33, 44, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 120, 212, 0.15);
  padding: 22px;
  z-index: 999998;
  display: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-direction: column;
}

.win-start-menu.open {
  display: flex !important;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.start-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 20, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 8px 14px;
  margin-bottom: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.start-search-bar:focus-within {
  border-color: #0078D4;
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.3);
}

.start-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.start-search-clear {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
}
.start-search-clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.start-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #F8FAFC;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 12px;
}
.start-section-title button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.start-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.start-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.start-app-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.start-app-item span {
  font-size: 24px;
  margin-bottom: 4px;
}
.start-app-item small {
  color: #E2E8F0;
  font-size: 11px;
}

.start-rec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.start-rec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.start-rec-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.start-rec-item span {
  font-size: 20px;
}
.start-rec-item div {
  display: flex;
  flex-direction: column;
}
.start-rec-item strong {
  color: #F8FAFC;
  font-size: 11.5px;
}
.start-rec-item small {
  color: #94A3B8;
  font-size: 10px;
}

/* Live Search Results UI */
.start-search-results {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 15px;
  overflow-y: auto;
  max-height: 330px;
}

.search-best-match-card {
  background: rgba(0, 120, 212, 0.18);
  border: 1px solid #0078D4;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}
.search-best-match-card:hover {
  background: rgba(0, 120, 212, 0.32);
}

.search-match-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-match-left .s-icon {
  font-size: 28px;
}
.search-match-left div {
  display: flex;
  flex-direction: column;
}
.search-match-left strong {
  color: #FFFFFF;
  font-size: 13px;
}
.search-match-left small {
  color: #38BDF8;
  font-size: 10.5px;
}

.search-badge-open {
  background: #0078D4;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.search-section-label {
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.start-search-sublist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-result-row:hover {
  background: rgba(255, 255, 255, 0.12);
}
.search-result-row .r-icon {
  font-size: 18px;
}
.search-result-row div {
  display: flex;
  flex-direction: column;
}
.search-result-row strong {
  color: #F8FAFC;
  font-size: 11.5px;
}
.search-result-row small {
  color: #94A3B8;
  font-size: 9.5px;
}

.search-no-results {
  text-align: center;
  padding: 25px 15px;
  color: #94A3B8;
  font-size: 12px;
}

.start-user-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}
.start-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F8FAFC;
  font-size: 12px;
}
.user-avatar {
  width: 28px;
  height: 28px;
  background: #0078D4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.start-power-btn {
  background: transparent;
  border: none;
  color: #E2E8F0;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}
.start-power-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

/* BROWSER WINDOW STYLES */
.win-titlebar.browser-tb {
  background: var(--win-titlebar-bg, #181B22);
  height: 38px;
  padding-left: 6px;
  border-bottom: 1px solid var(--win-titlebar-border, rgba(255, 255, 255, 0.08));
}

.browser-tabs-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.browser-tab {
  background: var(--win-window-bg, #20242E);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--win-window-text, #F8FAFC);
  max-width: 220px;
  border-top: 2px solid var(--win-accent, #0078D4);
  border-left: 1px solid var(--win-titlebar-border, rgba(255, 255, 255, 0.08));
  border-right: 1px solid var(--win-titlebar-border, rgba(255, 255, 255, 0.08));
}

.browser-tab strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.browser-tab small {
  cursor: pointer;
  color: var(--win-window-subtext, #94A3B8);
  font-size: 10px;
  padding: 2px;
  border-radius: 4px;
}
.browser-tab small:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

.browser-new-tab {
  background: transparent;
  border: none;
  color: var(--win-window-subtext, #94A3B8);
  font-size: 15px;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.browser-new-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--win-window-text, #F8FAFC);
}

.browser-nav-bar {
  background: var(--win-card-bg, #1A1D24);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--win-card-border, rgba(255, 255, 255, 0.08));
}

.b-nav-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  color: var(--win-window-text, #F8FAFC);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.b-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}
.b-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.browser-url-bar {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--win-window-border, rgba(255, 255, 255, 0.15));
  border-radius: 20px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.browser-url-bar:focus-within {
  border-color: var(--win-accent, #0078D4);
  box-shadow: 0 0 0 1px var(--win-accent, #0078D4);
}

.url-lock {
  font-size: 11px;
}

#browser-url-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--win-window-text, #F8FAFC);
  outline: none;
  min-width: 0;
}
#browser-url-input::placeholder {
  color: var(--win-window-subtext, #94A3B8);
  font-size: 11.5px;
}

.b-go-btn {
  background: transparent;
  border: none;
  color: var(--win-accent, #0078D4);
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.b-go-btn:hover {
  background: var(--win-accent-subtle, rgba(0, 120, 212, 0.18));
}

.url-badge {
  background: var(--win-accent-subtle, rgba(0, 120, 212, 0.18));
  color: var(--win-accent, #0078D4);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
}

.browser-tools {
  display: flex;
  gap: 4px;
}

.b-mode-btn {
  background: var(--win-card-bg, #1A1D24);
  border: 1px solid var(--win-card-border, rgba(255, 255, 255, 0.12));
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--win-window-text, #F8FAFC);
  transition: all 0.15s ease;
}
.b-mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.b-mode-btn.active {
  background: var(--win-accent, #0078D4) !important;
  color: #FFFFFF !important;
  border-color: var(--win-accent, #0078D4) !important;
}
.b-popout-btn {
  font-weight: bold;
}
.b-popout-btn:hover {
  color: var(--win-accent, #0078D4);
  border-color: var(--win-accent, #0078D4);
}

.browser-bookmarks-bar {
  background: var(--win-section-bg, #1A1D24);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--win-section-border, rgba(255, 255, 255, 0.06));
  overflow-x: auto;
  scrollbar-width: none;
}
.browser-bookmarks-bar::-webkit-scrollbar {
  display: none;
}

.b-bm-item {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--win-window-text, #F8FAFC);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease;
}
.b-bm-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.b-bm-item span {
  font-size: 12px;
}

.browser-viewport-wrap {
  flex: 1;
  background: #2D3342;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 12px;
  min-height: 0;
}

.browser-viewport-canvas {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  overflow-y: auto;
  position: relative;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
}

.browser-viewport-canvas.mobile-mode {
  width: 375px !important;
  height: 100% !important;
  border: 8px solid #1F2937;
  border-radius: 24px;
}

#browser-render-area {
  position: relative;
  width: 100%;
  min-height: 100%;
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #111827;
  user-select: text;
}

.browser-notice-bar {
  background: rgba(30, 41, 59, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #E2E8F0;
}
.browser-notice-text {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-notice-btn {
  background: var(--win-accent, #0078D4);
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10.5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.browser-notice-btn:hover {
  filter: brightness(1.15);
}

.start-portal-hero {
  text-align: center;
  margin-bottom: 20px;
}
.start-portal-logo {
  font-size: 40px;
  margin-bottom: 6px;
}
.start-portal-title {
  margin: 0 0 6px 0;
  font-size: 18px;
  color: #0F172A;
  font-weight: 600;
}
.start-portal-sub {
  margin: 0;
  font-size: 12px;
  color: #64748B;
}

.start-portal-search {
  width: 100%;
  max-width: 520px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 24px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.start-portal-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: #0F172A;
}
.start-portal-search button {
  background: var(--win-accent, #0078D4);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 11.5px;
  cursor: pointer;
}

.start-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 620px;
}
.start-portal-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.start-portal-card:hover {
  transform: translateY(-2px);
  border-color: var(--win-accent, #0078D4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.start-portal-card .card-icon {
  font-size: 22px;
  margin-bottom: 2px;
}
.start-portal-card strong {
  font-size: 12.5px;
  color: #0F172A;
}
.start-portal-card small {
  font-size: 10.5px;
  color: #64748B;
}

.browser-statusbar {
  height: 22px;
  background: var(--win-titlebar-bg, #181B22);
  border-top: 1px solid var(--win-titlebar-border, rgba(255, 255, 255, 0.08));
  color: var(--win-window-subtext, #94A3B8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  font-size: 10.5px;
}

/* Light Theme Browser Overrides */
body.win-light-theme .win-titlebar.browser-tb {
  background: #F1F5F9;
  border-bottom-color: #E2E8F0;
}
body.win-light-theme .browser-tab {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #E2E8F0;
  border-top-color: var(--win-accent, #0078D4);
}
body.win-light-theme .browser-new-tab {
  color: #64748B;
}
body.win-light-theme .browser-new-tab:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #0F172A;
}
body.win-light-theme .browser-nav-bar {
  background: #FFFFFF;
  border-bottom-color: #E2E8F0;
}
body.win-light-theme .b-nav-btn {
  color: #334155;
}
body.win-light-theme .b-nav-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.06);
}
body.win-light-theme .browser-url-bar {
  background: #F8FAFC;
  border-color: #CBD5E1;
}
body.win-light-theme #browser-url-input {
  color: #0F172A;
}
body.win-light-theme .b-mode-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}
body.win-light-theme .b-mode-btn:hover {
  background: #F1F5F9;
}
body.win-light-theme .browser-bookmarks-bar {
  background: #F8FAFC;
  border-bottom-color: #E2E8F0;
}
body.win-light-theme .b-bm-item {
  color: #334155;
}
body.win-light-theme .b-bm-item:hover {
  background: rgba(0, 0, 0, 0.06);
}
body.win-light-theme .browser-viewport-wrap {
  background: #E2E8F0;
}
body.win-light-theme .browser-notice-bar {
  background: #EFF6FF;
  border-bottom-color: #BFDBFE;
  color: #1E3A8A;
}
body.win-light-theme .browser-statusbar {
  background: #F1F5F9;
  border-top-color: #E2E8F0;
  color: #64748B;
}

/* WYSIWYG Web Builder & Apps Styles */
.win-titlebar.wb-tb { background: #0078D4; }
.wb-tb-logo { width: 16px; height: 16px; border-radius: 3px; }
.wb-ribbon { background: #F3F4F6; border-bottom: 1px solid #D1D5DB; display: flex; flex-direction: column; }
.wb-ribbon-tabs { display: flex; background: #E5E7EB; padding: 2px 6px 0 6px; gap: 2px; border-bottom: 1px solid #D1D5DB; }
.wb-tab { padding: 4px 12px; font-size: 11px; color: #374151; cursor: pointer; border-top-left-radius: 3px; border-top-right-radius: 3px; }
.wb-tab:hover { background: #EDE9FE; color: #0078D4; }
.wb-tab.active { background: #F3F4F6; color: #0078D4; font-weight: 600; border: 1px solid #D1D5DB; border-bottom: 1px solid #F3F4F6; }
.wb-ribbon-content { padding: 6px 10px; display: flex; align-items: center; gap: 8px; }
.wb-ribbon-group { display: flex; align-items: center; gap: 4px; }
.wb-ribbon-divider { width: 1px; height: 32px; background: #D1D5DB; margin: 0 4px; }
.wb-r-btn { background: #FFFFFF; border: 1px solid #D1D5DB; border-radius: 4px; padding: 3px 8px; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: all 0.15s ease; min-width: 44px; }
.wb-r-btn:hover { background: #E5E7EB; border-color: #9CA3AF; }
.wb-r-btn.highlight { background: #0078D4; color: #FFFFFF; border-color: #005A9E; }
.wb-r-btn.highlight small { color: #FFFFFF; }
.wb-r-btn span { font-size: 13px; font-weight: bold; }
.wb-r-btn small { font-size: 9px; color: #4B5563; }
.wb-ide-body { display: flex; flex: 1; background: #E5E7EB; overflow: hidden; }
.wb-toolbox-panel { width: 150px; background: #FFFFFF; border-right: 1px solid #D1D5DB; display: flex; flex-direction: column; }
.wb-panel-header { background: #F3F4F6; border-bottom: 1px solid #D1D5DB; padding: 4px 8px; font-size: 11px; font-weight: 600; color: #374151; }
.wb-toolbox-scroll { flex: 1; overflow-y: auto; padding: 4px 0; }
.wb-tool-category { font-size: 10px; font-weight: bold; color: #6B7280; padding: 4px 8px; background: #F9FAFB; border-bottom: 1px solid #F3F4F6; }
.wb-tool-item { padding: 5px 10px; font-size: 11px; color: #1F2937; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.wb-tool-item:hover { background: #E0F2FE; color: #0284C7; }
.wb-tool-item span { font-size: 11px; min-width: 16px; }

.wb-canvas-container { flex: 1; background: #9CA3AF; display: flex; flex-direction: column; overflow: auto; }
.wb-ruler-h { height: 18px; background: #F3F4F6; border-bottom: 1px solid #D1D5DB; display: flex; align-items: center; padding-left: 18px; font-size: 9px; color: #6B7280; gap: 45px; user-select: none; }
.wb-canvas-work-row { display: flex; flex: 1; }
.wb-ruler-v { width: 18px; background: #F3F4F6; border-right: 1px solid #D1D5DB; display: flex; flex-direction: column; align-items: center; font-size: 9px; color: #6B7280; gap: 45px; user-select: none; padding-top: 4px; }
.wb-canvas-sheet { position: relative; width: 720px; min-height: 480px; background: #FFFFFF; margin: 15px auto; box-shadow: 0 4px 15px rgba(0,0,0,0.25); overflow: hidden; user-select: none; transition: background-color 0.2s ease; }
.wb-canvas-sheet.grid-active { background-image: linear-gradient(to right, #E5E7EB 1px, transparent 1px), linear-gradient(to bottom, #E5E7EB 1px, transparent 1px); background-size: 20px 20px; }

/* ALL VISUAL OBJECTS ON CANVAS (ROCK-SOLID SELECTION & DRAG) */
.wb-elem {
  position: absolute;
  cursor: move !important;
  border: 1px dashed transparent;
  padding: 6px;
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: none;
  z-index: 10;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  pointer-events: auto !important;
}
.wb-elem * {
  pointer-events: none !important;
}
.wb-elem:hover {
  border-color: #93C5FD;
}
.wb-elem.selected {
  border: 1px dashed #0078D4 !important;
  box-shadow: 0 0 0 1px #0078D4;
}

/* Specific Element Type Styles */
.wb-heading-elem h1 { margin: 0; font-size: 26px; color: #111827; font-family: inherit; }
.wb-text-elem p { margin: 0; font-size: 13px; color: #4B5563; line-height: 1.4; }
.wb-button-elem button, .wb-btn-elem button { background: #0078D4; color: #FFFFFF; border: none; padding: 8px 16px; border-radius: 4px; font-weight: 600; font-size: 12px; cursor: move; }
.wb-card-elem { background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 8px; padding: 14px; width: 240px; }
.wb-card-elem strong { color: #111827; font-size: 13px; display: block; margin-bottom: 4px; }
.wb-card-elem p { color: #6B7280; font-size: 11px; margin: 0; }
.wb-image-elem, .wb-img-elem { background: #E0F2FE; border: 1px solid #BAE6FD; border-radius: 6px; width: 240px; height: 110px; display: flex; align-items: center; justify-content: center; color: #0284C7; font-size: 12px; }
.wb-gallery-elem { background: #FEF3C7; border: 1px solid #FDE68A; border-radius: 6px; width: 240px; height: 110px; display: flex; align-items: center; justify-content: center; color: #D97706; font-size: 12px; }
.wb-divider-elem hr { width: 280px; border: none; border-top: 2px solid #D1D5DB; margin: 8px 0; }
.wb-html-elem { background: #1E293B; color: #38BDF8; padding: 8px 12px; border-radius: 4px; font-family: monospace; font-size: 11px; }

/* Right Dock: Site Manager & Property Inspector */
.wb-right-dock { width: 210px; background: #FFFFFF; border-left: 1px solid #D1D5DB; display: flex; flex-direction: column; }
.wb-site-manager { height: 145px; border-bottom: 1px solid #D1D5DB; display: flex; flex-direction: column; }
.wb-mini-add-page { background: #0078D4; color: #FFFFFF; border: none; border-radius: 3px; font-size: 11px; font-weight: bold; width: 18px; height: 18px; cursor: pointer; line-height: 1; }
.wb-mini-add-page:hover { background: #005A9E; }
.wb-site-tree { flex: 1; overflow-y: auto; padding: 4px 6px; font-size: 11px; }
.wb-tree-item { padding: 3px 6px; border-radius: 3px; cursor: pointer; color: #374151; transition: background 0.1s ease; }
.wb-tree-item:hover { background: #F3F4F6; }
.wb-tree-item.active { background: #E0F2FE; color: #0284C7; font-weight: 600; }
.wb-tree-item.page { padding-left: 14px; }

.wb-properties-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.wb-prop-scroll { flex: 1; overflow-y: auto; padding: 8px; font-size: 11px; }
.wb-prop-group-title { font-weight: 600; color: #374151; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid #F3F4F6; display: flex; justify-content: space-between; align-items: center; }
.wb-prop-row { margin-bottom: 7px; display: flex; flex-direction: column; gap: 2px; }
.wb-prop-row label { font-size: 9.5px; color: #6B7280; font-weight: 500; }
.wb-prop-row input[type="text"], .wb-prop-row select { border: 1px solid #D1D5DB; border-radius: 3px; padding: 3px 6px; font-size: 10.5px; outline: none; background: #FFFFFF; }
.wb-prop-row input[type="color"] { border: 1px solid #D1D5DB; border-radius: 3px; height: 22px; width: 100%; cursor: pointer; padding: 1px; }
.wb-prop-row input[type="range"] { height: 4px; accent-color: #0078D4; cursor: pointer; }
.wb-prop-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.wb-prop-btn-group { display: flex; gap: 2px; }
.wb-prop-tbtn { flex: 1; background: #F3F4F6; border: 1px solid #D1D5DB; border-radius: 3px; padding: 2px 4px; font-size: 9.5px; cursor: pointer; }
.wb-prop-tbtn:hover { background: #E5E7EB; }

.wb-prop-layer-actions { display: flex; gap: 4px; margin-top: 8px; }
.wb-layer-btn { flex: 1; background: #F3F4F6; border: 1px solid #D1D5DB; border-radius: 3px; padding: 3px 4px; font-size: 9.5px; cursor: pointer; }
.wb-layer-btn:hover { background: #E5E7EB; }

.wb-prop-actions { margin-top: 10px; padding-top: 6px; border-top: 1px solid #F3F4F6; }
.wb-delete-btn { background: #FEE2E2; border: 1px solid #FCA5A5; color: #DC2626; border-radius: 4px; padding: 5px 8px; width: 100%; font-size: 10.5px; font-weight: 600; cursor: pointer; }
.wb-delete-btn:hover { background: #FCA5A5; }
.wb-statusbar { height: 22px; background: #0078D4; color: #FFFFFF; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; font-size: 10px; }

/* Taskbar & Other Windows styling */
.win-taskbar { position: fixed; bottom: 0; left: 0; width: 100vw; height: 48px; background: rgba(24, 27, 34, 0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; z-index: 999999; }
.taskbar-weather { color: #E2E8F0; font-size: 11.5px; padding: 6px 10px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; }
.taskbar-weather:hover { background: rgba(255, 255, 255, 0.1); }
.taskbar-center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 3px; }
.taskbar-icon-btn { position: relative; background: transparent; border: none; width: 38px; height: 38px; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 19px; color: #0078D4; transition: all 0.15s ease; outline: none; }
.taskbar-icon-btn:hover { background: rgba(255, 255, 255, 0.12); transform: scale(1.05); }
.taskbar-icon-btn.start { color: #0078D4; }
.tb-active-pill { position: absolute; bottom: 2px; width: 6px; height: 3px; background: transparent; border-radius: 2px; transition: all 0.2s ease; }
.taskbar-icon-btn.running .tb-active-pill { background: rgba(255, 255, 255, 0.6); width: 6px; }
.taskbar-icon-btn.focused .tb-active-pill { background: #0078D4; width: 16px; }
.taskbar-icon-btn.focused { background: rgba(255, 255, 255, 0.15); }
.taskbar-tray { display: flex; align-items: center; gap: 6px; color: #F8FAFC; }
.tray-cluster { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; cursor: pointer; border: 1px solid transparent; transition: all 0.15s ease; }
.tray-cluster:hover, .tray-cluster.active { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
.tray-btn-icon { font-size: 13px; line-height: 1; }
.tray-clock { display: flex; flex-direction: column; align-items: flex-end; padding: 4px 8px; border-radius: 4px; cursor: pointer; line-height: 1.15; border: 1px solid transparent; transition: all 0.15s ease; }
.tray-clock:hover, .tray-clock.active { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
.time-str { font-size: 11.5px; font-weight: 600; }
.date-str { font-size: 10px; color: #94A3B8; }
.tray-peek { width: 4px; height: 32px; border-left: 1px solid rgba(255, 255, 255, 0.15); cursor: pointer; }

/* Calendar Flyout */
.win-calendar-flyout { position: fixed; bottom: 56px; right: 12px; width: 360px; background: rgba(28, 33, 44, 0.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 120, 212, 0.15); padding: 18px; z-index: 999998; display: none; opacity: 0; transform: translateY(15px) scale(0.96); transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.win-calendar-flyout.open { display: block !important; opacity: 1; transform: translateY(0) scale(1); }
.cal-flyout-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 14px; }
.cal-live-time { font-size: 26px; font-weight: 700; color: #FFFFFF; line-height: 1.1; }
.cal-live-date { font-size: 11px; color: #38BDF8; margin-top: 2px; }
.cal-focus-btn { background: rgba(0, 120, 212, 0.2); border: 1px solid #0078D4; color: #FFFFFF; border-radius: 20px; padding: 4px 10px; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 11px; }
.cal-month-nav { display: flex; justify-content: space-between; align-items: center; color: #F8FAFC; font-size: 13px; margin-bottom: 10px; }
.cal-nav-buttons button { background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); color: #CBD5E1; width: 26px; height: 26px; border-radius: 4px; cursor: pointer; margin-left: 4px; }
.cal-day-names { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; color: #94A3B8; font-size: 10.5px; font-weight: 600; margin-bottom: 6px; }
.cal-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 16px; }
.cal-day-cell { height: 32px; display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: #E2E8F0; border-radius: 50%; cursor: pointer; }
.cal-day-cell:hover { background: rgba(255, 255, 255, 0.12); }
.cal-day-cell.other-month { color: #64748B; }
.cal-day-cell.today { background: #0078D4; color: #FFFFFF; font-weight: bold; }
.cal-events-section { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 12px; }
.cal-events-title { display: flex; justify-content: space-between; align-items: center; color: #F8FAFC; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.cal-events-title button { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: #CBD5E1; font-size: 10px; padding: 2px 8px; border-radius: 4px; cursor: pointer; }
.cal-events-list { display: flex; flex-direction: column; gap: 8px; }
.cal-event-item { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.05); border-radius: 6px; padding: 6px 10px; }
.cal-event-bar { width: 3px; height: 24px; border-radius: 2px; }
.cal-event-item div { display: flex; flex-direction: column; }
.cal-event-item strong { color: #FFFFFF; font-size: 11px; }
.cal-event-item small { color: #94A3B8; font-size: 9.5px; }

/* Quick Settings */
.win-quick-settings { position: fixed; bottom: 56px; right: 12px; width: 360px; background: rgba(28, 33, 44, 0.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 120, 212, 0.15); padding: 16px; z-index: 999998; display: none; opacity: 0; transform: translateY(15px) scale(0.96); transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.win-quick-settings.open { display: block !important; opacity: 1; transform: translateY(0) scale(1); }
.qs-tiles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.qs-tile { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 10px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.qs-tile:hover { background: rgba(255, 255, 255, 0.12); }
.qs-tile.active { background: #0078D4; border-color: #1084D9; }
.qs-tile-icon { font-size: 18px; }
.qs-tile-text { display: flex; flex-direction: column; overflow: hidden; }
.qs-tile-text strong { color: #FFFFFF; font-size: 11.5px; line-height: 1.2; }
.qs-tile-text small { color: #CBD5E1; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-sliders-block { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.qs-slider-row { display: flex; align-items: center; gap: 10px; }
.qs-slider-icon { font-size: 16px; cursor: pointer; min-width: 22px; text-align: center; }
.qs-slider-row input[type="range"] { flex: 1; height: 4px; border-radius: 2px; accent-color: #0078D4; cursor: pointer; }
.qs-slider-val { color: #94A3B8; font-size: 10.5px; min-width: 32px; text-align: right; }
.qs-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.qs-battery-status { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.qs-battery-status span { font-size: 20px; }
.qs-battery-status div { display: flex; flex-direction: column; }
.qs-battery-status strong { color: #FFFFFF; font-size: 11.5px; }
.qs-battery-status small { color: #94A3B8; font-size: 10px; }
.qs-settings-shortcut { font-size: 18px; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.qs-drawer { margin-top: 12px; background: rgba(15, 20, 28, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 10px; }
.qs-drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.qs-drawer-header strong { color: #FFFFFF; font-size: 11.5px; }
.qs-drawer-header button { background: transparent; border: none; color: #94A3B8; cursor: pointer; }
.qs-net-list { display: flex; flex-direction: column; gap: 4px; }
.qs-net-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.qs-net-item:hover, .qs-net-item.active { background: rgba(255, 255, 255, 0.1); }
.qs-net-item div { display: flex; flex-direction: column; }
.qs-net-item strong { color: #F8FAFC; font-size: 11px; }
.qs-net-item small { color: #94A3B8; font-size: 9.5px; }

/* Draggable Windows & App Windows */
.win-window { position: absolute; background: #20242E; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255,255,255,0.4); display: none; flex-direction: column; overflow: hidden; z-index: 200; }
.win-window.active { display: flex !important; }
.win-window.maximized { top: 0 !important; left: 0 !important; width: 100vw !important; height: calc(100vh - 48px) !important; border-radius: 0; }
.win-titlebar { height: 34px; background: #181B22; display: flex; justify-content: space-between; align-items: center; padding: 0 0 0 12px; cursor: grab; user-select: none; }
.win-titlebar:active { cursor: grabbing; }
.win-titlebar.word-tb { background: #185ABD; }
.win-titlebar.excel-tb { background: #107C41; }
.win-titlebar.weather-tb { background: #0284C7; }
.win-titlebar.terminal { background: #0C0C0C; }
.win-titlebar-left { display: flex; align-items: center; gap: 8px; color: #F8FAFC; font-size: 12px; font-weight: 500; pointer-events: none; }
.win-app-glyph { font-size: 14px; }
.win-titlebar-controls { display: flex; height: 100%; }
.win-ctrl-btn { background: transparent; border: none; color: #94A3B8; width: 44px; height: 34px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; transition: all 0.15s ease; outline: none; }
.win-ctrl-btn:hover { background: rgba(255, 255, 255, 0.15); color: #FFFFFF; }
.win-ctrl-btn.close:hover { background: #E81123; color: #FFFFFF; }

/* Word, Excel, Weather, Notepad, Calc, Paint, Explorer, Photos, Terminal, Soundboard, Settings */
.win-word-ribbon { background: #F3F4F6; padding: 6px 12px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #E5E7EB; }
.word-ribbon-group { display: flex; align-items: center; gap: 4px; }
.word-ribbon-group select { background: #FFFFFF; border: 1px solid #D1D5DB; border-radius: 4px; padding: 3px 6px; font-size: 11.5px; outline: none; }
.word-tool-btn { background: #FFFFFF; border: 1px solid #D1D5DB; border-radius: 4px; width: 26px; height: 26px; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.word-tool-btn:hover { background: #E5E7EB; }
.word-action-btn { background: #185ABD; border: none; color: #FFFFFF; padding: 4px 10px; font-size: 11.5px; font-weight: 600; border-radius: 4px; cursor: pointer; }
.word-action-btn:hover { background: #12448F; }
.win-word-page-wrap { flex: 1; background: #E5E7EB; padding: 20px; overflow-y: auto; display: flex; justify-content: center; }
.word-doc-sheet { width: 100%; max-width: 580px; min-height: 400px; background: #FFFFFF; color: #111827; padding: 30px; border-radius: 2px; box-shadow: 0 4px 12px rgba(0,0,0,0.12); outline: none; font-size: 13.5px; line-height: 1.6; user-select: text; }
.win-word-statusbar { height: 24px; background: #185ABD; color: #FFFFFF; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; font-size: 10.5px; }

.win-excel-toolbar { background: #F3F4F6; padding: 6px 10px; border-bottom: 1px solid #D1D5DB; display: flex; flex-direction: column; gap: 6px; }
.excel-actions { display: flex; gap: 8px; }
.excel-actions button { background: #FFFFFF; border: 1px solid #D1D5DB; border-radius: 4px; padding: 3px 10px; font-size: 11px; font-weight: 600; color: #107C41; cursor: pointer; }
.excel-actions button:hover { background: #E5E7EB; }
.excel-formula-row { display: flex; align-items: center; gap: 6px; }
.excel-cell-id { background: #FFFFFF; border: 1px solid #D1D5DB; padding: 2px 8px; font-size: 11px; font-weight: 700; color: #107C41; min-width: 36px; text-align: center; }
.excel-fx-symbol { font-family: serif; font-style: italic; font-weight: bold; color: #6B7280; }
#excel-formula-input { flex: 1; background: #FFFFFF; border: 1px solid #D1D5DB; padding: 3px 8px; font-size: 11.5px; outline: none; }
.win-excel-grid-wrap { flex: 1; background: #FFFFFF; overflow: auto; }
.excel-table { border-collapse: collapse; width: 100%; }
.excel-table th { background: #F3F4F6; border: 1px solid #D1D5DB; padding: 3px 8px; font-size: 11px; color: #4B5563; font-weight: 600; text-align: center; min-width: 80px; }
.excel-table th.excel-th-corner { min-width: 35px; width: 35px; }
.excel-table td { border: 1px solid #E5E7EB; padding: 0; min-width: 80px; }
.excel-table td.row-num { background: #F3F4F6; text-align: center; font-size: 10.5px; color: #6B7280; font-weight: 600; min-width: 35px; width: 35px; user-select: none; }
.excel-cell-input { width: 100%; height: 24px; border: none; padding: 2px 6px; font-family: inherit; font-size: 12px; color: #111827; outline: none; }
.excel-cell-input:focus { border: 2px solid #107C41; }
.win-excel-statusbar { height: 24px; background: #107C41; color: #FFFFFF; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; font-size: 10.5px; }

.win-weather-body { padding: 16px; background: linear-gradient(180deg, #0284C7 0%, #0369A1 100%); color: #FFFFFF; height: 100%; display: flex; flex-direction: column; gap: 12px; }
.weather-city-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.weather-city-bar select { background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); color: #FFFFFF; padding: 3px 8px; border-radius: 4px; font-size: 12px; outline: none; }
.weather-city-bar select option { background: #0369A1; color: #FFFFFF; }
.weather-hero-card { background: rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.weather-big-temp { font-size: 38px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.weather-cond-text { font-size: 14px; font-weight: 600; }
.weather-feels { font-size: 11px; opacity: 0.8; margin-top: 4px; }
.weather-hero-icon { font-size: 48px; }
.weather-metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.w-metric-box { background: rgba(255, 255, 255, 0.1); padding: 8px; border-radius: 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.w-metric-box small { font-size: 8.5px; opacity: 0.8; }
.w-metric-box strong { font-size: 11.5px; }
.weather-forecast-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: auto; }
.w-fc-day { background: rgba(255, 255, 255, 0.1); padding: 8px 4px; border-radius: 8px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.w-fc-day span { font-size: 10px; font-weight: 600; }
.w-fc-day em { font-size: 16px; font-style: normal; }
.w-fc-day strong { font-size: 11px; }

.win-notepad-menu { background: #1E222A; padding: 4px 8px; display: flex; gap: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.win-notepad-menu button { background: transparent; border: none; color: #CBD5E1; font-size: 11.5px; padding: 3px 8px; border-radius: 4px; cursor: pointer; }
.win-notepad-menu button:hover { background: rgba(255, 255, 255, 0.1); }
.win-notepad-body { flex: 1; background: #282C34; padding: 10px; }
.win-notepad-body textarea { width: 100%; height: 100%; background: transparent; border: none; color: #E2E8F0; font-family: 'Consolas', 'Courier New', monospace; font-size: 13px; line-height: 1.5; resize: none; outline: none; }
.win-notepad-statusbar { height: 24px; background: #181B22; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; align-items: center; padding: 0 12px; color: #94A3B8; font-size: 10.5px; }

.win-calc-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.calc-history { font-size: 12px; color: #94A3B8; text-align: right; min-height: 16px; }
.calc-screen { font-size: 36px; font-weight: 600; color: #FFFFFF; text-align: right; padding: 4px 8px; background: rgba(0, 0, 0, 0.2); border-radius: 6px; overflow: hidden; }
.calc-keypad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: 1; }
.calc-btn { background: #2D333F; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px; color: #FFFFFF; font-size: 15px; cursor: pointer; transition: all 0.1s ease; outline: none; }
.calc-btn:hover { background: #3B4252; }
.calc-btn.op { background: #232731; color: #38BDF8; }
.calc-btn.equals { background: #0078D4; color: #FFFFFF; }
.calc-btn.equals:hover { background: #1084D9; }

.win-paint-toolbar { background: #1E222A; padding: 8px 12px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.paint-colors { display: flex; gap: 6px; }
.paint-swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #1E222A; cursor: pointer; outline: none; }
.paint-swatch.active { border-color: #FFFFFF; transform: scale(1.15); }
.paint-sizes { display: flex; align-items: center; gap: 8px; color: #CBD5E1; font-size: 11.5px; }
.paint-actions button { background: #2D333F; border: 1px solid rgba(255, 255, 255, 0.1); color: #E2E8F0; font-size: 11px; padding: 4px 8px; border-radius: 4px; cursor: pointer; }
.win-paint-canvas-wrap { flex: 1; background: #FFFFFF; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#paint-canvas { background: #FFFFFF; cursor: crosshair; }

.win-explorer-pathbar { background: #181B22; padding: 6px 12px; color: #94A3B8; font-size: 11.5px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.win-explorer-layout { display: flex; flex: 1; }
.win-explorer-sidebar { width: 160px; background: #1A1D24; border-right: 1px solid rgba(255, 255, 255, 0.08); padding: 10px 6px; display: flex; flex-direction: column; gap: 4px; }
.exp-nav-item { color: #CBD5E1; font-size: 11.5px; padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.exp-nav-item.active, .exp-nav-item:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.win-explorer-content { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.exp-storage-card { display: flex; align-items: center; gap: 12px; background: #282C34; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; padding: 10px 14px; }
.exp-disk-icon { font-size: 28px; }
.exp-disk-info strong { color: #F8FAFC; font-size: 12px; }
.exp-disk-bar { width: 180px; height: 6px; background: #3B4252; border-radius: 3px; margin: 4px 0; overflow: hidden; }
.exp-disk-bar div { height: 100%; background: #0078D4; }
.exp-disk-info small { color: #94A3B8; font-size: 10px; }
.exp-folder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.exp-folder-item { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 6px; cursor: pointer; }
.exp-folder-item:hover { background: rgba(255, 255, 255, 0.08); }
.exp-folder-item .f-icon { font-size: 26px; margin-bottom: 4px; }
.exp-folder-item span { color: #E2E8F0; font-size: 11px; text-align: center; }

.win-photos-body { padding: 16px; }
.photos-hint { color: #94A3B8; font-size: 12px; margin-top: 0; }
.photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-card { background: #1A1D24; border: 2px solid transparent; border-radius: 8px; padding: 6px; cursor: pointer; transition: all 0.2s ease; display: flex; flex-direction: column; gap: 6px; }
.photo-card.active, .photo-card:hover { border-color: #0078D4; transform: translateY(-2px); }
.photo-card img { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; }
.photo-card span { color: #E2E8F0; font-size: 11px; text-align: center; }

.win-terminal-body { flex: 1; background: #0C0C0C; padding: 12px; font-family: 'Consolas', 'Courier New', monospace; font-size: 12.5px; color: #CCCCCC; overflow-y: auto; }
.term-line { line-height: 1.4; }
.term-input-row { display: flex; align-items: center; margin-top: 4px; }
.term-prompt { color: #CCCCCC; margin-right: 6px; }
#terminal-input { flex: 1; background: transparent; border: none; color: #00FF66; font-family: inherit; font-size: inherit; outline: none; }

.win-media-body { padding: 16px; }
.sound-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sound-btn { background: #282C34; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; transition: all 0.15s ease; }
.sound-btn:hover { background: #3B4252; border-color: #0078D4; transform: translateY(-2px); }
.sound-btn span { font-size: 24px; margin-bottom: 6px; }
.sound-btn strong { color: #F8FAFC; font-size: 12px; }
.sound-btn small { color: #94A3B8; font-size: 10px; }

.win-settings-body {
  padding: 16px 20px;
  max-height: 466px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.settings-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--win-section-bg);
  border: 1px solid var(--win-section-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.settings-profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--win-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.settings-profile-meta h3 {
  margin: 0;
  font-size: 15px;
  color: var(--win-window-text);
  font-weight: 600;
}
.settings-profile-meta span {
  font-size: 11.5px;
  color: var(--win-window-subtext);
}
.settings-section {
  background: var(--win-section-bg);
  border: 1px solid var(--win-section-border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}
.settings-section-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.settings-section-hdr .sec-icon {
  font-size: 18px;
}
.settings-section-hdr h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--win-window-text);
}
.settings-section-hdr small {
  display: block;
  font-size: 11px;
  color: var(--win-window-subtext);
  margin-top: 2px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--win-window-subtext);
  font-size: 12px;
}
.settings-theme-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.theme-pill-btn {
  background: var(--win-card-bg);
  border: 1.5px solid var(--win-card-border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  cursor: pointer;
  color: var(--win-window-text);
  text-align: left;
  transition: all 0.15s ease;
}
.theme-pill-btn:hover {
  filter: brightness(1.08);
}
.theme-pill-btn.active {
  border-color: var(--win-accent) !important;
  box-shadow: 0 0 0 1px var(--win-accent);
}
.theme-pill-icon {
  font-size: 18px;
  margin-bottom: 2px;
}
.theme-pill-btn strong {
  font-size: 12px;
}
.theme-pill-btn small {
  font-size: 10px;
  color: var(--win-window-subtext);
}
.accent-palette {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.accent-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: bold;
  padding: 0;
  transition: transform 0.12s ease;
}
.accent-swatch:hover {
  transform: scale(1.15);
}
.accent-swatch.active {
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2px var(--win-accent);
  transform: scale(1.1);
}
.accent-custom-label {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px dashed var(--win-window-subtext);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--win-window-text);
  font-size: 14px;
  font-weight: bold;
}
.fluent-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}
.fluent-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.fluent-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.2s;
  border-radius: 20px;
}
.fluent-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}
.fluent-switch input:checked + .fluent-slider {
  background-color: var(--win-accent);
  border-color: var(--win-accent);
}
.fluent-switch input:checked + .fluent-slider:before {
  transform: translateX(18px);
}

/* DYNAMIC ACCENT COLOR BINDINGS */
.taskbar-icon-btn.focused .tb-active-pill,
.taskbar-icon-btn.active .tb-active-pill {
  background: var(--win-accent) !important;
}
.taskbar-icon-btn.start:hover {
  color: var(--win-accent) !important;
}
.taskbar-icon-btn:hover {
  background: var(--win-accent-subtle) !important;
}
.win-window.active {
  border-color: var(--win-accent) !important;
  box-shadow: var(--win-window-shadow), 0 0 0 1px var(--win-accent) !important;
}
.action-btn,
.calc-btn.equals,
.win-tm-action-btn,
.settings-btn-primary {
  background: var(--win-accent) !important;
  color: #FFFFFF !important;
}
.action-btn:hover,
.calc-btn.equals:hover,
.win-tm-action-btn:hover {
  filter: brightness(1.12);
}
.qs-tile.active {
  background: var(--win-accent) !important;
  border-color: var(--win-accent) !important;
  color: #FFFFFF !important;
}
input[type="range"] {
  accent-color: var(--win-accent) !important;
}
.cal-day-cell.today {
  background: var(--win-accent) !important;
  color: #FFFFFF !important;
}
.cal-event-bar,
.exp-disk-bar div {
  background: var(--win-accent) !important;
}
.exp-nav-item.active {
  color: var(--win-accent) !important;
}
.photo-card.active,
.photo-card:hover,
.sound-btn:hover {
  border-color: var(--win-accent) !important;
}
.win-tm-card-hdr strong {
  color: var(--win-accent) !important;
}

/* LIGHT THEME COMPONENT STYLING */
body.win-light-theme .win-window {
  background: var(--win-window-bg);
  border-color: var(--win-window-border);
  box-shadow: var(--win-window-shadow);
  color: var(--win-window-text);
}
body.win-light-theme .win-titlebar {
  background: var(--win-titlebar-bg);
  color: var(--win-titlebar-text);
  border-bottom: 1px solid var(--win-titlebar-border);
}
body.win-light-theme .win-titlebar-left {
  color: var(--win-titlebar-text);
}
body.win-light-theme .win-ctrl-btn {
  color: var(--win-titlebar-text);
}
body.win-light-theme .win-ctrl-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}
body.win-light-theme .win-taskbar {
  background: var(--win-taskbar-bg);
  border-top-color: var(--win-taskbar-border);
}
body.win-light-theme .taskbar-weather,
body.win-light-theme .taskbar-time,
body.win-light-theme .tb-tray-item {
  color: var(--win-taskbar-text);
}
body.win-light-theme .taskbar-weather:hover,
body.win-light-theme .taskbar-time:hover,
body.win-light-theme .tb-tray-item:hover {
  background: rgba(0, 0, 0, 0.06);
}
body.win-light-theme .win-start-menu,
body.win-light-theme .win-quick-settings,
body.win-light-theme .win-calendar-flyout {
  background: var(--win-flyout-bg);
  border-color: var(--win-flyout-border);
  color: var(--win-flyout-text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}
body.win-light-theme .start-search-bar {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
}
body.win-light-theme .start-search-bar input {
  color: #0F172A;
}
body.win-light-theme .start-search-bar input::placeholder {
  color: #94A3B8;
}
body.win-light-theme .start-search-clear {
  color: #64748B;
}
body.win-light-theme .start-search-clear:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0F172A;
}
body.win-light-theme .search-best-match-card {
  background: var(--win-accent-subtle, rgba(0, 120, 212, 0.12));
  border-color: var(--win-accent, #0078D4);
}
body.win-light-theme .search-best-match-card:hover {
  background: rgba(0, 120, 212, 0.22);
}
body.win-light-theme .search-match-left strong {
  color: #0F172A;
}
body.win-light-theme .search-match-left small {
  color: #0284C7;
}
body.win-light-theme .search-result-row {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #0F172A;
}
body.win-light-theme .search-result-row:hover {
  background: #F1F5F9;
  border-color: var(--win-accent, #0078D4);
}
body.win-light-theme .search-result-row strong {
  color: #0F172A;
}
body.win-light-theme .search-result-row small {
  color: #64748B;
}
body.win-light-theme .search-section-label {
  color: #64748B;
}
body.win-light-theme .search-no-results p {
  color: #64748B;
}
body.win-light-theme .search-no-results strong {
  color: #0F172A;
}
body.win-light-theme .start-app-item span,
body.win-light-theme .start-rec-meta strong {
  color: #0F172A;
}
body.win-light-theme .start-app-item:hover,
body.win-light-theme .start-rec-item:hover {
  background: rgba(0, 0, 0, 0.05);
}
body.win-light-theme .start-user-footer {
  background: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
body.win-light-theme #start-user-name {
  color: #0F172A;
}
body.win-light-theme .start-power-btn {
  color: #0F172A;
}
body.win-light-theme .start-power-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}
body.win-light-theme .qs-tile {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #0F172A;
}
body.win-light-theme .qs-tile small {
  color: #64748B;
}
body.win-light-theme .qs-footer {
  border-top-color: #E2E8F0;
}
body.win-light-theme .cal-day-cell {
  color: #0F172A;
}
body.win-light-theme .cal-day-cell.other-month {
  color: #94A3B8;
}
body.win-light-theme .cal-header-month,
body.win-light-theme .cal-hdr-btn {
  color: #0F172A;
}
body.win-light-theme .calc-screen {
  background: #F8FAFC;
  color: #0F172A;
  border: 1px solid #E2E8F0;
}
body.win-light-theme .calc-history {
  color: #64748B;
}
body.win-light-theme .calc-btn {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #E2E8F0;
}
body.win-light-theme .calc-btn:hover {
  background: #E2E8F0;
}
body.win-light-theme .calc-btn.op {
  background: #E2E8F0;
  color: #0284C7;
}
body.win-light-theme .exp-storage-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
body.win-light-theme .exp-disk-info strong {
  color: #0F172A;
}
body.win-light-theme .exp-sidebar {
  background: #F8FAFC;
  border-right-color: #E2E8F0;
}
body.win-light-theme .exp-nav-item {
  color: #475569;
}
body.win-light-theme .exp-nav-item:hover,
body.win-light-theme .exp-nav-item.active {
  background: rgba(0, 0, 0, 0.05);
}
body.win-light-theme .exp-folder-item span {
  color: #0F172A;
}
body.win-light-theme .exp-folder-item:hover {
  background: rgba(0, 0, 0, 0.05);
}
body.win-light-theme .photo-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
body.win-light-theme .photo-card span {
  color: #0F172A;
}
body.win-light-theme .sound-btn {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
body.win-light-theme .sound-btn strong {
  color: #0F172A;
}
body.win-light-theme .sound-btn small {
  color: #64748B;
}
body.win-light-theme .notepad-textarea {
  background: #FFFFFF;
  color: #0F172A;
}
body.win-light-theme .notepad-toolbar {
  background: #F8FAFC;
  border-bottom-color: #E2E8F0;
  color: #0F172A;
}
body.win-light-theme .win-tm-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
body.win-light-theme .win-tm-sysinfo {
  background: #F8FAFC;
  border-top-color: #E2E8F0;
  color: #475569;
}
body.win-light-theme .win-settings-body {
  background: #FFFFFF;
  color: #0F172A;
}
body.win-light-theme .settings-section {
  background: #F8FAFC;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
body.win-light-theme .settings-section h4 {
  color: #0F172A;
}
body.win-light-theme .settings-row {
  color: #475569;
}
body.win-light-theme .settings-section small {
  color: #64748B;
}
body.win-light-theme .settings-profile-header {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
body.win-light-theme .settings-profile-meta h3 {
  color: #0F172A;
}
body.win-light-theme .settings-profile-meta span {
  color: #64748B;
}
body.win-light-theme .theme-pill-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}
body.win-light-theme .theme-pill-btn small {
  color: #64748B;
}

body.no-transparency .win-taskbar,
body.no-transparency .win-start-menu,
body.no-transparency .win-quick-settings,
body.no-transparency .win-calendar-flyout {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--win-window-bg) !important;
}

/* ========================================================================= */
/* EXTENDED NATIVE UTILITY APPS & MINI-GAMES STYLES                          */
/* ========================================================================= */

/* Task Manager */
.tm-tb { background: #1E293B !important; }
.win-tm-tabs { display: flex; background: #F1F5F9; border-bottom: 1px solid #E2E8F0; padding: 4px 8px 0; gap: 4px; }
.win-tm-tab { padding: 6px 16px; border: none; background: transparent; font-size: 13px; font-weight: 600; color: #64748B; cursor: pointer; border-radius: 4px 4px 0 0; }
.win-tm-tab.active { background: #FFFFFF; color: #0F172A; border: 1px solid #E2E8F0; border-bottom: 1px solid #FFFFFF; margin-bottom: -1px; }
.win-tm-content { display: flex; flex-direction: column; flex: 1; overflow: hidden; background: #FFFFFF; }
.win-tm-table-wrap { flex: 1; overflow-y: auto; }
.win-tm-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.win-tm-table th { position: sticky; top: 0; background: #F8FAFC; padding: 8px 12px; font-weight: 600; color: #475569; border-bottom: 1px solid #E2E8F0; font-size: 12px; }
.win-tm-table td { padding: 8px 12px; border-bottom: 1px solid #F1F5F9; color: #1E293B; }
.win-tm-table tr:hover { background: #F8FAFC; }
.win-tm-table tr.selected { background: #E0F2FE; }
.win-tm-footer { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-top: 1px solid #E2E8F0; background: #F8FAFC; }
.win-tm-action-btn { padding: 6px 14px; background: #0078D4; color: #FFFFFF; border: none; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.15s; }
.win-tm-action-btn:disabled { background: #CBD5E1; color: #94A3B8; cursor: not-allowed; }
.win-tm-perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; }
.win-tm-perf-card { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.win-tm-card-hdr { display: flex; justify-content: space-between; font-size: 13px; color: #334155; }
.win-tm-card-hdr strong { color: #0078D4; }
.win-tm-canvas { background: #0F172A; border-radius: 4px; width: 100%; height: 90px; }
.win-tm-perf-card small { color: #64748B; font-size: 11px; }
.win-tm-sysinfo { padding: 10px 16px; font-size: 12px; color: #475569; border-top: 1px solid #E2E8F0; display: flex; flex-direction: column; gap: 4px; background: #F8FAFC; }

/* Sticky Notes */
.sticky-note-win { background: #FEF08A !important; border: 1px solid #FACC15 !important; box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important; }
.sticky-tb { background: rgba(0,0,0,0.06) !important; border-bottom: 1px solid rgba(0,0,0,0.06) !important; padding: 4px 8px !important; }
.sticky-hdr-btn { background: transparent; border: none; font-size: 16px; font-weight: bold; cursor: pointer; color: #475569; padding: 0 4px; }
.sticky-color-dots { display: flex; gap: 5px; margin-left: 8px; }
.sticky-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.2); cursor: pointer; transition: 0.15s; }
.sticky-dot:hover { transform: scale(1.2); }
.sticky-note-body { flex: 1; display: flex; padding: 12px; overflow-y: auto; }
#sticky-note-editor { width: 100%; min-height: 100%; outline: none; font-family: 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.5; color: #1E293B; word-break: break-word; }
#sticky-note-editor:empty:before { content: 'Type a sticky note here...'; color: #94A3B8; }
.sticky-note-footer { padding: 4px 12px; font-size: 11px; color: #64748B; text-align: right; }

/* Clock, Timer & Stopwatch */
.clock-tb { background: #0284C7 !important; }
.win-clock-tabs { display: flex; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; padding: 4px 10px 0; gap: 6px; }
.win-clock-tab { padding: 8px 16px; border: none; background: transparent; font-size: 13px; font-weight: 600; color: #64748B; cursor: pointer; border-radius: 6px 6px 0 0; }
.win-clock-tab.active { background: #FFFFFF; color: #0284C7; border: 1px solid #E2E8F0; border-bottom: 1px solid #FFFFFF; margin-bottom: -1px; }
.clock-tab-pane { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 20px; background: #FFFFFF; overflow-y: auto; }
.clock-digital-display { font-family: 'Consolas', 'Courier New', monospace; font-size: 52px; font-weight: 700; color: #0F172A; letter-spacing: 2px; margin: 15px 0 20px; }
.clock-btn-row { display: flex; gap: 10px; margin-bottom: 20px; }
.clock-action-btn { padding: 8px 24px; border: 1px solid #CBD5E1; background: #F8FAFC; font-size: 14px; font-weight: 600; border-radius: 6px; cursor: pointer; transition: 0.15s; }
.clock-action-btn:hover { background: #E2E8F0; }
.clock-action-btn.primary { background: #0284C7; color: #FFFFFF; border-color: #0284C7; }
.clock-action-btn.primary:hover { background: #0369A1; }
.clock-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.clock-laps-wrap { width: 100%; max-height: 180px; overflow-y: auto; border: 1px solid #E2E8F0; border-radius: 6px; }
.clock-laps-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.clock-laps-table th { background: #F8FAFC; padding: 6px 12px; font-size: 12px; color: #475569; text-align: left; border-bottom: 1px solid #E2E8F0; }
.clock-laps-table td { padding: 6px 12px; border-bottom: 1px solid #F1F5F9; color: #1E293B; }
.timer-inputs-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 10px; }
.timer-preset-btns { display: flex; gap: 6px; }
.timer-preset-btns button { padding: 5px 12px; border: 1px solid #CBD5E1; background: #F8FAFC; border-radius: 14px; font-size: 12px; cursor: pointer; }
.timer-preset-btns button:hover { background: #E0F2FE; border-color: #0284C7; color: #0284C7; }
.timer-custom-inputs { display: flex; align-items: center; gap: 4px; }
.timer-custom-inputs input { width: 54px; font-size: 20px; text-align: center; border: 1px solid #CBD5E1; border-radius: 4px; padding: 4px; }
.timer-display { color: #0284C7; }
.world-clock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.world-clock-card { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; padding: 14px; text-align: center; }
.world-clock-city { font-size: 14px; font-weight: 600; color: #1E293B; margin-bottom: 4px; }
.world-clock-time { font-family: 'Consolas', monospace; font-size: 24px; font-weight: 700; color: #0284C7; }
.world-clock-date { font-size: 11px; color: #64748B; margin-top: 4px; }

/* Minesweeper */
.ms-window { background: #C0C0C0 !important; border: 3px outset #FFFFFF !important; }
.ms-tb { background: #000080 !important; }
.ms-body { display: flex; flex-direction: column; align-items: center; padding: 10px; background: #C0C0C0; user-select: none; }
.ms-header-panel { display: flex; justify-content: space-between; align-items: center; width: 236px; background: #C0C0C0; border: 3px inset #FFFFFF; padding: 6px 10px; margin-bottom: 8px; }
.ms-led { background: #000000; color: #FF0000; font-family: 'Consolas', 'Courier New', monospace; font-size: 24px; font-weight: bold; padding: 2px 6px; letter-spacing: 2px; border: 1px inset #808080; }
.ms-face-btn { width: 36px; height: 36px; font-size: 22px; background: #C0C0C0; border: 3px outset #FFFFFF; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }
.ms-face-btn:active { border-style: inset; }
.ms-toolbar-toggle { display: flex; justify-content: space-between; align-items: center; width: 236px; margin-bottom: 8px; }
.ms-toggle-btn { padding: 4px 10px; font-size: 12px; font-weight: 600; border: 2px outset #FFFFFF; background: #E0E0E0; cursor: pointer; border-radius: 3px; }
.ms-toolbar-toggle small { font-size: 11px; color: #333333; }
.ms-grid-frame { border: 3px inset #FFFFFF; background: #7B7B7B; }
.ms-grid { display: grid; grid-template-columns: repeat(9, 26px); grid-template-rows: repeat(9, 26px); gap: 0; }
.ms-cell { width: 26px; height: 26px; background: #C0C0C0; border: 3px outset #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; cursor: pointer; box-sizing: border-box; }
.ms-cell:active { border-style: inset; }
.ms-cell.revealed { border: 1px solid #7B7B7B; background: #D9D9D9; cursor: default; }
.ms-cell.revealed.mine { background: #EF4444; }
.ms-cell.flagged { color: #DC2626; }
.ms-cell[data-val="1"] { color: #0000FF; }
.ms-cell[data-val="2"] { color: #008000; }
.ms-cell[data-val="3"] { color: #FF0000; }
.ms-cell[data-val="4"] { color: #000080; }
.ms-cell[data-val="5"] { color: #800000; }
.ms-cell[data-val="6"] { color: #008080; }
.ms-cell[data-val="7"] { color: #000000; }
.ms-cell[data-val="8"] { color: #808080; }


/* Visual Resizing 8-Point Selection Overlay */
.wb-selection-box {
  position: absolute;
  pointer-events: none;
  border: 1px dashed #0078D4 !important;
  box-sizing: border-box;
  z-index: 999;
}
.wb-res-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #FFFFFF;
  border: 1px solid #0078D4;
  pointer-events: auto !important;
  box-sizing: border-box;
  border-radius: 1px;
  z-index: 1000;
}
.wb-res-handle.nw { top: -4px; left: -4px; cursor: nwse-resize; }
.wb-res-handle.n { top: -4px; left: calc(50% - 4px); cursor: ns-resize; }
.wb-res-handle.ne { top: -4px; right: -4px; cursor: nesw-resize; }
.wb-res-handle.e { top: calc(50% - 4px); right: -4px; cursor: ew-resize; }
.wb-res-handle.se { bottom: -4px; right: -4px; cursor: nwse-resize; }
.wb-res-handle.s { bottom: -4px; left: calc(50% - 4px); cursor: ns-resize; }
.wb-res-handle.sw { bottom: -4px; left: -4px; cursor: nesw-resize; }
.wb-res-handle.w { top: calc(50% - 4px); left: -4px; cursor: ew-resize; }

/* Form Controls & Block Elements inside Canvas */
.wb-editbox-elem, .wb-textarea-elem, .wb-checkbox-elem, .wb-select-elem, .wb-badge-elem {
  min-width: 60px;
}


/* Safeguard: Browser Preview never displays selection box or handles */
#browser-render-area .wb-selection-box,
#browser-render-area .wb-res-handle {
  display: none !important;
  visibility: hidden !important;
}
#browser-render-area .wb-elem {
  cursor: default !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
#browser-render-area .wb-elem.selected {
  border: none !important;
  box-shadow: none !important;
}


/* WYSIWYG Web Builder About Modal */
.wb-about-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.wb-about-dialog {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  width: 360px;
  border: 1px solid #CBD5E1;
  overflow: hidden;
}
.wb-about-header {
  background: #F8FAFC;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E2E8F0;
  font-size: 13px;
}
.wb-about-close {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #64748B;
  padding: 2px 6px;
  border-radius: 4px;
}
.wb-about-close:hover {
  background: #EF4444;
  color: #FFFFFF;
}
.wb-about-body {
  padding: 22px 20px;
  text-align: center;
}
.wb-about-logo {
  font-size: 40px;
  margin-bottom: 8px;
}
.wb-about-ok-btn {
  background: #0078D4;
  color: #FFFFFF;
  border: none;
  padding: 7px 30px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.wb-about-ok-btn:hover {
  background: #106EBE;
}


/* Ribbon Field Group Styles */
.wb-r-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 4px;
}
.wb-r-field label {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}
.wb-r-field select, .wb-r-field input[type="text"] {
  padding: 4px 8px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
  color: #0F172A;
  background: #FFFFFF;
  outline: none;
}
.wb-r-field select:focus, .wb-r-field input[type="text"]:focus {
  border-color: #0078D4;
}

/* Page Properties Modal Dialog */
.wb-page-props-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
}
.wb-page-props-dialog {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  width: 420px;
  border: 1px solid #CBD5E1;
  overflow: hidden;
}
.wb-page-props-header {
  background: #F8FAFC;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E2E8F0;
  font-size: 13px;
}
.wb-page-props-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wb-pp-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wb-pp-row label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.wb-pp-row input[type="text"], .wb-pp-row select {
  padding: 6px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  color: #0F172A;
}
.wb-pp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wb-page-props-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #E2E8F0;
}
.wb-pp-btn {
  padding: 6px 18px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.wb-pp-btn.ok {
  background: #0078D4;
  color: #FFFFFF;
}
.wb-pp-btn.ok:hover {
  background: #106EBE;
}
.wb-pp-btn.cancel {
  background: #E2E8F0;
  color: #334155;
}
.wb-pp-btn.cancel:hover {
  background: #CBD5E1;
}


/* YouTube Widget Styling */
.wb-elem.wb-youtube-elem {
  border: 1px dashed transparent;
  background: #000000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.wb-elem.wb-youtube-elem:hover {
  border-color: #0078D4;
}
.wb-elem.wb-youtube-elem.selected {
  border: 2px solid #0078D4 !important;
}
#browser-render-area .wb-youtube-overlay {
  display: none !important;
}


/* Hide raw WWB design-time icon canvas objects in browser preview */
div[id^="wb_icon_"],
img[id^="icon_"] {
  display: none !important;
}
#win-desktop-icons .win-desktop-icon img {
  display: block !important;
}


/* Hide raw WWB design-time branding objects in browser preview */
#wb_user_avatar,
#wb_user_name,
#wb_start_logo,
#wb_pc_name,
#user_avatar,
#user_name,
#start_logo,
#pc_name {
  display: none !important;
}
#start-user-avatar img,
#btn-start img {
  display: block !important;
}


/* Hide raw WWB design-time wallpapers gallery in browser preview */
#wb_desktop_wallpapers_gallery,
#desktop_wallpapers_gallery {
  display: none !important;
}


/* Hide raw WWB design-time app defaults objects in browser preview */
#wb_app_notepad_doc,
#app_notepad_doc,
#wb_app_stickynotes_memo,
#app_stickynotes_memo,
#wb_app_word_doc,
#app_word_doc {
  display: none !important;
}

