/* Member presentation polish only. No action semantics changed. */
.dashboard-ads .operating-resource-note{margin:0 0 10px;color:var(--muted);font-size:13px;line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
.home-hero :is(h1,p),.auth-form :is(p,label),.step-card p,
.public-cta p,.support-hero p,.security-withdrawal li{
 word-break:keep-all;overflow-wrap:anywhere
}
.site-card .site-account{overflow-wrap:anywhere;min-width:0}
.site-card .site-link .btn{white-space:nowrap}
.log-history-note{margin:12px 0;color:var(--muted);font-size:13px;line-height:1.6;word-break:keep-all}
.security-withdrawal ul{padding-left:20px;margin:12px 0;font-size:14px;line-height:1.8}
.security-withdrawal li+li{margin-top:6px}
.access-pass-page .pass-pending-panel{margin-top:18px}
.payment-history-note{display:block;margin-top:8px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}
.payment-history-cancel{margin-top:10px}
.payment-history-table time{font-variant-numeric:tabular-nums}
.payment-history-table .badge{white-space:nowrap}
.resource-basis{margin-top:5px;font-size:13px;line-height:1.55;color:var(--muted);word-break:keep-all}
.resource-basis>summary{cursor:pointer;min-height:36px;display:flex;align-items:center;gap:6px}
.resource-basis>summary::before{content:'▸';font-size:12px}
.resource-basis[open]>summary::before{content:'▾'}
.resource-basis>summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:4px}
.resource-basis p{margin-top:5px}
.resource-observed{display:block;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.55;word-break:keep-all;overflow-wrap:anywhere}
.resource-observed time{display:block;white-space:nowrap;font-variant-numeric:tabular-nums}
.ads-refresh-note{margin-bottom:14px}
.ve-scope-hint{border-left:3px solid var(--amber);padding:10px 12px;background:var(--soft);border-radius:0 8px 8px 0;font-size:13px;line-height:1.7}
@media(max-width:900px){
 .auth-page{min-height:0}
 .auth-form-wrap{align-items:start;padding:28px 20px 36px}
 .auth-page+.public-footer{margin-top:12px}
}
@media(max-width:600px){
 [data-screen="ads"] .site-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
 [data-screen="ads"] .site-tab{grid-column:span 2;justify-content:center;min-height:44px;padding:8px 4px;white-space:nowrap;font-size:13px}
 [data-screen="ads"] .site-tab:nth-last-child(-n+2){grid-column:span 3}
 .home-hero p,.step-card p,.public-cta p{font-size:14px;line-height:1.75}
 .home-hero .hint{font-size:13px}
 .payment-history-wrap{overflow:visible}
 .payment-history-wrap .payment-history-table{display:block;min-width:0;width:100%}
 .payment-history-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
 .payment-history-table tbody{display:grid;gap:12px}
 .payment-history-table tr{display:grid;grid-template-columns:minmax(0,1fr);padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
 .payment-history-table td{display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px;align-items:start;padding:7px 0;border:0;min-width:0;font-size:13px;overflow-wrap:anywhere}
 .payment-history-table td::before{content:attr(data-label);color:var(--muted);font-weight:500;word-break:keep-all}
 .payment-history-table td>*{min-width:0}
 .payment-history-table .payment-history-status{align-items:start}
 .payment-history-table .payment-history-status .badge{justify-self:start}
 .payment-history-table .payment-history-cancel,.payment-history-table .payment-history-note{grid-column:2;margin:4px 0 0}
 .payment-history-table .payment-history-cancel .btn{min-height:44px}
 .payment-history-table .payment-history-empty{display:block;text-align:center;padding:10px 0}
 .payment-history-table .payment-history-empty td{display:block;text-align:center}
 .payment-history-table .payment-history-empty td::before{display:none}
 .access-pass-page .pass-pending-panel{margin-top:14px}
}
@media(max-width:430px){
 [data-screen="sites"] .site-grid{grid-template-columns:minmax(0,1fr)}
 [data-screen="sites"] .site-card{padding:18px}
 [data-screen="sites"] .site-card .site-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 [data-screen="sites"] .site-card .site-link{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 [data-screen="sites"] .site-card .site-link>:only-child{grid-column:1/-1}
 [data-screen="sites"] .site-card h3{font-size:15px}
}

/* Approved review: shared desktop center; long forms grow without clipping. */
html:has(.auth-page){scrollbar-gutter:stable;}
.auth-page{max-width:1120px;min-height:calc(100svh - 83px);grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;}
.auth-page .auth-story{justify-content:center;padding:50px 40px;}
.auth-page .auth-form-wrap{align-content:normal;align-items:center;padding:50px 40px;}
.auth-page .auth-form{width:100%;max-width:390px;margin:0 auto;}
.auth-page .auth-form h1{font-size:28px;line-height:1.35;margin:0 0 10px;}

/* Original ad cards retained; only internal and footer spacing is balanced. */
body[data-screen="ads"] .ad-card{padding:20px;}
body[data-screen="ads"] .ad-card .ad-facts{column-gap:20px;}
body[data-screen="ads"] .ad-card .ad-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;margin-top:10px;padding-top:8px;align-items:center;}
body[data-screen="ads"] .ad-card .ad-bottom>p{max-width:none;min-width:0;margin:0;line-height:1.65;}
body[data-screen="ads"] .ad-card .ad-bottom .operating-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:auto;}
body[data-screen="ads"] .ad-card .ad-bottom .operating-action{min-width:52px;min-height:44px;margin:0;box-sizing:border-box;}
@media(max-width:900px){
  .auth-page{min-height:0;grid-template-columns:minmax(0,1fr);}
  .auth-page .auth-story{display:none;}
  .auth-page .auth-form-wrap{align-items:start;padding:32px 24px 48px;}
}
@media(max-width:600px){
  .auth-page .auth-form-wrap{padding:28px 20px 40px;}
  .auth-page .auth-form h1{font-size:25px;}
  body[data-screen="ads"] .ad-card{padding:16px;}
  body[data-screen="ads"] .ad-card .ad-facts{column-gap:12px;}
  body[data-screen="ads"] .ad-card .ad-bottom{column-gap:12px;}
}
@media(max-width:370px){
  body:has(>.auth-page) .public-top{gap:4px;}
  body:has(>.auth-page) .public-top .actions .btn{padding-inline:8px;}
  body[data-screen="ads"] .ad-card .ad-bottom{column-gap:10px;}
  body[data-screen="ads"] .ad-card .ad-bottom>p{font-size:12px;}
  body[data-screen="ads"] .ad-card .ad-bottom .operating-action{min-width:44px;}
}
