:root {
    --paper: #f5f7fa;
    --surface: #ffffff;
    --surface-soft: #eef3f9;
    --ink: #17324d;
    --ink-strong: #102b45;
    --muted: #718197;
    --line: #dfe7f0;
    --line-soft: #e9eef4;
    --blue: #2563d9;
    --blue-deep: #164da8;
    --blue-soft: #e7efff;
    --mint: #2e9b80;
    --mint-soft: #e2f5ef;
    --warm: #e6a35c;
    --warm-soft: #fff0dc;
    --danger: #c85a61;
    --danger-soft: #fde9ea;
    --shadow-soft: 0 18px 44px rgba(26, 53, 82, .07);
    --shadow-card: 0 8px 26px rgba(28, 54, 82, .06);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Avenir Next", "Segoe UI Variable", "Trebuchet MS", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.customer-page { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.customer-page { min-height: 100dvh; }

.customer-app {
    height: 100dvh;
    display: flex;
    overflow: hidden;
}

.customer-sidebar {
    width: 254px;
    flex: 0 0 254px;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #d4dfeb transparent;
    display: flex;
    flex-direction: column;
    padding: 29px 18px 18px;
    background: #fbfcfe;
    border-right: 1px solid var(--line);
}

.customer-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 0 12px 32px;
}

.customer-brand img {
    width: 115px;
    height: auto;
    display: block;
}

.customer-brand span,
.sidebar-label,
.panel-overline,
.eyebrow,
.metric-label,
.small-note,
.panel-caption,
.toolbar-count {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 10px;
    font-weight: 700;
}

.customer-brand span {
    color: #99a8b9;
    letter-spacing: .18em;
    font-size: 9px;
}

.sidebar-label {
    padding: 0 13px 10px;
    color: #a0adbb;
    font-size: 9px;
}

.customer-nav { display: grid; gap: 4px; }

.customer-nav-link {
    min-height: 45px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    border-radius: 11px;
    color: #668097;
    font-size: 14px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.customer-nav-link:hover { color: var(--ink); background: #f0f4f8; }
.customer-nav-link.is-active { color: var(--blue-deep); background: var(--blue-soft); font-weight: 700; }
.customer-nav-link.is-active .nav-glyph { color: var(--blue); }

.nav-glyph {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-block;
    color: currentColor;
    fill: none;
}

.sidebar-help {
    display: flex;
    gap: 10px;
    margin: auto 6px 18px;
    padding: 13px 12px;
    border-radius: 13px;
    color: #758698;
    background: #f2f6f9;
}

.sidebar-help p { margin: 0; font-size: 12px; line-height: 1.45; }
.sidebar-help strong { color: var(--ink); font-size: 12px; }
.help-dot { color: var(--blue); font-size: 20px; line-height: 1; }

.sidebar-account {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 7px;
    border-top: 1px solid var(--line-soft);
}

.account-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #285e91;
    background: #dceafd;
    font-size: 11px;
    font-weight: 800;
}

.account-avatar img,
.page-intro-profile img,
.account-photo-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.account-avatar span { line-height: 1; }

.account-avatar-large { width: 42px; height: 42px; flex-basis: 42px; font-size: 13px; }
.account-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.account-copy strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { overflow: hidden; color: #8b9aab; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.icon-button,
.mobile-menu-button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    color: #8d9eae;
    background: transparent;
    border-radius: 9px;
}

.icon-button:hover, .mobile-menu-button:hover { color: var(--blue); background: var(--blue-soft); }
.icon-button .nav-glyph, .mobile-menu-button .nav-glyph { width: 16px; height: 16px; }

.customer-main { min-width: 0; flex: 1; }

.customer-main {
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cfdceb transparent;
}

.mobile-menu-button { display: none; }
.customer-bottom-nav { display: none; }
.topbar-context { display: flex; flex-direction: column; gap: 1px; }
.topbar-context span { color: #9aa8b6; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.topbar-context strong { color: var(--ink); font-size: 12px; }
.topbar-user { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #7890a4; font-size: 12px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #57b79c; box-shadow: 0 0 0 4px #e4f5ef; }

.customer-content {
    width: min(1250px, 100%);
    margin: 0 auto;
    padding: 50px clamp(22px, 4vw, 58px) 30px;
}

.page-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 34px;
}

.page-intro h1 {
    margin: 8px 0 6px;
    color: var(--ink-strong);
    font-size: clamp(27px, 3vw, 39px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.page-intro p:not(.eyebrow) { max-width: 600px; margin: 0; color: var(--muted); font-size: 14px; }
.eyebrow, .panel-overline { margin: 0; color: #8b9bae; }
.page-intro-mark { color: #d9e2ed; font-size: 66px; font-weight: 800; line-height: .8; letter-spacing: -.1em; }
.page-intro-mark span { color: #a7c4ee; font-size: .55em; }
.page-intro-profile { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; flex: 0 0 58px; border: 4px solid #fff; border-radius: 50%; color: #285e91; background: #dceafd; box-shadow: 0 8px 18px rgba(28, 54, 82, .12); font-size: 15px; font-weight: 800; }
.page-intro-profile span { line-height: 1; }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.customer-metric {
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(28, 54, 82, .045);
}

.customer-metric .metric-label { color: #9aa9b8; letter-spacing: .11em; }
.customer-metric strong { margin: 6px 0 1px; color: var(--ink-strong); font-size: 27px; line-height: 1; letter-spacing: -.06em; }
.customer-metric small { color: #94a1ae; font-size: 11px; }
.customer-metric.metric-accent { background: #eaf2ff; border-color: #d9e6fd; }
.customer-metric.metric-accent strong { color: var(--blue-deep); }

.customer-panel {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.dashboard-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.welcome-panel {
    position: relative;
    min-height: 156px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 23px 28px;
    background: #eaf2ff;
    border-color: #dce8fb;
}

.welcome-panel h2 { position: relative; z-index: 1; max-width: 450px; margin: 0 0 7px; color: var(--ink-strong); font-size: clamp(24px, 2.7vw, 31px); line-height: 1.05; letter-spacing: -.07em; }
.welcome-panel h2 em { color: var(--blue); font-style: normal; }
.welcome-panel > p:not(.panel-overline) { position: relative; z-index: 1; max-width: 490px; margin: 0; color: #627d9a; font-size: 13px; }
.panel-overline { color: #7791aa; }
.overline-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #4d83dc; }
.welcome-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; margin-top: 19px; }
.welcome-actions .small-note { display: none; }
.small-note { color: #8299b0; font-size: 9px; letter-spacing: .06em; }
.welcome-orbit { display: none; }
.welcome-orbit:before, .welcome-orbit:after { position: absolute; content: ""; border: 1px solid #d1e0f7; border-radius: 50%; }
.welcome-orbit:before { inset: 22px; }
.welcome-orbit:after { inset: 48px; }
.welcome-orbit b { position: absolute; top: 77px; left: 92px; color: #6c9fe7; font-size: 44px; letter-spacing: -.15em; }
.welcome-orbit span { position: absolute; top: 47px; left: 36px; font-size: 30px; }
.welcome-orbit i { position: absolute; top: 27px; right: 30px; width: 8px; height: 8px; border-radius: 50%; background: #76a8ed; }

.account-panel { min-height: 274px; padding: 29px 27px; }
.account-panel h3 { margin: 7px 0 0; color: var(--ink-strong); font-size: 19px; letter-spacing: -.035em; }
.account-panel .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.account-email { margin: 20px 0 23px; color: var(--muted); font-size: 12px; }
.account-rule { height: 1px; margin-bottom: 11px; background: var(--line-soft); }
.account-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: #8c9aa9; font-size: 11px; }
.account-row strong { color: var(--ink); font-size: 11px; font-weight: 700; }

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.section-heading h2 { margin: 5px 0 0; color: var(--ink-strong); font-size: 21px; letter-spacing: -.045em; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.text-link:hover { color: var(--blue-deep); }
.customer-content span[aria-hidden="true"]:not(.direct-link-icon) { display: none; }

.customer-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 42px;
}

.customer-card-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }

.customer-card-item {
    min-width: 0;
    overflow: hidden;
    padding: 0;
    background: #fff;
    border: 1px solid #d7e2ee;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 28px rgba(28, 54, 82, .08);
    transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, border-color .24s ease;
}

.customer-card-item:hover { transform: translateY(-5px); border-color: #b9cde3; box-shadow: 0 20px 38px rgba(28, 54, 82, .14); }
.add-card-card { min-width: 0; min-height: 330px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 24px; color: var(--ink-strong); background: linear-gradient(145deg, #fbfdff, #f2f7fd); border: 1px dashed #b8cce4; border-radius: var(--radius-md); box-shadow: 0 12px 28px rgba(28, 54, 82, .05); cursor: pointer; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease; }
.add-card-card:hover { transform: translateY(-5px); border-color: var(--blue); background: #fff; box-shadow: 0 20px 38px rgba(28, 54, 82, .12); }
.add-card-plus { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 7px; color: var(--blue); background: var(--blue-soft); border-radius: 18px; font-size: 34px; font-weight: 300; line-height: 1; }
.customer-content span.add-card-plus[aria-hidden="true"] { display: grid; }
.add-card-card strong { font-size: 15px; letter-spacing: -.03em; }
.add-card-card small { color: #8496a8; font-size: 11px; }
.customer-card-grid + .empty-panel { display: none; }
.card-item-top, .card-item-bottom, .card-item-title { display: flex; align-items: center; }
.card-item-top, .card-item-bottom { justify-content: space-between; }
.card-item-face { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.62; min-height: 198px; }

/* Chip: simple NFC-first visual, separate from the Google Review card. */
.chip-card-face { color: #fff; background: radial-gradient(circle at 92% 16%, rgba(72, 151, 255, .46), transparent 29%), linear-gradient(135deg, #071a35 0%, #0c376d 58%, #0d63cb 100%); }
.chip-face-grid { position: absolute; z-index: 0; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(135deg, transparent 5%, #000 42%, transparent 100%); }
.chip-face-content { position: relative; z-index: 1; display: flex; height: 100%; flex-direction: column; justify-content: space-between; padding: 18px 19px 15px; }
.chip-face-topline, .chip-face-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgba(222, 237, 255, .72); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.chip-face-brand { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .9); }
.chip-face-brand i { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; color: #fff; background: rgba(255,255,255,.14); font-size: 10px; font-style: normal; letter-spacing: -.08em; }
.chip-face-identity { margin-top: auto; margin-bottom: auto; padding: 26px 0 20px; }
.chip-face-kicker { display: block; margin-bottom: 8px; color: rgba(208, 228, 255, .72); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.chip-face-identity h3 { overflow: hidden; max-width: 82%; margin: 0 0 7px; color: #fff; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.05; letter-spacing: -.055em; text-overflow: ellipsis; white-space: nowrap; }
.chip-face-identity code { color: rgba(229, 241, 255, .78); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; letter-spacing: .12em; }
.chip-face-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; transform: rotate(45deg); }
.chip-face-signal i { display: block; width: 3px; border: 1px solid rgba(255,255,255,.82); border-left: 0; border-radius: 0 9px 9px 0; }
.chip-face-signal i:nth-child(1) { height: 6px; }
.chip-face-signal i:nth-child(2) { height: 11px; }
.chip-face-signal i:nth-child(3) { height: 16px; }

/* Card: Google Review Map visual with its own identity and rating cues. */
.review-card-face { color: #17324d; background: linear-gradient(145deg, #fff 0%, #f8fbff 72%, #edf4ff 100%); }
.review-card-face::after { position: absolute; z-index: 0; right: 0; bottom: 0; left: 0; height: 5px; content: ""; background: linear-gradient(90deg, #4285f4 0 25%, #34a853 25% 50%, #fbbc04 50% 75%, #ea4335 75%); }
.review-face-band { position: absolute; z-index: 0; top: -34%; right: -12%; width: 55%; height: 170%; border-radius: 50%; background: linear-gradient(180deg, rgba(66, 133, 244, .16), rgba(66, 133, 244, 0)); transform: rotate(18deg); }
.review-face-content { position: relative; z-index: 1; display: flex; height: 100%; flex-direction: column; justify-content: space-between; padding: 17px 19px 15px; }
.review-face-topline, .review-face-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.review-face-brand { display: inline-flex; align-items: center; gap: 8px; }
.review-face-map-icon { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #d9e6fb; border-radius: 8px; color: #4285f4; background: #f0f6ff; }
.review-face-map-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.review-face-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.review-face-brand strong { color: #1f4e99; font-size: 10px; letter-spacing: -.01em; }
.review-face-brand small { margin-top: 3px; color: #8b9bae; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.review-face-rating { padding: 5px 7px; border-radius: 99px; color: #b67817; background: #fff3db; font-size: 9px; letter-spacing: .02em; }
.review-face-rating b { margin-right: 3px; color: #96600f; font-size: 10px; }
.review-face-identity { margin-top: auto; margin-bottom: auto; padding: 24px 0 20px; }
.review-face-kicker { display: block; margin-bottom: 8px; color: #7893b4; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.review-face-identity h3 { overflow: hidden; max-width: 82%; margin: 0 0 7px; color: #102b45; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.05; letter-spacing: -.055em; text-overflow: ellipsis; white-space: nowrap; }
.review-face-identity code { color: #8192a6; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; letter-spacing: .12em; }
.review-face-bottomline { color: #8294a8; }
.review-face-stars { color: #e3a12b; font-size: 10px; letter-spacing: .08em; }
.card-item-meta { padding: 15px 18px 16px; background: #fff; }
.card-meta-label { color: #9aa9b8; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.card-item-product-chip .card-meta-label { color: #b07836; }
.card-item-product-chip .card-item-meta { background: #fffdf9; }
.status-pill { display: inline-flex; align-items: center; min-height: 23px; padding: 0 9px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.status-active { color: #25856d; background: var(--mint-soft); }
.status-pending { color: #b1752e; background: var(--warm-soft); }
.status-disabled { color: #b65c64; background: var(--danger-soft); }
.status-neutral { color: #73869a; background: #edf1f5; }
.card-item-stats { display: flex; gap: 16px; margin-top: 13px; color: #91a0b0; font-size: 10px; }
.card-item-stats span { display: inline-flex; align-items: baseline; gap: 4px; }
.card-item-stats strong { color: var(--ink-strong); font-size: 13px; letter-spacing: -.03em; }
.card-item-bottom { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.card-item-hint { color: #a5b0bb; font-size: 10px; }
.card-remove-link { min-height: 36px; padding: 0 11px; border: 1px solid #f1d1d4; border-radius: 9px; color: #ad4e59; background: #fff; font-size: 11px; font-weight: 700; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.card-remove-link:hover { color: #fff; background: #c85a61; border-color: #c85a61; }
.empty-panel { display: flex; align-items: center; gap: 20px; padding: 26px; }
.empty-panel h3, .empty-panel h2 { margin: 0 0 5px; color: var(--ink-strong); font-size: 17px; letter-spacing: -.04em; }
.empty-panel p { max-width: 500px; margin: 0; color: var(--muted); font-size: 13px; }
.empty-visual { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 27px; }
.empty-panel .button { margin-left: auto; white-space: nowrap; }
.empty-panel-large { min-height: 230px; padding: 38px; }
.empty-panel-large .empty-visual { width: 72px; height: 72px; flex-basis: 72px; font-size: 36px; }
.empty-inline { display: flex; align-items: center; gap: 12px; min-height: 100px; color: #9aa8b5; }
.empty-inline span { color: #b4c6da; font-size: 26px; }
.empty-inline p { margin: 0; font-size: 12px; }

.add-card-dialog { width: min(420px, calc(100% - 32px)); margin: auto; padding: 25px; color: var(--ink); background: #fff; border: 1px solid #dce6ef; border-radius: 18px; box-shadow: 0 24px 70px rgba(28, 54, 82, .2); }
.add-card-dialog::backdrop { background: rgba(16, 38, 64, .32); backdrop-filter: blur(3px); }
.add-card-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.add-card-dialog-head h2 { margin: 5px 0 0; color: var(--ink-strong); font-size: 22px; letter-spacing: -.05em; }
.modal-close { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; color: #7d8e9f; background: #f4f7fa; border: 0; border-radius: 8px; font-size: 20px; line-height: 1; }
.modal-close:hover { color: var(--ink-strong); background: #eaf1f8; }
.add-card-dialog-copy { margin: 11px 0 0; color: #7c8d9e; font-size: 12px; }
.add-product-choices { display: grid; gap: 9px; margin-top: 18px; }
.add-product-choice { display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; align-items: center; gap: 11px; min-width: 0; padding: 12px; color: var(--ink); background: #fbfdff; border: 1px solid #dce7f2; border-radius: 13px; text-align: left; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease; }
.add-product-choice:hover { border-color: #a9c8ed; background: #f8fbff; transform: translateY(-1px); }
.add-product-choice:focus-visible { outline: 3px solid rgba(37, 99, 217, .2); outline-offset: 2px; }
.add-product-choice.is-selected { border-color: #6d9fe4; background: #f2f7ff; box-shadow: 0 0 0 3px #e5efff; }
.add-product-choice-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #2b68c9; background: #e5efff; border-radius: 11px; font-size: 19px; line-height: 1; }
.add-product-choice-icon-chip { color: #2b927d; background: #e4f7f0; font-size: 25px; }
.add-product-choice-copy { display: grid; gap: 1px; min-width: 0; }
.add-product-choice-copy strong { color: var(--ink-strong); font-size: 13px; }
.add-product-choice-copy small { color: #8496a8; font-size: 10px; line-height: 1.35; }
.add-product-choice-check { display: grid; place-items: center; width: 20px; height: 20px; color: transparent; border: 1px solid #c9d7e5; border-radius: 50%; font-size: 12px; font-weight: 800; }
.add-product-choice.is-selected .add-product-choice-check { color: #fff; background: var(--blue); border-color: var(--blue); }
.add-product-back { align-self: flex-start; padding: 0; color: #6d87a2; background: transparent; border: 0; font-size: 10px; font-weight: 700; }
.add-product-back:hover { color: var(--blue); }
.add-card-dialog .stack-form { gap: 8px; margin-top: 19px; }
.add-card-dialog .stack-form[hidden] { display: none; }
.add-card-dialog .field-label { margin-top: 0; }
.add-card-dialog .pin-input { max-width: none; }
.add-card-order { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 7px; margin-top: 19px; padding-top: 16px; color: #8c9baa; border-top: 1px solid var(--line-soft); font-size: 11px; text-align: center; }
.add-card-order a { color: var(--blue); font-weight: 700; }
.remove-card-dialog .add-card-dialog-copy strong { color: #ad4e59; }

.activity-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: 13px; margin-top: 16px; }
.activity-panel, .guide-panel-customer { padding: 23px 25px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.panel-heading h3 { margin: 6px 0 0; color: var(--ink-strong); font-size: 17px; letter-spacing: -.04em; }
.panel-caption { color: #a1acb8; font-size: 9px; letter-spacing: .08em; }
.activity-list { margin-top: 16px; }
.activity-item { display: flex; align-items: center; gap: 11px; min-height: 53px; border-top: 1px solid var(--line-soft); }
.activity-item:first-child { border-top: 0; }
.activity-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #5f8fca; background: #eaf2ff; }
.activity-icon .nav-glyph { width: 16px; height: 16px; }
.activity-item div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.activity-item strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.activity-item small { color: #99a7b6; font-size: 10px; }
.activity-item time { color: #9caab8; font-size: 10px; }
.activity-page-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 13px; padding: 23px 25px; background: #eaf2ff; border-color: #dce8fb; }
.activity-page-summary h2 { margin: 7px 0 4px; color: var(--ink-strong); font-size: 21px; letter-spacing: -.05em; }
.activity-page-summary p:not(.panel-overline) { margin: 0; color: #6c86a0; font-size: 12px; }
.activity-total { display: flex; align-items: flex-end; flex-direction: column; gap: 3px; color: #6c86a0; }
.activity-total strong { color: var(--blue-deep); font-size: 27px; letter-spacing: -.05em; }
.activity-total span { font-size: 10px; }
.activity-page-panel { padding: 23px 25px; }
.activity-list-full { margin-top: 10px; }
.activity-item-detailed { min-height: 67px; }
.activity-item-detailed time { min-width: 250px; text-align: right; }
.activity-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); color: #8e9cab; font-size: 11px; }
.activity-pagination a { padding: 8px 12px; border: 1px solid #d7e1ed; border-radius: 8px; color: var(--blue); background: #fff; font-weight: 700; }
.activity-pagination a:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.activity-pagination span { margin: 0 auto; }
.guide-panel-customer { background: #fff9ef; border-color: #f6ead6; }
.guide-panel-customer h3 { max-width: 220px; margin: 9px 0 18px; color: #694d2d; font-size: 19px; line-height: 1.18; letter-spacing: -.05em; }
.guide-steps { display: grid; gap: 11px; }
.guide-steps > div { display: flex; align-items: flex-start; gap: 9px; }
.guide-steps span { color: #c69252; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.guide-steps p { margin: 0; color: #937958; font-size: 11px; line-height: 1.35; }

.card-detail-link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px; border: 1px solid #d7e1ed; border-radius: 9px; color: var(--blue); background: #fff; font-size: 12px; font-weight: 700; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.card-detail-link:hover { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateY(-1px); }
.card-detail-link:active { transform: translateY(0); }

.notice { margin-bottom: 18px; padding: 12px 15px; border: 1px solid transparent; border-radius: 11px; font-size: 12px; }
.notice-success { color: #267b66; background: var(--mint-soft); border-color: #ccecdf; }
.notice-error { color: #ae4f58; background: var(--danger-soft); border-color: #f5d4d6; }
.notice-info { color: #486d99; background: var(--blue-soft); border-color: #d4e2fb; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 700; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 7px 16px rgba(37, 99, 217, .17); }
.button-primary:hover { background: var(--blue-deep); box-shadow: 0 9px 19px rgba(37, 99, 217, .22); }
.button-secondary { color: var(--blue-deep); background: #fff; border-color: #d7e2ef; }
.button-secondary:hover { background: var(--blue-soft); border-color: #c7d9f3; }
.button-full { width: 100%; }
.button-google { display: flex; width: 100%; min-height: 46px; box-sizing: border-box; color: #3c4043; background: #fff; border-color: #dadce0; box-shadow: 0 2px 5px rgba(60, 64, 67, .12); line-height: 1; white-space: nowrap; }
.button-google:hover { background: #f8faff; border-color: #b8c7e5; box-shadow: 0 4px 10px rgba(60, 64, 67, .14); }
.button-google .google-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
.button-google > span { display: block; }
.button-danger { color: #ad4e59; background: #fff; border-color: #f1d1d4; }
.button-danger:hover { color: #fff; background: #c85a61; border-color: #c85a61; }
.button-danger .nav-glyph { width: 16px; height: 16px; }

.account-settings-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 14px; margin-bottom: 14px; }
.account-settings-panel { min-width: 0; padding: 25px; }
.account-settings-heading { align-items: flex-start; margin-bottom: 24px; }
.account-settings-heading h2 { margin: 0; color: var(--ink-strong); font-size: 21px; letter-spacing: -.05em; }
.account-form { display: grid; gap: 19px; }
.account-form-fields { display: grid; gap: 12px; }
.account-photo-row { display: flex; align-items: center; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.account-photo-preview { width: 72px; height: 72px; display: grid; place-items: center; flex: 0 0 72px; overflow: hidden; border: 1px solid #d6e3f0; border-radius: 20px; color: #285e91; background: #dceafd; font-size: 21px; font-weight: 800; }
.account-photo-preview span { line-height: 1; }
.account-photo-row > div:last-child { min-width: 0; flex: 1; }
.file-upload { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.file-upload-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.file-upload-trigger { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid #cbdced; border-radius: 9px; color: var(--blue-deep); background: #f5f9ff; font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.file-upload-trigger:hover { border-color: #9dbbe3; background: var(--blue-soft); transform: translateY(-1px); }
.file-upload-trigger:active { transform: translateY(0); }
.file-upload:has(.file-upload-input:focus-visible) .file-upload-trigger { outline: 3px solid #e5efff; outline-offset: 2px; }
.file-upload-icon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; color: #fff; background: var(--blue); font-size: 16px; font-weight: 500; line-height: 1; }
.file-upload-name { min-width: 0; overflow: hidden; color: #8292a2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-logout-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 25px; }
.account-logout-panel h2 { margin: 0; color: var(--ink-strong); font-size: 18px; letter-spacing: -.04em; }
.account-logout-panel p:not(.panel-overline) { margin: 0; color: #8292a2; font-size: 12px; }

.detail-back { display: none; }
.detail-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 30px; margin-bottom: 13px; background: #fff; border: 0; box-shadow: 0 14px 32px rgba(28, 54, 82, .08); }
.detail-hero h2 { margin: 0 0 5px; color: var(--ink-strong); font-size: 25px; letter-spacing: -.06em; }
.detail-hero p { margin: 0; color: #7890aa; font-size: 11px; }
.detail-hero code { color: #4a79b7; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.detail-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.detail-hero-actions .button { min-height: 42px; border-radius: 12px; padding-inline: 18px; }
.detail-card-remove-button { margin-left: auto; }
.detail-name-editor { position: relative; }
.detail-name-editor > summary { list-style: none; cursor: pointer; }
.detail-name-editor[open] > summary { color: var(--blue-deep); background: var(--blue-soft); border-color: #c7d9f3; }
.detail-name-editor > summary::-webkit-details-marker { display: none; }
.detail-name-popover { position: absolute; z-index: 10; top: calc(100% + 9px); right: 0; width: min(290px, calc(100vw - 48px)); padding: 17px; border: 1px solid #dce8f6; border-radius: 14px; background: #fff; box-shadow: 0 15px 35px rgba(28, 54, 82, .16); }
.detail-name-form { display: grid; gap: 9px; }
.detail-name-form .field-label { margin-top: 0; }
.detail-name-form .button { width: 100%; margin-top: 3px; }
.detail-choice-section { margin-bottom: 16px; }
.detail-choice-heading { align-items: center; margin-bottom: 12px; }
.detail-choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.detail-choice-grid-single { grid-template-columns: minmax(0, 330px); }
.detail-choice-card { min-width: 0; min-height: 224px; position: relative; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; padding: 24px; border: 0; border-radius: var(--radius-md); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-card); }
.detail-choice-card.is-featured { border: 1px solid #c8ddfb; background: linear-gradient(145deg, #ffffff 0%, #f1f7ff 100%); box-shadow: 0 16px 34px rgba(41, 102, 185, .16); }
.detail-choice-card::after { position: absolute; right: -22px; bottom: -38px; width: 94px; height: 94px; content: ""; border: 1px solid rgba(121, 163, 222, .12); border-radius: 27px; transform: rotate(23deg); pointer-events: none; }
a.detail-choice-card { transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, border-color .22s ease; }
a.detail-choice-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(28, 54, 82, .13); }
a.detail-choice-card:active { transform: translateY(-1px) scale(.99); }
.detail-choice-card.is-disabled { cursor: default; opacity: .72; background: #fbfcfe; box-shadow: 0 8px 20px rgba(28, 54, 82, .05); }
.detail-choice-icon-wrap { width: 58px; height: 61px; display: block; margin: 0 0 19px 1px; perspective: 180px; }
.detail-choice-icon-face { width: 47px; height: 47px; position: relative; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .85); border-radius: 15px; color: #3979ca; background: linear-gradient(145deg, #ffffff 2%, #e5efff 42%, #bcd5f6 100%); box-shadow: 0 7px 0 #aac5eb, 7px 13px 17px rgba(50, 96, 156, .18), inset -5px -6px 10px rgba(124, 167, 227, .22), inset 4px 4px 8px rgba(255, 255, 255, .8); transform: rotateX(13deg) rotateY(-17deg) rotateZ(-3deg); transform-style: preserve-3d; transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease; }
.detail-choice-icon-face::before { position: absolute; top: 4px; left: 8px; width: 17px; height: 7px; content: ""; border-radius: 999px; background: rgba(255, 255, 255, .72); filter: blur(1px); transform: rotate(-18deg); pointer-events: none; }
.detail-choice-icon { position: relative; z-index: 1; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
a.detail-choice-card:hover .detail-choice-icon-face { box-shadow: 0 8px 0 #aac5eb, 8px 15px 19px rgba(50, 96, 156, .2), inset -5px -6px 10px rgba(124, 167, 227, .22), inset 4px 4px 8px rgba(255, 255, 255, .8); transform: translateY(-2px) rotateX(13deg) rotateY(-17deg) rotateZ(-3deg); }
.detail-choice-card.is-disabled .detail-choice-icon-wrap { opacity: .62; filter: grayscale(.45); }
.detail-choice-copy { min-width: 0; }
.detail-choice-copy h3 { margin: 0 0 7px; color: var(--ink-strong); font-size: 15px; line-height: 1.18; letter-spacing: -.035em; }
.detail-choice-copy p { min-height: 39px; margin: 0; color: #7e8fa0; font-size: 11px; line-height: 1.45; }
.detail-choice-featured { position: absolute; top: 17px; right: 17px; padding: 5px 8px; border-radius: 99px; color: #2d6dbb; background: #e5f0ff; font-size: 9px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.detail-choice-copy code { display: block; overflow: hidden; margin-top: 8px; color: #6f8db8; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.detail-choice-status, .detail-choice-action { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; margin-top: auto; color: #a1adba; font-size: 10px; font-weight: 700; }
.detail-choice-status i { width: 6px; height: 6px; display: block; border-radius: 50%; background: #c4ced8; }
.detail-choice-status.is-active { color: #25856d; }
.detail-choice-status.is-active i { background: #36a887; box-shadow: 0 0 0 3px var(--mint-soft); }
.detail-choice-status.is-inactive { color: #a1adba; }
.detail-choice-status.is-coming-soon { color: #b1752e; }
.detail-choice-status.is-coming-soon i { background: #d99a4d; }
.detail-choice-action { color: var(--blue); }
.detail-layout-customer.detail-layout-legacy, .detail-activity.detail-activity-legacy { display: none; }
.detail-metrics { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.detail-metrics .customer-metric { min-height: 111px; }
.detail-layout-customer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; margin-bottom: 16px; }
.form-panel-customer, .destination-panel { min-height: 244px; padding: 25px; }
.destination-panel { background: #f7fbff; border-color: #e1ecf8; }
.destination-panel h3 { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.destination-panel > p { min-height: 40px; margin: 22px 0; color: #73879b; font-size: 12px; }
.connection-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #d0dbe5; }
.connection-dot.is-connected { background: var(--mint); box-shadow: 0 0 0 5px var(--mint-soft); }
.detail-activity { margin-bottom: 10px; }

.direct-link-shell { width: min(700px, 100%); margin: 0 auto; }
.direct-link-back { margin: -8px 0 15px; }
.direct-link-panel { padding: 32px; }
.direct-link-heading { display: flex; align-items: center; gap: 17px; }
.direct-link-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; }
.direct-link-icon .detail-choice-icon-wrap { width: 48px; height: 48px; margin: 0; }
.direct-link-icon .detail-choice-icon-face { width: 42px; height: 42px; }
.direct-link-icon .detail-choice-icon { width: 21px; height: 21px; }
.direct-link-heading h2 { margin: 6px 0 5px; color: var(--ink-strong); font-size: 25px; letter-spacing: -.055em; }
.direct-link-heading p:not(.panel-overline) { margin: 0; color: #7890aa; font-size: 12px; }
.direct-link-form { width: 100%; max-width: none; margin-top: 28px; }
.direct-link-form .field-help { margin: 9px 0 18px; }
.direct-card-settings { display: grid; gap: 18px; margin-top: 14px; padding: 25px 32px; }
.direct-card-settings h2 { margin: 6px 0 0; color: var(--ink-strong); font-size: 19px; letter-spacing: -.045em; }
.direct-card-settings-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.direct-card-settings .detail-name-editor { margin: 0; }

.mode-toggle { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 15px 0 21px; padding: 12px 14px; border: 1px solid #dce8f6; border-radius: 12px; background: #f7fbff; cursor: pointer; }
.mode-toggle > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mode-toggle-track { width: 37px; height: 22px; position: relative; flex: 0 0 37px; border-radius: 999px; background: #c9d4df; transition: background .2s ease; }
.mode-toggle-track > span { width: 16px; height: 16px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(28, 54, 82, .22); transition: transform .2s ease; }
.mode-toggle > input:checked + .mode-toggle-track { background: #36a887; }
.mode-toggle > input:checked + .mode-toggle-track > span { transform: translateX(15px); }
.mode-toggle > input:focus-visible + .mode-toggle-track { box-shadow: 0 0 0 4px #e5efff; }
.mode-toggle-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mode-toggle-copy strong { color: var(--ink-strong); font-size: 12px; }
.mode-toggle-copy small { color: #8193a5; font-size: 10px; line-height: 1.35; }
.mode-toggle-compact { max-width: 205px; margin: 0; padding: 8px 10px; }
.mode-toggle-compact .mode-toggle-track { width: 32px; height: 19px; flex-basis: 32px; }
.mode-toggle-compact .mode-toggle-track > span { width: 13px; height: 13px; top: 3px; left: 3px; }
.mode-toggle-compact > input:checked + .mode-toggle-track > span { transform: translateX(13px); }

.stack-form { display: grid; gap: 9px; }
.field-label { display: block; margin-top: 8px; color: #5d7186; font-size: 11px; font-weight: 700; }
.field-input { display: block; width: 100%; min-height: 43px; padding: 0 13px; color: var(--ink); background: #fbfdff; border: 1px solid #dce6ef; border-radius: 9px; outline: 0; font-size: 13px; transition: border .2s ease, box-shadow .2s ease, background .2s ease; }
.field-input:focus { background: #fff; border-color: #91b6ec; box-shadow: 0 0 0 4px #e5efff; }
.field-input::placeholder { color: #b2beca; }
.field-input-large { min-height: 50px; font-size: 14px; }
.field-help { margin: 0 0 8px; color: #94a2af; font-size: 11px; }

.setup-shell { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: 15px; }
.setup-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0 0 5px; }
.setup-progress i { width: 42px; height: 1px; background: #dce5ee; }
.progress-step { display: flex; align-items: center; gap: 6px; color: #a1afbd; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.progress-step b { color: #8b9baa; font-family: "Avenir Next", "Segoe UI Variable", "Trebuchet MS", sans-serif; font-size: 10px; font-weight: 600; }
.progress-step.is-done { color: #58a28f; }
.progress-step.is-done b { color: #528d7e; }
.progress-step.is-current { color: var(--blue); }
.progress-step.is-current b { color: var(--blue-deep); }
.setup-card { padding: 32px; }
.setup-card-heading { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 30px; }
.setup-card-heading h2 { margin: 8px 0 7px; color: var(--ink-strong); font-size: 26px; line-height: 1.08; letter-spacing: -.06em; }
.setup-card-heading p:not(.eyebrow) { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; }
.setup-number { display: grid; place-items: center; width: 45px; height: 45px; flex: 0 0 45px; border-radius: 13px; color: var(--blue); background: var(--blue-soft); font-family: "SFMono-Regular", Consolas, monospace; font-size: 15px; font-weight: 700; }
.setup-number-map .nav-glyph { width: 20px; height: 20px; }
.setup-form { max-width: 570px; }
.setup-aside { min-height: 216px; padding: 24px; border: 1px solid #dce8f6; border-radius: var(--radius-lg); background: #eaf2ff; }
.setup-aside-warm { background: #fff6e9; border-color: #f4e4cb; }
.aside-mark { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 34px; border-radius: 11px; color: #3f79c8; background: #dceaff; font-size: 17px; font-weight: 800; }
.setup-aside-warm .aside-mark { color: #b97a32; background: #ffebcb; }
.setup-aside strong { display: block; margin: 8px 0 4px; color: var(--ink-strong); font-size: 16px; letter-spacing: -.04em; }
.setup-aside small { display: block; color: #8196ad; font-size: 11px; line-height: 1.45; }
.candidate-divider { display: flex; align-items: center; gap: 12px; margin: 27px 0 11px; color: #a2afbc; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.candidate-divider:before, .candidate-divider:after { height: 1px; flex: 1; content: ""; background: var(--line-soft); }
.candidate-list { display: grid; gap: 7px; }
.candidate-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px; border: 1px solid #e4eaf0; border-radius: 11px; background: #fbfdff; }
.candidate-item:hover { border-color: #b9d0ef; background: #f5f9ff; }
.candidate-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; color: #5688c9; background: #e8f0fd; }
.candidate-icon .nav-glyph { width: 16px; height: 16px; }
.candidate-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.candidate-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.candidate-copy span { overflow: hidden; color: #92a1af; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.public-page { min-height: 100dvh; background: #fff; }
.public-shell { width: min(440px, 100%); min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; margin: 0 auto; padding: 32px 20px; }
.public-shell-form { justify-content: center; padding-top: 32px; }
.public-brand img { display: block; width: 112px; height: auto; }
.public-card { width: 100%; padding: 34px; background: #fff; border: 1px solid #e4eaf1; border-radius: 20px; box-shadow: 0 14px 34px rgba(28, 54, 82, .06); }
.public-mark { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 21px; border-radius: 16px; color: var(--blue); background: #e7efff; }
.public-mark-warm { color: #bc7c34; background: var(--warm-soft); }
.nfc-symbol { font-size: 27px; line-height: 1; }
.public-card h1 { max-width: 380px; margin: 8px 0 9px; color: var(--ink-strong); font-size: 30px; line-height: 1.08; letter-spacing: -.065em; }
.public-copy { max-width: 330px; margin: 0; color: #778390; font-size: 12px; line-height: 1.55; }
.claim-card .public-mark { display: none; }
.claim-code { width: fit-content; display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 14px 0 0; padding: 6px 9px; background: #fafbfd; border: 1px solid #edf0f4; border-radius: 7px; }
.claim-code span { color: #a0aab5; font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.claim-code strong { color: #8793a0; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.code-pill { display: inline-block; margin: 20px 0 23px; padding: 8px 12px; color: #557ba8; background: #edf3fb; border-radius: 7px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; letter-spacing: .06em; }
.claim-card .stack-form { margin-top: 20px; gap: 8px; }
.claim-card .field-label { margin-top: 0; }
.claim-steps { margin: 18px 0 5px; padding: 12px 13px; color: #6f8192; background: #f7faff; border: 1px solid #e4edf8; border-radius: 10px; }
.claim-steps > strong { display: block; color: #456887; font-size: 11px; }
.claim-steps ol { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.claim-steps li { display: flex; align-items: flex-start; gap: 8px; font-size: 10px; line-height: 1.4; }
.claim-steps li > span { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px; color: #4f79a4; background: #e8f1fc; border-radius: 50%; font-size: 9px; font-weight: 700; }
.claim-steps p { margin: 1px 0 0; }
.claim-steps b { color: #456887; font-weight: 700; }
.pin-input { max-width: none; font-family: "SFMono-Regular", Consolas, monospace; font-size: 17px; letter-spacing: .2em; }
.claim-card .button { min-height: 46px; margin-top: 4px; border-radius: 10px; }
.claim-tutorial-link { margin-top: 12px !important; }
.forgot-pin-trigger { margin-top: 10px !important; }
.forgot-pin-dialog .stack-form { gap: 8px; margin-top: 19px; }
.forgot-pin-dialog .field-label { margin-top: 0; }
.public-divider { display: flex; align-items: center; gap: 12px; margin: 25px 0 15px; color: #b6b0a6; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.public-divider:before, .public-divider:after { height: 1px; flex: 1; content: ""; background: #eee7dc; }
.auth-hint { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 18px; color: #929eaa; font-size: 11px; line-height: 1.5; text-align: center; }
.auth-hint a { color: var(--blue); font-weight: 700; }
.remember-option { display: inline-flex; align-items: center; gap: 9px; margin-top: 1px; color: #748699; font-size: 11px; cursor: pointer; }
.remember-option input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.claim-card + .public-footnote { display: none; }
.public-footnote { margin: 0; color: #aba69d; font-size: 10px; text-align: center; }

.public-fallback-page { background: #eef4fb; }
.public-fallback-page .public-shell { width: min(520px, 100%); gap: 16px; padding: 38px 18px 30px; }
.public-fallback-page .public-brand img { width: 104px; }
.public-fallback-page .public-card { overflow: hidden; padding: 0 36px 34px; border-color: #dbe6f2; border-radius: 26px; box-shadow: 0 20px 52px rgba(28, 54, 82, .12); }
.public-fallback-page .public-mark { display: none; }
.public-status-card { text-align: center; }
.status-visual { position: relative; width: calc(100% + 72px); height: 190px; display: grid; place-items: center; margin: 0 -36px 30px; overflow: hidden; background: #0b2b52; }
.status-visual::before, .status-visual::after { position: absolute; content: ""; border: 1px solid rgba(162, 204, 255, .18); border-radius: 50%; pointer-events: none; }
.status-visual::before { width: 320px; height: 320px; transform: translate(76px, 78px); }
.status-visual::after { width: 230px; height: 230px; transform: translate(-90px, -78px); }
.status-icon { position: relative; z-index: 2; display: grid; place-items: center; width: 78px; height: 78px; color: #fff; }
.status-icon-core { position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.6); border-radius: 14px; color: #fff; background: #2d6ddd; box-shadow: 0 10px 25px rgba(0, 0, 0, .22); font-size: 18px; font-weight: 800; letter-spacing: -.08em; }
.status-icon-wave { position: absolute; width: 65px; height: 65px; border: 2px solid rgba(192, 222, 255, .78); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(45deg); }
.status-icon-wave-one { width: 66px; height: 66px; }
.status-icon-wave-two { width: 88px; height: 88px; opacity: .45; }
.status-ring { position: absolute; z-index: 1; width: 96px; height: 96px; border: 1px solid rgba(165, 207, 255, .36); border-radius: 50%; opacity: 0; pointer-events: none; }
.status-ring-two { width: 126px; height: 126px; }
.status-panel-pending .status-icon { animation: status-icon-float 3.8s ease-in-out infinite; }
.status-panel-pending .status-ring-one { animation: status-ring-pulse 3.2s ease-out infinite; }
.status-panel-pending .status-ring-two { animation: status-ring-pulse 3.2s .85s ease-out infinite; }
.public-fallback-page .public-card > .eyebrow { color: #5d82b3; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.public-fallback-page .public-card h1 { max-width: 100%; margin: 8px 0 9px; font-size: 28px; }
.public-fallback-page .public-copy { max-width: 300px; margin: 0 auto; font-size: 12px; line-height: 1.55; }
.public-fallback-page .public-card > .button { width: 100%; justify-content: center; margin-top: 24px; min-height: 48px; border-radius: 13px; box-shadow: 0 10px 18px rgba(37, 99, 217, .18); }
.public-fallback-page .code-pill { display: inline-block; margin: 19px 0 0; padding: 7px 11px; color: #6685a9; background: #f0f5fb; border: 1px solid #e1eaf4; border-radius: 8px; font-size: 11px; }
.public-fallback-page .public-footnote { color: #7f96ae; }

@keyframes status-icon-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }
@keyframes status-ring-pulse { 0% { transform: scale(.75); opacity: .7; } 80%, 100% { transform: scale(1.18); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .status-panel-pending .status-icon, .status-panel-pending .status-ring-one, .status-panel-pending .status-ring-two { animation: none; }
}
.auth-card { padding: 39px; }
.auth-intro { margin-bottom: 24px; }
.auth-intro h1 { margin-bottom: 10px; }
.auth-card .notice { margin-bottom: 14px; }

/* Custom profile editor */
.customize-back { margin: -10px 0 16px; }
.customize-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: start; gap: 15px; }
.customize-main { min-width: 0; display: grid; gap: 15px; }
.customize-panel { padding: 27px; }
.customize-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 21px; }
.customize-section-heading h2 { margin: 7px 0 0; color: var(--ink-strong); font-size: 22px; line-height: 1.1; letter-spacing: -.05em; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.template-option { position: relative; display: grid; gap: 10px; min-width: 0; padding: 10px; border: 1px solid #e0e8f0; border-radius: 14px; background: #fbfdff; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.template-option:hover { border-color: #b6ccec; transform: translateY(-1px); }
.template-option:has(input:checked) { border-color: #7ca8e9; box-shadow: 0 0 0 3px #e8f0ff; }
.template-option input { position: absolute; opacity: 0; pointer-events: none; }
.template-preview { height: 72px; display: grid; align-content: center; gap: 5px; padding: 12px 17px; border-radius: 10px; }
.template-preview i { width: 25px; height: 25px; display: block; margin: 0 auto 3px; border-radius: 8px; background: currentColor; opacity: .9; }
.template-preview b { display: block; height: 7px; border-radius: 5px; background: currentColor; opacity: .23; }
.template-preview-paper { color: #336cba; background: #f0f5fc; }
.template-preview-cloud { color: #5b90d4; background: #eaf3ff; border-radius: 99px; }
.template-preview-cloud i { border-radius: 50%; }
.template-preview-warm { color: #b77e43; background: #fff1dd; }
.template-preview-warm i { border-radius: 50%; }
.template-option-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.template-option-copy strong { color: var(--ink); font-size: 13px; }
.template-option-copy small { overflow: hidden; color: #91a0af; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-fields { display: grid; gap: 11px; margin-top: 23px; }
.field-textarea { min-height: 82px; padding-top: 11px; padding-bottom: 11px; resize: vertical; }
.field-optional { color: #a9b4bf; font-size: 10px; font-weight: 500; }
.color-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.color-field { display: flex; align-items: center; gap: 8px; }
.color-input { width: 44px; height: 43px; flex: 0 0 44px; padding: 3px; border: 1px solid #dce6ef; border-radius: 9px; background: #fff; cursor: pointer; }
.color-text { min-width: 0; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; text-transform: uppercase; }
.section-lead { margin: -7px 0 18px; color: #8191a1; font-size: 13px; }
.section-lead strong { color: #58779d; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.link-editor { display: grid; gap: 10px; }
.link-row { padding: 14px; border: 1px solid #e1e8ef; border-radius: 14px; background: #fbfdff; }
.link-row.is-hidden { display: none; }
.link-row-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.link-row-head strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.link-index { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; color: #5b86bd; background: var(--blue-soft); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 700; }
.remove-link { width: 28px; height: 28px; margin-left: auto; padding: 0; border: 0; border-radius: 8px; color: #a3afbb; background: transparent; font-size: 20px; line-height: 1; }
.remove-link:hover { color: #b95760; background: var(--danger-soft); }
.link-row-grid { display: grid; grid-template-columns: 145px minmax(130px, .8fr) minmax(190px, 1.5fr) 44px; align-items: end; gap: 9px; }
.link-row-grid .field-label { white-space: nowrap; }
.link-icon-select { appearance: auto; }
.link-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.link-count { color: #8d9dac; font-size: 12px; }
.add-link-button { min-height: 38px; font-size: 12px; }
.customize-actions { display: flex; align-items: center; gap: 10px; }
.customize-aside { display: grid; gap: 12px; }
.customize-aside-card { padding: 24px; border: 1px solid #dce8f6; border-radius: var(--radius-lg); background: #eaf2ff; }
.customize-aside-card .aside-mark { margin-bottom: 27px; }
.customize-aside-card strong { display: block; overflow-wrap: anywhere; margin: 7px 0 10px; color: var(--ink-strong); font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.customize-aside-card > p:not(.panel-overline) { margin: 0 0 17px; color: #7890aa; font-size: 12px; line-height: 1.5; }
.customize-tip { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid #f2e1c9; border-radius: 14px; background: #fff8ed; }
.customize-tip > span { display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 21px; border-radius: 50%; color: #b77d3b; background: #ffebcb; font-weight: 800; }
.customize-tip p { margin: 0; color: #937958; font-size: 12px; line-height: 1.45; }

@media (max-width: 1050px) {
    .customize-layout { grid-template-columns: 1fr; }
    .customize-aside { grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); }
}

@media (max-width: 700px) {
    .customize-section-heading { flex-wrap: wrap; }
    .mode-toggle-compact { max-width: 100%; }
    .template-grid { grid-template-columns: 1fr; }
    .template-option { grid-template-columns: 110px minmax(0, 1fr); align-items: center; }
    .template-preview { height: 64px; }
    .link-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .link-url-field { grid-column: 1 / -1; }
    .customize-aside { grid-template-columns: 1fr; }
}

@media (max-width: 470px) {
    .customize-panel { padding: 21px 17px; }
    .color-fields { grid-template-columns: 1fr; }
    .link-row-grid { grid-template-columns: 1fr 44px; }
    .link-row-grid > div:nth-child(1), .link-row-grid > div:nth-child(2), .link-url-field { grid-column: 1 / -1; }
    .link-editor-footer { align-items: flex-start; flex-direction: column; }
    .add-link-button { width: 100%; }
    .customize-actions { align-items: stretch; flex-direction: column; }
    .customize-actions .button { width: 100%; }
}

@media (max-width: 1100px) {
    .customer-card-grid, .customer-card-grid-wide, .detail-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-choice-grid.detail-choice-grid-single { grid-template-columns: minmax(0, 330px); }
    .welcome-orbit { right: 1%; }
}

@media (max-width: 860px) {
    .customer-sidebar, .sidebar-backdrop { display: none; }
    .topbar-user { display: none; }
    .customer-content { padding-top: 37px; padding-bottom: 112px; }
    .customer-bottom-nav {
        position: fixed;
        z-index: 30;
        right: 14px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 14px;
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        min-height: 76px;
        padding: 7px;
        border: 1px solid #dce6f0;
        border-radius: 22px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 12px 30px rgba(27, 55, 87, .14);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }
    .customer-bottom-nav a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
        min-height: 60px;
        padding: 4px 5px;
        border-radius: 16px;
        color: #75879a;
        font-size: 9px;
        font-weight: 600;
        transition: color .2s ease, background .2s ease, transform .2s ease;
    }
    .customer-bottom-nav form { display: flex; flex: 1; min-width: 0; margin: 0; }
    .customer-bottom-nav button {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
        min-height: 60px;
        padding: 4px 5px;
        border: 0;
        border-radius: 16px;
        color: #75879a;
        background: transparent;
        font-size: 9px;
        font-weight: 600;
        transition: color .2s ease, background .2s ease, transform .2s ease;
    }
    .customer-bottom-nav a .nav-glyph,
    .customer-bottom-nav button .nav-glyph { width: 21px; height: 21px; color: currentColor; }
    .customer-bottom-nav a:hover,
    .customer-bottom-nav button:hover { color: var(--blue-deep); background: #f1f6fd; }
    .customer-bottom-nav a:active,
    .customer-bottom-nav button:active { transform: scale(.97); }
    .customer-bottom-nav a:focus-visible,
    .customer-bottom-nav button:focus-visible { outline: 3px solid #a9c7f4; outline-offset: -3px; }
    .customer-bottom-nav a.is-active { color: var(--blue-deep); background: var(--blue-soft); }
    .customer-bottom-nav a.is-active .nav-glyph { color: var(--blue); }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-bento, .activity-layout, .detail-layout-customer, .setup-shell { grid-template-columns: 1fr; }
    .account-settings-layout { grid-template-columns: 1fr; }
    .setup-progress { grid-column: auto; }
    .setup-aside { min-height: auto; }
    .detail-hero { align-items: flex-start; flex-direction: column; }
    .detail-hero-actions { width: 100%; justify-content: space-between; }
    .activity-page-summary { align-items: flex-start; flex-direction: column; }
    .activity-total { align-items: flex-start; }
    .activity-item-detailed { align-items: flex-start; padding: 11px 0; }
    .activity-item-detailed time { min-width: 0; margin-left: 41px; text-align: left; }
}

@media (max-width: 590px) {
    .customer-content { padding: 31px 17px 112px; }
    .page-intro { margin-bottom: 25px; }
    .page-intro-mark { display: none; }
    .page-intro h1 { font-size: 30px; }
    .page-intro-profile { width: 46px; height: 46px; flex-basis: 46px; border-width: 3px; font-size: 12px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-card-grid, .customer-card-grid-wide { grid-template-columns: 1fr; }
    .direct-link-panel, .direct-card-settings { padding: 22px 18px; }
    .direct-link-heading { align-items: flex-start; gap: 13px; }
    .direct-link-heading h2 { font-size: 22px; }
    .direct-card-settings-actions { align-items: stretch; flex-direction: column; }
    .direct-card-settings-actions > .button, .direct-card-settings-actions > .detail-name-editor > summary { width: 100%; }
    .detail-name-popover { right: auto; left: 0; width: min(290px, calc(100vw - 68px)); }
    .card-item-face { min-height: 204px; }
    .chip-face-content, .review-face-content { padding: 17px 17px 14px; }
    .chip-face-identity h3, .review-face-identity h3 { font-size: 24px; }
    .detail-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .detail-choice-card { min-height: 190px; padding: 17px 14px; }
    .detail-choice-copy h3 { font-size: 13px; }
    .detail-choice-copy p { min-height: 48px; font-size: 10px; }
    .detail-choice-copy code { font-size: 8px; }
    .detail-choice-status, .detail-choice-action { font-size: 9px; }
    .direct-link-panel { padding: 23px 18px; }
    .direct-link-heading { align-items: flex-start; gap: 12px; }
    .direct-link-heading h2 { font-size: 22px; }
    .direct-link-form { margin-top: 23px; }
    .customer-metrics { gap: 8px; }
    .customer-metric { min-height: 96px; padding: 14px 16px; }
    .customer-metric strong { font-size: 25px; }
    .welcome-panel { min-height: 172px; padding: 21px 20px; }
    .welcome-panel h2 { font-size: 28px; }
    .welcome-orbit { right: -28px; bottom: -54px; opacity: .65; }
    .welcome-actions { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 16px; }
    .account-panel { min-height: auto; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
    .empty-panel { align-items: flex-start; flex-wrap: wrap; padding: 21px; }
    .empty-panel .button { margin-left: 0; }
    .detail-hero { padding: 23px; }
    .detail-hero h2 { display: block; font-size: 22px; }
    .detail-hero p { display: block; overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
    .detail-hero { gap: 15px; }
    .detail-back { margin-bottom: 12px; }
    .detail-metrics { display: none; }
    .detail-hero-actions { align-items: center; flex-direction: row; justify-content: space-between; }
    .detail-hero-actions .button { width: auto; }
    .account-settings-panel { padding: 21px 17px; }
    .account-settings-heading { margin-bottom: 20px; }
    .account-photo-row { align-items: flex-start; }
    .account-photo-preview { width: 64px; height: 64px; flex-basis: 64px; border-radius: 18px; font-size: 18px; }
    .account-logout-panel { align-items: stretch; flex-direction: column; padding: 21px 17px; }
    .account-logout-panel .button { width: 100%; }
    .setup-card { padding: 24px 20px; }
    .setup-card-heading { gap: 12px; }
    .setup-card-heading h2 { font-size: 23px; }
    .setup-progress { gap: 4px; justify-content: space-between; }
    .setup-progress i { width: 16px; }
    .progress-step { gap: 3px; font-size: 9px; }
    .progress-step b { font-size: 9px; }
    .public-card, .auth-card { padding: 29px 23px; }
    .public-card h1 { font-size: 28px; }
}

/* iOS Safari zooms the page when a focused text control is smaller than 16px. */
@media (max-width: 767px) {
    input:not([type="hidden"]):not([type="color"]), select, textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Rich mobile-first profile editor */
.style-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.template-preview-midnight { color: #a9c8ff; background: linear-gradient(145deg, #111a31, #243f6b); }
.template-preview-bloom { color: #cf618b; background: linear-gradient(145deg, #fff0f3, #f9c7d6); }
.template-preview-bloom i { border-radius: 50%; }
.template-preview-forest { color: #356c54; background: linear-gradient(145deg, #e3f2df, #a9cfab); }
.template-preview-forest i { border-radius: 50% 50% 42% 42%; }
.template-preview-lavender { color: #6c5fba; background: linear-gradient(145deg, #f0edff, #d8d0ff); }
.template-preview-lavender i { border-radius: 50%; }
.template-preview-sunset { color: #d66b48; background: linear-gradient(145deg, #ffe8c9, #ffb38f); }
.template-preview-sunset i { border-radius: 50% 50% 45% 45%; }
.link-row-grid { grid-template-columns: minmax(145px, .8fr) minmax(130px, .9fr) minmax(180px, 1.4fr) 44px; }
.link-icon-field { display: grid; gap: 6px; }
.link-icon-upload { display: inline-flex; align-items: center; width: max-content; max-width: 100%; min-height: 27px; padding: 4px 8px; border: 1px dashed #b7c9dc; border-radius: 7px; color: #54718f; background: #fff; cursor: pointer; font-size: 10px; font-weight: 700; }
.link-icon-upload:hover { border-color: #5e94d6; color: var(--blue-deep); }
.link-icon-upload { position: relative; overflow: hidden; display: grid; gap: 1px; }
.link-icon-upload small { color: #8aa0b6; font-size: 9px; font-weight: 600; }
.link-icon-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.profile-photo-field { display: grid; gap: 7px; }
.profile-photo-upload { position: relative; display: flex; align-items: center; gap: 11px; min-height: 66px; padding: 8px; overflow: hidden; border: 1px dashed #b7c9dc; border-radius: 13px; color: #4d6f90; background: #fbfdff; cursor: pointer; }
.profile-photo-upload:hover { border-color: #5e94d6; background: #f7fbff; }
.profile-photo-upload > span:last-of-type { display: grid; gap: 3px; }
.profile-photo-upload strong { color: var(--ink); font-size: 12px; }
.profile-photo-upload small { color: #8aa0b6; font-size: 10px; }
.profile-photo-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.profile-photo-upload-preview { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; overflow: hidden; border-radius: 15px; color: #5b86bd; background: var(--blue-soft); font-size: 20px; font-weight: 800; }
.profile-photo-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.customize-aside { position: sticky; top: 22px; }
.live-preview-wrap { padding: 12px; border: 1px solid #dce8f6; border-radius: 23px; background: linear-gradient(145deg, #eff6ff, #f8fbff); }
.live-preview-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 3px 11px; color: #476987; font-size: 12px; font-weight: 800; }
.live-preview-head small { padding: 3px 7px; border-radius: 99px; color: #67819d; background: #fff; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.phone-device { position: relative; width: min(100%, 226px); aspect-ratio: 390 / 844; margin: 0 auto; padding: 5px; border: 4px solid #24363f; border-radius: 29px; background: #24363f; box-shadow: 0 18px 30px rgba(32, 58, 78, .22); }
.phone-device::before, .phone-device::after { content: ""; position: absolute; z-index: 3; left: -6px; width: 3px; border-radius: 4px 0 0 4px; background: #304952; }
.phone-device::before { top: 105px; height: 28px; }
.phone-device::after { top: 145px; height: 46px; }
.phone-speaker { position: absolute; z-index: 2; top: 8px; left: 50%; width: 66px; height: 15px; border-radius: 0 0 10px 10px; background: #24363f; transform: translateX(-50%); }
.phone-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 23px; color: #16334b; background: var(--preview-background); font-family: "Avenir Next", "Segoe UI", sans-serif; }
.preview-page { min-height: 100%; padding: 32px 14px 16px; text-align: center; }
.preview-brand { position: absolute; top: 26px; left: 21px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 6px; color: #fff; background: var(--preview-accent); font-size: 9px; font-weight: 900; }
.preview-avatar { display: grid; place-items: center; width: 47px; height: 47px; margin: 8px auto 10px; overflow: hidden; border-radius: 15px; color: #fff; background: var(--preview-accent); font-size: 15px; font-weight: 800; }
.preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.preview-page h3 { overflow: hidden; margin: 0; color: inherit; font-size: 16px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.preview-page p { display: -webkit-box; overflow: hidden; margin: 7px auto 0; color: #5e7284; font-size: 10px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.preview-page p[hidden] { display: none; }
.preview-links { display: grid; gap: 8px; margin-top: 19px; }
.preview-link { display: grid; grid-template-columns: 29px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 43px; padding: 7px 9px; border: 1px solid rgba(31, 53, 75, .10); border-left: 3px solid var(--preview-accent); border-radius: 11px; color: inherit; background: rgba(255,255,255,.86); box-shadow: 0 4px 11px rgba(31, 53, 75, .07); font-size: 11px; font-weight: 800; text-align: left; }
.preview-link > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-link-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: var(--preview-accent); background: color-mix(in srgb, var(--preview-accent) 12%, white); }
.preview-link-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.preview-link-icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.phone-screen.template-cloud .preview-avatar, .phone-screen.template-bloom .preview-avatar { border-radius: 50%; }
.phone-screen.template-cloud .preview-link, .phone-screen.buttons-pill .preview-link { border-radius: 999px; }
.phone-screen.template-warm { background: #fff5e6; }
.phone-screen.template-warm .preview-link { background: #fffaf3; }
.phone-screen.template-midnight { color: #edf5ff; background: linear-gradient(165deg, #111a30, #254a79); }
.phone-screen.template-midnight .preview-page p { color: #b7c8df; }
.phone-screen.template-midnight .preview-link { border-color: rgba(255,255,255,.15); background: rgba(8, 21, 42, .48); }
.phone-screen.template-midnight .preview-link-icon { background: rgba(255,255,255,.12); }
.phone-screen.template-bloom { background: linear-gradient(160deg, #fff3f5, var(--preview-background)); }
.phone-screen.template-bloom .preview-link { border-radius: 16px 6px 16px 6px; }
.phone-screen.template-forest { background: linear-gradient(160deg, #e6f1e4, var(--preview-background)); }
.phone-screen.template-forest .preview-avatar { border-radius: 50% 50% 43% 43%; }
.phone-screen.font-clean { font-family: Inter, "Helvetica Neue", Arial, sans-serif; }
.phone-screen.font-rounded { font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }
.phone-screen.font-serif { font-family: Georgia, "Times New Roman", serif; }
.phone-screen.font-display { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; }
.phone-screen.font-mono { font-family: "SFMono-Regular", Consolas, monospace; }
.phone-screen.buttons-outline .preview-link { border: 2px solid var(--preview-accent); border-left-width: 2px; background: transparent; box-shadow: none; }
.phone-screen.buttons-glass .preview-link { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.34); box-shadow: 0 8px 20px rgba(40,60,80,.08); backdrop-filter: blur(10px); }
.phone-screen.buttons-minimal .preview-link { border: 0; border-left: 3px solid var(--preview-accent); border-radius: 4px; background: transparent; box-shadow: none; }
.phone-screen.template-lavender { background: linear-gradient(160deg, #f3f0ff, var(--preview-background)); }
.phone-screen.template-lavender .preview-avatar { border-radius: 50%; }
.phone-screen.template-sunset { background: linear-gradient(160deg, #fff0da, #ffd0b8); }
.phone-screen.template-sunset .preview-link { border-radius: 18px; }
@media (max-width: 1050px) { .customize-aside { position: static; } .live-preview-wrap { max-width: 330px; } }
@media (max-width: 700px) { .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .template-option { grid-template-columns: 1fr; align-items: stretch; } .style-fields { grid-template-columns: 1fr; } .live-preview-wrap { max-width: 300px; margin: 0 auto; } }
@media (max-width: 470px) { .template-grid { grid-template-columns: 1fr; } .template-option { grid-template-columns: 110px minmax(0, 1fr); align-items: center; } .link-row-grid { grid-template-columns: 1fr 44px; } .link-icon-field, .link-row-grid > div:nth-child(2), .link-url-field { grid-column: 1 / -1; } }
