        :root {
            --bg-color: #f2f2f7;
            --card-bg: rgba(255, 255, 255, 0.75);
            --card-bg-solid: #ffffff;
            --text-primary: #1c1c1e;
            --text-secondary: #8e8e93;
            --accent: #007aff;
            --accent-gradient: linear-gradient(135deg, #007aff, #5856d6);
            --border-color: rgba(0, 0, 0, 0.08);
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            --radius-lg: 24px;
            --radius-md: 16px;
            --radius-sm: 10px;
            --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        }

        @media (prefers-color-scheme: dark) {
            :root {
                --bg-color: #000000;
                --card-bg: rgba(28, 28, 30, 0.65);
                --card-bg-solid: #1c1c1e;
                --text-primary: #f2f2f7;
                --text-secondary: #98989f;
                --accent: #0a84ff;
                --border-color: rgba(255, 255, 255, 0.12);
                --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
            }
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            -webkit-font-smoothing: antialiased;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 24px;
            transition: background-color 0.4s ease;
        }

        /* App Wrapper Container simulating a high-end Swift UI view controller */
        .app-container {
            width: 100%;
            max-width: 480px;
            background: var(--card-bg-solid);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

        /* Top Search & Navigation Bar */
        .search-bar-container {
            padding: 20px 20px 10px 20px;
            position: relative;
            z-index: 10;
        }

        .search-box {
            display: flex;
            align-items: center;
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            padding: 8px 14px;
            transition: var(--transition);
        }

        .search-box:focus-within {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
        }

        .search-box input {
            border: none;
            background: transparent;
            outline: none;
            width: 100%;
            font-size: 15px;
            color: var(--text-primary);
            font-weight: 400;
        }

        .search-results {
            position: absolute;
            top: 70px;
            left: 20px;
            right: 20px;
            background: var(--card-bg-solid);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow);
            max-height: 200px;
            overflow-y: auto;
            display: none;
            z-index: 100;
        }

        .search-result-item {
            padding: 12px 16px;
            font-size: 14px;
            cursor: pointer;
            border-bottom: 1px solid var(--border-color);
            transition: background 0.2s;
        }

        .search-result-item:last-child {
            border-bottom: none;
        }

        .search-result-item:hover {
            background: var(--bg-color);
        }

        /* Main Scrollable View Area */
        .content-scroll {
            padding: 10px 20px 30px 20px;
            overflow-y: auto;
            max-height: 75vh;
        }

        /* Hero Section */
        .hero-section {
            text-align: center;
            padding: 20px 0 30px 0;
        }

        .location-title {
            font-size: 28px;
            font-weight: 700;
            letter-spacing: -0.5px;
            margin-bottom: 4px;
        }

        .location-subtitle {
            font-size: 13px;
            color: var(--text-secondary);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .temp-display {
            font-size: 72px;
            font-weight: 300;
            letter-spacing: -3px;
            margin: 15px 0 5px 0;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .weather-condition {
            font-size: 17px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .high-low {
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* Glass Cards (SwiftUI Container Style) */
        .swift-card {
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 16px;
            margin-bottom: 16px;
        }

        .card-header-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Hourly Horizontal Scroll */
        .hourly-scroll {
            display: flex;
            gap: 16px;
            overflow-x: auto;
            padding-bottom: 4px;
            scrollbar-width: none;
        }

        .hourly-scroll::-webkit-scrollbar {
            display: none;
        }

        .hourly-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 55px;
            gap: 8px;
        }

        .hourly-time {
            font-size: 12px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .hourly-icon {
            font-size: 20px;
        }

        .hourly-temp {
            font-size: 15px;
            font-weight: 600;
        }

        /* Metrics Grid */
        .metrics-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .metric-card {
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 14px;
        }

        .metric-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 6px;
        }

        .metric-value {
            font-size: 20px;
            font-weight: 600;
        }

        /* Daily Forecast Rows */
        .daily-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
            font-size: 14px;
        }

        .daily-row:last-child {
            border-bottom: none;
        }

        .daily-day {
            font-weight: 500;
            width: 90px;
        }

        .daily-bars {
            flex-grow: 1;
            margin: 0 15px;
            height: 4px;
            background: var(--border-color);
            border-radius: 2px;
            position: relative;
        }

        .daily-bar-fill {
            position: absolute;
            height: 100%;
            background: var(--accent-gradient);
            border-radius: 2px;
        }

        .daily-temps {
            font-weight: 600;
            font-size: 13px;
            display: flex;
            gap: 8px;
            width: 70px;
            justify-content: flex-end;
        }

        .daily-temps span.low {
            color: var(--text-secondary);
        }

        /* States (Loading / Error) */
        .status-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-secondary);
            font-size: 15px;
        }

        /* Embedding helper wrapper context styling */
        .embed-badge {
            text-align: center;
            padding: 8px;
            font-size: 11px;
            color: var(--text-secondary);
            border-top: 1px solid var(--border-color);
            background: var(--bg-color);
        }

        .daily-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
            font-size: 14px;
        }

        .daily-day {
            font-weight: 500;
            width: 75px;
        }