

:root {
    color-scheme: light;

    
    --bg-page:              #ffffff;       
    --bg-surface:           #ffffff;       
    --bg-surface-elevated:  #fafafa;
    --bg-surface-inset:     #f4f4f4;       
    --bg-hover:             #eeeeee;
    --bg-active:            #e2e2e2;

    
    --text-primary:         #000000;       
    --text-secondary:       #555555;       
    --text-tertiary:        #888888;       
    --text-quaternary:      #b5b5b5;
    --text-inverse:         #ffffff;       

    
    --border-subtle:        rgba(0, 0, 0, 0.08);
    --border-hair:          rgba(0, 0, 0, 0.12);
    --border-strong:        #000000;
    --separator:            rgba(0, 0, 0, 0.08);

    
    --fill-primary:         rgba(0, 0, 0, 0.14);
    --fill-secondary:       rgba(0, 0, 0, 0.07);
    --fill-tertiary:        rgba(0, 0, 0, 0.04);
    --fill-quaternary:      rgba(0, 0, 0, 0.02);

    
    --r-xs:                 6px;
    --r-sm:                 10px;
    --r-md:                 14px;
    --r-lg:                 18px;
    --r-xl:                 22px;
    --r-2xl:                26px;
    --r-pill:               9999px;

    
    --shadow-subtle:        0 1px 3px rgba(0, 0, 0, 0.03);
    --shadow-card:          0 4px 18px -2px rgba(0, 0, 0, 0.05);
    --shadow-lift:          0 10px 28px -4px rgba(0, 0, 0, 0.08);
    --shadow-modal:         0 24px 60px -8px rgba(0, 0, 0, 0.16);

    
    --ease-apple:           cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring:          cubic-bezier(0.175, 0.885, 0.32, 1.15);

    --container-max:        860px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar,
*::-webkit-scrollbar,
*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-track {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", "Inter", -apple-system-headline, system-ui, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 100dvh;
    transition: background-color 0.25s var(--ease-apple), color 0.25s var(--ease-apple);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overscroll-behavior-y: none;
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Inter", sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: 16px;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.app-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: calc(2rem + env(safe-area-inset-top, 0px)) 1.25rem calc(8.5rem + env(safe-area-inset-bottom, 0px)) 1.25rem;
}

.app-view {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s var(--ease-apple), transform 0.25s var(--ease-apple);
}

.app-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.welcome-hero-section {
    margin-bottom: 2.5rem;
}

.welcome-eyebrow {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 0.45rem;
    display: block;
}

.welcome-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.welcome-title {
    font-size: clamp(1.35rem, 3.2vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.25;
    flex: 1;
}

.welcome-username-highlight {
    color: var(--text-primary);
    font-weight: 700;
}

.round-profile-btn {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    padding: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s var(--ease-apple), transform 0.2s var(--ease-apple);
}

.round-profile-btn svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.round-profile-btn:hover {
    box-shadow: none;
    border: none;
    opacity: 0.6;
    transform: scale(1.08);
}

.round-profile-btn:active {
    transform: scale(0.94);
}

.home-active-section {
    margin-bottom: 2.2rem;
}

.home-active-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.55rem, 2vw, 0.85rem);
    width: 100%;
}

.smart-stack-wrapper {
    position: relative;
    width: 100%;
}

.stack-container {
    background: var(--bg-surface);
    border-radius: var(--r-xl);
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    perspective: 1000px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    user-select: none;
    touch-action: none;
}

.stack-container .card {
    cursor: grab;
    width: 100%;
    height: 100%;
    border-radius: var(--r-xl);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(0.65rem, 2.3vw, 0.85rem) clamp(0.7rem, 2.6vw, 1.05rem) clamp(0.65rem, 2.3vw, 0.85rem) clamp(0.65rem, 2.3vw, 0.85rem);
    user-select: none;
    touch-action: none;
    will-change: transform, top, opacity;
    transition: top 0.3s ease, transform 0.3s ease;
    transform-style: preserve-3d;
    background: var(--bg-surface);
    box-sizing: border-box;
}

.stack-container .card:active {
    cursor: grabbing;
}

.indicator-container {
    position: absolute;
    right: clamp(4px, 1.4vw, 6px);
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 10;
    padding: 4px 2.5px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}

.indicator-container .dot {
    width: 3.5px;
    height: 3.5px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.22);
    transition: height 0.28s cubic-bezier(0.25, 1, 0.5, 1), background 0.28s ease, transform 0.28s ease;
    cursor: pointer;
}

.indicator-container .dot.active {
    height: 11px;
    background: #000000;
}

.stack-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    min-width: 0;
    width: 100%;
}

.stack-card-badge {
    font-size: clamp(0.52rem, 1.8vw, 0.6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.16rem 0.38rem;
    border-radius: 5px;
    line-height: 1;
    flex-shrink: 0;
}

.stack-card-badge.badge-maintenance,
.stack-card-badge.badge-security {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.stack-card-badge.badge-delivery,
.stack-card-badge.badge-community {
    background: #ffffff;
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.22);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.stack-card-time {
    font-size: clamp(0.55rem, 1.8vw, 0.63rem);
    color: var(--text-tertiary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
    text-align: right;
    letter-spacing: -0.01em;
}

.stack-card-content {
    display: flex;
    flex-direction: column;
    gap: clamp(0.18rem, 0.7vw, 0.3rem);
    margin: auto 0;
    padding-right: clamp(0.45rem, 1.5vw, 0.65rem);
    min-width: 0;
    width: 100%;
}

.stack-card-title {
    font-size: clamp(0.68rem, 2.3vw, 0.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    letter-spacing: -0.01em;
}

.stack-card-desc {
    font-size: clamp(0.58rem, 1.9vw, 0.68rem);
    line-height: 1.28;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.stack-card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    margin-top: auto;
    min-width: 0;
    width: 100%;
}

.stack-card-action-pill {
    font-size: clamp(0.56rem, 1.9vw, 0.65rem);
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-surface-inset);
    padding: 0.22rem 0.48rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--border-hair);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 82%;
}

.stack-card-action-pill:active {
    transform: scale(0.96);
}

.stack-card-icon-tag {
    display: flex;
    align-items: center;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.stack-card-icon-tag svg {
    width: clamp(13px, 3.6vw, 16px);
    height: clamp(13px, 3.6vw, 16px);
}

.section-headline-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.9rem;
    padding-left: 2px;
    padding-right: 2px;
}

.section-headline-bar h3 {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.section-counter-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

.notifications-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 3.5rem;
}

.rectangle-notification {
    background: var(--bg-surface);
    border-radius: var(--r-xl);
    padding: 1.25rem 1.45rem;
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    position: relative;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    transition: all 0.22s var(--ease-apple);
    overflow: hidden;
}

.rectangle-notification:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
    border-color: var(--border-hair);
}

.notif-icon-frame {
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    color: var(--text-primary);
    padding: 0;
    margin-top: 3px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.notif-icon-frame svg {
    width: 24px;
    height: 24px;
}

.rectangle-notification:hover .notif-icon-frame {
    transform: scale(1.1);
}

.priority-urgent .notif-icon-frame {
    background: transparent;
    color: var(--text-primary);
}

.notif-main-col {
    flex: 1;
    min-width: 0;
}

.notif-meta-strip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.3rem;
}

.notif-badge-pill {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: var(--r-xs);
    background: var(--bg-surface-inset);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.priority-urgent .notif-badge-pill {
    background: var(--text-primary);
    color: var(--text-inverse);
    border-color: var(--text-primary);
    font-weight: 700;
}

.notif-timestamp {
    font-size: 0.74rem;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.notif-heading {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notif-paragraph {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.notif-actions-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notif-action-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    padding: 5px 14px;
    border-radius: var(--r-pill);
    letter-spacing: -0.01em;
    transition: all 0.2s var(--ease-apple);
}

.notif-action-btn:hover {
    background: var(--fill-primary);
    border-color: var(--border-strong);
}

.notif-action-btn:active {
    transform: scale(0.96);
}

.notif-close-action {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    border: none;
    padding: 4px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: -2px;
    margin-right: -4px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.notif-close-action:hover {
    background: transparent;
    color: var(--text-primary);
    transform: scale(1.15);
}

.notif-close-action:active {
    transform: scale(0.92);
}

.settings-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--separator);
}

.back-to-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--r-pill);
    background: transparent;
    transition: all 0.2s var(--ease-apple);
    letter-spacing: -0.01em;
}

.back-to-home-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.back-to-home-btn:hover {
    background: transparent;
    opacity: 0.65;
}

.back-to-home-btn:hover svg {
    transform: translateX(-2px);
}

.back-to-home-btn:active {
    transform: scale(0.96);
}

.settings-screen-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.settings-columns-layout {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 860px) {
    .settings-columns-layout {
        width: 100%;
    }
}

.settings-card-panel {
    background: var(--bg-surface);
    border-radius: var(--r-xl);
    padding: 1.6rem;
    margin-bottom: 1.35rem;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-subtle);
}

.settings-card-panel h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.settings-card-panel p.panel-subtext {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.field-group {
    margin-bottom: 1.15rem;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
    padding-left: 2px;
}

.field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.required-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    padding: 1px 6px;
    border-radius: var(--r-xs);
}

.optional-tag {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

.field-input, .field-textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border-radius: var(--r-sm);
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.92rem;
    transition: all 0.2s var(--ease-apple);
    appearance: none;
    -webkit-appearance: none;
}

.field-input::placeholder, .field-textarea::placeholder {
    color: var(--text-quaternary);
}

.field-input:focus, .field-textarea:focus {
    outline: none;
    background: var(--bg-surface);
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px var(--fill-secondary);
}

.field-input.error {
    border-color: var(--border-strong);
    background: var(--fill-secondary);
}

.field-error-notice {
    color: var(--text-primary);
    font-size: 0.76rem;
    font-weight: 600;
    margin-top: 0.35rem;
    display: none;
}

.field-error-notice.visible {
    display: block;
}

.skills-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.45rem;
}

.skill-tag-btn {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s var(--ease-apple);
    cursor: pointer;
}

.skill-tag-btn:hover {
    background: var(--fill-primary);
    color: var(--text-primary);
}

.skill-tag-btn:active {
    transform: scale(0.96);
}

.skill-tag-btn.selected {
    background: var(--text-primary);
    color: var(--text-inverse);
    font-weight: 600;
    border-color: var(--text-primary);
    box-shadow: var(--shadow-subtle);
}

.card-preview-column {
    position: sticky;
    top: 2rem;
}

.sharable-namecard {
    background: var(--bg-surface);
    border-radius: var(--r-2xl);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-hair);
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-apple);
}

.card-verified-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.35rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--separator);
}

.verified-resident-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.verified-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-primary);
}

.card-project-mark {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.card-identity-header {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 1.25rem;
}

.card-avatar-initials {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-subtle);
    flex-shrink: 0;
}

.card-names-col {
    flex: 1;
    min-width: 0;
}

.card-name-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: 0.15rem;
}

.card-unit-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}

.card-occupation-text {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.card-contact-lines {
    background: var(--bg-surface-inset);
    border-radius: var(--r-md);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border: 1px solid var(--border-subtle);
}

.contact-row-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.86rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-item-icon,
.contact-row-item svg {
    width: 18px;
    height: 18px;
    fill: var(--text-primary);
    flex-shrink: 0;
}

.contact-icon-squircle {
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    padding: 0;
    display: inline-flex;
}

.card-bio-paragraph {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0.95rem;
    font-style: italic;
}

.card-skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.card-skill-tag {
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 3px 9px;
    border-radius: var(--r-pill);
}

.card-save-btn {
    flex: 1;
    min-width: 0;
    background: var(--text-primary);
    color: var(--text-inverse);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s var(--ease-apple);
    cursor: pointer;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.card-save-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.card-save-btn:active {
    transform: scale(0.98);
}

.card-save-btn svg {
    flex-shrink: 0;
}

.card-share-action-btn {
    width: 100%;
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.85rem 1rem;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s var(--ease-apple);
    letter-spacing: -0.01em;
}

.card-share-action-btn:hover {
    background: var(--fill-primary);
    border-color: var(--border-strong);
}

.card-share-action-btn:active {
    transform: scale(0.98);
}

.settings-actions-group {
    display: flex;
    flex-direction: row;
    gap: 0.65rem;
    margin-top: 1.25rem;
    width: 100%;
}

.pill-preview-namecard-btn {
    flex: 1;
    min-width: 0;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--r-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s var(--ease-apple);
    cursor: pointer;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
}

.pill-preview-namecard-btn:hover {
    background: var(--bg-surface-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pill-preview-namecard-btn:active {
    transform: scale(0.98);
}

.pill-preview-namecard-btn svg {
    flex-shrink: 0;
}

.preview-stage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3.5rem 1rem;
}

.holocard-stage-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1.25rem 0;
    perspective: 1200px;
}

.connect-view-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.connect-view-header .back-to-home-btn {
    justify-self: start;
}

.connect-view-header .connect-header-title-box {
    justify-self: center;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.connect-view-header .header-right-spacer {
    justify-self: end;
    width: 38px;
    height: 38px;
}

.connect-centered-title {
    margin: 0;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.preview-view-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.preview-view-header .back-to-home-btn {
    justify-self: start;
}

.preview-view-header .preview-header-title-box {
    justify-self: center;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-view-header .header-right-spacer {
    justify-self: end;
    width: 38px;
    height: 38px;
}

.preview-centered-title {
    margin: 0;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.preview-stage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 180px);
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3.5rem 1rem;
    width: 100%;
}

.connect-header-title-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.gps-beacon-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    padding: 0.25rem 0.65rem;
    border-radius: var(--r-pill);
    letter-spacing: -0.01em;
}

.radar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #000000;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    animation: radarPulseDot 2s infinite ease-out;
}

@keyframes radarPulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.connect-stage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 680px;
    margin: 0 auto;
    padding: 0.5rem 1rem 9rem 1rem;
    width: 100%;
}

.connect-top-card-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.nearby-section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    max-width: 580px;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.nearby-title-col {
    flex: 1;
    min-width: 0;
}

.nearby-heading {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.15rem;
    line-height: 1.25;
}

.nearby-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    line-height: 1.35;
    word-break: break-word;
}

.nearby-counter-pill {
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--text-primary);
    color: var(--text-inverse);
    padding: 0.25rem 0.65rem;
    border-radius: var(--r-pill);
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.nearby-cards-container {
    width: 100%;
    max-width: 580px;
}

.nearby-stack-stage-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0.25rem 0 1.25rem 0;
}

.nearby-react-bits-stack-box {
    width: 320px;
    height: 200px;
    position: relative;
    margin: 0.75rem auto 1.35rem auto;
}

@media (max-width: 380px) {
    .nearby-react-bits-stack-box {
        width: 288px;
        height: 180px;
    }
}

.stack {
    position: relative;
    width: 100%;
    height: 100%;
    outline: none;
}

.stack:focus-visible .stack-card[data-top] .stack-card-face {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.stack-card {
    position: absolute;
    inset: 0;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.stack-card-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    will-change: transform;
}

.stack-card-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.stack-card-content img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.stack-card-shade {
    position: absolute;
    inset: 0;
    background: #000;
    pointer-events: none;
}

.nearby-stack-action-bar {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin: 0 auto;
}

.nearby-active-card-meta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.5rem;
}

.nearby-active-left {
    flex: 1;
    min-width: 0;
}

.nearby-active-name-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nearby-active-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nearby-active-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    margin-top: 0.15rem;
}

.nearby-active-right {
    flex-shrink: 0;
}

.nearby-active-action-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-connect-request.large {
    padding: 0.65rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--r-pill);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.connected-badge.large {
    padding: 0.65rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--r-pill);
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.nearby-stack-gesture-hint {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    text-align: center;
    letter-spacing: -0.01em;
}

.nearby-layout-chips-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.nearby-layout-chip {
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.28rem 0.75rem;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all 0.18s var(--ease-apple);
}

.nearby-layout-chip:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.nearby-layout-chip.active {
    background: var(--text-primary);
    color: var(--text-inverse);
    border-color: var(--text-primary);
}

#nearby-cards-stack,
.nearby-cards-stack {
    width: 100%;
    height: 100%;
    position: relative;
}

.nearby-person-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-xl);
    padding: 1.25rem 1.4rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple), border-color 0.25s var(--ease-apple);
    cursor: pointer;
    position: relative;
}

.nearby-person-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--border-strong);
}

.nearby-person-card.is-connected {
    border-color: var(--text-primary);
}

.nearby-card-top-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.nearby-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.nearby-info-col {
    flex: 1;
    min-width: 0;
}

.nearby-name-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nearby-resident-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nearby-verified-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-primary);
}

.nearby-resident-unit {
    font-size: 0.82rem;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    margin-top: 0.1rem;
}

.nearby-distance-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    padding: 0.3rem 0.65rem;
    border-radius: var(--r-pill);
    color: var(--text-primary);
    flex-shrink: 0;
}

.pulse-beacon-dot {
    display: none !important;
}

.nearby-resident-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 0.85rem;
    font-style: italic;
}

.nearby-card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nearby-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.btn-connect-request {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--text-primary);
    color: var(--text-inverse);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--r-pill);
    border: none;
    cursor: pointer;
    transition: all 0.18s var(--ease-apple);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-connect-request:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.btn-connect-request:active {
    transform: scale(0.97);
}

.connected-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-surface-inset);
    border: 1px solid var(--text-primary);
    padding: 0.4rem 0.85rem;
    border-radius: var(--r-pill);
}

.incoming-request-sheet {
    max-width: 390px;
    margin: 0 auto;
    text-align: center;
    padding: 1.35rem 1.25rem 1.75rem 1.25rem;
    box-sizing: border-box;
}

.incoming-avatar-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 0.85rem auto;
}

.incoming-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--text-inverse);
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 2;
}

.incoming-radar-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.22);
    animation: airdropPulseWave 1.8s infinite ease-out;
}

.incoming-person-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.incoming-distance-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    padding: 0.28rem 0.75rem;
    border-radius: var(--r-pill);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.incoming-request-subtext {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.incoming-actions-row {
    display: flex;
    gap: 0.65rem;
    width: 100%;
    box-sizing: border-box;
}

.btn-incoming-decline {
    flex: 1;
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all 0.18s var(--ease-apple);
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-incoming-decline:hover {
    background: var(--fill-primary);
}

.btn-incoming-accept {
    flex: 1.25;
    background: var(--text-primary);
    border: none;
    color: var(--text-inverse);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all 0.18s var(--ease-apple);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-incoming-accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.airdrop-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(6, 7, 10, 0.88);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    overflow: hidden;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

.airdrop-overlay.active {
    display: flex;
    opacity: 1;
}

.airdrop-overlay.closing {
    opacity: 0;
    pointer-events: none;
}

.airdrop-liquid-ripple-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.airdrop-overlay.phase-liquid-ripple .airdrop-liquid-ripple-container {
    opacity: 1;
}

.airdrop-liquid-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 440px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85) 0%, rgba(185, 220, 255, 0.45) 40%, rgba(0, 0, 0, 0) 75%);
    filter: blur(24px);
    opacity: 0;
}

.airdrop-overlay.phase-liquid-ripple .airdrop-liquid-glow {
    animation: liquidTopGlow 1.6s ease-out forwards;
}

@keyframes liquidTopGlow {
    0% { transform: translateX(-50%) scale(0.3); opacity: 0; }
    30% { transform: translateX(-50%) scale(1.15); opacity: 0.95; }
    100% { transform: translateX(-50%) scale(1.7); opacity: 0.15; }
}

.airdrop-liquid-ring {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%) scale(0.15);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.3);
    opacity: 0;
    will-change: transform, opacity;
}

.airdrop-overlay.phase-liquid-ripple .airdrop-liquid-ring.ring-1 {
    width: 220px;
    height: 220px;
    animation: liquidRingExpand 1.6s cubic-bezier(0.1, 0.8, 0.3, 1) 0s forwards;
}

.airdrop-overlay.phase-liquid-ripple .airdrop-liquid-ring.ring-2 {
    width: 420px;
    height: 420px;
    animation: liquidRingExpand 1.75s cubic-bezier(0.1, 0.8, 0.3, 1) 0.16s forwards;
}

.airdrop-overlay.phase-liquid-ripple .airdrop-liquid-ring.ring-3 {
    width: 680px;
    height: 680px;
    animation: liquidRingExpand 1.9s cubic-bezier(0.1, 0.8, 0.3, 1) 0.32s forwards;
}

.airdrop-overlay.phase-liquid-ripple .airdrop-liquid-ring.ring-4 {
    width: 960px;
    height: 960px;
    animation: liquidRingExpand 2.05s cubic-bezier(0.1, 0.8, 0.3, 1) 0.48s forwards;
}

@keyframes liquidRingExpand {
    0% {
        transform: translateX(-50%) scale(0.15);
        opacity: 0.95;
        border-color: rgba(255, 255, 255, 0.9);
    }
    35% {
        opacity: 0.8;
        border-color: rgba(215, 235, 255, 0.7);
    }
    75% {
        opacity: 0.4;
        border-color: rgba(180, 215, 255, 0.35);
    }
    100% {
        transform: translateX(-50%) scale(1.65);
        opacity: 0;
        border-color: rgba(255, 255, 255, 0);
    }
}

.airdrop-stage-center {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.airdrop-card-flyer {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform, opacity;
    box-sizing: border-box;
    width: 320px;
}

@media (max-width: 360px) {
    .airdrop-card-flyer {
        width: 288px;
    }
}

.airdrop-flyer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.65rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.airdrop-user-flyer {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: transform 0.65s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.45s ease;
    pointer-events: none;
}

.airdrop-overlay.phase-user-exit .airdrop-user-flyer {
    transform: translate(-50%, -125vh) scale(0.65) rotate(-3deg);
    opacity: 0;
}

.airdrop-rendered-pass-frame {
    width: 100%;
    aspect-ratio: 8 / 5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #000000;
}

.airdrop-rendered-pass-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.airdrop-peer-flyer {
    transform: translate(-50%, -125vh) scale(0.65) rotate(3deg);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

.airdrop-overlay.phase-peer-enter .airdrop-peer-flyer {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
    pointer-events: auto;
}

.airdrop-holocard-box {
    width: 320px;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 360px) {
    .airdrop-holocard-box {
        width: 288px;
        height: 180px;
    }
}

.airdrop-peer-actions-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 0.85rem;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease-spring);
    pointer-events: none;
}

.airdrop-overlay.phase-peer-settled .airdrop-peer-actions-box {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.airdrop-connected-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    color: #000000;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: var(--r-pill);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s var(--ease-apple), opacity 0.15s ease;
}

.airdrop-connected-pill:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.holocard-preset-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 540px;
}

.holocard-preset-chip {
    padding: 0.4rem 0.9rem;
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s var(--ease-apple);
    outline: none;
}

.holocard-preset-chip:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.holocard-preset-chip.active {
    background: var(--text-primary);
    color: var(--text-inverse);
    border-color: var(--text-primary);
}

.holocard-actions-row {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 480px;
}

@media (max-width: 540px) {
    .holocard-actions-row {
        flex-direction: column;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.24s var(--ease-apple);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-sheet {
    background: var(--bg-surface);
    border-radius: var(--r-2xl);
    width: 100%;
    max-width: 480px;
    padding: 1.75rem;
    box-shadow: var(--shadow-modal);
    border: 1px solid var(--border-hair);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.28s var(--ease-spring);
}

.modal-overlay.active .modal-sheet {
    transform: scale(1) translateY(0);
}

.modal-grabber-handle {
    width: 36px;
    height: 5px;
    border-radius: 3px;
    background: var(--separator);
    margin: -0.25rem auto 1rem auto;
}

.modal-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--separator);
}

.modal-sheet-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modal-dismiss-btn {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    border: none;
    padding: 4px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-dismiss-btn:hover {
    background: transparent;
    color: var(--text-primary);
    transform: scale(1.15);
}

.modal-dismiss-btn:active {
    transform: scale(0.92);
}

.toast-notice {
    position: fixed;
    top: max(1.15rem, env(safe-area-inset-top, 1.15rem));
    left: 50%;
    transform: translate(-50%, -22px) scale(0.96);
    background: rgba(18, 18, 20, 0.94);
    color: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.65rem 1.25rem;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 0.84rem;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    z-index: 12000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease-spring), opacity 0.24s ease;
    max-width: min(92vw, 390px);
    width: max-content;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
    box-sizing: border-box;
}

.toast-notice.show {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
}

.community-location-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.location-nav-arrow {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s var(--ease-apple), transform 0.2s var(--ease-apple);
}

.location-nav-arrow:hover {
    opacity: 0.6;
    transform: scale(1.15);
}

.location-nav-arrow:active {
    transform: scale(0.9);
}

.location-header-titles {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.location-headline {
    font-size: clamp(1.4rem, 3.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.location-subhead {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: -0.01em;
}

.location-indicator-strip {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.location-pills-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.location-pill-dot {
    width: 22px;
    height: 3px;
    border-radius: var(--r-pill);
    background: var(--border-hair);
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease-apple);
    padding: 0;
}

.location-pill-dot.active {
    background: var(--text-primary);
    width: 38px;
}

.bento-grid-wrapper {
    display: grid;
    grid-template-columns: 3.6fr 1fr;
    gap: 0.85rem;
    height: 400px;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--r-xl);
}

.bento-main-frame {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    height: 100%;
    min-height: 0;
    min-width: 0;
}

.bento-main-frame img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.35s ease, transform 0.4s var(--ease-apple);
}

.bento-thumbnails-col {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.bento-thumb-item {
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    transition: all 0.22s var(--ease-apple);
    box-shadow: var(--shadow-subtle);
    height: 100%;
    min-height: 0;
    min-width: 0;
}

.bento-thumb-item:hover {
    border-color: var(--border-strong);
    transform: scale(1.02);
    box-shadow: var(--shadow-lift);
}

.bento-thumb-item img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.bento-thumb-item:hover img {
    transform: scale(1.05);
}

.location-info-card {
    background: var(--bg-surface);
    border-radius: var(--r-2xl);
    border: 1px solid var(--border-hair);
    padding: 1.6rem 1.85rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    clear: both;
}

.location-info-top {
    margin-bottom: 1.15rem;
}

.location-desc-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.location-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 0.95rem 1.15rem;
    background: var(--bg-surface-inset);
    border-radius: var(--r-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 1.35rem;
}

.location-stat-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 240px;
}

.stat-icon {
    flex-shrink: 0;
    color: var(--text-primary);
}

.location-stats-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.location-live-badge {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.find-community-cta {
    width: 100%;
    background: var(--text-primary);
    color: var(--text-inverse);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.95rem 1.25rem;
    border-radius: var(--r-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s var(--ease-apple);
    box-shadow: var(--shadow-subtle);
    letter-spacing: -0.01em;
}

.find-community-cta:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.find-community-cta:active {
    transform: scale(0.98);
}

.header-action-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--text-primary);
    color: var(--text-inverse);
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-apple);
    letter-spacing: -0.01em;
}

.header-action-pill-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.header-action-pill-btn:active {
    transform: scale(0.96);
}

.invitations-container {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

.invitations-centered-title {
    text-align: center;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
}

.invitation-create-card {
    background: var(--bg-surface);
    border-radius: var(--r-xl);
    padding: 1.6rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-subtle);
}

.invitation-card-header {
    margin-bottom: 1.25rem;
}

.invitation-card-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.field-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.capacity-pill {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-primary);
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    padding: 2px 8px;
    border-radius: var(--r-xs);
}

.capacity-stepper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.capacity-step-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--ease-apple);
}

.capacity-step-btn:hover {
    border-color: var(--border-strong);
    background: var(--fill-primary);
}

.capacity-step-btn:active {
    transform: scale(0.94);
}

.capacity-number-input {
    width: 72px;
    height: 38px;
    text-align: center;
    padding: 0;
    border-radius: var(--r-sm);
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    appearance: textfield;
    -moz-appearance: textfield;
}

.capacity-number-input::-webkit-outer-spin-button,
.capacity-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.invitations-feed-col {
    min-width: 0;
}

.invitations-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.invitation-card {
    background: var(--bg-surface);
    border-radius: var(--r-xl);
    border: 1px solid var(--border-subtle);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-card);
    transition: all 0.22s var(--ease-apple);
}

.invitation-card:hover {
    box-shadow: var(--shadow-lift);
    border-color: var(--border-hair);
    transform: translateY(-2px);
}

.inv-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.inv-location-pill {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: var(--r-xs);
    background: var(--bg-surface-inset);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.inv-time-tag {
    font-size: 0.74rem;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.inv-title-text {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.inv-host-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
}

.inv-host-name {
    color: var(--text-primary);
    font-weight: 600;
}

.inv-host-unit {
    color: var(--text-tertiary);
}

.inv-note-paragraph {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 0.85rem;
}

.inv-footer-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--separator);
    gap: 0.75rem;
    flex-wrap: wrap;
}

.inv-capacity-counter {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.inv-spots-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-primary);
}

.inv-spots-indicator.full {
    background: var(--text-quaternary);
}

.inv-spots-text {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.inv-join-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--r-pill);
    background: var(--bg-surface-inset);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s var(--ease-apple);
    letter-spacing: -0.01em;
}

.inv-join-btn:hover:not(:disabled) {
    background: var(--fill-primary);
    border-color: var(--border-strong);
}

.inv-join-btn:active:not(:disabled) {
    transform: scale(0.96);
}

.inv-join-btn.joined {
    background: var(--text-primary);
    color: var(--text-inverse);
    border-color: var(--text-primary);
}

.inv-join-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .app-container {
        padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1rem calc(7.5rem + env(safe-area-inset-bottom, 0px)) 1rem;
    }

    .welcome-hero-section {
        margin-bottom: 1.8rem;
    }

    .welcome-title {
        font-size: 1.35rem;
    }

    .category-filter-group {
        width: 100%;
        overflow-x: auto;
        padding: 4px;
        gap: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .home-active-grid {
        gap: 0.65rem;
    }

    .stack-container .card {
        padding: 0.85rem;
    }

    .stack-card-title {
        font-size: 0.78rem;
    }

    .stack-card-desc {
        font-size: 0.68rem;
    }

    .rectangle-notification {
        padding: 1.1rem 1.15rem;
        gap: 0.85rem;
    }

    .notif-heading {
        font-size: 0.98rem;
    }

    .notif-paragraph {
        font-size: 0.84rem;
    }

    .settings-view-header {
        margin-bottom: 1.35rem;
    }

    .settings-columns-layout {
        width: 100%;
    }

    .settings-card-panel {
        padding: 1.25rem 1.15rem;
    }

    .card-preview-column {
        position: static;
    }

    .sharable-namecard {
        padding: 1.35rem 1.15rem;
    }

    .community-location-header {
        margin-bottom: 0.5rem;
    }

    .location-nav-arrow {
        width: 44px;
        height: 44px;
        padding: 8px;
    }

    .location-headline {
        font-size: 1.45rem;
    }

    .location-subhead {
        font-size: 0.82rem;
    }

    .bento-grid-wrapper {
        grid-template-columns: 3.3fr 1fr;
        height: 250px;
        gap: 0.5rem;
        margin-bottom: 1.35rem;
        overflow: hidden;
        border-radius: var(--r-lg);
    }

    .bento-main-frame {
        height: 100%;
        min-height: 0;
        border-radius: var(--r-lg);
        overflow: hidden;
    }

    .bento-thumbnails-col {
        display: grid;
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .bento-thumb-item {
        height: 100%;
        min-height: 0;
        border-radius: var(--r-sm);
        overflow: hidden;
    }

    .location-info-card {
        padding: 1.25rem 1.15rem;
        margin-bottom: 2rem;
    }

    .location-desc-text {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .location-stats-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
        padding: 0.85rem 1rem;
    }

    .location-stat-item {
        min-width: 0;
        width: 100%;
    }

    .location-stats-text {
        font-size: 0.84rem;
    }

    .location-live-badge {
        align-self: flex-start;
    }

    .find-community-cta {
        min-height: 48px;
        font-size: 0.92rem;
    }

    .invitations-centered-title {
        font-size: 1.28rem;
        margin-bottom: 1.25rem;
    }

    .invitation-create-card {
        padding: 1.25rem 1.15rem;
    }

    .field-row-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .capacity-stepper {
        gap: 0.65rem;
    }

    .capacity-step-btn {
        width: 44px;
        height: 44px;
    }

    .capacity-number-input {
        width: 80px;
        height: 44px;
        font-size: 1.05rem;
    }

    .invitation-card {
        padding: 1.15rem 1.15rem;
    }

    .inv-title-text {
        font-size: 0.98rem;
    }

    .inv-note-paragraph {
        font-size: 0.84rem;
    }

    .inv-footer-strip {
        gap: 0.65rem;
    }

    .inv-join-btn {
        min-height: 36px;
        padding: 6px 16px;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-sheet {
        border-radius: 24px 24px 0 0;
        max-width: 100%;
        width: 100%;
        padding: 1.25rem 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) 1.15rem;
        transform: translateY(100%);
    }

    .modal-overlay.active .modal-sheet {
        transform: translateY(0);
    }

    .incoming-request-sheet {
        max-width: 100%;
        width: 100%;
        padding: 1.25rem 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) 1.15rem;
        border-radius: 24px 24px 0 0;
    }

    .toast-notice {
        max-width: calc(100vw - 32px);
        font-size: 0.8rem;
        padding: 0.55rem 1rem;
    }

    .connect-stage-container {
        padding: 0.25rem 0.85rem 9rem 0.85rem;
    }

    .nearby-section-header-row {
        gap: 0.5rem;
        margin-bottom: 0.85rem;
        padding: 0 0.15rem;
    }

    .nearby-heading {
        font-size: 1.05rem;
        margin-bottom: 0.1rem;
    }

    .nearby-subtitle {
        font-size: 0.74rem;
        line-height: 1.3;
    }

    .nearby-counter-pill {
        font-size: 0.68rem;
        padding: 0.22rem 0.55rem;
    }

    .nearby-person-card {
        padding: 1.05rem 1.1rem;
        border-radius: var(--r-lg);
    }

    .nearby-resident-name {
        font-size: 0.98rem;
    }

    .nearby-resident-unit {
        font-size: 0.78rem;
    }

    .nearby-distance-tag {
        font-size: 0.72rem;
        padding: 0.25rem 0.55rem;
    }

    .nearby-resident-bio {
        font-size: 0.82rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .btn-connect-request {
        font-size: 0.76rem;
        padding: 0.42rem 0.85rem;
    }
}

@media (max-width: 380px) {
    .bento-grid-wrapper {
        grid-template-columns: 3.1fr 1fr;
        height: 220px;
        gap: 0.4rem;
    }

    .welcome-title {
        font-size: 1.22rem;
    }

    .location-headline {
        font-size: 1.3rem;
    }

    .notif-heading {
        font-size: 0.92rem;
    }

    .nearby-heading {
        font-size: 0.98rem;
    }

    .nearby-subtitle {
        font-size: 0.7rem;
    }

    .nearby-counter-pill {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .incoming-actions-row {
        gap: 0.5rem;
    }

    .btn-incoming-decline,
    .btn-incoming-accept {
        font-size: 0.85rem;
        padding: 0.7rem 0.75rem;
        min-height: 44px;
    }
}

.app-launch-screen {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    user-select: none;
    overflow: hidden;
    transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-launch-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.launch-stage-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.launch-icon-box {
    width: clamp(108px, 26vw, 136px);
    height: clamp(108px, 26vw, 136px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
}

.launch-icon-box.zooming {
    animation: launchZoomIntoConnector 0.52s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

.launch-icon-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
}

.launch-circle {
    fill: none;
    stroke: #1f1f1f;
    stroke-width: 80;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 755;
    stroke-dashoffset: 755;
    animation: launchDrawCircle 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.launch-connector-path {
    fill: none;
    stroke: #1f1f1f;
    stroke-width: 80;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1370;
    stroke-dashoffset: 1370;
    animation: launchDrawConnector 0.68s cubic-bezier(0.25, 1, 0.5, 1) 0.45s forwards;
}

.launch-app-name {
    font-family: 'Noto Sans Elymaic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 800;
    font-size: clamp(16px, 4.2vw, 20px);
    letter-spacing: 0.14em;
    color: #1f1f1f;
    margin-top: 14px;
    opacity: 0;
    transform: translateX(-28px);
    animation: launchGlideLeftText 0.58s cubic-bezier(0.16, 1, 0.3, 1) 0.92s forwards;
    text-transform: uppercase;
    transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.launch-app-name.hiding {
    opacity: 0 !important;
    transform: scale(0.96) !important;
}

@keyframes launchDrawCircle {
    0% {
        stroke-dashoffset: 755;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes launchDrawConnector {
    0% {
        stroke-dashoffset: 1370;
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes launchGlideLeftText {
    0% {
        opacity: 0;
        transform: translateX(-28px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes launchZoomIntoConnector {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0px);
    }
    35% {
        transform: scale(3.8);
        opacity: 1;
        filter: blur(0px);
    }
    70% {
        transform: scale(15);
        opacity: 0.7;
        filter: blur(2px);
    }
    100% {
        transform: scale(34);
        opacity: 0;
        filter: blur(10px);
    }
}


.pwa-install-banner {
    position: fixed;
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translate(-50%, 35px);
    width: calc(100% - 2rem);
    max-width: 440px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 0.75rem 0.95rem;
    z-index: 99990;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.pwa-install-banner.visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: all;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pwa-banner-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    background: #ffffff;
    object-fit: contain;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pwa-banner-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f1f1f;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.pwa-banner-subtitle {
    font-size: 0.72rem;
    color: rgba(31, 31, 31, 0.62);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-banner-install-btn {
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    background: #000000;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.pwa-banner-install-btn:hover {
    transform: scale(1.03);
    background: #1f1f1f;
}

.pwa-banner-install-btn:active {
    transform: scale(0.96);
}

.pwa-banner-dismiss-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: transparent;
    color: rgba(31, 31, 31, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.pwa-banner-dismiss-btn:hover {
    color: #000000;
}

.pwa-settings-panel {
    margin-top: 1.25rem;
}

.pwa-install-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}
