@layer reset, base, layout, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
}
@layer base {
  :root { --navy:#142d42; --navy-deep:#102536; --green:#23745c; --green-soft:#e9f4ee; --ink:#243745; --muted:#667781; --line:#e4eaed; --paper:#f4f7f8; --radius:16px; font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color:var(--ink); background:var(--paper); font-size:16px; }
  body { min-width:320px; line-height:1.55; }
  button, a, select { touch-action:manipulation; }
  a { color:inherit; text-decoration:none; }
  button { cursor:pointer; }
  button:disabled { cursor:not-allowed; opacity:.5; }
  :focus-visible { outline:3px solid #69ad96; outline-offset:3px; }
  h1 { font-size:2rem; letter-spacing:-.055em; font-weight:650; line-height:1.25; }
  h2 { font-size:1.14rem; letter-spacing:-.025em; font-weight:650; line-height:1.4; }
  h3 { font-size:1.02rem; font-weight:650; }
  p + p { margin-top:.7rem; }
  small, .small { font-size:.875rem; }
  .muted { color:var(--muted); }
  .icon { width:20px; height:20px; flex:none; stroke:currentColor; fill:none; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.7; }
  .skip-link { position:fixed; top:-80px; left:12px; z-index:100; padding:12px; background:white; }
  .skip-link:focus { top:8px; }
  input, select, textarea { width:100%; min-height:44px; padding:10px 12px; border:1px solid #d5dfe3; border-radius:9px; color:var(--ink); background:#fff; }
  select { appearance:none; padding-right:34px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23566b77' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-position:right 11px center; background-repeat:no-repeat; }
  textarea { min-height:110px; resize:vertical; line-height:1.6; }
  label { display:grid; gap:7px; font-size:.9rem; font-weight:550; }
  input[type=checkbox] { width:18px; min-height:18px; height:18px; accent-color:var(--green); }
  input[type=radio] { width:18px; min-height:18px; height:18px; accent-color:var(--green); }
  label.inline { display:flex; align-items:center; gap:8px; }
}
@layer layout {
  .sidebar { position:fixed; inset:0 auto 0 0; width:246px; z-index:30; display:flex; flex-direction:column; background:var(--navy); color:#c8d6df; padding:28px 16px 18px; }
  .brand { display:flex; align-items:center; gap:11px; padding:0 12px 30px; color:white; }
  .brand-mark { width:38px; height:42px; display:grid; place-items:center; border:1px solid #7d999e; border-radius:8px 8px 15px 15px; color:#d5eee3; font-family:Georgia,serif; font-size:1.55rem; }
  .brand strong { font-size:1.12rem; letter-spacing:.15em; font-weight:650; }
  .brand small { display:block; font-size:.75rem; color:#b3c5cd; letter-spacing:.025em; margin-top:1px; }
  .nav-label { font-size:.75rem; text-transform:uppercase; letter-spacing:.15em; color:#99adb9; padding:16px 15px 10px; }
  .nav-item { display:flex; align-items:center; gap:13px; border-radius:9px; min-height:47px; margin:4px 0; padding:11px 14px; font-size:.9rem; font-weight:500; }
  .nav-item:hover { background:#ffffff0b; color:white; }
  .nav-item.active { background:#2e514f; color:#e7fff4; box-shadow:inset 3px 0 #92cdb5; }
  .nav-item .icon { width:19px; height:19px; opacity:.85; }
  .sidebar-bottom { margin-top:auto; padding:24px 12px 0; }
  .school { display:flex; gap:10px; align-items:center; padding-top:19px; border-top:1px solid #ffffff20; }
  .school .icon { color:#b7d6c6; width:24px; height:24px; }
  .school strong { display:block; color:#e7edef; font-size:.875rem; font-weight:550; }
  .school small { color:#aabdc8; font-size:.75rem; }
  .workspace { margin-left:246px; min-height:100vh; }
  .preview-strip { min-height:33px; display:flex; align-items:center; justify-content:center; gap:8px; background:#edf2ed; color:#48634e; font-size:.8rem; border-bottom:1px solid #dfe7df; padding:6px 20px; text-align:center; }
  .preview-strip strong { font-weight:650; }
  .topbar { height:82px; background:#fff; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; padding:0 38px; gap:20px; }
  .breadcrumb { color:var(--muted); font-size:.875rem; display:flex; gap:12px; align-items:center; }
  .breadcrumb span { color:#aab7bf; }
  .top-actions { display:flex; align-items:center; gap:14px; }
  .course-select { min-width:145px; width:auto; font-size:.875rem; min-height:40px; background-color:#f8fafb; }
  .avatar { width:39px; height:39px; border-radius:50%; display:grid; place-items:center; color:var(--navy); background:#e7eeed; font-size:.875rem; font-weight:650; flex:none; }
  .profile-label { display:flex; align-items:center; gap:10px; border-left:1px solid var(--line); padding-left:16px; }
  .profile-label strong { display:block; font-size:.875rem; font-weight:600; }
  .profile-label small { font-size:.75rem; color:var(--muted); }
  main { max-width:1510px; margin:0 auto; padding:34px 38px 44px; }
  .page-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:25px; }
  .page-head p { color:var(--muted); font-size:.95rem; margin-top:7px; }
  .page-head .btn { margin-top:3px; flex:none; }
  .eyebrow { font-size:.75rem; color:var(--muted); letter-spacing:.12em; text-transform:uppercase; margin-bottom:7px; }
  .grid { display:grid; gap:22px; }
  .cols-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cols-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .cols-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .home-columns { grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr); align-items:start; }
  .stack { display:grid; gap:22px; }
  .section-gap { margin-top:24px; }
  .flex { display:flex; align-items:center; gap:10px; }
  .between { justify-content:space-between; }
  .wrap { flex-wrap:wrap; }
  .align-start { align-items:flex-start; }
  .card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
  .card-pad { padding:24px; }
  .card-head { padding:21px 24px 17px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .card-foot { border-top:1px solid var(--line); padding:13px 24px; color:var(--muted); font-size:.875rem; }
  .card-head h2 { display:flex; align-items:center; gap:9px; }
  footer { margin-top:30px; padding-top:20px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:16px; color:var(--muted); font-size:.8rem; }
}
@layer components {
  .btn { display:inline-flex; justify-content:center; align-items:center; gap:8px; border:1px solid transparent; border-radius:9px; padding:10px 15px; min-height:43px; font-size:.875rem; font-weight:600; line-height:1.4; background:var(--green); color:#fff; }
  .btn:hover { filter:brightness(.96); }
  .btn.secondary { background:white; color:var(--ink); border-color:#dbe4e7; }
  .btn.quiet { color:var(--green); background:transparent; padding:7px 0; min-height:36px; }
  .btn.light { color:var(--navy); background:#fff; }
  .btn.ghost { border-color:#ffffff45; color:#edf7f3; background:transparent; }
  .btn.danger { background:#fff; color:#ab453e; border-color:#e7c9c5; }
  .icon-button { display:inline-grid; place-items:center; width:40px; height:40px; border:1px solid var(--line); border-radius:9px; background:white; color:var(--muted); flex:none; }
  .link { color:var(--green); font-size:.875rem; font-weight:600; }
  .hero { border-radius:var(--radius); color:#fff; padding:30px 34px; background:var(--navy); position:relative; overflow:hidden; min-height:209px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
  .hero .eyebrow { color:#accbbc; margin-bottom:10px; }
  .hero h2 { font-size:1.8rem; letter-spacing:-.045em; line-height:1.3; font-weight:550; max-width:510px; }
  .hero p { color:#c0d0d6; margin-top:10px; font-size:.9rem; max-width:490px; }
  .hero .flex { margin-top:22px; }
  .hero-art { position:relative; width:210px; height:150px; flex:none; opacity:.9; }
  .art-card { position:absolute; border:1px solid #a7ccb25e; background:#ffffff08; border-radius:13px; width:120px; height:86px; display:grid; place-items:center; transform:rotate(-9deg); }
  .art-card .icon { width:34px; height:34px; color:#b9d8bd; }
  .art-card:nth-child(2) { top:40px; left:60px; transform:rotate(9deg); background:#3a645b; }
  .art-card:nth-child(3) { top:10px; left:142px; width:39px; height:39px; border-radius:50%; background:#dfdca7; transform:rotate(0); }
  .art-card:nth-child(3) .icon { width:20px; height:20px; color:#405b43; }
  .stat { padding:20px 21px; }
  .stat-top { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px; }
  .stat-label { color:var(--muted); font-size:.85rem; }
  .stat-value { display:block; font-size:2rem; line-height:1.25; letter-spacing:-.045em; font-weight:650; }
  .stat-note { font-size:.8rem; color:var(--muted); margin-top:8px; }
  .icon-tile { width:39px; height:39px; border-radius:10px; display:grid; place-items:center; background:#eef4f1; color:#32775e; flex:none; }
  .icon-tile.blue { background:#eaf1f8; color:#547fa7; }
  .icon-tile.purple { background:#f0edf8; color:#8970b3; }
  .icon-tile.orange { background:#fcf1e7; color:#ad7c4c; }
  .icon-tile.teal { background:#e8f4f4; color:#47858a; }
  .icon-tile.rose { background:#f8edf0; color:#ad6d81; }
  .pill { display:inline-flex; align-items:center; gap:5px; border-radius:6px; padding:4px 8px; background:#f0f3f5; color:#657985; font-size:.78rem; font-weight:550; white-space:nowrap; }
  .pill.green { color:#24664d; background:#e9f4ed; }
  .pill.orange { color:#916339; background:#faf0df; }
  .pill.blue { color:#3e729c; background:#eaf2fa; }
  .pill.red { color:#a14d48; background:#faeeec; }
  .pill.purple { color:#795fa5; background:#f0ebf9; }
  .list-row { display:flex; gap:13px; align-items:center; padding:15px 24px; border-top:1px solid #edf1f3; }
  .list-row:first-child { border-top:0; }
  .list-main { min-width:0; flex:1; }
  .list-main strong { display:block; font-weight:550; font-size:.9rem; }
  .list-main small { display:block; color:var(--muted); margin-top:3px; font-size:.8rem; }
  .task-check { width:24px; height:24px; flex:none; padding:0; border-radius:6px; border:1px solid #cad7d8; background:white; color:var(--green); display:grid; place-items:center; }
  .task-check.done { background:var(--green-soft); border-color:#c1dfce; }
  .task-check .icon { width:15px; height:15px; }
  .completed .list-main strong { text-decoration:line-through; color:var(--muted); }
  .priority-mini { padding:16px 24px; display:flex; gap:12px; border-top:1px solid #edf1f3; }
  .priority-marker { width:4px; background:#86b79d; border-radius:5px; flex:none; }
  .priority-mini strong { display:block; font-size:.9rem; font-weight:550; }
  .priority-mini p { font-size:.8rem; color:var(--muted); margin-top:4px; }
  .event-date { width:43px; border:1px solid var(--line); border-radius:9px; text-align:center; padding:4px 3px; flex:none; line-height:1.2; }
  .event-date strong { display:block; font-size:1.1rem; }
  .event-date small { text-transform:uppercase; color:var(--muted); font-size:.7rem; }
  .quick-access { display:flex; gap:12px; flex-wrap:wrap; }
  .quick-access a { display:flex; align-items:center; gap:10px; padding:13px 16px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:.875rem; }
  .quick-access .icon { color:var(--green); }
  .tabs { display:flex; gap:24px; border-bottom:1px solid #dce5e8; margin-bottom:24px; overflow-x:auto; }
  .tab { font-size:.9rem; color:var(--muted); white-space:nowrap; padding:12px 1px; border:0; border-bottom:2px solid transparent; background:transparent; }
  .tab.active { color:var(--green); border-bottom-color:var(--green); font-weight:600; }
  .filters { display:flex; gap:12px; flex-wrap:wrap; align-items:end; margin-bottom:21px; }
  .filters label { flex:1; min-width:150px; font-size:.8rem; }
  .filters .search { flex:2; }
  .table-wrap { overflow-x:auto; }
  table { width:100%; border-collapse:collapse; text-align:left; font-size:.875rem; }
  th { background:#f8fafb; color:var(--muted); font-size:.75rem; font-weight:550; letter-spacing:.015em; padding:13px 20px; border-bottom:1px solid var(--line); white-space:nowrap; }
  td { padding:16px 20px; border-bottom:1px solid #edf1f3; vertical-align:middle; }
  tr:last-child td { border-bottom:0; }
  td strong { font-weight:550; display:block; }
  td small { color:var(--muted); font-size:.78rem; display:block; margin-top:2px; }
  .progress { background:#edf2f2; height:7px; border-radius:9px; overflow:hidden; }
  .progress > span { display:block; height:100%; background:#5b9e7e; border-radius:9px; }
  .chart-bars { height:170px; display:flex; gap:24px; align-items:flex-end; padding:10px 7px 0; border-bottom:1px solid var(--line); }
  .chart-col { flex:1; display:flex; align-items:center; flex-direction:column; height:100%; justify-content:flex-end; gap:6px; }
  .chart-col .bar { width:100%; max-width:60px; min-height:3px; background:#9dc5b2; border-radius:5px 5px 0 0; }
  .chart-col strong { font-size:.8rem; color:#4f6c60; }
  .chart-labels { display:flex; gap:24px; padding:8px 7px 0; color:var(--muted); font-size:.78rem; text-align:center; }
  .chart-labels span { flex:1; }
  .bar-row { display:grid; grid-template-columns:100px 1fr 45px; gap:12px; align-items:center; font-size:.875rem; margin:16px 0; }
  .bar-row .progress { height:9px; }
  .priority-card { padding:25px; }
  .priority-card h2 { font-size:1.2rem; margin:13px 0 10px; }
  .priority-card p { color:var(--muted); font-size:.9rem; }
  .chip-list { display:flex; flex-wrap:wrap; gap:6px; margin:16px 0; }
  .priority-actions { margin-top:18px; border-top:1px solid var(--line); padding-top:17px; }
  .priority-actions ul { padding-left:20px; font-size:.9rem; margin:10px 0 0; }
  .priority-actions li + li { margin-top:8px; }
  .department-card { padding:24px; transition:box-shadow .16s, transform .16s; display:block; }
  .department-card:hover { box-shadow:0 5px 18px #122e4009; transform:translateY(-2px); }
  .department-card h2 { margin:20px 0 5px; font-size:1.15rem; }
  .department-card p { color:var(--muted); font-size:.875rem; }
  .department-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:20px; margin-top:20px; border-top:1px solid var(--line); font-size:.8rem; color:var(--muted); }
  .note { border:1px solid #dce9e2; border-radius:10px; background:#f0f7f3; color:#476957; padding:14px 17px; font-size:.875rem; }
  .note.warning { background:#fcf7ed; border-color:#eee3c9; color:#876d3d; }
  .empty { padding:45px 24px; text-align:center; color:var(--muted); }
  .empty .icon { width:32px; height:32px; margin-bottom:12px; opacity:.6; }
  .empty h2 { color:var(--ink); margin-bottom:6px; }
  .empty p { font-size:.9rem; max-width:450px; margin:0 auto 18px; }
  .roadmap-layout { display:grid; grid-template-columns:245px minmax(0,1fr); gap:22px; }
  .indicator-nav { padding:10px; align-self:start; max-height:610px; overflow:auto; }
  .indicator-button { display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:white; border:0; border-radius:8px; padding:12px 11px; color:var(--muted); font-size:.875rem; }
  .indicator-button.active { color:var(--green); background:#ecf5f0; }
  .indicator-code { border:1px solid #d6e3df; border-radius:7px; padding:3px 7px; min-width:38px; text-align:center; color:var(--green); font-weight:600; }
  details { border:1px solid var(--line); border-radius:11px; background:white; }
  summary { cursor:pointer; font-weight:550; padding:16px 18px; font-size:.9rem; }
  details > .details-body { padding:0 18px 18px; }
  .field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
  .field-grid .full { grid-column:1 / -1; }
  .form-stack { display:grid; gap:20px; }
  .form-foot { border-top:1px solid var(--line); margin-top:22px; padding-top:19px; display:flex; gap:10px; justify-content:flex-end; align-items:center; flex-wrap:wrap; }
  .form-foot .muted { margin-right:auto; font-size:.8rem; }
  .question { padding:16px 0; border-top:1px solid var(--line); }
  .question:first-child { border-top:0; padding-top:0; }
  .question p { font-size:.9rem; margin-bottom:10px; }
  .question select { max-width:210px; }
  .memory-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:20px; }
  .memory-menu { padding:10px; align-self:start; }
  .memory-menu button { text-align:left; display:block; width:100%; padding:12px; background:transparent; border:0; border-radius:8px; color:var(--muted); font-size:.875rem; }
  .memory-menu button.active { background:var(--green-soft); color:var(--green); }
  .memory-editor { min-height:300px; }
  .topic { padding:18px 22px; border-top:1px solid var(--line); }
  .topic h3 { font-weight:550; font-size:.95rem; }
  .topic .flex { margin-top:10px; }
  .topic select { width:auto; min-width:175px; min-height:36px; font-size:.8rem; padding-top:6px; padding-bottom:6px; }
  .topic-conclusion { margin-top:12px; font-size:.875rem; padding:10px 13px; background:#f6f9f8; border-radius:8px; }
  .resource-link { display:flex; align-items:flex-start; gap:15px; padding:22px; }
  .resource-link strong { font-weight:550; display:block; margin-bottom:5px; }
  .resource-link small { display:block; color:var(--muted); }
  .resource-link:hover { border-color:#a9c8b9; }
  .connection { display:flex; gap:15px; padding:20px 24px; border-top:1px solid var(--line); align-items:center; }
  .connection .list-main small { max-width:550px; }
  dialog { width:min(780px, calc(100vw - 32px)); max-height:calc(100dvh - 45px); border:0; border-radius:18px; padding:0; color:var(--ink); box-shadow:0 20px 100px #1025363b; }
  dialog::backdrop { background:#1025367d; backdrop-filter:blur(3px); }
  .dialog-head { display:flex; justify-content:space-between; gap:20px; padding:24px 28px 20px; border-bottom:1px solid var(--line); align-items:center; }
  .dialog-head h2 { font-size:1.3rem; }
  .dialog-head p { font-size:.875rem; color:var(--muted); margin-top:5px; }
  .dialog-body { padding:22px 28px 26px; }
  .steps { display:flex; gap:6px; margin-bottom:24px; }
  .step { flex:1; border:0; border-bottom:3px solid #e6ecef; background:transparent; padding:8px 4px; font-size:.8rem; color:var(--muted); text-align:left; }
  .step.active { border-color:var(--green); color:var(--green); font-weight:600; }
  .errors { color:#a14d48; background:#fcf1ef; border:1px solid #efcec8; border-radius:9px; padding:12px 16px; font-size:.875rem; margin:15px 0; }
  .toast { position:fixed; bottom:25px; left:calc(50% + 100px); transform:translate(-50%,20px); z-index:100; background:var(--navy); color:white; border-radius:11px; padding:13px 20px; max-width:calc(100vw - 32px); box-shadow:0 6px 24px #10253626; font-size:.875rem; pointer-events:none; opacity:0; transition:.2s; }
  .toast.visible { opacity:1; transform:translate(-50%,0); }
  .mobile-menu { display:none; }
  .mobile-close { display:none; }
  .preview-tools { padding-top:18px; margin-top:20px; border-top:1px solid #ffffff20; }
  .preview-tools label { color:#b8cbd3; font-size:.75rem; font-weight:400; gap:7px; }
  .preview-tools select { color:#e2edef; background-color:#234154; border-color:#456071; font-size:.8rem; min-height:38px; }
  .chart-key { display:flex; gap:18px; color:var(--muted); font-size:.8rem; margin-top:17px; }
  .chart-key i { display:inline-block; width:9px; height:9px; background:#9dc5b2; border-radius:2px; margin-right:6px; }
  .no-wrap { white-space:nowrap; }
  [hidden] { display:none!important; }
  .sidebar { overflow-y:auto; }
  .event-card { display:flex; align-items:flex-start; gap:18px; padding:24px; }
  .event-card:hover { border-color:#a5c4b5; }
  .event-facts { display:grid; grid-template-columns:125px minmax(0,1fr); gap:10px 15px; font-size:.875rem; margin:21px 0; }
  .event-facts dt { color:var(--muted); }
  .event-facts dd { margin:0; overflow-wrap:anywhere; }
  .people-picks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .people-picks label { font-size:.875rem; align-items:flex-start; }
  fieldset { border:1px solid var(--line); border-radius:10px; padding:16px; }
  legend { color:var(--muted); font-size:.875rem; padding:0 6px; }
  .need-spec { border-top:1px solid var(--line); padding-top:18px; }
  .print-only { display:none; }
}
@layer responsive {
  @media (min-width:1600px) { main { padding-top:42px; } .hero { min-height:230px; } }
  @media (max-width:1180px) { .sidebar { width:221px; padding-left:12px; padding-right:12px; } .workspace { margin-left:221px; } main { padding:28px 25px; } .topbar { padding:0 25px; } .hero-art { width:155px; } .cols-4 { grid-template-columns:repeat(2,minmax(0,1fr)); } .cols-3 { grid-template-columns:repeat(2,minmax(0,1fr)); } .home-columns { grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr); } .profile-label small { display:none; } .profile-label strong { max-width:130px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } }
  @media (max-width:950px) { .home-columns { grid-template-columns:1fr; } .hero-art { display:none; } .profile-label strong { display:none; } .roadmap-layout { grid-template-columns:180px minmax(0,1fr); } .card-pad { padding:20px; } .memory-layout { grid-template-columns:1fr; } .memory-menu { display:flex; overflow:auto; } .memory-menu button { min-width:160px; } }
  @media (max-width:740px) { .sidebar { transform:translateX(-100%); width:260px; transition:transform .2s; box-shadow:6px 0 30px #10253628; } body.menu-open .sidebar { transform:translateX(0); } .workspace { margin-left:0; } .mobile-menu { display:inline-grid; } .topbar { height:70px; padding:0 18px; gap:10px; } .breadcrumb { display:none; } main { padding:24px 18px; } h1 { font-size:1.65rem; } .page-head { gap:12px; } .page-head .btn { font-size:.8rem; padding:10px; } .hero { padding:25px; } .hero h2 { font-size:1.55rem; } .hero p { font-size:.875rem; } .hero .flex { flex-wrap:wrap; } .cols-3, .cols-2 { grid-template-columns:1fr; } .cols-4 { gap:12px; } .stat { padding:15px; } .stat-label { font-size:.8rem; } .stat-value { font-size:1.7rem; } .stat .icon-tile { width:30px; height:30px; } .stat .icon { width:17px; height:17px; } .stat-top { gap:4px; } .stat-note { font-size:.75rem; } .top-actions { gap:10px; } .profile-label { padding-left:10px; } .course-select { min-width:135px; } .preview-strip { font-size:.75rem; padding:7px 12px; } .roadmap-layout { grid-template-columns:1fr; } .indicator-nav { display:flex; max-height:none; overflow:auto; } .indicator-button { min-width:120px; } .indicator-button > span:last-child { display:none; } .field-grid { grid-template-columns:1fr; } .field-grid .full { grid-column:auto; } .dialog-head { padding:20px; } .dialog-body { padding:20px; } .steps { gap:4px; } .step { font-size:.75rem; } .toast { left:50%; } .list-row { padding:15px 18px; } .card-head { padding-left:18px; padding-right:18px; } .priority-mini { padding-left:18px; padding-right:18px; } footer { flex-direction:column; } .card-head { align-items:flex-start; } .filters label { min-width:130px; } }
  @media (prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; } }
  @media (max-width:740px) { .page-head > .no-wrap { display:none; } .preview-strip { flex-wrap:wrap; line-height:1.35; } .preview-strip strong { white-space:nowrap; } .sidebar { overflow-y:auto; } }
  @media (max-width:740px) { .mobile-close { display:inline-grid; position:absolute; top:12px; right:10px; width:30px; height:30px; color:#d5e8e0; background:transparent; border-color:#ffffff30; } }
  @media (max-width:740px) { .event-card { padding:18px; gap:12px; } .event-facts { grid-template-columns:95px minmax(0,1fr); } .people-picks { grid-template-columns:1fr; } }
}
@media print {
  @page { size:A4; margin:18mm 15mm; }
  body { background:#fff; font-size:11pt; }
  .sidebar, .topbar, .preview-strip, .tabs, .no-print, footer, .toast, dialog, .skip-link, .page-head > .btn { display:none!important; }
  .workspace { margin:0; }
  main { padding:0; max-width:none; }
  main::before { content:'LEARNING · VISTA DE DISEÑO · DATOS DE EJEMPLO'; display:block; font-size:9pt; color:#667781; border-bottom:1px solid #d4dfe3; padding-bottom:12px; margin-bottom:22px; }
  .print-only { display:block; white-space:pre-wrap; }
  [data-print-replaced] { display:none!important; }
  .card { break-inside:avoid; border-color:#d4dfe3; box-shadow:none; }
  .grid, .home-columns, .roadmap-layout, .memory-layout { display:block; }
  .grid > * { margin-bottom:15px; }
  .hero { color:var(--ink); background:white; border:1px solid #d4dfe3; }
  .hero p { color:var(--muted); }
  .table-wrap { overflow:visible; }
  th { color:var(--ink); }
  thead { display:table-header-group; }
  button, select { display:none!important; }
  .print-label { display:block; }
  textarea { border:0; min-height:160px; }
}
.lv-checks{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}.lv-checks label{max-width:100%;overflow-wrap:anywhere}.lv-matrix fieldset{margin:0 0 18px;min-width:0}.lv-matrix textarea{min-height:80px}.lv-save-line{font-size:.82rem;color:var(--muted);margin:22px 0 0;overflow-wrap:anywhere}.save-error{color:#a33631}.lv-issue{display:block;text-align:left;background:none;border:0;color:inherit;text-decoration:underline;padding:7px 0;cursor:pointer}.lv-read-text{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:8px}.lv-evidence{border-left:3px solid #c6dbd3;padding:10px 14px;margin:12px 0;overflow-wrap:anywhere}.lv-evidence p{white-space:pre-wrap}.lv-foot{flex-wrap:wrap}#lv-search{margin-bottom:20px;align-items:end}#lv-search label{min-width:0}#lv-editor fieldset{min-width:0;border:1px solid #dfe6e2;border-radius:12px;padding:16px}#lv-editor legend{font-weight:600;padding:0 6px}@media(max-width:600px){#lv-search{display:grid;grid-template-columns:1fr}#lv-search .search{grid-column:1 / -1}#lv-search label{width:100%}.lv-foot .btn{flex:1 1 140px}.lv-checks{flex-direction:column}}

@layer components { .toast { width:max-content; max-width:min(520px,calc(100vw - 32px)); } }
.an-scope{font-weight:600;color:var(--green);margin-bottom:20px}.an-context{display:flex;flex-direction:column;gap:6px;margin:20px 0;padding:16px;border-left:3px solid #639981;background:#eaf2ee;overflow-wrap:anywhere}.an-context span,.an-context small{font-size:.875rem;color:var(--muted)}.an-subtitle{margin:8px 0 20px}.an-month-scroll{overflow-x:auto;margin:18px 0 12px}.an-months{display:flex;gap:10px;min-width:470px;align-items:end}.an-month{flex:1;display:flex;flex-direction:column;align-items:center;font-size:.875rem}.an-month-track{height:120px;display:flex;align-items:end}.an-month-track span{display:block;width:18px;max-width:100%;background:#609d85;border-radius:4px 4px 0 0}.an-month small{margin-top:7px}.an-category{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.an-category strong{font-size:.875rem}.an-category small{display:block;color:var(--muted)}.an-number{font-size:1.75rem;color:var(--green)}.an-row-actions{display:flex;flex-direction:column;align-items:start;gap:6px}.an-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.an-evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:22px}.an-evidence-grid dt{font-weight:600;font-size:.875rem;margin-bottom:8px}.an-evidence-grid dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.875rem}.an-preserve{white-space:pre-wrap;overflow-wrap:anywhere}.an-tabs{overflow-x:auto;max-width:100%}#an-team label{min-width:150px}#an-goal-form .inline{align-self:center}@media(max-width:740px){.an-evidence-grid{grid-template-columns:1fr}.an-filter-card .filters,#an-team{display:grid;grid-template-columns:1fr 1fr}.an-filter-card .filters label,#an-team label{min-width:0}.an-tabs .tab{white-space:nowrap;flex-shrink:0}.an-context strong{font-size:.875rem}.an-category{align-items:flex-start}}@media print{.an-filter-card,#an-team,.an-pager,.an-tabs{display:none!important}.an-month-scroll{overflow:visible}.an-evidence-grid{display:block}.an-evidence-grid>div{margin-bottom:16px}.an-context{break-inside:avoid}.an-month-track span{print-color-adjust:exact}}
@layer layout { .grid > * { min-width:0; } }
.sip-preserve{white-space:pre-wrap;overflow-wrap:anywhere}.sip-objective{margin:22px 0;font-size:1rem;line-height:1.75}.sip-indicators{display:grid;gap:14px;margin:20px 0;font-size:.875rem}.sip-indicators .chip-list{margin-top:8px}.sip-actions{padding-left:22px;margin:15px 0}.sip-actions li{margin:0 0 15px;padding-left:4px;line-height:1.65;overflow-wrap:anywhere}.sip-summary{align-items:start}.sip-summary h2{line-height:1.35}.sip-summary-text{margin-top:18px;font-size:.875rem;line-height:1.75}.sip-my-actions{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.sip-history-item{padding:18px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.sip-history-item:last-child{border-bottom:0}.sip-draft-note{display:flex;flex-direction:column;gap:14px}.sip-save-line{font-size:.875rem;margin:20px 0}.sip-roles{max-width:100%;overflow-x:auto}.sip-roles .tab{flex-shrink:0}.sip-action-editor{border:1px solid var(--line);border-radius:12px;padding:14px}.sip-action-editor .btn{margin-top:8px}#sip-editor textarea[name="objective"]{min-height:220px}@media(max-width:740px){.sip-summary{grid-template-columns:1fr}.sip-roles .tab{white-space:nowrap}.sip-objective{font-size:1rem}.sip-draft-note .btn{flex:1 1 140px}}@media print{.sip-draft-note,.sip-action-editor .btn{display:none!important}.sip-summary{display:block}.sip-actions li{break-inside:avoid}.sip-preserve{white-space:pre-wrap}}
@media(max-width:740px){.sip-page-head{flex-direction:column;align-items:flex-start}.sip-page-head>div{min-width:0;max-width:100%}.sip-page-head .flex{flex-wrap:wrap}}

/* Roadmaps: lectura, evaluación y comparación por indicador. */
.rm-head,.rm-editor-foot{flex-wrap:wrap;gap:12px}.wrap{flex-wrap:wrap;gap:12px}
.rm-preserve{white-space:pre-wrap;overflow-wrap:anywhere}.rm-definition{font-size:16px;line-height:1.65;margin:22px 0}
.rm-alignment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.rm-alignment-grid>div{display:grid;gap:10px;padding:16px;border:1px solid var(--line);border-radius:8px}.rm-alignment-grid strong{font-size:26px}.rm-alignment-grid small{color:var(--muted)}
.rm-read-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:22px}.rm-read-grid dt{font-size:12px;font-weight:700;color:var(--muted);margin-bottom:8px}.rm-read-grid dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}
.rm-question{min-width:0;border:1px solid var(--line);border-radius:8px;padding:18px;margin:26px 0}.rm-question legend{padding:0 6px;font-size:12px;font-weight:700;color:var(--muted)}.rm-question>p{margin-bottom:18px}.rm-answer{display:grid;grid-template-columns:minmax(160px,1fr) minmax(0,2fr);gap:20px;align-items:start}.rm-answer textarea{margin-top:12px}.rm-history-question,.rm-history-item{padding:16px 0;border-bottom:1px solid var(--line)}.rm-save-line{font-size:13px;margin:20px 0;color:var(--muted)}.rm-save-line.save-error{color:#a63d22}.rm-link{border-bottom:1px solid var(--line);padding-bottom:12px}
#rm-filter .filters{align-items:end;flex-wrap:wrap}#rm-filter .filters>label{min-width:160px;flex:1}#rm-editor input[type=file]{width:100%;max-width:100%}.roadmap-layout>*,.roadmap-layout .stack>*{min-width:0}
@media(max-width:720px){.rm-alignment-grid,.rm-read-grid,.rm-answer{grid-template-columns:1fr}.rm-head>.btn{width:100%}.rm-editor-foot>.btn{width:100%}.rm-question{padding:14px}.rm-head h1{overflow-wrap:anywhere}}

/* Preferencia de diseño: tablas sencillas para lectura y comparación. */
.data-table{background:#fff;border:1px solid var(--line);border-radius:5px;max-width:100%;min-width:0;overflow:hidden}.data-table .table-wrap{max-width:100%;overscroll-behavior-x:contain}.data-table .table-wrap:focus-visible{outline:2px solid var(--green);outline-offset:-2px}.data-table caption{text-align:left;padding:15px 18px;font-size:14px;font-weight:650;border-bottom:1px solid var(--line);color:var(--ink)}.data-table td{vertical-align:top;line-height:1.55}.data-table tbody th{white-space:normal;background:white;color:var(--ink);font-size:14px;letter-spacing:normal;vertical-align:top;text-align:left}.data-table th,.data-table td{padding:13px 18px}.data-table tbody tr:hover{background:#f8fbf9}.data-table tbody tr:last-child th{border-bottom:0}.data-table .summary-value{font-size:21px;font-weight:650;color:var(--green);width:130px;white-space:nowrap}.summary-table tbody th{width:32%;font-weight:550}.summary-table td:last-child{color:var(--muted)}.table-preserve{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.table-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.table-actions .btn{white-space:nowrap}.table-form{min-width:220px;max-width:340px}.table-form textarea{min-height:80px}.data-table td p{margin:8px 0}.data-table details{min-width:150px}.data-table td select{min-width:160px}.data-table li{margin-bottom:10px}.card{border-radius:5px;box-shadow:none}.grid.cols-2,.grid.home-columns{grid-template-columns:minmax(0,1fr)}.home-columns>.stack{min-width:0}.grid>*{min-width:0}.card>.data-table{border:0;border-radius:0}.card-pad>.data-table{margin-top:16px}.data-table .sip-indicators{min-width:150px;margin:0}.data-table .sip-actions{min-width:250px;margin:0;padding-left:18px}.data-table>div>table:has(>thead>tr>th:nth-child(6)){min-width:930px}.data-table>div>table:has(>thead>tr>th:nth-child(8)){min-width:1050px}.data-table .pill{white-space:normal}.data-table th{white-space:normal}
@media(max-width:740px){.summary-table th,.summary-table td{padding:11px 12px}.summary-table .summary-value{font-size:18px;width:auto}.data-table>div>table:has(>thead>tr>th:nth-child(4)){min-width:680px}.data-table caption{padding:13px 14px}.data-table td,.data-table th{font-size:13px}.data-table .table-wrap{scrollbar-width:thin}.data-table .table-wrap::after{content:'';display:block;height:1px}}
@media print{.data-table{overflow:visible;break-inside:auto}.data-table .table-wrap{overflow:visible}.data-table table{min-width:0!important}.data-table th,.data-table td{padding:7px;font-size:10px;overflow-wrap:anywhere}.data-table .table-actions,.data-table .table-form button{display:none}.data-table details{min-width:0}.data-table .sip-actions{min-width:0}.data-table tbody tr:hover{background:white}}
.rm-count{display:block;white-space:nowrap;font-size:12px;line-height:1.9}.data-table tbody th{border-bottom:1px solid #edf1f3}.data-table tbody tr:last-child th{border-bottom:0}.data-table table:has(.rm-count)>thead th:first-child{width:26%}.data-table table:has(.rm-count) td:last-child{white-space:nowrap}
.stack{grid-template-columns:minmax(0,1fr)}.stack>*{min-width:0}.table-scroll-hint{display:none;margin:0;padding:9px 14px;background:#f8fafb;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}@media(max-width:740px){.table-scroll-hint{display:block}}@media print{.table-scroll-hint{display:none!important}}

/* Actas de departamento: tablas, aportaciones y archivo acumulado. */
.dept-rich{font-size:14px;line-height:1.65;overflow-wrap:anywhere;margin-top:8px}.dept-rich-line{white-space:pre-wrap;min-height:1.5em}.dept-rich strong{display:inline}.dept-rich .link{overflow-wrap:anywhere}.dept-image{display:block;max-width:100%;height:auto;margin:auto}#da-editor{min-width:0}#da-editor .people-picks{grid-template-columns:repeat(2,minmax(0,1fr))}#da-editor fieldset{min-width:0}#da-editor textarea{min-height:100px}#da-editor .errors{white-space:pre-wrap}#da-editor .save-error{color:#a63d22}.data-table .dept-rich{font-size:13px}.data-table td:has(.dept-rich){min-width:180px}.data-table td:has(.dept-rich):has(>.table-actions){min-width:120px}.data-table td .btn{font-size:12px}.data-table td .dept-rich-line a{white-space:normal}.tabs{max-width:100%;overflow-x:auto}.tabs>.tab{flex-shrink:0;white-space:nowrap}
@media(max-width:740px){#da-editor .people-picks{grid-template-columns:1fr}.filters{max-width:100%;flex-wrap:wrap}.filters>label{max-width:100%}.dept-rich{font-size:13px}.data-table>div>table:has(>thead>tr>th:nth-child(4)){min-width:680px}}

@layer components {
 .memory-figure {display:block;max-width:100%;height:auto;margin:12px auto;object-fit:contain;max-height:650px;}
 .memory-chart {display:block;width:100%;max-width:760px;height:auto;min-width:500px;}
 figure:has(.memory-chart) {overflow-x:auto;}
 #mm-editor fieldset {min-width:0;border:1px solid var(--line);padding:16px;border-radius:8px;}
 #mm-editor .table-wrap {max-width:100%;}
}

.resource-preview{display:block;max-width:100%;height:auto;margin:auto;border:1px solid var(--line);border-radius:8px}

.admin-json{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:.875rem;}
#ad-editor fieldset{border:1px solid var(--border,#dbe2e4);border-radius:8px;padding:14px;min-width:0;}
#ad-editor legend{font-weight:700;padding:0 6px;}

/* Revisión global: lectura compacta, controles claros y tablas como eje. */
@media screen {
 :root { --radius:10px; }
 .sidebar {padding:18px 12px 12px;}
 .brand {padding:0 10px 18px;}
 .nav-item {min-height:39px;margin:2px 0;padding:8px 11px;gap:10px;}
 .sidebar-bottom {padding:12px 8px 0;}
 .school {padding-top:12px;}
 .preview-tools {padding-top:12px;margin-top:12px;}
 .topbar {height:60px;padding:0 26px;}
 .preview-strip {min-height:25px;padding:3px 14px;}
 main {max-width:none;padding:22px 26px 30px;}
 h1 {font-size:1.75rem;letter-spacing:-.04em;}
 .page-head {margin-bottom:16px;gap:14px;}
 .page-head p {margin-top:4px;font-size:.9rem;}
 .section-gap {margin-top:16px;}
 .stack {gap:16px;}
 .grid {gap:16px;}
 .card-pad {padding:16px;}
 .card-head {padding:13px 16px;}
 .card-foot {padding:10px 16px;}
 .btn {min-height:38px;padding:8px 12px;border-radius:6px;}
 .btn.quiet {min-height:32px;padding:5px 4px;}
 input,select {min-height:40px;padding-top:8px;padding-bottom:8px;}
 label {gap:5px;font-size:.875rem;}
 .tabs {gap:8px;margin-bottom:16px;scroll-padding:8px;}
 .tabs>.btn,.tabs>.tab {flex:0 0 auto;white-space:nowrap;min-height:38px;padding:8px 12px;font-size:.875rem;}
 .tabs>.btn {border-radius:5px 5px 0 0;}
 .tabs>.btn.quiet {color:var(--muted);}
 .tabs>.btn.primary {color:var(--green);background:var(--green-soft);border-bottom:2px solid var(--green);}
 .filter-bar {display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:12px;background:white;border:1px solid var(--line);border-radius:5px;}
 .filter-bar>label {flex:1 1 155px;min-width:0;}
 .filter-bar>label:first-child:has(input[type=text]),.filter-bar>label:first-child:has(input[type=search]) {flex:2 1 230px;}
 .filters {gap:10px;margin-bottom:14px;}
 .filters label {font-size:.875rem;}
 .form-foot {margin-top:14px;padding-top:12px;gap:8px;}
 .note {padding:12px 14px;}
 .reference-info {border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--muted);}
 .reference-info>summary {padding:9px 13px;font-size:.875rem;color:var(--ink);}
 .reference-info>.details-body,.reference-info>p {padding:0 13px 12px;font-size:.875rem;}
 .reference-info .section-gap {margin-top:10px;}
 .data-table caption {padding:10px 14px;}
 .data-table th,.data-table td {padding:10px 14px;line-height:1.45;}
 .data-table td,.data-table tbody th {font-size:.875rem;}
 .data-table td .btn {font-size:.875rem;}
 .data-table .dept-rich {font-size:.875rem;}
 .data-table tbody tr:focus-within {background:#f2f8f5;}
 .summary-table .summary-value {font-size:1.125rem;width:110px;}
 .summary-table tbody th {width:29%;}
 .summary-table caption,.card>.card-head+.data-table caption {position:absolute;width:1px;height:1px;padding:0;border:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
 .table-actions {flex-direction:row;flex-wrap:wrap;gap:4px 10px;}
 .cell-details>summary {padding:5px 0;font-size:.875rem;color:var(--green);}
 .data-table .cell-details {min-width:0;}
 .an-filter-card .filters {margin-bottom:10px;}
 .an-filter-card #an-more {border:0;}
 .an-filter-card #an-more>summary {padding:6px 0;}
 .an-filter-card .form-foot {margin-top:8px;padding-top:8px;}
 .an-context {padding:7px 10px;margin:12px 0;gap:2px;background:transparent;border-left:2px solid #639981;font-size:.875rem;}
 .an-scope {margin-bottom:12px;font-size:.875rem;}
 .sip-objective {margin:14px 0;line-height:1.6;}
 .sip-actions li {margin-bottom:8px;}
 .sip-indicators {gap:10px;margin:14px 0;}
 .rm-question {margin:16px 0;padding:14px;}
 .rm-definition {margin:14px 0;}
 footer {margin-top:22px;padding-top:12px;}
 .dialog-head {padding:18px 20px 14px;}
 .dialog-body {padding:16px 20px 20px;}
}
@media screen and (max-width:740px) {
 .sidebar {padding:18px 12px 12px;}
 .topbar {height:58px;padding:0 14px;}
 main {padding:18px 14px 24px;}
 h1 {font-size:1.5rem;}
 .page-head {flex-wrap:wrap;}
 .page-head>div {min-width:0;max-width:100%;}
 .page-head .btn {font-size:.875rem;}
 .tabs {gap:3px;}
 .tabs>.tab,.tabs>.btn {padding:9px 10px;}
 .filter-bar {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;}
 .filter-bar>label:first-child {grid-column:1/-1;}
 .filter-bar>.btn {align-self:end;}
 .summary-table .summary-value {width:auto;white-space:normal;overflow-wrap:normal;}
 .summary-table th,.summary-table td {padding:9px 10px;}
 .summary-table tbody th {width:30%;}
 .data-table th,.data-table td {font-size:.875rem;}
 .table-scroll-hint {padding:6px 10px;}
 .data-table caption {padding:10px 12px;}
 .card-head {padding:12px 14px;}
 .card-pad {padding:14px;}
 .reference-info {margin-top:12px;}
 .an-row-actions {gap:2px;}
}
@media screen {
 .document-status {display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;font-size:.875rem;color:var(--ink);margin:10px 0;}
 .document-status small {color:var(--muted);}
 .document-status strong {font-weight:600;}
 .data-table .cell-details[open] {min-width:220px;}
 .data-table .cell-details>summary {white-space:normal;}
 .home-columns .card-head+.data-table .table-scroll-hint {border-top:0;}
}
@media screen {
 .data-table .cell-details {border:0;border-radius:0;background:transparent;}
 .cell-details>.details-body {padding:8px 0;}
 .filter-options {flex:1 0 100%;border:0;border-radius:0;}
 .filter-options>summary {padding:6px 0;font-size:.875rem;}
 .filter-options>.field-grid {padding:10px 0;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
}
@media screen and (max-width:740px){.filter-bar>.filter-options{grid-column:1/-1}.filter-options>.field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.preview-tools [data-action="institutional-logout"]{color:#e4eeeb;padding-left:0}.preview-tools [data-action="institutional-logout"]:hover{color:#fff;text-decoration:underline}
