.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}select,input{font:inherit}select:focus-visible,input:focus-visible{outline:3px solid var(--petal);outline-offset:3px}.language-picker select{border:0;background:transparent;color:var(--muted);padding:10px 20px 10px 6px;min-height:44px;font-size:13px;cursor:pointer;max-width:112px}.language-picker option{background:var(--fog);color:var(--ink)}[data-auth]{display:flex;gap:20px;align-items:center;position:relative}.login-link,.plain-action,.workspace-link{font-size:14px;white-space:nowrap;min-height:44px;display:inline-flex;align-items:center;color:var(--purple)}.plain-action{border:0;background:none;padding:5px 8px}.login-link:hover,.workspace-link:hover,.plain-action:hover{text-decoration:underline}.auth-status{font-size:11px;color:var(--muted);max-width:175px;line-height:1.5}.auth-failed{color:#8b3548}.user-toggle{border:0;background:none;display:flex;gap:8px;align-items:center;padding:4px 0;min-height:44px;color:var(--ink);font-size:13px}.user-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{width:32px;height:32px;background:#e9e1f5;border-radius:50%;color:var(--purple);display:grid;place-items:center;flex-shrink:0;overflow:hidden}.avatar svg{width:25px;height:25px;margin-top:6px}.user-dropdown{position:absolute;right:0;top:calc(100% + 12px);background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 45px -20px #57436e;padding:7px;min-width:185px;z-index:35}.user-dropdown a,.user-dropdown button{display:block;text-align:left;width:100%;border:0;border-radius:7px;background:none;padding:11px 13px;font-size:13px;color:var(--ink)}.user-dropdown a:hover,.user-dropdown button:hover{background:var(--fog)}.user-dropdown hr{border:0;border-top:1px solid var(--line);margin:5px}.modal-open{overflow:hidden}.login-dialog{border:1px solid var(--line);border-radius:20px;padding:36px;width:440px;max-width:calc(100% - 32px);max-height:calc(100dvh - 32px);color:var(--ink);background:var(--fog);box-shadow:0 25px 100px #211a3233;overflow:auto}.login-dialog::backdrop{background:#211a3277;backdrop-filter:blur(5px)}.dialog-close{position:absolute;right:14px;top:10px;background:none;border:0;font-size:26px;color:var(--muted);width:44px;height:44px}.login-dialog h2{font-size:29px;margin:12px 0 8px}.login-dialog p{font-size:13px;color:var(--muted)}.login-dialog form{margin-top:24px}.login-dialog label{display:block;font-size:13px;font-weight:600;margin:16px 0 7px}.login-dialog input{display:block;width:100%;height:48px;border-radius:8px;border:1px solid #cfc5df;background:#fff;color:var(--ink);padding:10px 13px;font-size:16px}.login-dialog .form-error{color:#963952;min-height:24px;margin-top:14px}.dialog-actions{display:flex;justify-content:flex-end;gap:18px;margin-top:16px;align-items:center}.dialog-actions .button{padding:12px 24px;min-height:46px}.button:disabled{opacity:.6;cursor:wait;transform:none}.home-link{font-size:13px;color:var(--muted);margin-right:auto}.workspace-page .header .wrap{max-width:none}.workspace-page .nav-wrap{min-height:80px}.workspace-layout{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:calc(100dvh - 81px)}.workspace-sidebar{border-right:1px solid var(--line);padding:34px 22px;background:#f1edf7;display:flex;flex-direction:column;gap:24px}.workspace-sidebar>.eyebrow{letter-spacing:1px;font-size:10px}.workspace-nav{display:flex;flex-direction:column;gap:8px}.workspace-nav a{text-align:left;background:none;border:1px solid transparent;border-radius:10px;padding:14px 15px;color:var(--muted);display:flex;flex-direction:column;gap:4px;min-height:72px}.workspace-nav a span{font-size:15px;font-weight:600}.workspace-nav a small{font-size:10px;line-height:1.5}.workspace-nav a[aria-current=page]{background:white;border-color:#d7cbe9;color:var(--purple);box-shadow:0 3px 12px #6d4bc307}.sidebar-note{display:flex;align-items:flex-start;gap:8px;color:var(--green);font-size:11px;line-height:1.8;margin-top:auto;padding:14px 7px}.sidebar-note .dot{margin-top:7px;flex-shrink:0}.workspace-content{padding:44px clamp(24px,5vw,84px);max-width:1320px;width:100%;margin:auto;align-self:start}.workspace-heading{border-bottom:1px solid var(--line);padding-bottom:28px;margin-bottom:30px}.workspace-heading p{font-size:14px;color:var(--muted);margin-top:8px;max-width:650px}.tool-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;flex-wrap:wrap}.tool-heading h1{font-size:28px;letter-spacing:-.7px;margin:0}.status-pill{background:var(--leaf);border:1px solid #dce5d5;border-radius:30px;color:var(--green);padding:5px 12px;font-size:11px}.empty-state{min-height:400px;border:1px solid var(--line);border-radius:18px;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 30px;text-align:center;gap:18px}.empty-mark{display:grid;place-items:center;background:#f0eaf8;color:var(--purple);font-size:38px;line-height:1;width:74px;height:74px;border-radius:20px;padding:16px;margin-bottom:5px}.empty-state h1,.empty-state h2{font-size:27px;line-height:1.5;letter-spacing:-.6px;margin:0;max-width:650px}.empty-state p{max-width:550px;color:var(--muted);font-size:14px;line-height:1.9}.connection-label{font-size:10px;color:var(--muted);border:1px solid var(--line);border-radius:20px;padding:3px 10px}.empty-state .button{margin-top:6px}html[lang=th] h1,html[lang=th] h2,html[lang=th] h3{letter-spacing:0;line-height:1.55}html[lang=th] .eyebrow{letter-spacing:.4px}
@media(max-width:1100px){.header nav{gap:16px}.nav-wrap{gap:18px}[data-auth]{gap:12px}.workspace-link{font-size:12px}.user-name{max-width:95px}}@media(max-width:900px){body:not(.workspace-page) .nav-wrap{flex-wrap:wrap;gap:0 16px;padding-top:14px;padding-bottom:10px}body:not(.workspace-page) .header nav{order:3;width:100%;justify-content:center;margin-top:6px}body:not(.workspace-page) .nav-actions{margin-left:auto}.workspace-layout{grid-template-columns:205px minmax(0,1fr)}.workspace-sidebar{padding:28px 16px}.workspace-content{padding:30px 22px}.workspace-page .home-link{display:none}}
@media(max-width:600px){.header .nav-wrap{gap:4px 8px}.header .brand{font-size:15px}.header .brand-mark{width:26px;height:26px}.header .nav-actions{gap:2px}.header nav{top:100%}.language-picker select{font-size:12px;max-width:90px;padding-right:8px}.login-link,.plain-action{font-size:12px}[data-auth]{gap:8px;flex-wrap:wrap;justify-content:flex-end}.user-name{max-width:80px}.workspace-link{font-size:11px;min-height:28px}.user-toggle{font-size:12px}.avatar{width:29px;height:29px}body:not(.workspace-page) .nav-wrap{padding:10px 0}body:not(.workspace-page) .nav-actions{max-width:100%;flex-wrap:wrap;justify-content:flex-end}body:not(.workspace-page) [data-auth]:has(.user-control){gap:2px 14px}.auth-status{max-width:120px;font-size:10px}.user-dropdown{top:calc(100% + 6px)}.login-dialog{padding:28px 22px;border-radius:16px}.login-dialog h2{font-size:26px}.workspace-page .nav-wrap{flex-wrap:wrap;padding:10px 0;min-height:72px}.workspace-page .nav-actions{margin-left:auto}.workspace-layout{grid-template-columns:1fr}.workspace-sidebar{border-right:0;border-bottom:1px solid var(--line);padding:20px 18px 14px;gap:12px}.workspace-nav{flex-direction:row;gap:6px}.workspace-nav a{padding:10px;flex:1;min-width:0;min-height:82px}.workspace-nav a span{font-size:13px}.workspace-nav a small{font-size:9px}.sidebar-note{padding:0;font-size:10px;margin-top:0}.workspace-content{padding:25px 18px 40px}.workspace-heading{padding-bottom:20px;margin-bottom:24px}.workspace-heading p{font-size:12px}.empty-state{min-height:340px;padding:30px 20px;gap:15px}.empty-state h1,.empty-state h2{font-size:23px}.empty-state p{font-size:12px}.tool-heading h1{font-size:25px}.status-pill{font-size:10px}.empty-mark{width:66px;height:66px;font-size:32px}.workspace-page .brand{font-size:14px}}

.password-field{position:relative}.login-dialog .password-field input{padding-right:56px}.password-toggle{position:absolute;right:2px;top:2px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:var(--purple);padding:10px;cursor:pointer}.password-toggle:hover{background:var(--fog)}.password-toggle svg{width:22px;height:22px}.password-toggle[aria-pressed="false"] .eye-slash{display:none}

.workspace-page .home-link{margin-right:0;white-space:nowrap}.workspace-page .agent-switcher{display:flex;position:static;align-items:stretch;align-self:stretch;justify-content:center;flex:1;gap:6px;margin:0 20px;padding:0;border:0;box-shadow:none;background:none}.agent-switcher :is(button,[data-maxbuy-nav],[data-product-nav]){border:0;border-bottom:3px solid transparent;border-radius:8px 8px 0 0;background:none;padding:16px 20px;color:var(--muted);font-size:14px;font-weight:600;min-height:52px;white-space:nowrap}.agent-switcher :is(button,[data-maxbuy-nav],[data-product-nav]):hover{color:var(--purple);background:#f0eaf8}.agent-switcher :is(button,[data-maxbuy-nav],[data-product-nav])[aria-current="page"]{color:var(--purple);border-bottom-color:var(--purple);background:#f0eaf8}.sidebar-agent{font-size:18px;font-weight:600;color:var(--purple);margin:0}.workspace-sidebar{gap:18px}.workspace-nav a{display:flex}.workspace-nav a:hover{color:var(--purple)}.workspace-page .workspace-content{margin:0 auto}.workspace-nav a:focus-visible{outline:3px solid var(--petal);outline-offset:3px}
@media(max-width:1100px){.workspace-page .nav-wrap{flex-wrap:wrap;gap:0 16px;padding-top:12px}.workspace-page .nav-actions{margin-left:auto}.workspace-page .agent-switcher{order:3;width:100%;flex:none;justify-content:flex-start;margin:10px 0 0;border-top:1px solid var(--line)}.agent-switcher :is(button,[data-maxbuy-nav],[data-product-nav]){padding:13px 22px;min-height:50px}.workspace-layout{min-height:calc(100dvh - 130px)}}
@media(max-width:600px){.workspace-page .nav-wrap{padding:10px 0 0;gap:0 8px}.workspace-page .agent-switcher{display:flex;flex-direction:row;gap:0;margin:8px 0 0;top:auto;left:auto;right:auto;padding:0;font-size:12px}.agent-switcher :is(button,[data-maxbuy-nav],[data-product-nav]){flex:1;min-width:0;padding:12px 6px;font-size:12px}.workspace-sidebar{gap:10px}.workspace-sidebar>.eyebrow{display:none}.sidebar-agent{font-size:15px}.workspace-nav{flex-direction:column}.workspace-nav a{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 14px}.workspace-nav a span{font-size:13px}.workspace-nav a small{font-size:10px}.workspace-layout{min-height:calc(100dvh - 124px)}}

/* Shared Nova workspace scrolling and subnavigation. */
body.workspace-page{height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
body.workspace-page>.header{flex:none}
body.workspace-page>.workspace-layout{flex:1;min-height:0;overflow:hidden}
body.workspace-page .workspace-sidebar{min-height:0;overflow-y:auto;overscroll-behavior:contain}
body.workspace-page .workspace-content{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-block:20px}
body.workspace-page .workspace-sidebar .workspace-nav[data-agent-sections]{display:flex;flex-direction:column;gap:8px}
body.workspace-page .workspace-sidebar .workspace-nav[data-agent-sections]>:is(a,button){box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;flex:none;width:100%;min-width:0;min-height:44px;padding:10px 13px;border:1px solid transparent;border-radius:10px;margin:0;font:inherit;font-size:13px;font-weight:500;line-height:1.6;text-align:left;color:var(--muted);background:transparent;text-decoration:none;box-shadow:none;cursor:pointer;overflow-wrap:anywhere}
body.workspace-page .workspace-sidebar .workspace-nav[data-agent-sections]>:is(a,button)>span{font-size:inherit;font-weight:inherit;line-height:inherit}
body.workspace-page .workspace-sidebar .workspace-nav[data-agent-sections]>:is(a,button)>svg{width:18px;height:18px;flex:none}
body.workspace-page .workspace-sidebar .workspace-nav[data-agent-sections]>:is(a,button):hover{color:var(--purple);background:#f0eaf8}
body.workspace-page .workspace-sidebar .workspace-nav[data-agent-sections]>:is(a,button)[aria-current=page]{color:var(--purple);background:#eee8f8;border-color:#d7cbe9;font-weight:600}
body.workspace-page .workspace-sidebar .workspace-nav[data-agent-sections]>:is(a,button):focus-visible{outline:3px solid var(--purple);outline-offset:2px}
body.workspace-page .workspace-sidebar .workspace-nav[data-agent-sections]>:is(a,button):is(:disabled,[aria-disabled=true]){opacity:.5;cursor:not-allowed}
@media(max-width:600px){body.workspace-page>.workspace-layout{grid-template-rows:auto minmax(0,1fr)}body.workspace-page .workspace-sidebar{max-height:40dvh}body.workspace-page .workspace-sidebar .workspace-nav[data-agent-sections]{flex-direction:row;flex-wrap:wrap;gap:6px}body.workspace-page .workspace-sidebar .workspace-nav[data-agent-sections]>:is(a,button){flex:1 1 auto;width:auto;min-height:40px;justify-content:center;padding:8px 10px}body.workspace-page .workspace-sidebar .workspace-nav[data-agent-sections]>hr{flex-basis:100%;margin:0}}

body.workspace-page .workspace-sidebar .workspace-nav[data-agent-sections]>[hidden]{display:none}
.auth-mode-switch{margin-top:18px;padding-top:14px;border-top:1px solid var(--line);text-align:center}.login-dialog .registration-password-help{margin:8px 0;font-size:12px}.login-dialog [hidden]{display:none}.login-dialog .registration-success-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
/* Localized static shell: language is selected in the head, before first paint. */
[data-shell-language],[data-shell-tool]{display:none}
html[lang=en] [data-shell-language=en],html[lang=th] [data-shell-language=th],html[lang=zh-CN] [data-shell-language=zh-CN]{display:inline}
html[data-workspace-tool=listing] [data-shell-tool=listing],html[data-workspace-tool=video] [data-shell-tool=video],html[data-workspace-tool=analytics] [data-shell-tool=analytics],html[data-workspace-tool=studio] [data-shell-tool=studio],html[data-workspace-tool=maxbuyerp] [data-shell-tool=maxbuyerp]{display:inline}
.workspace-menu-loading{display:grid;gap:12px;padding:12px 13px;color:var(--muted);font-size:12px;line-height:1.6}
.workspace-menu-placeholder{display:block;height:14px;width:78%;border-radius:4px;background:#ded7eb}
.workspace-menu-placeholder:last-child{width:60%}

.agent-switcher :is([data-maxbuy-nav],[data-product-nav]){display:flex;align-items:center;justify-content:center;text-decoration:none}
.agent-switcher [data-maxbuy-nav][hidden]{display:none}
[data-entry-progress]:not([hidden]){display:grid;gap:4px;margin:12px 0;color:var(--muted);font-size:.875rem}
[data-entry-meter]{width:100%;accent-color:var(--purple)}
@media(max-width:600px){
 .workspace-page .agent-switcher{flex-wrap:wrap}
 .agent-switcher :is([data-maxbuy-nav],[data-product-nav]){flex:1 0 auto;padding:10px 3px;min-height:44px}
}
