/* Nunito font is loaded via <link> in index.html / components.html
   (HTML <link> loads in parallel; CSS @import would block until base.css
   has loaded). */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: url('../img/icons/bg.png') center / cover no-repeat fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.bg-iframe {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border: 0;
  z-index: 0;
}

body:has(.bg-iframe) {
  background: transparent;
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  padding: 0 100px 40px;
  /* Wrapper itself ignores pointer events so empty gaps + padding fall through
     to the bg-iframe behind. Direct visible children re-enable hits. */
  pointer-events: none;
}
.app > * {
  pointer-events: auto;
}

/* Shared layout shells for the inner panels. */
.calendar-controls,
.focus-mode-toggle-row,
.focus-layout {
  max-width: 860px;
  margin-inline: auto;
}

.focus-layout:not([hidden]) {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.focus-layout > .focus-panel {
  flex: 65;
  min-width: 0;
}

.focus-sidebar {
  flex: 35;
  min-width: 0;
}
