:root {
  color-scheme: light;
  --ink: #20352e;
  --muted: #50665b;
  --surface: #f4f7f5;
  --line: #dce6e0;
  --green: #255648;
  --mint: #e4f2ea;
  --blue: #e4edf8;
  --lilac: #eeeafa;
  --peach: #faeae1;
  --alert: #813a2e;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin-block: 0; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.025em; }
h1 { font-size: clamp(1.85rem, 3.1vw, 2.75rem); font-weight: 670; overflow-wrap: anywhere; }
h2 { font-size: 1.24rem; }
h3 { font-size: 1.06rem; }
p + p { margin-top: .65rem; }
a { color: inherit; text-decoration: none; }
small { font-size: .82rem; color: var(--muted); }
:focus-visible { outline: 3px solid #467f69; outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  width: fit-content; min-height: 42px; padding: .55rem .95rem;
  border: 1px solid #cddbd3; border-radius: 9px; background: #fff;
  color: var(--ink); font-size: .86rem; font-weight: 650; cursor: pointer; text-align: center;
}
button:hover, .button:hover { background: #eef4f0; }
.primary { background: var(--green); border-color: var(--green); color: white; }
.primary:hover { background: #194536; }
.skip { position: fixed; z-index: 10; top: 10px; left: 12px; background: white; padding: .5rem 1rem; transform: translateY(-160%); }
.skip:focus { transform: none; }
.sidebar {
  width: 224px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column;
  padding: 29px 21px 21px; background: white; border-right: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.05rem; font-weight: 760; line-height: 1.1; }
.brand-icon { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: white; letter-spacing: -.04em; }
.sidebar nav { display: grid; gap: 5px; margin-top: 39px; }
.sidebar nav a { padding: 10px 13px; border-radius: 9px; color: var(--muted); font-size: .93rem; font-weight: 600; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { background: var(--mint); color: var(--green); }
.profile { margin-top: auto; padding: 17px 9px 0; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.link-button { padding: 3px 0; border: 0; min-height: 30px; color: var(--muted); }
.link-button:hover { background: white; text-decoration: underline; }
.workspace { margin-left: 224px; padding: 0 clamp(24px, 3.2vw, 51px) 55px; max-width: 1700px; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 9px; min-height: 66px; margin-bottom: 26px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.environment { background: #e8efeb; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.page-header p { color: var(--muted); margin-top: 6px; }
.page-header > div:first-child { min-width: 0; }
.back, .subtle-link { color: var(--green); font-size: .88rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.back { display: inline-block; margin-bottom: 12px; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin: 0 0 24px; }
.metric { display: flex; min-height: 109px; flex-direction: column; justify-content: space-between; padding: 15px 17px; border: 1px solid transparent; border-radius: 13px; background: #ebf0ed; font-size: .89rem; font-weight: 650; }
.metric:hover, .metric[aria-current] { border-color: var(--green); }
.metric strong { font-size: 2.1rem; font-weight: 670; line-height: 1; }
.metric-vencidas { background: var(--peach); }
.metric-proximas { background: var(--mint); }
.metric-revision { background: var(--lilac); }
.metric-bloqueadas { background: var(--blue); }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; gap: 18px; }
.card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 20px 23px; }
.stack { display: grid; gap: 15px; }
.section-head, .actions, .labels { display: flex; align-items: center; gap: 9px; }
.section-head { justify-content: space-between; margin-bottom: 12px; }
.section-head h2, .row > span:first-child { min-width: 0; }
.labels { margin-bottom: 8px; flex-wrap: wrap; }
.actions { flex-wrap: wrap; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; justify-content: space-between; min-height: 61px; gap: 12px; padding: 10px 2px; }
a.row:hover { background: #f5f9f6; }
.row strong { display: block; font-size: .94rem; font-weight: 650; overflow-wrap: anywhere; }
.row small, dd small { display: block; overflow-wrap: anywhere; }
.row-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 10px; text-align: right; }
.row-meta, time { font-size: .8rem; color: var(--muted); }
.row-meta time { white-space: nowrap; }
.pill { width: fit-content; display: inline-block; border-radius: 7px; background: #edf2ee; color: #385146; padding: 3px 8px; font-size: .76rem; font-weight: 700; text-align: center; }
.pill.alert { background: var(--peach); color: var(--alert); }
.kind-tesis { background: var(--mint); }
.kind-tfm { background: var(--lilac); }
.kind-tfg { background: var(--blue); }
.kind-practicas { background: var(--peach); }
.empty, .muted { color: var(--muted); font-size: .9rem; }
.empty { padding: 8px 0; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 14px; }
.filters > label:first-child { flex: 1 1 210px; }
label, legend { display: block; font-size: .88rem; font-weight: 650; }
input:not([type=checkbox]):not([type=hidden]), select, textarea {
  min-height: 42px; width: 100%; max-width: 100%; padding: 8px 10px; border-radius: 8px;
  border: 1px solid #b9ccc1; color: var(--ink); background: white;
}
textarea { min-height: 95px; max-height: 380px; resize: vertical; }
input[type=checkbox] { accent-color: var(--green); margin-right: .4rem; }
.filters input, .filters select, .form-card > input { margin-top: 4px; }
.input-form { display: grid; gap: 15px; }
.input-form div > label { margin-bottom: 4px; }
.input-form fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0; }
.input-form .helptext { color: var(--muted); font-size: .83rem; }
.input-form .helptext ul { margin-block: 4px; padding-left: 17px; }
.errorlist { color: var(--alert); margin: 0 0 6px; padding-left: 18px; font-size: .88rem; }
.form-card { width: min(100%, 690px); }
.form-card > p { margin-top: 9px; }
.subnav { display: flex; gap: 8px 17px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 17px; }
.subnav a { color: var(--green); font-size: .87rem; font-weight: 650; }
.subnav a:hover, a.pill:hover { text-decoration: underline; }
.team p { margin-top: 6px; }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 13px 22px; margin: 12px 0 8px; }
dt { color: var(--muted); font-size: .83rem; }
dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.study-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 295px), 1fr)); gap: 12px; }
.study { border: 1px solid var(--line); border-radius: 10px; padding: 15px; background: #f8faf8; }
.study-details { grid-template-columns: 1fr; gap: 6px; }
.objectives { margin: 10px 0; padding-left: 21px; }
.record { border-top: 1px solid var(--line); padding: 13px 0; overflow-wrap: anywhere; }
.record p { margin-top: 5px; }
.feedback, .inset { background: #f1f6f3; padding: 13px 16px; border-radius: 9px; }
.inset { margin-top: 13px; }
.inset h3 { margin-bottom: 12px; }
.link-history { margin-top: 13px; }
#informe p { margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 650; }
.notice { padding: 10px 14px; margin-bottom: 15px; border-radius: 8px; background: var(--mint); }
.notice.error { color: var(--alert); background: var(--peach); }
.public-shell { display: grid; min-height: 100dvh; place-items: center; padding: 20px; }
.public-card { width: min(100%, 475px); padding: clamp(19px, 4vw, 34px); background: white; border: 1px solid var(--line); border-radius: 17px; }
.public-card h1 { font-size: 1.85rem; margin: 23px 0 14px; }
.public-card p { margin: 10px 0; }
.public-card button { width: 100%; }

@media (max-width: 1120px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { width: auto; position: static; padding: 13px 16px 8px; border: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .sidebar nav { grid-row: 2; grid-column: 1 / -1; margin-top: 9px; display: flex; flex-wrap: wrap; }
  .sidebar nav a { padding: 6px 9px; }
  .brand { font-size: .87rem; }
  .profile { min-width: 0; max-width: 135px; text-align: right; padding: 2px 0; border: 0; }
  .profile span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .workspace { margin-left: 0; padding: 0 15px 36px; }
  .topline { min-height: 44px; margin-bottom: 20px; font-size: .76rem; }
  .page-header { flex-wrap: wrap; margin-bottom: 17px; }
  .metrics { grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); gap: 7px; }
  .metric { min-height: 92px; padding: 10px 12px; font-size: .8rem; }
  .metric strong { font-size: 1.7rem; }
  .card { padding: 15px; }
}
@media (max-width: 420px) {
  .section-head { flex-wrap: wrap; }
  .row { align-items: flex-start; }
  .row-meta { flex-direction: column; align-items: flex-end; }
  .row > .actions { justify-content: flex-end; }
}

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.student-header { margin-bottom: 16px; }
.student-header h1 { margin-bottom: 4px; }
.tabs { gap: 4px; flex-wrap: nowrap; overflow-x: auto; padding: 0 0 5px; margin-bottom: 18px; }
.tabs a { padding: .55rem .61rem; border-radius: 8px; white-space: nowrap; }
.tabs a[aria-current] { background: var(--green); color: white; }
.tabs a:hover:not([aria-current]) { background: var(--mint); }
.activity-picker { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.activity-picker [aria-current] { outline: 1px solid var(--green); }
.student-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.student-metrics small { font-size: 1.15rem; }
.summary-placement, .manage-action { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.summary-placement p { margin-top: 5px; }
.directory .filters { padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.student-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 315px), 1fr)); gap: 13px; list-style: none; padding: 0; margin: 0; }
.student-entry.card { padding: 0 14px; }
.student-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding-block: 13px; }
a.student-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.student-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: var(--mint); font-size: .81rem; font-weight: 750; }
.student-link small { display: block; overflow-wrap: anywhere; }
.student-activities { padding-left: 45px; }
.student-activities .row { font-size: .87rem; min-height: 42px; }
.plan-title { margin: 18px 0 13px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-grid h3 { margin-bottom: 6px; }
.plan-grid p { overflow-wrap: anywhere; }
.wide-form { width: 100%; }
.wide-form .input-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wide-form .input-form > div:first-of-type, .wide-form .input-form > button { grid-column: 1 / -1; }
.table-scroll { overflow: auto; max-width: 100%; }
.work-table, .month-grid { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
.work-table { min-width: 610px; }
.work-table thead th, .month-grid thead th { background: #eef4ef; color: #405c4e; font-size: .82rem; }
.work-table th, .work-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.work-table tbody th { font-size: .92rem; font-weight: 650; }
.work-table tbody th a:hover { text-decoration: underline; }
.work-table tbody th small { display: block; font-weight: 400; line-height: 1.4; }
.work-table td { font-size: .85rem; }
.work-table tbody tr:hover { background: #f7faf8; }
.past-due { color: var(--alert); font-weight: 700; }
.period-control input[type=month] { width: auto; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(245px, 1fr); align-items: start; gap: 14px; }
.month-grid { table-layout: fixed; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.month-grid thead th { text-align: center; padding: .55rem .2rem; }
.month-grid abbr { text-decoration: none; }
.month-grid td { border-top: 1px solid var(--line); border-right: 1px solid var(--line); padding: 3px; }
.month-grid td:last-child { border-right: 0; }
.month-grid td.outside { background: #f6f8f7; }
.calendar-day, .other-day { min-height: 53px; display: block; padding: 7px; border-radius: 7px; font-size: .84rem; }
.calendar-day-top { display: flex; justify-content: space-between; gap: 3px; }
.calendar-preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.calendar-day[aria-current] .calendar-preview { color: #e0eee7; }
.calendar-day:hover, .calendar-day.today { background: var(--mint); }
.calendar-day[aria-current] { background: var(--green); color: white; }
.calendar-count { min-width: 1.15rem; padding: 1px 3px; border-radius: 6px; text-align: center; background: var(--blue); color: #25455e; font-size: .71rem; font-weight: 750; }
.other-day { color: #637c6d; }
.calendar-agenda { border: 1px solid var(--line); padding: 15px; border-radius: 10px; background: #f8faf9; min-height: 155px; }
.calendar-agenda h3 { margin-bottom: 9px; }
.agenda-item { display: grid; gap: 2px; padding: 8px 9px; border-left: 3px solid #61927d; margin-block: 4px; }
.agenda-item:hover { background: white; }
.agenda-item strong { font-size: .9rem; overflow-wrap: anywhere; }
.agenda-item.category-official { border-left-color: #a76337; }
.agenda-item.category-meeting { border-left-color: #726098; }
.agenda-item.category-placement { border-left-color: #3d7999; }
.gantt-table { min-width: 900px; table-layout: fixed; }
.gantt-table th:first-child { width: 205px; position: sticky; left: 0; z-index: 1; }
.gantt-table tbody th:first-child { background: white; }
.gantt-table thead th:not(:first-child) { padding: 9px 2px; text-align: center; }
.gantt-table td { padding: 0; border-right: 1px solid var(--line); }
.gantt-table tr { --bar: #578b74; }
.gantt-table .gantt-blocked { --bar: #ae5d44; }
.gantt-table .gantt-done { --bar: #557a9b; }
.gantt-mark { display: block; width: 100%; height: 14px; fill: var(--bar); }
.gantt-legend { display: flex; flex-wrap: wrap; margin-block: 8px 12px; gap: 7px 14px; color: var(--muted); font-size: .8rem; }
.gantt-legend span::before { content: ''; display: inline-block; margin-right: 5px; width: 12px; height: 8px; border-radius: 2px; background: #578b74; }
.gantt-legend .legend-blocked::before { background: #ae5d44; }
.gantt-legend .legend-done::before { background: #557a9b; }
.gantt-legend .legend-milestone::before { width: 8px; height: 8px; transform: rotate(45deg); }
.scale.selected { background: var(--mint); border-color: #659581; }
.chart-note { margin-top: 12px; }
@media (max-width: 900px) {
  .calendar-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .student-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .wide-form .input-form { grid-template-columns: minmax(0, 1fr); }
  .calendar-bar { flex-wrap: wrap; }
  .calendar-day, .other-day { min-height: 38px; padding: 4px 2px; }
  .calendar-preview { display: none; }
  .tabs { padding-bottom: 8px; }
  .gantt-table th:first-child { width: 135px; }
}
.quick-editor{width:min(32rem,92vw);max-height:88vh;box-sizing:border-box;overflow:auto;padding:1.4rem;border:1px solid #cbdad4;border-radius:1rem;color:inherit;box-shadow:0 1rem 4rem #18372c33}
.quick-editor::backdrop{background:#122b2599}
.quick-editor header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.quick-editor h2{margin:0}.quick-editor header button{font-size:1.4rem}.quick-editor [role=status]:empty{display:none}
