:root {
  --bg-kiosk: #080f13;
  --accent: #2ef387;
  --bg-deep: #030608;
  --panel: #111b22;
  --panel-alt: #16242c;
  --border: #1c323e;
  --border-focus: #2a4c5d;
  --text: #ffffff;
  --body: #d1e2eb;
  --muted: #a4bcc8;
  --cyan: #22d3ee;

  /* Checklist / Task Typography & Touch Target Tokens */
  --task-title-size: 20px;
  --task-desc-size: 16px;
  --task-tag-size: 14px;
  --task-btn-min-height: 56px;
  --task-card-gap: 16px;
  --task-card-padding: 16px;

  /* Aliases */
  --todo-title-size: var(--task-title-size);
  --todo-desc-size: var(--task-desc-size);
  --todo-tag-size: var(--task-tag-size);
  --todo-btn-min-height: var(--task-btn-min-height);
  --todo-card-gap: var(--task-card-gap);
  --todo-card-padding: var(--task-card-padding);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg-deep);
  font-family: 'Prompt', sans-serif;
  color: var(--text);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.kiosk-canvas {
  width: 100%;
  max-width: 880px;
  min-height: 100vh;
  height: auto;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 18%, #10242a 0%, #080f13 65%, #04080a 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
  .kiosk-canvas {
    border-radius: 28px;
    margin: 20px auto;
    min-height: calc(100vh - 40px);
    border: 1px solid #1c363d;
  }
}

@media (min-width: 800px) and (max-height: 1300px) and (min-height: 1260px) {
  .kiosk-canvas {
    width: 800px !important;
    height: 1280px !important;
    max-width: 800px !important;
    max-height: 1280px !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
  }
}

.glass-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.glass-card {
  background-color: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.w-13 {
  width: 3.25rem;
}

.h-13 {
  height: 3.25rem;
}

.glass-panel-active {
  background: #172731;
  border: 1.5px solid var(--accent);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.45);
}

.stage-tab {
  min-height: 104px;
  padding: 10px 12px 10px;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.stage-tab .font-thai {
  letter-spacing: -0.02em;
}

.stage-tab:hover {
  transform: translateY(-1px);
}

.info-system-header {
  width: calc(100% - 24px);
  margin: 12px 12px 0;
  height: 54px;
  padding: 8px 14px;
  border-radius: 16px;
  background: #111b22;
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
  .info-system-header {
    width: calc(100% - 48px);
    margin: 20px 24px 0;
    height: 56px;
    padding: 10px 24px;
  }
}

.info-logo-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border-radius: 8px;
  min-height: 44px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.info-logo-link:hover {
  opacity: 0.9;
}

.info-logo-link:hover h1 {
  color: var(--accent);
}

.info-logo-link:active {
  transform: scale(0.98);
}

.info-system-header h1 {
  margin: 0;
  color: #ffffff;
  font-family: 'Prompt', sans-serif;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: color 0.15s ease;
}

.info-system-status {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
}

.info-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid #284452;
  border-radius: 999px;
  background: #172731;
  color: #f1f7f9;
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.info-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.info-status-divider {
  color: #475569;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

#info-current-time {
  min-width: 80px;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: right;
}

#stageTabs {
  gap: 10px !important;
  margin-top: 8px;
  padding-bottom: 6px;
}

.stage-tab {
  position: relative;
  z-index: 1;
  width: 25%;
  min-height: 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 8px 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(17, 27, 34, 0.85);
  transition: all 0.2s ease;
  text-align: center;
}

.stage-tab.glass-panel-active {
  background: #172731;
  border: 1.5px solid var(--accent);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.45);
}

.stage-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 231, 255, 0.45);
}

.stage-node {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 32, 37, 0.9);
  border: 2px solid rgba(122, 169, 179, 0.6);
  color: rgba(180, 205, 212, 0.9);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  margin-top: 2px;
}

.stage-node-active {
  background: linear-gradient(135deg, rgba(46, 243, 135, 0.25), rgba(10, 146, 91, 0.95));
  border-color: var(--accent);
  color: #f5fff9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.stage-node-mark {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.stage-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.stage-name {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #f3f7f7;
  font-family: 'Prompt', sans-serif;
}

.stage-days {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9fe7ce;
  font-family: 'JetBrains Mono', monospace;
}

.stage-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(31, 45, 52, 0.8);
  border: 1px solid rgba(122, 169, 179, 0.38);
  color: rgba(173, 198, 206, 0.96);
  font-size: 12px;
  font-weight: 700;
  font-family: 'Prompt', sans-serif;
}

.stage-tab.glass-panel-active .stage-state {
  background: rgba(46, 243, 135, 0.15);
  border-color: rgba(46, 243, 135, 0.5);
  color: #7af8ba;
}

#stageProgressTrack {
  left: 10%;
  width: 28%;
}

main {
  scroll-behavior: smooth;
  padding-top: 10px !important;
}

main::-webkit-scrollbar {
  width: 8px;
}

main::-webkit-scrollbar-track {
  background: #071115;
}

main::-webkit-scrollbar-thumb {
  background: #24434e;
  border-radius: 999px;
}

main::-webkit-scrollbar-thumb:hover {
  background: #2ef387;
}

#todoContainer>div,
#equipContainer>div,
#view-warn>div {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

#todoContainer>div:hover,
#equipContainer>div:hover {
  border-color: rgba(46, 243, 135, 0.38);
  transform: translateY(-1px);
}

#subTab-chart,
#subTab-todo,
#subTab-equip,
#subTab-warn {
  min-height: 48px !important;
  height: 48px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

#todoContainer .glass-panel,
#equipContainer .glass-panel {
  padding: 14px 15px !important;
}

#todoContainer .glass-panel>div:first-child,
#equipContainer .glass-panel>div:first-child {
  padding-bottom: 10px !important;
}

/* Keep the info screen on the same compact visual scale as the home screen. */
.kiosk-canvas>section {
  padding-left: 28px !important;
  padding-right: 28px !important;
}

#stageTabs {
  padding-left: 0;
  padding-right: 0;
}

.stage-tab {
  min-height: 118px;
  gap: 7px;
  padding: 8px 6px 9px;
  border-radius: 16px;
}

.stage-node {
  width: 42px;
  height: 42px;
}

.stage-node-mark {
  font-size: 18px;
}

.stage-name {
  font-size: 16px;
}

.stage-days {
  font-size: 12px;
}

.stage-state {
  min-width: 66px;
  padding: 4px 8px;
  font-size: 12px;
}

#subTab-chart,
#subTab-todo,
#subTab-equip,
#subTab-warn {
  gap: 8px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

#subTab-chart span:first-child,
#subTab-todo span:first-child,
#subTab-equip span:first-child,
#subTab-warn span:first-child {
  font-size: 18px !important;
  line-height: 1 !important;
}

#subTab-chart span.tracking-tight,
#subTab-todo span.tracking-tight,
#subTab-equip span.tracking-tight,
#subTab-warn span.tracking-tight {
  font-size: 15px !important;
  font-weight: 700 !important;
}

main {
  padding-left: 28px !important;
  padding-right: 28px !important;
  padding-bottom: 112px !important;
  gap: 12px !important;
}

main>.glass-panel:first-child {
  padding: 16px 18px !important;
  border-radius: 18px;
}

main>.glass-panel:first-child h2 {
  font-size: 24px !important;
  line-height: 1.3 !important;
}

main>.glass-panel:first-child #stageBadge {
  font-size: 14.5px !important;
  padding: 5px 12px !important;
  font-weight: 700 !important;
}

main>.glass-panel:first-child #stageTitle {
  font-size: 22px !important;
  line-height: 1.35 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

main>.glass-panel:first-child #stageDesc {
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  color: #d1e2eb !important;
  font-weight: 500 !important;
}

main>.glass-panel:first-child>div:last-child {
  padding-left: 12px !important;
}

main>.glass-panel:first-child>div:last-child>div {
  min-width: 150px !important;
  padding: 10px !important;
}

main>.glass-panel:first-child #stageDays {
  font-size: 22px !important;
  font-weight: 800 !important;
}

main>.glass-panel:first-child #stageProgress {
  font-size: 14px !important;
  padding: 6px 10px !important;
  font-weight: 700 !important;
}

#view-todo>div:first-child,
#view-equip>div:first-child {
  margin-bottom: 0 !important;
}

#view-todo>div:first-child span:first-child,
#view-equip>div:first-child span:first-child {
  font-size: 17px !important;
  font-weight: 700 !important;
}

#todoCounter {
  font-size: 14px !important;
  padding: 6px 12px !important;
  font-weight: 700 !important;
}

#todoContainer,
#equipContainer {
  gap: 12px !important;
}

#todoContainer .glass-panel,
#equipContainer .glass-panel {
  padding: 14px 16px !important;
  border-radius: 16px;
}

#todoContainer .glass-panel {
  gap: 10px !important;
}

#todoContainer .glass-panel>div:first-child {
  padding-bottom: 8px !important;
}

#todoContainer .glass-panel>div:nth-child(2) {
  gap: 12px !important;
}

#todoContainer .glass-panel h3 {
  font-size: 20px !important;
  line-height: 1.35 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

#todoContainer .glass-panel p {
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  margin-top: 6px !important;
  color: #d1e2eb !important;
  font-weight: 500 !important;
}

#todoContainer .glass-panel .mt-3 {
  margin-top: 10px !important;
}

#todoContainer .glass-panel>div:first-child span:first-child {
  font-size: 14.5px !important;
  padding: 6px 12px !important;
  font-weight: 700 !important;
}

#todoContainer .glass-panel>div:first-child span:last-child {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #b0c9d5 !important;
}

#todoContainer .glass-panel .mt-3 span {
  font-size: 14px !important;
  padding: 6px 12px !important;
  font-weight: 700 !important;
}

#todoContainer .glass-panel button {
  min-width: 44px !important;
  min-height: 44px !important;
}

.todo-progress-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(95, 231, 255, 0.35);
  border-radius: 999px;
  background: rgba(95, 231, 255, 0.1);
  color: #8eeeff;
  font-family: 'Prompt', sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.kiosk-checklist-progress-panel {
  position: relative;
  padding: 20px !important;
  box-sizing: border-box;
  background: linear-gradient(145deg, rgba(12, 24, 30, 0.95) 0%, rgba(8, 16, 21, 0.98) 100%);
  border: 1px solid rgba(26, 50, 60, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.kiosk-home-link-pill {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.kiosk-home-link-pill:hover {
  border-color: #2ef387;
  color: #2ef387;
  transform: translateX(-2px);
}

.task-card-highlight {
  animation: taskCardPulse 1.5s ease-in-out infinite alternate;
}

@keyframes taskCardPulse {
  0% {
    border-color: rgba(46, 243, 135, 0.4);
    outline: 2px solid transparent;
  }
  100% {
    border-color: rgba(46, 243, 135, 0.95);
    outline: 2px solid rgba(46, 243, 135, 0.35);
  }
}

#todoContainer {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--todo-card-gap, 16px) !important;
}

#todoContainer > * + * {
  margin-top: 0 !important;
}

.todo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--todo-card-padding, 16px) !important;
  transition: all 0.25s ease;
}

.todo-card-done {
  border-color: rgba(46, 243, 135, 0.5) !important;
  background: linear-gradient(145deg, rgba(14, 36, 27, 0.85) 0%, rgba(9, 23, 18, 0.92) 100%) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(46, 243, 135, 0.06);
}

.todo-card-overdue {
  border-color: rgba(245, 158, 11, 0.5) !important;
  background: linear-gradient(145deg, rgba(35, 23, 11, 0.88) 0%, rgba(20, 14, 8, 0.95) 100%) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(245, 158, 11, 0.08) !important;
}

.todo-card-overdue:hover {
  border-color: rgba(245, 158, 11, 0.75) !important;
}

.todo-card-overdue .todo-card-title {
  color: #fffbeb !important;
}

.todo-card-due {
  border-color: rgba(234, 179, 8, 0.45) !important;
  background: linear-gradient(145deg, rgba(32, 28, 10, 0.9) 0%, rgba(20, 17, 7, 0.95) 100%) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(234, 179, 8, 0.08) !important;
}

.todo-card-due:hover {
  border-color: rgba(234, 179, 8, 0.75) !important;
}

.todo-card-due .todo-card-title {
  color: #fef9c3 !important;
}

.todo-card-done .todo-card-title {
  color: #d1fae5 !important;
}

.todo-step-label {
  padding: 4px 10px;
  border: 1px solid rgba(122, 169, 179, 0.3);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(7, 17, 21, 0.4);
  font-family: 'Prompt', sans-serif;
  font-size: var(--todo-tag-size, 14px) !important;
  font-weight: 700;
  white-space: nowrap;
}

.todo-card-done .todo-step-label {
  border-color: rgba(46, 243, 135, 0.4);
  color: #7af8ba;
}

.todo-card-title {
  padding-right: 4px;
  font-size: var(--todo-title-size, 20px) !important;
  line-height: 1.35;
}

.todo-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(95, 231, 255, 0.35);
  border-radius: 10px;
  background: rgba(18, 33, 39, 0.9);
  color: #8eeeff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.todo-time-emoji {
  font-family: sans-serif !important;
  font-size: 16px;
}

.todo-card-summary,
.todo-card-desc {
  font-size: var(--todo-desc-size, 16px) !important;
  line-height: 1.6;
  max-width: 58ch;
}

.todo-card-badge {
  font-size: var(--todo-tag-size, 14px) !important;
}

.todo-card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.todo-detail-button {
  min-width: 108px;
  min-height: var(--todo-btn-min-height, 56px) !important;
  height: var(--todo-btn-min-height, 56px) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid rgba(95, 231, 255, 0.45);
  border-radius: 14px;
  background: rgba(95, 231, 255, 0.09);
  color: #c2f3ff;
  font-family: 'Prompt', sans-serif;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.todo-detail-button:hover,
.todo-detail-button:focus-visible {
  border-color: #5fe7ff;
  background: rgba(95, 231, 255, 0.18);
  color: #ffffff;
  outline: none;
}

.todo-detail-button:active {
  transform: scale(0.97);
  background: rgba(95, 231, 255, 0.25);
}

.todo-detail-icon {
  font-family: sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto !important;
  font-size: 15px;
  line-height: 1;
  display: inline-block;
  font-weight: 800;
  margin-top: -1px;
}

.todo-card-expanded {
  border-color: rgba(95, 231, 255, 0.65) !important;
}

.todo-detail-panel {
  display: grid;
  gap: 9px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(95, 231, 255, 0.25);
  border-radius: 12px;
  background: rgba(5, 18, 23, 0.72);
}

.todo-detail-heading {
  color: #8eeeff;
  font-size: 14px;
  font-weight: 800;
}

.todo-detail-section {
  display: grid;
  gap: 3px;
}

.todo-detail-section strong {
  color: #f2ffff;
  font-size: 12px;
  font-weight: 800;
}

.todo-detail-section p,
.todo-detail-section li,
.todo-consequence {
  margin: 0;
  color: #c4d8dc;
  font-size: 12px;
  line-height: 1.45;
}

.todo-detail-section ol {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 4px;
  list-style: none;
}

.todo-detail-section li {
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(18, 39, 46, 0.8);
}

.todo-parameters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.todo-parameters div {
  display: grid;
  gap: 2px;
  padding: 7px;
  border: 1px solid rgba(0, 255, 135, 0.25);
  border-radius: 8px;
  background: rgba(0, 255, 135, 0.07);
}

.todo-parameters span {
  color: #9bb7bf;
  font-size: 12px;
}

.todo-parameters b {
  color: #7af8ba;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.15;
}

.todo-warning {
  padding: 10px 14px;
  border: 1px solid rgba(255, 200, 87, 0.35);
  border-radius: 10px;
  background: rgba(255, 200, 87, 0.08);
}

.todo-warning strong {
  color: #ffd978;
}

.todo-consequence {
  padding-top: 8px;
  border-top: 1px solid rgba(122, 169, 179, 0.2);
}

.todo-consequence b {
  color: #ffcf6e;
}

.todo-check-button {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 10px;
  border: 2px solid rgba(148, 175, 190, 0.5);
  background: rgba(18, 33, 40, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.todo-check-button:hover,
.todo-check-button:focus-visible {
  border-color: #2ef387;
  background: rgba(46, 243, 135, 0.1);
  transform: scale(1.05);
}

.todo-check-button:active {
  transform: scale(0.95);
}

/* ถ้างานเลยเวลา ให้ขอบปุ่มเป็นสีส้ม หนาชัดเจน */
.todo-check-button.is-overdue,
.todo-card-overdue .todo-check-button:not(.is-done) {
  border: 2px solid #f59e0b !important;
  background: rgba(245, 158, 11, 0.12) !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2) !important;
}

.todo-check-button.is-overdue:hover,
.todo-card-overdue .todo-check-button:not(.is-done):hover {
  border-color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.2) !important;
}

/* เสร็จแล้ว: พื้นเขียว มีเครื่องหมายถูก ขนาดกะทัดรัด */
.todo-check-button.is-done {
  border: 2px solid #2ef387 !important;
  background: #2ef387 !important;
  color: #062218 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 8px rgba(46, 243, 135, 0.3) !important;
}

.todo-check-button.is-done:hover {
  border-color: #38f890 !important;
  background: #38f890 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(46, 243, 135, 0.45) !important;
}

.todo-check-button svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #062218;
  stroke-width: 3.2;
  display: block;
}

.info-bottom-nav {
  position: sticky;
  bottom: 12px;
  margin: 12px 14px 16px 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border: 1px solid #23323b;
  border-radius: 16px;
  background: rgba(18, 27, 32, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55);
  z-index: 30;
}

@media (min-width: 640px) {
  .info-bottom-nav {
    margin: 16px 28px 24px 28px;
    gap: 16px;
    padding: 10px;
    bottom: 20px;
  }
}

.info-bottom-link {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #23323b;
  border-radius: 12px;
  background: #162128;
  color: #d1d5db;
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .info-bottom-link {
    min-height: 60px;
    padding: 14px 24px;
    font-size: 16px;
    gap: 12px;
  }
}

.info-bottom-link-active {
  border: 2px solid #34eb91;
  background: #1c2930;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.info-bottom-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.info-bottom-icon-muted {
  color: #9ca3af;
}

.info-bottom-icon-active {
  color: #2ef387;
}

#equipContainer .glass-panel h3 {
  font-size: 20px !important;
  line-height: 1.35 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

#equipContainer .glass-panel b {
  font-size: 15px !important;
  color: #ffffff !important;
}

#equipContainer .glass-panel span.text-\[14px\] {
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  color: #d1e2eb !important;
}

/* Shared kiosk polish: keep the guide page visually aligned with home. */
.kiosk-canvas {
  gap: 12px;
  background: radial-gradient(circle at 50% 18%, #10242a 0%, #060a0d 68%);
}

.info-system-header {
  margin-top: 28px;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.2);
}

.kiosk-canvas>section:first-of-type {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#stageTabs {
  margin-top: 6px;
}

.kiosk-canvas>section:nth-of-type(2) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#subTab-chart,
#subTab-todo,
#subTab-equip,
#subTab-warn {
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 12px !important;
}

main {
  padding-top: 0 !important;
  gap: 10px !important;
}

main>.glass-panel:first-child {
  margin-top: 0 !important;
  padding: 14px !important;
  border-radius: 16px;
}

#view-todo>div:first-child {
  padding-left: 2px;
  padding-right: 2px;
}

#todoContainer .glass-panel {
  border-radius: 12px;
  background: rgba(18, 33, 39, 0.9);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #070d0f;
}

::-webkit-scrollbar-thumb {
  background: #1e383f;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2ef387;
}

/* ==========================================================================
   METRIC SUMMARY CARDS (EC & pH) & TELEMETRY CHARTS
   ========================================================================== */
.kiosk-metric-card {
  background: linear-gradient(180deg, #13222a 0%, #0d171d 100%);
  border: 1px solid #1c3640;
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.kiosk-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
}

.kiosk-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kiosk-metric-title {
  font-size: 14px;
  font-weight: 700;
  color: #94a9b3;
  letter-spacing: 0.02em;
}

.kiosk-metric-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  display: inline-block;
}

.kiosk-metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.kiosk-metric-number {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-family: 'Prompt', sans-serif;
}

.kiosk-metric-arrow {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.kiosk-metric-badge-row {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.kiosk-metric-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: 'Prompt', sans-serif;
  letter-spacing: 0.01em;
}

/* Trend Chart Card */
.kiosk-chart-card {
  background: linear-gradient(180deg, #13222a 0%, #0d171d 100%);
  border: 1px solid #1c3640;
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.kiosk-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1c323e;
  padding-bottom: 12px;
}

.kiosk-chart-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kiosk-chart-icon {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.chart-metric-btn {
  padding: 8px 18px;
  border-radius: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #b0c8d4;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chart-metric-btn.active {
  color: #ffffff;
  background: #1c323e;
  border-color: #2ef387;
  box-shadow: 0 0 12px rgba(46, 243, 135, 0.25);
}

.kiosk-time-pills {
  display: flex;
  align-items: center;
  background: #0b1318;
  border: 1px solid #1c323e;
  border-radius: 12px;
  padding: 3px 4px;
  gap: 4px;
}

.kiosk-time-pill {
  padding: 8px 18px;
  border-radius: 9px;
  font-family: 'Prompt', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #b0c8d4;
  background: transparent;
  border: none;
  cursor: pointer;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.kiosk-time-pill.active {
  background: #22d3ee;
  color: #04080a;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}

.kiosk-svg-container {
  width: 100%;
  height: 200px;
  background: #080f13;
  border-radius: 14px;
  border: 1px solid #152731;
  overflow: hidden;
  position: relative;
}

.kiosk-chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

.kiosk-chart-legend {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kiosk-legend-swatch {
  width: 16px;
  height: 10px;
  border-radius: 3px;
  background: rgba(46, 243, 135, 0.35);
  border: 1.5px solid #2ef387;
  display: inline-block;
}

.kiosk-legend-text {
  font-size: 14px;
  color: #c4d7e0;
  font-weight: 600;
}

.kiosk-chart-current-value {
  font-size: 15px;
  color: #e2f0f5;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   COMPACT UNIFIED STAGE & TIMELINE STRIP (Height <= 90px when collapsed)
   ========================================================================== */
.kiosk-compact-stage-strip {
  background: linear-gradient(180deg, #13222a 0%, #0d171d 100%);
  border: 1px solid #1c3640;
  border-radius: 16px;
  padding: 8px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.kiosk-compact-stage-strip:not(.is-expanded) {
  max-height: 90px;
}

.kiosk-stage-detail-btn {
  min-height: 32px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.kiosk-stage-detail-btn:hover {
  border-color: rgba(46, 243, 135, 0.45);
  color: #ffffff;
}

.kiosk-stage-detail-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   AGRONOMIC HERO COCKPIT
   ========================================================================== */
.kiosk-hero-cockpit {
  background: linear-gradient(180deg, #13222a 0%, #0d171d 100%);
  border: 1px solid #1c3640;
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.kiosk-hero-cockpit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(46, 243, 135, 0.4), transparent);
}

.kiosk-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kiosk-stage-pill {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Prompt', sans-serif;
  color: #2ef387;
  background: rgba(46, 243, 135, 0.15);
  border: 1px solid rgba(46, 243, 135, 0.35);
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kiosk-status-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #94a9b3;
  background: rgba(18, 33, 39, 0.85);
  border: 1px solid #1c323e;
  padding: 4px 10px;
  border-radius: 9999px;
}

.kiosk-cycle-day-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.kiosk-hero-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kiosk-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #f1f7f9;
  letter-spacing: -0.01em;
  margin: 0;
}

.kiosk-hero-desc {
  font-size: 15.5px;
  color: #d1e2eb;
  line-height: 1.65;
  margin: 0;
  font-weight: 500;
}

.kiosk-cockpit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #1c323e;
}

@media (min-width: 640px) {
  .kiosk-cockpit-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kiosk-cockpit-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #091318;
  border: 1px solid #162731;
  border-radius: 12px;
}

.kiosk-chip-icon {
  font-size: 18px;
  line-height: 1;
}

.kiosk-chip-label {
  display: block;
  font-size: 13.5px;
  color: #a4bcc8;
  font-weight: 600;
}

.kiosk-chip-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

/* ==========================================================================
   4-FACTOR ENVIRONMENTAL MATRIX (TAB 1)
   ========================================================================== */
.kiosk-env-card {
  background: #0b1419;
  border: 1px solid #162933;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 0.2s ease;
}

.kiosk-env-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kiosk-env-icon {
  font-size: 16px;
  line-height: 1;
}

.kiosk-env-name {
  font-size: 15px;
  font-weight: 700;
  color: #e2f0f5;
}

.kiosk-env-val {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.kiosk-env-range {
  font-size: 14px;
  color: #c8dce6;
  font-weight: 600;
}

.kiosk-env-status {
  font-size: 14px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 9999px;
  display: inline-block;
  width: fit-content;
}

/* ==========================================================================
   ENHANCED TO-DO CHECKLIST & SOP STYLES (TAB 2)
   ========================================================================== */
.todo-sop-numbered-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: #091216;
  border: 1px solid #162731;
  border-radius: 12px;
}

.todo-sop-number-badge {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: rgba(34, 211, 238, 0.2);
  border: 1.5px solid #22d3ee;
  color: #22d3ee;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.todo-sop-step-text {
  font-size: 15px;
  color: #ffffff;
  line-height: 1.6;
  font-family: 'Prompt', sans-serif;
  font-weight: 500;
}

/* ==========================================================================
   ENHANCED EQUIPMENT STYLES (TAB 3)
   ========================================================================== */
.kiosk-equip-card {
  background: linear-gradient(145deg, rgba(12, 23, 29, 0.95) 0%, rgba(8, 16, 21, 0.98) 100%);
  border: 1px solid rgba(26, 50, 60, 0.85);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.kiosk-equip-card:hover {
  border-color: rgba(46, 243, 135, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.kiosk-equip-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kiosk-equip-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 27, 34, 0.95) 0%, rgba(8, 16, 21, 0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  padding: 6px;
  transition: all 0.25s ease;
}

.kiosk-equip-icon-box svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kiosk-equip-card:hover .kiosk-equip-icon-box {
  transform: translateY(-2px);
}

.kiosk-equip-card:hover .kiosk-equip-icon-box svg {
  transform: scale(1.08);
}

.kiosk-equip-icon-box-green {
  border: 1px solid rgba(46, 243, 135, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 0 14px rgba(46, 243, 135, 0.12);
}

.kiosk-equip-icon-box-cyan {
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 0 14px rgba(34, 211, 238, 0.12);
}

.kiosk-equip-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.kiosk-equip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kiosk-equip-index {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #9ab3c0;
  background: #080f13;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #162731;
}

.kiosk-equip-cat-pill {
  font-size: 12px;
  font-weight: 600;
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 2.5px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.kiosk-equip-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.kiosk-equip-spec {
  font-size: 14px;
  color: #c4d7e2;
  line-height: 1.55;
  font-weight: 500;
  background: rgba(8, 16, 21, 0.65);
  border: 1px solid rgba(26, 50, 60, 0.75);
  border-radius: 10px;
  padding: 10px 12px;
  flex: 1;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   ENHANCED HAZARD & BENCHMARK STYLES (TAB 4)
   ========================================================================== */
.kiosk-hazard-card {
  background: linear-gradient(180deg, rgba(35, 14, 18, 0.8) 0%, rgba(20, 9, 12, 0.9) 100%);
  border: 1px solid rgba(239, 35, 60, 0.35);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.kiosk-hazard-card.severity-critical {
  background: linear-gradient(180deg, rgba(35, 14, 18, 0.85) 0%, rgba(20, 9, 12, 0.95) 100%);
  border-color: rgba(239, 35, 60, 0.45);
}

.kiosk-hazard-card.severity-high {
  background: linear-gradient(180deg, rgba(38, 24, 10, 0.85) 0%, rgba(22, 14, 6, 0.95) 100%);
  border-color: rgba(245, 158, 11, 0.45);
}

.kiosk-hazard-card.severity-medium {
  background: linear-gradient(180deg, rgba(12, 28, 40, 0.85) 0%, rgba(7, 18, 26, 0.95) 100%);
  border-color: rgba(56, 189, 248, 0.4);
}

.kiosk-hazard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kiosk-hazard-title {
  font-size: 18.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kiosk-hazard-badge {
  font-size: 13.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(239, 35, 60, 0.2);
  border: 1px solid rgba(239, 35, 60, 0.45);
  color: #ff4d6d;
  font-family: 'Prompt', sans-serif;
  white-space: nowrap;
}

.kiosk-hazard-badge.badge-critical {
  background: rgba(239, 35, 60, 0.2);
  border-color: rgba(239, 35, 60, 0.5);
  color: #ff4d6d;
}

.kiosk-hazard-badge.badge-high {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fbbf24;
}

.kiosk-hazard-badge.badge-medium {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

.kiosk-hazard-action-box {
  background: rgba(18, 35, 27, 0.85);
  border: 1.5px solid rgba(46, 243, 135, 0.45);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kiosk-hazard-action-title {
  font-size: 16px;
  font-weight: 800;
  color: #2ef387;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.01em;
}

.kiosk-hazard-action-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kiosk-hazard-action-item {
  font-size: 16px !important;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.kiosk-hazard-action-dot {
  color: #2ef387;
  font-weight: 800;
  margin-top: 2px;
  flex-shrink: 0;
}

.kiosk-hazard-toggle-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(18, 33, 40, 0.7);
  border: 1px solid rgba(148, 175, 190, 0.35);
  color: #c7dce6;
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.kiosk-hazard-toggle-btn:hover {
  border-color: rgba(95, 231, 255, 0.5);
  background: rgba(24, 44, 53, 0.85);
  color: #ffffff;
}

.kiosk-hazard-cause-panel {
  background: rgba(11, 20, 26, 0.85);
  border: 1px solid rgba(255, 200, 87, 0.25);
  border-radius: 12px;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.kiosk-hazard-cause-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffd978;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kiosk-hazard-cause-text {
  font-size: 15px;
  color: #d1e2eb;
  line-height: 1.6;
  margin: 0;
}

.kiosk-hazard-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.kiosk-benchmark-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

@media (min-width: 540px) {
  .kiosk-benchmark-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kiosk-benchmark-card {
  background: #0b151b;
  border: 1px solid #162b35;
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.kiosk-benchmark-number,
.kiosk-benchmark-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 9999px;
  background: #14242e;
  border: 1.5px solid #2a4151;
  color: #9cb4c3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.kiosk-benchmark-badge-muted {
  background: #14242e;
  border: 1px solid #2b4150;
  color: #94abb9;
}

.kiosk-benchmark-badge-active {
  background: rgba(46, 243, 135, 0.15);
  border: 1px solid rgba(46, 243, 135, 0.4);
  color: #2ef387;
}

.kiosk-benchmark-toggle-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: #12202a;
  border: 1px solid #223744;
  color: #9cb4c3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kiosk-benchmark-toggle-btn:hover {
  background: #182b38;
  color: #ffffff;
  border-color: #314d60;
}

.kiosk-benchmark-text {
  font-size: 15px;
  color: #ffffff;
  line-height: 1.6;
}

/* De-emphasized Admin Access Button in Info Header (Discreet icon-only for technicians) */
.admin-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #64748b;
  text-decoration: none;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.admin-link-badge:hover {
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

/* Expandable "ทำไม?" Button in Guidance Section */
.btn-why-guide {
  font-family: 'Prompt', sans-serif;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  min-height: 32px;
}

.btn-why-guide:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Small badge counter on "ข้อควรระวัง" tab */
.kiosk-tab-badge-critical,
.kiosk-tab-badge-high {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 9999px;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #ffffff !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-left: 2px;
}

.kiosk-tab-badge-critical {
  background: #ef4444 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.kiosk-tab-badge-high {
  background: #f97316 !important;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}