@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&display=swap');
:root{--ink:#17332d;--muted:#678078;--green:#087f62;--mint:#e8f5ef;--line:#06c755;--cream:#f7f9f6;--border:#dce7e2;--white:#fff;--danger:#b54545;--shadow:0 16px 45px rgba(18,63,51,.09)}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:'Noto Sans Thai',system-ui,sans-serif;line-height:1.6}a{color:var(--green);text-decoration:none}button,input,select{font:inherit}.hero{min-height:calc(100vh - 68px);display:grid;grid-template-columns:1.05fr .95fr;max-width:1180px;margin:auto;padding:70px 30px;align-items:center;gap:70px}.eyebrow{display:block;color:var(--green);font-size:.76rem;font-weight:700;letter-spacing:.16em;margin-bottom:12px}.hero h1,.welcome h1,.page-title h1{font-size:clamp(2.3rem,5vw,4.5rem);line-height:1.12;margin:0 0 24px;letter-spacing:-.04em}.hero-copy>p{font-size:1.1rem;color:var(--muted);max-width:620px;margin-bottom:34px}.line-button{display:inline-flex;align-items:center;gap:14px;background:var(--line);color:#fff;padding:13px 24px;border-radius:12px;font-weight:700;box-shadow:0 10px 24px rgba(6,199,85,.25)}.line-button span{font-size:.7rem;border:2px solid white;border-radius:50%;width:32px;height:32px;display:grid;place-items:center}.trust{display:flex;gap:22px;flex-wrap:wrap;margin-top:24px;color:var(--muted);font-size:.82rem}.hero-panel{background:linear-gradient(145deg,#0d8266,#075444);padding:34px;border-radius:34px;box-shadow:var(--shadow);transform:rotate(1deg)}.hospital-card{background:#fff;padding:44px;border-radius:24px;min-height:430px;display:flex;flex-direction:column;justify-content:center}.pulse{background:var(--mint);color:var(--green);width:66px;height:66px;border-radius:20px;display:grid;place-items:center;font-size:2.4rem}.hospital-card h2{font-size:2rem;line-height:1.3;margin:26px 0 12px}.hospital-card p{color:var(--muted)}.stat-grid{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--border);margin-top:30px;padding-top:22px}.stat-grid strong{font-size:1.5rem;display:block}.stat-grid span,footer{font-size:.8rem;color:var(--muted)}footer{text-align:center;padding:20px}.topbar{height:76px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-weight:700;line-height:1.1}.brand small{display:block;font-weight:400;color:var(--muted);font-size:.67rem;margin-top:4px}.brand-mark{width:40px;height:40px;border-radius:12px;background:var(--green);color:white;display:grid;place-items:center}.topbar nav{display:flex;align-items:center;gap:22px;font-size:.9rem}.topbar nav form{margin:0}.nav-button,.text-button{border:0;background:none;color:var(--green);cursor:pointer}.shell{max-width:1180px;margin:0 auto;padding:50px 24px 80px}.welcome,.page-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.welcome h1,.page-title h1{font-size:2.7rem;margin-bottom:6px}.welcome p,.page-title p{color:var(--muted);margin:0}.avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;background:var(--mint)}.avatar.large{width:82px;height:82px;border:6px solid white;box-shadow:var(--shadow)}.fallback{display:inline-grid;place-items:center;color:var(--green);font-weight:700}.dashboard-grid{display:grid;grid-template-columns:1.7fr .8fr;gap:22px}.card{background:white;border:1px solid var(--border);border-radius:20px;padding:28px;box-shadow:0 8px 30px rgba(18,63,51,.04)}.card-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:18px}.card h2{font-size:1.15rem;margin:0}.card-head p{margin:4px 0;color:var(--muted)}dl{margin:0}dl>div{display:grid;grid-template-columns:150px 1fr;padding:14px 0;border-top:1px solid #edf2ef}dt{color:var(--muted);font-size:.86rem}dd{margin:0;font-weight:600}.completion{text-align:center}.ring{width:118px;height:118px;border-radius:50%;margin:0 auto 20px;display:grid;place-items:center;background:conic-gradient(var(--green) calc(var(--p)*1%),var(--mint) 0);position:relative}.ring:after{content:'';position:absolute;background:white;width:88px;height:88px;border-radius:50%}.ring span{z-index:1;font-weight:700;font-size:1.35rem}.completion p{font-size:.85rem;color:var(--muted)}.button{display:inline-flex;border:0;border-radius:10px;background:var(--green);color:white;padding:10px 20px;font-weight:600;cursor:pointer}.button.secondary{background:var(--mint);color:var(--green);width:100%;justify-content:center}.services{margin-top:22px}.empty-state{text-align:center;border:1px dashed #b8cec5;border-radius:14px;padding:40px;color:var(--muted)}.empty-state>span{display:grid;place-items:center;margin:auto auto 14px;width:46px;height:46px;border-radius:14px;background:var(--mint);color:var(--green);font-size:1.5rem}.empty-state strong{display:block;color:var(--ink)}.empty-state p{margin:3px}.form-card{padding:34px}.identity-row{display:flex;align-items:center;gap:18px;padding-bottom:28px;border-bottom:1px solid var(--border);margin-bottom:28px}.identity-row strong,.identity-row span{display:block}.identity-row span{color:var(--green);font-size:.82rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-grid label>span{display:block;font-size:.84rem;font-weight:600;margin-bottom:7px}input,select{width:100%;border:1px solid #cbdad4;border-radius:10px;background:white;padding:11px 13px;color:var(--ink);outline:none}input:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(8,127,98,.1)}input:disabled{background:#f1f4f2;color:var(--muted)}.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:24px;margin-top:30px}.alert{max-width:1180px;margin:0 auto 20px;border-radius:12px;padding:12px 18px;background:var(--mint);color:var(--green);transition:.4s}.alert.error{background:#fbecec;color:var(--danger)}.alert.fade{opacity:0;transform:translateY(-5px)}.filters{display:grid;grid-template-columns:1fr 180px auto;gap:12px;margin-bottom:18px}.count-badge,.pill,.status{border-radius:999px;padding:5px 11px;font-size:.76rem;background:var(--mint);color:var(--green)}.table-wrap{overflow:auto;padding:0}table{width:100%;border-collapse:collapse;min-width:720px}th,td{text-align:left;padding:16px 20px;border-bottom:1px solid #edf2ef;font-size:.86rem}th{color:var(--muted);font-size:.75rem}.user-cell{display:flex;gap:12px;align-items:center}.user-cell strong,.user-cell span{display:block}.user-cell span{color:var(--muted);font-size:.75rem}.status.active{background:#e6f6ed;color:#16834a}.status.suspended{background:#fbecec;color:var(--danger)}.not-found{text-align:center;padding:15vh 20px}.not-found h1{font-size:4rem;margin:0}.not-found p{color:var(--muted)}
@media(max-width:800px){.hero{grid-template-columns:1fr;padding:48px 22px;gap:40px}.hero-panel{display:none}.topbar{height:auto;padding:12px 18px}.topbar nav{gap:12px;font-size:.78rem}.brand small{display:none}.shell{padding:32px 16px 60px}.welcome h1,.page-title h1{font-size:2.1rem}.dashboard-grid,.form-grid,.filters{grid-template-columns:1fr}.form-card{padding:22px}dl>div{grid-template-columns:1fr;gap:3px}.trust{display:grid;gap:7px}}@media(max-width:480px){.topbar nav>a{display:none}.hero h1{font-size:2.7rem}.line-button{width:100%;justify-content:center}.welcome .avatar{display:none}.page-title{display:block}.count-badge{display:inline-block;margin-top:12px}}
.service-shortcuts.row{display:flex;flex-wrap:wrap;margin:-8px}.service-shortcuts .col-6,.service-shortcuts .col-sm-4{padding:8px}.service-shortcuts .col-6{flex:0 0 50%;max-width:50%}.service-shortcut{position:relative;display:flex;align-items:center;gap:16px;height:100%;min-height:118px;padding:20px;background:linear-gradient(145deg,#f4fbf7,#e8f5ef);border:1px solid var(--border);border-radius:18px;color:var(--ink);overflow:hidden;transition:transform .2s,border-color .2s,box-shadow .2s}.service-shortcut:after{content:'';position:absolute;width:90px;height:90px;border-radius:50%;right:-38px;bottom:-48px;background:rgba(8,127,98,.08)}.service-shortcut:hover{transform:translateY(-3px);border-color:var(--green);box-shadow:0 14px 30px rgba(18,63,51,.1)}.service-icon{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border-radius:17px;background:var(--green);color:#fff;box-shadow:0 9px 20px rgba(8,127,98,.2)}.service-icon svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.service-copy{min-width:0;position:relative;z-index:1}.service-copy strong{display:block;line-height:1.35;overflow-wrap:anywhere}.service-copy small{display:block;color:var(--green);margin-top:7px;font-weight:600}.service-shortcut:focus-visible{outline:3px solid var(--green);outline-offset:3px}
@media(min-width:576px){.service-shortcuts .col-sm-4{flex:0 0 33.333333%;max-width:33.333333%}}
@media(max-width:480px){.service-shortcut{min-height:105px;padding:15px;gap:11px}.service-icon{flex-basis:48px;width:48px;height:48px;border-radius:14px}.service-icon svg{width:26px;height:26px}.service-copy strong{font-size:.88rem}.service-copy small{font-size:.72rem}}
.services .service-shortcut{height:100%;min-height:118px;padding:20px;background:linear-gradient(145deg,#f4fbf7,#e8f5ef);border-radius:18px;overflow:hidden}.services .service-shortcut:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(18,63,51,.1)}
@media(max-width:480px){.services .service-shortcut{min-height:105px;padding:15px;gap:11px}}
