/* ===== 全屏铺满容器（占满整个电脑屏幕） ===== */
  .app-shell{
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
      radial-gradient(circle at 8% 12%, rgba(255,218,190,.42), transparent 28%),
      radial-gradient(circle at 86% 80%, rgba(215,235,201,.42), transparent 30%),
      #F7F1E9;
  }

  /* 顶部横贯全屏的现代化导航栏 */
  .web-navbar{
    width: 100%;
    height: 74px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 clamp(20px, 2.2vw, 40px);
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(220,200,177,.7);
    box-shadow: 0 4px 20px rgba(73,49,31,.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border-radius: 0;
    position: relative;
    top: 0;
  }
  .nav-brand{
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    border: 0;
    background: transparent;
    padding: 5px 6px 5px 4px;
    border-radius:16px;
    color: inherit;
    font: inherit;
    text-align: left;
  }
  .brand-avatar{
    width: 46px; height: 46px; border-radius: 15px;
    background: linear-gradient(135deg, #FFEBDD, #FFD0B5);
    display: flex; align-items: center; justify-content: center;
    font-size: 25px; box-shadow: 0 6px 14px rgba(184,66,18,.18), inset 0 1px rgba(255,255,255,.8);
  }
  .brand-titles .brand-name{
    font-size: 20px; font-weight: 900; color: var(--ink); display: flex; align-items: center; gap: 8px;
    letter-spacing: .2px;
  }
  .brand-badge{
    font-size: 11px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--orange), #FF965B);
    padding: 2px 8px; border-radius: 999px; letter-spacing: 0;
  }
  .brand-tagline{ font-size: 12px; color: var(--ink-light); margin-top: 1px; }

  .web-nav-tabs{
    display: flex;
    align-items: center;
    background: var(--surface-muted);
    padding: 4px;
    border-radius: 999px;
    gap: 4px;
    border:1px solid rgba(234,220,203,.8);
  }
  .web-nav-tabs .tab{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    min-height:44px;
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
    color: var(--ink-light);
    transition: color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) ease;
  }
  .web-nav-tabs .tab:hover{ color: var(--orange); background: rgba(255,255,255,.6); }
  .web-nav-tabs .tab.active{
    background: #FFFFFF;
    color: var(--orange);
    box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255,255,255,.9);
  }
  .web-nav-tabs .tab .e{ font-size: 17px; }

  .web-nav-right{
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .nav-stat-chip{
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 13px; min-height:40px; border-radius: 999px; font-size: 13px; font-weight: 750;
    border: none; background: #FFF6EE; color: var(--orange);
    box-shadow: inset 0 0 0 1px #F2D7C5; cursor: pointer; font-family: inherit;
    transition: all .15s ease;
  }
  .nav-stat-chip.streak-chip{ background: #FFF2E8; color: #D4380D; cursor: default; }
  .nav-stat-chip .fire{ animation: flick 1.2s ease-in-out infinite alternate; }
  .btn-pet-nav{
    display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 18px; min-height:42px; border-radius: 999px; font-size: 13.5px; font-weight: 800;
    background: linear-gradient(135deg, var(--orange), #FF8542);
    color: #fff; border: none; cursor: pointer; font-family: inherit;
    box-shadow: 0 7px 16px rgba(184,66,18,.24); transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
  }
  .btn-pet-nav:hover{ transform: translateY(-1px); }
  .btn-pet-nav:active{ transform: scale(.95); }
  .nav-profile-chip{
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px 5px 5px; min-height:42px; border-radius: 999px; background: #F6EEE3;
    font-size: 12.5px; font-weight: 750; color: var(--ink); cursor: pointer;
    border: 0; font-family: inherit;
  }
  .nav-profile-chip .u-avatar{
    width: 30px; height: 30px; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 17px;
  }

  /* 铺满剩余屏幕的主体布局（左边学习区，右边常驻伴学萌宠栏） */
  .web-main-layout{
    flex: 1;
    width: 100%;
    height: calc(100vh - 74px);
    display: flex;
    overflow: hidden;
    align-items: stretch;
  }

  /* ===== 主内容画板（铺满剩余空间） ===== */
  .phone{
    flex: 1;
    height: 100%;
    min-width: 0;
    background:
      radial-gradient(circle at 7% 8%, rgba(255,230,211,.72), transparent 24%),
      radial-gradient(circle at 92% 88%, rgba(226,242,214,.72), transparent 26%),
      var(--cream);
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }
  .statusbar{
    height: 28px;
    display: none; /* 桌面全屏模式隐藏手机状态栏 */
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 12px;
    color: var(--ink-light);
    flex-shrink: 0;
  }
  .statusbar .dots{ letter-spacing:2px; }

  /* ===== 页面滚动区（全屏独立滚动，美化滚动条） ===== */
  .pages{
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
  }
  .page{
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: 36px max(32px, calc((100% - 1160px) / 2)) 72px;
    display: none;
    scrollbar-width: thin;
    scrollbar-color: #E2D0BE transparent;
  }
  .page::-webkit-scrollbar{ width: 8px; }
  .page::-webkit-scrollbar-thumb{ background: #E2D0BE; border-radius: 999px; }
  .page::-webkit-scrollbar-track{ background: transparent; }
  .page.active{ display: block; animation: fadeUp .3s ease; }
  @keyframes fadeUp{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }

  /* ===== 通用 ===== */
  .card{
    background:var(--surface-raised); border-radius:var(--radius-lg); padding:22px;
    border:1px solid rgba(234,220,203,.86);
    box-shadow:var(--shadow-md);
    margin-bottom:20px;
  }
  .section-title{
    font-size:18px; font-weight:850; margin:28px 2px 14px;
    display:flex; align-items:center; gap:8px;
  }
  .section-title::before{
    content:""; width:5px; height:20px; border-radius:999px;
    background:linear-gradient(180deg,var(--orange-bright),var(--orange));
    box-shadow:0 3px 8px rgba(184,66,18,.2);
  }
  .chip{
    display:inline-flex; align-items:center; gap:4px;
    padding:6px 12px; min-height:30px; border-radius:999px; font-size:12.5px; font-weight:750;
    background:var(--orange-soft); color:#AD3F10; white-space:nowrap;
  }
  .chip.blue{ background:var(--blue-soft); color:#2F6DB5; }
  .chip.green{ background:var(--green-soft); color:#347E12; }
  .btn-main{
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--orange-bright) 0%, var(--orange) 100%);
    color: #fff; font-size: 18px; font-weight: 850; letter-spacing: .4px;
    padding: 16px 20px; min-height: 56px; border-radius: 18px; font-family: inherit;
    box-shadow: 0 10px 24px rgba(184,66,18,.25), inset 0 1px rgba(255,255,255,.2);
    transition: transform var(--motion-base) cubic-bezier(.16,1,.3,1), box-shadow var(--motion-base) ease, filter var(--motion-base) ease;
  }
  .btn-main:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(184, 66, 18, 0.36);
  }
  .btn-main:active{ transform:scale(.96); }
  button:focus-visible, textarea:focus-visible, select:focus-visible, [role="button"]:focus-visible{ outline:3px solid var(--focus-ring); outline-offset:3px; }
  button:disabled{ cursor:not-allowed; opacity:.58; transform:none !important; box-shadow:none; }
  ::selection{ background:var(--orange-soft); color:var(--ink); }
  .api-status{ margin:0 2px 18px; padding:9px 13px; min-height:38px; border-radius:12px; display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12.5px; font-weight:650; background:var(--blue-soft); color:#285D93; border:1px solid rgba(61,127,190,.12); }
  .api-status.demo{ background:#FFF0DB; color:#8A4B12; }
  .api-status.error{ background:#FEECEB; color:var(--danger); }
  .api-status button{ border:0; background:transparent; color:inherit; font:inherit; font-weight:800; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
  .sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

  /* ===== 首页 ===== */
  .home-header{ display:flex; justify-content:space-between; align-items:center; gap:24px; padding:4px 2px 0; }
  .hello-name{ margin:0; font-size:clamp(24px,2vw,31px); line-height:1.25; font-weight:900; letter-spacing:-.02em; }
  .hello-date{ font-size:14px; color:var(--ink-light); margin-top:6px; }
  .streak-badge{
    display:flex; align-items:center; gap:5px;
    background:linear-gradient(135deg,#FF7A45,#FFB03A);
    color:#fff; font-weight:800; font-size:13px;
    padding:9px 15px; min-height:42px; border-radius:999px;
    box-shadow:0 7px 16px rgba(184,66,18,.22), inset 0 1px rgba(255,255,255,.28);
  }
  .streak-badge .fire{ font-size:16px; animation:flick 1s ease-in-out infinite alternate; }
  @keyframes flick{ from{transform:scale(1) rotate(-4deg);} to{transform:scale(1.15) rotate(5deg);} }

  .mascot-card{
    background:linear-gradient(145deg,#FFF2E6 0%,#FFEDEF 100%);
    border-radius:var(--radius-lg); padding:22px; margin-top:18px;
    display:flex; align-items:center; gap:16px;
    position:relative; overflow:hidden;
    border:1px solid rgba(236,204,182,.8);
    box-shadow:var(--shadow-md);
  }
  .mascot-card::after{
    content:""; position:absolute; right:-30px; top:-30px;
    width:110px; height:110px; border-radius:50%;
    background:rgba(255,255,255,.45);
  }
  .mascot-card::before{
    content:""; position:absolute; left:-34px; bottom:-52px; width:140px; height:140px;
    border-radius:50%; background:rgba(255,255,255,.28);
  }
  .mascot{
    width:78px; height:78px; border-radius:24px; flex-shrink:0;
    background:radial-gradient(circle at 32% 30%, #fff, #FFDDC2);
    display:flex; align-items:center; justify-content:center;
    font-size:40px;
    box-shadow:0 10px 22px rgba(184,66,18,.18), inset 0 -4px 8px rgba(255,150,90,.16);
    animation:bob 2.4s ease-in-out infinite;
  }
  @keyframes bob{ 0%,100%{transform:translateY(0);} 50%{transform:translateY(-5px);} }
  .mascot-copy{ min-width:0; position:relative; z-index:1; }
  .mascot-eyebrow{ display:inline-flex; margin-bottom:7px; color:var(--orange-strong); font-size:12px; font-weight:850; letter-spacing:.08em; }
  .mascot-text{ font-size:15px; line-height:1.7; font-weight:650; position:relative; z-index:1; }
  .mascot-text b{ color:#E05A1A; }

  .task-card{
    background: var(--surface-raised);
    border-radius: var(--radius-lg); padding: 26px; margin-top: 18px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(225,204,181,.95);
  }
  .task-tag-row{ display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap; align-items:center; }
  .task-title{ font-size:clamp(21px,1.6vw,26px); font-weight:900; line-height:1.35; letter-spacing:-.015em; text-wrap:balance; }
  .task-why{
    margin-top:14px; font-size:14.5px; color:var(--ink); line-height:1.75;
    background:var(--surface-muted); border-radius:16px; padding:14px 16px;
    border:1px solid var(--border);
  }
  .task-why b{ color:var(--ink); }
  .task-meta{ display:flex; align-items:center; gap:10px; margin:16px 0; font-size:13px; color:var(--ink-light); flex-wrap:wrap; }
  .task-meta .time{ background:var(--blue-soft); color:#2F6DB5; font-weight:700; padding:4px 10px; border-radius:999px; }

  .steps{ display:flex; justify-content:space-between; margin-top:16px; position:relative; }
  .steps::before{
    content:""; position:absolute; top:17px; left:9%; right:9%; height:3px;
    background:#F1E4D6; border-radius:2px; z-index:0;
  }
  .steps .progress-line{
    position:absolute; top:17px; left:9%; width:82%; height:3px; z-index:1;
    background:linear-gradient(90deg,var(--orange),var(--green));
    border-radius:2px; transform:scaleX(0); transform-origin:left center;
    transition:transform .5s cubic-bezier(.22,1,.36,1);
  }
  .step{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; gap:6px; width:19%; transition:all .35s ease; }
  .step .dot{
    width:34px; height:34px; border-radius:50%; background:#fff;
    border:3px solid #F1E4D6; display:flex; align-items:center; justify-content:center;
    font-size:15px; transition:all .3s;
  }
  .step.done .dot{ border-color:var(--green); background:var(--green-soft); }
  .step.now .dot{
    border-color:var(--orange); background:var(--orange);
    box-shadow:0 0 0 6px rgba(255,122,69,.18);
    animation:pulse 1.6s ease-in-out infinite;
  }
  .step.locked{ opacity:0.55; }
  .step.locked .dot{
    border-style:dashed; border-color:#DFD1C1; background:#FBF6F0;
    font-size:13px; color:#A89988;
  }
  .step.unlocking{
    animation:unlockPop .6s cubic-bezier(.16,1,.3,1);
  }
  @keyframes unlockPop{
    0%{ transform:scale(0.6); opacity:0.3; }
    60%{ transform:scale(1.2); }
    100%{ transform:scale(1); opacity:1; }
  }
  @keyframes pulse{ 0%,100%{box-shadow:0 0 0 4px rgba(255,122,69,.18);} 50%{box-shadow:0 0 0 9px rgba(255,122,69,.10);} }
  .step span{ font-size:12px; color:var(--ink-light); font-weight:600; text-align:center; transition:color .3s; }
  .step.now span{ color:var(--orange); font-weight:800; }
  .step.done span{ color:#3E9A12; }
  .step.locked span{ color:#B0A292; }

  .loop-status-bar{
    display:flex; align-items:center; justify-content:space-between;
    margin-top:14px; padding:9px 13px; border-radius:12px;
    background:rgba(255,122,69,.07); font-size:12.5px; color:var(--ink);
    border:1px solid rgba(255,122,69,.18); transition:all .3s;
  }
  .loop-status-bar.completed{
    background:rgba(82,196,26,.09); border-color:rgba(82,196,26,.3);
    color:#237804; font-weight:600;
  }
  .loop-status-tag{
    display:inline-flex; align-items:center; gap:4px;
    font-weight:700; color:var(--orange); flex-shrink:0;
  }
  .loop-status-bar.completed .loop-status-tag{
    color:#389e0d;
  }
  .loop-status-desc{
    color:var(--ink-light); margin-left:8px; flex:1; text-align:right; font-size:11.5px;
  }
  .loop-status-bar.completed .loop-status-desc{
    color:#389e0d; font-weight:600;
  }

  .habit-item{
    display:flex; align-items:center; gap:14px; padding:14px 0;
    border-bottom:1px dashed #F0E4D4;
  }
  .habit-item:last-child{ border-bottom:none; }
  .habit-emoji{ font-size:22px; width:46px; height:46px; border-radius:14px; background:var(--cream); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .habit-info{ flex:1; }
  .habit-info .t{ font-size:15px; font-weight:800; }
  .habit-info .s{ font-size:12.5px; color:var(--ink-light); margin-top:3px; line-height:1.5; }
  .check{
    width:44px; height:44px; border-radius:50%; border:2.5px solid #D2BEA7;
    background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center;
    font-size:15px; color:transparent; transition:all .25s; flex-shrink:0;
  }
  .check.on{ background:var(--green); border-color:var(--green); color:#fff; }

  /* 波浪分隔 */
  .wave{ height:14px; margin:4px 0 0;
    background:radial-gradient(circle at 10px -4px, transparent 12px, rgba(255,122,69,.10) 13px);
    background-size:20px 14px; background-repeat:repeat-x;
  }

  

/* ===== 成长页 ===== */
  .growth-page-header{
    display:flex; align-items:flex-start; justify-content:space-between; gap:24px;
    margin:4px 2px 18px;
  }
  .growth-page-title{
    margin:0; font-size:clamp(24px,2vw,30px); line-height:1.25; font-weight:900;
    letter-spacing:-.025em; color:var(--ink);
  }
  .growth-page-intro{
    margin:6px 0 0; font-size:13.5px; line-height:1.55; color:var(--ink-light);
  }
  .view-toggle{
    display:flex; background:#F1E6D8; border-radius:999px; padding:4px;
    margin:0; position:relative; width:280px; flex-shrink:0;
  }
  .view-toggle button{
    flex:1; border:none; background:transparent; padding:11px 8px; min-height:44px; border-radius:999px;
    font-size:13.5px; font-weight:700; color:var(--ink-light); cursor:pointer;
    font-family:inherit; transition:all .25s; position:relative; z-index:1;
  }
  .view-toggle button.on{ background:#fff; color:#B84212; box-shadow:0 3px 8px rgba(61,50,41,.10); }

  .growth-summary-card{
    overflow:hidden; background:var(--surface-raised); border:1px solid rgba(225,204,181,.95);
    border-radius:16px; box-shadow:var(--shadow-lg); margin-bottom:12px;
  }
  .growth-summary-grid{
    display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,.85fr) minmax(0,.95fr);
    align-items:stretch;
  }
  .growth-summary-primary,
  .growth-summary-item{ padding:20px 22px; min-width:0; }
  .growth-summary-primary{
    display:flex; gap:14px; align-items:flex-start; background:#F4FAEE;
  }
  .growth-summary-icon{
    width:40px; height:40px; flex:0 0 40px; display:flex; align-items:center; justify-content:center;
    border-radius:12px; background:#fff; font-size:20px; box-shadow:0 5px 14px rgba(69,112,43,.12);
  }
  .growth-summary-primary h2{
    margin:1px 0 6px; font-size:16px; line-height:1.35; font-weight:850; color:var(--ink);
  }
  .growth-summary-item{ border-left:1px solid #EEE2D5; }
  .growth-summary-label{
    display:flex; align-items:center; gap:7px; margin-bottom:7px;
    font-size:13px; font-weight:850; color:var(--ink);
  }
  .growth-summary-copy{ font-size:13px; color:#6E5C4C; line-height:1.65; overflow-wrap:anywhere; }
  .growth-summary-copy b{ color:#347E12; }
  .growth-summary-copy b.dn{ color:#2F6DB5; }
  .growth-metrics{
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
    margin:0; padding:0; background:#FBF7F1; border-top:1px solid #EEE2D5;
  }
  .growth-metrics > div{
    display:flex; align-items:baseline; justify-content:center; gap:10px;
    padding:13px 16px; border-right:1px solid #EEE2D5;
  }
  .growth-metrics > div:last-child{ border-right:0; }
  .growth-metrics dt{ font-size:12px; font-weight:700; color:var(--ink-light); }
  .growth-metrics dd{ display:flex; align-items:baseline; gap:4px; margin:0; color:var(--ink); }
  .growth-metrics strong{ font-size:20px; line-height:1; font-weight:900; font-variant-numeric:tabular-nums; }
  .growth-metrics dd span{ font-size:11.5px; color:var(--ink-light); }

  .kp-item{
    display:flex; align-items:center; gap:12px; padding:11px 0;
    border-bottom:1px dashed #F0E4D4;
  }
  .kp-item:last-child{ border-bottom:none; }
  .kp-name{ flex:1; font-size:14px; font-weight:700; }
  .kp-name .sub{ font-size:12.5px; color:var(--ink-light); font-weight:400; margin-top:2px; }
  .kp-dots{ display:flex; gap:5px; }
  .kp-dots i{ width:9px; height:9px; border-radius:50%; background:#EDE1D2; }
  .kp-dots i.on{ background:var(--orange); }
  .kp-dots i.on.g{ background:var(--green); }
  .kp-tag{ font-size:10.5px; font-weight:700; padding:3px 8px; border-radius:999px; }
  .kp-tag.master{ background:var(--green-soft); color:#347E12; }
  .kp-tag.doing{ background:var(--orange-soft); color:#AD3F10; }
  .kp-tag.new{ background:#F1E6D8; color:var(--ink-light); }

  .trend-wrap{ padding:4px 0 2px; }
  .trend-row{ display:flex; align-items:flex-end; gap:8px; margin-bottom:8px; }
  .trend-row .day{ width:26px; font-size:12px; color:var(--ink-light); font-weight:600; flex-shrink:0; }
  .trend-row .bar-track{ flex:1; height:14px; background:#F6EEE2; border-radius:999px; overflow:hidden; }
  .trend-row .bar{
    height:100%; border-radius:999px;
    background:linear-gradient(90deg,var(--blue),#7FB2E8);
    animation:grow .8s ease backwards;
  }
  @keyframes grow{ from{width:0 !important;} }
  .trend-row .val{ min-width:68px; font-size:12px; color:var(--ink-light); text-align:right; flex-shrink:0; white-space:nowrap; }
  .trend-note{ font-size:12px; color:#347E12; font-weight:700; margin-top:8px; }

  /* ===== 我的页 ===== */
  .profile-card{
    background:linear-gradient(135deg,#FFF3E4,#FFE3D3);
    border-radius:24px; padding:20px; margin-top:8px;
    display:flex; gap:16px; align-items:center;
  }
  .profile-avatar{
    width:70px; height:70px; border-radius:50%; background:#fff;
    display:flex; align-items:center; justify-content:center; font-size:36px;
    box-shadow:0 6px 14px rgba(255,122,69,.22); flex-shrink:0;
  }
  .profile-info .nm{ font-size:19px; font-weight:800; }
  .profile-info .gr{ font-size:13px; color:var(--ink-light); margin-top:3px; }
  .interest-row{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }

  .pref-row{
    display:flex; justify-content:space-between; align-items:center;
    padding:13px 0; border-bottom:1px dashed #F0E4D4; font-size:14px;
  }
  .pref-row:last-child{ border-bottom:none; }
  .pref-row .k{ font-weight:700; display:flex; align-items:center; gap:8px; }
  .pref-row .v{ color:var(--ink-light); font-size:13px; }
  .sync-bar{ margin-top:8px; }
  .sync-track{ height:10px; background:#F6EEE2; border-radius:999px; overflow:hidden; margin-top:8px; }
  .sync-fill{ height:100%; width:0%; border-radius:999px; background:linear-gradient(90deg,var(--green),#8BD94E); }
  .sync-text{ font-size:12px; color:var(--ink-light); margin-top:6px; }

  .setting-item{
    width:100%; display:flex; align-items:center; gap:12px; padding:15px 8px;
    border:0; border-bottom:1px dashed #F0E4D4; cursor:pointer; background:transparent;
    color:var(--ink); font:inherit; text-align:left; min-height:56px;
    border-radius:10px; transition:background .15s, transform .1s;
  }
  .setting-item:hover{ background:rgba(235, 120, 36, .05); }
  .setting-item:active{ transform:scale(.99); background:rgba(235, 120, 36, .09); }
  .setting-item:last-child{ border-bottom:none; }
  .setting-item .ic{
    width:38px; height:38px; border-radius:12px; font-size:18px;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
  }
  .setting-item .tx{ flex:1; }
  .setting-item .tx .t{ font-size:14.5px; font-weight:700; }
  .setting-item .tx .s{ font-size:12.5px; color:var(--ink-light); margin-top:2px; }
  .setting-item .arrow{ color:#C9B8A6; font-size:16px; }
  .setting-item:focus-visible,.tab:focus-visible,.check:focus-visible,.view-toggle button:focus-visible{ outline:3px solid #2D73B9; outline-offset:2px; }
  .toast{ position:absolute; left:20px; right:20px; bottom:78px; z-index:20; padding:12px 14px; border-radius:14px; background:#3D3229; color:#fff; font-size:13px; line-height:1.5; box-shadow:0 8px 24px rgba(61,50,41,.24); }

  /* ===== 底部 Tab 栏（桌面宽屏自动隐藏，小屏幕自适应显示） ===== */
  .tabbar{
    display: none;
    flex-shrink: 0; background: #fff;
    border-top: 1px solid #F1E6D8; padding: 8px 4px 12px;
    box-shadow: 0 -4px 16px rgba(61,50,41,.05);
  }
  .tab{
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 0; cursor: pointer; border: none; background: none; font-family: inherit;
    color: var(--ink-light); transition: color .2s; position: relative;
  }
  .tab .e{ font-size: 21px; transition: transform .2s; }
  .tab .t{ font-size: 12px; font-weight: 700; }
  .tab.active{ color: var(--orange); }
  .tab.active .e{ transform: translateY(-2px) scale(1.12); }
  .tab.active::before{
    content: ""; position: absolute; top: -8px; width: 22px; height: 4px;
    border-radius: 2px; background: var(--orange);
  }

  

  @media (min-width: 1500px) {
    .home-intro-grid{
      display:grid;
      grid-template-columns:minmax(290px,.68fr) minmax(620px,1.72fr);
      gap:20px;
      align-items:stretch;
      margin-top:18px;
    }
    .home-intro-grid .mascot-card,
    .home-intro-grid .task-card{ margin-top:0; }
    .home-intro-grid .mascot-card{
      align-items:flex-start;
      flex-direction:column;
      justify-content:center;
      padding:30px;
    }
    .home-intro-grid .mascot{ width:86px; height:86px; font-size:46px; }
    .home-intro-grid .mascot-text br{ display:none; }
    .card.habit-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 28px; }
    .card.habit-grid .habit-item{ border-bottom:0; }
  }

/* 响应式断点（小屏兼容适配） */
  @media (max-width: 940px) {
    html, body{ width:100%; height:100%; }
    body{ padding:0; }
    .app-shell{
      width:100%;
      height:100vh;
      height:100dvh;
      min-height:100svh;
    }
    .web-navbar{
      height:var(--mobile-navbar-height);
      min-height:var(--mobile-navbar-height);
      padding:6px max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px));
      border-radius:0;
      gap:10px;
    }
    .web-navbar .web-nav-tabs{ display: none; }
    .web-navbar .btn-pet-nav,
    .web-navbar .nav-profile-chip{ display:none; }
    .web-navbar .web-nav-right{ gap:6px; flex-shrink:0; }
    .web-main-layout{
      display:block;
      height:calc(100vh - var(--mobile-navbar-height));
      height:calc(100dvh - var(--mobile-navbar-height));
    }
    .phone{ width:100%; height:100%; min-width:0; min-height:0; border-radius:0; }
    .statusbar{ display: flex; }
    .tabbar{
      display:flex; position:fixed; left:0; right:0; bottom:0; z-index:1000;
      height:var(--mobile-tabbar-total-height);
      min-height:var(--mobile-tabbar-total-height);
      padding:8px max(4px, env(safe-area-inset-right, 0px)) max(12px, var(--mobile-safe-bottom)) max(4px, env(safe-area-inset-left, 0px));
      border-top: 1px solid #EFE4D6; box-shadow: 0 -4px 18px rgba(61,50,41,.08);
    }
    .desktop-pet-card{
      position:fixed; right:max(14px, env(safe-area-inset-right, 0px));
      bottom:calc(var(--mobile-tabbar-total-height) + 8px); z-index:999;
      width: auto; background: transparent; box-shadow: none; border: none; padding: 0; top: auto;
    }
    .desktop-pet-card .pet-card-header,
    .desktop-pet-card .pet-info-row,
    .desktop-pet-card .pet-progress-wrap,
    .desktop-pet-card .pet-action-grid,
    .desktop-pet-card .pet-speech-bubble,
    .desktop-pet-card .pet-achievement-section{
      display: none;
    }
    .desktop-pet-card .pet-stage-box{
      background: transparent; border: none; padding: 0;
    }
    .desktop-pet-card .pet-character-wrap{
      width: 62px; height: 62px; border-radius: 50%; background: #FFF9F0;
      box-shadow: 0 8px 24px rgba(61,50,41,.24); border: 3px solid #fff;
      display: flex; align-items: center; justify-content: center; margin: 0;
    }
    .desktop-pet-card .pet-character svg{ width: 48px; height: 48px; }
    .mobile-pet-badge{
      display: inline-flex !important; position: absolute; top: -3px; right: -3px;
      background: #FF4D4F; color: #fff; font-size: 10px; font-weight: 800;
      padding: 2px 6px; border-radius: 999px; border: 2px solid #fff;
      box-shadow: 0 2px 6px rgba(255,77,79,.3);
    }
    .modal-pet-preview{ flex-direction: column; text-align: center; }
    .modal-pet-preview-left{ flex-direction: column; }
    .preview-meta{ text-align: center; }
    .preview-interact-row{ width: 100%; max-width: 280px; flex-direction: row; }
    .roles-grid{ grid-template-columns: 1fr 1fr; }
    .closet-grid{ grid-template-columns: repeat(3, 1fr); }
    .growth-page-header{ align-items:center; }
    .growth-summary-grid{ grid-template-columns:1fr 1fr; }
    .growth-summary-primary{ grid-column:1 / -1; }
    .growth-summary-item:nth-child(2){ border-left:0; }
    #page-growth .growth-columns, .me-columns{ grid-template-columns: 1fr; }
    .card.habit-grid{ grid-template-columns: 1fr; }
    .page{
      padding:14px max(16px, env(safe-area-inset-right, 0px)) calc(var(--mobile-tabbar-total-height) + 20px) max(16px, env(safe-area-inset-left, 0px));
      scroll-padding-bottom:calc(var(--mobile-tabbar-total-height) + 88px);
    }
    .home-intro-grid{ display:block; }
    .home-header{ align-items:flex-start; }
    .hello-name{ font-size:24px; }
    .mascot-card{ padding:18px; }
    .task-card{ padding:20px; }
    .toast{ bottom:calc(var(--mobile-tabbar-total-height) + 12px); }
  }

  @media (max-width: 540px) {
    .brand-avatar{ width:40px; height:40px; border-radius:12px; font-size:22px; }
    .brand-titles .brand-name{ font-size:18px; }
    .brand-tagline,
    .brand-badge,
    .web-navbar .streak-chip{ display:none; }
    .nav-stat-chip{ min-width:44px; min-height:44px; padding:7px 10px; justify-content:center; }
    .nav-sound-btn{ min-width:44px; min-height:44px; }
    .growth-page-header{ align-items:stretch; flex-direction:column; gap:14px; }
    .view-toggle{ width:100%; }
    .growth-summary-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
    .growth-summary-primary{ grid-column:1 / -1; }
    .growth-summary-primary,
    .growth-summary-item{ padding:17px 16px; }
    .growth-summary-item{ border-left:0; border-top:1px solid #EEE2D5; }
    .growth-summary-item:nth-child(3){ border-left:1px solid #EEE2D5; }
    .growth-metrics > div{ align-items:center; flex-direction:column; gap:4px; padding:12px 6px; text-align:center; }
    .growth-metrics dd{ flex-direction:column; align-items:center; gap:2px; }
    .growth-metrics strong{ font-size:19px; }
    .growth-details-action{ font-size:0; }
    .growth-details-action::before{ content:'证据'; font-size:12px; }
    .growth-details-body{ padding-left:16px; }
    .loop-report-header{ align-items:flex-start; }
    .loop-report-header .loop-stage-pill{ text-align:right; }
    .api-status{ margin-bottom:14px; }
    .home-header{ gap:12px; }
    .streak-badge{ padding:8px 11px; font-size:12px; }
    .mascot-card{ align-items:flex-start; }
    .mascot{ width:60px; height:60px; border-radius:18px; font-size:33px; }
    .mascot-text{ font-size:14px; }
    .task-card{ padding:18px; }
    .task-title{ font-size:21px; }
    .task-why{ font-size:14px; padding:13px 14px; }
    .task-meta{ align-items:flex-start; flex-direction:column; }
    .btn-main{ min-height:54px; font-size:16px; }
    .card{ padding:18px; border-radius:22px; }
  }

  /* ===== ⚙️ 设置与家长管理模态窗 & 家长锁样式 ===== */
  .setting-modal-backdrop{
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(43, 33, 24, .48);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    animation: fadeInModal .2s ease-out;
  }
  @keyframes fadeInModal{
    from{ opacity: 0; }
    to{ opacity: 1; }
  }
  .setting-modal-card{
    background: #FFFFFF;
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(43, 33, 24, .2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: popModal .25s cubic-bezier(.16,1,.3,1);
    border: 1.5px solid #F0E3D3;
  }
  @keyframes popModal{
    from{ transform: scale(.92); opacity: 0; }
    to{ transform: scale(1); opacity: 1; }
  }
  .setting-modal-header{
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #F3ECE2;
    background: #FCF9F5;
  }
  .setting-modal-title{
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .setting-close-btn{
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--ink-light);
    cursor: pointer;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
  }
  .setting-close-btn:hover{
    background: #EFE6DC;
    color: var(--ink);
  }
  .setting-modal-content{
    padding: 20px;
    overflow-y: auto;
    font-size: 13px;
    color: var(--ink);
  }

  /* 设置面板公共组件 */
  .set-group{ margin-bottom: 18px; }
  .set-group-title{
    font-size: 12.5px; font-weight: 800; color: var(--ink);
    margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
  }
  .set-chips-row{ display: flex; flex-wrap: wrap; gap: 8px; }
  .set-chip{
    border: 1.5px solid #EBE2D5; background: #FAF7F2;
    padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
    color: var(--ink); cursor: pointer; transition: all .15s; min-height: 44px;
  }
  .set-chip:hover{ border-color: var(--orange); background: #FFF; }
  .set-chip.active{
    border-color: var(--orange); background: #FFF4EC;
    color: var(--orange); box-shadow: 0 2px 6px rgba(255,122,69,.15);
  }
  .set-fixed-value{
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border: 1.5px solid #D9EAD7; background: #F4FAF2; color: #245B2A;
    padding: 9px 12px; border-radius: 12px; font-size: 13px; font-weight: 800;
  }
  .set-fixed-value span{ color: var(--ink-light); font-size: 12px; font-weight: 650; }
  .set-input-text{
    width: 100%; height: 38px; border: 1.5px solid #EBE2D5; border-radius: 10px;
    padding: 0 12px; font-size: 13px; outline: none; background: #FAF7F2;
  }
  .set-input-text:focus{ border-color: var(--orange); background: #FFF; }
  .set-btn-primary{
    width: 100%; height: 42px; border: none; background: var(--orange);
    color: #FFF; font-size: 14px; font-weight: 800; border-radius: 12px;
    cursor: pointer; box-shadow: 0 4px 14px rgba(255,122,69,.25);
    margin-top: 10px; transition: transform .1s;
  }
  .set-btn-primary:active{ transform: scale(.98); }

  /* 家长中心卡片 */
  .parent-conv-card{
    background: linear-gradient(135deg, #FFF9F2 0%, #FFF2E6 100%);
    border: 1.5px solid #FFDDC8; border-radius: 14px; padding: 14px; margin-bottom: 16px;
  }
  .parent-conv-title{ font-size: 13px; font-weight: 800; color: #D45B0A; margin-bottom: 6px; }
  .parent-conv-body{ font-size: 12.5px; color: var(--ink); line-height: 1.5; }
  .evidence-box{
    background: #FAF7F2; border-radius: 12px; padding: 12px; margin-bottom: 12px;
    border: 1px solid #EFE6DC;
  }
  .evidence-title{ font-size: 12px; font-weight: 800; color: var(--ink-light); margin-bottom: 4px; }
  .evidence-text{ font-size: 12.5px; color: var(--ink); line-height: 1.4; }

  /* 隐私与安全列表 */
  .privacy-item{
    display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F5EEE6;
  }
  .privacy-icon{ font-size: 20px; flex-shrink: 0; margin-top: 2px; }
  .privacy-title{ font-weight: 800; font-size: 13px; color: var(--ink); margin-bottom: 3px; }
  .privacy-desc{ font-size: 12px; color: var(--ink-light); line-height: 1.45; }
  .reset-danger-btn{
    width: 100%; height: 38px; border: 1px solid #FF4D4F; background: #FFF1F0;
    color: #CF1322; font-size: 12.5px; font-weight: 800; border-radius: 10px;
    cursor: pointer; margin-top: 14px;
  }

  /* 📚 苏教版三年级单元选择组件样式 */
  .btn-select-unit {
    margin-left: 0;
    border: 1.5px solid var(--orange);
    background: #FFF5EE;
    color: var(--orange);
    font-size: 12.5px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer; min-height: 44px;
    transition: all .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .btn-select-unit:active { transform: scale(0.96); }
  .btn-select-unit:hover {
    background: var(--orange);
    color: #FFF;
    box-shadow: 0 2px 8px rgba(255,122,69,.25);
  }
  .learn-curriculum-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #8C5226;
    background: #FDF1E6;
    border: 1px solid #F6D6BA;
    border-radius: 6px;
    padding: 2px 6px;
    margin-bottom: 4px;
  }

  .unit-drawer-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(43, 30, 20, 0.48);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: fadeIn .2s ease;
  }
  .unit-drawer-card {
    background: #FFFDF9;
    border-radius: 20px;
    width: 100%;
    max-width: 620px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    border: 1px solid #EFE6DC;
    overflow: hidden;
    animation: slideUp .25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .unit-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #F0E6DA;
    background: linear-gradient(180deg, #FFF9F3 0%, #FFFDF9 100%);
  }
  .unit-drawer-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .unit-drawer-badge {
    align-self: flex-start;
    background: #FFE8D6;
    color: #D45B0A;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
  }
  .unit-drawer-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    margin: 2px 0 0;
  }
  .unit-drawer-subtitle {
    font-size: 12px;
    color: var(--ink-light);
  }
  .unit-drawer-close-btn {
    background: #F4ECE1;
    border: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
  }
  .unit-drawer-close-btn:hover {
    background: #E8DDCE;
  }

  .unit-semester-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: #FAF5EE;
    border-bottom: 1px solid #F0E6DA;
  }
  .unit-sem-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-light);
    cursor: pointer;
    transition: all .15s;
  }
  .unit-sem-tab .sem-tag {
    font-size: 10.5px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #EFE6DC;
    color: #8C5226;
  }
  .unit-sem-tab:hover {
    background: #FFF;
    color: var(--ink);
  }
  .unit-sem-tab.active {
    background: #FFF;
    border-color: var(--orange);
    color: var(--orange);
    box-shadow: 0 2px 8px rgba(255,122,69,.12);
  }
  .unit-sem-tab.active .sem-tag {
    background: #FFEAD9;
    color: var(--orange);
  }

  .unit-drawer-body {
    padding: 14px 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .unit-loading {
    padding: 40px 0;
    text-align: center;
    color: var(--ink-light);
    font-size: 13px;
  }
  .unit-card-item {
    border: 1.5px solid #EFE6DC;
    background: #FFF;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all .15s ease;
    cursor: pointer;
    width: 100%;
    color: inherit;
    font-family: inherit;
    text-align: left;
  }
  .unit-card-item:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 12px rgba(255,122,69,.08);
    transform: translateY(-1px);
  }
  .unit-card-item.current {
    border-color: var(--orange);
    background: #FFF8F2;
  }
  .unit-card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .unit-card-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .unit-card-unit-name {
    font-size: 11px;
    font-weight: 700;
    color: #8C5226;
  }
  .unit-card-pages {
    font-size: 10.5px;
    color: var(--ink-light);
    background: #F6EFE9;
    padding: 1px 5px;
    border-radius: 4px;
  }
  .unit-card-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ink);
  }
  .unit-card-goal {
    font-size: 11.5px;
    color: var(--ink-light);
    line-height: 1.35;
    margin-top: 1px;
  }
  .unit-card-action {
    flex-shrink: 0;
  }
  .btn-unit-pick {
    border: none;
    background: var(--orange);
    color: #FFF;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s;
    box-shadow: 0 2px 6px rgba(255,122,69,.2);
    display: inline-flex;
  }
  .unit-card-item.current .btn-unit-pick {
    background: #52C41A;
    box-shadow: 0 2px 6px rgba(82,196,26,.2);
  }
  .btn-unit-pick:hover {
    transform: scale(1.04);
  }

  .unit-drawer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #F0E6DA;
    background: #FAF7F2;
  }
  .footer-tip {
    font-size: 11.5px;
    color: var(--ink-light);
  }

  /* ===== 成长周报与前置模块联动增强样式 ===== */
  .growth-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 6px;
  }
  .growth-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
  }
  .growth-dropdown {
    appearance: none;
    -webkit-appearance: none;
    background: #FFFFFF;
    border: 1.5px solid #ECDCCB;
    border-radius: 999px;
    padding: 4px 26px 4px 11px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .growth-dropdown:hover {
    border-color: var(--orange);
    background: #FFFDFB;
  }
  .growth-dropdown:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,122,69,0.15);
  }
  .dropdown-caret {
    position: absolute;
    right: 9px;
    pointer-events: none;
    font-size: 10px;
    color: var(--orange);
    font-weight: 900;
  }
  .growth-kp-scroll-box {
    max-height: 430px;
    overflow-y: auto;
    padding-right: 4px;
  }
  .growth-kp-scroll-box::-webkit-scrollbar {
    width: 5px;
  }
  .growth-kp-scroll-box::-webkit-scrollbar-track {
    background: #F8F1E8;
    border-radius: 999px;
  }
  .growth-kp-scroll-box::-webkit-scrollbar-thumb {
    background: #E4D3BF;
    border-radius: 999px;
  }

  .kp-item.active-task {
    background: #FFF9F3;
    border-radius: 12px;
    padding: 10px 10px;
    margin: 3px -6px;
    border: 1px solid #FFD2BA;
  }
  .kp-item.clickable {
    cursor: pointer;
    transition: background .2s ease;
  }
  .kp-item.clickable:hover {
    background: #FDF4E7;
  }
  .kp-tag.active {
    background: #FFE8D6;
    color: var(--orange);
  }
  .kp-tag.master {
    background: var(--green-soft);
    color: #347E12;
  }
  .kp-tag.doing {
    background: var(--orange-soft);
    color: #AD3F10;
  }
  .kp-tag.new {
    background: #F1E6D8;
    color: var(--ink-light);
  }

  .loop-report-card {
    background: var(--surface-raised);
    border-radius: 16px;
    padding: 0;
    border: 1px solid #F1E5D5;
    margin: 18px 0 12px;
  }
  .loop-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 14px 16px;
  }
  .loop-report-title {
    font-size: 13.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
  }
  .loop-report-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }
  .loop-report-content { padding: 0 16px 14px; }
  .loop-stage-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #F5EFE6;
    color: var(--ink-light);
    font-weight: 650;
  }
  .loop-stage-pill.done {
    background: var(--green-soft);
    color: #347E12;
  }
  .loop-stage-pill.now {
    background: var(--orange-soft);
    color: #AD3F10;
  }
  .habit-mini-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: var(--ink-light);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #F1E5D5;
  }
  .habit-mini-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .habit-mini-item.done {
    color: #347E12;
    font-weight: 700;
  }

  .result-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }
  .res-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
  }
  .res-badge.master { background: var(--green-soft); color: #347E12; }
  .res-badge.basic { background: var(--orange-soft); color: #AD3F10; }
  .res-badge.blue { background: var(--blue-soft); color: #1E66AC; }
  .evidence-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
  }
  .evidence-chip {
    font-size: 12.5px;
    background: #F8F4EE;
    border: 0;
    border-radius: 10px;
    padding: 7px 9px;
    color: var(--ink);
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  #page-growth .growth-details{
    background:var(--surface-raised); border:1px solid #EEE2D5; border-radius:16px;
    box-shadow:none;
  }
  #page-growth .result-summary{
    padding:0; margin:0 0 18px; background:var(--surface-raised);
  }
  .growth-details > summary{
    list-style:none; cursor:pointer; user-select:none;
  }
  .growth-details > summary::-webkit-details-marker{ display:none; }
  #page-growth .result-summary > summary{
    display:flex; align-items:center; justify-content:space-between; gap:18px;
    min-height:62px; padding:12px 16px;
  }
  .growth-details-heading{ display:flex; align-items:center; gap:11px; min-width:0; }
  .growth-details-icon{
    width:34px; height:34px; flex:0 0 34px; display:flex; align-items:center; justify-content:center;
    border-radius:10px; background:#FFF2E7;
  }
  .growth-details-kicker{
    display:block; margin-bottom:2px; font-size:11px; font-weight:750; color:var(--ink-light);
  }
  #page-growth .result-summary h3,
  #page-growth .result-summary strong{
    display:block; margin:0; font-size:13.5px; line-height:1.4; font-weight:850; color:var(--ink);
  }
  .growth-details-action{
    flex-shrink:0; font-size:12px; font-weight:800; color:#A34812;
  }
  .growth-details-action::after{ content:' ＋'; }
  .growth-details[open] .growth-details-action::after{ content:' －'; }
  .growth-details-body{
    padding:0 16px 16px 61px; border-top:1px solid #F3E9DE;
  }
  #page-growth .result-summary .growth-details-body p{
    margin:12px 0 0; font-size:13px; line-height:1.65; color:#65564A;
  }
  .growth-details summary:hover{ background:#FDF9F4; }
  .growth-details summary:focus-visible{ outline:3px solid var(--focus-ring); outline-offset:2px; }

  #page-growth .growth-columns{
    display:grid; grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
    gap:20px; align-items:start;
  }
  #page-growth .growth-columns .section-title{ margin-top:8px; }
  #page-growth .growth-columns .card{
    border-radius:16px; padding:18px; box-shadow:none; margin-bottom:0;
  }

  .parent-dinner-card {
    background: #FFF7EF;
    border: 1px solid #FCDDC7;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 12px;
  }
  .parent-dinner-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #A34812;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .parent-dinner-body {
    font-size: 12.5px;
    color: #694C38;
    line-height: 1.6;
  }
  .evidence-timeline-item {
    font-size: 13px;
    padding: 10px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px dashed #E9DCCD;
    border-radius: 0;
    margin: 0;
    line-height: 1.6;
    color: var(--ink);
  }
  .evidence-timeline-item:last-child{ border-bottom:0; }
  .parent-report-section{ margin-top:22px; }
  .parent-report-section > .section-title{ margin-bottom:10px; }
  .growth-evidence-details{
    border:1px solid #EEE2D5; border-radius:14px; background:var(--surface-raised);
  }
  .growth-evidence-details > summary{
    list-style:none; cursor:pointer; padding:13px 16px; font-size:13px; font-weight:800; color:var(--ink);
  }
  .growth-evidence-details > summary::-webkit-details-marker{ display:none; }
  .growth-evidence-details > summary::after{ content:'＋'; float:right; color:var(--orange); }
  .growth-evidence-details[open] > summary::after{ content:'－'; }
  #growthEvidenceBox{ padding:0 16px 10px; border-top:1px solid #F3E9DE; }

  @media (max-width: 940px) {
    #page-growth .growth-columns{ grid-template-columns:minmax(0,1fr); }
  }


