/* Gatecraft standalone: page shells (public site, admin, sign-in) and the colour layer on top of app.css.
   Scoped like app.css, so it can sit next to it without clashing. */
html,body{margin:0;padding:0}
body.gc-body{background:#f6f6f5;min-height:100vh;-webkit-font-smoothing:antialiased}
.gatecraft:not(#gatecraft-x){--gc-ink:#0f172a;--gc-indigo:#1f4b5e;--gc-violet:#1f4b5e;--gc-pink:#d40000;--gc-black:#0b0b0c;--gc-red:#d40000;--gc-brand-teal:#1f4b5e;--gc-amber:#f59e0b;--gc-teal:#1f4b5e;--gc-sky:#0ea5e9;
  --gc-glass:rgba(255,255,255,.78);--gc-shadow:0 1px 2px rgba(15,23,42,.04),0 8px 28px rgba(15,23,42,.06);--gc-shadow-lg:0 2px 6px rgba(15,23,42,.05),0 24px 60px rgba(15,23,42,.10);
  --radius:16px;--radius-sm:12px}
.gatecraft:not(#gatecraft-x).shape-rounded{--radius-btn:12px}
.gatecraft:not(#gatecraft-x) .gc-skip:focus{position:fixed;left:12px;top:12px;width:auto;height:auto;clip:auto;z-index:100;background:#fff;padding:10px 14px;border-radius:10px;box-shadow:var(--gc-shadow-lg)}
.gatecraft:not(#gatecraft-x) .gc-wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.gatecraft:not(#gatecraft-x) :focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 55%,#fff);outline-offset:2px}

/* ---------- Shared: cards, buttons, badges with more colour and depth ---------- */
.gatecraft:not(#gatecraft-x) .card{border-color:rgba(15,23,42,.07);box-shadow:var(--gc-shadow)}
.gatecraft:not(#gatecraft-x) .btn{transition:transform .12s ease,box-shadow .15s ease,background-color .15s ease,border-color .15s ease}
.gatecraft:not(#gatecraft-x) .btn:hover{transform:translateY(-1px)}
.gatecraft:not(#gatecraft-x) .btn:active{transform:none}
.gatecraft:not(#gatecraft-x) .btn-primary{background:linear-gradient(135deg,var(--brand),color-mix(in srgb,var(--brand) 70%,var(--gc-violet)));border-color:transparent;box-shadow:0 6px 18px color-mix(in srgb,var(--brand) 35%,transparent)}
.gatecraft:not(#gatecraft-x) .btn-save{background:linear-gradient(135deg,#16a34a,#15803d);border-color:transparent;color:#fff;box-shadow:0 6px 16px rgba(22,163,74,.28)}
.gatecraft:not(#gatecraft-x) .btn-cancel{background:#e2e8f0;border-color:#e2e8f0;color:#334155}
.gatecraft:not(#gatecraft-x) input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),.gatecraft:not(#gatecraft-x) select,.gatecraft:not(#gatecraft-x) textarea{transition:border-color .15s,box-shadow .15s}
.gatecraft:not(#gatecraft-x) input:not([type=checkbox]):not([type=radio]):focus,.gatecraft:not(#gatecraft-x) select:focus,.gatecraft:not(#gatecraft-x) textarea:focus{border-color:color-mix(in srgb,var(--brand) 60%,#fff);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 16%,transparent);outline:none}
.gatecraft:not(#gatecraft-x) .alert{border-radius:var(--radius-sm)}
.gatecraft:not(#gatecraft-x) .gc-avatar{width:34px;height:34px;border-radius:50%;display:inline-grid;place-items:center;overflow:hidden;flex:none;font-weight:700;font-size:14px;color:#fff;background:linear-gradient(135deg,var(--gc-indigo),var(--gc-pink))}
.gatecraft:not(#gatecraft-x) .gc-avatar img{width:100%;height:100%;object-fit:cover}

/* ---------- Public site ---------- */
body.gc-body-public{background:
  radial-gradient(900px 480px at 0% -8%,color-mix(in srgb,var(--gc-brand-wash,#1f4b5e) 10%,transparent) 0,transparent 60%),
  radial-gradient(700px 420px at 100% 0%,rgba(212,0,0,.05) 0,transparent 60%),#f6f6f5;background-attachment:fixed}
.gatecraft.gc-site:not(#gatecraft-x){background:transparent;min-height:100vh;display:flex;flex-direction:column}
.gatecraft.gc-site:not(#gatecraft-x) .gc-page{flex:1 0 auto;padding-bottom:48px}
.gatecraft:not(#gatecraft-x) .gc-header{position:sticky;top:0;z-index:40;background:var(--gc-glass);-webkit-backdrop-filter:saturate(170%) blur(14px);backdrop-filter:saturate(170%) blur(14px);border-bottom:1px solid rgba(15,23,42,.06)}
.gatecraft:not(#gatecraft-x) .gc-header-in{display:flex;align-items:center;gap:24px;min-height:68px}
.gatecraft:not(#gatecraft-x) .gc-header .brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px;color:var(--ink);letter-spacing:-.01em}
.gatecraft:not(#gatecraft-x) .gc-header .brand img{max-height:40px;width:auto}
.gatecraft:not(#gatecraft-x) .brand-mark{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;color:var(--on-brand);font-weight:800;font-size:15px;background:var(--brand)}
.gatecraft:not(#gatecraft-x) .gc-nav{display:flex;gap:4px;flex:1}
.gatecraft:not(#gatecraft-x) .gc-nav a{padding:8px 14px;border-radius:999px;font-weight:600;font-size:14.5px;color:var(--ink-2)}
.gatecraft:not(#gatecraft-x) .gc-nav a:hover{background:rgba(15,23,42,.05);text-decoration:none}
.gatecraft:not(#gatecraft-x) .gc-nav a.on{background:color-mix(in srgb,var(--brand) 12%,#fff);color:var(--brand-dark)}
.gatecraft:not(#gatecraft-x) .gc-header-act{display:flex;align-items:center;gap:10px}
.gatecraft:not(#gatecraft-x) .gc-hdr-brand{background:linear-gradient(120deg,var(--brand-dark),var(--brand));border-bottom:0}
.gatecraft:not(#gatecraft-x) .gc-hdr-dark{background:#0b0b0c;border-bottom:0}
.gatecraft:not(#gatecraft-x) .gc-hdr-brand .brand,.gatecraft:not(#gatecraft-x) .gc-hdr-dark .brand,.gatecraft:not(#gatecraft-x) .gc-hdr-brand .gc-nav a,.gatecraft:not(#gatecraft-x) .gc-hdr-dark .gc-nav a{color:#fff}
.gatecraft:not(#gatecraft-x) .gc-hdr-brand .gc-nav a.on,.gatecraft:not(#gatecraft-x) .gc-hdr-dark .gc-nav a.on,.gatecraft:not(#gatecraft-x) .gc-hdr-brand .gc-nav a:hover,.gatecraft:not(#gatecraft-x) .gc-hdr-dark .gc-nav a:hover{background:rgba(255,255,255,.16);color:#fff}
.gatecraft:not(#gatecraft-x) .gc-hdr-brand .brand-mark,.gatecraft:not(#gatecraft-x) .gc-hdr-dark .brand-mark{background:rgba(255,255,255,.18);box-shadow:none}
.gatecraft:not(#gatecraft-x) .gc-footer{margin-top:auto;background:#0b0b0c;color:rgba(255,255,255,.72)}
.gatecraft:not(#gatecraft-x) .gc-footer-in{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;padding-top:30px;padding-bottom:30px;font-size:14px}
.gatecraft:not(#gatecraft-x) .gc-footer-brand{display:flex;flex-direction:column;gap:4px}
.gatecraft:not(#gatecraft-x) .gc-footer strong{color:#fff;font-size:15px}
.gatecraft:not(#gatecraft-x) .gc-footer a{color:#fff}
.gatecraft:not(#gatecraft-x) .gc-footer nav{display:flex;gap:18px;flex-wrap:wrap}
.gatecraft:not(#gatecraft-x) .gc-footer-social{padding-top:0;padding-bottom:22px}
.gatecraft:not(#gatecraft-x) .gc-social{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.gatecraft:not(#gatecraft-x) .gc-social li{margin:0;padding:0}
.gatecraft:not(#gatecraft-x) .gc-social-a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:40px;height:40px;padding:0 11px;border:1px solid rgba(255,255,255,.24);border-radius:999px;color:#fff;text-decoration:none;font-size:13.5px;font-weight:600;transition:background .15s,color .15s,border-color .15s}
.gatecraft:not(#gatecraft-x) .gc-social-a:hover,.gatecraft:not(#gatecraft-x) .gc-social-a:focus-visible{background:#fff;color:#0b0b0c;border-color:#fff}
.gatecraft:not(#gatecraft-x) .gc-social-ic{width:19px;height:19px;flex:none;display:block}
.gatecraft:not(#gatecraft-x) .gc-social-label{padding:0 15px 0 12px}
@media (max-width:640px){.gatecraft:not(#gatecraft-x) .gc-social{gap:8px}.gatecraft:not(#gatecraft-x) .gc-social-a{height:44px;min-width:44px}}
@media (max-width:720px){
  .gatecraft:not(#gatecraft-x) .gc-wrap{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  /* One slim row: logo, menu, account. The menu scrolls sideways if it ever runs out of room. */
  .gatecraft:not(#gatecraft-x) .gc-header-in{gap:8px;min-height:58px;flex-wrap:nowrap}
  .gatecraft:not(#gatecraft-x) .gc-header .brand{flex:0 1 auto;min-width:0}
  .gatecraft:not(#gatecraft-x) .gc-header .brand img{max-height:34px;max-width:38vw;object-fit:contain}
  .gatecraft:not(#gatecraft-x) .gc-nav{flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none;gap:2px;-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent);padding-right:14px}
  .gatecraft:not(#gatecraft-x) .gc-nav::-webkit-scrollbar{display:none}
  .gatecraft:not(#gatecraft-x) .gc-nav a{padding:8px 10px;font-size:14px;white-space:nowrap;min-height:40px;display:inline-flex;align-items:center}
  .gatecraft:not(#gatecraft-x) .gc-header-act{margin-left:auto;gap:6px;flex:0 0 auto}
  .gatecraft:not(#gatecraft-x) .gc-header-act .gc-avatar{display:none}
  .gatecraft:not(#gatecraft-x) .gc-header-act .btn{min-height:40px;padding:8px 12px}
  .gatecraft:not(#gatecraft-x) .gc-header .brand span:not(.brand-mark):not(.brand-gc){display:none}
  .gatecraft:not(#gatecraft-x) .gc-footer-in{flex-direction:column;align-items:flex-start;padding-top:26px;padding-bottom:calc(30px + env(safe-area-inset-bottom))}
  .gatecraft:not(#gatecraft-x) .gc-footer-brand span{word-break:break-word}
  .gatecraft:not(#gatecraft-x) .gc-footer nav a{display:inline-flex;align-items:center;min-height:40px}
}
.gatecraft:not(#gatecraft-x) .gc-footer-in{padding-bottom:calc(30px + env(safe-area-inset-bottom))}

/* ---------- Sign-in pages ---------- */
.gatecraft:not(#gatecraft-x) .auth-wrap{min-height:calc(100vh - 200px);display:grid;place-items:center;padding:48px 16px}
.gatecraft:not(#gatecraft-x) .auth-card{width:100%;max-width:440px;background:#fff;border-radius:22px;padding:34px;box-shadow:var(--gc-shadow-lg);border:1px solid rgba(15,23,42,.06);display:flex;flex-direction:column;gap:18px;position:relative;overflow:hidden}
.gatecraft:not(#gatecraft-x) .auth-card::before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,var(--brand),var(--gc-violet),var(--gc-pink),var(--gc-amber))}
.gatecraft:not(#gatecraft-x) .auth-card h1{font-size:26px;letter-spacing:-.02em;margin:0}
.gatecraft:not(#gatecraft-x) .auth-card .stack{display:flex;flex-direction:column;gap:14px}
.gatecraft:not(#gatecraft-x) .divider-top{border-top:1px solid var(--line);padding-top:16px}
.gatecraft:not(#gatecraft-x) .qr-box{display:grid;place-items:center;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:16px}
.gatecraft:not(#gatecraft-x) .qr-box svg{width:200px;height:200px}
.gatecraft:not(#gatecraft-x) .otp{font-size:22px!important;letter-spacing:.3em;text-align:center;font-variant-numeric:tabular-nums}
.gatecraft:not(#gatecraft-x) .split{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px;align-items:start}
@media (max-width:860px){.gatecraft:not(#gatecraft-x) .split{grid-template-columns:minmax(0,1fr)}}
.gatecraft:not(#gatecraft-x) .form-actions{display:flex;justify-content:flex-end;gap:10px}
.gatecraft:not(#gatecraft-x) .back{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:14px}

/* ---------- Admin shell ---------- */
body.gc-body-admin{background:#f4f4f3}
.gatecraft.gatecraft-admin.gc-shell:not(#gatecraft-x){display:grid;grid-template-columns:264px minmax(0,1fr);min-height:100vh;margin:0;max-width:none;background:transparent}
.gatecraft.gc-shell:not(#gatecraft-x) > *+*{margin-top:0}
.gatecraft:not(#gatecraft-x) .gc-side{position:sticky;top:0;height:100vh;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding:18px 14px;color:rgba(255,255,255,.72);
  background:radial-gradient(380px 300px at 0% 100%,rgba(31,75,94,.55) 0,transparent 70%),#0b0b0c}
.gatecraft:not(#gatecraft-x) .gc-side-top{padding:4px 8px 14px}
.gatecraft:not(#gatecraft-x) .gc-side .brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:800;font-size:16px}
.gatecraft:not(#gatecraft-x) .gc-side .brand img{max-height:36px;width:auto}
.gatecraft:not(#gatecraft-x) .gc-side-nav{display:flex;flex-direction:column;gap:2px;flex:1}
.gatecraft:not(#gatecraft-x) .gc-side-group{font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:rgba(255,255,255,.42);padding:14px 12px 6px;opacity:.85}
.gatecraft:not(#gatecraft-x) .gc-side-link{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:11px;color:rgba(255,255,255,.84);font-weight:600;font-size:14px;transition:background .15s,color .15s}
.gatecraft:not(#gatecraft-x) .gc-side-link .icon{width:18px;height:18px;flex:none;opacity:.85}
.gatecraft:not(#gatecraft-x) .gc-side-link:hover{background:rgba(255,255,255,.08);color:#fff;text-decoration:none}
.gatecraft:not(#gatecraft-x) .gc-side-link.on{background:linear-gradient(90deg,rgba(255,255,255,.18),rgba(255,255,255,.06));color:#fff;box-shadow:inset 3px 0 0 var(--gc-pink)}
.gatecraft:not(#gatecraft-x) .gc-side-link.on .icon{opacity:1}
.gatecraft:not(#gatecraft-x) .gc-side-count{margin-left:auto;background:var(--gc-pink);color:#fff;border-radius:999px;font-size:11.5px;padding:1px 8px;font-weight:700}
.gatecraft:not(#gatecraft-x) .gc-side-site{margin-top:10px;border-top:1px solid rgba(255,255,255,.08);border-radius:0;padding-top:14px}
.gatecraft:not(#gatecraft-x) .gc-main{min-width:0;display:flex;flex-direction:column}
.gatecraft:not(#gatecraft-x) .gc-top{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:14px;padding:12px 28px;background:var(--gc-glass);-webkit-backdrop-filter:saturate(170%) blur(14px);backdrop-filter:saturate(170%) blur(14px);border-bottom:1px solid rgba(15,23,42,.06)}
.gatecraft:not(#gatecraft-x) .gc-search{flex:1 1 300px;max-width:520px;position:relative}
.gatecraft:not(#gatecraft-x) .gc-search .icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#94a3b8;pointer-events:none}
.gatecraft:not(#gatecraft-x) .gc-search input{width:100%;min-height:42px;border-radius:999px;padding-left:38px;background:#fff;border:1px solid #e2e8f0;font-size:14px}
.gatecraft:not(#gatecraft-x) .gc-top-right{margin-left:auto;display:flex;align-items:center;gap:12px}
.gatecraft:not(#gatecraft-x) .gc-user{display:flex;align-items:center;gap:10px;color:var(--ink);padding:4px 10px 4px 4px;border-radius:999px}
.gatecraft:not(#gatecraft-x) .gc-user:hover{background:rgba(15,23,42,.05);text-decoration:none}
.gatecraft:not(#gatecraft-x) .gc-user-text{display:flex;flex-direction:column;line-height:1.2}
.gatecraft:not(#gatecraft-x) .gc-user-text strong{font-size:13.5px}
.gatecraft:not(#gatecraft-x) .gc-user-text small{font-size:12px;color:var(--muted)}
.gatecraft:not(#gatecraft-x) .gc-menu-btn{display:none}
.gatecraft:not(#gatecraft-x) .gc-content{padding:26px 28px 56px;max-width:1440px;width:100%}
.gatecraft:not(#gatecraft-x) .gc-content > *+*{margin-top:20px}
.gatecraft:not(#gatecraft-x) .gc-content .page-head h1{font-size:28px;letter-spacing:-.02em}
@media (max-width:1000px){
  .gatecraft.gatecraft-admin.gc-shell:not(#gatecraft-x){grid-template-columns:minmax(0,1fr)}
  .gatecraft:not(#gatecraft-x) .gc-side{position:fixed;left:0;top:0;bottom:0;width:280px;z-index:60;transform:translateX(-105%);transition:transform .22s ease;box-shadow:0 0 60px rgba(0,0,0,.35)}
  .gatecraft:not(#gatecraft-x) .gc-side.open{transform:none}
  .gatecraft:not(#gatecraft-x) .gc-menu-btn{display:inline-flex}
  .gatecraft:not(#gatecraft-x) .gc-top{padding:10px 16px}
  .gatecraft:not(#gatecraft-x) .gc-content{padding:18px 16px 48px}
  .gatecraft:not(#gatecraft-x) .gc-user-text{display:none}
}
@media (max-width:560px){.gatecraft:not(#gatecraft-x) .gc-search{display:none}}

/* Colourful dashboard numbers: each tile gets its own accent. */
.gatecraft:not(#gatecraft-x) .kpi{position:relative;overflow:hidden;border:0;box-shadow:var(--gc-shadow);transition:transform .15s,box-shadow .15s}
.gatecraft:not(#gatecraft-x) a.kpi:hover{transform:translateY(-2px);box-shadow:var(--gc-shadow-lg)}
.gatecraft:not(#gatecraft-x) .kpi::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--kpi,var(--gc-indigo))}
.gatecraft:not(#gatecraft-x) .kpi::after{content:"";position:absolute;right:-30px;top:-30px;width:110px;height:110px;border-radius:50%;background:var(--kpi,var(--gc-indigo));opacity:.08}
.gatecraft:not(#gatecraft-x) .kpi .v{background:linear-gradient(135deg,var(--ink),color-mix(in srgb,var(--kpi,var(--gc-indigo)) 70%,var(--ink)));-webkit-background-clip:text;background-clip:text;color:transparent}
.gatecraft:not(#gatecraft-x) :nth-child(4n+1 of .kpi){--kpi:var(--gc-indigo)}
.gatecraft:not(#gatecraft-x) :nth-child(4n+2 of .kpi){--kpi:var(--gc-pink)}
.gatecraft:not(#gatecraft-x) :nth-child(4n+3 of .kpi){--kpi:var(--gc-teal)}
.gatecraft:not(#gatecraft-x) :nth-child(4n+4 of .kpi){--kpi:var(--gc-amber)}
.gatecraft:not(#gatecraft-x) .table thead th{background:#f8fafc;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:#64748b}
.gatecraft:not(#gatecraft-x) .table tbody tr{transition:background .12s}
.gatecraft:not(#gatecraft-x) .table tbody tr:hover{background:#fafbff}
.gatecraft:not(#gatecraft-x) .tabs .tab.on,.gatecraft:not(#gatecraft-x) .tabs .tab[aria-current]{color:var(--brand-dark)}

/* ---------- Rich text editor ---------- */
.gatecraft:not(#gatecraft-x) .gc-editor{position:relative;border:1px solid #cbd5e1;border-radius:14px;background:#fff}
.gatecraft:not(#gatecraft-x) .gc-editor:focus-within{border-color:color-mix(in srgb,var(--brand) 60%,#fff);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 14%,transparent)}
.gatecraft:not(#gatecraft-x) .gc-editor-bar{position:sticky;top:64px;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:2px;padding:6px;border-bottom:1px solid #e2e8f0;background:#f8fafc;border-radius:14px 14px 0 0}
.gatecraft:not(#gatecraft-x) .gc-ed-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:1px solid transparent;border-radius:9px;background:transparent;color:#334155;cursor:pointer;flex:0 0 auto}
.gatecraft:not(#gatecraft-x) .gc-ed-btn:hover{background:#fff;border-color:#e2e8f0;color:#0f172a}
.gatecraft:not(#gatecraft-x) .gc-ed-btn[aria-pressed=true]{background:color-mix(in srgb,var(--brand) 14%,#fff);color:var(--brand-dark);border-color:color-mix(in srgb,var(--brand) 25%,#fff)}
.gatecraft:not(#gatecraft-x) .gc-ed-btn:disabled{opacity:.35;cursor:default}
.gatecraft:not(#gatecraft-x) .gc-ed-sep{width:1px;height:22px;background:#e2e8f0;margin:0 4px;flex:0 0 auto}
.gatecraft:not(#gatecraft-x) .gc-ed-block{width:auto!important;min-height:34px!important;height:34px;padding:0 28px 0 10px!important;font-size:14px!important;border-radius:9px!important;background-color:#fff;flex:0 0 auto}
.gatecraft:not(#gatecraft-x) .gc-editor-area{padding:18px 22px;outline:none;line-height:1.7;overflow:auto;max-height:75vh;display:none;color:var(--ink)}
.gatecraft:not(#gatecraft-x) .gc-editor-area>:first-child{margin-top:0}
.gatecraft:not(#gatecraft-x) .gc-editor-area figure{position:relative;cursor:pointer}
.gatecraft:not(#gatecraft-x) .gc-editor-area .gc-ed-sel{outline:3px solid var(--brand);outline-offset:3px;border-radius:12px}
.gatecraft:not(#gatecraft-x) .gc-editor-area video{pointer-events:none}
.gatecraft:not(#gatecraft-x) .gc-editor-area figcaption{cursor:text}
.gatecraft:not(#gatecraft-x) .gc-editor-area table td,.gatecraft:not(#gatecraft-x) .gc-editor-area table th{min-width:60px}
.gatecraft:not(#gatecraft-x) .gc-editor.is-drop .gc-editor-area{background:color-mix(in srgb,var(--brand) 6%,#fff);outline:2px dashed color-mix(in srgb,var(--brand) 50%,#fff);outline-offset:-8px}
.gatecraft:not(#gatecraft-x) .gc-ed-up{display:flex;width:fit-content;align-items:center;gap:8px;padding:8px 12px;margin:4px 0;border-radius:10px;background:#f1f5f9;color:#475569;font-size:14px}
.gatecraft:not(#gatecraft-x) .gc-ed-up b{color:var(--brand-dark)}
.gatecraft:not(#gatecraft-x) .gc-editor-src{width:100%;border:0!important;border-radius:0 0 14px 14px!important;min-height:300px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important;font-size:13px!important;padding:16px!important;box-shadow:none!important}
.gatecraft:not(#gatecraft-x) .gc-editor-status{min-height:30px;padding:6px 14px;border-top:1px solid #f1f5f9;font-size:12.5px;color:#64748b;display:none}
.gatecraft:not(#gatecraft-x) .gc-editor-status.bad{color:#b91c1c;background:#fef2f2}
.gatecraft:not(#gatecraft-x) .gc-editor.is-ready .gc-editor-status{display:block}
.gatecraft:not(#gatecraft-x) .gc-editor.is-ready .gc-editor-area{display:block}
.gatecraft:not(#gatecraft-x) .gc-editor.is-ready .gc-editor-src{display:none}
.gatecraft:not(#gatecraft-x) .gc-editor.is-ready.is-source .gc-editor-area{display:none}
.gatecraft:not(#gatecraft-x) .gc-editor.is-ready.is-source .gc-editor-src{display:block}
.gatecraft:not(#gatecraft-x) .gc-editor:not(.is-ready) .gc-editor-bar{display:none}
.gatecraft:not(#gatecraft-x) .gc-editor.is-full{position:fixed;inset:12px;z-index:200;display:flex;flex-direction:column;box-shadow:0 30px 80px rgba(15,23,42,.35)}
.gatecraft:not(#gatecraft-x) .gc-editor.is-full .gc-editor-bar{position:static}
.gatecraft:not(#gatecraft-x) .gc-editor.is-full .gc-editor-area,.gatecraft:not(#gatecraft-x) .gc-editor.is-full .gc-editor-src{flex:1;max-height:none}
.gatecraft:not(#gatecraft-x) .gc-editor.is-full .gc-editor-area{padding:28px max(22px,calc((100% - 860px)/2))}
html.gc-ed-lock{overflow:hidden}
/* Pop-overs: links, colours, tables, videos, alt text */
.gatecraft:not(#gatecraft-x) .gc-ed-pop{position:absolute;z-index:30;width:min(340px,calc(100% - 16px));background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 18px 50px rgba(15,23,42,.2);padding:14px;display:flex;flex-direction:column;gap:10px}
.gatecraft:not(#gatecraft-x) .gc-ed-pop-t{font-size:13px;font-weight:700;color:#0f172a;display:flex;justify-content:space-between}
.gatecraft:not(#gatecraft-x) .gc-ed-form{display:flex;flex-direction:column;gap:10px}
.gatecraft:not(#gatecraft-x) .gc-ed-check{display:flex;align-items:center;gap:8px;font-size:14px}
.gatecraft:not(#gatecraft-x) .gc-ed-actions{display:flex;justify-content:flex-end;gap:8px}
.gatecraft:not(#gatecraft-x) .gc-ed-note{margin:0;font-size:12.5px;color:#64748b}
.gatecraft:not(#gatecraft-x) .gc-ed-wide{width:100%;justify-content:center;gap:8px}
.gatecraft:not(#gatecraft-x) .gc-ed-link{background:none;border:0;padding:4px 0;font:inherit;font-size:13px;color:var(--brand-dark);cursor:pointer;text-align:left;text-decoration:underline}
.gatecraft:not(#gatecraft-x) .gc-ed-swatches{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.gatecraft:not(#gatecraft-x) .gc-ed-sw{height:34px;border-radius:9px;border:2px solid #fff;box-shadow:0 0 0 1px #e2e8f0;cursor:pointer}
.gatecraft:not(#gatecraft-x) .gc-ed-sw:hover{box-shadow:0 0 0 2px #0f172a}
.gatecraft:not(#gatecraft-x) .sw-c-brand{background:var(--brand)}.gatecraft:not(#gatecraft-x) .sw-c-red{background:#dc2626}.gatecraft:not(#gatecraft-x) .sw-c-orange{background:#ea580c}.gatecraft:not(#gatecraft-x) .sw-c-amber{background:#d97706}.gatecraft:not(#gatecraft-x) .sw-c-green{background:#16a34a}
.gatecraft:not(#gatecraft-x) .sw-c-teal{background:#0d9488}.gatecraft:not(#gatecraft-x) .sw-c-blue{background:#2563eb}.gatecraft:not(#gatecraft-x) .sw-c-violet{background:#7c3aed}.gatecraft:not(#gatecraft-x) .sw-c-pink{background:#db2777}.gatecraft:not(#gatecraft-x) .sw-c-grey{background:#64748b}
.gatecraft:not(#gatecraft-x) .gc-ed-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}
.gatecraft:not(#gatecraft-x) .gc-ed-grid button{aspect-ratio:1;border:1px solid #cbd5e1;border-radius:4px;background:#fff;cursor:pointer;padding:0}
.gatecraft:not(#gatecraft-x) .gc-ed-grid button.on{background:color-mix(in srgb,var(--brand) 30%,#fff);border-color:var(--brand)}
/* Picture and video tools */
.gatecraft:not(#gatecraft-x) .gc-ed-mbar{position:absolute;z-index:25;display:flex;align-items:center;gap:2px;padding:4px;background:#0f172a;color:#fff;border-radius:12px;box-shadow:0 12px 30px rgba(15,23,42,.35);flex-wrap:wrap;max-width:calc(100% - 16px)}
.gatecraft:not(#gatecraft-x) .gc-ed-mbar button{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 9px;border:0;border-radius:8px;background:transparent;color:#e2e8f0;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.gatecraft:not(#gatecraft-x) .gc-ed-mbar button:hover{background:rgba(255,255,255,.12);color:#fff}
.gatecraft:not(#gatecraft-x) .gc-ed-mbar button[aria-pressed=true]{background:#fff;color:#0f172a}
.gatecraft:not(#gatecraft-x) .gc-ed-mlbl{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#94a3b8;padding:0 6px}
.gatecraft:not(#gatecraft-x) .gc-ed-msep{width:1px;height:20px;background:rgba(255,255,255,.18);margin:0 4px}
@media (max-width:760px){
  .gatecraft:not(#gatecraft-x) .gc-editor-bar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;top:64px}
  .gatecraft:not(#gatecraft-x) .gc-ed-btn{width:40px;height:40px}
  .gatecraft:not(#gatecraft-x) .gc-editor-area{padding:14px 14px;font-size:16px}
  .gatecraft:not(#gatecraft-x) .gc-editor.is-full{inset:0;border-radius:0}
}

/* ---------- Motion: gentle, and off for people who ask for less ---------- */
@media (prefers-reduced-motion:no-preference){
  .gatecraft:not(#gatecraft-x) .gc-content > *,.gatecraft:not(#gatecraft-x) .gc-page > *{animation:gc-rise .35s ease both}
  @keyframes gc-rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
}
@media (prefers-reduced-motion:reduce){.gatecraft:not(#gatecraft-x) *{transition:none!important;animation:none!important}}

/* ---------- Home hero: brand colour with light and depth ---------- */
.gatecraft:not(#gatecraft-x) .hero:not(.hero-image){position:relative;overflow:hidden;
  background:radial-gradient(600px 340px at 85% 10%,color-mix(in srgb,var(--gc-pink) 35%,transparent) 0,transparent 70%),
  radial-gradient(520px 320px at 10% 120%,color-mix(in srgb,var(--gc-brand-teal) 70%,transparent) 0,transparent 70%),
  linear-gradient(125deg,var(--brand-dark),var(--brand) 55%,color-mix(in srgb,var(--brand) 60%,var(--gc-violet)))}
.gatecraft:not(#gatecraft-x) .hero:not(.hero-image)::after{content:"";position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.14) 1px,transparent 1px);background-size:22px 22px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 60%);mask-image:linear-gradient(90deg,transparent,#000 60%)}
.gatecraft:not(#gatecraft-x) .hero h1{letter-spacing:-.03em}
.gatecraft:not(#gatecraft-x) .hero input[type=search]{box-shadow:0 10px 30px rgba(15,23,42,.18)}
.gatecraft:not(#gatecraft-x) .ev-card{transition:transform .18s ease,box-shadow .18s ease;box-shadow:var(--gc-shadow);border-color:rgba(15,23,42,.06)}
.gatecraft:not(#gatecraft-x) .ev-card:hover{transform:translateY(-4px);box-shadow:var(--gc-shadow-lg)}
@media (max-width:1000px){.gatecraft:not(#gatecraft-x) .gc-side{box-shadow:none}.gatecraft:not(#gatecraft-x) .gc-side.open{box-shadow:0 0 60px rgba(0,0,0,.35)}}
.gatecraft:not(#gatecraft-x) .ev-cover:not([data-bg]){background-image:radial-gradient(260px 180px at 85% 0%,rgba(255,255,255,.28) 0,transparent 70%),radial-gradient(240px 200px at 0% 100%,rgba(212,0,0,.30) 0,transparent 70%),linear-gradient(135deg,rgba(255,255,255,.08),rgba(15,23,42,.35))}
.pad{padding:16px 20px}

/* ---------- Screen width (Settings, Branding) ---------- */
.gatecraft.gc-width-narrow:not(#gatecraft-x) .gc-content{max-width:1240px;margin-left:auto;margin-right:auto}
.gatecraft.gc-width-wide:not(#gatecraft-x) .gc-content{max-width:1640px;margin-left:auto;margin-right:auto}
.gatecraft.gc-width-wide:not(#gatecraft-x) .gc-wrap,.gatecraft.gc-width-wide:not(#gatecraft-x) .wrap{max-width:1640px;padding-left:clamp(16px,3vw,40px);padding-right:clamp(16px,3vw,40px)}
.gatecraft.gc-width-full:not(#gatecraft-x) .gc-content{max-width:none}
.gatecraft.gc-width-full:not(#gatecraft-x) .gc-wrap,.gatecraft.gc-width-full:not(#gatecraft-x) .wrap{max-width:none;padding-left:clamp(16px,2.5vw,40px);padding-right:clamp(16px,2.5vw,40px)}
/* Settings, Email templates: how emails are sent */
.gatecraft:not(#gatecraft-x) .md .md-opts{display:grid;grid-template-columns:1fr;gap:10px}
@media (min-width:700px){.gatecraft:not(#gatecraft-x) .md .md-opts{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1400px){.gatecraft:not(#gatecraft-x) .md .md-opts{grid-template-columns:repeat(4,1fr)}}
.gatecraft:not(#gatecraft-x) .md .md-opt{display:flex;gap:10px;align-items:flex-start;padding:14px;border:1.5px solid var(--line);border-radius:12px;cursor:pointer;transition:border-color .15s,background .15s}
.gatecraft:not(#gatecraft-x) .md .md-opt:hover{border-color:color-mix(in srgb,var(--brand) 45%,var(--line))}
.gatecraft:not(#gatecraft-x) .md .md-opt:has(input:checked){border-color:var(--brand);background:color-mix(in srgb,var(--brand) 6%,transparent)}
.gatecraft:not(#gatecraft-x) .md .md-opt input{margin-top:3px;accent-color:var(--brand)}
.gatecraft:not(#gatecraft-x) .md .md-opt span{display:flex;flex-direction:column;gap:3px}
.gatecraft:not(#gatecraft-x) .md .md-opt small{color:var(--muted,#64748b);font-size:13px;line-height:1.4}
.gatecraft:not(#gatecraft-x) .md .md-sec{display:none;padding-top:4px}
.gatecraft:not(#gatecraft-x) .md:has(input[value=gmail]:checked) .md-gmail,.gatecraft:not(#gatecraft-x) .md:has(input[value=smtp]:checked) .md-smtp{display:grid}
.gatecraft:not(#gatecraft-x) .md .md-steps{background:var(--soft,#f8fafc);border-radius:12px;padding:14px 16px}
.gatecraft:not(#gatecraft-x) .md .md-steps ol{margin:8px 0 8px 20px;padding:0;display:grid;gap:4px}
@media (max-width:1024px),(pointer:coarse){.gatecraft:not(#gatecraft-x) .gc-search input{font-size:16px}}
.gatecraft:not(#gatecraft-x) .gc-editor-area .gc-ed-embed{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:12px;background:#0f172a;color:#e2e8f0;font-size:14px;word-break:break-all}
.gatecraft:not(#gatecraft-x) .gc-editor-area .gc-ed-embed::before{content:"";flex:0 0 auto;width:38px;height:38px;border-radius:50%;background:#ef4444 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 7v10l8-5z'/%3E%3C/svg%3E") center/20px no-repeat}
/* License */
.gatecraft:not(#gatecraft-x) .lic-bar{display:flex;align-items:center;gap:12px;padding:12px 16px;margin-bottom:18px;border-radius:14px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:14px}
.gatecraft:not(#gatecraft-x) .lic-bar span{flex:1}
.gatecraft:not(#gatecraft-x) .lic-bar .icon{flex:0 0 auto;width:18px;height:18px}
.gatecraft:not(#gatecraft-x) .lic-bar.lic-soon{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}
.gatecraft:not(#gatecraft-x) .lic-text{font-size:13px!important;line-height:1.5;resize:vertical}
.gatecraft:not(#gatecraft-x) .lic-form .field{flex:1;margin:0}
.gatecraft:not(#gatecraft-x) .lic-form input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em;text-transform:uppercase}
.gatecraft:not(#gatecraft-x) .lic-active{border-top:4px solid #16a34a}
.gatecraft:not(#gatecraft-x) .lic-none,.gatecraft:not(#gatecraft-x) .lic-invalid,.gatecraft:not(#gatecraft-x) .lic-expired{border-top:4px solid #f59e0b}
.gatecraft:not(#gatecraft-x) .mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
@media (max-width:600px){.gatecraft:not(#gatecraft-x) .lic-form{flex-direction:column;align-items:stretch}.gatecraft:not(#gatecraft-x) .lic-bar{flex-wrap:wrap}}
/* Backup and restore */
.gatecraft:not(#gatecraft-x) .bk-drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:34px 20px;border:2px dashed #cbd5e1;border-radius:16px;text-align:center;background:#f8fafc;transition:border-color .15s,background .15s}
.gatecraft:not(#gatecraft-x) .bk-drop .icon{width:28px;height:28px;color:var(--brand)}
.gatecraft:not(#gatecraft-x) .bk-drop.is-over{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 6%,#fff)}
.gatecraft:not(#gatecraft-x) .bk-drop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}
.gatecraft:not(#gatecraft-x) .bk-drop.is-busy input[type=file]{pointer-events:none}
.gatecraft:not(#gatecraft-x) .bk-progress{width:100%;max-width:420px;display:grid;gap:8px;margin-top:10px}
.gatecraft:not(#gatecraft-x) .bk-bar{height:8px;border-radius:99px;background:#e2e8f0;overflow:hidden}
.gatecraft:not(#gatecraft-x) .bk-bar i{display:block;height:100%;width:0;background:var(--brand);transition:width .2s}
.gatecraft:not(#gatecraft-x) #bk-status.bad{color:#b91c1c;font-weight:600}
.gatecraft:not(#gatecraft-x) .bk-summary{border:1px solid var(--line);border-radius:14px;padding:16px;display:grid;gap:10px}
.gatecraft:not(#gatecraft-x) .bk-summary h3{margin:0;font-size:18px}
.gatecraft:not(#gatecraft-x) .bk-item{display:grid;gap:4px;padding:12px 0;border-top:1px solid var(--line)}
.gatecraft:not(#gatecraft-x) .bk-item:first-of-type{border-top:0}
.gatecraft:not(#gatecraft-x) .bk-item-top{display:flex;justify-content:space-between;gap:8px}
.gatecraft:not(#gatecraft-x) .bk-actions{gap:6px;flex-wrap:wrap;margin-top:4px}
.gatecraft:not(#gatecraft-x) .bk-steps{margin:0;padding-left:20px;display:grid;gap:6px}
/* Privacy */
.gatecraft:not(#gatecraft-x) .pv-req{padding:10px 0;border-top:1px solid var(--line)}
.gatecraft:not(#gatecraft-x) .pv-find,.gatecraft:not(#gatecraft-x) .pv-confirm{align-items:flex-end;gap:12px;flex-wrap:wrap}
.gatecraft:not(#gatecraft-x) .pv-find .field,.gatecraft:not(#gatecraft-x) .pv-confirm .field{flex:1 1 260px;margin:0}
.gatecraft:not(#gatecraft-x) .pv-erase{border-top:4px solid #dc2626}
.gatecraft:not(#gatecraft-x) .narrow-page{max-width:760px}
/* Powered by Gatecraft in the site footer: its own row with room around it */
.gatecraft:not(#gatecraft-x) .gc-footer .gc-footer-pw{padding-top:20px;padding-bottom:26px;border-top:1px solid rgba(255,255,255,.08)}
.gatecraft:not(#gatecraft-x) .gc-footer .gc-powered,.gatecraft:not(#gatecraft-x) .gc-footer .gc-powered a{gap:9px;font-size:12.5px}
.gatecraft:not(#gatecraft-x) .gc-footer .gc-pw-mark{width:18px;height:18px}
@media (max-width:720px){.gatecraft:not(#gatecraft-x) .gc-footer .gc-footer-pw{padding-top:18px;padding-bottom:max(24px,env(safe-area-inset-bottom))}}

/* Admin menu: every area in its own colour (the hues are set in app.css) */
.gatecraft:not(#gatecraft-x) .gc-side .ver-side{margin-top:12px;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.22);color:#fff}
.gatecraft:not(#gatecraft-x) .gc-side .ver-side:hover{border-color:#ff5a5a}
.gatecraft:not(#gatecraft-x) .gc-side .ver-side .ver-k{color:rgba(255,255,255,.62)}
.gatecraft:not(#gatecraft-x) .gc-side-sec{display:flex;flex-direction:column;gap:2px}
.gatecraft:not(#gatecraft-x) .gc-side-group{text-transform:none;letter-spacing:0;font-size:12.5px;font-weight:600;color:rgba(255,255,255,.55);display:flex;align-items:center;gap:8px}
.gatecraft:not(#gatecraft-x) .gc-side-group::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--sec-side);flex:none}
.gatecraft:not(#gatecraft-x) .gc-side-link .icon{box-sizing:content-box;padding:5px;border-radius:8px;background:color-mix(in srgb,var(--sec-side) 20%,transparent);color:color-mix(in srgb,var(--sec-side) 60%,#fff);opacity:1}
.gatecraft:not(#gatecraft-x) .gc-side-link.on{background:linear-gradient(90deg,color-mix(in srgb,var(--sec-side) 34%,transparent),color-mix(in srgb,var(--sec-side) 8%,transparent));box-shadow:inset 3px 0 0 var(--sec-side)}
.gatecraft:not(#gatecraft-x) .gc-side-link.on .icon{background:var(--sec-side);color:#0b0b0c}
.gatecraft:not(#gatecraft-x) .gc-side-site .icon{background:rgba(255,255,255,.08);color:#fff}
.gatecraft:not(#gatecraft-x) .gc-top{box-shadow:inset 0 -3px 0 var(--sec)}
.gatecraft:not(#gatecraft-x) .table thead th{text-transform:none;letter-spacing:0;color:var(--sec-ink,#64748b);background:color-mix(in srgb,var(--sec-tint,#f1f5f9) 65%,#fff)}
.gatecraft:not(#gatecraft-x) .kpi::after{display:none}
.gatecraft:not(#gatecraft-x) .kpi::before{background:var(--kc,var(--kpi))}
.gatecraft:not(#gatecraft-x) .kpi .v{background:none;-webkit-background-clip:border-box;background-clip:border-box;color:color-mix(in srgb,var(--kc,#0b0b0c) 55%,#0b0b0c)}
@media (max-width:1140px){.gatecraft:not(#gatecraft-x) .gc-top .sec-chip{display:none}}
.gatecraft:not(#gatecraft-x) .gc-side .ver-side{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 10px;width:100%;box-sizing:border-box;padding:9px 10px 9px 14px;border-radius:14px;white-space:normal}
.gatecraft:not(#gatecraft-x) .gc-side .ver-side{grid-template-columns:minmax(0,1fr) auto}
.gatecraft:not(#gatecraft-x) .gc-side .ver-side .ver-k{grid-column:1;grid-row:1;font-size:11.5px}
.gatecraft:not(#gatecraft-x) .gc-side .ver-side .ver-ed{grid-column:2;grid-row:1}
.gatecraft:not(#gatecraft-x) .gc-side .ver-side .ver-v{grid-column:1 / -1;grid-row:2;font-size:18px;white-space:nowrap}
.gatecraft:not(#gatecraft-x) .gc-side-link{padding-top:6px;padding-bottom:6px}
.gatecraft:not(#gatecraft-x) .gc-side-fold > summary.gc-side-group{justify-content:flex-start}
.gatecraft:not(#gatecraft-x) .gc-side-fold > summary .gc-fold-arrow{margin-left:auto}
.gatecraft:not(#gatecraft-x) .gc-side .ver-side .ver-ed{white-space:nowrap}

/* Display mode switcher: one icon button, opening a small menu of Light, Dark and Auto. */
.gatecraft:not(#gatecraft-x) .theme-switch{position:relative;flex:0 0 auto}
.gatecraft:not(#gatecraft-x) .theme-btn{list-style:none;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);cursor:pointer}
.gatecraft:not(#gatecraft-x) .theme-btn::-webkit-details-marker{display:none}
.gatecraft:not(#gatecraft-x) .theme-btn:hover{border-color:color-mix(in srgb,var(--ink) 30%,var(--line))}
.gatecraft:not(#gatecraft-x) .theme-btn .theme-ic{display:flex}
.gatecraft:not(#gatecraft-x) .theme-btn .theme-ic[hidden]{display:none}
.gatecraft:not(#gatecraft-x) .gc-top-right .theme-btn{width:44px;height:44px}
.gatecraft:not(#gatecraft-x) .theme-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:60;min-width:220px;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 16px 40px rgba(15,23,42,.16);display:flex;flex-direction:column;gap:2px}
.gatecraft:not(#gatecraft-x) .theme-menu a{display:flex;align-items:center;gap:10px;padding:9px 10px;white-space:nowrap;border-radius:8px;color:var(--ink);font-size:14px;font-weight:600;text-decoration:none}
.gatecraft:not(#gatecraft-x) .theme-menu a:hover{background:var(--line-2);text-decoration:none}
.gatecraft:not(#gatecraft-x) .theme-menu a[aria-current=true]{background:color-mix(in srgb,var(--brand) 12%,var(--surface));color:var(--ink)}
.gatecraft:not(#gatecraft-x) .theme-menu a[aria-current=true]::after{content:"";margin-left:auto;flex:none;width:8px;height:8px;border-radius:50%;background:currentColor}
.gatecraft:not(#gatecraft-x) .gc-hdr-dark .theme-btn,.gatecraft:not(#gatecraft-x) .gc-hdr-brand .theme-btn{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.28);color:#fff}
.gatecraft:not(#gatecraft-x) .gc-on-dark{display:none}

/* Ticket QR code designer (Settings, Branding). */
.gatecraft:not(#gatecraft-x) .qr-pick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.gatecraft:not(#gatecraft-x) .qr-pick-2{grid-template-columns:repeat(2,minmax(0,140px))}
.gatecraft:not(#gatecraft-x) .qr-opt{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 6px 10px;border:1.5px solid var(--line);border-radius:12px;cursor:pointer;font-size:13px;font-weight:600;color:var(--ink-2)}
.gatecraft:not(#gatecraft-x) .qr-opt input{position:absolute;opacity:0;pointer-events:none}
.gatecraft:not(#gatecraft-x) .qr-opt:hover{border-color:color-mix(in srgb,var(--ink) 30%,var(--line))}
.gatecraft:not(#gatecraft-x) .qr-opt:has(input:checked){border-color:var(--ink);box-shadow:0 0 0 1px var(--ink);color:var(--ink)}
.gatecraft:not(#gatecraft-x) .qr-opt:has(input:focus-visible){outline:3px solid color-mix(in srgb,var(--brand) 45%,transparent);outline-offset:2px}
.gatecraft:not(#gatecraft-x) .qr-opt-ic{display:grid;grid-template-columns:repeat(2,12px);gap:3px}
.gatecraft:not(#gatecraft-x) .qr-opt-ic i{width:12px;height:12px;background:var(--ink)}
.gatecraft:not(#gatecraft-x) .qr-opt-ic i:nth-child(2){opacity:0}
.gatecraft:not(#gatecraft-x) .qr-ic-rounded i{border-radius:4px}
.gatecraft:not(#gatecraft-x) .qr-ic-dots i{border-radius:50%}
.gatecraft:not(#gatecraft-x) .qr-ic-smooth{gap:0}
.gatecraft:not(#gatecraft-x) .qr-ic-smooth i{width:13.5px;height:13.5px}
.gatecraft:not(#gatecraft-x) .qr-ic-smooth i:nth-child(1){border-radius:7px 7px 0 0}
.gatecraft:not(#gatecraft-x) .qr-ic-smooth i:nth-child(3){border-radius:0 0 0 7px}
.gatecraft:not(#gatecraft-x) .qr-ic-smooth i:nth-child(4){border-radius:0 7px 7px 0}
.gatecraft:not(#gatecraft-x) .qr-opt-eye{width:27px;height:27px;border:5px solid var(--ink);display:flex;align-items:center;justify-content:center}
.gatecraft:not(#gatecraft-x) .qr-opt-eye i{width:9px;height:9px;background:var(--ink)}
.gatecraft:not(#gatecraft-x) .qr-eye-rounded{border-radius:9px}
.gatecraft:not(#gatecraft-x) .qr-eye-rounded i{border-radius:3px}
.gatecraft:not(#gatecraft-x) .qr-colors{display:flex;flex-wrap:wrap;gap:16px}
.gatecraft:not(#gatecraft-x) .qr-colors .field{flex:0 0 auto}
.gatecraft:not(#gatecraft-x) .qr-colors input[type=color]{width:88px;height:44px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer}
.gatecraft:not(#gatecraft-x) .qr-preview{display:grid;place-items:center;padding:18px;background:#fff;border:1px solid var(--line);border-radius:14px}
.gatecraft:not(#gatecraft-x) .qr-preview svg{width:100%;max-width:240px;height:auto;display:block}
.gatecraft:not(#gatecraft-x) .qr-preview.is-bad{outline:3px solid var(--red);outline-offset:-3px}
.gatecraft:not(#gatecraft-x) .qr-preview-msg:empty{display:none}
.gatecraft:not(#gatecraft-x) .qr-preview-msg.is-bad{color:var(--red);font-weight:600}
@media (max-width:520px){.gatecraft:not(#gatecraft-x) .qr-pick{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){
  .gatecraft:not(#gatecraft-x) .gc-header .brand-gc-word{display:none}
  .gatecraft:not(#gatecraft-x) .gc-header-act .theme-btn{width:38px;height:38px}
  .gatecraft:not(#gatecraft-x) .gc-header .theme-menu{position:fixed;left:12px;right:12px;top:62px;min-width:0}
}

/* Event tabs: no stray vertical scrollbar, and the active underline sits on the divider line. */
.gatecraft:not(#gatecraft-x) .tabs-scroll{overflow-y:hidden;border-bottom:0;box-shadow:inset 0 -1px 0 var(--line)}
.gatecraft:not(#gatecraft-x) .tabs-scroll .tab{margin-bottom:0}
/* Cards with an icon: icon and text start at the top, so labels and numbers line up from card to card. */
.gatecraft:not(#gatecraft-x) .kpi-icon{align-items:flex-start}
.gatecraft:not(#gatecraft-x) .kpi-icon .grow{flex:1;min-width:0}
/* Cards coloured by what they mean (done is green, waiting is amber) instead of by position. */
.gatecraft-admin:not(#gatecraft-x) .kpi.kpi-info{--kt:#e3edf2;--kc:#1f4b5e;--kpi:#1f4b5e}
.gatecraft-admin:not(#gatecraft-x) .kpi.kpi-ok{--kt:#e1f2e8;--kc:#167347;--kpi:#167347}
.gatecraft-admin:not(#gatecraft-x) .kpi.kpi-wait{--kt:#fcefdc;--kc:#b86200;--kpi:#b86200}
/* Top bar: keep the search box usable on mid-width screens by showing the account name only when there is room. */
@media (min-width:641px){.gatecraft:not(#gatecraft-x) .gc-search{min-width:150px}}
@media (max-width:1320px){.gatecraft:not(#gatecraft-x) .gc-user-text{display:none}}
/* Phones: every header button stays on screen, including Sign out. New shows its icon only. */
@media (max-width:480px){
  .gatecraft:not(#gatecraft-x) .gc-top{gap:8px}
  .gatecraft:not(#gatecraft-x) .gc-top-right{gap:6px}
  .gatecraft:not(#gatecraft-x) .gc-top-right .qnew>summary>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media (max-width:380px){.gatecraft:not(#gatecraft-x) .gc-top-right .qf-open{display:none}}
