/* Only plans-owned surfaces. Flag-off app layout is unchanged. */
#pricing-page { width: min(100% - 32px, 1024px); margin: 0 auto; padding: 24px 0 48px; overflow-wrap: anywhere; }
.plans-ui { color: var(--text, #1a1a2e); overflow-wrap: anywhere; min-width: 0; line-height: 1.55; }
.plans-ui [hidden], #plans-terms[hidden] { display: none !important; }
.plans-ui h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.08; max-width: 700px; margin: 24px 0 16px; }
.plans-ui h2 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 16px; }
.plans-ui p { margin: 10px 0; }
.plans-ui .plans-intro { max-width: 660px; font-size: 1.12rem; }
.pricing-brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary, #2d3748); font-weight: 700; }
.plans-test { display: inline-block; padding: 6px 14px; background: #fff0c4; color: #644000; border-radius: 6px; font-weight: 700; }
.plans-ui button, .plans-ui .btn, .plans-ui summary, #plans-retry { min-height: 44px; min-width: 44px; max-width: 100%; white-space: normal; font-size: 1rem; cursor: pointer; }
.plans-ui .btn { text-align: center; }
.plans-ui button:disabled { opacity: .65; cursor: default; }
.plans-ui :focus-visible { outline: 3px solid var(--accent, #3b82f6); outline-offset: 3px; }
.plans-ui label { display: grid; gap: 8px; margin: 16px 0; }
.plans-ui input { min-height: 44px; min-width: 0; width: 100%; font-size: 16px; accent-color: var(--accent, #3b82f6); }
.plans-toggle { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 20px; }
.plans-toggle [aria-pressed="true"] { background: var(--primary); color: white; border-color: var(--primary); }
#plans-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.plan-card, .plans-section, .plans-account { min-width: 0; padding: 24px; border: 1px solid var(--border, #d1d5db); border-radius: 12px; background: var(--surface, white); }
.plan-card { display: flex; flex-direction: column; box-shadow: 0 2px 8px #18263a08; }
.plan-card-shop { border: 2px solid var(--accent); }
.plans-ui .plan-price { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 0; letter-spacing: -.04em; }
.plans-ui .plan-period { margin-top: 4px; color: var(--text-secondary); }
.plan-welcome { padding: 12px; background: #eef4ff; border-radius: 6px; font-weight: 600; }
.plans-ui ul { padding-left: 20px; }
.plans-ui li { margin-bottom: 12px; }
.plan-card > .btn { width: 100%; margin-top: auto; }
.plans-section, .plans-account { margin-top: 24px; }
.plans-comparison { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: .85rem; }
.plans-comparison caption { text-align: left; margin-bottom: 16px; }
.plans-comparison th, .plans-comparison td { padding: 12px 6px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.plans-comparison th:first-child { width: 32%; }
.plans-comparison tbody tr:nth-child(odd) { background: #f4f6f9; }
.plans-timeline { list-style: none; padding: 0; display: grid; gap: 12px; }
.plans-timeline li { padding: 16px; background: #eef4ff; border-left: 3px solid var(--accent); margin: 0; }
.plans-timeline strong, .plans-timeline span { display: block; }
.plans-seat-totals { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 1.3rem; font-weight: 700; }
.plans-ui details { border-bottom: 1px solid var(--border, #ddd); padding: 8px 0; }
.plans-ui summary { padding: 10px 0; font-weight: 600; }
#plans-notice, .plans-error { padding: 12px 16px; background: #fff1f2; border: 1px solid #fda4af; border-radius: 6px; color: #881337; }
#plans-retry { margin-top: 20px; }
@media (min-width: 800px) { #plans-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .plan-card { padding: 20px; } .plans-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 430px) { .plans-section { padding: 20px 12px; } }
.plans-credit-clock { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; font-weight: 600; }
.plans-credit-clock details { flex-basis: 100%; font-weight: 400; }
.plans-credit-clock ul { margin: 4px 0; }
.plans-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.app-nav.plans-nav-enabled { flex-wrap: wrap; }
#plans-header-clock { flex: 1 0 100%; color: white; font-size: .9rem; margin-top: 8px; }
#plans-header-clock .plans-credit-clock { justify-content: flex-end; }
#plans-header-clock details { flex-basis: auto; max-width: 100%; }
#plans-header-clock summary { color: white; }
#plans-start-clock { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 16px; background: white; border: 1px solid var(--border); border-radius: 8px; }
#plans-trial-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 24px; background: #fff0c4; color: #493800; }
#plans-trial-banner p { flex: 1 1 380px; margin: 0; }
.plans-sheet { position: fixed; inset: 0; margin: auto; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 1px solid var(--border, #ddd); border-radius: 16px; background: var(--surface, white); color: var(--text, #1a1a2e); box-sizing: border-box; }
.plans-sheet::backdrop { background: #15203599; }
.plans-sheet > button { margin: 16px 12px 0 0; }
.plans-sheet .plans-section { padding: 16px; }
.plans-sheet input[type="number"] { padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; }
#plans-profile .plans-account { margin: 24px 0; }
.plan-founding { display: inline-block; margin: 4px 0; padding: 2px 10px; border-radius: 999px; background: #FFF4E5; color: #9A3412; border: 1px solid #F5C38B; font-size: .8rem; font-weight: 700; }
.plan-regular { margin: 0; color: #6B7280; text-decoration: line-through; }
.plan-quote-price { font-weight: 700; margin: 6px 0; }
.plan-lock { margin: 0 0 8px; color: #166534; font-weight: 600; font-size: .92rem; }
