:root{
  --ink:#17191d; --muted:#686b73; --line:#e9eaee; --accent:#bdcdff; --accent-hover:#aabfff;
  --surface:#fafafb; --tint:#f0f3fe; --chip:#f7f8fa; --field-line:#e2e4ea; --placeholder:#7b7f89;
  --link:#394866; --focus:#869eeb; --danger:#c0392b; --ok:#1f8a5b;
  --pad:80px;
  /* Одинаковые поля по бокам у шапки, контента и подвала: 80px на компьютере при любой ширине экрана
     (на планшете 40px, на телефоне 20px, см. @media ниже) */
  --gutter:var(--pad);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--ink);background:#fff;line-height:1.4;min-height:100vh;display:flex;flex-direction:column;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* ---------- Header ---------- */
.hdr{height:88px;display:flex;align-items:center;justify-content:space-between;padding:0 var(--gutter);position:relative;background:#fff;z-index:20}
.brand{display:flex;align-items:center;height:29px;flex:none}
.brand svg{display:block}
.nav{display:flex;align-items:center;gap:32px}
.nav-link{font-size:14px;font-weight:500;color:var(--muted);transition:color .15s}
.nav-link:hover{color:var(--ink)}
.nav-link.active{font-weight:600;color:var(--ink)}
.btn-upload{display:inline-flex;align-items:center;gap:8px;background:var(--accent);padding:11px 16px;border-radius:10px;font-size:14px;font-weight:600;color:var(--ink);white-space:nowrap;transition:background .15s}
.btn-upload:hover{background:var(--accent-hover)}
.btn-upload.active{background:#f4f6fb}
.lbl-short{display:none}
.menu-btn{display:none;width:20px;height:20px;align-items:center;justify-content:center}
.user-wrap{position:relative;flex:none}
.avatar{width:40px;height:40px;border-radius:20px;background:#f2f5ff;display:grid;place-items:center;flex:none;transition:background .15s}
.avatar:hover{background:#e6ecff}
.avatar .initial{font-size:15px;font-weight:600;color:var(--link)}
.user-menu{display:none;position:absolute;right:0;top:48px;width:236px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:0 12px 32px rgba(23,25,29,.10);z-index:30}
.user-menu.open{display:block}
.user-menu .um-head{padding:10px 12px 12px;display:flex;flex-direction:column;gap:2px;border-bottom:1px solid var(--line);margin-bottom:6px}
.user-menu .um-head b{font-size:14px;font-weight:600}
.user-menu .um-head span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.user-menu a,.user-menu button{display:block;width:100%;text-align:left;padding:10px 12px;border-radius:8px;font-size:14px;font-weight:500;color:var(--ink)}
.user-menu a:hover,.user-menu button:hover{background:#f4f6fb}
.user-menu hr{border:0;border-top:1px solid var(--line);margin:6px 0}
.mobile-menu{display:none;position:absolute;top:100%;left:20px;right:20px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:0 12px 32px rgba(23,25,29,.08)}
.mobile-menu.open{display:block}
.mobile-menu a{display:block;padding:12px;border-radius:8px;font-size:14px;font-weight:500;color:var(--muted)}
.mobile-menu a.active{color:var(--ink);font-weight:600;background:#f4f6fb}

main{flex:1}
.page{display:none}
.page.active{display:block}

/* ---------- Shared building blocks (pages may reuse these) ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:10px;font-size:14px;font-weight:600;line-height:1.4;white-space:nowrap;transition:background .15s,border-color .15s,opacity .15s;cursor:pointer}
.btn-primary{background:var(--accent);color:var(--ink)}
.btn-primary:hover{background:var(--accent-hover)}
.btn-secondary{background:#f4f6fb;color:var(--ink)}
.btn-secondary:hover{background:#e9eefc}
.btn-outline{background:#fff;color:var(--ink);border:1px solid var(--field-line)}
.btn-outline:hover{background:var(--surface)}
.btn-danger{background:#fdecea;color:var(--danger)}
.btn-danger:hover{background:#fadbd7}
.btn-block{width:100%}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.link{color:var(--link);font-weight:500}
.link:hover{text-decoration:underline}

.intro{padding:52px var(--gutter) 48px;display:flex;flex-direction:column;align-items:center;gap:20px;text-align:center}
.intro h1{font-size:56px;font-weight:600;line-height:1.08;letter-spacing:-2.4px;max-width:760px}
.intro p.lead{font-size:16px;color:var(--muted);max-width:740px}
.intro.left{align-items:flex-start;text-align:left;padding:48px var(--gutter) 40px}
.intro.left h1{font-size:42px;line-height:1.4;letter-spacing:-1.4px;max-width:900px}
.intro.left p.lead{max-width:900px}
.intro.center-sm{padding:48px var(--gutter) 40px}
.intro.center-sm h1{font-size:42px;line-height:1.4;letter-spacing:-1.4px}

.search{display:flex;align-items:center;gap:12px;height:54px;padding:0 18px;background:var(--surface);border:1px solid var(--line);border-radius:12px;width:580px;max-width:100%;text-align:left;transition:border-color .15s,box-shadow .15s}
.search:focus-within{border-color:var(--focus);box-shadow:0 0 0 3px rgba(134,158,235,.2)}
.search.wide{width:100%}
.search svg{flex:none}
.search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:14px}
.search input::placeholder{color:var(--muted)}
.kbd{font-size:12px;font-weight:500;color:var(--muted);white-space:nowrap}

.dir{padding:0 var(--gutter) 56px;display:flex;flex-direction:column;gap:24px;width:100%}
.dir-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.dir-head h2{font-size:24px;font-weight:600}
.dir-head p{font-size:14px;color:var(--muted);margin-top:4px}
.dir-head a.all{font-size:14px;font-weight:500;white-space:nowrap}
.dir-head a.all:hover{text-decoration:underline}
.dir-head a.all .short{display:none}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.empty{padding:56px 0;text-align:center;color:var(--muted);font-size:14px;grid-column:1/-1}

.card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s;cursor:pointer}
.card:hover{box-shadow:0 10px 28px rgba(23,25,29,.07);transform:translateY(-2px)}
.shot{height:172px;position:relative;overflow:hidden;flex:none}
.shot-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.shot-initial{position:absolute;inset:0;display:grid;place-items:center;font-size:56px;font-weight:600;color:rgba(23,25,29,.18)}
.ui{position:absolute;left:50%;margin-left:-163px;top:24px;width:326px;height:150px;background:#fff;border-radius:7px;overflow:hidden}
.ui .p{position:absolute;display:block}
.ui .pt{position:absolute;white-space:nowrap;line-height:normal;font-style:normal}
.det{padding:17px 20px 18px;display:flex;flex-direction:column;gap:9px}
.det .row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.det .name{font-size:18px;font-weight:600}
.det .rate{font-size:12px;font-weight:500;color:#535966;white-space:pre}
.det .desc{font-size:13px;color:var(--muted)}
.det .meta{display:flex;justify-content:space-between;font-size:11px;font-weight:500}
.det .meta .cat{color:var(--muted)}
.det .meta a{color:var(--link)}
.det .meta a:hover{text-decoration:underline}

.invite{background:var(--tint);border-radius:16px;padding:24px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.invite h3{font-size:20px;font-weight:600}
.invite p{font-size:14px;color:var(--muted);margin-top:4px}
.invite .cta{background:var(--accent);border-radius:10px;padding:12px 18px;font-size:14px;font-weight:600;white-space:nowrap;transition:background .15s}
.invite .cta:hover{background:var(--accent-hover)}

.filters{display:flex;flex-direction:column;gap:16px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{padding:9px 13px;border-radius:8px;background:var(--chip);font-size:12px;font-weight:500;color:var(--muted);transition:background .15s}
.chip:hover{background:#eef0f4}
.chip.active{background:var(--accent);color:var(--ink);font-weight:600}
.results{display:flex;align-items:center;justify-content:space-between;gap:16px}
.results .count{font-size:12px;color:var(--muted)}
.sort{display:inline-flex;gap:4px;padding:4px;background:#f4f5f7;border-radius:9px}
.sort button{padding:7px 12px;border-radius:6px;font-size:12px;font-weight:500;color:var(--muted);white-space:nowrap}
.sort button.active{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(23,25,29,.06)}

/* Forms */
.form{width:720px;max-width:100%;margin:0 auto;padding:0 0 64px;display:flex;flex-direction:column;gap:24px}
.form-wrap{padding:0 20px}
.form h2{font-size:18px;font-weight:600;line-height:1.45}
.form .sub{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.45}
.field{display:flex;flex-direction:column;gap:9px}
.field .lbl{display:flex;justify-content:space-between;font-size:13px;font-weight:500;line-height:1.45}
.field .lbl .opt{font-size:12px;font-weight:400;color:var(--muted)}
.input,.select,.textarea{width:100%;height:48px;padding:0 14px;background:#fff;border:1px solid var(--field-line);border-radius:9px;font-size:13px;outline:0;transition:border-color .15s,box-shadow .15s}
.textarea{height:124px;padding:13px 14px;resize:vertical;line-height:1.45}
.input::placeholder,.textarea::placeholder{color:var(--placeholder)}
.input:focus,.select:focus,.textarea:focus{border-color:var(--focus);box-shadow:0 0 0 3px rgba(134,158,235,.2)}
.select{appearance:none;-webkit-appearance:none;color:var(--placeholder);padding-right:40px;cursor:pointer}
.select.has-value{color:var(--ink)}
.select-wrap{position:relative}
.select-wrap svg{position:absolute;right:15px;top:16px;pointer-events:none}
.help{font-size:11px;color:var(--muted);line-height:1.45}
.err{font-size:11px;color:var(--danger);display:none;line-height:1.45}
.field.invalid .err{display:block}
.field.invalid .input,.field.invalid .select,.field.invalid .textarea,.field.invalid .drop{border-color:#d9534f}
.two{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.drop{display:flex;flex-direction:column;align-items:center;gap:10px;padding:26px 16px;background:#fafbfe;border:1px dashed #ccd3e4;border-radius:12px;cursor:pointer;text-align:center;transition:background .15s,border-color .15s}
.drop:hover,.drop.over{background:#f2f5ff;border-color:var(--focus)}
.drop .t1{font-size:13px;font-weight:500;color:var(--link)}
.drop .t2{font-size:11px;color:var(--muted)}
.drop img{max-height:96px;max-width:100%;border-radius:8px;object-fit:contain}
.submit-wrap{display:flex;flex-direction:column;gap:12px;padding-top:8px}
.submit{width:100%;padding:15px;background:var(--accent);border-radius:10px;font-size:14px;font-weight:600;transition:background .15s}
.submit:hover{background:var(--accent-hover)}
.fine{font-size:11px;color:var(--muted);text-align:center;line-height:1.45}

/* Toast */
.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,16px);background:var(--ink);color:#fff;padding:12px 18px;border-radius:10px;font-size:13px;font-weight:500;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:100;max-width:calc(100vw - 40px)}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------- Footer ---------- */
.ftr{border-top:1px solid var(--line);padding:24px var(--gutter);display:flex;justify-content:space-between;gap:16px;font-size:12px;color:var(--muted)}
.ftr .links{display:flex;gap:24px;font-weight:500}
.ftr .links a:hover{color:var(--ink)}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  :root{--pad:40px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  :root{--pad:20px}
  .hdr{height:76px}
  .nav{gap:14px}
  .nav-link{display:none}
  .menu-btn{display:inline-flex}
  .lbl-long{display:none}
  .lbl-short{display:inline}
  .brand{transform:scale(.94);transform-origin:left center}
  .intro{padding:32px var(--pad) 36px;gap:16px}
  .intro h1{font-size:36px;letter-spacing:-1.4px}
  .intro p.lead{font-size:14px}
  .intro.left,.intro.center-sm{padding:32px var(--pad) 32px}
  .intro.left h1,.intro.center-sm h1{font-size:32px;line-height:1.4}
  .search input{font-size:13px}
  .kbd{display:none}
  .dir{padding-bottom:32px}
  .dir-head h2{font-size:22px}
  .dir-head p{display:none}
  .dir-head a.all{font-size:13px}
  .dir-head a.all .long{display:none}
  .dir-head a.all .short{display:inline}
  .grid{grid-template-columns:1fr;gap:24px}
  .invite{flex-direction:column;align-items:flex-start;border-radius:14px;padding:24px 20px;gap:12px}
  .invite .cta{padding:9px 13px;border-radius:8px;font-size:12px}
  .results{flex-direction:column;align-items:flex-start;gap:12px}
  .sort{max-width:100%;overflow-x:auto}
  .two{grid-template-columns:1fr}
  .form .two{gap:24px}
  .ftr{flex-direction:column;padding:24px var(--pad)}
  .user-menu{right:-4px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---- _auth.css ---- */
:is(#page-signin,#page-signup,#page-reset) .auth{width:440px;max-width:100%;margin:0 auto;padding:56px 20px 88px}
:is(#page-signin,#page-signup,#page-reset) .auth h1{font-size:32px;font-weight:600;line-height:1.2;letter-spacing:-1px;text-align:center}
:is(#page-signin,#page-signup,#page-reset) .auth .lead{font-size:14px;color:var(--muted);text-align:center;margin:10px 0 28px}
:is(#page-signin,#page-signup,#page-reset) .auth form{display:flex;flex-direction:column;gap:18px;padding:28px;border:1px solid var(--line);border-radius:16px;background:#fff}
:is(#page-signin,#page-signup,#page-reset) .auth .alt{margin-top:20px;font-size:13px;color:var(--muted);text-align:center}
:is(#page-signin,#page-signup,#page-reset) .auth .alt a{color:var(--link);font-weight:600}
:is(#page-signin,#page-signup,#page-reset) .auth .alt a:hover{text-decoration:underline}
:is(#page-signin,#page-signup,#page-reset) .auth .row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}
:is(#page-signin,#page-signup,#page-reset) .auth .row a{color:var(--link);font-weight:500}
:is(#page-signin,#page-signup,#page-reset) .auth .row a:hover{text-decoration:underline}
:is(#page-signin,#page-signup,#page-reset) .auth .check{display:flex;gap:10px;align-items:flex-start;font-size:12px;color:var(--muted);line-height:1.5}
:is(#page-signin,#page-signup,#page-reset) .auth .check input{margin-top:2px;width:16px;height:16px;accent-color:#869eeb;flex:none}
:is(#page-signin,#page-signup,#page-reset) .auth .check a{color:var(--link);font-weight:500}
:is(#page-signin,#page-signup,#page-reset) .auth .pw{position:relative}
:is(#page-signin,#page-signup,#page-reset) .auth .pw .input{padding-right:64px}
:is(#page-signin,#page-signup,#page-reset) .auth .pw button{position:absolute;right:8px;top:8px;height:32px;padding:0 10px;border-radius:7px;font-size:12px;font-weight:500;color:var(--link)}
:is(#page-signin,#page-signup,#page-reset) .auth .pw button:hover{background:#f4f6fb}
:is(#page-signin,#page-signup,#page-reset) .auth .done{display:none;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:32px 28px;border-radius:16px;background:var(--tint)}
:is(#page-signin,#page-signup,#page-reset) .auth .done h2{font-size:20px;font-weight:600}
:is(#page-signin,#page-signup,#page-reset) .auth .done p{font-size:14px;color:var(--muted)}
:is(#page-signin,#page-signup,#page-reset) .auth .done small{font-size:11px;color:var(--muted)}
@media (max-width:720px){
  :is(#page-signin,#page-signup,#page-reset) .auth{padding-top:32px;padding-bottom:56px}
  :is(#page-signin,#page-signup,#page-reset) .auth h1{font-size:28px}
  :is(#page-signin,#page-signup,#page-reset) .auth form{padding:20px}
}

/* ---- about.css ---- */
#page-about .ab{padding:72px var(--gutter) 96px}
#page-about .ab-hero{max-width:640px;margin:0 auto 48px;text-align:center}
#page-about h1{font-size:44px;font-weight:600;line-height:1.1;letter-spacing:-1.6px}
#page-about .lead{font-size:18px;color:var(--muted);margin-top:14px;line-height:1.5}
#page-about .ab-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
#page-about .ab-card{border:1px solid var(--line);border-radius:16px;padding:28px;background:#fff}
#page-about .ab-card h3{font-size:18px;font-weight:600;margin-bottom:8px}
#page-about .ab-card p{font-size:14px;color:var(--muted);line-height:1.55}
#page-about .ab-cta{display:flex;gap:10px;justify-content:center;margin-top:40px;flex-wrap:wrap}
@media (max-width:1100px){#page-about .ab{padding-left:var(--pad);padding-right:var(--pad)}}
@media (max-width:720px){
  #page-about .ab{padding-top:40px;padding-bottom:56px}
  #page-about h1{font-size:32px}#page-about .lead{font-size:15px}
  #page-about .ab-grid{grid-template-columns:1fr}
  #page-about .ab-cta{flex-direction:column}
}

/* ---- contact.css ---- */
#page-contact .ct{max-width:560px;margin:0 auto;padding:64px 20px 96px}
#page-contact h1{font-size:36px;font-weight:600;letter-spacing:-1.2px;line-height:1.15;text-align:center}
#page-contact .lead{font-size:15px;color:var(--muted);text-align:center;margin:10px 0 32px}
#page-contact form{display:flex;flex-direction:column;gap:18px}
#page-contact .ct-done{display:none;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:32px;border-radius:16px;background:var(--tint)}
#page-contact .ct-done h2{font-size:20px;font-weight:600}
#page-contact .ct-done p{font-size:14px;color:var(--muted)}
@media (max-width:720px){#page-contact .ct{padding-top:36px;padding-bottom:56px}#page-contact h1{font-size:28px}#page-contact form .btn{width:100%}}

/* ---- edit.css ---- */
#page-edit .select-wrap svg{position:absolute;right:15px;top:16px;pointer-events:none}
#page-edit .ed-row{display:flex;gap:12px}
#page-edit .ed-row .btn{flex:1}
#page-edit .drop img{max-height:120px}
@media (max-width:720px){#page-edit .ed-row{flex-direction:column}}

/* ---- guidelines.css ---- */
#page-guidelines .gd{display:grid;grid-template-columns:220px 1fr;gap:56px;padding:64px var(--gutter) 96px;align-items:start}
#page-guidelines .gd-toc{position:sticky;top:104px;display:flex;flex-direction:column;gap:4px}
#page-guidelines .gd-toc h2{font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.6px;margin-bottom:8px}
#page-guidelines .gd-toc a{font-size:14px;padding:8px 12px;border-radius:8px;color:var(--ink)}
#page-guidelines .gd-toc a:hover,#page-guidelines .gd-toc a.on{background:#f2f5ff;color:var(--link)}
#page-guidelines .gd-body{max-width:680px}
#page-guidelines h1{font-size:40px;font-weight:600;letter-spacing:-1.4px;line-height:1.15}
#page-guidelines .lead{font-size:16px;color:var(--muted);margin:10px 0 36px}
#page-guidelines section{scroll-margin-top:110px;margin-bottom:32px}
#page-guidelines section h2{font-size:22px;font-weight:600;margin-bottom:8px}
#page-guidelines section p{font-size:15px;line-height:1.65;color:#3a3f4b}
#page-guidelines section a{color:var(--link);font-weight:500}
@media (max-width:1100px){#page-guidelines .gd{padding-left:var(--pad);padding-right:var(--pad)}}
@media (max-width:720px){
  #page-guidelines .gd{grid-template-columns:1fr;gap:24px;padding-top:32px;padding-bottom:56px}
  #page-guidelines .gd-toc{position:static;flex-direction:row;flex-wrap:wrap;gap:6px}
  #page-guidelines .gd-toc h2{width:100%}
  #page-guidelines .gd-toc a{background:var(--chip);padding:8px 12px}
  #page-guidelines h1{font-size:30px}
}

/* ---- myproducts.css ---- */
#page-myproducts .mp-intro{flex-direction:row;align-items:flex-end;justify-content:space-between;gap:24px}
#page-myproducts .mp-count{font-size:12px;color:var(--muted)}
#page-myproducts .mp-list{display:flex;flex-direction:column;gap:16px}
#page-myproducts .mp-row{display:flex;align-items:center;gap:20px;border:1px solid var(--line);border-radius:16px;padding:16px;background:#fff}
#page-myproducts .mp-thumb{width:140px;height:92px;border-radius:10px;position:relative;overflow:hidden;flex:none}
#page-myproducts .mp-thumb .ui{left:50%;top:50%;margin-left:-163px;margin-top:-75px;transform:scale(.38)}
#page-myproducts .mp-thumb .shot-initial{font-size:36px}
#page-myproducts .mp-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
#page-myproducts .mp-name{font-size:18px;font-weight:600}
#page-myproducts .mp-desc{font-size:13px;color:var(--muted)}
#page-myproducts .mp-cat{font-size:11px;font-weight:500;color:var(--muted)}
#page-myproducts .mp-actions{display:flex;gap:8px;flex:none}
#page-myproducts .mp-actions .btn{padding:9px 14px;font-size:13px}
#page-myproducts .mp-empty{border:1px dashed #ccd3e4;background:#fafbfe;border-radius:16px;padding:56px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
#page-myproducts .mp-empty h3{font-size:20px;font-weight:600}
#page-myproducts .mp-empty p{font-size:14px;color:var(--muted);margin-bottom:12px}
@media (max-width:1100px){#page-myproducts .mp-row{flex-wrap:wrap}#page-myproducts .mp-actions{width:100%}}
@media (max-width:720px){
  #page-myproducts .mp-intro{flex-direction:column;align-items:flex-start}
  #page-myproducts .mp-intro .btn{width:100%}
  #page-myproducts .mp-row{flex-direction:column;align-items:stretch;gap:14px}
  #page-myproducts .mp-thumb{width:100%;height:140px}
  #page-myproducts .mp-thumb .ui{transform:scale(.7)}
  #page-myproducts .mp-actions .btn{flex:1}
}

/* ---- notfound.css ---- */
#page-notfound .nf{max-width:520px;margin:0 auto;padding:88px 20px 120px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px}
#page-notfound .nf-code{font-size:14px;font-weight:600;color:var(--link);background:#f2f5ff;padding:6px 12px;border-radius:8px}
#page-notfound h1{font-size:42px;font-weight:600;line-height:1.15;letter-spacing:-1.4px}
#page-notfound .lead{font-size:16px;color:var(--muted)}
#page-notfound .nf-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:12px}
@media (max-width:720px){#page-notfound .nf{padding-top:56px}#page-notfound h1{font-size:32px}#page-notfound .lead{font-size:14px}#page-notfound .nf-actions{width:100%;flex-direction:column}}

/* ---- product.css ---- */
#page-product .dir{padding-top:8px;gap:40px}
#page-product .pd-back{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:var(--muted)}
#page-product .pd-back:hover{color:var(--ink)}
#page-product .pd-top{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:48px;align-items:start}
#page-product .pd-shot{position:relative;height:400px;border-radius:16px;overflow:hidden;border:1px solid var(--line)}
#page-product .pd-shot .ui{margin-left:0;transform:translateX(-50%) scale(1.45);transform-origin:top center;top:52px}
#page-product .pd-info{display:flex;flex-direction:column;gap:16px;padding-top:4px}
#page-product .pd-cat{align-self:flex-start;padding:6px 11px;border-radius:8px;background:var(--chip);font-size:12px;font-weight:500;color:var(--muted)}
#page-product h1{font-size:42px;font-weight:600;line-height:1.15;letter-spacing:-1.4px}
#page-product .pd-desc{font-size:16px;color:var(--muted)}
#page-product .pd-meta{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:13px;font-weight:500;color:#535966}
#page-product .pd-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
#page-product .pd-body{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:48px}
#page-product .pd-body h2,#page-product .pd-more h2{font-size:20px;font-weight:600;margin-bottom:12px}
#page-product .pd-body p{font-size:15px;color:#535966;line-height:1.6;white-space:pre-line}
#page-product .pd-body ul{list-style:none;display:flex;flex-direction:column;gap:10px}
#page-product .pd-body li{font-size:14px;color:#535966;padding-left:22px;position:relative}
#page-product .pd-body li::before{content:'';position:absolute;left:0;top:7px;width:10px;height:10px;border-radius:50%;background:var(--accent)}
#page-product .pd-more{display:flex;flex-direction:column}
@media (max-width:1100px){
  #page-product .pd-top,#page-product .pd-body{grid-template-columns:1fr;gap:28px}
}
@media (max-width:720px){
  #page-product .pd-shot{height:230px}
  #page-product .pd-shot .ui{transform:translateX(-50%) scale(.98);top:30px}
  #page-product h1{font-size:32px}
  #page-product .pd-desc{font-size:14px}
  #page-product .pd-actions .btn{flex:1}
}

/* ---- profile.css ---- */
#page-profile .dir{gap:24px;max-width:none}
#page-profile .pf-card{border:1px solid var(--line);border-radius:16px;padding:28px;display:flex;flex-direction:column;gap:24px}
#page-profile .pf-id{display:flex;align-items:center;gap:20px}
#page-profile .pf-avatar{width:72px;height:72px;border-radius:36px;background:#f2f5ff;display:grid;place-items:center;font-size:28px;font-weight:600;color:var(--link);flex:none}
#page-profile .pf-who{flex:1;min-width:0}
#page-profile .pf-who h2{font-size:22px;font-weight:600;overflow:hidden;text-overflow:ellipsis}
#page-profile .pf-who p{font-size:14px;color:var(--muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis}
#page-profile .pf-form{border-top:1px solid var(--line);padding-top:24px;display:flex;flex-direction:column;gap:20px}
#page-profile .pf-form[hidden]{display:none}
#page-profile .pf-actions{display:flex;gap:12px}
#page-profile .pf-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
#page-profile .pf-stat{background:var(--tint);border-radius:16px;padding:22px 24px;display:flex;flex-direction:column;gap:4px}
#page-profile .pf-stat b{font-size:28px;font-weight:600;letter-spacing:-.8px}
#page-profile .pf-stat span{font-size:13px;color:var(--muted)}
#page-profile .pf-links{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
#page-profile .pf-link{border:1px solid var(--line);border-radius:16px;padding:20px 24px;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;transition:box-shadow .2s}
#page-profile .pf-link:hover{box-shadow:0 10px 28px rgba(23,25,29,.07)}
#page-profile .pf-link b{display:block;font-size:16px;font-weight:600}
#page-profile .pf-link i{display:block;font-style:normal;font-size:13px;color:var(--muted);margin-top:4px}
#page-profile .pf-link em{font-style:normal;color:var(--link);font-weight:500}
@media (max-width:1100px){#page-profile .pf-links{grid-template-columns:1fr}}
@media (max-width:720px){
  #page-profile .pf-card{padding:20px}
  #page-profile .pf-id{flex-wrap:wrap;gap:16px}
  #page-profile .pf-who{flex:1 1 calc(100% - 100px)}
  #page-profile .pf-id .btn{width:100%}
  #page-profile .pf-stats{grid-template-columns:1fr;gap:12px}
  #page-profile .pf-stat{padding:18px 20px}
  #page-profile .pf-actions{flex-direction:column}
  #page-profile .pf-actions .btn{width:100%}
  #page-profile #pf-signout{width:100%}
}

/* ---- search.css ---- */
#page-search .intro.left{padding-bottom:32px}
#page-search .dir{padding-top:0}
#page-search .chip{display:inline-block}
#page-search .sr-none{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:48px 0 24px}
#page-search .sr-none[hidden]{display:none}
#page-search .sr-none-icon{width:64px;height:64px;border-radius:32px;background:#f2f5ff;display:grid;place-items:center}
#page-search .sr-none h2{font-size:24px;font-weight:600;max-width:640px;overflow-wrap:anywhere}
#page-search .sr-none p{font-size:14px;color:var(--muted);max-width:420px}
#page-search .sr-none .chips{justify-content:center}
#page-search .sr-none-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:8px}
@media (max-width:720px){#page-search .sr-none{padding-top:24px}#page-search .sr-none-actions{width:100%}#page-search .sr-none-actions .btn{flex:1}}

/* ---- settings.css ---- */
#page-settings .st-wrap{gap:20px}
#page-settings .st-sec{border:1px solid var(--line);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:20px}
#page-settings .st-danger{border-color:#f3cfcb}
#page-settings .st-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px}
#page-settings .st-toggle b{display:block;font-size:14px;font-weight:500}
#page-settings .st-toggle i{display:block;font-style:normal;font-size:12px;color:var(--muted);margin-top:2px}
#page-settings .sw{width:44px;height:26px;border-radius:13px;background:#d9dce4;position:relative;flex:none;transition:background .15s}
#page-settings .sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(23,25,29,.2);transition:transform .15s}
#page-settings .sw[aria-checked="true"]{background:#869eeb}
#page-settings .sw[aria-checked="true"]::after{transform:translateX(18px)}
@media (max-width:720px){
  #page-settings .st-sec{padding:20px}
  #page-settings .st-sec .btn{width:100%}
}

/* ---- submitted.css ---- */
#page-submitted .sb{max-width:520px;margin:0 auto;padding:64px 20px 96px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px}
#page-submitted .sb-icon{width:72px;height:72px;border-radius:36px;background:#f2f5ff;display:grid;place-items:center;margin-bottom:6px}
#page-submitted h1{font-size:36px;font-weight:600;line-height:1.15;letter-spacing:-1.2px}
#page-submitted .lead{font-size:16px;color:var(--muted)}
#page-submitted .sb-card{width:100%;max-width:340px;margin-top:10px;text-align:left}
#page-submitted .sb-card:empty{display:none}
#page-submitted .sb-card .card{cursor:default}
#page-submitted .sb-card .card:hover{transform:none;box-shadow:none}
#page-submitted .sb-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:14px}
@media (max-width:720px){#page-submitted .sb{padding-top:40px}#page-submitted h1{font-size:28px}#page-submitted .lead{font-size:14px}#page-submitted .sb-actions{width:100%;flex-direction:column}}

