.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.app-shell{min-height:100dvh;padding-bottom:2rem}.app-main{max-width:44rem;margin:0 auto;padding:.5rem 1rem 2rem}.my-decks h1{margin:.5rem 0 1rem;font-size:1.75rem;line-height:1.2}.library{gap:.625rem;margin:0;padding:0;list-style:none;display:grid}.library-row{border:1px solid var(--border);background:var(--surface);border-radius:1.25rem;padding:.75rem .5rem .75rem .25rem;position:relative}.library-row.deck-tile{border-color:#0000;align-items:center;gap:.75rem;padding-right:3.25rem;display:flex}.library-row .deck-tile-body{flex:1}.library-row.skeleton{background:var(--surface-muted);border-color:#0000;height:4.75rem}@media (prefers-reduced-motion:no-preference){.library-row.skeleton{animation:1.4s ease-in-out infinite app-pulse}.library.dragging>.library-row:not(.lifted){transition:transform .18s}.library-row.lifted{transition:opacity .18s}}@keyframes app-pulse{50%{opacity:.55}}.library.dragging{-webkit-user-select:none;user-select:none}.library-row.lifted{cursor:grabbing;box-shadow:0 12px 32px -12px #24211f59}.library-row.lifted.merging{opacity:.8}.library-row.drop-target{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}.drop-pill{z-index:2;background:var(--primary);color:var(--bg);white-space:nowrap;pointer-events:none;border-radius:999px;padding:.375rem .875rem;font-size:.8125rem;font-weight:700;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.reorder-handle{width:2rem;height:2.75rem;color:var(--text-secondary);cursor:grab;touch-action:none;background:0 0;border:0;border-radius:.625rem;flex:none;place-items:center;padding:0;display:grid}.reorder-handle:active{cursor:grabbing}.reorder-handle svg{fill:none;stroke:currentColor;stroke-width:3px;stroke-linecap:round}.deck-quiz{align-items:center;gap:.25rem;display:inline-flex}.medal{fill:none;stroke-width:2px;stroke-linecap:round}.medal.gold{stroke:var(--premium)}.medal.silver{stroke:var(--medal-silver)}.medal.bronze{stroke:var(--medal-bronze)}.library-row.collection-row{border-color:#0000}.collection-head{align-items:center;gap:.75rem;display:flex}.collection-covers{flex:none;width:4.25rem;display:flex}.collection-covers .deck-tile-cover.small{--tile-cover-size:40px;border:2px solid var(--surface)}.collection-covers .deck-tile-cover.small+.deck-tile-cover.small{margin-left:-1.75rem}.collection-toggle{min-width:0;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex:1;gap:.125rem;padding:.25rem 0;display:grid}.library-row.deck-tile .deck-tile-title{color:inherit;text-decoration:none}.collection-toggle .deck-tile-title{font-weight:700}.library-row.member{background:color-mix(in srgb, var(--surface) 50%, var(--bg));margin-left:2rem}.app-menu{flex:none;position:relative}.app-menu summary{width:2.75rem;height:2.75rem;color:var(--text-secondary);cursor:pointer;border-radius:999px;place-items:center;list-style:none;display:grid}.app-menu summary::-webkit-details-marker{display:none}.app-menu summary:hover,.app-menu[open] summary{background:var(--surface-muted);color:var(--text)}.app-menu summary svg{fill:currentColor}.app-menu-panel{z-index:4;border:1px solid var(--border);background:var(--surface);border-radius:1rem;min-width:14rem;max-width:min(20rem,100vw - 2rem);padding:.375rem;display:grid;position:absolute;top:calc(100% + .25rem);right:0;box-shadow:0 12px 32px -12px #24211f59}.app-menu-panel button{min-height:2.75rem;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:.625rem;padding:0 .875rem;font-size:.9375rem}.app-menu-panel button:hover,.app-menu-panel button:focus-visible{background:var(--surface-muted)}.app-menu-panel .danger{color:var(--danger-text)}.app-button{background:var(--primary);min-height:2.75rem;color:var(--bg);font:inherit;cursor:pointer;border:0;border-radius:999px;justify-content:center;align-items:center;padding:0 1.25rem;font-weight:700;text-decoration:none;display:inline-flex}.app-button.quiet{border:1px solid var(--border);background:var(--surface);color:var(--text)}.app-button.danger{background:var(--danger-text)}.app-link{color:var(--primary);font:inherit;text-underline-offset:.18em;cursor:pointer;background:0 0;border:0;padding:0;font-weight:700;text-decoration:underline}.app-field{gap:.375rem;margin:0 0 1rem;font-size:.9375rem;font-weight:600;display:grid}.app-field input,.app-field select{border:1px solid var(--border);background:var(--bg);min-height:2.75rem;color:inherit;font:inherit;border-radius:.75rem;padding:0 .875rem;font-weight:400}.app-dialog{background:var(--surface);width:min(26rem,100vw - 2rem);color:var(--text);border:0;border-radius:1.5rem;padding:1.5rem;box-shadow:0 24px 64px -24px #00000073}.app-dialog::backdrop{background:var(--scrim)}.app-dialog h2{margin:0 0 .75rem;font-size:1.25rem;line-height:1.3}.app-dialog p{color:var(--text-secondary);margin:0 0 1.25rem}.app-dialog-actions{justify-content:flex-end;gap:.5rem;display:flex}.app-banner{background:var(--accent-soft);border-radius:1rem;margin:0 0 1rem;padding:.75rem 1rem;font-size:.9375rem}.app-toast{left:50%;bottom:calc(5.25rem + env(safe-area-inset-bottom));z-index:6;width:max-content;max-width:calc(100vw - 2rem);position:fixed;transform:translate(-50%)}@media (min-width:48rem){.app-toast{bottom:2rem}}.app-toast p{background:var(--text);color:var(--bg);border-radius:999px;align-items:center;gap:1rem;margin:0;padding:.75rem 1.25rem;font-size:.9375rem;display:flex}.app-toast .app-link{color:var(--bg)}.app-empty{justify-items:start;gap:.5rem;display:grid}.app-empty h1,.app-empty h2{margin:.5rem 0 0}.app-empty p{color:var(--text-secondary);margin:0}.app-empty-actions{flex-wrap:wrap;gap:.75rem;display:flex;margin-top:.75rem!important}.first-deck{border-radius:var(--popflip-radius-lg,28px);background:var(--success-soft);color:var(--text);text-align:center;justify-items:center;gap:.75rem;margin-top:.5rem;padding:2rem 1.5rem 1.5rem;display:grid}.first-deck h2{margin:0;font-size:1.75rem;line-height:1.2}.first-deck p{color:var(--text-secondary);margin:0;font-size:1.125rem}.first-deck .pill-button{justify-self:stretch;gap:.5rem;min-height:3.5rem;font-size:1.125rem;font-weight:600}.first-deck .first-deck-import{color:var(--text);font-size:.9375rem;font-weight:600;text-decoration:underline}.explore-row{background:var(--surface);min-height:3rem;color:var(--text);border-radius:999px;align-items:center;gap:.75rem;margin-top:1.75rem;padding:.75rem 1.25rem;font-weight:600;text-decoration:none;display:flex}.explore-row span{flex:1}.explore-row svg{fill:none;stroke:var(--primary);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;flex:none}.library-row .reorder-handle,.library-row .app-menu{z-index:1;position:relative}.library-row .app-menu[open]{z-index:10}@media (max-width:30rem){.library-row{padding-left:.75rem}.library-row .reorder-handle:not(:focus-visible){clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}}@media (hover:none){.library-row{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}}.collection-toggle .deck-tile-title:after{content:none}.app-shell [hidden]{display:none!important}.app-title-row{justify-content:space-between;align-items:center;gap:1rem;margin:.5rem 0 1rem;display:flex}.app-title-row h1{margin:0!important}fieldset.app-field{border:0;min-width:0;padding:0}fieldset.app-field legend{margin-bottom:.375rem;padding:0}.app-field textarea,.card-form textarea,.card-form input:not([type=file]){border:1px solid var(--border);background:var(--bg);width:100%;color:inherit;font:inherit;resize:vertical;border-radius:.75rem;padding:.625rem .875rem;font-weight:400}.app-field.inline{grid-template-columns:minmax(8rem,1fr) 2fr;align-items:center;margin:.5rem 0 0;font-weight:400}.field-hint{color:var(--text-secondary);margin:0;font-size:.8125rem;font-weight:400}.field-error{color:var(--danger-text);margin:.5rem 0 0;font-size:.875rem;display:block}.app-switch{cursor:pointer;align-items:flex-start;gap:.75rem;margin:0 0 1rem;display:flex}.app-switch>span{display:grid}.app-switch input{appearance:none;background:var(--border);cursor:pointer;border-radius:999px;flex:none;width:2.75rem;height:1.625rem;margin:.125rem 0 0;position:relative}.app-switch input:after{content:"";background:var(--surface);border-radius:50%;width:1.25rem;height:1.25rem;transition:transform .15s;position:absolute;top:.1875rem;left:.1875rem}.app-switch input:checked{background:var(--primary)}.app-switch input:checked:after{transform:translate(1.125rem)}.segmented{background:var(--surface-muted);border-radius:999px;flex-wrap:wrap;gap:.25rem;margin-top:.5rem;padding:.25rem;display:inline-flex}.segmented label{position:relative}.segmented input{opacity:0;position:absolute}.segmented span{cursor:pointer;border-radius:999px;align-items:center;min-height:2.5rem;padding:0 1rem;font-weight:600;display:inline-flex}.segmented input:checked+span{background:var(--surface);box-shadow:0 1px 2px #24211f26}.segmented input:focus-visible+span{outline:2px solid var(--primary)}.swatches{flex-wrap:wrap;gap:.5rem;display:flex}.swatch{cursor:pointer;border:2px solid #0000;border-radius:.875rem;place-items:center;width:2.75rem;height:2.75rem;display:grid;position:relative}.swatches.patterns .swatch{--tile-cover-size:3.5rem;width:3.5rem;height:3.5rem}.swatch:has(input:checked){border-color:var(--text)}.swatch:has(input:focus-visible){outline:2px solid var(--primary);outline-offset:2px}.swatch-label{font-size:.75rem;font-weight:600}.image-field-preview img{object-fit:cover;border-radius:.5rem;flex:none;width:2.5rem;height:2.5rem}.card-form{background:var(--surface);border-radius:1.25rem;gap:.75rem;margin:.5rem 0;padding:1rem;display:grid}.card-side{border:0;gap:.5rem;min-width:0;margin:0;padding:0;display:grid}.card-side legend{color:var(--text-secondary);letter-spacing:.04em;text-transform:uppercase;margin-bottom:.375rem;padding:0;font-size:.75rem;font-weight:700}.image-field{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.image-field-preview{align-items:center;gap:.75rem;display:inline-flex}.image-field-preview img{width:4rem;height:4rem}.image-field-add{min-height:2.5rem;font-size:.875rem}.wrong-answer{gap:.5rem;display:flex}.icon-button{border:1px solid var(--border);background:var(--surface);width:2.75rem;color:var(--text-secondary);font:inherit;cursor:pointer;border-radius:.75rem;flex:none;font-size:1.25rem}.card-form-actions{flex-wrap:wrap;justify-content:flex-end;gap:.5rem;display:flex}@media (max-width:30rem){.app-field.inline{grid-template-columns:1fr}}.deck-tile-cover.editor-cover.large{--tile-cover-size:112px;border-radius:28px;margin-bottom:1rem}.slider-control{align-items:center;gap:.75rem;display:flex}.slider-control input{min-width:0;accent-color:var(--primary);flex:1}.slider-control output{min-width:3.25rem;color:var(--text-secondary);text-align:right;font-size:.875rem}.app-dialog.wide{width:min(44rem,100vw - 2rem)}.crop-stage{-webkit-user-select:none;user-select:none;touch-action:none;width:fit-content;max-width:100%;margin:0 auto 1rem;position:relative;overflow:hidden}.crop-stage img{max-width:100%;max-height:55vh;display:block}.crop-box{cursor:move;outline:2px solid #fff;position:absolute;box-shadow:0 0 0 9999px #1a19178c}.crop-box:focus-visible{outline:3px solid var(--primary)}.crop-handle{border:3px solid #fff;width:1.5rem;height:1.5rem;position:absolute}.crop-handle.nw{cursor:nwse-resize;border-width:3px 0 0 3px;top:-3px;left:-3px}.crop-handle.ne{cursor:nesw-resize;border-width:3px 3px 0 0;top:-3px;right:-3px}.crop-handle.sw{cursor:nesw-resize;border-width:0 0 3px 3px;bottom:-3px;left:-3px}.crop-handle.se{cursor:nwse-resize;border-width:0 3px 3px 0;bottom:-3px;right:-3px}.source-list{gap:.5rem;margin:.75rem 0 0;padding:0;list-style:none;display:grid}.source-list li{overflow-wrap:anywhere;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.app-main:has(.deck-editor){max-width:72rem}.deck-editor{grid-template-columns:minmax(0,1fr);gap:1rem;display:grid}.editor-topbar{grid-template-columns:1fr auto 1fr;align-items:center;gap:.75rem;display:grid}.editor-topbar h1{text-align:center;margin:0;font-size:1.125rem}.editor-topbar .app-button{justify-self:end}.editor-close{place-items:center;height:2.75rem;text-decoration:none;display:grid}.editor-skeleton{background:var(--surface-muted);border-radius:1.75rem;height:22rem}.editor-columns{grid-template-columns:minmax(0,1fr);align-items:start;gap:1rem;display:grid}.editor-side{grid-template-columns:minmax(0,1fr);gap:.75rem;display:grid}@media (min-width:64rem){.editor-columns{grid-template-columns:minmax(0,27rem) minmax(0,1fr);gap:1.5rem}.editor-side{position:sticky;top:5.5rem}}.editor-hero{background:var(--surface);border-radius:1.75rem;padding:.5rem}.editor-hero-cover{--hero-pattern-width:calc(174px * var(--tile-pattern-scale,1));isolation:isolate;--hero-ink:color-mix(in srgb, var(--ink) var(--cover-ink-share), var(--on-cover-ink));background:var(--cover-shown);color:var(--on-cover-ink);border-radius:1.25rem;gap:1rem;padding:4.75rem 1.5rem 1.5rem;display:grid;position:relative}.editor-hero-cover:before{content:"";z-index:-1;border-radius:inherit;background:var(--cover-pattern-shown);opacity:var(--tile-pattern-opacity,0);-webkit-mask:var(--tile-pattern,none) repeat;mask:var(--tile-pattern,none) repeat;-webkit-mask-size:var(--hero-pattern-width) auto;mask-size:var(--hero-pattern-width) auto;-webkit-mask-position:calc(var(--hero-pattern-width) * var(--tile-pattern-x,0)) calc(var(--hero-pattern-width) * var(--tile-pattern-y,0));mask-position:calc(var(--hero-pattern-width) * var(--tile-pattern-x,0)) calc(var(--hero-pattern-width) * var(--tile-pattern-y,0));position:absolute;inset:0}.cover-style-button{border:1px solid var(--on-cover-border);background:var(--on-cover-paper);color:var(--on-cover-ink);font:inherit;cursor:pointer;border-radius:999px;align-items:center;gap:.5rem;padding:.375rem .375rem .375rem .75rem;display:flex;position:absolute;top:.75rem;right:.75rem}.cover-style-button svg{fill:none;stroke:currentColor;stroke-width:1.6px}.cover-style-chip{background:var(--cover-shown);border-radius:.625rem;place-items:center;min-width:2.25rem;height:2.25rem;font-size:.875rem;font-weight:700;display:grid}.cover-style-chip.round{border:1px solid var(--on-cover-border);border-radius:50%}.hero-title,.hero-description{border:0;border-bottom:2px dashed var(--hero-ink);width:100%;color:inherit;font:inherit;resize:none;background:0 0;padding:0 0 .5rem;overflow:hidden}.hero-title{letter-spacing:-.02em;font-size:clamp(1.75rem,4vw,2.25rem);font-weight:800;line-height:1.15}.hero-description{border-bottom-color:color-mix(in srgb, var(--hero-ink) 55%, transparent);font-size:1.0625rem;line-height:1.5}.hero-title::placeholder,.hero-description::placeholder{color:var(--hero-ink);opacity:1}.hero-title:focus-visible,.hero-description:focus-visible{border-bottom-style:solid;outline:none}.hero-meta{justify-content:space-between;align-items:center;gap:1rem;font-size:.9375rem;font-weight:700;display:flex}.hero-you{color:var(--on-cover-accent)}.card-count{align-items:center;gap:.25rem;display:inline-flex}.editor-row{background:var(--surface);width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;border:0;border-radius:1.25rem;align-items:center;gap:1rem;padding:1rem 1.25rem;display:flex}.editor-row-icon{background:var(--surface-muted);border-radius:50%;flex:none;place-items:center;width:3rem;height:3rem;display:grid}.editor-row-icon svg,.editor-row .chevron,.edit-card-row .chevron{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round}.editor-row .chevron,.edit-card-row .chevron{color:var(--text-secondary);flex:none;transition:transform .15s}.editor-row .chevron.open{transform:rotate(180deg)}.editor-row-text{flex:1;gap:.125rem;min-width:0;display:grid}.editor-row-text strong{font-size:1.0625rem}.editor-row-text>span{color:var(--text-secondary);font-size:.9375rem;line-height:1.4}.editor-row .app-switch{margin:0}.editor-panel{background:var(--surface);border-radius:1.25rem}.voice-sides{border-top:1px solid var(--border);gap:.5rem;margin:0 1.25rem;padding:.75rem 0 1.25rem;display:grid}.voice-side{justify-content:space-between;align-items:center;gap:1rem;min-height:2.75rem;display:flex}.voice-side select{background:var(--surface-muted);min-width:0;max-width:60%;min-height:2.5rem;color:inherit;font:inherit;border:0;border-radius:999px;padding:0 .875rem;font-size:.875rem;font-weight:700}.add-card-row{border:2px dashed var(--border);width:100%;min-height:4.5rem;color:var(--primary);font:inherit;cursor:pointer;background:0 0;border-radius:1.25rem;justify-content:center;align-items:center;gap:.5rem;font-size:1.125rem;font-weight:700;display:flex}.add-card-row span{font-size:1.5rem;font-weight:400}.add-card-row:hover{background:var(--surface)}.editor-empty{color:var(--text-secondary);text-align:center;justify-items:center;gap:1rem;padding:2rem 1.5rem;display:grid}.editor-empty p{max-width:24rem;margin:0}.editor-empty-mark{background:var(--surface);border-radius:50%;place-items:center;width:3.5rem;height:3.5rem;display:grid}.edit-card-list{gap:.625rem;margin:.75rem 0 0;padding:0;list-style:none;display:grid}.edit-card-row{background:var(--surface);width:100%;min-height:4.5rem;color:inherit;font:inherit;text-align:left;cursor:pointer;border:0;border-radius:1.25rem;align-items:center;gap:1rem;padding:1rem 1.25rem;display:flex}.edit-card-row:hover{box-shadow:0 0 0 1px var(--border)}.edit-card-text{flex:1;gap:.125rem;min-width:0;display:grid}.edit-card-text strong,.edit-card-text>span:not(.wrong-badge){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.edit-card-text>span:not(.wrong-badge){color:var(--text-secondary);font-size:.9375rem}.wrong-badge{color:var(--text-secondary);opacity:.75;justify-self:start;margin-top:.25rem;font-size:.8125rem;font-weight:500}.edit-card-thumb{object-fit:cover;border-radius:.625rem;flex:none;width:3rem;height:3rem}.editor-sources{margin-top:1.5rem;padding:1.25rem}.editor-sources h2{margin:0 0 .25rem;font-size:1.125rem}.app-modal{width:min(40rem,100vw - 2rem);max-height:calc(100dvh - 2rem);overflow:auto}.app-modal.wide{width:min(44rem,100vw - 2rem)}.app-modal-head{z-index:2;background:var(--surface);justify-content:space-between;align-items:center;gap:1rem;margin:-1.5rem -1.5rem 1rem;padding:1rem 1.5rem;display:flex;position:sticky;top:-1.5rem}.app-modal-head h2{margin:0!important}.app-modal-head .icon-button{height:2.75rem}.app-modal .card-form{margin:0;padding:0}.card-form-delete{margin-right:auto}.app-link.danger{color:var(--danger-text)}@media (max-width:40rem){.app-modal,.app-modal.wide{border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0}}.crop-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem 1rem;margin:0 0 1rem;display:flex}.crop-bar .segmented{margin:0}.markup-field{border:1px solid var(--border);background:var(--bg);border-radius:.75rem;flex:1;min-width:0;position:relative}.markup-field:focus-within{outline:2px solid var(--primary);outline-offset:1px}.markup-layer,.card-form .markup-field textarea{box-sizing:border-box;width:100%;font:inherit;letter-spacing:normal;white-space:pre-wrap;overflow-wrap:break-word;tab-size:4;border:0;margin:0;padding:.625rem .875rem;font-size:1rem;font-weight:400;line-height:1.5}.markup-layer{color:var(--text);pointer-events:none;position:absolute;inset:0;overflow:hidden}.card-form .markup-field textarea{border-radius:inherit;color:#0000;caret-color:var(--text);resize:none;background:0 0;display:block;position:relative;overflow:hidden}.card-form .markup-field textarea::placeholder{color:var(--text-secondary)}.card-form .markup-field textarea:focus-visible{outline:none}.markup-layer .dim{color:var(--quiet)}.markup-layer .bold{-webkit-text-stroke:.03em currentColor}.markup-layer .italic{font-style:italic}.markup-field.rendered{cursor:text;min-height:2.75rem;padding:.625rem .875rem}.markup-field.rendered:focus-visible{outline:2px solid var(--primary);outline-offset:1px}.markup-rendered{overflow-wrap:anywhere;font-size:1rem;line-height:1.5}.app-modal.card-editor-modal{background:var(--bg);width:min(58rem,100vw - 3rem);padding:0;overflow:auto}.card-editor-modal .app-modal-head{border-bottom:1px solid var(--border);margin:0;padding:1.25rem 1.75rem;top:0}.card-editor-modal .app-modal-head h2{letter-spacing:-.025em;font-size:1.25rem}.card-editor-modal .app-modal-head .icon-button{background:0 0;border-color:#0000}.card-editor-modal .card-form{background:0 0;border-radius:0;display:block}.card-editor-body{gap:1rem;padding:1.5rem 1.75rem 1.75rem;display:grid}.card-faces{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:1.25rem;display:grid}.card-editor-modal .card-side legend{letter-spacing:normal;text-transform:none;margin-bottom:.625rem;font-size:.8125rem}.card-face-surface{border:1px solid var(--border);background:var(--surface);border-radius:1rem;transition:border-color .12s;overflow:hidden}.card-face-surface:focus-within{border-color:var(--primary);box-shadow:0 0 0 2px color-mix(in srgb, var(--primary) 15%, transparent)}.card-face .markup-field{background:0 0;border:0;border-radius:0}.card-face .markup-field:focus-within{outline:none}.card-face .markup-layer,.card-form .card-face .markup-field textarea,.card-face .markup-field.rendered{padding:1rem 1.125rem;font-size:1.0625rem;line-height:1.65}.card-form .card-face .markup-field textarea,.card-face .markup-field.rendered{min-height:11rem}.card-face .image-field{padding:.5rem .75rem .75rem}.card-face .image-field-add{min-height:2.25rem;color:var(--text-secondary);cursor:pointer;background:0 0;border-color:#0000;border-radius:.5rem;align-items:center;gap:.5rem;padding:.375rem .625rem;display:inline-flex}.card-face .image-field-add:has(input:focus-visible){outline:2px solid var(--primary);outline-offset:2px}.card-face .image-field-preview{flex-wrap:wrap}.card-face .image-field-preview img{object-fit:contain;width:100%;height:auto;max-height:15rem}.card-editor-modal .field-hint{margin:0;font-size:.8125rem;line-height:1.6}.card-editor-modal .card-quiz-options{border-top:1px solid var(--border);gap:.75rem;margin-top:.75rem;padding-top:1.25rem}.card-quiz-options legend{float:left;width:100%}.card-editor-modal .card-add-wrong{border-radius:.75rem;justify-self:start;align-items:center;gap:.5rem;min-height:2.5rem;padding:.5rem .875rem;font-size:.875rem;display:inline-flex}.card-editor-modal .wrong-answer{align-items:start}.card-editor-modal .wrong-answer .icon-button{height:2.75rem}.card-editor-modal .card-form-actions{z-index:1;padding:1rem 1.75rem max(1rem, env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface);align-items:center;position:sticky;bottom:0}.card-editor-modal .card-form-actions .app-button{min-height:2.75rem;padding:.625rem 1.125rem;font-size:.875rem}@media (max-width:40rem){.app-modal.card-editor-modal{width:100vw}.card-editor-modal .app-modal-head,.card-editor-body{padding:1rem}.card-faces{grid-template-columns:1fr;gap:1rem}.card-form .card-face .markup-field textarea,.card-face .markup-field.rendered{min-height:8rem}.card-editor-modal .card-form-actions{padding:.75rem 1rem max(.75rem, env(safe-area-inset-bottom))}.card-editor-modal .card-form-actions .app-button{flex:auto}.card-editor-modal .card-form-delete{text-align:left;flex-basis:100%}}.memory-card{background:var(--surface);border-radius:1.5rem;gap:.75rem;margin:0 0 1.25rem;padding:1.25rem;display:grid}.memory-card.loading{background:var(--surface-muted);min-height:9rem}.memory-card-head{align-items:center;gap:.5rem;display:flex}.memory-card-label{letter-spacing:.06em;text-transform:uppercase;flex:1;align-items:center;gap:.375rem;font-size:.75rem;font-weight:800;display:inline-flex}.memory-legend-toggle svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round}.memory-badge{background:var(--popflip-color-success-soft,#dceee1);color:var(--popflip-color-success-text,#437059);letter-spacing:.06em;text-transform:uppercase;border-radius:999px;padding:.125rem .625rem;font-size:.6875rem;font-weight:800}.memory-info{border:1.5px solid var(--text-secondary);width:1.5rem;height:1.5rem;color:var(--text-secondary);border-radius:50%;place-items:center;font-size:.8125rem;font-weight:800;text-decoration:none;display:grid}.memory-card h2{margin:0;font-size:1.375rem;line-height:1.25}.memory-card-body{color:var(--text-secondary);margin:-.5rem 0 0}.memory-bar{border-radius:999px;gap:2px;height:.625rem;display:flex;overflow:hidden}.memory-legend-toggle{color:var(--text-secondary);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:.25rem;padding:0;font-size:.8125rem;font-weight:700;display:flex}.memory-legend-toggle svg{transition:transform .15s}.memory-legend-toggle svg.open{transform:rotate(180deg)}.memory-total{margin-left:auto;font-weight:400}.memory-legend{gap:.625rem;margin:0;padding:0;list-style:none;display:grid}.memory-legend li{align-items:center;gap:.625rem;font-size:.875rem;display:flex}.memory-legend li>span:nth-child(2){flex-wrap:wrap;flex:1;align-items:baseline;column-gap:.5rem;display:flex}.memory-legend li>span:nth-child(2) span{color:var(--text-secondary);font-size:.8125rem}.memory-dot{border-radius:50%;flex:none;width:.625rem;height:.625rem;display:inline-block}.memory-start{width:100%;min-height:3rem}.learn-corner{background:var(--surface-muted);width:2.75rem;height:2.25rem;color:var(--text-secondary);font:inherit;cursor:pointer;border:0;border-radius:1.25rem 0;justify-content:center;align-items:center;padding:0;display:flex;position:absolute;bottom:-1px;right:-1px}.spaced-repetition-icon{background:currentColor;width:1.25rem;height:1.25rem;-webkit-mask:url(/deck/spaced-repetition-book.svg) 50%/contain no-repeat;mask:url(/deck/spaced-repetition-book.svg) 50%/contain no-repeat}.memory-card-label .spaced-repetition-icon{flex-shrink:0;width:1.375rem;height:1.375rem}.learn-corner.on{background:var(--primary);color:var(--bg)}.learn-corner:active{filter:brightness(.95)}.learn-corner:focus-visible{outline-offset:-2px}.learn-switch{z-index:1;min-height:2.75rem;color:var(--text-secondary);font:inherit;cursor:pointer;background:0 0;border:0;flex:none;align-items:center;gap:.375rem;padding:0 .25rem;font-size:.75rem;font-weight:700;display:inline-flex;position:relative}.learn-switch-track{background:var(--border);border-radius:999px;width:2.25rem;height:1.375rem;transition:background .15s;position:relative}.learn-switch-track:after{content:"";background:var(--surface);border-radius:50%;width:1rem;height:1rem;transition:transform .15s;position:absolute;top:.1875rem;left:.1875rem}.learn-switch.on{color:var(--primary)}.learn-switch.on .learn-switch-track{background:var(--primary)}.learn-switch.on .learn-switch-track:after{transform:translate(.875rem)}@media (max-width:30rem){.learn-switch{gap:0;font-size:0}}.app-shell:has(.memory-page .deck-run){padding-bottom:0}.memory-page .study-face .memory-card-meta{color:var(--popflip-color-text-secondary);white-space:nowrap;text-overflow:ellipsis;justify-content:center;align-items:center;gap:.375rem;font-size:.8125rem;display:flex;position:absolute;top:1rem;left:1rem;right:1rem;overflow:hidden}.memory-page .memory-notice{justify-items:start;gap:.5rem;display:grid}.memory-page .memory-hint{text-align:center}.memory-page .memory-empty{text-align:center;flex:1;align-content:center;justify-items:center;gap:1rem;display:grid}.memory-page .memory-result{flex:1;align-content:start;gap:.75rem;padding-top:.25rem;display:grid}.memory-hero{text-align:center;justify-items:center;gap:.25rem;margin-bottom:.25rem;display:grid}.memory-hero h1{margin:0;font-size:1.75rem}.memory-hero p{color:var(--popflip-color-text-secondary);margin:0}.memory-streak{background:var(--popflip-color-brand-new-best-soft);color:var(--popflip-color-brand-orange-text);border-radius:999px;align-items:center;gap:.25rem;padding:.375rem .75rem;font-size:.8125rem;font-weight:700;display:inline-flex}.memory-icon{width:1rem;height:1rem;-webkit-mask:var(--icon) center / contain no-repeat;mask:var(--icon) center / contain no-repeat;background:currentColor;flex:none;display:inline-block}.memory-streak .memory-icon{background:var(--popflip-color-brand-orange)}.memory-panel{background:var(--popflip-color-surface);width:100%;color:var(--popflip-color-text);text-align:left;border-radius:1.25rem;gap:.75rem;padding:1rem;text-decoration:none;display:grid}a.memory-panel:hover{box-shadow:inset 0 0 0 1px var(--popflip-color-border)}.memory-panel-head{color:var(--popflip-color-text-secondary);justify-content:space-between;align-items:flex-start;gap:.75rem;font-size:.8125rem;font-weight:600;display:flex}.memory-panel-head strong{color:var(--popflip-color-success-text)}.memory-milestone{background:var(--popflip-color-primary);color:var(--popflip-color-text-on-accent);grid-template-columns:auto 1fr;align-items:center}.memory-milestone strong{font-size:1.125rem;display:block}.memory-milestone span{font-size:.8125rem}.memory-medal{background:var(--popflip-color-surface);width:3.5rem;height:3.5rem;color:var(--popflip-color-brand-orange);border-radius:50%;place-items:center;display:grid}.memory-medal .memory-icon{width:2rem;height:2rem}.memory-split{background:var(--popflip-color-border);border-radius:999px;gap:2px;height:.25rem;display:flex;overflow:hidden}.memory-split span:first-child{background:var(--popflip-color-success)}.memory-split span:last-child{background:var(--popflip-color-danger)}.memory-mastered{color:var(--popflip-color-text-secondary);align-items:baseline;gap:.375rem;display:flex}.memory-mastered strong{color:var(--popflip-color-text);font-size:1.75rem;line-height:1.2}.memory-moved{background:var(--popflip-color-primary-soft);color:var(--popflip-color-primary-text);white-space:nowrap;border-radius:999px;align-items:center;gap:.25rem;padding:.25rem .625rem;font-weight:700;display:inline-flex}.memory-moved .memory-icon{width:.875rem;height:.875rem}.memory-result .memory-bar{height:.875rem}.memory-stages{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem 1rem;margin:0;padding:0;font-size:.8125rem;list-style:none;display:grid}.memory-stages li{align-items:center;gap:.5rem;display:flex}.memory-stages li>span:nth-child(2){text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.memory-stage-dot{border-radius:.25rem;width:.625rem;height:.625rem}.memory-change-up{color:var(--popflip-color-primary-text);font-weight:700}.memory-change-down{color:var(--popflip-color-text-secondary);font-weight:700}.memory-pace{background:var(--popflip-color-surface-muted);color:var(--popflip-color-text);border-radius:.75rem;align-items:center;gap:.5rem;padding:.625rem .75rem;font-size:.8125rem;display:flex}.memory-pace .memory-icon{width:1.25rem;height:1.25rem;color:var(--popflip-color-primary-text)}.memory-week{color:var(--popflip-color-text-secondary);grid-template-columns:repeat(7,minmax(0,1fr));justify-items:center;gap:.375rem;margin:0;padding:0;font-size:.75rem;list-style:none;display:grid}.memory-week li{justify-items:center;gap:.375rem;display:grid}.memory-day{box-sizing:border-box;border:1px solid var(--popflip-color-border);width:2rem;height:2rem;color:var(--popflip-color-text);border-radius:50%;place-items:center;font-weight:700;display:grid}.memory-day[data-kind=done]{background:var(--popflip-color-primary-soft);color:var(--popflip-color-primary-text);border:0}.memory-day[data-kind=today]{background:var(--popflip-color-brand-orange);color:var(--popflip-color-text-on-accent);border:0}.memory-day[data-kind=next]{border:1.5px solid var(--popflip-color-chevron-quiet)}.memory-next-review{grid-template-columns:auto 1fr;align-items:center}.memory-next-review strong{font-size:.9375rem;display:block}.memory-next-review span{color:var(--popflip-color-text-secondary);font-size:.8125rem}.memory-next-icon{background:var(--popflip-color-accent-soft);width:2.5rem;height:2.5rem;color:var(--popflip-color-brand-orange-text);border-radius:.75rem;place-items:center;display:grid}.memory-next-icon .memory-icon{width:1.25rem;height:1.25rem}.memory-actions{gap:.75rem;margin-top:.25rem;display:flex}.memory-share{border:1px solid var(--popflip-color-border);background:var(--popflip-color-surface-muted);width:3rem;height:3rem;color:var(--popflip-color-text);cursor:pointer;border-radius:50%;flex:none;place-items:center;padding:0;display:grid}.memory-share .memory-icon{width:1.25rem;height:1.25rem}.memory-done{flex:1;min-height:3rem}.stats{gap:1.5rem;display:grid}.stats-section,.stats-anchor{scroll-margin-top:1rem}.stats h1{margin:.5rem 0 0;font-size:1.75rem}.stats-panel{background:var(--surface);border-radius:1.25rem;padding:1.25rem}.stats-panel.skeleton{background:var(--surface-muted);min-height:14rem}.stats-section{gap:.75rem;display:grid}.stats-section h2{justify-content:space-between;align-items:baseline;gap:1rem;margin:0;font-size:1.125rem;display:flex}.stats-section h2 span,.stats-caption,.stats-axis{color:var(--text-secondary);font-size:.8125rem;font-weight:500}.stats-overview{grid-template-columns:9rem 1fr;align-items:center;gap:1.25rem;display:grid}.stats-donut{width:9rem;height:9rem;position:relative}.stats-donut svg{width:100%;height:100%}.stats-donut circle{fill:none;stroke-width:12px}.stats-donut-track{stroke:var(--surface-muted)}.stats-donut>span{text-align:center;color:var(--text-secondary);place-content:center;font-size:.8125rem;display:grid;position:absolute;inset:0}.stats-donut strong{color:var(--text);font-size:1.75rem;line-height:1.1}.stats-legend{margin:0;padding:0;list-style:none;display:grid}.stats-legend button{width:100%;min-height:2.5rem;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:.75rem;align-items:center;gap:.625rem;padding:0 .5rem;font-size:.875rem;font-weight:700;display:flex}.stats-legend button span:nth-child(2){flex:1}.stats-legend button[aria-pressed=true]{background:var(--surface-muted)}.stats-tiles{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:.75rem;display:grid}.stats-tile{border-radius:1rem;gap:.125rem;padding:.875rem 1rem;font-size:.8125rem;display:grid}.stats-tile strong{font-size:1.25rem}.stats-tile.streak{background:var(--popflip-color-brand-new-best-soft,#fbe4d5);color:var(--popflip-color-brand-orange-text,#b14d14)}.stats-tile.moved{background:var(--popflip-color-success-soft,#dceee1);color:var(--popflip-color-success-text,#437059)}@media (max-width:30rem){.stats-overview{grid-template-columns:1fr;justify-items:center}.stats-legend{width:100%}}.stats-axis{justify-content:space-between;margin:.375rem 0 0;display:flex}.stats-picked{margin:0 0 .75rem;display:grid}.stats-picked strong{font-size:1.5rem}.stats-picked span{color:var(--text-secondary);font-size:.8125rem}.stats-decks{gap:.625rem;margin:0;padding:0;list-style:none;display:grid}.stats-deck{align-items:center;gap:1rem;padding:1rem 3.25rem 1rem 1rem;display:flex;position:relative}.stats-deck-body{flex:1;gap:.5rem;min-width:0;display:grid}.stats-deck-body a{white-space:nowrap;text-overflow:ellipsis;font-weight:700;text-decoration:none;overflow:hidden}.stats-deck .memory-bar{height:.5rem}.stats-calendar{text-align:center;grid-template-columns:repeat(7,1fr);row-gap:.375rem;display:grid}.stats-weekday{color:var(--text-secondary);font-size:.75rem;font-weight:700}.stats-day{height:2.25rem;color:var(--text-secondary);place-items:center;font-size:.8125rem;font-weight:700;display:grid}.stats-day>span{border-radius:50%;place-items:center;width:2.25rem;height:2.25rem;display:grid}.stats-day.active{background:linear-gradient(90deg, var(--stats-left,transparent) 50%, var(--stats-right,transparent) 50%);color:var(--popflip-color-success-text,#437059)}.stats-day.joined-left{--stats-left:var(--popflip-color-success-soft,#dceee1)}.stats-day.joined-right{--stats-right:var(--popflip-color-success-soft,#dceee1)}.stats-day.active>span{background:var(--popflip-color-success-soft,#dceee1)}.stats-day.today>span{border:2px solid var(--primary)}.stats-day.today.active>span{background:var(--primary);color:var(--bg)}.stats-day.future{color:var(--border)}.stats-facts{gap:.75rem;display:grid}.stats-fact-tiles{grid-template-columns:1fr 1fr;gap:.75rem;margin:0;padding:0;list-style:none;display:grid}@media (min-width:48rem){.stats-fact-tiles{grid-template-columns:repeat(3,1fr)}}.stats-fact-tiles li{border-top:.375rem solid var(--fact-tone);gap:.25rem;display:grid}.stats-fact-tiles strong{font-size:1.375rem}.stats-fact-tiles span{color:var(--text-secondary);font-size:.8125rem}.fact-sky{--fact-tone:var(--popflip-cover-sky-bg,#dfe8ef)}.fact-mint{--fact-tone:var(--popflip-color-success-soft,#dceee1)}.fact-lavender{--fact-tone:var(--popflip-cover-lavender-bg,#e7e2f0)}.fact-peach{--fact-tone:var(--popflip-cover-peach-bg,#f2e3db)}.fact-rose{--fact-tone:var(--popflip-cover-rose-bg,#f1e4e5)}.fact-orange{--fact-tone:var(--popflip-color-brand-new-best-soft,#fbe4d5)}.stats-facts h3{margin:0;font-size:1rem}.stats-card-fact{gap:.25rem;display:grid}.stats-card-fact>span{color:var(--text-secondary);font-size:.8125rem}.stats-card-fact strong{overflow-wrap:anywhere;font-size:1.0625rem}.stats-card-fact.strongest{border-left:.375rem solid var(--popflip-color-success-soft,#dceee1)}.stats-card-fact.toughest{border-left:.375rem solid var(--popflip-cover-peach-bg,#f2e3db)}.axis-chart{grid-template-columns:auto 1fr;column-gap:.5rem;margin-top:.5rem;display:grid}.axis-labels{color:var(--text-secondary);text-align:right;font-size:.75rem;line-height:1;position:relative}.axis-labels span{white-space:nowrap;position:absolute;right:0;transform:translateY(50%)}.axis-labels .axis-sizer{visibility:hidden;height:0;display:block;position:static;transform:none}.axis-plot{position:relative}.axis-grid{background:var(--surface-muted);height:1px;position:absolute;left:0;right:0}.axis-footer{grid-column:2}.stats-chart{width:100%;height:100%;position:absolute;inset:0}.stats-bars,.stats-hours{align-items:flex-end;display:flex;position:absolute;inset:0}.stats-bars button{cursor:pointer;background:0 0;border:0;flex:1;justify-content:center;align-items:flex-end;min-width:0;height:100%;padding:0;display:flex}.stats-bars button span{background:var(--popflip-progress-young,#9db1c2);border-radius:.25rem;width:70%}.stats-bars button.picked span{background:var(--primary)}.stats-bars span.empty,.stats-hours span.empty{background:var(--surface-muted)!important}.stats-bar-letters,.stats-hour-labels{color:var(--text-secondary);margin:.375rem 0 0;font-size:.6875rem;display:flex}.stats-bar-letters span{text-align:center;flex:1}.stats-bar-letters span.picked{color:var(--text);font-weight:800}.stats-hour-labels span{flex:1}.stats-hours{gap:2px}.stats-hours span{background:var(--popflip-progress-young,#9db1c2);border-radius:2px;flex:1}.stats-hours span.peak{background:var(--primary)}.axis-labels,.axis-plot{margin-block:.375rem}.app-main:has(.ai-chat){max-width:44rem;padding-bottom:0}.ai-chat{--ai-lavender:var(--popflip-cover-lavender-bg,#e7e2f0);--ai-ink:var(--popflip-cover-lavender-ink,#6c5d92);flex-direction:column;height:calc(100dvh - 5.5rem);display:flex}.ai-topbar{grid-template-columns:2.75rem 1fr 2.75rem;align-items:center;min-height:3.5rem;display:grid}.ai-topbar h1{justify-content:center;align-items:center;gap:.5rem;min-width:0;margin:0;font-size:1.125rem;font-weight:700;display:flex}.ai-topbar h1 span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ai-spark{color:var(--ai-ink);flex:none;display:inline-flex}.ai-body{flex-direction:column;flex:1;min-height:0;display:flex;overflow-y:auto}.ai-empty{text-align:center;flex:1;align-content:center;justify-items:center;gap:1rem;padding:0 .5rem;display:grid}.ai-empty h2{margin:0;font-size:1.25rem}.ai-empty p{color:var(--text-secondary);margin:0}.ai-empty .ai-allowance{font-size:.8125rem;transition:opacity .2s}.ai-log{flex-direction:column;gap:1.5rem;padding:1rem 0;display:flex}.ai-user{flex-direction:column;align-items:flex-end;gap:.5rem;display:flex}.ai-user.pending{opacity:.7}.ai-bubble{background:var(--ai-lavender);color:#242321;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:1rem 1rem .375rem;max-width:280px;margin:0;padding:.75rem 1rem}.ai-assistant{align-items:flex-start;gap:.75rem;display:flex}.ai-avatar{background:var(--ai-lavender);width:28px;height:28px;color:var(--ai-ink);border-radius:50%;flex:none;place-items:center;display:grid}.ai-assistant-body{flex:1;gap:.625rem;min-width:0;display:grid}.ai-assistant-body p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.ai-strong{font-weight:700}.ai-muted{color:var(--text-secondary)}.ai-question{gap:.625rem;display:grid}.ai-options{flex-wrap:wrap;gap:.5rem;display:flex}.ai-options button{border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;border-radius:999px;padding:.5rem .75rem;font-size:.875rem;font-weight:700}.ai-options button:disabled{opacity:.4;cursor:default}.ai-deck{border:1px solid var(--border);background:var(--surface);border-radius:1rem;gap:1rem;padding:1rem;display:grid}.ai-deck-head{align-items:center;gap:.75rem;display:flex}.ai-deck-icon{background:var(--ai-lavender);width:2.75rem;height:2.75rem;color:var(--ai-ink);border-radius:.625rem;flex:none;place-items:center;display:grid}.ai-deck-text{gap:.125rem;min-width:0;display:grid}.ai-deck-text strong{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.ai-deck-text>span{color:var(--text-secondary);font-size:.8125rem}.ai-deck-text b{font-weight:700}.ai-deck-text .ai-added{color:var(--popflip-color-success-text,#437059)}.ai-deck-actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.ai-premium-button,.ai-outline{min-height:2.25rem;font:inherit;cursor:pointer;border-radius:999px;align-items:center;gap:.375rem;padding:0 1rem;font-size:.875rem;font-weight:700;text-decoration:none;display:inline-flex}.ai-premium-button{background:var(--ai-ink);color:#fff;border:0}.ai-premium-button:hover{color:#fff}.ai-outline{border:1px solid var(--border);background:var(--surface);color:var(--text);justify-self:start}.ai-outline:disabled{opacity:.4}.ai-outline.small{min-height:1.75rem;padding:0 .625rem;font-size:.75rem}.ai-thinking{align-items:center}.ai-spinner{border:2px solid var(--ai-lavender);border-top-color:var(--ai-ink);border-radius:50%;flex:none;width:1rem;height:1rem;animation:.8s linear infinite ai-spin}@keyframes ai-spin{to{transform:rotate(360deg)}}.ai-not-sent{justify-items:end;gap:.5rem;display:grid}.ai-not-sent .ai-outline{justify-self:end}.ai-footer{gap:.5rem;padding:.5rem 0 1.25rem;display:grid}.ai-notice{color:var(--text-secondary);text-align:center;margin:0;font-size:.8125rem}.ai-composer{border:1px solid var(--border);background:var(--surface);border-radius:1.5rem;gap:.5rem;padding:.75rem .75rem .75rem 1rem;display:grid}.ai-composer.listening{border-color:var(--ai-ink)}.ai-composer textarea{width:100%;max-height:140px;color:var(--text);font:inherit;resize:none;background:0 0;border:0;margin:0;padding:.25rem 0;line-height:1.5}.ai-composer textarea::placeholder{color:var(--text-secondary)}.ai-composer textarea:focus-visible{outline:none}.ai-tools{align-items:center;gap:.5rem;display:flex}.ai-spacer{flex:1}.ai-round{width:2.75rem;height:2.75rem;color:var(--text);cursor:pointer;touch-action:none;background:0 0;border:0;border-radius:50%;flex:none;place-items:center;padding:0;display:grid}.ai-round>svg{box-sizing:content-box;border-radius:50%;padding:8px}.ai-round.muted>svg{background:var(--surface-muted)}.ai-round.send>svg{background:var(--ai-ink);color:#fff}.ai-round.stop>svg{background:var(--text);color:var(--bg)}.ai-round.talking>svg{background:var(--ai-ink);color:#fff}.ai-round:disabled{opacity:.4;cursor:default}@media (pointer:fine){.ai-camera{display:none}}.ai-wave{min-width:0;color:var(--ai-ink);flex:1;align-items:center;gap:.75rem;font-size:.8125rem;display:flex}.ai-bars{flex:1;align-items:center;gap:3px;height:1.5rem;display:flex;overflow:hidden}.ai-bars span{background:currentColor;border-radius:2px;width:3px;height:30%;animation:.7s ease-in-out infinite alternate ai-wave}@keyframes ai-wave{to{height:100%}}@media (prefers-reduced-motion:reduce){.ai-bars span,.ai-spinner{animation:none}}.ai-thumbs{flex-wrap:wrap;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.ai-thumbs.sent{justify-content:flex-end}.ai-thumbs li{background:var(--surface-muted);border-radius:.625rem;place-items:center;width:72px;height:72px;display:grid;position:relative;overflow:hidden}.ai-thumbs li>img{object-fit:cover;width:100%;height:100%}.ai-thumbs li.uploading>img,.ai-thumbs li.uploading>.ai-file{opacity:.4}.ai-thumbs li>.ai-spinner,.ai-thumbs li>.ai-outline{position:absolute}.ai-file{color:var(--text-secondary);justify-items:center;gap:.25rem;padding:.5rem;display:grid}.ai-file span{-webkit-line-clamp:2;color:var(--text);text-align:center;overflow-wrap:anywhere;-webkit-box-orient:vertical;font-size:.6875rem;display:-webkit-box;overflow:hidden}.ai-thumb-remove{background:var(--surface);width:1.375rem;height:1.375rem;color:var(--text);cursor:pointer;border:0;border-radius:50%;place-items:center;padding:0;display:grid;position:absolute;top:.25rem;right:.25rem}.ai-languages{gap:.25rem;max-height:50vh;margin-bottom:1rem;display:grid;overflow-y:auto}.ai-languages label{cursor:pointer;border-radius:.75rem;align-items:center;gap:.75rem;min-height:2.75rem;padding:0 .5rem;display:flex}.ai-languages label:has(input:checked){background:var(--surface-muted);font-weight:700}.new-deck-fab{right:16px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:19;border:2px solid var(--primary);background:var(--primary);width:56px;height:56px;color:var(--bg);cursor:pointer;border-radius:50%;place-items:center;padding:0;display:grid;position:fixed;box-shadow:0 4px 8px #402e1f1a}.new-deck-fab.secondary{background:var(--surface);color:var(--primary)}.new-deck-fab svg path{stroke-width:2px}@media (min-width:48rem){.new-deck-fab{display:none}}@media (max-width:47.99rem){.my-decks .app-title-row .app-button{display:none}.app-toast{bottom:calc(150px + env(safe-area-inset-bottom))}}.profile,.settings-page{gap:1.25rem;display:grid}.profile-top,.settings-top{grid-template-columns:2.75rem 1fr 2.75rem;align-items:center;display:grid}.profile-top{grid-template-columns:1fr 2.75rem}.profile-top h1,.settings-top h1{margin:.5rem 0 0;font-size:1.5rem}.settings-top h1{text-align:center;margin:0;font-size:1.125rem}.profile-gear,.settings-chevron{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round}.profile-card{background:var(--surface);border-radius:1.5rem;gap:1rem;padding:1.5rem;display:grid}.profile-card.skeleton{background:var(--surface-muted);min-height:12rem}.profile-card hr{border:0;border-top:1px solid var(--surface-muted);width:100%;margin:0}.profile-head{align-items:center;gap:1rem;display:flex}.profile-photo{flex:none;position:relative}.profile-avatar{background:var(--popflip-cover-lavender-bg,#e7e2f0);width:72px;height:72px;color:var(--popflip-cover-lavender-ink,#6c5d92);border-radius:50%;place-items:center;font-size:1.5rem;font-weight:800;display:grid;overflow:hidden}.profile-avatar img{object-fit:cover;width:100%;height:100%}.profile-photo-menu{position:absolute;bottom:-.5rem;right:-.5rem}.profile-photo-menu .app-menu summary{border:2px solid var(--surface);background:var(--surface-muted);width:2rem;height:2rem}.profile-photo-menu .app-menu-panel{left:0;right:auto}.profile-name{flex:1;gap:.25rem;min-width:0;display:grid}.profile-name strong{text-overflow:ellipsis;white-space:nowrap;font-size:1.25rem;overflow:hidden}.profile-name span{color:var(--text-secondary);font-size:.875rem;font-weight:600}.profile-edit{background:var(--surface-muted);width:2.75rem;height:2.75rem;color:var(--text);cursor:pointer;border:0;border-radius:50%;flex:none;align-self:flex-start;place-items:center;display:grid}.profile-bio{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.profile-metrics{gap:2rem;display:flex}.profile-metrics span{color:var(--text-secondary);font-size:.8125rem;display:grid}.profile-metrics strong{color:var(--text);font-size:1.25rem}.profile-onboarding h2{margin:0;font-size:1.125rem}.profile-onboarding p{color:var(--text-secondary);margin:0}.profile-plan{background:var(--surface);border-radius:1.5rem;justify-items:start;gap:.375rem;padding:1.25rem 1.5rem;display:grid}.profile-plan>span{color:var(--text-secondary);font-size:.8125rem}.profile-plan strong{font-size:1.125rem}.profile-plan.premium{background:var(--accent-soft);color:var(--premium)}.profile-plan.premium>span{color:var(--text)}.profile-plan .app-button{margin-top:.5rem}.profile-upgrade{background:var(--popflip-cover-lavender-bg,#e7e2f0);color:var(--text);gap:1rem;padding:1rem}.profile-upgrade-head{align-items:flex-start;gap:.5rem;width:100%;display:flex}.profile-upgrade-copy{flex:1;gap:.25rem;min-width:0;display:grid}.profile-upgrade-copy strong{font-size:1.25rem}.profile-upgrade-copy span{line-height:1.5}.profile-upgrade-icon{background:var(--surface);border-radius:50%;flex:none;place-items:center;width:2.5rem;height:2.5rem;display:grid}.profile-upgrade .app-button{background:var(--popflip-cover-lavender-ink,#6c5d92);color:var(--surface);border-radius:.75rem;margin-top:0;padding:.5rem 1rem}.profile-liked h2{margin:0 0 .75rem;font-size:1.125rem}.settings-section{gap:.5rem;display:grid}.settings-section>h2{color:var(--text-secondary);letter-spacing:.06em;text-transform:uppercase;margin:0;padding:0 .5rem;font-size:.75rem;font-weight:800}.settings-group{background:var(--surface);border-radius:1.25rem;overflow:hidden}.settings-row{border:0;border-bottom:1px solid var(--border);width:100%;min-height:3.5rem;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;align-items:center;gap:.75rem;padding:.75rem 1.25rem;text-decoration:none;display:flex}.settings-group>.settings-row:last-child{border-bottom:0}.settings-row:hover:not(:disabled){background:var(--surface-muted);color:var(--text)}.settings-row:disabled{color:var(--text-secondary);cursor:default}.settings-row.danger{color:var(--popflip-color-danger-text,#a44954)}.settings-row-text{flex:1;min-width:0;display:grid}.settings-row-text small{color:var(--text-secondary);overflow-wrap:anywhere;font-size:.8125rem}.settings-row-value{color:var(--text-secondary);font-size:.9375rem}.settings-chevron{color:var(--text-secondary);flex:none}.settings-theme{flex-wrap:wrap;gap:.5rem;margin-bottom:1.25rem;display:flex}.change-email-body{padding:1.25rem}.change-email-body form{gap:.75rem;display:grid}.change-email-body p{margin:0}
