.brand .brand-mark { background: transparent; overflow: hidden; }
.brand .brand-mark img { width: 100%; height: 100%; display: block; }
.app-footer { box-sizing:border-box; max-width:1280px; margin:32px auto 0; padding:20px 0 max(24px,env(safe-area-inset-bottom)); width:calc(100% - 72px); border-top:1px solid #ddd9e5; font-family:Inter,"Apple SD Gothic Neo",system-ui,sans-serif; color:#564c68; }
.app-footer-tools { display:flex; flex-wrap:wrap; align-items:center; gap:7px 15px; }
.app-footer-tools button,.app-footer-tools a,.brand-dialog button,.brand-dialog a { touch-action:manipulation; }
.app-footer-tools button,.app-footer-tools a { display:inline-flex; align-items:center; gap:7px; color:#514660; font:600 14px/1.45 Inter,"Apple SD Gothic Neo",system-ui,sans-serif; min-height:44px; border:0; background:transparent; border-radius:5px; padding:3px 0; cursor:pointer; text-decoration:none; }
.app-footer-tools button:hover,.app-footer-tools a:hover { color:#503596; text-decoration:underline; text-underline-offset:4px; }
.app-footer button:focus-visible,.app-footer a:focus-visible,.brand-dialog button:focus-visible,.brand-dialog input:focus-visible { outline:3px solid #967ce0; outline-offset:3px; }
.app-tool-icon { width:17px; height:17px; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; fill:none; flex-shrink:0; }
.app-footer [data-brand-status]:empty { display:none; }
.app-footer [data-brand-status] { margin:.5rem 0 0; color:#354d42; font-size:14px; }
.brand-dialog { box-sizing:border-box; width:min(460px,calc(100% - 32px)); padding:24px; border:1px solid #dcd5e6; border-radius:17px; color:#241e37; background:#fff; box-shadow:0 24px 80px #21173533; font:16px/1.6 Inter,"Apple SD Gothic Neo",system-ui,sans-serif; }
.brand-dialog::backdrop { background:#241d38a3; }
.brand-dialog h2 { margin:0 0 14px; font-size:22px; letter-spacing:-.035em; line-height:1.35; }
.brand-dialog p,.brand-dialog ol { margin:0 0 18px; }
.brand-dialog ol { padding-left:1.45rem; }
.brand-dialog li+li { margin-top:.4rem; }
.brand-dialog input { min-height:44px; width:100%; box-sizing:border-box; border:1px solid #c9bfd5; border-radius:7px; margin:6px 0 16px; padding:7px 11px; font:inherit; }
.brand-dialog button { cursor:pointer; background:#514075; color:#fff; min-height:42px; border:0; border-radius:9px; padding:8px 16px; font-family:inherit; font-weight:600; font-size:15px; line-height:1.4; }
@media (max-width:780px) { .app-footer { width:calc(100% - 32px); margin-top:24px; } }

.brand-share-top { display:inline-flex; align-items:center; justify-content:center; gap:7px; flex-shrink:0; margin-inline-start:auto; min-height:44px; padding:5px 8px; border:0; border-radius:8px; background:transparent; color:#e7dffa; font-size:14px; line-height:1.3; font-weight:600; cursor:pointer; }
.brand-share-top:hover { background:#403653; color:#fff; }
.brand-share-top:focus-visible { outline:3px solid #b6a0ed; outline-offset:1px; }
@media(max-width:780px) {
  .brand-share-top { order:1; }
  .bar-inner nav { order:2; }
  .topbar .bar-inner { display:grid; grid-template-columns:1fr auto; gap:0; padding-top:5px; }
  .topbar .bar-inner nav { grid-column:1/-1; }
}
