
#typegrid{--tg-bg:light-dark(#f3f6fc,#131c2c);--tg-paper:light-dark(#ffffff,#1b273a);--tg-ink:light-dark(#162742,#e7efff);--tg-muted:light-dark(#63748d,#a9bad2);--tg-line:light-dark(#e3eaf4,#314157);--tg-soft:light-dark(#eaf2ff,#243d60);--tg-blue:#1265e9;color:var(--tg-ink);font:14px 'Segoe UI',Arial,sans-serif;color-scheme:light dark}
#typegrid *{box-sizing:border-box}#typegrid button,#typegrid input,#typegrid textarea,#typegrid select{font:inherit}#typegrid button{cursor:pointer;color:inherit}#typegrid .previewbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0 18px}#typegrid .switch{display:flex;background:var(--tg-bg);border:1px solid var(--tg-line);padding:4px;border-radius:12px;gap:4px}#typegrid button{border:0;background:transparent;padding:10px 13px;border-radius:8px}#typegrid button.active{background:var(--tg-paper);color:var(--tg-blue);box-shadow:0 2px 6px #00000010}#typegrid .screenpick{background:var(--tg-paper);color:var(--tg-ink);border:1px solid var(--tg-line);border-radius:9px;padding:10px}#typegrid .window{background:var(--tg-paper);border:1px solid var(--tg-line);border-radius:14px;overflow:hidden;min-height:590px}#typegrid .titlebar{display:flex;align-items:center;gap:10px;padding:12px 16px;background:var(--tg-bg);border-bottom:1px solid var(--tg-line)}#typegrid .logo{width:30px;height:30px;object-fit:contain}#typegrid .brand{font-weight:600}#typegrid .subtitle{font-size:12px;color:var(--tg-muted)}#typegrid .spacer{flex:1}#typegrid .caption{font-size:12px;color:var(--tg-muted)}#typegrid .layout{display:grid;grid-template-columns:175px 260px minmax(0,1fr);min-height:535px}#typegrid .sidebar{background:var(--tg-bg);padding:20px 12px;border-right:1px solid var(--tg-line);display:flex;flex-direction:column;gap:5px}#typegrid .sidebar button{text-align:left;display:flex;align-items:center;gap:10px}#typegrid .sidebar .selected{background:var(--tg-soft);color:var(--tg-blue)}#typegrid .primary{background:var(--tg-blue);color:#fff}#typegrid .sidebar .primary{margin-bottom:18px}#typegrid .sectionlabel{font-size:11px;letter-spacing:1.5px;color:var(--tg-muted);padding:20px 12px 8px}#typegrid .library{padding:22px 15px;border-right:1px solid var(--tg-line)}#typegrid h2{font-size:20px;margin:0 0 18px;font-weight:600}#typegrid .search{width:100%;padding:10px 12px;background:var(--tg-bg);border:1px solid var(--tg-line);border-radius:8px;color:var(--tg-ink);margin-bottom:18px}#typegrid .notecard{display:block;width:100%;text-align:left;margin-bottom:7px;padding:15px 12px;border:1px solid transparent}#typegrid .notecard.selected{background:var(--tg-soft);border-color:light-dark(#c3d9ff,#3c5b87)}#typegrid .notecard strong{display:block;font-weight:600;margin-bottom:7px}#typegrid .notecard p{color:var(--tg-muted);font-size:12px;margin:0 0 14px;line-height:1.6}#typegrid .meta{display:flex;justify-content:space-between;font-size:11px;color:var(--tg-muted)}#typegrid .editor{min-width:0;padding:22px 28px}#typegrid .editorhead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:24px}#typegrid .saved{color:light-dark(#26805c,#6bd5a5);font-size:12px}#typegrid .toolbar{display:flex;gap:3px;flex-wrap:wrap;border-bottom:1px solid var(--tg-line);padding-bottom:12px;margin-bottom:24px}#typegrid .toolbar button{padding:7px 9px;background:var(--tg-bg)}#typegrid .note-title{font-size:28px;font-weight:600;width:100%;border:0;background:transparent;color:var(--tg-ink);padding:0;margin:0 0 12px}#typegrid .tags{font-size:12px;color:var(--tg-blue);margin-bottom:23px}#typegrid textarea{width:100%;min-height:300px;border:0;resize:vertical;background:transparent;color:var(--tg-ink);line-height:1.9;outline-offset:5px}#typegrid .footer{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--tg-line);padding-top:15px;color:var(--tg-muted);font-size:11px}#typegrid .full{grid-column:2/4;padding:35px;min-width:0}#typegrid .welcome{text-align:center;max-width:470px;margin:25px auto}#typegrid .welcome img{width:95px;height:95px;object-fit:contain}#typegrid h1{font-size:32px;font-weight:600;margin:20px 0 12px}#typegrid .welcome p{color:var(--tg-muted);line-height:1.8}#typegrid .feature{padding:17px 0;border-bottom:1px solid var(--tg-line);display:flex;justify-content:space-between;gap:12px}#typegrid .feature small{display:block;color:var(--tg-muted);margin-top:6px}#typegrid .phone{max-width:390px;margin:auto;border:7px solid light-dark(#1e293b,#40516b);border-radius:32px;min-height:650px}#typegrid .phone .titlebar{padding-top:20px}#typegrid .phone .layout{display:block;min-height:550px}#typegrid .phone .sidebar{display:none}#typegrid .phone .library{border:0;padding:24px 18px}#typegrid .phone .editor{padding:22px 20px}#typegrid .phone .full{padding:24px 20px}#typegrid .phone .note-title{font-size:25px}#typegrid .phone .notecard{background:var(--tg-bg);margin-bottom:12px;padding:19px 16px}#typegrid .mobilebar{display:none}#typegrid .phone .mobilebar{display:flex;border-top:1px solid var(--tg-line);justify-content:space-around;padding:8px;background:var(--tg-bg)}#typegrid .mobilebar button{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px}#typegrid .mobilebar svg{width:20px;height:20px}#typegrid .titlebar svg,#typegrid .sidebar svg{width:17px;height:17px}#typegrid .banner{background:var(--tg-soft);border-radius:12px;padding:18px;line-height:1.6;margin:16px 0}#typegrid .empty{color:var(--tg-muted);padding:30px 0}#typegrid .toast{padding:10px;color:var(--tg-blue);font-size:12px;min-height:35px;text-align:center}@media(max-width:760px){#typegrid .layout{grid-template-columns:145px minmax(0,1fr)}#typegrid .editor{grid-column:2}#typegrid .library{grid-column:2}#typegrid .sidebar{grid-row:1/3}#typegrid .full{grid-column:2}#typegrid .caption{display:none}}@media(max-width:460px){#typegrid .layout{display:block}#typegrid .sidebar{flex-direction:row;flex-wrap:wrap;border:0;padding:10px}#typegrid .sidebar .sectionlabel,#typegrid .sidebar .spacer{display:none}#typegrid .sidebar .primary{margin:0}#typegrid .sidebar button{padding:8px}#typegrid .editor{padding:22px 18px}#typegrid .full{padding:22px 18px}}
#typegrid{--tg-bg:light-dark(#eeedf0,#252529);--tg-paper:light-dark(#fffefd,#1d1d20);--tg-ink:light-dark(#242329,#f1f0f3);--tg-muted:light-dark(#77767e,#aaa9b2);--tg-line:light-dark(#dedde2,#3a393f);--tg-soft:light-dark(#e2edff,#273b58);--tg-blue:#087cff;font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','Segoe UI',sans-serif;letter-spacing:-.15px}
#typegrid .window{border-radius:16px;box-shadow:0 16px 45px light-dark(#25233918,#00000035);border-color:light-dark(#c9c7cf,#45434b)}
#typegrid .titlebar{position:relative;height:62px;padding:12px 20px;background:linear-gradient(180deg,light-dark(#f7f6f8,#323136),light-dark(#ecebf0,#29282d));gap:9px}
#typegrid .titlebar:before{content:'';width:12px;height:12px;border-radius:50%;background:#ff5f57;box-shadow:20px 0 #febc2e,40px 0 #28c840;flex-shrink:0;margin-right:55px}
#typegrid .titlebar>.caption{display:none}#typegrid .titlebar .logo{width:25px;height:25px}#typegrid .titlebar .subtitle{display:none}#typegrid .titlebar .brand{font-size:14px;font-weight:600;color:var(--tg-muted)}
#typegrid .layout{grid-template-columns:180px 265px minmax(0,1fr);min-height:575px}
#typegrid .sidebar{background:linear-gradient(145deg,light-dark(#eeedf3,#2b2a31),light-dark(#e4e6ef,#242733));padding:23px 12px;gap:4px}
#typegrid .sidebar button{border-radius:7px;padding:9px 12px;font-size:13px}#typegrid .sidebar .selected{background:light-dark(#d1d5e2,#424653);color:var(--tg-ink)}
#typegrid .sidebar .primary{background:var(--tg-paper);color:var(--tg-blue);box-shadow:0 1px 3px #00000015;margin-bottom:22px;border:1px solid var(--tg-line)}
#typegrid .sectionlabel{letter-spacing:0;font-weight:600;font-size:11px;padding-top:23px}#typegrid .library{background:light-dark(#faf9fb,#222226);padding:22px 13px}#typegrid .library h2{font-size:20px;padding:0 7px}
#typegrid .search{background:light-dark(#eae9ee,#333238);border:0;box-shadow:inset 0 1px 2px #00000008;border-radius:8px;padding:9px 12px}
#typegrid .notecard{border-radius:9px;padding:16px 13px;border:0;margin-bottom:3px}#typegrid .notecard.selected{background:var(--tg-blue);color:#fff;box-shadow:0 3px 9px #087cff20}#typegrid .notecard.selected p,#typegrid .notecard.selected .meta{color:#e5efff}#typegrid .notecard strong{font-size:13px}#typegrid .notecard p{line-height:1.65}#typegrid .editor{padding:20px 30px;background:var(--tg-paper)}#typegrid .editorhead{margin-bottom:14px}#typegrid .editorhead button{font-size:12px;padding:7px 9px;color:var(--tg-muted)}#typegrid .toolbar{gap:8px;padding-bottom:16px;margin-bottom:30px}#typegrid .toolbar button{background:transparent;color:var(--tg-muted);border:1px solid var(--tg-line);box-shadow:0 1px 2px #00000007;border-radius:6px;padding:6px 10px;font-size:12px}#typegrid .note-title{font-size:27px;letter-spacing:-.8px;margin-bottom:16px}#typegrid .tags{color:var(--tg-muted);font-size:11px;margin-bottom:26px}#typegrid textarea{font-size:14px;line-height:1.95;min-height:320px}#typegrid .footer{border:0;padding-top:20px}#typegrid .saved{font-size:11px}#typegrid .banner{border:1px solid var(--tg-line);background:var(--tg-bg)}#typegrid .phone{border:6px solid light-dark(#35343a,#58575e);border-radius:35px;box-shadow:0 18px 45px #00000020}#typegrid .phone .titlebar{height:80px;background:var(--tg-paper);border-bottom:0;padding:25px 21px 12px}#typegrid .phone .titlebar:before{display:none}#typegrid .phone .titlebar .brand{font-size:19px;color:var(--tg-ink)}#typegrid .phone .library{background:var(--tg-paper)}#typegrid .phone .notecard{background:var(--tg-bg);border-radius:14px}#typegrid .phone .notecard.selected{color:var(--tg-ink);background:var(--tg-soft)}#typegrid .phone .notecard.selected p,#typegrid .phone .notecard.selected .meta{color:var(--tg-muted)}#typegrid .phone .mobilebar{background:var(--tg-paper);padding-bottom:17px}#typegrid .phone .mobilebar button{color:var(--tg-blue)}#typegrid .phone .toolbar{gap:5px}#typegrid .phone .editor{padding:20px}#typegrid .phone .primary{border-radius:20px}
@media(max-width:760px){#typegrid .layout{grid-template-columns:145px minmax(0,1fr)}}@media(max-width:460px){#typegrid .layout{display:block}#typegrid .titlebar:before{margin-right:45px}#typegrid .sidebar{padding:10px}#typegrid .sidebar .primary{margin-bottom:0}#typegrid .editor{padding:22px 18px}}

#typegrid .titlebar:before{display:none}
#typegrid .titlebar{padding-right:0}
#typegrid .win-controls{display:flex;align-self:stretch;margin:-12px 0;align-items:stretch}
#typegrid .win-controls button{width:46px;border-radius:0;padding:0;display:grid;place-items:center;color:var(--tg-ink)}
#typegrid .win-controls button:hover{background:light-dark(#0000000c,#ffffff14)}
#typegrid .win-controls .win-close:hover{background:#c42b1c;color:#fff}
#typegrid .win-controls span{display:block;position:relative;width:10px;height:10px}
#typegrid .win-min span:after{content:'';position:absolute;left:0;top:5px;width:10px;height:1px;background:currentColor}
#typegrid .win-max span{border:1px solid currentColor}
#typegrid .win-close span:before,#typegrid .win-close span:after{content:'';position:absolute;left:4px;top:-1px;width:1px;height:13px;background:currentColor;transform:rotate(45deg)}
#typegrid .win-close span:after{transform:rotate(-45deg)}
#typegrid .phone .win-controls{display:none}

#typegrid .layout{grid-template-columns:64px 265px minmax(0,1fr);transition:grid-template-columns .15s ease}
#typegrid .layout:has(.sidebar:hover),#typegrid .layout:has(.sidebar:focus-within){grid-template-columns:240px 265px minmax(0,1fr)}
#typegrid .sidebar{background:light-dark(#f5f5f5,#222224);padding:20px 12px 14px;overflow:hidden;gap:4px;border-right:1px solid var(--tg-line)}
#typegrid .sidebar button{display:flex;align-items:center;gap:12px;min-height:40px;padding:10px 8px;width:100%;white-space:nowrap;background:transparent;box-shadow:none;border:0;color:var(--tg-ink);font-size:13px;border-radius:7px}
#typegrid .sidebar button:hover{background:light-dark(#e9e9e9,#303033)}#typegrid .sidebar button.selected{background:light-dark(#e8e8e8,#333336);color:var(--tg-ink)}
#typegrid .sidebar svg,#typegrid .sidebar i{width:20px;height:20px;flex-shrink:0;color:var(--tg-muted)}
#typegrid .sidebar i:before{content:'◇';font-style:normal;font-size:19px}
#typegrid .sidebar .nav-label{opacity:0;transition:opacity .15s ease,transform .15s ease;white-space:nowrap;pointer-events:none}
#typegrid .sidebar:hover .nav-label,#typegrid .sidebar:focus-within .nav-label{opacity:1}
#typegrid .sidebar button:hover .nav-label{transform:translateX(4px)}
#typegrid .sidebar .primary{margin:24px 0 0;color:var(--tg-ink);background:transparent;border:0;box-shadow:none}
#typegrid .sidebar .sectionlabel{font-size:0;height:1px;min-height:1px;padding:0;background:var(--tg-line);margin:18px 0}
#typegrid .side-brand{display:flex;align-items:center;gap:12px;padding:0 7px;min-height:28px;font-weight:600}
#typegrid .side-brand img{width:25px;height:25px;object-fit:contain;flex-shrink:0}
#typegrid .sidebar .local-profile{border-top:1px solid var(--tg-line);padding-top:15px;margin-top:6px;display:flex;align-items:center;gap:12px;white-space:nowrap}
#typegrid .profile-dot{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border-radius:50%;background:var(--tg-soft);color:var(--tg-blue);font-size:12px;font-weight:600}
#typegrid .local-profile small{display:block;color:var(--tg-muted);font-size:11px;margin-top:3px}
@media(max-width:760px){#typegrid .layout{grid-template-columns:64px minmax(0,1fr)}#typegrid .layout:has(.sidebar:hover),#typegrid .layout:has(.sidebar:focus-within){grid-template-columns:195px minmax(0,1fr)}}
@media(max-width:460px){#typegrid .layout,#typegrid .layout:has(.sidebar:hover),#typegrid .layout:has(.sidebar:focus-within){display:block}#typegrid .sidebar{flex-direction:row;overflow:visible}#typegrid .sidebar button{width:auto}#typegrid .sidebar .nav-label{opacity:1}#typegrid .side-brand,#typegrid .local-profile{display:none}#typegrid .sidebar .primary{margin:0}}
@media(prefers-reduced-motion:reduce){#typegrid .layout,#typegrid .sidebar .nav-label{transition:none}}

#typegrid .attachment-row{display:flex;align-items:center;gap:18px;padding:28px 0 20px;min-height:105px}
#typegrid .attachment-folder{position:relative;width:76px;height:60px;padding:0;margin:0 12px;flex-shrink:0;perspective:350px;background:transparent}
#typegrid .folder-back{position:absolute;inset:8px 0 0;background:linear-gradient(#f5b82d,#e9a719);border-radius:7px}
#typegrid .folder-back:before{content:'';position:absolute;width:29px;height:10px;top:-7px;left:0;border-radius:5px 5px 0 0;background:#f5b82d}
#typegrid .folder-front{position:absolute;left:0;right:0;bottom:0;height:43px;background:linear-gradient(#ffd467,#f6b823);border-radius:7px;box-shadow:0 3px 5px #00000015;transform-origin:bottom;transition:transform .18s ease;z-index:5}
#typegrid .folder-front:after{content:'';position:absolute;left:8px;right:8px;top:9px;height:1px;background:#ffffff60}
#typegrid .file-peek{position:absolute;width:38px;height:28px;top:3px;left:19px;border-radius:4px;border:2px solid var(--tg-paper);object-fit:cover;background:var(--tg-paper);box-shadow:0 2px 6px #00000020;transition:transform .18s cubic-bezier(.2,.8,.2,1);transform:translateY(2px) rotate(calc((var(--file-i) - 1)*4deg));z-index:2}
#typegrid .attachment-folder:hover .file-peek,#typegrid .attachment-folder:focus-visible .file-peek,#typegrid .attachment-folder.open .file-peek{transform:translate(calc((var(--file-i) - 1)*30px),-25px) rotate(calc((var(--file-i) - 1)*15deg))}
#typegrid .attachment-folder:hover .folder-front,#typegrid .attachment-folder:focus-visible .folder-front,#typegrid .attachment-folder.open .folder-front{transform:rotateX(-32deg)}
#typegrid .attachment-info strong{display:block;font-size:13px;font-weight:500;margin-bottom:5px}#typegrid .attachment-info small{font-size:11px;color:var(--tg-muted)}
#typegrid .attachment-gallery{background:var(--tg-bg);border:1px solid var(--tg-line);border-radius:10px;padding:15px;margin-bottom:15px}
#typegrid .attachment-gallery[hidden]{display:none}#typegrid .gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px}#typegrid .gallery-grid figure{margin:0;min-width:0}#typegrid .gallery-grid img{width:100%;height:130px;object-fit:contain;background:var(--tg-paper);border-radius:6px}#typegrid .gallery-grid figcaption{font-size:11px;overflow-wrap:anywhere;color:var(--tg-muted);padding:6px 0}
#typegrid .image-upload{display:none}@media(prefers-reduced-motion:reduce){#typegrid .file-peek,#typegrid .folder-front{transition:none}}

#typegrid .text-illustration{position:relative;text-align:left;margin:34px auto 25px;padding:45px 22px 22px;max-width:450px;border:1px solid var(--tg-line);background:var(--tg-paper);border-radius:14px}
#typegrid .text-illustration p{margin:0;color:var(--tg-ink);font-size:14px;line-height:1.85}
#typegrid .highlight-tools{display:flex;justify-content:center;align-items:center;gap:1px;position:absolute;top:9px;left:50%;transform:translateX(-50%);background:var(--tg-paper);box-shadow:0 3px 12px #00000012;border:1px solid var(--tg-line);border-radius:24px;padding:3px 7px;white-space:nowrap}
#typegrid .highlight-tools button{padding:7px 10px;border-radius:15px;font-size:12px;min-width:32px}
#typegrid .highlight-tools button[aria-pressed=true]{background:var(--tg-soft);color:var(--tg-blue)}
#typegrid .illustration-highlight{background:linear-gradient(90deg,light-dark(#bcd9ff,#34567d),light-dark(#bcd9ff,#34567d));background-repeat:no-repeat;background-size:100% 100%;padding:2px 0;box-decoration-break:clone;-webkit-box-decoration-break:clone;animation:tg-highlight-reveal .65s ease-out}
#typegrid .illustration-highlight.is-bold{font-weight:700}#typegrid .illustration-highlight.is-italic{font-style:italic}#typegrid .illustration-highlight.is-underline{text-decoration:underline}#typegrid .illustration-highlight.is-strike{text-decoration:line-through}#typegrid .illustration-highlight.is-underline.is-strike{text-decoration:underline line-through}
@keyframes tg-highlight-reveal{from{background-size:0% 100%}to{background-size:100% 100%}}
@media(prefers-reduced-motion:reduce){#typegrid .illustration-highlight{animation:none}}

#typegrid .gooey-search{position:relative;height:44px;margin:0 0 19px;max-width:320px;width:100%;isolation:isolate}
#typegrid .gooey-surfaces{position:absolute;inset:0;filter:url(#tg-gooey);pointer-events:none;z-index:-1}
#typegrid .gooey-pill{position:absolute;left:0;top:0;height:40px;width:112px;border-radius:22px;background:light-dark(#e7e7ed,#34343c);transition:width .22s cubic-bezier(.22,1,.36,1),left .22s cubic-bezier(.22,1,.36,1)}
#typegrid .gooey-bubble{position:absolute;left:0;top:0;width:40px;height:40px;border-radius:50%;background:light-dark(#e7e7ed,#34343c)}
#typegrid .gooey-search.open .gooey-pill{left:48px;width:calc(100% - 48px)}
#typegrid .gooey-trigger{position:absolute;left:0;top:0;width:112px;height:40px;display:flex;align-items:center;gap:9px;padding:0 13px;border-radius:22px;transition:width .22s cubic-bezier(.22,1,.36,1);white-space:nowrap}
#typegrid .gooey-search.open .gooey-trigger{width:40px;padding:0;justify-content:center}
#typegrid .gooey-label{font-size:13px;transition:opacity .12s}#typegrid .gooey-search.open .gooey-label{display:none}
#typegrid .search-mark{width:14px;height:14px;border:1.7px solid currentColor;border-radius:50%;position:relative;flex-shrink:0}
#typegrid .search-mark:after{content:'';position:absolute;right:-4px;bottom:-3px;width:6px;height:1.7px;background:currentColor;transform:rotate(45deg)}
#typegrid .gooey-search .search{position:absolute;left:59px;top:0;width:calc(100% - 91px);height:40px;padding:0;background:transparent;box-shadow:none;margin:0;opacity:0;visibility:hidden;border:0;transition:opacity .2s .15s;color:var(--tg-ink);font-size:13px;min-width:0}
#typegrid .gooey-search.open .search{opacity:1;visibility:visible}
#typegrid .gooey-clear{position:absolute;right:4px;top:4px;width:30px;height:32px;padding:0;opacity:0;visibility:hidden;border-radius:50%;font-size:18px;color:var(--tg-muted)}
#typegrid .gooey-search.open .gooey-clear{visibility:visible;opacity:1}
#typegrid .gooey-search:focus-within .gooey-pill{background:light-dark(#e0ebff,#2b4264)}
#typegrid .gooey-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
@media(prefers-reduced-motion:reduce){#typegrid .gooey-pill,#typegrid .gooey-trigger,#typegrid .gooey-search .search{transition:none}}

#typegrid .upload-panel{margin:0 0 24px;background:var(--tg-paper);border:1px solid var(--tg-line);border-radius:12px;padding:15px}
#typegrid .upload-panel[hidden]{display:none}#typegrid .upload-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}#typegrid .upload-heading strong{font-size:14px;font-weight:500}#typegrid .upload-heading button{padding:5px 9px;color:var(--tg-muted)}
#typegrid .upload-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:220px;padding:22px 16px;border:1px dashed var(--tg-line);border-radius:8px;background-color:var(--tg-paper);background-image:linear-gradient(light-dark(#d9dce338,#ffffff09) 1px,transparent 1px),linear-gradient(90deg,light-dark(#d9dce338,#ffffff09) 1px,transparent 1px);background-size:28px 28px;transition:background-color .2s,border-color .2s;text-align:center}
#typegrid .upload-drop.dragging{border-color:var(--tg-blue);background-color:var(--tg-soft)}#typegrid .upload-drop strong{font-size:14px;font-weight:500;margin-bottom:7px}#typegrid .upload-drop small{font-size:12px;color:var(--tg-muted);line-height:1.6}
#typegrid .upload-tile{display:grid;place-items:center;width:75px;height:75px;margin:25px 0 8px;background:var(--tg-paper);border:1px solid var(--tg-line);border-radius:8px;box-shadow:0 7px 18px #00000009;transition:transform .15s,box-shadow .15s}
#typegrid .upload-drop:hover .upload-tile,#typegrid .upload-drop.dragging .upload-tile{transform:translateY(-6px) rotate(-4deg);box-shadow:0 14px 25px #00000013}
#typegrid .upload-tile svg{width:22px;height:22px}#typegrid .upload-tile i:before{content:'↑';font-size:25px;font-style:normal}
#typegrid .upload-files{display:flex;flex-direction:column;gap:7px;margin-top:12px}#typegrid .upload-file{display:flex;gap:10px;align-items:center;padding:11px 12px;border:1px solid var(--tg-line);border-radius:8px;background:var(--tg-paper);animation:tg-file-enter .22s ease-out;min-width:0}
#typegrid .upload-file img{width:30px;height:30px;object-fit:cover;border-radius:4px}#typegrid .upload-file .file-name{min-width:0;overflow-wrap:anywhere;font-size:12px;flex:1}#typegrid .upload-file small{font-size:11px;color:var(--tg-muted)}#typegrid .upload-hint{font-size:11px;color:var(--tg-muted);margin:10px 0 0;text-align:center}
@keyframes tg-file-enter{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){#typegrid .upload-tile,#typegrid .upload-drop{transition:none}#typegrid .upload-file{animation:none}}

#typegrid .note-item{position:relative}
#typegrid .note-actions{position:relative;z-index:8;padding:5px;margin:-2px 0 12px;background:var(--tg-paper);border:1px solid var(--tg-line);border-radius:10px;box-shadow:0 7px 20px #00000012;animation:tg-file-enter .15s ease-out}
#typegrid .note-actions button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:9px 11px;border-radius:6px;font-size:13px;min-height:35px}
#typegrid .note-actions button:hover{background:var(--tg-bg)}#typegrid .note-actions .delete-action{color:light-dark(#b72a25,#ff8c86);border-top:1px solid var(--tg-line);border-radius:0 0 6px 6px}
#typegrid .note-actions svg{width:16px;height:16px}#typegrid .note-actions i{width:16px;font-style:normal}#typegrid .note-actions i:before{content:'•'}
#typegrid .share-panel{margin:0 0 22px;padding:16px;border:1px solid var(--tg-line);background:var(--tg-bg);border-radius:12px}
#typegrid .share-panel textarea{min-height:110px;max-height:180px;resize:vertical;border:1px solid var(--tg-line);border-radius:7px;padding:12px;background:var(--tg-paper);font-size:13px}
#typegrid .share-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}#typegrid .share-buttons button{border:1px solid var(--tg-line);background:var(--tg-paper);font-size:12px}

#typegrid .editor{position:relative}
#typegrid .editor-context{position:absolute;z-index:30;width:250px;max-width:calc(100% - 16px);background:var(--tg-paper);border:1px solid var(--tg-line);padding:5px;border-radius:9px;box-shadow:0 8px 28px #00000020}
#typegrid .editor-context button{display:block;width:100%;text-align:left;font-size:12px;min-height:32px;padding:7px 10px;border-radius:5px}
#typegrid .editor-context button:hover{background:var(--tg-soft);color:var(--tg-blue)}#typegrid .editor-context button:nth-child(3){border-bottom:1px solid var(--tg-line);border-radius:0}

#typegrid .category-links{display:flex;flex-direction:column;gap:4px}#typegrid .category-form{padding:10px 5px;min-width:180px}#typegrid .category-form[hidden]{display:none}#typegrid .category-form input{width:100%;padding:9px;border:1px solid var(--tg-line);border-radius:7px;background:var(--tg-paper);color:var(--tg-ink);font-size:13px}#typegrid .category-form>div{display:flex;gap:5px;margin-top:6px}#typegrid .category-form button{width:auto;min-height:32px;font-size:12px}#typegrid .category-form .category-save{color:var(--tg-blue)}#typegrid .category-error{font-size:11px;white-space:normal;color:light-dark(#b72a25,#ff8c86)}#typegrid .note-category{max-width:180px;border:1px solid var(--tg-line);border-radius:6px;padding:5px 8px;background:var(--tg-paper);color:var(--tg-muted);font-size:12px}

#typegrid .user-avatar{width:30px;height:30px;object-fit:cover;border-radius:50%;flex-shrink:0}#typegrid .user-avatar.initials{display:grid;place-items:center;background:var(--tg-soft);color:var(--tg-blue);font-size:11px}
#typegrid .sidebar .local-profile{border-top:1px solid var(--tg-line);border-radius:0;padding:15px 3px 0}
#typegrid .profile-form{background:var(--tg-bg);border:1px solid var(--tg-line);border-radius:12px;padding:18px;text-align:left;margin:15px 0}
#typegrid .profile-form-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}#typegrid .profile-form-heading .user-avatar{width:48px;height:48px}#typegrid .welcome .profile-form img{width:48px;height:48px;object-fit:cover}#typegrid .profile-form strong{font-weight:500;font-size:14px}#typegrid .profile-form small{display:block;font-size:11px;color:var(--tg-muted);margin-top:5px}#typegrid .profile-form label{display:block;font-size:12px;color:var(--tg-muted)}#typegrid .profile-name{display:block;width:100%;border:1px solid var(--tg-line);border-radius:7px;padding:10px;margin-top:7px;background:var(--tg-paper);color:var(--tg-ink)}#typegrid .profile-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}#typegrid .profile-actions button{font-size:12px;background:var(--tg-paper);border:1px solid var(--tg-line)}#typegrid .profile-actions .primary{background:var(--tg-blue);color:#fff;border-color:transparent}#typegrid .profile-actions button:disabled{opacity:.6}#typegrid .profile-photo-input{display:none}#typegrid .profiles-section{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}#typegrid .note-profile{font-size:11px;background:var(--tg-paper);color:var(--tg-muted);border:1px solid var(--tg-line);border-radius:6px;padding:5px;margin-top:7px;max-width:155px}#typegrid .phone .profiles-section{display:block}

#typegrid .category-addon{min-width:0;max-width:100%;border:1px solid var(--tg-line);border-radius:6px;padding:6px 10px;font-size:12px;color:var(--tg-muted);background:var(--tg-paper);box-shadow:0 1px 2px #00000007}
#typegrid{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','Segoe UI','Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif}#typegrid .note-title,#typegrid textarea,#typegrid input{font-family:inherit}
#typegrid .saved-time{overflow-wrap:anywhere;text-align:right}#typegrid .footer{flex-wrap:wrap}#typegrid .saved{white-space:normal}

#typegrid button{transition:transform .16s cubic-bezier(.2,.8,.2,1),background-color .18s ease,color .18s ease,box-shadow .18s ease}
#typegrid button:active{transform:scale(.97)}
#typegrid .notecard:active{transform:scale(.985)}
#typegrid .win-controls button:active{transform:none}
#typegrid .note-actions,#typegrid .editor-context{transform-origin:top left;animation:tg-menu-open .18s cubic-bezier(.16,1,.3,1)}
@keyframes tg-menu-open{from{opacity:0;transform:translateY(-4px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){#typegrid button{transition:none}#typegrid button:active{transform:none}#typegrid .note-actions,#typegrid .editor-context{animation:none}}

#typegrid .toolbar{align-items:center;gap:8px;padding:13px 0 20px;min-height:66px;overflow:visible}
#typegrid .toolbar>button,#typegrid .toolbar>.category-addon{transform-origin:center bottom;translate:0 var(--dock-lift,0px);scale:var(--dock-scale,1);transition:translate .18s cubic-bezier(.2,.8,.2,1),scale .18s cubic-bezier(.2,.8,.2,1),background-color .18s,box-shadow .18s;position:relative;z-index:1}
#typegrid .toolbar>button:hover{background:var(--tg-soft);color:var(--tg-blue);box-shadow:0 5px 13px #0000000d;z-index:3}
#typegrid .toolbar>button:focus-visible{translate:0 -5px;scale:1.12;background:var(--tg-soft);z-index:3}
@media(pointer:coarse){#typegrid .toolbar>button,#typegrid .toolbar>.category-addon{translate:none;scale:1}}
@media(prefers-reduced-motion:reduce){#typegrid .toolbar>button,#typegrid .toolbar>.category-addon{translate:none;scale:1;transition:none}}

#typegrid .goo-dropdown{position:relative;min-width:110px;max-width:100%;width:160px;height:34px;z-index:12}
#typegrid .goo-dropdown-blobs{position:absolute;top:0;left:0;width:230px;max-width:min(230px,calc(100vw - 70px));height:var(--goo-height);filter:url(#tg-dropdown-goo);pointer-events:none}
#typegrid .goo-dropdown-pill{width:160px;max-width:100%;height:34px;border-radius:12px;background:light-dark(#ececef,#34343d)}
#typegrid .goo-dropdown-shape{position:absolute;inset:0;background:light-dark(#ececef,#34343d);clip-path:inset(0px 70px calc(var(--goo-height) - 34px) 0px round 12px)}
#typegrid .goo-dropdown-trigger{height:34px;width:160px;max-width:100%;position:relative;padding:0 10px;display:flex;justify-content:space-between;align-items:center;gap:8px;white-space:nowrap;font-size:12px;background:transparent;border-radius:12px;overflow:hidden}
#typegrid .goo-dropdown-trigger span{flex-shrink:0;transition:rotate .2s}#typegrid .goo-dropdown.is-open .goo-dropdown-trigger span{rotate:180deg}
#typegrid .goo-dropdown-content{position:absolute;left:0;top:0;width:230px;max-width:min(230px,calc(100vw - 70px));height:var(--goo-height);clip-path:inset(0px 70px calc(var(--goo-height) - 34px) 0px round 12px);pointer-events:none}
#typegrid .goo-dropdown.is-open .goo-dropdown-content{pointer-events:auto}
#typegrid .goo-dropdown-menu{position:absolute;top:52px;left:0;right:0;padding:6px;border-radius:20px}
#typegrid .goo-dropdown-menu button{display:block;width:100%;height:40px;text-align:left;padding:0 12px;border-radius:14px;background:transparent;font-size:13px;color:var(--tg-muted);overflow-wrap:anywhere}
#typegrid .goo-dropdown-menu button:hover,#typegrid .goo-dropdown-menu button:focus-visible{background:light-dark(#00000008,#ffffff0b);color:var(--tg-ink)}
#typegrid .goo-dropdown.align-end .goo-dropdown-blobs,#typegrid .goo-dropdown.align-end .goo-dropdown-content{left:auto;right:0}
#typegrid .toolbar:has(.goo-dropdown.is-open){position:relative;z-index:15}
#typegrid .goo-dropdown-menu button,#typegrid .goo-dropdown-trigger{border:0;box-shadow:none}#typegrid .goo-dropdown-trigger{background:transparent}
#typegrid .note-actions,#typegrid .editor-context{isolation:isolate;background:transparent;border:0;border-radius:20px;padding:6px;animation:none;box-shadow:0 8px 24px #00000012}
#typegrid .goo-menu-surface{position:absolute;inset:0;background:light-dark(#ececef,#303036);border-radius:20px;filter:url(#tg-menu-goo);z-index:-1;pointer-events:none}
#typegrid .note-actions button,#typegrid .editor-context button{border-radius:14px;min-height:36px;color:var(--tg-ink)}#typegrid .note-actions button:hover,#typegrid .editor-context button:hover{background:light-dark(#00000007,#ffffff0c)}
#typegrid .note-actions .delete-action{color:light-dark(#b72a25,#ff8c86)}#typegrid .note-actions.is-closing,#typegrid .editor-context.is-closing{pointer-events:none}

#typegrid .time-island{margin-left:auto;border-radius:25px;background:#171719;color:#f5f5f7;box-shadow:0 4px 12px #00000018;max-width:100%;overflow:hidden;transition:border-radius .18s cubic-bezier(.16,1,.3,1);min-width:0}
#typegrid .time-island-trigger{display:flex;gap:9px;align-items:center;padding:11px 16px;width:100%;font-size:11px;color:#f5f5f7;text-align:left;line-height:1.5}
#typegrid .island-dot{width:6px;height:6px;border-radius:50%;background:#73dfa9;flex-shrink:0}#typegrid .island-chevron{margin-left:auto;color:#a6a6ae;transition:rotate .18s}#typegrid .time-island.open .island-chevron{rotate:180deg}
#typegrid .island-detail{display:grid;grid-template-rows:0fr;max-height:0;opacity:0;transform:translateY(-5px);padding:0 16px;transition:max-height .18s cubic-bezier(.16,1,.3,1),opacity .12s,transform .18s,padding .18s}
#typegrid .time-island.open{border-radius:20px}#typegrid .time-island.open .island-detail{max-height:100px;opacity:1;transform:translateY(0);padding:0 16px 14px;grid-template-rows:1fr}
#typegrid .island-detail .saved-time{text-align:left;display:block;font-size:11px;color:#e1e1e7;white-space:normal}#typegrid .island-detail small{display:block;font-size:11px;color:#aaaab5;padding-top:7px}
#typegrid .phone .time-island{margin:8px 0 0;width:100%}#typegrid .footer{align-items:center}
@media(prefers-reduced-motion:reduce){#typegrid .time-island,#typegrid .island-detail,#typegrid .island-chevron{transition:none}}
#typegrid .footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}#typegrid .footer .count{justify-self:start}#typegrid .footer .time-island{margin:0;justify-self:center;grid-column:2}#typegrid .footer:after{content:''}#typegrid .phone .footer{display:flex;flex-direction:column;align-items:center}#typegrid .phone .footer .time-island{width:auto;max-width:100%;margin:0}#typegrid .phone .footer:after{display:none}@media(max-width:760px){#typegrid .footer{display:flex;flex-direction:column;align-items:center}#typegrid .footer .time-island{margin:0;max-width:100%}#typegrid .footer:after{display:none}}#typegrid .footer{display:grid;grid-template-columns:1fr;width:100%;gap:14px}#typegrid .footer .count{justify-self:start}#typegrid .footer .time-island{grid-row:1;justify-self:center;margin:0 auto;max-width:100%}#typegrid .phone .footer .time-island{width:auto;margin:0 auto}
#typegrid .titlebar .time-island{position:absolute;left:50%;top:10px;translate:-50% 0;margin:0;width:max-content;max-width:calc(100% - 310px);z-index:20}
#typegrid .titlebar .time-island-trigger{font-size:11px;padding:10px 15px}
#typegrid .footer{display:flex;justify-content:flex-start}
#typegrid .phone .titlebar{height:125px;align-items:flex-start}#typegrid .phone .titlebar .time-island{top:75px;max-width:calc(100% - 24px);width:max-content}
@media(max-width:650px){#typegrid .window:not(.phone) .titlebar{height:114px;align-items:flex-start}#typegrid .window:not(.phone) .titlebar .time-island{top:65px;max-width:calc(100% - 24px)}#typegrid .window:not(.phone) .win-controls{height:62px}}

#typegrid .footer{justify-content:space-between;gap:12px}#typegrid .zoom-controls{display:flex;align-items:center;border:1px solid var(--tg-line);border-radius:8px;overflow:hidden;order:2}#typegrid .zoom-controls button{padding:5px 10px;min-width:30px;font-size:12px;border-radius:0;background:var(--tg-paper)}#typegrid .zoom-controls button:hover{background:var(--tg-soft)}#typegrid .zoom-controls button:disabled{opacity:.4}#typegrid .note-title,#typegrid .editor textarea{transition:font-size .18s ease}@media(prefers-reduced-motion:reduce){#typegrid .note-title,#typegrid .editor textarea{transition:none}}

#typegrid .font-picker{max-width:145px;min-width:0;border:1px solid var(--tg-line);border-radius:6px;background:var(--tg-paper);color:var(--tg-muted);font-size:12px;padding:6px 9px}

#typegrid .font-picker{max-width:145px;min-width:0;border:1px solid var(--tg-line);border-radius:6px;background:var(--tg-paper);color:var(--tg-muted);font-size:12px;padding:6px 9px}

#typegrid .avatar-chooser{margin-top:14px}#typegrid .avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0 14px}#typegrid .avatar-choice{display:grid;place-items:center;padding:7px;background:var(--tg-paper);border:1px solid var(--tg-line);border-radius:12px}#typegrid .avatar-choice[aria-pressed=true]{border-color:var(--tg-blue);box-shadow:0 0 0 2px var(--tg-soft)}#typegrid .avatar-choice:hover{background:var(--tg-soft)}
#typegrid .preset-avatar{position:relative;display:inline-block;overflow:hidden;background:var(--av-bg,#c7e8ff);--av-skin:#f1be9d;--av-hair:#45302e;--av-shirt:#2678cb;border:2px solid #ffffff70}
#typegrid .preset-avatar span{position:absolute;display:block}#typegrid .av-face{width:43%;height:50%;left:29%;top:22%;background:var(--av-skin);border-radius:43% 43% 45% 45%;z-index:3}#typegrid .av-neck{width:17%;height:22%;left:42%;top:58%;background:var(--av-skin);z-index:2;border-radius:5px}#typegrid .av-shirt{width:85%;height:42%;left:8%;bottom:-9%;background:var(--av-shirt);border-radius:50% 50% 0 0;z-index:1}#typegrid .av-hair{width:48%;height:25%;left:26%;top:15%;background:var(--av-hair);border-radius:60% 60% 20% 20%;z-index:4;rotate:-7deg}#typegrid .av-eyes{width:8%;height:8%;left:23%;top:44%;border-radius:50%;background:#322827;box-shadow:10px 0 #322827}#typegrid .av-smile{width:23%;height:9%;left:39%;top:69%;border-bottom:1px solid #864c44;border-radius:0 0 50% 50%}
#typegrid .boy-2{--av-bg:#ffdbc4;--av-skin:#e1a580;--av-hair:#754b29;--av-shirt:#df7951}#typegrid .boy-2 .av-hair{border-radius:8% 70% 30% 0;rotate:-15deg}#typegrid .boy-3{--av-bg:#c5e9d8;--av-skin:#b57953;--av-hair:#292520;--av-shirt:#398e74}#typegrid .boy-3 .av-hair{height:31%;border-radius:45%;top:12%}#typegrid .boy-3 .av-accessory{left:29%;top:44%;width:43%;height:13%;border:1px solid #26313c;border-radius:4px;z-index:5}#typegrid .boy-4{--av-bg:#cbd1f3;--av-skin:#895936;--av-hair:#23232a;--av-shirt:#575ab5}#typegrid .boy-4 .av-hair{height:23%;border-radius:50% 50% 10% 10%}
#typegrid .girl-1{--av-bg:#e4d8fa;--av-skin:#f4c6a7;--av-hair:#5c3b30;--av-shirt:#9471ca}#typegrid .girl-2{--av-bg:#ffd5da;--av-skin:#dba27e;--av-hair:#ad6338;--av-shirt:#d56a87}#typegrid .girl-3{--av-bg:#c7ece5;--av-skin:#b87955;--av-hair:#302729;--av-shirt:#439c93}#typegrid .girl-4{--av-bg:#d1e8fa;--av-skin:#8c5c3d;--av-hair:#25212b;--av-shirt:#5d95d0}
#typegrid .preset-avatar[class*="girl-"] .av-back-hair{width:58%;height:70%;left:21%;top:14%;background:var(--av-hair);border-radius:45% 45% 18% 18%;z-index:0}#typegrid .preset-avatar[class*="girl-"] .av-hair{border-radius:70% 50% 20% 0;rotate:-14deg;width:50%;height:28%}#typegrid .girl-2 .av-accessory{width:17%;height:12%;background:#f4b5c5;left:63%;top:20%;border-radius:50%;z-index:5}#typegrid .girl-3 .av-back-hair{width:66%;left:17%;border-radius:45%}#typegrid .girl-4 .av-accessory{width:53%;height:7%;background:#d7c7fa;left:23%;top:18%;border-radius:50%;z-index:5}
#typegrid .supplied-avatar{object-fit:cover;border-radius:50%;border:2px solid var(--tg-paper)}#typegrid .avatar-choice .supplied-avatar{width:48px;height:48px}
/* Responsive TypeGrid proportions */
#typegrid{width:100%;max-width:1200px;margin-inline:auto}
#typegrid .previewbar{padding:8px 0 14px;gap:8px}
#typegrid .window{min-height:0}
#typegrid .layout{min-height:560px;grid-template-columns:64px 240px minmax(0,1fr)}
#typegrid .layout:has(.sidebar:hover),#typegrid .layout:has(.sidebar:focus-within){grid-template-columns:210px 240px minmax(0,1fr)}
#typegrid .library{padding:20px 12px;min-width:0}
#typegrid .editor{padding:18px 24px;min-width:0}
#typegrid .editorhead{gap:6px;margin-bottom:10px}
#typegrid .toolbar{gap:8px;row-gap:10px;min-height:58px;padding:10px 0 17px;margin-bottom:24px}
#typegrid .editor textarea:not(.share-text){min-height:265px}
#typegrid .full{padding:28px;min-width:0}
#typegrid .welcome{margin:10px auto;max-width:500px}
#typegrid .welcome>img{width:64px;height:64px}
#typegrid .welcome h1{font-size:29px;margin:15px 0 12px}
#typegrid .text-illustration{margin:24px auto 18px}
#typegrid .profile-form{padding:16px;margin:10px 0}
#typegrid .profiles-section{grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:12px}
#typegrid .upload-drop{min-height:180px}
#typegrid .phone{width:100%;max-width:390px;border-width:5px}
#typegrid .phone .layout{display:block;min-height:500px}
#typegrid .phone .editor,#typegrid .phone .library,#typegrid .phone .full{padding:20px 16px}
#typegrid .phone .toolbar{gap:8px;row-gap:12px}
#typegrid .phone .profile-actions button{min-height:40px}
#typegrid .phone .editor textarea:not(.share-text){min-height:280px;font-size:16px}
@media(max-width:800px){
 #typegrid .window:not(.phone) .layout,#typegrid .window:not(.phone) .layout:has(.sidebar:hover),#typegrid .window:not(.phone) .layout:has(.sidebar:focus-within){grid-template-columns:64px minmax(0,1fr)}
 #typegrid .window:not(.phone) .sidebar{grid-row:1;grid-column:1}
 #typegrid .window:not(.phone) .editor,#typegrid .window:not(.phone) .library,#typegrid .window:not(.phone) .full{grid-column:2;grid-row:1}
 #typegrid[data-screen="editor"] .window:not(.phone) .library{display:none}
 #typegrid[data-screen="notes"] .window:not(.phone) .editor{display:none}
 #typegrid .window:not(.phone) .sidebar:hover,#typegrid .window:not(.phone) .sidebar:focus-within{width:210px;z-index:25;box-shadow:8px 0 22px #00000012}
}
@media(max-width:460px){
 #typegrid .window:not(.phone) .layout{display:block}
 #typegrid .window:not(.phone) .sidebar{width:100%;box-shadow:none;flex-direction:row;flex-wrap:wrap;padding:8px;gap:3px}
 #typegrid .window:not(.phone) .sidebar:hover,#typegrid .window:not(.phone) .sidebar:focus-within{width:100%;box-shadow:none}
 #typegrid .full,#typegrid .editor{padding:20px 16px}
 #typegrid .feature{flex-wrap:wrap}
 #typegrid .profile-form-heading{align-items:flex-start}
 #typegrid .welcome h1{font-size:27px}
}

@media(min-width:900px){
#typegrid[data-screen=welcome] .full{padding:30px 34px}
#typegrid .window:not(.phone) .welcome{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,390px);column-gap:36px;row-gap:12px;max-width:1000px;margin:0 auto;text-align:left;align-content:center}
#typegrid .window:not(.phone) .welcome>img{grid-column:1;grid-row:1;width:56px;height:56px;margin:8px 0 0}
#typegrid .window:not(.phone) .welcome>h1{grid-column:1;grid-row:2;margin:0;font-size:30px}
#typegrid .window:not(.phone) .welcome>p:not(.subtitle){grid-column:1;grid-row:3;margin:0;line-height:1.7}
#typegrid .window:not(.phone) .welcome>.text-illustration{grid-column:1;grid-row:4;width:100%;max-width:none;margin:10px 0 0;padding:45px 18px 18px}
#typegrid .window:not(.phone) .welcome>.banner{grid-column:1;grid-row:5;margin:2px 0 0;padding:13px 16px}
#typegrid .window:not(.phone) .welcome>.profile-form{grid-column:2;grid-row:1/6;margin:0;align-self:center;padding:20px}
#typegrid .window:not(.phone) .welcome>.subtitle{grid-column:2;grid-row:6;text-align:center;margin:0;font-size:11px}
#typegrid .window:not(.phone) .welcome .avatar-grid{gap:7px;margin:7px 0 12px}
#typegrid .window:not(.phone) .welcome .avatar-choice{padding:5px}
#typegrid .window:not(.phone) .welcome .avatar-choice img{width:38px;height:38px}
#typegrid[data-screen=welcome] .window:not(.phone) .layout{min-height:520px}
}

@media(min-width:801px){
#typegrid .window:not(.phone){height:100vh;min-height:0;display:flex;flex-direction:column}
#typegrid .window:not(.phone)>.titlebar{height:62px;min-height:62px;flex-shrink:0}
#typegrid .window:not(.phone)>.layout,#typegrid[data-screen=welcome] .window:not(.phone) .layout{min-height:0;flex:1;overflow:hidden;align-items:stretch}
#typegrid .window:not(.phone) .sidebar{height:100%;min-height:0}
#typegrid .window:not(.phone) .library,#typegrid .window:not(.phone) .editor,#typegrid .window:not(.phone) .full{height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--tg-line) transparent}
#typegrid .window:not(.phone) .editor textarea:not(.share-text){height:265px;min-height:265px;resize:vertical}
#typegrid:not([data-screen=welcome]) .window:not(.phone) .welcome{display:block;max-width:450px;margin:80px auto;text-align:center}
#typegrid:not([data-screen=welcome]) .window:not(.phone) .welcome>p{margin:12px 0}
}



#typegrid .window:not(.phone) .sidebar,#typegrid .window:not(.phone) .sidebar:hover,#typegrid .window:not(.phone) .sidebar:focus-within{width:64px;flex-direction:column;flex-wrap:nowrap;overflow:hidden;box-shadow:none}
#typegrid .window:not(.phone) .layout,#typegrid .window:not(.phone) .layout:has(.sidebar:hover),#typegrid .window:not(.phone) .layout:has(.sidebar:focus-within){grid-template-columns:64px 240px minmax(0,1fr)!important;transition:none!important}
#typegrid .window:not(.phone) .sidebar .nav-label,#typegrid .window:not(.phone) .sidebar:hover .nav-label,#typegrid .window:not(.phone) .sidebar:focus-within .nav-label{display:none;opacity:0}
#typegrid .window:not(.phone) .sidebar button{width:40px;justify-content:center;padding:10px 8px}
#typegrid .window:not(.phone) .side-brand{padding:0 7px}
#typegrid .window:not(.phone) .sidebar .local-profile{width:40px;padding:15px 3px 0}
#typegrid .window:not(.phone) .category-form{display:none}
#typegrid .window:not(.phone) .category-form:not([hidden]){display:block;position:static;width:100%;min-width:0;margin:6px 0;background:var(--tg-paper);border:1px solid var(--tg-line);border-radius:9px;padding:12px;box-shadow:0 7px 24px #00000020}
#typegrid .window:not(.phone) .category-form button{width:auto;padding:7px}
#typegrid .window:not(.phone) .layout{position:relative}
@media(max-width:800px){#typegrid .window:not(.phone) .layout,#typegrid .window:not(.phone) .layout:has(.sidebar:hover),#typegrid .window:not(.phone) .layout:has(.sidebar:focus-within){display:grid;grid-template-columns:64px minmax(0,1fr)}}

#typegrid .editor textarea:not(.share-text),#typegrid .editor textarea:not(.share-text):focus,#typegrid .editor .note-title:focus{border:0;outline:none;box-shadow:none;background:transparent}
#typegrid[data-input-mode=keyboard] .editor textarea:not(.share-text):focus,#typegrid[data-input-mode=keyboard] .editor .note-title:focus{box-shadow:0 2px 0 var(--tg-soft)}

#typegrid .rich-note{white-space:pre-wrap;overflow-wrap:anywhere;min-height:265px;line-height:1.95;font-size:14px;outline:none;color:var(--tg-ink);padding:0}
#typegrid .editor textarea.rich-source{display:none!important}
#typegrid .note-format-bar{display:flex;gap:3px;background:var(--tg-paper);border:1px solid var(--tg-line);border-radius:22px;padding:4px 8px;box-shadow:0 4px 15px #00000012;width:max-content;margin:0 0 12px}
#typegrid .note-format-bar[hidden]{display:none}#typegrid .note-format-bar button{padding:6px 10px;min-width:32px;font-size:13px}
#typegrid .note-format-bar button:hover{background:var(--tg-soft);color:var(--tg-blue)}

#typegrid .rich-note{min-height:80px;margin-bottom:0}
#typegrid .attachment-row{padding:18px 0 12px;min-height:85px;margin:0;gap:16px}
#typegrid .attachment-folder{margin-left:4px}
#typegrid .editor .footer{margin-top:18px}
#typegrid .rich-note::highlight(tg-selection){background:#bad5ff;color:inherit}#typegrid .rich-note::selection{background:#bad5ff;color:inherit}
/* TypeGrid professional finish */
#typegrid{--tg-bg:light-dark(#f4f5f7,#202226);--tg-paper:light-dark(#ffffff,#181a1e);--tg-ink:light-dark(#242930,#edf0f4);--tg-muted:light-dark(#68717d,#a7afb9);--tg-line:light-dark(#e3e6eb,#32363d);--tg-soft:light-dark(#edf2fa,#253347);--tg-blue:light-dark(#3267ac,#7cacf0);font-size:14px;letter-spacing:0}
#typegrid .window{border-radius:12px;border-color:light-dark(#d7dce3,#3b4048);box-shadow:0 12px 34px #0000000b}
#typegrid .titlebar{background:var(--tg-bg);border-bottom:1px solid var(--tg-line)}
#typegrid .titlebar .brand{color:var(--tg-ink);font-weight:600;font-size:13px}
#typegrid .sidebar{background:var(--tg-bg)}#typegrid .sidebar svg{color:var(--tg-muted);stroke-width:1.6}
#typegrid .sidebar button.selected{background:var(--tg-soft);color:var(--tg-blue)}#typegrid .sidebar .user-avatar.initials{background:var(--tg-soft)}
#typegrid .library{background:light-dark(#fafbfc,#1e2024)}#typegrid h2{font-size:19px;font-weight:600;letter-spacing:-.3px}
#typegrid .notecard{border-radius:7px;padding:15px 12px;margin-bottom:5px}#typegrid .notecard.selected,#typegrid .phone .notecard.selected{background:var(--tg-soft);color:var(--tg-ink);box-shadow:none;border:1px solid light-dark(#d5e2f3,#35475e)}
#typegrid .notecard.selected p,#typegrid .notecard.selected .meta{color:var(--tg-muted)}#typegrid .notecard strong{font-size:13px;font-weight:600}#typegrid .notecard p{font-size:12px;line-height:1.65}#typegrid .meta{font-size:11px}
#typegrid .editor{padding:22px 28px}#typegrid .note-title{font-size:26px;letter-spacing:-.5px;font-weight:600;margin-bottom:22px}
#typegrid .rich-note{font-size:15px;line-height:1.8;color:var(--tg-ink)}
#typegrid .toolbar{gap:8px;padding:8px 0 16px;margin-bottom:25px;min-height:52px}#typegrid .toolbar button,#typegrid .font-picker,#typegrid .category-addon{font-size:12px;padding:7px 11px;border-radius:6px;box-shadow:none;background:var(--tg-paper)}
#typegrid .toolbar>button:hover{box-shadow:none;background:var(--tg-bg)}#typegrid button:active{transform:scale(.99)}
#typegrid .editorhead button{color:var(--tg-muted)}#typegrid .saved{color:var(--tg-muted);font-size:11px}
#typegrid .time-island{background:var(--tg-paper)!important;color:var(--tg-muted)!important;border:1px solid var(--tg-line);box-shadow:none!important;border-radius:8px!important}
#typegrid .time-island-trigger{color:var(--tg-muted)!important}#typegrid .time-island .island-detail .saved-time,#typegrid .time-island .island-detail small{color:var(--tg-muted)}
#typegrid .note-actions,#typegrid .editor-context{border-radius:8px;background:var(--tg-paper)!important;border:1px solid var(--tg-line);box-shadow:0 8px 22px #00000013;filter:none!important;animation:none!important;clip-path:none!important}
#typegrid .note-actions button,#typegrid .editor-context button{font-size:13px;padding:9px 11px;border-radius:5px}
#typegrid .note-format-bar,#typegrid .highlight-tools{border-radius:8px;box-shadow:0 3px 10px #00000009}#typegrid .note-format-bar button,#typegrid .highlight-tools button{border-radius:4px}
#typegrid .profile-form{background:var(--tg-paper);border:1px solid var(--tg-line);border-radius:9px;padding:20px}
#typegrid .profile-form-heading strong{font-size:15px;font-weight:600}#typegrid .profile-form label{font-size:12px}#typegrid .profile-name{padding:11px;border-radius:6px;background:var(--tg-bg)}
#typegrid .avatar-options{margin-top:14px;color:var(--tg-muted);font-size:12px}#typegrid .avatar-options summary{padding:7px 0;cursor:pointer}#typegrid .avatar-choice{border-radius:6px}
#typegrid .profile-actions{margin-top:18px;gap:8px}#typegrid .profile-actions button{border-radius:6px;min-height:36px}
#typegrid .profiles-section{gap:16px;margin-bottom:24px}#typegrid .feature{padding:19px 0;align-items:center}#typegrid .feature>div{font-size:13px}#typegrid .feature select{padding:7px 10px;border:1px solid var(--tg-line);border-radius:6px;background:var(--tg-paper);color:var(--tg-ink);font-size:12px}
#typegrid .banner{border-radius:8px;background:var(--tg-bg);font-size:12px}#typegrid .upload-panel,#typegrid .share-panel{border-radius:8px}#typegrid .upload-drop{background-size:24px 24px}#typegrid .upload-tile{box-shadow:0 3px 10px #00000006;border-radius:6px}
#typegrid .attachment-row{gap:12px}#typegrid .folder-back{background:linear-gradient(#d4b979,#bfa265)}#typegrid .folder-back:before{background:#d4b979}#typegrid .folder-front{background:linear-gradient(#e5d29f,#cfb881);box-shadow:0 2px 4px #00000010}
#typegrid .welcome>.profile-form{background:var(--tg-paper)}#typegrid .welcome h1{letter-spacing:-.8px}#typegrid .welcome>p{color:var(--tg-muted)}#typegrid .text-illustration{background:var(--tg-bg);border-radius:8px}
#typegrid .toast{color:var(--tg-muted);font-size:11px}
#typegrid .phone{border-radius:28px;border-color:light-dark(#343a42,#4a5059)}#typegrid .phone .notecard{border-radius:8px}

#typegrid .phone{height:740px;min-height:0;display:flex;flex-direction:column;background:var(--tg-paper);box-shadow:0 12px 30px #00000010}
#typegrid .phone>.titlebar{height:115px;min-height:115px;flex-shrink:0;padding:22px 18px 12px}
#typegrid .phone>.layout{flex:1;height:auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--tg-line) transparent}
#typegrid .phone>.mobilebar{flex-shrink:0;min-height:66px;margin:0;padding:8px 6px 12px;gap:2px;border-top:1px solid var(--tg-line);background:var(--tg-paper)}
#typegrid .phone>.mobilebar button{min-height:44px;padding:8px 10px;font-size:11px;color:var(--tg-muted);border-radius:7px}
#typegrid .phone>.mobilebar button.selected{color:var(--tg-blue);background:var(--tg-soft)}
#typegrid .phone .library h2{font-size:23px;letter-spacing:-.5px;margin-bottom:20px}
#typegrid .phone .notecard{padding:17px 14px;margin-bottom:10px;border:1px solid var(--tg-line);background:var(--tg-paper)}
#typegrid .phone .notecard strong{font-size:14px}#typegrid .phone .notecard p{font-size:13px}#typegrid .phone .rich-note{font-size:16px;line-height:1.8;min-height:80px}
#typegrid .phone .editorhead button{min-height:40px}#typegrid .phone .toolbar button,#typegrid .phone .font-picker{min-height:38px;padding:8px 10px}
#typegrid .phone .profile-form{padding:16px}#typegrid .phone .welcome h1{font-size:26px}#typegrid .phone .full{padding:22px 16px}
@media(max-height:800px){#typegrid .phone{height:660px}}

/* Shared TypeGrid design: quiet surfaces, readable type, consistent controls. */
#typegrid{--tg-bg:light-dark(#f3f4f6,#202329);--tg-paper:light-dark(#fff,#191c21);--tg-ink:light-dark(#202630,#edf0f6);--tg-muted:light-dark(#727a87,#a1aaba);--tg-line:light-dark(#e6e8ed,#303641);--tg-soft:light-dark(#eaf0fc,#263550);--tg-blue:light-dark(#3568c4,#91b8ff);font-family:'Segoe UI',Arial,'Segoe UI Emoji',sans-serif}
#typegrid .window{border-radius:14px;box-shadow:0 16px 50px #1524430c;border-color:light-dark(#dce0e7,#3a414d)}
#typegrid .titlebar{height:48px;min-height:48px;background:var(--tg-bg);padding-left:20px}
#typegrid .titlebar .logo{width:22px;height:22px}#typegrid .titlebar .brand{font-size:13px;letter-spacing:.1px}
#typegrid .time-island{max-width:270px;top:6px!important;border:0!important;background:transparent!important}
#typegrid .time-island.open{background:var(--tg-paper)!important;box-shadow:0 8px 28px #14223b18!important;border:1px solid var(--tg-line)!important}
#typegrid .sidebar{padding-top:18px;background:var(--tg-bg)}
#typegrid .sidebar button{transition:background .18s ease,color .18s ease;min-height:40px}
#typegrid .sidebar button.selected{background:light-dark(#e1e8f6,#2b3b56);color:var(--tg-blue)}
#typegrid .library{padding:25px 12px 18px;background:light-dark(#f8f9fb,#1e2229)}
#typegrid .library h2{padding:0 10px;margin-bottom:18px;font-size:20px;letter-spacing:-.55px}
#typegrid .library h2 .subtitle{margin-left:4px;background:var(--tg-bg);padding:3px 7px;border-radius:6px}
#typegrid .notecard{position:relative;border:1px solid transparent;padding:16px 13px;margin:0 0 6px;border-radius:9px}
#typegrid .notecard:hover{background:light-dark(#eef1f6,#252c37)}
#typegrid .notecard.selected{background:var(--tg-paper);border:1px solid light-dark(#dce5f5,#3b4e6e);box-shadow:0 3px 9px #1b345609}
#typegrid .notecard.selected:before{content:'';position:absolute;left:0;top:17px;bottom:17px;width:3px;background:var(--tg-blue);border-radius:0 3px 3px 0}
#typegrid .notecard strong{font-size:13px;line-height:1.5;margin-bottom:6px}#typegrid .notecard p{line-height:1.7;margin-bottom:15px}
#typegrid .editor{padding:19px 32px 28px}
#typegrid .editorhead{margin-bottom:10px;gap:5px;min-height:32px}
#typegrid .editorhead button{padding:6px 8px;font-size:12px}
#typegrid .saved{font-size:11px;color:light-dark(#64816c,#95b99f)}
#typegrid .toolbar{gap:3px;padding:5px 0 15px;margin-bottom:29px;border-bottom:1px solid var(--tg-line)}
#typegrid .toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;background:transparent;padding:7px 8px;color:var(--tg-muted);min-height:32px;box-shadow:none}
#typegrid .toolbar button svg{width:15px;height:15px;stroke-width:1.6}
#typegrid .toolbar button:hover{color:var(--tg-ink);background:var(--tg-bg)}
#typegrid .font-picker{margin-left:auto;border:1px solid var(--tg-line);color:var(--tg-muted);max-width:120px}
#typegrid .note-title{height:auto;min-height:40px;line-height:1.3;letter-spacing:-.8px;margin-bottom:20px}
#typegrid .rich-note{line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
#typegrid .attachment-row{margin-top:22px;margin-bottom:25px;padding:10px 12px;background:light-dark(#f8f9fc,#21262f);border:1px solid var(--tg-line);border-radius:10px;width:fit-content;max-width:100%;gap:15px}
#typegrid .attachment-info strong{font-size:12px;font-weight:600}#typegrid .attachment-info small{font-size:11px}
#typegrid .footer{margin-top:24px;padding-top:14px;border-top:1px solid var(--tg-line)}
#typegrid .editor-context{padding:6px;border-radius:11px!important;min-width:248px;box-shadow:0 12px 35px #172a4725!important}
#typegrid .editor-context button{min-height:35px;border-radius:5px;padding:8px 11px}
#typegrid .editor-context button:hover{background:var(--tg-soft);color:var(--tg-blue)}
#typegrid .full{padding:32px;max-width:1100px;width:100%;margin:0 auto}
#typegrid .profile-form{padding:24px;border-radius:13px;box-shadow:0 4px 18px #16274605}
#typegrid .profile-name{background:var(--tg-paper);border:1px solid var(--tg-line);border-radius:8px;min-height:42px}
#typegrid .profile-actions button{border-radius:8px;min-height:40px}
#typegrid .primary{background:var(--tg-blue);color:light-dark(#fff,#17273e)}
#typegrid[data-screen="welcome"] .welcome h1{font-size:38px;letter-spacing:-1.6px;line-height:1.16;margin-top:14px}
#typegrid[data-screen="welcome"] .welcome>p:not(.subtitle){font-size:14px;line-height:1.9;max-width:480px}
#typegrid .welcome .text-illustration{background:var(--tg-paper);border:1px solid var(--tg-line);border-radius:12px;padding:48px 20px 20px;box-shadow:0 8px 24px #16274606}
#typegrid .welcome .banner{display:flex;flex-wrap:wrap;gap:16px;background:transparent;border:0;padding:0;margin:20px 0}
#typegrid .welcome-benefit{font-size:11px;color:var(--tg-muted)}
#typegrid .welcome-benefit:before{content:'✓';color:var(--tg-blue);margin-right:5px}
#typegrid .feature{min-height:70px;padding:17px 0}
#typegrid .phone{border:4px solid light-dark(#2c323c,#475160);border-radius:30px}
#typegrid .phone>.titlebar{height:96px;min-height:96px;padding:27px 20px 10px;background:var(--tg-paper)}
#typegrid .phone .titlebar .brand{font-size:20px;letter-spacing:-.5px}
#typegrid .phone .time-island{top:57px!important}
#typegrid .phone .library{padding:24px 16px;background:var(--tg-paper)}
#typegrid .phone .library h2{font-size:27px;letter-spacing:-.8px;padding:0 2px}
#typegrid .phone .notecard{border-radius:13px;background:light-dark(#f7f8fb,#242a33);border:1px solid transparent;padding:18px 16px;margin-bottom:12px}
#typegrid .phone .notecard.selected{background:var(--tg-soft);border-color:light-dark(#dce5f7,#3c5073);box-shadow:none}
#typegrid .phone .notecard strong{font-size:15px}#typegrid .phone .notecard p{font-size:13px}
#typegrid .phone .notecard.selected:before{display:none}
#typegrid .phone .editor{padding:12px 20px 24px}
#typegrid .phone .toolbar{padding:4px 0 13px;gap:3px;margin-bottom:23px}
#typegrid .phone .toolbar button{padding:8px 7px;min-height:44px;font-size:12px}
#typegrid .phone .font-picker{margin-left:0;min-height:40px;max-width:100%}
#typegrid .phone .editorhead{gap:1px}#typegrid .phone .editorhead button{padding:7px 5px}
#typegrid .phone .note-title{line-height:1.35;margin-bottom:20px}
#typegrid .phone .attachment-row{width:100%;padding:8px;gap:10px}
#typegrid .phone>.mobilebar{padding:8px 8px 12px;background:var(--tg-paper)}
#typegrid .phone .mobilebar button{flex:1;border-radius:10px;min-height:48px;font-size:11px}
#typegrid .phone .full{padding:24px 20px}
#typegrid[data-screen="welcome"] .phone .welcome h1{font-size:30px;letter-spacing:-1px}
#typegrid .phone .welcome .banner{justify-content:center;gap:10px}
#typegrid .phone .profile-form{padding:18px}
@media(max-width:760px){#typegrid .window:not(.phone) .editor{padding:18px 22px}#typegrid .font-picker{margin-left:0}}
@media(prefers-reduced-motion:reduce){#typegrid *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


/* TypeGrid / focused writing edition */
#typegrid{--tg-bg:light-dark(#f1f2f4,#20242a);--tg-paper:light-dark(#fffefa,#1d2026);--tg-ink:light-dark(#242933,#e9ecf2);--tg-muted:light-dark(#737b87,#a5adba);--tg-line:light-dark(#e5e6e8,#363b44);--tg-soft:light-dark(#e5edff,#2b3b59);--tg-blue:light-dark(#365edc,#98b4ff);font-family:'Segoe UI',Arial,'Segoe UI Emoji',sans-serif}
#typegrid .previewbar{padding:2px 0 14px}#typegrid .previewbar .caption{letter-spacing:.2px}
#typegrid .window:not(.phone){background:var(--tg-paper);border-radius:12px;box-shadow:0 20px 65px #16213a12;height:720px;min-height:0;display:flex;flex-direction:column}
#typegrid .window:not(.phone)>.titlebar{height:44px;min-height:44px;padding:0 0 0 20px;background:light-dark(#f7f8fa,#242830);border-bottom:1px solid var(--tg-line)}
#typegrid .window:not(.phone)>.layout{flex:1;height:0;min-height:0!important;overflow:hidden;grid-template-columns:64px 270px minmax(0,1fr)!important}
#typegrid .window:not(.phone) .layout:has(.sidebar:hover),#typegrid .window:not(.phone) .layout:has(.sidebar:focus-within){grid-template-columns:64px 270px minmax(0,1fr)!important}
#typegrid .window:not(.phone) .sidebar{background:#252b37;border:0;padding:20px 12px;gap:8px;color:#c2cada}
#typegrid .window:not(.phone) .sidebar svg{color:#aeb9ce;stroke-width:1.7}
#typegrid .window:not(.phone) .sidebar button{border-radius:11px;min-height:40px;color:#c2cada;background:transparent}
#typegrid .window:not(.phone) .sidebar button:hover{background:#343e51}
#typegrid .window:not(.phone) .sidebar button.selected{background:#445b93;color:#fff}
#typegrid .window:not(.phone) .sidebar button.selected svg{color:#fff}
#typegrid .window:not(.phone) .sidebar button.primary{background:#6c91f6;color:#111e3b;box-shadow:0 4px 10px #0002;margin:12px 0 5px}
#typegrid .window:not(.phone) .sidebar button.primary svg{color:#152544}
#typegrid .window:not(.phone) .sidebar .sectionlabel{border-color:#424958}
#typegrid .window:not(.phone) .sidebar .local-profile{border-top:1px solid #424958;border-radius:0;margin-top:4px;min-height:53px}
#typegrid .window:not(.phone) .sidebar .initials{background:#3b485f;color:#c8d8ff}
#typegrid .window:not(.phone) .side-brand{height:33px;margin:0 0 8px;opacity:.95}
#typegrid .library{background:light-dark(#f5f6f8,#22262e);padding:28px 16px;height:100%;overflow:auto}
#typegrid .library-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding:0 5px}
#typegrid .library-heading h2{margin:0;padding:0;font-size:22px;letter-spacing:-.7px}
#typegrid .library-heading button{width:32px;height:32px;padding:7px;border:1px solid var(--tg-line);border-radius:8px;background:var(--tg-paper)}
#typegrid .library-heading svg{width:16px;height:16px}
#typegrid .library h2 .subtitle{font-size:11px;background:transparent;padding:0;margin-left:5px}
#typegrid .list-caption{display:flex;justify-content:space-between;color:var(--tg-muted);font-size:10px;font-weight:600;letter-spacing:1.4px;padding:17px 8px 12px}
#typegrid .notecard{border:0!important;border-bottom:1px solid var(--tg-line)!important;border-radius:0;padding:18px 10px;margin:0;box-shadow:none!important}
#typegrid .notecard.selected{background:var(--tg-paper);border:1px solid light-dark(#dfe3ec,#404958)!important;border-radius:10px;padding:17px 10px;margin-bottom:2px}
#typegrid .notecard.selected:before{top:19px;bottom:19px;width:3px;background:var(--tg-blue)}
#typegrid .notecard strong{font-size:13px;line-height:1.5;font-weight:600;letter-spacing:-.1px}
#typegrid .notecard p{font-size:12px;line-height:1.6;margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#typegrid .meta{font-size:10px;letter-spacing:.1px}
#typegrid .editor{padding:0!important;background:var(--tg-paper);position:relative;overflow:auto}
#typegrid .editorhead{padding:12px 22px;margin:0;min-height:53px;border-bottom:1px solid var(--tg-line);gap:6px;background:var(--tg-paper)}
#typegrid .editorhead>button:first-child{font-weight:500;color:var(--tg-ink)}
#typegrid .toolbar{padding:10px 22px;margin:0;gap:4px;min-height:53px;background:light-dark(#fcfcfd,#21252c);border-bottom:1px solid var(--tg-line)}
#typegrid .toolbar button{color:var(--tg-muted);padding:7px 9px;border-radius:6px;gap:7px;min-height:30px;font-size:11px}
#typegrid .toolbar button:hover{background:var(--tg-soft);color:var(--tg-blue)}
#typegrid .font-picker{font-size:11px;max-width:105px;padding:6px 8px;background:transparent;border-color:transparent}
#typegrid .writing-sheet{max-width:760px;margin:0 auto;padding:44px 44px 26px}
#typegrid .document-eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--tg-muted);text-transform:uppercase;display:flex;align-items:center;gap:8px;margin-bottom:13px}
#typegrid .document-eyebrow:before{content:'';width:18px;height:1px;background:var(--tg-blue)}
#typegrid .note-title{font-family:Georgia,'Times New Roman','Segoe UI Emoji',serif!important;font-size:34px!important;font-weight:400;letter-spacing:-1px;line-height:1.3;min-height:46px;margin:0 0 26px}
#typegrid .rich-note{line-height:1.9;font-size:15px;color:var(--tg-ink);min-height:90px}
#typegrid .note-format-bar{border-radius:9px;margin:0 0 17px;box-shadow:0 3px 16px #1324410c}
#typegrid .attachment-row{background:transparent;padding:10px 0;border:0;border-radius:0;margin:20px 0 0;width:100%;gap:16px}
#typegrid .attachment-info strong{font-size:12px}#typegrid .attachment-info small{margin-top:5px}
#typegrid .folder-back{background:#9eb1d6}#typegrid .folder-back:before{background:#9eb1d6}#typegrid .folder-front{background:linear-gradient(#ccd9ef,#b3c5e5)}
#typegrid .footer{font-size:10px;margin-top:27px;padding-top:17px;border-top:1px solid var(--tg-line)}
#typegrid .time-island{top:3px!important;max-width:280px;font-size:10px!important}#typegrid .time-island-trigger{font-size:10px!important;min-height:33px}
#typegrid .upload-panel,#typegrid .share-panel{margin:16px 22px;border-radius:12px}
#typegrid .full{padding:36px 40px;max-width:1100px}
#typegrid .full>h2{font-size:28px;letter-spacing:-.8px;margin-bottom:25px}
#typegrid .profiles-section{gap:20px}#typegrid .profile-form{padding:23px;border-radius:13px;background:var(--tg-paper);box-shadow:none}
#typegrid .profile-form-heading{padding-bottom:19px;margin-bottom:18px;border-bottom:1px solid var(--tg-line)}
#typegrid .profile-name{min-height:42px;border-radius:7px;background:light-dark(#f8f9fb,#242a34)}
#typegrid .profile-actions{gap:7px}#typegrid .profile-actions button{font-size:12px}
#typegrid .feature{padding:20px 0}#typegrid .feature>div{font-size:14px}#typegrid .feature small{font-size:12px;line-height:1.6}
#typegrid .banner{background:light-dark(#f3f5f9,#252d3b);border:0;border-radius:10px;padding:18px 20px}
#typegrid .window:not(.phone) .welcome{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:0 44px;max-width:980px;width:100%;margin:0 auto!important;text-align:left}
#typegrid[data-screen=welcome] .window:not(.phone) .full{display:flex;align-items:center;padding:32px 40px;background:light-dark(#f6f7fa,#1d222b)}
#typegrid .welcome-story{background:#273348;border-radius:18px;padding:34px;color:#f1f4fc;position:relative;overflow:hidden}
#typegrid .welcome-story>img{width:50px;height:50px;object-fit:contain;margin-bottom:20px}
#typegrid .welcome-kicker{font-size:10px;letter-spacing:2px;color:#afc3ee;margin:0 0 15px}
#typegrid .welcome-story h1{font-family:Georgia,'Times New Roman',serif;font-size:42px!important;line-height:1.1!important;letter-spacing:-1.5px!important;font-weight:400;margin:0 0 20px!important}
#typegrid .welcome-story>p{font-size:13px;line-height:1.85;color:#bfcce0;margin:0 0 24px}
#typegrid .welcome .text-illustration{background:#34445f;border:1px solid #475875;box-shadow:none;color:#eaf0fc;border-radius:10px;padding:49px 18px 18px}
#typegrid .welcome .text-illustration p{color:#eaf0fc;font-size:12px;line-height:1.8;margin:0}
#typegrid .welcome .highlight-tools{background:#f6f8fd;color:#24334c;border:0}
#typegrid .welcome .illustration-highlight{background:#698ad088}
#typegrid .welcome .banner{display:flex;padding:0;margin:24px 0 0;background:transparent;color:#bfcce0;gap:12px;border:0}
#typegrid .welcome-benefit{font-size:10px;color:#bfcce0}#typegrid .welcome-benefit:before{color:#a9c4ff}
#typegrid .welcome-setup{align-self:center;min-width:0}
#typegrid .welcome-setup>h2{font-size:24px;letter-spacing:-.5px;margin:0 0 9px}
#typegrid .welcome-setup>p{font-size:13px;line-height:1.7;color:var(--tg-muted);margin:0 0 25px}
#typegrid .welcome-setup .profile-form{padding:0;background:transparent;border:0}
#typegrid .welcome-setup>.subtitle{font-size:11px;margin-top:22px;text-align:left}
#typegrid:not([data-screen=welcome]) .window:not(.phone) .welcome{display:block!important;text-align:center;margin:90px auto!important}
#typegrid .phone{height:760px;max-width:400px;border-radius:31px;border:4px solid #29313d;background:var(--tg-paper)}
#typegrid .phone>.titlebar{height:85px;min-height:85px;background:var(--tg-paper);padding:22px 20px 12px;border-bottom:1px solid var(--tg-line)}
#typegrid .phone .titlebar .brand{font-size:19px;font-weight:600}
#typegrid .phone .library{padding:26px 18px;background:var(--tg-paper);height:auto}
#typegrid .phone .library-heading{padding:0;margin-bottom:19px}#typegrid .phone .library-heading h2{font-size:29px;letter-spacing:-1px}
#typegrid .phone .library-heading button{width:40px;height:40px;background:var(--tg-blue);color:white;border:0;border-radius:12px}
#typegrid .phone .list-caption{padding-left:0;padding-right:0;font-size:10px}
#typegrid .phone .notecard{border-radius:13px;border:1px solid var(--tg-line)!important;background:light-dark(#f7f8fa,#252c36);padding:20px 16px;margin:0 0 12px}
#typegrid .phone .notecard.selected{background:var(--tg-soft);border-color:light-dark(#d1ddfa,#455b82)!important;padding:20px 16px}
#typegrid .phone .notecard strong{font-size:15px}#typegrid .phone .notecard p{font-size:13px;margin-bottom:16px}#typegrid .phone .meta{font-size:11px}
#typegrid .phone .library>.primary{display:none}
#typegrid .phone .writing-sheet{padding:30px 22px 24px}
#typegrid .phone .document-eyebrow{font-size:9px;margin-bottom:12px}
#typegrid .phone .note-title{font-size:29px!important;letter-spacing:-.7px}
#typegrid .phone .editorhead{padding:9px 15px;min-height:49px}
#typegrid .phone .toolbar{padding:8px 13px;gap:2px;min-height:50px}
#typegrid .phone .toolbar button{min-height:40px;padding:7px 6px;font-size:11px;gap:4px}
#typegrid .phone .font-picker{font-size:11px;min-height:35px}
#typegrid .phone .rich-note{line-height:1.85;font-size:16px}
#typegrid .phone>.mobilebar{border-top:1px solid var(--tg-line);background:var(--tg-paper);padding:8px 8px 15px;min-height:73px}
#typegrid .phone .mobilebar button{gap:5px;border-radius:12px;font-size:10px;min-height:48px}
#typegrid .phone .mobilebar button.selected{background:var(--tg-soft);color:var(--tg-blue)}
#typegrid .phone .mobilebar [data-action=new]{background:#273348;color:#e7efff;margin:0 4px}
#typegrid .phone .time-island{top:48px!important;max-width:250px}
#typegrid .phone .full{padding:25px 20px}#typegrid .phone .full>h2{font-size:28px}
#typegrid .phone .welcome{display:block;text-align:left;margin:0;max-width:100%}
#typegrid .phone .welcome-story{padding:25px;border-radius:15px;margin-bottom:28px}
#typegrid .phone .welcome-story>img{width:36px;height:36px;margin-bottom:15px}
#typegrid .phone .welcome-story h1{font-size:33px!important;letter-spacing:-.7px!important}
#typegrid .phone .welcome-story>p{font-size:12px;line-height:1.8}
#typegrid .phone .welcome .text-illustration{padding:47px 14px 15px}
#typegrid .phone .welcome-setup>h2{font-size:23px}
#typegrid .phone .welcome .banner{justify-content:flex-start;gap:12px}
#typegrid .phone .attachment-row{padding:7px 0;border:0;background:transparent}
@media(max-height:800px){#typegrid .window:not(.phone){height:610px}#typegrid .phone{height:690px}}
@media(max-width:1050px){#typegrid .window:not(.phone)>.layout,#typegrid .window:not(.phone) .layout:has(.sidebar:hover),#typegrid .window:not(.phone) .layout:has(.sidebar:focus-within){grid-template-columns:64px 225px minmax(0,1fr)!important}#typegrid .writing-sheet{padding:35px 30px}#typegrid .window:not(.phone) .welcome{gap:28px;grid-template-columns:1fr 1fr}#typegrid .welcome-story{padding:27px}#typegrid .welcome-story h1{font-size:35px!important}}
@media(max-width:760px){#typegrid .window:not(.phone) .welcome{display:block!important}#typegrid .welcome-story{margin-bottom:25px}#typegrid .window:not(.phone) .library{display:none}#typegrid .window:not(.phone) .editor{grid-column:2/4}#typegrid .full{padding:25px}}


#typegrid .mobile-library-toggle,#typegrid .mobile-nav-shade{display:none}
#typegrid .phone{position:relative}
#typegrid .phone .mobile-library-toggle{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:10px;margin-left:4px;color:var(--tg-muted)}
#typegrid .phone .mobile-library-toggle svg{width:20px;height:20px}
#typegrid.mobile-nav-open .phone .mobile-nav-shade{display:block;position:absolute;inset:85px 0 0;background:#16213666;border-radius:0;z-index:39}
#typegrid.mobile-nav-open .phone .sidebar{display:flex!important;position:absolute;left:0;top:85px;bottom:0;width:245px;height:auto;padding:18px 14px;flex-direction:column;flex-wrap:nowrap;background:var(--tg-bg);overflow:auto;z-index:40;border:0;box-shadow:12px 0 30px #0002;gap:4px}
#typegrid.mobile-nav-open .phone .sidebar .nav-label{display:block!important;opacity:1!important;font-size:13px;transform:none}
#typegrid.mobile-nav-open .phone .sidebar button{width:100%;min-height:44px;justify-content:flex-start;gap:13px;padding:10px 13px;color:var(--tg-ink)}
#typegrid.mobile-nav-open .phone .sidebar .side-brand{display:flex;margin-bottom:8px}
#typegrid.mobile-nav-open .phone .sidebar .primary{margin:0 0 10px;background:var(--tg-blue);color:white}
#typegrid.mobile-nav-open .phone .sidebar .sectionlabel{display:block;padding:12px 10px 8px}
#typegrid.mobile-nav-open .phone .sidebar .spacer{display:block;min-height:16px}
#typegrid.mobile-nav-open .phone .sidebar .category-form:not([hidden]){display:block;position:static;width:100%;padding:8px 0;background:var(--tg-bg)}
#typegrid.mobile-nav-open .phone .sidebar .category-form input{width:100%}
#typegrid.mobile-nav-open .phone .sidebar .category-form button{width:auto;display:inline-flex;min-height:40px}
#typegrid.mobile-nav-open .phone .sidebar .local-profile{width:100%;padding:14px 8px}

#typegrid .editor>.note-format-bar{display:flex;align-items:center;gap:3px;width:100%;margin:0;padding:8px 25px;border:0;border-bottom:1px solid var(--tg-line);border-radius:0;background:var(--tg-paper);box-shadow:none;min-height:47px}
#typegrid .editor>.note-format-bar button{width:34px;height:31px;padding:5px 8px;border-radius:6px;font-size:13px;color:var(--tg-ink)}
#typegrid .editor>.note-format-bar button[aria-pressed=true]{background:var(--tg-soft);color:var(--tg-blue)}
#typegrid .editor>.note-format-bar button:last-child{margin-left:7px;border-left:1px solid var(--tg-line);border-radius:0 6px 6px 0}
#typegrid .phone .editor>.note-format-bar{padding:5px 16px;min-height:50px}
#typegrid .phone .editor>.note-format-bar button{width:44px;height:40px}

/* One neutral surface palette and one blue accent across both platforms. */
#typegrid{--tg-paper:light-dark(#fafbfc,#202329);--tg-bg:light-dark(#fafbfc,#202329);--tg-ink:light-dark(#242933,#edf0f5);--tg-muted:light-dark(#6e7785,#aab3c1);--tg-line:light-dark(#e1e5ec,#373e49);--tg-soft:light-dark(#e8efff,#2d3d60);--tg-blue:light-dark(#365edc,#98b4ff)}
#typegrid .window:not(.phone)>.titlebar,#typegrid .window:not(.phone) .sidebar,#typegrid .library,#typegrid .editor,#typegrid .editorhead,#typegrid .toolbar,#typegrid .full,#typegrid[data-screen=welcome] .window:not(.phone) .full,#typegrid .phone .library,#typegrid .phone>.titlebar,#typegrid .phone>.mobilebar{background:var(--tg-paper);color:var(--tg-ink)}
#typegrid .window:not(.phone) .sidebar{border-right:1px solid var(--tg-line)}
#typegrid .window:not(.phone) .sidebar button,#typegrid .window:not(.phone) .sidebar svg{color:var(--tg-muted)}
#typegrid .window:not(.phone) .sidebar button:hover{background:var(--tg-soft)}
#typegrid .window:not(.phone) .sidebar button.selected{background:var(--tg-soft);color:var(--tg-blue)}
#typegrid .window:not(.phone) .sidebar button.selected svg{color:var(--tg-blue)}
#typegrid .window:not(.phone) .sidebar button.primary,#typegrid .phone .mobilebar [data-action=new],#typegrid .phone .library-heading button{background:var(--tg-blue);color:light-dark(#fff,#17233d)}
#typegrid .window:not(.phone) .sidebar button.primary svg{color:inherit}
#typegrid .window:not(.phone) .sidebar .sectionlabel,#typegrid .window:not(.phone) .sidebar .local-profile{border-color:var(--tg-line)}
#typegrid .window:not(.phone) .sidebar .initials{background:var(--tg-soft);color:var(--tg-blue)}
#typegrid .welcome-story{background:var(--tg-paper);color:var(--tg-ink);border:1px solid var(--tg-line)}
#typegrid .welcome-kicker{color:var(--tg-blue)}
#typegrid .welcome-story>p,#typegrid .welcome .banner,#typegrid .welcome-benefit{color:var(--tg-muted)}
#typegrid .welcome .text-illustration{background:var(--tg-paper);border-color:var(--tg-line);color:var(--tg-ink)}
#typegrid .welcome .text-illustration p{color:var(--tg-ink)}
#typegrid .welcome .highlight-tools{background:var(--tg-paper);color:var(--tg-ink);border:1px solid var(--tg-line)}
#typegrid .welcome .illustration-highlight{background:var(--tg-soft);color:var(--tg-ink)}
#typegrid .welcome-benefit:before{color:var(--tg-blue)}
#typegrid .profile-name,#typegrid .banner,#typegrid .phone .notecard{background:var(--tg-paper)}
#typegrid .notecard.selected,#typegrid .phone .notecard.selected{background:var(--tg-soft);border-color:var(--tg-line)!important}
#typegrid .notecard:hover{background:var(--tg-soft)}
#typegrid .phone .mobilebar [data-action=new] svg{color:inherit}

/* Restore the distinct, expandable save-status island. */
#typegrid .titlebar .time-island,#typegrid .titlebar .time-island.open{background:#202226!important;color:#f5f6fa!important;border:1px solid #34373d!important;border-radius:22px!important;box-shadow:0 4px 13px #0002!important;top:4px!important;min-width:240px;max-width:calc(100% - 310px);overflow:hidden;transition:width .15s ease,border-radius .15s ease}
#typegrid .titlebar .time-island-trigger{color:#f5f6fa!important;font-size:10px!important;padding:8px 14px;min-height:33px}
#typegrid .titlebar .time-island .island-chevron{color:#b7bcc7}
#typegrid .titlebar .time-island .island-detail .saved-time{color:#f0f2f7}
#typegrid .titlebar .time-island .island-detail small{color:#abb4c4;font-size:10px}
#typegrid .titlebar .time-island.open{border-radius:17px!important}
#typegrid .phone .titlebar .time-island{top:47px!important;min-width:235px;max-width:calc(100% - 32px)}
#typegrid .phone .titlebar .time-island-trigger{padding:6px 12px;min-height:29px}

#typegrid .editor-context,#typegrid .note-actions{overflow:hidden;border-radius:11px!important;background:var(--tg-paper)!important;background-clip:padding-box;filter:none!important;clip-path:none!important}
#typegrid .goo-menu-surface{display:none!important}

#typegrid .gooey-search{width:112px;max-width:100%;height:42px;border:1px solid var(--tg-line);border-radius:21px;background:var(--tg-paper);transition:width .18s cubic-bezier(.22,1,.36,1),box-shadow .15s;isolation:isolate}
#typegrid .gooey-search.open{width:320px}
#typegrid .gooey-search .gooey-surfaces{display:none}
#typegrid .gooey-search .gooey-trigger{height:40px;top:0;left:0;background:transparent}
#typegrid .gooey-search.open .gooey-trigger{width:40px}
#typegrid .gooey-search .search{left:42px;top:0;height:40px;width:calc(100% - 78px);padding:0 2px;border:0!important;border-radius:0;background:transparent!important;outline:none!important;box-shadow:none!important}
#typegrid .gooey-search:focus-within{border-color:var(--tg-blue);box-shadow:0 0 0 2px var(--tg-soft)}
#typegrid .gooey-search .gooey-clear{top:4px;right:4px;width:30px;height:32px;background:transparent}
#typegrid .gooey-search .gooey-clear:hover{background:var(--tg-soft)}
@media(prefers-reduced-motion:reduce){#typegrid .gooey-search{transition:none}}

#typegrid .full.settings-page{max-width:820px;margin:0 auto;padding:28px 38px 20px}
#typegrid .settings-heading{margin-bottom:24px}
#typegrid .settings-heading h2{font-size:26px;letter-spacing:-.6px;margin:0 0 6px}
#typegrid .settings-heading p{font-size:12px;color:var(--tg-muted);margin:0}
#typegrid .settings-group{margin:0 0 22px}
#typegrid .settings-group h3{font-size:11px;font-weight:600;letter-spacing:.6px;color:var(--tg-muted);margin:0 0 5px}
#typegrid .settings-profile-row{display:flex;align-items:center;gap:13px;min-height:67px;padding:10px 0;border-bottom:1px solid var(--tg-line)}
#typegrid .settings-profile-row .user-avatar{width:36px;height:36px;flex-shrink:0}
#typegrid .settings-profile-name{flex:1;min-width:0}
#typegrid .settings-profile-name strong{font-size:13px;font-weight:600;display:block;overflow-wrap:anywhere}
#typegrid .settings-profile-name small{font-size:11px;color:var(--tg-muted);display:block;margin-top:4px}
#typegrid .settings-page button[data-edit-profile],#typegrid .settings-page .profile-switch,#typegrid .settings-page [data-action=backup]{border:1px solid var(--tg-line);padding:7px 12px;border-radius:7px;font-size:12px;background:var(--tg-paper);white-space:nowrap}
#typegrid .settings-page button:hover{background:var(--tg-soft)}
#typegrid .settings-page .profile-switch{color:var(--tg-blue)}
#typegrid .settings-profile-editor{padding:14px 0 6px}
#typegrid .settings-profile-editor[hidden]{display:none}
#typegrid .settings-profile-editor .profile-form{border:1px solid var(--tg-line);border-radius:10px;padding:18px}
#typegrid .settings-profile-editor .profile-form-heading{display:none}
#typegrid .settings-profile-editor [data-switch-profile]{display:none}
#typegrid .settings-page .feature{min-height:49px;padding:11px 0;gap:16px;align-items:center}
#typegrid .settings-page .feature>div{font-size:13px}
#typegrid .settings-page .feature small{font-size:11px;margin-top:4px;line-height:1.5}
#typegrid .settings-page .feature select{min-width:108px;font-size:12px;padding:7px 9px}
#typegrid .settings-status{font-size:11px;color:var(--tg-muted);white-space:nowrap}
#typegrid .settings-status span{color:var(--tg-blue);font-size:8px;margin-right:4px}
#typegrid .settings-about{font-size:11px;color:var(--tg-muted);display:flex;gap:10px;padding-top:0}
#typegrid .settings-about span{opacity:.8}
#typegrid .phone .full.settings-page{padding:24px 20px}
#typegrid .phone .settings-profile-row{gap:10px}
#typegrid .phone .settings-page button[data-edit-profile],#typegrid .phone .settings-page .profile-switch{padding:7px 9px;min-height:40px}
#typegrid .phone .settings-page .feature{gap:10px}
#typegrid .phone .settings-page .feature select{min-width:95px;max-width:110px}

#typegrid .tg-icon{display:inline-block;width:20px;height:20px;flex:0 0 auto;vertical-align:middle;color:inherit;pointer-events:none}
#typegrid .tg-icon path,#typegrid .tg-icon circle,#typegrid .tg-icon rect{vector-effect:non-scaling-stroke}
#typegrid .sidebar .tg-icon{width:21px;height:21px}
#typegrid .sidebar button{transition:background .18s,color .18s,box-shadow .18s}
#typegrid .sidebar button.selected{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tg-blue) 15%,transparent)}
#typegrid .toolbar .tg-icon{width:17px;height:17px}
#typegrid .toolbar button{gap:7px;font-size:12px}
#typegrid .editor>.note-format-bar .tg-icon{width:18px;height:18px}
#typegrid .editor-context button,#typegrid .note-actions button{display:flex;align-items:center;gap:11px}
#typegrid .editor-context .tg-icon,#typegrid .note-actions .tg-icon{width:16px;height:16px;color:var(--tg-muted)}
#typegrid .gooey-trigger .tg-icon{width:19px;height:19px}
#typegrid .mobilebar .tg-icon{width:22px;height:22px}
#typegrid .upload-tile .tg-icon{width:26px;height:26px;color:var(--tg-blue)}
#typegrid .icon-credits{font-size:10px;color:var(--tg-muted);margin-top:12px}
#typegrid .icon-credits p{line-height:1.7;margin:7px 0}
#typegrid .icon-credits a{color:var(--tg-blue)}

#typegrid .rich-note .note-check{display:inline-flex;align-items:center;justify-content:center;vertical-align:baseline;width:20px;height:22px;min-height:0;margin:0 3px 0 0;padding:0;border:0;border-radius:4px;background:transparent;color:var(--tg-muted);font-family:'Segoe UI Symbol','Segoe UI',sans-serif;font-size:18px;line-height:1;cursor:pointer;user-select:none}
#typegrid .rich-note .note-check:hover{background:var(--tg-soft);color:var(--tg-blue)}
#typegrid .rich-note .note-check[aria-checked=true]{color:var(--tg-blue)}
#typegrid .phone .rich-note .note-check{width:28px;height:28px;font-size:21px}

#typegrid .creator-credit{margin-top:20px;padding-top:15px;border-top:1px solid var(--tg-line);text-align:left}
#typegrid .creator-credit>span{display:block;color:var(--tg-muted);font-size:11px;line-height:1.5}
#typegrid .creator-credit>strong{display:block;color:var(--tg-ink);font-size:13px;font-weight:600;margin-top:4px;line-height:1.5}
#typegrid .settings-page .creator-credit{margin-top:16px;padding-top:14px}

#typegrid .welcome-story>img.brand-platforms{display:block;width:100%;height:auto;max-height:150px;object-fit:contain;margin:0 0 20px;background:white;border-radius:9px}
#typegrid .welcome-setup>img.brand-wordmark{display:block;width:210px;max-width:100%;height:auto;margin:0 0 18px;background:white;border-radius:8px}
#typegrid .brand-about{margin-top:12px;border-top:1px solid var(--tg-line);padding-top:14px;color:var(--tg-muted);font-size:12px}
#typegrid .brand-about summary{cursor:pointer;color:var(--tg-ink);font-weight:600}
#typegrid .brand-about img{display:block;width:100%;max-width:420px;height:auto;border-radius:10px;margin:15px 0 10px;background:white}
#typegrid .brand-about a{display:inline-block;color:var(--tg-blue);font-size:12px;padding:4px 0}
#typegrid .phone .welcome-story>img.brand-platforms{width:100%;height:auto;max-height:125px;margin-bottom:20px}
#typegrid .phone .welcome-setup>img.brand-wordmark{width:180px;margin-bottom:16px}

html,body{margin:0;min-height:100%;background:#fff;font-family:'Segoe UI',sans-serif}#typegrid .previewbar,#typegrid .toast:empty{display:none}#typegrid .window{border:0;border-radius:0;box-shadow:none;min-height:100vh}#typegrid .titlebar .win-controls{display:none}#typegrid .titlebar{padding-right:20px}#typegrid .window.phone{max-width:none;margin:0;border:0;border-radius:0;box-shadow:none}#typegrid .window.phone .layout{min-height:calc(100vh - 185px)}#typegrid .toast{padding:9px 16px}#typegrid .phone .mobilebar{position:sticky;bottom:0;z-index:12}#typegrid .note-more{display:none}#typegrid .phone .note-more{display:block;position:absolute;right:6px;top:6px;padding:5px 10px;font-size:21px;z-index:2}#typegrid .phone .sidebar:has(.category-form:not([hidden])){display:block;position:relative;z-index:20}#typegrid .phone .sidebar:has(.category-form:not([hidden]))>*:not(.category-form){display:none}#typegrid .category-settings{background:var(--tg-soft);color:var(--tg-blue);margin-bottom:12px}#typegrid .sidebar .nav-label{max-width:175px;overflow:hidden;text-overflow:ellipsis}#typegrid .titlebar .time-island{max-width:calc(100% - 200px)}@media(max-width:650px){#typegrid .titlebar .time-island{max-width:calc(100% - 24px)}}

html,body{height:100%;overflow:hidden;color-scheme:light dark;background:var(--tg-paper,#fafbfc)}
#typegrid{height:100%;display:flex;flex-direction:column}
#typegrid .window:not(.phone),#typegrid .window.phone{height:100%!important;min-height:0!important;max-width:none;width:100%;flex:1;border:0!important;border-radius:0!important;box-shadow:none!important}
#typegrid .window:not(.phone)>.layout{min-height:0!important;flex:1}
#typegrid .window.phone>.layout{min-height:0!important;flex:1;overflow-y:auto}
#typegrid .toast{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);z-index:60;border-radius:8px;background:var(--tg-paper);box-shadow:0 3px 20px #0002;max-width:90%;pointer-events:none}
#typegrid .phone .mobilebar{position:static;flex-shrink:0}
#typegrid .phone .sidebar:has(.category-form:not([hidden])){position:absolute;top:85px;bottom:0;left:0;width:245px;z-index:40}
#typegrid .phone .sidebar:has(.category-form:not([hidden]))>*:not(.category-form){display:initial}
#typegrid .phone .note-more{position:absolute;right:5px;top:4px;min-height:40px;min-width:35px}
#typegrid .phone .notecard strong{padding-right:25px}
#typegrid .androidtime{display:none}

/* Native Windows chrome; the preview keeps the same content without OS controls. */
body.typegrid-native #typegrid .titlebar .win-controls{display:flex}
body.typegrid-native #typegrid .titlebar{padding-right:0;-webkit-app-region:drag}
body.typegrid-native #typegrid .titlebar button,body.typegrid-native #typegrid .titlebar a,body.typegrid-native #typegrid .titlebar .time-island{-webkit-app-region:no-drag}

/* Window sizing and bundled typography */
@font-face{font-family:'TypeGrid Sans';src:url('./fonts/source-sans-3.ttf') format('truetype');font-style:normal;font-weight:400 700;font-display:swap}
@font-face{font-family:'TypeGrid Serif';src:url('./fonts/source-serif-4.ttf') format('truetype');font-style:normal;font-weight:400 700;font-display:swap}
html,body{font-family:'TypeGrid Sans','Segoe UI',sans-serif}
#typegrid{max-width:none;font-family:'TypeGrid Sans','Segoe UI','Segoe UI Emoji',sans-serif}
#typegrid .welcome-story h1,#typegrid .note-title{font-family:'TypeGrid Serif',Georgia,serif!important;letter-spacing:0!important}
#typegrid .window:not(.phone)>.layout{grid-template-columns:64px minmax(205px,270px) minmax(0,1fr)!important}
#typegrid .window:not(.phone) .layout:has(.sidebar:hover),#typegrid .window:not(.phone) .layout:has(.sidebar:focus-within){grid-template-columns:64px minmax(205px,270px) minmax(0,1fr)!important}
#typegrid .window:not(.phone) .full{grid-column:2 / -1;min-width:0;max-width:none;overflow-y:auto;overflow-x:hidden}
#typegrid .window:not(.phone) .welcome{min-width:0}
#typegrid .window:not(.phone) .welcome-story,#typegrid .window:not(.phone) .welcome-setup{min-width:0}
#typegrid .window:not(.phone) .editor,#typegrid .window:not(.phone) .library{min-width:0}
#typegrid .window:not(.phone) .writing-sheet{width:100%;max-width:760px}
#typegrid .window:not(.phone) .titlebar{min-width:0}
@media(max-width:900px){
 #typegrid .window:not(.phone)>.layout,#typegrid .window:not(.phone) .layout:has(.sidebar:hover),#typegrid .window:not(.phone) .layout:has(.sidebar:focus-within){grid-template-columns:64px minmax(0,1fr)!important}
 #typegrid .window:not(.phone) .full,#typegrid .window:not(.phone) .editor,#typegrid .window:not(.phone) .library{grid-column:2 / -1;grid-row:1;height:100%;min-width:0;overflow-y:auto;overflow-x:hidden}
 #typegrid .window:not(.phone) .library{display:none}
 #typegrid[data-screen=notes] .window:not(.phone) .library{display:block}
 #typegrid[data-screen=notes] .window:not(.phone) .editor{display:none}
 #typegrid .window:not(.phone) .welcome{display:block!important;width:100%;max-width:580px;margin:auto!important}
 #typegrid .window:not(.phone) .welcome-story{margin-bottom:22px}
 #typegrid[data-screen=welcome] .window:not(.phone) .full{display:block;padding:24px}
 #typegrid .window:not(.phone) .sidebar{grid-row:1;grid-column:1;height:100%;min-height:0}
 #typegrid .window:not(.phone) .sidebar:hover,#typegrid .window:not(.phone) .sidebar:focus-within{width:64px;box-shadow:none}
}
@media(max-width:460px){
 #typegrid .window:not(.phone)>.layout,#typegrid .window:not(.phone) .layout:has(.sidebar:hover),#typegrid .window:not(.phone) .layout:has(.sidebar:focus-within){display:grid;grid-template-columns:52px minmax(0,1fr)!important}
 #typegrid .window:not(.phone) .sidebar{width:52px!important;flex-direction:column;flex-wrap:nowrap;overflow:hidden;padding:12px 6px}
 #typegrid .window:not(.phone) .sidebar button{width:40px}
 #typegrid .window:not(.phone) .full{padding:16px!important}
 #typegrid .window:not(.phone) .welcome-story{padding:19px}
 #typegrid .window:not(.phone) .welcome-story h1{font-size:30px!important}
 #typegrid .window:not(.phone) .writing-sheet{padding:25px 18px}
 #typegrid .window:not(.phone) .editorhead,#typegrid .window:not(.phone) .toolbar{padding-left:12px;padding-right:12px}
}
#typegrid .content>section{animation:tg-view-in .22s ease-out both}
@keyframes tg-view-in{from{opacity:.55;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#typegrid .content>section{animation:none}}
#typegrid .saved[data-state=saving]{color:var(--tg-blue)}
#typegrid .saved[data-state=error]{color:var(--tg-ink);font-weight:600}
/* Use the entire workspace width on wide Windows displays. */
@media(min-width:901px){
 #typegrid[data-screen=welcome] .window:not(.phone) .full{padding:clamp(24px,3vw,48px)!important;align-items:stretch!important}
 #typegrid[data-screen=welcome] .window:not(.phone) .welcome{max-width:none!important;width:100%;height:100%;min-height:0;margin:0!important;grid-template-columns:minmax(0,1fr) minmax(320px,1fr)!important;gap:clamp(24px,3vw,54px)!important;align-items:center}
 #typegrid[data-screen=welcome] .window:not(.phone) .welcome-story{width:100%;height:100%;max-height:790px;display:flex;flex-direction:column;justify-content:center}
 #typegrid[data-screen=welcome] .window:not(.phone) .welcome-setup{width:100%;max-width:650px;justify-self:center}
}
/* Editorial Precision — offline workspace */
@font-face{font-family:'Outfit';src:url('./fonts/outfit.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:'Figtree';src:url('./fonts/figtree.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:'Roboto';src:url('./fonts/roboto.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Open Sans';src:url('./fonts/open-sans.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Lato';src:url('./fonts/lato.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Montserrat';src:url('./fonts/montserrat.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Oswald';src:url('./fonts/oswald.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Raleway';src:url('./fonts/raleway.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Merriweather';src:url('./fonts/merriweather.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Playfair Display';src:url('./fonts/playfair-display.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Nunito';src:url('./fonts/nunito.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Ubuntu';src:url('./fonts/ubuntu.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'PT Sans';src:url('./fonts/pt-sans.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'PT Serif';src:url('./fonts/pt-serif.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Libre Baskerville';src:url('./fonts/libre-baskerville.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Crimson Pro';src:url('./fonts/crimson-pro.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Work Sans';src:url('./fonts/work-sans.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'DM Sans';src:url('./fonts/dm-sans.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Manrope';src:url('./fonts/manrope.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Rubik';src:url('./fonts/rubik.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Noto Sans';src:url('./fonts/noto-sans.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Noto Serif';src:url('./fonts/noto-serif.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('./fonts/jetbrains-mono.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Space Mono';src:url('./fonts/space-mono.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
#typegrid{--tg-bg:light-dark(#f5f7f7,#141a1b);--tg-paper:light-dark(#ffffff,#1c2425);--tg-ink:light-dark(#1f292a,#e6eeec);--tg-muted:light-dark(#677776,#9aaba8);--tg-line:light-dark(#dce6e3,#2c3839);--tg-soft:light-dark(#d9eee8,#1f3a35);--tg-blue:light-dark(#168578,#4fc4b3);font-family:'Figtree','Segoe UI',sans-serif;letter-spacing:0}
html,body{background:#f5f7f7;color-scheme:light;font-family:'Figtree','Segoe UI',sans-serif}
#typegrid .window:not(.phone)>.layout,#typegrid .window:not(.phone) .layout:has(.sidebar:hover),#typegrid .window:not(.phone) .layout:has(.sidebar:focus-within){display:grid;grid-template-columns:188px minmax(0,1fr)!important;transition:none}
#typegrid .window:not(.phone) .sidebar{grid-column:1;grid-row:1;width:auto!important;height:100%;padding:22px 12px 16px;background:var(--tg-soft);border-right:1px solid var(--tg-line);overflow-y:auto;overflow-x:hidden;gap:5px}
#typegrid .window:not(.phone) .sidebar .nav-label{opacity:1;pointer-events:auto;transform:none}
#typegrid .window:not(.phone) .sidebar button{width:100%;min-height:40px;padding:8px 9px;gap:8px;border-radius:6px;color:var(--tg-ink);font-size:13px;font-weight:500}
#typegrid .window:not(.phone) .sidebar button:hover{background:color-mix(in srgb,var(--tg-blue) 10%,transparent)}
#typegrid .window:not(.phone) .sidebar button.selected{background:var(--tg-paper);color:var(--tg-blue);box-shadow:none}
#typegrid .window:not(.phone) .sidebar button.selected svg{color:var(--tg-blue)}
#typegrid .window:not(.phone) .sidebar button.primary{background:var(--tg-blue);color:var(--tg-paper);margin:0 0 12px;box-shadow:none;border:0;justify-content:center;font-weight:600}
#typegrid .window:not(.phone) .sidebar button.primary svg{color:var(--tg-paper)}
#typegrid .window:not(.phone) .sidebar button.primary:hover{background:color-mix(in srgb,var(--tg-blue) 86%,var(--tg-ink))}
#typegrid .window:not(.phone) .sidebar .sectionlabel{height:auto;min-height:0;padding:18px 9px 7px;margin:0;background:none;font-size:10px;color:var(--tg-muted);font-weight:700}
#typegrid .window:not(.phone) .sidebar .local-profile{border-top:1px solid var(--tg-line);border-radius:0;margin-top:14px}
#typegrid .window:not(.phone) .sidebar .side-brand{height:auto;min-height:38px;margin:0 0 7px;padding:0 8px;gap:9px;opacity:1;font:600 18px 'Outfit',sans-serif;color:var(--tg-ink)}
#typegrid .window:not(.phone) .sidebar .side-brand img{width:31px;height:31px;object-fit:contain}
#typegrid .window:not(.phone) .sidebar svg,#typegrid .window:not(.phone) .sidebar i{color:var(--tg-muted)}
#typegrid .window:not(.phone) .full,#typegrid .window:not(.phone) .editor,#typegrid .window:not(.phone) .library{grid-column:2 / -1;grid-row:1;min-width:0;width:100%;max-width:none;height:100%;overflow-y:auto;overflow-x:hidden}
#typegrid .titlebar{height:48px;min-height:48px;padding:8px 20px;background:var(--tg-paper);border-bottom:1px solid var(--tg-line)}
#typegrid .titlebar .brand{font:600 14px 'Outfit',sans-serif;color:var(--tg-ink)}
#typegrid .library{background:var(--tg-bg);padding:clamp(24px,4vw,56px)!important}
#typegrid .library-heading,#typegrid .library .gooey-search,#typegrid .library .list-caption,#typegrid .library .cards{max-width:880px;margin-left:auto;margin-right:auto}
#typegrid .library-heading h2,#typegrid .full>h2{font:600 30px 'Outfit',sans-serif;letter-spacing:0}
#typegrid .library .cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;align-content:start}
#typegrid .notecard,#typegrid .notecard.selected{width:100%;height:100%;min-height:152px;margin:0;padding:20px!important;border:1px solid var(--tg-line)!important;border-radius:6px!important;background:var(--tg-paper);box-shadow:none!important}
#typegrid .notecard.selected{border-color:var(--tg-blue)!important;background:var(--tg-paper);color:var(--tg-ink)}
#typegrid .notecard.selected p,#typegrid .notecard.selected .meta{color:var(--tg-muted)}
#typegrid .notecard.selected:before{background:var(--tg-blue);top:20px;bottom:20px}
#typegrid .notecard strong{font:600 16px 'Outfit',sans-serif;letter-spacing:0}
#typegrid .note-more{right:10px;top:10px}
#typegrid .editor{background:var(--tg-paper)}
#typegrid .editorhead{min-height:58px;padding:12px clamp(18px,4vw,48px);background:var(--tg-paper)}
#typegrid .toolbar{position:sticky;top:0;z-index:5;min-height:52px;padding:9px clamp(18px,4vw,48px);background:var(--tg-paper);border-bottom:1px solid var(--tg-line);flex-wrap:wrap}
#typegrid .toolbar button{font-size:12px;color:var(--tg-ink)}
#typegrid .writing-sheet{width:min(100%,780px)!important;max-width:780px!important;min-height:calc(100% - 115px);margin:0!important;padding:clamp(36px,6vw,82px) clamp(24px,3vw,40px) 36px!important}
#typegrid .note-title{font-family:'Outfit','Segoe UI',sans-serif!important;font-size:clamp(30px,3vw,42px)!important;font-weight:600;letter-spacing:0!important;line-height:1.25;margin-bottom:26px}
#typegrid .document-eyebrow{color:var(--tg-blue);letter-spacing:0;font-weight:600}
#typegrid .rich-note,#typegrid .editor textarea{font-family:'Figtree','Segoe UI',sans-serif;line-height:1.85}
#typegrid .editor>.note-format-bar{position:sticky;top:52px;z-index:4;background:var(--tg-paper)}
#typegrid .full{background:var(--tg-bg)}
#typegrid[data-screen=welcome] .window:not(.phone) .full{display:block;padding:clamp(28px,5vw,70px)!important}
#typegrid[data-screen=welcome] .window:not(.phone) .welcome{display:flex!important;flex-direction:column;gap:28px!important;align-items:stretch;width:min(100%,900px)!important;height:auto!important;margin:0 auto!important;max-width:900px!important}
#typegrid[data-screen=welcome] .window:not(.phone) .welcome-story{width:100%;height:auto;max-height:none;display:block;padding:clamp(25px,4vw,45px);background:var(--tg-paper);border:1px solid var(--tg-line);border-radius:6px}
#typegrid .welcome-story h1{font-family:'Outfit',sans-serif!important;font-weight:600!important;letter-spacing:0!important;color:var(--tg-ink)}
#typegrid[data-screen=welcome] .window:not(.phone) .welcome-setup{width:100%;max-width:none;align-self:stretch}
#typegrid .welcome-kicker,#typegrid .welcome-benefit:before{color:var(--tg-blue)}
#typegrid .welcome .highlight-tools{background:var(--tg-soft)}
#typegrid .welcome .illustration-highlight{background:var(--tg-soft)}
#typegrid .saved[data-state=saving]{color:var(--tg-blue)}
#typegrid .sidebar button,#typegrid .notecard,#typegrid .toolbar button{transition:background-color .18s ease,border-color .18s ease,color .18s ease}
@media(max-width:700px){
 #typegrid .window:not(.phone)>.layout,#typegrid .window:not(.phone) .layout:has(.sidebar:hover),#typegrid .window:not(.phone) .layout:has(.sidebar:focus-within){grid-template-columns:62px minmax(0,1fr)!important}
 #typegrid .window:not(.phone) .sidebar{padding:15px 8px;width:62px!important;overflow:visible}
 #typegrid .window:not(.phone) .sidebar .nav-label,#typegrid .window:not(.phone) .sidebar .sectionlabel{display:none}
 #typegrid .window:not(.phone) .sidebar button{width:44px;min-width:44px;justify-content:center;padding:9px}
 #typegrid .window:not(.phone) .sidebar button.primary{width:44px;margin:20px 0 12px}
 #typegrid .window:not(.phone) .sidebar .side-brand{padding:0 6px}
 #typegrid .window:not(.phone) .sidebar .category-form:not([hidden]){position:absolute;left:70px;width:210px;z-index:30;background:var(--tg-paper);border:1px solid var(--tg-line);border-radius:9px;padding:12px;box-shadow:0 7px 24px #00000020}
 #typegrid .library{padding:22px!important}
 #typegrid .library .cards{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
 #typegrid .writing-sheet{padding:35px 20px!important}
}
@media(prefers-reduced-motion:reduce){#typegrid .sidebar button,#typegrid .notecard,#typegrid .toolbar button{transition:none}}
#typegrid .window:not(.phone) .sidebar .nav-label,#typegrid .window:not(.phone) .sidebar:hover .nav-label,#typegrid .window:not(.phone) .sidebar:focus-within .nav-label{display:inline;opacity:1}
#typegrid .window:not(.phone) .sidebar .side-brand .nav-label{display:inline}
@media(max-width:700px){#typegrid .window:not(.phone) .sidebar .nav-label,#typegrid .window:not(.phone) .sidebar:hover .nav-label,#typegrid .window:not(.phone) .sidebar:focus-within .nav-label{display:none}}
/* Keep every desktop navigation icon and label on shared vertical guides. */
@media(min-width:701px){
 #typegrid .window:not(.phone) .sidebar>button:not(.local-profile),#typegrid .window:not(.phone) .sidebar .category-links>button{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;justify-content:stretch;column-gap:10px;text-align:left}
 #typegrid .window:not(.phone) .sidebar>button:not(.local-profile)>svg,#typegrid .window:not(.phone) .sidebar>button:not(.local-profile)>i,#typegrid .window:not(.phone) .sidebar .category-links>button>svg,#typegrid .window:not(.phone) .sidebar .category-links>button>i{grid-column:1;justify-self:center}
 #typegrid .window:not(.phone) .sidebar>button:not(.local-profile)>.nav-label,#typegrid .window:not(.phone) .sidebar .category-links>button>.nav-label{grid-column:2;min-width:0;transform:none}
 #typegrid .window:not(.phone) .sidebar .side-brand{padding-left:3px;gap:5px}
}
/* Editor heading alignment: no stray dash, compact top spacing */
#typegrid .document-eyebrow:before{content:none!important;display:none!important}
#typegrid .document-eyebrow{gap:0!important;margin:0 0 8px!important;padding-left:2px}
#typegrid .writing-sheet{padding-top:28px!important}
@media(max-width:700px){#typegrid .writing-sheet{padding-top:22px!important}}
/* App name with slogan underneath */
#typegrid .titlebar .brand{line-height:1.1!important}
#typegrid .titlebar .subtitle{display:block!important;font:500 10.5px/1.2 'Figtree',sans-serif!important;color:var(--tg-muted)!important;letter-spacing:.2px;margin-top:2px;white-space:nowrap}

#typegrid .about-page{max-width:640px}
#typegrid .about-lede{color:var(--tg-muted);line-height:1.7;margin:0 0 22px;font-size:14px}
#typegrid .about-page .feature{padding:14px 0}
#typegrid .about-page .feature small{line-height:1.6}
#typegrid .about-page .creator-credit{margin-top:26px;display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--tg-muted)}
#typegrid .about-page .creator-credit strong{color:var(--tg-ink);font-family:'Outfit',sans-serif}
#typegrid .creator-credit .creator-link{display:inline-block;margin-top:4px;color:var(--tg-blue);font:600 12px/1.5 'Figtree',sans-serif;text-decoration:none;border-bottom:1px solid color-mix(in srgb,var(--tg-blue) 35%,transparent);padding-bottom:1px;transition:color .15s ease,border-color .15s ease}
#typegrid .creator-credit .creator-link:hover{color:var(--tg-ink);border-color:var(--tg-ink)}

#typegrid .tg-beams-host{position:relative;overflow:hidden;isolation:isolate}
#typegrid .tg-beams{position:absolute;inset:0;pointer-events:none;z-index:0}
#typegrid .tg-beams-host>.welcome{position:relative;z-index:1}
#typegrid .tg-beams:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--tg-blue) 40%,transparent),transparent)}
#typegrid .tg-beam{position:absolute;top:0;width:2px;border-radius:2px;background:linear-gradient(to bottom,transparent,color-mix(in srgb,var(--tg-blue) 75%,transparent));animation:tg-fall linear infinite both;will-change:transform;opacity:.7}
@keyframes tg-fall{from{transform:translateY(-120%)}to{transform:translateY(calc(var(--tg-host-h,100vh) - 100%))}}
#typegrid .tg-beam{animation-name:tg-fall2}
@keyframes tg-fall2{from{top:-120px}to{top:calc(100% - 60px)}}
#typegrid .tg-burst{position:absolute;bottom:0;width:0;height:0}
#typegrid .tg-burst:before{content:"";position:absolute;left:-40px;bottom:-4px;width:80px;height:8px;border-radius:50%;background:radial-gradient(color-mix(in srgb,var(--tg-blue) 55%,transparent),transparent 70%);animation:tg-glow 1.2s ease-out forwards}
#typegrid .tg-burst i{position:absolute;left:0;bottom:0;width:3px;height:3px;border-radius:50%;background:var(--tg-blue);animation:tg-spark 1.1s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes tg-spark{to{transform:translate(var(--dx),var(--dy));opacity:0}}
@keyframes tg-glow{to{opacity:0;transform:scaleX(1.6)}}
/* Aurora main background (offline, CSS only) */
#typegrid .window:not(.phone)>.layout{position:relative;isolation:isolate;background:var(--tg-bg);overflow:hidden}
#typegrid .window:not(.phone)>.layout>*{position:relative;z-index:1}
#typegrid .window:not(.phone)>.layout:before{content:"";position:absolute;inset:-10px;z-index:0;pointer-events:none;
 --aurora:repeating-linear-gradient(100deg,#168578 10%,#7fd1c3 15%,#a8e3d6 20%,#cdeee6 25%,#3fb3a2 30%);
 --veil:repeating-linear-gradient(100deg,var(--tg-bg) 0%,var(--tg-bg) 7%,transparent 10%,transparent 12%,var(--tg-bg) 16%);
 background-image:var(--veil),var(--aurora);background-size:300%,200%;background-position:50% 50%,50% 50%;
 filter:blur(18px);opacity:.3;
 -webkit-mask-image:radial-gradient(ellipse at 100% 0%,#000 5%,transparent 60%);mask-image:radial-gradient(ellipse at 100% 0%,#000 5%,transparent 60%);
 animation:tg-aurora 60s linear infinite;will-change:background-position}
@keyframes tg-aurora{from{background-position:50% 50%,50% 50%}to{background-position:350% 50%,350% 50%}}
#typegrid .window:not(.phone) .library,#typegrid .window:not(.phone) .full,#typegrid .window:not(.phone) .editor,#typegrid .window:not(.phone) .tg-beams-host{background:transparent!important}
@media (prefers-reduced-motion:reduce){#typegrid .window:not(.phone)>.layout:before{animation:none}}
/* status bar: word count + zoom pinned to bottom */
#typegrid .window:not(.phone) .writing-sheet{display:flex!important;flex-direction:column;min-height:calc(100% - 115px)}
#typegrid .writing-sheet>.footer{position:sticky!important;bottom:0;z-index:3;margin-top:auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px;padding:10px 0!important;background:var(--tg-paper)!important;border-top:1px solid var(--tg-line)!important}
#typegrid .writing-sheet>.footer .count{order:-1;margin:0!important;font:500 12px/1 'Figtree',sans-serif;color:var(--tg-muted)}
#typegrid .writing-sheet>.footer .zoom-controls{margin:0 0 0 auto!important}
#typegrid .creator-link.official-link{display:inline-block;margin-top:6px}
#typegrid .privacy-link{background:none;border:0;cursor:pointer;font:inherit;padding:0}
#typegrid .privacy-page .feature small{line-height:1.6}

#typegrid .editor-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center;height:100%}
#typegrid .editor-empty h2{margin:0}

/* Android/touch fixes: status bar overlap, clipped category popup, narrow search */
@media (max-width:700px) and (pointer:coarse){
#typegrid .window:not(.phone)>.titlebar,#typegrid .phone>.titlebar{height:auto!important;min-height:0!important;padding-top:calc(max(env(safe-area-inset-top),30px) + 8px)!important;padding-bottom:10px!important;align-items:center!important}
#typegrid .window:not(.phone) .category-form:not([hidden]){position:fixed!important;left:12px;right:12px;top:calc(max(env(safe-area-inset-top),30px) + 90px);width:auto!important;margin:0!important;padding:14px!important;z-index:1000;border:1px solid var(--tg-line);border-radius:14px;background:var(--tg-paper)!important;box-shadow:0 18px 40px #0000004d}
#typegrid .window:not(.phone) .category-form input{width:100%!important;box-sizing:border-box}
#typegrid .window:not(.phone) .sidebar{overflow:visible!important}
#typegrid .search,#typegrid input[type=search],#typegrid .search-field{width:100%!important;max-width:none!important;box-sizing:border-box}
}

/* Offline editor font library */
#typegrid .font-control{display:inline-flex;align-items:center;gap:7px;min-width:150px;height:34px;padding:0 8px;border:1px solid var(--tg-line);border-radius:6px;background:var(--tg-paper);color:var(--tg-muted);font-size:11px;font-weight:600}
#typegrid .font-control select{min-width:0;max-width:150px;height:30px;border:0;background:transparent;color:var(--tg-ink);font:500 12px 'Figtree',sans-serif;outline:none}
#typegrid .custom-font-upload{display:none!important}
@media(max-width:700px){#typegrid .font-control{order:20;flex:1 1 160px}#typegrid .font-control select{max-width:none;flex:1}#typegrid [data-action=choose-font]{order:21}}

/* Supported platforms — shown consistently throughout the in-app welcome and information screens. */
#typegrid .platform-availability{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px}
#typegrid .platform-availability span{display:inline-flex;align-items:center;min-height:27px;padding:5px 9px;border:1px solid var(--tg-line);border-radius:7px;background:var(--tg-paper);color:var(--tg-ink);font-size:10px;font-weight:600;line-height:1}
#typegrid .welcome-story .platform-availability span{background:var(--tg-soft);border-color:transparent;color:var(--tg-blue)}
#typegrid .platform-availability-wide{margin:14px 0 18px}
#typegrid .brand-about .platform-availability{margin:15px 0 2px}
#typegrid .phone .platform-availability{gap:6px}
#typegrid .phone .platform-availability span{min-height:29px;padding:6px 8px}
#typegrid .release-version{margin:7px 0 0;color:var(--tg-blue);font-size:11px;font-weight:600}
