
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: #ffffff;
      min-height: 100vh;
      color: #333;
      overflow-x: hidden;
    }
    
    /* Sliding container setup */
    .main-wrapper {
      position: relative;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
    }
    
    .sliding-container {
      display: flex;
      width: 200vw;
      height: 100vh;
      transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sliding-container.show-forecast {
      transform: translateX(-100vw);
    }
    
    /* Voice Interface Panel */
    .voice-panel {
      width: 100vw;
      padding: 20px 20px;
      display: flex;
      align-items: flex-start;
      justify-content: center;
    }
    
    .voice-interface {
      width: 100%;
      text-align: left;
    }
    
    .forecast-panel.with-sidebar {
      padding-left: 320px;  /* Room for 300px sidebar + gap */
    }

    /* Forecast Panel */
    .forecast-panel {
      width: 100vw;
      padding: 5px 20px 10px 20px;
      background: white;
      transition: padding-left 0.5s cubic-bezier(0.4, 0, 0.2, 1);  /* Smooth transition */
    }
    
    /* Persistent Butterfly Sidebar */
    .butterfly-sidebar {
      position: fixed;
      left: -300px;
      top: 0;
      width: 300px;
      height: 100vh;
      background: white;
      border-right: 1px solid #e0e0e0;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
      padding: 20px;
      z-index: 100;
      transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .butterfly-sidebar.visible ~ .main-wrapper .forecast-panel {
      padding-left: 320px;  /* 300px sidebar + 20px gap */
    }
    
    .butterfly-sidebar.visible {
      left: 0;
    }

    .butterfly-sidebar .mini-butterfly {
      width: 80px;
      height: 66px;
      margin: 20px 0;
      animation: float 6s ease-in-out infinite;
      cursor: pointer;
    }
    
    .butterfly-sidebar .mini-chat {
      width: 100%;
      background: #f8f9fa;
      border-radius: 8px;
      padding: 15px;
      margin-top: 20px;
      max-height: 400px;
      overflow-y: auto;
      font-size: 12px;
      flex: 1;
    }
    
    .butterfly-sidebar .chat-input-area {
      width: 100%;
      padding: 10px;
      border-top: 1px solid #e0e0e0;
      background: white;
    }
    
    .butterfly-sidebar .chat-input-area input {
      width: 100%;
      padding: 8px 10px;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      font-size: 12px;
      background: transparent;
    }
    
    /* Header */
    .header {
      margin-bottom: 30px;
      transition: opacity 0.5s ease, height 0.5s ease, margin 0.5s ease;
      text-align: left;
    }
    
    .header.hidden {
      opacity: 0;
      height: 0;
      margin: 0;
      overflow: hidden;
    }
    
    .header h1 {
      font-family: 'Poppins', sans-serif; 
      font-size: 32px;
      font-weight: 700;
      color: #1A1617;
      letter-spacing: -0.5px;
      text-align: left;
      margin-bottom: 0px;
    }
    
    /* Main Butterfly Container */
    .butterfly-container {
      height: 100px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 30px;
      margin: 0 0 40px 0;
      position: relative;
    }
    
    /* Butterfly SVG */
    .butterfly {
      width: 120px;
      height: 100px;
      position: relative;
      animation: float 6s ease-in-out infinite;
    }
    
    .butterfly svg {
      width: 100%;
      height: 100%;
    }
    
    /* Wing animations */
    .butterfly:not(.active) .left-wing,
    .mini-butterfly:not(.active) .left-wing {
      transform-origin: center;
      animation: flapLeft 2s ease-in-out infinite;
    }
    
    .butterfly:not(.active) .right-wing,
    .mini-butterfly:not(.active) .right-wing {
      transform-origin: center;
      animation: flapRight 2s ease-in-out infinite;
    }
    
    .butterfly.active .left-wing,
    .mini-butterfly.active .left-wing {
      transform-origin: center;
      animation: activeFlapLeft 0.4s ease-in-out infinite;
    }
    
    .butterfly.active .right-wing,
    .mini-butterfly.active .right-wing {
      transform-origin: center;
      animation: activeFlapRight 0.4s ease-in-out infinite;
    }
    
    @keyframes float {
      0%, 100% { transform: translateY(0px) translateX(0px); }
      25% { transform: translateY(-10px) translateX(5px); }
      50% { transform: translateY(5px) translateX(-5px); }
      75% { transform: translateY(-5px) translateX(3px); }
    }
    
    @keyframes flapLeft {
      0%, 100% { transform: rotateY(0deg); }
      50% { transform: rotateY(40deg); }
    }
    
    @keyframes flapRight {
      0%, 100% { transform: rotateY(0deg); }
      50% { transform: rotateY(-40deg); }
    }
    
    @keyframes activeFlapLeft {
      0%, 100% { transform: rotateY(0deg); }
      50% { transform: rotateY(60deg); }
    }
    
    @keyframes activeFlapRight {
      0%, 100% { transform: rotateY(0deg); }
      50% { transform: rotateY(-60deg); }
    }
    
    /* Status */
    .status {
      text-align: left;
      margin: 0;
      font-size: 0.9rem;
      color: #666;
      font-weight: 400;
      font-family: 'Poppins', sans-serif;
      display: flex;
      align-items: center;
    }
    
    .status.listening {
      color: #d63384;
      font-weight: 500;
    }
    
    #status.main-status {
      margin: 20px 0;
      text-align: center;
    }
    
    /* Input area */
    .input-container {
      background: transparent;
      border-radius: 12px;
      padding: 20px;
      margin: 30px 0;
    }
    
    .input-area {
      display: flex;
      gap: 10px;
    }
    
    /* SCALED DOWN INPUTS */
    input[type="text"], input[type="number"], select {
      flex: 1;
      padding: 5px 8px;
      border: 1px solid #e0e0e0;
      border-radius: 4px;
      background: transparent;
      font-size: 11px;
      font-family: inherit;
      transition: all 0.2s ease;
      color: #333;
    }
    
    input:focus, select:focus {
      outline: none;
      border-color: #d63384;
      box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
    }
    
    button {
      padding: 6px 12px;
      border: none;
      border-radius: 4px;
      background: linear-gradient(135deg, #d63384, #8b5cf6);
      color: white;
      font-weight: 500;
      font-size: 11px;
      cursor: pointer;
      transition: all 0.2s ease;
      font-family: inherit;
    }
    
    button:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(214, 51, 132, 0.3);
    }
    
    button.ghost {
      background: transparent;
      border: 1px solid #e0e0e0;
      color: #333;
    }
    
    button.ghost:hover {
      background: #f8f9fa;
      box-shadow: none;
    }
    
    button.success {
      background: linear-gradient(135deg, #28a745, #20c997);
    }
    
    button.success:hover {
      box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    }
    
    /* Main page specific overrides */
    .voice-panel input[type="text"] {
      padding: 15px 20px;
      border-radius: 10px;
      font-size: 17px;
    }
    
    .voice-panel button {
      padding: 15px 30px;
      border-radius: 10px;
      font-size: 16px;
    }
    
    /* Conversation */
    .conversation {
      background: white;
      border: none;
      border-radius: 12px;
      padding: 20px;
      min-height: 250px;
      max-height: 400px;
      overflow-y: auto;
      margin-top: 30px;
    }
    
    .message {
      margin: 12px 0;
      padding: 10px 14px;
      border-radius: 8px;
      animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .message.user {
      background: #f0f4ff;
      border-left: 3px solid #5b8dee;
    }
    
    .message.assistant {
      background: #fdf4ff;
      border-left: 3px solid #d63384;
    }
    
    .message.system {
      background: #f8f9fa;
      color: #666;
      font-size: 0.9rem;
      font-style: italic;
    }
    
    .timestamp {
      font-size: 0.75rem;
      color: #999;
      margin-right: 8px;
    }
    
    .thinking {
      display: none;
      padding: 10px 14px;
      margin: 12px 0;
      border-radius: 8px;
      background: #fdf4ff;
      border-left: 3px solid #d63384;
    }
    
    .thinking.active {
      display: block;
    }
    
    .dots span {
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #d63384;
      margin: 0 2px;
      animation: bounce 1.4s infinite ease-in-out both;
    }
    
    .dots span:nth-child(1) { animation-delay: -0.32s; }
    .dots span:nth-child(2) { animation-delay: -0.16s; }
    
    @keyframes bounce {
      0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
      40% { transform: scale(1); opacity: 1; }
    }
    
    /* Forecast Dashboard */
    .forecast-dashboard {
      width: 100% !important;
      max-width: none !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    
    .card {
      background: white;
      border: 1px solid #e0e0e0;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      border-radius: 6px;
      padding: 15px;
      margin-bottom: 12px;
      width: 100% !important;
      box-sizing: border-box;
    }
    
    .hero {
      display: flex;
      gap: 10px;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      width: 100%;
    }
    
    .hero h1 {
      margin: 0;
      color: #333;
      font-size: 1.5rem;
    }
    
    .grid {
      display: grid;
      grid-template-columns: 65% 34%;
      gap: 10px;
      margin-top: 10px;
      width: 100% !important;
      align-items: start; 
    }
    
    .grid .card {
      margin: 0 !important;
    }
    
    /* LARGER TABLE */
    .table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }
    
    .table th, .table td {
      border-bottom: 1px dashed #e0e0e0;
      padding: 6px 8px;
      text-align: right;
      color: #333;
      font-size: 13px;
    }
    
    .table th:first-child, .table td:first-child {
      text-align: left;
    }
    
    .pill {
      padding: 3px 8px;
      border-radius: 999px;
      background: #f0f4ff;
      font-size: 11px;
      color: #5b8dee;
    }
    
    /* LARGER CHARTS */
    canvas {
      background: #fafafa;
      border-radius: 8px;
    }
    
    #lineChart, #oaklandChart {
      width: 100% !important;
      height: 250px !important;
      background: #fafafa;
      border-radius: 6px;
      border: 1px solid #f0f0f0;
    }
    
    .back-button {
      padding: 8px 16px;
      margin-bottom: 10px;
      background: transparent;
      border: 1px solid #e0e0e0;
      border-radius: 4px;
      color: #666;
      cursor: pointer;
      transition: all 0.2s ease;
      font-size: 12px;
    }
    
    .back-button:hover {
      background: #f8f9fa;
      transform: translateX(-3px);
    }
    
    /* Oakland-specific styling */
    .oakland-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      background: linear-gradient(135deg, #d63384, #8b5cf6);
      color: white;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }
    
    #oaklandHeader {
      animation: fadeIn 0.3s ease;
      margin-bottom: 8px;
    }

    #oaklandHeader h3 {
      margin: 6px 0 4px 0 !important;
      font-size: 1rem !important;
    }
    
    /* LARGER VOICE SUMMARY */
    .voice-summary-card h3 {
      font-size: 1.2rem !important;
      margin-bottom: 10px !important;
    }
    
    #voiceOut {
      font-size: 1.1rem !important;
      line-height: 1.6 !important;
      color: #333 !important;
      min-height: 60px !important;
    }

    /* Toast */
    #toast {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      background: linear-gradient(135deg, #d63384, #8b5cf6);
      color: white;
      padding: 12px 24px;
      border-radius: 50px;
      box-shadow: 0 4px 20px rgba(214, 51, 132, 0.3);
      font-size: 14px;
      font-weight: 500;
      z-index: 1000;
      display: none;
    }
    
    /* Chart container fixes */
    .chart-container {
      position: relative;
      width: 100%;
    }

    /* Ensure canvas fills container */
    .chart-container canvas {
      max-width: 100% !important;
      width: 100% !important;
    }
    
    /* FLOATING CONTROLS - Hidden by default */
    .floating-controls {
      position: fixed;
      right: 20px;
      bottom: 20px;
      background: white;
      border: 1px solid #e0e0e0;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.12);
      display: none;
      z-index: 1000;
      max-width: 480px;
      width: auto;
    }
    
    .floating-controls.visible {
      display: block;
    }
    
    .floating-controls.anchored {
      position: absolute;
      right: 20px;
      top: 60px;
      bottom: auto;
    }
    
    .controls-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
    }
    
    .controls-header h4 {
      margin: 0;
      font-size: 14px;
      color: #333;
    }
    
    .control-buttons {
      display: flex;
      gap: 8px;
    }
    
    .close-controls, .anchor-controls {
      width: 28px;
      height: 28px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f8f9fa;
      border: 1px solid #e0e0e0;
      border-radius: 50%;
      color: #666;
      font-size: 16px;
      cursor: pointer;
    }
    
    .close-controls:hover, .anchor-controls:hover {
      background: #e9ecef;
    }
    
    .anchor-controls.anchored {
      background: #d63384;
      color: white;
      border-color: #d63384;
    }
    
    .controls {
      display: grid;
      grid-template-columns: 1.5fr 0.8fr auto 1fr auto;
      gap: 10px;
      align-items: end;
    }
    
    .floating-controls label {
      font-size: 11px;
      letter-spacing: 0.03em;
      color: #666;
      display: block;
      margin-bottom: 4px;
    }