:root {
  font-family: Georgia, "Times New Roman", serif;
  --window-background: rgba(202, 219, 250, 0.92);
}

body[data-font="rounded"] { font-family: "Trebuchet MS", sans-serif; }
body[data-font="mono"] { font-family: "Courier New", monospace; }
body[data-font="rounded"] .app-icon,
body[data-font="mono"] .app-icon { font-family: inherit; }

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background-color: #a9bdd5;
  isolation: isolate;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background: url("./26-Tahoe-Light-6K.png") center / cover no-repeat;
  pointer-events: none;
}

.close-button {
  border-radius: 6px;
  margin-left: auto;
  background-color: #f1f5fb;
  border: none;
  color: #4c2e20;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.window {
    position: absolute;
    top: calc(50% + 20px);
    left: 50%;
    width: min(420px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
    overflow: hidden;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.7); 
    border-radius: 18px; 
    background-color: var(--window-background); 
    box-shadow: 0 12px 30px rgba(38, 55, 82, 0.28);
}

#welcome {
  background-color: rgba(202, 219, 250, 0.92);
}

.app-window {
  display: none;
  top: calc(50% + 40px);
  left: calc(50% + 40px);
}

.window-header {
     display: flex;
     align-items: center;
     min-height: 28px;
     padding: 4px 8px;
     cursor: move;
     user-select: none;
     color: #fff3d6;
    background-color: #634334d8;
     border-bottom: 1px solid #644e44;
}

.header-text {
  font-size: 0.9rem;
  font-weight: bold;
}

.window-content {
  padding: 16px;
}

.window-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.taskbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
}

.taskbar p {
  margin: 8px 16px;
  padding: 10px;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.25);
}

.time-button {
  margin: 8px 16px;
  padding: 10px 14px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.25);
  font: inherit;
  cursor: pointer;
}

.time-button:hover,
.time-button[aria-expanded="true"] {
  background-color: rgba(255, 255, 255, 0.38);
}

.daily-panel {
  position: fixed;
  top: 78px;
  right: 16px;
  z-index: 20;
  width: min(330px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  color: #fff;
  background-color: rgba(43, 65, 94, 0.52);
  box-shadow: 0 16px 36px rgba(14, 32, 59, 0.28);
  backdrop-filter: blur(22px) saturate(1.15);
}

.daily-panel[hidden] {
  display: none;
}

.daily-summary {
  display: grid;
  gap: 3px;
  margin-bottom: 18px;
}

.panel-kicker,
.calendar-month {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.daily-summary strong {
  font-size: 1.3rem;
}

.calendar-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-weight: bold;
}

.weekly-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day {
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 8px 3px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.calendar-day-number {
  font-size: 1rem;
  font-weight: bold;
}

.calendar-day.today {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
  background-color: rgba(255, 255, 255, 0.28);
}

#welcomeopen {
  cursor: pointer;
}

.desktop-apps {
  position: fixed;
  bottom: 18px;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: end;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background-color: rgba(43, 65, 94, 0.42);
  box-shadow: 0 12px 28px rgba(14, 32, 59, 0.28);
  backdrop-filter: blur(20px) saturate(1.15);
  transform: translateX(-50%);
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.app-icon:hover { transform: translateY(-7px) scale(1.04); }

.app-icon.selected {
  background-color: #ffffff59;
  outline: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

.app-icon.selected img {
  filter: brightness(1.15);
}

.app-icon-image {
  width: 69px;
  height: 67px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 10px rgba(14, 32, 59, 0.22);
}

.app-tile-icon {
  display: grid;
  place-items: center;
  width: 69px;
  height: 67px;
  border-radius: 18px;
  color: #fff3d6;
  background-color: #634334;
  box-shadow: inset 0 0 0 3px rgba(255, 243, 214, 0.22);
  font-size: 1.1rem;
  font-weight: bold;
}

.settings-tile-icon { font-size: 0.75rem; letter-spacing: 1px; }

.calculator-content { padding: 20px; }
.calculator-display {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #8f7668;
  border-radius: 8px;
  color: #4c2e20;
  background: rgba(255, 250, 242, 0.82);
  font: 1.5rem "Courier New", monospace;
  text-align: right;
}
.calculator-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.calculator-key {
  min-height: 42px;
  border: 1px solid #b49b8b;
  border-radius: 7px;
  color: #634334;
  background: rgba(255, 250, 242, 0.64);
  font: inherit;
  cursor: pointer;
}
.calculator-key:hover { background: #eadfce; }
.calculator-operator, .calculator-equals { color: #fff3d6; background: #754933; }
.calculator-operator:hover, .calculator-equals:hover { background: #634334; }
.calculator-zero { grid-column: span 2; }
.calculator-clear { color: #754933; }

.settings-content { display: grid; gap: 16px; padding: 22px; color: #4c2e20; }
.settings-intro { margin: 0; line-height: 1.4; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: bold; }
.setting-row select { min-width: 132px; padding: 7px; border: 1px solid #8f7668; border-radius: 6px; color: #4c2e20; background: #fffaf2; font: inherit; }
.setting-toggle input { width: 18px; height: 18px; accent-color: #754933; }
.settings-message { min-height: 1.2em; margin: 0; color: #754933; font-size: 0.85rem; font-weight: bold; }

body[data-wallpaper="rose"] { background-color: #d5aeb1; }
body[data-wallpaper="mint"] { background-color: #a9d0c6; }
body[data-wallpaper="rose"]::before { opacity: 0.72; filter: sepia(0.2) hue-rotate(300deg) saturate(0.8); }
body[data-wallpaper="mint"]::before { opacity: 0.72; filter: hue-rotate(80deg) saturate(0.65); }
body[data-glass="off"] .window { --window-background: #cadbfa; }
body[data-glass="off"] .daily-panel { background-color: #536b8d; backdrop-filter: none; }

.bookmark-content {
  padding: 28px;
  color: #4c2e20;
  text-align: center;
}

.bookmark-hero-image {
  width: 120px;
  margin: 0 auto 18px;
  border-radius: 24px;
}

.bookmark-eyebrow {
  margin: 0 0 8px;
  color: #754933;
  font-size: 1.25rem;
  font-weight: bold;
}

.bookmark-content h1 {
  margin: 0 0 12px;
  color: #634334;
  font-size: 2rem;
}

.bookmark-content p:not(.bookmark-eyebrow) {
  margin: 0 auto 22px;
  max-width: 300px;
  line-height: 1.5;
}

#startBookmarking {
  padding: 10px 16px;
  border: 1px solid #4c2e20;
  border-radius: 8px;
  color: #fff3d6;
  background-color: #754933;
  font-family: inherit;
  cursor: pointer;
}

#startBookmarking:hover {
  background-color: #634334;
}
.reading-shelf {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 8px;
  margin-top: 28px;
  padding: 6px;
  border: 1px solid #b49b8b;
  border-radius: 12px;
  background-color: #eadfce;
}

.shelf-button {
  flex: 0 0 130px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: #634334;
  background-color: transparent;
  font-family: inherit;
  cursor: pointer;
}

.shelf-button:hover,
.shelf-button.active {
  color: #fff3d6;
  background-color: #754933;
}

.notes-panel {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  text-align: left;
}

.notes-panel[hidden] {
  display: none;
}

.notes-panel label {
  color: #634334;
  font-size: 0.85rem;
  font-weight: bold;
}

.notes-panel input,
.notes-panel textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px;
  border: 1px solid #8f7668;
  border-radius: 6px;
  color: #4c2e20;
  background-color: #fffaf2;
  font: inherit;
}

.notes-panel textarea {
  resize: vertical;
}

#saveNote {
  justify-self: start;
  padding: 9px 14px;
  border: 1px solid #4c2e20;
  border-radius: 7px;
  color: #fff3d6;
  background-color: #754933;
  font-family: inherit;
  cursor: pointer;
}

.notes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.secondary-button {
  padding: 9px 14px;
  border: 1px solid #8f7668;
  border-radius: 7px;
  color: #634334;
  background-color: transparent;
  font-family: inherit;
  cursor: pointer;
}

.secondary-button:hover {
  background-color: #eadfce;
}

#saveMessage {
  min-height: 1.2em;
  margin: 0;
  color: #634334;
  font-size: 0.85rem;
  font-weight: bold;
}

.content-views {
  margin-top: 20px;
  text-align: left;
}

.content-view[hidden] {
  display: none;
}

.content-view h2 {
  margin: 0 0 8px;
  color: #634334;
  font-size: 1.2rem;
}

.content-view p {
  margin: 0;
  color: #644e44;
  line-height: 1.5;
}