/* AchieveX — routine.html styles */

/* ═══════════════════════════════════════
   DESIGN SYSTEM — same tokens as dashboard
═══════════════════════════════════════ */
:root {
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Sora', sans-serif;
  --blue-50:#EFF6FF; --blue-100:#DBEAFE; --blue-200:#BFDBFE;
  --blue-400:#60A5FA; --blue-500:#3B82F6; --blue-600:#2563EB;
  --blue-700:#1D4ED8; --blue-900:#1E3A8A;
  --green-500:#22C55E; --green-100:#DCFCE7;
  --amber-500:#F59E0B; --amber-100:#FEF3C7;
  --red-500:#EF4444;   --red-100:#FEE2E2;
  --purple-500:#A855F7; --purple-100:#F3E8FF;
  --cyan-500:#06B6D4;   --cyan-100:#CFFAFE;
  --orange-500:#F97316;
  --bg:#F8F9FA; --bg2:#F1F3F4; --bg3:#E8EAED;
  --surface:#FFFFFF; --surface2:#F8F9FA; --surface3:#F1F3F4;
  --surface4:rgba(255,255,255,.92);
  --border:rgba(0,0,0,.06); --border-m:rgba(0,0,0,.10);
  --border-s:rgba(59,130,246,.18);
  --txt:#202124; --txt2:#3C4043; --txt3:#5F6368; --txt4:#9AA0A6;
  --glass:rgba(255,255,255,.88); --glass-border:rgba(255,255,255,.65);
  --primary:var(--blue-500); --primary-d:var(--blue-600); --primary-l:var(--blue-400);
  --shadow-xs:0 1px 2px rgba(60,64,67,.07),0 1px 3px rgba(60,64,67,.05);
  --shadow-sm:0 1px 3px rgba(60,64,67,.09),0 2px 8px rgba(60,64,67,.06);
  --shadow:0 2px 6px rgba(60,64,67,.10),0 4px 16px rgba(60,64,67,.07);
  --shadow-md:0 4px 12px rgba(60,64,67,.12),0 8px 32px rgba(60,64,67,.08);
  --shadow-lg:0 8px 24px rgba(60,64,67,.14),0 16px 56px rgba(60,64,67,.10);
  --shadow-xl:0 16px 48px rgba(60,64,67,.16),0 32px 80px rgba(60,64,67,.12);
  --shadow-blue:0 4px 16px rgba(59,130,246,.32),0 2px 6px rgba(59,130,246,.18);
  --r-xs:6px; --r-sm:8px; --r:12px; --r-lg:16px;
  --r-xl:20px; --r-2xl:24px; --r-3xl:32px; --r-full:9999px;
  --nav-h:60px; --side-w:240px;
  --ease:cubic-bezier(.25,.46,.45,.94);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-spring:cubic-bezier(.34,1.56,.64,1);
  --ease-google:cubic-bezier(.4,0,.2,1);
}
.dark {
  --bg:#1A1B1E; --bg2:#202124; --bg3:#2D2E31;
  --surface:#28292C; --surface2:#303134; --surface3:#3C4043;
  --surface4:rgba(40,41,44,.92);
  --border:rgba(255,255,255,.06); --border-m:rgba(255,255,255,.10);
  --glass:rgba(30,31,34,.92); --glass-border:rgba(255,255,255,.08);
  --txt:#E8EAED; --txt2:#BDC1C6; --txt3:#9AA0A6; --txt4:#5F6368;
  --shadow-xs:0 1px 3px rgba(0,0,0,.4),0 1px 4px rgba(0,0,0,.3);
  --shadow-sm:0 2px 6px rgba(0,0,0,.5),0 1px 3px rgba(0,0,0,.3);
  --shadow:0 4px 12px rgba(0,0,0,.55),0 2px 6px rgba(0,0,0,.35);
  --shadow-md:0 8px 24px rgba(0,0,0,.60),0 4px 12px rgba(0,0,0,.4);
  --shadow-lg:0 16px 48px rgba(0,0,0,.70),0 8px 20px rgba(0,0,0,.45);
  --shadow-xl:0 24px 72px rgba(0,0,0,.75),0 12px 32px rgba(0,0,0,.50);
}

/* ═══ RESET ═══ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-tap-highlight-color:transparent}
body{
  font-family:var(--font-sans);background:var(--bg);color:var(--txt);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;overscroll-behavior-x:none;line-height:1.6;
  transition:background .35s var(--ease-google),color .35s var(--ease-google);
  overscroll-behavior:none;
  max-width:100vw;
}
::selection{background:rgba(59,130,246,.15);color:var(--txt)}
::-webkit-scrollbar{width:5px;height:5px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--bg3);border-radius:20px}
::-webkit-scrollbar-thumb:hover{background:var(--txt4)}
a{text-decoration:none;color:inherit}
ul{list-style:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}
img,svg{display:block;max-width:100%}
input,select,textarea{font-family:inherit;outline:none}

/* ═══ KEYFRAMES ═══ */
@keyframes fadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
@keyframes progressBar{0%{width:0}60%{width:72%}88%{width:91%}100%{width:100%}}
@keyframes ringPulse{0%{box-shadow:0 0 0 0 rgba(59,130,246,.3)}70%{box-shadow:0 0 0 18px rgba(59,130,246,0)}100%{box-shadow:0 0 0 0 rgba(59,130,246,0)}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.45}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes cardIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes progressFill{from{width:0}to{width:var(--target-w)}}
@keyframes toastIn{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes toastOut{to{opacity:0;transform:translateY(8px) scale(.97)}}
@keyframes blockIn{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}
@keyframes insightPop{from{opacity:0;transform:scale(.97) translateY(6px)}to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes loadDot{0%,80%,100%{transform:scale(0);opacity:.4}40%{transform:scale(1);opacity:1}}
@keyframes pageLoaderBar{0%{width:0}60%{width:70%}80%{width:88%}100%{width:100%}}

/* ═══ PAGE LOADER ═══ */
#page-loader{
  position:fixed;inset:0;z-index:9999;
  background:var(--bg);display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:20px;
  transition:opacity .5s var(--ease),visibility .5s;
}
#page-loader.hide{opacity:0;visibility:hidden}
.page-loader-logo{
  width:52px;height:52px;border-radius:14px;
  background:linear-gradient(145deg,#4F93F8,#1D4ED8);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 24px rgba(59,130,246,.4);
}
.page-loader-bar-wrap{width:120px;height:3px;background:var(--bg3);border-radius:3px;overflow:hidden}
.page-loader-bar{height:100%;background:var(--blue-500);border-radius:3px;animation:pageLoaderBar 1.6s var(--ease-out) both}

/* ═══ TOAST ═══ */
#toast-container{position:fixed;bottom:24px;right:20px;z-index:9000;display:flex;flex-direction:column;gap:8px;pointer-events:none;max-width:340px}
@media(max-width:480px){#toast-container{bottom:16px;right:12px;left:12px}}
.toast{
  display:flex;align-items:center;gap:10px;
  padding:11px 14px;border-radius:var(--r-lg);min-width:200px;
  background:var(--surface);border:1px solid var(--border);
  box-shadow:var(--shadow-md);pointer-events:auto;
  animation:toastIn .3s var(--ease-out) both;
  font-size:13px;color:var(--txt);font-weight:500;
}
.toast.out{animation:toastOut .25s var(--ease) forwards}
.toast-icon{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:10px;font-weight:700}
.toast.success .toast-icon{background:rgba(34,197,94,.12);color:var(--green-500)}
.toast.info .toast-icon{background:rgba(59,130,246,.12);color:var(--blue-500)}
.toast.warn .toast-icon{background:rgba(245,158,11,.12);color:var(--amber-500)}
.toast.error .toast-icon{background:rgba(239,68,68,.12);color:var(--red-500)}

/* ═══ LAYOUT ═══ */
.app-layout{display:flex;min-height:100vh;min-height:100dvh}

/* ═══ SIDEBAR ═══ */
.sidebar{
  width:var(--side-w);height:100vh;height:100dvh;
  position:fixed;top:0;left:0;z-index:300;
  background:var(--surface);border-right:1px solid var(--border);
  display:flex;flex-direction:column;
  transition:transform .32s var(--ease-out),background .35s var(--ease-google);
  box-shadow:var(--shadow-sm);overflow:hidden;
}
@media(max-width:1023px){
  .sidebar{transform:translateX(-100%);box-shadow:var(--shadow-xl);z-index:300}
  .sidebar.open{transform:translateX(0)}
}
.sidebar-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:0 14px;border-bottom:1px solid var(--border);
  flex-shrink:0;height:var(--nav-h);
}
.sidebar-logo{display:flex;align-items:center;gap:10px;text-decoration:none}
.sidebar-logo-mark{
  width:30px;height:30px;border-radius:8px;
  background:linear-gradient(145deg,#4F93F8 0%,#1D4ED8 100%);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(59,130,246,.35);flex-shrink:0;
  transition:transform .22s var(--ease-spring),box-shadow .22s;
}
.sidebar-logo-mark:hover{transform:scale(1.07) rotate(-3deg);box-shadow:0 4px 14px rgba(59,130,246,.4)}
.sidebar-logo-name{font-family:var(--font-display);font-size:16px;font-weight:700;letter-spacing:-.04em;color:var(--txt)}
.sidebar-close{
  width:28px;height:28px;border-radius:var(--r-sm);
  background:var(--surface2);border:1px solid var(--border);
  display:none;align-items:center;justify-content:center;
  color:var(--txt3);transition:all .18s;flex-shrink:0;
}
@media(max-width:1023px){.sidebar-close{display:flex}}
.sidebar-close:hover{background:var(--surface3);color:var(--txt)}
.sidebar-nav{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px;display:flex;flex-direction:column;gap:1px}
.sidebar-section-label{font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.9px;color:var(--txt4);padding:10px 10px 4px}
.sidebar-link{
  display:flex;align-items:center;gap:11px;padding:8px 10px;
  border-radius:var(--r);font-size:13px;font-weight:500;
  color:var(--txt3);transition:background .15s,color .15s;
  position:relative;cursor:pointer;user-select:none;text-decoration:none;
}
.sidebar-link:hover{background:var(--surface2);color:var(--txt)}
.sidebar-link.active{background:rgba(59,130,246,.09);color:var(--blue-600)}
.sidebar-link.active .sidebar-link-icon{color:var(--blue-600)}
.sidebar-link-icon{
  width:28px;height:28px;border-radius:var(--r-sm);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;color:var(--txt4);transition:color .15s;
}
.sidebar-link:hover .sidebar-link-icon{color:var(--txt3)}
.sidebar-link-label{flex:1}
.sidebar-badge{font-size:9.5px;font-weight:700;background:var(--blue-500);color:#fff;padding:1px 6px;border-radius:var(--r-full)}
.sidebar-badge.ai{background:linear-gradient(135deg,#A855F7,#6366F1)}
.sidebar-badge.green{background:var(--green-500)}
.sidebar-badge.amber{background:var(--amber-500)}
.sidebar-footer{padding:12px;border-top:1px solid var(--border);flex-shrink:0}
.sidebar-user{
  display:flex;align-items:center;gap:10px;padding:9px 10px;
  border-radius:var(--r);background:var(--surface2);
  border:1px solid var(--border);cursor:pointer;transition:background .15s;
}
.sidebar-user:hover{background:var(--surface3)}
.sidebar-avatar{
  width:32px;height:32px;border-radius:50%;
  background:linear-gradient(135deg,var(--blue-500),var(--blue-700));
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:700;color:#fff;flex-shrink:0;
}
.sidebar-user-info{flex:1;min-width:0}
.sidebar-user-name{font-size:12.5px;font-weight:600;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-user-role{font-size:10.5px;color:var(--txt4)}

/* ═══ OVERLAY ═══ */
/* ═══ MAIN AREA ═══ */
.main-area{
  margin-left:var(--side-w);flex:1;display:flex;flex-direction:column;
  min-height:100vh;min-height:100dvh;
  transition:margin-left .32s var(--ease-out);overflow-x:hidden;
}
@media(max-width:1023px){.main-area{margin-left:0}}

/* ═══ TOPNAV ═══ */
.topnav{
  position:sticky;top:0;z-index:100;height:var(--nav-h);
  background:var(--surface);
  border-bottom:1px solid var(--border);box-shadow:0 1px 0 var(--border),var(--shadow-xs);
  display:flex;align-items:center;padding:0 16px;gap:10px;
  transition:background .35s var(--ease-google);flex-shrink:0;
}
.topnav-hamburger{
  width:32px;height:32px;border-radius:var(--r-sm);background:var(--surface2);
  border:1px solid var(--border);display:none;align-items:center;justify-content:center;
  color:var(--txt3);transition:all .18s;flex-shrink:0;
}
@media(max-width:1023px){.topnav-hamburger{display:flex}}
.topnav-hamburger:hover{background:var(--surface3);color:var(--txt)}
.search-wrap{flex:1;position:relative;max-width:380px;min-width:0;display:flex;align-items:center}
.search-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--txt4);pointer-events:none;display:flex;align-items:center;z-index:1}
.search-input{
  width:100%;height:34px;padding:0 12px 0 32px;
  background:var(--surface2);border:1.5px solid var(--border);
  border-radius:var(--r-full);font-size:13px;color:var(--txt);
  outline:none;transition:all .2s;
}
.search-input:focus{background:var(--surface);border-color:var(--border-s);box-shadow:0 0 0 3px rgba(59,130,246,.10)}
.search-input::placeholder{color:var(--txt4)}
#search-results{
  position:absolute;top:calc(100% + 6px);left:0;right:0;
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r-lg);box-shadow:var(--shadow-lg);
  z-index:500;display:none;overflow:hidden;
}
.topnav-breadcrumb{display:flex;align-items:center;gap:6px}
.topnav-page-title{font-family:var(--font-display);font-size:14.5px;font-weight:700;letter-spacing:-.03em;color:var(--txt)}
.topnav-sep{color:var(--txt4);font-size:13px}
.topnav-sub{font-size:13px;color:var(--txt3);font-weight:500}
@media(max-width:480px){.topnav-sub{display:none}.topnav-page-title{font-size:13.5px}}
.topnav-actions{display:flex;align-items:center;gap:5px;margin-left:auto;flex-shrink:0}
.icon-btn{
  width:32px;height:32px;border-radius:var(--r-sm);
  background:var(--surface2);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  color:var(--txt3);transition:all .18s;flex-shrink:0;position:relative;
}
.icon-btn:hover{background:var(--surface3);color:var(--txt)}
.icon-btn.active{background:rgba(59,130,246,.09);border-color:var(--border-s);color:var(--blue-600)}
.notif-dot{position:absolute;top:5px;right:5px;width:7px;height:7px;border-radius:50%;background:var(--red-500);border:1.5px solid var(--surface2);animation:pulse 2s ease-in-out infinite}
.profile-btn{display:flex;align-items:center;gap:7px;padding:3px 9px 3px 3px;background:var(--surface2);border:1px solid var(--border);border-radius:var(--r-full);transition:all .18s;cursor:pointer}
.profile-btn:hover{background:var(--surface3);border-color:var(--border-m)}
.profile-avatar{width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,var(--blue-500),var(--blue-700));display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:#fff;flex-shrink:0}
.profile-name{font-size:12px;font-weight:600;color:var(--txt)}
@media(max-width:480px){.profile-name{display:none}}

/* ─── PROFILE DROPDOWN ─── */
.profile-wrap{position:relative}
.profile-dropdown{
  position:absolute;top:calc(100% + 8px);right:0;min-width:200px;
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r-lg);box-shadow:var(--shadow-lg);
  padding:6px;z-index:400;pointer-events:none;
  opacity:0;visibility:hidden;transform:translateY(-6px) scale(.97);
  transition:opacity .18s,visibility .18s,transform .18s var(--ease);
}
.profile-dropdown.open{opacity:1;visibility:visible;transform:none;pointer-events:all}
.profile-dropdown-user{padding:10px;border-bottom:1px solid var(--border);margin-bottom:4px}
.profile-dropdown-uname{font-size:13px;font-weight:700;color:var(--txt)}
.profile-dropdown-email{font-size:11px;color:var(--txt4);margin-top:2px}
.dropdown-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--r-sm);font-size:13px;font-weight:500;color:var(--txt2);cursor:pointer;transition:background .12s}
.dropdown-item:hover{background:var(--surface2);color:var(--txt)}
.dropdown-item.danger{color:var(--red-500)}
.dropdown-item.danger:hover{background:rgba(239,68,68,.06)}
.dropdown-sep{height:1px;background:var(--border);margin:4px 0}

/* ═══ PAGE CONTENT ═══ */
.page-content{flex:1;padding:20px;overflow-y:auto;-webkit-overflow-scrolling:touch;overflow-x:hidden}
@media(max-width:640px){.page-content{padding:14px}}
@media(max-width:380px){.page-content{padding:10px}}

/* ═══ ROUTINE HEADER ═══ */
.routine-header{
  background:linear-gradient(135deg,var(--blue-600) 0%,var(--blue-700) 50%,#1D3F9A 100%);
  border-radius:var(--r-xl);padding:20px 22px;
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:18px;overflow:hidden;position:relative;
  box-shadow:var(--shadow-blue);flex-wrap:wrap;gap:12px;
}
.routine-header::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 50% 80% at 85% 50%,rgba(255,255,255,.06),transparent);pointer-events:none}
.routine-header::after{content:'';position:absolute;top:-30px;right:-30px;width:160px;height:160px;border-radius:50%;background:rgba(255,255,255,.04);pointer-events:none}
.routine-header-text h2{font-family:var(--font-display);font-size:19px;font-weight:700;color:#fff;letter-spacing:-.03em}
.routine-header-text p{font-size:12px;color:rgba(255,255,255,.6);margin-top:3px}
.routine-header-actions{display:flex;align-items:center;gap:8px;position:relative;z-index:1;flex-wrap:wrap}
.btn-primary{
  height:34px;padding:0 14px;border-radius:var(--r-sm);
  background:#fff;color:var(--blue-700);font-size:12.5px;font-weight:600;
  display:flex;align-items:center;gap:6px;transition:all .18s;
  border:none;cursor:pointer;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.btn-primary:hover{background:rgba(255,255,255,.92);transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,.18)}
.btn-ghost-white{
  height:34px;padding:0 12px;border-radius:var(--r-sm);
  background:rgba(255,255,255,.12);color:#fff;font-size:12px;font-weight:500;
  display:flex;align-items:center;gap:6px;transition:all .18s;
  border:1px solid rgba(255,255,255,.2);cursor:pointer;flex-shrink:0;
}
.btn-ghost-white:hover{background:rgba(255,255,255,.2)}
@media(max-width:480px){
  .routine-header{padding:14px 16px}
  .routine-header-text h2{font-size:16px}
  .btn-primary .btn-label,.btn-ghost-white .btn-label{display:none}
}

/* ═══ STAT GRID ═══ */
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}
@media(max-width:900px){.stat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:360px){.stat-grid{grid-template-columns:1fr 1fr;gap:8px}}
.stat-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);
  padding:14px;display:flex;flex-direction:column;gap:8px;
  transition:box-shadow .2s,transform .2s;box-shadow:var(--shadow-xs);
}
.stat-card:hover{box-shadow:var(--shadow-sm);transform:translateY(-1px)}
.stat-card-top{display:flex;align-items:center;justify-content:space-between}
.stat-card-label{font-size:11px;font-weight:500;color:var(--txt3)}
.stat-icon{width:30px;height:30px;border-radius:var(--r-sm);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.stat-val{font-family:var(--font-display);font-size:22px;font-weight:700;letter-spacing:-.04em;color:var(--txt);line-height:1}
@media(max-width:480px){.stat-val{font-size:19px}}
.stat-sub{font-size:10.5px;color:var(--txt4);margin-top:1px}
.stat-sub span{font-weight:600}
.stat-progress-bar{height:3px;border-radius:4px;background:var(--bg3);overflow:hidden;margin-top:2px}
.stat-progress-fill{height:100%;border-radius:4px;transition:width 1.2s var(--ease-out)}
.stat-card.blue .stat-icon{background:rgba(59,130,246,.1);color:var(--blue-500)}
.stat-card.green .stat-icon{background:rgba(34,197,94,.1);color:var(--green-500)}
.stat-card.amber .stat-icon{background:rgba(245,158,11,.1);color:var(--amber-500)}
.stat-card.purple .stat-icon{background:rgba(168,85,247,.1);color:var(--purple-500)}

/* ═══ STREAK BANNER ═══ */
.streak-banner{
  display:flex;align-items:center;justify-content:space-between;
  background:linear-gradient(135deg,rgba(245,158,11,.08),rgba(249,115,22,.06));
  border:1px solid rgba(245,158,11,.18);border-radius:var(--r-lg);
  padding:10px 16px;margin-bottom:18px;gap:12px;flex-wrap:wrap;
}
.streak-left{display:flex;align-items:center;gap:10px}
.streak-icon{font-size:22px;line-height:1}
.streak-text{font-size:13px;font-weight:600;color:var(--txt)}
.streak-sub{font-size:11px;color:var(--txt4)}
.streak-count{font-family:var(--font-display);font-size:26px;font-weight:800;color:var(--amber-500);letter-spacing:-.04em;line-height:1}

/* ═══ SECTION CARD ═══ */
.section-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--shadow-xs);margin-bottom:18px}
.section-header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--border);flex-wrap:wrap;gap:10px;min-height:54px}
.section-title{font-family:var(--font-display);font-size:13.5px;font-weight:700;letter-spacing:-.03em;color:var(--txt)}
.section-subtitle{font-size:11.5px;color:var(--txt4);margin-top:2px;font-weight:400}
.section-body{padding:18px}

/* ═══ MAIN GRID ═══ */
.main-grid{display:grid;grid-template-columns:1fr 294px;gap:18px;align-items:start}
@media(max-width:1100px){.main-grid{grid-template-columns:1fr}}
.side-col{display:flex;flex-direction:column;gap:14px}

/* ═══ FORM GRID ═══ */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:640px){.form-grid{grid-template-columns:1fr}}
.form-group{display:flex;flex-direction:column;gap:5px}
.form-group.full{grid-column:1/-1}
.form-label{font-size:11.5px;font-weight:600;color:var(--txt3);letter-spacing:.01em}
.form-label span{color:var(--red-500);margin-left:2px}
.form-input,.form-select{
  width:100%;height:37px;padding:0 12px;
  border-radius:var(--r-sm);background:var(--surface2);
  border:1.5px solid var(--border);font-size:13px;color:var(--txt);
  transition:all .18s;appearance:none;-webkit-appearance:none;
}
.form-input:focus,.form-select:focus{background:var(--surface);border-color:var(--border-s);box-shadow:0 0 0 3px rgba(59,130,246,.08)}
.form-input::placeholder{color:var(--txt4)}
.select-wrap{position:relative}
.select-wrap::after{
  content:'';position:absolute;right:10px;top:50%;transform:translateY(-50%);
  width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;
  border-top:5px solid var(--txt4);pointer-events:none;
}

/* ═══ SLIDER ROW ═══ */
.slider-group{display:flex;flex-direction:column;gap:6px}
.slider-top{display:flex;justify-content:space-between;align-items:center}
.slider-label{font-size:11.5px;font-weight:600;color:var(--txt3)}
.slider-val{font-size:12px;font-weight:700;color:var(--txt);background:var(--surface2);border:1px solid var(--border);padding:1px 8px;border-radius:var(--r-full);min-width:30px;text-align:center}
input[type="range"]{-webkit-appearance:none;appearance:none;width:100%;height:5px;border-radius:5px;background:var(--bg3);outline:none;cursor:pointer}
input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;border-radius:50%;background:var(--blue-500);border:2px solid #fff;box-shadow:0 1px 4px rgba(59,130,246,.4);cursor:pointer;transition:transform .18s}
input[type="range"]::-webkit-slider-thumb:hover{transform:scale(1.15)}
input[type="range"]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--blue-500);border:2px solid #fff;cursor:pointer}

/* ═══ TAG INPUT ═══ */
.tag-input-wrap{
  display:flex;flex-wrap:wrap;gap:6px;padding:7px 8px;
  border-radius:var(--r-sm);background:var(--surface2);
  border:1.5px solid var(--border);min-height:38px;
  align-items:center;transition:all .18s;cursor:text;
}
.tag-input-wrap:focus-within{background:var(--surface);border-color:var(--border-s);box-shadow:0 0 0 3px rgba(59,130,246,.08)}
.tag-chip{display:flex;align-items:center;gap:4px;padding:2px 8px 2px 10px;border-radius:var(--r-full);font-size:11.5px;font-weight:500;background:rgba(59,130,246,.1);color:var(--blue-600);border:1px solid rgba(59,130,246,.18);cursor:default}
.tag-chip.weak{background:rgba(239,68,68,.09);color:var(--red-500);border-color:rgba(239,68,68,.18)}
.tag-chip.strong{background:rgba(34,197,94,.09);color:var(--green-500);border-color:rgba(34,197,94,.18)}
.tag-chip-del{width:14px;height:14px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:inherit;opacity:.6;transition:opacity .15s;background:none;border:none;padding:0;font-size:14px;line-height:1}
.tag-chip-del:hover{opacity:1}
.tag-input-inner{border:none;background:transparent;font-size:13px;color:var(--txt);outline:none;min-width:80px;flex:1;height:24px}
.tag-input-inner::placeholder{color:var(--txt4)}

/* ═══ GENERATE BTN ═══ */
.generate-btn{
  width:100%;height:44px;border-radius:var(--r);
  background:linear-gradient(135deg,var(--blue-500),var(--blue-700));
  color:#fff;font-size:14px;font-weight:700;
  display:flex;align-items:center;justify-content:center;gap:9px;
  cursor:pointer;border:none;transition:all .22s;
  box-shadow:var(--shadow-blue);letter-spacing:-.01em;
  font-family:var(--font-display);position:relative;overflow:hidden;
}
.generate-btn::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.06),transparent);pointer-events:none}
.generate-btn:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(59,130,246,.4),0 4px 10px rgba(59,130,246,.25)}
.generate-btn:active{transform:translateY(0)}
.generate-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}
.loading-dots{display:flex;gap:5px;align-items:center}
.loading-dots span{width:7px;height:7px;border-radius:50%;background:#fff;display:block}
.loading-dots span:nth-child(1){animation:loadDot 1.2s .0s ease-in-out infinite}
.loading-dots span:nth-child(2){animation:loadDot 1.2s .2s ease-in-out infinite}
.loading-dots span:nth-child(3){animation:loadDot 1.2s .4s ease-in-out infinite}

/* ═══ VIEW TOGGLE ═══ */
.view-toggle{display:flex;background:var(--surface2);border:1px solid var(--border);border-radius:var(--r-sm);padding:3px;gap:2px;flex-shrink:0}
.view-tab{height:27px;padding:0 10px;border-radius:var(--r-xs);font-size:11.5px;font-weight:500;color:var(--txt3);cursor:pointer;transition:all .18s;display:flex;align-items:center;gap:5px;white-space:nowrap}
.view-tab.active{background:var(--surface);color:var(--txt);box-shadow:var(--shadow-xs)}
.view-tab:not(.active):hover{color:var(--txt2)}
@media(max-width:480px){
  .view-tab span{display:none}
  .view-tab{padding:0 8px}
}

/* ═══ ROUTINE EMPTY STATE ═══ */
.routine-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;text-align:center;gap:12px}
.routine-empty-icon{width:56px;height:56px;border-radius:var(--r-xl);background:var(--surface2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--txt4);margin-bottom:4px}
.routine-empty h3{font-family:var(--font-display);font-size:15px;font-weight:700;color:var(--txt3)}
.routine-empty p{font-size:12.5px;color:var(--txt4);max-width:240px;line-height:1.5}

/* ═══ ROUTINE BLOCKS ═══ */
.day-section{margin-bottom:16px}
.day-label{font-family:var(--font-display);font-size:11.5px;font-weight:700;color:var(--txt3);text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px;display:flex;align-items:center;gap:8px}
.day-label::after{content:'';flex:1;height:1px;background:var(--border)}
.routine-blocks{display:flex;flex-direction:column;gap:7px}
.routine-block{
  display:flex;align-items:stretch;
  border-radius:var(--r-lg);overflow:hidden;
  background:var(--surface2);border:1px solid var(--border);
  animation:blockIn .3s var(--ease) both;
  transition:box-shadow .18s,transform .18s;
}
.routine-block:hover{box-shadow:var(--shadow-sm);transform:translateX(2px)}
.routine-block.completed{opacity:.72}
.routine-block.completed .block-subject{text-decoration:line-through;color:var(--txt4)}
.block-accent{width:4px;flex-shrink:0}
.block-body{flex:1;padding:10px 12px;display:flex;align-items:flex-start;gap:10px;min-width:0;flex-wrap:wrap}
.block-time-col{display:flex;flex-direction:column;gap:1px;flex-shrink:0;min-width:74px}
.block-time{font-size:12.5px;font-weight:700;color:var(--txt);font-family:var(--font-display)}
.block-dur{font-size:10.5px;color:var(--txt4);font-weight:500}
.block-info{flex:1;min-width:0}
.block-subject{font-size:13px;font-weight:700;color:var(--txt);margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.block-note{font-size:11px;color:var(--txt3);line-height:1.4}
.block-meta{display:flex;align-items:center;gap:5px;margin-top:5px;flex-wrap:wrap}
.block-badge{font-size:10px;font-weight:600;padding:2px 7px;border-radius:var(--r-full);display:inline-flex;align-items:center;gap:3px}
.block-badge.study{background:rgba(59,130,246,.09);color:var(--blue-600)}
.block-badge.break{background:rgba(34,197,94,.09);color:var(--green-500)}
.block-badge.revision{background:rgba(168,85,247,.09);color:var(--purple-500)}
.block-badge.practice{background:rgba(245,158,11,.09);color:var(--amber-500)}
.block-badge.high{background:rgba(239,68,68,.09);color:var(--red-500)}
.block-badge.medium{background:rgba(245,158,11,.09);color:var(--amber-500)}
.block-badge.low{background:rgba(34,197,94,.09);color:var(--green-500)}
.block-actions{display:flex;align-items:center;gap:3px;flex-shrink:0;padding:8px 8px 8px 0}
.block-act-btn{width:28px;height:28px;border-radius:var(--r-sm);display:flex;align-items:center;justify-content:center;color:var(--txt4);transition:all .15s;cursor:pointer;background:none;border:none}
.block-act-btn:hover{background:var(--bg3);color:var(--txt)}
.block-act-btn.done-btn.completed{color:var(--green-500)}
.block-act-btn.done-btn:hover{background:rgba(34,197,94,.09);color:var(--green-500)}
.block-act-btn.del-btn:hover{background:rgba(239,68,68,.09);color:var(--red-500)}
.block-act-btn.edit-btn:hover{background:rgba(59,130,246,.09);color:var(--blue-500)}

/* ═══ WEEKLY GRID ═══ */
.weekly-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;overflow-x:auto}
@media(max-width:700px){.weekly-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:480px){.weekly-grid{grid-template-columns:repeat(3,1fr)}}
.week-col-header{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--txt4);text-align:center;padding-bottom:7px;border-bottom:1px solid var(--border);margin-bottom:7px}
.week-col{display:flex;flex-direction:column;gap:4px}
.week-slot{
  border-radius:var(--r-sm);padding:6px 7px;
  font-size:10px;font-weight:600;text-align:center;
  border:1px solid transparent;cursor:pointer;
  transition:all .18s;line-height:1.3;
}
.week-slot:hover{transform:scale(1.03);box-shadow:var(--shadow-xs)}
.week-slot.study{background:rgba(59,130,246,.1);color:var(--blue-600);border-color:rgba(59,130,246,.15)}
.week-slot.break{background:rgba(34,197,94,.08);color:var(--green-500);border-color:rgba(34,197,94,.12)}
.week-slot.revision{background:rgba(168,85,247,.08);color:var(--purple-500);border-color:rgba(168,85,247,.12)}
.week-slot.practice{background:rgba(245,158,11,.08);color:var(--amber-500);border-color:rgba(245,158,11,.12)}
.week-slot.rest{background:var(--surface2);color:var(--txt4);border-color:var(--border)}

/* ═══ TIMELINE ═══ */
.timeline-wrap{position:relative;padding-left:54px}
.timeline-line{position:absolute;left:44px;top:0;bottom:0;width:1px;background:var(--border)}
.timeline-blocks{display:flex;flex-direction:column;gap:4px}
.tl-block{
  border-left:3px solid;border-radius:0 var(--r-sm) var(--r-sm) 0;
  padding:7px 10px;background:var(--surface2);
  display:flex;align-items:center;gap:10px;
  transition:all .18s;cursor:pointer;position:relative;
}
.tl-block:hover{background:var(--surface);box-shadow:var(--shadow-xs)}
.tl-block-time{font-size:10.5px;font-weight:700;color:var(--txt3);min-width:52px;flex-shrink:0}
.tl-block-subject{font-size:12.5px;font-weight:600;color:var(--txt);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-block-dur{font-size:10.5px;color:var(--txt4);flex-shrink:0}
.tl-hour-row{position:relative;margin-bottom:4px}
.tl-hour-label{position:absolute;left:-54px;width:44px;text-align:right;font-size:10px;font-weight:600;color:var(--txt4);top:4px}

/* ═══ INSIGHTS ═══ */
.insight-list{display:flex;flex-direction:column;gap:8px}
.insight-item{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:var(--r);background:var(--surface2);border:1px solid var(--border);animation:insightPop .35s var(--ease) both}
.insight-icon{width:28px;height:28px;border-radius:var(--r-sm);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.insight-text{flex:1;min-width:0}
.insight-msg{font-size:12.5px;font-weight:600;color:var(--txt);line-height:1.35}
.insight-detail{font-size:11px;color:var(--txt4);margin-top:2px;line-height:1.4}
.insight-item.info .insight-icon{background:rgba(59,130,246,.1);color:var(--blue-500)}
.insight-item.warn .insight-icon{background:rgba(245,158,11,.1);color:var(--amber-500)}
.insight-item.danger .insight-icon{background:rgba(239,68,68,.1);color:var(--red-500)}
.insight-item.success .insight-icon{background:rgba(34,197,94,.1);color:var(--green-500)}

/* ═══ TEMPLATES ═══ */
.template-list{display:flex;flex-direction:column;gap:6px}
.template-item{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:var(--r);background:var(--surface2);border:1px solid var(--border);cursor:pointer;transition:all .18s}
.template-item:hover{background:var(--surface);border-color:var(--border-m);box-shadow:var(--shadow-xs);transform:translateX(2px)}
.template-icon{width:28px;height:28px;border-radius:var(--r-sm);background:rgba(59,130,246,.1);color:var(--blue-500);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.template-info{flex:1;min-width:0}
.template-name{font-size:12px;font-weight:600;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.template-meta{font-size:10.5px;color:var(--txt4)}
.template-action-btn{width:26px;height:26px;border-radius:var(--r-sm);display:flex;align-items:center;justify-content:center;color:var(--txt4);transition:all .15s;flex-shrink:0}
.template-action-btn:hover{background:var(--bg3);color:var(--txt)}
.template-action-btn.del:hover{background:rgba(239,68,68,.09);color:var(--red-500)}

/* ═══ EMPTY TEMPLATE STATE ═══ */
.empty-templates{padding:24px 16px;text-align:center;color:var(--txt4);font-size:12.5px;display:flex;flex-direction:column;align-items:center;gap:8px}
.empty-templates svg{opacity:.3}

/* ═══ PROGRESS RING ═══ */
.progress-ring-wrap{display:flex;flex-direction:column;align-items:center;padding:16px;gap:6px}
.progress-ring{position:relative;width:96px;height:96px}
.progress-ring svg{width:96px;height:96px;transform:rotate(-90deg)}
.ring-bg{fill:none;stroke:var(--bg3);stroke-width:7}
.ring-fill{fill:none;stroke-width:7;stroke-linecap:round;transition:stroke-dashoffset 1.4s var(--ease-out)}
.ring-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring-pct{font-family:var(--font-display);font-size:20px;font-weight:700;letter-spacing:-.04em;color:var(--txt);line-height:1}
.ring-lbl{font-size:9px;color:var(--txt4);font-weight:500}
.ring-legend-wrap{display:flex;flex-direction:column;gap:4px;width:100%}
.ring-legend-row{display:flex;align-items:center;gap:7px;padding:3px 0}
.ring-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}
.ring-legend-label{font-size:11.5px;color:var(--txt3);flex:1}
.ring-legend-val{font-size:11.5px;font-weight:700;color:var(--txt)}

/* ═══ SUBJECT PERF ═══ */
.subj-perf-list{display:flex;flex-direction:column;gap:8px}
.subj-perf-row{display:flex;flex-direction:column;gap:3px}
.subj-perf-top{display:flex;justify-content:space-between;align-items:center}
.subj-perf-name{font-size:12px;font-weight:600;color:var(--txt2)}
.subj-perf-pct{font-size:11px;font-weight:700;color:var(--txt3)}
.subj-bar{height:5px;border-radius:5px;background:var(--bg3);overflow:hidden}
.subj-bar-fill{height:100%;border-radius:5px;transition:width 1.2s var(--ease-out)}

/* ═══ SCHEDULE SUMMARY ═══ */
.schedule-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:4px 0}
.sched-item{background:var(--surface2);border:1px solid var(--border);border-radius:var(--r);padding:9px 12px;display:flex;align-items:center;gap:8px}
.sched-item-icon{width:28px;height:28px;border-radius:var(--r-sm);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sched-item-label{font-size:10.5px;color:var(--txt4);font-weight:500}
.sched-item-val{font-size:12.5px;font-weight:700;color:var(--txt);line-height:1.2}

/* ═══ CONSISTENCY TRACKER ═══ */
.consist-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.consist-cell{aspect-ratio:1;border-radius:3px;cursor:pointer;transition:transform .15s}
.consist-cell:hover{transform:scale(1.15)}
.consist-cell.empty{background:var(--bg3)}
.consist-cell.done{background:var(--green-500)}
.consist-cell.missed{background:rgba(239,68,68,.3)}
.consist-cell.rest{background:rgba(245,158,11,.25)}
.consist-cell.partial{background:rgba(59,130,246,.3)}

/* ═══ FOCUS SESSION CARD ═══ */
.focus-session-card{
  background:linear-gradient(135deg,rgba(59,130,246,.05),rgba(168,85,247,.04));
  border:1px solid var(--border-s);border-radius:var(--r-lg);
  padding:14px;display:flex;flex-direction:column;gap:10px;
}
.focus-timer{font-family:var(--font-display);font-size:32px;font-weight:800;letter-spacing:-.06em;color:var(--txt);text-align:center;line-height:1}
.focus-timer-label{font-size:11px;color:var(--txt4);text-align:center;margin-top:2px}
.focus-controls{display:flex;gap:8px;justify-content:center}
.focus-ctrl-btn{height:34px;padding:0 16px;border-radius:var(--r-full);font-size:12.5px;font-weight:600;cursor:pointer;transition:all .18s;display:flex;align-items:center;gap:6px;border:none}
.focus-ctrl-btn.start{background:var(--blue-500);color:#fff}
.focus-ctrl-btn.start:hover{background:var(--blue-600);transform:translateY(-1px)}
.focus-ctrl-btn.pause{background:var(--amber-500);color:#fff}
.focus-ctrl-btn.pause:hover{background:#D97706;transform:translateY(-1px)}
.focus-ctrl-btn.reset{background:var(--surface2);border:1px solid var(--border);color:var(--txt3)}
.focus-ctrl-btn.reset:hover{background:var(--surface3);color:var(--txt)}

/* ═══ REMINDERS ═══ */
.reminder-row{display:flex;align-items:center;gap:10px;padding:9px 12px;background:var(--surface2);border:1px solid var(--border);border-radius:var(--r);transition:all .18s}
.reminder-row:hover{background:var(--surface);border-color:var(--border-m)}
.reminder-time-badge{font-size:11px;font-weight:700;color:var(--blue-600);background:rgba(59,130,246,.09);padding:2px 8px;border-radius:var(--r-full);flex-shrink:0}
.reminder-label{font-size:12.5px;font-weight:500;color:var(--txt);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reminder-toggle{width:36px;height:20px;border-radius:10px;background:var(--bg3);cursor:pointer;position:relative;transition:background .2s;flex-shrink:0;border:none}
.reminder-toggle.on{background:var(--green-500)}
.reminder-toggle::after{content:'';position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;top:2px;left:2px;transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.reminder-toggle.on::after{transform:translateX(16px)}

/* ═══ AI PLACEHOLDER ═══ */
.ai-placeholder{
  background:linear-gradient(135deg,rgba(168,85,247,.06),rgba(99,102,241,.04));
  border:1px dashed rgba(168,85,247,.25);border-radius:var(--r-lg);
  padding:18px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;
}
.ai-placeholder-badge{font-size:10px;font-weight:700;color:#fff;background:linear-gradient(135deg,#A855F7,#6366F1);padding:2px 10px;border-radius:var(--r-full);letter-spacing:.04em}
.ai-placeholder h4{font-size:13px;font-weight:700;color:var(--txt)}
.ai-placeholder p{font-size:11.5px;color:var(--txt4);max-width:220px;line-height:1.5}

/* ═══ BTN SECONDARY ═══ */
.btn-sec{height:32px;padding:0 12px;border-radius:var(--r-sm);background:var(--surface2);border:1px solid var(--border);font-size:12px;font-weight:600;color:var(--txt3);display:flex;align-items:center;gap:6px;cursor:pointer;transition:all .18s;flex-shrink:0}
.btn-sec:hover{background:var(--surface3);color:var(--txt)}
.btn-sec.blue{background:rgba(59,130,246,.09);border-color:var(--border-s);color:var(--blue-600)}
.btn-sec.blue:hover{background:rgba(59,130,246,.14)}
.btn-sec.red:hover{background:rgba(239,68,68,.09);border-color:rgba(239,68,68,.18);color:var(--red-500)}

/* ═══ MODAL ═══ */
.modal-overlay{position:fixed;inset:0;z-index:500;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.modal-overlay.open{opacity:1;visibility:visible}
.modal{background:var(--surface);border-radius:var(--r-xl);width:100%;max-width:440px;box-shadow:var(--shadow-xl);border:1px solid var(--border);transform:scale(.96) translateY(10px);transition:transform .28s var(--ease-out);overflow:hidden}
.modal-overlay.open .modal{transform:scale(1) translateY(0)}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border)}
.modal-title{font-family:var(--font-display);font-size:14px;font-weight:700;color:var(--txt)}
.modal-close-btn{width:28px;height:28px;border-radius:var(--r-sm);background:var(--surface2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--txt3);cursor:pointer;transition:all .18s}
.modal-close-btn:hover{background:var(--surface3);color:var(--txt)}
.modal-body{padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.modal-footer{padding:12px 20px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px}
.btn-blue{height:36px;padding:0 16px;border-radius:var(--r-sm);background:var(--blue-500);color:#fff;font-size:13px;font-weight:600;display:flex;align-items:center;gap:6px;cursor:pointer;border:none;transition:all .18s}
.btn-blue:hover{background:var(--blue-600);transform:translateY(-1px);box-shadow:var(--shadow-blue)}

/* ═══ SKELETON ═══ */
.skeleton{background:linear-gradient(90deg,var(--surface2) 25%,var(--surface3) 50%,var(--surface2) 75%);background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:var(--r-sm)}
.skeleton-block{height:68px;border-radius:var(--r-lg);margin-bottom:8px}

/* ═══ FIREBASE SYNC INDICATOR ═══ */
.sync-dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:5px}
.sync-dot.synced{background:var(--green-500)}
.sync-dot.pending{background:var(--amber-500);animation:pulse 1.5s infinite}
.sync-dot.offline{background:var(--red-500)}

/* ═══ UTIL ═══ */
.flex-between{display:flex;align-items:center;justify-content:space-between}
.flex-center{display:flex;align-items:center}
.gap-6{gap:6px}
.gap-8{gap:8px}
.ml-auto{margin-left:auto}
.mt-4{margin-top:4px}
.mt-8{margin-top:8px}
.mt-12{margin-top:12px}
.text-xs{font-size:11px}
.text-sm{font-size:12.5px}
.text-muted{color:var(--txt4)}
.fw-600{font-weight:600}
.p-14{padding:14px}
.p-16{padding:16px}
.hidden{display:none !important}

/* ═══ ERROR STATE ═══ */
.error-state{display:flex;flex-direction:column;align-items:center;padding:32px 16px;text-align:center;gap:10px;color:var(--red-500)}
.error-state h3{font-size:14px;font-weight:700}
.error-state p{font-size:12.5px;color:var(--txt4)}
.reminder-add-row {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px 0 8px;
  flex-wrap: wrap;
}

.reminder-time-input {
  width: 92px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border, #ccc);
  border-radius: 6px;
  font-size: 12.5px;
}

.reminder-label-input {
  flex: 1;
  min-width: 120px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border, #ccc);
  border-radius: 6px;
  font-size: 12.5px;
}

.reminder-confirm-btn {
  height: 32px;
  padding: 0 12px;
  border: none;
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
}

.reminder-cancel-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border, #ccc);
  border-radius: 6px;
  font-size: 12.5px;
  background: transparent;
  cursor: pointer;
}