body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f7;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 450px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    box-sizing: border-box;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: block;
    object-fit: contain;
}

h1 {
    font-size: 1.4rem;
    margin: 0 0 5px 0;
}

#status-badge {
    font-size: 0.7rem;
    color: #86868b;
    margin-bottom: 12px;
    font-weight: 600;
}

.ai-toggle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ai-toggle-row label {
    font-size: 0.8rem;
    color: #515154;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e5ea;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #34c759;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

#ai-toggle-label {
    font-size: 0.75rem;
    color: #86868b;
    min-width: 60px;
    text-align: left;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 5px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    transition: opacity 0.3s;
}

.stat-item {
    font-size: 0.8rem;
    color: #555;
}

#gauge-container {
    width: 100%;
    height: 8px;
    background: #e5e5ea;
    border-radius: 0 0 10px 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: opacity 0.3s;
}

#gauge-fill {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease-out, background-color 0.5s;
    background: #0071e3;
}

textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: inherit;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

#verify-btn {
    background: #0071e3;
    color: white;
}

#demo-btn {
    background: #e5e5ea;
}

.guidance {
    padding: 15px;
    background: #f0f7ff;
    border-left: 4px solid #0071e3;
    text-align: left;
    font-style: italic;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.history-panel {
    text-align: left;
    padding-top: 12px;
    border-top: 1px solid #e5e5ea;
}

.history-panel label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #86868b;
}

.history-item {
    font-size: 0.8rem;
    color: #515154;
    background: #fafafa;
    padding: 6px 10px;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid #e5e5ea;
}
