:root {
  --aero-blue: #4a90d9;
  --aero-blue-d: #2f6db3;
  --ribbon-top: #f4f9fd;
  --ribbon-bot: #dcecf9;
  --glass: rgba(230, 242, 253, 0.75);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: 'IBM Plex Sans', 'Segoe UI', Tahoma, sans-serif;
  font-size: 13px;
  color: #1a2733;
}
.hidden { display: none !important; }

/* Desktop with Win7-style aurora wallpaper */
.desktop {
  height: 100vh; width: 100vw; position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(120,200,255,0.55), transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 90%, rgba(80,255,180,0.30), transparent 70%),
    linear-gradient(180deg, #0a1a3a 0%, #12408a 40%, #1f6fc4 75%, #2a86d6 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px 20px 46px;
}

/* Boot screen */
.boot-screen {
  height: 100vh; width: 100vw;
  background: linear-gradient(180deg,#04122e,#0a2a6a);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #eaf3ff;
}
.boot-logo { font-size: 34px; font-weight: 300; letter-spacing: 1px; display: flex; align-items: center; gap: 12px; }
.boot-play { display:inline-flex; width: 46px; height: 46px; align-items:center; justify-content:center; border-radius:50%;
  background: radial-gradient(circle at 35% 30%, #7fd0ff, #1a6fd0); box-shadow: 0 0 24px rgba(120,200,255,0.6); font-size: 20px; padding-left: 4px; }
.boot-bar { margin-top: 26px; width: 220px; height: 8px; background: rgba(255,255,255,0.15); border-radius: 5px; overflow: hidden; }
.boot-bar-fill { height: 100%; width: 40%; border-radius: 5px;
  background: linear-gradient(90deg, transparent, #6fd0ff, transparent);
  animation: bootslide 1.1s ease-in-out infinite; }
@keyframes bootslide { 0%{transform:translateX(-100%)} 100%{transform:translateX(320%)} }
.boot-copy { margin-top: 18px; font-size: 12px; opacity: 0.6; }

/* App window */
.app-window {
  width: 100%; max-width: 1100px; height: 100%; max-height: 720px;
  display: flex; flex-direction: column;
  border-radius: 8px 8px 4px 4px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.35);
  overflow: hidden;
  background: #eef4fb;
}

/* Title bar - Aero glass */
.titlebar {
  height: 34px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 0 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.05) 45%, rgba(160,200,240,0.35)),
    linear-gradient(180deg, #cfe4f7, #a9cdec);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.titlebar-left { display: flex; align-items: center; gap: 8px; }
.titlebar-icon { font-size: 15px; }
.titlebar-text { font-size: 12px; color: #143a63; text-shadow: 0 1px 0 rgba(255,255,255,0.7); }
.win-controls { display: flex; gap: 2px; }
.wc { width: 30px; height: 22px; border: 1px solid rgba(255,255,255,0.5); border-radius: 3px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(210,230,248,0.5)); font-size: 11px; color: #234; line-height: 1; }
.wc:hover { background: linear-gradient(180deg,#fff,#dcecfb); }
.wc-close:hover { background: linear-gradient(180deg,#ff9a8a,#e23b25); color: #fff; box-shadow: 0 0 6px rgba(226,59,37,0.6); }

/* Tab strip */
.tab-strip {
  display: flex; gap: 2px; padding: 3px 6px 0;
  background: linear-gradient(180deg,#e6f1fb,#d3e6f7);
  border-bottom: 1px solid #b9d3ec;
}
.tab {
  padding: 5px 14px; font-size: 12px; color: #1c4b7a; cursor: pointer;
  border: 1px solid transparent; border-bottom: none; border-radius: 4px 4px 0 0;
  background: transparent;
}
.tab:hover { background: rgba(255,255,255,0.5); }
.tab-on {
  background: linear-gradient(180deg,#fbfdff,#eef6fd);
  border-color: #b9d3ec; color: #0d3a66; font-weight: 500;
  margin-bottom: -1px;
}

/* Ribbon */
.ribbon {
  background: linear-gradient(180deg, var(--ribbon-top), var(--ribbon-bot));
  border-bottom: 1px solid #a9c8e6;
  min-height: 92px;
}
.ribbon-body { display: flex; align-items: stretch; min-height: 92px; }
.rib-group {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 6px 10px 3px; border-right: 1px solid rgba(150,180,210,0.4); min-width: 60px;
}
.rib-group-label { text-align: center; font-size: 10.5px; color: #5f7793; margin-top: 3px; }

/* Ribbon buttons */
.aero-ribbtn {
  display: flex; align-items: center; cursor: pointer; border: 1px solid transparent;
  border-radius: 4px; color: #234; background: transparent;
}
.aero-ribbtn:hover { background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(210,232,250,0.7)); border-color: #a9cdec; }
.aero-ribbtn:active, .aero-active { background: linear-gradient(180deg,#cfe4f7,#b6d6f0); border-color: #7fb0dc; }
.aero-ribbtn-big { flex-direction: column; width: 78px; padding: 5px 3px; text-align: center; }
.aero-ribbtn-big .ribtxt { font-size: 11px; line-height: 1.15; margin-top: 3px; }
.aero-ribbtn-sm { flex-direction: row; gap: 5px; padding: 4px 7px; }
.aero-ribbtn-sm .ribtxt { font-size: 11.5px; }
.ribicon { line-height: 1; }
.aero-ribbtn-big .ribicon {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 5px; background: linear-gradient(180deg,#eaf5ff,#cfe4f7);
  border: 1px solid #aacdeb; color: #1c6ac0;
}

/* Transition / effect thumbs */
.trans-thumb {
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 62px;
  padding: 4px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; background: transparent;
  font-size: 10.5px; color: #234;
}
.trans-thumb:hover { background: rgba(255,255,255,0.7); border-color: #aacdeb; }
.trans-sel { background: linear-gradient(180deg,#cfe4f7,#b6d6f0); border-color: #4a90d9 !important; }
.trans-thumb-box {
  width: 48px; height: 30px; border: 1px solid #8fb4d8; border-radius: 3px;
  background: linear-gradient(135deg,#7fa8d0,#3f6fa8); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
}

/* Win controls */
.win-btn {
  font-size: 11.5px; padding: 3px 10px; border: 1px solid #7fa9d0; border-radius: 3px; cursor: pointer;
  background: linear-gradient(180deg,#fbfdff,#dbeafa); color: #1c4b7a;
}
.win-btn:hover { background: linear-gradient(180deg,#fff,#cfe4f7); }
.win-btn-on { background: linear-gradient(180deg,#cfe4f7,#a9cdec); border-color: #4a90d9; }
.win-input {
  font-size: 12px; padding: 3px 7px; border: 1px solid #8fb4d8; border-radius: 3px; background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08); min-width: 160px;
}

/* Workspace */
.workspace { flex: 1; display: flex; min-height: 0; background: #d8e6f4; }
@media (max-width: 760px) { .workspace { flex-direction: column; } }

/* Preview */
.preview-pane {
  flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 10px; gap: 8px;
  border-right: 1px solid #b6cee6;
}
.preview-frame {
  flex: 1; min-height: 0; background: #000; border: 1px solid #6f95bb;
  border-radius: 3px; position: relative; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 24px rgba(0,0,0,0.6);
}
.preview-canvas { max-width: 100%; max-height: 100%; display: block; }
.preview-empty { position: absolute; color: #556; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; }

/* Transport */
.transport {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; background: linear-gradient(180deg,#f0f6fc,#dceaf7);
  border: 1px solid #b6cee6; border-radius: 4px;
}
.tp-btn {
  width: 30px; height: 26px; border: 1px solid #7fa9d0; border-radius: 3px; cursor: pointer; font-size: 12px;
  background: linear-gradient(180deg,#fbfdff,#dbeafa); color: #1c4b7a; display: flex; align-items: center; justify-content: center;
}
.tp-btn:hover { background: linear-gradient(180deg,#fff,#cfe4f7); }
.tp-play { color: #1a7a2a; font-size: 13px; }
.seek-wrap { flex: 1; }
.seek { width: 100%; accent-color: var(--aero-blue); }
.time-readout { font-size: 11px; color: #234; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Board */
.board-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; position: relative; }

.storyboard-scroll {
  flex: 1; display: flex; align-items: center; gap: 0; padding: 14px; overflow-x: auto; overflow-y: hidden;
}
.sb-cell {
  flex: 0 0 auto; width: 128px; cursor: pointer; border: 2px solid transparent; border-radius: 4px;
  background: #eef4fb; padding: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.15); position: relative;
}
.sb-cell:hover { border-color: #9cc3e8; }
.sb-sel { border-color: #4a90d9 !important; box-shadow: 0 0 0 2px rgba(74,144,217,0.35); }
.sb-thumb { width: 100%; height: 72px; background: #223; border-radius: 2px; overflow: hidden; }
.sb-cap { font-size: 10.5px; text-align: center; color: #456; margin-top: 2px; }
.sb-badges { position: absolute; top: 5px; left: 5px; display: flex; gap: 3px; }
.badge { font-size: 9px; padding: 1px 4px; border-radius: 3px; color: #fff; font-weight: 600; }
.badge-t { background: #d67a1a; }
.badge-fx { background: #6a3fb0; }
.trans-connector {
  width: 22px; text-align: center; color: #2f6db3; font-size: 12px;
}

/* Timeline */
.timeline-wrap { flex: 1; overflow: auto; padding: 8px; display: flex; flex-direction: column; }
.tl-ruler { display: flex; height: 18px; }
.tl-tick { flex: 0 0 auto; font-size: 9px; color: #567; border-left: 1px solid #a9c3dc; padding-left: 2px; }
.tl-track { position: relative; display: flex; height: 74px; margin-top: 2px; }
.tl-clip { flex: 0 0 auto; border: 2px solid #9cc3e8; border-radius: 3px; overflow: hidden; position: relative; cursor: pointer; background: #223; }
.tl-trans { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: #fff; text-shadow: 0 0 4px #000; }
.tl-playhead { position: absolute; top: 0; width: 2px; height: 100%; background: #e23b25; box-shadow: 0 0 4px #e23b25; pointer-events: none; }
.tl-audio-lane { height: 34px; margin-top: 6px; background: #cfe0f0; border: 1px solid #a9c3dc; border-radius: 3px; display: flex; align-items: center; }
.tl-audio-bar {
  height: 24px; margin: 0 2px; border-radius: 3px; color: #063; font-size: 11px; display: flex; align-items: center; padding: 0 8px;
  background: repeating-linear-gradient(90deg, #6ac47a, #6ac47a 3px, #4fae60 3px, #4fae60 6px);
  overflow: hidden; white-space: nowrap;
}

/* Text panel */
.text-panel {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  background: linear-gradient(180deg,#fef7 e6,#fdeecb);
  background: linear-gradient(180deg,#fff7e6,#fdeecb);
  border-bottom: 2px solid #e0a94a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.text-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 10px;
  background: linear-gradient(180deg,#f5c65a,#e0a13a); color: #4a2c00; font-size: 12px; font-weight: 600; }
.tp-close { border: none; background: transparent; cursor: pointer; font-size: 12px; color: #4a2c00; }

/* Clippy toast */
.clippy-toast {
  position: fixed; bottom: 52px; right: 14px; z-index: 40; max-width: 280px;
  background: linear-gradient(180deg,#fffbe0,#fff2b0); border: 1px solid #d9b23a; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35); padding: 10px 12px; display: flex; gap: 10px;
  animation: pop 0.3s ease; font-size: 12px; color: #4a3800;
}
@keyframes pop { from { transform: translateY(12px) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
.clippy-icon { font-size: 22px; }
.clippy-body { position: relative; padding-right: 14px; line-height: 1.4; }
.clippy-x { position: absolute; top: -4px; right: -6px; border: none; background: transparent; cursor: pointer; color: #967; }

.save-msg {
  position: fixed; bottom: 52px; left: 14px; z-index: 40;
  background: rgba(20,50,90,0.9); color: #eaf3ff; padding: 7px 14px; border-radius: 6px; font-size: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4); animation: pop 0.3s ease;
}

/* Modal / dialog */
.modal-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,20,50,0.4); display: flex; align-items: center; justify-content: center; }
.win-dialog { width: 340px; background: #eef4fb; border: 1px solid #6f95bb; border-radius: 6px; box-shadow: 0 14px 44px rgba(0,0,0,0.5); overflow: hidden; }
.dialog-title { padding: 8px 12px; font-size: 12px; color: #143a63;
  background: linear-gradient(180deg,#cfe4f7,#a9cdec); border-bottom: 1px solid #8fb4d8; }
.dialog-body { padding: 14px; }
.progress-outer { height: 18px; background: #dbe8f4; border: 1px solid #8fb4d8; border-radius: 3px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,0.15); }
.progress-inner { height: 100%; background: repeating-linear-gradient(90deg,#7ee08a,#7ee08a 12px,#63cf72 12px,#63cf72 24px); transition: width 0.15s; }

/* Shutdown */
.shutdown-overlay { position: fixed; inset: 0; z-index: 70; background: #0a2a5a; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #eaf3ff; }
.shutdown-spinner { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.2); border-top-color: #7fd0ff; border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shutdown-text { margin-top: 18px; font-size: 16px; font-weight: 300; }

/* Start menu */
.start-menu {
  position: fixed; bottom: 40px; left: 6px; z-index: 55; width: 220px;
  background: linear-gradient(180deg, rgba(20,45,85,0.96), rgba(12,30,60,0.96));
  border: 1px solid rgba(120,170,220,0.5); border-radius: 6px 6px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5); overflow: hidden; backdrop-filter: blur(10px);
  animation: pop 0.18s ease;
}
.start-header { padding: 10px 12px; font-size: 13px; color: #cfe6ff; font-weight: 600;
  background: linear-gradient(180deg, rgba(90,150,220,0.35), transparent); border-bottom: 1px solid rgba(120,170,220,0.3); }
.start-item { padding: 8px 12px; font-size: 12px; color: #dcecff; cursor: pointer; }
.start-item:hover { background: rgba(90,150,220,0.4); }
.start-divider { height: 1px; background: rgba(120,170,220,0.3); margin: 3px 0; }
.start-shutdown { color: #ffd0c8; }

/* Taskbar */
.taskbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 40px; z-index: 50;
  display: flex; align-items: center; gap: 4px; padding: 0 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.02) 40%, rgba(0,0,0,0.25)),
    linear-gradient(180deg, #2a6cc0, #103a7a);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(160,200,240,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.start-orb {
  width: 42px; height: 34px; border: none; cursor: pointer; border-radius: 6px;
  background: radial-gradient(circle at 40% 30%, #eafaff, #4aa0e8 55%, #1a5aa8);
  box-shadow: 0 0 8px rgba(120,200,255,0.6), inset 0 1px 1px rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
}
.start-orb:hover { filter: brightness(1.15); }
.orb-on { box-shadow: 0 0 14px rgba(160,220,255,0.9), inset 0 1px 1px rgba(255,255,255,0.7); }
.orb-glyph { color: #fff; font-size: 18px; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.task-item {
  display: flex; align-items: center; gap: 6px; padding: 5px 12px; height: 30px; border-radius: 4px;
  color: #eaf3ff; font-size: 12px; cursor: default;
  border: 1px solid rgba(160,200,240,0.35);
}
.task-running { background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(120,180,240,0.15));
  box-shadow: inset 0 0 8px rgba(160,210,255,0.5); }
.task-ico { font-size: 14px; }
.remix-link { color: #cfe6ff; font-size: 11px; text-decoration: none; opacity: 0.85; margin-right: 8px; }
.remix-link:hover { text-decoration: underline; opacity: 1; }
.systray { display: flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 1px solid rgba(160,200,240,0.3); }
.tray-ico { color: #cfe6ff; font-size: 10px; }
.tray-clock { color: #eaf3ff; font-size: 11px; text-align: center; line-height: 1.2; text-shadow: 0 1px 1px rgba(0,0,0,0.4); }
.tray-date { font-size: 10px; opacity: 0.85; }

/* scrollbar Win7 flavor */
::-webkit-scrollbar { height: 14px; width: 14px; }
::-webkit-scrollbar-track { background: #dbe8f4; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#bcd6ef,#8fb4d8); border-radius: 7px; border: 2px solid #dbe8f4; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg,#a9cdec,#7fa9d0); }