@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;400;600;700&display=swap');
    :root {
      --primary: #4f46e5;
      --primary-dark: #4338ca;
      --secondary: #f3f4f6;
      --background: #f9fafb;
      --background-alt: #fff;
      --text-base: #23272f;
      --text-muted: #6b7280;
      --danger: #b91c1c;
      --border: #e5e7eb;
      --shadow: 0 2px 16px 0 rgba(0,0,0,0.07);
      --radius: 12px;
    }
    body {
      background: var(--background);
      color: var(--text-base);
      font-family: 'Inter', 'Roboto', Arial, sans-serif;
      padding: 0;
      margin: 0;
      min-height: 100vh;
    }
    .container {
      max-width: 700px;
      margin: 2.5rem auto;
      background: var(--background-alt);
      padding: 2.5rem 2rem 2rem 2rem;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }
    h1 {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 2rem;
      color: var(--primary);
      letter-spacing: -1px;
      text-align: center;
    }
    label {
      font-weight: 600;
      margin-bottom: 0.5rem;
      display: block;
      color: var(--text-base);
      letter-spacing: 0.01em;
    }
    label.inline {
      display: inline;
    }
    input[type="text"], textarea, select, input[type="email"], input[type="password"] {
      width: 100%;
      padding: 0.75rem 1rem;
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      margin-bottom: 1.5rem;
      font-size: 1rem;
      background: var(--secondary);
      color: var(--text-base);
      transition: border 0.2s, box-shadow 0.2s;
      box-sizing: border-box;
      font-family: inherit;
    }
    input[type="text"]:focus, textarea:focus, select:focus {
      border-color: var(--primary);
      outline: none;
      box-shadow: 0 0 0 2px #6366f1aa;
    }
    .textarea {
      min-height: 120px;
      resize: vertical;
    }
    select {
      min-height: 120px;
      background: var(--secondary);
    }
    .app-shell {
      display: flex;
      min-height: 100vh;
      background: var(--background);
    }
    .sidebar {
      --sidebar-width: 72px;
      width: var(--sidebar-width);
      flex-shrink: 0;
      background: #16181d;
      color: rgba(255, 255, 255, 0.72);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0.75rem 0;
      position: sticky;
      top: 0;
      align-self: flex-start;
      height: 100vh;
      max-height: 100vh;
      border-right: 1px solid rgba(255, 255, 255, 0.06);
      box-sizing: border-box;
      z-index: 100;
      overflow: visible;
    }
    .sidebar-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 0.25rem 0 1rem;
      margin-bottom: 0.25rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      box-sizing: border-box;
    }
    .sidebar-nav-item {
      position: relative;
      overflow: visible;
    }
    .sidebar-logo a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 10px;
      text-decoration: none;
      transition: background 0.15s ease;
      position: relative;
    }
    .sidebar-logo a:hover {
      background: rgba(255, 255, 255, 0.06);
    }
    .sidebar-logo img {
      display: block;
      border-radius: 6px;
    }
    .sidebar-links {
      list-style: none;
      padding: 0.5rem 0;
      margin: 0;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      flex: 1;
      min-height: 0;
      overflow: visible;
      box-sizing: border-box;
    }
    .sidebar-links li {
      margin: 0;
      width: 100%;
      display: flex;
      justify-content: center;
      position: relative;
      box-sizing: border-box;
    }
    .sidebar-links li.sidebar-divider {
      width: 28px;
      height: 1px;
      margin: 0.5rem 0;
      background: rgba(255, 255, 255, 0.1);
      pointer-events: none;
    }
    .sidebar-links li.sidebar-link-spacer {
      flex: 1;
      min-height: 0.5rem;
      pointer-events: none;
    }
    .sidebar-links li a {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0;
      width: 44px;
      height: 44px;
      border-radius: 10px;
      color: rgba(255, 255, 255, 0.65);
      text-decoration: none;
      transition: background 0.15s ease, color 0.15s ease;
      position: relative;
      box-sizing: border-box;
    }
    .sidebar-links li a:hover,
    .sidebar-coming-soon-callout:hover {
      background: rgba(255, 255, 255, 0.06);
      color: #fff;
    }
    .sidebar-links li.active a {
      background: rgba(99, 102, 241, 0.22);
      color: #fff;
    }
    .nav-icon {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }
    .nav-label {
      display: none;
    }
    .nav-upgrade-dot {
      position: absolute;
      top: 7px;
      right: 7px;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), #8b5cf6);
      box-shadow: 0 0 0 2px #16181d;
    }
    .sidebar-nav-tooltip {
      position: absolute;
      left: calc(100% + 10px);
      top: 50%;
      transform: translateY(-50%);
      padding: 0.35rem 0.65rem;
      background: #2a2d35;
      color: #fff;
      font-size: 0.75rem;
      font-weight: 500;
      white-space: nowrap;
      border-radius: 6px;
      pointer-events: none;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.12s ease, visibility 0.12s ease;
      z-index: 1000;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }
    .sidebar-nav-item:hover > .sidebar-nav-tooltip,
    .sidebar-nav-item:focus-within > .sidebar-nav-tooltip {
      opacity: 1;
      visibility: visible;
    }
    .sidebar-footer-item {
      display: flex;
      justify-content: center;
      margin-top: 0.25rem;
      flex-shrink: 0;
    }
    .sidebar-coming-soon-callout {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 10px;
      text-decoration: none;
      color: rgba(139, 92, 246, 0.9);
      transition: background 0.15s ease, color 0.15s ease;
      box-sizing: border-box;
    }
    .sidebar-coming-soon-callout .nav-icon {
      color: inherit;
    }
    .sidebar-coming-soon-callout:hover {
      color: #c4b5fd;
    }
    .sidebar-footer-item.active .sidebar-coming-soon-callout {
      background: rgba(99, 102, 241, 0.22);
      color: #fff;
    }
    .main-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      background: var(--background);
    }
    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.5rem 1.5rem;
      background: var(--background-alt);
      border-bottom: 1px solid var(--border);
      min-height: 48px;
      box-sizing: border-box;
      flex-shrink: 0;
    }
    .topbar-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text-base);
      letter-spacing: -0.02em;
      line-height: 1.2;
      min-width: 0;
    }
    .topbar-title a {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      text-decoration: none;
      color: inherit;
    }
    .topbar-logo {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
    }
    .topbar-user {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-shrink: 0;
    }
    .topbar-user a {
      text-decoration: none;
      color: inherit;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.2rem 0.35rem 0.2rem 0.2rem;
      border-radius: 999px;
      transition: background 0.15s ease;
    }
    .topbar-user a:hover {
      background: var(--secondary);
      opacity: 1;
    }
    .user-avatar {
      background: var(--primary);
      color: #fff;
      border-radius: 50%;
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 0.7rem;
      letter-spacing: 0.01em;
      flex-shrink: 0;
    }
    .user-name {
      font-weight: 500;
      color: var(--text-muted);
      font-size: 0.8125rem;
      white-space: nowrap;
    }
    .btn-sign-in {
      color: #fff;
      background: var(--primary);
      padding: 0.35rem 0.75rem;
      border-radius: 999px;
      font-weight: 500;
      font-size: 0.8125rem;
    }

    /* Marketing / auth pages without the left nav */
    .app-shell:not(:has(.sidebar)) .topbar {
      padding: 0.75rem 2rem;
      min-height: 64px;
    }
    .app-shell:not(:has(.sidebar)) .topbar-title {
      font-size: 1.125rem;
      font-weight: 700;
      color: var(--primary);
      letter-spacing: -0.03em;
    }
    .app-shell:not(:has(.sidebar)) .topbar-logo {
      width: 22px;
      height: 22px;
    }
    .app-shell:not(:has(.sidebar)) .user-avatar {
      width: 32px;
      height: 32px;
      font-size: 0.8rem;
    }
    .app-shell:not(:has(.sidebar)) .user-name {
      font-size: 0.9rem;
      color: var(--text-base);
    }
    .app-shell:not(:has(.sidebar)) .btn-sign-in {
      padding: 0.45rem 0.9rem;
      font-size: 0.875rem;
    }

    .content-area {
      flex: 1;
      padding: 2.5rem 2.5rem 2.5rem 2.5rem;
      background: var(--background);
      min-height: 0;
    }
    .container {
      max-width: 650px;
      margin: 0 auto;
      background: var(--background-alt);
      padding: 2.2rem 2rem 2rem 2rem;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }
    .input {
      width: 100%;
      padding: 0.75rem 1rem;
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      margin-bottom: 1.5rem;
      font-size: 1rem;
      background: var(--secondary);
      color: var(--text-base);
      transition: border 0.2s, box-shadow 0.2s;
      box-sizing: border-box;
      font-family: inherit;
    }
    .input:focus {
      border-color: var(--primary);
      outline: none;
      box-shadow: 0 0 0 2px #6366f1aa;
    }
    @media (max-width: 1100px) {
      .app-shell {
        flex-direction: column;
      }
      .sidebar {
        --sidebar-width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        position: static;
        align-self: stretch;
        height: auto;
        max-height: none;
        padding: 0.5rem 0.75rem;
        align-items: center;
        gap: 0.35rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
      }
      .sidebar-logo {
        width: auto;
        padding: 0;
        margin: 0;
        border-bottom: none;
        flex-shrink: 0;
      }
      .sidebar-links {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        padding: 0;
        gap: 0.25rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
      }
      .sidebar-links li {
        width: auto;
        flex-shrink: 0;
      }
      .sidebar-links li.sidebar-divider,
      .sidebar-links li.sidebar-link-spacer {
        display: none;
      }
      .sidebar-links li a {
        width: auto;
        min-width: 52px;
        height: auto;
        padding: 0.4rem 0.5rem;
        gap: 0.15rem;
      }
      .nav-label {
        display: block;
        font-size: 0.6rem;
        font-weight: 500;
        line-height: 1.1;
        text-align: center;
        max-width: 56px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .sidebar-footer-item {
        width: auto;
        margin: 0;
        flex-shrink: 0;
      }
      .sidebar-nav-tooltip {
        display: none;
      }
    }
    @media (max-width: 800px) {
      .main-content {
        padding: 0;
      }
      .topbar {
        padding: 0.45rem 0.75rem;
        min-height: 44px;
      }
      .topbar-title {
        font-size: 0.875rem;
      }
      .app-shell:has(.sidebar) .user-name {
        display: none;
      }
      .app-shell:not(:has(.sidebar)) .topbar {
        padding: 0.625rem 1.25rem;
        min-height: 56px;
      }
      .app-shell:not(:has(.sidebar)) .topbar-title {
        font-size: 1rem;
      }
      .content-area {
        padding: 1rem 0.5rem;
      }
      .container {
        max-width: 98vw;
        padding: 1rem 0.5rem;
      }
      .promo-bar {
        padding: 0.8rem 1rem;
        font-size: .8rem;
      }
      .promo-text {
        font-size: .8rem;
      }
    }

    .global-error-bar {
      box-sizing: border-box;
      padding: 1rem 2.5rem 1rem 2.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-weight: 600;
      font-size: 1.08rem;
      position: relative;
      z-index: 10;
      background: #fee2e2;
      color: #b91c1c;
      border-bottom: 1.5px solid #fca5a5;
    }
    .promo-bar {
      box-sizing: border-box;
      padding: .8rem 2.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 1rem;
      position: relative;
      z-index: 10;
      background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
      color: #fff;
      border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
      text-align: center;
      animation: slideInFromTop 0.6s ease-out;
    }
    
    @keyframes slideInFromTop {
      0% {
        transform: translateY(-100%);
        opacity: 0;
      }
      100% {
        transform: translateY(0);
        opacity: 1;
      }
    }
    .promo-content {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
    }
    .promo-text {
      font-size: 1rem;
      letter-spacing: 0.01em;
    }
    .promo-text strong {
      background: rgba(255, 255, 255, 0.2);
      padding: 0.2rem 0.5rem;
      border-radius: 6px;
      font-weight: 700;
      margin-left: 0.3rem;
    }
    .global-message-bar {
      position: fixed;
      top: max(0.75rem, env(safe-area-inset-top, 0px));
      left: 50%;
      transform: translateX(-50%);
      z-index: 150;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      width: auto;
      max-width: calc(100vw - 2rem);
      pointer-events: none;
    }
    .global-message-bar > div,
    .global-message-pill {
      pointer-events: auto;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      border-radius: 999px;
      padding: 0.6rem 0.55rem 0.6rem 1.25rem;
      font-size: 0.875rem;
      font-weight: 600;
      line-height: 1.4;
      text-align: center;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
      border: 1px solid transparent;
      width: auto;
      max-width: 100%;
      box-sizing: border-box;
    }
    .global-message-text {
      flex: 1;
      min-width: 0;
    }
    .message-dismiss {
      background: none;
      border: none;
      color: inherit;
      font-size: 1.25rem;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      padding: 0.15rem 0.45rem;
      border-radius: 999px;
      opacity: 0.55;
      flex-shrink: 0;
    }
    .message-dismiss:hover {
      opacity: 1;
      background: rgba(0, 0, 0, 0.06);
    }
    .global-message-bar .error {
      background: #fee2e2;
      color: #b91c1c;
      border-color: #fca5a5;
    }
    .global-message-bar .success {
      color: #047857;
      background: #ecfdf5;
      border-color: #a7f3d0;
    }
    .global-message-bar .info {
      color: #0369a1;
      background: #eff6ff;
      border-color: #bae6fd;
    }
    .success-message {
      color: #059669;
      background: #d1fae5;
      border: 1px solid #a7f3d0;
      border-radius: var(--radius);
      padding: 0.75rem 1rem;
      margin-bottom: 1.5rem;
      text-align: center;
      font-weight: 600;
    }
    .error-message {
      color: #b91c1c;
      background: #fee2e2;
      border: 1px solid #fca5a5;
      border-radius: var(--radius);
      padding: 0.75rem 1rem;
      margin-bottom: 1.5rem;
      text-align: center;
      font-weight: 600;
    }
    .error-dismiss {
      background: none;
      border: none;
      color: #b91c1c;
      font-size: 1.5rem;
      font-weight: bold;
      cursor: pointer;
      margin-left: 1.5rem;
      padding: 0 0.5rem;
      line-height: 1;
    }

    /* Site footer */
    .site-footer {
      background: var(--background-alt);
      border-top: 1px solid var(--border);
      padding: 0.625rem 1.5rem;
      flex-shrink: 0;
    }
    .site-footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem 1.5rem;
      flex-wrap: wrap;
    }
    .site-footer-left {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
      font-size: 0.8125rem;
      color: var(--text-muted);
    }
    .site-footer-copy a {
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.15s;
    }
    .site-footer-copy a:hover {
      color: var(--text-base);
    }
    .site-footer-nav {
      display: flex;
      align-items: center;
    }
    .site-footer-nav a {
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.15s;
    }
    .site-footer-nav a:hover {
      color: var(--primary);
    }
    .site-footer-nav a + a::before {
      content: '·';
      margin: 0 0.5rem;
      color: #d1d5db;
      pointer-events: none;
    }
    .site-footer-social {
      display: flex;
      align-items: center;
      gap: 0.625rem;
    }
    .site-footer-social a {
      display: flex;
      color: var(--text-muted);
      transition: color 0.15s;
    }
    .site-footer-social a:hover {
      color: var(--primary);
    }
    @media (max-width: 640px) {
      .global-message-pill {
        font-size: 0.8125rem;
        padding: 0.5rem 0.45rem 0.5rem 1rem;
      }
      .site-footer-inner {
        justify-content: center;
        text-align: center;
      }
      .site-footer-left {
        justify-content: center;
      }
    }

    /* Christmas Theme - Promo Bar Only */
    .theme-christmas .promo-bar {
      background: linear-gradient(135deg, #dc2626 0%, #16a34a 50%, #dc2626 100%);
      border-bottom: 1.5px solid rgba(255, 255, 255, 0.25);
    }
