/* Canonical layout rules: spacing belongs to containers, never to a grid sibling. */
:root {--bg:var(--zs-page);--panel:var(--zs-panel);--line:var(--zs-line);--text:var(--zs-text);--muted:var(--zs-muted)}
.member-ui {--page:var(--zs-page);--panel:var(--zs-panel);--line:var(--zs-line);--muted:var(--zs-muted)}
body {background:var(--zs-page);color:var(--zs-text)}
.panel {border-color:var(--zs-line);border-radius:var(--zs-radius);background:var(--zs-panel)}
button,.button,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select {min-height:var(--zs-control-size)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline-color:var(--zs-focus)}
.member-ui button,.member-ui .button {white-space:normal;overflow-wrap:anywhere}
.member-ui .panel {padding:var(--zs-space-3)}
.member-ui h2,.member-ui h3,.member-ui p {overflow-wrap:anywhere}
.member-content > .panel + .panel {margin-top:var(--zs-space-3)}
.member-ui :is(.grid2,.grid3,.instance-grid,.rewards-grid,.profile-grid,.home-grid132,.home-lower132,.home-side,.achievement-grid,.discord-admin-grid13) {gap:var(--zs-space-3)}
:is(.grid2,.grid3,.instance-grid,.rewards-grid,.profile-grid,.home-grid132,.home-lower132,.home-side,.achievement-grid,.discord-admin-grid13) > .panel {margin:0}
.member-ui .settings-grid131 {gap:var(--zs-space-3)}
.settings-stack131 {gap:var(--zs-space-3)}
.member-ui .profile-grid {align-items:stretch}
.member-ui .profile-grid > .membership-card.card132 {height:100%;min-height:var(--card-height)}
.member-ui .profile-share {height:auto;min-height:0;justify-content:center;align-items:stretch;gap:var(--zs-space-2);padding:var(--zs-space-4);margin:0}
.profile-share > :is(h2,p,label,.actions,details) {margin:0}
.profile-share .profile-qr131 {margin-top:var(--zs-space-1)}
.profile-share .profile-qr131 summary {display:flex;align-items:center;min-height:var(--zs-control-size)}
.profile-share .text-link {align-self:flex-start}
.member-ui .home-grid132 {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr);align-items:stretch}
.home-grid132 .home-side {display:grid;grid-template-rows:auto auto;align-content:stretch}
.home-grid132 .home-side > .panel {display:flex;flex-direction:column;justify-content:center;padding:var(--zs-space-3);min-width:0}
.home-grid132 .home-side h2 {font-size:18px;margin:var(--zs-space-1) 0}
.home-grid132 .quick-register .button {margin-top:var(--zs-space-2)}
.home-grid132 .quick-register .text-link {margin-top:var(--zs-space-1)}
.home-grid132 .benefit-preview {margin-top:var(--zs-space-1);padding-top:var(--zs-space-2)}
.member-ui .home-lower132 {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;margin-top:var(--zs-space-3)}
.home-lower132 > .panel {display:flex;flex-direction:column;min-width:0}
.home-lower132 .panel-head {margin-bottom:var(--zs-space-2)}
.home-lower132 .notice-row {padding:var(--zs-space-2) 0}
.member-ui .instance-grid {align-items:stretch}
.member-ui .instance-card {display:grid;grid-template-rows:auto auto auto auto auto;gap:var(--zs-space-2);padding:var(--zs-space-3);min-width:0}
.instance-card > :is(p,.actions) {margin:0}
.instance-image {aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#14181e;border-radius:8px;padding:var(--zs-space-2);box-sizing:border-box}
.instance-image > img {display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.instance-image > .image-empty {height:auto;background:none}
.instance-title {font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.instance-spec {font-size:11px;line-height:1.6;color:var(--zs-muted);overflow-wrap:anywhere}
.instance-edition {font-size:11px;line-height:1.6;color:var(--zs-warning)}
.instance-card .actions {align-self:end;align-items:end;padding-top:var(--zs-space-1)}
.member-ui .rewards-grid {align-items:stretch}
.member-ui .coupon-card {display:grid;grid-template-rows:auto auto auto 1fr auto auto;gap:var(--zs-space-2)}
.coupon-card > :is(h2,p,.code-box) {margin:0}
.coupon-card > h2 {font-size:18px;line-height:1.5}
.coupon-card > .code-box {width:100%;box-sizing:border-box;line-height:1.5;padding:var(--zs-space-2)}
.coupon-card > button {justify-self:start;align-self:start}
.coupon-terms {line-height:1.8}
.coupon-meta {font-size:11px;line-height:1.6}
.coupon-card > a {justify-self:start;align-self:end}
.member-ui .benefit-card {display:grid;grid-template-rows:auto auto auto auto 1fr auto auto;gap:var(--zs-space-2);padding:var(--zs-space-3)}
.benefit-card > :is(h2,p,details,button,.benefit-amount) {margin:0}
.benefit-card > button {align-self:end}
.benefit-card .benefit-amount {padding:var(--zs-space-1) 0}
.registration-help13 {margin-top:var(--zs-space-3);padding:var(--zs-space-3)}
.member-ui .member-content > .actions + .panel {margin-top:var(--zs-space-3)}
.emergency-note133 {border-left:3px solid var(--zs-warning);padding:var(--zs-space-2);background:var(--zs-panel-raised);margin:0 0 var(--zs-space-3);line-height:1.7}
.emergency-note133 p {margin:8px 0 0}
@supports(grid-template-rows:subgrid) {
  @media(min-width:768px) {
    .member-ui .instance-card {grid-template-rows:subgrid;grid-row:span 5}
    .member-ui .coupon-card {grid-template-rows:subgrid;grid-row:span 6}
    .member-ui .benefit-card {grid-template-rows:subgrid;grid-row:span 7}
  }
}
@media(max-width:1023px) {
  .member-ui .home-grid132 {grid-template-columns:1fr}
  .home-grid132 .home-side {grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
  .member-ui .profile-grid > .membership-card.card132 {height:var(--card-height);min-height:0}
}
@media(max-width:767px) {
  .member-ui .home-grid132,.member-ui .home-lower132,.home-grid132 .home-side,.member-ui .rewards-grid {grid-template-columns:1fr}
  .member-ui .home-lower132 > .panel {height:auto}
  .member-ui .profile-share {padding:var(--zs-space-3)}
  .member-ui .instance-card,.member-ui .coupon-card,.member-ui .benefit-card {display:flex;flex-direction:column;gap:var(--zs-space-2)}
  .instance-card .actions {align-self:stretch}
  .instance-edition:empty {display:none}
  .coupon-card > button,.coupon-card > a {align-self:flex-start}
}
/* Shared controls and form rhythm, also used by the administration screens. */
.actions,.panel-head,.form-grid,.grid2,.grid3 {gap:var(--zs-space-2)}
.form-grid,.grid2,.grid3 {column-gap:var(--zs-space-3);row-gap:var(--zs-space-3)}
.field {gap:var(--zs-space-1)}
:is(.grid2,.grid3,.discord-admin-grid13) {align-items:stretch}
:is(.grid2,.grid3,.discord-admin-grid13) > .panel {height:auto;min-width:0}
.instance-grid > .empty,.rewards-grid > .empty {grid-column:1/-1}
.member-ui .member-content > .panel.preview,
.member-ui .registration-help13,
.member-ui .request-intake {margin-top:var(--zs-space-3)}
@media(min-width:1024px) {
  .member-ui .home-grid132 > .membership-card.card132 {height:100%;min-height:var(--card-height)}
}
/* Home/profile collection tiles use semantic two-line slots as well. */
.product-strip > .mini-product {display:grid;grid-template-rows:auto 1fr;align-content:start}
.product-strip .mini-product-image {aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;padding:var(--zs-space-2);background:#14181e;overflow:hidden}
.product-strip .mini-product-image > img {display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.product-strip .mini-product-image .image-empty {height:auto;background:none}
.product-strip .mini-product-copy {display:grid;grid-template-rows:auto auto auto;gap:var(--zs-space-1);padding:var(--zs-space-2)}
.product-strip .mini-product-copy > strong {font-size:13px;line-height:1.5;block-size:3em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.product-strip .mini-product-copy > small {margin:0;font-size:10px;line-height:1.6;block-size:3.2em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.product-strip .mini-product-copy .mini-product-edition {color:var(--zs-warning)}
@media(max-width:479px) {
  .product-strip .mini-product-copy > strong {font-size:11px}
  .product-strip .mini-product-copy > small {font-size:9px}
}
