:root { color-scheme: dark; }
.ta { margin: 0; background: #0a1522; color: #edf6fd; font: 1rem/1.48 "DM Sans",system-ui,sans-serif; }
.ta *, .ta *::before, .ta *::after { box-sizing: border-box; }
.ta [hidden] { display: none !important; }
.ta a { color: #a5eed8; text-decoration: none; }
.ta a:hover { text-decoration: underline; }
.ta button, .ta input, .ta select { font: inherit; }
.ta button, .ta select, .ta summary { cursor: pointer; }
.ta button, .ta input:not([type="checkbox"]), .ta select { min-height: 40px; border: 1px solid #405b70; background: #14283a; color: #eff9ff; border-radius: 8px; padding: 7px 10px; }
.ta button { font-weight: 680; font-size: .86rem; }
.ta button:hover:not(:disabled) { border-color: #93d9c7; background: #1d3a49; }
.ta button:disabled { opacity: .48; cursor: default; }
.ta input::placeholder { color: #9fb4c7; opacity: 1; }
.ta :focus-visible { outline: 2px solid #9cebd5; outline-offset: 3px; }
.ta input[type="checkbox"] { accent-color: #9aebd4; }
.ta-wrap { width: min(1190px,calc(100% - 34px)); margin-inline: auto; }
.ta-nav { border-bottom: 1px solid #2d4154; background: #112133; }
.ta-nav .ta-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 61px; }
.ta-nav .ta-brand { display: inline-flex; gap: 9px; align-items: center; color: #f0f7fd; font-weight: 750; }
.ta-brand img { border-radius: 8px; }
.ta-nav a:last-child { font-size: .87rem; }
.ta main { padding-block: 24px 50px; }
.ta-hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px; border: 1px solid #426379; background: radial-gradient(ellipse at 90% 0,#24505a 0%,#14283c 65%); border-radius: 18px; padding: clamp(19px,4vw,38px); }
.ta-kicker { font-size: .69rem; font-weight: 780; letter-spacing: .1em; color: #a4ecda; }
.ta-hero h1 { font: 780 clamp(2.1rem,6vw,4.1rem)/1.05 Sora,system-ui,sans-serif; letter-spacing: -.065em; margin: 6px 0 12px; }
.ta-hero p { max-width: 59ch; color: #ceddec; margin: 0; }
.ta-hero-stat { display: grid; align-self: stretch; align-content: center; min-width: 155px; padding: 13px; gap: 4px; border: 1px solid #618388; border-radius: 10px; background: #0d2838a1; font-size: .78rem; color: #d4e8f2; }
.ta-hero-stat strong { color: #b1f5df; font: 720 clamp(1.25rem,3vw,1.8rem) Sora,system-ui,sans-serif; }
.ta-panel { margin-top: 15px; padding: clamp(12px,2.4vw,22px); border: 1px solid #354e66; border-radius: 14px; background: #111f30; min-width: 0; }
.ta-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 9px 15px; margin-bottom: 12px; }
.ta h2 { font-size: clamp(1.12rem,2.4vw,1.55rem); line-height: 1.2; letter-spacing: -.025em; margin: 4px 0 0; }
.ta-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.ta-primary-fields { grid-template-columns: minmax(125px,1fr) minmax(140px,1fr) minmax(110px,.8fr) minmax(0,1.55fr); }
.ta label { color: #c9d9e8; font-size: .82rem; font-weight: 650; }
.ta-fields label > :is(input, select) { display: block; width: 100%; min-width: 0; margin-top: 3px; font-size: .9rem; }
.ta-filters { margin-top: 12px; border: 1px solid #344c63; border-radius: 9px; padding: 8px 10px; }
.ta-filters[open] summary { margin-bottom: 8px; }
.ta summary { color: #dbedf8; font-size: .88rem; font-weight: 700; }
.ta-checks, .ta-actions, .ta-fit, .ta-tools, .ta-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ta-checks, .ta form > .ta-actions { margin-top: 11px; }
.ta-checks label, .ta-check { display: inline-flex; align-items: center; gap: 5px; }
.ta .ta-strong { background: #a0ebd6; color: #0d2a30; border-color: #a0ebd6; }
.ta .ta-strong:hover:not(:disabled) { background: #c9f9e9; color: #0d2a30; }
.ta-error { margin: 5px 0; color: #ffc2c8; font-size: .85rem; }
.ta-error:empty, .ta-note:empty, .ta-fit:empty { display: none; }
.ta-note { margin: 8px 0 0; color: #b8ccdf; font-size: .84rem; }
.ta-fit { margin-bottom: 9px; }
.ta-fit button[aria-pressed="true"] { background: #1f4849; border-color: #89d2bd; }
.ta-tools { margin: 6px 0 10px; gap: 8px 14px; }
.ta-tools p { margin: 0 auto 0 0; color: #c6d8e8; font-size: .89rem; }
.ta-tools select { margin-left: 4px; font-size: .85rem; }
.ta-table-wrap { width: 100%; overflow: auto; border: 1px solid #30495e; border-radius: 9px; }
.ta-table-wrap:empty { display: none; }
.ta-table { border-collapse: collapse; width: 100%; font-size: .87rem; text-align: left; }
.ta-table :is(th,td) { padding: 9px 10px; border-bottom: 1px solid #2c4257; vertical-align: middle; }
.ta-table thead { background: #182d41; color: #c9dcec; }
.ta-table th { font-weight: 690; }
.ta-table tbody tr:last-child > * { border-bottom: 0; }
.ta-table tbody tr:hover { background: #162b3e; }
.ta-table small { display: block; margin-top: 3px; color: #b6cbde; font-weight: 480; }
.ta-program .ta-name { padding: 0; min-height: 0; border: 0; background: transparent; text-align: left; color: #a6eed9; font-size: .96rem; }
.ta-program .ta-name:hover:not(:disabled) { background: transparent; text-decoration: underline; }
.ta-table .ta-number { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ta-label { display: inline-flex; align-items: center; min-height: 24px; margin: 4px 4px 0 0; padding: 3px 6px; border-radius: 5px; background: #243c50; color: #d5e6f4; font-size: .73rem; font-weight: 680; white-space: normal; }
.ta-label[data-fit="match"] { background: #194642; color: #b9f6df; }
.ta-label[data-fit="border"], .ta-label.ta-restrict { background: #4b3a26; color: #ffdfad; }
.ta-label[data-fit="outside"] { background: #432c3a; color: #ffc9d3; }
.ta-row-actions { display: flex; gap: 5px; align-items: center; }
.ta-row-actions button { min-width: 37px; min-height: 37px; font-size: 1rem; }
.ta-row-actions button[aria-pressed="true"] { color: #ffe599; background: #3d392a; }
.ta-row-actions label { cursor: pointer; display: inline-grid; place-items: center; min-width: 32px; min-height: 35px; }
.ta-pages { justify-content: center; margin-top: 12px; font-size: .86rem; color: #c2d7e8; }
.ta-method { font-size: .87rem; color: #bdcfdf; }
.ta-method ul { padding-left: 20px; margin-bottom: 0; }
.ta-dialog { width: min(790px,calc(100% - 25px)); max-height: calc(100% - 25px); padding: 0; border: 1px solid #51718a; border-radius: 13px; background: #13263a; color: #f0f7fd; }
.ta-dialog::backdrop { background: #050c16c9; }
.ta-dialog-inner { padding: clamp(12px,3vw,24px); }
.ta-dialog-inner .ta-table { min-width: 450px; }
.ta-dialog-inner h3 { font-size: 1.04rem; margin: 13px 0 7px; }
.ta-dialog-inner p { margin: 6px 0; color: #c8dbea; overflow-wrap: anywhere; }
.ta-dialog-inner .ta-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 12px; }
.ta-dialog-inner .ta-meta > span { font-size: .85rem; }
@media (max-width: 820px) {
  .ta-fields, .ta-primary-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #taTable > .ta-table { min-width: 650px; }
}
@media (max-width: 550px) {
  .ta-wrap { width: calc(100% - 22px); }
  .ta-hero { grid-template-columns: 1fr; gap: 11px; }
  .ta-hero-stat { width: max-content; max-width: 100%; }
  .ta-tools p { flex-basis: 100%; }
  .ta-nav a:last-child { max-width: 102px; text-align: right; }
  #taTable > .ta-table { min-width: 0; }
  #taTable .ta-table thead { display: none; }
  #taTable .ta-table, #taTable .ta-table tbody { display: block; }
  #taTable .ta-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px; border-bottom: 1px solid #385166; }
  #taTable .ta-table :is(th,td) { padding: 4px; border: 0; }
  #taTable .ta-table .ta-program { grid-column: 1/-1; }
  #taTable td[data-label]::before { content: attr(data-label); display: block; color: #bed0de; font-size: .72rem; }
  .ta-row-actions { justify-content: end; }
}

.ta-goal-action {
  display: inline-flex;
  align-items: center;
  padding: .65rem .9rem;
  margin: .5rem 0 1rem;
  border-radius: .7rem;
  border: 1px solid currentColor;
  font-weight: 700;
}

.ta-primary-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
}
.ta-query-field { grid-column: span 2; }
#taUniversityNote { margin: .5rem 0 1rem; }
@media (max-width: 760px) {
  .ta-primary-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ta-university-field, .ta-query-field { grid-column: 1 / -1; }
}
