:root {
            --toolbar-height: 44px;
            --table-width: 560px;
            --table-header-bg: #1f6feb;
            --table-border: #c8d1dc;
            --workspace-bg: #f3f5f8;
            --accent: #1f6feb;
            --accent-soft: #e8f1ff;
            --danger: #d1242f;
            --danger-soft: #fee2e2;
            --success: #1d9b5f;
            --success-soft: #dcfce7;
            --warning: #b45309;
            --warning-soft: #fef3c7;
            --muted: #6b7280;
            --surface-muted: #f8fafc;
            --surface-soft: #f1f5f9;
            --surface-border: #e2e8f0;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: Arial, sans-serif;
            overflow: hidden;
            background: #eef2f7;
            color: #1f2937;
        }

        body.app-mode-dashboard,
        body.legal-page-body {
            overflow: auto;
            background:
                radial-gradient(circle at top left, rgba(31, 111, 235, 0.12), transparent 36%),
                radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 30%),
                linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
        }

        body.app-mode-dashboard .toolbar,
        body.app-mode-dashboard .viewport,
        body.app-mode-dashboard .minimap,
        body.app-mode-dashboard .debug-panel,
        body.app-mode-dashboard #search-modal-backdrop,
        body.app-mode-dashboard #import-script-backdrop,
        body.app-mode-dashboard #export-script-backdrop,
        body.app-mode-dashboard #script-progress-backdrop,
        body.app-mode-dashboard #context-menu,
        body.app-mode-dashboard #cursor-layer,
        body.app-mode-dashboard #collab-toast {
            display: none !important;
        }

        body.app-mode-editor #app-shell,
        body.app-mode-editor #member-modal-backdrop,
        body.app-mode-editor #account-modal-backdrop {
            display: none !important;
        }

        #app-shell {
            min-height: 100vh;
            padding: 38px 28px 56px;
        }

        .app-shell-wrap {
            max-width: 1240px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .app-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .app-brand {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .app-brand-title {
            font-size: 16px;
            font-weight: 900;
            letter-spacing: 0.04em;
            color: #0f172a;
            text-transform: uppercase;
        }

        .app-brand-subtitle {
            font-size: 13px;
            color: #64748b;
        }

        .app-topbar-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .identity-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.92);
            border: 1px solid rgba(148, 163, 184, 0.26);
            color: #0f172a;
            font-size: 13px;
            font-weight: 700;
            box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
        }

        .identity-chip.is-actionable {
            cursor: pointer;
        }

        .identity-chip.is-actionable:hover {
            background: #eff6ff;
            border-color: #93c5fd;
            color: #1d4ed8;
        }

        .app-shell-header {
            display: flex;
            justify-content: space-between;
            gap: 18px;
            align-items: flex-start;
            padding: 30px 32px;
            border: 1px solid rgba(148, 163, 184, 0.26);
            border-radius: 28px;
            background: rgba(255, 255, 255, 0.88);
            box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
            backdrop-filter: blur(14px);
        }

        .app-shell-eyebrow {
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.18em;
            color: #2563eb;
            text-transform: uppercase;
            margin-bottom: 10px;
        }

        .app-shell-title {
            margin: 0;
            font-size: 38px;
            line-height: 1.05;
            color: #0f172a;
        }

        .app-shell-subtitle {
            margin: 14px 0 0;
            max-width: 680px;
            font-size: 15px;
            line-height: 1.6;
            color: #475569;
        }

        .app-shell-account {
            min-width: 260px;
            padding: 18px 20px;
            border-radius: 20px;
            background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
            border: 1px solid #cbd5e1;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .app-shell-account-label {
            font-size: 12px;
            font-weight: 700;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .app-shell-account-value {
            font-size: 18px;
            font-weight: 800;
            color: #0f172a;
            word-break: break-word;
        }

        .app-shell-account-meta {
            font-size: 13px;
            color: #475569;
            line-height: 1.5;
        }

        .app-shell-grid {
            display: grid;
            grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
            gap: 22px;
        }

        .hero-card {
            position: relative;
            overflow: hidden;
            padding: 36px;
            border-radius: 28px;
            border: 1px solid rgba(148, 163, 184, 0.24);
            background:
                radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34%),
                radial-gradient(circle at bottom right, rgba(148, 163, 184, 0.18), transparent 30%),
                linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,252,0.98) 100%);
            box-shadow: 0 24px 72px rgba(15, 23, 42, 0.08);
        }

        .hero-title {
            margin: 0;
            max-width: 680px;
            font-size: 42px;
            line-height: 1.04;
            letter-spacing: -0.03em;
            color: #0f172a;
        }

        .hero-description {
            margin: 16px 0 0;
            max-width: 620px;
            font-size: 16px;
            line-height: 1.75;
            color: #475569;
        }

        .marketing-hero-grid {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
            gap: 28px;
            align-items: center;
        }

        .marketing-hero-copy {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .marketing-hero-actions,
        .marketing-cta-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .marketing-hero-actions {
            margin-top: 24px;
        }

        .marketing-cta-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 46px;
            padding: 12px 18px;
            text-decoration: none;
            transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
        }

        .marketing-cta-btn:hover {
            transform: translateY(-1px);
        }

        .marketing-hero .solid-action-btn.marketing-cta-btn {
            box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
        }

        .marketing-hero-pills {
            margin-top: 22px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .marketing-hero-pill {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 11px 14px;
            border-radius: 999px;
            border: 1px solid #dbe3ee;
            background: rgba(255, 255, 255, 0.86);
            color: #334155;
            font-size: 13px;
            font-weight: 700;
            line-height: 1.4;
        }

        .marketing-hero-pill-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #2563eb;
            box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
            flex: 0 0 auto;
        }

        .marketing-hero-visual {
            position: relative;
            min-height: 352px;
        }

        .marketing-visual-shell {
            position: relative;
            height: 100%;
            padding: 18px;
            border-radius: 28px;
            background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(239,246,255,0.94) 100%);
            border: 1px solid rgba(148, 163, 184, 0.22);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
        }

        .marketing-visual-shell::before {
            content: "";
            position: absolute;
            inset: 12px;
            border-radius: 22px;
            background:
                radial-gradient(circle at 20% 16%, rgba(37, 99, 235, 0.14), transparent 22%),
                radial-gradient(circle at 82% 86%, rgba(148, 163, 184, 0.18), transparent 22%);
            pointer-events: none;
        }

        .marketing-visual-window {
            position: relative;
            min-height: 316px;
            height: 100%;
            border-radius: 22px;
            border: 1px solid #dbe3ee;
            background:
                linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(241,245,249,0.94) 100%),
                linear-gradient(90deg, rgba(148,163,184,0.1) 1px, transparent 1px),
                linear-gradient(rgba(148,163,184,0.1) 1px, transparent 1px);
            background-size: auto, 28px 28px, 28px 28px;
            overflow: hidden;
        }

        .marketing-visual-toolbar {
            display: flex;
            gap: 8px;
            padding: 16px 16px 0;
        }

        .marketing-visual-toolbar span {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #cbd5e1;
        }

        .marketing-visual-toolbar span:first-child {
            background: #93c5fd;
        }

        .marketing-visual-toolbar span:nth-child(2) {
            background: #bfdbfe;
        }

        .marketing-visual-badge {
            position: absolute;
            top: 18px;
            right: 18px;
            padding: 8px 12px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.88);
            color: #f8fafc;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.01em;
            box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
        }

        .marketing-visual-node {
            position: absolute;
            width: 152px;
            padding: 14px;
            border-radius: 18px;
            border: 1px solid #dbe3ee;
            background: rgba(255, 255, 255, 0.94);
            box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
        }

        .marketing-visual-node.is-accent {
            border-color: rgba(37, 99, 235, 0.26);
            box-shadow: 0 18px 36px rgba(37, 99, 235, 0.12);
        }

        .marketing-visual-node-title {
            font-size: 14px;
            font-weight: 800;
            color: #0f172a;
        }

        .marketing-visual-node-line {
            height: 8px;
            margin-top: 10px;
            border-radius: 999px;
            background: linear-gradient(90deg, #cbd5e1 0%, #e2e8f0 100%);
        }

        .marketing-visual-node-line.short {
            width: 72%;
        }

        .marketing-node-users {
            top: 72px;
            left: 26px;
        }

        .marketing-node-orders {
            top: 138px;
            left: 158px;
        }

        .marketing-node-payments {
            right: 24px;
            bottom: 34px;
        }

        .marketing-visual-link {
            position: absolute;
            height: 2px;
            transform-origin: left center;
            background: linear-gradient(90deg, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.54) 50%, rgba(148, 163, 184, 0.3) 100%);
        }

        .marketing-link-users-orders {
            top: 151px;
            left: 155px;
            width: 112px;
            transform: rotate(20deg);
        }

        .marketing-link-orders-payments {
            top: 220px;
            left: 286px;
            width: 116px;
            transform: rotate(18deg);
        }

        .marketing-visual-presence {
            position: absolute;
            padding: 7px 10px;
            border-radius: 999px;
            background: rgba(239, 246, 255, 0.98);
            border: 1px solid #bfdbfe;
            color: #1d4ed8;
            font-size: 12px;
            font-weight: 700;
            box-shadow: 0 12px 22px rgba(37, 99, 235, 0.1);
        }

        .marketing-presence-a {
            top: 64px;
            right: 72px;
        }

        .marketing-presence-b {
            top: 204px;
            left: 82px;
        }

        .marketing-presence-c {
            right: 38px;
            bottom: 132px;
        }

        .guest-section {
            padding: 34px 36px;
            border-radius: 28px;
            border: 1px solid rgba(148, 163, 184, 0.24);
            background: rgba(255, 255, 255, 0.92);
            box-shadow: 0 18px 52px rgba(15, 23, 42, 0.07);
        }

        .guest-section-muted {
            background: linear-gradient(180deg, rgba(248,250,252,0.96) 0%, rgba(255,255,255,0.96) 100%);
        }

        .guest-section-heading {
            max-width: 720px;
        }

        .guest-section-title {
            margin: 0;
            font-size: 28px;
            line-height: 1.15;
            color: #0f172a;
        }

        .guest-section-description {
            margin: 12px 0 0;
            font-size: 15px;
            line-height: 1.7;
            color: #64748b;
        }

        .marketing-feature-grid {
            margin-top: 22px;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }

        .marketing-feature-card,
        .marketing-step-card {
            padding: 22px;
            border-radius: 20px;
            border: 1px solid #dbe3ee;
            background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
        }

        .marketing-feature-card {
            min-height: 198px;
        }

        .marketing-feature-icon,
        .marketing-step-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: auto;
            min-width: 42px;
            height: 42px;
            padding: 0 14px;
            border-radius: 14px;
            background: #eff6ff;
            color: #1d4ed8;
            font-size: 13px;
            font-weight: 800;
        }

        .marketing-feature-pro {
            display: inline-flex;
            align-items: center;
            padding: 2px 8px;
            border-radius: 10px;
            background: #2563eb;
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            line-height: 1.2;
        }

        .marketing-feature-title,
        .marketing-step-title {
            margin: 18px 0 0;
            font-size: 18px;
            line-height: 1.35;
            color: #0f172a;
        }

        .marketing-feature-description,
        .marketing-step-description {
            margin: 10px 0 0;
            font-size: 14px;
            line-height: 1.75;
            color: #64748b;
        }

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

        .marketing-step-card {
            min-height: 206px;
            background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(241,245,249,0.96) 100%);
        }

        .marketing-cta-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            padding: 28px 30px;
            border-radius: 24px;
            border: 1px solid rgba(37, 99, 235, 0.14);
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0.96) 58%, rgba(241, 245, 249, 0.96) 100%);
            box-shadow: 0 18px 52px rgba(15, 23, 42, 0.07);
        }

        /* ── 플랜 비교 카드 ── */
        .pricing-grid {
            margin-top: 22px;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            max-width: 680px;
            margin-left: auto;
            margin-right: auto;
        }

        .pricing-card {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 18px;
            padding: 24px 20px;
            border-radius: 20px;
            border: 1px solid #dbe3ee;
            background: rgba(255, 255, 255, 0.92);
            transition: border-color .2s, box-shadow .2s;
        }

        .pricing-card:hover {
            border-color: #93c5fd;
            box-shadow: 0 12px 36px rgba(37, 99, 235, 0.08);
        }

        .pricing-card-popular {
            border-color: #2563eb;
            background: linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, rgba(255,255,255,0.96) 40%);
            box-shadow: 0 12px 40px rgba(37, 99, 235, 0.10);
        }

        .pricing-card-popular:hover {
            box-shadow: 0 16px 48px rgba(37, 99, 235, 0.14);
        }

        .pricing-popular-tag {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            padding: 3px 14px;
            border-radius: 20px;
            background: #2563eb;
            color: #fff;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: .02em;
            white-space: nowrap;
        }

        .pricing-card-header {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .pricing-badge {
            display: inline-block;
            width: fit-content;
            padding: 2px 10px;
            border-radius: 8px;
            background: #f1f5f9;
            color: #334155;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: .03em;
        }

        .pricing-card-popular .pricing-badge {
            background: rgba(37, 99, 235, 0.10);
            color: #2563eb;
        }

        .pricing-price {
            font-size: 32px;
            font-weight: 900;
            color: #0f172a;
            line-height: 1.1;
        }

        .pricing-period {
            font-size: 15px;
            font-weight: 600;
            color: #64748b;
        }

        .pricing-tagline {
            margin: 2px 0 0;
            font-size: 13px;
            line-height: 1.5;
            color: #64748b;
        }

        .pricing-features {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }

        .pricing-feature {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            font-size: 13px;
            line-height: 1.5;
            color: #334155;
        }

        .pricing-check {
            flex-shrink: 0;
            display: inline-block;
            width: 16px;
            height: 16px;
            margin-top: 1px;
            border-radius: 50%;
            background: #dcfce7;
            position: relative;
        }

        .pricing-check::after {
            content: '';
            position: absolute;
            top: 4px;
            left: 5px;
            width: 5px;
            height: 3px;
            border-left: 2px solid #16a34a;
            border-bottom: 2px solid #16a34a;
            transform: rotate(-45deg);
        }

        .pricing-feature-pro {
            color: #1d4ed8;
            font-weight: 600;
        }
        .pricing-feature-pro .pricing-check {
            background: #dbeafe;
        }
        .pricing-feature-pro .pricing-check::after {
            border-color: #2563eb;
        }

        .pricing-cta {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            text-decoration: none;
            text-align: center;
            margin-top: auto;
        }

        .marketing-cta-title {
            margin: 0;
            font-size: 28px;
            line-height: 1.1;
            color: #0f172a;
        }

        .marketing-cta-copy {
            margin: 10px 0 0;
            max-width: 540px;
            font-size: 15px;
            line-height: 1.7;
            color: #475569;
        }

        .marketing-contact-link {
            color: #1d4ed8;
            font-size: 14px;
            font-weight: 700;
            text-decoration: none;
        }

        .marketing-contact-link:hover {
            text-decoration: underline;
        }

        .marketing-footer {
            padding: 16px 4px 8px;
            text-align: center;
            border-top: 1px solid #e2e8f0;
            margin-top: 12px;
        }

        .marketing-footer-brand {
            font-size: 13px;
            line-height: 1.6;
            color: #64748b;
            margin: 0 0 6px;
        }

        .marketing-footer-links {
            display: flex;
            justify-content: center;
            gap: 16px;
        }

        .marketing-footer-links a {
            font-size: 12px;
            color: #64748b;
            text-decoration: none;
        }

        .marketing-footer-links a:hover {
            color: #3b82f6;
            text-decoration: underline;
        }

        .dashboard-panel {
            display: none;
            flex-direction: column;
            gap: 18px;
        }

        .dashboard-panel.show {
            display: flex;
        }

        .project-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            flex-wrap: wrap;
        }

        .project-toolbar-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            flex-wrap: wrap;
        }

        .project-toolbar-meta {
            font-size: 13px;
            color: #64748b;
            line-height: 1.6;
        }

        /* ── 플랜 정보 카드 ── */
        .plan-info-card {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 12px 18px;
            border-radius: 14px;
            border: 1px solid #e2e8f0;
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            font-size: 13px;
        }
        .plan-info-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            min-width: 72px;
        }
        .plan-info-badge {
            display: inline-block;
            padding: 3px 14px;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: .3px;
        }
        .plan-info-label {
            font-size: 11px;
            color: #94a3b8;
        }
        .plan-info-stats {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .plan-stat {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            min-width: 60px;
        }
        .plan-stat-value {
            font-size: 20px;
            font-weight: 800;
            color: #0f172a;
        }
        .plan-stat-label {
            font-size: 11px;
            color: #64748b;
        }
        .plan-stat-divider {
            width: 1px;
            height: 32px;
            background: #e2e8f0;
        }

        .plan-free .plan-info-badge { background: #f1f5f9; color: #475569; }
        .plan-starter .plan-info-badge { background: #dbeafe; color: #1d4ed8; }
        .plan-pro .plan-info-badge { background: #fef3c7; color: #92400e; }
        .plan-enterprise .plan-info-badge { background: #ede9fe; color: #6d28d9; }

        .plan-info-expires {
            font-size: 10px;
            color: #94a3b8;
        }

        .plan-info-card {
            flex-wrap: wrap;
        }

        .plan-info-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: auto;
            flex-wrap: wrap;
        }

        .plan-secondary-btn {
            padding: 9px 14px;
            font-size: 12px;
            font-weight: 800;
            background: var(--surface-muted);
            border: 1px solid #cbd5e1;
        }

        .plan-secondary-btn:hover {
            background: #eff6ff;
            color: #1d4ed8;
        }

        .upgrade-plan-btn {
            padding: 5px 14px;
            border-radius: 8px;
            border: none;
            background: linear-gradient(135deg, #2563eb, #7c3aed);
            color: #fff;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            animation: upgradePulse 2s ease-in-out infinite;
            transition: transform .15s;
            margin-left: 0;
        }

        .upgrade-plan-btn:hover {
            transform: scale(1.05);
        }

        @keyframes upgradePulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .4); }
            50% { box-shadow: 0 0 12px 4px rgba(37, 99, 235, .25); }
        }

        /* ── 구독 모달 ── */
        .subscribe-modal {
            background: #fff;
            border-radius: 20px;
            max-width: 720px;
            width: 94vw;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 24px 64px rgba(0,0,0,.2);
        }

        .subscribe-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 22px;
            border-bottom: 1px solid #e2e8f0;
        }

        .subscribe-modal-body {
            padding: 20px 22px;
        }

        .subscribe-current-info {
            padding: 12px 16px;
            border-radius: 12px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            font-size: 13px;
            line-height: 1.6;
            margin-bottom: 18px;
            color: #475569;
        }

        .subscribe-credit {
            color: #16a34a;
            font-weight: 600;
        }

        .subscribe-plans {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 12px;
            margin-bottom: 18px;
        }

        .subscribe-plan-card {
            padding: 16px;
            border-radius: 14px;
            border: 2px solid #e2e8f0;
            background: #fff;
            cursor: pointer;
            transition: border-color .15s, box-shadow .15s;
        }

        .subscribe-plan-card:hover {
            border-color: #93c5fd;
        }

        .subscribe-plan-card.selected {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
        }

        .subscribe-plan-card.current {
            opacity: .5;
            cursor: default;
        }

        .subscribe-plan-name {
            font-size: 16px;
            font-weight: 800;
            color: #0f172a;
        }

        .subscribe-plan-price {
            font-size: 22px;
            font-weight: 800;
            color: #2563eb;
            margin: 6px 0;
        }

        .subscribe-period {
            font-size: 13px;
            font-weight: 400;
            color: #94a3b8;
        }

        .subscribe-plan-desc {
            font-size: 12px;
            color: #64748b;
            margin-bottom: 8px;
        }

        .subscribe-plan-features {
            list-style: none;
            padding: 0;
            margin: 0;
            font-size: 11px;
            color: #475569;
        }

        .subscribe-plan-features li {
            padding: 2px 0;
        }

        .subscribe-plan-features li::before {
            content: '✓ ';
            color: #22c55e;
        }

        .subscribe-plan-current {
            margin-top: 8px;
            font-size: 11px;
            font-weight: 700;
            color: #94a3b8;
            text-align: center;
        }

        .subscribe-summary {
            padding: 12px 16px;
            border-radius: 12px;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            font-size: 14px;
            margin-bottom: 14px;
        }

        .subscribe-summary-title {
            font-size: 12px;
            font-weight: 800;
            color: #166534;
            margin-bottom: 10px;
            letter-spacing: 0.04em;
        }

        .subscribe-summary-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            line-height: 1.5;
        }

        .subscribe-summary-row + .subscribe-summary-row {
            margin-top: 6px;
        }

        .subscribe-summary-row.is-total {
            font-size: 15px;
            font-weight: 800;
            color: #14532d;
        }

        .subscribe-summary-divider {
            height: 1px;
            margin: 10px 0;
            background: rgba(34, 197, 94, 0.2);
        }

        .subscribe-summary-note {
            margin-top: 10px;
            font-size: 12px;
            line-height: 1.5;
            color: #166534;
        }

        .subscribe-coupon-row {
            margin-bottom: 14px;
            align-items: end;
        }

        .subscribe-coupon-apply-btn {
            min-width: 84px;
            min-height: 45px;
            white-space: nowrap;
        }

        .subscribe-confirm-btn {
            width: 100%;
            padding: 12px;
            font-size: 15px;
            border-radius: 12px;
        }

        .payment-history-modal {
            width: min(760px, 100%);
            max-height: calc(100vh - 48px);
            background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        }

        .payment-history-notice {
            padding: 12px 16px;
            border-radius: 14px;
            background: #eff6ff;
            border: 1px solid #bfdbfe;
            color: #1e3a8a;
            font-size: 13px;
            line-height: 1.6;
        }

        .payment-history-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .payment-history-empty {
            padding: 28px 20px;
            border: 1px dashed #cbd5e1;
            border-radius: 18px;
            background: var(--surface-muted);
            text-align: center;
            font-size: 14px;
            color: #64748b;
        }

        .payment-history-item {
            display: flex;
            flex-direction: column;
            gap: 14px;
            padding: 18px;
            border-radius: 20px;
            border: 1px solid #dbe3ee;
            background: rgba(255, 255, 255, 0.94);
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
        }

        .payment-history-item-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }

        .payment-history-plan {
            font-size: 16px;
            font-weight: 800;
            color: #0f172a;
        }

        .payment-history-date {
            margin-top: 6px;
            font-size: 12px;
            color: #64748b;
        }

        .payment-history-meta-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 10px;
        }

        .payment-history-meta {
            padding: 12px 14px;
            border-radius: 14px;
            background: var(--surface-muted);
            border: 1px solid var(--surface-border);
        }

        .payment-history-meta-label {
            display: block;
            font-size: 11px;
            font-weight: 800;
            color: #64748b;
            letter-spacing: 0.04em;
        }

        .payment-history-meta-value {
            display: block;
            margin-top: 6px;
            font-size: 15px;
            font-weight: 800;
            color: #0f172a;
            word-break: break-word;
        }

        .payment-status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 7px 12px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 800;
            white-space: nowrap;
        }

        .payment-status-badge.is-pending {
            background: var(--warning-soft);
            color: var(--warning);
        }

        .payment-status-badge.is-approved {
            background: var(--success-soft);
            color: var(--success);
        }

        .payment-status-badge.is-failed {
            background: var(--danger-soft);
            color: var(--danger);
        }

        .payment-status-badge.is-cancelled {
            background: var(--surface-soft);
            color: var(--muted);
        }

        .payment-history-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .payment-history-link {
            text-decoration: none;
        }

        .payment-refund-form {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 14px;
            border-radius: 16px;
            border: 1px solid #dbeafe;
            background: #f8fbff;
        }

        .payment-refund-label {
            font-size: 12px;
            font-weight: 800;
            color: #1d4ed8;
        }

        .payment-refund-form textarea {
            width: 100%;
            min-height: 96px;
            padding: 12px;
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            background: #fff;
            font-size: 14px;
            resize: vertical;
        }

        .payment-refund-form textarea:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }

        .payment-refund-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            flex-wrap: wrap;
        }

        .modal-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.4);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(4px);
        }

        .app-card {
            border: 1px solid rgba(148, 163, 184, 0.24);
            border-radius: 24px;
            background: rgba(255, 255, 255, 0.92);
            box-shadow: 0 18px 52px rgba(15, 23, 42, 0.07);
            overflow: hidden;
        }

        .app-card-header {
            padding: 22px 24px 16px;
            border-bottom: 1px solid #e2e8f0;
        }

        .app-card-title {
            margin: 0;
            font-size: 20px;
            color: #0f172a;
        }

        .app-card-desc {
            margin: 8px 0 0;
            font-size: 13px;
            line-height: 1.55;
            color: #64748b;
        }

        .app-card-body {
            padding: 22px 24px 24px;
        }

        .stack-md {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .auth-form,
        .project-create-form,
        .member-form {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .form-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .form-field label {
            font-size: 12px;
            font-weight: 700;
            color: #475569;
        }

        .form-field input,
        .form-field select {
            width: 100%;
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            padding: 11px 12px;
            background: #fff;
            font-size: 14px;
            outline: none;
        }

        .form-field input:focus,
        .form-field select:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }

        .inline-form-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 10px;
            align-items: end;
        }

        .primary-text-btn,
        .ghost-text-btn,
        .danger-text-btn,
        .solid-action-btn,
        .soft-action-btn {
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 700;
        }

        .solid-action-btn {
            padding: 12px 14px;
            color: #fff;
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        }

        .soft-action-btn {
            padding: 11px 14px;
            color: #0f172a;
            background: #e2e8f0;
        }

        .primary-text-btn,
        .ghost-text-btn,
        .danger-text-btn {
            padding: 0;
            background: transparent;
            text-align: left;
            font-size: 13px;
        }

        .primary-text-btn { color: #2563eb; }
        .ghost-text-btn { color: #475569; }
        .danger-text-btn { color: #b91c1c; }

        .auth-feedback,
        .project-feedback,
        .member-feedback,
        .room-access-banner {
            border-radius: 14px;
            padding: 12px 14px;
            font-size: 13px;
            line-height: 1.5;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .feedback-text {
            flex: 1;
        }

        .feedback-close {
            flex-shrink: 0;
            width: 24px;
            height: 24px;
            border: none;
            border-radius: 50%;
            background: transparent;
            color: inherit;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.5;
            transition: opacity .15s, background .15s;
        }
        .feedback-close:hover {
            opacity: 1;
            background: rgba(0,0,0,.08);
        }

        .auth-feedback,
        .project-feedback,
        .member-feedback {
            display: none;
        }

        .auth-feedback.show,
        .project-feedback.show,
        .member-feedback.show,
        .room-access-banner.show {
            display: flex;
        }

        .feedback-info {
            background: #eff6ff;
            color: #1d4ed8;
            border: 1px solid #bfdbfe;
        }

        .feedback-error {
            background: #fef2f2;
            color: #b91c1c;
            border: 1px solid #fecaca;
        }

        .feedback-success {
            background: #ecfdf5;
            color: #047857;
            border: 1px solid #a7f3d0;
        }

        .project-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .project-item {
            border: 1px solid #dbe3ee;
            border-radius: 18px;
            padding: 18px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
            display: flex;
            justify-content: space-between;
            gap: 16px;
            align-items: flex-start;
        }

        .project-item-title {
            margin: 0;
            font-size: 17px;
            color: #0f172a;
        }

        .project-item-meta {
            margin-top: 8px;
            font-size: 13px;
            line-height: 1.6;
            color: #64748b;
        }

        .project-role-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 10px;
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 800;
            background: #e0f2fe;
            color: #0c4a6e;
        }

        .project-item-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: stretch;
            flex: 0 0 176px;
            min-width: 176px;
        }

        .project-action-btn {
            width: 100%;
            min-height: 42px;
            padding: 11px 16px;
            border-radius: 12px;
            border: 1px solid transparent;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 13px;
            font-weight: 800;
            line-height: 1.2;
            text-align: center;
            white-space: nowrap;
            transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
        }

        .project-action-btn:hover {
            transform: translateY(-1px);
        }

        .project-action-btn:focus-visible,
        .account-modal-close-btn:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
        }

        .project-action-btn.project-action-primary {
            color: #fff;
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
        }

        .project-action-btn.project-action-secondary {
            color: #334155;
            background: #f8fafc;
            border-color: #cbd5e1;
        }

        .project-action-btn.project-action-link {
            color: #1d4ed8;
            background: #eff6ff;
            border-color: #bfdbfe;
        }

        .project-action-btn.project-action-danger {
            color: #fff;
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
            border-color: #ef4444;
            box-shadow: 0 12px 24px rgba(185, 28, 28, 0.16);
        }

        .empty-projects {
            padding: 34px 18px;
            border: 1px dashed #cbd5e1;
            border-radius: 18px;
            text-align: center;
            font-size: 14px;
            color: #64748b;
            background: #f8fafc;
        }

        #member-modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.48);
            z-index: 140;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        #member-modal-backdrop.show {
            display: flex;
        }

        .member-modal {
            width: min(760px, 100%);
            max-height: calc(100vh - 48px);
            overflow: auto;
            border-radius: 24px;
            background: #fff;
            box-shadow: 0 24px 72px rgba(15, 23, 42, 0.24);
        }

        .member-modal-header,
        .member-modal-body {
            padding: 22px 24px;
        }

        .member-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            border-bottom: 1px solid #e2e8f0;
        }

        .member-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 18px;
        }

        .member-item {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            align-items: center;
            padding: 14px 16px;
            border-radius: 16px;
            border: 1px solid #e2e8f0;
            background: #f8fafc;
        }

        .member-item-name {
            font-size: 15px;
            font-weight: 700;
            color: #0f172a;
        }

        .member-item-meta {
            margin-top: 4px;
            font-size: 13px;
            color: #64748b;
        }

        .member-role-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 6px 10px;
            border-radius: 999px;
            background: #dbeafe;
            color: #1d4ed8;
            font-size: 12px;
            font-weight: 800;
        }

        .member-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }

        .pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 5px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.02em;
            white-space: nowrap;
        }

        .pill-owner { background: #fef3c7; color: #92400e; }
        .pill-pending { background: #f1f5f9; color: #475569; }
        .pill-editor { background: #d1fae5; color: #065f46; }
        .pill-viewer { background: #dbeafe; color: #1d4ed8; }

        .pill-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 5px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
            border: none;
            cursor: pointer;
            transition: background 120ms ease, transform 80ms ease;
        }

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

        .pill-btn-copy {
            background: #e0e7ff;
            color: #3730a3;
        }
        .pill-btn-copy:hover { background: #c7d2fe; }

        .pill-btn-danger {
            background: #fee2e2;
            color: #991b1b;
        }
        .pill-btn-danger:hover { background: #fecaca; }

        .pill-btn-toggle-role {
            background: #e0f2fe;
            color: #075985;
        }
        .pill-btn-toggle-role:hover { background: #bae6fd; }

        .member-section-label {
            font-size: 12px;
            font-weight: 700;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-top: 8px;
            margin-bottom: 2px;
            padding-left: 4px;
        }

        .member-section-label:first-child {
            margin-top: 0;
        }

        #help-modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.48);
            z-index: 147;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        #help-modal-backdrop.show {
            display: flex;
        }

        .help-modal {
            width: min(760px, 100%);
            max-height: calc(100vh - 48px);
            overflow: auto;
            border-radius: 24px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
            box-shadow: 0 24px 72px rgba(15, 23, 42, 0.24);
        }

        .help-modal-header,
        .help-modal-body {
            padding: 22px 24px;
        }

        .help-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            border-bottom: 1px solid #e2e8f0;
        }

        .help-modal-intro {
            padding: 16px 18px;
            border-radius: 18px;
            border: 1px solid #dbeafe;
            background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
            color: #1e3a8a;
            font-size: 13px;
            line-height: 1.7;
        }

        .help-accordion-item {
            border: 1px solid #dbe3ee;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.92);
            overflow: hidden;
        }

        .help-accordion-item summary {
            list-style: none;
            cursor: pointer;
            padding: 16px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            font-size: 15px;
            font-weight: 800;
            color: #0f172a;
            background: #f8fafc;
        }

        .help-accordion-item summary::-webkit-details-marker {
            display: none;
        }

        .help-accordion-item summary::after {
            content: '+';
            flex: 0 0 auto;
            width: 28px;
            height: 28px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #dbeafe;
            color: #1d4ed8;
            font-size: 18px;
            line-height: 1;
        }

        .help-accordion-item[open] summary {
            background: #eff6ff;
            color: #1d4ed8;
        }

        .help-accordion-item[open] summary::after {
            content: '–';
        }

        .help-accordion-content {
            padding: 0 18px 18px;
        }

        .help-modal-list {
            margin: 0;
            padding-left: 18px;
            color: #475569;
            font-size: 13px;
            line-height: 1.7;
        }

        .help-modal-list li + li {
            margin-top: 8px;
        }

        .help-kbd-list {
            list-style: none;
            padding-left: 0;
        }

        .help-kbd-list li {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            padding: 10px 12px;
            border-radius: 14px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
        }

        .help-kbd-list li + li {
            margin-top: 10px;
        }

        .help-kbd-list strong {
            color: #0f172a;
            font-size: 13px;
            font-weight: 700;
            text-align: right;
        }

        .help-kbd-list span {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            flex-wrap: wrap;
            color: #1d4ed8;
            font-weight: 700;
        }

        .help-kbd-list kbd {
            min-width: 30px;
            padding: 4px 8px;
            border-radius: 10px;
            border: 1px solid #bfdbfe;
            background: #eff6ff;
            color: #1e3a8a;
            font-size: 12px;
            font-weight: 800;
            text-align: center;
            box-shadow: inset 0 -1px 0 rgba(37, 99, 235, 0.12);
        }

        #auth-modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.48);
            z-index: 145;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        /* ── 공통 모달 패턴 ── */
        .modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.48);
            z-index: 142;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .modal-backdrop.show {
            display: flex;
        }

        .modal-panel {
            width: min(520px, 100%);
            max-height: calc(100vh - 48px);
            overflow: auto;
            border-radius: 24px;
            background: #fff;
            box-shadow: 0 24px 72px rgba(15, 23, 42, 0.24);
        }

        .modal-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 22px 24px 12px;
        }

        .modal-panel-body {
            padding: 12px 24px 22px;
        }

        .inquiry-notice {
            padding: 12px 16px;
            border-radius: 12px;
            background: #f0f9ff;
            border: 1px solid #bae6fd;
            color: #0369a1;
            font-size: 13px;
            line-height: 1.6;
        }

        #inquiry-modal-backdrop textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            font: inherit;
            font-size: 14px;
            resize: vertical;
            min-height: 120px;
        }

        #inquiry-modal-backdrop textarea:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }

        #auth-modal-backdrop.show {
            display: flex;
        }

        #account-modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.48);
            z-index: 146;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        #account-modal-backdrop.show {
            display: flex;
        }

        .account-modal {
            width: min(560px, 100%);
            max-height: calc(100vh - 48px);
            overflow: auto;
            border-radius: 24px;
            background: #fff;
            box-shadow: 0 24px 72px rgba(15, 23, 42, 0.24);
            scrollbar-width: thin;
            scrollbar-color: #94a3b8 #e2e8f0;
        }

        .account-modal::-webkit-scrollbar {
            width: 12px;
        }

        .account-modal::-webkit-scrollbar-track {
            margin: 12px 6px 12px 0;
            border-radius: 999px;
            background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
        }

        .account-modal::-webkit-scrollbar-thumb {
            border-radius: 999px;
            border: 3px solid #e2e8f0;
            background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
        }

        .account-modal::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #64748b 0%, #475569 100%);
        }

        .account-modal-header,
        .account-modal-body {
            padding: 22px 24px;
        }

        .account-modal-header {
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
        }

        .account-modal-close-btn {
            flex: 0 0 auto;
            align-self: flex-start;
            width: 42px;
            height: 42px;
            padding: 0;
            border: 1px solid #ef4444;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
            color: #fff;
            font-size: 24px;
            font-weight: 800;
            line-height: 1;
            cursor: pointer;
            box-shadow: 0 14px 28px rgba(185, 28, 28, 0.18);
            transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
        }

        .account-modal-close-btn:hover {
            transform: translateY(-1px);
            background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
            box-shadow: 0 16px 30px rgba(153, 27, 27, 0.22);
        }

        .account-summary-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .account-summary-item {
            padding: 14px 16px;
            border-radius: 16px;
            border: 1px solid #e2e8f0;
            background: #f8fafc;
        }

        .account-summary-label {
            font-size: 12px;
            font-weight: 800;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .account-summary-value {
            margin-top: 6px;
            font-size: 14px;
            color: #0f172a;
            font-weight: 700;
            word-break: break-word;
        }

        .account-danger-box {
            padding: 16px 18px;
            border-radius: 18px;
            border: 1px solid rgba(209, 36, 47, 0.22);
            background: rgba(254, 242, 242, 0.92);
        }

        .account-danger-title {
            font-size: 14px;
            font-weight: 800;
            color: #991b1b;
        }

        .account-danger-copy {
            margin-top: 8px;
            font-size: 13px;
            line-height: 1.6;
            color: #7f1d1d;
        }

        .account-owned-projects {
            margin: 10px 0 0;
            padding-left: 18px;
            color: #7f1d1d;
            font-size: 13px;
        }

        .account-modal-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .danger-action-btn {
            border: 1px solid #fecaca;
            background: #dc2626;
            color: #fff;
            border-radius: 12px;
            padding: 11px 16px;
            font-size: 14px;
            font-weight: 800;
            cursor: pointer;
        }

        .danger-action-btn:hover {
            background: #b91c1c;
        }

        .auth-modal {
            width: min(460px, 100%);
            border-radius: 24px;
            background: #fff;
            box-shadow: 0 24px 72px rgba(15, 23, 42, 0.24);
            overflow: hidden;
        }

        .auth-modal-header,
        .auth-modal-body {
            padding: 22px 24px;
        }

        .auth-modal-header {
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
        }

        .auth-tab-row {
            display: flex;
            gap: 10px;
            margin-bottom: 14px;
        }

        .auth-tab-btn {
            flex: 1 1 0;
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            padding: 10px 12px;
            background: #f8fafc;
            color: #475569;
            cursor: pointer;
            font-weight: 800;
        }

        .auth-tab-btn.is-active {
            background: #dbeafe;
            border-color: #93c5fd;
            color: #1d4ed8;
        }

        .auth-pane {
            display: none;
        }

        .auth-pane.show {
            display: block;
        }

        .auth-inline-action-row {
            display: flex;
            justify-content: flex-end;
        }

        .auth-inline-action-btn {
            min-width: 124px;
        }

        @media (max-width: 980px) {
            .app-shell-grid {
                grid-template-columns: 1fr;
            }

            .marketing-hero-grid,
            .marketing-feature-grid,
            .marketing-steps {
                grid-template-columns: 1fr;
            }

            .app-shell-header {
                flex-direction: column;
            }

            .hero-card,
            .guest-section {
                padding: 24px;
            }

            .hero-title {
                font-size: 34px;
            }

            .marketing-hero-visual {
                min-height: 316px;
            }

            .marketing-cta-bar {
                flex-direction: column;
                align-items: flex-start;
            }

            .marketing-cta-actions {
                width: 100%;
                align-items: stretch;
            }

            .marketing-cta-btn {
                width: 100%;
            }

            .app-topbar {
                flex-direction: column;
                align-items: stretch;
            }

            .app-shell-account {
                width: 100%;
            }

            .inline-form-row {
                grid-template-columns: 1fr;
            }

            .project-item {
                flex-direction: column;
            }

            .project-item-actions {
                width: 100%;
                align-items: stretch;
            }

            .payment-history-item-header,
            .payment-history-actions {
                flex-direction: column;
                align-items: stretch;
            }

            .plan-info-actions {
                width: 100%;
                margin-left: 0;
            }

            .help-kbd-list li {
                flex-direction: column;
                align-items: flex-start;
            }

            .help-kbd-list strong {
                text-align: left;
            }
        }

        @media (max-width: 640px) {
            .hero-card,
            .guest-section,
            .marketing-cta-bar {
                padding: 20px;
            }

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

            .hero-title {
                font-size: 30px;
            }

            .guest-section-title,
            .marketing-cta-title {
                font-size: 24px;
            }

            .marketing-hero-pill {
                width: 100%;
            }

            .marketing-visual-window {
                min-height: 288px;
            }

            .payment-history-meta-grid {
                grid-template-columns: 1fr;
            }

            .plan-info-actions > button {
                width: 100%;
                justify-content: center;
            }

            .marketing-visual-node {
                width: 132px;
                padding: 12px;
            }

            .marketing-node-users {
                top: 82px;
                left: 18px;
            }

            .marketing-node-orders {
                top: 146px;
                left: 108px;
            }

            .marketing-node-payments {
                right: 18px;
                bottom: 24px;
            }

            .marketing-link-users-orders {
                top: 162px;
                left: 132px;
                width: 88px;
            }

            .marketing-link-orders-payments {
                top: 220px;
                left: 208px;
                width: 74px;
            }

            .marketing-presence-a {
                right: 20px;
            }

            .marketing-presence-b {
                left: 26px;
                bottom: 84px;
                top: auto;
            }

            .marketing-presence-c {
                right: 16px;
                bottom: 102px;
            }
        }

        button,
        input,
        textarea,
        select {
            font: inherit;
        }
