* { margin: 0; padding: 0; box-sizing: border-box; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; }
        body { background: #f4f7fb; color: #1e293b; min-height: 100vh; transition: background 0.3s, color 0.3s; }
        .wrapper { max-width: 720px; margin: 0 auto; padding: 30px 20px 60px; }
        .back-link { display: inline-flex; align-items: center; gap: 6px; color: #0b63e5; font-weight: 700; font-size: 0.9rem; text-decoration: none; margin-bottom: 30px; transition: 0.2s; }
        .back-link:hover { color: #1a4fc3; text-decoration: underline; }
        .page-header { text-align: center; margin-bottom: 36px; }
        .page-header h1 { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, #0b63e5, #0e7490); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; }
        .page-header p { color: #475569; font-size: 1rem; }
        .card { background: white; border-radius: 20px; padding: 32px 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); border: 1px solid #eef2f6; margin-bottom: 24px; }
        .card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: #1e293b; }
        .card p, .card li { color: #475569; font-size: 0.95rem; line-height: 1.7; margin-bottom: 12px; }
        .card ul { padding-left: 20px; margin-bottom: 12px; }
        .card li { margin-bottom: 6px; }
        .form-group { margin-bottom: 18px; }
        .form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: #475569; }
        .form-group input { width: 100%; padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: 12px; font-size: 1rem; outline: none; transition: 0.2s; background: #f8fafc; }
        .form-group input:focus { border-color: #0b63e5; background: white; }
        .btn-primary { width: 100%; padding: 14px; background: #0b63e5; color: white; border: none; border-radius: 14px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.2s; }
        .btn-primary:hover { background: #1a4fc3; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(11,99,229,0.3); }
        .btn-secondary { padding: 10px 20px; background: #f1f5f9; color: #1e293b; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
        .btn-secondary:hover { background: #e2e8f0; }
        .result-box { display: none; text-align: center; margin-top: 20px; padding: 24px; background: #f8fafc; border-radius: 16px; border: 1px solid #eef2f6; }
        .result-box.show { display: block; animation: fadeUp 0.4s ease; }
        .share-row { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
        .share-btn { padding: 12px 16px; border-radius: 10px; border: none; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
        .share-x { background: #000; color: #fff; }
        .share-x:hover { background: #333; }
        .share-whatsapp { background: #25d366; color: white; }
        .share-whatsapp:hover { background: #1ebe5c; }
        .share-instagram { background: #e4405f; color: #fff; }
        .share-instagram:hover { background: #c9354e; }
        .share-pdf { background: #dc2626; color: #fff; }
        .share-pdf:hover { background: #b91c1c; }
        .share-save { background: #0b63e5; color: #fff; }
        .share-save:hover { background: #0952c4; }
        .suggestions-box{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:16px 20px;margin-top:16px;text-align:left;}
        .sug-title{font-size:.95rem;font-weight:700;color:#166534;margin-bottom:10px;}
        .sug-list{list-style:none;padding:0;margin:0;}
        .sug-item{padding:5px 0 5px 20px;position:relative;font-size:.88rem;line-height:1.6;color:#374151;}
        .sug-item::before{content:'\2713';position:absolute;left:0;color:#0b63e5;font-weight:bold;}
        .controls-row { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 20px; }
        .cycle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
        .cycle-card { text-align: center; padding: 16px 10px; border-radius: 14px; border: 2px solid #eef2f6; background: #f8fafc; transition: 0.2s; }
        .cycle-card.recommended { border-color: #22c55e; background: #f0fdf4; }
        .cycle-card.caution-low { border-color: #ef4444; background: #fef2f2; }
        .cycle-card.caution-mid { border-color: #facc15; background: #fefce8; }
        .cycle-card .cycle-count { font-size: 1.6rem; font-weight: 800; }
        .cycle-card .cycle-time { font-size: 1rem; font-weight: 700; margin-top: 4px; color: #1e293b; }
        .cycle-card .cycle-duration { font-size: 0.85rem; color:#475569; margin-top: 2px; }
        .cycle-card.recommended .cycle-count { color: #22c55e; }
        .cycle-card.caution-low .cycle-count { color: #ef4444; }
        .cycle-card.caution-mid .cycle-count { color: #ca8a04; }
        details { margin-bottom: 8px; }
        details summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; padding: 10px 14px; background: #f8fafc; border-radius: 10px; border: 1px solid #eef2f6; transition: 0.2s; }
        details summary:hover { background: #f1f5f9; }
        details[open] summary { border-radius: 10px 10px 0 0; border-color: #0b63e5; }
        details .faq-answer { padding: 14px; border: 1px solid #eef2f6; border-top: none; border-radius: 0 0 10px 10px; font-size: 0.9rem; color: #475569; line-height: 1.7; }
        .byline { text-align: center; font-size: 0.85rem; color: #94a3b8; margin-bottom: 24px; }
        .byline strong { color: #475569; }
        .theme-toggle { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #e2e8f0; background: white; color: #1e293b; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.1); z-index: 100; transition: 0.2s; }
        .theme-toggle:hover { border-color: #0b63e5; }
        .footer { margin-top: 30px; padding: 20px 0; border-top: 1px solid #e2e8f0; text-align: center; font-size: 0.85rem; color: #475569; }
        .footer a { color: #475569; text-decoration: underline; text-decoration-color: #cbd5e1; margin: 0 10px; font-weight: 500; }
        .footer a:hover { color: #0b63e5; text-decoration: underline; }
        a.rlink { color: #0b63e5; font-weight: 600; text-decoration: none; }
        a.rlink:hover { text-decoration: underline; }
        body.dark { background: #0f172a; color: #f1f5f9; }
        body.dark .card { background: #1e293b; border-color: #334155; }
        body.dark .card h2 { color: #f1f5f9; }
        body.dark .card p, body.dark .card li, body.dark .card label { color: #e2e8f0; }
        body.dark .form-group input { background: #0f172a; border-color: #334155; color: #f1f5f9; }
        body.dark .form-group input:focus { border-color: #38bdf8; background: #0f172a; }
        body.dark .result-box { background: #0f172a; border-color: #334155; }
        body.dark .cycle-card { background: #0f172a; border-color: #334155; }
        body.dark .cycle-card .cycle-time { color: #f1f5f9; }
        body.dark .btn-secondary { background: #334155; color: #f1f5f9; border-color: #475569; }
        body.dark .btn-secondary:hover { background: #475569; }
        body.dark details summary { background: #0f172a; border-color: #334155; color: #f1f5f9; }
        body.dark details summary:hover { background: #1e293b; }
        body.dark details .faq-answer { border-color: #334155; color: #e2e8f0; }
        body.dark .theme-toggle { background: #1e293b; color: #fbbf24; border-color: #334155; }
        body.dark .footer { border-color: #334155; }
        body.dark .footer a { color: #b0bec5; text-decoration-color: #475569; }
        body.dark .back-link { color: #38bdf8; }
        body.dark a.rlink { color: #38bdf8; }
        body.dark a.rlink:hover { color: #7dd3fc; }
        body.dark .byline { color: #b0bec5; }
        body.dark .byline strong { color: #f1f5f9; }
        .label-m { color: #3b82f6; }
        .label-f { color: #8b5cf6; }
        body.dark .label-m { color: #60a5fa; }
        body.dark .label-f { color: #a78bfa; }
        body.dark .suggestions-box{background:#0f2d1a;border-color:#1a5c35;text-align:left;}
        body.dark .sug-title{color:#86efac;}
        body.dark .sug-item{color:#d1d5db;}
        body.dark .sug-item::before{color:#38bdf8;}
        @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
        @media (max-width: 550px) { .cycle-grid { grid-template-columns: 1fr; } }
        @media print {
        body { background: #fff !important; color: #000 !important; }
        .theme-toggle, .footer, .share-row, .byline, .adsbygoogle { display: none !important; }
        .wrapper { max-width: none !important; padding: 2mm !important; margin: 0 !important; }
        .card { break-inside: avoid; box-shadow: none !important; border: 1px solid #ccc !important; border-radius: 0 !important; padding: 4px 8px !important; margin-bottom: 1px !important; }
        .page-header { margin-bottom: 0; }
        .page-header h1 { font-size: 1.1rem; margin: 2px 0; }
        .result-box { break-inside: avoid; padding: 6px; border: 2px solid #222 !important; margin: 2px 0; }
        .card h2 { font-size: .85rem; margin: 0 0 1px; }
        .card p, .card li, .card td { font-size: .7rem !important; line-height: 1.25 !important; }
        input, button, select, .bmi-gauge, .gauge-container { display: none !important; }
    }
