:root {
  --bs-primary: #2A6B3C;
  --color-primary: #2A6B3C;
  --color-primary-light: #E6F2EA;
  --color-surface: #FDFAF5;
  --color-bg: #F2EFE9;
  --color-border: #D8CEBC;
  --color-accent: #F6C445;
  --color-accent-dark: #E4AE1E;
  --color-accent-ink: #3A2E05;
  --color-ink: #1C1916;
  --color-muted: #6B6157;
  --shadow-soft: 0 10px 30px rgba(28,25,22,.08);
  --shadow-card: 0 8px 24px rgba(28,25,22,.06);
}

/* RESET (สำคัญสำหรับหน้าที่ไม่ได้โหลด Bootstrap เช่นหน้าแรก) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* BASE */
body {
  font-family: 'Sarabun', sans-serif;
  background-color: var(--color-bg);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; }
.container,
.container-fluid { width: min(100%, 1200px); }

/* OVERRIDE Bootstrap primary */
.btn-primary, .bg-primary  { background-color: var(--color-primary) !important; border-color: var(--color-primary) !important; }
.btn-outline-primary        { color: var(--color-primary) !important; border-color: var(--color-primary) !important; }
.btn-outline-primary:hover  { background-color: var(--color-primary) !important; color: white !important; }
.text-primary               { color: var(--color-primary) !important; }

/* CARD */
.card {
  border-radius: 18px;
  border-color: #E8E2D6;
  box-shadow: var(--shadow-card);
  background-color: var(--color-surface);
  overflow: hidden;
}
.card-header {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.55));
  border-bottom-color: #EAE4D8;
  padding: 1rem 1.25rem;
}
.card-body { padding: 1.25rem; }

.btn {
  border-radius: 12px;
  font-weight: 600;
  min-height: 42px;
  padding-inline: 1rem;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { box-shadow: 0 8px 18px rgba(28,25,22,.08); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 36px; }
.btn-lg {
  min-height: 52px;
  border-radius: 14px;
}

.form-label {
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: .45rem;
}
.form-control,
.form-select,
.input-group-text,
.form-control:focus,
.form-select:focus {
  border-radius: 12px;
}
.form-control,
.form-select,
.input-group-text {
  min-height: 46px;
  border-color: var(--color-border);
  background-color: rgba(255,255,255,.94);
  box-shadow: none;
}
.form-control:focus,
.form-select:focus {
  border-color: rgba(42,107,60,.45);
  box-shadow: 0 0 0 .24rem rgba(42,107,60,.12);
}
textarea.form-control { min-height: 120px; }

.badge {
  border-radius: 999px;
  font-weight: 700;
  padding: .45em .7em;
}

.table {
  --bs-table-bg: transparent;
  vertical-align: middle;
}
.table > :not(caption) > * > * {
  padding: .85rem 1rem;
  border-bottom-color: #EEE6D8;
}

.alert {
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.dropdown-menu {
  border: 1px solid rgba(216,206,188,.9);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: .5rem;
}
.dropdown-item {
  border-radius: 10px;
  padding: .65rem .85rem;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: var(--color-primary-light);
  color: var(--color-ink);
}

/* โลโก้คณะ (แบนเนอร์แนวนอน assets/images/logo.png) */
.faculty-logo-banner,
.brand-logo,
.wf-nav-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(340px, 72vw);
  object-fit: contain;
  object-position: left center;
}
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.navbar-dark .brand-logo-wrap,
.navbar-light .brand-logo-wrap {
  border: none;
  background: transparent;
}

/* Navbar แนวคณะ — สีเขียวราชการ */
.navbar-faculty { background-color: var(--color-primary) !important; }
.navbar-faculty .navbar-brand { color: #fff !important; }
.navbar-faculty .nav-link { color: rgba(255,255,255,.9) !important; }
.navbar-faculty .nav-link:hover { color: #fff !important; }
.brand-with-faculty .brand-text { display: flex; flex-direction: column; line-height: 1.25; gap: 0; }
.brand-with-faculty .brand-app { font-weight: 600; font-size: 1rem; }
.brand-with-faculty .brand-faculty { font-size: 0.7rem; opacity: .9; font-weight: 400; }
.navbar-faculty-public { background-color: var(--color-surface) !important; border-color: var(--color-border) !important; }
.navbar-faculty-public .brand-app { color: var(--color-primary); font-weight: 600; }
.navbar-faculty-public .brand-faculty { color: #6B6157; }
.site-footer { font-size: 12px; color: #6B6157; }
.site-footer .footer-brand { font-weight: 600; color: var(--color-primary); }
.site-footer .footer-sep { margin: 0 .35rem; opacity: .6; }

.logo-frame {
  display: block;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  line-height: 0;
  max-width: 100%;
}
.logo-frame img,
.login-logo-banner {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 72px;
  margin: 0 auto;
  object-fit: contain;
}

/* STAT CARD */
.stat-card { position: relative; overflow: hidden; }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
}
.stat-card.border-danger::before  { background: #dc3545; }
.stat-card.border-warning::before { background: #ffc107; }
.stat-card.border-success::before { background: #2A6B3C; }
.stat-card.border-primary::before { background: #1A4A7A; }
.stat-num { font-size: 2rem; font-weight: 800; line-height: 1; }

/* CHECK CIRCLE BUTTON (checklist) */
.check-circle-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2.5px solid var(--color-border);
  background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: transparent;
  transition: all .15s;
  flex-shrink: 0;
  cursor: pointer;
}
.check-circle-btn.is-done {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.check-circle-btn:hover:not(.is-done) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ISSUE TYPE GRID */
.issue-type-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.issue-type-tile {
  background: white;
  border: 2px solid #E8E2D6;
  border-radius: 12px;
  padding: 14px 6px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  min-height: 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.issue-type-tile:hover, .issue-type-tile.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.issue-type-tile .tile-icon  { font-size: 24px; line-height: 1; }
.issue-type-tile .tile-label { font-size: 11px; font-weight: 600; color: #6B6157; }

/* TIMELINE */
.timeline { padding-left: 20px; border-left: 2px solid #E8E2D6; }
.timeline-item { position: relative; padding: 0 0 16px 16px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -26px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid white;
}
.timeline-time { font-size: 11px; color: #A09688; font-family: monospace; }
.timeline-text { font-size: 13px; margin-top: 2px; }

/* TRACKING CODE display */
.tracking-code-display {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 3px;
  background: #1C1916;
  color: #F4F1EC;
  padding: 12px 20px;
  border-radius: 10px;
  display: inline-block;
}

/* NOTIFICATION DROPDOWN */
.notif-item { padding: 10px 14px; border-bottom: 1px solid #F0EBE3; font-size: 13px; }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: #F0F7F2; }
.notif-item-title { font-weight: 600; color: #1C1916; }
.notif-item-msg   { color: #6B6157; margin-top: 2px; }
.notif-item-time  { font-size: 11px; color: #A09688; margin-top: 3px; }

/* PROGRESS BAR */
.progress { border-radius: 99px; }
.progress-bar { border-radius: 99px; background: var(--color-primary); }

/* BOTTOM NAV MOBILE */
.bottom-nav-mobile {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  z-index: 1030;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-mobile .nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 8px 4px 4px;
  font-size: 10px; font-weight: 600; color: #A09688;
  text-decoration: none; border: none; background: none;
}
.bottom-nav-mobile .nav-item.active { color: var(--color-primary); }
.bottom-nav-mobile .nav-item i { font-size: 22px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .bottom-nav-mobile { display: flex; }
  body { padding-bottom: 70px; }
  .btn { min-height: 44px; }
  .btn-lg { min-height: 56px; }
  .check-circle-btn { width: 52px; height: 52px; }
  .issue-type-tile { min-height: 64px; }
  .stat-num { font-size: 1.6rem; }
  .card { border-radius: 16px; }
  .tracking-code-display { font-size: 1.1rem; letter-spacing: 2px; }
  .faculty-logo-banner,
  .brand-logo,
  .wf-nav-logo { height: 30px; max-width: min(280px, 85vw); }
  .login-logo-banner { max-height: 60px; }
  .wf-top-nav { min-height: 64px; padding: 10px 14px; }
  .body-app-layout .app-shell { padding-top: 64px; }
  .body-app-layout .page-content { padding: 20px 14px 84px; }
  .wf-nav-brand { min-width: 0; }
  .wf-nav-user { padding-inline: 10px; }
  .wf-nav-user-name { max-width: 96px; }
  .job-card,
  .timeline-item,
  .card-header,
  .card-body { word-break: break-word; }
  .job-card { align-items: flex-start !important; flex-direction: column; }
  .btn-group-accept { width: 100%; justify-content: stretch; }
  .btn-group-accept .btn { flex: 1 1 0; }
  .pub-page-container,
  .pub-nav-inner,
  .pub-page-hero-inner {
    width: min(100% - 24px, 1160px);
  }
  .pub-nav-inner {
    min-height: 68px;
    gap: 12px;
  }
  .pub-nav-actions { gap: 8px; }
  .pub-nav-link,
  .pub-nav-btn {
    padding: 9px 12px;
    font-size: 13px;
  }
  .pub-page-hero { padding: 32px 0 14px; }
  .pub-page-grid,
  .pub-status-grid,
  .pub-search-form { grid-template-columns: 1fr; }
  .pub-panel-stack { max-width: none; }
}

@media (max-width: 480px) {
  .issue-type-grid { grid-template-columns: repeat(4,1fr); gap: 6px; }
  .issue-type-tile .tile-icon { font-size: 20px; }
  .issue-type-tile .tile-label { font-size: 10px; }
}

@media (max-width: 540px) {
  .pub-brand-faculty { display: none; }
  .pub-nav-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pub-nav-link,
  .pub-nav-btn {
    min-height: 38px;
    padding: 8px 12px;
  }
}

/* APP SHELL LAYOUT (mockup-inspired) */
.app-shell {
  padding-top: 56px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 28px 28px 40px;
}
.page-header { margin-bottom: 24px; }
.page-header-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #A09688;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.page-header-title {
  font-size: 26px;
  font-weight: 800;
  color: #1C1916;
  line-height: 1.1;
}
.page-header-sub {
  font-size: 13px;
  color: #6B6157;
  margin-top: 4px;
}
.sec-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #A09688;
  font-family: 'IBM Plex Mono', monospace;
  margin-bottom: 8px;
  margin-top: 4px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card.mock {
  background: var(--color-surface);
  border: 1px solid #EAE4D8;
  border-radius: 14px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(28,25,22,0.06);
}
.stat-card.mock::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
}
.stat-card.mock.r::before { background: #8B2020; }
.stat-card.mock.o::before { background: #C4621A; }
.stat-card.mock.g::before { background: #2A6B3C; }
.stat-card.mock.b::before { background: #1A4A7A; }
.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #A09688;
  margin-bottom: 6px;
}
.stat-num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: #1C1916;
}
.stat-sub {
  font-size: 11px;
  color: #6B6157;
  margin-top: 4px;
}
.f-group { display:flex; flex-direction:column; gap:5px; margin-bottom:14px; }
.f-label {
  font-size:11px; font-weight:700; color:#6B6157;
  text-transform:uppercase; letter-spacing:.5px;
}
.f-input,.f-select,.f-textarea {
  width:100%; padding:11px 14px;
  border:1.5px solid #D8CEBC;
  border-radius:10px;
  font-family:'Sarabun',sans-serif;
  font-size:14px;
  background:white; color:#1C1916;
}
.f-textarea { resize:vertical; min-height:80px; }
.btn-modern {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:none;
  border-radius:10px;
  font-family:'Sarabun',sans-serif;
  font-weight:700;
  cursor:pointer;
  transition:all .15s;
  font-size:14px;
  padding:10px 18px;
  background:#2A6B3C;
  color:#fff;
}
.btn-modern:active { transform:scale(.97); }

/* Wireframe app navigation */
.body-app-layout { background: var(--color-bg); padding-bottom: 0; }
.body-app-layout {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.55), transparent 30%),
    linear-gradient(180deg, #F7F4EE 0%, var(--color-bg) 42%, #EEE6D8 100%);
  padding-bottom: 0;
}
.body-app-layout .app-shell { padding-top: 72px; min-height: 100vh; }
.body-app-layout .page-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 36px;
  width: 100%;
}
@media (max-width: 768px) {
  .body-app-layout .page-content { padding-bottom: 80px; }
}
.wf-top-nav {
  position: fixed; top: 0; left: 0; right: 0; min-height: 72px; z-index: 200;
  background: rgba(28,25,22,.9); display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(14px); gap: 12px;
}
.wf-nav-brand { display: flex; align-items: center; gap: 10px; color: #F4F1EC; }
.wf-nav-brand .faculty-logo-banner,
.wf-nav-brand .wf-nav-logo {
  height: 38px;
  max-width: min(300px, 55vw);
}
.wf-nav-icon {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(255,255,255,.08); font-size: 20px;
}
.wf-nav-text { display: flex; flex-direction: column; line-height: 1.2; }
.wf-nav-sub { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: #A09688; letter-spacing: 1px; text-transform: uppercase; }
.wf-nav-title { font-size: 13px; font-weight: 700; }
.wf-nav-links {
  gap: 6px;
  flex: 1;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.wf-nav-links::-webkit-scrollbar { display: none; }
.wf-nav-link {
  color: #C9C1B4; text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 9px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; border: 1px solid transparent;
}
.wf-nav-link:hover, .wf-nav-link.active {
  color: #F4F1EC; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.08);
}
.wf-nav-actions { flex: 0 0 auto; }
.wf-nav-bell, .wf-nav-user { color: #F4F1EC; text-decoration: none; font-size: 13px; font-weight: 600; }
.wf-nav-bell {
  width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08);
}
.wf-nav-user {
  min-height: 42px; padding: 8px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08);
}
.wf-nav-user-icon { font-size: 18px; line-height: 1; }
.wf-nav-user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 64px; z-index: 200;
  background: rgba(253,250,245,.96); border-top: 1px solid var(--color-border);
  padding-bottom: env(safe-area-inset-bottom, 0);
  backdrop-filter: blur(10px);
}
.wf-bottom-inner {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(74px, 1fr);
  height: 100%; overflow-x: auto; scrollbar-width: none;
}
.wf-bottom-inner::-webkit-scrollbar { display: none; }
.wf-bottom-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-decoration: none; color: #8E8376; font-size: 10px; font-weight: 700;
  min-width: 74px; padding-inline: 8px;
}
.wf-bottom-item.active { color: var(--color-primary); background: linear-gradient(180deg, rgba(42,107,60,.08), rgba(42,107,60,0)); }
.wf-bottom-icon { font-size: 18px; line-height: 1; }
.wf-bottom-label { white-space: nowrap; }
.gap-20 { gap: 20px; }

.job-card { gap: 14px; }
.btn-group-accept { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.pub-page-body {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.65), transparent 28%),
    linear-gradient(180deg, #F8F6F1 0%, #F2EFE9 46%, #ECE4D8 100%);
}
.pub-page-shell { padding-bottom: 2rem; }
.pub-page-container,
.pub-nav-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  backdrop-filter: blur(14px);
  background: rgba(253,250,245,.88);
  border-bottom: 1px solid rgba(216,206,188,.88);
  box-shadow: 0 6px 20px rgba(28,25,22,.05);
}
.pub-nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pub-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.pub-brand-logo-wrap {
  display: inline-flex;
  align-items: center;
}
.pub-brand-fallback {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), #1F5230);
  color: #fff;
  font-size: 20px;
}
.pub-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.pub-brand-app {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1rem;
}
.pub-brand-faculty {
  font-size: .78rem;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pub-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pub-nav-link,
.pub-nav-btn {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pub-nav-link {
  color: var(--color-primary);
  background: rgba(42,107,60,.08);
}
.pub-nav-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #1F5230);
  box-shadow: 0 10px 20px rgba(42,107,60,.18);
}
.pub-page-hero {
  padding: 52px 0 20px;
}
.pub-page-hero-sm {
  padding-bottom: 12px;
}
.pub-page-hero-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}
.pub-page-kicker,
.pub-section-kicker {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #A09688;
  margin-bottom: 8px;
}
.pub-page-title {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.14;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--color-ink);
  max-width: 760px;
}
.pub-page-sub {
  margin: 0;
  max-width: 760px;
  color: var(--color-muted);
  font-size: clamp(15px, 2.1vw, 18px);
}
.pub-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 20px;
  align-items: start;
}
.pub-panel {
  min-width: 0;
}
.pub-panel-stack {
  max-width: 860px;
}
.pub-step-list {
  display: grid;
  gap: 16px;
}
.pub-step-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.pub-step-no {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
}
.pub-step-title {
  font-weight: 700;
  margin-bottom: 3px;
}
.pub-step-text,
.pub-info-note {
  color: var(--color-muted);
  font-size: 14px;
}
.pub-info-note {
  background: rgba(42,107,60,.08);
  border: 1px solid rgba(42,107,60,.12);
  border-radius: 14px;
  padding: 14px 16px;
}
.pub-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.pub-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pub-status-item {
  background: rgba(255,255,255,.55);
  border: 1px solid #ECE2D2;
  border-radius: 16px;
  padding: 14px 16px;
}
.pub-report-image {
  border-radius: 16px;
  border: 1px solid #E8E2D6;
}

@media (max-width: 900px) {
  .pub-page-container,
  .pub-nav-inner,
  .pub-page-hero-inner {
    width: min(100% - 24px, 1160px);
  }
  .pub-page-grid,
  .pub-status-grid,
  .pub-search-form {
    grid-template-columns: 1fr;
  }
  .pub-panel-stack {
    max-width: none;
  }
}

@media (max-width: 540px) {
  .pub-nav-inner {
    min-height: 68px;
    align-items: flex-start;
    padding-block: 10px;
  }
  .pub-brand-faculty {
    display: none;
  }
  .pub-nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .pub-nav-link,
  .pub-nav-btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .pub-page-hero {
    padding: 28px 0 12px;
  }
  .pub-page-title {
    font-size: 2rem;
  }
  .issue-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .issue-type-tile {
    min-height: 92px;
    padding: 16px 10px;
  }
  .issue-type-tile .tile-label {
    font-size: 12px;
  }
}

/* ============================================================
   LANDING PAGE (หน้าแรก) — ออกแบบใหม่ อ่านง่าย รองรับทุกอุปกรณ์
   ============================================================ */
.lp-body { background: var(--color-bg); margin: 0; overflow-x: hidden; }
.lp { padding-top: 0; }

/* HEADER (แถบหัวสีขาว รองรับโลโก้คณะ) */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #fff;
  border-bottom: 1px solid #E8E2D6;
  box-shadow: 0 1px 6px rgba(28,25,22,.06);
}
.lp-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.lp-brand-logo {
  height: 46px;
  width: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}
.lp-brand-logo-fallback { font-size: 34px; line-height: 1; }
.lp-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.lp-brand-title {
  font-size: 19px;
  font-weight: 800;
  color: #2A6B3C;
  letter-spacing: -.2px;
}
.lp-brand-sub {
  font-size: 12px;
  color: #6B6157;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-header-nav { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.lp-header-link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: #4A443C;
  padding: 10px 14px;
  border-radius: 10px;
}
.lp-header-link:hover { background: #F2EFE9; color: #1C1916; }
.lp-header-btn {
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  padding: 11px 22px;
  border-radius: 999px;
  transition: background .15s ease, transform .12s ease;
}
.lp-header-link { border-radius: 999px; }
.lp-header-btn:hover { background: #225631; }
.lp-header-btn:active { transform: scale(.97); }

@media (max-width: 560px) {
  .lp-header-inner { padding: 8px 14px; }
  .lp-brand-logo { height: 40px; width: 40px; }
  .lp-brand-title { font-size: 17px; }
  .lp-brand-sub { display: none; }
  .lp-header-link { display: none; }
  .lp-header-btn { padding: 10px 16px; font-size: 14px; }
}
.lp-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO */
.lp-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 15% 0%, #3A8551 0%, #2A6B3C 45%, #1F5230 100%);
  color: #fff;
  padding: 64px 20px 72px;
  text-align: center;
}
.lp-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 40px;
  background: var(--color-bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.lp-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.lp-hero-badge-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.lp-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.lp-hero-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -.5px;
}
.lp-hero-sub {
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  margin: 0 auto 28px;
  max-width: 620px;
}
.lp-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ปุ่มหลัก (ขนาดใหญ่ กดง่าย เหมาะกับทุกวัย) */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Sarabun', sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 999px;
  min-height: 58px;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  cursor: pointer;
}
.lp-btn-ico { font-size: 20px; line-height: 1; }
.lp-btn:active { transform: scale(.97); }
.lp-btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: 0 8px 20px rgba(0,0,0,.20);
}
.lp-btn-primary:hover { background: var(--color-accent-dark); box-shadow: 0 10px 24px rgba(0,0,0,.24); }
.lp-btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
}
.lp-btn-ghost:hover { background: rgba(255,255,255,.22); }
.lp-btn-lg { font-size: 19px; padding: 18px 44px; min-height: 62px; }

/* SECTION ทั่วไป */
.lp-section { padding: 40px 0 8px; }
.lp-h2 {
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 800;
  color: #1C1916;
  text-align: center;
  margin: 0 0 8px;
}
.lp-h2-sm { font-size: clamp(18px, 2.6vw, 22px); color: #4A443C; }
.lp-lead {
  font-size: 16px;
  color: #6B6157;
  text-align: center;
  margin: 0 auto 26px;
  max-width: 560px;
  line-height: 1.6;
}

/* ประเภทปัญหา */
.lp-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.lp-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 22px 12px;
  min-height: 108px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.lp-type:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(42,107,60,.14);
}
.lp-type-ico { font-size: 34px; line-height: 1; }
.lp-type-label { font-size: 15px; font-weight: 600; color: #1C1916; text-align: center; }

/* 3 ขั้นตอน */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.lp-step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 30px 24px 26px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(28,25,22,.05);
}
.lp-step-num {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(42,107,60,.3);
}
.lp-step-ico { font-size: 42px; line-height: 1; margin: 8px 0 14px; }
.lp-step-title { font-size: 18px; font-weight: 700; color: #1C1916; margin: 0 0 8px; }
.lp-step-text { font-size: 15px; color: #6B6157; line-height: 1.6; margin: 0; }

/* CTA แถบเรียกร้อง */
.lp-cta {
  margin: 44px 0 8px;
  background: linear-gradient(135deg, #C4621A 0%, #A64E12 100%);
  color: #fff;
  border-radius: 20px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(196,98,26,.28);
}
.lp-cta-title { font-size: clamp(20px, 3vw, 26px); font-weight: 800; margin: 0 0 4px; }
.lp-cta-sub { font-size: 16px; margin: 0; color: rgba(255,255,255,.92); }
.lp-cta .lp-btn-primary { color: var(--color-accent-ink); }
.lp-cta .lp-btn-primary:hover { color: var(--color-accent-ink); }

/* การ์ดเจ้าหน้าที่ */
.lp-staff {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 6px;
}
.lp-staff-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 14px 20px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.lp-staff-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(28,25,22,.12); }
.lp-staff-card.g { border-top-color: #2A6B3C; }
.lp-staff-card.r { border-top-color: #8B2020; }
.lp-staff-card.b { border-top-color: #1A4A7A; }
.lp-staff-card.o { border-top-color: #C4621A; }
.lp-staff-ico { font-size: 32px; line-height: 1; margin-bottom: 4px; }
.lp-staff-name { font-size: 16px; font-weight: 700; color: #1C1916; }
.lp-staff-sub { font-size: 13px; color: #A09688; }

.lp-alert {
  margin-top: 18px;
  background: #FDECEC;
  border: 1px solid #F5C2C2;
  color: #8B2020;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
}
.lp-alert a { color: #8B2020; font-weight: 700; }

/* FOOTER */
.lp-footer {
  margin-top: 48px;
  padding: 32px 20px;
  text-align: center;
  background: #1C1916;
  color: #C9C1B4;
}
.lp-footer-logo { height: 40px; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: .9; }
.lp-footer-name { font-size: 15px; font-weight: 600; color: #F4F1EC; margin-bottom: 4px; }
.lp-footer-copy { font-size: 13px; color: #A09688; }

/* แถบปุ่มลอยล่าง สไตล์แอป (มือถือเท่านั้น) */
.lp-mobilebar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  gap: 10px;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid #E8E2D6;
  box-shadow: 0 -3px 14px rgba(28,25,22,.10);
}
.lp-mobilebar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  min-height: 52px;
  border-radius: 999px;
}
.lp-mobilebar-primary {
  flex: 2 1 0;
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.lp-mobilebar-ghost {
  flex: 1 1 0;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .lp-types { grid-template-columns: repeat(4, 1fr); }
  .lp-staff { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lp-hero { padding: 40px 18px 52px; }
  .lp-hero-badge-icon { width: 80px; height: 80px; font-size: 38px; }
  .lp-hero-actions { flex-direction: column; }
  .lp-btn { width: 100%; }
  .lp-types { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lp-steps { grid-template-columns: 1fr; gap: 26px; }
  .lp-cta { flex-direction: column; text-align: center; padding: 28px 22px; }
  .lp-cta .lp-btn { width: 100%; }
  .lp-mobilebar { display: flex; }
  .lp-footer { margin-bottom: 76px; }
}
@media (max-width: 380px) {
  .lp-types { grid-template-columns: 1fr 1fr; }
  .lp-staff { grid-template-columns: 1fr; }
}

/* Admin checklist logs */
.checklist-log-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.checklist-photo-btn:hover .checklist-log-thumb {
  opacity: 0.85;
}

/* QR scan */
.qr-scan-body {
  font-family: 'Sarabun', sans-serif;
  background: linear-gradient(180deg, #E6F2EA 0%, #F2EFE9 40%);
  min-height: 100vh;
  margin: 0;
}
.qr-scan-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.qr-scan-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}
.qr-scan-zone {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6B6157;
  text-align: center;
}
.qr-scan-title {
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
  margin: 8px 0 4px;
  color: #1C1916;
}
.qr-scan-meta { text-align: center; font-size: 13px; color: #A09688; }
.qr-scan-maid-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #D8CEBC;
}
.qr-scan-status {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  border: 2px solid #D8CEBC;
}
.qr-scan-status.is-done { border-color: #2A6B3C; background: #F0F7F2; }
.qr-status-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #2A6B3C;
  color: #fff;
  font-size: 36px;
  line-height: 72px;
  margin: 0 auto 12px;
  font-weight: 800;
}
.qr-status-icon.pending {
  background: #fff;
  color: #C4621A;
  border: 3px solid #C4621A;
  line-height: 66px;
}
.qr-scan-btn { min-height: 56px; font-weight: 700; border-radius: 14px; }
.qr-print-card { border: 1px dashed #D8CEBC; }