/* windows-365-theme · bundled stylesheet — generated by build.sh. Do not edit. */

/* ============================================================
   windows-365-theme · tokens
   Design tokens for the Fluent / Microsoft-365 cloud aesthetic.
   All scoped under .win365 so nothing leaks to the host app.
============================================================ */
.win365 {
  --w365-font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* accent + brand */
  --w365-accent: #16b981;       /* opscend green */
  --w365-accent-deep: #0a8f63;
  --w365-blue: #1d63c9;
  --w365-danger: #e81123;

  /* surfaces */
  --w365-mica: rgba(248, 249, 252, 0.92);
  --w365-acrylic: rgba(243, 244, 248, 0.82);
  --w365-card: rgba(255, 255, 255, 0.7);
  --w365-ink: #1b1b1f;
  --w365-ink-2: #44464d;
  --w365-ink-3: #6a6c73;
  --w365-line: rgba(0, 0, 0, 0.08);

  /* shape + depth */
  --w365-radius: 10px;
  --w365-radius-sm: 7px;
  --w365-blur: blur(28px) saturate(150%);
  --w365-shadow-win: 0 30px 80px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --w365-shadow-pop: 0 40px 90px -20px rgba(0, 0, 0, 0.6);

  /* wallpaper (desktop mode) */
  --w365-wallpaper:
    radial-gradient(120% 120% at 18% 6%, #5ad7c0 0%, transparent 42%),
    radial-gradient(120% 120% at 88% 14%, #6aa0ff 0%, transparent 46%),
    radial-gradient(140% 130% at 50% 110%, #1e3a8a 0%, transparent 50%),
    linear-gradient(150deg, #0b3b6f 0%, #114b8a 45%, #0a8f6e 100%);
}

/* ============================================================
   windows-365-theme · base
   Scoped typography + the desktop canvas. Skin mode only sets
   type/colour; .win365--desktop turns the scope into a wallpaper.
============================================================ */
.win365 {
  font-family: var(--w365-font);
  color: var(--w365-ink);
  -webkit-font-smoothing: antialiased;
}
.win365 :where(h1, h2, h3, h4, p, span, label, button, input, select, textarea, a) {
  font-family: inherit;
}

/* Full desktop metaphor: the scope element becomes the wallpaper. */
.win365--desktop {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--w365-wallpaper);
  user-select: none;
}

/* Opt-out: leave a subtree completely untouched (payment iframes,
   chart canvases, rich editors, etc.). */
.win365 .w365-raw,
.win365 .w365-raw * {
  all: revert;
  font-family: initial;
}

/* ============================================================
   windows-365-theme · controls
   Reskins native controls in place (skin mode). Host markup is
   unchanged — a <button> just looks Fluent. Exclude .w365-raw.
============================================================ */
.win365 button:not(.w365-raw):not([class*="w365-"]),
.win365 .w365-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  padding: 9px 18px;
  border: none;
  border-radius: var(--w365-radius-sm);
  background: linear-gradient(180deg, var(--w365-accent), var(--w365-accent-deep));
  box-shadow: 0 6px 16px -4px rgba(10, 143, 99, 0.5);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.win365 button:not(.w365-raw):not([class*="w365-"]):hover,
.win365 .w365-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.win365 button:not(.w365-raw):not([class*="w365-"]):active,
.win365 .w365-btn:active { transform: translateY(0); }

.win365 .w365-btn--ghost {
  color: var(--w365-blue);
  background: rgba(29, 99, 201, 0.08);
  border: 1px solid rgba(29, 99, 201, 0.22);
  box-shadow: none;
}

.win365 input:not(.w365-raw):not([type="checkbox"]):not([type="radio"]),
.win365 select:not(.w365-raw),
.win365 textarea:not(.w365-raw) {
  font: inherit;
  font-size: 13px;
  color: var(--w365-ink);
  padding: 9px 12px;
  border-radius: var(--w365-radius-sm);
  border: 1px solid var(--w365-line);
  background: rgba(255, 255, 255, 0.85);
  outline: none;
}
.win365 input:not(.w365-raw):focus,
.win365 select:not(.w365-raw):focus,
.win365 textarea:not(.w365-raw):focus {
  border-color: var(--w365-accent);
  box-shadow: 0 0 0 3px rgba(22, 185, 129, 0.15);
}

.win365 a:not(.w365-raw) { color: var(--w365-blue); text-decoration: none; }
.win365 a:not(.w365-raw):hover { text-decoration: underline; }

/* Pills / chips reused by app bodies */
.win365 .w365-pill {
  font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  background: rgba(29, 99, 201, 0.08); border: 1px solid rgba(29, 99, 201, 0.18); color: var(--w365-blue);
}

/* ============================================================
   windows-365-theme · chrome
   Window shell: Mica/acrylic panes with a Fluent title bar and
   min / max / close controls. Used by the shell and by cloaking
   (data-win365="window").
============================================================ */
.win365 .w365-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  border-radius: var(--w365-radius);
  overflow: hidden;
  background: var(--w365-mica);
  backdrop-filter: var(--w365-blur);
  -webkit-backdrop-filter: var(--w365-blur);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--w365-shadow-win);
}
.win365 .w365-titlebar {
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 14px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: grab;
}
.win365 .w365-titlebar:active { cursor: grabbing; }
.win365 .w365-title { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: #2b2b30; }
.win365 .w365-winbtns { display: flex; height: 100%; }
.win365 .w365-winbtn {
  width: 46px; height: 100%; border: none; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: #3a3a40; border-radius: 0;
  box-shadow: none;
}
.win365 .w365-winbtn:hover { background: rgba(0, 0, 0, 0.07); transform: none; filter: none; }
.win365 .w365-winbtn--close:hover { background: var(--w365-danger); color: #fff; }
.win365 .w365-winbody { flex: 1; overflow: auto; padding: 22px 24px; }

/* Inactive window dimming (shell toggles .is-inactive) */
.win365 .w365-window.is-inactive { box-shadow: 0 16px 50px -22px rgba(0,0,0,0.5); }
.win365 .w365-window.is-inactive .w365-titlebar { background: rgba(255,255,255,0.32); }
.win365 .w365-window.is-inactive .w365-title { color: #6a6c73; }

/* ============================================================
   windows-365-theme · desktop
   Full-metaphor pieces: desktop shortcuts, centered taskbar with
   Start, and the acrylic Start menu. Active only in desktop mode.
============================================================ */

/* Desktop shortcuts */
.win365 .w365-desktop { position: absolute; top: 18px; left: 16px; display: flex; flex-direction: column; gap: 6px; }
.win365 .w365-shortcut {
  width: 88px; padding: 10px 6px 8px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: #fff; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 7px; text-align: center; box-shadow: none;
}
.win365 .w365-shortcut:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.22); transform: none; }
.win365 .w365-shortcut-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(160deg, #fff, #eef4ff); color: var(--w365-accent-deep);
  box-shadow: 0 4px 12px rgba(0,0,0,0.28);
}
.win365 .w365-shortcut-label { font-size: 11.5px; line-height: 1.25; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

/* Taskbar */
.win365 .w365-taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 48px; z-index: 8000;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: var(--w365-acrylic); backdrop-filter: blur(36px) saturate(160%); -webkit-backdrop-filter: blur(36px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.5);
}
.win365 .w365-taskbar-center { display: flex; align-items: center; gap: 4px; justify-self: center; }
.win365 .w365-taskbar-right { justify-self: end; display: flex; align-items: center; gap: 8px; padding-right: 12px; }
.win365 .w365-tb-btn {
  width: 40px; height: 40px; border: none; background: transparent; border-radius: 7px; cursor: pointer;
  display: grid; place-items: center; color: #2b2b30; position: relative; box-shadow: none;
}
.win365 .w365-tb-btn:hover { background: rgba(0,0,0,0.07); transform: none; }
.win365 .w365-tb-btn.is-active { background: rgba(0,0,0,0.08); }
.win365 .w365-tb-sep { width: 1px; height: 22px; background: rgba(0,0,0,0.12); margin: 0 4px; }
.win365 .w365-tb-app.is-open::after {
  content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 3px; border-radius: 3px; background: var(--w365-blue);
}
.win365 .w365-tb-app.is-min::after { width: 6px; background: #8a8c93; }
.win365 .w365-tray { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; color: #2b2b30; }
.win365 .w365-clock { display: flex; flex-direction: column; align-items: flex-end; font-size: 11.5px; line-height: 1.3; color: #2b2b30; padding: 4px 6px; border-radius: 6px; }

/* Start menu */
.win365 .w365-start {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); width: 540px; max-width: 92vw;
  max-height: calc(100vh - 90px); z-index: 9000; padding: 20px; display: flex; flex-direction: column; gap: 16px;
  background: rgba(243,244,248,0.86); backdrop-filter: blur(40px) saturate(160%); -webkit-backdrop-filter: blur(40px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.55); border-radius: 14px; box-shadow: var(--w365-shadow-pop);
  animation: w365-rise .16s ease;
}
@keyframes w365-rise { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.win365 .w365-start[hidden] { display: none; }
.win365 .w365-start-search {
  display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.8); border: 1px solid var(--w365-line); color: var(--w365-ink-3);
}
.win365 .w365-start-search input { border: none; background: transparent; flex: 1; box-shadow: none; padding: 0; }
.win365 .w365-start-section { font-size: 12.5px; font-weight: 650; color: #2b2b30; }
.win365 .w365-start-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.win365 .w365-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px;
  border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; box-shadow: none; color: var(--w365-ink);
}
.win365 .w365-tile:hover { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.06); transform: none; }
.win365 .w365-tile-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(160deg, #fff, #e7f0ff); color: var(--w365-accent-deep); box-shadow: 0 4px 10px -4px rgba(0,0,0,0.25);
}
.win365 .w365-tile-label { font-size: 11.5px; color: #2b2b30; text-align: center; }
.win365 .w365-start-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(0,0,0,0.07); padding-top: 14px; }
.win365 .w365-user { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.win365 .w365-avatar { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, var(--w365-accent), var(--w365-blue)); font-size: 13px; }
.win365 .w365-power { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--w365-ink-2); cursor: pointer; border: none; background: transparent; box-shadow: none; }
.win365 .w365-power:hover { background: rgba(0,0,0,0.07); transform: none; }

/* Boot splash */
.win365 .w365-boot {
  position: absolute; inset: 0; z-index: 99999; display: grid; place-items: center; color: #fff;
  background: var(--w365-wallpaper); animation: w365-fade .5s ease 1.1s forwards;
}
.win365 .w365-boot-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 14px; opacity: 0.92; }
.win365 .w365-spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.25); border-top-color: #fff; animation: w365-spin 0.9s linear infinite; }
@keyframes w365-spin { to { transform: rotate(360deg); } }
@keyframes w365-fade { to { opacity: 0; visibility: hidden; } }
