:root{color-scheme:dark;--bg:#080a0f;--panel:#0f131b;--panel2:#121824;--line:#242c3a;--line2:#303a4b;--text:#edf1f7;--muted:#8a95a6;--soft:#b9c3d1;--accent:#7357ff;--accent2:#927cff;--green:#6fe0a4;--yellow:#ffd479;--red:#ff95a8}*{box-sizing:border-box}html{font-size:14px}body{margin:0;background:radial-gradient(circle at 50% -20%,#171b2c 0,#080a0f 32%,#07090d 100%);color:var(--text);font-family:Inter,Arial,"Noto Sans KR",sans-serif;min-height:100vh;font-size:14px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;font-size:14px}.site-header{position:sticky;top:0;z-index:40;background:rgba(8,10,15,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(42,50,65,.9)}.site-header-inner{width:min(1480px,calc(100% - 32px));height:68px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}.site-brand{display:flex;align-items:center;gap:10px}.site-brand-mark{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#8268ff,#5d41e8);display:grid;place-items:center;font-weight:900}.site-brand b{display:block;font-size:14px;letter-spacing:.08em}.site-brand small{display:block;color:#707b8e;font-size:9px;letter-spacing:.12em;margin-top:2px}.site-nav{display:flex;align-items:center;gap:5px}.site-nav a{padding:9px 11px;border-radius:9px;color:#aab4c3}.site-nav a:hover{background:#151b25;color:#fff}.site-nav .nav-primary{background:#7357ff;color:#fff}.site-nav .nav-logout{color:#7f8999}.site-main{width:min(1480px,calc(100% - 32px));margin:0 auto;padding:28px 0 60px}.site-footer{width:min(1480px,calc(100% - 32px));margin:0 auto 30px;padding:22px 0;border-top:1px solid #202734;color:#697486;display:flex;justify-content:space-between;gap:20px}.site-footer div{display:flex;gap:12px;flex-wrap:wrap}.hero{padding:52px 0 32px}.hero-eyebrow{color:#9f8fff;font-weight:700;font-size:12px;letter-spacing:.12em}.hero h1{font-size:clamp(34px,5vw,68px);letter-spacing:-.045em;line-height:1.02;margin:12px 0 16px;max-width:900px}.hero p{max-width:760px;color:#8d98aa;line-height:1.7;font-size:16px}.hero-actions{display:flex;gap:10px;margin-top:24px;flex-wrap:wrap}.btn{border:1px solid #30394a;background:#151b25;color:#e8edf5;border-radius:10px;min-height:40px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}.btn:hover{filter:brightness(1.12)}.btn.primary{background:#7357ff;border-color:#8068ff;color:#fff}.btn.danger{background:#391820;border-color:#65303d;color:#ffadba}.btn.ghost{background:transparent}.btn.small{min-height:32px;padding:0 10px;font-size:12px}.btn.wide{width:100%}.grid{display:grid;gap:16px}.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-card{background:linear-gradient(180deg,#111722,#0d121a);border:1px solid #222a38;border-radius:16px;overflow:hidden;min-width:0;display:flex;flex-direction:column;transition:.18s transform,.18s border-color}.product-card:hover{transform:translateY(-2px);border-color:#40365f}.product-thumb{aspect-ratio:16/10;background:#090d13;display:grid;place-items:center;color:#596578;overflow:hidden;border-bottom:1px solid #202735}.product-thumb img{width:100%;height:100%;object-fit:cover}.product-card-body{padding:16px;display:flex;flex-direction:column;gap:10px;flex:1}.product-card h3{margin:0;font-size:17px}.product-card p{margin:0;color:#8893a4;line-height:1.55;min-height:44px}.product-card-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:auto;padding-top:5px}.price{font-weight:800;font-size:16px}.pill,.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;background:#202735;color:#b8c2d0;font-size:11px}.pill.owned,.badge.active,.badge.approved,.badge.completed,.badge.visible{background:#123426;color:#75e1a9}.badge.pending,.badge.review{background:#3a3018;color:#ffd576}.badge.rejected,.badge.revoked,.badge.blocked,.badge.cancelled,.badge.deleted{background:#3b1c24;color:#ff9aac}.badge.hidden{background:#30301d;color:#ead27c}.panel{background:rgba(15,19,27,.94);border:1px solid #232b39;border-radius:16px;overflow:hidden}.panel-head{padding:16px 18px;border-bottom:1px solid #202735;display:flex;align-items:center;justify-content:space-between;gap:14px}.panel-head h2,.panel-head h3{margin:0;font-size:15px}.panel-head p{margin:4px 0 0;color:#778295;font-size:12px}.panel-body{padding:18px}.account-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px}.account-nav{position:sticky;top:86px;align-self:start;background:#0d1118;border:1px solid #222a37;border-radius:14px;padding:8px}.account-nav a{display:flex;justify-content:space-between;align-items:center;padding:11px 12px;border-radius:9px;color:#929daf;margin:2px 0}.account-nav a:hover,.account-nav a.active{background:#171e29;color:#fff}.account-nav .account-user{padding:12px;border-bottom:1px solid #222a37;margin-bottom:8px}.account-user b{display:block}.account-user small{display:block;color:#6f7b8f;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-content{min-width:0}.page-title{margin:0 0 18px}.page-title h1{font-size:28px;margin:0 0 7px;letter-spacing:-.03em}.page-title p{margin:0;color:#7d889b}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.kpi{background:#0f141d;border:1px solid #222a38;border-radius:14px;padding:15px}.kpi span{display:block;color:#778397;font-size:12px}.kpi b{display:block;font-size:24px;margin-top:9px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:720px}.table th,.table td{padding:12px 14px;border-bottom:1px solid #1f2632;text-align:left;vertical-align:middle}.table th{color:#778397;font-size:11px;font-weight:600;background:#0b0f15}.table td{color:#c9d1dc}.table tr:last-child td{border-bottom:0}.form{display:grid;gap:13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form label{display:grid;gap:6px;color:#a0aabb;font-size:12px}.form input,.form select,.form textarea{width:100%;min-height:42px;border:1px solid #2a3444;background:#090d13;color:#fff;border-radius:10px;padding:9px 11px;outline:none}.form textarea{min-height:130px;resize:vertical}.form input:focus,.form select:focus,.form textarea:focus{border-color:#7357ff;box-shadow:0 0 0 3px rgba(115,87,255,.13)}.check{display:flex!important;align-items:center;gap:8px}.check input{width:auto!important;min-height:auto!important}.auth-shell{min-height:calc(100vh - 170px);display:grid;place-items:center;padding:30px 0}.auth-card{width:min(480px,100%);background:#0f141c;border:1px solid #242d3b;border-radius:18px;padding:26px;box-shadow:0 30px 90px #0008}.auth-card h1{margin:0 0 8px;font-size:25px}.auth-card>p{margin:0 0 20px;color:#7c8799;line-height:1.6}.auth-links{display:flex;justify-content:space-between;margin-top:14px;color:#8e99ab}.alert{padding:12px 14px;border-radius:11px;border:1px solid #2a3444;background:#121823;margin-bottom:14px;line-height:1.55}.alert.success{border-color:#1d5c42;background:#0d2419;color:#a6ebc4}.alert.warning{border-color:#5d4821;background:#241d0f;color:#f1d48c}.alert.danger{border-color:#6a303d;background:#281319;color:#ffb3be}.muted{color:#778397}.success-text{color:var(--green)}.danger-text{color:var(--red)}.mono,code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.product-hero{display:grid;grid-template-columns:minmax(260px,520px) minmax(0,1fr);gap:30px;align-items:start;padding:14px 0 26px}.product-main-image{aspect-ratio:16/10;border-radius:18px;border:1px solid #293242;background:#0b0f15;overflow:hidden;display:grid;place-items:center;color:#657186}.product-main-image img{width:100%;height:100%;object-fit:cover}.product-gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:8px}.product-gallery img{width:100%;aspect-ratio:16/10;object-fit:cover;border:1px solid #283142;border-radius:9px}.product-copy h1{font-size:38px;letter-spacing:-.035em;margin:10px 0 10px}.product-copy>p{color:#8b96a8;line-height:1.65;font-size:15px}.product-price{font-size:28px;font-weight:900;margin:18px 0}.product-policies{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 20px}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 16px;padding:6px;border:1px solid #242d3a;border-radius:12px;background:#0c1016}.tabs a{padding:9px 12px;border-radius:8px;color:#8d98aa}.tabs a.active{background:#7357ff;color:#fff}.content-section{padding:20px;border-bottom:1px solid #202735}.content-section:last-child{border-bottom:0}.content-section h2{font-size:17px;margin:0 0 13px}.prose{color:#b4becb;line-height:1.82;word-break:break-word}.release-card{padding:16px;border-bottom:1px solid #202735}.release-card:last-child{border-bottom:0}.release-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.release-head h3{margin:0 0 5px}.release-files{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.comment-list{display:grid}.comment{padding:16px 18px;border-bottom:1px solid #202735}.comment:last-child{border-bottom:0}.comment-head{display:flex;justify-content:space-between;gap:12px;color:#7f8a9d;font-size:12px}.comment-body{margin-top:9px;line-height:1.65;color:#c6cfdb}.comment.reply{margin-left:28px;background:#0b1017;border-left:2px solid #44378a}.license-key-box{background:#090d13;border:1px dashed #493c79;border-radius:12px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;word-break:break-all}.license-key-box code{font-size:15px;color:#d8d0ff}.empty{padding:34px;text-align:center;color:#657186}.site-list{display:grid;gap:10px}.site-row{border:1px solid #242d3a;border-radius:12px;padding:14px;display:flex;justify-content:space-between;gap:20px;align-items:center}.site-row b{display:block}.site-row small{display:block;color:#748094;margin-top:5px}.status-line{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.charge-address{background:#090d13;border:1px solid #293242;border-radius:10px;padding:12px;word-break:break-all;color:#d8def0}.nowrap{white-space:nowrap}.right{text-align:right}.mb16{margin-bottom:16px}.mt16{margin-top:16px}@media(max-width:1180px){.product-grid{grid-template-columns:repeat(3,1fr)}.kpi-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){.site-header-inner{width:min(100% - 20px,1480px)}.site-main,.site-footer{width:min(100% - 20px,1480px)}.product-grid{grid-template-columns:repeat(2,1fr)}.account-shell{grid-template-columns:1fr}.account-nav{position:static;display:flex;overflow:auto}.account-nav .account-user{display:none}.account-nav a{white-space:nowrap}.product-hero{grid-template-columns:1fr}.two-col{grid-template-columns:1fr}}@media(max-width:600px){html,body{font-size:13px}.site-header-inner{height:auto;min-height:62px;align-items:flex-start;padding:10px 0}.site-nav{flex-wrap:wrap;justify-content:flex-end}.site-nav a{padding:7px 8px}.site-main{padding-top:18px}.product-grid{grid-template-columns:1fr}.hero{padding:30px 0 20px}.kpi-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.product-copy h1{font-size:29px}.product-gallery{grid-template-columns:repeat(3,1fr)}.site-footer{display:grid}.site-row{display:grid}.auth-card{padding:20px}}

/* v0.1.36 WHITE THEME */
:root{color-scheme:light;--bg:#f6f7f9;--panel:#fff;--panel2:#f9fafb;--line:#e5e7eb;--line2:#d1d5db;--text:#17181c;--muted:#6b7280;--soft:#4b5563;--accent:#6d4aff;--accent2:#8b72ff;--green:#16834b;--yellow:#a16207;--red:#c53030}
html,body{background:#f6f7f9;color:#17181c}
body{background:linear-gradient(180deg,#fff 0,#f6f7f9 42%,#f6f7f9 100%)}
a{color:inherit}.site-header{background:rgba(255,255,255,.94);border-bottom:1px solid #e5e7eb;box-shadow:0 1px 10px rgba(17,24,39,.04)}.site-brand-mark{background:linear-gradient(135deg,#7557ff,#5c43db);color:#fff}.site-brand small{color:#8a93a1}.site-nav a{color:#596273}.site-nav a:hover{background:#f1f3f7;color:#17181c}.site-nav .nav-primary{background:#6d4aff;color:#fff}.site-nav .nav-logout{color:#6b7280}
.site-footer{border-top-color:#e5e7eb;color:#737b88}.hero-eyebrow{color:#6548dc}.hero p,.product-card p,.product-copy>p{color:#687385}.btn{border-color:#d9dde5;background:#fff;color:#252936;box-shadow:0 1px 2px rgba(17,24,39,.04)}.btn:hover{filter:none;background:#f7f8fa}.btn.primary{background:#6d4aff;border-color:#6d4aff;color:#fff}.btn.danger{background:#fff1f2;border-color:#fecdd3;color:#b42318}.btn.ghost{background:transparent;box-shadow:none}
.product-card{background:#fff;border-color:#e3e6eb;box-shadow:0 4px 18px rgba(17,24,39,.045)}.product-card:hover{border-color:#cfc8ff;box-shadow:0 8px 24px rgba(17,24,39,.08)}.product-thumb{background:#f3f4f6;border-bottom-color:#e5e7eb;color:#8a93a1}.pill,.badge{background:#f1f3f5;color:#596273}.pill.owned,.badge.active,.badge.approved,.badge.completed,.badge.visible{background:#e8f7ef;color:#147a47}.badge.pending,.badge.review{background:#fff7df;color:#946200}.badge.rejected,.badge.revoked,.badge.blocked,.badge.cancelled,.badge.deleted{background:#fff0f1;color:#b42318}.badge.hidden{background:#fff8df;color:#8a6500}
.panel{background:#fff;border-color:#e3e6eb;box-shadow:0 3px 14px rgba(17,24,39,.035)}.panel-head{border-bottom-color:#edf0f3}.panel-head p{color:#7a8493}.account-nav{background:#fff;border-color:#e3e6eb;box-shadow:0 2px 10px rgba(17,24,39,.03)}.account-nav a{color:#687385}.account-nav a:hover,.account-nav a.active{background:#f1efff;color:#4f36c7}.account-nav .account-user{border-bottom-color:#edf0f3}.account-user small{color:#7b8492}.page-title p{color:#737d8c}.kpi{background:#fff;border-color:#e3e6eb;box-shadow:0 2px 10px rgba(17,24,39,.03)}.kpi span{color:#737d8c}.table th,.table td{border-bottom-color:#edf0f3}.table th{color:#6b7280;background:#f8f9fb}.table td{color:#374151}.form label{color:#5f6877}.form input,.form select,.form textarea{border-color:#d8dde5;background:#fff;color:#1f2937;box-shadow:inset 0 1px 1px rgba(17,24,39,.02)}.form input:focus,.form select:focus,.form textarea:focus{border-color:#7b61e8;box-shadow:0 0 0 3px rgba(109,74,255,.11)}
.auth-card{background:#fff;border-color:#e3e6eb;box-shadow:0 20px 60px rgba(17,24,39,.10)}.auth-card>p{color:#737d8c}.auth-links{color:#687385}.alert{border-color:#e1e5eb;background:#f8f9fb}.alert.success{border-color:#b7e3ca;background:#effaf4;color:#176b43}.alert.warning{border-color:#f0d89a;background:#fff9e8;color:#8a6200}.alert.danger{border-color:#f1b8c0;background:#fff3f4;color:#a61b2b}.product-main-image{border-color:#e1e5eb;background:#f3f4f6;color:#8a93a1}.product-gallery img{border-color:#e1e5eb}.tabs{border-color:#e3e6eb;background:#f7f8fa}.tabs a{color:#687385}.tabs a.active{background:#6d4aff;color:#fff}.content-section,.release-card,.comment{border-bottom-color:#edf0f3}.prose{color:#4b5563}.comment-head{color:#7a8493}.comment-body{color:#374151}.comment.reply{background:#f7f7fb;border-left-color:#8a74e8}.license-key-box{background:#f8f7ff;border-color:#cfc5ff}.license-key-box code{color:#4f36c7}.empty{color:#7b8492}.site-row{border-color:#e3e6eb;background:#fff}.site-row small{color:#748094}.charge-address{background:#f8f9fb;border-color:#e1e5eb;color:#374151}
/* v0.1.35 PRODUCTS CSS HOTFIX retained */
.form-grid>label{display:grid;gap:6px;color:#5f6877;font-size:12px;min-width:0}.form-grid>label>input,.form-grid>label>select,.form-grid>label>textarea{width:100%;min-width:0;min-height:42px}.form-grid>label>textarea{min-height:130px;resize:vertical}.product-filter{grid-template-columns:minmax(240px,2fr) minmax(180px,1fr) auto;align-items:end}.product-filter .filter-action{display:flex;align-items:flex-end}.product-filter .filter-action .btn{min-width:88px;min-height:42px}
@media(max-width:900px){.product-filter{grid-template-columns:1fr 1fr}.product-filter .filter-action{grid-column:1/-1}.product-filter .filter-action .btn{width:100%}}@media(max-width:600px){.product-filter{grid-template-columns:1fr}}

/* v0.1.38 GLOBAL LUCIDE ICON SYSTEM */
.lucide{width:16px;height:16px;display:inline-block;vertical-align:-3px;flex:0 0 auto;stroke:currentColor}.btn .lucide,.site-nav a .lucide,.account-nav a .lucide{margin-right:6px}.site-nav a,.account-nav a{display:flex;align-items:center}.account-nav a{gap:8px}.account-nav a .lucide{width:17px;height:17px;color:#64748b}.account-nav a.active .lucide{color:currentColor}


/* ONEGRAM v0.1.40 HOTFIX-19 — account/sites.php modal/form restore */
.site-modal{position:fixed;inset:0;z-index:10000;display:none;align-items:center;justify-content:center;padding:24px}
.site-modal.is-open{display:flex}
.site-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48);backdrop-filter:blur(2px)}
.site-modal-dialog{position:relative;z-index:1;width:min(560px,100%);max-height:calc(100vh - 48px);overflow:auto;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.22)}
.site-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 18px;border-bottom:1px solid #eef2f7}
.site-modal-head h2{margin:0 0 6px;font-size:20px;line-height:1.3;color:#0f172a}
.site-modal-head p{margin:0;color:#64748b;font-size:13px}
.site-modal-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#475569;cursor:pointer}
.site-modal-close:hover{background:#f8fafc;color:#0f172a}
.site-modal-close svg{width:18px;height:18px}
.site-modal-body{display:grid;gap:18px;padding:22px 24px}
.site-modal .field{display:grid;gap:8px;margin:0}
.site-modal .field>span{font-size:13px;font-weight:700;color:#334155}
.site-modal .field input{display:block;width:100%;height:44px;padding:0 13px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;font:inherit;outline:none;box-sizing:border-box}
.site-modal .field input:focus{border-color:#6d5dfc;box-shadow:0 0 0 3px rgba(109,93,252,.12)}
.site-modal .field small{font-size:12px;line-height:1.55;color:#64748b}
.site-modal .site-lock-notice{margin:0;padding:14px 16px;border:1px solid #f4cf7a;border-radius:11px;background:#fff9e8;color:#8a5a00;font-size:13px;line-height:1.6}
.site-modal-actions{display:flex;justify-content:flex-end;gap:9px;padding:16px 24px 22px;border-top:1px solid #eef2f7}
.site-modal-actions .btn{min-height:40px}
body.site-modal-open{overflow:hidden}
@media(max-width:640px){
 .site-modal{padding:12px;align-items:flex-end}
 .site-modal-dialog{width:100%;max-height:90vh;border-radius:16px}
 .site-modal-head,.site-modal-body{padding-left:18px;padding-right:18px}
 .site-modal-actions{padding-left:18px;padding-right:18px}
}


/* ONEGRAM v0.1.40 HOTFIX-20 — horizontal site license cards */
.site-list{display:grid;gap:12px}
.site-row-horizontal{display:grid!important;grid-template-columns:minmax(250px,1.05fr) minmax(360px,1.35fr) minmax(280px,.9fr) auto;align-items:center;gap:22px;width:100%;padding:20px!important;border:1px solid #e2e8f0!important;border-radius:14px;background:#fff}
.site-main{display:flex;align-items:center;gap:14px;min-width:0;padding:0!important}
.site-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 52px;width:52px;height:52px;border-radius:13px;background:#f0efff;color:#6558e8}
.site-icon svg{width:25px;height:25px}
.site-identity{display:grid;gap:4px;min-width:0}
.site-identity>b{font-size:16px;color:#0f172a}
.site-identity>a{display:flex;align-items:center;gap:5px;width:max-content;max-width:100%;color:#64748b;text-decoration:none;font-size:13px}
.site-identity>a svg{width:13px;height:13px}
.site-identity small{color:#94a3b8;font-size:12px}
.site-key-col{min-width:0;padding-left:20px;border-left:1px solid #e5e7eb}
.site-col-label{display:block;margin-bottom:7px;color:#64748b;font-size:12px;font-weight:700}
.site-row-horizontal .license-key-box{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:6px 7px 6px 13px;border:1px dashed #c9c2ff;border-radius:11px;background:#faf9ff}
.site-row-horizontal .license-key-box code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5145cd}
.site-meta{display:grid;grid-template-columns:minmax(150px,1fr) auto;gap:20px;align-items:center;padding-left:20px;border-left:1px solid #e5e7eb}
.site-meta b{display:block;color:#0f172a;font-size:13px;font-weight:600;white-space:nowrap}
.site-row-horizontal .badge{display:inline-flex;align-items:center;min-height:27px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700}
.site-row-horizontal .badge.active{background:#e9f9ef;color:#16803c}
.site-row-horizontal .badge.deactivated{background:#fff0f0;color:#e23b3b}
.site-actions{display:flex;justify-content:flex-end;align-items:center}
.site-actions form{margin:0}
.site-actions .btn{min-width:104px;justify-content:center;white-space:nowrap}
@media(max-width:1180px){
 .site-row-horizontal{grid-template-columns:1fr 1.25fr}
 .site-meta{border-left:0;padding-left:0}
 .site-actions{justify-content:flex-start}
}
@media(max-width:760px){
 .site-row-horizontal{grid-template-columns:1fr;gap:15px}
 .site-key-col,.site-meta{padding-left:0;border-left:0}
 .site-meta{grid-template-columns:1fr 1fr}
 .site-actions .btn,.site-actions form{width:100%}
}


/* ONEGRAM v0.1.40 HOTFIX-22 — ACCOUNT SUITE UI/CSS REPAIR
   Shared account layout only. Existing sites.php HOTFIX-20/21 rules remain authoritative. */
.account-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;width:100%;max-width:1440px;margin:24px auto;padding:0 24px;box-sizing:border-box;align-items:start}
.account-shell *{box-sizing:border-box}
.account-content{min-width:0;width:100%;max-width:none!important}
.account-content>.page-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;width:100%;margin:0 0 18px;padding:0}
.account-content>.page-title h1{margin:0 0 6px;font-size:24px;line-height:1.25;color:#0f172a}
.account-content>.page-title p{margin:0;color:#64748b;font-size:13px;line-height:1.6}
.account-content .panel{width:100%;max-width:none;margin:0 0 16px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden}
.account-content .panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid #eef2f7}
.account-content .panel-head h2,.account-content .panel-head h3{margin:0 0 4px;color:#0f172a}
.account-content .panel-head p{margin:0;color:#64748b;font-size:12px;line-height:1.55}
.account-content .panel-body{width:100%;padding:20px}
.account-content .grid,.account-content .card-grid{width:100%}
.account-content .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%}
.account-content .field{display:grid;gap:7px;min-width:0;margin:0}
.account-content .field>span,.account-content label>span{font-size:12px;font-weight:700;color:#334155}
.account-content input:not([type=checkbox]):not([type=radio]),.account-content select,.account-content textarea{width:100%;max-width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a;font:inherit;outline:none}
.account-content input:not([type=checkbox]):not([type=radio]),.account-content select{height:42px;padding:0 12px}
.account-content textarea{min-height:110px;padding:11px 12px;resize:vertical}
.account-content input:focus,.account-content select:focus,.account-content textarea:focus{border-color:#6d5dfc;box-shadow:0 0 0 3px rgba(109,93,252,.1)}
.account-content .table-wrap{width:100%;max-width:100%;overflow-x:auto}
.account-content table{width:100%;border-collapse:collapse}
.account-content th,.account-content td{padding:12px 14px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:middle;font-size:12px}
.account-content th{background:#f8fafc;color:#64748b;font-weight:700;white-space:nowrap}
.account-content td{color:#334155}
.account-content .alert{width:100%;margin:0 0 14px;padding:12px 14px;border-radius:10px;font-size:13px;line-height:1.55}
.account-content .alert.success{background:#ecfdf3;border:1px solid #bbf7d0;color:#166534}
.account-content .alert.danger{background:#fff1f2;border:1px solid #fecdd3;color:#be123c}
.account-content .alert.warning{background:#fffbeb;border:1px solid #fde68a;color:#92400e}
.account-content .empty{width:100%;padding:36px 20px;text-align:center;color:#94a3b8;font-size:13px}
.account-content .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 13px;border-radius:9px;line-height:1.2;text-decoration:none;cursor:pointer}
.account-content .btn svg{width:16px;height:16px;flex:none}
.account-content .badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;white-space:nowrap}
.account-content .actions,.account-content .form-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.account-content code{overflow-wrap:anywhere}

/* Keep account navigation stable regardless of page-specific styles. */
.account-nav{width:220px;min-width:0;position:sticky;top:20px}
.account-nav a{min-width:0}
.account-nav svg{flex:none}

/* Responsive account suite */
@media(max-width:980px){
 .account-shell{grid-template-columns:1fr;gap:16px;padding:0 16px;margin-top:16px}
 .account-nav{position:static;width:100%}
 .account-content .form-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
 .account-shell{padding:0 12px}
 .account-content>.page-title{flex-direction:column;align-items:stretch}
 .account-content>.page-title .btn{width:100%}
 .account-content .panel-head{padding:15px 16px}
 .account-content .panel-body{padding:16px}
 .account-content th,.account-content td{padding:10px 11px}
}

/* sites.php exception: retain the approved horizontal card and zero site-main padding. */
.account-content .site-row-horizontal .site-main{padding:0!important}


/* =========================================================
   ONEGRAM v0.1.40 HOTFIX-23
   MARKET LIST + PRODUCT DETAIL — isolated/scoped repair
   ========================================================= */
.market-list-page,.product-view-page{--mk-line:#e7e9ee;--mk-soft:#f7f8fa;--mk-text:#151821;--mk-muted:#737b88;--mk-primary:#6d4aff;max-width:1380px;margin:0 auto;color:var(--mk-text)}
.market-eyebrow{display:inline-flex;align-items:center;gap:7px;color:var(--mk-primary);font-size:11px;font-weight:800;letter-spacing:.09em}
.market-eyebrow svg{width:15px;height:15px}
.market-list-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:4px 0 22px}
.market-list-head h1{margin:7px 0 5px;font-size:30px;letter-spacing:-.04em}
.market-list-head p{margin:0;color:var(--mk-muted);font-size:13px}
.market-list-count{display:flex;align-items:baseline;gap:5px;color:var(--mk-muted)}.market-list-count b{font-size:24px;color:var(--mk-text)}.market-list-count span{font-size:12px}
.market-filter-card{padding:16px 18px;margin-bottom:22px;border:1px solid var(--mk-line);border-radius:14px;background:#fff;box-shadow:0 2px 10px rgba(17,24,39,.025)}
.market-filter{display:grid;grid-template-columns:minmax(260px,1fr) 220px auto;gap:12px;align-items:end}
.market-filter label{display:grid;gap:7px;min-width:0}.market-filter label>span{font-size:11px;font-weight:700;color:#667085}
.market-filter input,.market-filter select{width:100%;height:42px;border:1px solid #dfe3e9;border-radius:9px;background:#fff;color:#252936;outline:none}
.market-filter input{padding:0 12px 0 37px}.market-filter select{padding:0 11px}
.market-search{position:relative}.market-search>i,.market-search>svg{position:absolute;left:12px;top:13px;width:16px;height:16px;color:#98a0ad;z-index:2}
.market-filter input:focus,.market-filter select:focus{border-color:#8b75ef;box-shadow:0 0 0 3px rgba(109,74,255,.08)}
.market-filter>.btn{height:42px}
.market-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.market-product-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--mk-line);border-radius:15px;background:#fff;box-shadow:0 3px 14px rgba(17,24,39,.035);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.market-product-card:hover{transform:translateY(-3px);border-color:#d1c8ff;box-shadow:0 12px 28px rgba(17,24,39,.08)}
.market-product-thumb{position:relative;aspect-ratio:16/10;overflow:hidden;background:#f3f4f6;border-bottom:1px solid #edf0f3}
.market-product-thumb>img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.market-product-card:hover .market-product-thumb>img{transform:scale(1.025)}
.market-no-image{width:100%;height:100%;display:flex;align-items:center;justify-content:center;gap:8px;color:#9aa2ae;font-size:11px}.market-no-image svg{width:22px;height:22px}
.market-product-badges{position:absolute;left:12px;top:12px;display:flex;gap:6px}.market-product-badges span{padding:5px 8px;border:1px solid rgba(255,255,255,.8);border-radius:999px;background:rgba(255,255,255,.92);box-shadow:0 2px 8px rgba(0,0,0,.05);font-size:10px;font-weight:700;color:#555e6c}.market-product-badges .owned{background:#ecf9f1;color:#147a47}
.market-product-body{display:flex;flex:1;flex-direction:column;padding:16px 17px 17px}.market-product-version{font-size:10px;color:#929aa6}.market-product-body h3{margin:7px 0 7px;font-size:16px;line-height:1.35}.market-product-body p{display:-webkit-box;min-height:40px;margin:0 0 16px;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#737b88;font-size:12px;line-height:1.65}
.market-product-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:13px;border-top:1px solid #f0f1f4}.market-product-foot strong{font-size:16px}.market-product-foot span{display:flex;align-items:center;gap:4px;color:#7b8492;font-size:11px}.market-product-foot svg{width:13px;height:13px}
.market-empty{grid-column:1/-1;display:grid;place-items:center;padding:70px 20px;border:1px dashed #dfe3e9;border-radius:15px;color:#8a93a1;text-align:center}.market-empty>svg{width:28px;height:28px;margin-bottom:10px}.market-empty b{color:#4b5563}.market-empty p{margin:5px 0 0;font-size:12px}

/* Product detail — Rebuilder-inspired information flow, ONEGRAM visual language */
.product-back{display:inline-flex;align-items:center;gap:6px;margin:0 0 14px;color:#737b88;font-size:12px}.product-back svg{width:15px;height:15px}
.product-view-hero{display:grid;grid-template-columns:minmax(360px,540px) minmax(0,1fr);gap:42px;padding:8px 0 30px}
.product-view-main-image{aspect-ratio:16/10;overflow:hidden;border:1px solid var(--mk-line);border-radius:17px;background:#f4f5f7}.product-view-main-image>img{width:100%;height:100%;object-fit:cover}
.product-view-gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:9px}.product-view-gallery img{width:100%;aspect-ratio:16/10;object-fit:cover;border:1px solid var(--mk-line);border-radius:8px}
.product-view-summary{padding:5px 0}.product-view-badges{display:flex;gap:6px;flex-wrap:wrap}.product-view-badges span{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border-radius:999px;background:#f1f3f5;color:#5f6877;font-size:10px;font-weight:700}.product-view-badges span.owned{background:#eaf8ef;color:#147a47}.product-view-badges svg{width:13px;height:13px}
.product-view-summary h1{margin:14px 0 10px;font-size:36px;line-height:1.18;letter-spacing:-.045em}.product-view-lead{max-width:720px;margin:0;color:#687385;font-size:14px;line-height:1.75}
.product-view-benefits{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.product-view-benefits span{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid #e6e9ee;border-radius:9px;background:#fafbfc;color:#566070;font-size:11px;font-weight:700}.product-view-benefits svg{width:15px;height:15px;color:#6d4aff}
.product-view-buybox{margin-top:18px;padding:19px;border:1px solid #e3e6eb;border-radius:14px;background:#fafbfc}.product-view-price{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:15px}.product-view-price small{color:#7a8493;font-size:11px}.product-view-price strong{font-size:28px;letter-spacing:-.035em}.product-view-price em{font-size:15px;font-style:normal;color:#6d4aff}
.product-buy-actions{display:grid;grid-template-columns:1fr auto;gap:8px}.product-main-action{min-height:46px!important;font-weight:800}.product-buy-note{display:flex;align-items:center;gap:6px;margin:10px 0 0;color:#668071;font-size:10px}.product-buy-note svg{width:14px;height:14px}
.product-view-tabs{position:sticky;top:68px;z-index:20;display:flex;gap:3px;margin:0 0 18px;padding:6px;border:1px solid #e3e6eb;border-radius:12px;background:rgba(255,255,255,.94);box-shadow:0 5px 18px rgba(17,24,39,.035);backdrop-filter:blur(12px)}.product-view-tabs a{display:inline-flex;align-items:center;gap:6px;padding:9px 12px;border-radius:8px;color:#667085;font-size:11px;font-weight:700}.product-view-tabs a:hover{background:#f3f1ff;color:#5639d2}.product-view-tabs svg{width:15px;height:15px}
.product-view-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:18px;align-items:start}.product-view-content{display:grid;gap:14px;min-width:0}
.product-section{scroll-margin-top:130px;overflow:hidden;padding:22px;border:1px solid #e3e6eb;border-radius:14px;background:#fff;box-shadow:0 2px 10px rgba(17,24,39,.025)}
.product-section-title{display:flex;align-items:flex-start;gap:11px;margin-bottom:18px;padding-bottom:15px;border-bottom:1px solid #eef0f3}.product-section-title>svg{width:19px;height:19px;margin-top:1px;color:#6d4aff}.product-section-title h2{margin:0;font-size:17px}.product-section-title h2 small{margin-left:4px;color:#6d4aff}.product-section-title p{margin:4px 0 0;color:#8a93a1;font-size:10px}
.product-section .prose{color:#4b5563;font-size:13px;line-height:1.9}.product-section .prose img{max-width:100%;height:auto}
.product-release-list{display:grid}.product-release{padding:17px 0;border-bottom:1px solid #eef0f3}.product-release:first-child{padding-top:0}.product-release:last-child{padding-bottom:0;border-bottom:0}.product-release-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:10px}.product-release-version{display:flex;align-items:center;gap:7px}.product-release-version b{font-size:15px}.product-release-version span{padding:4px 7px;border-radius:999px;background:#f1f3f5;color:#687385;font-size:9px}.product-release-head p{margin:5px 0 0;color:#8a93a1;font-size:10px}
.product-view-side{position:sticky;top:126px;display:grid;gap:12px}.product-side-card{padding:17px;border:1px solid #e3e6eb;border-radius:13px;background:#fff}.product-side-card h3{margin:0 0 12px;font-size:13px}.product-side-card dl{margin:0}.product-side-card dl>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #f0f1f3;font-size:10px}.product-side-card dl>div:last-child{border:0}.product-side-card dt{color:#8a93a1}.product-side-card dd{margin:0;color:#3f4753;font-weight:700;text-align:right}.product-side-help{display:flex;gap:10px;background:#f8f7ff}.product-side-help>svg{flex:0 0 auto;width:19px;height:19px;color:#6d4aff}.product-side-help b{font-size:11px}.product-side-help p{margin:5px 0 0;color:#747d8b;font-size:9px;line-height:1.55}
.product-comment-form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:18px}.product-comment-form textarea{width:100%;min-height:80px;padding:11px 12px;border:1px solid #dfe3e9;border-radius:9px;resize:vertical;outline:none}.product-comment-form textarea:focus{border-color:#8b75ef;box-shadow:0 0 0 3px rgba(109,74,255,.08)}.product-comment-form .btn{align-self:end}
.product-comment-list{display:grid}.product-comment{display:flex;gap:11px;padding:16px 0;border-bottom:1px solid #eef0f3}.product-comment:last-child{border-bottom:0}.product-comment.reply{margin-left:35px}.product-comment-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#f1efff;color:#6d4aff}.product-comment-avatar svg{width:16px;height:16px}.product-comment-content{flex:1;min-width:0}.product-comment-head{display:flex;justify-content:space-between;gap:12px}.product-comment-head b{font-size:11px}.product-comment-head span{color:#929aa6;font-size:9px}.product-comment-body{padding:7px 0;color:#4b5563;font-size:12px;line-height:1.7}.product-login-notice{margin-bottom:15px;padding:12px;border-radius:9px;background:#f7f8fa;color:#7b8492;font-size:11px}

@media(max-width:1180px){.market-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-view-layout{grid-template-columns:1fr}.product-view-side{position:static;grid-template-columns:1fr 1fr}.product-view-hero{grid-template-columns:minmax(320px,460px) minmax(0,1fr);gap:28px}}
@media(max-width:850px){.market-filter{grid-template-columns:1fr 1fr}.market-filter>.btn{grid-column:1/-1}.market-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-view-hero{grid-template-columns:1fr}.product-view-tabs{top:62px;overflow-x:auto;flex-wrap:nowrap}.product-view-tabs a{white-space:nowrap}.product-view-side{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.market-list-head{align-items:flex-start;flex-direction:column}.market-filter{grid-template-columns:1fr}.market-filter>.btn{grid-column:auto}.market-product-grid{grid-template-columns:1fr}.product-view-summary h1{font-size:29px}.product-view-buybox{padding:15px}.product-buy-actions{grid-template-columns:1fr}.product-view-tabs{margin-left:-4px;margin-right:-4px}.product-section{padding:17px}.product-view-side{grid-template-columns:1fr}.product-comment-form{grid-template-columns:1fr}.product-comment-form .btn{width:100%}.product-comment.reply{margin-left:18px}.product-view-gallery{grid-template-columns:repeat(3,1fr)}}

/* ONEGRAM v0.1.40 HOTFIX-24 — products/product full width */
.market-list-page,.product-view-page{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
body:has(.market-list-page) .container,body:has(.product-view-page) .container,
body:has(.market-list-page) main,body:has(.product-view-page) main{width:100%!important;max-width:none!important}

/* ONEGRAM v0.1.40 HOTFIX-25 — max width 1480px */
.market-list-page,.product-view-page{
 width:100%!important;max-width:1480px!important;
 margin-left:auto!important;margin-right:auto!important;
}
