/* Teaching-tools platform shell: left sidebar + content, monochrome Molekiu brand. */
.pf-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:2.4rem;align-items:center;padding:2rem 0 3rem}
@media (max-width:860px){.pf-hero{grid-template-columns:1fr}}
.pf-hero h1{font-size:clamp(2.1rem,4.6vw,3.4rem);letter-spacing:-.03em;line-height:1.12}
.pf-hero p.lead{font-size:1.05rem;color:#46474a;margin:1rem 0 1.5rem;max-width:36rem}
.pf-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1rem}
.pf-tile{background:#fff;border-radius:1.15rem;box-shadow:var(--shadow);padding:1.2rem;display:flex;flex-direction:column;gap:.45rem;text-decoration:none;transition:transform .25s var(--ease),box-shadow .25s var(--ease)}
a.pf-tile:hover{transform:translateY(-3px);box-shadow:0 2px 4px #0000000a,0 16px 36px #00000012,0 0 0 1px #00000012}
.pf-tile .pf-ico{width:2.6rem;height:2.6rem;border-radius:.8rem;display:grid;place-items:center;background:#111;color:#fff}
.pf-tile .pf-ico .icon{width:1.2rem;height:1.2rem}
.pf-tile b{font-size:1rem}.pf-tile p{font-size:.84rem;color:var(--muted)}
.pf-tile.locked{opacity:.55}
.pf-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.pf-list li{display:grid;grid-template-columns:auto 1fr auto;gap:.8rem;align-items:center;padding:.65rem .2rem;border-bottom:1px solid var(--line);font-size:.88rem}
.pf-date{min-width:3.4rem;text-align:center;font-weight:700;font-size:.82rem;background:#f3f3f1;border-radius:.6rem;padding:.25rem .4rem}
.pf-swatch{display:inline-block;width:.75rem;height:.75rem;border-radius:50%;background:var(--c);margin-right:.35rem;vertical-align:-.05em}
/* calendar */
.cal-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:1.2rem;align-items:start}
@media (max-width:1000px){.cal-layout{grid-template-columns:1fr}}
.cal-head{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;justify-content:space-between;margin-bottom:.9rem}
.cal-head h2{font-size:1.4rem}
.cal-grid{background:#fff;border-radius:1.1rem;box-shadow:var(--shadow);overflow:hidden}
.cal-dow{display:grid;grid-template-columns:repeat(7,1fr);font-size:.75rem;color:var(--muted);text-align:center;padding:.5rem 0;border-bottom:1px solid var(--line)}
.cal-week{position:relative;border-bottom:1px solid var(--line)}
.cal-week:last-child{border-bottom:0}
.cal-days{display:grid;grid-template-columns:repeat(7,1fr);min-height:118px}
.cal-day{border-right:1px solid #efefed;padding:.35rem .35rem .4rem;display:flex;flex-direction:column;gap:.2rem;min-width:0}
.cal-day:last-child{border-right:0}
.cal-day.other{background:#fafaf9;color:#aaa}
.cal-num{font-size:.78rem;font-weight:600;width:1.6rem;height:1.6rem;display:grid;place-items:center;border-radius:50%}
.cal-day.today .cal-num{background:#111;color:#fff}
.cal-spans{display:grid;grid-template-columns:repeat(7,1fr);gap:2px 0;padding:0 2px 4px;margin-top:-2px}
.cal-chip{display:block;font-size:.72rem;line-height:1.3;padding:.15rem .4rem;border-radius:.35rem;background:color-mix(in srgb,var(--c) 14%,#fff);border-left:3px solid var(--c);color:#222;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;border-top:0;border-right:0;border-bottom:0;cursor:pointer;width:100%;font-family:inherit;text-decoration:none}
.cal-chip.hub{border-left-style:dashed;color:#555}
.cal-chip:hover{background:color-mix(in srgb,var(--c) 24%,#fff)}
.cal-side .panel-box{margin-bottom:1rem}
.cal-toggle{display:flex;align-items:center;gap:.5rem;font-size:.86rem;padding:.35rem 0;text-decoration:none}
.cal-toggle .box{width:1rem;height:1rem;border-radius:.3rem;border:2px solid var(--c);background:var(--c);flex-shrink:0}
.cal-toggle.off .box{background:transparent}
.cal-toggle.off{color:#999}
dialog.pf-dialog{border:0;border-radius:1.2rem;padding:1.4rem;max-width:520px;width:calc(100% - 2rem);box-shadow:0 30px 80px #0004}
dialog.pf-dialog::backdrop{background:#0006}
.pf-dialog h2{font-size:1.2rem;margin-bottom:1rem}
.pf-row2{display:grid;grid-template-columns:1fr 1fr;gap:.2rem .9rem}
/* booking */
.bk-wrap{background:#fff;border-radius:1.1rem;box-shadow:var(--shadow);overflow-x:auto}
.bk-table{border-collapse:separate;border-spacing:0;min-width:900px;width:100%;font-size:.78rem}
.bk-table th{position:sticky;top:0;background:#fff;font-weight:600;color:var(--muted);padding:.5rem .2rem;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
.bk-table th.bk-room,.bk-table td.bk-room{position:sticky;left:0;background:#fff;z-index:2;min-width:150px;padding:.6rem .8rem;border-right:1px solid var(--line)}
.bk-table td{height:46px;border-bottom:1px solid #efefed;padding:2px 1px}
.bk-cell{width:100%;height:100%;border:0;border-radius:.35rem;background:#f4f4f2;cursor:pointer;transition:background .12s}
.bk-cell:hover{background:#e3f0e8}
.bk-cell.taken{background:#141414;color:#fff;cursor:default;font-size:.68rem;padding:0 .3rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}
.bk-cell.blocked{background:repeating-linear-gradient(45deg,#d8d8d8 0 6px,#ececea 6px 12px);color:#333}
.bk-cell.past,.bk-cell.closed{background:#fafaf9;cursor:not-allowed}
.bk-cell.mine{background:#2f6f4f}
.bk-legend{display:flex;gap:1rem;flex-wrap:wrap;font-size:.78rem;color:var(--muted);margin:.7rem 0}
.bk-legend i{display:inline-block;width:.9rem;height:.9rem;border-radius:.25rem;vertical-align:-.15em;margin-right:.3rem}
/* AI tools */
.ai-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:1.2rem;align-items:start}
@media (max-width:960px){.ai-layout{grid-template-columns:1fr}}
.ai-result{display:flex;flex-direction:column;gap:.8rem}
.ai-card{background:#fff;border-radius:1rem;box-shadow:var(--shadow);padding:1rem 1.1rem}
.ai-card h3{font-size:.85rem;color:var(--muted);margin-bottom:.4rem}
.ai-card [contenteditable]{outline:none;line-height:1.7}
.ai-card [contenteditable]:focus{box-shadow:0 0 0 2px #111;border-radius:.4rem}
.ai-q{display:grid;gap:.35rem}
.ai-q ol{margin:.2rem 0 0;padding-left:1.4rem}
.ai-answer{font-size:.84rem;color:#2f6f4f}
.seg-opts{display:flex;flex-wrap:wrap;gap:.4rem}
.seg-opts label{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .8rem;border-radius:999px;box-shadow:inset 0 0 0 1px #00000024;font-size:.82rem;cursor:pointer;font-weight:500;margin:0}
.seg-opts input{accent-color:#111}
.seg-opts label:has(input:checked){background:#111;color:#fff}
/* worksheet: upload an old paper */
.ws-drop{position:relative;display:grid;justify-items:center;gap:.3rem;padding:1.1rem 1rem;border:1.5px dashed #c9c9c5;border-radius:1rem;background:var(--soft);text-align:center;cursor:pointer;transition:border-color .15s,background .15s}
.ws-drop:hover,.ws-drop.is-over{border-color:#7d6bff;background:#f1efff}
.ws-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.ws-drop .icon{width:1.6rem;height:1.6rem;color:#7d6bff}
.ws-drop b{font-size:.9rem}
.ws-drop small{font-size:.75rem;color:var(--muted)}
.ws-files{list-style:none;margin:.5rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem}
.ws-files li{display:inline-flex;align-items:center;gap:.45rem;padding:.3rem .45rem .3rem .75rem;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px #00000024;font-size:.78rem;max-width:100%}
.ws-files li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-files li small{color:var(--muted)}
.ws-files button{border:0;background:var(--soft);border-radius:50%;width:1.35rem;height:1.35rem;line-height:1;cursor:pointer;color:inherit}
.ws-mode{margin-top:.6rem}
.ai-source{font-size:.8rem;color:var(--muted);margin-top:.35rem}

/* ---------- polish: smooth page changes, colour accents, livelier controls ---------- */
@view-transition{navigation:auto}
.pf-side{view-transition-name:pf-side}
::view-transition-old(root){animation:pf-out .18s ease both}
::view-transition-new(root){animation:pf-in .32s cubic-bezier(.2,.9,.25,1) both}
@keyframes pf-out{to{opacity:0;transform:translateY(-6px)}}
@keyframes pf-in{from{opacity:0;transform:translateY(10px)}}
.pf-wrap>*{animation:pf-in .45s cubic-bezier(.2,.9,.25,1) both}
.pf-wrap>*:nth-child(2){animation-delay:.05s}.pf-wrap>*:nth-child(3){animation-delay:.1s}.pf-wrap>*:nth-child(4){animation-delay:.15s}
.pf-nav a{position:relative;transition:background-color .2s,color .2s,transform .2s cubic-bezier(.2,.9,.25,1.3)}
.pf-nav a:hover{transform:translateX(3px)}
.pf-nav a[aria-current]{box-shadow:0 6px 18px #0000002a}
.pf-nav a:active{transform:scale(.97)}
.pf-hub-link .pf-ext{width:.85rem!important;height:.85rem!important;margin-left:auto;opacity:.5}
.btn{transition:transform .2s cubic-bezier(.2,.9,.25,1.3),background-color .2s,box-shadow .2s}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:scale(.95)}
.pf-tile{--c:#36a8f0}
.pf-tiles>.pf-tile:nth-child(6n+1){--c:#36a8f0}.pf-tiles>.pf-tile:nth-child(6n+2){--c:#33c47a}.pf-tiles>.pf-tile:nth-child(6n+3){--c:#1fbfb1}
.pf-tiles>.pf-tile:nth-child(6n+4){--c:#ff5fbf}.pf-tiles>.pf-tile:nth-child(6n+5){--c:#ffb547}.pf-tiles>.pf-tile:nth-child(6n+6){--c:#7d6bff}
.pf-tile .pf-ico{background:var(--c);color:#1b1b1d;transition:transform .45s cubic-bezier(.2,.9,.25,1.4);--theme:keep}
a.pf-tile:hover .pf-ico{transform:rotate(-8deg) scale(1.08)}
.pf-tile{position:relative;overflow:hidden;isolation:isolate}
.pf-tile::after{content:"";position:absolute;right:-3rem;top:-3rem;width:8rem;height:8rem;border-radius:50%;background:var(--c);opacity:.1;z-index:-1;transition:transform .5s cubic-bezier(.2,.9,.25,1.1)}
a.pf-tile:hover::after{transform:scale(1.4)}
/* booking grid: equal columns, joined bars, drag selection, now line */
.bk-wrap{position:relative}
.bk-table{table-layout:fixed}
.bk-table th.bk-room{width:150px}
.bk-cell{transition:background-color .15s,transform .15s cubic-bezier(.2,.9,.25,1.3),box-shadow .15s}
.bk-cell[data-slot]:hover{transform:scale(1.06);box-shadow:0 0 0 2px #33c47a}
.bk-cell.is-picking{background:#33c47a!important;box-shadow:none;transform:none}
.bk-cell.taken.has-next{border-top-right-radius:0;border-bottom-right-radius:0}
.bk-cell.taken.cont{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-2px;width:calc(100% + 2px)}
.bk-cell.taken{animation:pf-pop .4s cubic-bezier(.2,.9,.25,1.3) both}
@keyframes pf-pop{from{transform:scaleY(.5);opacity:0}}
.bk-now{position:absolute;top:0;bottom:0;width:2px;background:#ff5d5d;z-index:3;pointer-events:none;box-shadow:0 0 0 3px #ff5d5d22}
.bk-now::before{content:"";position:absolute;top:.3rem;left:-4px;width:10px;height:10px;border-radius:50%;background:#ff5d5d}
/* calendar */
.cal-chip{transition:transform .2s cubic-bezier(.2,.9,.25,1.3),box-shadow .2s,background-color .2s}
.cal-chip:hover{transform:translateY(-1px);box-shadow:0 4px 10px #0000001f}
.cal-day.today .cal-num{box-shadow:0 0 0 0 #1111114d;animation:pf-ping 2.4s ease-out infinite}
@keyframes pf-ping{0%{box-shadow:0 0 0 0 #11111155}70%,100%{box-shadow:0 0 0 .55rem #11111100}}
.cal-grid{animation:pf-in .45s cubic-bezier(.2,.9,.25,1) both}
dialog[open]{animation:pf-dialog .3s cubic-bezier(.2,.9,.25,1.2)}
dialog::backdrop{background:#0006;backdrop-filter:blur(3px)}
@keyframes pf-dialog{from{opacity:0;transform:translateY(12px) scale(.96)}}
@media (prefers-reduced-motion:reduce){.pf-wrap>*,.cal-grid,.bk-cell.taken,dialog[open]{animation:none}.cal-day.today .cal-num{animation:none}::view-transition-old(root),::view-transition-new(root){animation:none}}
.bk-table thead th:not(.bk-room){background:transparent;overflow:visible;font-size:.72rem;padding-left:.15rem}
.bk-table thead tr{background:#fff}
.bk-cell.taken.has-next{overflow:visible;text-overflow:clip;position:relative;z-index:1}
/* AI tools: loading skeletons, staggered results, copy buttons */
.ai-progress{font-weight:700;color:var(--muted);margin:0 0 .8rem;animation:pf-in .3s ease}
.ai-skeleton{display:grid;gap:.55rem;padding:1.1rem;border-radius:1.1rem;background:#fff;box-shadow:var(--shadow);margin-bottom:.8rem;animation:pf-in .4s ease both;animation-delay:calc(var(--i) * .1s)}
.ai-skeleton i{display:block;height:.8rem;border-radius:.4rem;background:linear-gradient(90deg,#efefed 25%,#e2e2df 45%,#efefed 65%);background-size:300% 100%;animation:ai-shimmer 1.3s ease-in-out infinite}
.ai-skeleton i:first-child{width:30%}.ai-skeleton i:last-child{width:70%}
@keyframes ai-shimmer{from{background-position:100% 0}to{background-position:0 0}}
.ai-in{animation:pf-in .5s cubic-bezier(.2,.9,.25,1.1) both;animation-delay:calc(var(--i) * 70ms)}
.ai-card-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.ai-copy{border:0;border-radius:999px;padding:.3rem .75rem;font:inherit;font-size:.75rem;font-weight:700;background:#f1f1ef;cursor:pointer;transition:background-color .2s,transform .2s cubic-bezier(.2,.9,.25,1.3)}
.ai-copy:hover{background:#e6e6e3}
.ai-copy.is-done{background:#33c47a;color:#fff;transform:scale(1.06)}
@media (prefers-reduced-motion:reduce){.ai-skeleton,.ai-skeleton i,.ai-in,.ai-progress{animation:none}}
