:root{color:#10203f;background:#eef5ff;font-family:Source Han Sans SC,Noto Sans SC,Noto Sans CJK SC,sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 78% 12%,rgba(132,204,22,.16),transparent 24rem),radial-gradient(circle at 28% 2%,rgba(59,130,246,.18),transparent 22rem),linear-gradient(135deg,#edf6ff,#f8fbff 48%,#eef4ff)}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}.app-shell{display:grid;grid-template-columns:292px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:28px 24px;background:#f5faffd1;border-right:1px solid rgba(148,163,184,.22);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);display:flex;flex-direction:column;gap:28px}.brand{display:flex;align-items:center;gap:14px}.brand-icon{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;color:#0f65ff;background:linear-gradient(145deg,#e0f2fe,#fff);box-shadow:0 12px 28px #2563eb24}.brand strong{display:block;font-size:24px;font-weight:900}.brand span{color:#687995;display:block;margin-top:4px}nav{display:grid;gap:8px}.nav-item{border:0;color:#243b65;background:transparent;display:flex;align-items:center;gap:14px;min-height:52px;padding:0 16px;border-radius:10px;cursor:pointer;font-weight:700}.nav-item.active{color:#fff;background:linear-gradient(135deg,#0f67ff,#38a3ff);box-shadow:0 12px 24px #2563eb42}.local-card{margin-top:auto;min-height:166px;border-radius:22px;padding:22px;color:#111827;background:linear-gradient(135deg,#ffc45747,#a855f738),#fff;box-shadow:0 18px 44px #2563eb29;display:grid;gap:8px;align-content:center;text-align:center}.local-card svg{margin:0 auto;color:#f59e0b}.local-card strong{font-size:24px}.local-card span{color:#475569}.workspace{padding:22px 28px 34px;min-width:0}.topbar{display:grid;grid-template-columns:minmax(280px,520px) max-content max-content;gap:18px;justify-content:end;align-items:center;margin-bottom:20px}.search{height:54px;border-radius:28px;background:#ffffffeb;box-shadow:0 10px 32px #3462a41f;border:1px solid rgba(148,163,184,.18);display:flex;align-items:center;padding:0 20px;gap:12px;color:#52647f}.search input{border:0;outline:0;flex:1;color:#10203f;background:transparent}.status-pill,.icon-button{height:48px;border:1px solid rgba(148,163,184,.18);background:#ffffffeb;box-shadow:0 10px 26px #3462a41a;border-radius:999px}.status-pill{display:flex;align-items:center;padding:0 18px;color:#247351;font-weight:800;white-space:nowrap}.icon-button{position:relative;width:48px;display:grid;place-items:center;color:#0f172a;cursor:pointer}.icon-button i{position:absolute;top:-7px;right:-5px;min-width:22px;height:22px;border-radius:999px;background:#ef4444;color:#fff;font-size:12px;display:grid;place-items:center;font-style:normal}.notification-wrap{position:relative}.notification-panel{position:absolute;right:0;top:58px;z-index:20;width:min(340px,calc(100vw - 32px));border-radius:18px;background:#fff;border:1px solid #dbe4f0;box-shadow:0 20px 44px #0f172a2e;padding:16px}.notification-panel strong{display:block;margin-bottom:8px}.notification-panel p{margin:8px 0 0;color:#475569;line-height:1.45}.hero{position:relative;overflow:hidden;min-height:258px;border-radius:30px;padding:34px 46px;background:linear-gradient(115deg,#fffffff5,#eff7fff0 48%,#c4dbffeb);box-shadow:0 20px 46px #315fac29;display:grid;grid-template-columns:minmax(360px,.95fr) 1.05fr;align-items:center}.eyebrow{color:#2563eb;font-weight:900}.hero h1{font-size:clamp(42px,5vw,72px);line-height:1.13;margin:10px 0 16px}.hero h1:after{content:"";display:block;width:260px;height:12px;margin-top:-8px;border-radius:99px;background:linear-gradient(90deg,#1d4ed8,#60a5fa)}.hero p{color:#31476b;font-size:20px;margin:0 0 20px}.hero-tags{display:flex;flex-wrap:wrap;gap:10px}.hero-tags span,.float-note{color:#fff;font-weight:900;border-radius:999px;padding:10px 16px;box-shadow:0 12px 26px #2563eb2e}.hero-tags span:nth-child(1){background:#3b82f6}.hero-tags span:nth-child(2){background:#10b981}.hero-tags span:nth-child(3){background:#f97316}.hero-tags span:nth-child(4){background:#ec4899}.hero-visual{min-height:210px;position:relative}.student-head{position:absolute;right:28%;top:16px;width:154px;height:154px;border-radius:50% 50% 44% 44%;background:linear-gradient(145deg,#ffd4a8,#ffb86b);border:12px solid #8b451f;color:#0f172a;display:grid;place-items:center;font-size:68px;font-weight:900;box-shadow:0 18px 36px #6366f133}.book-stack{position:absolute;right:22%;bottom:16px;width:245px;height:78px;border-radius:18px;background:linear-gradient(#fff 0,#fff 26px,#93c5fd 26px,#93c5fd 34px,#fff 34px,#fff 55px,#fbbf24 55px,#fbbf24 63px,#fff 63px);transform:rotate(-3deg);box-shadow:0 16px 28px #3b82f638}.float-note{position:absolute;font-size:18px}.note-a{right:62%;top:42px;background:#38bdf8;transform:rotate(-8deg)}.note-b{right:6%;top:52px;background:#8b5cf6;transform:rotate(7deg)}.note-c{right:16%;bottom:32px;background:#22c55e}.category-strip,.creator-panel,.recent-panel,.preview-panel,.workspace-card{margin-top:18px;border-radius:24px;background:#ffffffe0;box-shadow:0 18px 44px #315fac1f;border:1px solid rgba(148,163,184,.15)}.category-strip,.creator-panel,.recent-panel,.preview-panel,.workspace-card{padding:24px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.section-title h2{margin:0;font-size:20px}.section-title span,.section-title button{color:#2563eb;background:transparent;border:0;font-weight:800}.category-grid{display:grid;grid-template-columns:repeat(12,minmax(118px,1fr));gap:14px;overflow-x:auto;padding-bottom:4px}.category-card{min-height:128px;border:1px solid #e2e8f0;border-radius:18px;background:linear-gradient(160deg,#fff,#eef7ff);cursor:pointer;display:grid;place-items:center;gap:8px;padding:16px 10px;color:#1e3a5f}.category-card:hover,.type-card:hover,.chip:hover,.material-line:hover,.issue-item:hover,.template-card:hover{transform:translateY(-1px);box-shadow:0 14px 28px #2563eb1f}.category-card:nth-child(3n+2){background:linear-gradient(160deg,#fff7ed,#fff)}.category-card:nth-child(3n){background:linear-gradient(160deg,#f0fdf4,#fff)}.category-card svg{color:#2563eb;filter:drop-shadow(0 8px 12px rgba(37,99,235,.2))}.category-card span{color:#475569;font-weight:800}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 410px;gap:18px}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:14px}.field{display:grid;gap:8px;color:#475569;font-weight:800}.field.wide{grid-column:span 2}.field select,.field input,.filter-row input,.filter-row select{width:100%;height:48px;border:1px solid #dbe4f0;border-radius:12px;background:#fff;color:#0f172a;padding:0 14px;outline:0;box-shadow:0 8px 20px #0f172a0d}.filter-row{display:grid;grid-template-columns:minmax(220px,1fr) 180px 240px;gap:12px;margin-bottom:18px}.creator-panel h3{margin:24px 0 12px}.popular-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px}.type-card{min-height:122px;border:1px solid #dbe4f0;border-radius:18px;padding:16px;text-align:left;background:linear-gradient(155deg,#fff,#f0f9ff);cursor:pointer}.type-card.selected{border-color:#2563eb;box-shadow:inset 0 0 0 2px #2563eb33}.type-card strong{display:block;font-size:18px;margin-bottom:8px}.type-card span{color:#64748b;line-height:1.5}.type-list{display:flex;flex-wrap:wrap;gap:9px;max-height:210px;overflow:auto;padding-right:4px}.chip{border:1px solid #dbe4f0;background:#fff;color:#334155;padding:9px 12px;border-radius:999px;cursor:pointer}.chip.active{background:#2563eb;border-color:#2563eb;color:#fff}.primary-action{margin-top:20px;width:100%;height:58px;border:0;border-radius:16px;color:#fff;background:linear-gradient(135deg,#0f67ff,#22c55e);box-shadow:0 16px 32px #2563eb3d;display:flex;align-items:center;justify-content:center;gap:10px;font-weight:900;cursor:pointer}.primary-action:disabled{opacity:.6;cursor:not-allowed}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.recent-list{display:grid;gap:12px}.recent-item{display:grid;grid-template-columns:36px minmax(0,1fr) max-content;gap:12px;align-items:center;text-align:left;border:0;background:transparent;border-radius:14px;padding:10px;cursor:pointer}.recent-item:hover{background:#f1f5f9}.recent-item svg{color:#2563eb}.recent-item strong,.recent-item small{display:block}.recent-item strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-item small{color:#64748b;margin-top:4px}.recent-item em{font-style:normal;color:#16a34a;background:#dcfce7;padding:6px 10px;border-radius:999px;font-size:13px;font-weight:900}.empty{color:#64748b}.preview-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.preview-header h2{margin:0 0 6px}.preview-header p{margin:0;color:#64748b}.export-actions{display:flex;flex-wrap:wrap;gap:10px}.export-actions a,.export-actions button,.card-actions button,.template-card button{min-height:42px;padding:0 14px;border-radius:12px;display:flex;align-items:center;gap:8px;color:#0f67ff;background:#eff6ff;border:0;text-decoration:none;font-weight:900;cursor:pointer}.export-actions button:disabled{opacity:.65;cursor:wait}.preview-grid{display:grid;grid-template-columns:minmax(320px,520px) 1fr;gap:20px}.a4-preview{aspect-ratio:210 / 297;overflow:hidden;background:#fffdf3;border:1px solid #cfc6aa;box-shadow:0 20px 38px #0f172a1f;padding:24px 26px;color:#111;font-family:Source Han Sans SC,Noto Sans SC,Noto Sans CJK SC,sans-serif}.a4-preview h1{color:#0218d8;font-family:Source Han Sans SC,Noto Sans SC,Noto Sans CJK SC,sans-serif;font-size:28px;line-height:1.15;text-align:center;border-bottom:3px solid #0218d8;margin:0 0 12px}.a4-preview h3{color:#7b6500;font-family:Source Han Sans SC,Noto Sans SC,Noto Sans CJK SC,sans-serif;font-size:18px;margin:12px 0 8px;border:0;padding:0}.a4-preview h3:after{content:"★★★★★★★★";letter-spacing:1px}.a4-preview p{line-height:1.52;margin:5px 0;font-size:13px}.a4-preview p:first-of-type{background:#d9d9d9;text-align:center;font-weight:900;font-size:15px;padding:5px}.a4-preview p:nth-of-type(n+3){text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.a4-preview p:nth-of-type(3n){color:#d60000}.review-card{border-radius:18px;background:#f8fafc;border:1px solid #e2e8f0;padding:20px;line-height:1.7}.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}.template-grid.compact{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}.template-card{min-height:170px;border:1px solid #dbe4f0;border-radius:18px;padding:16px;background:linear-gradient(155deg,#fff,#f8fbff);display:grid;gap:8px;align-content:start;transition:transform .18s ease,box-shadow .18s ease}.template-card strong{font-size:18px}.template-card span,.template-card p{color:#64748b;line-height:1.5;margin:0}.template-card button{justify-content:center;margin-top:auto}.card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}.material-table,.issue-list{display:grid;gap:10px}.material-line,.issue-item{width:100%;border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:14px;cursor:pointer;text-align:left;transition:transform .18s ease,box-shadow .18s ease}.material-line{display:grid;grid-template-columns:28px minmax(180px,1fr) minmax(220px,.8fr) max-content;gap:12px;align-items:center}.material-line svg{color:#2563eb}.material-line strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-line span,.issue-item span{color:#64748b}.material-line em{font-style:normal;color:#0f67ff;font-weight:900}.issue-item{display:grid;gap:6px}.issue-item strong{color:#dc2626}.issue-item p{margin:0;color:#334155;line-height:1.55}.settings-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}.info-card{min-height:112px;border-radius:18px;border:1px solid #dbe4f0;background:linear-gradient(155deg,#fff,#f0f9ff);padding:18px;display:grid;align-content:center;gap:8px}.info-card span{color:#64748b;font-weight:800}.info-card strong{word-break:break-word}@media(max-width:1180px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;flex-direction:row;align-items:center;overflow-x:auto}.sidebar nav{display:flex}.nav-item{min-width:max-content}.local-card{display:none}.hero,.content-grid,.preview-grid{grid-template-columns:1fr}.hero-visual{min-height:180px}}@media(max-width:760px){.workspace{padding:16px}.topbar{grid-template-columns:1fr}.hero{padding:28px;border-radius:22px}.hero p{font-size:16px}.form-grid,.popular-grid,.filter-row,.material-line{grid-template-columns:1fr}.field.wide{grid-column:auto}.preview-header{align-items:flex-start;flex-direction:column}}
