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

        body {
            background: linear-gradient(to bottom, #073857, #073857);
            /* color: white; */
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
            min-height: 100vh;
            overflow-x: hidden;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 24px;
        }

        .header {
            /* background: linear-gradient(135deg, #f8971d, #42a5f5); */
            color: white;
            padding: 48px 24px;
            border-radius: 16px;
            margin-bottom: 32px;
            text-align: center;
        }

        .header h1 {
            font-size: 2.5rem;
            font-weight: 300;
            margin-bottom: 16px;
        }

        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        .section {
            background: white;
            border-radius: 8px;
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .section h2 {
            color: #f8971d;
            font-size: 1.5rem;
            margin-bottom: 16px;
            font-weight: 400;
        }

        .section h3 {
            color: #424242;
            font-size: 1.2rem;
            margin: 20px 0 12px 0;
            font-weight: 500;
        }

        .grid-system {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 24px;
            margin: 24px 0;
        }

        .spacing-card {
            background: #f5f5f5;
            border-radius: 8px;
            padding: 20px;
            border-left: 4px solid #f8971d;
        }

        .spacing-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #f8971d;
            margin-bottom: 8px;
        }

        .spacing-label {
            font-weight: 500;
            margin-bottom: 4px;
        }

        .spacing-use {
            font-size: 0.9rem;
            color: #666;
        }

        .interactive-section {
            background: white;
            border-radius: 8px;
            padding: 24px;
            margin-top: 32px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .component-selector {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 16px;
            margin: 24px 0;
        }

        .component-card {
            background: #f8f9fa;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            padding: 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .component-card:hover {
            border-color: #f8971d;
            background: #e3f2fd;
        }

        .component-card.active {
            border-color: #f8971d;
            background: #e3f2fd;
            color: #f8971d;
        }

        .spacing-details {
            background: #f5f5f5;
            border-radius: 8px;
            padding: 24px;
            margin-top: 24px;
            display: none;
        }

        .spacing-details.show {
            display: block;
        }

        .preview-section {
            margin: 20px 0;
        }

        .preview-section h4 {
            color: #f8971d;
            margin-bottom: 16px;
            font-size: 1.1rem;
        }

        .component-preview {
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            padding: 24px;
            margin-bottom: 24px;
            min-height: 200px;
            position: relative;
            overflow: hidden;
        }

        .spacing-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 16px;
        }

        .spacing-table th,
        .spacing-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #e0e0e0;
        }

        .spacing-table th {
            background: #f8971d;
            color: white;
            font-weight: 500;
        }

        .download-btn {
            background: #f8971d;
            color: white;
            border: none;
            border-radius: 24px;
            padding: 12px 32px;
            font-size: 1rem;
            cursor: pointer;
            transition: background 0.3s ease;
            margin: 16px 0;
        }

        .download-btn:hover {
            background: #1565c0;
        }

        .visual-example {
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            padding: 16px;
            margin: 16px 0;
            background: white;
            position: relative;
        }

        .measurement {
            color: #f8971d;
            font-weight: 600;
            font-size: 0.8rem;
        }

        /* Preview Component Styles */
        .preview-button {
            background: #f8971d;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 12px 24px;
            font-size: 14px;
            cursor: pointer;
            margin: 8px;
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            height: 48px;
        }

        .preview-button.outlined {
            background: transparent;
            color: #f8971d;
            border: 1px solid #f8971d;
        }

        .preview-button.text {
            background: transparent;
            color: #f8971d;
            border: none;
            padding: 8px 16px;
        }

        .preview-card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            margin: 16px 0;
            overflow: hidden;
            max-width: 320px;
            position: relative;
        }

        .preview-card-header {
            padding: 24px 24px 16px;
            border-bottom: 1px solid #e0e0e0;
        }

        .preview-card-content {
            padding: 16px 24px;
        }

        .preview-card-actions {
            padding: 8px 16px 16px;
            text-align: right;
        }

        .preview-list {
            background: white;
            max-width: 360px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .preview-list-item {
            display: flex;
            align-items: center;
            padding: 16px;
            border-bottom: 1px solid #e0e0e0;
            min-height: 56px;
            position: relative;
        }

        .preview-list-item:last-child {
            border-bottom: none;
        }

        .preview-list-item.two-line {
            min-height: 72px;
        }

        .preview-list-item.three-line {
            min-height: 88px;
            align-items: flex-start;
            padding-top: 16px;
        }

        .preview-list-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #f8971d;
            margin-right: 16px;
            flex-shrink: 0;
        }

        .preview-list-content {
            flex: 1;
        }

        .preview-list-primary {
            font-weight: 500;
            line-height: 1.4;
        }

        .preview-list-secondary {
            color: #666;
            font-size: 14px;
            line-height: 1.4;
            margin-top: 4px;
        }

        .preview-input-group {
            margin: 16px 0;
            max-width: 280px;
            position: relative;
        }

        .preview-input-label {
            font-size: 12px;
            color: #666;
            margin-bottom: 4px;
            display: block;
        }

        .preview-input {
            width: 100%;
            height: 56px;
            border: 1px solid #ccc;
            border-radius: 4px;
            padding: 16px;
            font-size: 16px;
            outline: none;
            transition: border-color 0.3s;
        }

        .preview-input:focus {
            border-color: #f8971d;
        }

        .preview-input-helper {
            font-size: 12px;
            color: #666;
            margin-top: 4px;
        }

        .preview-nav {
            background: #f8971d;
            color: white;
            height: 64px;
            display: flex;
            align-items: center;
            padding: 0 16px;
            margin-bottom: 16px;
            border-radius: 4px;
        }

        .preview-nav-title {
            font-size: 20px;
            font-weight: 500;
        }

        .preview-tabs {
            display: flex;
            border-bottom: 1px solid #e0e0e0;
            background: white;
            border-radius: 4px 4px 0 0;
        }

        .preview-tab {
            padding: 12px 24px;
            background: none;
            border: none;
            color: #666;
            cursor: pointer;
            height: 48px;
            border-bottom: 2px solid transparent;
            transition: all 0.3s ease;
        }

        .preview-tab.active {
            color: #f8971d;
            border-bottom-color: #f8971d;
        }

        .preview-dialog {
            background: white;
            border-radius: 8px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            max-width: 400px;
            margin: 20px auto;
            overflow: hidden;
        }

        .preview-dialog-title {
            padding: 24px 24px 20px;
            font-size: 20px;
            font-weight: 500;
        }

        .preview-dialog-content {
            padding: 0 24px 24px;
            color: #666;
            line-height: 1.5;
        }

        .preview-dialog-actions {
            padding: 8px 16px 16px;
            text-align: right;
        }

        .preview-fab {
            position: relative;
            height: 200px;
            background: #f5f5f5;
            border-radius: 8px;
        }

        .preview-fab-button {
            position: absolute;
            bottom: 16px;
            right: 16px;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: #f8971d;
            color: white;
            border: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .preview-fab-mini {
            width: 40px;
            height: 40px;
            bottom: 80px;
            right: 32px;
            font-size: 18px;
        }

        .preview-fab-extended {
            width: auto;
            padding: 0 16px;
            border-radius: 28px;
            bottom: 140px;
            right: 16px;
            font-size: 14px;
            gap: 8px;
        }

        .preview-chip-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 16px 0;
        }

        .preview-chip {
            background: #e0e0e0;
            border-radius: 16px;
            padding: 8px 12px;
            font-size: 14px;
            color: #333;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            height: 32px;
        }

        .preview-chip.selected {
            background: #f8971d;
            color: white;
        }

        .preview-chip-avatar {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #666;
        }

        .measurement-label {
            position: absolute;
            background: #ff5722;
            color: white;
            padding: 2px 6px;
            border-radius: 2px;
            font-size: 10px;
            font-weight: 600;
            z-index: 11;
            white-space: nowrap;
        }

        .measurement-line {
            position: absolute;
            background: #ff5722;
            z-index: 10;
        }

        .measurement-line.horizontal {
            height: 1px;
        }

        .measurement-line.vertical {
            width: 1px;
        }

        @media print {
            body {
                background: white;
            }

            .interactive-section {
                display: none;
            }

            .download-btn {
                display: none;
            }

            .measurement-label {
                display: none;
            }

            .measurement-line {
                display: none;
            }
        }