/* Production polish: softer shadows and clearer visual hierarchy */
/* Keep the existing palette and card design; remove the sharp offset shadows. */
.app-shell *,.auth-screen *{box-shadow:none!important}
.app-shell .hero-card,.app-shell .stat-card,.app-shell .panel,.app-shell .quick-tools,.app-shell .insight-card,.app-shell .task-dialog,.app-shell .focus-complete-dialog,.app-shell .admin-users-panel,.app-shell .admin-stat-card,.app-shell .reset-notice-dialog,.app-shell .auth-card,.app-shell .lofi-player-card,.app-shell .sync-card,.app-shell .plan-date,.app-shell .planner-banner,.app-shell .learning-panel,.app-shell .calendar-panel,.app-shell .calendar-agenda,.app-shell .calendar-deadlines,.app-shell .settings-panel,.app-shell .completion-panel,.app-shell .subject-panel{box-shadow:0 2px 9px rgba(23,21,31,.075)!important}
.app-shell .primary-button,.app-shell .secondary-button,.app-shell .hero-button,.app-shell .theme-toggle,.app-shell .mobile-menu,.app-shell .mobile-add-task,.app-shell .mobile-tab.active,.app-shell .nav-link.active,.app-shell .filter-tab.active,.app-shell .week-day.selected,.app-shell .focus-controls button,.app-shell .focus-duration-chips button,.app-shell .settings-theme-choice.selected,.app-shell .lofi-play-button,.app-shell .logout-button{box-shadow:none!important;transform:none!important}
.app-shell button:hover{transform:translateY(-1px)}
.app-shell button:active{transform:translateY(0)}
body.dark .app-shell .hero-card,body.dark .app-shell .stat-card,body.dark .app-shell .panel,body.dark .app-shell .quick-tools,body.dark .app-shell .insight-card,body.dark .app-shell .task-dialog,body.dark .app-shell .focus-complete-dialog,body.dark .app-shell .admin-users-panel,body.dark .app-shell .admin-stat-card,body.dark .app-shell .reset-notice-dialog,body.dark .app-shell .lofi-player-card{box-shadow:0 2px 10px rgba(0,0,0,.24)!important}
:focus-visible{outline:3px solid rgba(124,58,237,.5)!important;outline-offset:2px}

/* Diploma-project polish: consistent type, spacing, borders and readable labels */
body{font-family:'DM Sans',Arial,sans-serif;font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
h1,h2,h3{letter-spacing:-.25px}h1{font-size:28px;line-height:1.25}h2{line-height:1.3}h3{line-height:1.35}
button,.nav-link,.primary-button,.secondary-button,.text-link,.quiet-link{font-family:'DM Sans',Arial,sans-serif;font-size:11px;font-weight:650;text-transform:none;letter-spacing:0}
.nav-link{text-transform:capitalize}.workspace-label,.eyebrow,.hero-kicker,.learning-label{letter-spacing:.75px;font-size:10px}.main-content{max-width:1500px;padding-left:40px;padding-right:40px}.topbar{margin-bottom:27px}
.welcome-row h1{font-size:30px;letter-spacing:-.35px}.welcome-row .subhead,.subhead{font-size:12px;line-height:1.55}.hero-copy h2{font-size:31px;line-height:1.12;letter-spacing:-.6px}.hero-copy p{max-width:420px;font-size:12px;line-height:1.55}.section-heading h2{font-size:19px;letter-spacing:-.2px}.panel-heading h3{font-size:14px}.panel-heading p{font-size:10px;line-height:1.5}
/* Keep the original color identity, but use lighter outlines and restrained depth. */
.app-shell .hero-card,.app-shell .stat-card,.app-shell .panel,.app-shell .quick-tools,.app-shell .insight-card,.app-shell .focus-session-card,.app-shell .focus-complete-dialog,.app-shell .admin-users-panel,.app-shell .admin-stat-card,.app-shell .reset-notice-dialog,.app-shell .task-dialog,.app-shell .lofi-player-card{border-width:1.5px!important;border-color:#d8d2c4!important;border-radius:12px!important}
.app-shell .nav-link.active,.app-shell .primary-button,.app-shell .secondary-button,.app-shell .hero-button,.app-shell .theme-toggle,.app-shell .mobile-menu,.app-shell .mobile-add-task,.app-shell .mobile-tab.active,.app-shell .filter-tab.active,.app-shell .week-day,.app-shell .focus-mode-toggle,.app-shell .focus-duration-chips button,.app-shell .focus-controls button,.app-shell .settings-theme-choice,.app-shell .settings-option-row button,.app-shell .logout-button,.app-shell .calendar-arrow,.app-shell .task-check,.app-shell input,.app-shell select,.app-shell textarea{border-width:1.5px}
.app-shell .stat-card,.app-shell .panel,.app-shell .hero-card,.app-shell .quick-tools,.app-shell .insight-card,.app-shell .focus-session-card,.app-shell .admin-users-panel,.app-shell .admin-stat-card,.app-shell .lofi-player-card{box-shadow:0 2px 8px rgba(23,21,31,.065)!important}
.app-shell .task-row{padding-top:11px;padding-bottom:11px}.app-shell .task-copy small,.app-shell .task-due,.app-shell .calendar-legend,.app-shell .field-footer,.app-shell .focus-hint,.app-shell .focus-howto{font-size:10px;line-height:1.45}.app-shell .calendar-weekdays span,.app-shell .calendar-day .day-number{font-size:10px}.app-shell .stat-label,.app-shell .stat-trend,.app-shell .task-copy b,.app-shell .session b{font-size:11px}.app-shell .add-inline,.app-shell .quiet-link{font-size:11px}
.app-shell button:hover{transform:translateY(-1px)}.app-shell button:active{transform:translateY(0)}
@media(max-width:760px){.main-content{padding-left:16px;padding-right:16px}.welcome-row h1{font-size:26px}.hero-copy h2{font-size:27px}.panel-heading h3{font-size:13px}.app-shell .task-copy small,.app-shell .task-due{font-size:9px}}
/* Apply the same restrained depth to the sign-in and recovery screens. */
.auth-card{border:1.5px solid #d8d2c4!important;border-radius:16px!important;box-shadow:0 2px 9px rgba(23,21,31,.075)!important}
.auth-field input{border-width:1.5px!important;box-shadow:none!important}
.reset-notice-dialog,.focus-complete-dialog{box-shadow:0 2px 9px rgba(23,21,31,.075)!important}
body.dark .auth-card,body.dark .reset-notice-dialog,body.dark .focus-complete-dialog{box-shadow:0 2px 10px rgba(0,0,0,.24)!important}
/* Updated Studiora open-book mark */
.brand-mascot{object-fit:contain;flex:0 0 auto}

/* Small decorative study buddy beside the dashboard date */
.welcome-row .eyebrow{position:relative}
.welcome-row .eyebrow::after{content:'🐕';display:inline-block;margin-left:8px;font-family:system-ui,sans-serif;font-size:18px;line-height:1;vertical-align:middle;transform-origin:center bottom;animation:studiora-dog-walk 7s ease-in-out infinite}
@keyframes studiora-dog-walk{0%,68%,100%{opacity:0;transform:translateX(-8px) translateY(0) scale(.88)}5%{opacity:1;transform:translateX(0) translateY(0) scale(1)}17%{opacity:1;transform:translateX(7px) translateY(-2px) rotate(-5deg)}29%{opacity:1;transform:translateX(15px) translateY(1px) rotate(5deg)}41%{opacity:1;transform:translateX(23px) translateY(-1px) rotate(-4deg)}48%{opacity:1;transform:translateX(27px) translateY(-7px) rotate(0) scale(1.1)}55%{opacity:1;transform:translateX(27px) translateY(0) scale(1)}62%{opacity:0;transform:translateX(34px) translateY(0) scale(.95)}}
@media(max-width:760px){.welcome-row .eyebrow::after{font-size:16px;animation-duration:8s}}
@media(prefers-reduced-motion:reduce){.welcome-row .eyebrow::after{animation:none;opacity:1;transform:none}}
/* Place the animated dog on the top header row beside the date and alerts. */
.welcome-row .eyebrow::after{content:none;animation:none}
.header-dog{display:inline-grid;place-items:center;width:23px;height:25px;flex:0 0 23px;font:18px/1 system-ui,sans-serif;transform-origin:center bottom;animation:studiora-header-dog 7s ease-in-out infinite}
@keyframes studiora-header-dog{0%,68%,100%{opacity:0;transform:translateX(-5px) translateY(0) scale(.88)}5%{opacity:1;transform:translateX(0) translateY(0) scale(1)}18%{opacity:1;transform:translateX(5px) translateY(-2px) rotate(-5deg)}31%{opacity:1;transform:translateX(9px) translateY(1px) rotate(5deg)}43%{opacity:1;transform:translateX(12px) translateY(-1px) rotate(-4deg)}50%{opacity:1;transform:translateX(13px) translateY(-6px) scale(1.1)}57%{opacity:1;transform:translateX(13px) translateY(0) scale(1)}63%{opacity:0;transform:translateX(16px) translateY(0) scale(.95)}}
@media(max-width:760px){.header-dog{width:18px;height:22px;flex-basis:18px;font-size:16px;animation-duration:8s}}
@media(prefers-reduced-motion:reduce){.header-dog{animation:none;opacity:1;transform:none}}
/* Display-name setting */
.settings-profile-panel .settings-name-form{display:grid;gap:7px;margin-top:5px}
.settings-name-form label b{font-size:10px}
.settings-name-controls{display:flex;gap:8px;align-items:center}
.settings-name-controls input{flex:1;min-width:0;height:39px;padding:8px 10px;border:1.5px solid #ded8cc;border-radius:8px;background:#fff;color:#263243;font:inherit;font-size:12px}
.settings-name-controls input:focus{outline:2px solid #d9d0ff;outline-offset:1px}
.settings-name-form>small{color:#737c88;font-size:10px;line-height:1.4}
.settings-name-form .settings-save-status{min-height:15px;margin:0;color:#557b60;font-size:10px}
body.dark .settings-name-controls input{background:#1b1922;color:#fff8ec;border-color:#51465e}
@media(max-width:760px){.settings-name-controls{align-items:stretch;flex-direction:column}.settings-name-controls .primary-button{align-self:flex-start}}
/* Student feedback and admin survey results */
.feedback-panel { margin-top: 16px; padding: 18px; }
.feedback-panel fieldset { display: grid; gap: 8px; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.feedback-panel label { font-weight: 700; font-size: 13px; }
.feedback-panel small { font-size: 12px; }
.feedback-panel .primary-button { justify-self: start; margin-top: 4px; }
.feedback-panel button:disabled { cursor: default; opacity: .65; }
.feedback-panel textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border: 1px solid #aaa2b5;
  border-radius: 8px;
  background: #fffdf9;
  color: #211936;
  resize: vertical;
}
body.dark .feedback-panel textarea { background: #1b1922; color: #fff8ec; border-color: #7a6f88; }
.feedback-admin-grid { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.feedback-counts { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.feedback-counts th, .feedback-counts td { padding: 7px 6px; border-bottom: 1px solid #aaa2b5; }
.feedback-counts td, .feedback-counts thead th:last-child { text-align: right; }
.feedback-counts tbody th { font-weight: 500; }
.feedback-responses { display: grid; gap: 8px; max-height: 28rem; overflow: auto; list-style: none; padding: 0; margin: 0; }
.feedback-responses li { padding: 10px; border: 1px solid #aaa2b5; border-radius: 8px; font-size: 13px; }
.feedback-response-heading { display: flex; justify-content: space-between; gap: 8px; }
.feedback-responses p { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-responses button { margin-top: 8px; }
#adminFeedbackStatus { margin: 0 0 8px; font-size: 13px; }
@media (max-width: 760px) {
  .feedback-admin-grid { grid-template-columns: 1fr; }
  .feedback-panel .panel-heading { gap: 8px; flex-wrap: wrap; }
}

/* A small celebration for marking a task complete */
.toast.toast-success {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 30px);
  padding: 9px 14px 9px 9px;
  border-color: #c6ff3d;
  font-size: 14px;
}
.toast.toast-success::before {
  content: "✓" / "";
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: #c6ff3d;
  color: #17151f;
  font-weight: 800;
}
.toast.toast-success.show::before { animation: task-check-pop 320ms ease-out; }
.confetti-bit.task-confetti {
  width: 6px;
  height: 8px;
  border: 0;
  border-radius: 2px;
  animation: task-confetti-pop 600ms ease-out both;
}
@keyframes task-check-pop {
  0% { transform: scale(.65); }
  65% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@keyframes task-confetti-pop {
  to { transform: translate(var(--burst-x), var(--burst-y)) rotate(210deg) scale(.5); opacity: 0; }
}
@media (max-width: 760px) {
  .toast.toast-success { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .toast.toast-success { transition: none; }
  .toast.toast-success.show::before { animation: none; }
}
