:root {
  --primary: #0b6b69; --primary-dark: #075553; --primary-light: #e7f5f4; --accent: #168c89;
  --background: #f6f8f9; --surface: #fff; --border: #dde5e7; --text: #172126; --muted: #66757d;
  --success: #15803d; --warning: #d97706; --error: #dc2626; --shadow: 0 8px 24px rgba(19, 49, 54, .07);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--background); font-family: "Noto Sans Thai", "Noto Sans", sans-serif; font-size: 14px; }
button, input { font: inherit; } button { cursor: pointer; } a { color: var(--primary); text-decoration: none; font-weight: 600; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: 49% 51%; background: #fff; }
.login-brand-panel { position: relative; overflow: hidden; min-height: 100vh; padding: 52px 64px; color: #fff; background: linear-gradient(150deg, #064f4e 0%, #0b6b69 55%, #168c89 100%); }
.login-brand-panel::after { content: ""; position: absolute; width: 420px; height: 420px; right: -190px; bottom: -180px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.brand-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.orbit-one { width: 330px; height: 330px; right: -120px; top: 12%; }.orbit-two { width: 190px; height: 190px; left: -80px; bottom: 22%; }
.brand-content { position: relative; z-index: 1; height: calc(100vh - 104px); max-height: 790px; min-height: 620px; display: flex; flex-direction: column; }
.brand-lockup { width: 275px; height: 82px; background: #fff; border-radius: 8px; display: grid; place-items: center; padding: 12px 16px; box-shadow: 0 8px 18px rgba(0,0,0,.1); }
.brand-lockup img { width: 100%; }
.brand-copy { margin: auto 0 40px; max-width: 540px; }.eyebrow { display: block; color: var(--primary); font-size: 11px; letter-spacing: 2px; font-weight: 700; }.eyebrow.light { color: #aee2df; }
.brand-copy h1 { margin: 18px 0; font-size: clamp(34px, 3vw, 49px); line-height: 1.28; letter-spacing: -.8px; }.brand-copy p { font-size: 16px; line-height: 1.8; color: rgba(255,255,255,.78); max-width: 500px; }
.trust-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 27px; }
.trust-points > div { display: flex; gap: 10px; }.trust-points > div > span { flex: 0 0 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); color: #b9e6e3; font-weight: 700; }
.trust-points p { margin: 0; }.trust-points strong,.trust-points small { display: block; }.trust-points strong { font-size: 12px; }.trust-points small { margin-top: 5px; color: rgba(255,255,255,.6); font-size: 10px; line-height: 1.4; }
.brand-footer { margin-top: 35px; color: rgba(255,255,255,.55); }
.login-form-panel { min-height: 100vh; display: grid; place-items: center; padding: 45px; background: radial-gradient(circle at 100% 0%, #f0f9f8, transparent 30%), #fff; }
.login-card { width: min(420px, 100%); }.login-card h2 { margin: 12px 0 2px; font-size: 34px; }.login-card .subtext { margin: 0 0 36px; color: var(--muted); }
.login-card > label:not(.checkbox), .label-row label { display: block; margin: 19px 0 8px; font-weight: 600; color: #354249; }.label-row { display: flex; align-items: center; justify-content: space-between; margin-top: 19px; }.label-row label { margin: 0; }.label-row a { font-size: 12px; }
.input-wrap { height: 52px; display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; transition: .2s; }.input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,107,105,.1); }.input-wrap > span { color: #819097; font-weight: 600; }.input-wrap input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; color: var(--text); }.peek { border: 0; background: none; color: #8a999f; }
.checkbox { display: flex; align-items: center; gap: 9px; margin: 18px 0 22px; color: var(--muted); }.checkbox input { accent-color: var(--primary); width: 16px; height: 16px; }
.primary-button { width: 100%; height: 52px; border: 0; border-radius: 8px; padding: 0 20px; background: var(--primary); color: white; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 6px 15px rgba(11,107,105,.18); }.primary-button:hover { background: var(--primary-dark); }.primary-button span { font-size: 18px; }
.secure-note { margin-top: 30px; padding: 15px 16px; background: var(--primary-light); border-radius: 8px; display: flex; gap: 13px; color: var(--primary); }.secure-note > span { font-size: 18px; }.secure-note p { margin: 0; }.secure-note strong,.secure-note small { display: block; }.secure-note strong { font-size: 12px; }.secure-note small { margin-top: 4px; color: var(--muted); line-height: 1.55; }.support { text-align: center; color: var(--muted); font-size: 12px; margin-top: 26px; }.mobile-logo { display: none; }
.app-shell { min-height: 100vh; display: flex; }.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; padding: 0 15px; background: #fff; border-right: 1px solid var(--border); z-index: 20; display: flex; flex-direction: column; }
.sidebar-brand { height: 76px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #edf1f2; padding: 0 8px; }.sidebar-brand img { width: 105px; }.sidebar-brand div { border-left: 1px solid var(--border); padding-left: 11px; }.sidebar-brand strong,.sidebar-brand small { display: block; white-space: nowrap; }.sidebar-brand strong { color: var(--primary-dark); font-size: 12px; }.sidebar-brand small { font-size: 8px; letter-spacing: 2px; color: var(--muted); }
.sidebar nav { padding: 22px 0; }.nav-label { display: block; padding: 0 13px 9px; color: #97a4aa; font-size: 10px; font-weight: 700; letter-spacing: 1px; }.nav-label.spaced { margin-top: 18px; }
.nav-item { position: relative; width: 100%; height: 44px; border: 0; border-radius: 7px; background: transparent; color: #5b6970; display: flex; align-items: center; gap: 13px; padding: 0 14px; text-align: left; }.nav-item span { width: 19px; text-align: center; font-size: 18px; font-weight: 400; }.nav-item b { font-weight: 500; }.nav-item:hover { background: #f3f7f7; }.nav-item.active { color: var(--primary-dark); background: var(--primary-light); }.nav-item.active::before { content: ""; position: absolute; left: 0; width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--primary); }.nav-item.active b { font-weight: 600; }.nav-count { margin-left: auto; width: 20px; height: 20px; background: #e7f5f4; color: var(--primary); border-radius: 50%; font-style: normal; font-size: 10px; display: grid; place-items: center; }
.sidebar-help { margin-top: auto; padding: 15px; display: flex; gap: 10px; border: 1px solid #dce9e9; border-radius: 9px; background: #f6fbfb; }.sidebar-help > span { flex: 0 0 25px; height: 25px; border-radius: 50%; background: var(--primary); color: white; display: grid; place-items: center; }.sidebar-help strong,.sidebar-help small,.sidebar-help a { display: block; }.sidebar-help strong { font-size: 11px; }.sidebar-help small { margin: 4px 0 8px; color: var(--muted); font-size: 9px; line-height: 1.5; }.sidebar-help a { font-size: 9px; }
.sidebar-footer { padding: 18px 10px; font-size: 9px; color: #8b989e; line-height: 1.7; }.sidebar-footer span { color: #a9b3b7; }
.app-main { width: calc(100% - 244px); margin-left: 244px; }.topbar { height: 76px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; position: sticky; top: 0; z-index: 10; }.topbar-title h1 { margin: 0; font-size: 16px; }.topbar-title span { color: var(--muted); font-size: 10px; }.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }.language,.bell { border: 0; background: transparent; color: #59676e; }.language { font-size: 11px; }.bell { position: relative; font-size: 24px; padding: 8px; }.bell i { position: absolute; right: 2px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--error); color: white; font: 700 9px "Noto Sans"; display: grid; place-items: center; }.profile { min-width: 245px; display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--border); padding-left: 19px; }.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 700; }.profile strong,.profile span { display: block; }.profile strong { font-size: 11px; }.profile span { color: var(--muted); font-size: 9px; margin-top: 2px; }.profile button { margin-left: auto; border: 0; background: none; }.menu-button { display: none; }
.dashboard { max-width: 1440px; margin: 0 auto; padding: 30px 32px 42px; }.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; }.welcome-row p { margin: 0 0 5px; color: var(--primary); font-size: 10px; font-weight: 600; }.welcome-row h2 { margin: 0 0 4px; font-size: 24px; }.welcome-row > div > span { color: var(--muted); font-size: 12px; }.primary-button.compact { width: auto; height: 42px; padding: 0 18px; font-size: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 25px 0 20px; }.stat-card { min-height: 116px; padding: 20px; display: flex; align-items: flex-start; gap: 15px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 2px 8px rgba(21,45,50,.025); }.stat-icon { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 8px; font-size: 18px; }.stat-icon.teal { color: var(--primary); background: var(--primary-light); }.stat-icon.amber { color: var(--warning); background: #fff4e5; }.stat-icon.gray { color: #6a7980; background: #f0f3f4; }.stat-icon.green { color: var(--success); background: #e9f7ee; }.stat-card > div:last-child { flex: 1; }.stat-card span,.stat-card strong,.stat-card small { display: block; }.stat-card span { color: var(--muted); font-size: 10px; }.stat-card strong { margin: 6px 0 2px; font-size: 25px; line-height: 1.1; }.stat-card small { font-size: 9px; }.stat-card small.teal { color: var(--primary); }.stat-card small.amber { color: var(--warning); }.stat-card small.gray { color: var(--muted); }.stat-card small.green { color: var(--success); }
.content-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(270px, .8fr); gap: 20px; }.panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 2px 8px rgba(21,45,50,.025); }.panel-header { height: 74px; padding: 0 20px; display: flex; align-items: center; border-bottom: 1px solid #e9edef; }.panel-header h3,.ai-title h3 { margin: 0; font-size: 13px; }.panel-header p,.ai-title p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }.panel-header button { margin-left: auto; border: 0; background: none; color: var(--primary); font-size: 10px; font-weight: 600; }
.table-row { min-height: 64px; display: grid; grid-template-columns: 1.25fr 1.5fr .9fr 1.2fr 25px; gap: 12px; align-items: center; padding: 0 20px; border-bottom: 1px solid #edf0f1; font-size: 10px; }.table-row:last-child { border-bottom: 0; }.table-head { min-height: 39px; background: #fafbfb; color: #829097; font-size: 9px; font-weight: 600; }.request-id { color: var(--primary-dark); font-weight: 600; }.request-id i { width: 74px; height: 2px; display: block; margin-top: 7px; background: #e5ebed; }.request-id i b { display: block; height: 100%; background: var(--primary); }.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 12px; font-style: normal; font-weight: 600; font-size: 9px; white-space: nowrap; }.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.status.processing { color: var(--primary); background: var(--primary-light); }.status.warning { color: var(--warning); background: #fff4df; }.status.neutral { color: #68777e; background: #eff2f3; }.status.success { color: var(--success); background: #eaf7ee; }.table-row > button { border: 0; background: none; color: #718087; font-size: 20px; }
.side-stack { display: grid; gap: 20px; }.ai-panel { padding: 20px; }.ai-title { display: flex; align-items: center; gap: 11px; }.ai-mark { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--primary); color: white; font-size: 10px; font-weight: 700; letter-spacing: .5px; }.confidence { min-height: 105px; display: flex; align-items: center; justify-content: space-around; margin: 13px 0; border-bottom: 1px solid #edf0f1; }.confidence-score strong,.confidence-score small { display: block; }.confidence-score strong { color: var(--primary-dark); font-size: 31px; }.confidence-score strong span { font-size: 13px; }.confidence-score small { color: var(--muted); font-size: 9px; }.ring { width: 66px; height: 66px; border-radius: 50%; background: conic-gradient(var(--primary) calc(var(--score)*1%), #e5eeee 0); position: relative; }.ring::after { content: "AI"; position: absolute; inset: 7px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary); font-weight: 700; font-size: 10px; }.ai-metrics { display: grid; grid-template-columns: repeat(3, 1fr); }.ai-metrics div { text-align: center; border-right: 1px solid #edf0f1; }.ai-metrics div:last-child { border: 0; }.ai-metrics span,.ai-metrics strong { display: block; }.ai-metrics span { color: var(--muted); font-size: 8px; }.ai-metrics strong { margin-top: 3px; font-size: 15px; }.green-text { color: var(--success); }.amber-text { color: var(--warning); }.ai-note { margin: 17px 0 0; padding: 9px; border-radius: 6px; color: var(--success); background: #f0f9f3; text-align: center; font-size: 9px; }.ai-note span { margin-right: 5px; }
.action-panel { padding-bottom: 5px; }.action-panel .panel-header { height: 62px; }.action-panel > button { width: calc(100% - 24px); margin: 5px 12px; padding: 10px; border: 0; border-radius: 7px; background: transparent; display: flex; align-items: center; gap: 10px; text-align: left; }.action-panel > button:hover { background: #f5f9f9; }.action-panel > button > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: var(--primary-light); color: var(--primary); font-size: 17px; }.action-panel p { flex: 1; margin: 0; }.action-panel strong,.action-panel small { display: block; }.action-panel strong { font-size: 10px; }.action-panel small { margin-top: 3px; color: var(--muted); font-size: 8px; }.action-panel b { color: #829097; font-size: 18px; }
@media (max-width: 1080px) { .stats-grid { grid-template-columns: repeat(2, 1fr); }.content-grid { grid-template-columns: 1fr; }.side-stack { grid-template-columns: 1fr 1fr; }.trust-points { grid-template-columns: 1fr; gap: 12px; }.brand-content { min-height: 700px; }.login-brand-panel { padding: 45px; } }
@media (max-width: 760px) { .login-page { display: block; }.login-brand-panel { display: none; }.login-form-panel { padding: 30px 22px; }.mobile-logo { display: block; width: 210px; margin-bottom: 45px; }.mobile-logo img { width: 100%; }.login-form-panel { align-content: center; }.sidebar { transform: translateX(-100%); transition: .25s; box-shadow: var(--shadow); }.sidebar.open { transform: translateX(0); }.app-main { width: 100%; margin: 0; }.menu-button { display: block; margin-right: 12px; border: 0; background: none; font-size: 20px; }.topbar { padding: 0 14px; }.topbar-title span,.language,.profile > div:not(.avatar) { display: none; }.profile { min-width: 0; padding-left: 10px; }.dashboard { padding: 22px 16px; }.welcome-row { align-items: flex-start; gap: 18px; }.welcome-row > div > span { display: none; }.stats-grid { grid-template-columns: 1fr 1fr; }.content-grid { display: block; }.side-stack { display: grid; grid-template-columns: 1fr; margin-top: 16px; }.requests-panel { overflow-x: auto; }.request-table { min-width: 700px; } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; }.welcome-row { display: block; }.welcome-row .compact { margin-top: 16px; }.login-card h2 { font-size: 29px; }.topbar-title h1 { font-size: 13px; }.topbar-actions { gap: 5px; } }
