/* TSU-TEP redesign — พอร์ตมาจากไฟล์ดีไซน์ใน D:\งานปี2569\redesign
   ใช้กับหน้าที่ใส่ class "tu" ที่ <body> เท่านั้น หน้าอื่นยังใช้ธีม Hyper เดิม */

.tu, .tu *, .tu *::before, .tu *::after { box-sizing: border-box; }
.tu {
  --tu-primary: #1F6FAE; --tu-primary-dark: #175A8E; --tu-primary-soft: #E6F1FA; --tu-primary-faint: #F0F7FC;
  --tu-ink: #0E1A33; --tu-muted: #556079; --tu-line: #E1E6EF; --tu-line-soft: #EEF1F6; --tu-line-input: #C5CCDA;
  --tu-bg: #F4F6FA; --tu-white: #FFFFFF;
  --tu-accent: #F58A21; --tu-warn-bg: #FEF0E1; --tu-warn-ink: #A8520D; --tu-warn-dark: #7A3D08; --tu-warn-line: #D9690B;
  --tu-ok: #15803D; --tu-ok-bg: #E7F6EC; --tu-err-bg: #FDECEC; --tu-err-ink: #9B1C1C;
  margin: 0; background: var(--tu-bg); color: var(--tu-ink);
  font-family: Prompt, Kanit, system-ui, sans-serif; font-size: 15px; line-height: 1.55;
}
.tu a { color: var(--tu-primary); }
.tu a:hover { color: var(--tu-primary-dark); }
.tu h1, .tu h2, .tu h3, .tu p, .tu dl, .tu dd, .tu ul, .tu ol { margin: 0; padding: 0; }
.tu ul, .tu ol { list-style: none; }
.tu button, .tu input, .tu select { font: inherit; }
.tu :focus-visible { outline: 3px solid #8CBCE3; outline-offset: 2px; }

/* ---------- ปุ่ม / ชิป ---------- */
.tu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; background: none; }
.tu-btn-lg { min-height: 48px; padding: 0 22px; }
.tu-btn-primary { background: var(--tu-primary); color: #fff !important; }
.tu-btn-primary:hover { background: var(--tu-primary-dark); }
.tu-btn-accent { background: var(--tu-accent); color: var(--tu-ink) !important; }
.tu-btn-accent:hover { background: #E27A12; }
.tu-btn-outline { border-color: var(--tu-primary); color: var(--tu-primary) !important; background: #fff; }
.tu-btn-outline:hover { background: var(--tu-primary-faint); }
.tu-btn-ghost { border-color: var(--tu-line); color: var(--tu-ink) !important; background: #fff; }
.tu-btn-white { background: #fff; color: var(--tu-ink) !important; }
.tu-btn-block { width: 100%; }
.tu-btn[disabled], .tu-btn.is-disabled { background: var(--tu-line); color: var(--tu-muted) !important; cursor: not-allowed; border-color: transparent; }
.tu-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--tu-primary-soft); color: var(--tu-primary); }
.tu-chip-warn { background: var(--tu-warn-bg); color: var(--tu-warn-ink); }
.tu-chip-ok { background: var(--tu-ok-bg); color: var(--tu-ok); }
.tu-chip-grey { background: var(--tu-line); color: var(--tu-muted); }
.tu-link { font-weight: 600; text-decoration: none; }

/* ---------- ตัวสลับภาษา ---------- */
.tu-lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--tu-line); border-radius: 10px; background: #fff; }
.tu-lang button { min-width: 40px; height: 36px; padding: 0 8px; border: none; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: var(--tu-muted); }
.tu-lang button[aria-pressed="true"] { background: var(--tu-primary); color: #fff; }

/* ---------- เมนูบน ---------- */
.tu-header { background: #fff; border-bottom: 1px solid var(--tu-line); position: relative; z-index: 20; }
.tu-header-in { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.tu-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tu-ink) !important; }
.tu-brand img { height: 40px; width: auto; display: block; }
.tu-brand-sep { width: 1px; height: 32px; background: var(--tu-line); }
.tu-brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.tu-brand-txt b { font-weight: 600; font-size: 17px; }
.tu-brand-txt span { font-size: 12px; color: var(--tu-muted); }
.tu-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.tu-nav a { padding: 10px 14px; border-radius: 8px; color: var(--tu-ink); text-decoration: none; }
.tu-nav a:hover { background: var(--tu-bg); color: var(--tu-ink); }
.tu-nav a[aria-current="page"] { background: var(--tu-primary-soft); color: var(--tu-primary); font-weight: 600; }
.tu-tools { display: flex; align-items: center; gap: 8px; }
.tu-acct { position: relative; }
.tu-acct summary { list-style: none; width: 44px; height: 44px; border-radius: 50%; background: var(--tu-ink); color: #fff; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tu-acct summary::-webkit-details-marker { display: none; }
.tu-acct-menu { position: absolute; right: 0; top: 52px; min-width: 240px; background: #fff; border: 1px solid var(--tu-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(14, 26, 51, .14); padding: 8px; }
.tu-acct-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--tu-line-soft); margin-bottom: 6px; line-height: 1.35; }
.tu-acct-who b { display: block; font-weight: 600; }
.tu-acct-who span { font-size: 13px; color: var(--tu-muted); }
.tu-acct-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--tu-ink); text-decoration: none; }
.tu-acct-menu a:hover { background: var(--tu-bg); color: var(--tu-ink); }

/* ---------- โครงหน้า ---------- */
.tu-main { max-width: 1200px; margin: 0 auto; padding: 28px 24px 48px; display: flex; flex-direction: column; gap: 24px; }
.tu-footer { border-top: 1px solid var(--tu-line); background: #fff; }
.tu-footer-in { max-width: 1200px; margin: 0 auto; padding: 18px 24px; font-size: 13px; color: var(--tu-muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.tu-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tu-eyebrow { font-size: 14px; color: var(--tu-muted); }
.tu-h1 { font-weight: 600; font-size: 28px; line-height: 1.3; margin-top: 4px !important; }
.tu-h1-lg { font-size: 30px; }
.tu-sub { color: var(--tu-muted); margin-top: 4px !important; }
.tu-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tu-split-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.tu-split-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.tu-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* ---------- การ์ด ---------- */
.tu-card { background: #fff; border: 1px solid var(--tu-line); border-radius: 14px; padding: 20px 22px; }
.tu-card-flush { padding: 0; }
.tu-card-stat { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.tu-card-dark { background: var(--tu-ink); color: #fff; border-color: var(--tu-ink); }
.tu-card-dark .tu-card-label { color: #C9D3EA; }
.tu-card-soft { background: var(--tu-primary-soft); border: 0; display: flex; flex-direction: column; gap: 8px; }
.tu-card-label { font-size: 14px; font-weight: 600; color: var(--tu-muted); }
.tu-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--tu-line); }
.tu-h2 { font-weight: 600; font-size: 19px; }
.tu-h3 { font-weight: 600; font-size: 17px; }
.tu-big { font-weight: 700; font-size: 40px; line-height: 1; }
.tu-row { display: flex; align-items: baseline; gap: 8px; }
.tu-muted { color: var(--tu-muted); }
.tu-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.tu-dl dt { color: var(--tu-muted); }
.tu-dl dd { font-weight: 500; }
.tu-dl-fit { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; }
.tu-dl-fit dd { font-weight: 600; margin-top: 2px; }
.tu-next-top { background: var(--tu-primary); color: #fff; padding: 18px 22px; }
.tu-next-top small { display: block; font-size: 13px; font-weight: 600; color: #EAF3FB; }
.tu-next-top strong { display: block; font-weight: 600; font-size: 22px; line-height: 1.35; margin-top: 2px; }
.tu-next-top span { font-size: 14px; color: #EAF3FB; }

/* CEFR scale */
.tu-scale { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; font-size: 12px; text-align: center; color: var(--tu-muted); }
.tu-scale > span { display: flex; flex-direction: column; gap: 4px; }
.tu-scale i { display: block; height: 8px; border-radius: 4px; background: var(--tu-line); }
.tu-scale .on i { background: var(--tu-primary); }
.tu-scale .cur { color: var(--tu-ink); font-weight: 600; }
.tu-scale-lg { gap: 4px; font-size: 14px; }
.tu-scale-lg i { height: 14px; }

/* รายการรอบสอบ */
.tu-round { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 18px 22px; border-bottom: 1px solid var(--tu-line-soft); }
.tu-round:last-child { border-bottom: 0; }
.tu-date { width: 64px; flex: none; text-align: center; border-radius: 10px; background: var(--tu-primary-soft); padding: 8px 0; line-height: 1.2; }
.tu-date b { display: block; font-weight: 700; font-size: 24px; color: var(--tu-primary); }
.tu-date > span { display: block; font-size: 13px; color: var(--tu-primary); font-weight: 600; }
.tu-round-body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tu-round-body .t { font-weight: 600; }
.tu-round-body .p { font-size: 14px; color: var(--tu-muted); }
.tu-meter { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--tu-muted); }
.tu-meter-bar { flex: 0 1 140px; height: 6px; border-radius: 3px; background: var(--tu-line); overflow: hidden; }
.tu-meter-bar span { display: block; height: 100%; background: var(--tu-primary); }
.tu-meter-bar.full span { background: var(--tu-warn-line); }

/* ตาราง */
.tu-table-wrap { overflow-x: auto; }
.tu-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.tu-table th { text-align: left; padding: 10px 8px; font-weight: 600; color: var(--tu-muted); border-bottom: 1px solid var(--tu-line); white-space: nowrap; }
.tu-table td { padding: 12px 8px; border-bottom: 1px solid var(--tu-line-soft); vertical-align: top; }
.tu-table tr:last-child td { border-bottom: 0; }
.tu-table .c { text-align: center; }
.tu-table .r { text-align: right; }
.tu-table .strong { font-weight: 600; }
.tu-empty { padding: 28px 22px; text-align: center; color: var(--tu-muted); }

/* รายการติ๊กถูก */
.tu-checks { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.tu-checks > li { display: flex; gap: 10px; align-items: flex-start; }
.tu-checks svg { flex: none; margin-top: 1px; }
.tu-checks .tu-rule-sub li { display: list-item; }

/* ---------- ฟอร์ม ---------- */
.tu-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tu-field > span { font-weight: 600; }
.tu-input { min-height: 48px; padding: 0 14px; border: 1px solid var(--tu-line-input); border-radius: 10px; color: var(--tu-ink); background: #fff; width: 100%; }
.tu-input-wrap { position: relative; display: flex; }
.tu-input-wrap .tu-input { padding-right: 52px; }
.tu-eye { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: none; background: transparent; color: var(--tu-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tu-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tu-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 14px 10px 12px; line-height: 1.3; border: 1.5px solid var(--tu-line); border-radius: 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: #fff; color: var(--tu-muted); text-align: center; transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s, transform .15s; }
.tu-tabs button:hover { border-color: var(--tu-primary); color: var(--tu-primary); background: var(--tu-primary-faint); }
.tu-tabs button:active { transform: scale(.98); }
.tu-tab-ico { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--tu-bg); color: var(--tu-muted); transition: background-color .15s, color .15s; }
.tu-tabs button:hover .tu-tab-ico { background: var(--tu-primary-soft); color: var(--tu-primary); }
.tu-tab-check { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--tu-primary); color: #fff; opacity: 0; transform: scale(.5); transition: opacity .15s, transform .15s; }
.tu-tabs button[aria-selected="true"] { border-color: var(--tu-primary); background: var(--tu-primary-faint); color: var(--tu-primary); box-shadow: 0 0 0 3px var(--tu-primary-soft), 0 4px 10px rgba(31, 111, 174, .12); }
.tu-tabs button[aria-selected="true"] .tu-tab-ico { background: var(--tu-primary); color: #fff; }
.tu-tabs button[aria-selected="true"] .tu-tab-check { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .tu-tabs button, .tu-tab-ico, .tu-tab-check { transition: none; } }
.tu-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.tu-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--tu-primary); }
.tu-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--tu-warn-bg); color: var(--tu-warn-dark); font-size: 14px; }
.tu-notice svg { flex: none; margin-top: 2px; }
.tu-notice-err { background: var(--tu-err-bg); color: var(--tu-err-ink); }
.tu-notice-err a { color: var(--tu-err-ink); font-weight: 600; }
.tu-notice ol { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.tu-rule-sub { list-style: disc; margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 2px; }
.tu-checks .tu-rule-sub { font-size: 13px; }
.tu-warnbox { padding: 12px 14px; border-radius: 10px; background: var(--tu-warn-bg); color: var(--tu-warn-dark); font-size: 13px; }

/* ขั้นตอน */
.tu-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tu-steps li { display: flex; flex-direction: column; gap: 8px; }
.tu-steps .bar { display: block; height: 4px; border-radius: 2px; background: var(--tu-line); }
.tu-steps .lab { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--tu-muted); }
.tu-steps .dot { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; background: var(--tu-line); color: var(--tu-muted); }
.tu-steps .on .bar { background: var(--tu-primary); }
.tu-steps .on .dot { background: var(--tu-primary); color: #fff; }
.tu-steps .on .lab { font-weight: 600; color: var(--tu-ink); }

/* ตัวเลือกรอบสอบ */
.tu-pick { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border-radius: 12px; color: var(--tu-ink) !important; text-align: left; background: #fff; border: 2px solid var(--tu-line); text-decoration: none; cursor: pointer; }
.tu-pick:hover { border-color: var(--tu-primary); }
.tu-pick.full { background: var(--tu-bg); border: 1px solid var(--tu-line); cursor: not-allowed; }
.tu-pick.full:hover { border-color: var(--tu-line); }
.tu-pick .d { width: 58px; flex: none; text-align: center; line-height: 1.2; }
.tu-pick .d b { display: block; font-weight: 700; font-size: 22px; color: var(--tu-primary); }
.tu-pick .d > span { display: block; font-size: 13px; color: var(--tu-muted); }
.tu-pick .b { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tu-pick .b .t { font-weight: 600; }
.tu-pick .b .p { font-size: 14px; color: var(--tu-muted); }
.tu-pick .s { flex: none; }
.tu-stack { display: flex; flex-direction: column; gap: 10px; }
.tu-stack-lg { gap: 14px; }
.tu-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.tu-filter button { min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; color: var(--tu-ink); border: 1px solid var(--tu-line-input); }
.tu-filter button[aria-pressed="true"] { background: var(--tu-ink); color: #fff; border-color: var(--tu-ink); }
.tu-pickbox { padding: 16px; border-radius: 10px; background: var(--tu-primary-soft); display: flex; flex-direction: column; gap: 4px; }
.tu-pickbox small { font-size: 13px; color: var(--tu-primary); font-weight: 600; }
.tu-pickbox strong { font-weight: 600; font-size: 18px; }
.tu-pickbox span { font-size: 14px; color: #33405C; }

/* ผลสอบ */
.tu-hero { background: #fff; border: 1px solid var(--tu-line); border-radius: 16px; padding: 28px; display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; }
.tu-ring { width: 132px; height: 132px; flex: none; border-radius: 50%; border: 10px solid var(--tu-primary); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.tu-ring b { font-weight: 700; font-size: 38px; }
.tu-ring span { font-size: 12px; color: var(--tu-muted); }
.tu-ring.warn { border-color: var(--tu-warn-line); }
.tu-ring.ok { border-color: var(--tu-ok); }
.tu-skill { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 0; border-bottom: 1px solid var(--tu-line-soft); }
.tu-skill:last-of-type { border-bottom: 0; }
.tu-skill .n { flex: 1 1 180px; min-width: 0; display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.tu-skill .n i { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--tu-primary-soft); color: var(--tu-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; font-style: normal; }
.tu-skill .n b { display: block; font-weight: 600; }
.tu-skill .n small { font-size: 13px; color: var(--tu-muted); }
.tu-skill .score { flex: 0 0 auto; font-weight: 700; font-size: 18px; }
.tu-steps-dark { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.tu-steps-dark li { display: flex; gap: 12px; }
.tu-steps-dark li > b { width: 26px; height: 26px; flex: none; border-radius: 50%; background: #fff; color: var(--tu-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.tu-steps-dark small { color: #C9D3EA; font-size: 14px; }
.tu-refbox { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--tu-bg); font-size: 14px; }
.tu-refbox b { font-family: ui-monospace, monospace; }
.tu-ok-row td { background: #F2FAF5; }

/* ---------- หน้าเข้าสู่ระบบ ---------- */
.tu-login { min-height: 100vh; display: flex; flex-wrap: wrap; background: #fff; }
.tu-login-hero { flex: 1 1 460px; min-width: 0; background: var(--tu-primary); color: #fff; padding: 56px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.tu-login-hero-in { display: flex; flex-direction: column; gap: 22px; max-width: 460px; }
.tu-pill { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--tu-primary-dark); font-size: 13px; font-weight: 600; }
.tu-login-hero h2 { font-weight: 600; font-size: 40px; line-height: 1.3; }
.tu-login-hero p { font-size: 16px; color: #EAF3FB; }
.tu-feats { margin-top: 8px !important; display: flex; flex-direction: column; gap: 14px; }
.tu-feats li { display: flex; gap: 12px; align-items: flex-start; }
.tu-feats li > span:first-child { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--tu-accent); color: var(--tu-ink); display: flex; align-items: center; justify-content: center; }
.tu-login-hero .campus { font-size: 13px; }
.tu-login-pane { flex: 1 1 440px; min-width: 0; padding: 32px 24px 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.tu-login-top { width: 100%; display: flex; justify-content: flex-end; }
.tu-login-box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; margin: auto 0; }
.tu-login-box > img { height: 56px; width: auto; align-self: flex-start; display: block; }
.tu-login-box h1 { font-weight: 600; font-size: 28px; line-height: 1.3; }
.tu-form { display: flex; flex-direction: column; gap: 16px; }
.tu-form-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.tu-login-links { font-size: 13px; color: var(--tu-muted); text-align: center; }
.tu-login-links a { text-decoration: none; }
.tu-login-hero-staff { background: var(--tu-ink); }
.tu-login-hero-staff .tu-pill { background: rgba(255, 255, 255, .12); }
.tu-login-hero-staff p { color: #C9D3EA; }
.tu-back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--tu-muted) !important; }
.tu-back-link:hover { background: var(--tu-bg); color: var(--tu-ink) !important; }
.tu-btn[aria-busy="true"] { opacity: .75; cursor: progress; }

/* ---------- มือถือ ---------- */
@media (max-width: 640px) {
  .tu-header-in { padding: 10px 16px; gap: 10px 16px; }
  .tu-nav { order: 3; flex: 1 1 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tu-nav a { white-space: nowrap; }
  .tu-tools { margin-left: auto; }
  .tu-main { padding: 20px 16px 40px; }
  .tu-h1-lg { font-size: 24px; }
  .tu-login-hero { padding: 32px 24px; }
  .tu-login-hero h2 { font-size: 30px; }
  .tu-hero { padding: 20px; }
}

/* ---------- ผลการสมัคร / หน้าสถานะ ---------- */
.tu-result { max-width: 640px; width: 100%; margin: 0 auto; background: #fff; border: 1px solid var(--tu-line); border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.tu-result h2 { font-weight: 600; font-size: 24px; }
.tu-result-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tu-ok-bg); color: var(--tu-ok); }
.tu-result-icon.warn { background: var(--tu-warn-bg); color: var(--tu-warn-ink); }
.tu-result-icon.err { background: var(--tu-err-bg); color: var(--tu-err-ink); }
.tu-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.tu-back { font-size: 14px; font-weight: 600; text-decoration: none; }
.tu-pick.mine { background: var(--tu-primary-faint); border-color: var(--tu-primary); }

/* ---------- ฟอร์มหลายช่อง / หน้าคู่มือ ---------- */
.tu-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 20px; }
.tu-form-grid .wide { grid-column: 1 / -1; }
.tu-form-grid .tu-input:disabled { background: var(--tu-bg); }
.tu select.tu-input { appearance: auto; padding-right: 10px; }
.tu .tu-input:focus { border-color: var(--tu-primary); outline: 3px solid #CFE3F4; outline-offset: 0; }
.tu-hint { font-size: 13px; color: var(--tu-muted); }
.tu-honey { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.tu .mb-0 { margin-bottom: 0; }
.tu-notice-info { background: var(--tu-primary-soft); color: #0F3B63; }
.tu-notice-info strong { color: #0F3B63; }
.tu-notice-h { font-weight: 600; margin-bottom: 4px; }
.tu-bordered th, .tu-bordered td { border: 1px solid var(--tu-line); }
.tu-bordered th { background: var(--tu-bg); }
.tu-arrow { color: var(--tu-muted); }
.tu-manual-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tu-toc { flex: 0 0 260px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; }
.tu-toc a { padding: 8px 10px; border-radius: 8px; color: var(--tu-ink); text-decoration: none; font-size: 14px; }
.tu-toc a:hover { background: var(--tu-primary-soft); color: var(--tu-primary); }
.tu-manual { flex: 999 1 560px; min-width: 0; }
.tu-manual .manual-section { scroll-margin-top: 16px; margin-bottom: 36px; }
.tu-manual h4 { font-weight: 600; font-size: 20px; border-bottom: 2px solid var(--tu-primary); padding-bottom: 6px; margin-bottom: 14px; }
.tu-manual h5 { font-weight: 600; font-size: 16px; margin: 18px 0 8px; }
.tu-manual p { margin: 0 0 10px; }
.tu-manual ol, .tu-manual ul { list-style: revert; padding-left: 22px; margin: 0 0 12px; display: block; }
.tu-manual li { margin-bottom: 4px; }
.tu-manual dt { font-weight: 600; margin-top: 12px; }
.tu-manual dd { margin: 2px 0 0; color: #33405C; }
.tu-manual .tu-table-wrap { margin-bottom: 14px; }
.tu-manual .tu-notice { margin-bottom: 14px; }
.tu-manual .manual-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.tu-manual .text-danger { color: var(--tu-err-ink); }
.tu-manual .text-muted { color: var(--tu-muted); }
@media print { .tu-header, .tu-footer, .tu-toc { display: none !important; } .tu-main { padding: 0; } .tu-manual { flex-basis: 100%; } }
