/* דף מערכת השעות של כיתה (screen 2 מ-Stitch). נטען מעל site.css. הצבע לפי data-theme על ה-html. */
html[data-theme="pink"] { --c: #E2457F; --c-dark: #C2185B; --c-soft: #FDE4EE; --c-grad: linear-gradient(120deg, #E2457F 0%, #C2185B 100%); }
html[data-theme="blue"] { --c: #2F6FE4; --c-dark: #1F4FB0; --c-soft: #DFEAFF; --c-grad: linear-gradient(120deg, #2F6FE4 0%, #1F4FB0 100%); }

.chero { margin-top: 6px; background: var(--c-grad); color: #fff; border-radius: var(--r-lg); padding: 26px 28px 24px; position: relative; box-shadow: var(--sh-md); }
.chero .back { position: absolute; left: 22px; top: 22px; background: rgba(255,255,255,.2); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.chero .back .ms { font-size: 18px; }
.chero h1 { color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -.5px; margin: 6px 0 4px; }
.chero h1 small { font-weight: 500; font-size: 20px; opacity: .9; }
.chero p { margin: 0; font-size: 14px; opacity: .95; }
.seg { display: inline-flex; background: rgba(255,255,255,.22); border-radius: 999px; padding: 4px; margin-top: 16px; }
.seg button { border: 0; background: transparent; color: #fff; padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--c-dark); }

.days { position: sticky; top: 60px; z-index: 15; margin-top: 14px; background: var(--white); border-radius: var(--r); box-shadow: var(--sh); padding: 8px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.days button { border: 0; background: transparent; border-radius: 12px; padding: 8px 2px 7px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); cursor: pointer; position: relative; }
.days button .l { font-size: 16px; font-weight: 700; line-height: 1.1; }
.days button .e { font-size: 12px; color: var(--outline); font-weight: 500; }
.days button.on { background: var(--c); color: #fff; }
.days button.on .e { color: rgba(255,255,255,.9); }
.days button.today .l::after { content: "היום"; font-size: 9px; font-weight: 700; background: var(--c-soft); color: var(--c-dark); padding: 1px 6px; border-radius: 999px; margin-inline-start: 4px; vertical-align: middle; }
.days button.on.today .l::after { background: rgba(255,255,255,.25); color: #fff; }

.summary { margin-top: 14px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.summary .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--c-soft); color: var(--c-dark); display: grid; place-items: center; }
.summary h2 { font-size: 19px; font-weight: 700; }
.summary .meta { font-size: 13px; color: var(--outline); margin-top: 2px; }
.summary .end { text-align: center; background: var(--c-soft); border-radius: 12px; padding: 8px 16px; }
.summary .end .t { font-size: 26px; font-weight: 800; color: var(--c-dark); line-height: 1; }
.summary .end .k { font-size: 11px; color: var(--c-dark); font-weight: 600; margin-top: 3px; }

.status { margin-top: 10px; padding: 10px 16px; border-radius: 999px; background: var(--c-soft); color: var(--c-dark); font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; animation: pulse 1.8s infinite; }
.status .nx { color: var(--body); font-weight: 500; margin-inline-start: auto; font-size: 13px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,0,0,.15); } 100% { box-shadow: 0 0 0 9px rgba(0,0,0,0); } }

.timeline { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.lesson { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--white); border-radius: var(--r); box-shadow: var(--sh); border: 2px solid transparent; }
.lesson .num { width: 34px; height: 34px; border-radius: 50%; background: var(--low); color: var(--outline); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.lesson .subj { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lesson .who { font-size: 13px; color: var(--outline); margin-top: 2px; }
.lesson .time { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; direction: ltr; }
.lesson .tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--low); color: var(--outline); }
.lesson.past { opacity: .6; }
.lesson.now { border-color: var(--c); }
.lesson.now .num { background: var(--c); color: #fff; }
.lesson.now .tag { background: var(--c); color: #fff; }
.lesson .tag.dbl { background: var(--c-soft); color: var(--c-dark); }
.brk { display: flex; align-items: center; gap: 8px; padding: 4px 12px; color: var(--outline); font-size: 13px; }
.brk::after { content: ""; flex: 1; border-top: 2px dashed var(--highest); }
.brk.now { color: var(--c-dark); font-weight: 700; }
.homecard { margin-top: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: var(--r); box-shadow: var(--sh); }
.homecard .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--c-soft); color: var(--c-dark); display: grid; place-items: center; }
.homecard b { display: block; font-size: 16px; color: var(--ink); }
.homecard small { font-size: 12px; color: var(--outline); }
.homecard .ms.end { margin-inline-start: auto; color: var(--c); }
.tomorrow { margin-top: 10px; padding: 10px 16px; font-size: 13px; color: var(--body); background: var(--low); border-radius: 999px; display: flex; align-items: center; gap: 8px; }
.tomorrow b { color: var(--ink); }
.tomorrow a { margin-inline-start: auto; font-weight: 600; font-size: 12px; white-space: nowrap; }

.weekcard { margin-top: 22px; padding: 18px 18px 14px; }
.weekcard .h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.weekcard h3 { font-size: 17px; display: flex; align-items: center; gap: 6px; }
.weekcard h3 .ms { color: var(--c); }
.week { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.week table { border-collapse: separate; border-spacing: 5px; min-width: 620px; width: 100%; }
.week th, .week td { border-radius: 10px; }
.week thead th { background: var(--low); color: var(--ink); font-weight: 700; font-size: 13px; padding: 8px 4px; }
.week thead th small { display: block; font-weight: 500; color: var(--outline); font-size: 11px; }
.week thead th.today { background: var(--c); color: #fff; }
.week thead th.today small { color: rgba(255,255,255,.9); }
.week td { background: var(--low); padding: 7px 6px; text-align: center; font-size: 12.5px; vertical-align: middle; min-width: 90px; }
.week td b { display: block; color: var(--ink); font-weight: 600; }
.week td span { color: var(--outline); font-size: 11px; }
.week td.today { background: var(--c-soft); }
.week td.today b { color: var(--c-dark); }
.week td.empty { background: transparent; color: var(--line); }
.week tr.brkrow td { background: transparent; padding: 0 6px; font-size: 11px; color: var(--outline); text-align: right; border-top: 1px dashed var(--highest); border-radius: 0; }
.week tr.endrow td { background: var(--white); border: 1px solid var(--highest); font-weight: 700; color: var(--c-dark); }
.hint { font-size: 12px; color: var(--outline); text-align: center; margin: 8px 0 0; }
@media (min-width: 700px) { .hint { display: none; } }

.verified { margin-top: 14px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.verified .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.verified b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.verified p { margin: 0; font-size: 13px; }
.verified small { color: var(--outline); font-size: 12px; }
.acts { margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acts .share { background: var(--c); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: var(--sh-md); }
.acts a { font-size: 13px; font-weight: 600; color: var(--c-dark); display: inline-flex; align-items: center; gap: 4px; }
.acts a .ms { font-size: 18px; }
.acts .sp { flex: 1; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; }

@media (max-width: 640px) {
  .chero { padding: 20px 18px; }
  .chero .back { position: static; margin-bottom: 10px; }
  .chero h1 { font-size: 26px; }
  .chero h1 small { display: block; font-size: 15px; }
  .days button .l { font-size: 15px; }
  .days button.today .l::after { display: none; }
  .days button.today .e::before { content: "היום · "; color: var(--c-dark); font-weight: 700; }
  .days button.on.today .e::before { color: #fff; }
  .summary { grid-template-columns: 1fr auto; }
  .summary .ic { display: none; }
  .lesson { grid-template-columns: 30px 1fr auto; gap: 10px; padding: 11px 12px; }
  .lesson .subj { font-size: 16px; }
  .status .nx { display: none; }
}
@media print { .days, .seg, .acts, .status { display: none !important; } .chero { color: #000; background: none; border: 1px solid #ccc; } .chero h1, .chero p, .chero .back { color: #000; } }
