@font-face {
  font-family: "Material Symbols Rounded";
  src: url("/icons/MaterialSymbolsRounded-subset.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: block;
}

:root {
  --accent: #1ab1c3;
  --accent-rgb: 26, 177, 195;
  --icon-scale: 1;
  --taskbar-height: 62px;
  --panel-surface: rgba(11, 16, 18, .9);
  --panel-border: rgba(255, 255, 255, .12);
}

.glyph {
  display: inline-grid !important;
  place-items: center !important;
  width: 1.2em !important;
  height: 1.2em !important;
  flex: 0 0 auto;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit;
  font-style: normal;
  overflow: visible !important;
}

.glyph::before {
  content: var(--symbol, "description") !important;
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  inset: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
  font-family: "Material Symbols Rounded" !important;
  font-size: 1em !important;
  font-weight: 430 !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  white-space: nowrap !important;
  word-wrap: normal !important;
  direction: ltr !important;
  font-feature-settings: "liga" !important;
  -webkit-font-feature-settings: "liga" !important;
  -webkit-font-smoothing: antialiased;
}

.glyph::after { display: none !important; }
.glyph-folder { --symbol: "folder"; }
.glyph-folder-add { --symbol: "create_new_folder"; }
.glyph-computer { --symbol: "computer"; }
.glyph-photo { --symbol: "image"; }
.glyph-trash { --symbol: "delete"; }
.glyph-calculator { --symbol: "calculate"; }
.glyph-calendar { --symbol: "calendar_month"; }
.glyph-notepad,.glyph-document { --symbol: "description"; }
.glyph-download { --symbol: "download"; }
.glyph-settings { --symbol: "settings"; }
.glyph-keyboard { --symbol: "keyboard"; }
.glyph-wifi { --symbol: "wifi"; }
.glyph-volume { --symbol: "volume_up"; }
.glyph-sun { --symbol: "light_mode"; }
.glyph-theme { --symbol: "dark_mode"; }
.glyph-language { --symbol: "language"; }
.glyph-lock { --symbol: "lock"; }
.glyph-close { --symbol: "close"; }
.glyph-palette { --symbol: "palette"; }
.glyph-grid { --symbol: "grid_view"; }
.glyph-taskbar { --symbol: "more_horiz"; }
.glyph-pdf { --symbol: "picture_as_pdf"; }
.glyph-word { --symbol: "description"; }
.glyph-sheet { --symbol: "grid_view"; }
.glyph-presentation { --symbol: "presentation"; }
.glyph-video { --symbol: "video_file"; }
.glyph-audio { --symbol: "audio_file"; }
.glyph-refresh { --symbol: "refresh"; }

#desktop {
  --turquoise: var(--accent);
  --cyan: var(--accent);
}

.os-wallpaper {
  transition: background .32s ease, filter .25s ease;
}

#desktop[data-wallpaper="signature"] .os-wallpaper {
  background:
    radial-gradient(circle at 76% 28%, rgba(var(--accent-rgb), .20), transparent 26%),
    radial-gradient(circle at 18% 92%, rgba(16, 83, 90, .22), transparent 34%),
    linear-gradient(142deg, #020606 0%, #071013 48%, #020505 100%) !important;
}

#desktop[data-wallpaper="summit"] .os-wallpaper {
  background:
    linear-gradient(154deg, transparent 52%, rgba(var(--accent-rgb), .14) 52.2%, transparent 53%),
    linear-gradient(26deg, #05090a 0%, #0d191b 44%, #081113 45%, #020404 100%) !important;
}

#desktop[data-wallpaper="minimal"] .os-wallpaper {
  background:
    radial-gradient(circle at 72% 42%, rgba(var(--accent-rgb), .14), transparent 22%),
    #050808 !important;
}

#desktop[data-wallpaper="light"] .os-wallpaper {
  background:
    radial-gradient(circle at 74% 20%, rgba(var(--accent-rgb), .22), transparent 30%),
    linear-gradient(132deg, #edf4f3, #cdd9d8 52%, #e9efee) !important;
}

#desktop[data-wallpaper="light"] .wall-copy { color: rgba(2, 25, 28, .14); }
#desktop[data-wallpaper="light"] .wall-dots { opacity: .25; filter: invert(1); }
#desktop[data-wallpaper="minimal"] .wall-sphere,
#desktop[data-wallpaper="minimal"] .wall-copy { opacity: .08; }

.desktop-icons { bottom: var(--taskbar-height) !important; }
.desktop-icon {
  width: calc(86px * var(--icon-scale)) !important;
  min-height: calc(82px * var(--icon-scale)) !important;
  padding: 7px 5px !important;
  gap: 4px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  color: #f7fbfb !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.9) !important;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  background: rgba(255,255,255,.09) !important;
  border-color: rgba(255,255,255,.16) !important;
}

.desktop-icon .icon-tile {
  width: calc(48px * var(--icon-scale)) !important;
  height: calc(48px * var(--icon-scale)) !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), .96), rgba(var(--accent-rgb), .5)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.28), 0 8px 22px rgba(0,0,0,.28) !important;
}

.desktop-icon .icon-tile .glyph { font-size: calc(29px * var(--icon-scale)); }
.desktop-icon > span:last-child { font-size: calc(12px * var(--icon-scale)); line-height: 1.15; }

.window {
  overflow: hidden !important;
  border: 1px solid var(--panel-border) !important;
  border-radius: 12px !important;
  background: rgba(8, 12, 13, .965) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.25) !important;
  backdrop-filter: blur(24px) saturate(125%);
}

#desktop[data-theme="light"] .window {
  background: rgba(246,249,249,.97) !important;
  color: #122023;
  --panel-border: rgba(7, 33, 37, .16);
}

.window-titlebar {
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 7px 0 14px !important;
  background: rgba(255,255,255,.025) !important;
  border-bottom: 1px solid rgba(255,255,255,.085) !important;
}

.window-brand { gap: 9px !important; font-size: 12px !important; }
.window-brand .glyph { color: var(--accent); font-size: 19px; }
.window-actions { align-self: stretch; gap: 2px !important; }
.window-actions button {
  width: 42px !important;
  height: 34px !important;
  margin-top: 3px;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: inherit !important;
  font-size: 15px !important;
}
.window-actions button:hover { background: rgba(255,255,255,.09) !important; }
.window-actions button[data-close]:hover { background: #c42b1c !important; color: #fff !important; }

.command-bar,
.explorer-toolbar,
.media-toolbar,
.trash-toolbar,
.preview-toolbar,
.notepad-toolbar {
  border-color: rgba(255,255,255,.075) !important;
}

.command-bar button,
.explorer-toolbar button,
.media-toolbar button,
.trash-toolbar button {
  border-radius: 6px !important;
}

.private-command { color: var(--accent) !important; }
.private-code-button {
  width: 100%;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(var(--accent-rgb),.3);
  border-radius: 7px;
  background: rgba(var(--accent-rgb),.1);
  color: var(--accent);
}

.file-grid:not(.is-list) {
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)) !important;
  gap: 8px !important;
}

.file-card {
  position: relative;
  min-height: 112px !important;
  padding: 10px 7px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  transition: background .13s ease, border-color .13s ease, transform .13s ease;
}
.file-card:hover { background: rgba(255,255,255,.055) !important; border-color: rgba(255,255,255,.09) !important; }
.file-card.is-selected { background: rgba(var(--accent-rgb),.14) !important; border-color: rgba(var(--accent-rgb),.42) !important; }

.file-icon {
  width: 58px !important;
  height: 58px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, rgba(231,189,75,.98), rgba(180,125,26,.78)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.35), 0 10px 20px rgba(0,0,0,.22) !important;
}
.file-icon .glyph { color: #fff !important; font-size: 34px !important; }
.file-icon.is-image { background-position: center !important; background-size: cover !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 10px 22px rgba(0,0,0,.25) !important; }
.file-icon.is-image .glyph { display: none !important; }
.file-ext {
  position: absolute !important;
  right: -4px !important;
  bottom: 2px !important;
  min-width: 27px;
  padding: 3px 4px !important;
  border-radius: 4px !important;
  background: rgba(3,7,8,.88) !important;
  color: #fff !important;
  font-size: 7px !important;
  letter-spacing: .08em;
}
.file-card[data-category="pdf"] .file-icon { background: linear-gradient(145deg,#e14e4e,#a91f28) !important; }
.file-card[data-category="word"] .file-icon { background: linear-gradient(145deg,#4388e7,#174a9d) !important; }
.file-card[data-category="sheet"] .file-icon { background: linear-gradient(145deg,#27a764,#12633c) !important; }
.file-card[data-category="presentation"] .file-icon { background: linear-gradient(145deg,#ec7a3f,#a6361e) !important; }
.file-card[data-category="video"] .file-icon { background: linear-gradient(145deg,#936ad8,#483085) !important; }
.file-card[data-category="audio"] .file-icon { background: linear-gradient(145deg,#28b9aa,#12645d) !important; }
.file-card[data-category="text"] .file-icon { background: linear-gradient(145deg,#6d8387,#34464a) !important; }
.file-card.is-private .file-icon { background: linear-gradient(145deg,var(--accent),#0b6570) !important; }
.private-badge {
  position: absolute !important;
  right: -7px;
  top: -7px;
  width: 22px !important;
  height: 22px !important;
  border: 2px solid #101617 !important;
  border-radius: 50% !important;
  background: #f2c94c !important;
  color: #18201f !important;
  font-size: 13px !important;
}

.photo-viewer {
  position: absolute !important;
  inset: 42px 0 0 0 !important;
  z-index: 10 !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #050707 !important;
}
.photo-viewer.is-hidden { display: none !important; }
.photo-viewer > header {
  display: flex !important;
  flex: 0 0 48px !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-width: 0;
  padding: 0 12px 0 16px !important;
  border-bottom: 1px solid rgba(255,255,255,.09) !important;
  background: rgba(15,20,21,.96) !important;
}
.photo-viewer > header > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.photo-viewer > header b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.photo-viewer > header button {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-width: 34px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 6px !important;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
}
.photo-stage {
  flex: 1 1 auto !important;
  display: grid !important;
  place-items: center !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 20px !important;
  background:
    radial-gradient(circle at center, rgba(var(--accent-rgb),.06), transparent 45%),
    #030505 !important;
}
.photo-stage img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 5px !important;
  box-shadow: 0 20px 55px rgba(0,0,0,.5) !important;
}

.preview-window { width: min(1050px, calc(100vw - 54px)) !important; height: min(760px, calc(100vh - 94px)) !important; }
.preview-toolbar {
  height: 58px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.preview-toolbar > div { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; min-width: 0; }
.preview-toolbar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.preview-toolbar small { grid-column: 2; opacity: .55; }
#previewTypeBadge { grid-row: 1 / span 2; padding: 7px 6px; border-radius: 5px; background: var(--accent); color: #041113; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.preview-toolbar > button { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: rgba(255,255,255,.06); color: inherit; }
.preview-content { height: calc(100% - 100px); min-height: 0; overflow: auto; background: #171b1c; }
.preview-content iframe,.preview-content video { display: block; width: 100%; height: 100%; border: 0; background: #202425; }
.preview-content video { object-fit: contain; background: #030404; }
.audio-preview { min-height: 100%; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at center,rgba(var(--accent-rgb),.15),transparent 40%),#080d0e; }
.audio-card { width: min(440px,100%); padding: 32px; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; background: rgba(255,255,255,.055); text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.audio-card .glyph { width: 88px !important; height: 88px !important; margin: 0 auto 18px; border-radius: 24px !important; background: linear-gradient(145deg,var(--accent),#14545c) !important; font-size: 46px; }
.audio-card h3 { margin: 0 0 24px; overflow-wrap: anywhere; }
.audio-card audio { width: 100%; }
.office-preview { min-height: 100%; padding: 28px; background: #2a2d2e; color: #1e2729; }
.document-page { width: min(760px,100%); min-height: 880px; margin: 0 auto; padding: 68px 72px; background: #fff; box-shadow: 0 15px 55px rgba(0,0,0,.28); line-height: 1.65; }
.document-page p { margin: 0 0 1em; white-space: pre-wrap; }
.sheet-page { width: max-content; min-width: min(900px,100%); margin: 0 auto; padding: 14px; background: #fff; box-shadow: 0 15px 55px rgba(0,0,0,.28); }
.sheet-page h3 { margin: 7px 6px 13px; }
.sheet-page table { border-collapse: collapse; font-size: 12px; }
.sheet-page th,.sheet-page td { min-width: 100px; padding: 7px 9px; border: 1px solid #cfd9d8; text-align: left; white-space: pre-wrap; }
.sheet-page th { min-width: 34px; background: #eaf1f0; text-align: center; }
.slide-deck { display: grid; gap: 24px; width: min(900px,100%); margin: 0 auto; }
.slide-card { aspect-ratio: 16/9; padding: 8%; display: flex; flex-direction: column; justify-content: center; background: #fff; box-shadow: 0 15px 55px rgba(0,0,0,.28); }
.slide-card h3 { margin: 0 0 18px; color: #0b737e; }
.slide-card p { margin: 7px 0; font-size: 17px; }
.unsupported-preview { min-height: 100%; display: grid; place-items: center; padding: 30px; text-align: center; background: #0a0f10; }
.unsupported-preview .glyph { font-size: 76px; color: var(--accent); }

.settings-window { width: min(920px,calc(100vw - 46px)) !important; height: min(700px,calc(100vh - 96px)) !important; }
.settings-layout { height: calc(100% - 42px) !important; grid-template-columns: 220px minmax(0,1fr) !important; }
.settings-layout > aside { padding: 21px 12px !important; background: rgba(255,255,255,.025) !important; border-right: 1px solid rgba(255,255,255,.08) !important; }
.settings-layout > aside > img { width: 40px !important; height: 40px !important; margin: 0 10px 8px; }
.settings-layout > aside h3,.settings-layout > aside small { margin-left: 10px; }
.settings-layout > aside small { display: block; margin-bottom: 22px; opacity: .48; font-size: 9px; letter-spacing: .1em; }
.settings-layout > aside button { width: 100%; display: flex; align-items: center; gap: 11px; min-height: 40px; margin: 3px 0; padding: 0 11px !important; border: 0 !important; border-radius: 7px !important; background: transparent !important; color: inherit !important; text-align: left; }
.settings-layout > aside button:hover { background: rgba(255,255,255,.055) !important; }
.settings-layout > aside button.is-active { background: rgba(var(--accent-rgb),.13) !important; color: var(--accent) !important; box-shadow: inset 3px 0 var(--accent); }
.settings-layout > section { overflow: auto !important; padding: 0 24px 34px !important; }
.settings-hero { position: sticky; top: 0; z-index: 1; height: 66px; display: flex; align-items: center; justify-content: space-between; background: rgba(8,12,13,.94); backdrop-filter: blur(15px); }
.settings-hero img { width: 128px; height: auto; }
.settings-hero span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.settings-page { display: none; }
.settings-page.is-active { display: block; }
.settings-page > h2 { margin: 4px 0 18px; font-size: 25px; }
.settings-card { min-height: 66px !important; margin: 8px 0 !important; padding: 0 16px !important; display: grid !important; grid-template-columns: 34px minmax(130px,1fr) minmax(120px,240px) !important; align-items: center !important; gap: 10px !important; border: 1px solid rgba(255,255,255,.09) !important; border-radius: 9px !important; background: rgba(255,255,255,.035) !important; }
.settings-card > .glyph { font-size: 22px; color: var(--accent); }
.settings-card small { opacity: .56; }
.settings-card input[type="range"] { width: 100%; accent-color: var(--accent); }
.personal-section { margin: 17px 0 20px; }
.personal-section h3 { margin: 0 0 10px; font-size: 13px; }
.wallpaper-choices { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.wallpaper-choices button { padding: 7px; border: 2px solid transparent; border-radius: 9px; background: rgba(255,255,255,.035); color: inherit; }
.wallpaper-choices button.is-active { border-color: var(--accent); }
.wallpaper-choices i { display: block; height: 68px; margin-bottom: 7px; border-radius: 6px; background: radial-gradient(circle at 72% 26%,rgba(26,177,195,.38),transparent 30%),linear-gradient(135deg,#030606,#0b181a); }
.wallpaper-choices button:nth-child(2) i { background: linear-gradient(155deg,transparent 48%,rgba(26,177,195,.24) 49%,transparent 51%),linear-gradient(25deg,#050707,#152326); }
.wallpaper-choices button:nth-child(3) i { background: radial-gradient(circle,rgba(26,177,195,.2),transparent 35%),#050808; }
.wallpaper-choices button:nth-child(4) i { background: radial-gradient(circle at 72% 26%,rgba(26,177,195,.25),transparent 33%),linear-gradient(135deg,#edf4f3,#cfdad9); }
.wallpaper-choices span { font-size: 10px; }
.accent-choices { display: flex; gap: 10px; }
.accent-choices button { width: 32px; height: 32px; padding: 0; border: 3px solid transparent; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.accent-choices button.is-active { border-color: #fff; box-shadow: 0 0 0 2px var(--swatch); }
.language-hint { display: flex; gap: 14px; margin-top: 18px; padding: 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: rgba(255,255,255,.03); }
.language-hint .glyph { font-size: 24px; color: var(--accent); }
.language-hint p { margin: 5px 0 0; opacity: .58; }

.toggle.is-on { background: var(--accent) !important; }

.taskbar {
  height: var(--taskbar-height) !important;
  padding: 7px 8px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  background: rgba(8, 12, 13, .82) !important;
  border-top: 1px solid rgba(255,255,255,.105) !important;
  box-shadow: 0 -12px 38px rgba(0,0,0,.24) !important;
  backdrop-filter: blur(28px) saturate(135%) !important;
}
.taskbar > .task-tray { position: absolute !important; right: 8px; }
.task-center { display: flex !important; align-items: center; gap: 4px !important; height: 48px; padding: 3px 5px; border-radius: 11px; }
.task-center button,#startButton,#taskSearch {
  position: relative;
  width: 42px !important;
  height: 42px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
}
.task-center button:hover,#startButton:hover,#taskSearch:hover,.task-center button.is-panel-open { background: rgba(255,255,255,.075) !important; border-color: rgba(255,255,255,.06) !important; }
.task-center button.is-active { background: rgba(255,255,255,.08) !important; }
.task-center > button.is-running::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 3px;
  border-radius: 3px;
  background: rgba(224,238,237,.72);
  transform: translateX(-50%);
  transition: width .16s ease,background .16s ease;
}
.task-center > button.is-active::after { width: 17px; background: var(--accent); }
.task-search span { display: none !important; }
.taskbar .glyph { font-size: 23px; }
.tray-shell {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
}
.tray-shell button { height: 36px !important; border: 0 !important; border-radius: 6px !important; background: transparent !important; color: inherit !important; }
.tray-shell button:hover,.tray-shell button.is-panel-open { background: rgba(255,255,255,.08) !important; }
.tray-language { min-width: 42px !important; padding: 0 8px !important; font-size: 10px !important; font-weight: 700; letter-spacing: .03em; }
#quickButton { width: 61px !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 5px !important; }
#quickButton .glyph { font-size: 16px !important; }
#clockButton { min-width: 72px !important; padding: 3px 9px !important; display: flex !important; flex-direction: column !important; align-items: flex-end !important; justify-content: center !important; font-variant-numeric: tabular-nums; }
#clockButton time { font-size: 11px !important; font-weight: 600; line-height: 1.05; }
#clockButton span { font-size: 9px !important; opacity: .68; line-height: 1.05; }
#showDesktop { width: 7px !important; height: 44px !important; margin-left: 4px !important; border: 0 !important; border-left: 1px solid rgba(255,255,255,.18) !important; border-radius: 0 !important; background: transparent !important; }
#desktop.taskbar-compact { --taskbar-height: 50px; }
#desktop.taskbar-compact .taskbar { padding-top: 3px !important; padding-bottom: 3px !important; }
#desktop.taskbar-compact .task-center,#desktop.taskbar-compact .tray-shell { height: 40px; }
#desktop.taskbar-compact .task-center button,#desktop.taskbar-compact #startButton,#desktop.taskbar-compact #taskSearch { width: 36px !important; height: 36px !important; }
#desktop.taskbar-compact .tray-shell button { height: 32px !important; }

.start-menu,.quick-panel,.calendar-panel,.language-panel,.context-menu {
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(11,16,18,.94) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.5) !important;
  backdrop-filter: blur(28px) saturate(135%) !important;
}
.start-apps .glyph { font-size: 31px; }
.quick-actions .glyph { font-size: 24px; color: var(--accent); }
.start-apps button { transition: background .14s ease,transform .14s ease; }
.start-apps button:active { transform: scale(.96); }
.window { transition: border-color .14s ease,box-shadow .14s ease; }
.window.is-open:not(.is-maximized) { resize: both; }
.window:not(.is-focused) { border-color: rgba(255,255,255,.075); box-shadow: 0 18px 55px rgba(0,0,0,.34),0 2px 10px rgba(0,0,0,.18); }
.window:not(.is-focused) .window-titlebar { filter: saturate(.72); }
.window.is-focused .window-titlebar::before { opacity: 1; }
.window:not(.is-focused) .window-titlebar::before { opacity: .35; }
.context-menu { min-width: 220px !important; padding: 5px !important; border-radius: 9px !important; }
.context-menu button { min-height: 34px !important; padding: 0 9px !important; border-radius: 5px !important; }
.context-menu button:hover { background: rgba(var(--accent-rgb),.13) !important; }
.context-menu .glyph { font-size: 18px; color: var(--accent); }

.secure-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.56);
  backdrop-filter: blur(8px);
}
.secure-dialog {
  width: min(410px,100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: #101617;
  color: #f6f9f9;
  box-shadow: 0 30px 90px rgba(0,0,0,.58);
}
.secure-dialog header { display: flex; align-items: center; gap: 11px; padding: 20px 21px 13px; }
.secure-dialog header .glyph { width: 38px !important; height: 38px !important; border-radius: 10px !important; background: rgba(var(--accent-rgb),.14) !important; color: var(--accent); font-size: 22px; }
.secure-dialog header h3 { margin: 0; font-size: 17px; }
.secure-dialog header p { margin: 3px 0 0; opacity: .58; font-size: 11px; }
.secure-dialog form { padding: 8px 21px 21px; }
.secure-dialog label { display: block; margin: 10px 0; }
.secure-dialog label span { display: block; margin-bottom: 5px; opacity: .68; font-size: 11px; }
.secure-dialog input { width: 100%; height: 40px; padding: 0 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; outline: 0; background: rgba(255,255,255,.06); color: #fff; }
.secure-dialog input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.13); }
.secure-error { min-height: 17px; margin: 5px 0 0; color: #ff8c86; font-size: 11px; }
.secure-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.secure-actions button { height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: rgba(255,255,255,.06); color: #fff; }
.secure-actions button[type="submit"] { border-color: var(--accent); background: var(--accent); color: #041113; font-weight: 750; }

@media (max-width: 760px) {
  .settings-layout { grid-template-columns: 64px minmax(0,1fr) !important; }
  .settings-layout > aside h3,.settings-layout > aside small,.settings-layout > aside button span { display: none; }
  .settings-layout > aside button { justify-content: center; padding: 0 !important; }
  .settings-layout > section { padding-left: 14px !important; padding-right: 14px !important; }
  .wallpaper-choices { grid-template-columns: repeat(2,1fr); }
  .settings-card { grid-template-columns: 30px 1fr !important; padding: 10px 12px !important; }
  .settings-card > input,.settings-card > button { grid-column: 2; width: 100%; }
  .taskbar { justify-content: flex-start !important; }
  .tray-language { display: none !important; }
  .preview-window { width: calc(100vw - 12px) !important; height: calc(100vh - 72px) !important; }
  .document-page { padding: 30px 24px; }
}

.glyph-search { position: relative !important; }
.glyph-search::before { content: "" !important; position: relative !important; width: .62em !important; height: .62em !important; border: .11em solid currentColor !important; border-radius: 50% !important; font-family: inherit !important; }
.glyph-search::after { content: "" !important; position: absolute !important; display: block !important; right: .08em !important; bottom: .12em !important; width: .42em !important; height: .11em !important; border: 0 !important; border-radius: 2px !important; background: currentColor !important; transform: rotate(45deg) !important; }
.glyph-sort-asc::before { content: "A↓" !important; font-family: "Segoe UI",sans-serif !important; font-size: .72em !important; font-weight: 750 !important; }
.glyph-sort-desc::before { content: "Я↓" !important; font-family: "Segoe UI",sans-serif !important; font-size: .72em !important; font-weight: 750 !important; }

.spreadsheet-window {
  width: min(1380px, calc(100vw - 46px)) !important;
  height: min(860px, calc(100vh - 82px)) !important;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  min-width: 840px;
}
.spreadsheet-window .window-brand small {
  margin-left: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .14);
  color: var(--accent);
  font-size: 8px;
  letter-spacing: .06em;
}
.spreadsheet-appbar {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(240px,1fr) auto minmax(220px,360px);
  align-items: center;
  gap: 12px;
  padding: 7px 13px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.025);
}
.spreadsheet-file { min-width: 0; display: flex; align-items: center; gap: 10px; }
.spreadsheet-file > div { min-width: 0; }
.spreadsheet-file b,.spreadsheet-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spreadsheet-file b { font-size: 12px; }
.spreadsheet-file small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.spreadsheet-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg,var(--accent),#08737f); color: #fff; font-size: 23px; font-weight: 850; box-shadow: inset 0 1px rgba(255,255,255,.32),0 8px 20px rgba(0,0,0,.2); }
.spreadsheet-quick { display: flex; align-items: center; gap: 3px; }
.spreadsheet-quick button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 5px; background: transparent; color: inherit; font-size: 17px; }
.spreadsheet-quick button:hover { border-color: rgba(255,255,255,.09); background: rgba(255,255,255,.055); }
.spreadsheet-quick .glyph { font-size: 17px; color: var(--accent); }
.spreadsheet-search { height: 35px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 7px; background: rgba(255,255,255,.045); }
.spreadsheet-search .glyph { font-size: 17px; color: var(--muted); }
.spreadsheet-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: inherit; }
.spreadsheet-ribbon { min-height: 104px; display: flex; align-items: stretch; overflow-x: auto; overflow-y: hidden; padding: 5px 4px 0; border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.018); scrollbar-width: thin; }
.ribbon-group { flex: 0 0 auto; min-width: 112px; display: flex; flex-direction: column; justify-content: space-between; gap: 3px; padding: 3px 8px 2px; border-right: 1px solid rgba(255,255,255,.085); }
.ribbon-group > small { display: block; color: var(--muted); text-align: center; font-size: 7px; letter-spacing: .02em; }
.ribbon-row { display: flex; align-items: center; gap: 3px; }
.ribbon-row > div { display: grid; gap: 2px; }
.ribbon-group button,.ribbon-group select,.ribbon-group input { height: 27px; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; background: rgba(255,255,255,.045); color: inherit; font-size: 9px; }
.ribbon-group button { padding: 0 7px; white-space: nowrap; }
.ribbon-group button:hover,.ribbon-group select:hover { background: rgba(var(--accent-rgb),.11); border-color: rgba(var(--accent-rgb),.25); }
.ribbon-group button.is-on { background: rgba(var(--accent-rgb),.2); border-color: var(--accent); color: var(--accent); }
.ribbon-group select { min-width: 92px; padding: 0 22px 0 7px; }
.ribbon-group select option { background: #172020; color: #fff; }
.ribbon-group .compact-select { min-width: 54px; width: 58px; }
.ribbon-group .ribbon-big { height: 57px; min-width: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ribbon-big span { color: var(--accent); font-size: 20px; }
.ribbon-big b { font-size: 8px; }
.font-group { min-width: 255px; }
.align-group { min-width: 194px; }
.number-group { min-width: 160px; }
.structure-group { min-width: 184px; }
.data-group { min-width: 184px; }
.format-toggle { min-width: 29px; padding: 0 6px !important; font-size: 12px !important; }
.excel-color-button { width: 43px; min-width: 43px; padding: 0 4px !important; display: grid; grid-template-columns: 1fr 9px; grid-template-rows: 17px 4px; align-items: center; justify-items: center; gap: 0; }
.excel-color-button b { grid-row: 1; font-size: 13px; line-height: 1; }
.excel-color-button > span { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); font-size: 8px; }
.excel-color-button > i { grid-column: 1; grid-row: 2; width: 22px; height: 4px; border: 1px solid rgba(0,0,0,.12); background: var(--swatch); }
.native-color-input { position: fixed !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }
.spreadsheet-color-palette { position: fixed; z-index: 2450; width: 252px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); box-shadow: 0 18px 52px rgba(0,0,0,.42); }
.spreadsheet-color-palette h4 { margin: 2px 1px 7px; color: var(--muted); font-size: 9px; font-weight: 650; }
.spreadsheet-color-palette-grid { display: grid; grid-template-columns: repeat(10,20px); gap: 3px; }
.spreadsheet-color-palette-grid + h4 { margin-top: 11px; }
.spreadsheet-color-swatch { width: 20px !important; height: 20px !important; padding: 0 !important; border: 1px solid rgba(128,128,128,.28) !important; border-radius: 2px !important; background: var(--color) !important; }
.spreadsheet-color-swatch:hover,.spreadsheet-color-swatch.is-current { outline: 2px solid var(--accent); outline-offset: 1px; }
.spreadsheet-color-palette footer { display: grid; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.spreadsheet-color-palette footer button { min-height: 29px; border: 0; border-radius: 4px; background: transparent; color: inherit; text-align: left; font-size: 9px; }
.spreadsheet-color-palette footer button:hover { background: var(--hover); }
.danger-ribbon { color: #ee8a84 !important; }
.serial-search-panel { min-height: 62px; display: grid; grid-template-columns: minmax(280px,1fr) minmax(250px,1.3fr) auto; align-items: center; gap: 15px; padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,.09); background: linear-gradient(90deg,rgba(var(--accent-rgb),.15),rgba(var(--accent-rgb),.035)); }
.serial-search-panel > div { display: flex; align-items: center; gap: 10px; }
.serial-search-panel .glyph { width: 35px !important; height: 35px !important; border-radius: 9px !important; background: rgba(var(--accent-rgb),.13) !important; color: var(--accent); font-size: 20px; }
.serial-search-panel b,.serial-search-panel small { display: block; }
.serial-search-panel b { font-size: 11px; }
.serial-search-panel small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.serial-search-panel input { height: 36px; padding: 0 11px; border: 1px solid rgba(var(--accent-rgb),.32); border-radius: 7px; outline: 0; background: rgba(0,0,0,.18); color: inherit; }
.serial-search-panel input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.12); }
.serial-search-panel > span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.formula-bar { min-height: 36px; display: grid; grid-template-columns: 74px 34px minmax(0,1fr) auto; align-items: stretch; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.035); }
.formula-bar output { display: grid; place-items: center; border-right: 1px solid rgba(255,255,255,.1); color: var(--accent); font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.formula-bar > span { display: grid; place-items: center; border-right: 1px solid rgba(255,255,255,.1); color: var(--muted); font-family: Georgia,serif; font-style: italic; }
.formula-bar input { min-width: 0; padding: 0 10px; border: 0; outline: 0; background: transparent; color: inherit; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 11px; }
.formula-bar input:focus { box-shadow: inset 0 -2px var(--accent); }
.formula-bar button { margin: 4px 6px; padding: 0 12px; border: 0; border-radius: 5px; background: var(--accent); color: #031113; font-size: 9px; font-weight: 750; }
.spreadsheet-grid { min-width: 0; min-height: 0; flex: 1 1 auto; overflow: auto; outline: 0; background: #fff; color: #17201f; scroll-behavior: smooth; }
.spreadsheet-grid table { --sheet-zoom: 1; width: max-content; min-width: 100%; border-spacing: 0; border-collapse: separate; table-layout: fixed; font-family: Aptos,"Segoe UI",sans-serif; font-size: calc(11px * var(--sheet-zoom)); }
.spreadsheet-grid th,.spreadsheet-grid td { height: calc(27px * var(--sheet-zoom)); box-sizing: border-box; border-right: 1px solid #d8dfde; border-bottom: 1px solid #d8dfde; }
.spreadsheet-grid thead th { position: sticky; top: 0; z-index: 5; min-width: calc(128px * var(--sheet-zoom)); padding: 0 6px; background: #eef2f1; color: #4b5958; text-align: center; font-size: calc(9px * var(--sheet-zoom)); font-weight: 600; }
.spreadsheet-grid thead th.is-active { background: #d7efed; color: #096e78; }
.spreadsheet-grid .spreadsheet-corner,.spreadsheet-grid .spreadsheet-row-number { width: calc(43px * var(--sheet-zoom)); min-width: calc(43px * var(--sheet-zoom)); max-width: calc(43px * var(--sheet-zoom)); }
.spreadsheet-grid .spreadsheet-corner { left: 0; z-index: 8; }
.spreadsheet-grid .spreadsheet-row-number { position: sticky; left: 0; z-index: 4; padding: 0 5px; background: #eef2f1; color: #61706f; text-align: right; font-size: calc(9px * var(--sheet-zoom)); font-weight: 500; }
.spreadsheet-cell { min-width: calc(128px * var(--sheet-zoom)); max-width: calc(128px * var(--sheet-zoom)); padding: 3px 7px; overflow: hidden; background: #fff; color: #17201f; text-overflow: ellipsis; white-space: nowrap; user-select: none; }
.spreadsheet-cell:hover { background: #f4fbfa; }
.spreadsheet-cell.is-selected { position: relative; overflow: visible; background-image: linear-gradient(rgba(21,152,167,.10),rgba(21,152,167,.10)); box-shadow: inset 0 0 0 2px #1598a7; }
.spreadsheet-cell.is-selected::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 5px; height: 5px; background: #1598a7; }
.spreadsheet-cell[contenteditable="plaintext-only"] { z-index: 7; overflow: visible; outline: 0; white-space: pre; user-select: text; box-shadow: inset 0 0 0 2px var(--accent),0 6px 20px rgba(0,0,0,.14); }
.spreadsheet-cell.is-wrapped { white-space: normal; overflow-wrap: anywhere; }
.spreadsheet-cell.has-custom-border { border-color: #9eaeac; }
.spreadsheet-row-number.is-active { background: #d7efed; color: #096e78; }
.spreadsheet-loading { min-height: 100%; display: grid; place-items: center; color: #52615f; }
.spreadsheet-loading.is-error { color: #b52d35; }
.spreadsheet-window.is-busy::after { content: ""; position: absolute; z-index: 80; inset: 42px 0 0; cursor: progress; background: linear-gradient(90deg,transparent,rgba(var(--accent-rgb),.12),transparent); background-size: 200% 100%; animation: spreadsheetBusy 1s linear infinite; pointer-events: all; }
@keyframes spreadsheetBusy { to { background-position: -200% 0; } }
.spreadsheet-footer { min-height: 39px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; border-top: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.025); }
.sheet-tab-shell { min-width: 0; display: grid; grid-template-columns: 35px minmax(0,1fr) 35px; align-items: stretch; }
.add-sheet-button,.sheet-menu-button { border: 0; background: transparent; color: var(--muted); font-size: 17px; }
.add-sheet-button:hover,.sheet-menu-button:hover { background: rgba(var(--accent-rgb),.11); color: var(--accent); }
.spreadsheet-tabs { min-width: 0; display: flex; align-items: end; gap: 2px; overflow-x: auto; padding: 4px 4px 0; }
.spreadsheet-tabs button { height: 31px; padding: 0 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); white-space: nowrap; font-size: 9px; }
.spreadsheet-tabs button:hover { background: rgba(255,255,255,.055); color: inherit; }
.spreadsheet-tabs button.is-active { border-bottom-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb),.09); }
.spreadsheet-status { display: flex; align-items: center; gap: 10px; padding: 0 11px; color: var(--muted); font-size: 8px; }
.spreadsheet-status > span { max-width: 270px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spreadsheet-status label { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.spreadsheet-status input { width: 95px; accent-color: var(--accent); }
.spreadsheet-status output { width: 32px; font-variant-numeric: tabular-nums; }

/* Excel-style command surface and scalable worksheet canvas. */
.spreadsheet-window { width: calc(100vw - 24px) !important; height: calc(100vh - 76px) !important; max-width: 1760px; top: calc(50% - 7px); }
.spreadsheet-window.is-maximized { inset: 0 0 49px 0 !important; width: auto !important; height: auto !important; max-width: none !important; min-width: 0 !important; transform: none !important; border-radius: 0 !important; }
.spreadsheet-window.is-maximized .window-titlebar { height: 37px; }
.spreadsheet-ribbon-tabs { min-height: 31px; display: flex; align-items: end; gap: 1px; overflow-x: auto; padding: 0 7px; border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.012); scrollbar-width: thin; }
.spreadsheet-ribbon-tabs button { height: 30px; flex: 0 0 auto; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 9px; white-space: nowrap; }
.spreadsheet-ribbon-tabs button:hover { background: rgba(255,255,255,.05); color: inherit; }
.spreadsheet-ribbon-tabs button.is-active { border-bottom-color: var(--accent); color: var(--accent); }
.spreadsheet-ribbon-tabs .file-tab { margin-left: -7px; padding-inline: 18px; background: linear-gradient(135deg,#08737f,var(--accent)); color: #fff; font-weight: 750; }
.spreadsheet-ribbon.ribbon-panel { display: none; min-height: 96px; }
.spreadsheet-ribbon.ribbon-panel.is-active { display: flex; }
.styles-group { min-width: 250px; }
.chart-group { min-width: 300px; }
.function-select { min-width: 230px !important; }
.ribbon-group .font-name-input { width: 155px; min-width: 155px; padding: 0 7px; }
.ribbon-group input[type="number"] { padding: 0 4px; }
.ribbon-group optgroup,.ribbon-group option { font-style: normal; }
.spreadsheet-window.is-readonly .admin-only { display: none !important; }
.spreadsheet-window.is-readonly .spreadsheet-ribbon { min-height: 64px; }

.formula-bar { grid-template-columns: 92px 28px 28px 34px minmax(0,1fr); }
.formula-bar #spreadsheetCellName { min-width: 0; padding: 0 8px; border: 0; border-right: 1px solid rgba(255,255,255,.1); outline: 0; background: transparent; color: var(--accent); text-align: center; font: 750 10px Aptos,"Segoe UI",sans-serif; }
.formula-bar #spreadsheetCellName:focus { box-shadow: inset 0 -2px var(--accent); }
.formula-bar .formula-command,.formula-bar .formula-fx { width: 28px; min-width: 0; margin: 0; padding: 0; border: 0; border-right: 1px solid rgba(255,255,255,.1); border-radius: 0; background: transparent; color: var(--muted); font-size: 14px; }
.formula-bar .formula-command:hover,.formula-bar .formula-fx:hover { background: rgba(var(--accent-rgb),.11); color: var(--accent); }
.formula-bar .formula-fx { width: 34px; font-family: Georgia,serif; font-size: 12px; font-style: italic; }
.formula-bar #spreadsheetFormula { padding-left: 9px; }
.formula-bar #spreadsheetValidationPicker { min-width: 0; width: 100%; padding: 0 34px 0 10px; border: 0; outline: 0; background: color-mix(in srgb,var(--accent) 8%,transparent); color: inherit; font: 650 10px Aptos,"Segoe UI",sans-serif; }
.formula-bar #spreadsheetValidationPicker:focus { box-shadow: inset 0 -2px var(--accent); }

.spreadsheet-workarea { position: relative; min-width: 0; min-height: 0; flex: 1 1 auto; display: flex; overflow: hidden; }
.spreadsheet-workarea .spreadsheet-grid { width: 100%; height: 100%; }
.spreadsheet-grid thead th { min-width: calc(72px * var(--sheet-zoom)); }
.spreadsheet-cell { min-width: calc(72px * var(--sheet-zoom)); max-width: calc(72px * var(--sheet-zoom)); padding: 2px 5px; }
.spreadsheet-grid th,.spreadsheet-grid td { height: calc(22px * var(--sheet-zoom)); }
.spreadsheet-virtual-spacer th { height: inherit !important; padding: 0 !important; border: 0 !important; background: #fff !important; }
.spreadsheet-grid.no-gridlines th,.spreadsheet-grid.no-gridlines td { border-color: transparent; }
.spreadsheet-grid.no-headings thead,.spreadsheet-grid.no-headings .spreadsheet-row-number { visibility: hidden; }
.spreadsheet-grid.show-formulas .spreadsheet-cell[data-formula] { color: #315e99 !important; font-family: Consolas,monospace !important; }
.spreadsheet-cell.is-active-cell { z-index: 3; box-shadow: inset 0 0 0 2px #0d7f89 !important; }
.spreadsheet-cell.is-active-cell::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 6px; height: 6px; border: 1px solid #fff; background: #0d7f89; cursor: crosshair; }
.spreadsheet-cell.has-validation { position: relative; padding-right: 24px; }
.spreadsheet-cell.has-validation .cell-validation-value { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: inherit; }
.spreadsheet-cell.has-validation .cell-validation-dot { position: absolute; left: 3px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--validation-tone,var(--accent)); transform: translateY(-50%); }
.spreadsheet-cell.has-validation .cell-validation-dot + .cell-validation-value { padding-left: 7px; }
.cell-validation-button { position: absolute; z-index: 6; right: 2px; top: 2px; width: 18px; height: calc(100% - 4px); display: none; place-items: center; padding: 0; border: 1px solid #aab9b8; border-radius: 2px; background: #eef3f2; color: #344443; font-size: 9px; cursor: pointer; }
.spreadsheet-cell.has-validation:hover .cell-validation-button,.spreadsheet-cell.has-validation.is-active-cell .cell-validation-button { display: grid; }
.cell-validation-editor { position: absolute; z-index: 15; inset: 1px; width: calc(100% - 2px); min-width: 165px; height: calc(100% - 2px); padding: 0 24px 0 5px; border: 2px solid var(--accent); border-radius: 2px; outline: 0; background: #fff; color: #17201f; font: inherit; }

.spreadsheet-chart-panel { position: absolute; z-index: 30; right: 18px; top: 18px; width: min(720px,calc(100% - 36px)); max-height: calc(100% - 36px); overflow: hidden; border: 1px solid rgba(var(--accent-rgb),.45); border-radius: 10px; background: rgba(13,22,22,.98); box-shadow: 0 24px 70px rgba(0,0,0,.44); }
.spreadsheet-chart-panel[hidden] { display: none; }
.spreadsheet-chart-panel header,.spreadsheet-chart-panel footer { min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; border-bottom: 1px solid rgba(255,255,255,.09); }
.spreadsheet-chart-panel footer { justify-content: flex-end; border-top: 1px solid rgba(255,255,255,.09); border-bottom: 0; }
.spreadsheet-chart-panel button { height: 27px; padding: 0 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 5px; background: rgba(255,255,255,.055); color: inherit; }
.spreadsheet-chart-panel canvas { display: block; width: 100%; height: auto; max-height: calc(100vh - 310px); background: #fff; }
.spreadsheet-status #spreadsheetModeStatus { color: var(--accent); }

#desktop[data-theme="light"] .spreadsheet-ribbon-tabs { background: #f6f8f8; border-color: rgba(13,42,45,.13); }
#desktop[data-theme="light"] .spreadsheet-ribbon-tabs button:hover { background: rgba(13,42,45,.06); }
#desktop[data-theme="light"] .ribbon-group input,
#desktop[data-theme="light"] .formula-bar #spreadsheetCellName { background: #fff !important; color: #172122 !important; border-color: rgba(13,42,45,.16) !important; }
#desktop[data-theme="light"] .spreadsheet-chart-panel { background: rgba(248,251,250,.99); color: #172122; box-shadow: 0 24px 70px rgba(18,43,45,.24); }

@media print {
  body:not([data-office-print]) * { visibility: hidden !important; }
  body:not([data-office-print]) #spreadsheetWindow,
  body:not([data-office-print]) #spreadsheetWindow .spreadsheet-workarea,
  body:not([data-office-print]) #spreadsheetGrid,
  body:not([data-office-print]) #spreadsheetGrid * { visibility: visible !important; }
  body:not([data-office-print]) #spreadsheetWindow { position: absolute !important; inset: 0 !important; width: 100% !important; height: auto !important; transform: none !important; border: 0 !important; box-shadow: none !important; }
  body:not([data-office-print]) #spreadsheetWindow > :not(.spreadsheet-workarea) { display: none !important; }
  body:not([data-office-print]) #spreadsheetGrid { overflow: visible !important; }
}

/* A single light palette for the desktop, windows, taskbar and detached panels. */
#desktop[data-theme="light"],html[data-os-theme="light"] {
  --surface: #f4f7f7;
  --surface-2: #e9eeee;
  --surface-3: #ffffff;
  --text: #172122;
  --muted: #627071;
  --line: rgba(13,42,45,.14);
  --hover: rgba(var(--accent-rgb),.11);
  --task: rgba(241,246,245,.91);
  --panel-surface: rgba(247,250,250,.94);
  --panel-border: rgba(13,42,45,.15);
  color-scheme: light;
}
#desktop[data-theme="light"] .window { background: rgba(248,250,250,.975) !important; color: var(--text) !important; box-shadow: 0 28px 80px rgba(18,43,45,.22),0 0 0 1px rgba(255,255,255,.65) !important; }
#desktop[data-theme="light"] .window-titlebar,
#desktop[data-theme="light"] .command-bar,
#desktop[data-theme="light"] .explorer-topbar,
#desktop[data-theme="light"] .spreadsheet-appbar,
#desktop[data-theme="light"] .spreadsheet-ribbon,
#desktop[data-theme="light"] .formula-bar,
#desktop[data-theme="light"] .spreadsheet-footer,
#desktop[data-theme="light"] .preview-toolbar,
#desktop[data-theme="light"] .notepad-toolbar { background: rgba(239,244,243,.92) !important; border-color: rgba(13,42,45,.13) !important; }
#desktop[data-theme="light"] .window-actions button:hover,
#desktop[data-theme="light"] .settings-layout > aside button:hover,
#desktop[data-theme="light"] .spreadsheet-quick button:hover,
#desktop[data-theme="light"] .spreadsheet-tabs button:hover { background: rgba(13,42,45,.07) !important; border-color: rgba(13,42,45,.08) !important; }
#desktop[data-theme="light"] .explorer-nav,
#desktop[data-theme="light"] .details-pane,
#desktop[data-theme="light"] .window-status,
#desktop[data-theme="light"] .settings-layout > aside { background: #eaf0ef !important; border-color: rgba(13,42,45,.13) !important; }
#desktop[data-theme="light"] .file-surface,
#desktop[data-theme="light"] .photo-gallery,
#desktop[data-theme="light"] .notepad-window textarea { background: #f9fbfb !important; color: var(--text) !important; }
#desktop[data-theme="light"] .file-card:hover { background: rgba(13,42,45,.055) !important; border-color: rgba(13,42,45,.09) !important; }
#desktop[data-theme="light"] .disk-card,
#desktop[data-theme="light"] .detail-visual,
#desktop[data-theme="light"] .settings-card,
#desktop[data-theme="light"] .system-stats > div,
#desktop[data-theme="light"] .language-hint,
#desktop[data-theme="light"] .wallpaper-choices button { background: #fff !important; border-color: rgba(13,42,45,.13) !important; }
#desktop[data-theme="light"] .settings-hero { background: rgba(248,250,250,.94) !important; }
#desktop[data-theme="light"] .settings-hero img { filter: none !important; }
#desktop[data-theme="light"] .taskbar { background: rgba(241,246,245,.88) !important; color: #172122 !important; border-color: rgba(13,42,45,.14) !important; box-shadow: 0 -12px 36px rgba(18,43,45,.12) !important; }
#desktop[data-theme="light"] .task-center button,
#desktop[data-theme="light"] .taskbar .tray-shell button,
#desktop[data-theme="light"] .taskbar .glyph { color: #172122 !important; }
#desktop[data-theme="light"] .task-center button:hover,
#desktop[data-theme="light"] .tray-shell button:hover { background: rgba(13,42,45,.07) !important; }
#desktop[data-theme="light"] .tray-shell { border-color: rgba(13,42,45,.11); background: rgba(255,255,255,.56); }
#desktop[data-theme="light"] #showDesktop { border-left-color: rgba(13,42,45,.22) !important; }
#desktop[data-theme="light"] .start-menu,
#desktop[data-theme="light"] .quick-panel,
#desktop[data-theme="light"] .calendar-panel,
#desktop[data-theme="light"] .context-menu { background: rgba(248,251,250,.96) !important; color: var(--text) !important; border-color: rgba(13,42,45,.14) !important; box-shadow: 0 24px 65px rgba(18,43,45,.22) !important; }
#desktop[data-theme="light"] .quick-actions button,
#desktop[data-theme="light"] .quick-panel footer,
#desktop[data-theme="light"] .start-menu footer,
#desktop[data-theme="light"] .reminder-item { background: rgba(232,239,238,.86) !important; border-color: rgba(13,42,45,.12) !important; color: var(--text) !important; }
#desktop[data-theme="light"] .preview-content { background: #e1e8e7 !important; }
#desktop[data-theme="light"] .unsupported-preview,
#desktop[data-theme="light"] .audio-preview { background: #edf3f2 !important; color: var(--text) !important; }
#desktop[data-theme="light"] .audio-card { background: #fff !important; border-color: rgba(13,42,45,.13) !important; }
#desktop[data-theme="light"] .spreadsheet-search,
#desktop[data-theme="light"] .serial-search-panel input,
#desktop[data-theme="light"] .ribbon-group button,
#desktop[data-theme="light"] .ribbon-group select,
#desktop[data-theme="light"] .excel-color-button { background: #fff !important; color: var(--text) !important; border-color: rgba(13,42,45,.16) !important; }
#desktop[data-theme="light"] .formula-bar #spreadsheetValidationPicker { background: #fff !important; color: #172122 !important; }
#desktop[data-theme="light"] .ribbon-group select option { background: #fff; color: #172122; }
#desktop[data-theme="light"] .ribbon-group { border-color: rgba(13,42,45,.12); }
#desktop[data-theme="light"] .serial-search-panel { border-color: rgba(13,42,45,.13) !important; }
#desktop[data-theme="light"] .formula-bar output,
#desktop[data-theme="light"] .formula-bar > span { border-color: rgba(13,42,45,.13) !important; }
#desktop[data-theme="light"] .spreadsheet-footer { border-color: rgba(13,42,45,.13) !important; }
#desktop[data-theme="light"] .desktop-icon { color: #172122 !important; text-shadow: 0 1px 3px rgba(255,255,255,.95) !important; }
#desktop[data-theme="light"] .desktop-icon:hover { background: rgba(255,255,255,.52) !important; border-color: rgba(13,42,45,.11) !important; }
html[data-os-theme="light"] .language-panel,
html[data-os-theme="light"] .virtual-keyboard,
html[data-os-theme="light"] .dialog,
html[data-os-theme="light"] .toast,
html[data-os-theme="light"] .secure-dialog { background: #f8fbfa !important; color: #172122 !important; border-color: rgba(13,42,45,.15) !important; box-shadow: 0 24px 70px rgba(18,43,45,.23) !important; }
html[data-os-theme="light"] .keyboard-key,
html[data-os-theme="light"] .dialog input,
html[data-os-theme="light"] .dialog footer button,
html[data-os-theme="light"] .secure-dialog input,
html[data-os-theme="light"] .secure-actions button { background: #fff !important; color: #172122 !important; border-color: rgba(13,42,45,.15) !important; }
html[data-os-theme="light"] .secure-actions button[type="submit"] { background: var(--accent) !important; color: #041113 !important; }

@media (max-width: 900px) {
  .spreadsheet-window { inset: 0 0 var(--taskbar-height) !important; width: auto !important; height: auto !important; min-width: 0; transform: none !important; border-radius: 0 !important; }
  .spreadsheet-appbar { grid-template-columns: minmax(180px,1fr) auto; }
  .spreadsheet-search { grid-column: 1 / -1; }
  .serial-search-panel { grid-template-columns: 1fr; }
  .spreadsheet-status > span,.spreadsheet-status label { display: none; }
}

/* Seven Hills Office 7.7 -------------------------------------------------- */
.glyph-save { --symbol:"save"; }

/* Office glyphs never depend on an optional font ligature. */
.glyph-word::before,.glyph-sheet::before,.glyph-presentation::before,.glyph-pdf::before {
  width: 1.05em !important; height: 1.05em !important; display: grid !important; place-items: center !important;
  border-radius: .20em !important; color: #fff !important; font-family: "Segoe UI",sans-serif !important;
  font-size: .72em !important; font-weight: 800 !important; letter-spacing: 0 !important; line-height: 1 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18),0 .08em .18em rgba(0,0,0,.2) !important;
}
.glyph-word::before { content:"W" !important; background:linear-gradient(145deg,#2b78d0,#174c8d) !important; }
.glyph-sheet::before { content:"X" !important; background:linear-gradient(145deg,#25a366,#107c41) !important; }
.glyph-presentation::before { content:"P" !important; background:linear-gradient(145deg,#e66a3c,#b74724) !important; }
.glyph-pdf::before { content:"PDF" !important; background:linear-gradient(145deg,#e25559,#a92b30) !important; font-size:.28em !important; }
.glyph-save::before { content:"▣" !important; font-family:"Segoe UI Symbol",sans-serif !important; }
.task-center > button:not(.task-search) { width: 44px; max-width: 44px; overflow: hidden; }
.task-center .glyph { overflow: hidden !important; }
.office-app-window { inset: 24px 30px calc(var(--taskbar-height) + 18px); width: auto; height: auto; min-width: 760px; min-height: 540px; display: none; grid-template-rows: 34px auto 31px auto minmax(0,1fr) 27px; overflow: hidden; background: #111817; color: #edf4f2; }
.office-app-window.is-open { display: grid; }
.office-app-window.is-maximized { inset: 0 0 var(--taskbar-height) !important; width: auto !important; height: auto !important; min-width: 0; min-height: 0; transform: none !important; border-radius: 0 !important; }
.office-app-window .window-titlebar { background: #0a1110; }
.office-app-window .window-brand small { margin-left: 8px; padding: 2px 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; color: #9eb0ad; font-size: 9px; letter-spacing: .08em; }
.office-appbar { min-height: 46px; padding: 6px 12px; display: grid; grid-template-columns: auto minmax(170px,1fr) auto minmax(180px,340px); align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.08); background: #0f1817; }
.office-file-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; color: #fff; font: 800 17px/1 "Segoe UI",sans-serif; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.word-file-mark { background: linear-gradient(145deg,#246fc4,#174c8d); }
.presentation-file-mark { background: linear-gradient(145deg,#e56a3b,#a83d20); }
.pdf-file-mark { width: 42px; background: linear-gradient(145deg,#d94d50,#9c2528); font-size: 10px; letter-spacing: .03em; }
.office-file-title { min-width: 0; display: flex; flex-direction: column; }
.office-file-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.office-file-title small { margin-top: 2px; color: #91a29f; font-size: 10px; }
.office-quick { display: flex; align-items: center; gap: 4px; }
.office-quick button,.office-command-search,.pdf-commandbar button,.pdf-commandbar label { min-height: 30px; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; background: rgba(255,255,255,.045); color: inherit; }
.office-quick button { padding: 0 9px; }
.office-quick button:hover,.pdf-commandbar button:hover { border-color: rgba(var(--accent-rgb),.45); background: rgba(var(--accent-rgb),.12); }
.office-quick .office-primary-action,.office-primary-action { border-color: rgba(var(--accent-rgb),.65); background: rgba(var(--accent-rgb),.2); }
.office-command-search { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.office-command-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; }
.office-ribbon-tabs { height: 31px; display: flex; align-items: end; gap: 1px; padding: 0 7px; overflow-x: auto; border-bottom: 1px solid rgba(255,255,255,.08); background: #121c1b; }
.office-ribbon-tabs button { flex: 0 0 auto; height: 30px; padding: 0 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #b9c5c3; font-size: 11px; }
.office-ribbon-tabs button:hover { background: rgba(255,255,255,.045); color: #fff; }
.office-ribbon-tabs button.is-active { border-bottom-color: var(--accent); color: #fff; }
.office-ribbon-tabs .office-file-tab { margin-left: -7px; background: #0b6570; color: #fff; }
.presentation-ribbon-tabs .office-file-tab { background: #b84725; }
.office-ribbon { min-height: 84px; display: none; align-items: stretch; overflow-x: auto; overflow-y: hidden; padding: 5px 7px 3px; border-bottom: 1px solid rgba(255,255,255,.08); background: #15201f; }
.office-ribbon.is-active { display: flex; }
.office-ribbon-group { flex: 0 0 auto; min-width: 110px; display: flex; flex-direction: column; justify-content: space-between; gap: 3px; padding: 0 8px; border-right: 1px solid rgba(255,255,255,.09); }
.office-ribbon-group:last-child { border-right: 0; }
.office-ribbon-group > small { display: block; text-align: center; color: #7f918e; font-size: 9px; }
.office-ribbon-row { display: flex; align-items: stretch; gap: 3px; }
.office-ribbon-row > div { display: grid; gap: 3px; }
.office-ribbon button,.office-ribbon select,.office-color-control { min-height: 25px; padding: 3px 7px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: inherit; font: 10px/1.1 inherit; }
.office-ribbon button:hover,.office-ribbon select:hover,.office-color-control:hover { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.065); }
.office-ribbon button.is-on { border-color: rgba(var(--accent-rgb),.45); background: rgba(var(--accent-rgb),.2); }
.office-ribbon select { min-width: 64px; border-color: rgba(255,255,255,.11); background: #0e1716; }
.office-ribbon select option { background: #12201e; }
.office-ribbon .ribbon-big { min-width: 58px; min-height: 52px; display: grid; place-items: center; gap: 2px; }
.office-ribbon .ribbon-big > span { font-size: 20px; }
.office-ribbon .ribbon-big > b { font-size: 9px; }
.office-color-control { position: relative; display: grid; place-items: center; min-width: 34px; overflow: hidden; }
.office-color-control input { position: absolute; inset: auto 2px 1px; width: 30px; height: 7px; padding: 0; border: 0; }
.word-font-group { min-width: 275px; }
.word-font-group select:first-child { width: 120px; }
.word-style-gallery { min-width: 350px; flex-direction: row; align-items: stretch; padding-bottom: 13px; position: relative; }
.word-style-gallery button { min-width: 78px; display: flex; flex-direction: column; justify-content: center; background: rgba(255,255,255,.035); }
.word-style-gallery button b { font-family: Georgia,serif; font-size: 13px; }
.word-style-gallery button span { margin-top: 3px; color: #879592; font-size: 8px; }
.word-style-gallery > small,.presentation-theme-gallery > small { position: absolute; left: 0; right: 0; bottom: 1px; }

.word-workspace { min-height: 0; position: relative; overflow: auto; background: #343c3e; scrollbar-color: #71807e #27302f; }
.word-ruler { position: sticky; z-index: 4; top: 0; width: min(210mm,calc(100% - 80px)); height: 22px; margin: 0 auto; border: 1px solid #a6aeaf; border-top: 0; background: repeating-linear-gradient(90deg,#f7f8f7 0,#f7f8f7 9.8%,#65706f 9.8%,#65706f 10%); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.word-ruler > span { position: absolute; inset: 0 12%; background: rgba(255,255,255,.82); }
.word-ruler > i { position: absolute; top: 0; bottom: 0; width: 1px; background: #9ea6a5; }
.word-pages { --word-zoom:1; min-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 26px 42px 70px; outline: 0; }
.word-page { position: relative; box-sizing: border-box; width: calc(var(--page-width,210mm) * var(--word-zoom)); min-height: calc(var(--page-height,297mm) * var(--word-zoom)); padding: calc(25mm * var(--word-zoom)); overflow: hidden; background: #fff; color: #17201f; box-shadow: 0 5px 25px rgba(0,0,0,.38),0 0 0 1px rgba(0,0,0,.3); font: calc(11pt * var(--word-zoom))/1.15 Aptos,"Segoe UI",sans-serif; transform-origin: top center; }
.word-page-number { position: absolute; right: 8mm; bottom: 5mm; color: #9aa1a0; font-size: 8pt; user-select: none; }
.word-paragraph { min-height: 1em; margin: 0 0 8pt; padding: 1px 2px; outline: 0; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; }
.word-paragraph:focus { box-shadow: inset 2px 0 var(--accent); background: rgba(var(--accent-rgb),.045); }
.word-window.is-readonly .word-paragraph { cursor: text; }
.word-paragraph.is-search-hit { background: #fff2a8 !important; box-shadow: inset 0 0 0 1px #d5a821; }
.word-style-title { margin: 0 0 16pt; color: #0b6570; font: 700 26pt/1.08 "Aptos Display",Aptos,sans-serif; }
.word-style-heading1 { margin: 14pt 0 6pt; color: #0b6570; font: 700 18pt/1.15 "Aptos Display",Aptos,sans-serif; }
.word-style-heading2 { margin: 10pt 0 5pt; color: #167c86; font: 700 14pt/1.15 "Aptos Display",Aptos,sans-serif; }
.word-paragraph.is-list-item { padding-left: 22px; }
.word-paragraph.is-list-item::before { content:"•"; float: left; margin-left: -14px; }
.word-inline-image { display: block; max-width: 100%; height: auto; margin: 7pt auto; object-fit: contain; }
.word-table { width: 100%; margin: 7pt 0 12pt; border-collapse: collapse; table-layout: fixed; }
.word-table td { min-width: 36px; padding: 4pt 5pt; vertical-align: top; border: 1px solid #7c8583; }
.word-table .word-paragraph { margin: 0; }
.word-highlight-yellow { background: #fff2a8; }.word-highlight-green { background: #b8edca; }.word-highlight-cyan { background: #b5eaf2; }.word-highlight-magenta { background: #f0b8df; }
.word-window.is-read-mode { grid-template-rows: 34px minmax(0,1fr) 27px; }
.word-window.is-read-mode > .office-appbar,.word-window.is-read-mode > .office-ribbon-tabs,.word-window.is-read-mode > .office-ribbon,.word-window.is-read-mode .word-ruler { display: none !important; }
.word-window.is-read-mode .word-workspace { grid-row: 2; background: #181f1e; }
.word-window.is-read-mode .word-page { box-shadow: none; }
.office-statusbar { min-height: 27px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; border-top: 1px solid rgba(255,255,255,.08); background: #0f1817; color: #9bacaa; font-size: 10px; }
.office-statusbar > div { display: flex; align-items: center; gap: 14px; }
.office-statusbar button { border: 0; background: transparent; color: inherit; }
.office-statusbar input[type=range] { width: 105px; vertical-align: middle; accent-color: var(--accent); }
.office-loading,.office-error { min-height: 240px; display: grid; place-items: center; color: #d0ddda; font-size: 13px; }
.office-error { color: #ff9797; }

.presentation-window { grid-template-rows: 34px auto 31px 84px minmax(0,1fr) 27px; }
.presentation-appbar { grid-template-columns: auto minmax(170px,1fr) auto; }
.presentation-play { background: #b84725 !important; border-color: #e26a48 !important; }
.presentation-ribbon { display: flex; }
.presentation-theme-gallery { min-width: 310px; position: relative; flex-direction: row; padding-bottom: 14px; }
.presentation-theme-gallery button { min-width: 86px; display: grid; gap: 2px; }
.presentation-theme-gallery button i { height: 26px; border-radius: 2px; background: linear-gradient(150deg,var(--theme) 0 48%,#fff 49%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.presentation-workspace { min-height: 0; display: grid; grid-template-columns: 190px minmax(0,1fr); background: #272f30; }
.presentation-thumbnails { min-height: 0; overflow: auto; padding: 12px 9px 30px; border-right: 1px solid rgba(255,255,255,.1); background: #182120; }
.presentation-thumbnail { width: 100%; display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 5px; margin-bottom: 10px; padding: 4px; border: 2px solid transparent; border-radius: 4px; background: transparent; color: #aebcba; }
.presentation-thumbnail:hover { background: rgba(255,255,255,.05); }
.presentation-thumbnail.is-active { border-color: #e05a35; background: rgba(224,90,53,.1); }
.presentation-thumbnail .presentation-canvas { width: 134px; height: 75px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.presentation-thumbnail > span { padding-top: 2px; font-size: 9px; }
.presentation-stage-shell { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0,1fr) 66px; overflow: auto; }
.presentation-stage { min-width: 760px; min-height: 460px; display: grid; place-items: center; padding: 28px 48px; outline: 0; overflow: auto; }
.presentation-canvas { position: relative; width: calc(960px * var(--presentation-zoom,1)); aspect-ratio: 16/9; overflow: hidden; background: #fff; color: #17201f; box-shadow: 0 14px 48px rgba(0,0,0,.46),0 0 0 1px rgba(0,0,0,.5); transform-origin: center; }
.presentation-canvas.is-miniature { --presentation-zoom:1 !important; }
.presentation-shape { position: absolute; box-sizing: border-box; display: flex; align-items: center; padding: 3px; overflow: hidden; white-space: pre-wrap; line-height: 1.12; outline: 0; }
.presentation-shape:focus,.presentation-shape.is-active-shape { box-shadow: inset 0 0 0 2px #e05a35; }
.presentation-shape-image { padding: 0; }
.presentation-shape img { width: 100%; height: 100%; object-fit: contain; }
.presentation-thumbnail .presentation-shape { padding: 0; font-size: 3px !important; }
.presentation-notes { padding: 9px 18px; border-top: 1px solid rgba(255,255,255,.1); background: #101817; color: #7f918e; font-size: 10px; }
.presentation-notes b { display: block; margin-bottom: 5px; color: #bac6c4; }
.presentation-stage.is-slideshow { width: 100vw; height: 100vh; padding: 0; background: #000; }
.presentation-stage.is-slideshow .presentation-canvas { width: min(100vw,177.77vh); max-height: 100vh; box-shadow: none; }

.pdf-window { grid-template-rows: 34px 48px minmax(0,1fr) 27px; }
.pdf-commandbar { min-width: 0; display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,.09); background: #111b1a; }
.pdf-commandbar > b { max-width: 28vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.pdf-command-spacer { flex: 1; }
.pdf-commandbar button { height: 31px; padding: 0 9px; }
.pdf-commandbar label { display: flex; align-items: center; gap: 3px; padding: 0 7px; }
.pdf-commandbar input { width: 42px; border: 0; outline: 0; background: transparent; color: inherit; text-align: center; }
.pdf-commandbar output { min-width: 42px; text-align: center; font-size: 10px; }
.pdf-workspace { min-height: 0; display: grid; place-items: center; overflow: auto; background: #343b3d; }
.pdf-frame-shell { width: 100%; height: 100%; transform-origin: center; transition: transform .2s ease; }
.pdf-frame-shell iframe { width: 100%; height: 100%; border: 0; background: #525659; }

#desktop[data-theme="light"] .office-app-window { background: #f7f9f9 !important; color: #172122 !important; }
#desktop[data-theme="light"] .office-app-window .window-titlebar,
#desktop[data-theme="light"] .office-appbar,
#desktop[data-theme="light"] .office-ribbon-tabs,
#desktop[data-theme="light"] .office-ribbon,
#desktop[data-theme="light"] .office-statusbar,
#desktop[data-theme="light"] .pdf-commandbar { background: #f3f6f5 !important; color: #172122 !important; border-color: rgba(13,42,45,.14) !important; }
#desktop[data-theme="light"] .office-ribbon-tabs button { color: #455352; }
#desktop[data-theme="light"] .office-ribbon-tabs button.is-active { color: #172122; }
#desktop[data-theme="light"] .office-ribbon button,
#desktop[data-theme="light"] .office-ribbon select,
#desktop[data-theme="light"] .office-quick button,
#desktop[data-theme="light"] .office-command-search,
#desktop[data-theme="light"] .pdf-commandbar button,
#desktop[data-theme="light"] .pdf-commandbar label { border-color: rgba(13,42,45,.14); background: #fff; color: #172122; }
#desktop[data-theme="light"] .office-ribbon select option { background: #fff; color: #172122; }
#desktop[data-theme="light"] .office-ribbon-group { border-color: rgba(13,42,45,.13); }
#desktop[data-theme="light"] .office-ribbon-group > small,#desktop[data-theme="light"] .office-file-title small { color: #687775; }
#desktop[data-theme="light"] .word-workspace,#desktop[data-theme="light"] .pdf-workspace { background: #d9dfe0 !important; }
#desktop[data-theme="light"] .presentation-workspace { background: #d6dcdd; }
#desktop[data-theme="light"] .presentation-thumbnails,#desktop[data-theme="light"] .presentation-notes { background: #edf1f0; color: #42504e; border-color: rgba(13,42,45,.14); }

@media print {
  body[data-office-print] * { visibility: hidden !important; }
  body[data-office-print="word"] #wordWindow,
  body[data-office-print="word"] #wordPages,
  body[data-office-print="word"] #wordPages *,
  body[data-office-print="presentation"] #presentationWindow,
  body[data-office-print="presentation"] #presentationStage,
  body[data-office-print="presentation"] #presentationStage *,
  body[data-office-print="pdf"] #pdfWindow,
  body[data-office-print="pdf"] #pdfFrame,
  body[data-office-print="pdf"] #pdfFrame * { visibility: visible !important; }
  body[data-office-print="word"] #wordWindow,
  body[data-office-print="presentation"] #presentationWindow,
  body[data-office-print="pdf"] #pdfWindow { position: absolute !important; inset: 0 !important; width: 100% !important; height: auto !important; display: block !important; transform: none !important; border: 0 !important; box-shadow: none !important; background: #fff !important; }
  body[data-office-print="word"] #wordWindow > :not(.word-workspace),
  body[data-office-print="presentation"] #presentationWindow > :not(.presentation-workspace),
  body[data-office-print="pdf"] #pdfWindow > :not(.pdf-workspace) { display: none !important; }
  body[data-office-print="word"] .word-workspace,body[data-office-print="word"] .word-pages { overflow: visible !important; padding: 0 !important; background: #fff !important; }
  body[data-office-print="word"] .word-ruler,body[data-office-print="word"] .word-page-number { display: none !important; }
  body[data-office-print="word"] .word-page { width: 100% !important; min-height: 0 !important; margin: 0 !important; box-shadow: none !important; page-break-after: always; }
  body[data-office-print="presentation"] .presentation-thumbnails,body[data-office-print="presentation"] .presentation-notes { display: none !important; }
  body[data-office-print="presentation"] .presentation-workspace { display: block !important; background: #fff !important; }
  body[data-office-print="presentation"] #presentationStage { min-width: 0 !important; min-height: 0 !important; padding: 0 !important; }
  body[data-office-print="presentation"] .presentation-canvas { width: 100% !important; box-shadow: none !important; }
}

@media (max-width: 980px) {
  .office-app-window { inset: 0 0 var(--taskbar-height) !important; min-width: 0; transform: none !important; border-radius: 0 !important; }
  .office-appbar { grid-template-columns: auto minmax(120px,1fr) auto; }
  .office-command-search { display: none; }
  .office-quick button { padding: 0 6px; font-size: 0; }
  .office-quick button .glyph,.office-quick button:first-letter { font-size: 13px; }
  .presentation-workspace { grid-template-columns: 130px minmax(0,1fr); }
  .presentation-thumbnail .presentation-canvas { width: 82px; height: 46px; }
  .presentation-stage { min-width: 620px; padding: 18px; }
  .presentation-canvas { width: calc(720px * var(--presentation-zoom,1)); }
  .pdf-commandbar #pdfOpenNative,.pdf-commandbar #pdfDownload { font-size: 0; }
  .pdf-commandbar #pdfOpenNative::first-letter,.pdf-commandbar #pdfDownload .glyph { font-size: 12px; }
}

.spreadsheet-column-header,.spreadsheet-row-number { position: sticky; }
.spreadsheet-column-resizer { position: absolute; z-index: 5; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; }
.spreadsheet-row-resizer { position: absolute; z-index: 5; left: 0; right: 0; bottom: -3px; height: 7px; cursor: row-resize; }
.spreadsheet-column-resizer:hover,.spreadsheet-column-header.is-resizing .spreadsheet-column-resizer { background: var(--accent); }
.spreadsheet-row-resizer:hover,.spreadsheet-row-number.is-resizing .spreadsheet-row-resizer { background: var(--accent); }
.spreadsheet-table-gallery { position: fixed; z-index: 10080; width: 330px; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; padding: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(14,24,23,.985); color: #eef5f3; box-shadow: 0 22px 65px rgba(0,0,0,.46); }
.spreadsheet-table-gallery h4 { grid-column: 1/-1; margin: 0 0 3px; font-size: 11px; }
.spreadsheet-table-gallery button { min-width: 0; padding: 5px; border: 1px solid transparent; border-radius: 4px; background: rgba(255,255,255,.035); color: inherit; }
.spreadsheet-table-gallery button:hover { border-color: var(--accent); background: rgba(var(--accent-rgb),.12); }
.spreadsheet-table-gallery button > i { height: 40px; display: grid; grid-template-rows: 12px 1fr 1fr; border: 1px solid rgba(255,255,255,.23); background: var(--table-head); }
.spreadsheet-table-gallery button > i span:nth-child(2) { background: repeating-linear-gradient(90deg,var(--table-odd) 0 32%,rgba(0,0,0,.08) 33% 34%); }
.spreadsheet-table-gallery button > i span:nth-child(3) { background: repeating-linear-gradient(90deg,var(--table-even) 0 32%,rgba(0,0,0,.08) 33% 34%); }
.spreadsheet-table-gallery button > b { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
html[data-os-theme="light"] .spreadsheet-table-gallery { border-color: rgba(13,42,45,.16); background: rgba(250,252,252,.99); color: #172122; box-shadow: 0 22px 60px rgba(18,43,45,.24); }

/* Windows 11-style right-click menus across desktop, Explorer and taskbar. */
.context-menu { width: 276px !important; padding: 6px !important; border: 1px solid var(--panel-border) !important; border-radius: 11px !important; background: var(--panel-surface) !important; box-shadow: 0 22px 58px rgba(0,0,0,.46),inset 0 1px rgba(255,255,255,.055) !important; backdrop-filter: blur(24px) saturate(145%); -webkit-backdrop-filter: blur(24px) saturate(145%); }
.context-menu li { margin: 0; padding: 0; }
.context-menu button { width: 100% !important; height: 38px !important; display: grid !important; grid-template-columns: 24px minmax(0,1fr) auto !important; align-items: center !important; gap: 8px !important; padding: 0 9px !important; border: 0 !important; border-radius: 6px !important; background: transparent !important; color: var(--text) !important; font: 11px/1.1 "Segoe UI",sans-serif !important; text-align: left !important; }
.context-menu button:hover:not(:disabled) { background: rgba(255,255,255,.075) !important; }
.context-menu button:focus-visible { outline: 1px solid rgba(var(--accent-rgb),.8); outline-offset: -1px; }
.context-menu button:disabled { opacity: .45; cursor: default; }
.context-menu button.is-danger { color: #ff8585 !important; }
.context-menu button.is-checked { box-shadow: inset 3px 0 var(--accent); }
.context-menu button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.context-menu button > .glyph { width: 20px !important; height: 20px !important; font-size: 18px !important; color: var(--accent); }
.context-menu button.is-danger > .glyph { color: #ff7373; }
.context-icon-spacer { width: 20px; height: 20px; display: block; }
.context-menu kbd { justify-self: end; border: 0; background: transparent; color: var(--muted); font: 9px/1 "Segoe UI",sans-serif; }
.context-separator { height: 1px !important; margin: 5px 7px !important; background: var(--line) !important; }
#desktop[data-theme="light"] .context-menu button:hover:not(:disabled) { background: rgba(13,42,45,.065) !important; }
