* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/bg.webp') center/cover fixed; color: #e0e0e0; line-height: 1.6; min-height: 100vh; }
body.landing { background: #0a0a0a; }
a { color: #6ab0ff; text-decoration: none; }
a:hover { text-decoration: underline; }

nav { background: rgba(30,30,30,0.92); color: #fff; padding: 0.75rem 2rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
nav .brand { font-size: 1.1rem; font-weight: 700; color: #fff; text-decoration: none; }
nav .brand:hover { text-decoration: none; opacity: 0.9; }
.breadcrumb { color: #888; font-size: 0.95rem; margin-right: auto; }
.breadcrumb::before { color: #555; }

.user-menu { position: relative; display: flex; align-items: center; margin-left: auto; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #4a90d9; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; cursor: pointer; user-select: none; transition: opacity 0.2s; }
.avatar:hover { opacity: 0.85; }
.dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: rgba(40,40,40,0.96); border: 1px solid #444; border-radius: 8px; min-width: 180px; display: none; z-index: 100; box-shadow: 0 4px 16px rgba(0,0,0,0.4); backdrop-filter: blur(8px); padding: 0.35rem 0; }
.dropdown.open { display: block; }
.dropdown-header { padding: 0.6rem 1rem; color: #fff; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid #444; margin-bottom: 0.25rem; }
.dropdown-item { display: block; padding: 0.5rem 1rem; color: #ccc; text-decoration: none; font-size: 0.9rem; cursor: pointer; transition: background 0.15s; }
.dropdown-item:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.dropdown-item.danger { color: #f44336; }
.dropdown-item.danger:hover { background: rgba(244,67,54,0.12); color: #ff6b6b; }
.dropdown-divider { height: 1px; background: #444; margin: 0.25rem 0; }

main { max-width: 900px; margin: 0 auto; padding: 2rem; }

/* Landing — Parallax & Animations */
.parallax-bg { position: fixed; top: -10%; left: -10%; width: 120%; height: 120%; background: url('/bg.webp') center/cover; z-index: -2; will-change: transform; }
.parallax-bg::after { content: ''; position: fixed; inset: 0; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)); z-index: -1; }

.pixel-text { font-family: 'Press Start 2P', monospace; }

.landing-nav { position: fixed; top: 0; left: 0; right: 0; background: rgba(20,20,20,0.6); backdrop-filter: blur(12px); padding: 0.8rem 2rem; display: flex; align-items: center; z-index: 100; transition: background 0.3s; }
.landing-nav .brand { font-size: 1.1rem; font-weight: 700; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.landing-nav .brand:hover { opacity: 0.9; text-decoration: none; }
.landing-nav .nav-links { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.landing-nav .nav-links a { color: #ccc; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.landing-nav .nav-links a:hover { color: #fff; }
.btn-nav { padding: 0.4rem 1rem !important; font-size: 0.85rem !important; }

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 2rem 4rem; position: relative; }
.hero-content { max-width: 700px; position: relative; z-index: 1; }
.hero-glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(74,144,217,0.1) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-icon { color: #4a90d9; margin-bottom: 1.5rem; filter: drop-shadow(0 0 30px rgba(74,144,217,0.3)); }
.hero-title { margin-bottom: 1rem; }
.hero-title .pixel-text { font-size: 3.5rem; color: #fff; line-height: 1.4; }
.hero-sub { font-size: 1.4rem; color: #bbb; margin-bottom: 0.8rem; font-weight: 400; }
.hero-desc { font-size: 1.1rem; color: #999; line-height: 1.8; margin-bottom: 2.5rem; max-width: 550px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: #4a90d9; color: #fff; }
.btn-primary:hover { background: #357abd; }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.25); color: #ddd; }
.btn-outline:hover { border-color: rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.08); }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; border-radius: 6px; }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: #777; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; animation: bounce 2s infinite; z-index: 1; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* Fade-up animation */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Sections */
.features, .services-landing, .how-it-works { padding: 7rem 2rem; max-width: 1050px; margin: 0 auto; position: relative; z-index: 1; }
.section-label { text-align: center; color: #6ab0ff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.5rem; font-weight: 600; }
.features .section-title, .services-landing .section-title { font-size: 2.2rem; color: #fff; text-align: center; margin-bottom: 0.8rem; }
.section-desc { text-align: center; color: #aaa; font-size: 1.05rem; margin-bottom: 3rem; max-width: 500px; margin-left: auto; margin-right: auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.feature-card { background: rgba(40,40,40,0.75); backdrop-filter: blur(4px); padding: 2rem; border-radius: 12px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; border: 1px solid rgba(255,255,255,0.06); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); border-color: rgba(74,144,217,0.25); }
.feature-icon { color: #4a90d9; margin-bottom: 0.8rem; display: flex; align-items: center; justify-content: center; }
.feature-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-card p { color: #bbb; font-size: 0.9rem; line-height: 1.6; }

.landing-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.landing-card { background: rgba(40,40,40,0.75); backdrop-filter: blur(4px); padding: 2rem; border-radius: 12px; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; border: 1px solid rgba(255,255,255,0.06); }
.landing-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); border-color: rgba(74,144,217,0.25); }
.landing-card .card-icon { color: #4a90d9; margin-bottom: 0.8rem; display: flex; align-items: center; justify-content: center; }
.landing-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.5rem; }
.landing-card p { color: #bbb; font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }
.card-link { color: rgba(255,255,255,0.5); font-size: 0.9rem; font-weight: 500; }
.card-badge { display: inline-block; font-size: 0.7rem; color: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.1); padding: 0.15rem 0.5rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

.prereq { padding: 0 2rem 3rem; position: relative; z-index: 1; }
.prereq-box { max-width: 600px; margin: 0 auto; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.prereq-icon { color: rgba(255,255,255,0.2); flex-shrink: 0; }
.prereq-text { flex: 1; color: rgba(255,255,255,0.5); font-size: 0.85rem; min-width: 200px; }
.prereq-text strong { color: rgba(255,255,255,0.6); }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.8rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); border-radius: 4px; }
.btn-sm:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }

.cta { padding: 4rem 2rem 6rem; position: relative; z-index: 1; }
.cta-box { background: rgba(40,40,40,0.85); backdrop-filter: blur(8px); max-width: 550px; margin: 0 auto; padding: 3rem; border-radius: 16px; text-align: center; border: 1px solid rgba(255,255,255,0.08); }
.cta-box h2 { color: #fff; font-size: 1.6rem; margin-bottom: 0.8rem; }
.cta-box p { color: #bbb; margin-bottom: 1.5rem; }

.landing-footer { text-align: center; padding: 2.5rem 2rem; color: #888; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.06); position: relative; z-index: 1; }
.landing-footer a { color: #aaa; text-decoration: none; }
.landing-footer a:hover { color: #ddd; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 0.8rem; }
.footer-links a { color: #999; font-size: 0.85rem; }
.landing-footer .copyright { margin-bottom: 0.3rem; color: #777; }
.landing-footer .powered-by { color: #666; font-size: 0.8rem; }

/* Legal page (privacy) */
.legal-page { max-width: 700px; margin: 0 auto; padding: 3rem 2rem; }
.legal-page h1 { color: #fff; font-size: 2rem; margin-bottom: 0.3rem; }
.legal-date { color: #888; font-size: 0.9rem; margin-bottom: 2.5rem; }
.legal-page section { margin-bottom: 2rem; }
.legal-page h2 { color: #ddd; font-size: 1.2rem; margin-bottom: 0.5rem; }
.legal-page p { color: #bbb; font-size: 0.95rem; line-height: 1.7; }
.legal-page code { background: rgba(255,255,255,0.08); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85rem; color: #ddd; }
.legal-page a { color: #6ab0ff; }

.btn { display: inline-block; padding: 0.5rem 1.1rem; background: #4a90d9; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 0.9rem; transition: background 0.2s; }
.btn:hover { background: #357abd; text-decoration: none; }
.btn-danger { background: #d9534f; }
.btn-danger:hover { background: #c9302c; }
.btn-secondary { background: #555; }
.btn-secondary:hover { background: #444; }
.btn-icon { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; padding: 0.2rem 0.4rem; }

input[type="text"], input[type="password"], input[type="email"], input[type="file"], textarea { padding: 0.7rem; font-size: 1rem; border: 1px solid #444; border-radius: 4px; background: rgba(40,40,40,0.9); color: #e0e0e0; width: 100%; outline: none; transition: border 0.2s; }
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, textarea:focus { border-color: #4a90d9; }
input:disabled { opacity: 0.5; cursor: not-allowed; }
textarea { font-family: 'SFMono-Regular', Consolas, monospace; resize: vertical; }

.page-title { font-size: 1.8rem; margin-bottom: 1.5rem; color: #fff; }

/* Auth */
.auth-container { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 2rem; }
.auth-box { background: rgba(30,30,30,0.92); padding: 2.5rem; border-radius: 10px; width: 100%; max-width: 400px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); backdrop-filter: blur(8px); }
.auth-box .logo { text-align: center; font-size: 2rem; color: #fff; margin-bottom: 0.3rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.logo-icon, .brand-icon { vertical-align: middle; flex-shrink: 0; }
.brand { font-family: 'Press Start 2P', monospace; font-size: 0.85rem; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 0.4rem; }
.auth-box .subtitle { text-align: center; color: #888; margin-bottom: 1.5rem; }
.auth-box h2 { margin-bottom: 1rem; color: #fff; }
.auth-box input { margin-bottom: 0.8rem; }
.auth-box .btn { width: 100%; margin-top: 0.5rem; }
.switch { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: #888; }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: #aaa; margin-bottom: 0.5rem; }
.checkbox-row input { width: auto; margin: 0; }
.error-msg { color: #f44336; font-size: 0.9rem; margin-top: 0.5rem; text-align: center; min-height: 1.2rem; }
.avatar-preview { width: 64px; height: 64px; border-radius: 50%; background: #4a90d9; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.5rem; overflow: hidden; flex-shrink: 0; }
.avatar-preview .avatar-img { width: 100%; height: 100%; object-fit: cover; }
.field-msg { font-size: 0.85rem; margin-top: 0.3rem; min-height: 1.2rem; }
.field-msg .available { color: #4caf50; }
.field-msg .taken { color: #f44336; }
.suggestions { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.suggest-label { color: #888; font-size: 0.85rem; margin-right: 0.3rem; }
.suggestion { display: inline-block; padding: 0.25rem 0.6rem; background: rgba(74,144,217,0.15); color: #6ab0ff; border-radius: 4px; font-size: 0.85rem; cursor: pointer; transition: background 0.15s; }
.suggestion:hover { background: rgba(74,144,217,0.3); }

/* Crop Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal-box { background: rgba(40,40,40,0.96); border-radius: 10px; padding: 1.5rem; width: 90%; max-width: 500px; box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
.modal-box h2 { color: #fff; margin-bottom: 1rem; }
.crop-container { max-height: 400px; overflow: hidden; border-radius: 6px; background: #1a1a1a; }
.crop-container img { max-width: 100%; display: block; }
.modal-actions { display: flex; gap: 0.5rem; margin-top: 1rem; justify-content: flex-end; }

/* Dashboard */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.service-card { background: rgba(40,40,40,0.9); padding: 1.8rem; border-radius: 8px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-align: center; }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.service-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.service-card h2 { color: #fff; font-size: 1.3rem; margin-bottom: 0.3rem; }
.service-card p { color: #888; font-size: 0.9rem; }

/* Notes */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem; }
.note-card { background: rgba(40,40,40,0.9); padding: 1.5rem; border-radius: 6px; cursor: pointer; color: #e0e0e0; transition: box-shadow 0.2s; }
.note-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.note-card h2 { font-size: 1.1rem; color: #fff; }
.empty { margin-top: 2rem; text-align: center; color: #888; }
.note-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem; }
.note-header h1 { font-size: 1.8rem; color: #fff; word-break: break-word; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.note-content { background: rgba(40,40,40,0.9); padding: 2rem; border-radius: 6px; }
.note-content h1, .note-content h2, .note-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: #fff; }
.note-content p { margin-bottom: 1rem; }
.note-content code { background: #333; padding: 0.2rem 0.4rem; border-radius: 3px; font-size: 0.9em; color: #f8f8f2; }
.note-content pre { background: #1a1a1a; color: #f8f8f2; padding: 1rem; border-radius: 4px; overflow-x: auto; margin-bottom: 1rem; }
.note-content ul, .note-content ol { margin-bottom: 1rem; padding-left: 2rem; }
.note-form { display: flex; flex-direction: column; gap: 1rem; }
.form-actions { display: flex; gap: 0.5rem; }

/* Settings */
.settings-section { background: rgba(40,40,40,0.9); padding: 1.5rem; border-radius: 8px; margin-bottom: 1rem; }
.settings-section h2 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #444; }
.setting-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.setting-row label { min-width: 120px; color: #aaa; font-size: 0.9rem; }
.setting-row input { flex: 1; min-width: 150px; }
.setting-row .btn { flex-shrink: 0; }

.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.page-header .page-title { margin-bottom: 0; }
.profile-avatar-row { display: flex; align-items: center; gap: 1rem; }
.profile-avatar-row input[type="file"] { flex: 1; padding: 0.5rem; color: transparent; }
.profile-avatar-row input[type="file"]::file-selector-button { padding: 0.4rem 0.8rem; background: #4a90d9; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 0.85rem; margin-right: 0.5rem; transition: background 0.2s; }
.profile-avatar-row input[type="file"]::file-selector-button:hover { background: #357abd; }
.profile-avatar-row input[type="file"]:disabled { opacity: 0.4; cursor: not-allowed; }
.profile-avatar-row input[type="file"]:disabled::file-selector-button { opacity: 0.4; cursor: not-allowed; }
.field-hint { color: #666; font-size: 0.8rem; margin: 0; }

/* Unsaved bar */
.unsaved-bar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(60,60,60,0.96); backdrop-filter: blur(8px); padding: 0.8rem 2rem; display: flex; align-items: center; gap: 1rem; z-index: 300; border-top: 1px solid #555; }
.unsaved-bar span { color: #fff; font-size: 0.9rem; flex: 1; }
.unsaved-actions { display: flex; gap: 0.5rem; }

/* How It Works */
.how-it-works { padding: 7rem 2rem; max-width: 1050px; margin: 0 auto; position: relative; z-index: 1; }
.hiw-intro { margin-bottom: 3rem; }
.hiw-badge { display: inline-block; font-size: 0.7rem; color: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.08); padding: 0.2rem 0.6rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.hiw-intro h2 { font-size: 1.8rem; color: #eee; font-weight: 700; line-height: 1.3; margin-bottom: 0.5rem; }
.hiw-intro p { color: #888; font-size: 0.95rem; max-width: 400px; }
.how-it-works .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card { background: rgba(40,40,40,0.7); backdrop-filter: blur(4px); padding: 2rem 2rem 2.5rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.step-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.step-card-num { font-size: 0.7rem; color: rgba(255,255,255,0.2); font-family: 'Courier New', monospace; margin-bottom: 0.8rem; letter-spacing: 0.05em; }
.step-card h3 { color: #ddd; font-size: 1.05rem; margin-bottom: 0.5rem; }
.step-card p { color: #999; font-size: 0.85rem; line-height: 1.6; }

/* Download */
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.download-card { background: rgba(40,40,40,0.9); padding: 1.5rem; border-radius: 8px; }
.download-card h2 { color: #fff; margin-bottom: 0.5rem; }
.download-card p { color: #888; margin-bottom: 1rem; }
.setup-code { background: #1a1a1a; color: #f8f8f2; padding: 1rem; border-radius: 4px; margin-top: 1rem; font-size: 0.85rem; overflow-x: auto; white-space: pre-wrap; }
.setup-section { margin-bottom: 2.5rem; }
.setup-section h2 { color: #ddd; font-size: 1.15rem; margin-bottom: 0.8rem; padding-bottom: 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.setup-section ul { list-style: none; padding: 0; }
.setup-section li { color: #bbb; font-size: 0.9rem; padding: 0.3rem 0; }
.setup-section li a { color: #6ab0ff; }
.setup-section p { color: #bbb; font-size: 0.9rem; line-height: 1.6; }
.setup-note { color: #888; font-size: 0.85rem; margin-top: 0.5rem; }
.setup-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1rem; }
.setup-tab { background: rgba(40,40,40,0.7); border-radius: 8px; padding: 1.2rem; }
.setup-tab h3 { color: #ddd; font-size: 0.95rem; margin-bottom: 0.3rem; }
.service-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.service-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.04); color: #bbb; font-size: 0.9rem; }
.service-table td:first-child { color: #ddd; font-weight: 500; width: 120px; }
.service-table td:last-child { color: #888; text-align: right; }
.tag { font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 4px; text-align: center; }
.tag--go { color: #6b9e6b; background: rgba(107,158,107,0.1); }
.tag--soon { color: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.08); }

/* Download page */
.dl-header { margin-bottom: 2rem; }
.dl-hero { text-align: center; margin-bottom: 3rem; }
.dl-card { display: inline-block; background: rgba(40,40,40,0.7); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 2rem 3rem; }
.dl-version { color: rgba(255,255,255,0.15); font-size: 0.8rem; font-family: 'Courier New', monospace; margin-bottom: 1rem; }
.dl-downloads { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn-dl { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-size: 0.95rem; min-width: 120px; justify-content: center; }
.dl-meta { color: #666; font-size: 0.8rem; margin-top: 0.8rem; }

.dl-section { margin-bottom: 2.5rem; }
.dl-section h2 { color: #ddd; font-size: 1.1rem; margin-bottom: 0.8rem; }
.dl-section > p { color: #888; font-size: 0.9rem; margin-bottom: 1rem; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1rem; }
.dl-panel { background: rgba(35,35,40,0.7); border: 1px solid rgba(255,255,255,0.04); border-radius: 8px; overflow: hidden; }
.dl-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem; background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.04); }
.dl-os { color: rgba(255,255,255,0.5); font-size: 0.85rem; font-weight: 500; }
.dl-shell { color: rgba(255,255,255,0.2); font-size: 0.75rem; font-family: 'Courier New', monospace; }

.code-block { position: relative; }
.code-block pre { background: #131314; color: #e8e8e8; padding: 1rem 3.5rem 1rem 1rem; margin: 0; font-size: 0.82rem; line-height: 1.6; white-space: pre-wrap; word-break: break-all; font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace; }
.code-block--out pre { color: rgba(255,255,255,0.4); }
.code-copy { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.3); font-size: 0.72rem; padding: 0.2rem 0.6rem; border-radius: 4px; cursor: pointer; transition: all 0.15s; font-family: inherit; white-space: nowrap; }
.code-copy:hover { background: rgba(255,255,255,0.08); color: #ccc; border-color: rgba(255,255,255,0.1); }
.code-copy.copied { background: rgba(107,158,107,0.15); color: #6b9e6b; border-color: rgba(107,158,107,0.2); }
.code-copy--inset { position: absolute; top: 0.5rem; right: 0.5rem; }

.dl-note { color: #888; font-size: 0.9rem; margin-bottom: 1rem; }
.dl-table { width: 100%; border-collapse: collapse; }
.dl-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.03); color: #bbb; font-size: 0.9rem; }
.dl-table td:first-child { color: #ddd; font-weight: 500; width: 120px; }
.dl-table td:nth-child(2) { color: #888; }
.dl-table td:last-child { text-align: right; }

@media (max-width: 600px) {
  main { padding: 1rem; }
  nav { padding: 0.5rem 1rem; }
  .setting-row { flex-direction: column; align-items: stretch; }
  .setting-row label { min-width: auto; }
}
