/* Pastel card harmonization v14. Preserve DOM, functionality, and all sections. */
:root{--pc-ink:#1b3154;--pc-muted:#4a607c;--pc-border:#dce6f4;--pc-white:#fff;--pc-blue:#eef7ff;--pc-pink:#fff0f6;--pc-mint:#eafaf3;--pc-lilac:#f2eeff;--pc-lemon:#fff9e8;--pc-peach:#fff1e9;--pc-sky:#eaf7ff}
body:not(.theme-dark) .workspace,body:not(.theme-dark){background:#f8faff!important;color:var(--pc-ink)!important}
body:not(.theme-dark) .sidebar,body:not(.theme-dark) .topbar,body:not(.theme-dark) .bottom-nav{background:#fff!important;color:var(--pc-ink)!important}
body:not(.theme-dark) .panel,body:not(.theme-dark) .filter-panel,body:not(.theme-dark) .center-card,body:not(.theme-dark) .metric,body:not(.theme-dark) .myroutine-box,body:not(.theme-dark) .card,body:not(.theme-dark) .stat,body:not(.theme-dark) .area{border:1px solid var(--pc-border);box-shadow:0 10px 30px rgba(54,87,148,.055);border-radius:22px}
body:not(.theme-dark) .metric{min-height:150px;position:relative;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
body:not(.theme-dark) .metric::before{content:'';position:absolute;inset:0 0 auto;height:5px;background:var(--pc-line,#8bbdff)}
body:not(.theme-dark) .metrics .metric:nth-child(4n+1){background:linear-gradient(140deg,#eaf5ff,#fff)!important;--pc-line:#70acfa}
body:not(.theme-dark) .metrics .metric:nth-child(4n+2){background:linear-gradient(140deg,#eafbf3,#fff)!important;--pc-line:#69cca3}
body:not(.theme-dark) .metrics .metric:nth-child(4n+3){background:linear-gradient(140deg,#fff0f6,#fff)!important;--pc-line:#f49dbb}
body:not(.theme-dark) .metrics .metric:nth-child(4n+4){background:linear-gradient(140deg,#f2edff,#fff)!important;--pc-line:#b69bf2}
body:not(.theme-dark) .metric strong,body:not(.theme-dark) .stat b{color:#164fa1!important}
body:not(.theme-dark) .metric span,body:not(.theme-dark) .metric small{color:#48627f!important}
body:not(.theme-dark) .duo-grid > .panel:first-child{background:linear-gradient(155deg,#f1f8ff 0%,#fff 38%)!important;border-color:#d6e7fb}
body:not(.theme-dark) .duo-grid > .panel:nth-child(2){background:linear-gradient(155deg,#f2fdf8 0%,#fff 42%)!important;border-color:#d8f0e6}
body:not(.theme-dark) .center-card{background:linear-gradient(140deg,#f7f1ff,#fff 55%)!important;border-color:#e7dcfa}
body:not(.theme-dark) .filter-panel{background:linear-gradient(130deg,#f0f7ff,#fff 65%)!important}
body:not(.theme-dark) .myroutine-box{background:linear-gradient(140deg,#fff4f9,#fff 60%)!important;border-color:#f7dce9}
body:not(.theme-dark) .tip,body:not(.theme-dark) .calendar-detail{background:#f2f8ff!important;color:#304b71!important}
body:not(.theme-dark) .datebox{background:#e7f1ff!important;color:#174b97!important}
body:not(.theme-dark) .paper-row:nth-child(4n+1) .datebox{background:#ffebf3!important;color:#aa315f!important}
body:not(.theme-dark) .paper-row:nth-child(4n+2) .datebox{background:#e7f9ef!important;color:#176848!important}
body:not(.theme-dark) .paper-row:nth-child(4n+3) .datebox{background:#f0ecff!important;color:#6248ab!important}
body:not(.theme-dark) .paper-row:nth-child(4n+4) .datebox{background:#e8f4ff!important;color:#1b5eae!important}
body:not(.theme-dark) .paper-row{border-radius:14px;padding-inline:10px;transition:background .2s}
body:not(.theme-dark) .paper-row:hover{background:#f2f8ff}
body:not(.theme-dark) .calendar-day{background:#f1f6ff!important;color:#334d70!important;border:1px solid #e7eef9}
body:not(.theme-dark) .calendar-day.has-exam{background:#e2f8ed!important;color:#166342!important;border:1px solid #b8e8cf}
body:not(.theme-dark) .calendar-day.selected{background:#e9edff!important;outline-color:#4479d5!important}
body:not(.theme-dark) .streak-panel{background:linear-gradient(135deg,#eaf8ff,#fff 55%)!important}
body:not(.theme-dark) .study-stack .panel:nth-child(3n+1),body:not(.theme-dark) #study > .panel:nth-of-type(3n+1){background:linear-gradient(140deg,#f0f6ff,#fff 55%)!important}
body:not(.theme-dark) .study-stack .panel:nth-child(3n+2),body:not(.theme-dark) #study > .panel:nth-of-type(3n+2){background:linear-gradient(140deg,#fff4eb,#fff 55%)!important}
body:not(.theme-dark) .study-stack .panel:nth-child(3n+3),body:not(.theme-dark) #study > .panel:nth-of-type(3n+3){background:linear-gradient(140deg,#eefaf1,#fff 55%)!important}
body:not(.theme-dark) #schedule > .panel:nth-of-type(3n+1){background:linear-gradient(145deg,#f2f8ff,#fff 38%)!important}
body:not(.theme-dark) #schedule > .panel:nth-of-type(3n+2){background:linear-gradient(145deg,#fff4f8,#fff 38%)!important}
body:not(.theme-dark) #schedule > .panel:nth-of-type(3n+3){background:linear-gradient(145deg,#f4f0ff,#fff 38%)!important}
body:not(.theme-dark) #calendar > .panel{background:linear-gradient(150deg,#f4f1ff,#fff 43%)!important}
body:not(.theme-dark) #profile .panel:nth-of-type(2n+1){background:linear-gradient(150deg,#eaf6ff,#fff 50%)!important}
body:not(.theme-dark) #profile .panel:nth-of-type(2n){background:linear-gradient(150deg,#f0fcf5,#fff 50%)!important}
body:not(.theme-dark) .quick-item{border:1px solid rgba(53,79,128,.06)!important;box-shadow:0 8px 23px rgba(63,96,159,.055)!important;transition:transform .18s ease,box-shadow .18s ease}
body:not(.theme-dark) .quick-item:hover,body:not(.theme-dark) .metric:hover{transform:translateY(-3px);box-shadow:0 13px 24px rgba(63,96,159,.11)!important}
body:not(.theme-dark) :is(.panel,.filter-panel,.center-card,.metric,.quick-item,.myroutine-box) :is(h1,h2,h3,b,strong){color:var(--pc-ink)}
body:not(.theme-dark) :is(.panel,.filter-panel,.center-card,.metric,.myroutine-box) :is(.muted,small,p){color:var(--pc-muted)}
body:not(.theme-dark) .next-card{background:linear-gradient(135deg,#fff3f7,#ffe7f0 65%,#fff9fc)!important;color:#293c60!important;border:1px solid #f5dbe7!important;box-shadow:0 13px 38px #e69abc19}
body:not(.theme-dark) .next-card :is(h2,.next-header,.next-date,.code,.time-notice,.count-unit span){color:#293c60!important}
body:not(.theme-dark) .next-card .count-unit{background:#fff9fc!important;border-color:#f7d5e5!important;color:#c42f63!important}
body:not(.theme-dark) .next-card .count-unit strong{color:#ca3365!important}
body:not(.theme-dark) .next-card .hero-status{background:#fff!important;color:#b62f67!important}
body:not(.theme-dark) .topbar,body:not(.theme-dark) .sidebar{border-color:#e7ecf6!important}
body:not(.theme-dark) input,body:not(.theme-dark) textarea,body:not(.theme-dark) select{background:#fff!important;color:#172e50!important;border-color:#d8e2f0!important}
body:not(.theme-dark) input::placeholder,body:not(.theme-dark) textarea::placeholder{color:#667a98!important}
/* Dark counterpart: distinct subtle shades, not harsh neon. */
body.theme-dark .metric:nth-child(4n+1),body.theme-dark .stat:nth-child(4n+1){background:#192e49!important}
body.theme-dark .metric:nth-child(4n+2),body.theme-dark .stat:nth-child(4n+2){background:#173b3a!important}
body.theme-dark .metric:nth-child(4n+3),body.theme-dark .stat:nth-child(4n+3){background:#3c2941!important}
body.theme-dark .metric:nth-child(4n+4),body.theme-dark .stat:nth-child(4n+4){background:#302b4c!important}
body.theme-dark .duo-grid > .panel:first-child{background:#192e44!important}
body.theme-dark .duo-grid > .panel:nth-child(2){background:#1b373b!important}
body.theme-dark .center-card{background:#302b46!important}
body.theme-dark .filter-panel{background:#1b304a!important}
body.theme-dark .myroutine-box{background:#322b43!important}
body.theme-dark #calendar > .panel{background:#242f47!important}
body.theme-dark #schedule > .panel:nth-of-type(3n+1),body.theme-dark #study .panel:nth-of-type(3n+1){background:#1b304a!important}
body.theme-dark #schedule > .panel:nth-of-type(3n+2),body.theme-dark #study .panel:nth-of-type(3n+2){background:#2e2942!important}
body.theme-dark #schedule > .panel:nth-of-type(3n+3),body.theme-dark #study .panel:nth-of-type(3n+3){background:#213b38!important}
body.theme-dark .metric strong,body.theme-dark .stat b{color:#d7e6ff!important}
body.theme-dark .calendar-day{background:#25374e!important;color:#e0e9f5!important;border:1px solid #435873!important}
body.theme-dark .calendar-day.has-exam{background:#245047!important;color:#e6fff3!important}
body.theme-dark .calendar-day.selected{outline-color:#9cc2ff!important}
body.theme-dark .datebox{background:#293f5e!important;color:#d9ebff!important}
body.theme-dark :is(.panel,.filter-panel,.center-card,.metric,.myroutine-box) :is(h1,h2,h3,b,strong){color:#f5f8ff!important}
body.theme-dark :is(.panel,.filter-panel,.center-card,.metric,.myroutine-box) :is(.muted,small,p){color:#c4d2e7!important}
body.theme-dark :is(input,select,textarea){background:#1a2b44!important;color:#f6f8ff!important;border-color:#465b79!important}
body.theme-dark :is(input,textarea)::placeholder{color:#bac8de!important}
/* Admin dashboard pastel hierarchy: summary and management screens. */
body:not(.theme-dark) .stats .stat:nth-child(4n+1){background:linear-gradient(130deg,#eaf5ff,#fff)!important;border-color:#daeafc}
body:not(.theme-dark) .stats .stat:nth-child(4n+2){background:linear-gradient(130deg,#eafaf0,#fff)!important;border-color:#d6efdf}
body:not(.theme-dark) .stats .stat:nth-child(4n+3){background:linear-gradient(130deg,#fff1f6,#fff)!important;border-color:#f8dfec}
body:not(.theme-dark) .stats .stat:nth-child(4n+4){background:linear-gradient(130deg,#f2edff,#fff)!important;border-color:#e6dcfb}
body:not(.theme-dark) #routines .card{background:linear-gradient(150deg,#f3f9ff,#fff 26%)!important}
body:not(.theme-dark) #centers .card{background:linear-gradient(150deg,#eefcf5,#fff 26%)!important}
body:not(.theme-dark) #imports .card{background:linear-gradient(150deg,#fff6ec,#fff 26%)!important}
body:not(.theme-dark) #banners .card{background:linear-gradient(150deg,#f7f0ff,#fff 26%)!important}
body.theme-dark #routines .card{background:#192f45!important}
body.theme-dark #centers .card{background:#1c393a!important}
body.theme-dark #imports .card{background:#343044!important}
body.theme-dark #banners .card{background:#2f2b49!important}
body.theme-dark .stats .stat{border:1px solid #43546c!important;color:#e5edfb!important}
@media(min-width:760px){body:not(.theme-dark) .metric:nth-child(2){transform:translateY(2px)}body:not(.theme-dark) .metric:nth-child(4){transform:translateY(2px)}}
@media(max-width:760px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metric{min-height:138px;padding:18px!important}.panel{border-radius:20px}.quick-item{min-height:104px}.duo-grid{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){.metric,.quick-item{transition:none!important}}
