*{box-sizing:border-box}body{color:#0f172a;background:#f8fafc;min-height:100vh;margin:0;padding:0;font-family:Prompt,Noto Sans Thai,Kanit,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,sans-serif}button{cursor:pointer;font-family:inherit}.container{max-width:1100px;margin:0 auto;padding:16px}.page-header{justify-content:space-between;align-items:center;gap:12px;margin:18px 0 16px;display:flex}@media (max-width:768px){.page-header{flex-direction:column;align-items:flex-start}.page-back-btn{align-self:flex-end}}@media (max-width:960px){.page-grid{grid-template-columns:minmax(0,1fr)}}@media (max-width:1024px){.admin-doctors-toolbar{flex-direction:column;align-items:stretch}.admin-doctors-input,.admin-doctors-select{flex:none;width:100%}}@media (max-width:900px){.admin-doctors-table .responsive-table{border-collapse:separate;border-spacing:0 10px}.admin-doctors-table thead{display:none}.admin-doctors-table tbody tr{background:#fff;border:1px solid #e5e7eb;border-radius:12px;height:auto;padding:8px 10px;display:block}.admin-doctors-table tbody td{white-space:normal;justify-content:space-between;align-items:center;gap:12px;padding:8px 6px;display:flex}.admin-doctors-value{text-align:right;word-break:break-word;max-width:60%}.admin-doctors-table tbody td:before{content:attr(data-label);color:#6b7280;min-width:84px;font-size:12px;font-weight:600}.admin-doctors-action{width:100%!important}}.app-content{width:100%;max-width:none;height:100%;margin:0;padding:24px 28px}@media (max-width:768px){.app-content{padding:16px}}@media (max-width:900px){.sidebar{width:clamp(180px,28vw,220px)}}@media (max-width:768px){.sidebar{display:none}}.sidebar-logo-text{flex-direction:column;display:flex}.sidebar-section-title{text-transform:uppercase;letter-spacing:.06em;color:#6b7280;margin-bottom:8px;font-size:11px;font-weight:600}.sidebar-link{text-align:left;color:#94a3b8;background:0 0;border:1px solid #0000;border-radius:12px;align-items:center;gap:8px;width:100%;padding:8px 10px;font-size:13px;font-weight:500;transition:background .2s,color .2s,border .2s,box-shadow .2s;display:flex}@media (hover:hover){.sidebar-link:hover{color:#047857;background:#f0fdf4;border-color:#bbf7d0}}.sidebar-link.active{color:#047857;background:linear-gradient(130deg,#eefcf4,#dcfce7);border-color:#bbf7d0;font-weight:600;box-shadow:inset 0 0 0 1px #10b98159}.sidebar-link.muted{color:#6b7280;margin-top:6px}.sidebar-link.is-disabled{opacity:.6;cursor:wait}.sidebar-icon{color:#94a3b8;background:0 0;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.sidebar-link.active .sidebar-icon{color:#059669}.sidebar-link-text{flex-direction:column;gap:2px;display:flex}.menu-section{flex-direction:column;gap:6px;display:flex}.consult-grid{gap:18px;display:grid}@media (min-width:960px){.consult-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}}.consult-card{flex-direction:column;gap:14px;display:flex}.consult-status{flex-direction:column;gap:8px;display:flex}.consult-status-sub{color:#475569;margin:0;font-size:14px}.consult-actions{flex-direction:column;gap:10px;display:flex}.consult-actions .btn{width:100%}@media (min-width:640px){.consult-actions{flex-direction:row}.consult-actions .btn{flex:1}}.menu-status{color:#64748b;min-height:16px;font-size:12px;display:block}.status-pill{text-transform:none;text-align:center;border:1px solid #0000;border-radius:999px;min-width:88px;padding:4px 10px;font-size:12px;font-weight:600}.status-pill.pending{color:#a16207;background:#fef9c3;border-color:#fde68a}.status-pill.success{color:#047857;background:#dcfce7;border-color:#86efac}.status-pill.neutral{color:#475569;background:#f1f5f9;border-color:#cbd5f5}.status-pill.idle{color:#0f172a;background:#e2e8f0;border-color:#cbd5f5}.status-pill.placeholder{visibility:hidden;background:0 0;border-color:#0000}@media (max-width:768px){.topbar{padding:0 16px}}.topbar-left{align-items:center;gap:10px;display:flex}.topbar-menu-btn{color:#0f172a;background:#f8fafc;border:1px solid #cbd5f5;border-radius:999px;justify-content:center;align-items:center;width:32px;height:32px;font-size:16px;display:none}@media (max-width:1024px){.topbar-menu-btn{display:inline-flex}}.topbar-menu-icon{flex-direction:column;gap:4px;display:inline-flex}.topbar-menu-icon span{background:#0f172a;border-radius:999px;width:16px;height:2px;display:block}.topbar-user-text{flex-direction:column;display:flex}.topbar-user-name{color:#111827;font-size:13px;font-weight:500}.sidebar-backdrop{z-index:20;background:#0f172a4d;display:none;position:fixed;inset:0}.sidebar-backdrop-visible{display:block}.sidebar--open{transform:translate(0)!important}.sidebar-close-btn{color:#6b7280;background:0 0;border:none;margin-bottom:8px;margin-left:auto;font-size:18px;display:none}@media (max-width:900px){.sidebar-close-btn{display:block}}.app-shell{background:#f3f4f6;min-height:100vh;display:flex}.app-main{flex-direction:column;flex:1;min-width:0;display:flex}.app-content{width:100%;max-width:none;margin:0;padding:20px 24px 24px}@media (max-width:768px){.app-content{padding:16px 12px 20px}}.sidebar{background:#fff;border-right:1px solid #e2e8f0;flex-direction:column;gap:12px;width:clamp(190px,22vw,250px);min-height:100vh;padding:18px 16px;display:flex;box-shadow:10px 0 30px #0f172a0a}@media (max-width:900px){.sidebar{z-index:30;-webkit-overflow-scrolling:touch;width:min(78vw,320px);max-width:320px;transition:transform .2s ease-out;position:fixed;top:0;bottom:0;left:0;overflow-y:auto;transform:translate(-100%);box-shadow:4px 0 18px #0f172a26}}.sidebar-logo{align-items:center;gap:10px;margin-bottom:24px;display:flex}.sidebar-logo-mark{color:#fff;background:linear-gradient(135deg,#34d399,#059669);border-radius:999px;justify-content:center;align-items:center;width:40px;height:40px;font-size:14px;font-weight:700;display:flex}.sidebar-logo-title{color:#111827;font-size:15px;font-weight:700}.sidebar-logo-sub{color:#6b7280;font-size:12px}.sidebar-section-title{text-transform:uppercase;letter-spacing:.06em;color:#9ca3af;margin-bottom:10px;font-size:12px}.sidebar-nav{flex-direction:column;gap:4px;display:flex}.sidebar-link{text-align:left;color:#0f172a;background:0 0;border:1px solid #0000;border-radius:12px;align-items:center;gap:8px;width:100%;padding:8px 10px;font-size:13px;transition:background .2s,color .2s,border .2s,box-shadow .2s;display:flex}.sidebar-link.muted{color:#6b7280}@media (hover:hover){.sidebar-link:hover{color:#047857;background-color:#f0fdf4;border-color:#bbf7d0}}.sidebar-link.active{color:#047857;background:#eefcf4;border-color:#bbf7d0;box-shadow:inset 0 0 0 1px #10b98159}.sidebar-bullet{background-color:#9ca3af;border-radius:999px;width:6px;height:6px}.sidebar-footer{border-top:1px solid #e2e8f0;margin-top:auto;padding-top:18px;padding-bottom:12px}.topbar{background:#fff;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;height:64px;padding:0 24px;display:flex;box-shadow:0 8px 18px #0f172a0a}@media (max-width:768px){.topbar{padding:0 14px}}.topbar-title{color:#0f172a;font-size:16px;font-weight:600}.topbar-right{align-items:center;gap:16px;display:flex}.topbar-lang{color:#0f172a;border:1px solid #cbd5f5;border-radius:999px;padding:4px 10px;font-size:12px}.topbar-user{align-items:center;gap:8px;display:flex}.topbar-avatar{color:#0f172a;aspect-ratio:1;background:#e2e8f0;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;font-size:14px;font-weight:600;display:flex}.topbar-user-name{font-size:13px;font-weight:600}.topbar-user-sub{color:#6b7280;font-size:11px}.page-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;display:flex}.page-title{color:#111827;margin:0 0 4px;font-size:20px;font-weight:600}.page-subtitle{color:#6b7280;margin:0;font-size:13px}.page-back-btn{padding:8px 14px;font-size:14px}@media (max-width:768px){.page-header{flex-direction:column;align-items:flex-start}.page-back-btn{align-self:flex-end}}.page-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,2fr);gap:16px;display:grid}@media (max-width:960px){.page-grid{grid-template-columns:minmax(0,1fr)}}.info-card,.chat-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px 18px 16px;box-shadow:0 8px 24px #0f172a0f}.info-card-title{margin:0 0 10px;font-size:16px;font-weight:600}.info-card-list{color:#4b5563;margin:0;padding-left:18px;font-size:13px;line-height:1.6}.chat-card-header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.chat-card-title{font-size:16px;font-weight:600}.chat-card-subtitle{color:#6b7280;font-size:12px}.card{background:#fff;border:1px solid #10b9811f;border-radius:16px;padding:20px;box-shadow:0 8px 24px #0f766e14}@media (min-width:640px){.card{padding:24px}}.chat-outer{background:#fff;border:1px solid #10b98129;border-radius:12px;padding:12px;box-shadow:0 8px 24px #0f766e14}@media (min-width:640px){.chat-outer{border-radius:16px;padding:18px}}.chat-container{background:linear-gradient(#ecfdf5,#fff);border:1px solid #d1fae5;border-radius:12px;flex-direction:column;gap:10px;height:50vh;min-height:300px;max-height:500px;padding:10px;display:flex;overflow:hidden auto}@media (min-width:640px){.chat-container{gap:12px;height:400px;padding:12px}}@media (min-width:1024px){.chat-container{height:480px}}.chat-row{align-items:flex-end;display:flex}.message{word-wrap:break-word;border-radius:16px;max-width:85%;padding:8px 12px;font-size:14px;line-height:1.4;box-shadow:0 2px 6px #0f172a0f}@media (min-width:640px){.message{border-radius:18px;max-width:70%;padding:10px 14px;font-size:15px}}.message .meta{color:#6b7280;margin-bottom:4px;font-size:11px;display:block}@media (min-width:640px){.message .meta{margin-bottom:6px;font-size:12px}}.message.you{color:#ecfdf5;background:linear-gradient(145deg,#34d399,#059669);border-bottom-right-radius:6px;margin-left:auto}.message.other{color:#064e3b;background:#f0fdf4;border-bottom-left-radius:6px;margin-right:auto}.system-message{color:#047857;background:#10b9810f;border-radius:999px;align-self:center;padding:5px 10px;font-size:12px}@media (min-width:640px){.system-message{padding:6px 12px;font-size:13px}}.chat-input-row{align-items:stretch;gap:6px;margin-top:10px;display:flex}@media (min-width:640px){.chat-input-row{gap:8px;margin-top:12px}}.chat-input-row input[type=text]{border:1px solid #d1d5db;border-radius:12px;outline:none;flex:1;padding:10px 12px;font-size:15px;transition:border .2s}.chat-input-row input[type=text]:focus{border-color:#10b981}.chat-input-row button{color:#fff;white-space:nowrap;background:linear-gradient(135deg,#10b981,#059669);border:none;border-radius:12px;padding:10px 16px;font-size:15px;font-weight:600;transition:all .15s;box-shadow:0 6px 14px #10b9814d}@media (hover:hover){.chat-input-row button:hover{filter:brightness(1.05);transform:translateY(-1px);box-shadow:0 8px 18px #05966966}}.chat-input-row button:active{transform:scale(.98)}.chat-warning{color:#92400e;background:#fef3c7;border:1px solid #fde68a;border-radius:8px;margin-top:10px;padding:10px 12px;font-size:13px}.btn{cursor:pointer;white-space:nowrap;border:none;border-radius:12px;padding:12px 20px;font-size:15px;font-weight:600;transition:all .15s}.btn-primary{color:#fff;background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 6px 14px #10b9814d}@media (hover:hover){.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 18px #05966966}}.btn-secondary{color:#047857;background:#f0fdf4;border:1px solid #a7f3d0}@media (hover:hover){.btn-secondary:hover{background:#d1fae5}}.btn-danger{color:#fff;background:linear-gradient(135deg,#ef4444,#dc2626);box-shadow:0 6px 14px #ef44444d}@media (hover:hover){.btn-danger:hover{transform:translateY(-2px);box-shadow:0 8px 18px #dc262666}}.grid{grid-template-columns:1fr;gap:12px;display:grid}@media (min-width:640px){.grid{grid-template-columns:repeat(2,1fr);gap:16px}}@media (min-width:1024px){.grid{grid-template-columns:repeat(3,1fr)}}.queue-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));justify-items:center;gap:16px;width:100%;display:grid}.queue-item{aspect-ratio:1/1.05;background:#fff;border:1px solid #0f766e26;border-radius:16px;flex-direction:column;justify-content:space-between;gap:10px;width:100%;max-width:260px;padding:14px;transition:transform .15s,box-shadow .15s;display:flex;position:relative;box-shadow:0 12px 32px #0f172a14}@media (hover:hover){.queue-item:hover{transform:translateY(-2px);box-shadow:0 18px 36px #0f172a1f}}.queue-rank{text-align:center;color:#047857;background:#ecfdf5;border:1px solid #05966933;border-radius:12px;min-width:64px;padding:8px;font-weight:600}.queue-rank span{color:#0f766e;font-size:10px;display:block}.queue-rank strong{font-size:18px;display:block}.queue-content{z-index:1;flex-direction:column;flex:1;gap:8px;display:flex}.queue-patient{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.queue-patient-name{color:#064e3b;font-size:15px;font-weight:700}.queue-wait-label{color:#0f766e;background:#d1fae5;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:600}.queue-meta{color:#475569;font-size:12px;font-weight:500}.queue-actions{margin-top:auto}.queue-accept-btn{border-radius:10px;width:100%;padding:9px 12px;font-size:13px;box-shadow:0 6px 16px #05966940}@media (max-width:640px){.queue-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.queue-item{aspect-ratio:auto;max-width:100%}.queue-accept-btn{font-size:12px}}.profile-summary{background:#fff;border:1px solid #e2e8f0;border-radius:18px;align-items:center;gap:16px;margin-bottom:20px;padding:20px;display:flex;box-shadow:0 8px 24px #0f172a0a}.profile-avatar{color:#047857;background:#ecfdf5;border-radius:20px;justify-content:center;align-items:center;width:72px;height:72px;font-size:28px;font-weight:600;display:flex}.profile-avatar.doctor{color:#0369a1;background:#e0f2fe}.form-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;width:100%;padding:24px;box-shadow:0 18px 45px #94a3b82e}.form-card-title{color:#0f172a;margin:0 0 6px;font-size:18px}.form-card-subtitle{color:#64748b;margin:0 0 18px;font-size:14px}.form-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;display:grid}.form-grid.single-column{grid-template-columns:minmax(0,1fr)}.form-field{flex-direction:column;gap:6px;display:flex}.form-field.full-width{grid-column:1/-1}.form-field label{color:#0f172a;font-size:13px;font-weight:600}.form-field input,.form-field textarea,.form-field select{background:#fdfefe;border:1px solid #d4dbe5;border-radius:12px;padding:10px 12px;font-family:inherit;font-size:14px;transition:border-color .15s,box-shadow .15s}.form-field textarea{resize:vertical}.form-field input:focus,.form-field textarea:focus,.form-field select:focus{border-color:#10b981;outline:none;box-shadow:0 0 0 3px #10b98126}.form-actions{grid-column:1/-1;justify-content:flex-end;gap:12px;margin-top:8px;display:flex}.status-callout{border-radius:12px;margin-bottom:16px;padding:10px 12px;font-size:13px}.status-callout.error{color:#b91c1c;background:#fee2e2;border:1px solid #fecaca}.status-callout.success{color:#166534;background:#dcfce7;border:1px solid #bbf7d0}.skeleton-block{background:linear-gradient(90deg,#f1f5f9,#e2e8f0,#f1f5f9) 0 0/200% 100%;border-radius:16px;padding:20px;animation:1.4s linear infinite shimmer}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.news-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;display:grid}.news-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;flex-direction:column;gap:8px;padding:20px;display:flex;box-shadow:0 18px 35px #0f172a14}.news-card h3{color:#0f172a;margin:0;font-size:16px}.news-card-date{color:#94a3b8;margin:0;font-size:13px}.news-card-summary{color:#475569;margin:0 0 6px;font-size:14px}.news-card-tag{color:#0369a1;background:#e0f2fe;border-radius:999px;align-self:flex-start;padding:4px 12px;font-size:12px;font-weight:600}.ghost-link{color:#0ea5e9;cursor:pointer;background:0 0;border:none;padding:0;font-weight:600}.services-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;display:grid}.service-card{background:#fff;border:1px solid #94a3b866;border-radius:18px;flex-direction:column;gap:12px;padding:20px;display:flex;box-shadow:0 14px 30px #0f172a14}.service-card.ai{background:linear-gradient(#eef2ff,#fff 50%);border-color:#c7d2fe}.service-card.queue{background:linear-gradient(#ecfdf5,#fff 45%);border-color:#bbf7d0}.service-card.status{background:linear-gradient(#fef9c3,#fff 50%);border-color:#fcd34d}.app-shell,.app-main{height:100vh;min-height:100vh;overflow:hidden}.app-content{flex:auto;width:100%;overflow-y:auto}.topbar{z-index:25;flex-shrink:0;position:sticky;top:0}@media (min-width:901px){.sidebar{flex-shrink:0;height:100vh;position:sticky;top:0;overflow-y:auto}}@media (max-width:480px){.topbar{height:56px;padding:0 12px}.topbar-title{font-size:14px}.topbar-right{flex-wrap:wrap;justify-content:flex-end;gap:8px}.topbar-lang{display:none}.topbar-user{gap:6px}.topbar-user-name{font-size:12px}.topbar-user-sub{font-size:10px}.sidebar{gap:8px;width:min(88vw,260px);padding:12px}.sidebar-logo{gap:6px;margin-bottom:14px}.sidebar-logo-mark{width:32px;height:32px;font-size:12px}.sidebar-section-title{margin-bottom:6px;font-size:10px}.sidebar-link{border-radius:10px;gap:6px;padding:6px 8px;font-size:12px}.sidebar-icon{border-radius:8px;width:28px;height:28px}.menu-section{gap:4px}}@supports (padding:env(safe-area-inset-bottom)){.sidebar{padding-top:calc(18px + env(safe-area-inset-top));padding-bottom:calc(18px + env(safe-area-inset-bottom))}@media (max-width:480px){.sidebar{padding-top:calc(12px + env(safe-area-inset-top));padding-bottom:calc(12px + env(safe-area-inset-bottom))}}.sidebar-footer{padding-bottom:calc(12px + env(safe-area-inset-bottom))}}
