.cd-view { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(20px, 4vw, 40px); color: #fff; text-align: center; box-shadow: var(--shadow); isolation: isolate; }
.cd-view::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 80% 0%, rgba(255,255,255,.18), transparent 60%); }
.theme-aurora { background: linear-gradient(135deg, #0f3d3e 0%, #136f6b 45%, #3b2a6b 100%); }
.theme-sunset { background: linear-gradient(135deg, #ff7e5f 0%, #d64f7c 50%, #5b2a86 100%); }
.theme-ocean { background: linear-gradient(135deg, #0b3c5d 0%, #1172a8 50%, #2ab3c6 100%); }
.theme-midnight { background: linear-gradient(135deg, #0b0d17 0%, #1b2140 60%, #2f2a55 100%); }
.theme-mint { background: linear-gradient(135deg, #0e6b52 0%, #1fa37a 55%, #8fd694 100%); }
.theme-gold { background: linear-gradient(135deg, #3a2410 0%, #8a5a1c 50%, #e3b155 100%); }
.cd-top { display: flex; justify-content: space-between; align-items: center; }
.cd-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; opacity: .8; }
.cd-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; }
.cd-icon:hover { background: rgba(255,255,255,.24); }
.cd-name { margin: 10px 0 4px; font-size: clamp(26px, 5.5vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.cd-when { opacity: .85; font-size: 15px; }
.cd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 18px); max-width: 720px; margin: 26px auto 6px; }
.cd-tiles div { padding: clamp(12px, 2.4vw, 22px) 6px; border-radius: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.cd-tiles b { display: block; font-size: clamp(32px, 9vw, 76px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.cd-tiles span { display: block; margin-top: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.cd-done { font-size: clamp(26px, 6vw, 48px); font-weight: 800; margin: 18px 0 4px; animation: s3-pop 500ms var(--ease-spring); }
.cd-view.is-done .cd-tiles { opacity: .55; }
.cd-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.cd-actions .btn { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.2); }
.cd-actions .btn:hover:not(:disabled) { background: rgba(255,255,255,.24); }
.cd-view:fullscreen { display: grid; align-content: center; border-radius: 0; }
.cd-view:fullscreen .cd-tiles b { font-size: min(12vw, 160px); }
.cd-view:fullscreen .cd-tiles { max-width: 1200px; width: 92vw; }

.cd-grid { align-items: start; }
div.field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.themes { display: flex; flex-wrap: wrap; gap: 8px; }
.themes button { width: 64px; height: 42px; border-radius: 10px; border: 2px solid transparent; color: #fff; font-size: 11px; font-weight: 700; }
.themes button[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
.saved { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.saved li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.saved .sw { width: 14px; height: 34px; border-radius: 5px; flex: none; }
.saved .info { flex: 1; min-width: 0; }
.saved .info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved .info span { color: var(--text-3); font-size: 12px; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }
@media (max-width: 480px) { .cd-tiles span { font-size: 9.5px; letter-spacing: .03em; } .cd-tiles div { border-radius: 12px; } }
