/* IMAGIFY PRO visual system — self-hosted, no build step or external fonts. */
:root {
  --ip-ink: #10203d;
  --ip-ink-soft: #43536d;
  --ip-muted: #71809a;
  --ip-line: #e4ebf4;
  --ip-line-strong: #cdd9e8;
  --ip-blue: #2563eb;
  --ip-blue-dark: #1749b8;
  --ip-sky: #60a5fa;
  --ip-wash: #f1f6ff;
  --ip-canvas: #f6f8fc;
  --ip-green: #15803d;
  --ip-red: #b42318;
  --ip-shadow-sm: 0 12px 32px rgb(19 42 83 / 7%);
  --ip-shadow-lg: 0 26px 80px rgb(19 42 83 / 14%);
  --ip-radius: 1.15rem;
  --ip-width: 76rem;
}

html { scroll-behavior: smooth; }
body { color: var(--ip-ink-soft); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--ip-blue-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--ip-blue); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgb(37 99 235 / 38%); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 500; top: 0.65rem; left: 0.65rem; transform: translateY(-160%); padding: 0.7rem 1rem; color: #fff; background: #10203d; border-radius: 0.6rem; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

/* Public header */
.site-header { position: sticky; z-index: 90; top: 0; width: 100%; min-height: 4.7rem; background: rgb(255 255 255 / 92%); border-bottom: 1px solid rgb(226 234 244 / 85%); backdrop-filter: blur(16px); }
.site-header__inner { position: relative; display: flex; width: min(calc(100% - 3rem), var(--ip-width)); min-height: 4.7rem; margin-inline: auto; align-items: center; justify-content: space-between; gap: 1.4rem; }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 0.65rem; color: var(--ip-ink); font-size: 1rem; font-weight: 850; letter-spacing: -0.035em; text-decoration: none; }
.brand:hover { color: var(--ip-ink); }
.brand img { width: 2.4rem; height: 2.4rem; flex: 0 0 auto; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(0.65rem, 1.5vw, 1.45rem); }
.site-nav > a:not(.button) { color: #52627c; font-size: 0.86rem; font-weight: 650; text-decoration: none; transition: color 150ms ease; }
.site-nav > a:not(.button):hover, .site-nav > a[aria-current="page"] { color: var(--ip-blue-dark); }
.site-nav .nav-login { margin-left: 0.3rem; }
.menu-toggle { display: none; width: 2.65rem; height: 2.65rem; padding: 0.55rem; place-content: center; gap: 0.25rem; background: #fff; border: 1px solid var(--ip-line); border-radius: 0.75rem; cursor: pointer; }
.menu-toggle span { display: block; width: 1.2rem; height: 2px; background: #344762; border-radius: 4px; }
.page-main { min-height: 62vh; }

/* Shared public layout */
.container, .site-footer__inner { width: min(calc(100% - 3rem), var(--ip-width)); margin-inline: auto; }
.container-narrow { width: min(calc(100% - 3rem), 50rem); margin-inline: auto; }
.eyebrow { margin: 0 0 0.7rem; color: var(--ip-blue-dark); font-size: 0.73rem; font-weight: 850; letter-spacing: 0.105em; line-height: 1.35; text-transform: uppercase; }
.page-hero { padding-block: clamp(3.1rem, 7vw, 5.9rem) clamp(2rem, 5vw, 4rem); }
.page-hero h1, .content-page h1 { max-width: 16ch; margin: 0 0 1rem; color: var(--ip-ink); font-size: clamp(2.25rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.065em; line-height: 1.04; }
.page-hero p, .content-page .lead { max-width: 52rem; color: var(--ip-ink-soft); font-size: clamp(1.02rem, 1.8vw, 1.2rem); line-height: 1.75; }
.content-page { padding-block: clamp(2.4rem, 6vw, 4.5rem); }
.prose { color: #465672; font-size: 1rem; line-height: 1.82; }
.prose h2, .prose h3 { margin-top: 2rem; color: var(--ip-ink); letter-spacing: -0.035em; }
.prose h2 { font-size: 1.45rem; }
.prose h3 { font-size: 1.12rem; }
.prose a { font-weight: 650; }
.text-link { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ip-blue-dark); font-size: 0.9rem; font-weight: 750; text-decoration: none; }
.text-link:hover { gap: 0.7rem; }
.muted { color: var(--ip-muted); }

/* Homepage hero */
.hero-section { display: grid; width: min(calc(100% - 3rem), var(--ip-width)); min-height: 39rem; margin-inline: auto; padding-block: clamp(3.2rem, 7vw, 6.1rem); grid-template-columns: minmax(0, 0.94fr) minmax(28rem, 1.06fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow-dot { display: inline-block; width: 0.47rem; height: 0.47rem; margin-right: 0.45rem; background: #3b82f6; border-radius: 50%; box-shadow: 0 0 0 0.25rem #dbeafe; vertical-align: 0.02rem; }
.hero-copy h1 { max-width: 11ch; margin: 0 0 1.15rem; color: var(--ip-ink); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 820; letter-spacing: -0.078em; line-height: 0.99; }
.hero-lede { max-width: 37rem; margin: 0; color: #53637d; font-size: clamp(1.06rem, 1.6vw, 1.23rem); line-height: 1.68; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.7rem; }
.hero-note { margin: 1.2rem 0 0; color: #7d8ba1; font-size: 0.82rem; }
.button--primary { color: #fff; background: linear-gradient(135deg, #2f71f5, #1e57cc); border-color: #2361dc; box-shadow: 0 8px 20px rgb(37 99 235 / 21%); }
.button--primary:hover { color: #fff; background: linear-gradient(135deg, #2563eb, #1749b8); border-color: #1b4ebd; transform: translateY(-1px); }
.button--secondary { color: var(--ip-blue-dark); background: #fff; border-color: #cbdaf1; }
.button--secondary:hover { color: var(--ip-blue-dark); background: #f4f8ff; border-color: #93b4ed; }
.button--quiet { color: #40516d; background: #f5f8fc; border-color: transparent; }
.button--quiet:hover { color: var(--ip-blue-dark); background: #eaf1fd; }
.button--light { color: var(--ip-blue-dark); background: #fff; border-color: #fff; box-shadow: 0 10px 25px rgb(8 37 100 / 13%); }
.button--light:hover { color: #173f98; background: #eef5ff; }
.button--danger { color: #a32929; background: #fff; border-color: #f2c8c8; }
.button--danger:hover { color: #8f1d1d; background: #fff6f6; }
.button--large { min-height: 3.35rem; padding: 0.82rem 1.25rem; border-radius: 0.85rem; font-size: 0.95rem; }
.button--full { width: 100%; }

.hero-visual { position: relative; display: grid; min-height: 31rem; padding: 2rem; align-content: center; justify-items: center; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 17% 16%, #e9f2ff 0, transparent 45%), linear-gradient(145deg, #f8fbff, #eef4ff 64%, #f5f9ff); border: 1px solid #e3edfb; border-radius: 2.25rem; box-shadow: 0 28px 85px rgb(37 99 235 / 9%); }
.hero-visual::before, .hero-visual::after { position: absolute; z-index: -1; width: 17rem; height: 17rem; border-radius: 50%; content: ""; filter: blur(2px); }
.hero-visual::before { top: -8rem; right: -3rem; background: radial-gradient(circle, rgb(147 197 253 / 40%), rgb(147 197 253 / 0%) 68%); }
.hero-visual::after { bottom: -11rem; left: -5rem; background: radial-gradient(circle, rgb(96 165 250 / 20%), rgb(96 165 250 / 0%) 68%); }
.flow-card { position: relative; z-index: 1; display: grid; width: min(100%, 18rem); padding: 0.95rem; gap: 0.55rem; background: rgb(255 255 255 / 96%); border: 1px solid rgb(217 228 243 / 95%); border-radius: 1.05rem; box-shadow: var(--ip-shadow-sm); }
.flow-card--image { align-self: start; margin-right: 32%; transform: rotate(-2.5deg); }
.flow-card--link { align-self: end; margin-top: -1.1rem; margin-left: 31%; transform: rotate(2.2deg); }
.flow-card__label, .flow-card__caption { color: #7b8aa2; font-size: 0.68rem; font-weight: 700; }
.flow-card__caption { font-size: 0.65rem; font-weight: 550; }
.visual-image-frame { overflow: hidden; background: #eff6ff; border-radius: 0.7rem; }
.hero-art { display: block; width: 100%; height: auto; }
.link-preview-icon { display: flex; width: 3.2rem; height: 3.2rem; align-items: center; justify-content: center; gap: 0.2rem; background: #eaf2ff; border-radius: 0.85rem; }
.link-preview-icon span:first-child { width: 0.55rem; height: 0.9rem; border: 2px solid #2563eb; border-right: 0; border-radius: 0.7rem 0 0 0.7rem; transform: rotate(-45deg); }
.link-preview-icon span:last-child { width: 0.55rem; height: 0.9rem; border: 2px solid #2563eb; border-left: 0; border-radius: 0 0.7rem 0.7rem 0; transform: rotate(-45deg); }
.flow-card--link strong { color: var(--ip-ink); font-size: 0.91rem; }
.flow-path { position: absolute; z-index: 0; top: 42%; left: 43%; display: flex; width: 7.4rem; align-items: center; justify-content: space-between; transform: rotate(22deg); }
.flow-path::before { position: absolute; right: 0; left: 0; height: 2px; background: repeating-linear-gradient(90deg, #90b7f3 0 7px, transparent 7px 13px); content: ""; }
.flow-path span { z-index: 1; width: 0.48rem; height: 0.48rem; background: #3b82f6; border: 2px solid #f5f9ff; border-radius: 50%; }
.activity-preview { position: absolute; z-index: 2; right: 1.3rem; bottom: 1rem; width: min(19rem, 68%); padding: 1rem; background: rgb(255 255 255 / 94%); border: 1px solid #dfebfb; border-radius: 1rem; box-shadow: 0 15px 38px rgb(17 43 90 / 10%); }
.activity-preview__top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.activity-preview__top strong { color: var(--ip-ink); font-size: 0.75rem; }
.activity-preview p { margin: 0.5rem 0 0.55rem; color: #697891; font-size: 0.65rem; line-height: 1.45; }
.activity-preview__line { display: flex; height: 2.5rem; align-items: end; gap: 0.25rem; }
.activity-preview__line i { display: block; flex: 1; min-width: 0.2rem; background: linear-gradient(180deg, #60a5fa, #dbeafe); border-radius: 0.2rem 0.2rem 0 0; }
.activity-preview__line i:nth-child(1) { height: 38%; }.activity-preview__line i:nth-child(2) { height: 51%; }.activity-preview__line i:nth-child(3) { height: 43%; }.activity-preview__line i:nth-child(4) { height: 71%; }.activity-preview__line i:nth-child(5) { height: 59%; }.activity-preview__line i:nth-child(6) { height: 84%; }.activity-preview__line i:nth-child(7) { height: 65%; }.activity-preview__line i:nth-child(8) { height: 95%; }.activity-preview__line i:nth-child(9) { height: 77%; }
.activity-preview__labels { display: flex; justify-content: space-between; margin-top: 0.3rem; color: #8b98aa; font-size: 0.59rem; }
.status-pill--live { color: #116534; background: #edf9f0; border-color: #cdebd5; }
.status-pill--preview { color: #315d9b; background: #eef5ff; border-color: #d5e5ff; }

/* Public feature blocks */
.section-block { width: min(calc(100% - 3rem), var(--ip-width)); margin: 0 auto; padding-block: clamp(3.4rem, 7vw, 6.1rem); }
.section-block--soft { position: relative; width: 100%; max-width: none; padding-inline: max(1.5rem, calc((100% - var(--ip-width)) / 2)); background: linear-gradient(180deg, #f7faff 0%, #f3f7fd 100%); border-top: 1px solid #edf2f9; border-bottom: 1px solid #edf2f9; }
.section-heading { max-width: 45rem; margin: 0 auto 2.35rem; text-align: center; }
.section-heading h2, .split-section h2 { margin: 0 0 0.8rem; color: var(--ip-ink); font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 780; letter-spacing: -0.06em; line-height: 1.08; }
.section-heading > p:last-child, .split-section__copy > p:not(.eyebrow) { margin: 0; color: #64738b; font-size: 1rem; line-height: 1.68; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-grid--wide { margin-bottom: 2rem; }
.feature-card { position: relative; min-width: 0; padding: 1.5rem; background: #fff; border: 1px solid var(--ip-line); border-radius: var(--ip-radius); box-shadow: 0 8px 24px rgb(24 53 99 / 3%); transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease; }
.feature-card:hover { transform: translateY(-3px); border-color: #c7dafa; box-shadow: var(--ip-shadow-sm); }
.feature-card h3 { margin: 1.05rem 0 0.45rem; color: var(--ip-ink); font-size: 1.1rem; letter-spacing: -0.03em; }
.feature-card p { margin: 0; color: #687891; font-size: 0.9rem; line-height: 1.65; }
.feature-mark { display: grid; width: 2.45rem; height: 2.45rem; place-items: center; color: #1d4ed8; background: #eaf2ff; border: 1px solid #dce9ff; border-radius: 0.8rem; font-size: 0.76rem; font-weight: 850; }
.feature-mark--sky { color: #0369a1; background: #e6f6ff; border-color: #c8edff; }
.feature-mark--navy { color: #183b80; background: #e9eefb; border-color: #d7e0f6; }
.feature-mark--blue { color: #1d4ed8; background: #eaf2ff; }
.split-section { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(22rem, 1.15fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.split-section__copy { max-width: 27rem; }
.split-section__copy h2 { max-width: 13ch; }
.steps-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.steps-list li { display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem; background: #fff; border: 1px solid var(--ip-line); border-radius: 1rem; box-shadow: 0 8px 22px rgb(20 46 90 / 3%); }
.steps-list li > span { display: grid; width: 2.15rem; height: 2.15rem; flex: 0 0 auto; place-items: center; color: #fff; background: linear-gradient(140deg, #4f8df7, #2563eb); border-radius: 0.72rem; font-size: 0.82rem; font-weight: 850; }
.steps-list h3 { margin: 0 0 0.3rem; color: var(--ip-ink); font-size: 1rem; }
.steps-list p { margin: 0; color: #697891; font-size: 0.87rem; line-height: 1.5; }
.steps-list--large { width: min(calc(100% - 3rem), 51rem); margin: 0 auto 3rem; }
.analytics-preview-card { width: min(100%, 58rem); margin: 0 auto; padding: clamp(1.15rem, 3vw, 2rem); background: #fff; border: 1px solid #dce7f5; border-radius: 1.35rem; box-shadow: var(--ip-shadow-sm); }
.analytics-preview-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.muted-label { color: #8190a8; font-size: 0.66rem; font-weight: 850; letter-spacing: 0.11em; }
.analytics-preview-card__top h3 { margin: 0.35rem 0 0; color: var(--ip-ink); font-size: 1.25rem; letter-spacing: -0.04em; }
.preview-metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-top: 1.35rem; }
.preview-metric-row > div { display: grid; min-height: 5.25rem; padding: 0.85rem; align-content: center; gap: 0.38rem; background: #f8faff; border: 1px solid #edf1f8; border-radius: 0.8rem; }
.preview-metric-row span { color: #6b7b93; font-size: 0.72rem; }
.preview-metric-row strong { color: #2b3e5e; font-size: 0.77rem; line-height: 1.4; }
.preview-chart-empty { display: flex; min-height: 6rem; align-items: center; gap: 0.8rem; margin-top: 0.8rem; padding: 1rem; background: repeating-linear-gradient(0deg, #fff, #fff 30px, #f1f5fb 31px, #fff 32px); border: 1px dashed #d6e0ee; border-radius: 0.8rem; }
.preview-chart-empty p { margin: 0; color: #71809a; font-size: 0.82rem; }
.chart-empty-mark { width: 2rem; height: 2rem; flex: 0 0 auto; background: #e9f1ff; border: 1px solid #d9e7fc; border-radius: 0.65rem; }
.faq-list { display: grid; width: min(100%, 51rem); gap: 0.65rem; margin: 0 auto; }
.faq-item { padding: 1.05rem 1.2rem; background: #fff; border: 1px solid var(--ip-line); border-radius: 0.85rem; }
.faq-item summary { color: var(--ip-ink); font-size: 0.95rem; font-weight: 730; cursor: pointer; }
.faq-item p { margin: 0.8rem 0 0; color: #63728b; line-height: 1.65; }
.closing-cta { display: flex; width: min(calc(100% - 3rem), var(--ip-width)); margin: 4.5rem auto; padding: clamp(1.5rem, 4vw, 3rem); align-items: center; justify-content: space-between; gap: 1.5rem; color: #fff; background: linear-gradient(118deg, #194cae, #2c6fe4 60%, #5a9df1); border-radius: 1.45rem; box-shadow: 0 22px 54px rgb(37 99 235 / 18%); }
.closing-cta .eyebrow { color: #dbeafe; }
.closing-cta h2 { max-width: 22ch; margin: 0 0 0.55rem; color: #fff; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -0.055em; line-height: 1.12; }
.closing-cta p:not(.eyebrow) { max-width: 48rem; margin: 0; color: #e4efff; font-size: 0.9rem; line-height: 1.55; }

/* Public text pages and contact */
.contact-card { display: grid; gap: 0.35rem; margin-top: 1.2rem; padding: 1.3rem; background: #f7faff; border: 1px solid var(--ip-line); border-radius: 1rem; }
.contact-card__label { color: #7b8ba3; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.contact-card a { width: fit-content; font-weight: 700; }
.error-page { display: grid; min-height: 64vh; align-content: center; justify-items: start; }
.error-page h1 { margin: 0 0 0.65rem; color: var(--ip-ink); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.06em; }
.error-page p { max-width: 42rem; line-height: 1.65; }

/* Authentication and setup */
.auth-layout { min-height: 72vh; padding-block: 3.2rem; background: #fff; }
.auth-panel { width: min(100% - 2rem, 31rem); padding-block: 1rem; }
.auth-aside { margin: 1.4rem 1.4rem 1.4rem 0; min-height: 28rem; background: radial-gradient(circle at 74% 22%, #fff 0, transparent 30%), linear-gradient(148deg, #eef5ff, #dceaff 65%, #f7faff); border: 1px solid #e2ecf9; border-radius: 1.65rem; }
.auth-aside-inner { max-width: 25rem; }
.auth-aside-inner h2 { margin: 0 0 0.7rem; color: var(--ip-ink); font-size: 2rem; letter-spacing: -0.055em; line-height: 1.07; }
.auth-aside-inner p { color: #60718b; line-height: 1.7; }
.auth-aside__mark { width: 3rem; height: 3rem; margin-bottom: 1.2rem; background: linear-gradient(140deg, #60a5fa, #1d4ed8); border-radius: 1rem; box-shadow: 0 10px 26px rgb(37 99 235 / 20%); }
.auth-card { display: grid; gap: 0.9rem; border-color: #e4ebf4; border-radius: 1.25rem; box-shadow: var(--ip-shadow-sm); }
.auth-card h1 { margin: 0; color: var(--ip-ink); font-size: 1.85rem; letter-spacing: -0.055em; }
.auth-card > p { margin: 0; line-height: 1.55; }
.auth-card form { display: grid; gap: 0.82rem; }
.auth-card .button { margin-top: 0.25rem; }
.auth-switch, .form-inline-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.65rem; }
.checkbox-label { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.83rem; }
.auth-layout--single { display: grid; align-items: center; }
.auth-layout--single .auth-panel { margin-inline: auto; }
.installer-layout { display: grid; min-height: 100vh; padding: 2rem 1rem; place-items: center; background: radial-gradient(circle at 75% 22%, #eaf2ff, transparent 38%), #f6f8fc; }
.installer-card { width: min(100%, 50rem); padding: clamp(1.1rem, 4vw, 2rem); background: #fff; border: 1px solid var(--ip-line); border-radius: 1.25rem; box-shadow: var(--ip-shadow-lg); }
.installer-card h1 { margin: 0 0 0.65rem; color: var(--ip-ink); font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.055em; }
.installer-intro, .installer-note { color: #65758d; line-height: 1.62; }
.check-list { display: grid; gap: 0.55rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.check-list__item { display: flex; align-items: flex-start; gap: 0.6rem; color: #41536f; font-size: 0.86rem; }
.check-mark { display: inline-grid; width: 1.35rem; height: 1.35rem; flex: 0 0 auto; place-items: center; color: #a32929; background: #fff0f0; border-radius: 50%; }
.check-mark.is-good { color: #176b39; background: #eaf8ef; }
.installer-note { padding: 0.9rem; background: #f6f9fe; border: 1px solid #e5edf8; border-radius: 0.8rem; font-size: 0.83rem; }

/* Toasts, banners and notices */
.notice { margin-bottom: 0.85rem; }
.notice--success { color: #176b39; background: #effaf2; border-color: #cfe9d6; }
.notice--warning { color: #875500; background: #fff8e8; border-color: #f3dfae; }
.notice--error { color: #9b2727; background: #fff2f1; border-color: #f1ceca; }
.notice--info { color: #2451a2; background: #f0f6ff; border-color: #d1e1fc; }
.status-pill { display: inline-flex; min-height: 1.55rem; align-items: center; padding: 0.22rem 0.58rem; color: #53627a; background: #f2f5f9; border: 1px solid #e3e9f1; border-radius: 99px; font-size: 0.69rem; font-weight: 800; white-space: nowrap; }
.status-pill--active { color: #176b39; background: #eefaf1; border-color: #cfe9d6; }
.status-pill--paused { color: #885707; background: #fff8e8; border-color: #f2dfb1; }
.status-pill--expired, .status-pill--suspended { color: #9d2a2a; background: #fff2f1; border-color: #f0d0cc; }
.announcement-banner { display: flex; gap: 0.85rem; margin: 0 0 0.9rem; padding: 0.95rem 1rem; background: #f1f7ff; border: 1px solid #d7e7ff; border-radius: 0.85rem; }
.announcement-mark { width: 0.63rem; height: 0.63rem; flex: 0 0 auto; margin-top: 0.33rem; background: #397cf0; border-radius: 50%; box-shadow: 0 0 0 0.25rem #dceaff; }
.announcement-banner strong { color: var(--ip-ink); }
.announcement-banner p { margin: 0.2rem 0 0; color: #5e6f88; font-size: 0.85rem; line-height: 1.55; }
.small-note, .filter-caption { color: #75839a; font-size: 0.76rem; line-height: 1.5; }

/* Authenticated app shell */
.app-shell { min-height: 100vh; background: #f6f8fc; }
.sidebar { background: #fff; }
.sidebar-brand { color: var(--ip-ink); font-size: 0.88rem; letter-spacing: -0.025em; }
.sidebar-brand img { width: 2.15rem; height: 2.15rem; object-fit: contain; }
.sidebar-label, .sidebar__eyebrow { color: #8794a9; font-size: 0.66rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.sidebar-nav a, .sidebar-link { transition: background 140ms ease, color 140ms ease; }
.sidebar-nav a[aria-current="page"], .sidebar-nav a.is-active, .sidebar-link.is-active { color: #1d4ed8; background: #edf4ff; }
.sidebar-link--button { width: 100%; background: transparent; border: 0; text-align: left; cursor: pointer; }
.sidebar__heading { margin: 0 0 0.6rem; color: var(--ip-ink); font-size: 0.98rem; }
.sidebar__bottom { margin-top: auto; padding-top: 0.8rem; border-top: 1px solid var(--ip-line); }
.app-topbar { border-color: #e7edf5; }
.app-topbar-label { color: #66758c; font-size: 0.8rem; }
.admin-topbar-user { color: #52627c; font-size: 0.79rem; }
.app-content { max-width: 104rem; padding: clamp(1rem, 2.6vw, 2rem); }
.admin-content { max-width: 108rem; }
.page-heading { align-items: center; margin-bottom: 1.35rem; }
.page-heading h1 { color: var(--ip-ink); font-weight: 780; letter-spacing: -0.055em; }
.page-heading p:not(.eyebrow) { color: #6c7a91; font-size: 0.9rem; line-height: 1.5; }
.page-heading .eyebrow { margin-bottom: 0.42rem; }
.dashboard-quick-actions { max-width: 48rem; justify-content: flex-end; }
.dashboard-quick-actions .button { min-height: 2.55rem; }
.panel-block, .panel-block.content-span-4, .panel-block.content-span-6, .panel-block.content-span-8 { min-width: 0; padding: clamp(1rem, 2vw, 1.4rem); background: #fff; border: 1px solid #e5ebf3; border-radius: 1rem; box-shadow: 0 5px 16px rgb(18 42 82 / 3%); }
.panel-block + .panel-block { margin-top: 1rem; }
.section-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; margin-bottom: 1rem; }
.section-title-row .eyebrow { margin-bottom: 0.35rem; }
.section-title-row h2 { margin: 0; color: var(--ip-ink); font-size: 1.05rem; letter-spacing: -0.035em; }
.section-title-row p:not(.eyebrow) { margin: 0.32rem 0 0; color: #728099; font-size: 0.8rem; line-height: 1.5; }
.stat-grid { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.stat-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { padding: 1rem; border-color: #e5ebf3; border-radius: 0.9rem; box-shadow: 0 4px 12px rgb(19 42 83 / 2%); }
.stat-card > span:first-child { display: block; color: #697891; font-size: 0.75rem; font-weight: 650; }
.stat-card strong:not(.status-pill) { display: block; margin-top: 0.45rem; color: var(--ip-ink); font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1.1; }
.stat-card small { display: block; margin-top: 0.4rem; color: #8491a4; font-size: 0.72rem; line-height: 1.4; }
.stat-value { margin: 0.55rem 0 0; font-size: 1rem; }
.chart-grid { display: grid; gap: 0.75rem; }
.chart-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart-card { min-width: 0; padding: 1rem; background: #fff; border: 1px solid #e7edf5; border-radius: 0.85rem; }
.chart-card h3 { margin: 0; color: #40516d; font-size: 0.79rem; font-weight: 750; }
.chart-card canvas[data-chart] { height: 13rem; margin-top: 0.45rem; }
.chart-card--large canvas[data-chart] { height: 19rem; }
.content-grid--main-aside { grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 0.85fr); align-items: start; }
.content-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.admin-announcement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.analytics-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(17rem, 0.8fr); gap: 1rem; align-items: stretch; }
.analytics-main, .analytics-sources { min-width: 0; }
.admin-overview-grid { align-items: start; }
.data-table { min-width: 42rem; }
.data-table--compact { min-width: 25rem; }
.data-table th { color: #718099; background: #f8faff; }
.data-table td { color: #475670; }
.data-table td small, .table-secondary { display: block; margin-top: 0.22rem; color: #8290a5; font-size: 0.72rem; }
.data-table td a { text-decoration: none; }
.data-table td a:hover { text-decoration: underline; }
.table-primary { display: block; color: #203554; font-weight: 720; }
.table-actions, .button-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.table-actions form, .button-group form { margin: 0; }
.short-url-cell { max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campaign-thumb { width: 2.8rem; height: 2.8rem; object-fit: cover; background: #edf4ff; border-radius: 0.55rem; }
.campaign-thumb--empty { display: inline-grid; place-items: center; color: #6480a9; font-size: 0.66rem; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 0.65rem; }
.filter-bar > label { margin: 0; color: #52627c; font-size: 0.74rem; }
.filter-bar .form-control { width: auto; min-width: 8.5rem; }
.preview-check-list { display: grid; gap: 0.6rem; }
.preview-check-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem; background: #f9fbff; border: 1px solid #e8eef7; border-radius: 0.75rem; }
.preview-check-item > div:first-child { display: grid; min-width: 0; gap: 0.22rem; }
.preview-check-item strong { color: var(--ip-ink); font-size: 0.86rem; }
.preview-check-item small, .preview-check-item code { overflow: hidden; color: #74829a; font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.preview-check-item code { color: #61718b; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.metadata-inspector { display: grid; gap: 1.3rem; }
.metadata-inspector__preview { display: grid; grid-template-columns: minmax(12rem, 0.9fr) minmax(0, 1.1fr); overflow: hidden; background: #f7faff; border: 1px solid #e2eaf5; border-radius: 0.95rem; }
.metadata-inspector__preview > img { display: block; width: 100%; height: 100%; max-height: 18rem; min-height: 12rem; object-fit: cover; background: #edf4ff; }
.metadata-inspector__image-empty { display: grid; min-height: 12rem; padding: 1rem; place-items: center; color: #78879d; background: #edf4ff; }
.metadata-inspector__copy { display: grid; padding: 1.25rem; align-content: center; justify-items: start; gap: 0.55rem; }
.metadata-inspector__copy h2 { margin: 0; color: var(--ip-ink); font-size: 1.25rem; letter-spacing: -0.04em; }
.metadata-inspector__copy p { margin: 0; color: #60708a; line-height: 1.55; white-space: pre-line; }
.metadata-inspector__copy > span:last-child { color: #8a97a9; font-size: 0.74rem; }
.metadata-inspector__details { min-width: 0; }
.metadata-list { display: grid; gap: 0.2rem; margin: 0; }
.metadata-list > div { display: grid; grid-template-columns: minmax(12rem, 0.6fr) minmax(0, 1.4fr); gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid #edf1f6; }
.metadata-list dt { color: #77859b; font-size: 0.77rem; font-weight: 700; }
.metadata-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #334661; font-size: 0.81rem; }
.metadata-note h2 { margin: 0 0 0.4rem; color: var(--ip-ink); font-size: 1.1rem; }
.metadata-note > p:not(.eyebrow) { max-width: 63rem; color: #64738b; font-size: 0.84rem; line-height: 1.6; }
.filter-bar--analytics { align-items: end; }
.filter-caption { margin: 0.8rem 0 0; }
.pagination { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1rem; }
.pagination a, .pagination span { display: inline-grid; min-width: 2.25rem; min-height: 2.25rem; padding: 0.4rem; place-items: center; color: #52627c; background: #fff; border: 1px solid var(--ip-line); border-radius: 0.55rem; font-size: 0.78rem; text-decoration: none; }
.pagination .is-current { color: #fff; background: #2563eb; border-color: #2563eb; }
.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.8rem; }
.empty-state { min-height: 10rem; color: #77859b; }
.empty-state h3 { color: var(--ip-ink); }
.empty-state__mark { display: block; width: 2.5rem; height: 2.5rem; margin: 0 auto 0.7rem; background: linear-gradient(140deg, #dceaff, #f1f6ff); border: 1px solid #dce8f8; border-radius: 0.85rem; }
.empty-state--compact { min-height: 6rem; padding: 1rem; }
.empty-state--compact p { margin: 0; }
.notification-list { display: grid; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
.notification-item { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.7rem 0.15rem; border-bottom: 1px solid #edf1f6; }
.notification-item:last-child { border-bottom: 0; }
.notification-item.is-unread { background: linear-gradient(90deg, #f5f9ff, transparent); }
.notification-item strong { color: #344661; font-size: 0.8rem; }
.notification-item p { margin: 0.2rem 0; color: #748199; font-size: 0.76rem; line-height: 1.45; }
.notification-item time { color: #99a4b4; font-size: 0.67rem; }
.notification-item__body { min-width: 0; flex: 1; }
.notification-dot { display: block; width: 0.48rem; height: 0.48rem; flex: 0 0 auto; margin-top: 0.32rem; background: #7b91b3; border-radius: 50%; }
.notification-dot--success { background: #22a05a; }.notification-dot--warning { background: #d18a16; }.notification-dot--error { background: #d14343; }.notification-dot--info { background: #4380ed; }
.notification-list--full { gap: 0; }
.announcement-card, .admin-announcement { margin-bottom: 0.65rem; padding: 1rem; background: #f4f8ff; border: 1px solid #dfeaff; border-radius: 0.8rem; }
.announcement-card h3, .admin-announcement h3 { margin: 0 0 0.4rem; color: var(--ip-ink); font-size: 0.92rem; }
.announcement-card p, .admin-announcement p { margin: 0; color: #586983; line-height: 1.55; white-space: pre-line; }
.announcement-card time { display: block; margin-top: 0.55rem; color: #8693a8; font-size: 0.7rem; }
.icon-link { color: #315caa; font-size: 0.76rem; font-weight: 700; text-decoration: none; }

/* Campaign forms, profile and preferences */
.campaign-form { display: grid; gap: 1rem; }
.form-section-heading { grid-column: 1 / -1; margin: 0; padding-bottom: 0.55rem; color: #344762; border-bottom: 1px solid #edf1f6; font-size: 0.86rem; font-weight: 800; }
.required-mark { color: #b42318; }.optional-mark { color: #8491a4; font-size: 0.75rem; font-weight: 500; }
.form-control--file { display: block; }
.image-preview { min-height: 13rem; padding: 0.8rem; }
.image-preview__empty { color: #8a98aa; font-size: 0.82rem; }
.settings-grid, .profile-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.settings-grid .panel-block + .panel-block, .profile-layout .panel-block + .panel-block { margin-top: 0; }
.settings-fieldset { min-width: 0; margin: 0 0 1.2rem; padding: 0.8rem 0; border: 0; border-top: 1px solid #edf1f6; }
.settings-fieldset legend { padding: 0.5rem 0.5rem 0.5rem 0; color: #344762; font-size: 0.82rem; font-weight: 800; }
.toggle-row { display: flex; min-height: 3.6rem; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.8rem 0; border-bottom: 1px solid #f0f3f8; cursor: pointer; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row span { display: grid; gap: 0.2rem; }
.toggle-row strong { color: #344762; font-size: 0.84rem; }
.toggle-row small { color: #8290a5; font-size: 0.74rem; line-height: 1.45; }
.toggle-row input[type="checkbox"] { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; }
.danger-zone { margin-top: 1.6rem; padding: 1rem; background: #fff9f8; border: 1px solid #f5dedb; border-radius: 0.8rem; }
.danger-zone h3 { margin: 0 0 0.4rem; color: #9b3029; font-size: 0.9rem; }
.danger-zone p { color: #806969; font-size: 0.79rem; line-height: 1.55; }
.danger-zone form { display: grid; gap: 0.7rem; }
.profile-summary { display: grid; justify-items: center; text-align: center; }
.profile-avatar { display: grid; width: 6rem; height: 6rem; margin: 0 auto 0.9rem; place-items: center; overflow: hidden; color: #2858a8; background: #eaf2ff; border: 1px solid #d8e7fd; border-radius: 50%; font-size: 1.45rem; font-weight: 850; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.detail-list { display: grid; width: 100%; gap: 0; margin: 0; padding: 0; list-style: none; text-align: left; }
.detail-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid #edf1f6; font-size: 0.78rem; }
.detail-list li:last-child { border-bottom: 0; }
.detail-list span:first-child { color: #78869a; }
.detail-list strong { color: #344762; text-align: right; }
.inline-form { display: inline-flex; gap: 0.35rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

/* QR-code workspace */
.qr-workspace { display: grid; grid-template-columns: minmax(18rem, 0.85fr) minmax(20rem, 1.15fr); gap: 1rem; align-items: start; }
.qr-controls { display: grid; gap: 0.85rem; }
.qr-output { display: grid; min-height: 19rem; padding: 1rem; place-items: center; overflow: auto; background: radial-gradient(circle at 50% 50%, #fff, #f7faff 78%); border: 1px dashed #ccdbf0; border-radius: 1rem; }
.qr-output canvas, .qr-output img { max-width: 100%; height: auto; image-rendering: pixelated; }
.qr-placeholder { display: grid; width: 12rem; height: 12rem; place-items: center; color: #73839b; background: repeating-linear-gradient(45deg, #f5f8fd 0 8px, #fff 8px 16px); border: 1px dashed #c8d6e9; border-radius: 0.75rem; font-size: 0.78rem; text-align: center; }
.qr-preview-caption { overflow-wrap: anywhere; color: #74829a; font-size: 0.74rem; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.copy-field { display: flex; align-items: center; gap: 0.5rem; }
.copy-field .form-control { min-width: 0; }

/* Public image-share page */
.share-page { min-height: 100vh; padding: 1.3rem 1rem 2rem; background: radial-gradient(circle at 50% -10%, #eaf2ff, transparent 33%), #f4f7fb; }
.share-topline { display: flex; width: min(100%, 55rem); margin: 0 auto 1rem; align-items: center; justify-content: space-between; gap: 1rem; }
.brand--compact img { width: 2rem; height: 2rem; }
.share-secure-note { display: inline-flex; align-items: center; gap: 0.4rem; color: #708098; font-size: 0.7rem; }
.secure-dot { width: 0.4rem; height: 0.4rem; background: #20a45a; border-radius: 50%; }
.share-card { width: min(100%, 43rem); margin: 0 auto; overflow: hidden; background: #fff; border: 1px solid #e3eaf3; border-radius: 1.15rem; box-shadow: var(--ip-shadow-lg); }
.share-image { display: grid; max-height: 34rem; min-height: 12rem; place-items: center; overflow: hidden; background: linear-gradient(140deg, #e5f0ff, #f7faff); }
.share-image img { display: block; width: 100%; max-height: 34rem; object-fit: contain; }
.share-image--empty { min-height: 16rem; background: radial-gradient(circle at 25% 20%, #fff, transparent 25%), linear-gradient(145deg, #dfeeff, #eff5ff 55%, #deebff); }
.share-image-symbol { display: grid; width: 5rem; height: 5rem; place-items: center; color: #2563eb; background: rgb(255 255 255 / 75%); border: 1px solid rgb(255 255 255 / 90%); border-radius: 1.3rem; box-shadow: 0 10px 28px rgb(25 69 143 / 10%); }
.share-card__body { padding: clamp(1.1rem, 4vw, 2rem); }
.share-advertiser { margin: 0 0 0.45rem; color: #718099; font-size: 0.72rem; font-weight: 750; }
.share-card h1 { margin: 0 0 0.75rem; color: var(--ip-ink); font-size: clamp(1.65rem, 4.2vw, 2.3rem); letter-spacing: -0.055em; line-height: 1.1; }
.share-description { margin: 0 0 1.15rem; color: #5f6e85; font-size: 0.97rem; line-height: 1.7; white-space: pre-line; }
.social-share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 1rem 0; }
.social-share { display: flex; min-height: 2.65rem; align-items: center; justify-content: center; padding: 0.5rem 0.6rem; color: #38506f; background: #fff; border: 1px solid #e2e9f2; border-radius: 0.65rem; font-size: 0.75rem; font-weight: 700; text-align: center; text-decoration: none; transition: transform 150ms ease, box-shadow 150ms ease; }
.social-share:hover { color: #1e4ea0; transform: translateY(-1px); box-shadow: 0 6px 15px rgb(15 39 78 / 7%); }
.social-share--facebook { color: #1d4ed8; }.social-share--whatsapp { color: #168444; }.social-share--telegram { color: #1676b8; }.social-share--x { color: #1f2937; }.social-share--pinterest { color: #bb1c34; }.social-share--linkedin { color: #0a66a8; }
.share-divider { height: 1px; margin: 1.15rem 0; background: #edf1f6; border: 0; }
.share-card .button--full { width: 100%; }
.share-platform-note, .share-action-note { color: #79879a; font-size: 0.72rem; line-height: 1.5; }
.share-footer { width: min(100%, 55rem); margin: 1rem auto 0; color: #8692a4; font-size: 0.68rem; text-align: center; }
.share-footer a { color: #71809a; }
.report-campaign { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid #edf1f6; }
.report-campaign summary { color: #718099; font-size: 0.75rem; cursor: pointer; }
.report-campaign form { display: grid; gap: 0.6rem; margin-top: 0.75rem; }
.unavailable-card { width: min(100%, 35rem); margin: 10vh auto; padding: clamp(1.4rem, 5vw, 2.5rem); text-align: center; background: #fff; border: 1px solid #e3eaf3; border-radius: 1.2rem; box-shadow: var(--ip-shadow-sm); }
.unavailable-card h1 { color: var(--ip-ink); letter-spacing: -0.05em; }
.unavailable-mark { width: 3.2rem; height: 3.2rem; margin: 0 auto 1rem; background: #fff5e8; border: 1px solid #f5dfb9; border-radius: 1rem; }

/* Admin sign-in, maintenance, footer */
.admin-document { min-height: 100vh; background: #f6f8fc; }
.admin-main { min-height: 100vh; }
.admin-login-wrap, .maintenance-page { display: grid; min-height: 100vh; padding: 1.25rem; place-items: center; background: radial-gradient(circle at 80% 15%, #e7f0ff, transparent 34%), #f6f8fc; }
.admin-login-card, .maintenance-card { width: min(100%, 27rem); padding: clamp(1.25rem, 5vw, 2rem); background: #fff; border: 1px solid var(--ip-line); border-radius: 1.2rem; box-shadow: var(--ip-shadow-lg); }
.admin-login-card h1, .maintenance-card h1 { margin: 0 0 0.65rem; color: var(--ip-ink); font-size: 1.85rem; letter-spacing: -0.055em; }
.admin-login-card form { display: grid; gap: 0.8rem; }
.admin-login-brand { margin-bottom: 1.3rem; color: var(--ip-ink); font-weight: 850; }
.admin-login-note { color: #7d8ba0; font-size: 0.76rem; line-height: 1.55; }
.admin-login-back { display: inline-block; margin-top: 0.8rem; font-size: 0.8rem; }
.maintenance-page { text-align: center; }
.maintenance-card p:not(.eyebrow) { color: #65758c; line-height: 1.6; }
.maintenance-mark { display: block; width: 3.25rem; height: 3.25rem; margin: 0 auto 1rem; background: linear-gradient(145deg, #dceaff, #f0f6ff); border: 1px solid #dce8f8; border-radius: 1rem; }

/* Public footer */
.site-footer { padding-block: 2.5rem 1.2rem; background: #fbfcfe; border-top: 1px solid #e8edf4; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.25rem 2rem; }
.footer-brand .brand { font-size: 0.9rem; }
.footer-brand .brand img { width: 2.1rem; height: 2.1rem; }
.footer-brand p { max-width: 24rem; margin: 0.55rem 0 0; color: #8190a4; font-size: 0.77rem; line-height: 1.5; }
.footer-links, .footer-social { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem 1rem; }
.footer-links a, .footer-social a { color: #6f7c91; font-size: 0.75rem; font-weight: 600; text-decoration: none; }
.footer-links a:hover, .footer-social a:hover { color: var(--ip-blue-dark); }
.footer-social { grid-column: 1 / -1; justify-content: center; padding-top: 0.95rem; border-top: 1px solid #edf1f6; }
.footer-copyright { grid-column: 1 / -1; margin: 0; color: #9aa5b5; font-size: 0.7rem; text-align: center; }

@media (max-width: 1050px) {
  .hero-section { grid-template-columns: minmax(0, 0.9fr) minmax(23rem, 1.1fr); gap: 2rem; }
  .hero-visual { min-height: 28rem; padding: 1.4rem; }
  .flow-card--image { margin-right: 25%; }.flow-card--link { margin-left: 24%; }
  .stat-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart-grid--three { grid-template-columns: 1fr; }
  .chart-card canvas[data-chart] { height: 14rem; }
}
@media (max-width: 820px) {
  .site-header__inner { width: min(calc(100% - 2rem), var(--ip-width)); }
  .menu-toggle { display: grid; }
  .site-nav { position: absolute; top: calc(100% + 0.35rem); right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0.15rem; padding: 0.65rem; background: #fff; border: 1px solid var(--ip-line); border-radius: 0.9rem; box-shadow: var(--ip-shadow-lg); }
  .site-nav.is-open, .site-nav[data-open="true"] { display: flex; }
  .site-nav > a:not(.button) { display: flex; min-height: 2.75rem; align-items: center; padding-inline: 0.7rem; border-radius: 0.55rem; }
  .site-nav > a:not(.button):hover { background: #f4f8ff; }
  .site-nav .nav-login { margin: 0; }
  .hero-section { width: min(calc(100% - 2rem), var(--ip-width)); min-height: 0; padding-block: 3.5rem; grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { max-width: 47rem; }
  .hero-copy h1 { max-width: 13ch; font-size: clamp(3rem, 9vw, 4.5rem); }
  .hero-visual { width: min(100%, 44rem); min-height: 29rem; justify-self: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 1.3rem; }
  .split-section { grid-template-columns: 1fr; gap: 1.7rem; }
  .split-section__copy { max-width: 42rem; }
  .split-section__copy h2 { max-width: 15ch; }
  .analytics-layout, .content-grid--main-aside { grid-template-columns: 1fr; }
  .content-grid--two, .admin-announcement-grid { grid-template-columns: 1fr; }
  .settings-grid, .profile-layout { grid-template-columns: 1fr; }
  .qr-workspace { grid-template-columns: 1fr; }
  .closing-cta { align-items: flex-start; flex-direction: column; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-social { grid-column: auto; justify-content: flex-start; }
  .footer-copyright { grid-column: auto; text-align: left; }
}
@media (max-width: 560px) {
  .container, .container-narrow, .section-block, .closing-cta { width: min(calc(100% - 2rem), var(--ip-width)); }
  .section-block--soft { padding-inline: 1rem; }
  .hero-section { padding-block: 2.65rem; }
  .hero-copy h1 { font-size: clamp(2.65rem, 13vw, 3.65rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 24rem; padding: 1rem; border-radius: 1.4rem; }
  .flow-card { width: min(70%, 16rem); padding: 0.7rem; }
  .flow-card--image { margin-right: 25%; }
  .flow-card--link { margin-left: 23%; }
  .flow-path { width: 4.6rem; }
  .activity-preview { right: 0.55rem; bottom: 0.55rem; width: 68%; padding: 0.7rem; }
  .activity-preview__line { height: 1.75rem; }
  .section-block { padding-block: 3.3rem; }
  .section-heading { margin-bottom: 1.6rem; }
  .feature-grid { gap: 0.65rem; }
  .steps-list li { padding: 0.95rem; }
  .preview-metric-row { grid-template-columns: 1fr; }
  .preview-metric-row > div { min-height: 0; }
  .closing-cta { margin-block: 3rem; padding: 1.3rem; }
  .closing-cta .button { width: 100%; }
  .stat-grid--six, .stat-grid--four, .stat-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { padding: 0.8rem; }
  .stat-card strong:not(.status-pill) { font-size: 1.45rem; }
  .chart-grid--three { grid-template-columns: 1fr; }
  .app-content { padding: 0.75rem; }
  .page-heading { align-items: flex-start; }
  .page-heading > .button, .page-heading > .button-group { width: 100%; }
  .dashboard-quick-actions { justify-content: flex-start; }
  .dashboard-quick-actions .button { flex: 1 1 9rem; }
  .preview-check-item { align-items: flex-start; flex-direction: column; }
  .metadata-inspector__preview { grid-template-columns: 1fr; }
  .metadata-inspector__preview > img { max-height: 15rem; }
  .metadata-list > div { grid-template-columns: 1fr; gap: 0.3rem; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
  .filter-bar > label { grid-column: span 2; }
  .filter-bar .form-control { width: 100%; min-width: 0; }
  .filter-bar .button { grid-column: 1 / -1; }
  .table-wrap table { min-width: 42rem; }
  .data-table--compact { min-width: 27rem; }
  .form-grid, .form-grid--two, .form-grid--three { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .toggle-row { align-items: flex-start; }
  .toggle-row input[type="checkbox"] { margin-top: 0.2rem; }
  .auth-layout { padding-block: 1.6rem; }
  .auth-card { padding: 1.1rem; }
  .share-page { padding: 0.8rem 0.55rem 1.5rem; }
  .share-topline { margin-bottom: 0.7rem; }
  .share-card { border-radius: 0.95rem; }
  .share-image { min-height: 9rem; }
  .social-share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-card__body { padding: 1rem; }
  .site-footer { padding-block: 1.8rem 1rem; }
  .footer-links, .footer-social { gap: 0.6rem 0.9rem; }
  .detail-list li { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}


/* Shared-host dashboard polish: content-first chart skeletons and crisp local icons. */
.sidebar-icon{display:inline-flex;align-items:center;justify-content:center;width:1.55rem;height:1.55rem;margin-right:.65rem;color:var(--ip-blue,#2563eb);flex:none}.sidebar-icon .icon-svg{display:block}
canvas[data-chart]{display:block;width:100%;min-height:210px;border-radius:1rem;background:linear-gradient(100deg,#f3f6fb 25%,#e7edf6 38%,#f3f6fb 62%);background-size:400% 100%;animation:chart-skeleton 1.35s ease-in-out infinite}
canvas[data-chart].chart-ready{background:none;animation:none}
@keyframes chart-skeleton{0%{background-position:100% 50%}100%{background-position:0 50%}}
@media(prefers-reduced-motion:reduce){canvas[data-chart]{animation:none;background:#f4f7fb}}
