:root {
    --bg: #06101d;
    --bg-deep: #030914;
    --surface: rgba(12, 28, 47, .78);
    --surface-solid: #0d1c2f;
    --surface-soft: #10233a;
    --line: rgba(148, 180, 211, .16);
    --line-strong: rgba(148, 180, 211, .28);
    --text: #f5f9ff;
    --muted: #91a5ba;
    --muted-2: #6f849a;
    --primary: #2ce58b;
    --primary-2: #10bd71;
    --blue: #3b8cff;
    --cyan: #28c7e9;
    --purple: #8b5cf6;
    --danger: #ff5d72;
    --warning: #f4ba3f;
    --success: #20d783;
    --shadow: 0 30px 90px rgba(0, 0, 0, .34);
    --shadow-soft: 0 18px 50px rgba(0, 0, 0, .2);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 8% 0%, rgba(44, 229, 139, .13), transparent 25%),
        radial-gradient(circle at 100% 10%, rgba(59, 140, 255, .16), transparent 30%),
        linear-gradient(180deg, #071423 0%, var(--bg-deep) 100%);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
svg { width: 1.1rem; height: 1.1rem; stroke-width: 2; }
input { min-width: 0; }

.public-body { min-height: 100vh; display: flex; flex-direction: column; }
.public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--line);
    background: rgba(4, 12, 23, .76);
    backdrop-filter: blur(22px);
}
.public-header-inner,
.public-footer-inner {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding-left: clamp(18px, 4vw, 72px);
    padding-right: clamp(18px, 4vw, 72px);
}
.public-header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand, .sidebar-brand-link { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #04130d;
    background: linear-gradient(135deg, #55f2a7, #15c879);
    box-shadow: 0 12px 28px rgba(30, 214, 128, .24);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-copy strong, .brand-copy small, .sidebar-brand-link strong, .sidebar-brand-link small { display: block; }
.brand-copy strong, .sidebar-brand-link strong { font-size: 1.1rem; letter-spacing: -.02em; }
.brand-copy small, .sidebar-brand-link small { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.public-nav { display: flex; align-items: center; gap: 10px; }
.nav-link { padding: 10px 12px; color: #c6d2df; font-weight: 700; transition: color .2s ease; }
.nav-link:hover { color: #fff; }

.public-main { width: 100%; flex: 1; }
.public-main > .flash { max-width: 1440px; margin: 18px auto 0; }
.public-footer { width: 100%; border-top: 1px solid var(--line); background: rgba(3, 9, 20, .55); }
.public-footer-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: .86rem; }

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-large { min-height: 54px; padding-inline: 23px; }
.button-primary { color: #03140c; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 16px 34px rgba(20, 198, 116, .22); }
.button-primary:hover { box-shadow: 0 20px 42px rgba(20, 198, 116, .3); }
.button-secondary { color: #eef6ff; border-color: var(--line-strong); background: rgba(255, 255, 255, .05); }
.button-secondary:hover { background: rgba(255, 255, 255, .08); }
.button-danger-soft { color: #ff9aaa; background: rgba(255, 93, 114, .1); border-color: rgba(255, 93, 114, .15); }

/* Home */
.hero-grid {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
    align-items: center;
    gap: clamp(46px, 7vw, 110px);
    padding: clamp(64px, 8vw, 120px) clamp(18px, 5vw, 86px);
    overflow: hidden;
}
.hero-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 85%);
}
.hero-content { max-width: 800px; }
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-orb-one { width: 430px; height: 430px; left: -180px; top: 8%; background: rgba(44, 229, 139, .13); }
.hero-orb-two { width: 520px; height: 520px; right: -230px; bottom: -150px; background: rgba(59, 140, 255, .14); }
.hero-label, .auth-badge, .signin-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(44, 229, 139, .24);
    border-radius: 999px;
    color: #9effca;
    background: rgba(44, 229, 139, .08);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .03em;
}
.hero-title {
    max-width: 900px;
    margin: 24px 0 0;
    font-size: clamp(3.15rem, 6.4vw, 7rem);
    line-height: .94;
    letter-spacing: -.065em;
}
.hero-title span { display: block; color: transparent; background: linear-gradient(100deg, #42ee9a 10%, #5bb2ff 62%, #a68cff); background-clip: text; -webkit-background-clip: text; }
.hero-copy { max-width: 690px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 30px; color: #a7b7c8; font-size: .86rem; font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--primary); }
.glass-card { border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(145deg, rgba(14, 34, 56, .9), rgba(5, 16, 30, .94)); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.hero-dashboard-card { width: 100%; max-width: 660px; justify-self: end; padding: clamp(22px, 3vw, 34px); }
.hero-card-top, .hero-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.hero-user { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 17px; color: #03140c; background: linear-gradient(135deg, #4df0a0, #12c877); font-size: 1.05rem; font-weight: 900; box-shadow: 0 12px 28px rgba(21, 200, 121, .2); }
.hero-copy-group { display: flex; flex-direction: column; gap: 3px; }
.hero-copy-group small { color: var(--muted-2); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.hero-copy-group strong { font-size: 1.05rem; }
.hero-copy-group > span { color: var(--muted); font-size: .82rem; }
.service-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 999px; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.service-pill.is-online { color: #8effc1; background: rgba(32, 215, 131, .1); border: 1px solid rgba(32, 215, 131, .18); }
.service-pill.is-offline { color: #ff9aaa; background: rgba(255, 93, 114, .1); border: 1px solid rgba(255, 93, 114, .18); }
.service-dot, .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(32, 215, 131, .09); }
.is-offline .service-dot { background: var(--danger); box-shadow: 0 0 0 5px rgba(255, 93, 114, .09); }
.hero-preview-window { margin-top: 26px; padding: 18px; border: 1px solid var(--line); border-radius: 23px; background: rgba(2, 10, 20, .48); }
.preview-toolbar { display: flex; align-items: center; gap: 7px; margin-bottom: 17px; }
.preview-toolbar > span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); }
.preview-toolbar small { margin-left: 5px; color: var(--muted); }
.quick-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-quick-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-stat { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.035); }
.home-quick-stats .quick-stat { display: flex; align-items: center; gap: 12px; }
.quick-stat small, .quick-stat strong { display: block; }
.quick-stat small { margin-bottom: 5px; color: var(--muted-2); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.quick-stat strong { font-size: .94rem; }
.stat-icon { width: 41px; height: 41px; flex: 0 0 41px; display: grid; place-items: center; border-radius: 13px; color: #8abfff; background: rgba(59, 140, 255, .1); }
.hero-link-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }
.hero-link-row small, .hero-link-row strong { display: block; }
.hero-link-row small { color: var(--muted-2); font-size: .67rem; letter-spacing: .06em; }
.hero-link-row strong { margin-top: 3px; font-size: .88rem; }
.hero-link-row button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: #b8d5ff; background: rgba(59,140,255,.08); }
.feature-strip { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.feature-strip article { min-height: 150px; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 28px; border-right: 1px solid var(--line); }
.feature-strip article:last-child { border-right: 0; }
.feature-strip article > span { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 15px; color: var(--primary); background: rgba(44,229,139,.08); }
.feature-strip strong, .feature-strip small { display: block; }
.feature-strip small { margin-top: 5px; color: var(--muted); }

/* Shared auth */
.auth-layout, .signin-page, .expired-wrap { position: relative; width: 100%; min-height: calc(100vh - 78px); padding: clamp(48px, 7vw, 100px) clamp(18px, 5vw, 84px); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 520px); align-items: center; gap: clamp(48px, 8vw, 120px); }
.auth-showcase { max-width: 700px; }
.auth-showcase h1 { margin: 22px 0 0; font-size: clamp(3rem, 5.4vw, 5.8rem); line-height: .96; letter-spacing: -.055em; }
.auth-showcase h1 span { display: block; color: var(--primary); }
.auth-showcase > p { max-width: 610px; margin: 24px 0 0; color: var(--muted); font-size: 1.07rem; line-height: 1.75; }
.auth-points { display: grid; gap: 14px; margin-top: 32px; }
.auth-points > div { display: flex; align-items: center; gap: 14px; padding: 15px 17px; max-width: 520px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.auth-points > div > svg { width: 21px; height: 21px; color: var(--primary); }
.auth-points strong, .auth-points small { display: block; }
.auth-points small { margin-top: 3px; color: var(--muted); }
.auth-card { width: 100%; padding: clamp(25px, 4vw, 38px); }
.auth-card-icon, .signin-panel-icon, .expired-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; color: #071711; background: linear-gradient(135deg, #48eda0, #15c778); box-shadow: 0 14px 30px rgba(21,199,120,.2); }
.auth-card-icon svg, .signin-panel-icon svg, .expired-icon svg { width: 24px; height: 24px; }
.auth-eyebrow { margin: 22px 0 0; color: var(--primary); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.auth-title { margin: 8px 0 0; font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.auth-copy { margin: 10px 0 0; color: var(--muted); line-height: 1.65; }
.form-stack, .signin-form { display: grid; gap: 17px; margin-top: 26px; }
.field-group label, .signin-field label, .form-control-wrap > span { display: block; margin-bottom: 8px; color: #dce6f0; font-size: .85rem; font-weight: 800; }
.input-shell, .signin-input-wrap {
    min-height: 53px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(2, 11, 22, .54);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input-shell:focus-within, .signin-input-wrap:focus-within { border-color: rgba(44,229,139,.58); box-shadow: 0 0 0 4px rgba(44,229,139,.08); background: rgba(2,11,22,.8); }
.input-shell > svg, .signin-input-wrap > svg { flex: 0 0 auto; color: var(--muted-2); }
.input-shell input, .signin-input-wrap input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.input-shell input::placeholder, .signin-input-wrap input::placeholder { color: #60778e; }
.field-hint { display: block; margin-top: 7px; color: var(--muted-2); font-size: .76rem; }
.password-toggle, .signin-password-toggle { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 0; border-radius: 11px; color: var(--muted); background: transparent; }
.form-button, .signin-submit, .primary-action, .update-save {
    min-height: 53px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 15px;
    color: #03140c;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    font-weight: 900;
    box-shadow: 0 15px 32px rgba(19,198,116,.2);
}
.form-button:hover, .signin-submit:hover, .primary-action:hover, .update-save:hover { filter: brightness(1.05); }
.auth-footer { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: .87rem; }
.auth-footer a { color: var(--primary); font-weight: 800; }

/* Login */
.signin-page { overflow: hidden; }
.signin-shell { position: relative; z-index: 1; width: 100%; max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(400px, .72fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.signin-ambient { position: absolute; border-radius: 50%; filter: blur(85px); opacity: .7; pointer-events: none; }
.signin-ambient-one { width: 440px; height: 440px; left: -180px; top: 10%; background: rgba(44,229,139,.12); }
.signin-ambient-two { width: 500px; height: 500px; right: -220px; bottom: -160px; background: rgba(59,140,255,.14); }
.signin-showcase h1 { margin: 23px 0 0; font-size: clamp(3.1rem, 5.6vw, 6.1rem); line-height: .95; letter-spacing: -.06em; }
.signin-showcase h1 span { color: transparent; background: linear-gradient(100deg, var(--primary), #5fb4ff); background-clip: text; -webkit-background-clip: text; }
.signin-lead { max-width: 670px; margin: 24px 0 0; color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.signin-preview { max-width: 640px; margin-top: 30px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(7,20,35,.72); box-shadow: var(--shadow-soft); }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.preview-stats > div { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.preview-stats small, .preview-stats strong { display: block; }
.preview-stats small { color: var(--muted-2); }
.preview-stats strong { margin-top: 6px; font-size: 1.18rem; }
.preview-active { color: var(--primary); }
.preview-link-card { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.preview-link-card small, .preview-link-card strong { display: block; }
.preview-link-card small { color: var(--muted-2); font-size: .67rem; }
.preview-link-card strong { margin-top: 4px; }
.preview-link-card > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #b7d2ff; background: rgba(59,140,255,.1); }
.signin-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 18px; }
.signin-benefits article { display: flex; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); }
.signin-benefits article > span { color: var(--primary); }
.signin-benefits strong, .signin-benefits small { display: block; }
.signin-benefits strong { font-size: .82rem; }
.signin-benefits small { margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.signin-panel { padding: clamp(25px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(145deg, rgba(14,34,56,.92), rgba(4,14,27,.95)); box-shadow: var(--shadow); }
.signin-panel-head { display: flex; align-items: center; gap: 14px; }
.signin-panel-head p { margin: 0; color: var(--primary); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.signin-panel-head h2 { margin: 3px 0 0; font-size: 1.55rem; letter-spacing: -.025em; }
.signin-panel-copy { margin: 18px 0 0; color: var(--muted); }
.signin-label-row { display: flex; justify-content: space-between; }
.signin-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted-2); font-size: .76rem; }
.signin-divider::before, .signin-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signin-register { min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line-strong); border-radius: 14px; color: #dce8f5; font-weight: 800; background: rgba(255,255,255,.03); }
.signin-security-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 18px 0 0; color: var(--muted-2); font-size: .75rem; }
.signin-security-note svg { color: var(--primary); }
.signin-alert, .flash { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 14px; font-size: .86rem; font-weight: 700; }
.signin-alert, .flash-error { color: #ffb1bd; border: 1px solid rgba(255,93,114,.2); background: rgba(255,93,114,.1); }
.flash-success { color: #a2ffca; border: 1px solid rgba(32,215,131,.2); background: rgba(32,215,131,.1); }
.signin-alert { margin-top: 18px; }

/* Expired */
.expired-wrap { display: grid; place-items: center; }
.expired-card { width: min(650px, 100%); padding: clamp(30px, 5vw, 54px); text-align: center; }
.expired-card .expired-icon { margin: 0 auto 20px; color: #2b1700; background: linear-gradient(135deg, #ffd168, #f2a51e); }
.expired-card .auth-badge { color: #ffd992; border-color: rgba(244,186,63,.22); background: rgba(244,186,63,.08); }
.expired-card .auth-copy { max-width: 520px; margin: 14px auto 25px; }

/* Dashboard */
.dashboard-body { min-height: 100vh; background: #06101d; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 80; width: 270px; display: flex; flex-direction: column; padding: 20px 16px; border-right: 1px solid var(--line); background: linear-gradient(180deg, #09182a, #050d18); }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 5px 22px; border-bottom: 1px solid var(--line); }
.sidebar-close { display: none; }
.icon-button { width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: rgba(255,255,255,.04); }
.sidebar-nav { display: grid; gap: 8px; margin-top: 22px; }
.sidebar-link, .sidebar-logout { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 14px; color: var(--muted); font-weight: 800; }
.sidebar-link:hover, .sidebar-link.active { color: #fff; background: rgba(44,229,139,.09); }
.sidebar-link.active { border: 1px solid rgba(44,229,139,.13); }
.sidebar-link.active svg { color: var(--primary); }
.telegram-link:hover svg { color: #5ea8ff; }
.sidebar-spacer { flex: 1; }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 14px 10px; border-top: 1px solid var(--line); }
.sidebar-user-copy strong, .sidebar-user-copy small { display: block; }
.sidebar-user-copy small { margin-top: 2px; color: var(--muted-2); font-size: .74rem; }
.sidebar-logout { color: #ff9aaa; }
.sidebar-logout:hover { background: rgba(255,93,114,.08); }
.dashboard-shell { min-height: 100vh; margin-left: 270px; display: flex; flex-direction: column; }
.dashboard-topbar { position: sticky; top: 0; z-index: 40; min-height: 84px; display: flex; align-items: center; gap: 20px; padding: 14px clamp(20px, 3vw, 46px); border-bottom: 1px solid var(--line); background: rgba(5,14,25,.84); backdrop-filter: blur(20px); }
.mobile-menu { display: none; }
.topbar-title { min-width: 190px; }
.topbar-title small, .topbar-title strong, .topbar-title span { display: block; }
.topbar-title small { color: var(--muted-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.topbar-title strong { margin-top: 2px; }
.topbar-title span { margin-top: 2px; color: var(--muted); font-size: .78rem; }
.topbar-search { width: min(580px, 46vw); min-height: 48px; margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); }
.topbar-search svg { color: var(--muted-2); }
.topbar-search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-clear { border: 0; color: var(--muted); background: transparent; font-size: .77rem; font-weight: 800; }
.topbar-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 14px; color: #04140d; background: linear-gradient(135deg, var(--primary), var(--primary-2)); font-weight: 900; }
.dashboard-main { width: 100%; max-width: 1680px; margin: 0 auto; flex: 1; padding: clamp(22px, 3vw, 44px); }
.dashboard-main > * + * { margin-top: 22px; }
.dashboard-hero { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(circle at 100% 0%, rgba(59,140,255,.12), transparent 34%), linear-gradient(145deg, rgba(14,34,56,.9), rgba(5,16,30,.94)); box-shadow: var(--shadow-soft); }
.hero-actions-area { display: flex; align-items: center; }
.expiry-banner { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding: 15px 17px; border: 1px solid rgba(244,186,63,.16); border-radius: 16px; background: rgba(244,186,63,.055); }
.expiry-icon, .panel-icon { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 14px; }
.expiry-icon { color: #ffd274; background: rgba(244,186,63,.1); }
.expiry-copy small, .expiry-copy strong { display: block; }
.expiry-copy small { color: var(--muted-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.expiry-copy strong { margin-top: 3px; font-size: .9rem; }
.days-pill, .count-pill { margin-left: auto; padding: 8px 11px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.days-pill { color: #ffd991; background: rgba(244,186,63,.1); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.stat-card { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.028); }
.stat-card small, .stat-card strong { display: block; }
.stat-card small { color: var(--muted-2); font-size: .72rem; }
.stat-card strong { margin-top: 4px; font-size: 1.22rem; }
.panel { padding: clamp(20px, 2.5vw, 30px); border: 1px solid var(--line); border-radius: 24px; background: rgba(9,25,42,.76); box-shadow: 0 16px 42px rgba(0,0,0,.14); }
.panel-heading, .panel-title { display: flex; align-items: center; gap: 13px; }
.panel-heading { justify-content: space-between; margin-bottom: 20px; }
.panel-icon { color: var(--primary); background: rgba(44,229,139,.08); }
.panel-title h2, .panel-title p { margin: 0; }
.panel-title h2 { font-size: 1.16rem; }
.panel-title p { margin-top: 4px; color: var(--muted); font-size: .82rem; }
.create-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .65fr) auto; align-items: end; gap: 13px; }
.primary-action { min-width: 140px; padding-inline: 20px; }
.links-grid { display: grid; gap: 14px; }
.link-card { display: grid; grid-template-columns: minmax(0, 1fr) 120px 130px minmax(330px, .9fr); align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.link-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.link-card.hidden { display: none; }
.compact-link-main { min-width: 0; }
.compact-link-main small, .compact-clicks small { display: block; color: var(--muted-2); font-size: .69rem; text-transform: uppercase; letter-spacing: .05em; }
.compact-short-url { display: block; width: fit-content; max-width: 100%; margin-top: 5px; color: #8fbfff; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-current-url { margin: 7px 0 0; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-clicks strong { display: block; margin-top: 6px; }
.copy-button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(59,140,255,.18); border-radius: 13px; color: #b9d5ff; background: rgba(59,140,255,.08); font-weight: 800; }
.compact-update-form { margin: 0; }
.compact-update-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.compact-update-input { min-height: 46px; }
.compact-update-button { min-height: 46px; padding: 0 16px; }
.count-pill { color: #a8ffcf; background: rgba(44,229,139,.08); }
.empty-state { grid-column: 1 / -1; padding: 50px 20px; text-align: center; }
.empty-icon { width: 58px; height: 58px; margin: 0 auto; display: grid; place-items: center; border-radius: 18px; color: var(--muted); background: rgba(255,255,255,.045); }
.empty-state h3 { margin: 18px 0 0; }
.empty-state p { margin: 8px 0 22px; color: var(--muted); }
.dashboard-footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px clamp(20px, 3vw, 46px); border-top: 1px solid var(--line); color: var(--muted-2); font-size: .76rem; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: min(360px, calc(100vw - 44px)); padding: 13px 16px; border: 1px solid rgba(44,229,139,.2); border-radius: 14px; color: #a8ffd0; background: #0b251b; box-shadow: var(--shadow-soft); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.mobile-overlay { display: none; }

@media (max-width: 1180px) {
    .hero-grid { grid-template-columns: 1fr; min-height: auto; }
    .hero-content { max-width: 920px; }
    .hero-dashboard-card { max-width: 820px; justify-self: stretch; }
    .auth-layout, .signin-shell { grid-template-columns: 1fr; }
    .auth-showcase, .signin-showcase { max-width: 860px; }
    .signin-preview { max-width: 760px; }
    .link-card { grid-template-columns: minmax(0, 1fr) 110px 125px; }
    .compact-update-form { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close, .mobile-menu { display: grid; }
    .mobile-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.58); backdrop-filter: blur(4px); }
    .mobile-overlay.show { display: block; }
    .dashboard-shell { margin-left: 0; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .create-form { grid-template-columns: 1fr 1fr; }
    .primary-action { grid-column: 1 / -1; }
    .feature-strip { grid-template-columns: 1fr; }
    .feature-strip article { border-right: 0; border-bottom: 1px solid var(--line); justify-content: flex-start; }
    .feature-strip article:last-child { border-bottom: 0; }
}

@media (max-width: 680px) {
    .public-header-inner { min-height: 68px; }
    .brand-copy small { display: none; }
    .public-nav .nav-link { display: none; }
    .public-nav .button { min-height: 40px; padding-inline: 13px; font-size: .78rem; }
    .public-nav .button svg { display: none; }
    .hero-grid, .auth-layout, .signin-page, .expired-wrap { padding: 44px 16px; }
    .hero-title, .signin-showcase h1, .auth-showcase h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .button { width: 100%; }
    .hero-card-top, .hero-topline { align-items: flex-start; flex-direction: column; }
    .home-quick-stats, .quick-stats, .preview-stats, .signin-benefits { grid-template-columns: 1fr; }
    .public-footer-inner, .dashboard-footer { flex-direction: column; justify-content: center; text-align: center; padding-block: 22px; }
    .auth-card, .signin-panel { border-radius: 23px; }
    .topbar-title span { display: none; }
    .topbar-search { width: auto; flex: 1; }
    .topbar-search input { font-size: .82rem; }
    .desktop-avatar { display: none; }
    .dashboard-main { padding: 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .expiry-banner { align-items: flex-start; flex-wrap: wrap; }
    .days-pill { margin-left: 56px; }
    .create-form { grid-template-columns: 1fr; }
    .primary-action { grid-column: auto; }
    .panel-heading { align-items: flex-start; }
    .link-card { grid-template-columns: 1fr; }
    .compact-update-form { grid-column: auto; }
    .compact-update-row { grid-template-columns: 1fr; }
    .compact-copy, .compact-update-button { width: 100%; }
}

/* Click metrics, keyboard access and final responsive polish */
.google-card-meta { display:flex; align-items:center; justify-content:flex-end; gap:12px; min-width:0; }
.google-card-meta > small { color:var(--muted-2); white-space:nowrap; }
.google-click-count { min-height:34px; display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid rgba(139,92,246,.2); border-radius:11px; color:#d7ceff; background:rgba(139,92,246,.08); }
.google-click-count svg { width:15px; height:15px; }
.google-click-count strong { color:#f3efff; font-size:.88rem; }
.google-click-count small { color:#aa9dcf; font-size:.7rem; }
.sidebar-nav { overflow-y:auto; overscroll-behavior:contain; }
button, a, input, summary { -webkit-tap-highlight-color:transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline:3px solid rgba(96,165,250,.55); outline-offset:3px; }
.copy-button, .primary-action, .update-save, .danger-action, .retry-button, .button { touch-action:manipulation; }

@media (max-width: 680px) {
    .google-card-meta { width:100%; justify-content:space-between; }
    .google-card-meta > small { white-space:normal; text-align:right; }
    .google-click-count { flex:0 0 auto; }
    .dashboard-footer { align-items:flex-start; flex-direction:column; gap:7px; }
}

@media (max-width: 420px) {
    .google-card-meta { align-items:flex-start; flex-direction:column; gap:8px; }
    .google-card-meta > small { text-align:left; }
    .public-nav { gap:4px; }
    .public-nav .nav-link { padding-inline:8px; }
    .public-nav .button { padding-inline:12px; }
}

/* ===== Premium compact cards + central admin command center ===== */
:root{--focus:rgba(56,189,248,.44);--panel-deep:rgba(7,19,34,.92);--panel-soft:rgba(13,30,49,.78)}
button,a,input,summary{transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
:where(button,a,input,summary):focus-visible{outline:3px solid var(--focus);outline-offset:2px}
button:disabled{cursor:wait;opacity:.65}
.create-panel{overflow:hidden}.create-form-single{grid-template-columns:minmax(0,1fr) auto}.create-form-single .primary-action{min-width:150px}
.google-links-grid{display:grid;grid-template-columns:1fr;align-items:start;gap:14px}
.google-link-card{/* layout controlled by theme.css to match normal link-card */}
.google-link-card:hover{transform:translateY(-2px);box-shadow:0 24px 65px rgba(0,0,0,.24)}
.google-card-head{margin:0;padding-bottom:11px;border-bottom:1px solid rgba(148,163,184,.12)}
.google-status{min-height:30px;padding:6px 10px}.google-status svg{width:14px;height:14px}
.google-url-block{margin:0!important;padding:13px 14px;border-radius:14px;background:rgba(2,8,23,.56);border:1px solid rgba(148,163,184,.12)}
.google-url-block>small{display:block;margin-bottom:7px;font-size:.65rem;letter-spacing:.08em;color:#71849d}
.google-url-block>div{display:flex;align-items:center;gap:10px;min-width:0}.google-url-block a{display:block;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;font-weight:760}
.google-final a{color:#72f6ad}.destination-url a{color:#b7c9dd;font-weight:650}.google-final.is-empty{border-style:dashed}
.google-url-block .unavailable{display:flex;align-items:center;gap:8px;color:#8294aa;font-size:.84rem}.google-url-block .unavailable svg{width:16px;height:16px}
.icon-copy{width:38px!important;height:38px!important;min-width:38px;padding:0!important;border-radius:11px}.icon-copy span{display:none}
.google-wait,.google-error{margin:0;padding:10px 12px;border-radius:12px;font-size:.78rem}
.inline-editor{border-top:1px solid rgba(148,163,184,.12);padding-top:10px}.inline-editor summary{display:flex;align-items:center;gap:8px;width:max-content;cursor:pointer;color:#9fb3c9;font-size:.78rem;font-weight:800;list-style:none}.inline-editor summary::-webkit-details-marker{display:none}.inline-editor summary svg{width:15px;height:15px}.inline-editor[open] summary{color:#58e6a0;margin-bottom:10px}
.google-destination-form{margin:0}.compact-update-row{gap:9px}.compact-update-row .input-shell{min-height:42px}.update-save{min-height:42px;padding:0 14px;display:inline-flex;align-items:center;gap:7px;border-radius:11px}.update-save svg{width:15px;height:15px}
.google-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0;padding-top:10px;border-top:1px solid rgba(148,163,184,.12)}
.google-card-actions form{margin:0}.google-card-actions .danger-action,.google-card-actions .retry-button{width:auto;min-height:40px;padding:0 13px;border-radius:11px;font-size:.78rem}
.danger-action{background:rgba(244,63,94,.08)!important;color:#ff91a2!important;border:1px solid rgba(244,63,94,.24)!important}.danger-action:hover{background:rgba(244,63,94,.17)!important}

.admin-command-center{display:grid;gap:22px}.admin-page-head-premium{margin-bottom:0}.admin-page-head-premium h1{background:linear-gradient(115deg,#f8fafc 20%,#bde9ff 55%,#77f0b1);-webkit-background-clip:text;background-clip:text;color:transparent}
.admin-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.admin-metric{position:relative;overflow:hidden;display:flex;align-items:center;gap:13px;min-height:104px;padding:17px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,rgba(17,35,55,.86),rgba(8,23,40,.82))}.admin-metric:after{content:"";position:absolute;right:-30px;bottom:-50px;width:100px;height:100px;border-radius:50%;background:currentColor;filter:blur(42px);opacity:.1}.admin-metric>span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:rgba(255,255,255,.055)}.admin-metric svg{width:19px}.admin-metric small,.admin-metric strong{display:block}.admin-metric small{color:#91a4ba;font-size:.7rem}.admin-metric strong{margin-top:4px;color:#f8fafc;font-size:1.45rem}.metric-blue{color:#60a5fa}.metric-amber{color:#fbbf24}.metric-green{color:#34d399}.metric-red{color:#fb7185}.metric-violet{color:#a78bfa}.metric-cyan{color:#22d3ee}
.admin-surface{padding:clamp(18px,2.5vw,28px);border:1px solid var(--line);border-radius:24px;background:linear-gradient(145deg,rgba(12,29,47,.92),rgba(7,20,36,.9));box-shadow:0 22px 70px rgba(0,0,0,.16)}
.admin-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.admin-section-head h2{margin:5px 0;font-size:1.35rem}.admin-section-head p{margin:0;color:var(--muted);font-size:.85rem}.section-eyebrow{color:#48e99b;text-transform:uppercase;letter-spacing:.09em;font-size:.65rem;font-weight:900}
.admin-filterbar{position:sticky;top:78px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 -4px 16px;padding:10px;border:1px solid rgba(148,163,184,.13);border-radius:16px;background:rgba(6,18,32,.92);backdrop-filter:blur(16px)}
.admin-search{display:flex;align-items:center;min-width:min(100%,410px);height:44px;padding-left:13px;border:1px solid var(--line);border-radius:12px;background:rgba(2,8,23,.58)}.admin-search svg{width:17px;color:#7890aa}.admin-search input{min-width:0;flex:1;height:100%;padding:0 10px;border:0;background:transparent;color:#eef6ff;outline:0}.admin-search button{align-self:stretch;padding:0 15px;border:0;border-radius:9px;color:#04140d;background:#38db8f;font-weight:850}
.status-tabs{display:flex;gap:5px;overflow-x:auto}.status-tabs a{padding:9px 12px;border-radius:10px;color:#8fa3b8;font-size:.75rem;font-weight:800;white-space:nowrap}.status-tabs a:hover,.status-tabs a.active{color:#eafff5;background:rgba(52,211,153,.12)}
.member-list{display:grid;gap:10px}.member-card{display:grid;grid-template-columns:minmax(240px,1.2fr) auto minmax(300px,auto);align-items:center;gap:18px;padding:15px;border:1px solid rgba(148,163,184,.12);border-radius:16px;background:rgba(2,8,23,.34)}.member-card:hover{border-color:rgba(75,225,157,.28);background:rgba(5,18,31,.62)}
.member-identity{display:flex;align-items:center;gap:12px;min-width:0}.member-avatar{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border-radius:13px;color:#04140d;background:linear-gradient(135deg,#37e397,#28b8ee);font-weight:950}.member-identity div{min-width:0}.member-identity strong,.member-identity a,.member-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-identity a{margin-top:2px;color:#9eb2c8;font-size:.8rem}.member-identity small{margin-top:3px;color:#63778f;font-size:.67rem}
.member-facts{display:flex;align-items:center;gap:13px}.member-facts>span:first-child small,.member-facts>span:first-child strong{display:block;text-align:center}.member-facts small{font-size:.64rem;color:#71849a}.member-status{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;font-size:.68rem;font-weight:900}.member-status svg{width:13px;height:13px}.status-active{color:#78f4b2;background:rgba(52,211,153,.1)}.status-pending{color:#fbd46d;background:rgba(251,191,36,.1)}.status-banned{color:#ff91a2;background:rgba(244,63,94,.1)}
.member-actions{display:flex;justify-content:flex-end;gap:7px}.member-actions form{margin:0}.member-action{min-height:39px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 11px;border:1px solid transparent;border-radius:10px;font-size:.72rem;font-weight:850}.member-action svg{width:14px}.member-action.approve{color:#062416;background:#4ae39c}.member-action.ban{color:#ffd887;background:rgba(245,158,11,.1);border-color:rgba(245,158,11,.22)}.member-action.delete{color:#ff91a2;background:rgba(244,63,94,.08);border-color:rgba(244,63,94,.2)}.ban-form{display:flex}.ban-form input{width:110px;min-height:39px;padding:0 10px;border:1px solid var(--line);border-radius:10px 0 0 10px;background:#061322;color:#e7f1fb}.ban-form .member-action{border-radius:0 10px 10px 0}.ban-note{grid-column:1/-1;margin:0;padding:8px 10px;display:flex;gap:7px;color:#f8bf69;background:rgba(245,158,11,.06);border-radius:9px;font-size:.72rem}.ban-note svg{width:14px}
.admin-empty{text-align:center;padding:44px 20px;color:var(--muted)}.admin-empty>span{width:58px;height:58px;display:grid;place-items:center;margin:0 auto 13px;border-radius:18px;color:#55e7a1;background:rgba(52,211,153,.08)}.admin-empty h3{margin:0;color:#edf7ff}.admin-empty p{margin:6px 0 0}.pagination{display:flex;justify-content:center;gap:7px;margin-top:18px}.pagination a{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;color:#9db0c5}.pagination a.active{color:#052216;background:#48df98;border-color:transparent}
.admin-bottom-grid{display:grid;grid-template-columns:1.18fr .82fr;gap:18px}.platform-settings,.security-form{display:grid;gap:11px}.setting-switch{display:flex;align-items:center;justify-content:space-between;min-height:54px;padding:10px 12px;border:1px solid rgba(148,163,184,.12);border-radius:13px;background:rgba(2,8,23,.32)}.setting-switch>span{display:flex;align-items:center;gap:9px}.setting-switch svg{width:17px;color:#69dbaa}.setting-switch input[type=checkbox]{position:absolute;opacity:0}.setting-switch em{position:relative;width:43px;height:24px;border-radius:999px;background:#26394d}.setting-switch em:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#8da0b4;transition:.2s}.setting-switch input:checked+em{background:#36d98e}.setting-switch input:checked+em:after{left:22px;background:#062217}
.limit-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:5px}.limit-grid label>span,.security-form label>span{display:block;margin-bottom:7px;color:#93a7bd;font-size:.72rem;font-weight:750}.limit-grid input{width:100%;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:11px;background:#061322;color:#eff8ff}.admin-save{min-height:45px;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:5px;border:0;border-radius:12px;color:#062116;background:linear-gradient(135deg,#47e29b,#26cce0);font-weight:900}.admin-save svg{width:17px}.security-form .input-shell{min-height:46px}
@media(max-width:1320px){.admin-metrics{grid-template-columns:repeat(3,1fr)}.member-card{grid-template-columns:minmax(220px,1fr) auto}.member-actions{grid-column:1/-1;padding-top:10px;border-top:1px solid rgba(148,163,184,.1)}}
@media(max-width:900px){.google-links-grid{grid-template-columns:1fr}.admin-bottom-grid{grid-template-columns:1fr}.admin-filterbar{position:static;align-items:stretch;flex-direction:column}.admin-search{max-width:none}.member-card{grid-template-columns:1fr}.member-facts{justify-content:space-between}.member-actions{grid-column:auto;justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:680px){.create-form-single{grid-template-columns:1fr}.create-form-single .primary-action{width:100%}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.google-link-card{padding:14px}.compact-update-row{grid-template-columns:1fr}.update-save{width:100%;justify-content:center}.admin-metrics{grid-template-columns:repeat(2,1fr)}.admin-page-head-premium{align-items:flex-start}.admin-section-head{flex-direction:column}.member-actions form,.member-action{width:100%}.ban-form{width:100%}.ban-form input{width:100%;min-width:0}.limit-grid{grid-template-columns:1fr}.admin-command-center{gap:14px}.admin-surface{border-radius:18px}}
@media(max-width:420px){.stats-grid,.admin-metrics{grid-template-columns:1fr}.google-card-head{align-items:flex-start;flex-direction:column}.sidebar{width:min(88vw,300px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Admin registration control */
.create-form.create-form-v2 { grid-template-columns: minmax(0, 1fr) auto; }
.signin-closed-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 14px 16px; border: 1px solid rgba(244,186,63,.18); border-radius: 14px; color: #ffd991; background: rgba(244,186,63,.06); font-size: .84rem; }
.signin-closed-note svg { width: 19px; height: 19px; }
.registration-closed-state { text-align: center; }
.registration-closed-state .auth-card-icon { margin-inline: auto; }
.registration-login-button { margin-top: 24px; text-decoration: none; }
.admin-auth-page { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: clamp(44px, 7vw, 90px) clamp(18px, 4vw, 60px); }
.admin-auth-card { width: min(100%, 500px); padding: clamp(26px, 4vw, 42px); border-radius: 26px; }
.admin-auth-card h1 { margin: 14px 0 8px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.admin-auth-card > p:not(.auth-eyebrow) { margin: 0 0 24px; color: var(--muted); line-height: 1.7; }
.admin-lock-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: var(--primary); background: rgba(44,229,139,.09); }
.admin-page { width: 100%; padding: clamp(38px, 6vw, 82px) clamp(18px, 4vw, 64px); }
.admin-page-head { width: min(100%, 1400px); margin: 0 auto 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.admin-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.admin-page-head h1 { margin: 12px 0 8px; font-size: clamp(2rem, 5vw, 3.8rem); }
.admin-page-head p { margin: 0; color: var(--muted); }
.admin-settings-grid { width: min(100%, 1400px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 22px; }
.admin-setting-card { padding: clamp(24px, 4vw, 38px); border-radius: 26px; }
.admin-setting-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-setting-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: var(--primary); background: rgba(44,229,139,.09); }
.admin-state-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.admin-state-badge span { width: 8px; height: 8px; border-radius: 50%; }
.admin-state-badge.is-enabled { color: #a8ffcf; background: rgba(44,229,139,.08); }
.admin-state-badge.is-enabled span { background: var(--primary); box-shadow: 0 0 0 5px rgba(44,229,139,.1); }
.admin-state-badge.is-disabled { color: #ffadb9; background: rgba(255,93,114,.08); }
.admin-state-badge.is-disabled span { background: #ff5d72; box-shadow: 0 0 0 5px rgba(255,93,114,.1); }
.admin-setting-card h2 { margin: 26px 0 9px; font-size: 1.45rem; }
.admin-setting-card > p { margin: 0; max-width: 700px; color: var(--muted); line-height: 1.75; }
.admin-toggle-form { margin-top: 28px; }
.admin-toggle-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 0; border-radius: 14px; font-weight: 900; }
.admin-toggle-button.turn-on { color: #04140d; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.admin-toggle-button.turn-off { color: #ffd8de; background: rgba(255,93,114,.12); border: 1px solid rgba(255,93,114,.18); }
.admin-info-card { display: flex; align-items: flex-start; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: rgba(9,25,42,.72); }
.admin-info-card > span { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 14px; color: #8fbfff; background: rgba(59,140,255,.09); }
.admin-info-card small, .admin-info-card strong { display: block; }
.admin-info-card small { color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; }
.admin-info-card strong { margin-top: 5px; }
.admin-info-card p { margin: 9px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.65; }
@media (max-width: 900px) { .admin-settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .create-form.create-form-v2 { grid-template-columns: 1fr; } .admin-page-head { align-items: flex-start; flex-direction: column; } .admin-page-head .button { width: 100%; } .admin-setting-top { align-items: flex-start; flex-direction: column; } .admin-toggle-button { width: 100%; } }

/* Normal + Google API user dashboard */
.create-form-google { grid-template-columns: minmax(0,1.5fr) minmax(220px,.65fr) auto; }
.shortener-picker { grid-column: 1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.shortener-picker input { position:absolute; opacity:0; pointer-events:none; }
.shortener-picker label>span { min-height:82px; display:grid; grid-template-columns:42px 1fr; grid-template-rows:auto auto; align-items:center; gap:2px 12px; padding:15px; border:1px solid var(--line); border-radius:17px; background:rgba(255,255,255,.025); cursor:pointer; transition:.2s ease; }
.shortener-picker svg { grid-row:1/3; width:42px; height:42px; padding:10px; border-radius:13px; color:#8fbfff; background:rgba(59,140,255,.09); }
.shortener-picker strong,.shortener-picker small { display:block; }.shortener-picker small{color:var(--muted);font-size:.76rem}
.shortener-picker input:checked+span { border-color:rgba(44,229,139,.48); background:rgba(44,229,139,.07); box-shadow:0 0 0 4px rgba(44,229,139,.05); }
.shortener-picker input:checked+span svg { color:var(--primary); background:rgba(44,229,139,.1); }
.google-flow-note { grid-column:1/-1; display:flex; align-items:center; gap:9px; margin:0; padding:12px 14px; border:1px solid rgba(59,140,255,.18); border-radius:14px; color:#b9d5ff; background:rgba(59,140,255,.06); font-size:.8rem; }
.google-flow-note[hidden]{display:none}.google-flow-note svg{flex:0 0 auto}
.google-stat{color:#a78bfa;background:rgba(139,92,246,.11)}.queue-stat{color:#ffd274;background:rgba(244,186,63,.1)}
.google-panel { background:radial-gradient(circle at 100% 0%,rgba(139,92,246,.09),transparent 30%),rgba(9,25,42,.76); }
.google-panel-icon{color:#bca6ff;background:rgba(139,92,246,.1)}
.live-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border-radius:999px;color:#a8ffcf;background:rgba(44,229,139,.08);font-size:.74rem;font-weight:800}.live-pill>span{width:7px;height:7px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 5px rgba(44,229,139,.08)}
.google-links-grid{display:grid;grid-template-columns:1fr;gap:14px}.google-link-card{display:block;padding:20px}.google-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.google-card-head>small{color:var(--muted-2)}
.google-status{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border-radius:999px;font-size:.72rem}.google-status svg{width:16px;height:16px}.status-ready{color:#9affc8;background:rgba(44,229,139,.09)}.status-queued,.status-processing{color:#ffd991;background:rgba(244,186,63,.09)}.status-failed{color:#ffabb8;background:rgba(255,93,114,.09)}
.google-url-block{margin-top:11px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025)}.google-url-block>small{color:var(--muted-2);font-size:.65rem;letter-spacing:.06em}.google-url-block>div{display:flex;align-items:center;gap:10px;margin-top:6px}.google-url-block a{min-width:0;flex:1;color:#91c2ff;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.google-final a{color:#bca6ff}.icon-copy{min-width:38px;min-height:38px;padding:0}.google-wait,.google-error{display:flex;align-items:flex-start;gap:8px;margin:13px 0 0;padding:11px 12px;border-radius:12px;font-size:.78rem}.google-wait{color:#ffd991;background:rgba(244,186,63,.06)}.google-error{color:#ffabb8;background:rgba(255,93,114,.07)}.google-wait svg,.google-error svg{width:16px;height:16px;flex:0 0 auto}.retry-button{min-height:43px;margin-top:13px;padding:0 15px;display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,93,114,.2);border-radius:12px;color:#ffd1d8;background:rgba(255,93,114,.09);font-weight:800}
@media(max-width:1180px){.create-form-google{grid-template-columns:1fr 1fr}.create-form-google .primary-action{grid-column:1/-1}.google-links-grid{grid-template-columns:1fr}}
@media(max-width:680px){.shortener-picker,.create-form-google{grid-template-columns:1fr}.create-form-google .primary-action{grid-column:auto}.google-card-head{align-items:flex-start;flex-direction:column}}

/* Admin password management */
.admin-settings-grid-v2 { align-items: start; }
.admin-main-settings { display: grid; gap: 22px; }
.admin-password-card { overflow: hidden; }
.admin-security-label { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 999px; color: #b8d3ff; background: rgba(59,140,255,.09); font-size: .76rem; font-weight: 800; }
.admin-security-label svg { width: 15px; height: 15px; }
.admin-password-errors { margin-top: 20px; }
.admin-password-form { margin-top: 24px; }
.admin-password-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-password-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 4px; }
.admin-password-submit-row small { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.admin-password-submit-row small svg { width: 15px; height: 15px; }
@media (max-width: 720px) {
    .admin-password-fields { grid-template-columns: 1fr; }
    .admin-password-submit-row { align-items: stretch; flex-direction: column; }
    .admin-password-submit-row .admin-toggle-button { width: 100%; }
}

/* v4 routed workspace */
.sidebar-link { position:relative; }
.sidebar-link.active::before { content:""; position:absolute; left:0; top:10px; bottom:10px; width:3px; border-radius:0 6px 6px 0; background:var(--primary); box-shadow:0 0 16px rgba(44,229,139,.55); }
.page-context { display:none; }
.workspace-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.workspace-card { min-height:220px; display:grid; grid-template-columns:64px minmax(0,1fr) 28px; align-items:center; gap:22px; padding:30px; border:1px solid var(--line); border-radius:26px; color:var(--text); text-decoration:none; background:linear-gradient(135deg,rgba(44,229,139,.09),rgba(9,25,42,.8)); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.workspace-card:hover { transform:translateY(-3px); border-color:rgba(44,229,139,.38); box-shadow:0 22px 50px rgba(0,0,0,.22); }
.workspace-card>span { width:64px; height:64px; display:grid; place-items:center; border-radius:20px; color:var(--primary); background:rgba(44,229,139,.1); }
.workspace-card>span svg { width:28px; height:28px; }
.workspace-card small { color:var(--primary); font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.workspace-card h2 { margin:8px 0; font-size:1.45rem; }
.workspace-card p { margin:0; color:var(--muted); line-height:1.65; }
.workspace-card>svg { color:var(--muted-2); }
.google-workspace { background:linear-gradient(135deg,rgba(139,92,246,.12),rgba(9,25,42,.82)); }
.google-workspace>span { color:#c4b5fd; background:rgba(139,92,246,.13); }
.google-workspace small { color:#c4b5fd; }
.google-workspace:hover { border-color:rgba(139,92,246,.42); }
.internal-url { border-color:rgba(44,229,139,.22); background:rgba(44,229,139,.045); }
.internal-url a { color:#61f2a9; }
.unavailable { color:var(--muted); font-size:.82rem; }
.technical-link { margin:11px 2px 0; color:var(--muted); font-size:.76rem; }
.technical-link summary { cursor:pointer; color:#91c2ff; font-weight:700; }
.technical-link a { display:block; margin-top:7px; color:var(--muted); overflow-wrap:anywhere; }
.google-card-actions { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-top:13px; }
.delete-form { margin-left:auto; }
.danger-action { min-height:43px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:0 15px; border:1px solid rgba(255,93,114,.24); border-radius:12px; color:#ffc3cc; background:rgba(255,93,114,.1); font-weight:800; }
.danger-action:hover { background:rgba(255,93,114,.18); }
.danger-action svg { width:16px; height:16px; }
.google-final[hidden],.google-wait[hidden],.google-error[hidden],.google-retry[hidden] { display:none!important; }
.admin-dashboard-main .admin-page { padding:0; }
.admin-dashboard-main .admin-page-head,.admin-dashboard-main .admin-settings-grid { width:100%; }
.admin-dashboard-main .admin-page-head { align-items:center; }
.admin-sidebar .sidebar-link { color:#b9c7d9; }
@media(max-width:800px){.workspace-grid{grid-template-columns:1fr}.workspace-card{min-height:180px;padding:22px;grid-template-columns:54px minmax(0,1fr) 22px}.workspace-card>span{width:54px;height:54px}.google-card-actions{align-items:stretch;flex-direction:column}.delete-form,.danger-action{width:100%;margin-left:0}}


/* Google destination editor */
.google-destination-form { margin-top: 12px; }
.google-destination-form .compact-update-row { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 680px) {
    .google-destination-form .compact-update-row { grid-template-columns: 1fr; }
    .google-destination-form .update-save { width: 100%; }
}

/* Final cascade guards for premium v5 components. */
.google-links-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));align-items:start;gap:18px}
.google-link-card.link-card{display:grid;grid-template-columns:1fr;gap:12px;padding:17px}
.google-link-card .google-card-head{margin:0}.google-link-card .google-url-block{margin:0;padding:13px 14px}
.google-link-card .google-destination-form{margin:0}.google-link-card .google-card-actions{align-items:center;justify-content:flex-end;margin:0;padding-top:10px}
.google-link-card .delete-form{width:auto;margin-left:0}.google-link-card .danger-action{width:auto}
@media(max-width:900px){.google-links-grid{grid-template-columns:1fr}}
@media(max-width:680px){.google-link-card.link-card{padding:14px}.google-link-card .google-card-actions{flex-direction:row;align-items:center}.google-link-card .delete-form,.google-link-card .danger-action{width:auto}}

/* Responsive dashboard finishing pass */
.dashboard-body { background: radial-gradient(circle at 86% 8%, rgba(59,140,255,.08), transparent 28%), #06101d; }
.dashboard-main { max-width: 1760px; }
.dashboard-hero-v2 { position: relative; overflow: hidden; }
.dashboard-hero-v2::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; bottom: -150px; border-radius: 50%; background: rgba(44,229,139,.1); filter: blur(48px); pointer-events: none; }
.hero-topline { position: relative; z-index: 1; flex-wrap: wrap; }
.hero-copy-group > span { max-width: 48ch; line-height: 1.45; }
.stats-grid { position: relative; z-index: 1; }
.stat-card { min-height: 78px; }
.panel { overflow: hidden; }
.panel-heading { flex-wrap: wrap; }
.panel-title { min-width: 0; }
.panel-title > span:last-child { min-width: 0; }
.panel-title p { max-width: 62ch; line-height: 1.45; }
.workspace-card { min-width: 0; }
.workspace-card h2 { line-height: 1.15; }
.workspace-card p { max-width: 42ch; }
.compact-update-row .input-shell input { text-overflow: ellipsis; }
.google-card-head > small { overflow-wrap: anywhere; }
.google-url-block a { overflow-wrap: anywhere; }
.copy-button, .update-save, .danger-action, .retry-button { min-height: 44px; }

@media (max-width: 1180px) {
    .dashboard-topbar { padding-inline: 24px; }
    .dashboard-main { padding-inline: 24px; }
    .link-card { grid-template-columns: minmax(0, 1fr) auto auto; }
    .link-card .compact-update-form { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .dashboard-topbar { min-height: 74px; gap: 12px; }
    .topbar-title { min-width: 0; }
    .topbar-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .topbar-search { width: min(48vw, 420px); }
    .dashboard-main { padding-top: 22px; }
    .workspace-card { min-height: 190px; }
    .link-card { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
    .compact-clicks { justify-self: end; }
    .link-card .copy-button { grid-column: 1 / -1; width: 100%; }
    .link-card .compact-update-form { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .dashboard-topbar { align-items: center; padding: 12px 16px; }
    .mobile-menu, .sidebar-close { width: 44px; height: 44px; }
    .topbar-title { display: none; }
    .topbar-search { width: auto; flex: 1; min-height: 44px; }
    .topbar-search input { font-size: .86rem; }
    .search-clear { padding: 8px 2px; }
    .dashboard-main { padding: 14px; }
    .dashboard-main > * + * { margin-top: 14px; }
    .dashboard-hero, .panel { border-radius: 20px; }
    .dashboard-hero { padding: 18px; }
    .hero-topline { gap: 14px; }
    .hero-user { align-items: flex-start; }
    .hero-copy-group > span { display: none; }
    .service-pill { margin-left: 66px; }
    .stats-grid { gap: 9px; margin-top: 16px; }
    .stat-card { min-height: 72px; gap: 9px; padding: 12px; border-radius: 14px; }
    .stat-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
    .stat-card small { font-size: .65rem; line-height: 1.2; }
    .stat-card strong { font-size: 1.05rem; }
    .panel { padding: 17px; }
    .panel-heading { gap: 12px; margin-bottom: 16px; }
    .panel-title { align-items: flex-start; }
    .panel-title h2 { font-size: 1.05rem; }
    .panel-title p { font-size: .76rem; }
    .count-pill, .live-pill { margin-left: 56px; }
    .workspace-card { min-height: 0; padding: 19px; grid-template-columns: 46px minmax(0, 1fr) 20px; gap: 13px; border-radius: 19px; }
    .workspace-card > span { width: 46px; height: 46px; border-radius: 14px; }
    .workspace-card > span svg { width: 21px; height: 21px; }
    .workspace-card h2 { margin: 5px 0; font-size: 1.08rem; }
    .workspace-card p { font-size: .78rem; line-height: 1.45; }
    .link-card { padding: 15px; gap: 11px; border-radius: 16px; }
    .compact-short-url { font-size: .88rem; }
    .compact-current-url { font-size: .75rem; }
    .compact-clicks { text-align: right; }
    .compact-update-row { gap: 8px; }
    .compact-update-row .update-save { width: 100%; }
    .google-link-card.link-card { gap: 10px; }
    .google-url-block { padding: 11px 12px; }
    .google-url-block a { font-size: .82rem; }
    .google-card-actions { flex-wrap: wrap; }
    .google-card-actions .delete-form, .google-card-actions .danger-action { flex: 1; }
    .google-card-actions .retry-button { flex: 1; justify-content: center; }
}

@media (max-width: 420px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { align-items: flex-start; }
    .stat-card small { max-width: 8ch; }
    .service-pill { width: fit-content; }
    .create-form-single .primary-action, .primary-action { width: 100%; }
    .google-card-actions { flex-direction: column; align-items: stretch; }
    .google-card-actions .delete-form, .google-card-actions .danger-action, .google-card-actions .retry-button { width: 100%; flex: none; }
}

/* Google shortener workspace */
.google-create-panel { background: radial-gradient(circle at 100% 0%, rgba(139,92,246,.11), transparent 32%), rgba(9,25,42,.8); }
.google-create-panel .primary-action { background: linear-gradient(135deg, #bca6ff, #7c5ce5); color: #110a28; box-shadow: 0 15px 32px rgba(124,92,229,.2); }
.google-process-steps { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(148,163,184,.12); color: var(--muted-2); font-size: .72rem; font-weight: 800; }
.google-process-steps > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.google-process-steps > span > span { white-space: nowrap; }
.google-process-steps b { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 25px; border-radius: 50%; color: #9da9bd; background: rgba(148,163,184,.1); }
.google-process-steps .is-current { color: #d3c7ff; }
.google-process-steps .is-current b { color: #170d35; background: #bca6ff; }
.google-process-steps > i { width: 14px; height: 14px; color: #657a93; }
.google-panel .panel-heading { padding-bottom: 4px; }
.google-panel .live-pill { box-shadow: inset 0 0 0 1px rgba(44,229,139,.08); }
.google-link-card { min-width: 0; }
.google-link-card .google-status { max-width: 100%; }
.google-link-card .google-status b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.google-link-card .inline-editor { overflow: hidden; }
.google-link-card .inline-editor summary { min-height: 32px; }
.google-link-card .google-error { overflow-wrap: anywhere; }

@media (max-width: 680px) {
    .google-process-steps { align-items: stretch; flex-direction: column; gap: 7px; margin-top: 16px; padding-top: 14px; }
    .google-process-steps > i { display: none; }
    .google-process-steps > span { min-height: 31px; }
    .google-process-steps > span > span { white-space: normal; }
    .google-link-card .google-card-head { gap: 8px; }
    .google-link-card .google-card-head > small { font-size: .7rem; }
}

/* Global responsive safeguards */
body { min-width: 0; overflow-x: clip; }
a { min-width: 0; }
main, section, article, form, label, header, footer, nav, aside, .panel, .glass-card { min-width: 0; }
strong, h1, h2, h3, p, small, span { overflow-wrap: anywhere; }
.brand, .sidebar-brand-link, .brand-copy, .sidebar-brand-link > span:last-child, .hero-copy-group { min-width: 0; }
.brand-copy strong, .sidebar-brand-link strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-search { min-width: 0; flex: 1 1 auto; }
.hero-link-row strong, .compact-short-url, .compact-current-url, .google-url-block a, .technical-link a, .ban-note { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.member-card > *, .member-identity > *, .member-actions > *, .admin-page-head > *, .admin-section-head > * { min-width: 0; }
.public-footer-inner > *, .dashboard-footer > * { min-width: 0; overflow-wrap: anywhere; }
.service-pill, .live-pill, .count-pill { max-width: 100%; white-space: normal; text-align: center; }

@media (max-width: 1120px) {
    .dashboard-topbar { gap: 14px; }
    .topbar-title { min-width: 145px; }
    .topbar-search { width: auto; }
    .admin-page-head, .admin-section-head { align-items: flex-start; }
}

@media (max-width: 1040px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close, .mobile-menu { display: grid; }
    .mobile-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.58); backdrop-filter: blur(4px); }
    .mobile-overlay.show { display: block; }
    .dashboard-shell { margin-left: 0; }
}

@media (max-width: 800px) {
    .public-header-inner { gap: 12px; }
    .admin-page-head, .admin-section-head { flex-direction: column; }
    .admin-page-head .button, .admin-page-head > .button { width: 100%; }
    .admin-filterbar { position: static; }
    .member-actions { justify-content: flex-start; flex-wrap: wrap; }
    .ban-form { max-width: 100%; flex-wrap: wrap; }
    .ban-form input { min-width: 0; flex: 1 1 150px; }
    .google-process-steps { align-items: stretch; flex-wrap: wrap; }
    .google-process-steps > span > span { white-space: normal; }
}

@media (max-width: 520px) {
    .public-header-inner { align-items: flex-start; flex-wrap: wrap; padding-block: 12px; }
    .public-nav { margin-left: auto; }
    .brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; }
    .brand-copy strong { max-width: 38vw; font-size: 1rem; }
    .public-nav .button { min-height: 40px; padding-inline: 12px; }
    .public-footer-inner, .dashboard-footer { align-items: stretch; }
}

/* Prevent Google cards from squeezing content into neighboring cards. */
.google-links-grid { grid-template-columns: 1fr; }
.google-link-card > *, .google-card-head, .google-url-block, .google-url-block > div, .google-card-actions { min-width: 0; max-width: 100%; }
.google-card-head > small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.google-url-block > div { overflow: hidden; }
.google-url-block a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 980px) {
    .google-links-grid { grid-template-columns: 1fr; }
}

/* Keep normal-link actions together on the right side of each card. */
.links-grid > .link-card > .delete-form { grid-column: 4; justify-self: stretch; width: 100%; }
.links-grid > .link-card > .delete-form .danger-action { width: 100%; }
@media (max-width: 1180px) {
    .links-grid > .link-card > .delete-form { grid-column: 1 / -1; justify-self: end; width: min(100%, 220px); }
}
@media (max-width: 680px) {
    .links-grid > .link-card > .delete-form { width: 100%; }
}
