/* adpiper.onl/css/piperStyles.css */

:root,
html[data-theme="light"] {
    --themeHeaders: "Work Sans", sans-serif;
    --themeBody: "Work Sans", system-ui, sans-serif;
    --themeH2: "Work Sans", sans-serif;
    --font-ui: "Work Sans", system-ui, sans-serif;
    --themeFontFam: "Work Sans", system-ui, sans-serif;
    --font-mono: "Source Code Pro", monospace;
    --bg: linear-gradient(#f3f6f8, #e7edf1, #dfe7ec);
    --text: #1c242a;
    --muted: #66727a;
    --glass: rgba(255,255,255,.68);
    --glass-strong: rgba(255,255,255,.84);
    --glass-soft: rgba(255,255,255,.44);
    --border: rgba(35,47,55,.12);
    --border-soft: rgba(35,47,55,.07);
    --shadow-lg: 0 24px 70px rgba(31,44,53,.15);
    --shadow-md: 0 14px 36px rgba(31,44,53,.11);
    --shadow-sm: 0 8px 22px rgba(31,44,53,.08);
    --input-bg: rgba(255,255,255,.82);
    --input-border: rgba(35,47,55,.14);
    --input-text: #1c242a;
    --placeholder: #8b969d;
    --accent: #555f78;
    --accent-strong: #343e58;
    --accent-soft: rgba(85,95,120,.11);
    --warning: #ad7418;
    --danger: #a24c4c;
    --success: #3f7862;
    --panel-bg: var(--glass);
    --panel-bg-strong: var(--glass-strong);
    --card-bg: rgba(255,255,255,.62);
    --modalBG: rgba(255,255,255,.42);
    --mainColor: #828ca5;
    --invert: #faac18;
    --baseColor: #fff;
    --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://adpiper.onl/images/fabric-portland-adsPiper-ads-manager.jpg');
}

html[data-theme="dark"] {
    --bg: linear-gradient(#343a42, #2c323a, #20262d);
    --text: #f1f4f6;
    --muted: #b8c0c7;
    --glass: rgba(255,255,255,.075);
    --glass-strong: rgba(255,255,255,.12);
    --glass-soft: rgba(255,255,255,.045);
    --border: rgba(255,255,255,.16);
    --border-soft: rgba(255,255,255,.09);
    --shadow-lg: 0 24px 70px rgba(0,0,0,.38);
    --shadow-md: 0 14px 36px rgba(0,0,0,.28);
    --shadow-sm: 0 8px 22px rgba(0,0,0,.2);
    --input-bg: rgba(0,0,0,.18);
    --input-border: rgba(255,255,255,.18);
    --input-text: #f5f6f7;
    --placeholder: #a1a9b0;
    --accent: #faac18;
    --accent-strong: #ffd272;
    --accent-soft: rgba(250,172,24,.14);
    --warning: #f1bd5b;
    --danger: #ed8c8c;
    --success: #7fc3a3;
    --panel-bg: var(--glass);
    --panel-bg-strong: var(--glass-strong);
    --card-bg: rgba(255,255,255,.06);
    --modalBG: rgba(0,0,0,.38);
    --mainColor: #faac18;
    --invert: #828ca5;
    --baseColor: #000;
    --baseColor018: rgba(0,0,0,.18);
    --baseColor060: rgba(25,25,31,.56);
    --baseColor078: rgba(0,0,0,.78);
    --footColor: #faac18;
    --subMenuFake: #000;
    --matFake: #191b20;
}

html[data-theme="classic"] {
    --bg: linear-gradient(#ebe0c6, #ddd0b1, #cab990);
    --text: #372f25;
    --muted: #71624e;
    --glass: rgba(255,249,231,.62);
    --glass-strong: rgba(255,249,231,.8);
    --glass-soft: rgba(255,249,231,.4);
    --border: rgba(78,60,39,.16);
    --border-soft: rgba(78,60,39,.09);
    --input-bg: rgba(255,250,236,.76);
    --input-border: rgba(78,60,39,.18);
    --input-text: #372f25;
    --placeholder: #897b68;
    --accent: #705a3c;
    --accent-strong: #4d3b27;
    --accent-soft: rgba(112,90,60,.12);
    --warning: #9c6d18;
    --danger: #944b42;
    --success: #53775a;
    --panel-bg: var(--glass);
    --panel-bg-strong: var(--glass-strong);
    --card-bg: rgba(255,249,231,.58);
    --modalBG: rgba(255,249,231,.5);
}

.fabricSmallApp--piper .appContainer,
.fabricSmallApp--piper .appViews,
.fabricSmallApp--piper .appView { min-width: 0; }

.fabricSmallApp--piper .appView { color: var(--text); }
.fabricSmallApp--piper .appView h1,
.fabricSmallApp--piper .appView h2,
.fabricSmallApp--piper .appView h3 { color: var(--text); }
.fabricSmallApp--piper .appView p,
.fabricSmallApp--piper .appView small { color: var(--muted); }

.fabricSmallApp--piper label {
    gap: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .015em;
}

.fabricSmallApp--piper input,
.fabricSmallApp--piper select,
.fabricSmallApp--piper textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--input-text);
    padding: 11px 12px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.fabricSmallApp--piper textarea { resize: vertical; }
.fabricSmallApp--piper input:focus,
.fabricSmallApp--piper select:focus,
.fabricSmallApp--piper textarea:focus {
    border-color: var(--ink-20);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.fabricSmallApp--piper button:focus-visible,
.fabricSmallApp--piper a:focus-visible,
.fabricSmallApp--piper input:focus-visible,
.fabricSmallApp--piper select:focus-visible,
.fabricSmallApp--piper textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.piperUsageCard {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 14px;
    align-items: center;
    margin: 0 0 14px;
    padding: 10px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: var(--glass-soft);
}
.piperUsageCard span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.piperUsageCard strong { justify-self: end; font-size: 12px; }
.piperUsageCard div { grid-column: 1/-1; height: 4px; overflow: hidden; border-radius: 99px; background: var(--border-soft); }
.piperUsageCard i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }

.piperViewHead,
.piperPanelHead,
.piperSectionHead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}
.piperViewHead { margin-bottom: 22px; }
.piperViewHead h1 { margin: 2px 0 5px; font-size: clamp(25px, 3vw, 38px); line-height: 1.02; }
.piperViewHead p { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 800; color: var(--muted); }

.piperMiniMetrics { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.piperMiniMetrics span { min-width: 74px; padding: 9px 11px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--glass-soft); }
.piperMiniMetrics small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.piperMiniMetrics strong { display: block; margin-top: 2px; font-size: 15px; text-transform: capitalize; }

.piperLegacyNotice {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 13px;
    align-items: center;
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--warning) 9%, var(--panel-bg));
}
.piperLegacyNotice > i { color: var(--warning); }
.piperLegacyNotice span { font-size: 12px; line-height: 1.45; color: var(--muted); }
.piperLegacyNotice strong { display: block; color: var(--text); }

.piperBuilderGrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .38fr); gap: 18px; align-items: start; }
.piperBuilder,
.piperPanel,
.piperPreviewRail,
.piperPremiumLock {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel-bg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}
.piperBuilder { overflow: hidden; }
.piperBuildSection { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 20px; border-bottom: 1px solid var(--border-soft); }
.piperBuildSection > div:last-child { display: grid; gap: 12px; }
.piperBuildSection h2 { margin: 0; font-size: 17px; }
.piperBuildSection p { margin: 0; }
.piperStep { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--baseColor); font-size: 11px; font-weight: 800; }
html[data-theme="dark"] .piperStep { color: #1b1b1b; }
.fieldPair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.piperFieldHint { font-size: 11px; line-height: 1.5; }
.piperBuilderActions { display: flex; align-items: center; gap: 9px; padding: 16px 20px 20px; }

.piperUploadCard {
    position: relative;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px dashed var(--input-border);
    border-radius: 14px;
    background: var(--glass-soft);
    cursor: pointer;
}
.piperUploadCard > i { font-size: 22px; color: var(--accent); }
.piperUploadCard strong,
.piperUploadCard small { display: block; }
.piperUploadCard input { grid-column: 1/-1; padding: 7px; }

.piperAdvanced { border: 1px solid var(--border-soft); border-radius: 12px; background: var(--glass-soft); overflow: hidden; }
.piperAdvanced summary { cursor: pointer; padding: 11px 12px; font-weight: 700; font-size: 12px; }
.piperAdvanced[open] > p,
.piperAdvanced[open] > textarea { margin: 0 12px 12px; width: calc(100% - 24px); }
.piperAdvanced p { font-size: 11px; line-height: 1.45; }

.piperSiteChecks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.piperSiteCheck { position: relative; display: block !important; }
.piperSiteCheck input { position: absolute; opacity: 0; pointer-events: none; }
.piperSiteCheck span { display: flex; gap: 8px; align-items: center; min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 11px; background: var(--glass-soft); color: var(--muted); cursor: pointer; }
.piperSiteCheck input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.piperInlineEmpty { padding: 12px; border-radius: 11px; background: var(--glass-soft); color: var(--muted); font-size: 12px; grid-column: 1/-1; }

[data-piper-schedule].is-locked { opacity: .68; }
.piperPremiumPill { display: inline-flex; padding: 4px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }

.piperPreviewRail { position: sticky; top: 18px; padding: 16px; }
.piperPreviewHead { display: grid; gap: 3px; margin-bottom: 12px; }
.piperPreviewHead strong { font-size: 16px; }
.piperCreativePreview { min-height: 280px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: repeating-linear-gradient(45deg,var(--glass-soft),var(--glass-soft) 10px,transparent 10px,transparent 20px); }
.piperCreativePreview img { width: 100%; max-height: 380px; object-fit: contain; }
#creativePreviewEmpty { display: grid; place-items: center; gap: 8px; padding: 30px; text-align: center; color: var(--muted); }
#creativePreviewEmpty i { font-size: 32px; opacity: .5; }
.piperPreviewRail > p { display: flex; gap: 8px; margin: 12px 2px 0; font-size: 11px; line-height: 1.45; }

.piperPanel { margin-top: 18px; padding: 18px; }
.piperPanelHead { margin-bottom: 14px; }
.piperPanelHead h2 { margin: 2px 0 0; font-size: 17px; }
.piperRecentList { display: grid; gap: 7px; }
.piperRecentRow { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--glass-soft); color: var(--text); text-align: left; cursor: pointer; }
.piperRecentRow strong,
.piperRecentRow small { display: block; }
.piperRecentRow small { margin-top: 2px; }
.piperEmptyText { padding: 10px 2px; }

.piperFilterBar { display: grid; grid-template-columns: minmax(220px,1fr) auto auto; gap: 9px; margin-bottom: 14px; }
.piperSearch { position: relative; }
.piperSearch i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); z-index: 1; }
.piperSearch input { padding-left: 35px; }

.piperAdGrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.piperAdCard { overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: var(--card-bg); box-shadow: var(--shadow-sm); }
.piperCreativeThumb { position: relative; min-height: 165px; display: grid; place-items: center; background: var(--glass-soft); overflow: hidden; }
.piperCreativeThumb img { width: 100%; height: 190px; object-fit: contain; }
.piperHtmlThumb { display: grid; place-items: center; gap: 7px; color: var(--muted); }
.piperHtmlThumb i { font-size: 28px; }
.piperCreativeThumb .piperStatus { position: absolute; right: 10px; top: 10px; }
.piperStatus { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; background: var(--glass-strong); color: var(--muted); border: 1px solid var(--border-soft); }
.piperStatus.is-live { color: var(--success); }
.piperStatus.is-scheduled { color: var(--accent); }
.piperStatus.is-paused,
.piperStatus.is-ended { color: var(--warning); }
.piperStatus.is-archived { opacity: .65; }
.piperAdBody { padding: 14px; }
.piperAdBody h3 { margin: 0; font-size: 16px; }
.piperAdBody p { margin: 4px 0 0; font-size: 11px; }
.piperDestination { display: block; margin: 10px 0; color: var(--accent); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.piperSitePills { display: flex; flex-wrap: wrap; gap: 5px; }
.piperSitePills span { padding: 4px 7px; border-radius: 99px; background: var(--glass-soft); border: 1px solid var(--border-soft); color: var(--muted); font-size: 9px; }
.piperSitePills .is-warning { color: var(--warning); }
.piperScheduleText { display: flex; gap: 6px; align-items: center; font-size: 10px !important; }
.piperCardActions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.piperReadOnly { font-size: 10px; color: var(--muted); }
.piperEmptyState { grid-column: 1/-1; display: grid; place-items: center; gap: 7px; min-height: 230px; padding: 28px; border: 1px dashed var(--border); border-radius: 16px; text-align: center; }
.piperEmptyState.compact { min-height: 120px; }
.piperEmptyState i { font-size: 28px; color: var(--muted); }
.piperEmptyState h3,
.piperEmptyState p { margin: 0; }

.piperEditPanel { scroll-margin-top: 20px; }
.piperEditForm { display: grid; gap: 12px; }

.piperSiteLayout { display: grid; grid-template-columns: minmax(260px,.42fr) minmax(0,1fr); gap: 16px; align-items: start; }
.piperSiteLayout .piperPanel { margin: 0; }
.piperSiteForm { display: grid; gap: 10px; }
.piperSiteList { display: grid; gap: 8px; }
.piperSiteCard { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--glass-soft); }
.piperSiteIdentity { display: flex; gap: 10px; align-items: center; min-width: 0; }
.piperSiteIdentity > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.piperSiteIdentity strong,
.piperSiteIdentity small { display: block; }
.piperSiteIdentity strong { overflow-wrap: anywhere; }
.piperSiteActions { display: flex; gap: 6px; flex-shrink: 0; }

.piperPremiumLock { display: grid; place-items: center; gap: 8px; min-height: 320px; padding: 30px; text-align: center; }
.piperPremiumLock > i { font-size: 32px; color: var(--accent); }
.piperPremiumLock h2,
.piperPremiumLock p { margin: 0; max-width: 520px; }
.piperMetricGrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.piperMetricGrid article { padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg); }
.piperMetricGrid span,
.piperMetricGrid strong { display: block; }
.piperMetricGrid span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.piperMetricGrid strong { margin-top: 4px; font-size: 23px; }
.piperAnalyticsRows { display: grid; gap: 7px; }
.piperAnalyticsRow { display: grid; grid-template-columns: minmax(180px,1fr) repeat(3,100px); gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--glass-soft); }
.piperAnalyticsRow span strong,
.piperAnalyticsRow span small { display: block; }
.piperAnalyticsRow span:not(:first-child) { text-align: right; }

.piperSimpleModal { width: min(650px, calc(100vw - 30px)); }
.piperEmbedModal { display: grid; gap: 12px; }
.piperEmbedModal pre { overflow: auto; padding: 14px; border-radius: 12px; background: #16191d; color: #eef3f5; font: 11px/1.55 var(--font-mono); white-space: pre-wrap; }
.modalFinePrint { font-size: 11px; color: var(--muted); }

.piperHeroMock { width: min(440px,100%); margin: auto; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--glass-strong); box-shadow: var(--shadow-lg); transform: rotate(1.5deg); }
.piperHeroWindow { display: flex; align-items: center; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
.piperHeroWindow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.piperHeroWindow small { margin-left: auto; color: var(--muted); }
.piperHeroPage { min-height: 260px; display: grid; grid-template-rows: 1fr auto 1fr; gap: 15px; padding: 24px; }
.piperHeroPage > i { border-radius: 9px; background: var(--border-soft); }
.piperHeroAd { min-height: 110px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 13px; background: var(--accent-soft); }
.piperHeroAd strong,
.piperHeroAd span { display: block; }
.piperHeroAd span { color: var(--muted); font-size: 10px; }

.piperHelpVisual { min-height: 190px; display: grid; place-items: center; padding: 18px; }
.piperHelpSites { display: grid; gap: 8px; width: min(330px,100%); }
.piperHelpSites span { padding: 11px 13px; border-radius: 11px; background: var(--glass-soft); border: 1px solid var(--border-soft); }
.piperHelpSites i { margin-right: 8px; color: var(--success); }
.piperHelpCreative { width: min(300px,100%); min-height: 140px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent); }
.piperHelpCreative strong,
.piperHelpCreative span { display: block; }
.piperHelpVisual pre { width: min(450px,100%); box-sizing: border-box; overflow: auto; padding: 13px; border-radius: 11px; background: #16191d; color: #eef3f5; font: 11px var(--font-mono); }
.piperHelpTimeline { display: flex; align-items: center; gap: 8px; width: min(420px,100%); }
.piperHelpTimeline i { flex: 1; height: 2px; background: var(--border); }
.piperHelpTimeline strong { padding: 8px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.piperHelpMetrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; width: min(420px,100%); }
.piperHelpMetrics span { padding: 12px; border-radius: 12px; background: var(--glass-soft); border: 1px solid var(--border-soft); text-align: center; }
.piperHelpMetrics small,
.piperHelpMetrics strong { display: block; }
.piperHelpMetrics strong { font-size: 20px; }

.dangerText { color: var(--danger) !important; }

@media (max-width: 900px) {
    .piperBuilderGrid,
    .piperSiteLayout { grid-template-columns: 1fr; }
    .piperPreviewRail { position: relative; top: auto; }
    .piperAdGrid { grid-template-columns: 1fr; }
    .piperAnalyticsRow { grid-template-columns: minmax(150px,1fr) repeat(3,80px); }
}

@media (max-width: 700px) {
    .piperViewHead,
    .piperPanelHead,
    .piperSectionHead { flex-direction: column; align-items: stretch; }
    .piperMiniMetrics { justify-content: flex-start; }
    .piperBuilderGrid { display: block; }
    .piperPreviewRail { margin-top: 14px; }
    .piperBuildSection { grid-template-columns: 30px 1fr; padding: 16px 14px; }
    .fieldPair,
    .piperSiteChecks,
    .piperMetricGrid { grid-template-columns: 1fr; }
    .piperFilterBar { grid-template-columns: 1fr; }
    .piperSiteCard { align-items: flex-start; flex-direction: column; }
    .piperAnalyticsRow { grid-template-columns: 1fr 1fr 1fr; }
    .piperAnalyticsRow > span:first-child { grid-column: 1/-1; }
    .piperAnalyticsRow span:not(:first-child) { text-align: left; }
    .piperLegacyNotice { grid-template-columns: auto 1fr; }
    .piperLegacyNotice button { grid-column: 1/-1; }
}


/* =========================================================
   PIPER — PUBLIC LAUNCH POLISH
   ========================================================= */

#logoutWelcome p {
    font-size:15px;
}

.marketingHowItWorks {
    margin: 34px 0;
    padding: 30px;
    border-radius: 28px;
    background: var(--panel-bg);
    border: 1px solid var(--border);
}

.marketingHowItWorksIntro {
    max-width: 760px;
    margin-bottom: 22px;
}

.marketingHelpMount {
    overflow: hidden;
}

.marketingQuestSlider {
    height: 450px;
    overflow: hidden;
    border-radius: 18px;
}

.marketingQSlideInner {
    display: flex;
    height: 100%;
    transition: transform .32s ease;
    will-change: transform;
}

.marketingQSlideInner .hIwSlide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 0;
    padding: 25px 27px;
}

.marketingQSlideInner .helpCardInner {
    height: 100%;
    min-height: 0;
}

.marketingQuestNav {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 12px;
    width: min(320px, 100%);
    margin: 14px auto 0;
    text-align: center;
}

.marketingQuestNav button {
    appearance: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel-bg);
    color: var(--text);
    cursor: pointer;
}

.marketingQuestNav button:disabled {
    cursor: default;
    opacity: .35;
}

.marketingQuestNav span {
    color: var(--muted);
    font-size: 12px;
}

.marketingHowItWorksActions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.marketingPlanPeriod {
    font-size: .42em;
    font-weight: 650;
    opacity: .7;
}

.piperFreePlanNote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel-bg);
}

.piperFreePlanNote[hidden] {
    display: none;
}

.piperFreePlanNote > div {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
}

.piperFreePlanNote span {
    color: var(--muted);
    font-size: 12px;
}

.piperFreePlanNote button,
.piperInlineUpgrade {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.piperInlineUpgrade {
    margin-top: 8px;
}

.piperInlineUpgrade[hidden] {
    display: none;
}

.piperEmptyActions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

body.fabricSmallApp .tMinterior {
    right:-11px;
}

body.fabricSmallApp .settingsIcon {
  transform: scale(1.1) translate(-1px,-1px);
}

body.fabricSmallApp .hIwSlide p {
    width:100%;
}

@media (max-width: 760px) {
    .marketingHowItWorks {
        padding: 22px 16px;
        border-radius: 22px;
    }

    .marketingQuestSlider {
        height: 500px;
    }

    .marketingQSlideInner .hIwSlide {
        padding: 20px 17px;
    }

    .marketingHowItWorksActions,
    .piperFreePlanNote {
        align-items: stretch;
        flex-direction: column;
    }

    .marketingHowItWorksActions .marketingBtn,
    .piperFreePlanNote button {
        width: 100%;
    }
}

#dropSign {
    background: var(--greenGlass);
    border-radius: 15px;
}

/* =========================================================
   PIPER — FINAL LAUNCH STYLE PASS
   September 2026
   Local polish only; shared Fabric shell remains authoritative.
   ========================================================= */

:root,
html[data-theme="light"] {
    --piper-button-ink: #fff;
    --piper-logo-filter: none;
    --piper-control-hover: rgba(85,95,120,.08);
}

html[data-theme="dark"] {
    --piper-button-ink: #1b1e22;
    --piper-logo-filter: brightness(0) invert(1);
    --piper-control-hover: rgba(255,255,255,.08);
}

html[data-theme="classic"] {
    --piper-button-ink: #fffaf0;
    --piper-logo-filter: saturate(.75) sepia(.12);
    --piper-control-hover: rgba(112,90,60,.08);

    --mainColor: #705a3c;
    --invert: #b78634;
    --footColor: #5e4b33;
    --btnColor: #705a3c;
    --btnColorAlt: #b9aa8e;
}

/* The package ships one complete Piper wordmark. Reuse it across themes
   instead of pointing the shared theme switcher at missing image files. */
body.fabricSmallApp--piper #logo .piperLogo,
body.fabricSmallApp--piper .piperModalWordmark {
    display: block !important;
    filter: var(--piper-logo-filter);
    transition: filter .2s ease, opacity .2s ease;
}

body.fabricSmallApp--piper .littleLogo .piperModalWordmark {
    width: min(190px, 58vw);
    height: auto;
}

/* Typography + input focus should read as one local system. */
body.fabricSmallApp--piper {
    font-family: var(--font-ui);
}

body.fabricSmallApp--piper h1,
body.fabricSmallApp--piper h2,
body.fabricSmallApp--piper h3,
body.fabricSmallApp--piper h4,
body.fabricSmallApp--piper button,
body.fabricSmallApp--piper input,
body.fabricSmallApp--piper select,
body.fabricSmallApp--piper textarea {
    font-family: var(--font-ui);
}

.fabricSmallApp--piper input:focus,
.fabricSmallApp--piper select:focus,
.fabricSmallApp--piper textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Piper-specific action controls were functional but visually inherited
   only the generic Fabric button background. Normalize them here. */
body.fabricSmallApp--piper .primaryBtn,
body.fabricSmallApp--piper .secondaryBtn,
body.fabricSmallApp--piper .textBtn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition:
        transform .15s ease,
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

body.fabricSmallApp--piper .primaryBtn {
    padding: 0 14px;
    border: 1px solid transparent;
    background: var(--accent) !important;
    color: var(--piper-button-ink);
    box-shadow: 0 7px 18px -14px var(--text);
}

body.fabricSmallApp--piper .secondaryBtn {
    padding: 0 13px;
    border: 1px solid var(--border);
    background: var(--glass-soft) !important;
    color: var(--text);
}

body.fabricSmallApp--piper .textBtn {
    min-height: 32px;
    padding: 0 6px;
    border: 0;
    border-radius: 8px;
    background: transparent !important;
    color: var(--accent);
    box-shadow: none;
}

body.fabricSmallApp--piper .primaryBtn:hover,
body.fabricSmallApp--piper .secondaryBtn:hover {
    transform: translateY(-1px);
}

body.fabricSmallApp--piper .secondaryBtn:hover,
body.fabricSmallApp--piper .textBtn:hover {
    background: var(--piper-control-hover) !important;
    border-color: var(--accent);
}

body.fabricSmallApp--piper .primaryBtn:disabled,
body.fabricSmallApp--piper .secondaryBtn:disabled,
body.fabricSmallApp--piper .textBtn:disabled {
    cursor: default;
    opacity: .48;
    transform: none;
}

body.fabricSmallApp--piper .buttonRow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* Marketing hierarchy: keep all primary actions aligned with the copy
   instead of letting the shared defaults distribute them across the card. */
body.fabricSmallApp--piper .marketingHeroActions {
    justify-content: space-evenly;
}

body.fabricSmallApp--piper .marketingMiniPoints {
    justify-content: flex-start;
    margin-left: 0;
}

body.fabricSmallApp--piper .marketingHeroCopy h1 {
    font-size: clamp(21px, 2.4vw, 33px);
    font-weight:;
}

body.fabricSmallApp--piper .marketingPlanCard {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

body.fabricSmallApp--piper #logoutWelcome .marketingHeroCopy .eyebrow {
    font-size: 13px;
    text-align: right;
    margin: -10px 0 20px;
}

body.fabricSmallApp--piper .marketingPlanCard .marketingBtn {
    margin-top: auto;
    align-self: flex-start;
}

body.fabricSmallApp--piper .marketingPlanCard li::marker {
    color: var(--accent);
}

/* This content existed but had no dedicated visual system. */
body.fabricSmallApp--piper .promiseGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 34px 4px 78px;
}

body.fabricSmallApp--piper .promiseGrid article {
    position: relative;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--glass-soft);
    box-shadow: var(--shadow-sm);
}

body.fabricSmallApp--piper .promiseGrid article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    min-height: 25px;
    margin-bottom: 24px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
}

body.fabricSmallApp--piper .promiseGrid h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 19px;
    line-height: 1.18;
}

body.fabricSmallApp--piper .promiseGrid p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 450;
    line-height: 1.65;
}

body.fabricSmallApp--piper .piperUseCases {
    margin: 76px 4px 54px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--glass-50);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

body.fabricSmallApp--piper .piperUseCaseGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.fabricSmallApp--piper .piperUseCase {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border-soft) !important;
    border-radius: 16px;
    background: var(--glass-soft) !important;
}

body.fabricSmallApp--piper .piperUseCaseIcon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
}

body.fabricSmallApp--piper .piperUseCase h3 {
    margin: 0 0 8px;
    color: var(--text) !important;
    font-size: 16px;
}

body.fabricSmallApp--piper .piperUseCase p {
    margin: 0;
    color: var(--muted) !important;
    font-size: 13px;
    font-weight: 450;
    line-height: 1.6;
}

/* Interior surface consistency. */
.piperBuilder,
.piperPanel,
.piperPreviewRail,
.piperPremiumLock {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

body.fabricSmallApp--piper .piperUploadCard,
body.fabricSmallApp--piper .piperRecentRow,
body.fabricSmallApp--piper .piperAdCard,
body.fabricSmallApp--piper .piperSiteCard {
    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

body.fabricSmallApp--piper .piperUploadCard:hover,
body.fabricSmallApp--piper .piperRecentRow:hover,
body.fabricSmallApp--piper .piperSiteCard:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

body.fabricSmallApp--piper .piperAdCard:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

body.fabricSmallApp--piper .piperAdvanced summary {
    color: var(--text);
    transition: background .15s ease;
}

body.fabricSmallApp--piper .piperAdvanced summary:hover {
    background: var(--piper-control-hover);
}

body.fabricSmallApp--piper .piperSiteCheck input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

body.fabricSmallApp--piper .piperStatus {
    border-color: currentColor;
}

body.fabricSmallApp--piper .piperDestination:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.fabricSmallApp--piper [data-piper-schedule].is-locked {
    opacity: .62;
}

body.fabricSmallApp--piper [data-piper-schedule].is-locked input:disabled {
    cursor: not-allowed;
}

/* Keep the mockup tactile without letting the rotation create mobile overflow. */
body.fabricSmallApp--piper .piperHeroMock {
    transition: transform .2s ease, box-shadow .2s ease;
}

html[data-theme="classic"] body.fabricSmallApp--piper .piperBuilder,
html[data-theme="classic"] body.fabricSmallApp--piper .piperPanel,
html[data-theme="classic"] body.fabricSmallApp--piper .piperPreviewRail,
html[data-theme="classic"] body.fabricSmallApp--piper .piperPremiumLock,
html[data-theme="classic"] body.fabricSmallApp--piper .piperAdCard,
html[data-theme="classic"] body.fabricSmallApp--piper .piperUseCases,
html[data-theme="classic"] body.fabricSmallApp--piper .piperUseCase,
html[data-theme="classic"] body.fabricSmallApp--piper .promiseGrid article {
    border-radius: 7px;
}

body.fabricSmallApp .tMinterior {
  right: -10px;
}

@media (max-width: 980px) {
    body.fabricSmallApp--piper .marketingHero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        gap: 30px;
    }

    body.fabricSmallApp--piper .marketingHeroArt {
        width: min(100%, 650px);
        margin: 0 auto;
    }

    body.fabricSmallApp--piper .piperUseCaseGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.fabricSmallApp--piper .promiseGrid {
        grid-template-columns: 1fr;
        margin-bottom: 62px;
    }
}

@media (max-width: 900px) {
  body.fabricSmallApp #topMenu:hover .tMinterior {
        right: -10px;
  }
  
   body.fabricSmallApp #topMenu:hover .settingsIcon {
        transform: scale(1.1) translate(-1px,-1px);
  }
  
   body.fabricSmallApp #topMenu.openTopMenu {
        max-width: 340px;
   }
}

@media (max-width: 700px) {
    body.fabricSmallApp--piper .marketingHeroCopy h1 {
        max-width: none;
        font-size: clamp(34px, 10.5vw, 46px);
        line-height: 1;
    }

    body.fabricSmallApp--piper .marketingMiniPoints {
        gap: 7px;
        margin-top: 25px;
    }

    body.fabricSmallApp--piper .marketingMiniPoints span {
        padding: 5px 8px;
        font-size: 9px;
    }

    body.fabricSmallApp--piper .piperHeroMock {
        transform: none;
    }

    body.fabricSmallApp--piper .piperUseCases {
        margin: 54px 0 34px;
        padding: 18px;
        border-radius: 18px;
    }

    body.fabricSmallApp--piper .piperUseCaseGrid {
        grid-template-columns: 1fr;
    }

    body.fabricSmallApp--piper .piperBuilderActions,
    body.fabricSmallApp--piper .piperEmptyActions {
        align-items: stretch;
        flex-direction: column;
    }

    body.fabricSmallApp--piper .piperBuilderActions .primaryBtn,
    body.fabricSmallApp--piper .piperBuilderActions .secondaryBtn,
    body.fabricSmallApp--piper .piperEmptyActions .primaryBtn,
    body.fabricSmallApp--piper .piperEmptyActions .secondaryBtn {
        width: 100%;
    }

    body.fabricSmallApp--piper .buttonRow {
        width: 100%;
        justify-content: flex-start;
    }

    body.fabricSmallApp--piper .piperMetricGrid article {
        padding: 13px;
    }
    
    body.fabricSmallApp .tMinterior {
        font-size:17px;
    }
    
    body.fabricSmallApp #topMenu.openTopMenu {
        max-width: 265px;
    }
}

@media (max-width: 430px) {
    body.fabricSmallApp--piper .promiseGrid {
        margin-inline: 0;
    }

    body.fabricSmallApp--piper .promiseGrid article,
    body.fabricSmallApp--piper .piperUseCase {
        padding: 16px;
    }

    body.fabricSmallApp--piper .piperMiniMetrics {
        width: 100%;
    }

    body.fabricSmallApp--piper .piperMiniMetrics span {
        flex: 1 1 82px;
        min-width: 0;
    }
}

/* ============================================================
   PIPER — LAUNCH LIMITS, FIRST RUN + DISCOVERY
   ============================================================ */

.piperUsageStack {
    display: grid;
    gap: 7px;
}

.piperStorageUsage i {
    background: var(--accent-strong);
}

.piperFirstRunGuide {
    position: relative;
    margin: 0 0 18px;
    padding: 19px 20px 18px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
    border-radius: 18px;
    background: color-mix(in srgb, var(--accent-soft) 56%, var(--glass-strong));
    box-shadow: var(--shadow-sm);
}

.piperFirstRunGuide[hidden] { display: none !important; }

.piperFirstRunDismiss,
.piperFirstRunDismissForever {
    position: absolute;
    z-index: 2;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.piperFirstRunDismiss {
    top: 11px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.piperFirstRunDismiss:hover { background: var(--piper-control-hover); color: var(--text); }

.piperFirstRunDismissForever {
    right: 50px;
    top: 16px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: lowercase;
}

.piperFirstRunHead {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding-right: 118px;
}

.piperFirstRunIcon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--accent);
    color: var(--piper-button-ink, #fff);
    font-size: 18px;
}

.piperFirstRunHead h3 {
    margin: 2px 0 5px;
    font-size: 18px;
    line-height: 1.2;
}

.piperFirstRunHead p { margin: 0; font-size: 12px; line-height: 1.58; }

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

.piperFirstRunSteps span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--border-soft);
    border-radius: 11px;
    background: var(--glass-soft);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.piperFirstRunSteps strong {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 10px;
}

.piperFirstRunActions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.piperFirstRunActions button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--accent);
    color: var(--piper-button-ink, #fff);
    font: 800 11px/1 var(--font-ui);
    cursor: pointer;
}

.piperFirstRunActions .is-secondary {
    border-color: var(--border);
    background: var(--glass-strong);
    color: var(--text);
}

body.fabricSmallApp--piper .piperExplore,
body.fabricSmallApp--piper .piperMarketingFinal {
    margin: 64px 0 0;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--border);
    border-radius: 24px;
    background: color-mix(in srgb, var(--glass-strong) 88%, transparent);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px) saturate(120%);
}

body.fabricSmallApp--piper .piperExploreGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

body.fabricSmallApp--piper .piperExploreCard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 92px;
    padding: 17px 18px;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: var(--glass-soft);
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

body.fabricSmallApp--piper .piperExploreCard:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

body.fabricSmallApp--piper .piperExploreCard > span {
    display: grid;
    gap: 5px;
}

body.fabricSmallApp--piper .piperExploreCard strong { font-size: 14px; }
body.fabricSmallApp--piper .piperExploreCard small { color: var(--muted); font-size: 12px; line-height: 1.45; }
body.fabricSmallApp--piper .piperExploreCard b { color: var(--accent-strong); font-size: 18px; }

body.fabricSmallApp--piper .piperMarketingFinal {
    margin-bottom: 42px;
    text-align: center;
}

body.fabricSmallApp--piper .piperMarketingFinal h2 {
    margin: 5px 0 8px;
    color: var(--text);
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.05;
}

body.fabricSmallApp--piper .piperMarketingFinal > p:not(.marketingEyebrow) {
    max-width: 690px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.65;
}

body.fabricSmallApp--piper .piperMarketingFinal .marketingHeroActions {
    justify-content: center;
    margin-top: 20px;
}

@media (max-width: 760px) {
    .piperFirstRunHead { grid-template-columns: 1fr; padding-right: 0; padding-top: 18px; }
    .piperFirstRunDismissForever { left: 18px; right: auto; top: 10px; }
    .piperFirstRunSteps { grid-template-columns: 1fr; }
    .piperFirstRunActions { flex-direction: column; }
    .piperFirstRunActions button { width: 100%; }
    body.fabricSmallApp--piper .piperExploreGrid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .piperUsageStack { gap: 5px; }
    .piperFirstRunGuide { padding: 17px 15px 15px; }
    body.fabricSmallApp--piper .piperExplore,
    body.fabricSmallApp--piper .piperMarketingFinal { margin-top: 45px; padding: 19px 16px; border-radius: 18px; }
}
