@font-face { font-family:'Plus Jakarta Sans';src:url('fonts/PlusJakartaSans.ttf') format('truetype');font-weight:200 800;font-display:swap; }
body,body *,body .art-card .card-art text { font-family:'Plus Jakarta Sans',system-ui,sans-serif; }
body {font-weight:500;}
button {font-weight:650;}
.view-kicker {font-size:10px;font-weight:600;letter-spacing:1.8px;}
.view-panel h1 {font-weight:800;font-size:26px;line-height:1.25;}
.home-fit #home-view .quote-card {min-height:83px;justify-content:center;padding:14px 18px;}
.home-fit .quote-card blockquote {font-size:17px;font-weight:700;}
.home-fit .calendar-day {padding:4px 0;}
.calendar-day.active::after {display:none;}
.home-fit .header-date {font-size:10px;}
.daily-goals.empty-overdue .goal-row:nth-child(2) {grid-template-columns:1fr 30px;padding:8px 0 0;}
.daily-goals.empty-overdue .goal-row:nth-child(2) .goal-symbol,.daily-goals.empty-overdue #overdue-meter,.daily-goals.empty-overdue #recovery-preview {display:none;}
.daily-goals.empty-overdue .goal-row:nth-child(2) .goal-label {margin:0;}
.goal-meter.red {--pressure-color:#ff777b;}
.goal-meter.red>div {background:var(--pressure-color);}
.goal-meter.red.near-max {animation:pressure-glow 2s ease-in-out infinite;}
.daily-goals {position:relative;}
.pressure-confetti {position:absolute;inset:50% 0 auto;text-align:center;pointer-events:none;color:#ffb19b;font-size:25px;word-spacing:20px;animation:pressure-burst 850ms ease-out forwards;}
@keyframes pressure-glow {50%{box-shadow:0 0 9px #ff597c70;}}
@keyframes pressure-burst {from{opacity:1;transform:scale(.6) translateY(0);}to{opacity:0;transform:scale(1.25) translateY(-55px);}}
.ws-toolbar {display:flex;gap:8px;align-items:center;margin:16px 0 12px;}
.ws-toolbar input {flex:1;min-width:0;padding:11px 13px;border-color:#7563ae7a;font-size:12px;}
.ws-button {min-height:42px;padding:9px 14px;border-radius:13px;background:#a78af0;color:#211a46;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;border:0;}
.ws-button.secondary {background:#ffffff0e;border:1px solid #8975ba55;color:#ded4fa;}
.ws-chips {display:flex;gap:7px;overflow-x:auto;padding:2px 0 10px;scrollbar-width:none;}
.ws-chip {white-space:nowrap;border-radius:18px;background:#272150;color:#c9bfe4;padding:9px 15px;min-height:38px;font-size:11px;}
.ws-chip[aria-selected=true],.ws-chip[aria-pressed=true] {background:#b6a0ef;color:#211943;}
.ws-course {border-radius:22px;background:#24204c;overflow:hidden;border:1px solid #8c75c82e;margin:12px 0 18px;}
.ws-cover {height:130px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 75% 120%,#8264b4,transparent 65%),linear-gradient(120deg,#4d3c80,#252047);}
.ws-cover img {width:100%;height:100%;object-fit:cover;}
.ws-cover:after {content:'';position:absolute;inset:0;background:linear-gradient(transparent,#1c163bd9);pointer-events:none;}
.ws-cover .ws-cover-label {position:absolute;bottom:13px;left:17px;right:17px;z-index:1;font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:#efe6ff;}
.ws-cover-placeholder {position:absolute;right:18px;top:13px;font-size:60px;color:#d6bef23f;font-weight:800;}
.ws-course-body {padding:16px;}
.ws-title {font-size:19px;font-weight:750;line-height:1.4;margin:0 0 12px;}
.ws-row {display:flex;justify-content:space-between;align-items:center;gap:8px;margin:8px 0;font-size:11px;color:#d9cdef;}
.ws-muted {font-size:11px;color:#bcb0d4;line-height:1.7;margin:8px 0;}
.ws-meter {height:7px;background:#49406d;border-radius:10px;overflow:hidden;margin:6px 0 13px;}
.ws-meter>div {height:100%;background:linear-gradient(90deg,#9773ed,#c5a0ff);border-radius:inherit;}
.ws-meter.study>div {background:#62c6d5;}
.ws-course-body>.ws-button {width:100%;margin-top:10px;}
.ws-hero {border-radius:20px;overflow:hidden;}
.ws-hero .ws-cover {height:145px;}
.ws-section {background:#241d46;border:1px solid #8975ba25;border-radius:18px;padding:15px;margin:13px 0;}
.ws-section h3 {font-size:14px;margin-bottom:11px;}
.ws-lesson {display:flex;gap:11px;align-items:center;min-height:61px;padding:11px 0;border-top:1px solid #8673b924;color:#f1eafa;text-decoration:none;}
.ws-lesson .status {width:28px;height:28px;border-radius:50%;background:#7260ab40;display:grid;place-items:center;flex-shrink:0;color:#d1b8ff;}
.ws-lesson .status.done {background:#63c6b330;color:#87dec2;}
.ws-lesson strong {font-size:12px;font-weight:650;display:block;}
.ws-lesson small {font-size:10px;color:#b4a7d1;display:block;margin-top:5px;}
.ws-tabs {position:sticky;top:0;z-index:2;background:#333176;padding-top:8px;}
.ws-session-header {display:flex;justify-content:space-between;align-items:center;gap:8px;}
.ws-clock {font-variant-numeric:tabular-nums;font-weight:750;font-size:17px;}
.ws-timer-actions {display:flex;gap:7px;margin-top:9px;}
.ws-timer-actions button {flex:1;min-height:39px;}
.ws-resource {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid #8975ba25;}
.ws-resource button {text-align:left;flex:1;background:none;color:white;font-size:12px;min-height:42px;}
.ws-resource small {display:block;font-size:10px;color:#bdb0d8;margin-top:4px;}
.ws-resource-type {display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:#7560a838;font-size:9px;font-weight:750;color:#d5c3f1;}
.ws-player {width:100%;border:0;border-radius:13px;background:#151127;aspect-ratio:16/10;display:block;}
.ws-player.pdf {height:450px;aspect-ratio:auto;}
.ws-player.image {height:auto;max-height:500px;object-fit:contain;}
audio.ws-player {height:54px;aspect-ratio:auto;}
.ws-notes {width:100%;min-height:140px;background:#211a3f;border:1px solid #756295;border-radius:14px;padding:13px;color:white;line-height:1.7;font-size:13px;resize:vertical;}
.ws-journal {border-left:2px solid #9470c6;padding:3px 0 8px 15px;margin:18px 0;}
.ws-journal h3 {font-size:13px;margin:8px 0;}
.ws-journal p {font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;}
.ws-empty {padding:22px 14px;text-align:center;color:#c5b8db;font-size:12px;line-height:1.8;}
.ws-form {display:grid;gap:12px;}
.ws-form label {display:grid;gap:6px;font-size:12px;color:#dfd4f1;}
.ws-form input,.ws-form textarea,.ws-form select {width:100%;background:#211b42;color:white;border:1px solid #78649b;border-radius:11px;padding:11px;font:inherit;font-size:12px;}
.ws-form textarea {min-height:85px;}
.ws-check {display:flex!important;align-items:center;gap:10px!important;}
.ws-check input {width:20px;height:20px;accent-color:#bc98f5;}
.ws-dialog {position:fixed;inset:0;margin:auto;width:min(380px,calc(100vw - 20px));max-height:calc(100dvh - 26px);overflow:auto;border-radius:23px;border:1px solid #9274bc;padding:20px;background:#2b234e;color:white;}
.ws-dialog::backdrop {background:#100b27be;}
.ws-dialog h2 {font-size:20px;margin:0 35px 18px 0;}
.ws-dialog-close {float:right;border-radius:50%;width:30px;height:30px;background:#614c85;}
.ws-feedback {font-size:11px;line-height:1.6;color:#dbb9f2;margin:8px 0;}
.ws-manager {padding:12px;background:#ffffff08;border-radius:14px;margin:10px 0;}
.ws-manager .learn-order {display:inline-flex;margin-left:7px;}
.ws-saved {color:#98d8c9;}
.view-panel:has(#learning-content.ws-inner:not([hidden])) > .view-kicker,
.view-panel:has(#learning-content.ws-inner:not([hidden])) > #view-title,
.view-panel:has(#learning-content.ws-inner:not([hidden])) > #view-description {display:none;}
.ws-inner .ws-title {margin-top:12px;}
.ws-pdf {overflow:auto;max-height:480px;background:#171324;border-radius:12px;}
.ws-pdf canvas {display:block;}
.ws-pdf-controls {display:flex;gap:4px;align-items:center;justify-content:center;position:sticky;top:0;left:0;z-index:1;background:#352857;padding:6px;min-width:280px;}
.ws-pdf-controls span {font-size:10px;min-width:76px;text-align:center;}
.ws-pdf-controls button {padding:5px 10px;min-height:35px;}
@media(prefers-reduced-motion:reduce){.goal-meter.red.near-max,.pressure-confetti{animation:none}.pressure-confetti{display:none}}

.profile-avatar {border:0;cursor:pointer;font:inherit;flex-shrink:0}
.cloud-locked .phone-container{visibility:hidden}
#cloud-gate{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:#141126;color:#eee;font-family:"Plus Jakarta Sans",sans-serif;padding:24px}
#cloud-gate[hidden]{display:none}#cloud-gate>div{max-width:360px}#cloud-gate button{border:0;border-radius:16px;padding:14px;background:#b7b2ed;color:#27234b;font:inherit;cursor:pointer}
#account-dialog .ws-button{display:flex;width:100%;min-height:43px;margin-top:12px;align-items:center;justify-content:center;text-align:center;line-height:1.2}

/* Wellbeing workspace */
.wellbeing-content {display:grid;gap:12px;margin-top:14px;}
.wellbeing-tabs {display:grid;grid-template-columns:repeat(3,1fr);gap:7px;background:#1f1945;padding:6px;border-radius:18px;}
.wellbeing-tabs.compact {grid-template-columns:repeat(4,1fr);}
.wellbeing-tabs button {border:0;border-radius:14px;padding:9px 6px;background:transparent;color:#cfc4ff;font-weight:800;font-size:12px;}
.wellbeing-tabs button[aria-pressed="true"] {background:#a88af4;color:#19133c;}
.well-card {background:#211b4c;border:1px solid #5f55ad;border-radius:20px;padding:15px;box-shadow:0 8px 20px #100b2d33;}
.well-card-head {display:flex;justify-content:space-between;gap:10px;align-items:flex-start;}
.well-card-head div {display:grid;gap:3px;}
.well-card-head strong {text-transform:uppercase;letter-spacing:1.2px;font-size:11px;}
.well-card-head span,.well-empty {font-size:12px;color:#cfc6ef;line-height:1.5;}
.well-card-head b {font-size:20px;text-align:right;}
.well-meter {height:13px;background:#373171;border-radius:20px;overflow:hidden;margin:13px 0;}
.well-meter span {display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#54c7e1,#6de0f0);}
.well-meter.sleep span {background:linear-gradient(90deg,#8b72ff,#c99afa);}
.quick-actions,.snapshot-actions {display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0;}
.quick-actions .primary-button,.snapshot-actions .primary-button {padding:10px;min-height:38px;}
.primary-button.secondary {background:#3a3177;color:#ded6ff;}
.well-field {display:grid;gap:6px;margin:10px 0;font-size:12px;color:#fff;font-weight:700;}
.well-field input,.field-label input {width:100%;box-sizing:border-box;border:1px solid #8c7ee6;border-radius:13px;background:#251f55;color:white;padding:10px 12px;font:inherit;}
.time-row {display:grid;grid-template-columns:1fr 1fr;gap:9px;}
.trend-stats {display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.trend-stat {background:#1e1944;border-radius:14px;padding:10px;}
.trend-stat small {display:block;color:#bdb3ed;font-size:10px;}
.trend-stat strong {font-size:14px;}
.well-chart {height:150px;display:flex;align-items:end;gap:5px;background:#1c173f;border-radius:18px;padding:14px 10px 25px;position:relative;}
.chart-day {flex:1;height:100%;display:flex;align-items:end;position:relative;min-width:6px;}
.chart-day span {width:100%;background:linear-gradient(180deg,#8fdfff,#7f65f8);border-radius:8px 8px 2px 2px;}
.chart-day small {position:absolute;bottom:-20px;left:50%;transform:translateX(-50%);font-size:9px;color:#c9c0ef;}
.history-list {display:grid;gap:9px;}
.history-item {display:grid;grid-template-columns:1fr;gap:4px;text-align:left;background:#211b4c;border:1px solid #5f55ad;border-radius:16px;padding:12px;color:white;}
.history-item span {font-size:12px;color:#d2c8f3;}
.day-snapshot {display:grid;gap:10px;}
.snapshot-nav {display:flex;justify-content:flex-end;gap:8px;}
.snapshot-line {display:flex;justify-content:space-between;gap:12px;border-top:1px solid #7669bc55;padding-top:10px;}
.snapshot-muted {font-size:12px;color:#cdc4ef;}
.calendar-day.complete {outline:2px solid #b4a8ff;outline-offset:2px;}
.calendar-day.missed:not(.active) {box-shadow:inset 0 -3px #ff8b84;}
@media(max-width:390px){.wellbeing-tabs.compact{grid-template-columns:repeat(2,1fr)}.quick-actions,.snapshot-actions{grid-template-columns:1fr}.trend-stats{grid-template-columns:1fr}}

/* Daily inspiration: compact, tonal treatment for the Home dashboard. */
.home-fit #home-view .quote-card {
    position:relative; isolation:isolate; overflow:hidden; gap:7px;
    padding:13px 18px; border-radius:22px;
    border:1px solid #b8a3ff40;
    background:radial-gradient(ellipse at 100% 0%,#ad87ee36,transparent 65%),linear-gradient(120deg,#42387d,#554291 58%,#69509d);
    box-shadow:inset 0 1px 0 #ffffff0d,0 5px 16px #17133614;
}
.home-fit #home-view .quote-card::after {
    content:'“'; position:absolute; right:10px; top:-18px; z-index:-1;
    font-family:Georgia,serif; font-size:130px; line-height:1; color:#d9c7ff12;
    pointer-events:none;
}
.home-fit #home-view .quote-eyebrow {
    display:none;
    color:#ded0ff; font-size:8px; font-weight:700; letter-spacing:1.4px; line-height:1.3;
}
.home-fit #home-view .quote-eyebrow span {color:#d2b5ff;font-size:12px;}
.home-fit #home-view .quote-card blockquote {
    margin:0; color:#faf6ff; font-size:16px; font-weight:650; line-height:1.4;
    text-wrap:pretty; max-width:95%;
}
.quote-card.study-active {
    cursor:pointer;
    background:radial-gradient(ellipse at 100% 0%,#60d2df36,transparent 65%),linear-gradient(120deg,#24235d,#35307a 58%,#51429a);
}
.quote-card.study-active .quote-eyebrow span {color:#7fe3ef;}
.home-fit #home-view .quote-card.study-active .quote-eyebrow {display:flex;}
.quote-card.study-active blockquote {
    font-variant-numeric:tabular-nums;
    font-size:clamp(22px,6vw,30px);
}
.quote-action {
    border:0;border-radius:16px;background:#ffffff1f;color:#fff;padding:8px 12px;
    font-size:11px;font-weight:800;align-self:flex-start;
}
.quote-card.study-active .quote-action {display:inline-flex!important;}
.import-tree {margin:16px 0;overflow-wrap:anywhere;}
.import-tree details {border-left:2px solid #8c78cb;margin:10px 0;padding:8px 0 8px 10px;}
.import-tree summary {cursor:pointer;padding:8px 0;font-weight:700;}
.import-tree details details {margin-left:6px;}
.import-actions {display:flex;gap:6px;flex-wrap:wrap;}
.import-actions .ws-button {padding:8px 10px;min-width:36px;}
.import-tree input,.import-tree select {min-width:0;max-width:100%;}
.ws-dialog>div>.ws-button {margin:5px 4px 5px 0;}
