/* Scoped preview styles; shell follows Palmarès navbar/sidebar tokens. */
.pd { scroll-margin-top:100px; --pd-blue:#1759d6; --pd-bg:#f1f3f6; --pd-surface:#fff; --pd-text:#202124; --pd-muted:#687386; --pd-border:#e3e8f0; --pd-rail:#f7f9ff; color:var(--pd-text); font-size:13px; line-height:1.5; text-align:left; }
.pd *, .pd *::before, .pd *::after { box-sizing:border-box; }
.pd button,.pd input,.pd select { font:inherit; }
.pd button { cursor:pointer; }
.pd button:focus-visible,.pd a:focus-visible,.pd input:focus-visible,.pd select:focus-visible { outline:3px solid #7fa9f4; outline-offset:3px; }
.pd svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; vertical-align:middle; }
.pd h3,.pd h4,.pd p { margin:0; }
.pd [hidden] { display:none !important; }
.pd-intro { display:flex; align-items:center; justify-content:center; gap:12px; margin:0 0 16px; color:var(--text-muted); font-size:13px; }
.pd-intro>span { color:var(--blue); font-weight:700; display:flex; align-items:center; gap:8px; }
.pd-live { width:7px; height:7px; border-radius:50%; background:#2a9963; box-shadow:0 0 0 4px #2a996315; }
.pd-roles { display:flex; justify-content:center; gap:6px; margin-bottom:20px; }
.pd-roles button { padding:10px 22px; min-height:44px; border:1px solid var(--border); border-radius:10px; color:var(--text-muted); background:var(--surface); font-weight:600; transition:background .15s,color .15s; }
.pd-roles button[aria-selected=true] { background:#1759d6; border-color:#1759d6; color:#fff; box-shadow:0 4px 12px #1759d622; }
.pd-window { border:1px solid #dce3f0; border-radius:16px; overflow:hidden; background:var(--pd-bg); box-shadow:0 24px 80px -26px #1759d64a,0 2px 8px #16233c09; }
.pd-browser { display:flex; align-items:center; gap:20px; padding:11px 18px; background:#f8faff; border-bottom:1px solid var(--pd-border); color:#718099; font-size:10px; letter-spacing:.02em; }
.pd-browser>span:first-child { color:#bcc7d8; letter-spacing:4px; }
.pd-sample { margin-left:auto; border:1px solid #dce7fa; border-radius:5px; padding:2px 7px; color:#1759d6; background:#eef4ff; }
#pd-app { display:grid; grid-template-columns:208px minmax(0,1fr); height:626px; position:relative; background:var(--pd-bg); }
#pd-app.pd-dark { --pd-bg:#141820; --pd-surface:#202630; --pd-text:#edf1f7; --pd-muted:#b2bfd1; --pd-border:#354153; --pd-rail:#191f29; --pd-blue:#91b4ff; }
.pd-sidebar { background:var(--pd-rail); border-right:2px solid var(--pd-border); display:flex; flex-direction:column; min-width:0; overflow:auto; z-index:3; }
.pd-brand { display:flex; align-items:center; min-height:66px; gap:9px; padding:0 12px; color:var(--pd-blue); }
.pd-brand strong { font-size:17px; letter-spacing:-.5px; }
.pd-brand img { object-fit:contain; }
.pd-brand .pd-icon-btn { margin-left:auto; }
.pd-sidebar nav { display:grid; gap:5px; padding:12px 10px; }
.pd-nav-link { display:flex; align-items:center; text-align:left; gap:11px; padding:11px 10px; width:100%; border:0; border-radius:9px; color:var(--pd-muted); background:transparent; font-size:12px!important; font-weight:600!important; min-height:42px; }
.pd-nav-link:hover { background:#1759d60c; }
.pd-nav-link.active { color:var(--pd-blue); background:#1759d61a; }
.pd-nav-link>svg { width:17px; height:17px; }
.pd-chevron { margin-left:auto; }
.pd-chevron svg { width:12px; height:12px; transition:transform .15s; }
.pd-chevron.open svg { transform:rotate(90deg); }
.pd-nav-children { border-left:1px solid var(--pd-border); margin:0 0 5px 18px; padding:2px 0 2px 12px; display:grid; gap:3px; }
.pd-nav-children button { background:none; border:none; padding:8px; color:var(--pd-muted); text-align:left; font-size:12px; border-radius:6px; }
.pd-nav-children button.active,.pd-nav-children button:hover { color:var(--pd-blue); background:#1759d60d; }
.pd-workspace { min-width:0; display:flex; flex-direction:column; overflow:hidden; color:var(--pd-text); }
.pd-topbar { min-height:66px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 22px; background:var(--pd-surface); box-shadow:0 2px 4px #00000008; z-index:1; }
.pd-school { display:flex; align-items:center; gap:10px; font-size:15px; font-weight:700; min-width:0; }
.pd-school>span:last-child { min-width:0; }
.pd-school small { display:block; color:var(--pd-muted); font-weight:400; font-size:10px; margin-top:1px; }
.pd-school-icon { background:#1759d6; color:#fff; width:32px; height:35px; border-radius:8px 8px 12px 12px; display:grid; place-items:center; font-family:Georgia,serif; font-size:21px; flex-shrink:0; }
.pd-tools { display:flex; align-items:center; gap:4px; }
.pd-icon-btn { background:none; color:var(--pd-muted); border:0; width:32px; height:34px; display:inline-flex; align-items:center; justify-content:center; border-radius:7px; position:relative; padding:6px; }
.pd-icon-btn:hover { background:#1759d60e; color:var(--pd-blue); }
.pd-dot { position:absolute; background:#f4b640; width:6px; height:6px; border-radius:50%; top:5px; right:6px; }
.pd-account { border:0; background:transparent; padding:0; margin-left:6px; border-radius:50%; }
.pd-avatar { width:32px; height:32px; border-radius:50%; object-fit:cover; object-position:center 37%; flex-shrink:0; display:inline-block; }
.pd-avatar.large { width:64px; height:64px; border:3px solid var(--pd-surface); box-shadow:0 2px 6px #0000000b; }
.pd-initials { display:inline-flex; align-items:center; justify-content:center; background:#e6edfc; color:#315cb0; font-size:10px; font-weight:600; }
.pd-content { padding:24px; overflow:auto; overscroll-behavior:contain; min-height:0; scrollbar-width:thin; display:flex; flex-direction:column; gap:18px; }
.pd-page-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.pd-eyebrow { font-size:10px; text-transform:uppercase; letter-spacing:.065em; color:var(--pd-muted); font-weight:600; }
.pd h3 { font-size:21px; font-weight:700; letter-spacing:-.6px; color:var(--pd-text); line-height:1.35; }
.pd h4 { font-size:13px; line-height:1.5; color:var(--pd-text); }
.pd p { color:var(--pd-muted); line-height:1.7; }
.pd-tag { display:inline-flex; align-items:center; flex-shrink:0; padding:4px 8px; font-size:10px; line-height:1.5; font-weight:500; background:#eef1f7; color:#52617b; border-radius:6px; }
.pd-tag.blue { color:#1759d6; background:#eaf1ff; }
.pd-tag.green { color:#23794e; background:#e7f5ed; }
.pd-tag.amber { color:#8d6210; background:#fff2d2; }
.pd-welcome>.pd-tag { margin-left:auto; }
.pd-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.pd-stat { position:relative; display:flex; flex-direction:column; gap:4px; padding:17px; text-align:left; border:1px solid var(--pd-border); background:var(--pd-surface); border-radius:10px; color:var(--pd-text); transition:transform .15s,box-shadow .15s; min-width:0; }
.pd-stat:hover { transform:translateY(-2px); box-shadow:0 4px 12px #1759d612; }
.pd-stat>strong { font-size:26px; font-weight:700; line-height:1.2; letter-spacing:-1px; margin-top:4px; overflow-wrap:anywhere; }
.pd-stat>span:not(.pd-stat-icon) { font-size:11px; color:var(--pd-muted); }
.pd-stat>small { font-size:10px; color:var(--pd-blue); border-top:1px solid var(--pd-border); padding-top:10px; margin-top:8px; display:flex; justify-content:space-between; }
.pd-stat-icon { width:30px; height:30px; display:grid; place-items:center; border-radius:8px; color:#1759d6; background:#edf3ff; }
.pd-stat:nth-child(2) .pd-stat-icon { color:#279a63; background:#ebf8f0; }
.pd-stat:nth-child(3) .pd-stat-icon { color:#b18120; background:#fff6df; }
.pd-columns { display:grid; grid-template-columns:1fr 1.2fr; gap:14px; }
.pd-card { background:var(--pd-surface); border:1px solid var(--pd-border); border-radius:10px; padding:17px; min-width:0; }
.pd-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.pd-card-head .pd-btn { padding:3px 0; border:0; min-height:28px; font-size:10px; background:none; }
.pd-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:9px 12px; border:1px solid #1759d6; border-radius:7px; background:#1759d6; color:#fff; font-size:11px!important; font-weight:600!important; min-height:36px; text-decoration:none; }
.pd-btn:hover { filter:brightness(.95); }
.pd-btn svg { width:14px; height:14px; }
.pd-btn.secondary { background:var(--pd-surface); color:var(--pd-blue); border-color:var(--pd-border); }
.pd-news { display:flex; align-items:flex-start; gap:12px; padding:12px 0; }
.pd-news+.pd-news { border-top:1px solid var(--pd-border); }
.pd-news strong { font-size:11px; }
.pd-news p { font-size:10px; margin-top:3px; }
.pd-date { display:flex; flex-direction:column; text-align:center; align-items:center; justify-content:center; width:38px; height:43px; border-radius:7px; background:#edf3ff; color:#1759d6; font-weight:700; font-size:17px; line-height:1.3; flex-shrink:0; }
.pd-date small { font-size:8px; font-weight:500; }
.pd-date.gold { background:#fff6df; color:#946b15; }
.pd-hint { display:flex; align-items:center; gap:8px; color:var(--pd-muted); font-size:11px; line-height:1.6; }
.pd-hint svg { width:15px; height:15px; }
.pd-footer { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:12px 18px; font-size:10px; color:#6a7890; background:#f8faff; border-top:1px solid #e3e8f0; }
.pd-footer button { border:0; color:#1759d6; background:none; font-size:10px; padding:4px; }
.pd-after { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:16px; padding-top:22px; font-size:12px; }
.pd-after p { color:var(--text-muted); }
.pd-after a { color:var(--blue); font-weight:600; }
.pd-after a span { margin-left:4px; }
.pd-person { display:flex; align-items:center; gap:10px; }
.pd-person strong { font-size:12px; font-weight:600; }
.pd-person small { display:block; font-size:10px; color:var(--pd-muted); margin-top:2px; }
.pd-filters { display:flex; align-items:end; flex-wrap:wrap; gap:12px; }
.pd-field { display:flex; flex-direction:column; gap:6px; min-width:0; }
.pd-field>span { color:var(--pd-muted); font-size:11px; font-weight:500; }
.pd input,.pd select { border:1px solid var(--pd-border); background:var(--pd-surface); color:var(--pd-text); border-radius:7px; padding:9px 11px; min-height:38px; max-width:100%; font-size:12px; }
.pd input::placeholder { color:var(--pd-muted); }
.pd-table-wrap { width:100%; overflow:auto; scrollbar-width:thin; }
.pd table { width:100%; border-collapse:collapse; font-size:12px; white-space:nowrap; }
.pd th { font-size:10px; font-weight:500; color:var(--pd-muted); background:var(--pd-rail); text-align:left; padding:10px; }
.pd td { padding:12px 10px; border-bottom:1px solid var(--pd-border); }
.pd tr:last-child td { border:0; }
.pd-score { color:var(--pd-blue); }
.pd-list-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 0; border-bottom:1px solid var(--pd-border); }
.pd-list-row:last-child { border-bottom:0; }
.pd-list-row>span>small { display:block; color:var(--pd-muted); font-size:10px; margin-top:4px; }
.pd-list-row strong { font-size:12px; }
.pd-list-row p { font-size:11px; }
.pd-empty { padding:32px 12px; text-align:center; }
.pd-avatar-stack { display:flex; padding:14px 0; }
.pd-avatar-stack .pd-avatar+.pd-avatar { margin-left:-6px; border:2px solid var(--pd-surface); }
.pd-columns>.pd-card>.pd-btn { margin-top:14px; }
.pd-call-summary { display:flex; gap:8px; margin-bottom:8px; }
.pd-segment { display:flex; gap:4px; }
.pd-segment button,.pd-days button { border:1px solid var(--pd-border); border-radius:6px; color:var(--pd-muted); padding:7px 10px; background:var(--pd-surface); font-size:11px; min-height:34px; }
.pd-segment button[aria-pressed=true],.pd-days button[aria-pressed=true] { color:var(--pd-blue); border-color:var(--pd-blue); background:var(--pd-rail); }
.pd-money-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.pd-money-summary>div { background:var(--pd-surface); padding:17px; border:1px solid var(--pd-border); border-radius:10px; }
.pd-money-summary strong { display:block; font-size:21px; margin-top:7px; overflow-wrap:anywhere; }
.pd-money-summary small { font-size:10px; color:var(--pd-muted); font-weight:400; }
.pd-progress { height:5px; border-radius:5px; background:var(--pd-border); overflow:hidden; }
.pd-progress span { display:block; height:100%; background:#2d9a65; }
.pd-days { display:flex; flex-wrap:wrap; gap:6px; }
.pd-agenda { display:grid; gap:12px; }
.pd-lesson { display:flex; align-items:center; gap:16px; text-align:left; padding:19px; background:var(--pd-surface); color:var(--pd-text); border:1px solid var(--pd-border); border-left:4px solid #1759d6; border-radius:9px; width:100%; }
.pd-lesson:nth-child(2) { border-left-color:#b88b32; }
.pd-lesson>svg { margin-left:auto; width:15px; }
.pd-lesson strong { font-size:13px; }
.pd-lesson small { display:block; color:var(--pd-muted); font-size:11px; margin-top:4px; }
.pd-lesson-time { font-size:11px; color:var(--pd-muted); }
.pd-student-banner { display:flex; align-items:center; gap:15px; margin-bottom:16px; }
.pd-student-banner .pd-tag { margin-left:auto; }
.pd-bulletin-note { background:var(--pd-rail); border-left:3px solid #f4b640; padding:15px; margin-top:16px; }
.pd-bulletin-note strong { font-size:12px; }
.pd-bulletin-note p { font-size:12px; margin-top:5px; }
.pd-announcement { padding:10px 0 20px; position:relative; }
.pd-announcement+.pd-announcement { border-top:1px solid var(--pd-border); padding-top:20px; }
.pd-announcement>.pd-tag { position:absolute; top:12px; right:0; }
.pd-announcement h4 { font-size:16px; margin:16px 0 7px; }
.pd-announcement small { color:var(--pd-muted); font-size:10px; display:block; margin-top:12px; }
.pd-messaging { display:grid; grid-template-columns:195px minmax(0,1fr); border:1px solid var(--pd-border); border-radius:10px; overflow:hidden; background:var(--pd-surface); min-height:345px; }
.pd-contacts { background:var(--pd-rail); border-right:1px solid var(--pd-border); padding:8px; }
.pd-contacts button { display:block; width:100%; text-align:left; background:none; color:var(--pd-text); border:0; padding:10px 7px; border-radius:7px; }
.pd-contacts button[aria-pressed=true] { background:#1759d615; }
.pd-thread { display:flex; flex-direction:column; min-width:0; }
.pd-thread-header { border-bottom:1px solid var(--pd-border); padding:12px 15px; }
.pd-bubbles { display:flex; flex-direction:column; align-items:flex-start; gap:12px; padding:18px; max-height:280px; overflow:auto; flex:1; }
.pd-bubble { background:var(--pd-rail); border:1px solid var(--pd-border); padding:11px 13px; font-size:12px; border-radius:0 10px 10px 10px; max-width:90%; overflow-wrap:anywhere; }
.pd-bubble.me { align-self:flex-end; color:var(--pd-blue); background:#1759d610; border-radius:10px 0 10px 10px; white-space:pre-wrap; }
.pd-bubble small { display:block; margin-top:4px; font-size:9px; opacity:.7; }
.pd-compose { display:flex; gap:8px; padding:12px; border-top:1px solid var(--pd-border); }
.pd-compose input { width:100%; min-width:0; }
.pd-compose button { flex-shrink:0; }
.pd-profile { display:grid; grid-template-columns:140px 1fr; gap:16px; padding:18px 0; font-size:12px; }
.pd-profile dt { color:var(--pd-muted); }
.pd-profile dd { margin:0; overflow-wrap:anywhere; }
.pd-toast { position:fixed; bottom:24px; left:50%; transform:translate(-50%,16px); background:#183962; color:white; padding:14px 20px; border-radius:10px; max-width:min(520px,calc(100% - 32px)); width:max-content; z-index:1100; opacity:0; pointer-events:none; transition:opacity .15s,transform .15s; font-size:12px; box-shadow:0 5px 30px #0002; }
.pd-toast.visible { opacity:1; transform:translate(-50%,0); }
.pd-dialog { margin:auto; width:min(500px,calc(100% - 32px)); max-height:85vh; overflow:auto; padding:24px; background:#fff; border:1px solid #dfe6f1; border-radius:14px; box-shadow:0 20px 80px #12294d44; color:#202124; --pd-surface:#fff; --pd-text:#202124; --pd-muted:#687386; --pd-border:#e3e8f0; --pd-rail:#f7f9ff; --pd-blue:#1759d6; }
.pd-dialog::backdrop { background:#10254370; backdrop-filter:blur(3px); }
.pd-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.pd-dialog-head h3 { font-size:20px; }
.pd-dialog-head button { font-size:26px; }
.pd-dialog form { display:grid; gap:16px; }
.pd-dialog>.pd-btn { margin-top:16px; }
.pd-fallback { padding:24px; }
.pd-fallback img { max-width:100%; }
.pd-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.pd-mobile-toggle,.pd-mobile-close,.pd-backdrop { display:none; }
#pd-app.collapsed { grid-template-columns:66px minmax(0,1fr); }
.collapsed .pd-brand { padding:0; justify-content:center; }
.collapsed .pd-brand>img,.collapsed .pd-brand>strong,.collapsed .pd-nav-link>span,.collapsed .pd-chevron,.collapsed .pd-sidebar-foot,.collapsed .pd-nav-children { display:none; }
.collapsed .pd-brand .pd-icon-btn { margin:0; }
.collapsed .pd-nav-link { justify-content:center; padding:11px 0; }
@media(max-width:980px) {
  #pd-app { grid-template-columns:180px minmax(0,1fr); height:660px; }
  .pd-brand strong { font-size:15px; }
  .pd-brand { gap:5px; padding:0 10px; }
  .pd-content { padding:18px; }
  .pd-topbar { padding:10px 16px; }
  .pd-columns { grid-template-columns:1fr; }
  .pd-stat { padding:12px; }
  .pd-messaging { grid-template-columns:165px minmax(0,1fr); }
  .pd-page-heading>.pd-tag { font-size:9px; }
}
@media(max-width:700px) {
  .pd-intro { flex-direction:column; gap:5px; font-size:12px; }
  .pd-roles { gap:4px; margin-bottom:14px; }
  .pd-roles button { flex:1; padding:9px 5px; font-size:11px; border-radius:7px; }
  .pd-browser { padding:10px 12px; gap:8px; font-size:9px; }
  .pd-browser>span:first-child { display:none; }
  .pd-sample { font-size:8px; }
  #pd-app,#pd-app.collapsed { grid-template-columns:minmax(0,1fr); height:670px; }
  .pd-sidebar { position:absolute; top:60px; right:0; bottom:0; width:min(260px,85%); border-left:1px solid var(--pd-border); border-right:0; box-shadow:-10px 0 30px #0002; display:none; }
  .mobile-open .pd-sidebar { display:flex; }
  .mobile-open .pd-backdrop { display:block; position:absolute; inset:60px 0 0; z-index:2; background:#0b1e3c55; border:0; }
  .pd-brand .pd-icon-btn { display:none; }
  .pd-mobile-toggle,.pd-brand .pd-mobile-close { display:inline-flex; }
  .pd-brand .pd-mobile-close { margin-left:auto; font-size:24px; }
  .collapsed .pd-brand>img,.collapsed .pd-brand>strong,.collapsed .pd-nav-link>span,.collapsed .pd-chevron,.collapsed .pd-sidebar-foot { display:block; }
  .collapsed .pd-nav-children:not([hidden]) { display:grid; }
  .collapsed .pd-brand { padding:0 12px; justify-content:flex-start; }
  .collapsed .pd-nav-link { padding:11px 10px; justify-content:flex-start; }
  .pd-topbar { min-height:60px; padding:8px 10px; gap:6px; }
  .pd-school { font-size:11px; gap:7px; }
  .pd-school small { font-size:8px; }
  .pd-school-icon { width:25px; height:29px; font-size:17px; }
  .pd-tools { gap:0; }
  .pd-tools .pd-icon-btn { width:29px; height:36px; }
  .pd-tools .pd-icon-btn svg { width:16px; height:16px; }
  .pd-tools>.pd-icon-btn:first-child { display:none; }
  .pd-account { margin:0 3px; }
  .pd-account .pd-avatar { width:27px; height:27px; }
  .pd-content { padding:17px 13px; gap:16px; }
  .pd h3 { font-size:19px; }
  .pd-page-heading { align-items:flex-start; flex-direction:column; gap:7px; }
  .pd-page-heading>.pd-tag { font-size:9px; }
  .pd-welcome>.pd-tag { display:none; }
  .pd-stats { gap:7px; }
  .pd-stat { padding:10px; }
  .pd-stat>strong { font-size:22px; }
  .pd-stat>span:not(.pd-stat-icon) { font-size:9px; }
  .pd-stat>small { font-size:9px; line-height:1.5; min-height:38px; }
  .pd-stat-icon { width:27px; height:27px; }
  .pd-stat-icon svg { width:16px; height:16px; }
  .pd-card { padding:13px; }
  .pd-filters { gap:10px; }
  .pd-filters .pd-field { flex:1; min-width:120px; }
  .pd-list-row { flex-wrap:wrap; }
  .pd-segment { width:100%; }
  .pd-segment button { flex:1; min-height:40px; }
  .pd-money-summary { gap:7px; }
  .pd-money-summary>div { padding:10px; }
  .pd-money-summary strong { font-size:16px; }
  .pd-money-summary small { font-size:9px; }
  .pd-money-summary strong small { display:block; }
  .pd-lesson { flex-wrap:wrap; gap:10px; padding:14px; }
  .pd-lesson-time { width:100%; }
  .pd-messaging { grid-template-columns:1fr; }
  .pd-contacts { display:flex; border-right:0; border-bottom:1px solid var(--pd-border); padding:5px; }
  .pd-contacts .pd-person { gap:6px; }
  .pd-contacts .pd-person strong { font-size:10px; }
  .pd-contacts .pd-person small { font-size:8px; }
  .pd-contacts .pd-avatar { width:26px; height:26px; }
  .pd-bubbles { min-height:150px; max-height:210px; padding:13px; }
  .pd-compose { padding:9px; gap:6px; }
  .pd-compose button { padding:9px; }
  .pd-compose button svg { display:none; }
  .pd-footer { padding:10px; font-size:9px; gap:8px; align-items:flex-start; }
  .pd-footer>span { max-width:220px; }
  .pd-after { gap:5px; font-size:11px; text-align:center; }
  .pd-profile { grid-template-columns:100px 1fr; gap:12px; }
  .pd-announcement>.pd-tag { position:static; margin-top:10px; }
  .pd-student-banner .large { width:48px; height:48px; }
  .pd-dialog { padding:20px; }
}
@media(prefers-reduced-motion:reduce) {
  .pd *,.pd *::before,.pd *::after { transition:none!important; animation:none!important; }
}

/* Application fidelity: values sourced from src/styles.css and layout components.
   The marketing frame uses Inter; everything inside the app uses the app stack. */
#pd-app { font-family:"Segoe UI",ui-sans-serif,system-ui,sans-serif; --pd-blue:#1759d6; --pd-bg:#f1f3f6; --pd-surface:#fff; --pd-text:#202124; --pd-muted:#5f6368; --pd-border:#dadce0; --pd-rail:#f7f9ff; --pd-rail-border:#e1e8fb; --pd-active:#dbe4ff; --pd-hover:#eef2fe; color-scheme:light; grid-template-columns:232px minmax(0,1fr); height:760px; font-size:14px; }
#pd-app.pd-dark { --pd-blue:#5b8dee; --pd-bg:#111318; --pd-surface:#1e2128; --pd-text:#e3e5e8; --pd-muted:#9aa0a6; --pd-border:#3c4043; --pd-rail:#171a20; --pd-rail-border:#2b3038; --pd-active:#2c3a57; --pd-hover:#232833; color-scheme:dark; }
.pd svg.pd-fa { fill:currentColor; stroke:none; }
.pd-guide { display:flex; align-items:center; justify-content:center; gap:10px; color:var(--text-muted); font-size:12px; margin:-6px 0 16px; }
.pd-guide .pd-btn { background:transparent; border:0; color:var(--blue); padding:3px; min-height:30px; }
.pd-roles { margin-bottom:12px; }
.pd-sidebar { border-color:var(--pd-rail-border); }
.pd-brand { height:70px; min-height:70px; padding:0 12px; gap:10px; }
.pd-brand strong { font-size:16.8px; letter-spacing:normal; }
.pd-brand img { width:36px; height:36px; }
.pd-sidebar nav { padding:4px 0 16px; gap:0; }
.pd-nav-link { width:calc(100% - 16px); min-height:44px; margin:2px 8px; padding:12px; gap:12px; border-radius:16px; font-size:15.2px!important; font-weight:400!important; color:var(--pd-text); }
.pd-nav-link>svg { width:20px; height:16px; }
.pd-nav-link.active { background:var(--pd-active); color:var(--pd-text); font-weight:600!important; }
.pd-nav-link:hover,.pd-nav-link[aria-expanded=true]:not(.active) { background:var(--pd-hover); }
.pd-nav-link>span { white-space:nowrap; }
.pd-chevron { transform:rotate(90deg); }
.pd-chevron.open svg { transform:rotate(180deg); }
.pd-nav-children { border:0; margin:0; padding:0; gap:0; }
.pd-nav-children button { display:flex; align-items:center; gap:12px; margin:2px 8px; padding:10px 12px 10px 32px; min-height:40px; border-radius:12px; color:var(--pd-text); font-size:14.72px; }
.pd-nav-children button svg { width:20px; height:14px; color:var(--pd-muted); }
.pd-nav-children button.active { color:var(--pd-text); background:var(--pd-active); font-weight:600; }
.pd-nav-children button:hover { background:var(--pd-hover); color:var(--pd-text); }
.pd-topbar { min-height:70px; height:70px; padding:0 20px; gap:12px; box-shadow:0 2px 4px #0000001a; }
.pd-school { font-size:24px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; }
.pd-tools { gap:4px; flex-shrink:0; }
.pd-tools .pd-icon-btn { border-radius:50%; padding:8px; width:34px; height:34px; }
.pd-tools svg { width:17px; height:17px; }
.pd-dot { top:0; right:0; width:auto; height:auto; min-width:14px; padding:1px 4px; color:#fff; background:#f4b640; font-size:9.6px; font-weight:700; line-height:1.5; border-radius:10px; }
.pd-content { padding:20px; gap:20px; }
.pd-page-heading { padding:20px 24px; background:var(--pd-surface); border-radius:10px; box-shadow:0 2px 8px #00000014; flex-wrap:wrap; }
.pd-page-heading h3 { display:flex; align-items:center; gap:10px; font-size:22.4px; letter-spacing:normal; margin-bottom:4px; }
.pd-page-heading h3 svg { color:var(--pd-blue); width:22px; }
.pd-page-heading p { font-size:13.6px; }
.pd h4 { font-size:16px; }
.pd-card { padding:20px; border:0; border-radius:8px; box-shadow:0 2px 4px #00000014; }
.pd-card-head { border-bottom:1px solid var(--pd-border); padding-bottom:12px; margin-bottom:14px; flex-wrap:wrap; }
.pd-card-head h4 { color:var(--pd-blue); font-size:16px; font-weight:600; }
.pd-card-head .pd-btn { font-size:12.8px!important; padding:0; font-weight:400!important; }
.pd-btn { border-radius:5px; padding:8px 16px; font-size:14px!important; font-weight:500!important; }
.pd-btn.secondary { border:1.5px solid var(--pd-blue); }
.pd-card-head .pd-btn.secondary { border:0; }
.pd input,.pd select { border:1.5px solid var(--pd-border); border-radius:6px; padding:7px 12px; font-size:14px; }
.pd-field>span { font-size:12.48px; font-weight:600; }
.pd-filters { gap:16px; }
.pd table { font-size:14px; }
.pd th { background:var(--pd-rail); padding:12px 16px; font-size:12.8px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; border-bottom:2px solid var(--pd-border); }
.pd td { padding:13px 16px; }
.pd tbody tr:hover { background:var(--pd-rail); }
.pd-person strong { font-size:14px; }
.pd-person small { font-size:12px; }
.pd-score { color:#34a853; }
.pd-profile { font-size:14px; }
.pd-tag { font-size:12px; border-radius:4px; }
.pd-tag.blue { background:#1759d614; color:var(--pd-blue); }
.pd-dialog { font-family:"Segoe UI",ui-sans-serif,system-ui,sans-serif; border-radius:12px; box-shadow:0 16px 48px #00000038; }
.pd-mobile-brand,.pd-mobile-account,.pd-mobile-profile { display:none; }
.pd-dashboard-layout { display:grid; grid-template-columns:240px minmax(0,1fr); gap:20px; align-items:start; }
.pd-dashboard-main { min-width:0; display:flex; flex-direction:column; gap:20px; }
.pd-dashboard-profile { display:grid; gap:20px; min-width:0; }
.pd-user-card { padding:20px; background:var(--pd-surface); border-radius:8px; box-shadow:0 2px 4px #0000001a; display:flex; flex-direction:column; align-items:center; gap:16px; }
.pd-user-card .pd-avatar.large { width:120px; height:120px; border:3px solid var(--pd-blue); box-shadow:none; }
.pd-user-card h4 { color:var(--pd-blue); font-size:17.6px; text-align:center; font-weight:700; }
.pd-user-card dl { display:flex; flex-direction:column; width:100%; margin:0; }
.pd-user-card dt { font-size:11.52px; color:var(--pd-muted); text-transform:uppercase; letter-spacing:.03em; margin-bottom:2px; padding-top:10px; }
.pd-user-card dd { font-size:14px; font-weight:500; color:var(--pd-text); margin:0; padding-bottom:10px; border-bottom:1px solid var(--pd-border); overflow-wrap:anywhere; }
.pd-user-card dd:last-child { border:0; }
.pd-user-card dd.pd-user-active { color:#34a853; }
.pd-dashboard-heading { background:var(--pd-surface); padding:20px 25px; border-radius:12px; box-shadow:0 2px 8px #00000014; }
.pd-dashboard-heading>div { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.pd-dashboard-heading h3 { font-size:22.4px; letter-spacing:normal; }
.pd-dashboard-heading .pd-tag,.pd-mobile-profile .pd-tag { border:1px solid #1759d633; border-radius:999px; padding:4px 14px; font-size:12.48px; font-weight:600; gap:6px; }
.pd-dashboard-heading .pd-tag svg { width:12px; height:12px; }
.pd-dashboard-heading p { font-size:14.08px; font-weight:600; margin-top:4px; }
.pd-stats { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:16px; }
.pd-stat { display:flex; flex-direction:row; align-items:center; gap:14px; padding:20px; border:0; border-radius:8px; box-shadow:0 2px 4px #00000014; }
.pd-stat-body { display:flex; flex-direction:column; min-width:0; }
.pd-stat-body strong { font-size:28px; font-weight:700; line-height:1; color:var(--pd-blue); }
.pd-stat-body>span { font-size:12.48px; color:var(--pd-muted); margin-top:4px; }
.pd-stat-icon { width:46px; height:46px; border-radius:10px; background:#1759d61a; }
.pd-stat-icon svg { width:22px; height:22px; }
.pd-stat:nth-child(2) .pd-stat-icon { color:#34a853; background:#34a8531a; }
.pd-stat:nth-child(3) .pd-stat-icon { color:#f4b640; background:#f4b6401a; }
.pd-stat:nth-child(4) .pd-stat-icon { color:#ea4335; background:#ea43351a; }
.pd-dashboard-events { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.pd-news { width:100%; background:none; border:0; color:var(--pd-text); text-align:left; padding:6px 0; margin-bottom:8px; align-items:flex-start; }
.pd-news strong { font-size:13.6px; font-weight:600; line-height:1.4; display:block; }
.pd-news small { font-size:12px; color:var(--pd-muted); display:block; margin-top:2px; }
.pd-news+.pd-news { padding-top:12px; }
.pd-date { min-width:36px; width:36px; height:40px; background:#1759d612; border-radius:6px; font-size:17.6px; }
.pd-date small { font-size:10.4px; margin:0; }
.pd-mini-announcement { display:flex; gap:12px; align-items:flex-start; text-align:left; background:none; color:var(--pd-text); border:0; padding:6px 0; margin-bottom:10px; width:100%; }
.pd-mini-announcement>svg { color:var(--pd-blue); width:17px; height:17px; margin-top:3px; }
.pd-mini-announcement strong { display:block; font-size:13.6px; line-height:1.5; }
.pd-mini-announcement small { font-size:12.48px; color:var(--pd-muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pd-next-course { display:flex; gap:12px; font-size:13px; }
.pd-next-course strong { color:var(--pd-blue); }
.pd-next-course small { display:block; color:var(--pd-muted); font-size:11px; }
.pd-call-banner { display:flex; align-items:center; gap:12px; width:100%; background:#e6f4ea; border:1px solid #34a85344; color:#1e7e3a; border-radius:10px; padding:14px 18px; text-align:left; }
.pd-call-banner strong { font-size:12px; text-transform:uppercase; }
.pd-call-banner small { display:block; font-size:12px; margin-top:3px; }
.pd-call-banner b { font-size:12px; margin-left:auto; white-space:nowrap; }
#pd-app.collapsed { grid-template-columns:72px minmax(0,1fr); }
@media(min-width:1200px) {
  .pd-dashboard-layout { grid-template-columns:280px minmax(0,1fr); }
}
@media(min-width:769px) and (max-width:1100px) {
  .pd-dashboard-layout { grid-template-columns:240px minmax(0,1fr); }
  .pd-dashboard-events { grid-template-columns:1fr; }
  .pd-user-card { padding:16px; }
  .pd-user-card .pd-avatar.large { width:100px; height:100px; }
  .pd-school { font-size:20px; }
}
@media(max-width:768px) {
  #pd-app,#pd-app.collapsed { grid-template-columns:minmax(0,1fr); height:730px; }
  .pd-sidebar { position:absolute; top:70px; right:0; bottom:0; width:min(260px,90%); border-left:2px solid var(--pd-rail-border); border-right:0; box-shadow:-10px 0 30px #0002; display:none; }
  .mobile-open .pd-sidebar { display:flex; }
  .mobile-open .pd-backdrop { display:block; position:absolute; inset:70px 0 0; z-index:2; background:#0007; border:0; }
  .pd-brand .pd-icon-btn { display:none; }
  .pd-brand .pd-mobile-close { display:inline-flex; margin-left:auto; font-size:24px; }
  .collapsed .pd-brand>img,.collapsed .pd-brand>strong,.collapsed .pd-nav-link>span,.collapsed .pd-chevron { display:block; }
  .collapsed .pd-nav-children:not([hidden]) { display:grid; }
  .collapsed .pd-brand { padding:0 12px; justify-content:flex-start; }
  .collapsed .pd-nav-link { padding:12px; justify-content:flex-start; }
  .pd-mobile-account { display:block; margin-top:auto; padding:14px; border:0; border-top:1px solid var(--pd-rail-border); background:var(--pd-rail); color:var(--pd-text); text-align:left; }
  .pd-school,.pd-tools .pd-account { display:none; }
  .pd-mobile-brand { display:flex; gap:8px; align-items:center; border:0; padding:0; background:none; color:var(--pd-blue); font-weight:700; font-size:18.4px!important; }
  .pd-mobile-brand img { width:36px; height:36px; }
  .pd-tools>.pd-icon-btn:first-child,.pd-mobile-toggle { display:inline-flex; }
  .pd-tools { gap:0; }
  .pd-topbar { padding:0 14px; min-height:70px; }
  .pd-tools .pd-icon-btn { width:32px; height:36px; }
  .pd-dashboard-layout { grid-template-columns:1fr; }
  .pd-dashboard-profile { display:none; }
  .pd-dashboard-heading { display:none; }
  .pd-mobile-profile { display:flex; align-items:center; gap:14px; padding:14px 16px; background:var(--pd-surface); border-radius:12px; box-shadow:0 2px 4px #00000014; }
  .pd-mobile-profile .pd-avatar.large { width:56px; height:56px; border:3px solid var(--pd-blue); }
  .pd-mobile-profile>div { min-width:0; }
  .pd-mobile-profile strong { font-size:16px; }
  .pd-mobile-profile p { font-size:12.48px; }
  .pd-mobile-profile small { display:block; font-size:12px; color:var(--pd-muted); }
  .pd-mobile-profile .pd-tag { margin-top:4px; font-size:11.52px; padding:3px 10px; }
  .pd-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .pd-stat { padding:12px 10px; gap:10px; }
  .pd-stat-icon { width:36px; height:36px; }
  .pd-stat-icon svg { width:17px; height:17px; }
  .pd-stat-body strong { font-size:20.8px; }
  .pd-stat-body>span { font-size:11.52px; }
  .pd-content { padding:12px; gap:12px; }
  .pd-dashboard-main { gap:12px; }
  .pd-dashboard-events { grid-template-columns:1fr; gap:12px; }
  .pd-card { padding:14px; }
  .pd-page-heading { padding:14px 16px; gap:10px; }
  .pd-page-heading h3 { font-size:18.4px; }
  .pd-page-heading p { font-size:12px; }
  .pd-call-banner { flex-wrap:wrap; padding:12px; }
  .pd-call-banner b { margin-left:18px; }
  .pd-btn { padding:8px 12px; font-size:12px!important; }
  .pd th { padding:10px; font-size:11px; }
  .pd td { padding:10px; font-size:13px; }
  .pd-person strong { font-size:13px; }
  .pd-person small { font-size:11px; }
}
@media(max-width:360px) {
  .pd-topbar { padding:0 8px; }
  .pd-mobile-brand { gap:5px; font-size:16px!important; }
  .pd-mobile-brand img { width:28px; height:28px; }
  .pd-tools .pd-icon-btn { width:28px; }
  .pd-stat { padding:12px 8px; gap:7px; }
  .pd-stat-icon { width:28px; height:32px; }
  .pd-roles button { padding:8px 3px; font-size:10px; }
  .pd-guide { gap:6px; font-size:10px; }
  .pd-guide .pd-btn { font-size:10px!important; }
}
.pd-classes-layout { display:grid; grid-template-columns:240px minmax(0,1fr); gap:20px; align-items:start; }
.pd-notes-main { min-width:0; display:grid; gap:16px; }
.pd-class-sidebar { background:var(--pd-surface); border-radius:10px; box-shadow:0 2px 8px #00000014; overflow:hidden; }
.pd-class-sidebar h4 { padding:14px 16px 10px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--pd-muted); border-bottom:1px solid var(--pd-border); }
.pd-class-level { display:block; padding:9px 14px; color:var(--pd-muted); font-size:12.48px; letter-spacing:.05em; text-transform:uppercase; }
.pd-class-sidebar button { display:flex; justify-content:space-between; width:100%; padding:8px 16px 8px 20px; border:0; background:none; color:var(--pd-text); text-align:left; font-size:14px; }
.pd-class-sidebar button[aria-pressed=true] { color:var(--pd-blue); background:#1759d614; font-weight:600; }
.pd-class-sidebar button span,.pd-count { background:var(--pd-rail); color:var(--pd-blue); border-radius:10px; padding:1px 9px; font-size:11.68px; font-weight:700; }
.pd-class-sidebar button[aria-pressed=true] span { background:var(--pd-blue); color:#fff; }
.pd-note-good { color:#34a853; }
.pd-note-mid { color:#f9a825; }
.pd-note-bad { color:#ea4335; }
.pd-notes-main [data-action=note] { width:28px; height:28px; min-height:28px; border-radius:50%; border:1.5px solid var(--pd-blue); padding:0; font-size:18px!important; }
.pd-note-cards { display:none; }
@media(max-width:1024px) {
  .pd-classes-layout { grid-template-columns:1fr; }
}
@media(max-width:640px) {
  .pd-notes-table { display:none; }
  .pd-note-cards { display:grid; gap:8px; }
  .pd-note-card { display:flex; align-items:center; gap:8px; border:1px solid var(--pd-border); border-radius:10px; padding:12px 14px; flex-wrap:wrap; }
  .pd-note-card>strong:first-child { flex:1; font-size:14.08px; }
}

/* Reference screens: school settings, pupil directory and weekly timetable. */
.pd-brand-home { display:flex; align-items:center; gap:10px; flex:1; min-width:0; padding:0; border:0; background:transparent; color:var(--pd-blue); text-align:left; }
.pd-brand-home img { width:32px; height:32px; flex-shrink:0; }
#pd-app.collapsed .pd-brand-home { justify-content:center; }
#pd-app.collapsed .pd-brand-home strong,#pd-app.collapsed .pd-brand [data-action=collapse] { display:none; }
.pd-page-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pd-page-heading { flex-wrap:wrap; }
.pd-view-tabs { display:flex; background:var(--pd-bg); padding:3px; border-radius:8px; }
.pd-view-tabs button { display:flex; align-items:center; gap:7px; padding:7px 12px; background:none; border:0; border-radius:6px; color:var(--pd-muted); }
.pd-view-tabs button[aria-pressed=true] { background:var(--pd-surface); color:var(--pd-blue); box-shadow:0 1px 4px #00000014; font-weight:600; }
.pd-view-tabs svg { width:15px; height:15px; }
.pd-school-summary,.pd-dossier-identity { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.pd-school-summary { padding-bottom:20px; margin-bottom:16px; border-bottom:1px solid var(--pd-border); }
.pd-school-summary>svg { width:36px; height:36px; color:var(--pd-blue); }
.pd-school-summary h4,.pd-dossier-identity h4 { font-size:18px; }
.pd-school-summary .pd-tag,.pd-dossier-identity>.pd-tag { margin-left:auto; }
.pd-dossier-identity { padding:20px; background:var(--pd-surface); border-radius:10px; }
.pd-dossier-identity small { color:var(--pd-muted); overflow-wrap:anywhere; }
.pd-year { background:var(--pd-surface); border:1px solid var(--pd-border); border-radius:10px; overflow:hidden; flex-shrink:0; }
.pd-year-header { display:flex; align-items:center; justify-content:space-between; width:100%; padding:18px 20px; border:0; background:none; color:var(--pd-text); gap:12px; flex-wrap:wrap; text-align:left; }
.pd-year-header>span { display:flex; align-items:center; gap:12px; }
.pd-year-header svg { width:12px; height:12px; color:var(--pd-muted); }
.pd-year-header[aria-expanded=true] svg { transform:rotate(90deg); }
.pd-year-header strong { font-size:16px; }
.pd-year-header small { color:var(--pd-muted); }
.pd-year-periods { padding:16px 20px; border-top:1px solid var(--pd-border); }
.pd-year-periods h4 { margin-bottom:12px; }
.pd-color-chip { display:inline-flex; align-items:center; gap:8px; }
.pd-color-chip i { width:20px; height:20px; border-radius:4px; }
.pd-registration-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.pd-registration-stat { display:flex; align-items:center; gap:10px; padding:16px 12px; background:var(--pd-surface); border-radius:10px; box-shadow:0 2px 8px #0000000a; min-width:0; }
.pd-registration-stat .pd-stat-icon { width:34px; height:34px; flex-shrink:0; }
.pd-registration-stat>span:last-child { min-width:0; }
.pd-registration-stat strong,.pd-registration-stat b,.pd-registration-stat small { display:block; }
.pd-registration-stat strong { font-size:24px; line-height:1.2; }
.pd-registration-stat b { font-size:12px; font-weight:600; }
.pd-registration-stat small { color:var(--pd-muted); font-size:10px; line-height:1.4; margin-top:3px; }
.pd-registration-stat:nth-child(2) .pd-stat-icon { background:#34a85315; color:#34a853; }
.pd-registration-stat:nth-child(3) .pd-stat-icon { background:#ea433515; color:#ea4335; }
.pd-registration-stat:nth-child(4) .pd-stat-icon { background:#f9a82515; color:#a66b00; }
.pd-directory-main { min-width:0; display:grid; gap:16px; }
.pd-directory-main .pd-filters { align-items:end; }
.pd-directory-main .pd-field { flex:1; }
.pd-student-table { background:var(--pd-surface); border-radius:10px; box-shadow:0 2px 8px #0000000a; min-width:0; overflow:hidden; }
.pd-student-table table { min-width:780px; }
.pd-row-actions { display:flex; gap:2px; }
.pd-row-actions svg { width:15px; height:15px; }
.pd-student-table [data-action=registration] { background:none; padding:0; border:0; }
.pd-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.pd textarea { font:inherit; background:var(--pd-surface); color:var(--pd-text); border:1px solid var(--pd-border); border-radius:7px; padding:10px; width:100%; resize:vertical; }
.pd textarea:focus-visible,.pd-tt-card:focus-visible { outline:3px solid #7fa9f4; outline-offset:2px; }
.pd-form-error { color:#c2392a!important; font-size:13px; }
.pd-form-error:empty { display:none; }
.pd-edt-layout { display:grid; grid-template-columns:220px minmax(0,1fr); align-items:start; gap:20px; }
.pd-edt-layout>div,.pd-edt-main { min-width:0; }
.pd-edt-main { display:grid; gap:16px; }
.pd-week-nav { display:flex; align-items:center; justify-content:space-between; gap:6px; flex-wrap:wrap; }
.pd-week-nav .pd-btn { font-size:12px!important; padding:7px 10px; }
.pd-week-nav [data-step="0"] { font-weight:600; }
.pd-tt-card { background:var(--pd-surface); border:1px solid var(--pd-border); border-radius:10px; overflow-x:auto; padding-bottom:8px; scrollbar-width:thin; }
.pd-tt-head,.pd-tt-grid { display:grid; grid-template-columns:52px repeat(7,minmax(0,1fr)); min-width:920px; }
.pd-tt-head { background:var(--pd-rail); border-bottom:1px solid var(--pd-border); }
.pd-tt-head>div { padding:12px 4px; text-align:center; font-size:12px; color:var(--pd-muted); border-left:1px solid var(--pd-border); }
.pd-tt-head strong { display:block; font-size:14px; color:var(--pd-text); }
.pd-tt-grid { height:660px; }
.pd-tt-axis,.pd-tt-col { position:relative; min-width:0; }
.pd-tt-axis>span { position:absolute; right:8px; font-size:11px; color:var(--pd-muted); transform:translateY(-50%); }
.pd-tt-axis>span:first-child { transform:none; }
.pd-tt-col { border-left:1px solid var(--pd-border); }
.pd-tt-line { position:absolute; left:0; right:0; border-top:1px solid var(--pd-border); }
.pd-tt-block { position:absolute; left:3px; right:3px; width:calc(100% - 6px); display:flex; flex-direction:column; align-items:flex-start; padding:7px; overflow:hidden; text-align:left; border:1px solid color-mix(in srgb,var(--lesson-color) 35%,var(--pd-surface)); border-left:3px solid var(--lesson-color); border-radius:5px; background:color-mix(in srgb,var(--lesson-color) 22%,var(--pd-surface)); color:var(--lesson-color); line-height:1.3; }
.pd-tt-block:hover { filter:brightness(.96); box-shadow:0 2px 6px #00000018; }
.pd-tt-subject { font-size:12px; line-height:1.3; }
.pd-tt-type { font-size:10px; opacity:.9; }
.pd-tt-time { font-size:11px; font-weight:600; margin:4px 0; }
.pd-tt-meta { display:flex; align-items:center; gap:4px; font-size:10px; }
.pd-tt-meta svg { width:10px; height:10px; }
.pd-dark .pd-tt-block,.pd-dark .pd-tt-agenda-item { color:color-mix(in srgb,var(--lesson-color) 60%,white); }
.pd-tt-legend { display:flex; flex-wrap:wrap; gap:8px 16px; font-size:11px; color:var(--pd-muted); }
.pd-tt-legend>span { display:flex; align-items:center; gap:6px; }
.pd-tt-legend i { width:10px; height:10px; border-radius:2px; }
.pd-tt-agenda { display:none; }
@media(max-width:1200px) {
  .pd-registration-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:1024px) {
  .pd-edt-layout { grid-template-columns:1fr; }
}
@media(max-width:768px) {
  #pd-app.collapsed .pd-brand-home { justify-content:flex-start; }
  #pd-app.collapsed .pd-brand-home strong { display:block; }
}
@media(max-width:640px) {
  .pd-registration-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .pd-registration-stat { padding:12px 10px; gap:8px; }
  .pd-registration-stat .pd-stat-icon { width:28px; height:28px; }
  .pd-registration-stat strong { font-size:21px; }
  .pd-page-actions { width:100%; }
  .pd-tt-card { display:none; }
  .pd-tt-agenda { display:grid; gap:12px; }
  .pd-tt-agenda section { border:1px solid var(--pd-border); border-radius:10px; background:var(--pd-surface); padding:12px; }
  .pd-tt-agenda h4 { font-size:14px; margin-bottom:10px; }
  .pd-tt-agenda-item { display:flex; align-items:flex-start; gap:12px; width:100%; background:color-mix(in srgb,var(--lesson-color) 12%,var(--pd-surface)); color:var(--lesson-color); border:0; border-left:3px solid var(--lesson-color); border-radius:6px; padding:10px; margin-top:8px; text-align:left; }
  .pd-tt-agenda-item>span:first-child { font-size:13px; font-weight:600; padding-top:1px; }
  .pd-tt-agenda-item>span:first-child small { display:block; font-size:11px; font-weight:400; }
  .pd-tt-agenda-item>span:last-child { display:flex; flex-direction:column; gap:2px; }
  .pd-tt-agenda-item .pd-tt-subject { font-size:14px; }
  .pd-tt-agenda-item .pd-tt-time { display:none; }
  .pd-tt-agenda-item .pd-tt-type,.pd-tt-agenda-item .pd-tt-meta { font-size:11px; }
  .pd-tt-empty { font-size:12px; font-style:italic; }
  .pd-week-nav .pd-btn { padding:6px; font-size:10px!important; }
  .pd-week-nav [data-step="0"] { order:-1; flex-basis:100%; }
  .pd-form-grid { grid-template-columns:1fr; gap:0; }
  .pd-year-header,.pd-year-periods { padding:14px; }
}

/* Give the product preview the viewport width while retaining the hero text measure. */
.hero-inner.container { width:min(1600px,calc(100% - 48px)); }
.pd-school { display:flex; align-items:center; gap:12px; font-size:clamp(17px,1.65vw,24px); }
.pd-school>img { flex-shrink:0; width:42px; height:46px; object-fit:contain; }
.pd-school>span { overflow:hidden; text-overflow:ellipsis; }
.pd-school-crest { flex-shrink:0; width:72px; height:81px; object-fit:contain; }
@media(max-width:768px) {
  .hero-inner.container { width:calc(100% - 24px); }
  .pd-school { display:none; }
}
