/* /linksStyles.css */
   
/* =========================================================
   LINKSQUID THEME TOKENS
   ========================================================= */

:root,
html[data-theme="light"]{
    
    --themeHeaders: "Nunito", sans-serif;
    --themeBody: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --themeH2: "Nunito", sans-serif;
    --font-ui: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --themeFontFam: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --ease: cubic-bezier(.2,.8,.2,1);
    --bg: linear-gradient(#f2f5f7, #e8edf1, #dde4ea);
    --bg-overlay: rgba(161, 206, 220, 0.55);
    --text: rgba(15,18,20,.92);
    --muted: rgba(15,18,20,.68);

    --glass: rgba(255,255,255,.56);
    --glass-strong: rgba(255,255,255,.74);
    --glass-soft: rgba(255,255,255,.40);
    --ink: rgba(0,0,0,.05);

    --border: rgba(0,0,0,.10);
    --border-soft: rgba(0,0,0,.07);

    --shadow-lg: 0 20px 60px rgba(0,0,0,.16);
    --shadow-md: 0 14px 40px rgba(0,0,0,.14);
    --shadow-sm: 0 10px 24px rgba(0,0,0,.10);

    --btn-bg: rgba(0,0,0,.05);
    --btn-bg-hover: rgba(0,0,0,.085);
    --btn-border: rgba(74, 81, 83, 0.12);

    --btnColor: #5b6274;
    --btnColorAlt: #afb3bb;
    --btnLight: #afb7bb;
    
    --input-bg: rgba(255,255,255,.76);
    --input-border: rgba(0,0,0,.10);
    --input-text: rgba(15,18,20,.92);
    --placeholder: rgba(15,18,20,.50);
    
    --overlay: rgba(225, 244, 255, 0.52);
    /* old: --overlay: rgba(255,255,255,.42); */

    --accent: #3d465e;
    --accent-strong: #5d6b8e;
    --accent-soft: rgba(52,136,144,.12);

    --panel-bg: var(--glass);
    --panel-bg-strong: var(--glass-strong);
    --card-bg: rgba(255,255,255,.58);

    --topbar-text: rgba(15,18,20,.78);
    --menu-text: rgba(15,18,20,.88);
    
    --modalBG: rgba(255, 255, 255, 0.35);
    
    --mainColor: #828ca5; /* grey */ 
    --invert: #ffc350; /* yellow */
    --baseColor: rgba(255,255,255,1); /* white */
    --baseColor018: rgba(255,255,255,.18);
    --baseColor060: rgba(255,255,255,.60);
    --baseColor078: rgba(255,255,255,.78);
    --footColor: #49515b;
    
    --subMenuFake: #ece9ec;
    --matFake: #f7f7f9;
    
    --localBdropBg: url('https://links.fabri.cc/images/links-bg.jpg');
}

/* Dark theme */
html[data-theme="dark"]{
    --bg: linear-gradient(#40484f, #41454f, #30373c);
    --text: rgba(255,255,255,.92);
    --text-soft: #a6a6a6;
    --muted: rgba(255,255,255,.72);

    --glass: rgba(255,255,255,.08);
    --glass-strong: rgba(255,255,255,.12);
    --glass-soft: rgba(255,255,255,.05);
    --ink: rgba(0,0,0,.12);

    --border: rgba(255,255,255,.18);
    --border-soft: rgba(255,255,255,.10);

    --shadow-lg: 0 20px 60px rgba(0,0,0,.35);
    --shadow-md: 0 14px 40px rgba(0,0,0,.28);
    --shadow-sm: 0 10px 24px rgba(0,0,0,.18);

    --btn-bg: rgba(255,255,255,.10);
    --btn-bg-hover: rgba(255,255,255,.16);
    --btn-border: rgba(255,255,255,.14);
    
    --btnColor: #6f7279;
    --btnColorAlt: #9682a7;
    --btnLight: #B0832D;
    
    --input-bg: rgba(0,0,0,.18);
    --input-border: rgba(255,255,255,.18);
    --input-text: rgba(255,255,255,.92);
    --placeholder: rgba(255,255,255,.58);

    --surface: rgba(255, 255, 255, 0.04);
    --overlay: rgba(19, 14, 32, 0.7);
    --bg-overlay: rgba(16, 45, 54, 0.78) !important;
    --blur: blur(14px) saturate(140%);

    --accent: #faac18;
    --accent-strong: #4ca9bf;
    --accent-soft: rgba(111,184,194,.18);

    --panel-bg: var(--glass);
    --panel-bg-strong: var(--glass-strong);
    --card-bg: rgba(255,255,255,.07);

    --topbar-text: rgba(255,255,255,.82);
    --menu-text: rgba(255,255,255,.88);
    
    --modalBG: rgba(0, 0, 0, 0.35);
    
    --mainColor: #faac18; /* yellow */
    --mainColor: #a792ba;
    --invert: #828ca5; /* grey */
    --baseColor: rgba(0,0,0,1); /* black */
    --baseColor018: rgba(0,0,0,.18);
    --baseColor060: rgba(34, 32, 38, 0.55);
    --baseColor078: rgba(0,0,0,.78);
    --footColor: #faac18;
    
    --subMenuFake: #000;
    --blackVelvet: rgba(23, 25, 41, 0.7);
    --matFake: #f7f7f9;
}

html[data-theme="classic"]{
    
}

body.loading::before {
    content: "Loading your LinkSquid...";
    display: block;
    text-align: center;
    margin-top: 2rem;
    color: #888;
}


html[data-theme="classic"] body.fabricSmallApp #overlay {
  backdrop-filter: blur(4px) saturate(96%);
  -webkit-backdrop-filter: blur(4px) saturate(96%);
  background: rgba(115, 115, 115, 0.23) !important;
}

/* =========================
   CLEAN UP
   ========================= */

#footNav p {
    color: var(--baseColor);
}

body.fabricSmallApp #logo .lightLogo {
    filter: brightness(0.7);
}

html[data-theme="classic"] body.fabricSmallApp #logo .lightLogo {
    filter: brightness(0.6) grayscale(50%);
}

body.fabricSmallApp .marketingHeroCopy h1 {
  font-size: clamp(26px, 3.8vw, 35px);
  max-width: 15ch;
}

body.fabricSmallApp .sideNavBtn {
    background: var(--glass-50);
}

body.fabricSmallApp button.alt {
  background: var(--invert);
}

body.fabricSmallApp #insideTc {
  background: var(--greenGlass);
}
  
  

/* =========================================================
   MARKETING SHELL
   ========================================================= */

.heroArtCard {
    position: absolute;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    background: linear-gradient(180deg, var(--glass-strong), var(--glass));
}

.heroArtCard--back {
    inset: 28px 10px 12px 90px;
    opacity: .55;
    transform: rotate(7deg);
}

.heroArtCard--front {
    inset: 0 32px 28px 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.heroArtTop {
    width: 48%;
    height: 18px;
    border-radius: 999px;
    background: var(--glass-soft);
}

.heroArtLogo {
    width: 34%;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    opacity: .9;
}

.heroArtLink {
    height: 52px;
    border-radius: 16px;
    background: var(--glass-soft);
    border: 1px solid var(--border-soft);
}

.heroArtLink--short {
    width: 72%;
}

/* =========================================================
   SQUIDLY — MARKETING FEATURES
   ========================================================= */

#upgrade.marketingFeatures {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 90px 0 80px;
}


/* ---------- INTRO ---------- */

#upgrade .marketingFeaturesIntro {
    max-width: 720px;
    margin: 0 0 38px;
}

#upgrade .marketingEyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

#upgrade .marketingFeaturesIntro h2 {
    margin: 0 0 14px;
    max-width: 680px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 650;
}

#upgrade .marketingFeaturesIntro > p:not(.marketingEyebrow) {
    max-width: 650px;
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.72;
}


/* ---------- GRID ---------- */

#upgrade .marketingFeatureGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}


/* ---------- CARDS ---------- */

#upgrade .marketingFeatureCard {
    position: relative;
    min-width: 0;
    min-height: 220px;
    padding: 22px 22px 24px;
    box-sizing: border-box;

    background: var(--glass-50);
    border: 1px solid var(--bg);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    
    box-shadow:
        0 14px 24px -22px var(--text);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

#upgrade .marketingFeatureCard:hover {
    transform: translateY(-3px);

    box-shadow:
        0 20px 30px -22px rgba(0, 0, 0, 0.42);

    border-color: rgba(0, 0, 0, 0.08);
}


/* ---------- ICON ---------- */

#upgrade .marketingFeatureIcon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    margin-bottom: 20px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.55);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.45),
        0 6px 14px -10px rgba(0, 0, 0, 0.45);
}

#upgrade .marketingFeatureIcon i {
    font-size: 16px;
    color: var(--accent);
}


/* ---------- CARD COPY ---------- */

#upgrade .marketingFeatureCard h3 {
    margin: 0 0 10px;

    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.015em;
}

#upgrade .marketingFeatureCard p {
    margin: 0;

    font-size: 14px;
    line-height: 1.62;
    opacity: 0.7;
}


/* ---------- FOOT ---------- */

#upgrade .marketingFeatureFoot {
    display: flex;
    align-items: center;

    margin-top: 24px;
    padding: 18px 20px;

    border-radius: 12px;
    background: rgba(0, 0, 0, 0.035);
}

#upgrade .marketingFeatureFoot p {
    margin: 0;

    font-size: 14px;
    line-height: 1.6;
    opacity: 0.76;
}

#upgrade .marketingFeatureFoot a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

#upgrade .marketingFeatureFoot a:hover {
    text-decoration: underline;
}



/* =========================================================
   SQUIDLY — PAGE CUSTOMIZER
   ========================================================= */

#toolWrap {
    width: 350px;
    flex: 0 0 350px;

    padding: 18px;

    box-sizing: border-box;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--border-color, rgba(0,0,0,.12)) 80%,
            transparent
        );

    border-radius: 18px;

    background:
        color-mix(
            in srgb,
            var(--panel-bg, #fff) 97%,
            transparent
        );

    box-shadow:
        0 18px 34px -28px
        rgba(20, 40, 42, .42);
}


/* =========================================================
   HEADER + TABS
   ========================================================= */

#toolWrap .builderHeader {
    display: grid;
    gap: 13px;

    margin: 0 0 20px;
    padding-bottom: 15px;

    border-bottom:
        1px solid
        color-mix(
            in srgb,
            var(--border-color, rgba(0,0,0,.12)) 65%,
            transparent
        );
}

#toolWrap .builderHeader h2 {
    margin: 0;

    font-size: 18px;
    line-height: 1;
    letter-spacing: -.025em;
}


/* ---------- TAB CONTROL ---------- */

#toolWrap .modeTabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 3px;

    padding: 4px;

    border-radius: 12px;

    background:
        color-mix(
            in srgb,
            var(--muted, #777) 8%,
            transparent
        );
}

#toolWrap .modeTabs .tab {
    min-width: 0;
    min-height: 34px;

    padding: 0 8px;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: var(--muted, #777);

    font: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .025em;
    text-transform: lowercase;

    cursor: pointer;

    transition:
        background-color .16s ease,
        color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

#toolWrap .modeTabs .tab:hover {
    color: inherit;
}

#toolWrap .modeTabs .tab.active {
    background: var(--panel-bg, #fff);
    color: var(--accent);

    box-shadow:
        0 4px 12px -8px rgba(0,0,0,.45);
}


/* =========================================================
   TAB PANELS
   ========================================================= */

#toolWrap .tabPanel {
    display: none;
    grid-template-columns:
        minmax(0, .78fr)
        minmax(0, 1.22fr);

    gap: 11px 12px;
    align-items: center;
}

#toolWrap #advancedTab {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
}

#toolWrap #advancedTab > label {
    font-size: 11px;
}

#toolWrap .tabPanel.is-active,
#toolWrap #advancedTab.is-active {
    display: grid;
}


/* Generic labels */

#toolWrap .tabPanel > label {
    min-width: 0;

    color: inherit;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
}

#toolWrap .inputSubtle {
    color: var(--muted, #777);

    font-size: 9px;
    font-weight: 450;
}


/* =========================================================
   TEXT + URL INPUTS
   ========================================================= */

#toolWrap input[type="text"],
#toolWrap input[type="url"],
#toolWrap select {
    width: 100%;
    min-width: 0;
    min-height: 38px;

    padding: 0 10px;

    box-sizing: border-box;

    border:
        1px solid
        var(--border-color, rgba(0,0,0,.13));

    border-radius: 9px;

    outline: none;

    background:
        color-mix(
            in srgb,
            var(--panel-bg, #fff) 97%,
            transparent
        );

    color: inherit;

    font: inherit;
    font-size: 11px;

    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background-color .16s ease;
}

#toolWrap select {
    cursor: pointer;
}

#toolWrap input[type="text"]:focus,
#toolWrap input[type="url"]:focus,
#toolWrap select:focus {
    border-color:
        color-mix(
            in srgb,
            var(--accent) 65%,
            transparent
        );

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--accent) 10%,
            transparent
        );
}

#toolWrap input::placeholder,
#toolWrap textarea::placeholder {
    color: var(--muted, #777);
    opacity: .52;
}


/* =========================================================
   NOTES
   ========================================================= */

#toolWrap .inputNote {
    grid-column: 1 / -1;

    margin: -5px 0 5px;

    color: var(--muted, #777);

    font-size: 9px;
    line-height: 1.45;
    font-weight: 450;
    text-align: right;
}


/* =========================================================
   SLUG / PUBLIC URL
   ========================================================= */

#toolWrap .suffixLab {
    grid-column: 1 / -1;

    margin-top: 4px;
}

#toolWrap .slugRow {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    overflow: hidden;

    border:
        1px solid
        var(--border-color, rgba(0,0,0,.13));

    border-radius: 10px;

    background: var(--panel-bg, #fff);

    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}

#toolWrap .slugRow:focus-within {
    border-color:
        color-mix(
            in srgb,
            var(--accent) 65%,
            transparent
        );

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--accent) 10%,
            transparent
        );
}

#toolWrap .slugRow-span {
    align-self: stretch;

    display: flex;
    align-items: center;

    padding: 0 9px;

    border-right:
        1px solid
        var(--border-color, rgba(0,0,0,.1));

    background:
        color-mix(
            in srgb,
            var(--accent) 6%,
            transparent
        );

    color: var(--muted, #777);

    font-size: 9px;
    white-space: nowrap;
}

#toolWrap #slugInput {
    width: 100%;
    min-height: 38px;

    margin: 0;
    padding: 0 8px;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    background: transparent;
}

#toolWrap #slugInput:focus {
    box-shadow: none;
}

#toolWrap #checkSlugBtn {
    align-self: stretch;

    margin: 0;
    padding: 0 10px;

    border: 0;
    border-left:
        1px solid
        var(--border-color, rgba(0,0,0,.1));

    background:
        color-mix(
            in srgb,
            var(--accent) 10%,
            transparent
        );

    color: var(--accent);

    font: inherit;
    font-size: 9px;
    font-weight: 750;

    cursor: pointer;

    transition:
        background-color .15s ease,
        color .15s ease;
}

#toolWrap #checkSlugBtn:hover {
    background:
        color-mix(
            in srgb,
            var(--accent) 18%,
            transparent
        );
}

#toolWrap #slugStatus {
    min-height: 13px;

    margin-top: -5px;
}


/* =========================================================
   FILE UPLOADS
   ========================================================= */

#toolWrap input[type="file"] {
    width: 100%;
    min-width: 0;

    padding: 5px;

    box-sizing: border-box;

    border:
        1px dashed
        color-mix(
            in srgb,
            var(--accent) 25%,
            var(--border-color, rgba(0,0,0,.13))
        );

    border-radius: 9px;

    background:
        color-mix(
            in srgb,
            var(--accent) 3%,
            var(--panel-bg, #fff)
        );

    color: var(--muted, #777);

    font-size: 8px;

    cursor: pointer;
}

#toolWrap input[type="file"]::file-selector-button {
    margin-right: 7px;
    padding: 7px 8px;

    border: 0;
    border-radius: 7px;

    background:
        color-mix(
            in srgb,
            var(--accent) 12%,
            transparent
        );

    color: var(--accent);

    font: inherit;
    font-size: 8px;
    font-weight: 700;

    cursor: pointer;
}

#toolWrap input[type="file"]::file-selector-button:hover {
    background:
        color-mix(
            in srgb,
            var(--accent) 19%,
            transparent
        );
}


/* =========================================================
   COLOR INPUTS
   ========================================================= */

#toolWrap input[type="color"] {
    width: 100%;
    height: 38px;

    padding: 4px;

    box-sizing: border-box;

    border:
        1px solid
        var(--border-color, rgba(0,0,0,.13));

    border-radius: 9px;

    background: var(--panel-bg, #fff);

    cursor: pointer;
}

#toolWrap input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

#toolWrap input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 6px;
}

#toolWrap input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 6px;
}


/* =========================================================
   TYPOGRAPHY TAB
   ========================================================= */

#toolWrap #typographyTab {
    align-content: start;
}


/* =========================================================
   ADVANCED / CUSTOM CSS
   ========================================================= */

#toolWrap #customCSS {
    width: 100%;
    min-height: 260px;

    padding: 12px;

    box-sizing: border-box;

    resize: vertical;

    border:
        1px solid
        var(--border-color, rgba(0,0,0,.13));

    border-radius: 11px;

    outline: none;

    background:
        color-mix(
            in srgb,
            var(--panel-bg, #fff) 94%,
            #000 6%
        );

    color: inherit;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 10px;
    line-height: 1.55;

    tab-size: 2;

    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}

#toolWrap #customCSS:focus {
    border-color:
        color-mix(
            in srgb,
            var(--accent) 60%,
            transparent
        );

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--accent) 9%,
            transparent
        );
}


/* =========================================================
   SAVE BAR
   ========================================================= */

#toolWrap .saveBar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;

    margin-top: 20px;
    padding-top: 15px;

    border-top:
        1px solid
        color-mix(
            in srgb,
            var(--border-color, rgba(0,0,0,.12)) 65%,
            transparent
        );
}

#toolWrap .saveBar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 38px;
    padding: 0 14px;

    border: 0;
    border-radius: 9px;

    font: inherit;
    font-size: 10px;
    font-weight: 750;

    cursor: pointer;

    transition:
        transform .14s ease,
        background-color .14s ease,
        box-shadow .14s ease,
        opacity .14s ease;
}

#toolWrap #savePageBtn {
    background:
        color-mix(
            in srgb,
            var(--accent) 12%,
            transparent
        );

    color: var(--accent);
}

#toolWrap #publishPageBtn {
    background: var(--accent);
    color: #fff;

    box-shadow:
        0 9px 18px -12px
        color-mix(
            in srgb,
            var(--accent) 80%,
            #000
        );
}

#toolWrap .saveBar button:hover {
    transform: translateY(-1px);
}

#toolWrap #savePageBtn:hover {
    background:
        color-mix(
            in srgb,
            var(--accent) 20%,
            transparent
        );
}

#toolWrap #publishPageBtn:hover {
    box-shadow:
        0 13px 22px -13px
        color-mix(
            in srgb,
            var(--accent) 85%,
            #000
        );
}

#toolWrap .saveBar button:active {
    transform: translateY(0);
}

#toolWrap .saveBar button:disabled {
    cursor: not-allowed;
    opacity: .4;
    transform: none;
}




/* =========================================================
   SQUIDLY HELP SLIDER — APP-SPECIFIC VISUALS
   ========================================================= */


/* ---------------------------------------------------------
   SLIDE 1 — CREATE A SQUIDLIST
   --------------------------------------------------------- */

.helpVisual--squidlist {
    align-items: stretch;
}


/* ---------------------------------------------------------
   SLIDE 2 — LINKS
   --------------------------------------------------------- */

.helpVisual--links {
    display: grid;
    align-content: center;
}

.helpLinkDemo {
    position: relative;
    z-index: 1;

    display: grid;
    gap: 8px;

    width: 100%;
}

.helpLinkRow {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 10px;

    padding: 10px 11px;

    border: 1px solid
        var(--border-color, rgba(0, 0, 0, .12));

    border-radius: 11px;

    background: var(--panel-bg, #fff);

    box-shadow:
        0 7px 18px rgba(20, 40, 42, .055);
}

.helpLinkRow--muted {
    opacity: .55;
}

.helpLinkThumb {
    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;

    border-radius: 9px;

    background:
        color-mix(
            in srgb,
            var(--accent) 11%,
            transparent
        );

    color: var(--accent);

    font-size: 11px;
}

.helpLinkCopy {
    display: grid;
    gap: 2px;

    min-width: 0;
}

.helpLinkCopy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 10px;
    font-weight: 650;
}

.helpLinkCopy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--muted, #777);

    font-size: 8px;
}


/* ---------------------------------------------------------
   SLIDE 3 — STYLE
   --------------------------------------------------------- */

.helpVisual--style {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(125px, .75fr);

    align-items: stretch;
    gap: 12px;
}

.helpStylePanel,
.helpStylePreview {
    position: relative;
    z-index: 1;

    border: 1px solid
        var(--border-color, rgba(0, 0, 0, .12));

    border-radius: 14px;

    background: var(--panel-bg, #fff);
}

.helpStylePanel {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;

    padding: 13px;
}

.helpStyleColors {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    gap: 7px;

    padding-bottom: 4px;
}

.helpStyleColors span {
    width: 22px;
    height: 22px;

    border: 2px solid
        color-mix(
            in srgb,
            var(--panel-bg, #fff) 90%,
            transparent
        );

    border-radius: 50%;

    box-shadow:
        0 0 0 1px
        var(--border-color, rgba(0, 0, 0, .12));
}

.helpStyleSetting {
    display: grid;
    gap: 2px;

    padding: 8px 9px;

    border-radius: 9px;

    background:
        color-mix(
            in srgb,
            var(--accent) 6%,
            transparent
        );
}

.helpStyleSetting small {
    color: var(--muted, #777);

    font-size: 7px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.helpStyleSetting strong {
    font-size: 10px;
    font-weight: 650;
}

.helpStylePreview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 14px;

    background:
        linear-gradient(
            150deg,
            color-mix(
                in srgb,
                var(--accent) 16%,
                var(--panel-bg, #fff)
            ),
            var(--panel-bg, #fff)
        );
}

.helpStyleAvatar {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: var(--accent);
    color: #fff;

    font-size: 12px;
}

.helpStylePreview > strong {
    margin-bottom: 3px;

    font-size: 10px;
}

.helpStylePreview > span {
    width: 90%;
    height: 17px;

    border-radius: 999px;

    background:
        color-mix(
            in srgb,
            var(--accent) 15%,
            var(--panel-bg, #fff)
        );
}


/* ---------------------------------------------------------
   SLIDE 4 — PREVIEW + PUBLISH
   --------------------------------------------------------- */

.helpVisual--preview {
    justify-content: center;
    gap: 22px;
}

.helpPhone {
    position: relative;
    z-index: 1;

    width: 118px;
    padding: 7px;

    border: 2px solid
        color-mix(
            in srgb,
            currentColor 70%,
            transparent
        );

    border-radius: 20px;

    background:
        color-mix(
            in srgb,
            var(--panel-bg, #fff) 96%,
            transparent
        );

    box-shadow:
        0 12px 26px rgba(20, 40, 42, .12);
}

.helpPhoneSpeaker {
    width: 28px;
    height: 3px;

    margin: 1px auto 6px;

    border-radius: 999px;

    background: currentColor;
    opacity: .18;
}

.helpPhoneScreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

    min-height: 150px;

    padding: 12px 8px;

    border-radius: 13px;

    background:
        color-mix(
            in srgb,
            var(--accent) 10%,
            var(--panel-bg, #fff)
        );
}

.helpPhoneLogo {
    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: var(--accent);
    color: #fff;

    font-size: 9px;
}

.helpPhoneScreen > strong {
    margin-bottom: 3px;

    font-size: 9px;
}

.helpPhoneLink {
    width: 90%;

    padding: 6px 5px;

    border-radius: 999px;

    background: var(--panel-bg, #fff);

    text-align: center;

    font-size: 7px;
    font-weight: 650;
}

.helpPreviewControls {
    position: relative;
    z-index: 1;

    display: grid;
    gap: 8px;

    min-width: 140px;
}

.helpPreviewControls > div {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 11px;

    border: 1px solid
        var(--border-color, rgba(0, 0, 0, .12));

    border-radius: 10px;

    background: var(--panel-bg, #fff);

    font-size: 9px;
    font-weight: 600;
}

.helpPreviewControls i {
    width: 15px;

    color: var(--accent);

    text-align: center;
}

.helpPreviewControls .helpPublishBadge {
    border-color:
        color-mix(
            in srgb,
            var(--accent) 25%,
            transparent
        );

    background:
        color-mix(
            in srgb,
            var(--accent) 10%,
            transparent
        );

    color: var(--accent);
}


/* ---------------------------------------------------------
   SLIDE 5 — SHARE + EMBED
   --------------------------------------------------------- */

.helpVisual--share {
    display: grid;
    align-content: center;
    gap: 10px;
}

.helpShareUrl,
.helpEmbedDemo {
    position: relative;
    z-index: 1;
}

.helpShareUrl {
    display: grid;
    gap: 5px;
}

.helpShareUrl > small {
    color: var(--muted, #777);

    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.helpShareUrl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 10px 12px;

    border: 1px solid
        var(--border-color, rgba(0, 0, 0, .12));

    border-radius: 11px;

    background: var(--panel-bg, #fff);
}

.helpShareUrl strong {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--accent);

    font-size: 11px;
}

.helpShareUrl span {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;

    flex: 0 0 auto;

    border-radius: 8px;

    background:
        color-mix(
            in srgb,
            var(--accent) 10%,
            transparent
        );

    color: var(--accent);

    font-size: 9px;
}

.helpShareOptions {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 7px;
}

.helpShareOption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px;

    border-radius: 9px;

    background:
        color-mix(
            in srgb,
            var(--accent) 8%,
            transparent
        );

    font-size: 8px;
    font-weight: 650;
}

.helpShareOption i {
    color: var(--accent);
}

.helpEmbedDemo {
    display: flex;
    align-items: center;
    gap: 4px;

    padding: 8px 10px;

    border-radius: 9px;

    background:
        color-mix(
            in srgb,
            currentColor 5%,
            var(--panel-bg, #fff)
        );

    overflow: hidden;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 8px;
    white-space: nowrap;
}

.helpEmbedDemo span {
    color: var(--muted, #777);
}

.helpEmbedDemo strong {
    overflow: hidden;
    text-overflow: ellipsis;

    color: var(--accent);

    font-weight: 500;
}



/* =========================
   SQUIDLY APP
   ========================= */
   
.builderPanel {
    padding: 10px;
    margin: 0 auto;
    text-align: left;
}

.builderHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.builderMain {
    background: #fffffff0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: calc(100vh - 300px);
    width: 100%;
    margin-right: 5px;
}

.addBtn {
    background: #118091;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 8px 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.linkList {
    list-style: none;
    padding: 0;
    margin: 0;
    height: calc(100% - 80px);
    overflow-y:scroll;
}

.linkItem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin-bottom: 8px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    transition: background .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
    color: var(--text);
}

.linkItem:hover {
    background: var(--glass-strong);
    border-color: var(--border);
}

.linkItem.dragging {
    opacity: 0.5;
    background: var(--accent-soft);
}

.linkItem input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 6px;
}

.modeTabs {
    display: flex;
    gap: 1.5px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: none;
    padding: 0 3px;
    width: calc(100% - 6px);
}

.modeTabs .tab {
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    color: var(--muted);
    padding: 6px 10px;
    cursor: pointer;
    margin: 0;
    width:33%;
}

.modeTabs .tab.active {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.tabPanel {
    margin-bottom: 15px;
}

#toolWrap {
  width: 340px;
  display: inline-block;
  border-left: .5px solid #118091;
  margin-left: 10px;
  padding: 10px;
  box-sizing: border-box;
}

#previewWrap {
    position: sticky;
    top: 30px;
    height: 400px;
    width: calc(100% - 390px);
    display: inline-block;
    margin: 20px;
    box-sizing: border-box;
    border: 16px solid rgba(255,255,255,.28);
    border-radius: 24px;
    background: var(--glass);
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    outline: 1px solid var(--border-soft);
}

html[data-theme="light"] #previewWrap {
    border-color: rgba(255,255,255,.5);
}

#previewWrap:before {
    content:'';
    position: absolute;
    bottom: -46px;
    height: 19px;
    width: 80px;
    background: linear-gradient(rgba(255,255,255,.55), rgba(0,0,0,.25));
    left: calc(50% - 40px);
    border-left: 1px solid rgba(255,255,255,.25);
    border-right: 1px solid rgba(0,0,0,.12);
    border-radius: 0 0 8px 8px;
    filter: invert(1);

}

#previewWrap:after {
    content: '';
    position: absolute;
    width: 120px;
    height: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(0,0,0,.28));
    bottom: -56px;
    left: calc(50% - 60px);
    border-radius: 10px 10px 4px 4px;
    border-right: 1px solid #000;
    border-left: 1px solid #6f5e5e;
    border-top: 1px solid #b2b2b2;
    border-bottom: 1px solid #000;
    border: 1px solid rgba(255,255,255,.12);
    filter: invert(1);
}

#previewWrap iframe {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    border: none;
    margin: 1px;
    border-radius: 2px;
    overflow-y: scroll;
}

.frameWrap {
    border: 1px solid var(--border-soft);
    background: rgba(255,255,255,.82);
    border-radius: 8px;
    width: calc(100% - 2px);
    height: calc(100% - 3px);
    box-sizing: border-box;
    overflow: hidden;
}

html[data-theme="light"] .frameWrap {
    background: rgba(255,255,255,.92);
}

.saveBar {
    text-align: right;
    margin-top: 15px;
}

.saveBar button {
    background: #118091;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 18px 16px 23px;
}

.handle {
    font-size: 36px;
    color: var(--mainColor);
    margin-right: 10px;
    cursor: grab;
}

.linkText {
    display: flex;
    flex-direction: column;
    gap:.45rem;
    flex:1;
    padding:4px 0;
}

.linkTitleInput,
.linkURLInput{
    width:100%;
    box-sizing:border-box;
    border:none;
    background:transparent;
    padding:.35rem .5rem;
    border-radius:8px;
    outline:none;
}

.linkTitleInput:focus,
.linkURLInput:focus{
    background:rgba(255,255,255,.08);
}

.editable {
    outline: none;
    padding: 4px 6px;
    border-radius: 8px;
    cursor: text;
    transition: background .12s var(--ease), border-color .12s var(--ease);
}

.editable:focus {
    background: var(--glass-strong);
    border: 1px solid var(--border);
}

.linkURL {
    font-size: 13px;
    color: var(--muted);
}

.linkActions {
    display: flex;
    align-items: center;
    gap: 0px;
}

.linkActions button {
    background:none !important;
    padding: 0;
}

.linkActions p {
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.iconBtn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.75;
    color: var(--text);
    transition: opacity .2s var(--ease), transform .12s var(--ease);
}

.iconBtn i {
    background: var(--btnColor) !important;
    padding: 10px 8px;
    border-radius: 50%;
}

.iconBtn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.featured .linkTitle {
    font-weight: 700;
    color: var(--accent);
}

.hiddenLink {
    opacity: 0.45;
}

.builderLayout {
    display: flex;
    align-items: flex-start;
    gap: 35px;
}

/* Mobile preview area */
#mobilePreview {
    flex: 0 0 270px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: calc(100vh - 260px);
    flex-direction: column;
    gap: 6px;
}

.phoneFrame {
    width: 260px;
    height: 100%;
    border: 10px solid rgba(22,26,30,.85);
    border-radius: 30px;
    background: var(--glass);
    box-shadow: var(--shadow-lg);
    box-shadow: none !important;
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.phoneScreen {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,.88);
    padding: 25px 15px;
    overflow-y: auto;
    box-sizing: border-box;
}

html[data-theme="light"] .phoneScreen {
    background: rgba(255,255,255,.94);
}

/* Previewed links */
.previewLink {
    background: var(--glass-strong);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
    transition: all .2s var(--ease);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
}
.previewLink:hover {
    background: var(--btn-bg-hover);
    transform: translateY(-1px);
}
.previewLink.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}
.previewLink.hiddenLink {
    opacity: 0.3;
}

.linkList input {
    max-width: 66px;
    height: 20px;
    margin: 0 5px;
}
.visCheck { max-width: 80px !important; }
.linkText input { 
    max-width: 170px;
    min-height: 37px !important;
    margin: 6px;
}

.visCheck input {
    width: 17px;
    display: flex;
    margin-left: calc(50% - 9px);
    filter: grayscale(0.9) brightness(1.2) sepia(.1);
}

.visCheck p {
    font-size: 13.8px;
    font-weight: 400;
    margin: 6px 0 0 0;
}

.visCheck p span {
    font-size: 11px;
    line-height: 12.5px;
    display: inline-block;
    color: var(--accent-strong);
    margin-top: 2px;
}

.publicLinkWrap,
html[data-theme="light"] .publicLinkWrap {
    width: 530px;
    background: var(--accent-soft);
    padding: 1px 4px;
    line-height: 1px;
    font-size: 14px;
    border: 1px solid #c0c4c6;
    right: 0;
    position: absolute;
    margin-right: 23px;
    border-radius: 22px;
    overflow: hidden;
    white-space: nowrap;
}

html[data-theme="dark"] .publicLinkWrap {
    background: #343239;
    border: 1px solid #7d6b48;
}

.displayBlock {
    background: #fffffff0;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.displayBlock h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #118091;
}

.displayBlock p {
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 10px;
}

.displayBlock input,
.displayBlock textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccd5d8;
    border-radius: 6px;
    padding: 10px;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    background: #f8fbfb;
    margin-bottom: 10px;
}

.displayBlock textarea {
    min-height: 120px;
    resize: vertical;
}

#livePreToggle {
    display: inline-block;
    margin: 0;
}

.previewInt {
    position: relative;
    width: 104px;
    height: 34px;
    border-radius: 999px;
    background: var(--glass-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    overflow: hidden;
    cursor: pointer;
}

#prevOn,
#prevOff {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 3;
    cursor: pointer;
}

#prevOn { left: 0; }
#prevOff { right: 0; }

#prevOn::before,
#prevOff::before {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--btnColorAlt);
    pointer-events: none;
    opacity: .85;
}

#prevOn::before {
    content: "basic";
}

#prevOff::before {
    content: "styled";
}

.togglePill {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 6px);
    height: calc(100% - 6px);
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    transition: transform .22s var(--ease);
    z-index: 1;
}

.previewInt.is-off .togglePill {
    transform: translateX(calc(100% + 5px));
}

.previewInt.is-styled .togglePill {
    transform: translateX(calc(100% + 6px));
}

/* basic preview */
.phoneScreen.preview-basic {
    background: rgba(255,255,255,.92);
}

/* styled preview shell content */
.phoneScreen.preview-styled {
    padding: 0;
    background: #fff;
    overflow-y: auto;
}

/* inner styled page */
.mobileStyledPage {
    min-height: 100%;
    padding: 24px 14px;
    box-sizing: border-box;
    background-attachment: scroll;
}

.mobileStyledPage .mobileLogoRow {
    display: flex;
    margin-bottom: 16px;
}

.mobileStyledPage .mobileLogoRow img {
    max-width: 96px;
    max-height: 96px;
    object-fit: contain;
}

.mobileStyledPage .mobileBrandTitle {
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.15;
    word-break: break-word;
}

.mobileStyledPage .mobileLinkBtn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    padding: 12px 14px;
    margin: 0 0 12px;
    transition: transform .2s ease;
}

.mobileStyledPage .mobileLinkBtn:hover {
    transform: translateY(-1px);
}

.mobileStyledPage .mobileLinkBtn.featured {
    font-weight: 700;
}

#viewsLoader img {
    filter: brightness(0) saturate(100%) invert(54%) sepia(13%) saturate(524%) hue-rotate(185deg) brightness(98%) contrast(93%);
    animation: loaderChame 1.4s ease-in-out infinite;
}

@keyframes loaderChame {
    0% { filter: brightness(0) saturate(100%) invert(54%) sepia(13%) saturate(524%) hue-rotate(185deg) brightness(98%) contrast(93%); }
    20% { filter: brightness(0) saturate(100%) invert(54%) sepia(13%) saturate(524%) hue-rotate(185deg) brightness(98%) contrast(93%); }
    
    25% { filter: brightness(0) saturate(100%) invert(51%) sepia(0%) saturate(2%) hue-rotate(326deg) brightness(101%) contrast(90%); }
    
    30% { filter: brightness(0) saturate(100%) invert(89%) sepia(26%) saturate(6240%) hue-rotate(343deg) brightness(97%) contrast(101%); }
    70% { filter: brightness(0) saturate(100%) invert(89%) sepia(26%) saturate(6240%) hue-rotate(343deg) brightness(97%) contrast(101%); }
    
    75% { filter: brightness(0) saturate(100%) invert(51%) sepia(0%) saturate(2%) hue-rotate(326deg) brightness(101%) contrast(90%); }
    
    80% { filter: brightness(0) saturate(100%) invert(54%) sepia(13%) saturate(524%) hue-rotate(185deg) brightness(98%) contrast(93%); }
    100% { filter: brightness(0) saturate(100%) invert(54%) sepia(13%) saturate(524%) hue-rotate(185deg) brightness(98%) contrast(93%); }
}





/* =========================
   FOR SQUIDLY
   ========================= */

#addBrandMat {
    position: fixed;
    transform: translate(-50%, -50%);
}

.tabPanel .brandized {
    font-size: 17px;
}

.builderHeader .brandized {
    font-size:28px;
}

.brandized .accented {
    font-size: 16.5px;
    transform: translate(0px, 0.5px);
}

#brands-profile {
    opacity: 0.9;
}

.previewNote{
    position:absolute;
    top:12px;
    left:12px;
    z-index:3;
    margin:0;
    padding:.55rem .8rem;
    border-radius:12px;
    font-size:.85rem;
    line-height:1.2;
    background:rgba(0,0,0,.72);
    color:#fff;
    pointer-events:none;
}

.draftLinkHint{
    margin-top:.6rem;
    padding:.7rem .8rem;
    border-radius:12px;
    background:rgba(255, 235, 150, .2);
    border:1px solid rgba(255, 220, 90, .45);
}

.draftLinkHint p{
    margin:0 0 .45rem;
    font-size:.88rem;
}

.draftLinkHint button{
    border:none;
    padding:.45rem .7rem;
    border-radius:999px;
    cursor:pointer;
}

.iconBtn i.animated{
    animation: pulse 1.2s infinite;
}

@keyframes pulse{
    0%{transform:scale(1)}
    50%{transform:scale(1.15)}
    100%{transform:scale(1)}
}

.previewLink,
.mobileLinkBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.previewLink.hasThumb,
.mobileLinkBtn.hasThumb {
    justify-content: flex-start;
}

.previewLink .linkThumb,
.mobileLinkBtn .linkThumb {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,.16);
}

.previewLink .linkThumb img,
.mobileLinkBtn .linkThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.previewLink .linkLabel,
.mobileLinkBtn .linkLabel {
    flex: 1 1 auto;
    display: block;
}

.previewLink.featured .linkLabel,
.mobileLinkBtn.featured .linkLabel {
    font-weight: 700;
}

.mobileLinkBtn {
    text-decoration: none;
}

.removeImageBtn i{
    opacity:.78;
}

.removeImageBtn:hover i{
    opacity:1;
}

.imageBtn i.hasImage{
    color: var(--accent, #5d6b8e);
}

.previewLink.animatedLink,
.mobileLinkBtn.animatedLink {
    animation: squidFloat 2.2s ease-in-out infinite;
}

@keyframes squidFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

.logoized {
    font-weight: 700;
    font-family: "Nunito", sans-serif;
    color: var(--btnColor);
}

.bNameLab {
    width: 40%;
    display: inline-block;
}

.bNameLab-brand {
    font-size: 17px;
}

.brandNameInput {
    display: inline-block;
    width: 58%;
}

.bSiteLab {
    font-size: 14px;
    width: 40%;
    display: inline-block;
}

.inputSubtle {
    font-size: 14px;
}

#baseUrlInput {
    width: 58%;
    display: inline-block;
}

.inputNote {
    font-size: 12.5px;
    font-weight: 400;
    margin: -6px 2px 23px 0;
    text-align: right;
}

.suffixLab {
    display: block;
    width: 100%;
    font-size: 17px;
    text-align: left;
    margin-left: 9px;
}

.suffixLab .bold {
    font-size: 17px;
    text-align: left;
}

.slugRow {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 10px;
}

.slugRow-span {
    font-size: 13px;
    letter-spacing: -0.2px;
}

#slugInput {
    width: calc(100% - 162px);
    margin: 12px 3px 10px 5px;
}

#checkSlugBtn {
    margin: 0 0 0 8px;
    padding: 9px 8px;
    font-size: 13px;
}

.bLogoLab {
    display: inline-block;
    width: 63px;
    text-align: left;
}

#logoUpload {
    display: inline-block;
    margin: 0 0 10px 0;
}

.logoAlLab {
    display: inline-block;
    width: 120px;
    text-align: left;
}

#logoAlign {
    width: 90px;
    font-size: 14px;
    padding: 4px 16px 7px;
    margin: 10px 82px 18px 0px;
}

#brandNameInput {
    display: inline-block;
    width: 58%;
    margin: 11px 0 7px 0;
}

.bgColorLab {
    text-align: left;
    width: 154px;
    display: inline-block;
}

#bgColorPicker {
    width: 78px;
    height: 38px;
    display: inline-block;
    margin: -8px 37px 15px 21px;
    transform: translate(0,6px);
}

.bgImgLab {
    display: inline-block;
    width: 95px;
    text-align: left;
    font-size: 15.5px;
}

#bgImageUpload {
    width: calc(100% - 126px);
    display: inline-block;
}

.brdStylLab {
    text-align: left;
    width: 130px;
    display: inline-block;
    font-size: 16px;
}

#borderStyle {
    display: inline-block;
    width: 105px;
    padding: 6px 15px 7px;
    margin: 5px 50px 23px 0;
    font-size: 14px;
}

.layStylLab {
    width: 122px;
    display: inline-block;
    text-align: left;
}

#layoutStyle {
    display: inline-block;
    width: 105px;
    padding: 6px 15px 7px;
    font-size: 14px;
    margin: 0 56px 0 0;
}



/* =========================
   DISPLAY + EMBED
   ========================= */

.displayPanel {
    padding: 4px 6px 10px;
}

.displayHeader {
    margin-bottom: 14px;
}

.displayIntro {
    margin: 4px 2px 0;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    font-weight: 400;
}

.displayGrid {
    display: grid;
    gap: 16px;
}

.displayBlock {
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 0;
    background: var(--panel-bg-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.displayBlockTop {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 10px;
}

.displayBlock h3 {
    margin: 0 0 6px;
    color: var(--text);
}

.displayBlock p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    font-weight: 400;
}

.displayBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--glass-soft);
    border: 1px solid var(--border-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.displayBlock input,
.displayBlock textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 12px 13px;
    font-family: var(--font-mono);
    font-size: 13px;
    background: rgba(255,255,255,.62);
    border: 1px solid var(--border);
    color: var(--text);
    margin: 0 0 12px;
}

html[data-theme="dark"] .displayBlock input,
html[data-theme="dark"] .displayBlock textarea {
    background: rgba(0,0,0,.18);
}

.displayBlock textarea {
    min-height: 120px;
    resize: vertical;
}

.displayActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.displayLinkBtn {
    text-decoration: none;
}

.displayStateNotice {
    margin-bottom: 16px;
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    background: var(--glass-soft);
    box-shadow: var(--shadow-sm);
}

.displayStateNotice.is-empty {
    background: rgba(116, 169, 184, 0.12);
    border-color: rgba(116, 169, 184, 0.28);
}

.displayStateNotice.is-warning {
    background: rgba(250, 172, 24, 0.12);
    border-color: rgba(250, 172, 24, 0.3);
}

.displayStateNotice.is-good {
    background: rgba(80, 170, 120, 0.10);
    border-color: rgba(80, 170, 120, 0.22);
}

.displayStateInner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.displayStateInner h3 {
    margin: 0 0 6px;
    text-align: left;
    font-size: 18px;
}

.displayStateInner p {
    margin: 0;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    font-weight: 400;
}

.displayStateActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.displayTips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.displayTip {
    padding: 14px 15px;
    border-radius: 16px;
    background: var(--glass-soft);
    border: 1px solid var(--border-soft);
}

.displayTip h4 {
    margin: 0 0 6px;
    text-align: left;
    font-size: 15px;
}

.displayTip p {
    margin: 0;
    text-align: left;
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
    font-weight: 400;
}

.is-disabled,
button.is-disabled,
a.is-disabled {
    opacity: .5;
    pointer-events: none;
}




/* =========================
   BRANDS VIEW
   ========================= */

#brandList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.brandCard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 18px;
    background: var(--panel-bg-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.brandCard.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow-sm);
}

.brandMeta {
    flex: 1 1 auto;
    min-width: 0;
}

.brandMetaTop {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.brandMeta h3 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
}

.brandSlug {
    margin: 0 0 10px;
    color: var(--muted);
    font-weight: 400;
    font-size: 14px;
}

.brandStats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brandStats span,
.brandStatus {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    border: 1px solid var(--border-soft);
    background: var(--glass-soft);
    color: var(--muted);
}

.brandStatus--draft {
    background: rgba(250, 172, 24, 0.12);
    border-color: rgba(250, 172, 24, 0.28);
    color: var(--text);
}

.brandStatus--published {
    background: rgba(80, 170, 120, 0.12);
    border-color: rgba(80, 170, 120, 0.28);
    color: var(--text);
}

.brandActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.brandActions a,
.brandActions button {
    min-height: 40px;
}

/* empty state */

.brandsEmptyState {
    margin: 14px 0 18px;
}

.brandsEmptyCard {
    border-radius: 22px;
    padding: 24px;
    background: var(--panel-bg-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    text-align: left;
}

.brandsEmptyEyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.brandsEmptyIntro h3 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.08;
    color: var(--text);
}

.brandsEmptyIntro p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    font-weight: 400;
    max-width: 62ch;
}

.brandsEmptyActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 20px;
}

.brandsEmptyTips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.brandsEmptyTip {
    padding: 14px 15px;
    border-radius: 16px;
    background: var(--glass-soft);
    border: 1px solid var(--border-soft);
}

.brandsEmptyTip h4 {
    margin: 0 0 6px;
    font-size: 15px;
    text-align: left;
}

.brandsEmptyTip p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
    font-weight: 400;
    text-align: left;
}



/* =========================
   LINKS EMPTY STATES
   ========================= */

.linksEmptyState {
    margin: 0 0 14px;
}

.linksEmptyCard {
    border-radius: 22px;
    padding: 22px;
    background: var(--panel-bg-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    text-align: left;
}

.linksEmptyEyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.linksEmptyIntro h3 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.08;
    color: var(--text);
}

.linksEmptyIntro p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    font-weight: 400;
    max-width: 60ch;
}

.linksEmptyActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 20px;
}

.linksEmptyTips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.linksEmptyTip {
    padding: 14px 15px;
    border-radius: 16px;
    background: var(--glass-soft);
    border: 1px solid var(--border-soft);
}

.linksEmptyTip h4 {
    margin: 0 0 6px;
    font-size: 15px;
    text-align: left;
}

.linksEmptyTip p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
    font-weight: 400;
    text-align: left;
}



/* =========================================================
   SQUIDLY — NEW SQUIDLIST MODAL
   ========================================================= */

#addBrandMat {
    width: min(520px, calc(100vw - 34px));
    max-height: min(760px, calc(100vh - 40px));

    padding: 32px 34px 28px;

    box-sizing: border-box;
    overflow-y: auto;
}


/* ---------- HEADER ---------- */

#addBrandMat .matHeader {
    margin: 30px 0 28px;

    font-size: clamp(25px, 4vw, 34px);
    line-height: 1;
    letter-spacing: -0.035em;
    font-weight: 650;
}


/* ---------- FIELD GROUPS ---------- */

#addBrandMat .prefGroup {
    display: grid;
    gap: 8px;

    margin-bottom: 19px;
}

#addBrandMat .prefGroup label {
    display: block;

    color: var(--text, inherit);

    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0.015em;
    text-transform: lowercase;
}

#addBrandMat .inputSubtle {
    margin-left: 3px;

    color: var(--muted, #777);

    font-size: 10px;
    font-weight: 450;
    letter-spacing: 0;
}


/* ---------- TEXT INPUTS ---------- */

#addBrandMat input[type="text"],
#addBrandMat input[type="url"] {
    width: 100%;
    min-height: 46px;

    padding: 0 13px;

    box-sizing: border-box;

    border:
        1px solid
        var(--border-color, rgba(0, 0, 0, .13));

    border-radius: 11px;

    outline: none;

    background:
        color-mix(
            in srgb,
            var(--panel-bg, #fff) 96%,
            transparent
        );

    color: inherit;

    font: inherit;
    font-size: 14px;

    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background-color .16s ease;
}

#addBrandMat input[type="text"]::placeholder,
#addBrandMat input[type="url"]::placeholder {
    color: var(--muted, #777);
    opacity: .55;
}

#addBrandMat input[type="text"]:focus,
#addBrandMat input[type="url"]:focus {
    border-color:
        color-mix(
            in srgb,
            var(--accent) 65%,
            transparent
        );

    background: var(--panel-bg, #fff);

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--accent) 12%,
            transparent
        );
}


/* ---------- FILE INPUTS ---------- */

#addBrandMat input[type="file"] {
    width: 100%;

    padding: 7px;

    box-sizing: border-box;

    border:
        1px dashed
        color-mix(
            in srgb,
            var(--accent) 30%,
            var(--border-color, rgba(0,0,0,.14))
        );

    border-radius: 11px;

    background:
        color-mix(
            in srgb,
            var(--accent) 4%,
            var(--panel-bg, #fff)
        );

    color: var(--muted, #777);

    font-size: 11px;

    cursor: pointer;
}

#addBrandMat input[type="file"]::file-selector-button {
    margin-right: 11px;
    padding: 8px 12px;

    border: 0;
    border-radius: 8px;

    background:
        color-mix(
            in srgb,
            var(--accent) 13%,
            transparent
        );

    color: var(--accent);

    font: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color .15s ease,
        transform .15s ease;
}

#addBrandMat input[type="file"]::file-selector-button:hover {
    background:
        color-mix(
            in srgb,
            var(--accent) 20%,
            transparent
        );
}


/* ---------- FIELD NOTE ---------- */

#addBrandMat .inputNote {
    margin: -1px 0 0;

    color: var(--muted, #777);

    font-size: 10px;
    line-height: 1.45;
}


/* ---------- PLAN / LIMIT NOTICE ---------- */

#addBrandMat .planNotice {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin: 26px 0 0;
    padding: 13px 15px;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--accent) 18%,
            transparent
        );

    border-radius: 12px;

    background:
        color-mix(
            in srgb,
            var(--accent) 7%,
            transparent
        );
}

#addBrandMat .planNotice::before {
    content: "";

    width: 7px;
    height: 7px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--accent);
}

#addBrandMat .planNotice p {
    flex: 1;

    margin: 0;

    font-size: 11px;
    line-height: 1.45;
    opacity: .78;
}

#addBrandMat .planNotice a {
    flex: 0 0 auto;

    color: var(--accent);

    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

#addBrandMat .planNotice a:hover {
    text-decoration: underline;
}


/* ---------- SAVE BAR ---------- */

#addBrandMat .saveBar {
    display: flex;
    justify-content: flex-end;

    margin-top: 24px;
    padding-top: 20px;

    border-top:
        1px solid
        color-mix(
            in srgb,
            var(--border-color, rgba(0,0,0,.12)) 70%,
            transparent
        );
}

#addBrandMat #createBrandBtn {
    min-width: 118px;
    min-height: 43px;

    padding: 0 20px;

    border: 0;
    border-radius: 10px;

    background: var(--accent);
    color: #fff;

    font: inherit;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .015em;

    cursor: pointer;

    box-shadow:
        0 10px 20px -13px
        color-mix(
            in srgb,
            var(--accent) 80%,
            #000
        );

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        opacity .15s ease;
}

#addBrandMat #createBrandBtn:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 24px -14px
        color-mix(
            in srgb,
            var(--accent) 85%,
            #000
        );
}

#addBrandMat #createBrandBtn:active {
    transform: translateY(0);
}

#addBrandMat #createBrandBtn:disabled {
    cursor: not-allowed;
    opacity: .45;
    box-shadow: none;
}


/* =========================================================
   OPTIONAL — FREE LIMIT STATE
   Add .is-limit-reached to #brandLimitNotice
   ========================================================= */

#addBrandMat .planNotice.is-limit-reached {
    border-color:
        color-mix(
            in srgb,
            #d87a24 30%,
            transparent
        );

    background:
        color-mix(
            in srgb,
            #d87a24 8%,
            transparent
        );
}

#addBrandMat .planNotice.is-limit-reached::before {
    background: #d87a24;
}

#addBrandMat .planNotice.is-limit-reached a {
    color: #b45c12;
}



/* =========================================================
   RESPONSIVE COMPLETION
   ========================================================= */

@media (max-width: 1000px) {

    #upgrade.marketingFeatures {
        padding: 72px 0 65px;
    }

    #upgrade .marketingFeatureGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #upgrade .marketingFeatureCard {
        min-height: 200px;
    }
}

@media (max-width: 900px) {
    .linksEmptyTips {
        grid-template-columns: 1fr;
    }

    .brandCard {
        flex-direction: column;
        align-items: flex-start;
    }

    .brandActions {
        justify-content: flex-start;
        width: 100%;
    }

    .brandsEmptyTips {
        grid-template-columns: 1fr;
    }
    
    .displayBlockTop,
    .displayStateInner {
        flex-direction: column;
        align-items: flex-start;
    }

    .displayTips {
        grid-template-columns: 1fr;
    }
    
        /* -----------------------------------------
       VIEW ONE — LINKS
       ----------------------------------------- */

    #view-one .builderLayout {
        flex-direction: column;
        gap: 20px;
    }

    #view-one #mobilePreview {
        width: 100%;
        height: auto;
        min-height: 0;

        flex: none;

        padding: 10px 0 4px;
    }

    #view-one .phoneFrame {
        width: min(270px, calc(100vw - 70px));
        height: 500px;
        max-height: 65vh;
    }

    #view-one .builderMain {
        width: 100%;
        height: auto;
        min-height: 0;

        margin: 0;
        padding: 16px;

        box-sizing: border-box;
    }

    #view-one .linkList {
        height: auto;
        max-height: none;

        overflow: visible;
    }


    /* -----------------------------------------
       VIEW TWO — PAGE DESIGN
       ----------------------------------------- */

    #view-two .pageInt {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    #view-two #previewWrap {
        position: relative;
        top: auto;

        display: block;

        width: 100%;
        height: min(520px, 62vh);

        margin: 0 0 55px;

        box-sizing: border-box;
    }

    #view-two #toolWrap {
        display: block;

        width: 100%;
        max-width: none;

        margin: 0;

        border-left: 0;
    }
    
    #addBrandMat {
        transform: scale(1);
    }
}

@media (max-width: 800px) {

    #toolWrap {
        width: 100%;
        flex-basis: auto;

        border-radius: 15px;
    }
}

@media (max-width: 620px) {

    #upgrade.marketingFeatures {
        width: min(100% - 28px, 1180px);
        padding: 56px 0 50px;
    }

    #upgrade .marketingFeaturesIntro {
        margin-bottom: 28px;
    }

    #upgrade .marketingFeaturesIntro h2 {
        font-size: clamp(28px, 9vw, 38px);
    }

    #upgrade .marketingFeaturesIntro > p:not(.marketingEyebrow) {
        font-size: 15px;
    }

    #upgrade .marketingFeatureGrid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    #upgrade .marketingFeatureCard {
        min-height: 0;
        padding: 20px;
    }

    #upgrade .marketingFeatureIcon {
        margin-bottom: 15px;
    }

    #upgrade .marketingFeatureFoot {
        margin-top: 16px;
        padding: 16px 18px;
    }

    .helpVisual {
        min-height: 160px;
        padding: 13px;
    }

    .helpMiniForm {
        grid-template-columns: 1fr;
    }

    .helpVisual--style {
        grid-template-columns: 1fr;
    }

    .helpStylePreview {
        min-height: 120px;
    }

    .helpVisual--preview {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .helpPreviewControls {
        min-width: 0;
        flex: 1;
    }

    .helpShareOptions {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    #view-one .builderHeader {
        align-items: center;
        gap: 10px;
    }

    #view-one .linkItem {
        flex-wrap: wrap;
    }

    #view-one .linkText {
        min-width: 0;
        flex: 1 1 calc(100% - 60px);
    }

    #view-one .linkActions {
        width: 100%;

        justify-content: flex-end;
        flex-wrap: wrap;

        padding-top: 5px;
    }

    #view-two #previewWrap {
        height: 430px;

        border-width: 10px;
        border-radius: 18px;
    }

    #view-two #previewWrap::before,
    #view-two #previewWrap::after {
        display: none;
    }
}

@media (max-width: 560px) {

    #addBrandMat {
        width: calc(100vw - 22px);
        max-height: calc(100vh - 22px);

        padding: 27px 20px 22px;
    }

    #addBrandMat .matHeader {
        margin-bottom: 23px;
    }

    #addBrandMat .prefGroup {
        margin-bottom: 17px;
    }

    #addBrandMat .planNotice {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px 10px;
    }

    #addBrandMat .planNotice a {
        margin-left: 17px;
    }

    #addBrandMat .saveBar {
        margin-top: 21px;
    }

    #addBrandMat #createBrandBtn {
        width: 100%;
    }
}

@media (max-width: 480px) {

    #toolWrap {
        padding: 14px;
    }

    #toolWrap .tabPanel {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    #toolWrap .tabPanel > label {
        margin-top: 7px;
    }

    #toolWrap .inputNote {
        text-align: left;
    }

    #toolWrap .saveBar button {
        flex: 1;
    }
}

