/* ==========================================================================
   Log in / sign up and the user panel (all themes; colours come from --sv-*
   defined in pages.css)
   ========================================================================== */

/* --- Panel header band ----------------------------------------------------- */
.pn-hero {
  position: relative; color: #fff; padding: 30px 0 96px;
  background:
    radial-gradient(ellipse 60% 140% at 90% 0%, rgba(201,162,74,.18), transparent 60%),
    radial-gradient(ellipse 50% 120% at 0% 100%, rgba(52,193,114,.12), transparent 60%),
    var(--sv-band);
}
body.theme-premium .pn-hero { background: var(--sv-band) url("../img/deepslate.svg") repeat; background-size: 64px 64px; }
.pn-hero-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pn-hello { display: flex; align-items: center; gap: 18px; min-width: 0; }
.pn-avatar {
  display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 16px;
  font: 800 26px var(--sv-head); color: var(--sv-gold-ink); background: var(--sv-gold);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.15), 0 10px 24px -10px rgba(0,0,0,.5);
}
.pn-avatar.big { width: 76px; height: 76px; font-size: 34px; border-radius: 20px; }
.pn-kicker { margin: 0 0 2px; font-size: 14px; color: var(--sv-band-muted); }
.pn-hero h1 { font: 800 clamp(26px, 3.4vw, 36px)/1.1 var(--sv-head); letter-spacing: -.02em; margin: 0; color: #fff; }
.pn-sub { margin: 6px 0 0; color: var(--sv-band-muted); font-size: 15px; max-width: 60ch; }
.pn-hero-side { display: flex; align-items: center; gap: 22px; }
.pn-totals { display: flex; margin: 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.pn-totals div { padding: 10px 18px; border-left: 1px solid rgba(255,255,255,.1); }
.pn-totals div:first-child { border-left: 0; }
.pn-totals dt { font-size: 12px; color: var(--sv-band-muted); }
.pn-totals dd { margin: 2px 0 0; font: 800 20px var(--sv-head); color: #fff; }

/* --- Shell: side navigation + content ------------------------------------- */
body:has(.pn-hero) .main { padding-top: 0; }
.pn-shell { position: relative; z-index: 2; margin-top: -64px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.pn-shell .pnav {
  position: sticky; top: 16px; padding: 10px; border-radius: 14px; background: var(--sv-card); border: 1px solid var(--sv-line);
  box-shadow: var(--sv-shadow);
}
.pn-shell .pnav h4 { font: 600 12px var(--sv-head); text-transform: none; letter-spacing: 0; color: var(--sv-muted); padding: 10px 10px 6px; margin: 0; }
.pn-shell .pnav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 9px; color: var(--sv-ink); font-size: 14.5px; box-shadow: none; background: none; }
.pn-shell .pnav a:hover { background: var(--sv-card-2); text-decoration: none; }
.pn-shell .pnav a.on { background: var(--sv-ok-soft); color: var(--sv-ok); font-weight: 600; box-shadow: inset 3px 0 0 var(--sv-ok); }
.pn-content { min-width: 0; }

/* Messages */
.pn-msg { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.pn-msg ul { margin: 6px 0 0; padding-left: 18px; }
.pn-msg.bad { background: var(--sv-bad-soft); border-color: color-mix(in srgb, var(--sv-bad) 30%, transparent); color: var(--sv-bad); }
.pn-msg.warn { background: color-mix(in srgb, var(--sv-gold) 14%, var(--sv-card)); border-color: color-mix(in srgb, var(--sv-gold) 40%, transparent); color: var(--sv-ink); }
.pn-errors { box-shadow: var(--sv-shadow); }

/* --- My servers ------------------------------------------------------------ */
.pn-srv { background: var(--sv-card); color: var(--sv-ink); border: 1px solid var(--sv-line); border-radius: 16px; box-shadow: var(--sv-shadow); margin-bottom: 18px; overflow: hidden; }
.pn-srv-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px 14px; }
.pn-srv-icon img, .pn-srv-icon svg { display: block; width: 44px; height: 44px; border-radius: 10px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--sv-line); }
.pn-srv-title { flex: 1; min-width: 0; }
.pn-srv-title h2 { margin: 0; font: 700 18px var(--sv-head); letter-spacing: -.01em; }
.pn-srv-title h2 a { color: var(--sv-ink); }
.pn-srv-title code { font-size: 13px; color: var(--sv-muted); background: none; border: 0; padding: 0; }
.pn-status { flex: none; font: 700 12.5px var(--sv-head); padding: 6px 11px; border-radius: 99px; }
.pn-status.st-active { color: var(--sv-ok); background: var(--sv-ok-soft); }
.pn-status.st-pending { color: #8a5a0e; background: color-mix(in srgb, var(--sv-gold) 20%, var(--sv-card)); }
body.theme-premium .pn-status.st-pending { color: var(--sv-gold); }
.pn-status.st-rejected, .pn-status.st-disabled { color: var(--sv-bad); background: var(--sv-bad-soft); }
.pn-srv > .pn-msg { margin: 0 20px 14px; }
.pn-srv-body { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: center; padding: 0 20px 18px; }
.pn-srv-banner .banner { border-radius: 8px; max-width: 360px; }
.pn-srv-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--sv-line-2); border-radius: 12px; background: var(--sv-card-2); }
.pn-srv-stats div { padding: 12px 14px; border-left: 1px solid var(--sv-line-2); min-width: 0; }
.pn-srv-stats div:first-child { border-left: 0; }
.pn-srv-stats dt { font-size: 12px; color: var(--sv-muted); }
.pn-srv-stats dd { margin: 3px 0 0; font: 800 19px var(--sv-head); letter-spacing: -.02em; white-space: nowrap; }
.pn-srv-stats dd small { font: 500 12px var(--sv-head); color: var(--sv-muted); margin-left: 4px; letter-spacing: 0; }
.pn-off { color: var(--sv-bad); font-size: 15px; }
.pn-srv-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--sv-line-2); background: var(--sv-card-2); }
.pn-srv-foot form { display: inline; }
.pn-checked { margin-left: auto; font-size: 13px; color: var(--sv-muted); }
.pn-del { background: none; border: 0; color: var(--sv-muted); font: 500 13px var(--sv-head); cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.pn-del:hover { color: var(--sv-bad); background: var(--sv-bad-soft); }
.pn-foot-note { font-size: 13px; color: var(--sv-muted); text-align: center; }

.pn-empty { text-align: center; background: var(--sv-card); color: var(--sv-ink); border: 1px solid var(--sv-line); border-radius: 18px; box-shadow: var(--sv-shadow); padding: 44px 30px 34px; }
.pn-empty-art svg { width: 72px; height: 72px; border-radius: 12px; }
.pn-empty h2 { font: 800 24px var(--sv-head); margin: 16px 0 8px; }
.pn-empty > p { color: var(--sv-muted); max-width: 52ch; margin: 0 auto 20px; }
.pn-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; margin: 30px 0 0; text-align: left; }
.pn-steps li { counter-increment: s; background: var(--sv-card-2); border-radius: 12px; padding: 14px 14px 14px 50px; position: relative; }
.pn-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 800 13px var(--sv-head); background: var(--sv-ok-soft); color: var(--sv-ok); }
.pn-steps b { display: block; font-size: 14px; }
.pn-steps span { font-size: 13px; color: var(--sv-muted); }

/* --- Server form ------------------------------------------------------------ */
.pn-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.pn-sec { background: var(--sv-card); color: var(--sv-ink); border: 1px solid var(--sv-line); border-radius: 16px; box-shadow: var(--sv-shadow); margin-bottom: 18px; overflow: hidden; }
.pn-sec > header { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px 14px; border-bottom: 1px solid var(--sv-line-2); }
.pn-sec > header h2 { font: 700 17px var(--sv-head); margin: 0 0 2px; letter-spacing: -.01em; color: var(--sv-ink); }
.pn-sec > header p { margin: 0; font-size: 13.5px; color: var(--sv-muted); }
.pn-num { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 800 14px var(--sv-head); background: var(--sv-ok-soft); color: var(--sv-ok); }
.pn-sec-body { padding: 20px 22px 22px; }
.pn-sec .fld > span { color: var(--sv-ink); font-weight: 600; }
.pn-sec .fld em { font-style: normal; font-weight: 400; color: var(--sv-muted); margin-left: 4px; font-size: 12px; }
.pn-sec input:not([type=checkbox]):not([type=radio]):not([type=file]), .pn-sec select, .pn-sec textarea { border-radius: 10px; padding: 11px 13px; font-size: 15px; }
.pn-sec textarea { min-height: 0; }

.pn-addr { display: flex; align-items: center; border: 1px solid var(--sv-line); border-radius: 10px; background: var(--sv-card); overflow: hidden; }
.pn-addr:focus-within { border-color: var(--sv-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sv-ok) 15%, transparent); }
.pn-addr input { border: 0 !important; box-shadow: none !important; outline: none !important; background: transparent !important; border-radius: 0 !important; }
.pn-addr input[name=host] { flex: 1; min-width: 0; }
.pn-addr input[name=port] { width: 86px; flex: none; text-align: center; border-left: 1px solid var(--sv-line-2) !important; }
.pn-addr span { color: var(--sv-muted); font-weight: 700; padding: 0 2px; }

.pn-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px; border: 2px dashed var(--sv-line); border-radius: 14px; background: var(--sv-card-2); cursor: pointer; transition: border-color .15s, background .15s; }
.pn-drop:hover, .pn-drop.over { border-color: var(--sv-ok); background: color-mix(in srgb, var(--sv-ok) 6%, var(--sv-card-2)); }
.pn-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pn-drop-preview { width: 100%; max-width: 468px; }
.pn-drop-preview .banner { border-radius: 8px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); }
.pn-drop-text { font-size: 14px; color: var(--sv-muted); }
.pn-drop-text b { color: var(--sv-ok); }

.pn-tags { gap: 8px; }
.pn-tags span { padding: 8px 14px; border-radius: 99px; font-size: 14px; }
.pn-tags input:checked + span { background: var(--sv-ok); border-color: var(--sv-ok); color: #fff; }
.pn-count { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--sv-muted); }

.pn-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.pn-switch input { position: absolute; opacity: 0; }
.pn-switch span { width: 44px; height: 26px; border-radius: 99px; background: var(--sv-line); position: relative; transition: background .15s; flex: none; }
.pn-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.pn-switch input:checked + span { background: var(--sv-ok); }
.pn-switch input:checked + span::after { transform: translateX(18px); }
.pn-switch input:focus-visible + span { outline: 2px solid var(--sv-ok); outline-offset: 2px; }
.pn-vtf { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--sv-line); }

/* Preview + checklist */
.pn-side { position: sticky; top: 16px; }
.pn-preview { background: var(--sv-card); color: var(--sv-ink); border: 1px solid var(--sv-line); border-radius: 16px; box-shadow: var(--sv-shadow); padding: 18px; }
.pn-preview h3 { font: 700 13px var(--sv-head); color: var(--sv-muted); margin: 0 0 10px; }
.pn-pv-row { display: flex; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--sv-line); background: var(--sv-card-2); }
.pn-pv-rank { font: 800 15px var(--sv-head); color: var(--sv-muted); padding-top: 1px; }
.pn-pv-main { flex: 1; min-width: 0; }
.pn-pv-main b { display: block; font: 700 15px var(--sv-head); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-pv-banner .banner { border-radius: 5px 5px 0 0; }
.pn-pv-main code { display: block; background: var(--sv-band); color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 0 0 5px 5px; border: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-check { list-style: none; margin: 16px 0; padding: 0; }
.pn-check li { position: relative; padding: 6px 0 6px 28px; font-size: 14px; color: var(--sv-muted); }
.pn-check li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--sv-line); box-sizing: border-box; }
.pn-check li.ok { color: var(--sv-ink); }
.pn-check li.ok::before { border: 0; background: var(--sv-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.pn-check em { font-style: normal; font-size: 11.5px; color: var(--sv-muted); margin-left: 4px; }
.btn.pn-save { width: 100%; justify-content: center; }
.pn-cancel { display: block; text-align: center; margin-top: 10px; font-size: 14px; color: var(--sv-muted); }
.pn-note { margin: 12px 0 0; font-size: 12.5px; color: var(--sv-muted); text-align: center; }

/* --- Account -------------------------------------------------------------- */
.pn-profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--sv-card); color: var(--sv-ink); border: 1px solid var(--sv-line); border-radius: 16px; box-shadow: var(--sv-shadow); padding: 20px 22px; margin-bottom: 18px; }
.pn-profile-main { flex: 1; min-width: 180px; }
.pn-profile-main h2 { margin: 0; font: 800 22px var(--sv-head); letter-spacing: -.02em; }
.pn-profile-main p { margin: 2px 0 0; color: var(--sv-muted); }
.pn-profile-facts { display: flex; margin: 0; border: 1px solid var(--sv-line-2); border-radius: 12px; background: var(--sv-card-2); }
.pn-profile-facts div { padding: 10px 16px; border-left: 1px solid var(--sv-line-2); }
.pn-profile-facts div:first-child { border-left: 0; }
.pn-profile-facts dt { font-size: 12px; color: var(--sv-muted); }
.pn-profile-facts dd { margin: 2px 0 0; font: 700 15px var(--sv-head); }
.pn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.pn-two .pn-sec > header { padding: 18px 22px 14px; }

.pn-pass { display: flex; border: 1px solid var(--sv-line); border-radius: 10px; overflow: hidden; background: var(--sv-card); }
.pn-pass:focus-within { border-color: var(--sv-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sv-ok) 15%, transparent); }
.pn-pass input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; outline: none !important; background: transparent !important; }
.pn-pass button { border: 0; background: none; color: var(--sv-muted); font: 600 13px var(--sv-head); padding: 0 14px; cursor: pointer; }
.pn-pass button:hover { color: var(--sv-ink); }
.pn-strength { display: block; height: 4px; border-radius: 2px; background: var(--sv-line-2); margin-top: 8px; overflow: hidden; }
.pn-strength i { display: block; height: 100%; width: 0; border-radius: 2px; transition: width .2s, background .2s; }
.pn-strength[data-level="1"] i { width: 25%; background: var(--sv-bad); }
.pn-strength[data-level="2"] i { width: 50%; background: #e0a32e; }
.pn-strength[data-level="3"] i { width: 75%; background: #7cc251; }
.pn-strength[data-level="4"] i { width: 100%; background: var(--sv-ok); }

/* --- Log in / sign up ------------------------------------------------------- */
body.page-auth .main { display: flex; align-items: center; background:
  radial-gradient(ellipse 50% 60% at 15% 20%, color-mix(in srgb, var(--sv-ok) 10%, transparent), transparent 70%),
  radial-gradient(ellipse 40% 50% at 90% 90%, color-mix(in srgb, var(--sv-gold) 12%, transparent), transparent 70%); max-width: none; }
.au-wrap { width: 100%; max-width: 1000px; margin: 20px auto; }
.au-card { display: grid; grid-template-columns: 0.95fr 1.05fr; background: var(--sv-card); border: 1px solid var(--sv-line); border-radius: 22px; box-shadow: 0 30px 70px -36px rgba(10,40,25,.45); overflow: hidden; }
.au-aside {
  position: relative; display: flex; flex-direction: column; gap: 22px; padding: 36px 34px; color: #fff;
  background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(201,162,74,.25), transparent 60%), var(--sv-band);
}
body.theme-premium .au-aside { background: var(--sv-band) url("../img/deepslate.svg") repeat; background-size: 64px 64px; }
.au-aside::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; image-rendering: pixelated;
  background:
    linear-gradient(90deg, #6aa84f 0 12.5%, #4f8a3a 12.5% 25%, #6aa84f 25% 37.5%, #5a9a45 37.5% 50%, #6aa84f 50% 62.5%, #4f8a3a 62.5% 75%, #6aa84f 75% 87.5%, #5a9a45 87.5%) top/64px 6px repeat-x,
    linear-gradient(90deg, #8a5a3b 0 25%, #6e4529 25% 37.5%, #8a5a3b 37.5% 75%, #7b4f33 75%) bottom/64px 10px repeat-x;
}
.au-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 800 19px var(--sv-head); }
.au-brand:hover { text-decoration: none; }
.au-brand svg { border-radius: 5px; }
.au-aside h2 { font: 800 28px/1.15 var(--sv-head); letter-spacing: -.02em; margin: 6px 0 0; color: #fff; max-width: 16ch; }
.au-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.au-points li { padding-left: 30px; position: relative; }
.au-points li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 5px; background: rgba(52,193,114,.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='%238ff0b2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.au-points b { display: block; font-size: 15px; }
.au-points span { font-size: 13.5px; color: var(--sv-band-muted); }
.au-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: auto 0 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.06); }
.au-stats div { padding: 10px 12px; border-left: 1px solid rgba(255,255,255,.1); }
.au-stats div:first-child { border-left: 0; }
.au-stats dt { font-size: 11.5px; color: var(--sv-band-muted); }
.au-stats dd { margin: 2px 0 0; font: 800 18px var(--sv-head); }

.au-form { padding: 40px 40px 34px; color: var(--sv-ink); }
.au-form h1 { font: 800 30px var(--sv-head); letter-spacing: -.025em; margin: 0 0 6px; }
.au-lead { margin: 0 0 24px; color: var(--sv-muted); }
.au-form .fld > span { font-weight: 600; color: var(--sv-ink); }
.au-form input:not([type=checkbox]):not([type=hidden]) { border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.au-pw { gap: 0 14px; }
.au-captcha .fld { margin-bottom: 18px; }
.au-captcha input[name=captcha] { max-width: 140px; text-align: center; }
.btn.au-submit { width: 100%; justify-content: center; margin-top: 4px; }
.au-switch { text-align: center; margin: 20px 0 0; font-size: 14px; color: var(--sv-muted); }
.au-switch a { font-weight: 600; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1020px) {
  .pn-shell { grid-template-columns: 1fr; }
  .pn-shell .pnav { position: static; display: flex; flex-wrap: wrap; gap: 2px; }
  .pn-shell .pnav h4 { display: none; }
  .pn-form { grid-template-columns: 1fr; }
  .pn-side { position: static; order: -1; }
  .pn-srv-body { grid-template-columns: 1fr; }
  .pn-two { grid-template-columns: 1fr; }
  .au-card { grid-template-columns: 1fr; }
  .au-aside { padding: 28px 26px 40px; }
  .au-aside .au-points { display: none; }
  .au-stats { margin: 0; }
}
@media (max-width: 760px) {
  .pn-hero { padding: 22px 0 84px; }
  .pn-hero-side { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; }
  .pn-totals { width: 100%; }
  .pn-totals div { flex: 1; padding: 8px 12px; }
  .pn-hero-side .btn { justify-content: center; }
  .pn-srv-stats { grid-template-columns: 1fr 1fr; }
  .pn-srv-stats div:nth-child(3) { border-left: 0; }
  .pn-srv-stats div:nth-child(n+3) { border-top: 1px solid var(--sv-line-2); }
  .pn-checked { width: 100%; margin: 4px 0 0; order: 5; }
  .pn-steps { grid-template-columns: 1fr; }
  .pn-sec > header, .pn-sec-body { padding-left: 16px; padding-right: 16px; }
  .pn-profile-facts { width: 100%; }
  .pn-profile-facts div { flex: 1; }
  .au-form { padding: 28px 22px 26px; }
  .au-pw { grid-template-columns: 1fr; }
}
.au-wrap { margin-bottom: 48px; }
.pn-sec input:disabled { background: var(--sv-card-2) !important; color: var(--sv-muted); cursor: not-allowed; }

/* --- Site brand (logo / uploaded logo) ------------------------------------ */
.brand .logo-mark, .au-brand .logo-mark, .foot .brand .logo-mark { width: auto; border-radius: 0; box-shadow: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.brand .logo-img, .au-brand .logo-img { display: block; width: auto; max-width: 280px; border-radius: 0; box-shadow: none; object-fit: contain; }
.foot .brand .logo-img { width: auto; max-width: 220px; border-radius: 0; box-shadow: none; }
.brand:has(.logo-img:only-child), .au-brand:has(.logo-img:only-child) { gap: 0; }
@media (max-width: 700px) {
  .top .brand .logo-img { max-height: 34px; max-width: 190px; }
  .top .brand .logo-mark { height: 30px; }
}
/* Admin: brand settings */
.brand-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.brand-slot { border: 1px solid var(--line, #e3e8e5); border-radius: 10px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.brand-slot > b { font-size: 14px; }
.brand-prev { display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 14px 16px; border-radius: 8px; background: #0e3b2c; color: #fff; font: 800 20px "Red Hat Display", system-ui, sans-serif; overflow: hidden; }
.brand-prev img { max-width: 100%; max-height: 56px; display: block; }
.brand-prev.sq img { width: 48px; height: 48px; max-height: none; border-radius: 10px; }
.brand-slot input[type=file] { max-width: 100%; }
.brand-slot .check { margin: 0; }
/* Admin: game mode intro editor */
.tag-edit { display: grid; gap: 6px; max-width: 560px; }
.tag-edit > div { display: flex; gap: 6px; max-width: 320px; }
.tag-edit textarea { min-height: 54px; font-size: 13px; line-height: 1.45; resize: vertical; }
