:root{color:#152247;background:radial-gradient(circle at 10% 10%,#dfe8ff 0%,#f2f6ff 35%,#f8fbff 100%);font-family:Manrope,Noto Sans SC,PingFang SC,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;font-size:clamp(14px,.5vw + 12px,18px)}*{box-sizing:border-box}body{margin:0}#root{min-height:100vh}.cropper-container{-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;direction:ltr;font-size:0;line-height:0;position:relative}.cropper-container img{backface-visibility:hidden;image-orientation:0deg;width:100%;height:100%;display:block;min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{position:absolute;inset:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{opacity:0;background-color:#fff}.cropper-modal{opacity:.5;background-color:#000}.cropper-view-box{outline:1px solid #3399ffbf;width:100%;height:100%;display:block;overflow:hidden}.cropper-dashed{opacity:.5;border:0 dashed #eee;display:block;position:absolute}.cropper-dashed.dashed-h{border-top-width:1px;border-bottom-width:1px;width:100%;height:33.3333%;top:33.3333%;left:0}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;width:33.3333%;height:100%;top:0;left:33.3333%}.cropper-center{opacity:.75;width:0;height:0;display:block;position:absolute;top:50%;left:50%}.cropper-center:before,.cropper-center:after{content:" ";background-color:#eee;display:block;position:absolute}.cropper-center:before{width:7px;height:1px;top:0;left:-3px}.cropper-center:after{width:1px;height:7px;top:-3px;left:0}.cropper-face,.cropper-line,.cropper-point{opacity:.1;width:100%;height:100%;display:block;position:absolute}.cropper-face{background-color:#fff;top:0;left:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;width:5px;top:0;right:-3px}.cropper-line.line-n{cursor:ns-resize;height:5px;top:-3px;left:0}.cropper-line.line-w{cursor:ew-resize;width:5px;top:0;left:-3px}.cropper-line.line-s{cursor:ns-resize;height:5px;bottom:-3px;left:0}.cropper-point{opacity:.75;background-color:#39f;width:5px;height:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;top:50%;right:-3px}.cropper-point.point-n{cursor:ns-resize;margin-left:-3px;top:-3px;left:50%}.cropper-point.point-w{cursor:ew-resize;margin-top:-3px;top:50%;left:-3px}.cropper-point.point-s{cursor:s-resize;margin-left:-3px;bottom:-3px;left:50%}.cropper-point.point-ne{cursor:nesw-resize;top:-3px;right:-3px}.cropper-point.point-nw{cursor:nwse-resize;top:-3px;left:-3px}.cropper-point.point-sw{cursor:nesw-resize;bottom:-3px;left:-3px}.cropper-point.point-se{cursor:nwse-resize;opacity:1;width:20px;height:20px;bottom:-3px;right:-3px}@media (width>=768px){.cropper-point.point-se{width:15px;height:15px}}@media (width>=992px){.cropper-point.point-se{width:10px;height:10px}}@media (width>=1200px){.cropper-point.point-se{opacity:.75;width:5px;height:5px}}.cropper-point.point-se:before{content:" ";opacity:0;background-color:#39f;width:200%;height:200%;display:block;position:absolute;bottom:-50%;right:-50%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{width:0;height:0;display:block;position:absolute}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.screen{justify-content:center;align-items:center;min-height:100vh;padding:14px;display:flex}.phone{background:#f8fafc;border:1px solid #dbe2f0;border-radius:24px;flex-direction:column;width:min(100%,420px);height:min(96vh,920px);display:flex;overflow:hidden;box-shadow:0 26px 60px #0f172a33}.status-bar{justify-content:space-between;align-items:center;height:48px;padding:0 20px;font-size:.8125rem;font-weight:800;display:flex}.icons{gap:6px;display:flex}.icons i{background:#0f172a33;border-radius:50%;width:12px;height:12px}.icons .wide{border-radius:8px;width:20px}.container{flex:1;position:relative;overflow:hidden}.view{height:100%;padding:18px;animation:.25s fade-in;overflow-y:auto}.home-head p{color:#64748b;letter-spacing:1px;text-transform:uppercase;margin:0;font-size:.6875rem;font-weight:800}.row{align-items:center;gap:8px;display:flex}.between{justify-content:space-between}.dot{background:#22c55e;border-radius:50%;width:8px;height:8px}.pill{background:#fff;border:1px solid #d8e1f2;border-radius:999px;padding:6px 10px;font-size:.75rem;font-weight:700}.home-head h1{color:#0f172a;margin:12px 0 14px;font-size:28px;line-height:1.2}.hero{color:#fff;background:linear-gradient(135deg,#4f46e5,#7c3aed);border:0;border-radius:24px;justify-content:space-between;align-items:center;width:100%;margin-bottom:16px;padding:18px;display:flex;box-shadow:0 16px 38px #6366f159}.hero-tag{background:#ffffff30;border-radius:999px;margin-bottom:10px;padding:4px 10px;font-size:.625rem;font-weight:800;display:inline-flex}.hero h2{margin:0;font-size:24px;line-height:1.15}.hero p{color:#e2e8f0;margin:10px 0 0;font-size:.75rem}.cam{background:#ffffff2b;border:2px solid #ffffff5d;border-radius:50%;place-items:center;width:84px;height:84px;display:grid}.cam-cartoon{background:linear-gradient(160deg,#ffd36a,#ff9f43);border-radius:10px;width:44px;height:30px;position:relative;box-shadow:inset 0 -3px #00000018,0 5px 12px #00000026}.cam-top{background:#ffe6a7;border-radius:6px 6px 2px 2px;width:20px;height:8px;position:absolute;top:-7px;left:6px}.cam-lens{background:radial-gradient(circle at 30% 30%,#dbeafe,#2563eb 55%,#1e3a8a 100%);border:3px solid #fff3;border-radius:50%;width:18px;height:18px;position:absolute;top:6px;left:12px}.cam-dot{background:#ef4444;border-radius:50%;width:6px;height:6px;position:absolute;top:8px;right:7px}.hidden{display:none}.title{color:#0f172a;margin:8px 0 10px;font-size:.875rem;font-weight:800}.grid2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.card{text-align:left;background:#fff;border:1px solid #e8edf7;border-radius:16px;padding:12px}.card .icon{border-radius:12px;place-items:center;width:48px;height:48px;margin-bottom:8px;font-size:2rem;font-weight:800;display:grid}.card .k{color:#4f46e5;background:#e9edff}.card .t{color:#a16207;background:#fdf2bf}.card small{color:#94a3b8;letter-spacing:1px;font-size:.75rem;font-weight:700;display:block}.card strong{color:#0f172a;font-size:16px}.center{text-align:center;flex-direction:column;justify-content:center;align-items:center;display:flex}.loader{border:6px solid #e2e8f0;border-top-color:#4f46e5;border-radius:50%;width:88px;height:88px;margin-bottom:18px;animation:1s linear infinite spin}.center h2{margin:0 0 8px}.center p{color:#64748b;margin:0;font-size:.875rem}.result{padding:0}.top{z-index:2;background:#fff;border-bottom:1px solid #e5ebf7;justify-content:space-between;align-items:center;height:54px;padding:0 12px;display:flex;position:sticky;top:0}.top span{color:#0f172a;font-size:.875rem;font-weight:700}.top .gap{width:32px}.round{color:#334155;background:#f1f5f9;border:0;border-radius:999px;width:32px;height:32px;font-weight:700}.scroll{padding:14px;overflow-y:auto}.badge{color:#166534;background:#dcfce7;border-radius:999px;margin-bottom:12px;padding:4px 10px;font-size:.6875rem;font-weight:800;display:inline-flex}.badge.warn{color:#c2410c;background:#fff7ed}.badge.running{color:#1d4ed8;background:#eff6ff}.panel{background:#fff;border:1px solid #e5ebf7;border-radius:16px;margin-bottom:12px;padding:12px}.panel h4{color:#64748b;text-transform:uppercase;margin:0 0 10px;font-size:.75rem;font-weight:800}.panel-head{justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;display:flex}.panel-head h4{margin:0}.score-chip{white-space:nowrap;border:1px solid #0000;border-radius:999px;margin:0 0 10px;padding:4px 10px;font-size:.6875rem;font-weight:800;display:inline-flex}.score-chip.ok{color:#166534;background:#dcfce7;border-color:#86efac}.score-chip.low{color:#c2410c;background:#fff7ed;border-color:#fdba74}.panel-blue{border-left:4px solid #4f46e5}.panel-green{border-left:4px solid #22c55e}.img-box{aspect-ratio:4/3;color:#94a3b8;background:linear-gradient(135deg,#f1f5f9,#e2e8f0);border:1px solid #e5ebf7;border-radius:12px;place-items:center;font-size:.875rem;display:grid;overflow:hidden}.img-box img{object-fit:contain;width:100%;height:100%}.img-clickable{cursor:zoom-in;border:1px solid #e5ebf7;width:100%;padding:0}.image-lightbox{z-index:140;background:#0f172ae6;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.image-lightbox-inner{place-items:center;width:100%;height:100%;display:grid}.image-lightbox-inner img{object-fit:contain;background:#fff;border-radius:12px;width:auto;max-width:min(96vw,1100px);height:auto;max-height:92vh}.image-lightbox-close{color:#fff;cursor:pointer;background:#ffffff26;border:0;border-radius:999px;width:36px;height:36px;font-size:1rem;position:fixed;top:14px;right:14px}.tip{color:#4338ca;background:#eef2ff;border-radius:10px;margin:10px 0 0;padding:10px;font-size:.8125rem}.tip-warn{color:#c2410c;background:#fff7ed;border:1px solid #fdba74}.score-source{color:#64748b;background:#f8fafc;margin-top:8px}.analysis-loading{background:linear-gradient(135deg,#eff6ff,#dbeafe);border:1px solid #bfdbfe;border-radius:10px;margin-top:10px;padding:10px}.analysis-loading-bar{background:linear-gradient(90deg,#93c5fd 0%,#2563eb 50%,#93c5fd 100%) 0 0/200% 100%;border-radius:999px;height:6px;animation:1.2s linear infinite analysis-slide}.analysis-loading-dots{gap:6px;margin-top:8px;display:inline-flex}.analysis-loading-dots span{background:#1d4ed8;border-radius:999px;width:6px;height:6px;animation:1s ease-in-out infinite dot-bounce}.analysis-loading-dots span:nth-child(2){animation-delay:.15s}.analysis-loading-dots span:nth-child(3){animation-delay:.3s}.analysis-loading small{color:#1e3a8a;margin-left:8px;font-weight:700}.list{gap:8px;display:grid}.list-item{text-align:left;background:#fff;border:1px solid #e7ecf7;border-radius:12px;justify-content:space-between;align-items:center;padding:10px;display:flex}.list-item b{color:#4f46e5;background:#eef2ff;border-radius:999px;margin-bottom:4px;padding:2px 6px;font-size:.625rem;display:inline-flex}.list-item p{color:#334155;margin:0;font-size:.75rem}.related-loading-item{background:linear-gradient(135deg,#f8fbff,#f3f7ff);border:1px solid #dbe4f4;border-radius:10px;padding:10px 12px}.related-loading-inline{background:linear-gradient(90deg,#dbeafe 20%,#bfdbfe 50%,#dbeafe 80%) 0 0/200% 100%;border-radius:999px;height:12px;margin-top:8px;animation:1.2s linear infinite analysis-slide}.related-loading-inline.w1{width:68%;margin-top:0}.related-loading-inline.w2{width:92%}.related-compact-item{padding:10px 12px}.related-compact-item p{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:2px;line-height:1.35;display:-webkit-box;overflow:hidden}.related-compact-item span{color:#64748b;font-size:1rem;font-weight:700}.status-running{color:#2563eb;font-weight:700;animation:1.4s ease-in-out infinite breathe}@keyframes breathe{0%,to{opacity:.45}50%{opacity:1}}.bottom-actions{padding:12px 14px calc(14px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e5ebf7;grid-template-columns:1fr 1.4fr;gap:10px;display:grid}.bottom-actions.single{grid-template-columns:1fr}.accordion-head{background:0 0;border:0;justify-content:space-between;align-items:center;width:100%;padding:0;display:flex}.home-head .eyebrow{color:#64748b;letter-spacing:1px;text-transform:uppercase;margin:0;font-size:.6875rem;font-weight:800}.home-head h2{color:#0f172a;margin:2px 0 10px;font-size:1.625rem}.switch{background:#e2e8f0;border-radius:12px;grid-template-columns:1fr 1fr;gap:4px;padding:4px;display:grid}.switch button{color:#64748b;background:0 0;border:0;border-radius:8px;padding:8px 10px;font-size:.75rem;font-weight:800}.switch button.active{color:#0f172a;background:#fff}.mt{margin-top:10px}.error-item{text-align:left;background:#fff;border:1px solid #e7ecf7;border-radius:14px;gap:10px;display:flex;overflow:hidden}.error-item.todo{box-shadow:inset 4px 0 #f87171}.error-item.ok{box-shadow:inset 4px 0 #34d399}.error-thumb{color:#94a3b8;background:#e2e8f0;place-items:center;width:72px;min-width:72px;height:72px;display:grid;overflow:hidden}.error-thumb img{object-fit:cover;width:100%;height:100%}.error-copy{padding:10px 10px 10px 0}.error-copy small{color:#94a3b8;font-size:.625rem;letter-spacing:.02em}.error-copy strong{color:#1e293b;margin:6px 0 4px;font-size:.84rem;font-weight:500;line-height:1.38;letter-spacing:.01em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.error-copy p{color:#64748b;margin:1px 0 0;font-size:.7rem;font-weight:500;letter-spacing:.02em}.boost-gen{color:#fff;text-align:center;background:linear-gradient(135deg,#4f46e5,#7c3aed);border-radius:16px;margin-top:10px;padding:18px}.brain{background:#ffffff2f;border-radius:999px;place-items:center;width:62px;height:62px;margin:0 auto 10px;font-size:1.8rem;display:grid}.boost-gen h3{margin:0 0 6px}.boost-gen p{color:#e2e8f0;margin:0 0 12px;font-size:.75rem}.profile-top{color:#fff;background:linear-gradient(135deg,#0f172a,#1e293b);border-radius:24px;padding:16px}.profile-top.clickable{cursor:pointer}.profile-top.clickable:active{transform:scale(.995)}.avatar{background:#334155;border-radius:50%;place-items:center;width:64px;height:64px;font-weight:800;display:grid;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%}.profile-top h3{margin:0}.profile-top small{color:#cbd5e1}.count{text-align:center;margin-top:10px}.count strong{font-size:2rem}.count span{color:#94a3b8;font-size:.75rem;display:block}.row-btn{color:#1e293b;background:#fff;border:1px solid #e7ecf7;border-radius:14px;justify-content:space-between;align-items:center;width:100%;margin-top:10px;padding:12px;font-weight:700;display:flex}.row-btn:disabled{opacity:.55}textarea{width:100%;font:inherit;resize:none;border:1px solid #d7e0f1;border-radius:12px;padding:10px}.dark{color:#fff;background:#0f172a}.brain-lg{margin-bottom:8px;font-size:2.2rem}.progress{background:#334155;border-radius:999px;width:200px;height:6px;margin-top:12px;overflow:hidden}.bar{background:#6366f1;height:100%;transition:width 1.2s}.tabbar{background:#fff;border-top:1px solid #e6ebf6;grid-template-columns:repeat(3,1fr);height:66px;display:grid}.tabbar button{color:#94a3b8;background:0 0;border:0;align-content:center;place-items:center;gap:2px;display:grid}.tabbar button i{font-size:1.1rem;font-style:normal}.tabbar button span{font-size:.625rem;font-weight:700}.tabbar button.active{color:#0f172a}.overlay{z-index:90;background:#0f172a99;justify-content:center;align-items:center;padding:12px;display:flex;position:fixed;inset:0}.sheet{background:#fff;border-radius:18px;gap:10px;width:min(420px,100%);padding:14px;animation:.2s fade-in;display:grid}.center-sheet{text-align:center}.sheet h3{margin:0}.sheet input{font:inherit;border:1px solid #d7e0f1;border-radius:10px;padding:10px}.solid,.light{cursor:pointer;border:0;border-radius:12px;padding:11px 12px;font-weight:800}.solid{color:#fff;background:#0f172a}.light{color:#334155;background:#eef2ff}.course{color:#1f2937;background:#fff;border:1px solid #dce4f4;border-radius:12px;justify-content:space-between;align-items:center;width:100%;padding:12px;font-weight:700;display:flex}.course.active{background:#eef2ff;border-color:#4f46e5}.course.danger{color:#b91c1c;background:#fff1f2;border-color:#fecaca}.muted{color:#64748b;margin:0;font-size:.8125rem}.auth-error{color:#dc2626;margin:0;font-size:.8125rem}.bottom-sheet-wrap{align-items:flex-end}.bottom-sheet{border-bottom-right-radius:0;border-bottom-left-radius:0}.soon-icon{background:#e9edff;border-radius:999px;place-items:center;width:100px;height:100px;margin:0 auto 8px;font-size:2.4rem;display:grid}.cropper-page{z-index:120;background:#d3dae9;justify-content:center;align-items:center;padding:14px;display:flex;position:fixed;inset:0}.cropper-shell{background:radial-gradient(circle at 18% 10%,#e9edff 0%,#f0f3fa 48%,#f7f9fd 100%);border:1px solid #d4dced;border-radius:24px;flex-direction:column;width:min(100%,420px);height:min(96vh,920px);display:flex;overflow:hidden;box-shadow:0 26px 60px #0f172a33}.cropper-topbar{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#f8fafccc;border-bottom:1px solid #dce4f2;justify-content:space-between;align-items:center;height:60px;padding:0 16px;display:flex}.cropper-topbar span{color:#0f172a;font-size:1rem;font-weight:800}.cropper-stage{flex:1;justify-content:center;align-items:flex-start;padding:18px;display:flex}.cropper-frame{aspect-ratio:16/9;background:linear-gradient(135deg,#eef4ff,#f8fbff);border:1px solid #d3dced;border-radius:26px;width:100%;max-height:calc(100vh - 320px);position:relative;overflow:hidden;box-shadow:0 20px 40px #64748b24}.cropper-frame .cropper-container{width:100%!important;height:100%!important}.cropper-frame .cropper-face{background-color:#0000}.cropper-frame .cropper-view-box{outline:2px solid #9aafd8;box-shadow:inset 0 0 0 1px #fff}.cropper-frame .cropper-line{opacity:.95;background-color:#a6b8de}.cropper-frame .cropper-point{opacity:1;background:#fff;border:2px solid #9aafd8;border-radius:999px;width:10px;height:10px}.cropper-frame .cropper-modal{background:#94a3b87a}.cropper-frame .cropper-dashed{border-color:#fffc}.cropper-bottom{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:14px 16px calc(16px + env(safe-area-inset-bottom));background:#f8faffef;border-top:1px solid #d9e2f0;box-shadow:0 -10px 28px #0f172a0f}.zoom-row{align-items:center;gap:10px;margin-bottom:12px;display:flex}.zoom-row span{color:#475569;font-size:.875rem;font-weight:700}.zoom-row input{flex:1}.crop-status{justify-content:space-between}.cropper-actions{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}@media (width<=560px){.cropper-stage{padding:10px 12px}.cropper-frame{border-radius:16px;max-height:none}.cropper-actions{grid-template-columns:1fr}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fade-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes analysis-slide{0%{background-position:200% 0}to{background-position:0 0}}@keyframes dot-bounce{0%,80%,to{opacity:.5;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}
/* --- Home page visual override (match A星学习家v3 style) --- */
:root{
  color:#0f172a;
  background:#f1f5f9;
  font-family:"Inter","Noto Sans SC",PingFang SC,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body{
  background:#f1f5f9 !important;
}
.screen{
  padding:0;
}
.phone{
  width:min(100%,430px);
  height:100vh;
  max-height:none;
  border-radius:0;
  border:0;
  background:#f8fafc;
  box-shadow:0 24px 60px rgba(15,23,42,.25);
}
@media (min-width: 600px){
  .phone{border-radius:22px;height:min(96vh,920px);border:1px solid #dbe2f0;}
  .screen{padding:14px;}
}
.status-bar{
  height:48px;
  padding:0 24px;
  background:rgba(248,250,252,.92);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  position:relative;
  z-index:10;
}
.view{
  padding:20px;
  padding-bottom:40px;
}
.home-head{
  margin-top:8px;
  margin-bottom:24px;
}
.home-head p{
  font-size:12px;
  letter-spacing:.08em;
  color:#64748b;
  font-weight:700;
}
.home-head h1{
  margin:10px 0 0;
  font-size:30px;
  line-height:1.15;
  font-weight:700;
  color:#0f172a;
}
.home-head .row.between{
  margin-bottom:2px;
}
.home-head .pill{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:9999px;
  padding:7px 26px 7px 30px;
  font-size:12px;
  font-weight:700;
  color:#334155;
  position:relative;
  box-shadow:0 1px 2px rgba(15,23,42,.08);
}
.home-head .pill::before{
  content:"\f02d";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  color:#6366f1;
  font-size:10px;
}
.home-head .pill::after{
  content:"\f078";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  color:#94a3b8;
  font-size:10px;
}
.hero{
  border-radius:24px;
  padding:24px;
  margin-bottom:24px;
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#4f46e5,#7c3aed);
  box-shadow:0 14px 40px rgba(99,102,241,.35);
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 35% 40%,rgba(255,255,255,.22),transparent 68%);
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute;
  left:-42px;
  bottom:-42px;
  width:180px;
  height:180px;
  border-radius:9999px;
  background:rgba(255,255,255,.16);
  filter:blur(24px);
}
.hero>*{position:relative;z-index:1;}
.hero-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:14px;
  padding:4px 10px;
  background:rgba(255,255,255,.2);
  border:1px solid rgba(255,255,255,.24);
  border-radius:9999px;
  font-size:10px;
  letter-spacing:.08em;
}
.hero h2{
  font-size:32px;
  line-height:1.05;
  font-weight:700;
}
.hero p{
  margin-top:12px;
  font-size:12px;
  color:#e0e7ff;
  line-height:1.35;
}
.cam{
  width:96px;
  height:96px;
  background:transparent;
  border:0;
  position:relative;
}
.cam::before,
.cam::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:84px;
  height:84px;
  border-radius:9999px;
  border:2px solid rgba(255,255,255,.45);
  transform:translate(-50%,-50%);
  animation:home-ring 2s ease-out infinite;
}
.cam::after{animation-delay:1s;}
.cam-cartoon{
  width:66px;
  height:66px;
  border-radius:9999px;
  border:1px solid rgba(255,255,255,.45);
  background:rgba(255,255,255,.2);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  display:grid;
  place-items:center;
  box-shadow:0 0 18px rgba(255,255,255,.3);
}
.cam-cartoon::before{
  content:"\f030";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  color:#fff;
  font-size:26px;
  line-height:1;
}
.cam-top,.cam-lens,.cam-dot{display:none;}
@keyframes home-ring{
  0%{transform:translate(-50%,-50%) scale(.72);opacity:0;}
  45%{opacity:.45;}
  100%{transform:translate(-50%,-50%) scale(1.45);opacity:0;}
}
.title{
  margin:0 0 12px;
  font-size:14px;
  font-weight:700;
  color:#0f172a;
}
.grid2{gap:12px;}
.card{
  border-radius:16px;
  border:1px solid #e7ecf7;
  background:#fff;
  box-shadow:0 0 0 1px rgba(0,0,0,.02),0 2px 8px rgba(0,0,0,.04);
  padding:16px;
}
.card .icon{
  width:34px;
  height:34px;
  border-radius:10px;
  margin-bottom:12px;
  font-size:0;
  position:relative;
}
.card .icon.k{background:#eef2ff;color:#4f46e5;}
.card .icon.t{background:#fef3c7;color:#d97706;}
.card .icon.k::before,
.card .icon.t::before{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  font-size:14px;
}
.card .icon.k::before{content:"\f031";}
.card .icon.t::before{content:"\f0eb";}
.card small{
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  color:#94a3b8;
  text-transform:uppercase;
}
.card strong{
  margin-top:4px;
  display:block;
  font-size:15px;
  line-height:1.3;
}
/* --- Responsive adaptation (Phone / Tablet / Desktop) --- */
@media (min-width:768px) and (max-width:1023px){
  .screen{
    padding:20px;
  }
  .phone{
    width:min(94vw,760px);
    height:min(95vh,980px);
    border-radius:24px;
    border:1px solid #dbe2f0;
    box-shadow:0 26px 70px rgba(15,23,42,.22);
  }
  .view{
    padding:24px;
    padding-bottom:36px;
  }
  .top{
    padding:0 18px;
  }
  .scroll{
    padding:18px;
  }
  .bottom-actions{
    padding:14px 18px calc(18px + env(safe-area-inset-bottom));
  }
  .sheet{
    width:min(560px,92vw);
  }
  .bottom-sheet{
    width:min(640px,100%);
  }
  .cropper-shell{
    width:min(94vw,760px);
  }
}
/* --- Cropper mobile scroll fix --- */
@media (max-width:768px){
  .cropper-page{
    align-items:flex-start;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    padding:calc(8px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom));
  }
  .cropper-shell{
    height:auto;
    max-height:none;
  }
}
@media (max-width:768px){
  @supports (height:100dvh){
    .cropper-page{
      min-height:100dvh;
    }
    .cropper-shell{
      height:min(920px,calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 18px));
    }
    .cropper-frame{
      max-height:calc(100dvh - 280px);
    }
  }
}
@media (max-width:768px) and (max-height:760px){
  .cropper-page{
    padding:calc(4px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom));
  }
  .cropper-shell{
    border-radius:18px;
  }
  .cropper-topbar{
    height:52px;
    padding:0 12px;
  }
  .cropper-stage{
    padding:8px 10px;
  }
  .cropper-bottom{
    padding:10px 12px calc(12px + env(safe-area-inset-bottom));
  }
}
/* --- Cropper mobile fixed floating action bar (no scroll dependency) --- */
@media (max-width:768px){
  .cropper-page{
    padding:0!important;
    align-items:stretch!important;
    overflow:hidden!important;
  }
  .cropper-shell{
    position:relative;
    width:100vw!important;
    height:100dvh!important;
    max-height:100dvh!important;
    border-radius:0!important;
    border:0!important;
    box-shadow:none!important;
  }
  @supports not (height:100dvh){
    .cropper-shell{
      height:100vh!important;
      max-height:100vh!important;
    }
  }
  .cropper-topbar{
    position:sticky;
    top:0;
    z-index:160;
  }
  .cropper-stage{
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
    align-items:flex-start;
    padding:10px 10px calc(190px + env(safe-area-inset-bottom))!important;
  }
  .cropper-frame{
    max-height:none!important;
    min-height:min(42vh,420px);
  }
  .cropper-bottom{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:180;
    margin:0;
    border-radius:18px 18px 0 0;
    border-top:1px solid #d9e2f0;
    background:#f8fafff5;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    box-shadow:0 -10px 28px rgba(15,23,42,.12);
    padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;
  }
  .zoom-row{
    margin-bottom:8px;
  }
  .cropper-actions{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }
}
@media (max-width:768px) and (max-height:760px){
  .cropper-topbar{
    height:50px!important;
    padding:0 12px!important;
  }
  .cropper-stage{
    padding:8px 8px calc(168px + env(safe-area-inset-bottom))!important;
  }
  .cropper-bottom{
    padding:8px 10px calc(10px + env(safe-area-inset-bottom))!important;
  }
  .cropper-actions .solid,
  .cropper-actions .light{
    padding:10px 8px;
    font-size:.82rem;
  }
}
@media (min-width:1024px){
  body{
    background:radial-gradient(circle at 14% 12%,#dbeafe 0,#eef2ff 34%,#f8fafc 100%)!important;
  }
  .screen{
    padding:28px;
    align-items:stretch;
  }
  .phone{
    width:min(95vw,1180px);
    height:min(94vh,960px);
    border-radius:28px;
    border:1px solid #dbe2f0;
    margin:0 auto;
    box-shadow:0 30px 80px rgba(15,23,42,.22);
  }
  .status-bar{
    padding:0 28px;
  }
  .container{
    background:linear-gradient(180deg,#f8fafc 0,#f1f5f9 100%);
  }
  .view{
    width:min(100%,1060px);
    margin:0 auto;
    padding:26px 28px 38px;
  }
  .home-head h1{
    font-size:36px;
  }
  .hero{
    min-height:260px;
    padding:30px;
  }
  .hero h2{
    font-size:40px;
  }
  .hero p{
    font-size:13px;
  }
  .cam{
    width:120px;
    height:120px;
  }
  .cam::before,.cam::after{
    width:102px;
    height:102px;
  }
  .cam-cartoon{
    width:74px;
    height:74px;
  }
  .grid2{
    gap:16px;
  }
  .card{
    min-height:164px;
  }
  .view.result .top{
    width:min(100%,1060px);
    margin:0 auto;
    padding:0 16px;
    border-radius:16px;
  }
  .view.result .scroll{
    width:min(100%,1060px);
    margin:0 auto;
    padding:18px 16px 24px;
  }
  .bottom-actions{
    width:min(100%,1060px);
    margin:0 auto;
    padding:16px 16px calc(16px + env(safe-area-inset-bottom));
  }
  .tabbar{
    width:min(100%,1060px);
    margin:0 auto;
    border-radius:16px 16px 0 0;
    overflow:hidden;
  }
  .sheet{
    width:min(620px,92vw);
  }
  .bottom-sheet{
    width:min(720px,100%);
  }
  .cropper-shell{
    width:min(95vw,980px);
    height:min(94vh,940px);
  }
  @supports selector(.view:has(> .hero)){
    .view:has(> .hero){
      display:grid;
      grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
      grid-template-areas:
        "head head"
        "hero boostTitle"
        "hero boostGrid";
      column-gap:18px;
      row-gap:10px;
      align-content:start;
    }
    .view:has(> .hero)>.home-head{
      grid-area:head;
      margin-bottom:8px;
    }
    .view:has(> .hero)>.hero{
      grid-area:hero;
      margin-bottom:0;
      height:100%;
    }
    .view:has(> .hero)>.title{
      grid-area:boostTitle;
      margin:0;
      align-self:end;
    }
    .view:has(> .hero)>.grid2{
      grid-area:boostGrid;
      grid-template-columns:1fr;
      gap:14px;
    }
  }
}


/* hotfix: remove top-right white circles */
.status-bar .icons{display:none!important;}
.status-bar{justify-content:flex-start!important;}


/* Error Notebook Visual Refresh */
.error-item{position:relative;align-items:center;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border:1px solid #e2eaf7;border-radius:18px;padding:10px 12px;gap:12px;box-shadow:0 6px 18px rgba(15,23,42,.06);transition:all .2s ease}
.error-item:active{transform:scale(.998)}
.error-item::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:3px;background:#a5b4fc}
.error-item.ok::before{background:#6ee7b7}
.error-item.todo::before{background:#93c5fd}
.error-thumb{width:74px;min-width:74px;height:74px;border-radius:12px;border:1px solid #dbe4f4;background:linear-gradient(145deg,#f1f5fb,#e8eef9);box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.error-copy{padding:4px 0 4px 2px;min-width:0;flex:1}
.error-copy small{display:block;color:#98a5bc;font-size:.64rem;font-weight:500;letter-spacing:.03em}
.error-copy strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:6px 0 2px;color:#0f172a;font-size:.87rem;font-weight:500;line-height:1.42;letter-spacing:.01em}
.error-copy p{display:inline-flex;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:6px;padding:3px 10px;border-radius:999px;border:1px solid #dbe7fb;background:#f1f6ff;color:#334155;font-size:.68rem;font-weight:500;letter-spacing:.01em}
.error-item.ok .error-copy p{background:#ecfdf3;border-color:#b7ebd0;color:#166534}
.error-item.todo .error-copy p{background:#eef2ff;border-color:#d5ddff;color:#3730a3}
@media (hover:hover){.error-item:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(15,23,42,.11);border-color:#cfdcf2}}

/* Error Meta Chips */
.error-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px}
.tag-status{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;border:1px solid transparent;font-size:.64rem;font-weight:600;letter-spacing:.02em;line-height:1.45}
.tag-status.todo{background:#eef2ff;color:#3730a3;border-color:#dbe3ff}
.tag-status.ok{background:#ecfdf3;color:#166534;border-color:#bcead2}
.tag-kp{display:inline-flex;align-items:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 10px;border-radius:999px;border:1px solid #dbe7fb;background:#f7faff;color:#334155;font-size:.67rem;font-weight:500;letter-spacing:.01em}
