      *,
      *::before,
      *::after {
        box-sizing: border-box;
        font-family: "Comic Sans MS", "Comic Sans", sans-serif !important;
      }

      html,
      body {
        height: 100%;
      }

      body {
        margin: 0;
        font-family: "Comic Sans MS", "Comic Sans", sans-serif;
        background: linear-gradient(135deg, #ff9bf6 0%, #8be9fd 45%, #ffe180 100%);
        min-height: var(--app-h, 100dvh);
        color: #1a1a1a;
        display: flex;
        flex-direction: column;
        font-size: 1rem;
        overflow-x: hidden;
        overflow-y: auto;
      }

      body.page-front {
        overflow-y: hidden;
      }

      body.page-front main,
      body.page-front #app-main {
        overflow: hidden;
      }

      @media (min-width: 769px) {
        body.page-settings {
          overflow-y: hidden;
        }

        body.page-settings main,
        body.page-settings #app-main {
          overflow: hidden;
        }

        body.page-settings #settings-page {
          overflow-y: auto;
          overflow-x: hidden;
          padding-right: 4px;
        }

        body.page-settings .settings-section {
          padding-bottom: 24px;
        }
      }

      body,
      button,
      input,
      textarea,
      select {
        font-family: "Comic Sans MS", "Comic Sans", sans-serif;
      }

      header {
        position: relative;
        min-height: var(--header-h);
        padding: 8px 24px;
        margin-bottom: 8px;
        z-index: 20;
      }

      .header-left,
      .header-right {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
      }

      .header-left {
        left: 24px;
      }

      .header-right {
        right: 24px;
      }

      .header-title-wrapper {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        text-align: center;
        pointer-events: none;
      }

      .header-title {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 700;
        white-space: nowrap;
        pointer-events: none;
      }

      .header-title .header-drunk-indicator {
        margin-left: 0.5rem;
        font-size: 1.5rem;
        font-weight: inherit;
        letter-spacing: 0;
      }

      .mobile-drunk-indicator {
        display: none;
        font-size: 0.95rem;
        font-weight: 700;
        color: #1a1a1a;
        white-space: nowrap;
      }

      .menu {
        position: relative;
        margin-left: auto;
      }

      .hidden {
        display: none !important;
      }

      .menu button {
        background: #ffb347;
        border: 3px solid #ff6b6b;
        border-radius: 999px;
        padding: 8px 16px;
        font-size: 16px;
        cursor: pointer;
        color: #1a1a1a;
      }

      nav {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 8px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        display: none;
        flex-direction: column;
        min-width: 160px;
        padding: 16px;
        z-index: 30;
      }

      nav a {
        text-decoration: none;
        margin-bottom: 10px;
        color: #1a1a1a;
        font-weight: bold;
      }

      nav a:last-child {
        margin-bottom: 0;
      }

      nav.show {
        display: flex;
      }

      .page {
        display: none;
        flex-direction: column;
        gap: 12px;
        min-height: 0;
        flex: 1;
      }

      .page.active {
        display: flex;
      }

      #app-main {
        overflow-y: auto;
        overflow-x: hidden;
        min-height: var(--app-h, 100dvh);
      }

      main {
        flex: 1 1 auto;
        padding: 0 16px 32px;
        max-width: 1100px;
        margin: 0 auto;
        width: min(1100px, 100%);
        display: flex;
        flex-direction: column;
        position: relative;
        min-height: 0;
      }

      .section {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 20px;
        padding: 32px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        margin-bottom: 32px;
        min-height: 100%;
      }

      h1 {
        margin-top: 0;
      }

      .header-tabs {
        display: none;
      }

      body.page-front .header-tabs {
        display: flex;
      }

      body.page-settings .header-tabs {
        display: none !important;
      }

      body.page-front main {
        padding-bottom: 0;
      }

      body.page-front .header-tabs {
        display: flex;
      }

      @media (max-width: 768px) {
        body.page-front .header-left {
          display: flex;
          left: 12px;
          right: auto;
          transform: translateY(-50%);
          justify-content: flex-start;
          max-width: calc(100% - 104px);
          overflow: hidden;
        }

        body.page-front .header-title-wrapper {
          display: none;
        }

        body.page-front .header-right {
          display: flex;
          right: 12px;
          left: auto;
        }

        body.page-front .header-right .menu {
          display: none;
        }

        body.page-front .mobile-drunk-indicator {
          display: inline-block;
        }
      }

      .audio-entry {
        display: inline-flex;
        gap: 6px;
        align-items: center;
        margin-right: 6px;
        margin-bottom: 4px;
      }

      .audio-entry a {
        font-size: 13px;
        color: #1a1a1a;
      }

      .audio-delete {
        border: none;
        background: transparent;
        color: #ff3864;
        font-size: 16px;
        line-height: 1;
        cursor: pointer;
      }

      .audio-delete:focus-visible {
        outline: 2px solid #1a1a1a;
        outline-offset: 2px;
      }

      #login-overlay {
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 10, 0.88);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 999;
        padding: 24px;
      }

      #login-overlay.visible {
        display: flex;
      }

      body.mamma-mia-locked {
        overflow: hidden;
      }

      #mamma-mia-lock-overlay {
        position: fixed;
        inset: 0;
        z-index: 1200;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(12, 12, 12, 0.64);
        color: #fff;
        font-size: clamp(1.6rem, 4vw, 2.6rem);
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        pointer-events: all;
        touch-action: none;
      }

      #mamma-mia-lock-overlay.visible {
        display: flex;
      }

      #mamma-mia-lock-overlay p {
        margin: 0;
        cursor: pointer;
        user-select: none;
      }

      .login-card {
        background: #fefefe;
        border-radius: 24px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
        padding: 32px;
        width: min(360px, 100%);
        text-align: center;
      }

      .login-card h2 {
        margin-top: 0;
        font-size: 28px;
      }

      .login-card label {
        display: block;
        text-align: left;
        margin-top: 12px;
        font-weight: bold;
      }

      .login-card input {
        width: 100%;
        padding: 12px;
        border-radius: 12px;
        border: 2px solid #ff6b6b;
        margin-top: 6px;
        font-size: 16px;
        font-family: "Comic Sans MS", "Comic Sans", sans-serif;
      }

      .login-card button {
        width: 100%;
        margin-top: 16px;
        padding: 12px;
        font-size: 16px;
        border: none;
        border-radius: 999px;
        background: #50fa7b;
        color: #1a1a1a;
        font-weight: bold;
        cursor: pointer;
        font-family: inherit;
      }

      .login-error {
        color: #ff3864;
        margin-top: 12px;
        min-height: 24px;
      }


      footer {
        text-align: center;
        padding: 12px;
        font-size: 14px;
        color: #111;
      }
