@font-face{font-family:MalfaSymbols;src:url("/static/NotoEmoji.ttf") format("truetype");font-weight:300 700;font-display:swap;unicode-range:U+200D,U+203C,U+2049,U+2194-21FF,U+2300-23FF,U+2460-24FF,U+25A0-27BF,U+2934-2935,U+2B00-2BFF,U+3030,U+303D,U+3297,U+3299,U+FE0F,U+1F000-1FAFF}
@font-face{font-family:MalfaArabic;src:url("/static/NotoSansArabic.ttf") format("truetype");font-weight:100 900;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-089F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF}
:root { --bg:#f5f8fc; --paper:#fff; --ink:#19314b; --soft:#63778a; --muted:#8597a6; --blue:#176b9c; --blue2:#1685bd; --sea:#13b7b1; --border:#e7eef3; --shadow:0 8px 35px rgba(30,75,113,.058); --shadow2:0 14px 38px rgba(30,75,113,.12); --round:20px; --body:MalfaArabic,MalfaSymbols,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,"Apple Color Emoji","Segoe UI Emoji",sans-serif; }
*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:var(--bg);color:var(--ink);font-family:var(--body);margin:0;font-size:15px;line-height:1.6}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin:0}h1{font-size:clamp(23px,2.3vw,34px);letter-spacing:-.6px}h2{font-size:21px}h3{font-size:16px}small{color:var(--soft)}.muted{color:var(--soft)}.small{font-size:12px}.spacer{flex:1}.nowrap{white-space:nowrap}.row{display:flex;align-items:center;gap:12px}.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px}.column{display:flex;flex-direction:column;gap:10px}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hidden{display:none!important}
.btn{background:var(--blue);color:white;border:1px solid var(--blue);min-height:43px;padding:10px 18px;border-radius:12px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:transform .15s,background .15s,box-shadow .15s}.btn:hover:not(:disabled){background:#0e567e;box-shadow:0 5px 15px #176b9c26;transform:translateY(-1px)}.btn:focus-visible,.nav-item:focus-visible,.symbol:focus-visible,.chip:focus-visible,.icon-btn:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #f0aa3c!important;outline-offset:2px}.btn.alt{background:#edf7fa;border-color:#cbe9ed;color:#176a8c}.btn.alt:hover:not(:disabled){background:#e1f2f6}.btn.outline{background:white;border:1px solid #d6e3eb;color:var(--ink)}.btn.outline:hover:not(:disabled){background:#f3f9fa}.btn.ghost{background:transparent;border-color:transparent;color:var(--soft);box-shadow:none}.btn.danger{background:#fff0ef;color:#9a3431;border-color:#f6d6d1}.btn.sm{min-height:36px;padding:7px 12px;font-size:12px}.btn.lg{min-height:52px;font-size:16px;padding:12px 22px}.icon-btn{border:none;background:#f3f7fa;color:#4b6b83;border-radius:12px;width:39px;height:39px;display:grid;place-items:center}.icon-btn:hover{background:#eaf2f6}.icon{display:inline-flex;justify-content:center;align-items:center;flex:none;width:20px;height:20px;vertical-align:middle}.icon svg{width:100%;height:100%;stroke:currentColor;stroke-width:1.85;fill:none;stroke-linecap:round;stroke-linejoin:round}.ic-lg{width:25px;height:25px}.ic-xl{width:32px;height:32px}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label,.label{font-size:13px;font-weight:800;color:#34516a}input,select,textarea{width:100%;min-width:0;border:1px solid #dce6ee;border-radius:12px;background:white;padding:11px 13px;color:var(--ink);transition:border .1s,box-shadow .1s}input:focus,select:focus,textarea:focus{border-color:#39a6c9;box-shadow:0 0 0 3px #1685bd18;outline:none}textarea{resize:vertical;min-height:96px}.fields2{display:grid;grid-template-columns:1fr 1fr;gap:13px}.eyebrow{font-size:11px;letter-spacing:.6px;font-weight:850;color:var(--blue);text-transform:uppercase}.pill{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:5px 11px;background:#eaf8f8;border-radius:999px;color:#21817f;font-size:12px;font-weight:800}.pill.warn{color:#99672e;background:#fff6e6}.pill.blue{color:#175c87;background:#eaf4fa}.card{background:var(--paper);border:1px solid var(--border);border-radius:var(--round);padding:23px;box-shadow:var(--shadow)}.card.soft{background:#fafdff}.card-title{font-size:16px;font-weight:800}.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.section-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:23px}.section-header p{margin-top:5px;color:var(--soft);font-size:13px}.subheading{font-size:14px;color:var(--soft)}.empty-state{padding:32px 15px;color:var(--soft);text-align:center;border:1px dashed #d7e5ec;border-radius:16px}.empty-state .glyph{font-size:39px;display:block;margin-bottom:11px}
.loading-screen{height:100dvh;display:flex;gap:12px;flex-direction:column;justify-content:center;align-items:center;color:var(--soft)}.loading-dot{width:34px;height:34px;border:3px solid #cfe0e9;border-top-color:var(--blue);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.skip-link{position:absolute;top:-80px;right:10px;z-index:9000;background:#fff;padding:12px}.skip-link:focus{top:10px}
#toast{position:fixed;bottom:24px;left:24px;max-width:min(460px,calc(100vw - 30px));z-index:2000;padding:0;transition:all .2s;pointer-events:none}#toast.visible{padding:12px 18px;border:1px solid #bee3e4;background:#fff;color:#215d6c;box-shadow:var(--shadow2);border-radius:14px;pointer-events:auto}#toast.error{border-color:#f0c9ca;color:#8f282f}
.auth-wrap{min-height:100dvh;display:grid;grid-template-columns:minmax(360px,1fr) 1fr;background:white}.auth-form-side{display:flex;justify-content:center;align-items:center;padding:35px 26px}.auth-content{max-width:462px;width:100%}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:44px}.auth-brand img{width:67px;height:67px;object-fit:contain}.auth-brand h2{font-size:27px;letter-spacing:-.5px}.auth-brand small{font-size:12px}.auth-content h1{font-size:32px;margin-bottom:8px}.auth-content .intro{margin-bottom:24px;color:var(--soft)}.tabs{display:flex;background:#f1f6f9;padding:5px;border-radius:12px;gap:5px;margin-bottom:24px}.tabs button{border:none;background:transparent;border-radius:10px;flex:1;min-height:43px;font-weight:800;color:var(--soft)}.tabs button.active{background:white;color:var(--blue);box-shadow:0 3px 8px #0d4f7712}.auth-fields{display:flex;flex-direction:column;gap:15px}.auth-fields .btn{margin-top:7px}.auth-preview{background:radial-gradient(circle at 22% 27%,#5ad9cf45,transparent 40%),linear-gradient(137deg,#0c5b86 0%,#0e7dab 48%,#19bab1 100%);color:white;padding:65px;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;overflow:hidden}.auth-preview:before,.auth-preview:after{content:"";position:absolute;border:1px solid #ffffff36;border-radius:50%;width:540px;height:540px}.auth-preview:before{top:-330px;left:-230px}.auth-preview:after{bottom:-290px;right:-300px;width:590px;height:590px}.preview-art{width:min(360px,80%);aspect-ratio:1;object-fit:contain;z-index:1;filter:drop-shadow(0 22px 45px #002d5850)}.auth-preview h2{font-size:clamp(28px,3.5vw,44px);line-height:1.3;text-align:center;z-index:1}.auth-preview p{font-size:17px;color:#e7fafb;max-width:440px;text-align:center;margin-top:14px;z-index:1}.auth-preview .preview-foot{position:absolute;bottom:38px;z-index:2;color:#d3eff3;font-size:12px}.demo-accounts{border:1px dashed #c7dfe5;border-radius:16px;background:#f7fcfc;padding:15px;margin-top:24px}.demo-accounts .row{flex-wrap:wrap;margin-top:10px}.demo-accounts .btn{font-size:12px;padding:8px 10px;min-height:35px}.auth-note{font-size:12px;color:#8b7770;line-height:1.8;margin-top:22px}
.shell{min-height:100dvh;display:grid;grid-template-columns:254px minmax(0,1fr)}.sidebar{background:var(--paper);border-left:1px solid var(--border);height:100dvh;position:sticky;top:0;display:flex;flex-direction:column;padding:28px 18px 18px;overflow-y:auto}.side-brand{display:flex;gap:8px;align-items:center;padding:0 8px 25px;border-bottom:1px solid var(--border)}.side-brand img{width:53px;height:53px;object-fit:contain}.side-brand h2{font-size:23px;line-height:1.3}.side-brand small{font-size:10px;display:block;letter-spacing:1px;color:#4c89a2}.nav-label{font-size:11px;color:#a2aebd;font-weight:850;margin:25px 12px 10px}.nav-menu{display:flex;flex-direction:column;gap:6px}.nav-item{width:100%;border:0;background:transparent;color:#567085;border-radius:13px;display:flex;align-items:center;gap:13px;padding:12px 14px;text-align:right;font-weight:750;min-height:48px;transition:background .15s}.nav-item:hover{background:#f3f9fc}.nav-item.active{background:#e9f6fb;color:var(--blue)}.nav-item .icon{width:21px;height:21px}.nav-item .nav-dot{margin-inline-start:auto;font-size:10px;color:white;background:#ed815d;border-radius:50%;min-width:19px;height:19px;display:grid;place-items:center}.side-footer{margin-top:auto;padding-top:20px}.privacy-tag{display:flex;align-items:center;gap:9px;background:#f7fbfb;border-radius:14px;padding:11px 12px;color:#617d85;font-size:11px;line-height:1.5}.account-card{display:flex;align-items:center;gap:10px;padding:17px 6px 2px;margin-top:15px;border-top:1px solid var(--border)}.avatar{width:41px;height:41px;flex:none;background:linear-gradient(135deg,#e4f6fa,#f1faff);border:1px solid #dceff3;color:#1f6f9b;border-radius:14px;display:grid;place-items:center;font-size:18px;font-weight:800}.account-card strong{display:block;font-size:13px}.account-card small{font-size:11px}.main{min-width:0;padding:27px clamp(20px,3.2vw,50px) 55px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:29px}.breadcrumb{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:13px}.breadcrumb b{color:var(--ink)}.top-controls{display:flex;align-items:center;gap:10px}.profile-switch{display:flex;align-items:center;gap:10px;border:1px solid var(--border);background:white;padding:5px 10px;border-radius:13px;max-width:220px}.profile-switch select{background:transparent;border:0;padding:5px 10px;width:auto;max-width:135px;font-size:13px;font-weight:800}.profile-switch .profile-symbol{font-size:20px}.topbar .icon-btn{background:white;border:1px solid var(--border)}.topbar .icon-btn.notification-button{position:relative}.unread-bullet{position:absolute;width:8px;height:8px;border-radius:50%;background:#ee8b71;top:6px;left:7px;border:1px solid white}.page-content{max-width:1500px;margin:auto}.hero{background:linear-gradient(107deg,#0c6995 0%,#1386ac 52%,#23b5b2 100%);color:white;padding:30px 34px;border-radius:23px;margin-bottom:25px;position:relative;overflow:hidden;min-height:164px;display:flex;align-items:center;justify-content:space-between}.hero:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;border:38px solid #ffffff13;left:-60px;top:-99px}.hero:before{content:"";position:absolute;width:140px;height:140px;border-radius:50%;background:#ffffff13;left:130px;bottom:-90px}.hero h1{font-size:29px;line-height:1.35}.hero p{margin-top:7px;color:#e2f8fc;font-size:13px;max-width:580px}.hero .hero-stats{display:flex;gap:10px;z-index:1}.hero .hero-stat{background:#ffffff29;border:1px solid #ffffff3d;padding:10px 13px;border-radius:14px;min-width:100px;text-align:center;backdrop-filter:blur(6px)}.hero-stat strong{display:block;font-size:20px}.hero-stat small{color:#e6fbfc;font-size:10px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:21px;align-items:start}.board-card{padding:23px}.board-tools{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:15px;flex-wrap:wrap}.search{position:relative;width:220px;max-width:100%}.search input{padding-inline-start:37px;min-height:40px;background:#fbfdfe}.search .icon{position:absolute;top:12px;right:12px;color:#90a6b5}.categories{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px;margin-bottom:18px}.chip{border:1px solid #dfebf1;background:#f8fbfd;color:#647d8e;border-radius:999px;padding:7px 13px;font-size:12px;font-weight:800;min-height:38px}.chip:hover{background:#edf8fa}.chip.active{background:#e0f4f7;border-color:#9cd4db;color:#137e94}.symbol-grid{display:grid;grid-template-columns:repeat(var(--board-cols,4),minmax(0,1fr));gap:11px}.symbol{background:#fff;border:1px solid #dfebf1;min-height:124px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--ink);box-shadow:0 3px 8px #1e546307;transition:transform .12s,background .12s,border-color .12s;padding:10px;position:relative}.symbol:hover{transform:translateY(-2px);border-color:#72b7cd;background:#f5fcff;box-shadow:0 5px 15px #1e546311}.symbol:active{transform:scale(.97)}.symbol:focus-visible{z-index:1}.symbol .symbol-emoji{display:block;font-size:35px;line-height:1.25;filter:saturate(.87)}.symbol .symbol-label{font-size:15px;font-weight:850;text-align:center;line-height:1.4}.symbol .second{color:#91a1ae;font-size:10px}.board-bottom{display:flex;align-items:center;gap:7px;margin-top:20px;color:#8aa0ad;font-size:12px}.board-bottom .icon{width:17px;height:17px}.composer-card{padding:20px;border:1px solid #dcecf3;background:linear-gradient(150deg,#fff,#f8fdfe);box-shadow:var(--shadow)}.message-line{min-height:101px;border:1px dashed #bfd8e5;border-radius:14px;background:white;padding:12px;margin-top:12px;margin-bottom:12px;display:flex;align-content:start;gap:7px;flex-wrap:wrap}.word-chip{border:1px solid #c9e1eb;background:#ecf8fa;color:#1b6687;border-radius:9px;padding:6px 10px;font-weight:800;min-height:32px;display:inline-flex;align-items:center;gap:6px}.word-chip:hover{background:#deeff5}.msg-placeholder{color:#a7b8c4;font-size:13px;display:flex;align-items:center;gap:7px}.suggestion-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.suggestion-pill{display:flex;align-items:center;gap:7px;border:1px solid #e2edf1;background:#fff;border-radius:11px;min-height:39px;padding:6px 9px;color:#537388;font-weight:750;font-size:12px}.suggestion-pill:hover{border-color:#aed8df;background:#f9fdfd}.divider{border:0;height:1px;background:var(--border);margin:16px 0}.quick-help{background:#f2faf7;color:#467667;border-radius:13px;padding:12px;font-size:12px;line-height:1.8;display:flex;gap:9px}.quick-help svg{flex:none}.ai-proposal{background:#effaf6;border:1px solid #c3e9dc;border-radius:12px;padding:13px;margin:12px 0}.ai-proposal p{margin:7px 0 12px;font-weight:700}.side-stack{display:flex;flex-direction:column;gap:18px}.now-event{display:flex;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #f0f4f6}.now-event:last-child{border:0;padding-bottom:0}.event-emoji{width:43px;height:43px;background:#f3f9fc;border-radius:13px;display:grid;place-items:center;flex:none;font-size:23px}.now-event strong{display:block;font-size:13px}.now-event small{font-size:11px}.status-card{background:linear-gradient(135deg,#edf8f7,#f8fcfe);border:1px solid #d9efed}.status-card h3{font-size:14px}.status-card p{font-size:12px;color:#5f817b;margin-top:5px}
.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:19px}.stat-box{padding:19px 22px;display:flex;justify-content:space-between;align-items:center}.stat-box .stat-number{font-weight:900;font-size:29px;line-height:1.5}.stat-box .stat-desc{color:var(--soft);font-size:12px}.stat-icon{border-radius:15px;background:#e6f5f7;color:#2181a5;width:48px;height:48px;display:grid;place-items:center}.stats-body{display:grid;grid-template-columns:1.2fr 1fr;gap:19px}.progress-item{display:grid;grid-template-columns:130px 1fr 40px;gap:12px;align-items:center;margin-bottom:15px}.progress-track{height:9px;background:#eef4f7;border-radius:30px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#189ab5,#16b7b1);border-radius:30px}.progress-item span{font-size:13px;font-weight:800}.progress-item b{color:#6d8a9a;font-size:13px}.feature-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.feature{padding:16px;border:1px solid #ebf0f4;background:#fbfdfe;border-radius:15px;display:flex;gap:11px;align-items:flex-start}.feature .feature-ic{width:37px;height:37px;border-radius:12px;background:#e9f6f7;display:grid;place-items:center;color:#2482a0;flex:none}.feature strong{display:block;font-size:13px}.feature p{color:#788d99;font-size:11px;margin-top:3px}
.chat-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:17px;min-height:530px}.contacts{padding:16px}.contact{background:transparent;border:0;border-radius:13px;display:flex;align-items:center;gap:10px;text-align:right;width:100%;padding:11px;min-height:64px}.contact:hover,.contact.active{background:#eaf6fb}.contact .avatar{width:38px;height:38px;font-size:15px}.contact strong{display:block;font-size:12px}.contact small{font-size:11px}.chat-window{padding:0;display:flex;flex-direction:column;min-height:530px;overflow:hidden}.chat-top{display:flex;gap:10px;align-items:center;padding:18px 22px;border-bottom:1px solid var(--border)}.chat-scroller{padding:22px;flex:1;display:flex;flex-direction:column;gap:12px;min-height:320px;max-height:480px;overflow:auto;background:linear-gradient(#fff,#fafdff)}.chat-bubble{max-width:min(78%,510px);border-radius:17px 17px 5px 17px;background:#edf5fa;padding:12px 15px;font-size:13px;align-self:flex-end}.chat-bubble.mine{align-self:flex-start;background:#e3f6f2;border-radius:17px 17px 17px 5px}.chat-bubble small{display:block;margin-top:5px;font-size:10px}.chat-form{padding:13px;display:flex;align-items:end;gap:9px;border-top:1px solid var(--border)}.chat-form textarea{min-height:50px;max-height:120px;height:50px;resize:vertical}.chat-form button{height:50px}
.schedule-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.schedule-entry{border:1px solid #e8f0f3;background:#fff;border-radius:15px;padding:15px;display:flex;gap:13px;align-items:center}.schedule-entry .event-emoji{width:53px;height:53px;font-size:25px}.schedule-entry strong{display:block}.schedule-entry small{display:block}.schedule-entry .icon-btn{margin-inline-start:auto}.layout-two{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}.member-card{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid #f0f3f5}.member-card:last-child{border-bottom:none}.member-card strong{display:block;font-size:14px}.member-card small{font-size:12px}.permission-label{margin-inline-start:auto;font-size:11px;background:#f0f6f9;color:#567b8a;border-radius:999px;padding:4px 9px}.invite-code{margin-top:12px;background:#f3fafa;border:1px dashed #acd4dd;border-radius:12px;padding:11px;word-break:break-all;display:flex;gap:10px;align-items:center;justify-content:space-between}.invite-code code{font-size:11px;direction:ltr;text-align:left;overflow-wrap:anywhere}.selectable{user-select:text}.info-list{display:flex;flex-direction:column;gap:15px}.info-list>div{display:flex;align-items:start;gap:10px}.info-list .icon{color:var(--sea)}.info-list p{font-size:13px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.settings-grid .wide{grid-column:1/-1}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--border)}.toggle-row:last-child{border-bottom:none}.toggle-row strong{display:block;font-size:13px}.toggle-row p{font-size:11px;color:var(--soft)}.toggle-row input{appearance:none;flex:none;width:43px;height:25px;background:#c6d1d9;border-radius:999px;position:relative;cursor:pointer;transition:background .2s}.toggle-row input:before{content:"";position:absolute;top:3px;right:3px;width:19px;height:19px;background:#fff;border-radius:50%;transition:transform .2s}.toggle-row input:checked{background:#19a5b3}.toggle-row input:checked:before{transform:translateX(-18px)}.notification-entry{display:flex;gap:13px;align-items:flex-start;border-bottom:1px solid #eef2f4;padding:15px 0}.notification-entry:last-child{border:none}.notification-entry.unread{background:#f7fcfd;border-radius:13px;padding:15px}.notification-entry strong{display:block;font-size:14px}.notification-entry p{font-size:12px;color:#5a7183;margin-top:4px}.notification-entry small{font-size:11px}.no-profiles{max-width:650px;margin:65px auto;text-align:center}.no-profiles img{width:130px;max-width:50%}.no-profiles h1{margin:18px 0 9px}.no-profiles p{color:var(--soft);margin-bottom:24px}.standalone-board{max-width:990px;margin:35px auto;padding:0 18px}.standalone-board .symbol-grid{margin-top:20px}.footnote{margin-top:20px;color:#8395a4;font-size:11px}.mobile-nav{display:none}.welcome-card{background:linear-gradient(140deg,#ebf7f8,#fff);border:1px solid #dcecef;border-radius:16px;padding:15px}.welcome-card .row{align-items:flex-start}.welcome-card p{color:var(--soft);font-size:12px;margin-top:3px}.stamp{display:inline-flex;align-items:center;justify-content:center;background:#eaf8fa;color:#247d99;border-radius:14px;width:48px;height:48px;flex:none}
body.high-contrast{--ink:#0d2030;--soft:#304d60;--bg:#eff5f9;--border:#bfd3df;--blue:#064b74}body.high-contrast .symbol{border:2px solid #426b85}
@media (max-width:1240px){.dashboard-grid{grid-template-columns:minmax(0,1fr) 290px}.hero .hero-stats{display:none}.symbol-grid{gap:9px}.symbol{min-height:105px}.layout-two{grid-template-columns:minmax(0,1fr) 300px}}
@media (max-width:1050px){.shell{grid-template-columns:85px minmax(0,1fr)}.sidebar{padding:20px 12px}.side-brand{justify-content:center;padding:0 0 17px}.side-brand h2,.side-brand small,.nav-label,.nav-item .nav-text,.nav-item .nav-dot,.side-footer .privacy-tag,.account-card div:not(.avatar),.account-card .icon-btn{display:none}.side-brand img{width:51px;height:51px}.nav-item{justify-content:center;padding:12px}.side-footer .account-card{justify-content:center}.main{padding:22px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 280px}}
@media (max-width:800px){.auth-wrap{grid-template-columns:1fr}.auth-preview{display:none}.auth-form-side{min-height:100dvh}.shell{display:block}.sidebar{display:none}.main{padding:20px 17px 100px}.topbar{margin-bottom:19px}.hero{padding:26px 22px;min-height:130px}.hero h1{font-size:26px}.dashboard-grid,.stats-body,.layout-two{grid-template-columns:1fr}.side-stack{display:grid;grid-template-columns:1fr 1fr}.board-card{padding:16px}.symbol{min-height:105px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:200;background:white;border-top:1px solid var(--border);display:flex;justify-content:space-around;padding:7px 5px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -7px 25px #15445b0b}.mobile-nav button{border:0;background:transparent;color:#77909f;min-width:55px;display:flex;align-items:center;flex-direction:column;gap:2px;padding:4px;border-radius:10px;font-size:10px;font-weight:800}.mobile-nav button.active{color:var(--blue);background:#eff8fb}.mobile-nav .icon{width:22px;height:22px}}
@media (max-width:530px){.main{padding:15px 12px 110px}.card{padding:17px}.board-card{padding:14px}.hero{margin-bottom:14px;border-radius:17px}.hero h1{font-size:22px}.hero p{font-size:11px}.section-header{margin-bottom:15px}.top-controls{gap:6px}.profile-switch{max-width:145px}.profile-switch select{max-width:77px}.breadcrumb{font-size:12px}.symbol-grid{grid-template-columns:repeat(min(var(--board-cols,3),3),1fr);gap:8px}.symbol{min-height:92px;border-radius:14px;padding:8px 4px}.symbol .symbol-emoji{font-size:30px}.symbol .symbol-label{font-size:12px}.symbol .second{font-size:9px}.board-tools{margin-top:12px}.search{width:100%}.categories{gap:6px}.chip{padding:6px 10px;font-size:11px;min-height:35px}.side-stack{grid-template-columns:1fr}.chat-layout{grid-template-columns:1fr}.contacts{display:flex;overflow-x:auto;gap:7px}.contact{min-width:144px;flex:none}.chat-window{min-height:420px}.chat-scroller{max-height:400px;min-height:250px}.stats-row{grid-template-columns:1fr 1fr;gap:9px}.stat-box{padding:15px}.stat-box .stat-number{font-size:24px}.stat-icon{width:40px;height:40px}.feature-list,.schedule-list,.settings-grid,.fields2{grid-template-columns:1fr}.auth-form-side{padding:28px 22px}.auth-brand{margin-bottom:29px}.auth-content h1{font-size:25px}.auth-brand img{width:52px;height:52px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

.mobile-compose-bar{display:none}
@media (max-width:800px){.mobile-compose-bar{display:flex;align-items:center;justify-content:space-between;gap:9px;position:fixed;bottom:calc(69px + env(safe-area-inset-bottom));left:10px;right:10px;z-index:180;background:#ffffffee;backdrop-filter:blur(10px);border:1px solid #d8e8ee;border-radius:14px;padding:8px 11px;box-shadow:0 7px 20px rgba(17,71,91,.16)}.mobile-compose-text{min-width:0;flex:1;font-weight:850;color:#276b85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.mobile-compose-bar .btn{flex:none}.main{padding-bottom:175px}}

/* Private AAC card photos; stable card locations and readable labels are preserved. */
.photo-visual{display:inline-flex;width:68px;height:68px;flex-shrink:0;align-items:center;justify-content:center;border-radius:14px;overflow:hidden;background:var(--bg,#f1f6f8)}
.photo-visual img{display:block;width:100%;height:100%;object-fit:contain}
.photo-visual img[hidden],.photo-fallback[hidden]{display:none}
.photo-fallback{font-size:36px}
.photo-small{width:48px;height:48px;border-radius:10px}
.photo-help{margin:10px 0 14px;line-height:1.8}
.photo-library{display:grid;gap:10px;margin-top:18px}
.photo-library-row{display:flex;align-items:center;gap:12px;min-width:0}
.photo-library-row strong{flex:1;overflow-wrap:anywhere}
input[type=file]{width:100%;max-width:100%;font-size:13px}
@media(max-width:480px){.photo-visual:not(.photo-small){width:56px;height:56px}}

/* Build 03: preserve symbol order while scaling targets and keeping phrases readable. */
.message-line{min-height:110px;font-size:20px;border:2px solid #a6d4df}
.word-chip{min-height:44px;font-size:17px}
.now-next{margin-bottom:22px}.routine-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
.routine-tile{min-width:0;border:2px solid var(--border);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:12px;text-align:center}
.routine-tile:first-child{border-color:var(--blue)}.routine-tile label{font-size:22px;font-weight:bold}.routine-picture{font-size:46px}.routine-tile select{max-width:100%;width:100%}
body[data-card-size="large"] .symbol{min-height:145px}body[data-card-size="extra"] .symbol{min-height:180px}
body[data-card-size="large"] .symbol-label{font-size:19px}body[data-card-size="extra"] .symbol-label{font-size:23px}
body[data-card-size="large"] .symbol-emoji{font-size:44px}body[data-card-size="extra"] .symbol-emoji{font-size:54px}
@media(max-width:800px){.mobile-compose-bar{flex-wrap:wrap;padding:12px}.mobile-compose-text{flex-basis:100%;white-space:normal;overflow:auto;max-height:100px;font-size:20px;line-height:1.5;overflow-wrap:anywhere}.mobile-compose-bar .btn{flex:1;min-height:44px}.main{padding-bottom:265px}.hero{min-height:0;padding:16px}.hero p{font-size:13px}}
@media(max-width:530px){body[data-card-size="large"] .symbol-grid,body[data-card-size="extra"] .symbol-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.routine-pair{gap:8px}.routine-tile{padding:10px}.routine-tile strong{overflow-wrap:anywhere}}

.admin-brand img{width:64px;height:64px;object-fit:contain}

/* Public illustration sheet, displayed through fixed viewports; no personal photos. */
.qatari-character{display:inline-block;flex-shrink:0;width:100%;aspect-ratio:480/460;background-image:url('/static/qatari-characters.png');background-size:238.541667% 298.695652%;background-repeat:no-repeat;border-radius:14px;background-color:#faf8f1}
.character-woman{background-position:8.270677% 14.223195%}
.character-man{background-position:90.977444% 14.223195%}
.character-girl{background-position:8.270677% 83.150985%}
.character-boy{background-position:90.977444% 83.150985%}
.character-settings{border:1px solid var(--line,#dce8e5);border-radius:16px;padding:14px;min-width:0}
.character-settings legend{font-weight:700;padding:0 8px}
.character-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px;margin:14px 0}
.character-choice{display:flex;flex-direction:column;align-items:center;gap:8px;border:2px solid #dce8e5;border-radius:14px;padding:8px;cursor:pointer;text-align:center;font-size:12px}
.character-choice:has(input:checked){border-color:#087f85;background:#e4f5f1}
.character-choice:focus-within{outline:3px solid #147dab;outline-offset:2px}
.character-choice input{width:18px;height:18px;accent-color:#087f85}
.character-default{display:grid;place-items:center;width:100%;aspect-ratio:480/460;font-size:40px}
.profile-symbol .qatari-character{width:42px;vertical-align:middle}
.symbol .character-water{width:82px;max-width:100%;}
body[data-card-size="large"] .symbol .character-water{width:100px}
body[data-card-size="extra"] .symbol .character-water{width:115px}

.language-control{display:inline-flex;gap:4px;border:1px solid #b8d8d9;border-radius:12px;padding:3px;background:white;flex-shrink:0;direction:ltr}
.language-control button{border:0;border-radius:9px;background:transparent;color:#24556a;padding:7px 10px;font-size:12px;font-weight:700}
.language-control button[aria-pressed="true"]{background:#087f85;color:white}
.board-personalize{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0;color:#526b79;font-size:13px}
.character-tip{background:#e4f5f1;padding:12px;border-radius:10px;font-weight:700;margin:12px 0}
#character-settings{scroll-margin-top:20px}
.action-picture{display:block;width:108px;max-width:100%;aspect-ratio:1;background-size:600% 700%;background-repeat:no-repeat;background-color:white;border-radius:12px;flex-shrink:0}
.atlas-man{background-image:url('/static/actions-man.png')}.atlas-woman{background-image:url('/static/actions-woman.png')}.atlas-boy{background-image:url('/static/actions-boy.png')}.atlas-girl{background-image:url('/static/actions-girl.png')}
body[data-card-size="large"] .action-picture{width:125px}body[data-card-size="extra"] .action-picture{width:145px}
[dir="ltr"] .sidebar{left:0;right:auto;border-left:0;border-right:1px solid var(--line)}
[dir="ltr"] .main{margin:0}
[dir="ltr"] .symbol,[dir="ltr"] .contact,[dir="ltr"] .nav-item{text-align:left}
[dir="ltr"] .chat-bubble{text-align:left}
@media(max-width:1000px){[dir="ltr"] .main{margin-left:0}.top-controls{flex-wrap:wrap}.language-control button{padding:6px 8px}}

.character-choice .action-picture{width:100%}.profile-symbol .action-picture{width:42px;display:inline-block;vertical-align:middle}

.word-chip .action-picture,.suggestion-pill .action-picture{width:30px;display:inline-block;vertical-align:middle}
/* Trim atlas gutters to avoid adjacent-cell edges at small sizes. */
.action-picture{clip-path:inset(0 6% 0 6%)}

.quick-phrases{margin:16px 0}.quick-phrases .suggestion-row{flex-wrap:wrap;gap:10px}.quick-phrases .btn{min-height:48px;white-space:normal}

.qatar-entry,.qatar-breadcrumb,.qatar-steps{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.qatar-entry{margin:18px 0}.qatar-page{display:grid;gap:18px}.qatar-core{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.qatar-core .symbol{min-height:100px}.qatar-core .symbol-emoji{font-size:32px}.qatar-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.qatar-link{display:grid;gap:14px;text-align:center;cursor:pointer;color:var(--text);font:inherit;min-height:150px}.qatar-link>span{font-size:48px}.qatar-grid{margin:6px 0}.qatar-composer .row{flex-wrap:wrap}.qatar-composer{position:sticky;bottom:12px;z-index:3;box-shadow:0 4px 20px #20374620}.qatar-composer .message-line{max-height:130px;overflow:auto}.qatar-link:focus-visible{outline:3px solid #167985;outline-offset:3px}@media(max-width:800px){.qatar-composer{bottom:80px}.qatar-links{grid-template-columns:1fr}.qatar-core .symbol{padding:8px 4px}.qatar-core .symbol-label{font-size:15px}.qatar-core .second{display:none}}

.qatar-composer{padding:12px 16px}.qatar-composer h2{font-size:17px;margin:0}.qatar-composer .message-line{min-height:44px;max-height:78px;margin:8px 0;padding:8px}.qatar-composer .btn{min-height:42px}.qatar-page{padding-bottom:16px}

.national-picture{display:block;width:180px;max-width:100%;aspect-ratio:1;background-image:url('/static/national-day-realistic.png');background-size:400% 300%;background-repeat:no-repeat;border-radius:14px;align-self:center}.national-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px}.national-grid .symbol{min-height:250px;padding:16px 10px;gap:10px}.national-grid .symbol-label{font-size:23px;line-height:1.45;white-space:normal}.national-grid .second{font-size:14px;white-space:normal}@media(max-width:800px){.national-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}.national-grid .symbol{min-height:230px}.national-picture{width:170px}.national-grid .symbol-label{font-size:21px}}@media(max-width:360px){.national-picture{width:130px}.national-grid .symbol{padding:10px 6px;min-height:205px}.national-grid .symbol-label{font-size:19px}}

.qatar-scene{position:relative;display:block;width:190px;max-width:100%;height:180px;margin:auto;isolation:isolate;background:#f3f9f8;border-radius:18px;overflow:hidden}.qatar-context{position:absolute;left:2%;top:2%;width:58%;height:66%}.qatar-scene .action-picture,body[data-card-size] .qatar-scene .action-picture{position:absolute;right:-2%;bottom:0;width:70%;max-width:none;mix-blend-mode:multiply}.qatar-link .qatar-scene{font-size:initial}.qatar-core .action-picture{width:70px!important}@media(max-width:400px){.qatar-scene{height:145px}.qatar-core .action-picture{width:52px!important}}

.sewing-page{display:grid;gap:16px;max-width:900px;margin:auto}.sewing-page .row{flex-wrap:wrap;gap:10px}.sewing-frame,.sewing-video{display:block;width:100%;height:auto;border-radius:16px;background:#f4faf9}.sewing-instruction{font-size:22px;line-height:1.8}.sewing-support{position:sticky;bottom:80px;z-index:4;box-shadow:0 3px 18px #20374620}.sewing-page button{min-height:48px}.sewing-page{padding-bottom:24px}

.sewing-photo{position:relative;width:100%;max-width:650px;aspect-ratio:490/305;overflow:hidden;border-radius:16px;margin:auto}.sewing-photo img{position:absolute;width:208.98%;max-width:none;height:auto}

.sewing-support{position:static}.sewing-page .card{scroll-margin-top:16px}

.sewing-audio{background:#edf6f5;border-radius:14px;padding:14px;margin:12px 0}.sewing-audio select{display:block;width:100%;margin:8px 0;min-height:48px}

.learning-page{display:grid;gap:18px;max-width:950px;margin:auto;padding-bottom:40px}.learning-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.learning-tile{display:grid;justify-items:center;gap:12px;cursor:pointer;font:inherit;color:inherit;min-height:200px}.learning-page .row{flex-wrap:wrap;gap:10px}.learning-page h3{font-size:24px;line-height:1.6}.learning-page audio,.learning-page video,.learning-image{width:100%;max-height:450px;object-fit:contain}.learning-illustration{display:flex;justify-content:center;align-items:center;gap:24px;padding:20px}.learning-illustration>span:last-child{font-size:80px}.learning-page summary{cursor:pointer;font-weight:700;padding:12px}.learning-page label{display:grid;gap:8px}.learning-page button{min-height:48px}.learning-page .column{gap:14px}.learning-page textarea{width:100%}@media(max-width:400px){.learning-grid{gap:8px}.learning-tile{padding:12px;font-size:16px}}

.learning-step-picture{width:min(100%,450px);aspect-ratio:1;margin:0 auto 16px;background-repeat:no-repeat;border-radius:16px;background-color:#f7f5ee}
/* Learning plan: readable controls, no timed or scored tasks. */
.plan-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0;border-inline-start:5px solid #168384;background:#f0faf7}
.plan-entry h2{margin:4px 0;font-size:23px}.plan-entry p{margin:4px 0}
.study-plan{max-width:920px;margin:auto}.study-plan .card{margin-block:18px;padding:24px}
.plan-disclosure{padding:16px 20px;border-radius:14px;background:#edf6f5;line-height:1.8}
.plan-question{margin:22px 0;padding:0;border:0;min-width:0}
.plan-question legend{font-weight:700;font-size:17px;margin-bottom:10px;line-height:1.7}
.plan-question select,.plan-observation select,.study-plan input[type=text],.study-plan textarea{width:100%;max-width:100%;min-height:48px;font:inherit;border:1px solid #a5b8bc;border-radius:10px;padding:10px;background:var(--surface,#fff);color:inherit;box-sizing:border-box}
.plan-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.plan-options label{display:flex;align-items:center;gap:10px;border:1px solid #bacdce;border-radius:12px;padding:12px;min-height:48px;cursor:pointer;line-height:1.6}
.plan-options input{width:22px;height:22px;flex:none;accent-color:#137674}.plan-options label:has(input:checked){background:#e4f4f0;border-color:#137674}
.plan-editable{border:0;padding:0;margin:0;min-width:0}.plan-editable:disabled{opacity:.65}
.plan-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.plan-actions .btn{min-height:48px}
.plan-observation{border:0;border-top:1px solid #cbd9db;padding:20px 0 0;margin-top:18px;min-width:0;display:grid;gap:14px}
.plan-observation label{display:grid;gap:7px}.plan-observation legend{font-weight:600;padding:4px}
.plan-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.plan-choice{display:flex;flex-direction:column;align-items:center;gap:12px;min-height:125px;padding:18px 8px;border:2px solid #b7d2cf;border-radius:18px;background:#fff;color:#123f42;font:inherit;cursor:pointer}
.plan-choice span{font-size:42px}.plan-choice[aria-pressed=true]{border-color:#116f6a;background:#dcf4ec;box-shadow:inset 0 0 0 2px #116f6a}
.study-plan :is(button,input,select,textarea):focus-visible{outline:3px solid #126f91;outline-offset:3px}
.study-plan p,.study-plan li{line-height:1.85;overflow-wrap:anywhere}.plan-program li{margin-block:18px}.study-plan .field{margin-block:16px}
.high-contrast .plan-entry,.high-contrast .plan-disclosure,.high-contrast .plan-options label:has(input:checked){background:#133e42;color:#fff}.high-contrast .study-plan .plan-choice{background:#123439;color:#fff}.high-contrast .study-plan .plan-choice[aria-pressed=true]{border-color:#fff}
@media(max-width:600px){.plan-entry{align-items:stretch;flex-direction:column}.study-plan .card{padding:17px}.plan-options{grid-template-columns:1fr}.plan-choice-grid{gap:7px}.plan-choice{min-height:110px;padding:12px 5px;font-size:14px}.plan-choice span{font-size:32px}.plan-actions .btn{flex:1 1 auto}.study-plan .section-header{flex-wrap:wrap}.plan-disclosure{padding:13px}}

.malfa-voice-controls{position:fixed;inset-inline:12px;bottom:90px;z-index:1000;max-width:640px;margin-inline:auto;background:var(--card,#fff);color:var(--text,#173642);border:2px solid #176b9c;border-radius:16px;padding:12px;box-shadow:0 8px 30px #0003;display:flex;gap:8px;flex-wrap:wrap}.malfa-voice-controls p{flex-basis:100%;margin:0 0 4px}.malfa-voice-controls [hidden]{display:none}

/* Shared navigation and grouped settings. Core AAC card order stays unchanged. */
#main-content:focus{outline:none}
#toast:empty{display:none}
.main,.page-content,.layout-two>*{min-width:0}
.has-composer .hero{min-height:0;padding:18px 22px;margin-bottom:14px}
.has-composer .hero h1{font-size:clamp(22px,2vw,28px)}
.board-shortcuts{margin:0 0 12px;border:1px solid var(--border);border-radius:14px;background:var(--paper)}
.board-shortcuts summary{padding:10px 16px;cursor:pointer;min-height:44px;font-weight:700;color:var(--blue)}
.board-hub-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px;align-items:start}
.board-hub-links>details{margin:0;padding:0;border-radius:14px;box-shadow:none}
.board-hub-links>details>summary{padding:12px 14px;min-height:64px;font-size:14px}
.board-hub-links>details[open]{grid-column:1/-1}
.board-hub-links .quick-phrases>p,.board-hub-links .suggestion-row{margin-inline:14px;margin-bottom:12px}
.shortcut-actions,.learning-extras{display:flex;flex-wrap:wrap;gap:9px;padding:12px}
.quick-phrases{padding:14px 18px;margin-bottom:16px}
.quick-phrases summary{cursor:pointer;min-height:44px}.quick-phrases summary strong{font-size:16px}.quick-phrases summary span{display:block;font-size:12px;color:var(--soft);margin-inline-start:18px}.quick-phrases[open]>p{margin-top:10px}.quick-phrases .suggestion-row{margin-top:9px;gap:8px}
.quick-phrases .btn{min-height:44px;padding:7px 12px}
.chip,.icon-btn{min-height:44px}.icon-btn{min-width:44px}
.learning-list-title{margin:18px 0 12px}.learning-extras{padding-inline:0}
.more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.more-tile{display:flex;align-items:center;gap:14px;text-align:start;color:var(--ink);font:inherit;min-height:90px;cursor:pointer;overflow-wrap:anywhere}
.more-tile .icon{color:var(--blue);width:28px;height:28px;flex:none}
.more-tile:hover{border-color:var(--blue)}
.more-footer{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin-block:24px}
.more-footer a{text-decoration:underline}
.settings-editable{border:0;padding:0;margin:0;min-width:0}
.settings-section{border:1px solid var(--border);border-radius:14px;margin-block:12px;background:var(--paper);min-width:0}
.settings-section summary{cursor:pointer;min-height:60px;padding:14px 16px;line-height:1.6}
.settings-section summary strong{font-size:16px}.settings-section summary span{display:block;color:var(--soft);font-size:12px;margin-inline-start:18px}
.settings-section[open]>summary{border-bottom:1px solid var(--border);margin-bottom:14px}
.settings-section>.settings-grid,.settings-section-body{padding:0 16px 16px}
.settings-section.card{padding:0;margin:0}
.settings-section-body>.card{padding:0;border:0;box-shadow:none;background:transparent}
.settings-section-body>.card>h3{display:none}
.settings-section .character-settings{min-width:0}
.settings-section .settings-grid{gap:16px}
.settings-save{position:sticky;bottom:16px;z-index:30;background:var(--paper);border-top:1px solid var(--border);padding:14px 0 0;margin-top:14px;flex-wrap:wrap}
.settings-save>.btn{width:100%;min-height:48px}
.settings-section button,.more-footer .btn{min-height:44px}
.settings-section summary:focus-visible,.board-shortcuts summary:focus-visible,.more-tile:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.loading-panel{padding:40px;text-align:center}
.high-contrast .more-tile,.high-contrast .settings-section,.high-contrast .settings-save,.high-contrast .board-shortcuts{background:var(--paper);color:var(--ink)}
@media(max-width:800px){
  .main{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
  .main.has-composer{padding-bottom:calc(250px + env(safe-area-inset-bottom))}
  .has-composer .hero>div:first-child>span:first-child{display:none!important}
  .mobile-compose-bar.is-empty{flex-wrap:nowrap;padding:8px}
  .mobile-compose-bar.is-empty .mobile-compose-text{flex-basis:auto;font-size:13px;max-height:42px}
  .mobile-compose-bar.is-empty .btn{flex:0 0 auto}
  .settings-save{bottom:calc(76px + env(safe-area-inset-bottom))}
  .topbar{flex-wrap:wrap;gap:10px;align-items:flex-start;margin-bottom:16px}
  .top-controls{flex-wrap:wrap;min-width:0;max-width:100%}
  .topbar .breadcrumb{font-size:12px}
  .mobile-nav button{flex:1;min-width:0;min-height:52px;font-size:11px}
  .mobile-nav button[aria-current=page]{color:var(--blue);background:#eff8fb}
  #toast.visible{bottom:calc(82px + env(safe-area-inset-bottom));inset-inline:12px;margin-inline:auto;max-width:560px}
}
@media(max-width:530px){
  .has-composer .hero{padding:13px 16px}.has-composer .hero h1{font-size:22px}
  .hero .hero-stats{display:none}.hero p{font-size:12px}
  .quick-phrases{padding:12px}.quick-phrases .suggestion-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .quick-phrases .btn{font-size:13px;padding:7px 5px}
  .more-grid{gap:10px}.more-tile{flex-direction:column;align-items:flex-start;padding:16px;gap:8px;font-size:14px}
  .settings-section>.settings-grid,.settings-section-body{padding-inline:12px}
  .settings-section summary{padding-inline:12px}.settings-save{bottom:calc(76px + env(safe-area-inset-bottom))}
}
/* Explicitly requested, finite motion previews; the AAC board stays still. */
.symbol-cell{display:flex;flex-direction:column;min-width:0}.symbol-cell>.symbol{width:100%;flex:1}
.motion-card-button{min-height:44px;background:#edf7fa;border:1px solid #cbe9ed;border-radius:0 0 12px 12px;color:#176a8c;font-size:12px;font-weight:750;padding:5px 7px;margin-top:3px}.motion-card-button:focus-visible{outline:3px solid #f0aa3c;outline-offset:2px}
.motion-modal-open{overflow:hidden}.motion-dialog{color:var(--ink);background:white;border:1px solid #d2e5e9;border-radius:24px;padding:24px;width:min(550px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;box-shadow:0 18px 70px #183c4540;position:fixed;inset:0;margin:auto;z-index:2500}.motion-dialog::backdrop{background:#15333e80}.motion-dialog:not([open]){display:none}.motion-dialog h2{margin:8px 0 14px;font-size:25px}.motion-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.motion-kind-list,.motion-controls,.motion-steps{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.motion-kind-list .btn{flex:1;padding:8px;min-height:44px;font-size:12px}.motion-kind-list [aria-pressed=true],.motion-steps [aria-current=step]{background:var(--blue);color:white;border-color:var(--blue)}.motion-stage{max-width:360px;margin:12px auto}.motion-scene{display:block;width:100%;height:auto;max-height:32dvh}.motion-dialog p{margin:9px 0}.motion-controls .btn{flex:1;min-height:44px;padding:10px}.motion-steps .btn{flex:1;min-width:40px;padding:6px}.motion-dialog [data-action=motion-toggle]{margin:8px 0;min-height:44px}.motion-scene *{animation:none}.motion-scene.is-playing .motion-frames{animation-duration:4.2s;animation-timing-function:step-end;animation-iteration-count:1}.motion-water.is-playing .motion-frames{animation-name:malfa-drink-frames}.motion-help.is-playing .motion-frames{animation-name:malfa-help-frames}.motion-scene.is-paused *{animation-play-state:paused!important}
/* Discrete artwork poses: cup/hand movement, never a whole-picture zoom. */
.motion-frames{display:block;width:100%;height:100%;background-size:300% 400%;background-repeat:no-repeat;background-position:0 0}
.motion-help .motion-frames{background-position:0 66.6666667%}
.motion-atlas-man{background-image:url('/static/motion-man-v1.png')}
.motion-atlas-woman{background-image:url('/static/motion-woman-v1.png')}
.motion-atlas-boy{background-image:url('/static/motion-boy-v1.png')}
.motion-atlas-girl{background-image:url('/static/motion-girl-v1.png')}
.motion-controls[hidden]{display:none}
@keyframes malfa-drink-frames{
 0%,100%{background-position:0 0}
 12%{background-position:50% 0}
 24%{background-position:100% 0}
 36%{background-position:0 33.3333333%}
 48%{background-position:50% 33.3333333%}
 64%{background-position:0 33.3333333%}
 74%{background-position:100% 0}
 84%{background-position:50% 0}
 92%{background-position:100% 33.3333333%}
}
@keyframes malfa-help-frames{
 0%,100%{background-position:0 66.6666667%}
 12%{background-position:50% 66.6666667%}
 24%{background-position:100% 66.6666667%}
 36%{background-position:0 100%}
 48%{background-position:50% 100%}
 64%{background-position:0 100%}
 74%{background-position:100% 66.6666667%}
 84%{background-position:50% 66.6666667%}
 92%{background-position:100% 100%}
}
.motion-original{background:white;border:1px solid var(--border);border-radius:20px;overflow:hidden;aspect-ratio:1;max-height:none;max-width:min(360px,38dvh);margin:auto}.motion-original-art{width:100%;height:100%;display:grid;place-items:center;transform-origin:center}.motion-original .action-picture,body[data-card-size] .motion-original .action-picture{width:100%;max-width:none;height:100%;border-radius:0;clip-path:inset(1% 6%);flex-shrink:1}.motion-original .learning-step-picture{width:100%;max-width:none;height:auto;margin:0;border:0;border-radius:0}.motion-hands{aspect-ratio:auto}.motion-hands .motion-original-art{height:auto}.motion-original-emoji{font-size:110px}
@media(prefers-reduced-motion:reduce){.motion-scene.is-playing *{animation:none!important}}
@media(max-width:400px){.motion-dialog{padding:16px}.motion-dialog h2{font-size:22px}.motion-controls .btn{font-size:13px;padding:8px}.motion-kind-list{gap:5px}}


.motion-dialog-header{position:sticky;top:-24px;background:white;z-index:2;padding:8px;margin:-8px -8px 0}.motion-dialog .motion-steps .btn[aria-current=step],.motion-dialog .motion-kind-list .btn[aria-pressed=true]{background:var(--blue);color:white}@media(max-width:400px){.motion-dialog-header{top:-16px}}

.motion-water,.motion-help{aspect-ratio:4640/4065}
