:root{--bg:#f7f7f7;--panel:#fff;--ink:#141414;--muted:#646464;--line:#e4e4e4;--strong:#cfcfcf;--track:#ededed;color-scheme:light}
:root[data-theme=dark]{--bg:#0d0d0d;--panel:#151515;--ink:#ececec;--muted:#aaa;--line:#262626;--strong:#454545;--track:#242424;color-scheme:dark}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button,a,input,textarea,select,summary{outline-offset:4px}:focus-visible{outline:2px solid var(--ink)}
.header{max-width:1260px;margin:auto;padding:26px 40px;display:flex;justify-content:space-between;gap:24px;align-items:center;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:22px;text-decoration:none}.brand img{width:auto;height:38px}.brand span{padding-left:22px;border-left:1px solid var(--strong);font-size:13px;color:var(--muted)}nav{display:flex;align-items:center;gap:20px}nav a{font-size:13px;text-decoration:none}nav a:hover{text-decoration:underline}.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border:1px solid var(--strong);border-radius:8px;background:var(--panel);color:var(--ink);font-size:13px;font-weight:600;text-decoration:none;line-height:1.3;min-height:40px}.btn:hover{border-color:var(--ink)}.solid{background:var(--ink);color:var(--bg);border-color:var(--ink)}.wide{width:100%}
main{max-width:1180px;margin:0 auto;padding:40px;min-height:calc(100vh - 190px)}.welcome{display:grid;grid-template-columns:1.2fr 1fr;gap:100px;align-items:center;min-height:650px}.intro{padding-bottom:22px}.service-mark{font-size:50px;font-weight:200;letter-spacing:-8px;display:block;margin-bottom:30px}h1{font-size:clamp(36px,4vw,54px);line-height:1.12;letter-spacing:-.045em;font-weight:650;margin:0 0 24px}h2{font-size:22px;line-height:1.3;letter-spacing:-.02em;margin:0 0 12px}h3{font-size:17px;margin:0}p{margin:0 0 18px}.lead{font-size:19px;color:var(--muted);line-height:1.65}.muted{color:var(--muted)}.small,small{font-size:12px}.steps{margin:34px 0;border-top:1px solid var(--line);max-width:330px;padding-top:18px}.steps p{display:flex;gap:16px;margin:12px 0;font-size:14px}.steps p>span:first-child{color:var(--muted);width:20px}
.auth-panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:30px 32px}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:28px}.tabs button,.workspace-nav button{color:var(--muted);background:none;border:0;border-bottom:2px solid transparent;font-weight:600;padding:0 0 15px}.tabs [aria-pressed=true],.workspace-nav .active{color:var(--ink);border-color:var(--ink)}label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;margin:18px 0}input,textarea,select{width:100%;background:var(--bg);border:1px solid var(--strong);border-radius:7px;color:var(--ink);padding:11px 12px;font-weight:400;min-height:44px}textarea{min-height:90px;resize:vertical}label small,details small{font-weight:400;color:var(--muted)}.checkbox{flex-direction:row;align-items:flex-start;font-weight:400;gap:10px;margin:24px 0}.checkbox input{width:17px;height:17px;min-height:0;flex:none;margin-top:3px;accent-color:var(--ink)}.checkbox a{text-underline-offset:3px}
footer{max-width:1180px;margin:auto;padding:24px 40px;display:flex;gap:24px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}footer span{margin-right:auto}footer a{text-decoration:none}.waiting{max-width:620px;padding:120px 0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:36px 0}.page-heading h1{font-size:38px;margin-bottom:12px}.page-heading p{margin-bottom:8px}.workspace-nav{border-bottom:1px solid var(--line);gap:30px;margin-bottom:30px;overflow-x:auto}.workspace-nav button{white-space:nowrap}.list-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.list-head h2{font-size:18px;margin:0}.project{border-top:1px solid var(--line);padding:24px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px}.project:first-child{border-top:0}.project-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.project p{margin:8px 0 0;font-size:13px;overflow-wrap:anywhere}.badge{font-size:11px;border:1px solid var(--strong);border-radius:20px;padding:3px 10px;white-space:nowrap}.badge.running,.badge.active{background:var(--ink);color:var(--bg);border-color:var(--ink)}.project-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.project-actions .btn{padding:8px 12px;min-height:36px}.empty{border:1px dashed var(--strong);padding:50px 30px;text-align:center;border-radius:10px;margin:24px 0}.empty p{color:var(--muted);margin:10px 0 0}.account-panel{max-width:430px;padding:20px 0}.activity{padding:15px 0;border-bottom:1px solid var(--line);display:flex;gap:22px;font-size:13px}.activity time{color:var(--muted);min-width:140px}
#notice{border:1px solid var(--strong);padding:14px 18px;background:var(--panel);border-radius:8px;margin-bottom:20px;overflow-wrap:anywhere}dialog{background:var(--panel);color:var(--ink);border:1px solid var(--strong);border-radius:12px;padding:28px;width:calc(100% - 32px);max-width:580px;max-height:90vh}dialog::backdrop{background:rgba(0,0,0,.55)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.dialog-head h2{margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field-row label{margin-top:0}details{margin:20px 0}summary{cursor:pointer;font-size:13px}pre{background:var(--bg);padding:16px;border:1px solid var(--line);border-radius:8px;font-size:12px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;max-height:55vh}.form-message{margin:14px 0 0;font-size:13px}.review-details{display:grid;grid-template-columns:120px 1fr;gap:12px;font-size:13px}.review-details dt{color:var(--muted)}.review-details dd{margin:0;overflow-wrap:anywhere}.terms{max-width:800px;padding-top:60px}.terms h1{font-size:36px}.terms h2{margin-top:32px}.terms p,.terms li{line-height:1.8}.terms article{margin-bottom:40px}
@media(max-width:850px){.welcome{gap:40px;min-height:600px}.header{padding:20px 24px}.brand span{display:none}main{padding:30px 24px}.auth-panel{padding:26px}.project{grid-template-columns:1fr}.project-actions{justify-content:flex-start}.header nav{gap:12px}}@media(max-width:620px){.welcome{grid-template-columns:1fr;gap:28px;min-height:0}.intro{padding:24px 0 0}.intro h1{font-size:40px}.service-mark{margin-bottom:18px;font-size:40px}.steps{margin:24px 0}.header{padding:18px 20px}.brand img{height:30px}.header nav a{display:none}main{padding:22px 20px}.auth-panel{padding:24px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:34px}.workspace-nav{gap:24px}footer{padding:24px 20px;flex-wrap:wrap;gap:14px}.waiting{padding:70px 0}.activity{flex-direction:column;gap:4px}.field-row{gap:12px}.list-head{gap:18px}dialog{padding:22px}.terms h1{font-size:30px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.hosting-about{max-width:900px}.hosting-summary{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--line);padding:24px 0;margin:32px 0;gap:24px}.hosting-summary strong,.hosting-summary span{display:block}.hosting-summary strong{font-size:18px}.hosting-summary span{font-size:12px;color:var(--muted);margin-top:5px}.onboarding-steps{padding-left:24px}.onboarding-steps li{padding:8px 0 8px 10px}.onboarding-steps p{margin:6px 0 8px;color:var(--muted)}.hosting-next{border-top:1px solid var(--line);margin-top:36px;padding-top:8px}.hosting-next .dialog-actions{justify-content:flex-start;flex-wrap:wrap}.invite-panel{padding:18px 22px;background:var(--panel);border:1px solid var(--line);border-radius:8px}.invite-panel form{max-width:420px}.invite-panel summary{font-weight:600}.invite-panel p{margin-top:12px}@media(max-width:620px){.hosting-summary{grid-template-columns:1fr;gap:18px}.hosting-about h1{font-size:36px}}

/* Container Hosting: monochrome identity, readable Thai and keyboard/touch access. */
.intro-logo{display:block;width:88px;height:88px;object-fit:contain;margin-bottom:28px}
h1,h2{text-wrap:balance}html[lang=th] h1{line-height:1.45;letter-spacing:-.02em}html[lang=th] body{line-height:1.8}
.skip-link{position:fixed;top:8px;left:16px;z-index:10;padding:12px 18px;background:var(--ink);color:var(--bg);transform:translateY(-150%);border-radius:6px}.skip-link:focus{transform:translateY(0)}
.btn{min-height:44px}button,a{touch-action:manipulation}.header nav{gap:10px;flex-wrap:wrap;justify-content:flex-end}.brand{flex-shrink:0}.brand img{width:38px;height:38px}
.steps p>span:first-child{flex:0 0 20px}.steps p>span:not(:first-child){flex:1;width:auto;color:var(--ink)}
.project-head h3{overflow-wrap:anywhere;min-width:0}.activity span{overflow-wrap:anywhere;min-width:0}.workspace-nav button{min-height:44px}.dialog-actions{flex-wrap:wrap}dialog{overscroll-behavior:contain}h2[id],section[id]{scroll-margin-top:24px}
button[aria-busy=true]::after{content:"";width:12px;height:12px;margin-left:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:busy-spin .8s linear infinite}
@keyframes busy-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){button[aria-busy=true]::after{animation:none}}
@media(max-width:620px){.header{gap:12px}.header nav{gap:8px}.header .btn{padding:10px 12px;font-size:12px}.intro-logo{width:68px;height:68px}.steps{max-width:none}.review-details{grid-template-columns:86px minmax(0,1fr)}.workspace-nav{gap:24px}.account-panel{max-width:100%}}

@media(min-width:851px){.welcome{align-items:start;padding-block:40px}.intro{padding-top:48px}}

/* A single reading column with compact, keyboard-accessible section navigation. */
.legal-page .terms{max-width:1180px;padding-top:32px}
.legal-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:28px;text-underline-offset:4px}
.legal-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:64px;align-items:start}
.legal-contents{display:block;position:sticky;top:28px;font-size:14px}
.legal-contents ol{list-style:none;padding:0;margin:12px 0}
.legal-contents a{font-size:14px;display:flex;align-items:center;min-height:44px;padding:8px 0;text-decoration:none;line-height:1.5}
.legal-contents a:hover{text-decoration:underline;text-underline-offset:4px}
.legal-page article{min-width:0;max-width:720px}
.legal-page article h1{font-size:clamp(28px,3vw,40px);line-height:1.3;margin:0 0 24px;letter-spacing:-.025em;text-wrap:balance}
.legal-page article h2{font-size:22px;line-height:1.5;margin:36px 0 16px;padding-top:28px;border-top:1px solid var(--line);scroll-margin-top:24px}
.legal-page article p,.legal-page article li{font-size:16px;line-height:1.9;overflow-wrap:break-word}
.legal-page article li{margin:8px 0}
@media(max-width:850px){.legal-layout{grid-template-columns:1fr;gap:32px}.legal-contents{position:static;border-bottom:1px solid var(--line);padding-bottom:20px}.legal-contents ol{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.legal-back{margin-bottom:16px}}
@media(max-width:480px){.legal-contents ol{grid-template-columns:1fr}.legal-page article h2{font-size:20px}}

.legal-index{margin:0}.legal-index summary{font-size:14px;font-weight:600;min-height:44px;padding:10px 0}
