:root{
  --bg:#f8f5ff;
  --card:#ffffff;
  --violet:#7a55c8;
  --violet-dark:#553395;
  --lav:#e4d8fa;
  --lav-soft:#f3edfe;
  --text:#3a2f52;
  --muted:#7b6f95;
  --line:#e9e1f9;
  --shadow:0 10px 30px rgba(122,85,200,.10);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--text);
  font:17px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  -webkit-text-size-adjust:100%;
  background-image:radial-gradient(900px 420px at 10% -12%,#efe4ff 0%,rgba(239,228,255,0) 62%),
                   radial-gradient(760px 380px at 94% -6%,#f8ecff 0%,rgba(248,236,255,0) 66%);
  background-attachment:fixed;
}
h1,h2,h3{margin:0;line-height:1.2}
button,input,select{font:inherit;color:inherit}
[hidden]{display:none !important}

/* шапка */
.hero{padding:26px 18px 6px}
.hero__inner{max-width:980px;margin:0 auto;display:grid;grid-template-columns:1fr;gap:18px;align-items:center}
.hero__kicker{margin:0 0 8px;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--violet);font-weight:700}
.hero__title{margin:0;font-size:clamp(32px,8vw,54px);letter-spacing:-.5px;color:var(--violet-dark)}
.hero__sub{margin:12px 0 0;max-width:36em;color:var(--muted);font-size:16px}
.hero__chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;padding:0}
.hero__chips li{background:var(--card);border:1px solid var(--line);border-radius:999px;padding:7px 14px;font-size:14px;color:var(--muted)}
.hero__art{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:10px;box-shadow:var(--shadow)}
.hero__art img{display:block;width:100%;height:auto;border-radius:16px}

.wrap{max-width:980px;margin:0 auto;padding:16px 18px 64px}

/* дни недели */
.days{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 14px;scrollbar-width:none}
.days::-webkit-scrollbar{display:none}
.day{
  flex:0 0 auto;min-width:60px;min-height:50px;padding:8px 14px;border-radius:14px;
  border:1px solid var(--line);background:var(--card);color:var(--muted);cursor:pointer;
  font-weight:600;transition:all .18s ease;
}
.day:hover{border-color:var(--violet);color:var(--violet)}
.day[aria-selected="true"]{background:var(--violet);border-color:var(--violet);color:#fff;box-shadow:0 8px 18px rgba(122,85,200,.25)}

/* карточка дня */
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}
.panel__head{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;justify-content:space-between}
.panel__title{font-size:24px;color:var(--violet-dark)}
.panel__meta{margin:6px 0 0;color:var(--muted);font-size:14.5px}
.panel__tools{display:flex;align-items:center;gap:8px}
.badge{background:var(--lav-soft);color:var(--violet);border-radius:999px;padding:7px 13px;font-size:14px;font-weight:600;white-space:nowrap}
.icon-btn{width:46px;height:46px;border-radius:14px;border:1px solid var(--line);background:var(--card);cursor:pointer;font-size:18px}
.now{margin:14px 0 0;background:var(--lav-soft);border-radius:14px;padding:12px 14px;color:var(--violet-dark);font-weight:600;font-size:15.5px}

/* лента занятий */
.timeline{list-style:none;margin:16px 0 0;padding:0}
.tl__row{display:flex;gap:10px;align-items:center;padding:7px 0;border-bottom:1px dashed var(--line)}
.tl__row:last-child{border-bottom:0}
.tl__time{flex:0 0 58px;text-align:right}
.tl__hour{font-weight:700;color:var(--violet-dark);font-variant-numeric:tabular-nums;font-size:16px}
.card{
  flex:1 1 auto;min-height:62px;display:flex;align-items:center;gap:12px;text-align:left;
  background:var(--lav-soft);border:1px solid var(--line);border-radius:16px;padding:10px 14px;cursor:pointer;
  transition:all .18s ease;
}
.card:hover{border-color:var(--violet);transform:translateY(-1px)}
.card__icon{flex:0 0 auto;width:44px;height:44px;display:grid;place-items:center;font-size:22px;background:var(--card);border-radius:13px;box-shadow:0 2px 8px rgba(122,85,200,.10)}
.card__body{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 auto}
.card__title{font-weight:600;font-size:17px;overflow-wrap:anywhere}
.card__tag{align-self:flex-start;font-size:12px;font-weight:700;color:var(--violet);background:var(--card);border:1px solid var(--lav);border-radius:999px;padding:2px 9px;text-transform:uppercase;letter-spacing:.06em}
.card__pencil{flex:0 0 auto;font-size:16px;color:var(--muted)}
.card--done{opacity:.6}
.card--done .card__title{text-decoration:line-through}
.tick{flex:0 0 46px;width:46px;height:46px;border-radius:14px;border:1px solid var(--line);background:var(--card);color:var(--muted);font-size:19px;cursor:pointer}
.tick--on{background:var(--violet);border-color:var(--violet);color:#fff}
.empty{margin:16px 0 0;padding:18px;border:1px dashed var(--lav);border-radius:16px;color:var(--muted);text-align:center}

/* форма занятия */
.editor{margin-top:16px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}
.editor--editing{border-color:var(--violet);box-shadow:0 10px 30px rgba(122,85,200,.18)}
.editor__title{font-size:19px;color:var(--violet-dark)}
.editor__grid{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}
.editor__grid .field--wide{grid-column:1 / -1}
.editor__grid .field--icon{max-width:160px}
.editor__grid .field--time{max-width:180px}
.field{display:flex;flex-direction:column;gap:6px}
.field__label{font-size:14px;color:var(--muted);font-weight:600}
.field__input{min-height:50px;border-radius:14px;border:1px solid var(--line);background:var(--bg);padding:10px 14px;width:100%}
.field__input:focus{outline:2px solid var(--violet);outline-offset:1px;background:var(--card)}
.field--icon .field__input{font-size:22px}
.field--wide{min-width:0}
.editor__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.btn{min-height:50px;padding:12px 22px;border-radius:14px;border:1px solid transparent;font-weight:600;cursor:pointer;transition:all .18s ease}
.btn--primary{background:var(--violet);color:#fff;box-shadow:0 8px 18px rgba(122,85,200,.25)}
.btn--primary:hover{background:var(--violet-dark)}
.btn--danger{background:#fff;border-color:#f2cccc;color:#b23b3b}
.btn--ghost{background:var(--card);border-color:var(--line);color:var(--muted)}
.btn--ghost:hover{border-color:var(--violet);color:var(--violet)}
.editor__note{margin:12px 0 0;font-size:14px;color:var(--muted)}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.hint{margin:18px 0 0;font-size:14px;color:var(--muted);text-align:center}
.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:var(--violet-dark);color:#fff;padding:13px 20px;border-radius:14px;box-shadow:0 10px 26px rgba(60,35,110,.3);z-index:50;max-width:92vw;text-align:center}

@media (min-width:720px){
  .hero__inner{grid-template-columns:1.1fr .9fr;gap:28px}
  .editor__grid{grid-template-columns:150px 1fr 92px}
  .timeline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 22px}
}
@media (max-width:420px){
  .editor__grid .field--icon{max-width:none}
  .tl__time{flex-basis:52px}
  .tl__hour{font-size:15px}
  .card__icon{width:38px;height:38px;font-size:19px}
  .editor__actions .btn{flex:1 1 100%}
}
/* перенос плана на другое устройство */
.transfer{margin-top:18px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}
.transfer__title{font-size:19px;color:var(--violet-dark)}
.transfer__text{margin:8px 0 0;color:var(--muted);font-size:15px}
.transfer__buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
@media (max-width:420px){
  .transfer__buttons{flex-direction:column;align-items:stretch}
  .transfer__buttons .btn{width:100%}
}

@media print{
  .hero__art,.days,.editor,.actions,.hint,.toast,.tick,.card__pencil{display:none !important}
  body{background:#fff}
  .panel{box-shadow:none;border:1px solid #ddd}
  .timeline{display:block}
}

/* полоска прогресса дня */
.progress{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 14px}
.progress__track{flex:1 1 180px;min-width:140px;height:10px;border-radius:999px;background:var(--lav-soft);border:1px solid var(--line);overflow:hidden}
.progress__fill{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#a98be8,#7a55c8);transition:width .35s ease}
.progress--full .progress__fill{background:linear-gradient(90deg,#8fd0b5,#4fae86)}
.progress__text{font-size:14px;color:var(--muted);font-weight:600}

/* неделя целиком */
.week{margin-top:28px}
.week__title{font-size:20px;color:var(--violet-dark)}
.week__hint{margin:6px 0 0;font-size:14px;color:var(--muted)}
.week__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:12px;margin-top:14px}
.wday{
  display:block;width:100%;text-align:left;min-width:0;
  background:var(--card);border:1px solid var(--line);border-radius:16px;
  padding:12px;box-shadow:0 6px 18px rgba(122,85,200,.06);cursor:pointer;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.wday:hover{border-color:#cdb8f0;box-shadow:0 8px 22px rgba(122,85,200,.12)}
.wday:active{transform:scale(.99)}
.wday--cur{border-color:var(--violet);background:var(--lav-soft)}
.wday__head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
.wday__name{font-size:15px;font-weight:700;color:var(--violet-dark)}
.wday__count{font-size:12px;color:var(--muted);white-space:nowrap}
.wday__list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.wday__item{display:flex;align-items:flex-start;gap:6px;font-size:14px;line-height:1.3}
.wday__time{flex:0 0 auto;font-size:13px;font-weight:700;color:var(--violet);font-variant-numeric:tabular-nums}
.wday__dot{flex:0 0 auto;font-size:14px}
.wday__title{overflow-wrap:anywhere}
.wday__item--done .wday__title{text-decoration:line-through;color:var(--muted)}

@media (min-width:720px){
  .week__grid{grid-template-columns:repeat(auto-fill,minmax(236px,1fr))}
  .wday__name{font-size:16px}
  .wday__title{font-size:15px}
}

/* финальная полировка недельного обзора */
.wday:hover{transform:none}
.wday__title{overflow-wrap:anywhere}
.wday__item{font-size:13.5px}
@media (max-width:420px){
  .week__grid{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:10px}
  .wday{padding:10px;border-radius:14px}
  .wday__name{font-size:14px}
  .wday__item{font-size:13px;gap:5px}
  .wday__time{font-size:12.5px}
}

/* ——— котики-стикеры на общем фоне ——— */
body{position:relative}
body::before{
  content:"";
  position:fixed;inset:0;z-index:0;pointer-events:none;
  mix-blend-mode:multiply;opacity:.12;
  background-image:url("stickers/kitten.jpg"),
                   url("generated/932fb943f61ff7020b8bb61ff3a480ba.jpg"),
                   url("generated/d86c356a261af034fd0e3af139e8cfba.jpg");
  background-repeat:repeat,repeat,repeat;
  background-size:150px 150px,120px 120px,96px 96px;
  background-position:20px 30px,74px 128px,10px 240px;
}
body>*{position:relative;z-index:1}

/* ——— стикер «распорядок дня на неделю» ——— */
.sticker{
  display:inline-flex;align-items:center;gap:10px;
  background:linear-gradient(135deg,#efe4ff,#fdf3ff);
  border:2px dashed #c9b2f0;border-radius:20px;
  padding:12px 18px;box-shadow:0 8px 20px rgba(122,85,200,.14);
}
.sticker__cat{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 4px 8px rgba(122,85,200,.20))}
.sticker__text{display:flex;flex-direction:column;gap:2px}
.sticker__title{font-size:19px;font-weight:800;color:var(--violet-dark);letter-spacing:.01em}
.sticker__sub{font-size:13.5px;color:var(--muted)}
.sticker--wide{width:100%;justify-content:center;margin-top:20px}
.sticker--wide .sticker__title{font-size:21px}
@media (max-width:420px){
  .sticker{padding:10px 14px;border-radius:16px}
  .sticker__cat{width:34px;height:34px}
  .sticker__title{font-size:17px}
  .sticker__sub{font-size:12.5px}
}

/* ——— сердечки вместо галочек ——— */
.heart{
  flex:0 0 46px;width:46px;height:46px;border-radius:14px;
  border:1px solid #e7c9dc;background:#fff;
  color:#dda3c4;font-size:24px;line-height:1;cursor:pointer;
  display:grid;place-items:center;padding:0;
  transition:transform .15s ease,color .15s ease,background .15s ease,border-color .15s ease;
}
.heart:hover{transform:scale(1.06);border-color:#d98cb6;color:#d97bae}
.heart--on{background:#f7d9e8;border-color:#e9a9c9;color:#d6336c}
.heart--on:hover{background:#f3c9de}
.card__heart{flex:0 0 auto;font-size:19px;line-height:1}
.card--done .card__heart{color:#d6336c}

/* ——— стикеры-котики в шапке ——— */
.hero__art{position:relative}
.hero__stickers{
  position:absolute;left:8px;right:8px;bottom:8px;display:flex;flex-wrap:wrap;
  gap:6px;justify-content:center;pointer-events:none;
}
.hero__sticker{object-fit:contain;filter:drop-shadow(0 4px 8px rgba(122,85,200,.22));width:44px;height:44px;
  font-size:26px;line-height:1;
  background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:50%;
  width:44px;height:44px;display:grid;place-items:center;
  box-shadow:0 4px 12px rgba(122,85,200,.16);
}
@media (max-width:420px){
  .hero__sticker{width:34px;height:34px}
}

/* ——— сердечки в недельном обзоре ——— */
.wday__heart{flex:0 0 auto;font-size:14px;line-height:1.3;color:var(--lav)}
.wday__heart--on{color:#d6336c}


/* ——— котики в заголовках разделов ——— */
.sec-sticker{
  display:inline-block;font-size:22px;line-height:1;margin-right:6px;
  vertical-align:-3px;
}
.week__title,.editor__title,.transfer__title{position:relative}
.week__title::after,.editor__title::after,.transfer__title::after{
  content:"";display:inline-block;width:24px;height:24px;margin-left:8px;vertical-align:-5px;
  background-position:center;background-size:contain;background-repeat:no-repeat;opacity:.95;
}
.week__title::after{background-image:url("stickers/kitten.jpg")}
.editor__title::after{background-image:url("generated/932fb943f61ff7020b8bb61ff3a480ba.jpg")}
.transfer__title::after{background-image:url("generated/d86c356a261af034fd0e3af139e8cfba.jpg")}
.panel__title::after{content:"";display:inline-block;width:23px;height:23px;margin-left:8px;vertical-align:-5px;background:url("stickers/kitten.jpg") center/contain no-repeat;opacity:.95}
.hero__kicker::after{content:"";display:inline-block;width:18px;height:18px;margin-left:7px;vertical-align:-3px;background:url("stickers/kitten.jpg") center/contain no-repeat;opacity:.95}

/* ——— фотка котика сразу после заголовка ——— */
.hero__cat{
  display:block;width:92px;height:92px;object-fit:contain;margin:14px 0 2px;
  filter:drop-shadow(0 8px 16px rgba(122,85,200,.22));
  background:rgba(255,255,255,.92);border:1px solid var(--line);
  border-radius:24px;padding:8px;
}
@media (max-width:420px){.hero__cat{width:74px;height:74px;margin-top:12px;border-radius:20px}}

/* ——— ряд стикеров между разделами ——— */
.sticker-row{
  display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:18px 0 0;opacity:.95;
}
.sticker-row img{width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 3px 6px rgba(122,85,200,.18))}
@media (max-width:420px){.sticker-row img{width:34px;height:34px}}

/* сердечки в недельном обзоре — заметнее */
.wday__heart{flex:0 0 auto;font-size:15px;line-height:1.3;color:#dda3c4}
.wday__heart--on{color:#d6336c}

/* переключатель количества задач в недельном обзоре */
.week__tools{display:flex;align-items:center;gap:10px;margin:12px 0 14px;flex-wrap:wrap}
.week__tools-label{font-size:14px;color:var(--muted)}
.week__tools-select{
  min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--card);
  color:var(--violet-dark);font-weight:700;padding:6px 14px;font-size:16px;
}
.week__more{font-size:13.5px;color:var(--violet);font-weight:700;padding:8px 2px 2px;line-height:1.4}
