:root { color-scheme: dark; }
.hidden { display: none; }
header { background: #21182df5 !important; }
.chrono-heading, .chrono-nav { max-width: 1248px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 24px; }
.chrono-heading h1 { font-size: 20px; color: #f9c4df; display: inline; }
.chrono-heading span { font: 10px Consolas, monospace; color: #c6a8db; margin-left: 10px; }
.chrono-nav { padding-top: 0; }
.chrono-nav nav { display: flex; gap: 7px; overflow-x: auto; padding: 5px; }
.chrono-nav .tab-btn { padding: 9px 12px; border: 1px solid #94729d70; border-radius: 7px; font-size: 12px; white-space: nowrap; }
.chrono-nav .lang-btn { margin: 2px; }
.chrono-nav > div { white-space: nowrap; }
#chrono-tool { display: none; background: #2e1d3b; border: 1px solid #b48fc2; border-radius: 7px; padding: 10px; font-size: 12px; min-width: 0; }
section[role="tabpanel"] { scroll-margin-top: 145px; }
.intro-panel { margin-bottom: 24px; border-left: 3px solid #f9a8d4; padding: 20px 24px; background: #ffffff05; border-radius: 8px; }
.intro-panel h2 { font: 700 28px 'Trebuchet MS', sans-serif; margin-bottom: 12px; }
.intro-panel p { font-size: 13px; color: #dfc8e7; max-width: 1000px; line-height: 1.8; }
.intro-panel details { margin: 15px 0; }
summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.helper { font-size: 12px; line-height: 1.7; color: #d0bad9; margin: 10px 0; }
.view-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; font-size: 12px; }
.view-tools button, .compact-form button, .diary-actions button { padding: 10px 16px; border: 1px solid #b48fc2; border-radius: 7px; background: #ffffff09; min-height: 42px; }
.view-tools span { color: #b8e9cc; }
.evidence-tag { display: inline-block; border: 1px solid #fcd34d66; color: #fcd34d; padding: 6px 12px; border-radius: 6px; font-size: 11px; margin-bottom: 16px; }
.evidence-tag.research { border-color: #86efac66; color: #a7efc0; }
.chrono-error { background: #542a38; border: 1px solid #ffb2b2; color: #ffe1e1; padding: 13px; margin: 12px 0; border-radius: 8px; }
.insight-card { background: #ffffff07; border: 1px solid #ffffff16; border-radius: 10px; padding: 18px; margin: 12px 0; }
.insight-card h4 { font-weight: 700; color: #f5deed; margin-bottom: 8px; }
.insight-card p { color: #dcc7e5; font-size: 13px; line-height: 1.8; }
.compact-form { display: flex; flex-wrap: wrap; gap: 15px; align-items: end; margin: 20px 0; }
.compact-form label { display: grid; gap: 7px; flex: 1; min-width: 130px; font-size: 12px; color: #e8d3ed; }
.compact-form input, #workSleepTime, #workDays { background: #2e1d3b; padding: 10px 12px; border: 1px solid #a88bb8; border-radius: 7px; min-height: 44px; max-width: 100%; min-width: 0; width: 100%; }
.check-line { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #dfc8e7; padding: 10px 0; }
.check-line input { width: 18px; height: 18px; accent-color: #f9a8d4; }
.routine-item { display: flex; justify-content: space-between; align-items: start; gap: 20px; border-bottom: 1px solid #ffffff14; padding: 13px 0; font-size: 13px; overflow-wrap: anywhere; }
.routine-item strong { white-space: nowrap; color: #fcd9a6; }
.sleep-row { margin: 25px 0; }
.sleep-row > div:first-child { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; margin-bottom: 10px; }
.sleep-track { position: relative; height: 28px; border-radius: 5px; background: #ffffff0a; overflow: hidden; background-image: linear-gradient(90deg, transparent 99%, #ffffff33 99%); background-size: 25% 100%; }
.sleep-track > span { position: absolute; height: 100%; background: linear-gradient(90deg, #c084fc, #f9a8d4); }
.sleep-axis { display: flex; justify-content: space-between; font: 10px Consolas, monospace; color: #c6a8db; }
.diary-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.diary-stats > div { padding: 17px; border-radius: 9px; background: #ffffff08; font-size: 11px; }
.diary-stats strong { display: block; font-size: 20px; color: #f9c3db; }
.diary-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.diary-table td, .diary-table th { border-bottom: 1px solid #ffffff20; padding: 12px; text-align: left; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.diary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.source-list { list-style: disc; padding-left: 20px; font-size: 12px; line-height: 2; color: #bce8fa; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 18px 0; color: #e8c5dd; }
#krono-chakras > div { display: grid; grid-template-columns: 160px 1fr 48px 192px; }
#krono-chakras > div > div:first-child { width: auto; }
#personal-matrix-grid h3, #business-matrix-grid h3 { overflow-wrap: anywhere; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid #fcd34d; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: default; }
@media (max-width: 700px) {
 .chrono-heading, .chrono-nav { padding-left: 15px; padding-right: 15px; }
 .chrono-heading h1 { font-size: 16px; }
 .chrono-nav { align-items: start; gap: 8px; }
 .chrono-nav nav { max-width: calc(100vw - 110px); }
 .intro-panel { padding: 17px; }
 .intro-panel h2 { font-size: 24px; }
 .intro-panel > p:not(.helper) { display: none; }
 .diary-stats { grid-template-columns: repeat(2, 1fr); }
 .routine-item { flex-wrap: wrap; gap: 7px; }
 #krono-chakras > div { grid-template-columns: 1fr 48px; gap: 8px; }
 #krono-chakras > div > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
 #chrono-tool { display: block; flex: 1; }
 .chrono-nav nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
 main::before { content: "Chronopsychology v2.0 - Solution-NG"; display: block; font-size: 18px; font-weight: bold; margin-bottom: 20px; }
 body { background: white !important; color: black !important; }
 header, footer, .view-tools, .intro-panel, button, .compact-form, .check-line { display: none !important; }
 .glass, .glass-light, .insight-card { background: white !important; border: 1px solid #aaa !important; box-shadow: none !important; break-inside: avoid; }
 body * { color: #111 !important; -webkit-text-fill-color: currentColor !important; }
 .sleep-track > span { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
 .hidden { display: none !important; }
 input, select { background: white !important; color: black !important; border-color: #888 !important; }
 #diary-form { display: none !important; }
 .table-scroll { overflow: visible; }
 main { max-width: none !important; padding: 0 !important; }
}
