/* ติดต่อด่วน (plan/contact/) — tokens only (ui/scss/_theme.scss); used by /ติดต่อด่วน/ and the office-page card */
.ct-sos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 4px; padding: 0; list-style: none; }
.ct-sos a { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 72px; padding: 8px 4px;
  border-radius: 14px; text-decoration: none !important; border: 1px solid var(--op-danger); color: var(--op-danger);
  background: color-mix(in srgb, var(--op-danger) 9%, var(--op-card)); }
.ct-sos b { font: 700 26px/1.1 var(--op-font-heading); letter-spacing: .5px; }
.ct-sos span { font-size: 13px; line-height: 1.3; color: var(--op-text); }
.ct-sos a:active { transform: scale(.98); }
.ct-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 700 18px/1.3 var(--op-font-heading); margin: 0 0 8px; color: var(--op-heading); }
.ct-h i { color: var(--op-action); }
.ct-badge { display: inline-block; font: 500 12.5px/1.5 var(--op-font); border-radius: 999px; padding: 1px 9px; white-space: nowrap; background: var(--op-border); color: var(--op-muted); }
.ct-ok { background: color-mix(in srgb, var(--op-success) 14%, var(--op-card)); color: var(--op-success); }
.ct-warn { background: color-mix(in srgb, var(--op-warning) 16%, var(--op-card)); color: var(--op-warning); }
.ct-bad { background: color-mix(in srgb, var(--op-danger) 14%, var(--op-card)); color: var(--op-danger); }
.ct-list { margin: 0; padding: 0; list-style: none; }
.ct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 0; border-top: 1px solid var(--op-border); }
.ct-row:first-child { border-top: 0; }
.ct-t { flex: 1 1 200px; min-width: 0; }
.ct-t b { display: block; font-weight: 600; color: var(--op-heading); }
.ct-t small { display: block; color: var(--op-muted); font-size: 13px; line-height: 1.5; }
.ct-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-start; flex: 0 1 auto; }
.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 12px;
  font: 600 15px/1 var(--op-font-heading); text-decoration: none !important; border: 1px solid var(--op-action); color: var(--op-action); background: transparent; white-space: nowrap; }
.ct-call { background: var(--op-btn); border-color: var(--op-btn); color: #fff !important; }
.ct-line { border-color: #06A54A; color: #06A54A; } .theme-dark .ct-line { color: #4ADE80; border-color: #4ADE80; }
.ct-note { font-size: 12.5px; color: var(--op-muted); margin: 6px 0 0; }
.ct-found { color: var(--op-warning); }
.ct-event { border: 1px solid var(--op-danger) !important; }
.ct-event .ct-h { color: var(--op-danger); }
.ct-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.ct-grid2 a { display: flex; justify-content: space-between; gap: 6px; align-items: center; min-height: 44px; padding: 6px 10px; border: 1px solid var(--op-border); border-radius: 10px; text-decoration: none !important; font-size: 14px; background: var(--op-card); color: var(--op-text); }
.ct-grid2 a b { color: var(--op-danger); font-family: var(--op-font-heading); white-space: nowrap; }
.ct-sel { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.ct-sel select { flex: 1; min-width: 140px; min-height: 44px; border-radius: 12px; border: 1px solid var(--op-border); background: var(--op-card); color: var(--op-text); padding: 0 10px; font: 16px var(--op-font); }
.ct-review { background: color-mix(in srgb, var(--op-warning) 14%, var(--op-card)); color: var(--op-warning); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; font-size: 14px; }
.ct-fine { font-size: 13px; color: var(--op-muted); }
@media (max-width: 360px) { .ct-sos { grid-template-columns: repeat(2, 1fr); } .ct-grid2 { grid-template-columns: 1fr; } }
/* Phase 2 */
.ct-near { margin-top: 4px; }
.ct-rep { font-size: 12.5px; color: var(--op-muted) !important; text-decoration: underline; white-space: nowrap; }
.ct-i { display: inline-block; position: relative; vertical-align: middle; }
.ct-i summary { list-style: none; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--op-muted); color: var(--op-muted); font: 600 13px/20px var(--op-font-heading); text-align: center; }
.ct-i summary::-webkit-details-marker { display: none; }
.ct-i-pop { position: absolute; right: 0; bottom: 28px; z-index: 5; width: 260px; max-width: 80vw; padding: 10px 12px; border-radius: 12px; background: var(--op-card); border: 1px solid var(--op-border); box-shadow: 0 6px 24px rgba(0,0,0,.18); font-size: 13px; line-height: 1.5; color: var(--op-text); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-form label { display: block; font-weight: 600; margin: 10px 0 4px; color: var(--op-heading); }
.ct-form input[type=text], .ct-form input[type=tel], .ct-form textarea, .ct-form select { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--op-border); background: var(--op-card); color: var(--op-text); padding: 8px 10px; font: 16px var(--op-font); }
/* ช่วยกันเติม / post-call prompt */
#ct-pc { position: fixed; left: 8px; right: 8px; bottom: 76px; z-index: 40; }
.ct-pc-in { max-width: 520px; margin: 0 auto; padding: 12px 14px; border-radius: 14px; background: var(--op-card); border: 1px solid var(--op-border); box-shadow: 0 8px 28px rgba(0,0,0,.22); display: flex; flex-direction: column; gap: 8px; color: var(--op-text); }
.ct-pc-in b { color: var(--op-heading); font-family: var(--op-font-heading); }
.ct-btn[disabled] { opacity: .5; }
/* main page: compact national chips, SOS 4+2 grid, async local block */
.ct-sos { grid-template-columns: repeat(4, 1fr); }
.ct-sos li:nth-child(n+5) { grid-column: span 2; }
.ct-sos a { min-height: 66px; } .ct-sos b { font-size: 24px; }
.ct-sos li:nth-child(n+5) a { min-height: 54px; flex-direction: row; gap: 8px; } .ct-sos li:nth-child(n+5) b { font-size: 20px; }
.ct-big { width: 100%; min-height: 52px; font-size: 17px; }
.ct-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.ct-chip { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--op-border); background: var(--op-card); text-decoration: none !important; color: var(--op-text); }
.ct-chip b { font: 700 17px/1.2 var(--op-font-heading); color: var(--op-action); } .ct-chip span { font-size: 12.5px; line-height: 1.3; color: var(--op-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 560px) { .ct-chips { grid-template-columns: repeat(3, 1fr); } }
.ct-more { margin-top: 6px; } .ct-more summary { cursor: pointer; font-weight: 600; color: var(--op-action); min-height: 44px; display: flex; align-items: center; }
.ct-where { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin: 10px 0 4px; font-size: 15px; color: var(--op-heading); }
.ct-where a { font-size: 14px; }
.ct-skel { display: grid; gap: 10px; margin-top: 12px; } .ct-skel i { display: block; height: 52px; border-radius: 12px; background: linear-gradient(90deg, var(--op-border) 25%, color-mix(in srgb, var(--op-border) 40%, var(--op-card)) 50%, var(--op-border) 75%) #e5e9ef; background-size: 200% 100%; animation: ct-sh 1.4s linear infinite; }
@keyframes ct-sh { to { background-position: -200% 0; } } @media (prefers-reduced-motion: reduce) { .ct-skel i { animation: none; } }
@media (max-width: 360px) { .ct-sos { grid-template-columns: repeat(2, 1fr); } .ct-sos li:nth-child(n+5) { grid-column: span 1; } }

.ct-sos li { display: flex; } .ct-sos li a { flex: 1; }
/* status icon + one shared popover (owner UI feedback 2026-10-22) */
.ct-row { padding: 8px 0; gap: 6px 10px; }
.ct-nm { font-weight: 600; color: var(--op-heading); }
.ct-t small { margin-top: 2px; } .ct-t small .ct-badge { margin-right: 4px; }
.ct-fnd { display: inline-block; font-size: 12px; color: var(--op-warning); background: color-mix(in srgb, var(--op-warning) 14%, var(--op-card)); border-radius: 999px; padding: 0 8px; }
.ct-st { position: relative; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; min-width: 26px; height: 26px; margin: 0 2px 0 4px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; line-height: 1; border-radius: 50%; }
.ct-st::after { content: ''; position: absolute; inset: -9px; }                                  /* 44 px touch target without making the row taller */
.ct-st .ct-ic { font-size: 16px; line-height: 1; }
.ct-st-unv .ct-ic { font-size: 19px; color: var(--op-muted); }
.ct-st:focus-visible { outline: 2px solid var(--op-action); outline-offset: 1px; }
.ct-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ct-inl { font-size: 13px; margin-left: 4px; white-space: nowrap; }
.ct-unv { font: 600 10.5px/1 var(--op-font); font-style: normal; opacity: .9; margin-left: 5px; padding: 2px 5px; border-radius: 6px; background: rgba(255,255,255,.22); }
.ct-btn:not(.ct-call) .ct-unv { background: var(--op-border); }
#ct-pop { position: absolute; z-index: 70; width: 290px; max-width: calc(100vw - 16px); padding: 11px 13px; border-radius: 12px; background: var(--op-card); color: var(--op-text); border: 1px solid var(--op-border); box-shadow: 0 8px 28px rgba(0,0,0,.24); font-size: 14px; line-height: 1.55; }
#ct-pop[hidden] { display: none; }
#ct-pop b { color: var(--op-heading); } #ct-pop .ct-pl { display: block; } #ct-pop a { word-break: break-word; }
#ct-pop .ct-pa { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--op-border); }
/* ===== polish pass (owner 2026-10-22): hierarchy, inline distance, line icons, one button system ===== */
.ct-area { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 18px 0 2px; padding-top: 14px; border-top: 1px solid var(--op-border); }
.ct-area-h { font: 700 22px/1.25 var(--op-font-heading); margin: 0; color: var(--op-heading); }
.ct-pill { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--op-border); background: var(--op-card); color: var(--op-action); font: 600 14px/1 var(--op-font-heading); text-decoration: none !important; }
.ct-pill::after { content: ''; position: absolute; inset: -4px; }
.ct-pill:focus-visible, .ct-btn:focus-visible { outline: 2px solid var(--op-action); outline-offset: 2px; }
.ct-sec { margin: 14px 0 0; padding: 12px 14px 4px; border: 1px solid var(--op-border); border-radius: 14px; background: var(--op-card); }
.ct-sec-h { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--op-border); }
.ct-sec-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--op-action) 14%, var(--op-card)); color: var(--op-action); font-size: 18px; }
.ct-sec-h h3 { margin: 0; font: 700 18px/1.3 var(--op-font-heading); color: var(--op-heading); }
.ct-sec-h h3 em { font-style: normal; font-weight: 600; color: var(--op-muted); }
.ct-sec-sub { margin: 8px 0 0 46px; font-size: 13px; line-height: 1.5; color: var(--op-muted); }
.ct-sec .ct-list { margin-top: 2px; }
.ct-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; min-height: 56px; padding: 8px; margin: 0 -8px; border-top: 1px solid var(--op-border); border-radius: 10px; }
.ct-row:first-child { border-top: 0; }
@media (hover: hover) { .ct-row:hover { background: color-mix(in srgb, var(--op-action) 6%, transparent); } }
.ct-t { min-width: 0; flex: none; }
.ct-nmw { display: flex; align-items: center; gap: 2px; min-width: 0; }
.ct-nm { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font: 500 15px/1.4 var(--op-font); color: var(--op-text); }
.ct-km { flex: none; margin-left: 4px; padding: 3px 8px; border-radius: 999px; background: var(--op-border); color: var(--op-muted); font: 500 12px/1.2 var(--op-font); white-space: nowrap; }
.ct-t > small { display: block; margin-top: 2px; font-size: 12.5px; }
.ct-st { flex: none; color: var(--op-muted); }
.ct-st-ok { color: color-mix(in srgb, var(--op-success) 72%, var(--op-muted)); }
.ct-st-warn { color: color-mix(in srgb, var(--op-warning) 80%, var(--op-muted)); }
.ct-st .ct-ic { display: inline-flex; font-size: 0; } .ct-svg { width: 18px; height: 18px; display: block; }
.ct-acts { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: flex-end; align-items: center; }
.ct-btn { min-height: 44px; height: 44px; padding: 0 14px; border-radius: 12px; box-sizing: border-box; font: 600 14.5px/1 var(--op-font-heading); }
.ct-call, .ct-call-o { min-width: 136px; }
.ct-call-o { border: 1px solid var(--op-action); background: transparent; color: var(--op-action) !important; }
.ct-nav { min-width: 92px; } .ct-geo { width: 44px; min-width: 44px; padding: 0; }
.ct-vote svg { margin-right: 5px; } .ct-vote { min-width: 0; }
.ct-unv { margin-left: 6px; font: 600 10.5px/1 var(--op-font); font-style: normal; padding: 3px 6px; border-radius: 6px; background: var(--op-border); color: var(--op-muted); }
@media (max-width: 560px) {
  .ct-row { grid-template-columns: 1fr; }
  .ct-acts { justify-content: stretch; } .ct-acts .ct-btn { flex: 1 1 0; min-width: 0; padding: 0 8px; } .ct-acts .ct-geo { flex: 0 0 44px; }
  .ct-sec { padding: 10px 12px 2px; } .ct-area-h { font-size: 20px; }
}
