.ripd-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 2rem;
}
@media (max-width: 900px) {
    .ripd-layout { grid-template-columns: 1fr; }
}

.ripd-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: sticky;
    top: 80px;
}
.ripd-nav {
    list-style: none;
    margin-bottom: 1.5rem;
}
.ripd-nav li {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-xs);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2px;
    transition: all var(--t);
    display: flex; align-items: center; gap: 0.5rem;
}
.ripd-nav li:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}
.ripd-nav li.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}
.ripd-nav-mark {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.ripd-nav li.active .ripd-nav-mark { background: var(--accent); }

.ripd-progress-info {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.ripd-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.ripd-progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width var(--t);
}

.ripd-side-actions { display: flex; flex-direction: column; gap: 0.4rem; }
.ripd-side-btn {
    display: flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--t);
    text-align: left;
}
.ripd-side-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.ripd-side-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
}
.ripd-side-btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: white; }
.ripd-side-btn.danger:hover { color: var(--red); border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.06); }
.ripd-side-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.ripd-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.ripd-section-title {
    font-size: 1.4rem; font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.ripd-section-help {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.ripd-field { margin-bottom: 1.25rem; }
.ripd-field label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}
.ripd-input, .ripd-textarea, .ripd-select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--t);
}
.ripd-input:focus, .ripd-textarea:focus, .ripd-select:focus {
    border-color: var(--accent);
}
.ripd-textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.ripd-select option { background: #1a1a1a; color: var(--text); padding: 0.4rem; }
.ripd-select option:checked, .ripd-select option:hover { background: var(--accent); color: #fff; }

.ripd-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    .ripd-row { grid-template-columns: 1fr; }
}

.ripd-bool {
    display: flex; align-items: center; gap: 0.75rem;
    margin-top: 0.4rem;
}
.ripd-radio {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--t);
}
.ripd-radio input { accent-color: var(--accent); }
.ripd-radio.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.ripd-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.4rem 0.75rem;
}
.ripd-checkbox {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--t);
}
.ripd-checkbox:hover { border-color: var(--border-hover); }
.ripd-checkbox.checked {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}
.ripd-checkbox input { display: none; }

.ripd-list-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
}
.ripd-list-item-num {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.ripd-list-actions {
    display: flex; gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.ripd-mini-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--t);
}
.ripd-mini-btn:hover { color: var(--accent); border-color: var(--accent); }
.ripd-mini-btn.danger:hover { color: var(--red); border-color: rgba(239,68,68,0.4); }
.ripd-mini-btn svg { width: 12px; height: 12px; }

.ripd-content-actions {
    display: flex; justify-content: space-between;
    margin-top: 2rem;
    gap: 0.75rem;
}
.ripd-btn-primary, .ripd-btn-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.88rem; font-weight: 600;
    cursor: pointer;
    transition: all var(--t);
    border: 1px solid transparent;
}
.ripd-btn-primary { background: var(--accent); color: white; }
.ripd-btn-primary:hover { background: var(--accent-hover); }
.ripd-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.ripd-btn-secondary {
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border-color: var(--border);
}
.ripd-btn-secondary:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.07); }
.ripd-btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }

.ripd-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-xs);
    color: var(--red);
    font-size: 0.85rem;
}

.ripd-help-line {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.5rem;
    font-style: italic;
}
