/* Activity workspaces and Memory share Gelara's existing typography and controls. */
.activities-home,.activity-create,.memory-editor{padding-bottom:30px}.activities-home .pagehead,.memory-editor .pagehead{gap:20px;align-items:center}.activity-catalog{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:22px}.activity-card{border:1px solid #dce1ef;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 5px 18px #20398b08}.activity-cover{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#eef2ff;padding:22px;min-height:180px}.activity-cover>span{display:flex;align-items:center;justify-content:center;min-height:65px;background:white;border-radius:10px;border:1px solid #d8e0fd;padding:12px;overflow:hidden}.activity-cover .memory-word{font-size:18px}.activity-cover .memory-symbol{font-size:34px}.activity-cover img{height:65px;max-width:100%;object-fit:contain}.activity-card-copy{padding:22px}.activity-type{font-size:11px;font-weight:700;letter-spacing:.06em;color:#50617e}.activity-card h2{font-size:24px;margin:9px 0}.activity-card-copy>p{color:#637086;margin:0 0 20px}.activity-card-main,.activity-card-more,.memory-editor .actions,.memory-play .actions,.memory-link-dialog .actions{display:flex;gap:9px;flex-wrap:wrap}.activity-card-more{border-top:1px solid #edf0f7;margin-top:17px;padding-top:12px}.activity-card-more button{font-size:12px;padding:7px 9px}.activity-storage-note{font-size:12px;color:#667085;margin:24px 0 12px}.activity-empty{border:1px solid #dbe3ff;background:linear-gradient(125deg,#f0f4ff,#fafbff);border-radius:22px;padding:44px;text-align:center}.activity-empty p{max-width:560px;margin:15px auto 24px;color:#5a6a86;line-height:1.6}.activity-empty-cards{display:flex;justify-content:center;gap:10px;margin-bottom:25px}.activity-empty-cards span{border:1px solid #cdd7f5;background:white;box-shadow:0 6px 10px #1b45d10a;padding:25px 20px;border-radius:12px;font-size:25px;font-weight:650}.memory-creation-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.memory-creation-modes>button{text-align:left;white-space:normal;padding:30px;background:white;border:1px solid #d9e0ef;border-radius:16px;min-height:210px}.memory-creation-modes>button:hover{border-color:#2146d8;box-shadow:0 5px 20px #163be00d}.memory-creation-modes>button>span{color:#2041cd;font-size:27px}.memory-creation-modes h2{font-size:22px;margin:20px 0 12px}.memory-creation-modes p{font-weight:400;font-size:14px;line-height:1.5;color:#617089}.memory-settings{display:grid;grid-template-columns:2fr 1.4fr 1fr;gap:18px;background:#fff;padding:24px;border:1px solid #dce2ed;border-radius:15px}.memory-editor label,.memory-link-dialog label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:650;min-width:0}.memory-editor input,.memory-editor select,.memory-editor textarea,.memory-link-dialog select{width:100%;min-height:43px;padding:10px 12px;border:1px solid #d0d9e9;border-radius:8px;background:white;color:#1a2b4b;font:inherit;font-size:14px}.memory-editor textarea{resize:vertical;min-height:90px}.memory-source-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:24px 0 14px}.memory-source-tabs [aria-pressed=true]{background:#eaf0ff;border-color:#163be0;color:#163be0}.memory-source-panel,.memory-ai-panel,.memory-proposal{padding:23px;background:#fff;border:1px solid #d9e2f5;border-radius:14px;margin-bottom:16px}.memory-ai-panel{background:#f3f6ff}.memory-ai-input{display:grid;grid-template-columns:1fr 105px;gap:16px;margin-bottom:16px}.memory-editor .help,.memory-link-dialog .help{font-size:12px;font-weight:400;line-height:1.65;color:#65738a;margin:14px 0 0}.memory-proposal{border-color:#708fee;background:#f5f7ff}.memory-proposal header{display:flex;justify-content:space-between;gap:18px;align-items:center}.memory-proposal header span{color:#2445b8;font-size:11px;font-weight:700;letter-spacing:.05em}.memory-proposal h2{margin:8px 0;font-size:24px}.memory-pairs-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 0 16px}.memory-pairs-heading h2{font-size:22px;margin:0}.memory-pairs-heading h2 span{font-size:13px;color:#6c7890;margin-left:10px}.memory-pairs-editor{display:grid;grid-template-columns:1fr 1fr;gap:15px}.memory-pair-block{padding:18px;border:1px solid #dce3ef;background:white;border-radius:13px}.memory-pair-block>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;color:#697a94;font-size:12px}.memory-pair-block>header button{border:0;background:transparent;color:#6c788c;padding:4px;font-size:12px}.memory-pair-fields{display:grid;grid-template-columns:1fr 22px 1fr;gap:10px;align-items:center}.memory-pair-arrow{color:#8a98b1;text-align:center}.memory-image-preview{background:#f4f6fb;border-radius:8px;height:92px;display:flex;align-items:center;justify-content:center;overflow:hidden}.memory-image-preview .memory-symbol{font-size:50px}.memory-image-preview img{height:100%;max-width:100%;object-fit:contain}.memory-image-editor{display:grid;gap:10px}.memory-upload{border:1px dashed #aebfde;padding:10px;border-radius:8px;color:#234ad1;cursor:pointer}.memory-upload input{padding:4px;min-height:0;font-size:11px;border:0;background:none}.memory-editor-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:26px;padding-top:22px;border-top:1px solid #dde4f1}.memory-editor-footer>span{font-size:12px;color:#65748b}.memory-pair-review{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:12px;margin-top:20px}.memory-pair-review>div{display:grid;grid-template-columns:1fr 20px 1fr;align-items:center;text-align:center;gap:12px;min-height:110px;border:1px solid #dbe2f1;background:white;border-radius:10px;padding:16px}.memory-pair-review .memory-symbol{font-size:40px}.memory-pair-review .memory-word{font-size:18px;overflow-wrap:anywhere}.memory-pair-review img{max-width:100%;height:80px;object-fit:contain}.activity-error{border:1px solid #e9bdba;background:#fff4f2;color:#9e3430;padding:16px;border-radius:9px;line-height:1.6}.memory-link-dialog{max-width:520px;width:calc(100% - 40px);border:1px solid #d6deef;border-radius:18px;padding:28px}.memory-link-dialog h2{font-size:24px}.memory-link-dialog label{margin:18px 0}.memory-link-dialog::backdrop{background:#17253b66}.memory-link-dialog .actions{margin-top:22px}.memory-draft-state{font-size:12px!important;color:#607593!important}.memory-play{background:#f3f5fc;min-height:100dvh;padding:24px 32px;display:flex;flex-direction:column;color:#152a50}.memory-play:fullscreen{height:100dvh;overflow:auto}.memory-play-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.memory-play-header h1{font-size:clamp(22px,2.4vw,38px);margin:8px 0 0;line-height:1.15}.memory-play-header>div>span{font-size:11px;font-weight:700;letter-spacing:.12em;color:#506a9c}.memory-play-stats{display:flex;gap:14px;font-size:14px;white-space:nowrap}.memory-play-stats>span{letter-spacing:0!important;font-size:14px!important}.memory-play-message{margin:18px 0;text-align:center;min-height:22px;font-size:15px;color:#556787}.memory-game-grid{display:grid;grid-template-columns:repeat(var(--memory-columns),minmax(0,1fr));gap:clamp(8px,1.2vw,18px);width:min(1500px,100%);margin:0 auto;flex:1;align-content:stretch}.memory-game-card{border:2px solid #b8c9f2;border-radius:clamp(10px,1.1vw,18px);background:#2346d3;color:white;display:flex;align-items:center;justify-content:center;position:relative;min-height:100px;height:max(100px,calc((100dvh - 205px)/var(--memory-rows) - 18px));max-height:250px;padding:15px;overflow:hidden;box-shadow:0 3px 0 #0e2b9c;white-space:normal}.memory-game-card:hover:not(:disabled){background:#1636b2;transform:translateY(-2px)}.memory-game-card:focus-visible{outline:4px solid #f6b837;outline-offset:3px}.memory-game-card.is-open{background:white;color:#163366;box-shadow:0 2px 0 #c5d4f4}.memory-game-card.is-matched{background:#eff9f3;border-color:#70b59a;color:#245b43;opacity:1;box-shadow:none}.memory-card-back{font-size:clamp(26px,3vw,56px);font-weight:750;opacity:.85}.memory-card-back small{font-size:11px;position:absolute;bottom:10px;right:12px;font-weight:400;opacity:.8}.memory-game-card .memory-word{font-size:clamp(17px,2.6vw,36px);font-weight:650;line-height:1.2;overflow-wrap:anywhere}.memory-game-card .memory-symbol{font-size:clamp(36px,5vw,85px)}.memory-game-card img{max-height:100%;max-width:100%;object-fit:contain}.memory-play-finish{display:flex;justify-content:center;gap:12px;margin:20px 0}.memory-media-missing{font-size:11px;color:#697a94;text-align:center}.memory-pair-review>div>span[aria-hidden]{color:#91a0ba}
@media(max-width:850px){.memory-settings{grid-template-columns:1fr 1fr}.memory-settings label:first-child{grid-column:1/-1}.memory-creation-modes{grid-template-columns:1fr}.memory-creation-modes>button{min-height:130px;padding:24px}.memory-creation-modes h2{margin:10px 0}.memory-pairs-editor{grid-template-columns:1fr}.memory-play{padding:18px}.memory-play-header{flex-wrap:wrap;gap:15px}.memory-play-header .actions{gap:6px}.memory-play-header button{font-size:12px;padding:8px}.memory-game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.memory-game-card{height:clamp(105px,16vw,150px)}.memory-proposal header{flex-wrap:wrap}}
@media(max-width:520px){.activity-empty{padding:30px 18px}.memory-settings{padding:18px;gap:12px;grid-template-columns:1fr}.memory-ai-input{grid-template-columns:1fr}.memory-pair-fields{gap:6px;grid-template-columns:1fr 16px 1fr}.memory-pair-block{padding:12px}.memory-editor .pagehead{flex-direction:column;align-items:flex-start}.memory-play-stats{font-size:12px}.memory-game-grid{gap:7px}.memory-game-card{padding:7px;height:100px}.memory-game-card .memory-word{font-size:16px}.memory-game-card .memory-symbol{font-size:36px}.memory-play{padding:12px}.memory-play-message{font-size:12px}.memory-play-header h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){.memory-game-card{transform:none!important;transition:none!important}}
