/* Layout reset — Origin CDN handles typography and components */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #F3F3F3;
    color: #111111;
    line-height: 1.6;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 30px 0 10px;
    position: relative;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

header h1 { font-size: 24px; font-weight: 700; }
header h1 a { color: #111111; text-decoration: none; }

/* Info button & panel */
.info-wrapper { position: absolute; top: 30px; right: 0; }

.info-btn {
    width: 32px; height: 32px;
    border-radius: 0;
    border: 1px solid #E8E8E8;
    background: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    transition: all 0.2s;
}
.info-btn:hover { color: #111111; border-color: #111111; }

.info-panel {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    width: 320px;
    background: #FFFFFF;
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    border: 1px solid #E8E8E8;
    text-align: left;
    z-index: 100;
    animation: info-fade-in 0.15s ease-out;
}
.info-panel.open { display: block; }

@keyframes info-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 8px;
    font-size: 15px;
}

.info-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #888888;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.info-close:hover { color: #111111; }

.info-intro {
    padding: 0 16px 12px;
    font-size: 13px;
    color: #888888;
    line-height: 1.5;
}

.info-steps { padding: 0 16px 16px; }

.info-step {
    display: flex;
    gap: 10px;
    padding: 8px 0;
}
.info-step + .info-step { border-top: 1px solid #E8E8E8; }

.info-step-num {
    width: 22px; height: 22px;
    border-radius: 0;
    background: #F3F3F3;
    color: #111111;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.info-step strong { font-size: 13px; display: block; }
.info-step p { font-size: 12px; color: #888888; margin-top: 2px; line-height: 1.4; }

/* Cards — extend Origin .card */
.card {
    background: #FFFFFF;
    border-radius: 0;
    padding: 0;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #E8E8E8;
}

.card h2 { font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.subtitle { color: #888888; margin-bottom: 24px; font-size: 14px; }

/* Field layout for radio/checkbox groups (non-Origin inputs) */
.field { margin-bottom: 20px; }
.field-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: #111111; }

input[type="range"] { width: 100%; accent-color: #F77F00; }

.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio, .checkbox { font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 4px; }

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

/* Status page */
.status-info { margin: 16px 0; font-size: 14px; color: #888888; }
.status-info p { margin: 4px 0; }
.status-info strong { color: #111111; }

.status-box {
    padding: 20px;
    border-radius: 0;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #E8E8E8;
}
.status-box--active { background: #FFF3E0; border-color: #F77F00; }
.status-box--done { background: #E8F5E9; border-color: #41D54A; }

.phase { font-size: 18px; font-weight: 700; color: #111111; }
.progress { font-size: 14px; color: #888888; margin-top: 4px; }

/* Pipeline step indicators */
.pipeline-steps { margin: 24px 0; }
.step {
    padding: 8px 0;
    font-size: 14px;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}
.step.done { color: #41D54A; }
.step.active { color: #111111; font-weight: 600; }
.step-indicator { font-size: 14px; width: 20px; text-align: center; }

.auto-refresh { text-align: center; font-size: 13px; color: #888888; margin-top: 16px; }

.success-msg { color: #41D54A; margin: 16px 0; }
.error-msg { color: #FF4933; margin: 16px 0; font-size: 14px; }
