@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900&display=swap');
:root{color-scheme:light}
html{background:#eee9e3}
body{min-height:100vh;margin:0!important;padding:28px!important;background:radial-gradient(circle at 12% 0,#fffaf3 0,transparent 34%),radial-gradient(circle at 88% 6%,#ecd9dd 0,transparent 30%),#eee9e3!important;color:#2c2125}
#pervye{--paper:#f6f1ed;--white:#fffdfa;--ink:#2c2125;--plum:#702642;--rose:#f2e4e5;--berry:#a44e65;--blush:#f4ddd8;--line:#e6ddd8;--muted:#77696d;--accent:#d26752;max-width:980px!important;min-height:calc(100vh - 56px);margin:auto;font-family:'Golos Text',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink)}
#pervye *{box-sizing:border-box}
#pervye button,#pervye input,#pervye select,#pervye textarea{font:inherit}
#pervye button{transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease}
#pervye button:active{transform:scale(.98)}
#pervye button:focus-visible,#pervye input:focus-visible,#pervye textarea:focus-visible,#pervye select:focus-visible{outline:3px solid #d2675250;outline-offset:2px}
#pervye .mast{display:none!important}
#pervye .board{display:block!important;padding:0!important}
#pervye .stage{display:block!important}
#pervye .stage .phone{width:100%!important;max-width:none!important;min-height:calc(100vh - 56px)!important;margin:0!important;border:1px solid #ffffffa6!important;border-radius:34px!important;overflow:hidden;background:linear-gradient(145deg,#fbf8f5 0,#f5efeb 100%)!important;box-shadow:0 28px 80px #49313a1c,0 4px 18px #49313a10!important}
#pervye .body{min-width:0;padding:30px 34px 112px!important;display:grid;align-content:start;gap:18px!important}
#pervye .app-loading{padding:72px;text-align:center;color:var(--muted)}
#pervye .hidden-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
#pervye .top{min-height:52px!important;margin-bottom:8px;color:var(--ink)!important}
#pervye .app-brand{display:flex;align-items:center;gap:11px;font-size:16px;font-weight:800;letter-spacing:-.02em;color:var(--ink)!important}
#pervye .app-brand .brand-mark{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#7f2949,#592037);color:#fff;box-shadow:0 8px 18px #70264228}
#pervye .app-brand .brand-mark .ui-icon{width:22px;height:22px}
#pervye .avatar{width:42px!important;height:42px!important;border:1px solid #eadcdf;background:#f1e1e3!important;color:var(--plum);font-weight:800;box-shadow:inset 0 0 0 4px #fff8}
#pervye .route-title{display:flex;align-items:center;gap:10px}
#pervye .route-title h2{margin:0;font-family:Georgia,'Times New Roman',serif;font-size:clamp(34px,4.5vw,44px);font-weight:500;letter-spacing:-.035em;line-height:1.04;color:var(--ink)}
#pervye .route-title+.small{margin:-5px 0 8px;font-size:13px;color:var(--muted)}
#pervye .back{width:max-content;min-height:38px!important;padding:0 2px!important;color:var(--plum)!important;font-weight:700}
#pervye .small,#pervye small{color:var(--muted);font-size:12px}
#pervye input:not([type=checkbox]):not([type=range]),#pervye select,#pervye textarea{width:100%;min-height:50px;padding:12px 15px;border:1px solid var(--line);border-radius:14px;background:#fffdfa;color:var(--ink);box-shadow:0 1px 0 #fff inset;min-width:0}
#pervye input[type=search]{padding-left:46px!important;background:#fffdfa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2377696d' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.2-3.2'/%3E%3C/svg%3E") no-repeat 16px center!important}
#pervye input:not([type=checkbox]):not([type=range]):focus,#pervye select:focus,#pervye textarea:focus{border-color:#c88b9d;box-shadow:0 0 0 4px #a44e6512}
#pervye label.field{display:grid;gap:7px;font-size:12px;font-weight:700;color:var(--ink)}
#pervye input[type=range],#pervye input[type=checkbox]{accent-color:var(--plum)}
#pervye .chips{display:flex;gap:8px;overflow:auto;padding:1px 1px 4px;scrollbar-width:none}
#pervye .chips::-webkit-scrollbar{display:none}
#pervye .pill{flex:none;min-height:42px!important;padding:8px 16px!important;border:1px solid var(--line)!important;border-radius:13px!important;background:#fffdfa!important;color:var(--muted);font-size:13px!important;font-weight:600}
#pervye .pill[aria-pressed=true]{border-color:var(--ink)!important;background:var(--ink)!important;color:#fff!important;box-shadow:0 7px 18px #2c21251b}
#pervye .main,#pervye .secondary{min-height:50px;border-radius:15px!important;padding:12px 16px;font-weight:700;text-align:center}
#pervye .main{background:linear-gradient(135deg,#7b2848,#602039)!important;color:#fff;box-shadow:0 10px 22px #70264220}
#pervye .main:hover{box-shadow:0 13px 28px #70264230;transform:translateY(-1px)}
#pervye .secondary{border:1px solid var(--line);background:#fffdfa!important;color:var(--ink)!important}
#pervye .add-primary{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:2px}
#pervye .add-primary span{font-size:20px;font-weight:400}
#pervye .danger{color:#9c2948;border:1px solid #e0b8c2;background:#fff7f8}
#pervye .wide{width:100%}
#pervye .stack{display:grid;gap:10px}
#pervye .paper{border:1px solid var(--line)!important;border-radius:18px!important;background:#fffdfa!important;box-shadow:0 5px 16px #4b323908}
#pervye .word-row{position:relative;overflow:hidden;border-radius:18px;background:#932c4c}
#pervye .word-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px!important}
#pervye .word-row .word-card{position:relative;z-index:2;width:100%;background:#fffdfa!important;touch-action:pan-y;transition:transform .22s ease}
#pervye .word-row .word-card.is-dragging{transition:none}
#pervye .word-card>.word{min-width:0;min-height:58px}
#pervye .word-card>.word>.ui-icon{width:18px;height:18px;flex:none;color:#a99da0}
#pervye .word-card .word-copy{display:grid;gap:2px;min-width:0}
#pervye .word-card .word-copy strong{font-size:16px;letter-spacing:-.015em}
#pervye .word-card .word-copy strong,#pervye .word-card .word-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#pervye .word-card .word-date{margin-top:4px;color:var(--muted);font-size:11px}
#pervye .glyph{width:44px!important;height:44px!important;border-radius:14px!important;background:#f1e1e3!important;color:var(--plum)!important;font-size:18px!important;font-weight:800!important}
#pervye .glyph.peach{background:#f4e3dc!important;color:#a44d3f!important}
#pervye .word-actions{display:flex;align-items:center;gap:7px}
#pervye .word-actions button{width:42px;height:42px;min-height:42px;padding:0;border-radius:13px;display:grid;place-items:center}
#pervye .word-actions .home-play{background:var(--ink);color:#fff;box-shadow:0 6px 14px #2c21251d}
#pervye .word-actions .quick-add{border:1px solid var(--line);background:#f8f3f0;color:var(--ink)}
#pervye .swipe-actions{position:absolute;z-index:1;inset:0 0 0 auto;width:154px;display:grid;grid-template-columns:1fr 1fr}
#pervye .swipe-actions button{height:100%;min-height:0;border:0;border-radius:0;color:#fff;font-size:12px;font-weight:700}
#pervye .swipe-actions .swipe-edit{background:#9b6878}
#pervye .swipe-actions .swipe-delete{background:#932c4c}
#pervye .swipe-favorite{position:absolute;z-index:1;inset:0 auto 0 0;width:96px;display:grid;place-items:center;background:var(--ink);color:#fff;font-size:12px;font-weight:700}
#pervye .moment-filter{width:max-content;display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px}
#pervye .moment-filter select{width:auto;min-height:36px;padding:6px 34px 6px 11px;border:0;border-radius:99px;background:#eee7e2;color:var(--ink);font-size:12px;font-weight:650;box-shadow:none}
#pervye .event-timeline{max-width:720px;display:grid}
#pervye .moment{min-width:0;display:grid;grid-template-columns:58px 24px minmax(0,1fr);align-items:stretch}
#pervye .moment-date{padding:19px 0 22px;display:grid;align-content:start;justify-items:end;line-height:1;color:var(--muted)}
#pervye .moment-date b{font-family:Georgia,'Times New Roman',serif;font-size:25px;font-weight:500;color:var(--ink)}
#pervye .moment-date span{margin-top:3px;font-size:11px}
#pervye .moment-date small{margin-top:3px;font-size:9px;color:#a29598}
#pervye .moment-line{position:relative;display:flex;justify-content:center}
#pervye .moment-line::before{content:'';position:absolute;top:0;bottom:0;width:1px;background:#dcd1cd}
#pervye .moment:first-child .moment-line::before{top:28px}
#pervye .moment:last-child .moment-line::before{bottom:calc(100% - 29px)}
#pervye .moment-line i{position:relative;z-index:1;width:9px;height:9px;margin-top:25px;border:2px solid #f8f4f1;border-radius:50%;background:#9f6979;box-shadow:0 0 0 1px #9f6979}
#pervye .moment.skill .moment-line i{background:#688a81;box-shadow:0 0 0 1px #688a81}
#pervye .moment.food .moment-line i{background:#c17a64;box-shadow:0 0 0 1px #c17a64}
#pervye .moment-link{width:100%;min-height:88px;padding:16px 4px 16px 12px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;color:var(--ink)}
#pervye .moment:last-child .moment-link{border-bottom:0}
#pervye .moment-copy{display:grid;gap:5px;min-width:0}
#pervye .moment-copy small{font-family:Georgia,'Times New Roman',serif;font-size:12px;font-style:italic;color:var(--muted)}
#pervye .moment-copy strong{font-family:Georgia,'Times New Roman',serif;font-size:21px;font-weight:500;letter-spacing:-.02em;overflow-wrap:anywhere}
#pervye .moment-arrow{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:50%;background:#eee7e2;color:#77696d}
#pervye .moment-arrow .ui-icon{width:16px;height:16px}
#pervye .moment-add{width:max-content;min-height:44px;padding:7px 2px;display:flex;align-items:center;gap:9px;color:var(--plum);font-weight:700;text-align:left}
#pervye .moment-add span{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:var(--plum);color:#fff;font-size:19px;font-weight:400}
#pervye .empty-state{grid-column:1/-1;padding:30px;text-align:center}
#pervye .nav{position:fixed;z-index:30;left:50%;bottom:16px;transform:translateX(-50%);width:220px;margin:0;padding:6px!important;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;border:1px solid #e5dcda!important;border-radius:24px!important;background:#fffdfae8!important;box-shadow:0 14px 34px #3d293126;backdrop-filter:blur(16px)}
#pervye .nav button{position:relative;min-height:48px!important;padding:0!important;border-radius:18px!important;display:grid;place-items:center;color:#8b7e82}
#pervye .nav button .ui-icon{width:21px;height:21px;margin:auto}
#pervye .nav .current{background:var(--ink)!important;color:#fff!important;box-shadow:0 6px 14px #2c21251c}
#pervye .nav-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#pervye article.quote-card{display:flex;flex-direction:column;align-items:stretch;gap:18px;min-height:0;padding:22px;text-align:left;touch-action:auto;background:#fffdfa;border:1px solid var(--line);border-radius:22px;box-shadow:0 8px 22px #49313a0a}
#pervye article.quote-card .quote-main{display:grid;justify-items:start;gap:12px;width:100%;min-width:0}
#pervye article.quote-card .quote-main strong{font-size:clamp(30px,6vw,48px);font-style:normal;line-height:1.05;letter-spacing:-.045em;overflow-wrap:break-word;word-break:normal}
#pervye article.quote-card .pronunciation-play{width:100%;display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:16px;background:#f3ece8}
#pervye article.quote-card .pronunciation-play .wave{justify-content:flex-start}
#pervye article.quote-card .editor-actions{width:100%}
#pervye .editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#pervye .word-menu{display:flex;gap:8px;flex-wrap:wrap}
#pervye .wave{height:26px;display:flex;gap:2px;align-items:center;justify-content:center;flex:1;overflow:hidden}
#pervye .wave span{width:3px;flex:none;border-radius:3px;background:#bd7b8e}
#pervye .word-form-screen{display:grid;gap:12px}
#pervye .word-form-screen h2{font-size:clamp(32px,4vw,40px)}
#pervye .form-lead{margin:-4px 0 2px;color:var(--muted);font-size:14px}
#pervye .compact-word-form{display:grid;gap:16px}
#pervye .compact-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#pervye .compact-form-grid.single{grid-template-columns:1fr}
#pervye .compact-audio{display:grid;gap:12px;padding:17px;border:1px solid var(--line);border-radius:20px;background:#fffdfa}
#pervye .compact-audio-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
#pervye .compact-audio-title{display:flex;align-items:center;gap:10px}
#pervye .compact-audio-title .audio-mark{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#f1e1e3;color:var(--plum)}
#pervye .compact-audio-title strong,#pervye .compact-audio-title small{display:block}
#pervye .audio-choice-actions{display:flex;gap:8px;flex-wrap:wrap}
#pervye .audio-choice-actions button,#pervye .audio-choice-actions .audio-upload{min-height:42px;padding:8px 13px;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;justify-content:center;gap:7px;background:#fffdfa;color:var(--ink);font-weight:650;cursor:pointer}
#pervye .audio-choice-actions button.recording{background:var(--plum);color:#fff}
#pervye .audio-choice-actions .ui-icon{width:18px;height:18px}
#pervye .audio-ready{display:grid;gap:8px;padding-top:2px}
#pervye .audio-ready small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#pervye audio{width:100%;accent-color:var(--plum)}
#pervye .media-preview{width:100%;max-height:380px;border-radius:20px;background:#21181c;object-fit:cover}
#pervye .file-choice{display:flex;align-items:center;gap:12px;padding:14px;border:1px dashed #bf8797;border-radius:16px;background:#fffdfa}
#pervye .file-choice strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#pervye details.optional-panel,#pervye details.trim-panel{border:1px solid var(--line);border-radius:16px;background:#fffdfa}
#pervye details.optional-panel summary,#pervye details.trim-panel summary{min-height:48px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--ink);font-weight:700;cursor:pointer;list-style:none}
#pervye details summary::-webkit-details-marker{display:none}
#pervye details.optional-panel summary::after,#pervye details.trim-panel summary::after{content:'＋';font-size:20px;font-weight:400}
#pervye details.optional-panel[open] summary::after,#pervye details.trim-panel[open] summary::after{content:'−'}
#pervye .optional-fields,#pervye .trim-fields{display:grid;gap:12px;padding:0 14px 14px}
#pervye .optional-fields textarea{min-height:82px}
#pervye .compact-save{min-height:52px;font-size:16px}
#pervye .waveform-editor{position:relative;height:142px;overflow:hidden;border-radius:16px;background:#f3ece8;border:1px solid var(--line);touch-action:none;user-select:none;cursor:crosshair}
#pervye .waveform-editor canvas{position:absolute;inset:0;width:100%;height:100%}
#pervye .wave-shade{position:absolute;top:0;bottom:0;background:#2c21252b;pointer-events:none}
#pervye .wave-shade.left{left:0}#pervye .wave-shade.right{right:0}
#pervye .wave-selection{position:absolute;top:0;bottom:0;border-top:2px solid var(--plum);border-bottom:2px solid var(--plum);background:#fff8fa1f;pointer-events:none}
#pervye .wave-handle{position:absolute;top:0;bottom:0;width:18px;transform:translateX(-50%);z-index:3;cursor:ew-resize;outline:none}
#pervye .wave-handle::before{content:'';position:absolute;left:7px;top:0;bottom:0;width:4px;background:var(--plum);border-radius:4px}
#pervye .wave-handle::after{content:'⋮';position:absolute;left:1px;top:50%;width:16px;height:30px;margin-top:-15px;display:grid;place-items:center;border-radius:7px;background:var(--plum);color:#fff;font-size:17px;line-height:1}
#pervye .wave-handle:focus-visible::after{outline:3px solid #d48da9;outline-offset:2px}
#pervye .wave-loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:13px;background:#f3ece8;z-index:4}
#pervye .wave-times{display:flex;justify-content:space-between;gap:12px;color:var(--ink);font-size:13px;font-weight:650}
#pervye .wave-times span{display:grid;gap:2px}#pervye .wave-times span:last-child{text-align:right}
#pervye .trim-fields>.secondary{display:flex;align-items:center;justify-content:center;gap:7px}
#pervye .album{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#pervye .collage{grid-template-columns:repeat(2,minmax(0,1fr))}
#pervye .tile{padding:0;text-align:left;font-size:11px;font-weight:700;display:grid;gap:7px;color:var(--ink)}
#pervye .tile .image,#pervye .emptytile{width:100%;aspect-ratio:1;border-radius:16px}
#pervye .tile .image{object-fit:cover;background:#eee6e1}
#pervye .emptytile{display:grid;place-items:center;border:1px dashed #c8b8b8;background:#f7f2ef;font-size:24px;color:var(--muted)}
#pervye .toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:130;max-width:calc(100vw - 32px);padding:12px 18px;border-radius:13px;background:var(--ink);color:#fff;box-shadow:0 12px 34px #2c21253b}
#pervye .word-context-menu{position:fixed;z-index:100;width:min(280px,calc(100vw - 20px));padding:8px;border:1px solid var(--line);border-radius:16px;background:#fffdfa;box-shadow:0 18px 48px #2c21252b}
#pervye .word-context-menu>strong{display:block;padding:8px 10px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}
#pervye .word-context-menu .context-item{width:100%;min-height:42px;padding:9px 10px;border:0;border-radius:10px;display:flex;align-items:center;gap:10px;background:transparent;color:var(--ink);text-align:left}
#pervye .word-context-menu .context-item:hover,#pervye .word-context-menu .context-item:focus-visible{background:#f3ece8}
#pervye .word-context-menu .context-item .ui-icon,#pervye .context-mark{width:20px;height:20px;display:grid;place-items:center;flex:none;font-size:19px}
#pervye .word-context-menu .danger-item{color:#932c4c;border-top:1px solid var(--line);border-radius:0 0 10px 10px}
#pervye .confirm-layer{position:fixed;z-index:120;inset:0;display:grid;place-items:center;padding:20px;background:#21181c73;backdrop-filter:blur(5px)}
#pervye .confirm-card{width:min(390px,100%);padding:24px;border-radius:22px;background:#fffdfa;box-shadow:0 24px 70px #21181c50}
#pervye .confirm-card h3{margin:0 0 8px;font-size:22px}#pervye .confirm-card p{margin:0 0 20px;color:var(--muted)}
#pervye .confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#pervye .upload-progress{height:7px;overflow:hidden;border-radius:99px;background:var(--rose)}
#pervye .upload-progress span{display:block;height:100%;width:45%;border-radius:inherit;background:var(--plum);animation:uploading 1s ease-in-out infinite alternate}
@keyframes uploading{to{transform:translateX(120%)}}
#pervye .ui-icon{display:block;width:21px;height:21px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
#pervye .share-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#pervye .share-option{min-width:0;padding:20px!important;display:grid;align-content:start;gap:14px}
#pervye .share-option-icon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#f1e1e3;color:var(--plum)}
#pervye .family-access .share-option-icon{background:#e2ebe8;color:#356c61}
#pervye .share-option h3{margin:3px 0 5px;font-size:20px;letter-spacing:-.025em}
#pervye .share-option p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
#pervye .share-preview{display:grid;gap:4px;padding:13px;border-radius:14px;background:#f5efeb}
#pervye .share-preview span{color:var(--muted);font-size:12px}
#pervye .family-badge{padding:8px 11px;border:1px solid var(--line);border-radius:99px;background:#fffdfa;color:var(--muted);font-size:11px;font-weight:700}
#pervye .family-auth{max-width:620px;width:100%;margin:0 auto}
#pervye .auth-card{padding:22px!important;display:grid;gap:15px}
#pervye .auth-message,#pervye .form-error{margin:0;padding:12px 14px;border:1px solid #e5b7c1;border-radius:13px;background:#fff2f4;color:#8d2945;font-size:13px}
#pervye .invite-note{padding:16px!important;display:flex;align-items:flex-start;gap:12px;background:#f1f6f3!important}
#pervye .invite-note>span{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:12px;background:#dfece7;color:#356c61}
#pervye .invite-note p{margin:0;color:#4d615b;font-size:13px;line-height:1.5}
#pervye .family-home{max-width:900px;width:100%;margin:0 auto}
#pervye .family-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px}
#pervye .family-toolbar p{margin:0;color:var(--muted);font-size:13px}
#pervye .family-toolbar button{flex:none;min-height:40px;padding:8px 14px}
#pervye .family-word-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#pervye .family-word{padding:17px!important;display:grid;align-content:start;gap:14px}
#pervye .family-word-head{display:flex;align-items:center;gap:11px}
#pervye .family-word-head h3{margin:0 0 2px;font-size:18px}
#pervye .family-versions{display:grid;gap:7px}
#pervye .family-version{width:100%;min-height:56px;padding:9px 10px;border:1px solid var(--line);border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f8f3f0;text-align:left;color:var(--ink)}
#pervye .family-version span{min-width:0;display:grid;gap:2px}
#pervye .family-version strong,#pervye .family-version small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#pervye .family-version b{width:34px;height:34px;flex:none;border-radius:11px;display:grid;place-items:center;background:var(--ink);color:#fff}
#pervye .family-version b .ui-icon{width:17px;height:17px}
#pervye .guest-view{max-width:640px;width:100%;margin:0 auto}
@media(max-width:720px){body{padding:0!important;background:#f7f2ee!important}#pervye{min-height:100vh}#pervye .stage .phone{min-height:100vh!important;border:0!important;border-radius:0!important;box-shadow:none!important}#pervye .body{padding:20px 16px 108px!important;gap:16px!important}#pervye .route-title h2{font-size:38px}#pervye .route-title+.small{font-size:13px}#pervye .event-grid{grid-template-columns:1fr}#pervye .event-link{min-height:104px;padding:14px}#pervye .word-card{gap:7px;padding:10px!important}#pervye .word-actions{gap:5px}#pervye .word-actions button{width:40px;height:40px;min-height:40px}#pervye .compact-form-grid{grid-template-columns:1fr}#pervye .compact-audio-head{align-items:flex-start;flex-direction:column}#pervye .audio-choice-actions{width:100%}#pervye .audio-choice-actions button,#pervye .audio-choice-actions .audio-upload{flex:1}#pervye .waveform-editor{height:120px}#pervye .editor-actions{grid-template-columns:1fr}#pervye .album{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#pervye .nav{bottom:10px;width:calc(100vw - 24px)}}
@media(max-width:720px){#pervye .share-options,#pervye .family-word-grid{grid-template-columns:1fr}#pervye .share-option{padding:17px!important}#pervye .family-toolbar{align-items:flex-start;flex-direction:column}}
@media(max-width:390px){#pervye .body{padding-left:12px!important;padding-right:12px!important}#pervye .app-brand b{display:none}#pervye .route-title h2{font-size:34px}#pervye .glyph{width:40px!important;height:40px!important}}
@media(max-width:720px){#pervye .route-title h2{font-size:34px}#pervye .nav{width:220px;bottom:10px}#pervye .moment{grid-template-columns:50px 20px minmax(0,1fr)}#pervye .moment-link{min-height:82px;padding-left:10px}#pervye .moment-copy strong{font-size:20px}#pervye .moment-filter{width:100%;justify-content:space-between}#pervye .moment-filter select{max-width:210px}}
@media(max-width:390px){#pervye .route-title h2{font-size:32px}#pervye .nav{width:204px}}
@media(prefers-reduced-motion:reduce){#pervye *,#pervye *::before,#pervye *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* Playful family diary theme */
html{background:#edf3ff}
body{padding:24px!important;background:radial-gradient(circle at 12% 6%,#dceaff 0,transparent 34%),radial-gradient(circle at 88% 12%,#f4e8ff 0,transparent 32%),#eef4ff!important}
#pervye{--paper:#fff;--white:#fff;--ink:#102458;--plum:#0b4de8;--rose:#ffe1eb;--berry:#f15f91;--blush:#fff1b7;--line:#dce5ff;--muted:#63749d;--accent:#ffcc08;max-width:760px!important;font-family:'Nunito',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink)}
#pervye .stage .phone{background:#fff!important;border:1px solid #dbe5fb!important;border-radius:34px!important;box-shadow:0 30px 90px #31508a25!important}
#pervye .body{padding:26px 28px 116px!important;gap:16px!important}
#pervye .top{margin-bottom:0}
#pervye .app-brand{font-size:20px;color:#0b4de8!important}
#pervye .app-brand .brand-mark{width:44px;height:44px;border-radius:15px;background:#0b4de8;box-shadow:0 8px 20px #0b4de82c}
#pervye .app-brand::after{content:'★';margin-left:-5px;color:#ffca05;font-size:27px;filter:drop-shadow(0 2px 1px #e4a80055)}
#pervye .avatar{width:46px!important;height:46px!important;border:0;background:#dfe6ff!important;color:#0b4de8;font-size:20px;box-shadow:none}
#pervye .route-title{position:relative;width:max-content;max-width:100%}
#pervye .route-title h2,#pervye .word-form-screen h2{font-family:'Nunito',sans-serif;font-size:clamp(38px,6vw,50px);font-weight:900;letter-spacing:-.045em;line-height:1;color:#0b4de8}
#pervye .route-title::after{content:'✦';position:absolute;right:-31px;top:-7px;color:#ffcc08;font-size:27px;transform:rotate(17deg)}
#pervye .route-title+.small{margin:-7px 0 4px;font-size:15px;color:#6b7da6}
#pervye .back{color:#0b4de8!important;font-size:16px}
#pervye input:not([type=checkbox]):not([type=range]),#pervye select,#pervye textarea{min-height:52px;border:1px solid #dce4ff;border-radius:18px;background:#f1f4ff;color:var(--ink);box-shadow:none}
#pervye input[type=search]{background:#f0f3ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2363749d' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.2-3.2'/%3E%3C/svg%3E") no-repeat 16px center!important}
#pervye input:not([type=checkbox]):not([type=range]):focus,#pervye select:focus,#pervye textarea:focus{border-color:#7ca0ff;box-shadow:0 0 0 4px #0b4de814}
#pervye .pill{min-height:44px!important;padding:8px 18px!important;border:1.5px solid #cbd8ff!important;border-radius:22px!important;background:#fff!important;color:#0b4de8;font-size:14px!important;font-weight:800}
#pervye .pill[aria-pressed=true]{border-color:#0b4de8!important;background:#0b4de8!important;color:#fff!important;box-shadow:0 8px 18px #0b4de82b}
#pervye .main{min-height:54px;border-radius:27px!important;background:linear-gradient(135deg,#0754f5,#063ed1)!important;color:#fff;box-shadow:0 10px 24px #0b4de82b;font-size:16px;font-weight:900}
#pervye .secondary{border:1.5px solid #cbd8ff;background:#fff!important;color:#0b4de8!important;font-weight:800}
#pervye .paper{border:1px solid #e1e8ff!important;background:#fff!important;box-shadow:0 8px 22px #31508a0b}

/* Colorful word cards */
#pervye .word-row{border-radius:21px;background:#e15d82}
#pervye .word-row .word-card{min-height:90px;padding:12px 14px!important;border:0!important;border-radius:21px!important;box-shadow:none}
#pervye .word-row.sun .word-card{background:linear-gradient(135deg,#fff1b7,#ffe78b)!important}
#pervye .word-row.pink .word-card{background:linear-gradient(135deg,#ffe0e9,#ffc4d5)!important}
#pervye .word-row.sky .word-card{background:linear-gradient(135deg,#dfe6ff,#c8d4ff)!important}
#pervye .word-card>.word{min-height:64px;gap:13px}
#pervye .word-sticker{width:58px;height:58px;flex:none;display:grid;place-items:center;border:3px solid #fff;border-radius:18px;background:#fff;font-size:34px;line-height:1;box-shadow:0 5px 10px #234a9b1d;transform:rotate(-3deg)}
#pervye .word-row:nth-child(even) .word-sticker{transform:rotate(3deg)}
#pervye .word-card .word-copy{gap:1px}
#pervye .word-card .word-copy strong{font-size:20px;font-weight:900;color:#084adf}
#pervye .word-card .word-copy small{font-size:13px;color:#20366c}
#pervye .word-card .word-date{margin-top:3px;color:#435682;font-size:11px}
#pervye .word-actions button{width:46px;height:46px;min-height:46px;border-radius:50%}
#pervye .word-actions .home-play{background:#fff;color:#0b4de8;box-shadow:0 5px 12px #294b921f}
#pervye .word-actions .quick-add{border:2px solid #fff;background:#ffffff9c;color:#0b4de8}
#pervye .swipe-actions .swipe-edit{background:#7791e8}
#pervye .swipe-actions .swipe-delete{background:#f05f86}
#pervye .swipe-favorite{background:#0b4de8}

/* Word detail */
#pervye .detail-top{display:flex;align-items:center;justify-content:space-between}
#pervye .detail-more{width:44px;height:44px;border-radius:50%;color:#0b4de8;font-size:20px;font-weight:900}
#pervye .word-hero{position:relative;min-height:130px;display:grid;place-items:center;margin:4px 22px 8px}
#pervye .word-hero::before,#pervye .word-hero::after{content:'';position:absolute;background:#0b4de8;border-radius:50%}
#pervye .word-hero::before{inset:27px 16% 23px 12%;border-radius:45% 55% 48% 52%}
#pervye .word-hero::after{width:45%;height:70px;right:10%;top:20px}
#pervye .word-hero h2{position:relative;z-index:2;margin:0;padding:18px 28px;font-size:clamp(34px,7vw,52px);font-weight:900;letter-spacing:-.04em;color:#fff;text-align:center;text-shadow:0 3px 0 #083bb2;transform:rotate(-2deg)}
#pervye .hero-star{position:absolute;z-index:3;right:10%;top:3px;color:#ffcf08;font-size:50px;filter:drop-shadow(0 3px 0 #fff) drop-shadow(0 5px 5px #2951ab33);transform:rotate(10deg)}
#pervye .hero-rays{position:absolute;z-index:3;left:7%;top:15px;color:#ffcf08;font-size:34px;transform:rotate(-15deg)}
#pervye .word-menu{justify-content:center;margin-top:-4px}
#pervye .version-list{display:grid;gap:11px}
#pervye article.quote-card{padding:14px!important;gap:10px;border:0!important;border-radius:22px;box-shadow:none}
#pervye article.quote-card.sun{background:linear-gradient(135deg,#ffe777,#fff09b)!important}
#pervye article.quote-card.pink{background:linear-gradient(135deg,#ffb8ce,#ffd0dd)!important}
#pervye article.quote-card.sky{background:linear-gradient(135deg,#bdcbff,#d5ddff)!important}
#pervye article.quote-card .quote-main{grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px}
#pervye article.quote-card .quote-main>.play{grid-column:1;width:48px;height:48px;border-radius:50%;background:#fff;color:#0b4de8;box-shadow:0 5px 12px #24458c1f}
#pervye .version-copy{grid-column:2;display:grid;gap:2px;min-width:0}
#pervye article.quote-card .quote-main .version-copy strong{font-family:'Nunito',sans-serif;font-size:24px;font-weight:900;letter-spacing:-.03em;color:#084adf}
#pervye .version-copy small{color:#1d3268;font-size:12px}
#pervye .version-wave{grid-column:3;width:120px;overflow:hidden;opacity:.55}
#pervye .version-wave .wave span{background:#0b4de8}
#pervye article.quote-card .editor-actions{display:flex;justify-content:flex-end;gap:7px}
#pervye article.quote-card .editor-actions button{min-height:34px;padding:5px 10px;border:0;border-radius:14px;background:#ffffff92!important;color:#0b4de8!important;font-size:11px}
#pervye .playful-main{margin-top:2px}
#pervye .compare-link{min-height:44px;color:#0b4de8;font-weight:900}

/* Playful events */
#pervye .moment-filter select{border:1px solid #dce4ff;background:#f0f3ff;color:#0b4de8;font-weight:800}
#pervye .event-timeline{max-width:none;gap:10px}
#pervye .moment{grid-template-columns:64px minmax(0,1fr);align-items:center;padding:8px 12px;border-radius:20px;background:#fff1b7}
#pervye .moment:nth-child(even){background:#ffd8e4}
#pervye .moment.other{background:#dce5ff}
#pervye .moment-date{padding:8px 10px 8px 0;justify-items:center;border-right:2px dashed #ffffffb8;color:#304470}
#pervye .moment-date b{font-family:'Nunito',sans-serif;font-size:24px;font-weight:900;color:#0b4de8}
#pervye .moment-line{display:none}
#pervye .moment-link{min-height:74px;padding:9px 4px 9px 14px;border:0}
#pervye .moment-copy small{font-family:'Nunito',sans-serif;font-size:11px;font-style:normal;font-weight:800;color:#6576a0}
#pervye .moment-copy strong{font-family:'Nunito',sans-serif;font-size:19px;font-weight:900;color:#0b4de8}
#pervye .moment-arrow{background:#fff;color:#0b4de8;box-shadow:0 4px 9px #294b9217}
#pervye .moment-add{color:#0b4de8;font-weight:900}
#pervye .moment-add span{background:#0b4de8}

/* Navigation like the reference */
#pervye .nav{bottom:12px;width:min(560px,calc(100vw - 36px));padding:6px 7px!important;border:1px solid #e2e9ff!important;border-radius:23px!important;background:#fffffff2!important;box-shadow:0 12px 30px #20448c20}
#pervye .nav button{min-height:58px!important;border-radius:17px!important;display:grid;place-content:center;gap:2px;color:#102458}
#pervye .nav button .ui-icon{width:22px;height:22px}
#pervye .nav-label{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal;font-size:11px;font-weight:800}
#pervye .nav .current{background:#e4e9ff!important;color:#0b4de8!important;box-shadow:none}

/* Forms, media, photos and sharing */
#pervye .compact-audio,#pervye details.optional-panel,#pervye details.trim-panel,#pervye .auth-card,#pervye .share-option,#pervye .family-word{border:1px solid #dfe7ff;background:#fff!important;border-radius:22px}
#pervye .compact-audio-title .audio-mark,#pervye .share-option-icon{background:#e6ebff;color:#0b4de8}
#pervye .audio-choice-actions button,#pervye .audio-choice-actions .audio-upload{border-color:#cad8ff;color:#0b4de8}
#pervye .waveform-editor,#pervye .pronunciation-play{background:#f0f3ff!important}
#pervye .album{gap:13px}
#pervye .tile{color:#0b4de8;font-weight:900}
#pervye .emptytile{border:2px dashed #b9c9ff;background:#f0f3ff;color:#0b4de8}
#pervye .share-option h3,#pervye .family-word-head h3{color:#0b4de8;font-weight:900}
#pervye .family-version{border-color:#dbe4ff;background:#f2f5ff}
#pervye .family-version b{background:#0b4de8}
#pervye .family-badge{border-color:#dce4ff;background:#f0f3ff;color:#0b4de8}
#pervye .word-context-menu{border-color:#dce4ff;background:#fff;box-shadow:0 18px 50px #21468d26}
#pervye .confirm-card{background:#fff}

@media(max-width:720px){
  body{background:#fff!important}
  #pervye .stage .phone{border-radius:0!important}
  #pervye .body{padding:20px 14px 110px!important;gap:14px!important}
  #pervye .app-brand b{display:inline}
  #pervye .route-title h2,#pervye .word-form-screen h2{font-size:42px}
  #pervye .word-row .word-card{min-height:86px}
  #pervye .word-sticker{width:54px;height:54px;font-size:31px}
  #pervye .word-card .word-copy strong{font-size:19px}
  #pervye .nav{width:calc(100vw - 24px);bottom:8px}
  #pervye .word-hero{margin-left:0;margin-right:0}
  #pervye .version-wave{display:none}
  #pervye article.quote-card .quote-main{grid-template-columns:48px minmax(0,1fr)}
  #pervye .moment{grid-template-columns:58px minmax(0,1fr)}
}
@media(max-width:390px){
  #pervye .app-brand{font-size:17px}
  #pervye .route-title h2,#pervye .word-form-screen h2{font-size:38px}
  #pervye .word-actions button{width:40px;height:40px;min-height:40px}
  #pervye .word-sticker{width:50px;height:50px;font-size:28px}
  #pervye .nav-label{font-size:10px}
}

/* Compact, calmer proportions */
#pervye .words-home{display:grid;gap:11px}
#pervye .words-home-head{display:grid;gap:10px}
#pervye .words-home-head .top{min-height:42px!important}
#pervye .words-home-head .app-brand{font-size:17px}
#pervye .words-home-head .app-brand .brand-mark{width:38px;height:38px;border-radius:13px}
#pervye .words-home-head .app-brand::after{font-size:22px}
#pervye .words-home-head .avatar{width:40px!important;height:40px!important;font-size:17px}
#pervye .words-home-head .route-title h2{font-size:38px}
#pervye .words-home-head .route-title::after{right:-24px;top:-4px;font-size:21px}
#pervye .words-home-head .route-title+.small{margin:-4px 0 0;font-size:13px}
#pervye .words-home-head input[type=search]{min-height:46px}
#pervye .words-home-head .pill{min-height:38px!important;padding:6px 14px!important;font-size:13px!important}

/* Compact section identity: “Первые. Слова / Фото / События” */
#pervye .home-header{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;margin:0 0 4px}
#pervye .home-header h1{min-width:0;margin:0;color:#0b4de8;font-family:'Nunito',sans-serif;font-size:clamp(28px,4.6vw,40px);font-weight:900;line-height:1;letter-spacing:-.045em;white-space:nowrap}
#pervye .home-header h1 span{color:#142c67}
#pervye .home-profile{flex:0 0 auto;min-height:0!important;padding:3px!important;display:flex;align-items:center;gap:9px;border:0!important;background:transparent!important;color:#142c67!important;box-shadow:none!important}
#pervye .home-profile:hover{transform:none!important;background:#f3f6ff!important}
#pervye .home-child{display:grid;gap:0;text-align:right;line-height:1.1}
#pervye .home-child b{font-size:13px;font-weight:900}
#pervye .home-child small{margin-top:2px;color:#6b7da6;font-size:10px;font-weight:700;white-space:nowrap}
#pervye .home-profile .avatar{width:36px!important;height:36px!important;font-size:14px;background:#dfe7ff;color:#0b4de8}

#pervye .word-form-screen{gap:8px}
#pervye .word-form-screen .route-title{width:100%}
#pervye .word-form-screen .back{min-height:32px!important;font-size:14px}
#pervye .word-form-screen .route-title h2{max-width:100%;font-size:34px;line-height:1.02;letter-spacing:-.035em;overflow-wrap:anywhere}
#pervye .word-form-screen .route-title::after{display:none}
#pervye .word-form-screen .form-lead{margin:-1px 0 2px;font-size:13px}
#pervye .compact-word-form{gap:11px}
#pervye .compact-word-form input:not([type=checkbox]):not([type=range]){min-height:46px;border-radius:15px;padding:10px 13px}
#pervye .compact-word-form label.field{gap:5px}
#pervye .compact-audio{gap:9px;padding:12px 13px;border-radius:18px}
#pervye .compact-audio-head{gap:10px}
#pervye .compact-audio-title{gap:8px}
#pervye .compact-audio-title{min-width:0;flex:1}
#pervye .compact-audio-title .audio-mark{width:36px;height:36px;border-radius:12px}
#pervye .compact-audio-title strong{font-size:14px}
#pervye .compact-audio-title small{font-size:10px}
#pervye .audio-choice-actions{gap:6px}
#pervye .audio-choice-actions button,#pervye .audio-choice-actions .audio-upload{min-height:38px;padding:7px 10px;border-radius:12px;font-size:12px}
#pervye details.optional-panel{border-radius:17px}
#pervye details.optional-panel summary{min-height:44px;padding:9px 13px;font-size:13px}
#pervye .compact-save{width:max-content;min-width:210px;min-height:46px;margin-left:auto;padding:9px 22px;border-radius:16px!important;font-size:14px;box-shadow:0 7px 16px #0b4de820}

@media(max-width:720px){
  #pervye .body{padding-top:14px!important;gap:11px!important}
  #pervye .home-header{gap:10px;margin-bottom:2px}
  #pervye .home-header h1{font-size:29px}
  #pervye .home-profile{gap:7px}
  #pervye .home-profile .avatar{width:34px!important;height:34px!important}
  #pervye .words-home{gap:9px}
  #pervye .words-home-head{gap:8px}
  #pervye .words-home-head .top{min-height:38px!important}
  #pervye .words-home-head .app-brand{font-size:15px}
  #pervye .words-home-head .app-brand .brand-mark{width:34px;height:34px;border-radius:11px}
  #pervye .words-home-head .app-brand .brand-mark .ui-icon{width:19px;height:19px}
  #pervye .words-home-head .app-brand::after{font-size:19px}
  #pervye .words-home-head .avatar{width:36px!important;height:36px!important;font-size:15px}
  #pervye .words-home-head .route-title h2{font-size:32px}
  #pervye .words-home-head .route-title+.small{font-size:12px}
  #pervye .words-home-head input[type=search]{min-height:42px;padding-top:9px;padding-bottom:9px}
  #pervye .words-home-head .pill{min-height:36px!important}
  #pervye .word-form-screen .route-title h2{font-size:27px}
  #pervye .compact-audio-head{align-items:center;flex-direction:row}
  #pervye .audio-choice-actions{width:auto;flex:none}
  #pervye .audio-choice-actions button,#pervye .audio-choice-actions .audio-upload{width:38px;min-width:38px;flex:none;padding:7px}
  #pervye .audio-choice-actions span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  #pervye .compact-save{width:100%;min-width:0;min-height:46px;margin:0}
}
@media(max-width:390px){
  #pervye .home-header h1{font-size:25px}
  #pervye .home-child b{font-size:12px}
  #pervye .home-child small{font-size:9px}
  #pervye .home-profile .avatar{width:31px!important;height:31px!important;font-size:12px}
}

/* Animal sound templates and one-tap recording */
#pervye .animal-templates{min-width:0;display:grid;gap:8px;padding:11px 12px 12px;border:1px solid #e1e8ff;border-radius:19px;background:linear-gradient(135deg,#fffdf5,#f3f6ff)}
#pervye .quick-templates{grid-template-columns:minmax(0,1fr) auto;align-items:center}
#pervye .quick-templates .animal-strip{grid-column:1/-1}
#pervye .quick-tabs{display:flex;gap:2px;padding:2px;border-radius:11px;background:#e8edff}
#pervye .quick-tab{min-height:26px;padding:4px 8px;border:0;border-radius:9px;color:#60729d;font-size:10px;font-weight:800}
#pervye .quick-tab[aria-pressed=true]{background:#fff;color:#0b4de8;box-shadow:0 2px 7px #274a9217}
#pervye .animal-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px}
#pervye .animal-heading>span:first-child{display:grid;gap:1px}
#pervye .animal-heading b{font-size:14px;color:#0b4de8}
#pervye .animal-heading small{font-size:10px;color:#7382a6}
#pervye .animal-spark{color:#ffca05;font-size:20px}
#pervye .animal-strip{min-width:0;display:flex;gap:7px;overflow-x:auto;padding:1px 1px 3px;scrollbar-width:none;scroll-snap-type:x proximity}
#pervye .animal-strip::-webkit-scrollbar{display:none}
#pervye .animal-template{min-width:112px;min-height:56px;padding:7px 9px;border:0;border-radius:16px;display:flex;align-items:center;gap:8px;text-align:left;color:#0b4de8;scroll-snap-align:start}
#pervye .animal-template.sun{background:#fff0a9}
#pervye .animal-template.pink{background:#ffd5e1}
#pervye .animal-template.sky{background:#dbe4ff}
#pervye .animal-template .animal-emoji{width:36px;height:36px;flex:none;display:grid;place-items:center;border:2px solid #fff;border-radius:12px;background:#fff;font-size:23px;box-shadow:0 3px 8px #31508a14}
#pervye .animal-template>span:last-child{display:grid;gap:0}
#pervye .animal-template b{font-size:12px;font-weight:900}
#pervye .animal-template small{font-size:10px;color:#3f5488}
#pervye .animal-recorder-screen{max-width:620px;width:100%;margin:0 auto;display:grid;gap:13px}
#pervye .animal-record-title{display:flex;align-items:center;gap:14px;padding:3px 2px}
#pervye .animal-record-emoji{width:68px;height:68px;flex:none;display:grid;place-items:center;border-radius:23px;background:#fff0a9;font-size:44px;box-shadow:0 8px 20px #31508a14;transform:rotate(-3deg)}
#pervye .animal-record-title>span:last-child{display:grid;gap:2px}
#pervye .animal-record-title small{font-size:13px;color:#6b7da6}
#pervye .animal-record-title h2{margin:0;font-size:42px;line-height:.9;letter-spacing:-.04em;color:#0b4de8}
#pervye .record-invite,#pervye .live-recording,#pervye .animal-review{padding:20px;border:1px solid #dfe7ff;border-radius:24px;background:#fff;box-shadow:0 12px 34px #21468d10}
#pervye .record-invite{text-align:center;display:grid;justify-items:center;gap:8px}
#pervye .record-animal{font-size:52px}
#pervye .record-invite h3{margin:0;font-size:20px;color:#0b4de8}
#pervye .record-invite p{margin:0 0 8px;color:#63749d;font-size:12px}
#pervye .record-now{min-width:220px;display:flex;align-items:center;justify-content:center;gap:8px}
#pervye .live-recording{display:grid;justify-items:center;gap:12px;text-align:center;background:linear-gradient(135deg,#fff4f7,#f3f6ff)}
#pervye .record-pulse{width:68px;height:68px;display:grid;place-items:center;border-radius:50%;background:#ff5f91;color:#fff;box-shadow:0 0 0 0 #ff5f9155;animation:recordPulse 1.4s infinite}
#pervye .record-pulse .ui-icon{width:30px;height:30px}
#pervye .live-recording .wave{max-width:250px}
#pervye .live-recording .wave span{background:#0b4de8;animation:waveTalk .6s ease-in-out infinite alternate}
#pervye .stop-record{min-height:42px;padding:8px 18px;border-radius:16px;background:#102458;color:#fff;font-weight:800}
@keyframes recordPulse{70%{box-shadow:0 0 0 18px #ff5f9100}}
@keyframes waveTalk{to{transform:scaleY(.45)}}
#pervye .animal-review{display:grid;gap:12px}
#pervye .record-ready{display:flex;align-items:center;gap:10px}
#pervye .ready-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#dff7e9;color:#168451;font-weight:900}
#pervye .record-ready>span:last-child{display:grid;gap:1px}
#pervye .record-ready b{color:#0b4de8}
#pervye .record-ready small{font-size:10px}
#pervye .animal-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#pervye .animal-review textarea{min-height:64px}
#pervye .animal-review-actions{display:grid;grid-template-columns:auto 1fr;gap:9px}
#pervye .history-heading{display:flex;align-items:center;justify-content:space-between;margin:3px 0 -3px;padding:0 2px}
#pervye .history-heading>span{display:flex;align-items:baseline;gap:8px}
#pervye .history-heading b{font-size:15px;color:#0b4de8}
#pervye .history-heading small{font-size:10px;color:#7584a7}
#pervye .detail-animal{position:absolute;z-index:3;left:6%;top:2px;font-size:46px;filter:drop-shadow(0 3px 0 #fff) drop-shadow(0 5px 5px #2951ab33);transform:rotate(-9deg)}

@media(max-width:720px){
  #pervye .animal-templates{padding:9px 10px 10px}
  #pervye .animal-template{min-width:103px;min-height:52px}
  #pervye .animal-record-emoji{width:58px;height:58px;border-radius:19px;font-size:38px}
  #pervye .animal-record-title h2{font-size:36px}
  #pervye .record-invite,#pervye .live-recording,#pervye .animal-review{padding:15px;border-radius:20px}
}
@media(max-width:390px){
  #pervye .animal-heading small{display:none}
  #pervye .animal-template{min-width:98px}
  #pervye .animal-edit-grid{grid-template-columns:1fr}
  #pervye .animal-review-actions{grid-template-columns:1fr}
}

/* Compact pronunciation history */
#pervye .word-detail{display:grid;gap:9px}
#pervye .word-detail .detail-top{min-height:34px}
#pervye .word-detail .detail-more{width:36px;height:36px;font-size:16px}
#pervye .word-detail .word-hero{min-height:86px;margin:-3px 38px 0}
#pervye .word-detail .word-hero::before{inset:18px 13% 13px 10%}
#pervye .word-detail .word-hero::after{height:52px;right:8%;top:12px}
#pervye .word-detail .word-hero h2{padding:12px 24px;font-size:34px;text-shadow:0 2px 0 #083bb2}
#pervye .word-detail .hero-star{right:8%;top:-1px;font-size:36px}
#pervye .word-detail .hero-rays{left:5%;top:8px;font-size:25px}
#pervye .word-detail .detail-animal{left:2%;top:0;font-size:36px}
#pervye .word-detail .word-menu{margin:0;gap:6px}
#pervye .word-detail .word-menu .pill{min-height:36px!important;padding:6px 13px!important;font-size:12px!important}
#pervye .word-detail .history-heading{margin:2px 0 0}
#pervye .word-detail .history-heading b{font-size:13px}
#pervye .word-detail .history-heading small{font-size:10px}
#pervye .compact-history{gap:7px}
#pervye .compact-history article.quote-card{min-height:0;padding:9px 10px!important;gap:5px;border-radius:17px}
#pervye .compact-history article.quote-card .quote-main{grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px}
#pervye .compact-history article.quote-card .quote-main>.play{grid-column:1;width:36px;height:36px;min-height:36px}
#pervye .compact-history .version-copy{grid-column:2;gap:0}
#pervye .compact-history article.quote-card .quote-main .version-copy strong{font-size:20px;line-height:1.05}
#pervye .compact-history .version-copy small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pervye .version-controls{grid-column:3;display:flex;align-items:center;gap:5px}
#pervye .version-controls .version-action{width:32px;height:32px;min-height:32px;padding:0;border:1px solid #ffffffb8;border-radius:50%;display:grid;place-items:center;background:#ffffff9e;color:#0b4de8;font-size:14px;font-weight:900}
#pervye .version-note{margin:0 0 0 47px;color:#314574;font-size:10px;line-height:1.3}
#pervye .word-detail .playful-main{min-height:46px;border-radius:18px!important;font-size:14px}
#pervye .word-detail .compare-link{min-height:34px;font-size:12px}

@media(max-width:720px){
  #pervye .word-detail .word-hero{min-height:78px;margin:-5px 26px 0}
  #pervye .word-detail .word-hero h2{font-size:30px}
  #pervye .word-detail .hero-star{font-size:32px}
  #pervye .word-detail .word-menu{justify-content:flex-start}
}
@media(max-width:390px){
  #pervye .word-detail{gap:7px}
  #pervye .word-detail .word-hero{margin:-7px 12px -2px}
  #pervye .word-detail .word-hero h2{font-size:27px}
  #pervye .compact-history article.quote-card{padding:8px!important}
  #pervye .compact-history article.quote-card .quote-main{grid-template-columns:34px minmax(0,1fr) auto;gap:7px}
  #pervye .compact-history article.quote-card .quote-main>.play{width:34px;height:34px;min-height:34px}
  #pervye .version-controls{gap:3px}
  #pervye .version-controls .version-action{width:29px;height:29px;min-height:29px;font-size:12px}
  #pervye .version-note{margin-left:41px}
}

/* Friendly compact audio editing */
#pervye .word-form-screen{max-width:620px;width:100%;margin:0 auto;gap:6px}
#pervye .word-form-screen .route-title h2{font-size:30px}
#pervye .word-form-screen .form-lead{margin:-2px 0 4px;font-size:12px}
#pervye .compact-word-form{gap:9px}
#pervye .edit-version-screen .compact-form-grid{max-width:100%}
#pervye .compact-audio{padding:11px 12px;border-radius:17px;gap:8px;box-shadow:none}
#pervye .compact-audio-head{gap:8px}
#pervye .compact-audio-title .audio-mark{width:34px;height:34px;border-radius:11px}
#pervye .compact-audio-title .audio-mark .ui-icon{width:18px;height:18px}
#pervye .compact-audio-title strong{font-size:13px}
#pervye .compact-audio-title small{font-size:9px}
#pervye .audio-choice-actions{flex-wrap:nowrap}
#pervye .audio-choice-actions button,#pervye .audio-choice-actions .audio-upload{min-height:34px;padding:6px 9px;border-radius:11px;font-size:11px}
#pervye .audio-choice-actions .ui-icon{width:16px;height:16px}
#pervye .audio-ready{padding:0;gap:0}
#pervye .audio-ready audio{height:38px}
#pervye details.trim-panel{border-radius:14px;background:#f5f7ff!important}
#pervye details.trim-panel summary{min-height:40px;padding:8px 11px}
#pervye details.trim-panel summary>span,#pervye details.optional-panel summary>span{display:grid;gap:1px}
#pervye details.trim-panel summary b,#pervye details.optional-panel summary b{font-size:12px}
#pervye details.trim-panel summary small,#pervye details.optional-panel summary small{font-size:9px;font-weight:600;color:#7382a6}
#pervye details.trim-panel summary::after{font-size:17px}
#pervye details.trim-panel .trim-fields{gap:8px;padding:0 10px 10px}
#pervye details.trim-panel .waveform-editor{height:96px;border-radius:13px}
#pervye details.trim-panel .wave-times{font-size:10px}
#pervye details.trim-panel .trim-fields>.secondary{min-height:36px;padding:7px 10px;border-radius:12px!important;font-size:11px}
#pervye details.optional-panel summary{min-height:42px;padding:8px 12px}
#pervye .compact-save{min-width:160px;min-height:42px;padding:8px 18px;border-radius:15px!important;font-size:13px}

@media(max-width:720px){
  #pervye .word-form-screen .route-title h2{font-size:26px}
  #pervye .word-form-screen .back{min-height:28px!important}
  #pervye .compact-word-form input:not([type=checkbox]):not([type=range]){min-height:42px}
  #pervye .compact-audio-head{align-items:center;flex-direction:row}
  #pervye .audio-choice-actions{width:auto}
  #pervye .audio-choice-actions button,#pervye .audio-choice-actions .audio-upload{width:34px;min-width:34px;min-height:34px;padding:6px}
  #pervye .compact-save{width:100%;min-height:43px}
}

/* Picture naming game */
#pervye .practice-entry{width:100%;min-height:62px;padding:8px 12px;border:1px solid #dfe7ff;border-radius:18px;display:grid;grid-template-columns:44px minmax(0,1fr) 32px;align-items:center;gap:10px;background:linear-gradient(135deg,#e8edff,#fff0b8);color:#0b4de8;text-align:left;box-shadow:0 7px 18px #21468d0d}
#pervye .practice-entry-art{width:42px;height:42px;display:grid;place-items:center;border:2px solid #fff;border-radius:14px;background:#fff;font-size:26px;transform:rotate(-4deg)}
#pervye .practice-entry-copy{display:grid;gap:1px}
#pervye .practice-entry-copy b{font-size:15px;font-weight:900}
#pervye .practice-entry-copy small{font-size:10px;color:#61739f}
#pervye .practice-entry-go{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#0b4de8;color:#fff;font-size:11px}
#pervye .body:has(.practice-screen){padding:12px!important;background:#eef3ff}
#pervye .practice-screen{max-width:560px;width:100%;min-height:calc(100vh - 24px);margin:0 auto;display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px}
#pervye .practice-top{min-height:36px;display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:8px;color:#52658f;font-size:11px}
#pervye .practice-close{width:34px;height:34px;border-radius:50%;background:#fff;color:#0b4de8;font-size:22px;box-shadow:0 4px 12px #21468d12}
#pervye .practice-top>span:nth-child(2){justify-self:center}
#pervye .practice-category{padding:5px 9px;border-radius:99px;background:#fff;color:#0b4de8;font-weight:800}
#pervye .practice-card{position:relative;min-height:620px;padding:18px;overflow:hidden;border-radius:30px;display:flex;flex-direction:column;align-items:center;background:#fff0ae;box-shadow:0 18px 50px #21468d18;touch-action:pan-y}
#pervye .practice-card.pink{background:linear-gradient(165deg,#fff4f8,#ffd4e1)}
#pervye .practice-card.sky{background:linear-gradient(165deg,#f4f7ff,#d8e2ff)}
#pervye .practice-card.sun{background:linear-gradient(165deg,#fffdf4,#ffe99b)}
#pervye .practice-card::before,#pervye .practice-card::after{content:'';position:absolute;border-radius:50%;background:#fff8;pointer-events:none}
#pervye .practice-card::before{width:170px;height:170px;left:-65px;top:-55px}
#pervye .practice-card::after{width:110px;height:110px;right:-38px;bottom:90px}
#pervye .practice-visual{position:relative;z-index:1;width:min(76vw,330px);min-height:285px;display:grid;place-items:center;font-size:clamp(110px,31vw,180px);line-height:1;filter:drop-shadow(0 12px 18px #31508a24);user-select:none}
#pervye .practice-answer{position:relative;z-index:2;min-height:48px;display:grid;place-items:center}
#pervye .practice-answer h2{margin:0;font-size:34px;font-weight:900;letter-spacing:-.04em;color:#0b4de8}
#pervye .reveal-word{min-height:34px;padding:6px 12px;border:1px solid #ffffffd6;border-radius:15px;background:#ffffffa0;color:#566a99;font-size:11px;font-weight:800}
#pervye .practice-actions{position:relative;z-index:2;margin-top:auto;display:grid;justify-items:center;gap:12px}
#pervye .practice-mic{width:82px;height:82px;border:6px solid #ffffffb8;border-radius:50%;display:grid;place-items:center;background:#0b4de8;color:#fff;box-shadow:0 12px 28px #0b4de83a}
#pervye .practice-mic .ui-icon{width:30px;height:30px}
#pervye .practice-mic span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
#pervye .practice-skip{min-height:38px;padding:7px 14px;border-radius:16px;background:#ffffffae;color:#324b83;font-size:12px;font-weight:800}
#pervye .practice-hint{position:relative;z-index:2;margin-top:10px;color:#61739a;font-size:9px}
#pervye .practice-recording{position:relative;z-index:2;margin-top:auto;display:grid;justify-items:center;gap:12px}
#pervye .practice-review{position:relative;z-index:2;width:100%;margin-top:auto;padding:12px;border:1px solid #ffffffcc;border-radius:20px;display:grid;gap:9px;background:#ffffffe3;box-shadow:0 10px 24px #31508a12}
#pervye .practice-review audio{height:38px}
#pervye .practice-review input{min-height:42px!important;background:#f2f5ff!important}
#pervye .practice-review-actions{display:grid;grid-template-columns:auto 1fr;gap:8px}
#pervye .practice-review-actions button{min-height:40px;padding:8px 13px;border-radius:14px!important;font-size:12px}

@media(max-width:720px){
  #pervye .practice-screen{min-height:calc(100vh - 24px)}
  #pervye .practice-card{min-height:calc(100vh - 70px);padding:14px;border-radius:26px}
  #pervye .practice-visual{min-height:42vh;font-size:clamp(105px,38vw,155px)}
}
@media(max-width:390px){
  #pervye .practice-entry-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #pervye .practice-card{min-height:calc(100vh - 64px)}
  #pervye .practice-visual{min-height:38vh}
  #pervye .practice-review-actions{grid-template-columns:1fr 1fr}
}
