* {
        box-sizing: border-box;
      }

      /* v1.1 growth page refresh */
      .next-test-day-btn {
        width: 100%;
        min-height: 46px;
        margin-top: 14px;
        border: 0;
        border-radius: 999px;
        background: linear-gradient(135deg, #13bfa8, #089783);
        color: #fff;
        font-size: 15px;
        font-weight: 900;
        box-shadow: 0 12px 24px rgba(19, 191, 168, 0.2);
      }

      .curve-mobile-hero {
        min-height: 0;
        padding: 22px 18px 18px;
        border-radius: 24px;
      }

      .curve-mobile-hero h1 {
        font-size: 25px;
        line-height: 1.18;
      }

      .curve-mobile-hero .curve-hero-subtitle {
        margin-top: 8px;
        font-size: 14px;
        line-height: 1.45;
        color: #60736f;
      }

      .curve-metrics-panel {
        position: static;
        margin-top: 16px;
        padding: 12px;
        border-radius: 20px;
      }

      .curve-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .curve-metric-grid .metric-item {
        min-height: 88px;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 8px;
        padding: 0 8px;
        text-align: center;
      }

      .curve-metric-grid .metric-icon {
        width: 34px;
        height: 34px;
        font-size: 17px;
      }

      .curve-metric-grid .metric-label {
        font-size: 11px;
      }

      .curve-metric-grid .metric-value {
        margin-top: 5px;
        font-size: 24px;
      }

      .curve-metric-grid .metric-value small {
        font-size: 11px;
      }

      .curve-mobile-hero .curve-note {
        margin-top: 12px;
        padding-top: 12px;
        gap: 8px;
        font-size: 12px;
        line-height: 1.45;
      }

      .curve-mobile-hero .curve-note .info {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
        font-size: 12px;
      }

      .curve-mobile-stack {
        display: grid;
        gap: 14px;
        margin-top: 14px;
      }

      .curve-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      .curve-section-head h2,
      .heat-card-mobile h2,
      .curve-priority-card h2 {
        font-size: 18px;
        line-height: 1.2;
        font-weight: 900;
      }

      .curve-section-head span,
      .curve-section-head button {
        border: 0;
        background: transparent;
        color: #64748b;
        font-size: 12px;
        font-weight: 750;
        white-space: nowrap;
      }

      .heat-card-mobile h2 span {
        color: #64748b;
        font-size: 13px;
      }

      .heat-card-mobile .heat-summary {
        margin-top: 12px;
        gap: 8px;
      }

      .heat-card-mobile .heat-stat {
        min-height: 54px;
        padding: 9px 8px;
        border-radius: 12px;
      }

      .heat-card-mobile .heat-stat span {
        font-size: 10px;
      }

      .heat-card-mobile .heat-stat strong {
        font-size: 18px;
      }

      .heat-card-mobile .heatmap {
        margin-top: 12px;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 6px;
        overflow: visible;
      }

      .heat-card-mobile .heat-day {
        padding: 5px 2px;
        gap: 4px;
        border-radius: 10px;
        font-size: 10px;
      }

      .heat-card-mobile .heat-day > span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: clip;
        font-size: 9px;
        line-height: 1;
      }

      .heat-card-mobile .heat-box {
        width: 100%;
        max-width: 30px;
        height: auto;
        aspect-ratio: 1;
        border-radius: 8px;
      }

      .heat-card-mobile .heat-meta {
        font-size: 9px;
        line-height: 1;
      }

      .mastery-carousel-card {
        overflow: hidden;
      }

      .mastery-carousel {
        display: flex;
        gap: 12px;
        margin: 4px -4px 0;
        padding: 12px 4px 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
      }

      .mastery-carousel::-webkit-scrollbar {
        display: none;
      }

      .mastery-slide {
        flex: 0 0 126px;
        min-height: 184px;
        scroll-snap-align: center;
        border-radius: 16px;
        padding: 14px 12px 12px;
        background: #fff;
        border: 1px solid rgba(20, 50, 70, 0.08);
        box-shadow: 0 10px 22px rgba(20, 50, 70, 0.08);
        text-align: center;
      }

      .mastery-slide.weak {
        border-color: rgba(255, 143, 49, 0.42);
        box-shadow: 0 14px 28px rgba(255, 143, 49, 0.16);
      }

      .mastery-slide-title {
        color: #173f3a;
        font-size: 14px;
        font-weight: 900;
      }

      .mastery-slide-rate {
        margin-top: 8px;
        color: #ff7a1a;
        font-size: 28px;
        line-height: 1;
        font-weight: 950;
      }

      .mastery-slide-rate span {
        font-size: 15px;
      }

      .mastery-ring {
        width: 48px;
        height: 48px;
        margin: 10px auto 8px;
        border-radius: 50%;
        background:
          radial-gradient(circle closest-side, #fff 66%, transparent 68%),
          conic-gradient(#ff7a1a calc(var(--rate) * 1%), #eef2f5 0);
      }

      .mastery-spark {
        width: 88px;
        height: 34px;
        overflow: visible;
      }

      .mastery-spark path {
        fill: none;
        stroke: #13bfa8;
        stroke-width: 3;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .mastery-slide.weak .mastery-spark path {
        stroke: #ff8a24;
      }

      .mastery-spark circle {
        fill: currentColor;
        color: #13bfa8;
      }

      .mastery-slide.weak .mastery-spark circle {
        color: #ff8a24;
      }

      .mastery-slide p {
        margin-top: 6px;
        color: #60736f;
        font-size: 11px;
        line-height: 1.35;
      }

      .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 5px;
        margin-top: -4px;
      }

      .carousel-dots i {
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: #e0e6ea;
      }

      .carousel-dots i.active {
        width: 18px;
        background: #ff8a24;
      }

      .loss-trend-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
      }

      .loss-trend-card {
        min-width: 0;
        border-radius: 12px;
        padding: 10px 8px 8px;
        background: #fff;
        border: 1px solid rgba(20, 50, 70, 0.08);
      }

      .loss-trend-top {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 4px;
      }

      .loss-trend-top strong {
        font-size: 20px;
        line-height: 1;
        font-weight: 950;
      }

      .loss-trend-top span {
        font-size: 10px;
        font-weight: 850;
      }

      .loss-trend-card h3 {
        margin-top: 7px;
        color: #173f3a;
        font-size: 11px;
        font-weight: 900;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .trend-bars {
        display: flex;
        align-items: end;
        gap: 6px;
        height: 38px;
        margin-top: 10px;
      }

      .trend-bars i {
        flex: 1;
        min-width: 0;
        border-radius: 4px 4px 2px 2px;
        height: var(--h);
        background:
          linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.28)),
          var(--trend);
        opacity: var(--alpha, 1);
      }

      .trend-bars i:nth-child(1) { --alpha: 1; }
      .trend-bars i:nth-child(2) { --alpha: 0.78; }
      .trend-bars i:nth-child(3) { --alpha: 0.56; }
      .trend-bars i:nth-child(4) { --alpha: 0.32; }

      /* v1.1 study room mobile polish */
      .study-room {
        gap: 14px;
      }

      .study-room-shell {
        gap: 14px;
      }

      .study-hero {
        min-height: 224px;
        height: auto;
        padding: 22px 18px;
        border-radius: 24px;
      }

      .study-hero-copy {
        padding: 0;
        max-width: 66%;
      }

      .study-hero h1 {
        font-size: 27px;
        line-height: 1.16;
      }

      .study-hero-subtitle {
        margin-top: 8px;
        font-size: 14px;
      }

      .study-room-name {
        width: fit-content;
        max-width: 100%;
        min-height: 34px;
        margin-top: 18px;
        border-radius: 999px;
        padding: 0 12px;
        background: rgba(255, 255, 255, 0.82);
        color: #0c4c45;
        font-size: 12px;
        font-weight: 850;
        white-space: nowrap;
      }

      .study-home-icon {
        width: 15px;
        height: 15px;
      }

      .study-online,
      .quiet-pill {
        min-height: 30px;
        margin-top: 10px;
        padding: 0 11px;
        border-radius: 999px;
        font-size: 12px;
      }

      .study-hero-art {
        width: 206px;
        right: -54px;
        bottom: 2px;
        opacity: 0.9;
      }

      .study-focus-card,
      .study-goal-card,
      .study-peer-card,
      .study-rule-card {
        min-height: 0;
        border-radius: 22px;
        padding: 18px;
      }

      .study-focus-card {
        text-align: center;
      }

      .focus-label,
      .task-label,
      .study-card-title {
        font-size: 17px;
      }

      .focus-time {
        margin-top: 8px;
        font-size: 54px;
      }

      .focus-duration-options,
      .task-picker,
      .daily-target-picker {
        margin-top: 12px;
      }

      .duration-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
      }

      .duration-option {
        min-height: 34px;
        padding: 0 5px;
        border-radius: 12px;
        font-size: 11px;
      }

      .custom-duration-input {
        height: 38px;
        margin-top: 8px;
        border-radius: 12px;
        font-size: 14px;
      }

      .current-task {
        min-height: 42px;
        margin-top: 8px;
        border-radius: 14px;
        padding: 8px 10px;
        font-size: 13px;
        line-height: 1.35;
      }

      .task-book {
        width: 28px;
        height: 28px;
      }

      .task-card-pager {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 8px;
      }

      .task-arrow {
        width: 34px;
        height: 34px;
        font-size: 22px;
      }

      .task-card-current {
        min-height: 46px;
        border-radius: 14px;
        padding: 8px 10px;
        font-size: 13px;
        line-height: 1.35;
      }

      .task-card-dots {
        grid-column: 1 / -1;
        margin-top: 2px;
      }

      .focus-actions {
        margin-top: 16px;
        max-width: none;
      }

      .focus-start,
      .focus-exit {
        height: 50px;
        font-size: 15px;
      }

      .goal-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }

      .goal-stat {
        min-height: 74px;
        border-radius: 16px;
        padding: 12px;
      }

      .goal-stat-label {
        font-size: 12px;
      }

      .goal-stat-value {
        font-size: 28px;
      }

      .goal-progress-row {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 10px;
      }

      .peer-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
      }

      .peer img,
      .peer-more-dot {
        width: 48px;
        height: 48px;
        margin: 0 auto;
      }

      .peer-more-dot {
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: #edf6f4;
        color: #7a8d89;
        font-size: 16px;
        font-weight: 950;
      }

      .peer-status {
        margin-top: 8px;
        font-size: 10px;
        line-height: 1.2;
        white-space: normal;
      }

      .peer-status::before {
        width: 6px;
        height: 6px;
        margin-right: 3px;
      }

      .peer-more-slot .peer-status::before {
        content: none;
      }

      .peer-time {
        margin-top: 5px;
        font-size: 9px;
        line-height: 1.25;
      }

      .study-rule-card {
        overflow: hidden;
      }

      .study-rule-card h2 {
        font-size: 18px;
      }

      .study-rule-card p {
        max-width: 72%;
        font-size: 13px;
        line-height: 1.55;
      }

      .rule-art {
        width: 112px;
        right: -16px;
        bottom: -8px;
      }

      .page.focus-mode .bottom-app-nav {
        display: none;
      }

      .page.focus-mode .content {
        max-width: 430px;
        padding: 0;
      }

      .page.focus-mode .study-room {
        min-height: 100vh;
      }

      .focus-session-page {
        min-height: 100vh;
        border-radius: 0;
      }

      .focus-session-page.active {
        display: block;
      }

      .focus-session-inner {
        min-height: 100vh;
        padding: 26px 18px 28px;
        display: grid;
        grid-template-rows: auto auto 1fr;
        align-content: start;
        gap: 20px;
      }

      .focus-session-top {
        align-items: center;
        gap: 12px;
      }

      .focus-session-room h1 {
        font-size: 22px;
      }

      .focus-session-meta {
        margin-top: 8px;
        font-size: 12px;
      }

      .focus-session-online {
        border-radius: 999px;
        padding: 7px 10px;
        background: rgba(255,255,255,0.72);
        font-size: 12px;
      }

      .focus-dial-wrap {
        display: grid;
        gap: 16px;
        place-items: center;
      }

      .focus-dial {
        width: min(78vw, 292px);
        box-shadow: inset 0 0 0 12px rgba(19, 191, 168, 0.06), 0 16px 36px rgba(20, 50, 70, 0.12);
      }

      .focus-dial-core {
        width: 76%;
      }

      .focus-task-name {
        max-width: 176px;
        margin: 0 auto;
        font-size: 12px;
        line-height: 1.35;
      }

      .focus-countdown {
        margin-top: 12px;
        font-size: 48px;
      }

      .focus-current-time {
        margin-top: 12px;
        font-size: 12px;
      }

      .focus-session-goal {
        width: 100%;
        gap: 8px;
        font-size: 13px;
      }

      .focus-session-goal strong {
        font-size: 22px;
      }

      .focus-session-progress {
        width: min(100%, 288px);
        height: 8px;
      }

      .focus-session-note {
        margin-top: 8px;
        font-size: 13px;
      }

      .focus-session-actions {
        align-self: end;
        width: 100%;
        margin-top: 12px;
        grid-template-columns: 64px minmax(0, 1fr) 64px;
        gap: 12px;
      }

      .focus-round-btn {
        width: 58px;
        height: 58px;
        font-size: 22px;
      }

      .focus-round-label {
        margin-top: 6px;
        font-size: 12px;
      }

      .focus-exit-main {
        height: 58px;
        font-size: 15px;
      }

      .loss-trend-card p {
        margin-top: 7px;
        color: #60736f;
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
      }

      .loss-trend-card.purple { color: #8b5cf6; }
      .loss-trend-card.green { color: #13bfa8; }
      .loss-trend-card.orange { color: #ff7a1a; }
      .loss-trend-card.blue { color: #1677ff; }
      .loss-trend-top .up { color: #13bfa8; }
      .loss-trend-top .down { color: #6f9cff; }

      .curve-priority-card {
        margin-top: 14px;
        padding: 16px;
      }

      .curve-priority-card .priority-head {
        margin-bottom: 10px;
        gap: 8px;
      }

      .curve-priority-card .priority-icon {
        width: 28px;
        height: 28px;
        font-size: 17px;
      }

      .curve-priority-row {
        min-height: 48px;
        display: grid;
        grid-template-columns: 26px minmax(52px, 0.7fr) 48px minmax(0, 1fr) 14px;
        gap: 8px;
        align-items: center;
        border-top: 1px solid rgba(20, 50, 70, 0.08);
      }

      .curve-priority-row .priority-index {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        font-size: 14px;
      }

      .curve-priority-row .priority-name {
        min-width: 0;
        color: #173f3a;
        font-size: 13px;
        font-weight: 900;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .curve-priority-row .tag {
        min-height: 24px;
        font-size: 10px;
      }

      .curve-priority-row .priority-desc {
        display: -webkit-box;
        overflow: hidden;
        color: #60736f;
        font-size: 10px;
        line-height: 1.35;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }

      .curve-priority-row .priority-action {
        color: #8aa0ad;
        font-size: 18px;
      }

      @media (max-width: 600px) {
        .feedback-row {
          grid-template-columns: minmax(0, 1fr) repeat(3, 48px);
          gap: 6px;
          align-items: center;
        }

        .feedback-row .choice {
          width: 48px;
          min-width: 0;
          height: 34px;
          padding: 0;
          font-size: 12px;
        }

        .curve-metric-grid {
          grid-template-columns: repeat(3, minmax(0, 1fr));
        }
      }

      .onboarding-active {
        background: #eef5f4;
      }

      .onboarding-screen {
        min-height: 100dvh;
        padding: 18px 14px 28px;
        box-sizing: border-box;
        background:
          radial-gradient(circle at 50% -20%, rgba(15, 185, 164, 0.18), transparent 42%),
          #eef5f4;
        color: #071832;
        font-family: inherit;
      }

      .onboarding-screen[hidden] {
        display: none;
      }

      .onboarding-card {
        width: min(100%, 390px);
        margin: 0 auto;
        padding: 18px;
        box-sizing: border-box;
        border: 1px solid rgba(20, 50, 70, 0.08);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 18px 50px rgba(22, 54, 78, 0.13);
        display: grid;
        gap: 16px;
      }

      .onboarding-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 14px;
      }

      .onboarding-head p {
        margin: 0 0 5px;
        color: #0aa88a;
        font-size: 13px;
        font-weight: 800;
      }

      .onboarding-head h1 {
        margin: 0;
        color: #081832;
        font-size: 25px;
        line-height: 1.18;
        letter-spacing: 0;
      }

      .onboarding-progress {
        min-width: 74px;
        height: 28px;
        display: grid;
        grid-template-columns: 24px 1fr 24px;
        align-items: center;
        gap: 4px;
      }

      .onboarding-progress span {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #e8f0ef;
        color: #728096;
        display: grid;
        place-items: center;
        font-size: 12px;
        font-weight: 900;
      }

      .onboarding-progress span.is-active,
      .onboarding-progress span.is-done {
        background: #05b89d;
        color: #fff;
      }

      .onboarding-progress i {
        height: 3px;
        border-radius: 99px;
        background: #dbe6e5;
      }

      .onboarding-error {
        padding: 10px 12px;
        border: 1px solid rgba(255, 98, 31, 0.22);
        border-radius: 12px;
        background: #fff4ee;
        color: #e95510;
        font-size: 13px;
        font-weight: 800;
      }

      .onboarding-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .onboarding-field {
        min-width: 0;
        display: grid;
        gap: 7px;
        color: #526177;
        font-size: 13px;
        font-weight: 800;
      }

      .onboarding-field input,
      .onboarding-field select {
        width: 100%;
        height: 44px;
        box-sizing: border-box;
        border: 1px solid rgba(20, 50, 70, 0.12);
        border-radius: 12px;
        background: #fff;
        color: #071832;
        font: inherit;
        font-size: 15px;
        font-weight: 800;
        padding: 0 12px;
        outline: none;
      }

      .onboarding-field input:focus,
      .onboarding-field select:focus {
        border-color: rgba(5, 184, 157, 0.62);
        box-shadow: 0 0 0 4px rgba(5, 184, 157, 0.12);
      }

      .onboarding-section {
        display: grid;
        gap: 12px;
      }

      .onboarding-section h2 {
        margin: 0;
        color: #081832;
        font-size: 17px;
        letter-spacing: 0;
      }

      .onboarding-book-group {
        padding: 12px;
        border: 1px solid rgba(20, 50, 70, 0.08);
        border-radius: 14px;
        background: #f8fbfa;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
      }

      .onboarding-scope-note {
        min-height: 44px;
        padding: 0 12px;
        border-radius: 12px;
        background: #edf6f5;
        color: #0b8e78;
        display: flex;
        align-items: center;
        font-size: 13px;
        font-weight: 800;
      }

      .onboarding-submit,
      .onboarding-secondary {
        min-height: 48px;
        border: 0;
        border-radius: 999px;
        font: inherit;
        font-size: 16px;
        font-weight: 900;
      }

      .onboarding-submit {
        color: #fff;
        background: linear-gradient(90deg, #05b89d, #08a67d);
        box-shadow: 0 12px 26px rgba(5, 184, 157, 0.22);
      }

      .onboarding-secondary {
        color: #0a8e78;
        background: #e9f7f5;
      }

      .onboarding-submit:disabled {
        opacity: 0.58;
      }

      .diagnostic-list {
        display: grid;
        gap: 14px;
      }

      .diagnostic-card {
        margin: 0;
        padding: 14px;
        border: 1px solid rgba(20, 50, 70, 0.08);
        border-radius: 16px;
        background: #fbfefd;
      }

      .diagnostic-card legend {
        padding: 0 4px;
        color: #071832;
        font-size: 16px;
        font-weight: 900;
      }

      .diagnostic-formula {
        margin: 12px 0;
        min-height: 58px;
        border-radius: 14px;
        background: #f3f7f6;
        display: grid;
        place-items: center;
        overflow-x: auto;
      }

      .diagnostic-formula math {
        font-size: 20px;
      }

      .diagnostic-options {
        display: grid;
        gap: 9px;
      }

      .diagnostic-options label {
        min-height: 42px;
        padding: 0 12px;
        border: 1px solid rgba(20, 50, 70, 0.08);
        border-radius: 12px;
        background: #fff;
        display: flex;
        align-items: center;
        gap: 9px;
        color: #213047;
        font-size: 14px;
        font-weight: 800;
      }

      .diagnostic-options input {
        accent-color: #05b89d;
      }

      .onboarding-actions {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 10px;
      }

      @media (max-width: 380px) {
        .onboarding-card {
          padding: 16px;
          border-radius: 22px;
        }

        .onboarding-grid,
        .onboarding-book-group {
          grid-template-columns: 1fr;
        }

        .onboarding-head h1 {
          font-size: 23px;
        }
      }

      /* C1 final cascade overrides: keep these at the physical end. */
      html body .page {
        width: min(390px, 100vw);
        background: #f3f8f8;
      }

      html body .content {
        width: 100%;
        max-width: 390px;
        padding: 48px 18px 96px;
        background: #f3f8f8;
        border-radius: 0;
      }

      #planView .banner {
        width: 100%;
        height: 154px;
        min-height: 154px;
        border-radius: 24px;
        box-shadow: 0 10px 24px rgba(36, 65, 86, 0.12);
      }

      #planView .section-head {
        margin: 8px 0 20px;
      }

      #planView .section-title h2 {
        font-size: 26px;
        line-height: 34px;
        font-weight: 700;
      }

      #planView .type-card {
        width: 100%;
        min-height: 0;
        margin-bottom: 12px;
        padding: 24px;
        border: 1px solid #eaf3f1;
        border-radius: 28px;
        background: #fbfffd;
        box-shadow: 0 10px 28px rgba(15, 46, 43, 0.08);
      }

      #planView .type-card-head {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
      }

      #planView .type-label {
        width: 72px;
        height: 28px;
        padding: 0 16px;
        border-radius: 14px;
        font-size: 14px;
        line-height: 16px;
      }

      #planView .type-title {
        font-size: 20px;
        line-height: 24px;
      }

      #planView .type-summary {
        width: 100%;
        min-height: 94px;
        padding: 16px 18px;
        border-radius: 22px;
      }

      #planView .source {
        width: 100%;
        min-height: 176px;
        padding: 14px 12px;
        border-radius: 24px;
      }

      #planView .source-row {
        min-height: 54px;
        grid-template-columns: 25px minmax(0, 1fr);
        border-radius: 27px;
        font-size: 12.5px;
        line-height: 20px;
      }

      #planView .feedback {
        padding: 10px 16px 14px;
        border-radius: 20px;
      }

      #planView .feedback-row {
        min-height: 58px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 0 2px 8px;
      }

      #planView .feedback-choices {
        width: 272px;
        max-width: 100%;
        justify-self: center;
        display: grid;
        grid-template-columns: repeat(3, 72px);
        justify-content: center;
        gap: 25px;
      }

      #planView .feedback-row .choice,
      #planView .choice {
        width: 72px;
        min-width: 0;
        height: 24px;
        padding: 0;
        font-size: 18px;
        line-height: 22px;
      }

      @media (max-width: 390px) {
        html body .content {
          padding-left: 18px;
          padding-right: 18px;
        }

        #planView .section-title h2 {
          font-size: 24px;
        }

        #planView .feedback-choices {
          grid-template-columns: repeat(3, minmax(64px, 72px));
          gap: 12px;
        }
      }

      /* C1 final cascade overrides: keep these at the end. */
      html body .page {
        width: min(390px, 100vw);
        background: #f3f8f8;
      }

      html body .content {
        width: 100%;
        max-width: 390px;
        padding: 48px 18px 96px;
        background: #f3f8f8;
        border-radius: 0;
      }

      #planView .banner {
        width: 100%;
        height: 154px;
        min-height: 154px;
        border-radius: 24px;
        box-shadow: 0 10px 24px rgba(36, 65, 86, 0.12);
      }

      #planView .section-head {
        margin: 8px 0 20px;
      }

      #planView .section-title h2 {
        font-size: 26px;
        line-height: 34px;
        font-weight: 700;
      }

      #planView .type-card {
        width: 100%;
        min-height: 0;
        margin-bottom: 12px;
        padding: 24px;
        border: 1px solid #eaf3f1;
        border-radius: 28px;
        background: #fbfffd;
        box-shadow: 0 10px 28px rgba(15, 46, 43, 0.08);
      }

      #planView .type-card-head {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
      }

      #planView .type-label {
        width: 72px;
        height: 28px;
        padding: 0 16px;
        border-radius: 14px;
        font-size: 14px;
        line-height: 16px;
      }

      #planView .type-title {
        font-size: 20px;
        line-height: 24px;
      }

      #planView .type-summary {
        width: 100%;
        min-height: 94px;
        padding: 16px 18px;
        border-radius: 22px;
      }

      #planView .source {
        width: 100%;
        min-height: 176px;
        padding: 14px 12px;
        border-radius: 24px;
      }

      #planView .source-row {
        min-height: 54px;
        grid-template-columns: 25px minmax(0, 1fr);
        border-radius: 27px;
        font-size: 12.5px;
        line-height: 20px;
      }

      #planView .feedback {
        padding: 10px 16px 14px;
        border-radius: 20px;
      }

      #planView .feedback-row {
        min-height: 58px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 0 2px 8px;
      }

      #planView .feedback-choices {
        width: 272px;
        max-width: 100%;
        justify-self: center;
        display: grid;
        grid-template-columns: repeat(3, 72px);
        justify-content: center;
        gap: 25px;
      }

      #planView .feedback-row .choice,
      #planView .choice {
        width: 72px;
        min-width: 0;
        height: 24px;
        padding: 0;
        font-size: 18px;
        line-height: 22px;
      }

      @media (max-width: 390px) {
        html body .content {
          padding-left: 18px;
          padding-right: 18px;
        }

        #planView .section-title h2 {
          font-size: 24px;
        }

        #planView .feedback-choices {
          grid-template-columns: repeat(3, minmax(64px, 72px));
          gap: 12px;
        }
      }

      /* C1 Figma alignment: Today Plan mobile UI */
      .page {
        width: min(390px, 100vw);
        background: #f3f8f8;
      }

      .content {
        max-width: 390px;
        padding: 48px 18px 96px;
      }

      #planView {
        display: grid;
        gap: 12px;
      }

      #planView .banner {
        width: 100%;
        height: 154px;
        min-height: 154px;
        border-radius: 24px;
        box-shadow: 0 10px 24px rgba(36, 65, 86, 0.12);
        background: #13bfa8;
      }

      #planView .banner::after {
        background: linear-gradient(90deg, rgba(5, 137, 125, 0.28) 0%, rgba(5, 137, 125, 0.08) 46%, transparent 72%);
      }

      #planView .banner-text {
        left: 20px;
        top: 25px;
        max-width: 210px;
      }

      #planView .banner-title {
        font-size: 29px;
        line-height: 36px;
        font-weight: 700;
        text-shadow: 0 2px 5px rgba(0, 56, 51, 0.18);
      }

      #planView .banner-meta {
        margin-top: 5px;
        gap: 9px;
        font-size: 12px;
        line-height: 18px;
        color: #effffb;
        text-shadow: 0 2px 5px rgba(0, 56, 51, 0.18);
      }

      #planView .banner-meta .meta-item {
        gap: 4px;
      }

      #planView .meta-item img {
        width: 12px;
        height: 12px;
      }

      #planView .status-btn {
        margin-top: 10px;
        min-width: 78px;
        height: 28px;
        padding: 0 15px;
        gap: 3px;
        background: rgba(255, 255, 255, 0.96);
        color: #0f8f84;
        font-size: 11px;
        line-height: 16px;
        font-weight: 500;
        box-shadow: none;
      }

      #planView .status-btn img {
        width: 11px;
        height: 11px;
      }

      #planView .countdown {
        top: 24px;
        right: 18px;
        width: 62px;
        height: 74px;
        border-radius: 18px;
        color: #087c73;
        box-shadow: 0 6px 16px rgba(36, 65, 86, 0.08);
      }

      #planView .countdown small,
      #planView .countdown span {
        font-size: 10px;
        line-height: 14px;
        font-weight: 500;
      }

      #planView .countdown strong {
        margin: 2px 0 0;
        font-size: 25px;
        line-height: 29px;
        font-weight: 700;
      }

      #planView .section-head {
        margin: 8px 0 20px;
      }

      #planView .section-title {
        gap: 10px;
      }

      #planView .section-title img {
        width: 30px;
        height: 30px;
      }

      #planView .section-title h2 {
        color: #142033;
        font-size: 26px;
        line-height: 34px;
        font-weight: 700;
      }

      #planView .type-count {
        min-width: 92px;
        height: 28px;
        padding: 0 14px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(232, 250, 247, 0.95);
        color: #142033;
        font-size: 16px;
        line-height: 16px;
        font-weight: 400;
      }

      #planView .type-count strong {
        margin: 0 2px;
        color: #078a7d;
        font-size: 18px;
        font-weight: 700;
      }

      #planView .type-card {
        display: flex;
        flex-direction: column;
        gap: 19px;
        width: 100%;
        min-height: 384px;
        margin-bottom: 12px;
        padding: 24px;
        border: 1px solid #eaf3f1;
        border-radius: 28px;
        background: #fbfffd;
        box-shadow: 0 10px 28px rgba(15, 46, 43, 0.08);
      }

      #planView .type-card-head {
        width: 100%;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        align-items: center;
      }

      #planView .type-label {
        width: 72px;
        height: 28px;
        justify-content: center;
        padding: 0 16px;
        border: 1px solid rgba(8, 124, 112, 0.28);
        border-radius: 14px;
        background: #0e9f8f;
        color: #fff;
        box-shadow: 0 6px 14px rgba(5, 102, 87, 0.18);
        font-size: 14px;
        line-height: 16px;
        font-weight: 700;
      }

      #planView .theme-purple .type-label {
        border-color: rgba(93, 78, 227, 0.25);
        background: #6d5df2;
        box-shadow: 0 6px 14px rgba(64, 51, 191, 0.18);
      }

      #planView .type-title {
        color: #0f2137;
        font-size: 20px;
        line-height: 24px;
        font-weight: 700;
      }

      #planView .type-summary {
        width: 100%;
        min-height: 94px;
        padding: 16px 18px;
        border: 1px solid #c9f0ea;
        border-radius: 22px;
        background: #e8faf6;
        display: grid;
        gap: 6px;
      }

      #planView .theme-purple .type-summary {
        border-color: #e0d6ff;
        background: #f5f0ff;
      }

      #planView .type-summary-title {
        color: #087f74;
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
      }

      #planView .theme-purple .type-summary-title {
        color: #6657e4;
      }

      #planView .type-summary-body {
        color: #315e5a;
        font-size: 12px;
        line-height: 18px;
        font-weight: 400;
      }

      #planView .theme-purple .type-summary-body {
        color: #5b5487;
      }

      #planView .source {
        width: 100%;
        min-height: 176px;
        margin-top: 0;
        padding: 14px 12px;
        border: 1.2px solid #bfefe8;
        border-radius: 24px;
        background: #f2fffc;
        display: grid;
        gap: 10px;
      }

      #planView .theme-purple .source {
        border-color: #e0d6ff;
        background: #f5f0ff;
      }

      #planView .source-head {
        margin: 0;
        gap: 6px;
        color: #0b8278;
        font-size: 16px;
        line-height: 22px;
        font-weight: 600;
      }

      #planView .theme-purple .source-head {
        color: #6657e4;
      }

      #planView .source-head img {
        width: 20px;
        height: 20px;
      }

      #planView .source-list {
        gap: 8px;
      }

      #planView .source-row {
        min-height: 54px;
        padding: 9px 14px 9px 18px;
        grid-template-columns: 25px minmax(0, 1fr);
        gap: 11px;
        align-items: center;
        border: 1.2px solid #cbefea;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(13, 71, 64, 0.04);
        color: #142238;
        font-size: 12.5px;
        line-height: 20px;
        font-weight: 500;
      }

      #planView .source-row > img {
        display: none;
      }

      #planView .book-dot {
        position: relative;
        width: 25px;
        height: 25px;
        border-radius: 4px 6px 6px 4px;
        background: linear-gradient(136deg, #56dcd0 3%, #2ecabe 59%, #17aea3 99%);
        box-shadow: inset 4px 0 0 rgba(13, 137, 129, 0.34), inset -3px 0 0 rgba(11, 146, 137, 0.16);
      }

      #planView .book-dot::before {
        content: "";
        position: absolute;
        left: 7px;
        top: 6px;
        width: 0;
        height: 11px;
        border-left: 2px solid rgba(255, 255, 255, 0.82);
      }

      #planView .book-dot::after {
        content: "";
        position: absolute;
        left: 6px;
        right: 4px;
        bottom: 4px;
        height: 3px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.95);
      }

      #planView .book-dot.purple,
      #planView .theme-purple .book-dot {
        background: linear-gradient(136deg, #8e82ff 1%, #6657e4 97%);
        box-shadow: inset 4px 0 0 rgba(123, 109, 244, 0.7), inset -2px 0 0 rgba(90, 77, 206, 0.18);
      }

      #planView .source-group-row {
        border-radius: 27px;
      }

      #planView .source-group-copy {
        --source-book-label-width: 4.45em;
        gap: 2px;
      }

      #planView .source-book-label {
        color: #142238;
        font-weight: 600;
      }

      #planView .source-question-content {
        grid-template-columns: 3.45em minmax(0, 1fr);
        padding-left: 0.45em;
        color: #5f6e82;
      }

      #planView .source-question-numbers {
        color: #142238;
        font-weight: 500;
      }

      #planView .feedback {
        margin-top: 4px;
        padding: 10px 16px 14px;
        border: 1px solid #e8f0f0;
        border-radius: 20px;
        background: #fff9f0;
        box-shadow: 0 8px 22px rgba(36, 65, 86, 0.075);
      }

      #planView .feedback-head {
        display: grid;
        grid-template-columns: 28px auto minmax(0, 1fr) 100px;
        gap: 2px;
        align-items: center;
        padding: 0 0 10px;
        border-bottom: 0;
      }

      #planView .feedback-head img {
        width: 28px;
        height: 28px;
      }

      #planView .feedback-head h2 {
        color: #142033;
        font-size: 17px;
        line-height: 23px;
        font-weight: 700;
      }

      #planView .feedback-subtitle {
        justify-self: start;
        color: #8190a2;
        font-size: 11px;
        line-height: 16px;
        font-weight: 400;
        white-space: nowrap;
      }

      #planView .all-none {
        width: 100px;
        height: 28px;
        padding: 0;
        border: 1px solid #d8e2ed;
        border-radius: 14px;
        background: #f7fafd;
        color: #667895;
        font-size: 12px;
        line-height: 16px;
        font-weight: 500;
      }

      #planView .feedback-list {
        display: grid;
        gap: 0;
      }

      #planView .feedback-row {
        min-height: 58px;
        padding: 0 2px 8px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        border-bottom: 1px solid #eadfce;
      }

      #planView .feedback-row:last-child {
        border-bottom: 0;
      }

      #planView .feedback-title {
        padding-top: 2px;
        color: #253246;
        font-size: 12px;
        line-height: 16px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      #planView .feedback-choices {
        width: 272px;
        max-width: 100%;
        justify-self: center;
        display: grid;
        grid-template-columns: repeat(3, 72px);
        justify-content: center;
        gap: 25px;
      }

      #planView .choice {
        width: 72px;
        height: 24px;
        padding: 0;
        border-radius: 18px;
        font-size: 18px;
        line-height: 22px;
        font-weight: 500;
      }

      #planView .choice.correct {
        border-color: #b5efe3;
        background: #e4faf5;
        color: #00a88f;
      }

      #planView .choice.wrong {
        border-color: #ffcacc;
        background: #fff0f1;
        color: #f0525c;
      }

      #planView .choice.none {
        border-color: #d8e2ed;
        background: #f7fafd;
        color: #667895;
      }

      #planView .choice.selected {
        box-shadow: inset 0 0 0 2px currentColor;
      }

      #planView .wrong-reasons {
        padding: 2px 0 8px;
        gap: 6px;
      }

      #planView .feedback-actions {
        margin-top: 12px;
      }

      .bottom-app-nav {
        width: min(390px, 100vw);
      }

      .bottom-app-nav .nav {
        gap: 4px;
      }

      .bottom-app-nav .nav-item {
        min-height: 56px;
        border-radius: 18px;
        color: #5f6e82;
        font-size: 12px;
        line-height: 14px;
        font-weight: 500;
      }

      .bottom-app-nav .nav-item.active {
        background: #e9f8f4;
        color: #07937f;
      }

      .bottom-app-nav .nav-item img {
        width: 22px;
        height: 22px;
      }

      @media (max-width: 390px) {
        .content {
          padding-left: 18px;
          padding-right: 18px;
        }

        #planView .section-title h2 {
          font-size: 24px;
        }

        #planView .type-count {
          min-width: 86px;
          padding: 0 10px;
          font-size: 14px;
        }

        #planView .feedback-choices {
          grid-template-columns: repeat(3, minmax(64px, 72px));
          gap: 12px;
        }
      }

      .feedback-row {
        transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
      }

      .wrong-reasons {
        grid-column: 1 / -1;
        display: none;
        justify-content: center;
        gap: 8px;
        padding: 2px 0 10px;
      }

      .feedback-row.show-wrong-reasons .wrong-reasons {
        display: flex;
      }

      .wrong-reason {
        min-width: 64px;
        height: 30px;
        border-radius: var(--radius-pill);
        border: 1px solid rgba(240,90,90,0.22);
        background: #fff8f6;
        color: #df5f43;
        font-size: 13px;
        font-weight: 850;
        cursor: pointer;
      }

      .wrong-reason.selected {
        border-color: #f06448;
        background: #ffe7df;
        color: #c84228;
        box-shadow: inset 0 0 0 1px currentColor;
      }

      .feedback-row.feedback-row-error {
        border-radius: 14px;
        background: rgba(255, 241, 238, 0.72);
        box-shadow: 0 0 0 1px rgba(240, 90, 90, 0.22);
      }

      @media (max-width: 600px) {
        .feedback-row.show-wrong-reasons {
          row-gap: 8px;
        }

        .wrong-reasons {
          gap: 6px;
          padding-bottom: 8px;
        }

        .wrong-reason {
          min-width: 56px;
          height: 28px;
          padding: 0 9px;
          font-size: 12px;
        }
      }

      /* v1.1 study room final mobile overrides */
      .study-room,
      .study-room-shell {
        gap: 14px;
      }

      .study-hero {
        min-height: 224px;
        height: auto;
        padding: 22px 18px;
        border-radius: 24px;
      }

      .study-hero-copy {
        padding: 0;
        max-width: 66%;
      }

      .study-hero h1 {
        font-size: 27px;
        line-height: 1.16;
      }

      .study-hero-subtitle {
        margin-top: 8px;
        font-size: 14px;
      }

      .study-room-name {
        width: fit-content;
        max-width: 100%;
        min-height: 34px;
        margin-top: 18px;
        border-radius: 999px;
        padding: 0 12px;
        background: rgba(255, 255, 255, 0.82);
        color: #0c4c45;
        font-size: 12px;
        font-weight: 850;
        white-space: nowrap;
      }

      .study-home-icon {
        width: 15px;
        height: 15px;
      }

      .study-online,
      .quiet-pill {
        min-height: 30px;
        margin-top: 10px;
        padding: 0 11px;
        border-radius: 999px;
        font-size: 12px;
      }

      .study-hero-art {
        width: 206px;
        right: -54px;
        bottom: 2px;
        opacity: 0.9;
      }

      .study-focus-card,
      .study-goal-card,
      .study-peer-card,
      .study-rule-card {
        min-height: 0;
        border-radius: 22px;
        padding: 18px;
      }

      .study-focus-card {
        text-align: center;
      }

      .focus-label,
      .task-label,
      .study-card-title {
        font-size: 17px;
      }

      .focus-time {
        margin-top: 8px;
        font-size: 54px;
      }

      .focus-duration-options,
      .task-picker,
      .daily-target-picker {
        margin-top: 12px;
      }

      .duration-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
      }

      .duration-option {
        min-height: 34px;
        padding: 0 5px;
        border-radius: 12px;
        font-size: 11px;
      }

      .custom-duration-input {
        height: 38px;
        margin-top: 8px;
        border-radius: 12px;
        font-size: 14px;
      }

      .current-task {
        min-height: 42px;
        margin-top: 8px;
        border-radius: 14px;
        padding: 8px 10px;
        font-size: 13px;
        line-height: 1.35;
      }

      .task-book {
        width: 28px;
        height: 28px;
      }

      .task-card-pager {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 8px;
      }

      .task-arrow {
        width: 34px;
        height: 34px;
        font-size: 22px;
      }

      .task-card-current {
        min-height: 46px;
        border-radius: 14px;
        padding: 8px 10px;
        font-size: 13px;
        line-height: 1.35;
      }

      .task-card-dots {
        grid-column: 1 / -1;
        margin-top: 2px;
      }

      .focus-actions {
        margin-top: 16px;
        max-width: none;
      }

      .focus-start,
      .focus-exit {
        height: 50px;
        font-size: 15px;
      }

      .goal-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }

      .goal-stat {
        min-height: 74px;
        border-radius: 16px;
        padding: 12px;
      }

      .goal-stat-label {
        font-size: 12px;
      }

      .goal-stat-value {
        font-size: 28px;
      }

      .goal-progress-row {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 10px;
      }

      .peer-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
      }

      .peer img,
      .peer-more-dot {
        width: 48px;
        height: 48px;
        margin: 0 auto;
      }

      .peer-more-dot {
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: #edf6f4;
        color: #7a8d89;
        font-size: 16px;
        font-weight: 950;
      }

      .peer-status {
        margin-top: 8px;
        font-size: 10px;
        line-height: 1.2;
        white-space: normal;
      }

      .peer-status::before {
        width: 6px;
        height: 6px;
        margin-right: 3px;
      }

      .peer-more-slot .peer-status::before {
        content: none;
      }

      .peer-time {
        margin-top: 5px;
        font-size: 9px;
        line-height: 1.25;
      }

      .study-rule-card {
        overflow: hidden;
      }

      .study-rule-card h2 {
        font-size: 18px;
      }

      .study-rule-card p {
        max-width: 72%;
        font-size: 13px;
        line-height: 1.55;
      }

      .rule-art {
        width: 112px;
        right: -16px;
        bottom: -8px;
      }

      .page.focus-mode .bottom-app-nav {
        display: none;
      }

      .page.focus-mode .content {
        max-width: 430px;
        padding: 0;
      }

      .page.focus-mode .study-room {
        min-height: 100vh;
      }

      .focus-session-page {
        min-height: 100vh;
        border-radius: 0;
      }

      .focus-session-page.active {
        display: block;
      }

      .focus-session-inner {
        min-height: 100vh;
        padding: 26px 18px 28px;
        display: grid;
        grid-template-rows: auto auto 1fr;
        align-content: start;
        gap: 20px;
      }

      .focus-session-top {
        align-items: center;
        gap: 12px;
      }

      .focus-session-room h1 {
        font-size: 22px;
      }

      .focus-session-meta {
        margin-top: 8px;
        font-size: 12px;
      }

      .focus-session-online {
        border-radius: 999px;
        padding: 7px 10px;
        background: rgba(255,255,255,0.72);
        font-size: 12px;
      }

      .focus-dial-wrap {
        display: grid;
        gap: 16px;
        place-items: center;
      }

      .focus-dial {
        width: min(78vw, 292px);
        box-shadow: inset 0 0 0 12px rgba(19, 191, 168, 0.06), 0 16px 36px rgba(20, 50, 70, 0.12);
      }

      .focus-dial-core {
        width: 76%;
      }

      .focus-task-name {
        max-width: 176px;
        margin: 0 auto;
        font-size: 12px;
        line-height: 1.35;
      }

      .focus-countdown {
        margin-top: 12px;
        font-size: 48px;
      }

      .focus-current-time {
        margin-top: 12px;
        font-size: 12px;
      }

      .focus-session-goal {
        width: 100%;
        gap: 8px;
        font-size: 13px;
      }

      .focus-session-goal strong {
        font-size: 22px;
      }

      .focus-session-progress {
        width: min(100%, 288px);
        height: 8px;
      }

      .focus-session-note {
        margin-top: 8px;
        font-size: 13px;
      }

      .focus-session-actions {
        align-self: end;
        width: 100%;
        margin-top: 12px;
        grid-template-columns: 64px minmax(0, 1fr) 64px;
        gap: 12px;
      }

      .focus-round-btn {
        width: 58px;
        height: 58px;
        font-size: 22px;
      }

      .focus-round-label {
        margin-top: 6px;
        font-size: 12px;
      }

      .focus-exit-main {
        height: 58px;
        font-size: 15px;
      }

      /* v1.1 loss trend final polish */
      .loss-trend-name-row {
        min-height: 31px;
        padding-right: 24px;
      }

      .loss-trend-card .loss-trend-name-row h3 {
        display: block;
        overflow: visible;
        color: #173f3a;
        font-size: 8.5px;
        line-height: 1.16;
        font-weight: 850;
        white-space: normal;
        text-overflow: clip;
        word-break: break-all;
      }

      .loss-trend-name-row span {
        top: 11px;
        font-size: 10.5px;
        font-weight: 950;
      }

      .trend-bars {
        gap: 5px;
      }

      .trend-bars i {
        height: var(--h);
        background:
          linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.28)),
          var(--trend);
        opacity: var(--alpha, 1);
      }

      .trend-bars i:nth-child(1) { --alpha: 1; }
      .trend-bars i:nth-child(2) { --alpha: 0.78; }
      .trend-bars i:nth-child(3) { --alpha: 0.56; }
      .trend-bars i:nth-child(4) { --alpha: 0.32; }

      /* v1.1 growth carousel and trend polish */
      .mastery-carousel-card {
        overflow: hidden;
      }

      .mastery-carousel {
        align-items: center;
        gap: 14px;
        margin: 4px -16px 0;
        padding: 24px 32px 22px;
        scroll-padding-inline: 96px;
      }

      .mastery-slide {
        position: relative;
        flex: 0 0 118px;
        min-height: 174px;
        padding: 14px 10px 12px;
        opacity: 0.72;
        transform: scale(0.92);
        transition:
          transform 180ms ease,
          opacity 180ms ease,
          box-shadow 180ms ease,
          border-color 180ms ease;
        z-index: 1;
      }

      .mastery-slide.is-active {
        flex-basis: 140px;
        min-height: 206px;
        opacity: 1;
        transform: translateY(-4px) scale(1.08);
        border-color: rgba(255, 143, 49, 0.54);
        box-shadow: 0 18px 36px rgba(255, 143, 49, 0.2), 0 12px 26px rgba(20, 50, 70, 0.12);
        z-index: 3;
      }

      .mastery-slide.is-active .mastery-slide-title {
        font-size: 15px;
      }

      .mastery-slide.is-active .mastery-slide-rate {
        font-size: 32px;
      }

      .mastery-slide.is-active .mastery-ring {
        width: 56px;
        height: 56px;
      }

      .mastery-slide.is-active .mastery-spark {
        width: 94px;
        height: 36px;
      }

      .loss-trend-grid {
        gap: 8px;
      }

      .loss-trend-card {
        padding: 10px 7px 8px;
        color: var(--trend);
        --trend: #13bfa8;
        --trend-soft: #bfeee5;
      }

      .loss-trend-card.purple {
        --trend: #8b5cf6;
        --trend-soft: #d8c8ff;
      }

      .loss-trend-card.green {
        --trend: #13bfa8;
        --trend-soft: #bfeee5;
      }

      .loss-trend-card.orange {
        --trend: #ff7a1a;
        --trend-soft: #ffd0ad;
      }

      .loss-trend-card.blue {
        --trend: #1677ff;
        --trend-soft: #bcd8ff;
      }

      .loss-trend-top {
        display: block;
      }

      .loss-trend-top strong {
        color: var(--trend);
        font-size: 19px;
      }

      .loss-trend-name-row {
        position: relative;
        display: block;
        align-items: start;
        min-height: 30px;
        margin-top: 6px;
        padding-right: 17px;
      }

      .loss-trend-card .loss-trend-name-row h3 {
        display: block;
        min-width: 0;
        margin: 0;
        overflow: visible;
        color: #173f3a;
        font-size: 8px;
        line-height: 1.18;
        font-weight: 850;
        white-space: normal;
        text-overflow: clip;
        word-break: break-all;
      }

      .loss-trend-name-row span {
        position: absolute;
        top: 12px;
        right: 0;
        color: #64748b;
        font-size: 9px;
        line-height: 1.2;
        font-weight: 900;
        white-space: nowrap;
      }

      .loss-trend-name-row span.up {
        color: #13bfa8;
      }

      .loss-trend-name-row span.down {
        color: #6f9cff;
      }

      .trend-bars {
        height: 42px;
        gap: 5px;
        margin-top: 9px;
      }

      .trend-bars i {
        height: var(--h);
        background: linear-gradient(180deg, var(--trend) 0%, var(--trend-soft) 100%);
        opacity: 1;
      }

      .loss-trend-card p {
        margin-top: 7px;
        font-size: 10px;
      }

      /* v1.1 loss trend final polish */
      .loss-trend-name-row {
        min-height: 31px;
        padding-right: 24px;
      }

      .loss-trend-card .loss-trend-name-row h3 {
        font-size: 8.5px;
        line-height: 1.16;
      }

      .loss-trend-name-row span {
        top: 11px;
        font-size: 10.5px;
        font-weight: 950;
      }

      .trend-bars {
        gap: 5px;
      }

      .trend-bars i {
        height: var(--h);
        background:
          linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.28)),
          var(--trend);
        opacity: var(--alpha, 1);
      }

      .trend-bars i:nth-child(1) { --alpha: 1; }
      .trend-bars i:nth-child(2) { --alpha: 0.78; }
      .trend-bars i:nth-child(3) { --alpha: 0.56; }
      .trend-bars i:nth-child(4) { --alpha: 0.32; }

      html,
      body {
        margin: 0;
        min-height: 100%;
      }

      body {
        background:
          radial-gradient(circle at 6% 0%, rgba(173, 190, 203, 0.28), transparent 30%),
          linear-gradient(180deg, #f6f8fa 0%, var(--color-bg-page) 62%, #eef4f5 100%);
        color: var(--color-text-main);
        font-family: var(--font-family-base);
      }

      .scheme-title {
        height: 64px;
        display: grid;
        place-items: center;
        border-bottom: 1px solid rgba(20, 50, 70, 0.1);
        background: rgba(255, 255, 255, 0.92);
        color: #111827;
        font-size: 28px;
        font-weight: 500;
        letter-spacing: 0;
      }

      .login-screen {
        min-height: 100vh;
        display: grid;
        justify-items: center;
        padding: 24px 18px 18px;
        background:
          radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.92) 0 24%, rgba(255, 255, 255, 0) 46%),
          linear-gradient(180deg, #ffffff 0%, #fbfdfd 54%, #ffffff 100%);
      }

      .login-screen[hidden],
      .page[hidden] {
        display: none;
      }

      .launch-login-card {
        width: min(100%, 390px);
        display: grid;
        gap: 16px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
      }

      .login-hero {
        display: grid;
        justify-items: center;
        text-align: center;
        gap: 12px;
        padding: 0 6px 4px;
      }

      .login-avatar {
        position: relative;
        width: 82px;
        height: 82px;
        border-radius: 50%;
        overflow: hidden;
        background: #fff;
        border: 0;
        box-shadow: 0 12px 30px rgba(20, 50, 70, 0.08);
      }

      .login-avatar-image {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        object-position: center;
        transform: none;
      }

      .login-brand-name {
        margin-top: -2px;
        color: #07353b;
        font-size: 17px;
        line-height: 24px;
        font-weight: 900;
      }

      .login-title {
        margin: 4px 0 0;
        max-width: none;
        color: #0c0d0f;
        font-size: 28px;
        line-height: 1.15;
        font-weight: 950;
        letter-spacing: 0;
      }

      .login-title span {
        color: #0a8e72;
      }

      .login-subtitle {
        margin: 0;
        max-width: 330px;
        color: #546478;
        font-size: 16px;
        line-height: 1.62;
        font-weight: 500;
      }

      .login-pain-card,
      .login-process-card,
      .login-form-card {
        border: 1px solid rgba(20, 50, 70, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 14px 34px rgba(20, 50, 70, 0.08);
      }

      .login-pain-card {
        overflow: hidden;
        padding: 16px clamp(10px, 3.6vw, 14px) 14px;
        padding-inline: clamp(10px, 3.6vw, 14px);
      }

      .login-entry {
        display: grid;
        gap: 14px;
      }

      .login-section-title {
        margin: 0 0 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        color: #142033;
        font-size: 18px;
        line-height: 25px;
        font-weight: 950;
        letter-spacing: 0;
      }

      .login-section-title span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #74d7bf;
        flex: 0 0 auto;
      }

      .login-section-title-leaf span {
        width: 14px;
        height: 8px;
        border-radius: 999px 999px 999px 0;
        transform: rotate(36deg);
      }

      .login-section-title-leaf span:last-child {
        transform: rotate(144deg);
      }

      .login-pain-grid {
        width: 100%;
        min-width: 0;
        min-height: 74px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
      }

      .login-pain-item {
        min-width: 0;
        max-width: 100%;
        display: grid;
        justify-items: center;
        gap: 9px;
        padding-inline: clamp(2px, 1vw, 4px);
        overflow: hidden;
      }

      .login-pain-item + .login-pain-item {
        border-left: 1px solid #e2e6eb;
      }

      .login-pain-item img {
        width: 34px;
        height: 34px;
        object-fit: contain;
      }

      .login-pain-item p {
        max-width: 100%;
        min-width: 0;
        margin: 0;
        color: #111827;
        font-size: clamp(12px, 3.45vw, 14px);
        line-height: 20px;
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .login-process-card {
        overflow: hidden;
        padding: 18px clamp(10px, 3.5vw, 14px) 20px;
        padding-inline: clamp(10px, 3.5vw, 14px);
      }

      .login-process-grid {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns:
          minmax(0, 1fr)
          clamp(8px, 2.8vw, 14px)
          minmax(0, 1fr)
          clamp(8px, 2.8vw, 14px)
          minmax(0, 1fr)
          clamp(8px, 2.8vw, 14px)
          minmax(0, 1fr);
        align-items: start;
        gap: clamp(2px, 1.2vw, 5px);
      }

      .login-process-item {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        display: grid;
        grid-template-areas:
          "media"
          "title"
          "copy";
        grid-template-rows: auto auto auto;
        justify-items: center;
        text-align: center;
      }

      .login-step-badge {
        grid-area: media;
        align-self: start;
        justify-self: center;
        z-index: 2;
        width: clamp(18px, 5.4vw, 20px);
        height: clamp(18px, 5.4vw, 20px);
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: linear-gradient(135deg, #14c89c, #08a77f);
        color: #fff;
        font-size: clamp(8px, 2.4vw, 9px);
        font-weight: 950;
        box-shadow: 0 4px 9px rgba(8, 167, 127, 0.22);
      }

      .login-process-icon {
        grid-area: media;
        width: clamp(50px, 14.5vw, 56px);
        height: clamp(50px, 14.5vw, 56px);
        margin: 10px auto 10px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #fff;
        box-shadow: 0 14px 28px rgba(8, 167, 127, 0.12);
        border: 1px solid rgba(14, 171, 144, 0.08);
      }

      .login-process-icon img {
        width: clamp(28px, 8vw, 32px);
        height: clamp(28px, 8vw, 32px);
        object-fit: contain;
      }

      .login-target-icon {
        filter: brightness(0) saturate(100%) invert(44%) sepia(95%) saturate(1091%) hue-rotate(128deg) brightness(93%) contrast(93%);
      }

      .login-process-item h3 {
        grid-area: title;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        color: #142033;
        font-size: clamp(13px, 3.8vw, 15px);
        line-height: 21px;
        font-weight: 950;
        overflow: hidden;
        text-align: center;
        text-overflow: clip;
        white-space: nowrap;
      }

      .login-process-item p {
        grid-area: copy;
        max-width: 100%;
        min-width: 0;
        margin: 6px 0 0;
        color: #40546b;
        font-size: clamp(10.5px, 3vw, 12px);
        line-height: 17px;
        font-weight: 500;
        overflow: hidden;
        text-align: center;
        text-overflow: clip;
        white-space: nowrap;
      }

      .login-process-arrow {
        min-width: 0;
        padding-top: 34px;
        color: #08a77f;
        font-size: clamp(22px, 7vw, 32px);
        line-height: 1;
        font-weight: 800;
        text-align: center;
        overflow: hidden;
      }

      .login-experience-button {
        height: 52px;
        min-height: 52px;
        border-radius: 999px;
        font-size: 17px;
        letter-spacing: 0;
        box-shadow: 0 16px 30px rgba(9, 167, 133, 0.23);
      }

      .login-experience-button span {
        display: inline-block;
        margin-left: 8px;
        font-size: 28px;
        line-height: 0;
        transform: translateY(2px);
      }

      .login-form-card {
        padding: 18px 14px 14px;
        gap: 14px;
      }

      .login-entry-copy {
        display: grid;
        gap: 4px;
      }

      .login-form-head {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .login-form-head img {
        width: 25px;
        height: 25px;
        object-fit: contain;
      }

      .login-entry-copy h2 {
        margin: 0;
        color: #142033;
        font-size: 21px;
        line-height: 28px;
        font-weight: 950;
      }

      .login-entry-copy p {
        margin: 0;
        color: #6a7c78;
        font-size: 13px;
        line-height: 1.45;
      }

      .login-form {
        display: grid;
        gap: 12px;
      }

      .legacy-login-form {
        margin-top: 0;
      }

      .login-field {
        display: grid;
        gap: 7px;
        color: #142033;
        font-size: 14px;
        line-height: 20px;
        font-weight: 850;
      }

      .login-field input,
      .login-field select {
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #dce4ec;
        border-radius: 9px;
        padding: 10px 12px;
        background: #fbfcfd;
        color: #142033;
        font: inherit;
        font-weight: 500;
        outline: none;
      }

      .login-field input:focus,
      .login-field select:focus {
        border-color: rgba(19, 191, 168, 0.64);
        box-shadow: 0 0 0 4px rgba(19, 191, 168, 0.12);
      }

      .login-submit {
        width: 100%;
        min-height: 44px;
        border: 0;
        border-radius: 8px;
        background: linear-gradient(135deg, #13bfa8, #089783);
        color: #fff;
        font-size: 18px;
        font-weight: 900;
        cursor: pointer;
        box-shadow: 0 10px 18px rgba(9, 140, 126, 0.22);
      }

      .login-submit:disabled {
        cursor: not-allowed;
        opacity: 0.58;
      }

      .login-message {
        min-height: 16px;
        color: var(--color-error);
        font-size: 12px;
        line-height: 1.45;
        text-align: center;
      }

      .login-footnote {
        margin: -6px 0 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #6f7e91;
        font-size: 13px;
        line-height: 18px;
        text-align: left;
      }

      .login-footnote img {
        width: 16px;
        height: 16px;
        flex: 0 0 auto;
        filter: grayscale(1) saturate(0) brightness(0.68);
      }

      .login-password-wrap {
        position: relative;
        display: block;
      }

      .login-password-wrap input {
        padding-right: 48px;
      }

      .login-password-eye {
        position: absolute;
        right: 10px;
        top: 50%;
        z-index: 2;
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: #64748b;
        font-size: 16px;
        line-height: 1;
        padding: 0;
        cursor: pointer;
        pointer-events: auto;
        transform: translateY(-50%);
        transition: background 0.16s ease, color 0.16s ease;
      }

      .login-password-eye svg {
        width: 20px;
        height: 20px;
        display: block;
      }

      .login-password-eye.is-visible {
        background: rgba(19, 191, 168, 0.1);
        color: #078878;
      }

      .login-password-eye.is-visible svg path:last-child {
        opacity: 0;
      }

      .login-password-eye:focus-visible {
        outline: 2px solid rgba(19, 191, 168, 0.42);
        outline-offset: 2px;
      }

      .experience-toast {
        position: fixed;
        left: 50%;
        bottom: 88px;
        z-index: 40;
        max-width: min(330px, calc(100vw - 36px));
        padding: 11px 14px;
        border-radius: 999px;
        background: rgba(18, 43, 49, 0.92);
        color: #fff;
        font-size: 13px;
        line-height: 1.4;
        text-align: center;
        box-shadow: 0 12px 28px rgba(20, 50, 70, 0.18);
        transform: translate(-50%, 12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
      }

      .experience-toast.is-visible {
        opacity: 1;
        transform: translate(-50%, 0);
      }

      @media (max-width: 430px) {
        .login-screen {
          min-height: 100dvh;
          padding: 22px 17px 14px;
        }

        .launch-login-card {
          gap: 16px;
        }

        .login-avatar {
          width: 82px;
          height: 82px;
        }

        .login-title {
          font-size: 28px;
        }

        .login-subtitle {
          font-size: 16px;
        }

        .login-pain-card,
        .login-process-card,
        .login-form-card {
          border-radius: 18px;
        }
      }

      @media (max-width: 360px) {
        .login-pain-card {
          padding-inline: 12px;
        }

        .login-pain-item p {
          font-size: 12px;
        }

        .login-process-card {
          padding-inline: 10px;
        }

        .login-process-grid {
          grid-template-columns:
            minmax(0, 1fr)
            8px
            minmax(0, 1fr)
            8px
            minmax(0, 1fr)
            8px
            minmax(0, 1fr);
          gap: 2px;
        }

        .login-process-icon {
          width: 48px;
          height: 48px;
        }

        .login-process-icon img {
          width: 28px;
          height: 28px;
        }

        .login-process-item h3 {
          font-size: 13px;
        }

        .login-process-item p {
          font-size: 10.5px;
        }

        .login-process-arrow {
          font-size: 22px;
        }
      }

      button {
        font: inherit;
      }

      .page {
        width: min(var(--page-width), 100vw);
        min-height: 1844px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
        background: var(--color-bg-page);
        overflow: hidden;
      }

      .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        padding: 68px 18px 28px;
        background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
        border-right: 1px solid rgba(224, 232, 238, 0.82);
        box-shadow: 12px 0 34px rgba(52, 74, 92, 0.08);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 54px;
        z-index: 4;
      }

      .brand {
        width: 76px;
        height: 76px;
        border: 0;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: linear-gradient(145deg, #08a893 0%, #11c6b0 100%);
        box-shadow: 0 12px 24px rgba(19, 191, 168, 0.22);
      }

      .brand img {
        width: 42px;
        height: 42px;
        filter: brightness(0) invert(1);
      }

      .nav {
        width: 84px;
        display: grid;
        gap: 18px;
      }

      .nav-item {
        width: 84px;
        min-height: 126px;
        border: 0;
        border-radius: 24px;
        background: transparent;
        color: #5f6e82;
        display: grid;
        align-content: center;
        justify-items: center;
        gap: 10px;
        font-size: 24px;
        font-weight: 800;
        line-height: 1.16;
        cursor: pointer;
      }

      .nav-item img {
        width: 36px;
        height: 36px;
      }

      .nav-item.active {
        background: #f4f6f8;
        color: var(--color-primary);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
      }

      .nav-item.active img {
        filter: invert(52%) sepia(97%) saturate(448%) hue-rotate(126deg) brightness(92%) contrast(91%);
      }

      .content {
        min-width: 0;
        padding: 52px 24px 38px;
        background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(246,249,250,0.92));
        border-radius: var(--radius-page) 0 0 var(--radius-page);
        box-shadow: var(--shadow-page);
      }

      .view[hidden] {
        display: none;
      }

      .banner {
        position: relative;
        width: 100%;
        height: var(--banner-height);
        border-radius: var(--radius-banner);
        overflow: hidden;
        background: linear-gradient(135deg, #13afa1 0%, #27cdbb 48%, #a8eee7 100%);
        box-shadow: 0 18px 42px rgba(21, 145, 133, 0.18);
      }

      .banner::before,
      .banner::after {
        content: "";
        position: absolute;
        pointer-events: none;
      }

      .banner::before {
        display: none;
      }

      .banner::after {
        inset: 0;
        z-index: 1;
        background: linear-gradient(90deg, rgba(4, 139, 126, 0.32) 0%, rgba(4, 139, 126, 0.10) 42%, transparent 72%);
      }

      .banner-text {
        position: absolute;
        z-index: 2;
        left: 39px;
        top: 50px;
        color: #fff;
      }

      h1,
      h2,
      h3,
      p {
        margin: 0;
      }

      .banner-title {
        font-size: var(--font-size-banner-title);
        line-height: 1.08;
        font-weight: 850;
        letter-spacing: 0;
      }

      .banner-meta {
        margin-top: 31px;
        display: flex;
        align-items: center;
        gap: 34px;
        color: rgba(255,255,255,0.94);
        font-size: 23px;
        font-weight: 500;
      }

      .meta-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
      }

      .meta-item img {
        width: 22px;
        height: 22px;
        filter: brightness(0) invert(1);
      }

      .status-btn {
        margin-top: 18px;
        min-width: 120px;
        height: 46px;
        border-radius: var(--radius-pill);
        border: 0;
        background: rgba(255,255,255,0.72);
        color: #176c66;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 22px;
        font-weight: 650;
      }

      .status-btn img {
        width: 22px;
        height: 22px;
      }

      .banner-student {
        position: absolute;
        z-index: 0;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
      }

      .countdown {
        position: absolute;
        z-index: 3;
        top: 30px;
        right: 30px;
        width: 110px;
        height: 128px;
        border-radius: 24px;
        background: #fff;
        color: var(--color-primary-dark);
        display: grid;
        place-items: center;
        text-align: center;
        box-shadow: 0 12px 26px rgba(20, 50, 70, 0.08);
        font-weight: 850;
      }

      .countdown small {
        display: block;
        font-size: 21px;
        line-height: 1.1;
      }

      .countdown strong {
        display: block;
        margin: 4px 0 2px;
        font-size: 42px;
        line-height: 1;
      }

      .countdown span {
        display: block;
        font-size: 24px;
        line-height: 1;
      }

      .section-head {
        margin: 42px 4px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
      }

      .section-title {
        display: flex;
        align-items: center;
        gap: 14px;
      }

      .section-title img {
        width: 32px;
        height: 32px;
      }

      .section-title h2 {
        font-size: var(--font-size-section-title);
        line-height: 1.2;
        font-weight: 850;
      }

      .type-count {
        color: var(--color-text-secondary);
        font-size: 20px;
        font-weight: 500;
        white-space: nowrap;
      }

      .type-count strong {
        color: var(--color-primary);
        font-weight: 850;
      }

      .type-card {
        width: 100%;
        margin-bottom: 24px;
        padding: 20px;
        border: 1px solid var(--color-border-soft);
        border-radius: var(--radius-card);
        background: var(--color-bg-card);
        box-shadow: var(--shadow-card);
      }

      .type-card-head {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) 42px;
        gap: 16px;
        align-items: center;
      }

      .type-label {
        height: 44px;
        padding: 0 13px;
        border-radius: 14px;
        background: var(--color-primary-light);
        color: var(--color-primary-dark);
        display: inline-flex;
        align-items: center;
        font-size: 22px;
        font-weight: 850;
        white-space: nowrap;
      }

      .type-title {
        min-width: 0;
        color: var(--color-text-main);
        font-size: var(--font-size-card-title);
        line-height: 1.2;
        font-weight: 850;
      }

      .arrow-circle {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 1px solid rgba(20, 50, 70, 0.10);
        background: #fff;
        display: grid;
        place-items: center;
      }

      .arrow-circle img {
        width: 18px;
        height: 18px;
      }

      .lecture {
        position: relative;
        margin-top: 20px;
        width: 100%;
        height: var(--type-hero-height);
        border-radius: 16px;
        overflow: hidden;
        background: #e8faf7;
      }

      .lecture img.lecture-img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
      }

      .play-pill {
        position: absolute;
        left: 50%;
        bottom: 14px;
        transform: translateX(-50%);
        height: 44px;
        padding: 0 18px;
        border-radius: var(--radius-pill);
        background: rgba(255,255,255,0.76);
        color: var(--color-text-main);
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 22px;
        font-weight: 750;
        white-space: nowrap;
      }

      .play-pill img {
        width: 28px;
        height: 28px;
      }

      .source {
        margin-top: 20px;
        padding: 16px 18px;
        border-radius: 18px;
        border: 1px solid var(--color-border);
        background: var(--color-primary-light);
      }

      .type-card.theme-purple .source {
        background: var(--color-purple-light);
        border-color: rgba(126,112,242,0.14);
      }

      .source-head {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
        color: var(--color-text-main);
        font-size: 22px;
        font-weight: 850;
      }

      .source-head img {
        width: 28px;
        height: 28px;
      }

      .source-list {
        display: grid;
        gap: 11px;
      }

      .source-row {
        min-height: 46px;
        padding: 0 14px 0 18px;
        border-radius: var(--radius-pill);
        background: rgba(255,255,255,0.82);
        border: 1px solid rgba(20, 50, 70, 0.08);
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr) 16px;
        align-items: center;
        gap: 12px;
        color: #111827;
        font-size: 19px;
        font-weight: 500;
      }

      .book-dot {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        background: var(--color-primary);
        box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
      }

      .book-dot.purple {
        background: var(--color-purple);
      }

      .source-row strong {
        color: var(--color-primary);
        font-weight: 800;
      }

      .theme-purple .source-row strong {
        color: var(--color-purple);
      }

      .source-row img {
        width: 16px;
        height: 16px;
      }

      .source-group-row {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        border-radius: 18px;
        align-items: start;
      }

      .source-group-row > img {
        align-self: center;
      }

      .source-group-copy {
        --source-book-label-width: 4.9em;
        min-width: 0;
        display: grid;
        gap: 6px;
        line-height: 1.35;
      }

      .source-group-title,
      .source-question-line {
        display: grid;
        grid-template-columns: var(--source-book-label-width) minmax(0, 1fr);
        min-width: 0;
      }

      .source-book-label {
        min-width: 0;
        padding-right: 2px;
        color: var(--color-primary);
        font-weight: 850;
      }

      .theme-purple .source-book-label {
        color: var(--color-purple);
      }

      .source-question-content {
        min-width: 0;
        display: grid;
        grid-template-columns: 3.45em minmax(0, 1fr);
        padding-left: 0.75em;
        color: var(--color-text-secondary);
      }

      .source-question-label {
        white-space: nowrap;
        font-weight: 700;
      }

      .source-question-numbers {
        min-width: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        color: var(--color-text-main);
        font-weight: 700;
      }

      .source-question-number {
        display: inline-block;
        white-space: nowrap;
      }

      .feedback {
        margin-top: 36px;
        padding: 20px;
        border: 1px solid rgba(245, 158, 91, 0.18);
        border-radius: var(--radius-card);
        background: rgba(255, 250, 243, 0.96);
        box-shadow: var(--shadow-card);
      }

      .feedback-head {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(20, 50, 70, 0.08);
      }

      .feedback-head img {
        width: 30px;
        height: 30px;
      }

      .feedback-head h2 {
        font-size: 27px;
        line-height: 1.2;
        font-weight: 850;
      }

      .feedback-subtitle {
        justify-self: center;
        color: var(--color-text-secondary);
        font-size: 18px;
        white-space: nowrap;
      }

      .all-none {
        height: 38px;
        padding: 0 18px;
        border-radius: var(--radius-pill);
        border: 1px solid rgba(245, 158, 91, 0.3);
        background: var(--color-warning-light);
        color: #f0641f;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 800;
        white-space: nowrap;
      }

      .feedback-actions {
        margin-top: 20px;
        display: grid;
        gap: 12px;
      }

      .submit-feedback {
        width: 100%;
        height: 52px;
        border: 0;
        border-radius: var(--radius-pill);
        background: linear-gradient(135deg, #13bfa8, #0ba98e);
        color: #fff;
        font-size: 20px;
        font-weight: 850;
        box-shadow: 0 10px 20px rgba(19, 191, 168, 0.2);
        cursor: pointer;
      }

      .submit-feedback:disabled {
        cursor: not-allowed;
        opacity: 0.62;
      }

      .feedback-message {
        min-height: 24px;
        color: var(--color-text-secondary);
        font-size: 16px;
        text-align: center;
      }

      .feedback-message.error {
        color: var(--color-error);
      }

      .feedback-message.success {
        color: var(--color-success);
      }

      .unattempted-sheet {
        --unattempted-bottom-gap: max(72px, calc(env(safe-area-inset-bottom) + 22px));
        position: fixed;
        inset: 0;
        z-index: 80;
        display: grid;
        align-items: end;
        justify-items: center;
        height: 100dvh;
        padding: 22px 22px var(--unattempted-bottom-gap);
      }

      .unattempted-sheet-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(32, 52, 49, 0.48);
        backdrop-filter: blur(8px);
      }

      .unattempted-panel {
        position: relative;
        z-index: 1;
        width: min(100%, 430px);
        max-height: calc(100dvh - 44px - var(--unattempted-bottom-gap));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-radius: 28px;
        background: #fff;
        padding: 22px 20px 24px;
        box-shadow: 0 22px 48px rgba(28, 52, 49, 0.22);
      }

      .sheet-drag-handle {
        width: 48px;
        height: 5px;
        border-radius: var(--radius-pill);
        background: #d7e3df;
        margin: 0 auto 22px;
      }

      .sheet-kicker {
        display: inline-flex;
        align-items: center;
        height: 32px;
        padding: 0 14px;
        border-radius: var(--radius-pill);
        background: #fff0e8;
        color: #ee6b2f;
        font-size: 15px;
        font-weight: 900;
      }

      .unattempted-panel h2 {
        margin: 16px 0 10px;
        color: #153f39;
        font-size: 27px;
        line-height: 1.25;
        letter-spacing: 0;
      }

      .sheet-intro {
        margin: 0 0 18px;
        color: #647873;
        font-size: 16px;
        line-height: 1.55;
      }

      .sheet-rule {
        margin-top: 10px;
        border-radius: 16px;
        background: #f5fbf9;
        padding: 14px 16px;
        color: #526d67;
        font-size: 16px;
        line-height: 1.45;
      }

      .sheet-rule strong {
        color: #173f39;
        font-weight: 950;
      }

      .sheet-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 18px 0;
      }

      .sheet-stats div {
        min-height: 78px;
        border-radius: 18px;
        background: #f6fbfa;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 4px;
      }

      .sheet-stats strong {
        color: #ff7b24;
        font-size: 24px;
        line-height: 1;
      }

      .sheet-stats span {
        color: #77908a;
        font-size: 14px;
        font-weight: 700;
      }

      .sheet-primary-action,
      .sheet-secondary-action {
        width: 100%;
        min-height: 56px;
        border-radius: var(--radius-pill);
        font-size: 18px;
        font-weight: 950;
        cursor: pointer;
      }

      .sheet-primary-action {
        border: 0;
        background: linear-gradient(135deg, #16c7af, #0eab90);
        color: #fff;
        box-shadow: 0 12px 26px rgba(15, 176, 150, 0.24);
      }

      .sheet-secondary-action {
        margin-top: 12px;
        border: 1px solid #ffd4bf;
        background: #fff5ef;
        color: #e96a31;
      }

      .sheet-primary-action:disabled,
      .sheet-secondary-action:disabled {
        cursor: not-allowed;
        opacity: 0.65;
      }

      .sheet-message {
        min-height: 22px;
        margin-top: 14px;
        color: #8aa09b;
        text-align: center;
        font-size: 14px;
        line-height: 1.45;
      }

      @media (max-width: 420px) {
        .unattempted-sheet {
          padding-inline: 14px;
        }

        .unattempted-panel {
          border-radius: 26px;
          padding: 20px 18px 22px;
        }

        .unattempted-panel h2 {
          font-size: 25px;
        }

        .sheet-intro,
        .sheet-rule {
          font-size: 15px;
        }
      }

      .plan-expired-card {
        margin-top: 24px;
        padding: 28px 24px;
        border-radius: 24px;
        border: 1px solid rgba(245, 158, 11, 0.18);
        background:
          linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(240, 253, 250, 0.98));
        box-shadow: 0 16px 36px rgba(20, 50, 70, 0.08);
      }

      .plan-expired-card h2 {
        margin: 0;
        color: #8a4b08;
        font-size: 26px;
        line-height: 1.25;
      }

      .plan-expired-card p {
        margin: 12px 0 0;
        color: #536b67;
        font-size: 17px;
        line-height: 1.7;
      }

      .plan-expired-meta {
        margin-top: 18px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .plan-expired-meta div {
        padding: 14px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.76);
        color: #64748b;
        font-size: 14px;
        font-weight: 750;
      }

      .plan-expired-meta strong {
        display: block;
        margin-top: 6px;
        color: #173f39;
        font-size: 18px;
      }

      .feedback-list {
        padding-top: 10px;
      }

      .feedback-row {
        min-height: 48px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 88px 88px 88px;
        gap: 18px;
        align-items: center;
        padding: 0 0;
        border-bottom: 1px solid rgba(20, 50, 70, 0.07);
      }

      .feedback-row:last-child {
        border-bottom: 0;
      }

      .feedback-title {
        min-width: 0;
        color: var(--color-text-main);
        font-size: 19px;
        font-weight: 520;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .choice {
        height: 36px;
        border-radius: var(--radius-pill);
        border: 1px solid transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 800;
        cursor: pointer;
      }

      .choice.correct {
        border-color: rgba(19,168,135,0.20);
        background: var(--color-success-light);
        color: var(--color-success);
      }

      .choice.wrong {
        border-color: rgba(240,90,90,0.22);
        background: var(--color-error-light);
        color: var(--color-error);
      }

      .choice.none {
        border-color: rgba(107,120,144,0.18);
        background: #f7f9fb;
        color: var(--color-muted);
      }

      .choice.selected {
        box-shadow: inset 0 0 0 2px currentColor;
      }

      .empty-view {
        min-height: 800px;
        padding: 40px;
        border-radius: var(--radius-card);
        background: #fff;
        box-shadow: var(--shadow-card);
      }

      .empty-view h1 {
        font-size: 34px;
      }

      .rank-hero {
        position: relative;
        height: 350px;
        border-radius: var(--radius-banner);
        overflow: hidden;
        background:
          linear-gradient(105deg, rgba(255,255,255,0.95) 0%, rgba(239,251,248,0.96) 48%, rgba(229,248,244,0.86) 100%);
        border: 1px solid rgba(20, 50, 70, 0.06);
        box-shadow: var(--shadow-card);
      }

      .rank-hero-text {
        position: relative;
        z-index: 2;
        padding: 33px 0 0 28px;
        max-width: 445px;
      }

      .rank-hero h1 {
        font-size: 40px;
        line-height: 1.1;
        font-weight: 900;
        letter-spacing: 0;
      }

      .rank-hero-subtitle {
        margin-top: 16px;
        color: var(--color-text-secondary);
        font-size: 20px;
        line-height: 1.35;
      }

      .rule-btn {
        position: absolute;
        z-index: 4;
        top: 28px;
        right: 26px;
        height: 42px;
        padding: 0 18px;
        border-radius: var(--radius-pill);
        border: 1px solid rgba(20, 50, 70, 0.1);
        background: rgba(255,255,255,0.74);
        color: var(--color-text-main);
        display: inline-flex;
        align-items: center;
        gap: 16px;
        font-size: 19px;
        font-weight: 600;
      }

      .rule-btn::before {
        content: "?";
        width: 25px;
        height: 25px;
        border: 2px solid #64748b;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: #64748b;
        font-size: 17px;
        font-weight: 800;
      }

      .rank-stat-card {
        margin-top: 23px;
        width: 355px;
        height: 142px;
        border-radius: 24px;
        background: rgba(229,250,246,0.76);
        border: 1px solid rgba(20, 191, 168, 0.16);
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
      }

      .rank-stat {
        padding-left: 32px;
        color: var(--color-text-main);
      }

      .rank-stat + .rank-stat {
        border-left: 1px solid rgba(20, 50, 70, 0.10);
      }

      .rank-stat-label {
        font-size: 19px;
        font-weight: 600;
      }

      .rank-stat-value {
        margin-top: 13px;
        display: flex;
        align-items: baseline;
        gap: 8px;
        font-weight: 900;
      }

      .rank-stat-value span:first-child {
        font-size: 27px;
      }

      .rank-stat-value strong {
        color: var(--color-primary-dark);
        font-size: 58px;
        line-height: 0.9;
      }

      .rank-stat-value span:last-child {
        font-size: 29px;
      }

      .rank-tip {
        position: absolute;
        z-index: 3;
        left: 36px;
        bottom: 13px;
        min-height: 52px;
        padding: 0 23px;
        border-radius: var(--radius-pill);
        background: rgba(255,255,255,0.86);
        display: inline-flex;
        align-items: center;
        gap: 13px;
        color: var(--color-text-main);
        font-size: 19px;
        box-shadow: var(--shadow-soft);
      }

      .rank-tip strong {
        color: #f0641f;
        font-size: 24px;
      }

      .rank-tip img {
        width: 30px;
        height: 30px;
      }

      .rank-hero-img {
        position: absolute;
        right: -16px;
        bottom: 0;
        width: 420px;
        height: 250px;
        object-fit: cover;
        object-position: right bottom;
      }

      .rank-card {
        margin-top: 22px;
        padding: 22px 28px;
        border-radius: var(--radius-card);
        background: rgba(255,255,255,0.95);
        border: 1px solid var(--color-border-soft);
        box-shadow: var(--shadow-card);
      }

      .rank-card-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        margin-bottom: 18px;
      }

      .rank-card-head h2 {
        font-size: 28px;
        line-height: 1.2;
        font-weight: 900;
      }

      .rank-card-more {
        color: var(--color-text-secondary);
        font-size: 18px;
      }

      .badge-wall {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
        align-items: end;
      }

      .medal-item {
        text-align: center;
        color: var(--color-text-secondary);
        font-size: 17px;
      }

      .medal-item.earned {
        color: var(--color-text-main);
        font-weight: 750;
      }

      .medal-item.current {
        color: var(--color-primary-dark);
        font-weight: 850;
      }

      .medal-title {
        min-height: 42px;
        display: grid;
        place-items: center;
        line-height: 1.25;
      }

      .medal {
        width: 128px;
        height: 128px;
        margin: 0 auto 8px;
        border-radius: 50%;
        position: relative;
        display: grid;
        place-items: center;
        font-size: 43px;
        color: #fff;
        font-weight: 900;
        filter: drop-shadow(0 12px 18px rgba(20, 50, 70, 0.16));
      }

      .medal::before {
        content: "";
        position: absolute;
        inset: 11px;
        border-radius: 50%;
        border: 8px solid rgba(255,255,255,0.45);
      }

      .medal.teal {
        background: linear-gradient(145deg, #40e0ce, #079a8d);
      }

      .medal.silver {
        background: linear-gradient(145deg, #e6eef6, #8fa3ba);
      }

      .medal.gray {
        background: linear-gradient(145deg, #dfe2ec, #8d92a3);
      }

      .medal.bronze {
        background: linear-gradient(145deg, #f1d8bf, #b78b66);
      }

      .medal.locked {
        filter: grayscale(0.35) drop-shadow(0 10px 14px rgba(20, 50, 70, 0.12));
        opacity: 0.76;
      }

      .medal-lock {
        position: absolute;
        bottom: 17px;
        width: 26px;
        height: 26px;
        border-radius: 8px;
        background: rgba(82, 73, 66, 0.72);
        font-size: 16px;
        display: grid;
        place-items: center;
      }

      .medal-status {
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        height: 30px;
        padding: 0 14px;
        border-radius: var(--radius-pill);
        background: #079a8d;
        color: #fff;
        font-size: 18px;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
      }

      .badge-progress {
        width: 128px;
        margin: 10px auto 0;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 9px;
        align-items: center;
      }

      .badge-wall-note {
        margin-top: 18px;
        padding: 12px 16px;
        border-radius: 16px;
        background: linear-gradient(90deg, rgba(19, 191, 168, 0.11), rgba(255, 255, 255, 0.72));
        color: #47615d;
        font-size: 17px;
        line-height: 1.55;
      }

      .progress-track {
        height: 10px;
        border-radius: var(--radius-pill);
        background: #dce5ea;
        overflow: hidden;
      }

      .progress-fill {
        width: 71%;
        height: 100%;
        border-radius: inherit;
        background: var(--color-primary);
      }

      .checkin-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 18px;
      }

      .legend {
        display: flex;
        align-items: center;
        gap: 20px;
        color: var(--color-text-secondary);
        font-size: 17px;
      }

      .legend span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
      }

      .legend i {
        width: 15px;
        height: 15px;
        border-radius: 5px;
        display: inline-block;
        background: var(--color-primary);
      }

      .legend i.off {
        background: #eef2f5;
        border: 1px solid #d8e1e7;
      }

      .checkin-grid {
        display: grid;
        grid-template-columns: repeat(14, 1fr);
        gap: 15px;
      }

      .day-box {
        height: 34px;
        border-radius: 8px;
        background: #eef2f5;
        border: 1px solid #d8e1e7;
        display: grid;
        place-items: center;
        color: #fff;
        font-size: 22px;
        font-weight: 900;
      }

      .day-box.done {
        background: linear-gradient(145deg, var(--color-primary), #079a8d);
        border-color: rgba(19,191,168,0.25);
      }

      .day-labels {
        margin-top: 10px;
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        color: var(--color-text-secondary);
        font-size: 18px;
      }

      .leader-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
        color: var(--color-text-secondary);
        font-size: 23px;
        border-bottom: 1px solid rgba(20, 50, 70, 0.08);
      }

      .leader-tab {
        position: relative;
        padding-bottom: 14px;
      }

      .leader-tab.active {
        color: var(--color-primary-dark);
        font-weight: 850;
      }

      .leader-tab.active::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -1px;
        transform: translateX(-50%);
        width: 58px;
        height: 4px;
        border-radius: var(--radius-pill);
        background: var(--color-primary);
      }

      .podium {
        height: 180px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: end;
        gap: 42px;
        padding: 18px 40px 0;
      }

      .podium-item {
        height: 118px;
        border-radius: 22px 22px 0 0;
        display: grid;
        justify-items: center;
        align-content: start;
        padding-top: 11px;
        color: var(--color-text-main);
        font-size: 17px;
      }

      .podium-item.first {
        height: 142px;
        background: linear-gradient(180deg, #fff3d6, #fffaf0);
        border: 1px solid rgba(245,158,91,0.24);
      }

      .podium-item.second {
        background: linear-gradient(180deg, #eef7ff, #f8fbff);
        border: 1px solid rgba(140,165,195,0.20);
      }

      .podium-item.third {
        background: linear-gradient(180deg, #ecfaf7, #f8fffd);
        border: 1px solid rgba(19,191,168,0.18);
      }

      .avatar {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: linear-gradient(145deg, #ffd6b5, #fff1e6);
        display: grid;
        place-items: center;
        font-size: 28px;
        margin-bottom: 7px;
        overflow: hidden;
      }

      .avatar img,
      .mini-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
      }

      .podium-days strong {
        color: var(--color-primary);
        font-size: 24px;
      }

      .podium-item.first .podium-days strong {
        color: #f0641f;
      }

      .ranking-table {
        border-top: 1px solid rgba(20, 50, 70, 0.08);
      }

      .rank-table-row {
        min-height: 55px;
        display: grid;
        grid-template-columns: 80px minmax(0, 1fr) 150px 150px;
        align-items: center;
        border-bottom: 1px solid rgba(20, 50, 70, 0.07);
        color: var(--color-text-secondary);
        font-size: 18px;
      }

      .rank-table-row.header {
        min-height: 42px;
        font-size: 17px;
      }

      .rank-table-row.me {
        margin-top: 8px;
        padding: 0 0;
        border: 1px solid rgba(19,191,168,0.18);
        border-radius: 18px;
        background: var(--color-primary-light);
        color: var(--color-text-main);
      }

      .rank-name {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--color-text-main);
      }

      .mini-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #ffe3cf;
        display: grid;
        place-items: center;
        flex: 0 0 34px;
        overflow: hidden;
      }

      .status-ok {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--color-primary-dark);
      }

      .status-ok::before {
        content: "✓";
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--color-primary);
        color: #fff;
        display: grid;
        place-items: center;
        font-size: 15px;
        font-weight: 900;
      }

      .next-goal {
        position: relative;
        min-height: 250px;
        overflow: hidden;
        background: linear-gradient(105deg, #f1fffb, #ffffff 56%, #e8faf7);
      }

      .next-goal h2 {
        font-size: 26px;
        line-height: 1.2;
        font-weight: 900;
      }

      .goal-content {
        margin-top: 22px;
        display: grid;
        grid-template-columns: 175px minmax(0, 1fr) 170px;
        align-items: center;
        gap: 26px;
      }

      .goal-medal .medal {
        width: 116px;
        height: 116px;
      }

      .goal-medal {
        text-align: center;
        font-size: 21px;
        color: var(--color-text-main);
      }

      .goal-copy {
        color: var(--color-text-main);
        font-size: 24px;
      }

      .goal-copy strong {
        color: #f0641f;
        font-size: 34px;
      }

      .goal-progress {
        margin-top: 20px;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 14px;
        align-items: center;
        color: var(--color-text-main);
        font-size: 22px;
      }

      .continue-btn {
        margin-top: 24px;
        width: 100%;
        height: 56px;
        border: 0;
        border-radius: var(--radius-pill);
        background: linear-gradient(135deg, #13bfa8, #079a8d);
        color: #fff;
        font-size: 28px;
        font-weight: 900;
        box-shadow: 0 14px 28px rgba(19,191,168,0.22);
      }

      .calendar-art {
        height: 142px;
        border-radius: 22px;
        background: linear-gradient(145deg, #ddfbf3, #f5fffc);
        border: 1px solid rgba(19,191,168,0.16);
        display: grid;
        place-items: center;
        color: var(--color-primary-dark);
        font-size: 72px;
      }

      .goal-calendar {
        position: relative;
        width: 138px;
        height: 128px;
        border-radius: 22px;
        background: linear-gradient(145deg, #dcfbf4, #f8fffd);
        border: 1px solid rgba(19, 191, 168, 0.18);
        box-shadow: 0 16px 28px rgba(20, 50, 70, 0.08);
        display: grid;
        place-items: center;
      }

      .goal-calendar::before {
        content: "DAY";
        position: absolute;
        top: 18px;
        color: var(--color-primary);
        font-size: 18px;
        font-weight: 900;
      }

      .goal-calendar-grid {
        margin-top: 24px;
        display: grid;
        grid-template-columns: repeat(3, 22px);
        gap: 9px;
      }

      .goal-calendar-grid i {
        width: 22px;
        height: 22px;
        border-radius: 6px;
        background: rgba(19, 191, 168, 0.18);
        display: grid;
        place-items: center;
        color: var(--color-primary-dark);
        font-size: 16px;
        font-style: normal;
        font-weight: 900;
      }

      .curve-hero {
        position: relative;
        min-height: 350px;
        padding: 38px 34px 0;
        border-radius: var(--radius-banner);
        overflow: visible;
        background:
          radial-gradient(circle at 73% 8%, rgba(19, 191, 168, 0.12), transparent 28%),
          linear-gradient(105deg, rgba(255,255,255,0.96) 0%, rgba(238,253,249,0.94) 54%, rgba(223,249,244,0.82) 100%);
        border: 1px solid rgba(20, 50, 70, 0.06);
        box-shadow: var(--shadow-card);
      }

      .curve-hero h1 {
        font-size: 40px;
        line-height: 1.1;
        font-weight: 900;
        letter-spacing: 0;
      }

      .curve-hero-subtitle {
        margin-top: 18px;
        color: var(--color-text-main);
        font-size: 22px;
        line-height: 1.35;
        font-weight: 520;
      }

      .radar-art {
        position: absolute;
        right: 12px;
        top: 0;
        width: 392px;
        height: 188px;
        opacity: 0.92;
      }

      .metrics-panel {
        position: relative;
        z-index: 2;
        margin-top: 50px;
        padding: 34px 28px 24px;
        border-radius: 24px;
        background: rgba(255,255,255,0.95);
        border: 1px solid rgba(20, 50, 70, 0.07);
        box-shadow: 0 14px 36px rgba(19,191,168,0.14);
      }

      .metric-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: stretch;
      }

      .metric-item {
        min-height: 96px;
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 14px;
        align-items: center;
        padding: 0 24px;
        border-right: 1px solid rgba(20, 50, 70, 0.12);
      }

      .metric-item:first-child {
        padding-left: 0;
      }

      .metric-item:last-child {
        border-right: 0;
        padding-right: 0;
      }

      .metric-icon {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--color-primary);
        background: var(--color-primary-light);
        font-size: 35px;
        font-weight: 900;
      }

      .metric-icon.warn {
        color: #f97316;
        background: #fff4e8;
      }

      .metric-label {
        color: var(--color-text-main);
        font-size: 17px;
        line-height: 1.2;
        white-space: nowrap;
      }

      .metric-value {
        margin-top: 12px;
        color: #064f45;
        font-size: 43px;
        line-height: 1;
        font-weight: 900;
        white-space: nowrap;
      }

      .metric-value small {
        font-size: 21px;
        font-weight: 650;
      }

      .metric-value.orange {
        color: #f0641f;
      }

      .curve-note {
        margin-top: 26px;
        padding-top: 22px;
        border-top: 1px solid rgba(20, 50, 70, 0.12);
        color: var(--color-text-main);
        display: flex;
        gap: 15px;
        align-items: center;
        font-size: 20px;
      }

      .curve-note .info {
        width: 30px;
        height: 30px;
        border: 2px solid #64748b;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: #64748b;
        font-weight: 850;
      }

      .curve-note strong {
        color: var(--color-primary);
      }

      .curve-grid {
        margin-top: 28px;
        display: grid;
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        gap: 16px;
        align-items: stretch;
      }

      .curve-card {
        border-radius: var(--radius-card);
        background: rgba(255,255,255,0.95);
        border: 1px solid rgba(20, 50, 70, 0.06);
        box-shadow: var(--shadow-card);
        padding: 26px 22px;
      }

      .curve-card h2,
      .priority-card h2 {
        font-size: 27px;
        line-height: 1.2;
        font-weight: 900;
      }

      .heat-summary {
        margin-top: 16px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
      }

      .heat-stat {
        min-height: 66px;
        padding: 10px 12px;
        border-radius: 14px;
        background: linear-gradient(180deg, #f6fbfa, #eef9f6);
        border: 1px solid rgba(19, 191, 168, 0.12);
      }

      .heat-stat span {
        display: block;
        color: #64748b;
        font-size: 14px;
        font-weight: 650;
      }

      .heat-stat strong {
        display: block;
        margin-top: 4px;
        color: #0b4f46;
        font-size: 22px;
        line-height: 1;
        font-weight: 900;
      }

      .heatmap {
        margin-top: 18px;
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 12px;
      }

      .heat-day {
        min-width: 0;
        padding: 9px 5px 8px;
        border-radius: 14px;
        background: #fbfdfd;
        border: 1px solid rgba(20, 50, 70, 0.06);
        display: grid;
        gap: 7px;
        justify-items: center;
        color: var(--color-text-main);
        font-size: 13px;
        box-shadow: 0 5px 14px rgba(20, 50, 70, 0.04);
      }

      .heat-day > span {
        color: #51616f;
        font-weight: 750;
      }

      .heat-box {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        background: #c9eee7;
        box-shadow: inset 0 0 0 1px rgba(19,191,168,0.08);
      }

      .heat-box.peak { background: linear-gradient(145deg, #079a8d, #02675f); }
      .heat-box.high { background: linear-gradient(145deg, #12bfa8, #079a8d); }
      .heat-box.mid { background: #75d6c3; }
      .heat-box.low { background: #ccefe8; }
      .heat-box.none { background: #eef2f5; border: 1px solid #d8e1e7; }

      .heat-meta {
        color: #7a8894;
        font-size: 12px;
        font-weight: 650;
        white-space: nowrap;
      }

      .heat-legend {
        margin-top: 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--color-text-main);
        font-size: 14px;
      }

      .heat-legend span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }

      .legend-square {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        background: var(--color-primary);
      }

      .legend-square.peak { background: #02675f; }
      .legend-square.mid { background: #75d6c3; }
      .legend-square.low { background: #ccefe8; }
      .legend-square.none { background: #eef2f5; border: 1px solid #d8e1e7; }

      .mastery-list {
        margin-top: 22px;
        display: grid;
        gap: 18px;
      }

      .mastery-card {
        grid-row: 1 / span 2;
        min-height: 0;
        display: flex;
        flex-direction: column;
      }

      .mastery-scroll {
        flex: 1;
        min-height: 0;
        max-height: 728px;
        overflow-y: auto;
        padding-right: 8px;
        scrollbar-width: thin;
        scrollbar-color: rgba(19, 191, 168, 0.34) rgba(238, 242, 245, 0.9);
      }

      .mastery-scroll::-webkit-scrollbar {
        width: 7px;
      }

      .mastery-scroll::-webkit-scrollbar-track {
        background: rgba(238, 242, 245, 0.9);
        border-radius: var(--radius-pill);
      }

      .mastery-scroll::-webkit-scrollbar-thumb {
        background: rgba(19, 191, 168, 0.34);
        border-radius: var(--radius-pill);
      }

      .mastery-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 14px;
        align-items: center;
        font-size: 20px;
        color: var(--color-text-main);
      }

      .mastery-percent {
        text-align: right;
        font-weight: 700;
      }

      .bar-track {
        grid-column: 1 / -1;
        height: 8px;
        border-radius: var(--radius-pill);
        background: #eef1f2;
        overflow: hidden;
      }

      .bar-fill {
        height: 100%;
        border-radius: inherit;
        background: var(--color-primary);
      }

      .bar-fill.orange {
        background: #f97316;
      }

      .loss-card {
        margin-top: 16px;
      }

      .loss-content {
        margin-top: 20px;
        display: grid;
        gap: 18px;
        align-items: center;
        justify-items: center;
      }

      .loss-chart-wrap {
        width: min(100%, 280px);
        display: grid;
        place-items: center;
      }

      .loss-donut-chart {
        width: 100%;
        height: auto;
        overflow: visible;
        filter: drop-shadow(0 14px 22px rgba(20, 50, 70, 0.1));
      }

      .loss-slice {
        stroke: #fff;
        stroke-width: 2;
      }

      .loss-slice-label {
        fill: #fff;
        font-size: 16px;
        font-weight: 900;
        text-anchor: middle;
        dominant-baseline: middle;
      }

      .loss-slice-label.outside {
        fill: #183c37;
        font-size: 14px;
      }

      .loss-leader {
        display: none;
      }

      .loss-center {
        fill: #fff;
        filter: drop-shadow(0 3px 8px rgba(20, 50, 70, 0.06));
      }

      .loss-center-text {
        fill: #536b67;
        font-size: 14px;
        font-weight: 850;
        text-anchor: middle;
        dominant-baseline: middle;
      }

      .loss-legend,
      .loss-legend-bottom {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        font-size: 15px;
        color: var(--color-text-main);
      }

      .loss-legend-row {
        display: grid;
        grid-template-columns: 12px minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
        min-height: 30px;
      }

      .loss-legend-row span {
        min-width: 0;
        font-weight: 700;
      }

      .loss-legend-row strong {
        text-align: right;
        color: #0f3f39;
        font-weight: 900;
      }

      .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--color-primary);
      }

      .dot.green { background: #42b977; }
      .dot.orange { background: #ffa726; }
      .dot.purple { background: #7e70f2; }
      .dot.gray { background: #94a3b8; }

      .priority-card {
        margin-top: 16px;
        padding: 26px 22px;
        border-radius: var(--radius-card);
        background: rgba(255,255,255,0.95);
        border: 1px solid rgba(20, 50, 70, 0.06);
        box-shadow: var(--shadow-card);
      }

      .priority-head {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 20px;
      }

      .priority-icon {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: #fff;
        background: var(--color-primary);
        font-size: 23px;
        font-weight: 900;
      }

      .priority-list {
        display: grid;
      }

      .priority-row {
        min-height: 62px;
        display: grid;
        grid-template-columns: 36px 110px 82px minmax(0, 1fr) 42px;
        gap: 18px;
        align-items: center;
        border-top: 1px solid rgba(20, 50, 70, 0.08);
        color: var(--color-text-main);
      }

      .priority-index {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: grid;
        place-items: center;
        color: #fff;
        background: var(--color-primary);
        font-size: 22px;
        font-weight: 900;
      }

      .priority-name {
        font-size: 22px;
        font-weight: 850;
      }

      .tag {
        min-height: 32px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #f0641f;
        background: #fff2dd;
        font-size: 18px;
        font-weight: 700;
      }

      .tag.blue {
        color: #1677ff;
        background: #eaf4ff;
      }

      .priority-desc {
        color: var(--color-text-main);
        font-size: 17px;
        line-height: 1.45;
      }

      .priority-action {
        color: #5f6e82;
        font-size: 28px;
        text-align: center;
      }

      .study-room {
        display: grid;
        gap: 24px;
        color: #173f3a;
      }

      .page.focus-mode {
        grid-template-columns: minmax(0, 1fr);
      }

      .page.focus-mode .sidebar {
        display: none;
      }

      .page.focus-mode .content {
        padding: 18px;
        border-radius: var(--radius-page);
      }

      .study-room-shell {
        display: grid;
        gap: 24px;
        transition: opacity .28s ease, transform .28s ease;
      }

      .study-room-shell.is-focusing {
        opacity: 0;
        transform: translateY(12px) scale(.985);
        pointer-events: none;
        position: absolute;
        inset: 0;
      }

      .focus-session-page {
        display: none;
        min-height: calc(100vh - 36px);
        border-radius: 24px;
        overflow: hidden;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 249, 245, 0.96)),
          radial-gradient(circle at 82% 82%, rgba(19, 191, 168, 0.14), transparent 32%);
        border: 1px solid rgba(20, 50, 70, 0.08);
        box-shadow: var(--shadow-page);
        color: #183d38;
        opacity: 0;
        transform: translateY(18px);
        transition: opacity .28s ease, transform .28s ease;
      }

      .focus-session-page.active {
        display: grid;
        opacity: 1;
        transform: translateY(0);
      }

      .focus-session-inner {
        min-height: calc(100vh - 36px);
        padding: 58px 54px 54px;
        display: grid;
        grid-template-rows: auto 1fr auto;
        position: relative;
      }

      .focus-session-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
      }

      .focus-session-room h1 {
        margin: 0;
        font-size: 32px;
        line-height: 1.25;
        font-weight: 900;
      }

      .focus-session-meta {
        margin-top: 14px;
        display: flex;
        align-items: center;
        gap: 12px;
        color: #2f7d70;
        font-size: 18px;
        font-weight: 750;
      }

      .focus-session-online {
        color: #526861;
        font-size: 20px;
        font-weight: 700;
      }

      .focus-dial-wrap {
        display: grid;
        place-items: center;
      }

      .focus-dial {
        width: min(72vw, 610px);
        aspect-ratio: 1;
        border-radius: 50%;
        background:
          radial-gradient(circle, #fff 0 58%, transparent 59%),
          conic-gradient(#27b892 var(--focus-progress), #e8f2ef 0);
        display: grid;
        place-items: center;
        box-shadow: inset 0 0 0 18px rgba(19, 191, 168, 0.06), 0 18px 54px rgba(20, 50, 70, 0.12);
      }

      .focus-dial-core {
        width: 74%;
        aspect-ratio: 1;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.96);
        display: grid;
        place-items: center;
        text-align: center;
        box-shadow: inset 0 0 0 1px rgba(20, 50, 70, 0.05);
      }

      .focus-task-name {
        color: #344944;
        font-size: 24px;
        font-weight: 750;
      }

      .focus-countdown {
        margin-top: 24px;
        color: #0c443c;
        font-size: 112px;
        line-height: .95;
        font-weight: 900;
        letter-spacing: 0;
      }

      .focus-current-time {
        margin-top: 24px;
        color: #687a74;
        font-size: 20px;
      }

      .focus-current-time strong {
        color: #249f84;
      }

      .focus-session-goal {
        display: grid;
        gap: 12px;
        justify-items: center;
        color: #5a6965;
        font-size: 24px;
        font-weight: 650;
      }

      .focus-session-goal strong {
        color: #119a7f;
        font-size: 34px;
      }

      .focus-session-progress {
        width: min(480px, 70vw);
        height: 9px;
        border-radius: var(--radius-pill);
        background: rgba(20, 50, 70, 0.08);
        overflow: hidden;
      }

      .focus-session-progress i {
        display: block;
        height: 100%;
        width: var(--focus-progress);
        border-radius: inherit;
        background: #27b892;
      }

      .focus-session-actions {
        margin-top: 44px;
        display: grid;
        grid-template-columns: 90px minmax(0, 360px) 90px;
        justify-content: center;
        align-items: start;
        gap: 44px;
      }

      .focus-round-btn,
      .focus-exit-main {
        border: 0;
        cursor: pointer;
        box-shadow: 0 16px 34px rgba(20, 50, 70, 0.12);
      }

      .focus-round-btn {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        color: #376b62;
        font-size: 30px;
        display: grid;
        place-items: center;
      }

      .focus-round-label {
        margin-top: 12px;
        color: #536b67;
        font-size: 16px;
        text-align: center;
      }

      .focus-exit-main {
        height: 92px;
        border-radius: var(--radius-pill);
        background: rgba(255, 255, 255, 0.94);
        color: #183d38;
        font-size: 30px;
        font-weight: 900;
      }

      .focus-session-note {
        margin-top: 34px;
        text-align: center;
        color: #6e8580;
        font-size: 23px;
      }

      .study-hero {
        position: relative;
        height: 377px;
        overflow: hidden;
        border: 1px solid rgba(20, 50, 70, 0.07);
        border-radius: 26px;
        background:
          linear-gradient(90deg, rgba(246, 252, 249, 0.98) 0%, rgba(236, 248, 242, 0.92) 46%, rgba(255, 255, 255, 0.18) 100%),
          #eef8f2;
        box-shadow: var(--shadow-card);
      }

      .study-hero-copy {
        position: relative;
        z-index: 2;
        padding: 50px 0 0 50px;
      }

      .study-hero h1 {
        color: #0c3f38;
        font-size: 56px;
        line-height: 1.08;
        font-weight: 900;
        letter-spacing: 0;
      }

      .study-hero-subtitle {
        margin-top: 22px;
        color: #687986;
        font-size: 24px;
        font-weight: 650;
      }

      .study-room-name {
        margin-top: 45px;
        display: flex;
        align-items: center;
        gap: 13px;
        color: #163732;
        font-size: 24px;
        font-weight: 850;
      }

      .study-home-icon {
        width: 32px;
        height: 32px;
        color: #43b789;
      }

      .study-online {
        margin-top: 12px;
        color: #2f4542;
        font-size: 23px;
        font-weight: 500;
      }

      .study-online strong {
        color: #33b982;
        font-size: 29px;
        font-weight: 900;
      }

      .quiet-pill {
        margin-top: 18px;
        height: 38px;
        padding: 0 17px;
        border-radius: 8px;
        border: 1px solid rgba(67, 183, 137, 0.45);
        background: rgba(255, 255, 255, 0.72);
        color: #33a979;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 17px;
        font-weight: 800;
      }

      .leader-tab {
        border: 0;
        background: transparent;
        color: inherit;
        font: inherit;
        cursor: pointer;
      }

      .rank-board-title {
        margin-top: 18px;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
      }

      .rank-board-title h2 {
        margin: 0;
        color: var(--color-text-main);
        font-size: 26px;
        font-weight: 900;
      }

      .rank-board-title p {
        margin: 0;
        color: var(--color-text-secondary);
        font-size: 16px;
      }

      .rank-divider-row {
        min-height: 34px;
        display: grid;
        place-items: center;
        color: #9aa6b2;
        font-size: 22px;
      }

      .rank-metric {
        color: var(--color-primary-dark);
        font-weight: 900;
      }

      .rank-time {
        color: var(--color-text-secondary);
        font-size: 15px;
      }

      .completion-card {
        margin-top: 20px;
        padding: 28px 24px;
        border-radius: 24px;
        border: 1px solid rgba(19, 191, 168, 0.18);
        background:
          radial-gradient(circle at 88% 16%, rgba(19, 191, 168, 0.18), transparent 28%),
          linear-gradient(135deg, rgba(240, 253, 250, 0.98), rgba(255, 255, 255, 0.98));
        box-shadow: 0 16px 36px rgba(20, 50, 70, 0.08);
      }

      .completion-card h2 {
        margin: 0;
        color: #0a6f65;
        font-size: 28px;
        line-height: 1.25;
      }

      .completion-card p {
        margin: 12px 0 0;
        color: #4f6662;
        font-size: 17px;
        line-height: 1.7;
      }

      .quiet-pill svg {
        width: 20px;
        height: 20px;
      }

      .study-hero-art {
        position: absolute;
        right: -1px;
        bottom: 0;
        width: 427px;
        height: 377px;
        object-fit: cover;
        object-position: right bottom;
      }

      .study-focus-card,
      .study-goal-card,
      .study-peer-card,
      .study-rule-card {
        border: 1px solid rgba(20, 50, 70, 0.08);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-card);
      }

      .study-focus-card {
        min-height: 522px;
        padding: 29px 90px;
        text-align: center;
      }

      .focus-label {
        color: #173f3a;
        font-size: 27px;
        font-weight: 650;
      }

      .focus-time {
        margin-top: 20px;
        color: #083a34;
        font-size: 122px;
        line-height: 1;
        font-weight: 900;
        letter-spacing: 0;
        text-shadow: 0 8px 18px rgba(0, 45, 39, 0.1);
      }

      .task-label {
        margin: 24px auto 18px;
        max-width: 420px;
        color: #76838c;
        display: flex;
        align-items: center;
        gap: 18px;
        font-size: 18px;
        font-weight: 650;
      }

      .task-label::before,
      .task-label::after {
        content: "";
        height: 1px;
        flex: 1;
        background: rgba(20, 50, 70, 0.08);
      }

      .current-task {
        display: inline-flex;
        align-items: center;
        gap: 15px;
        color: #102f2b;
        font-size: 29px;
        font-weight: 900;
      }

      .task-book {
        width: 39px;
        height: 39px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #d9f5ea;
        color: #42b98b;
      }

      .task-book img {
        width: 22px;
        height: 22px;
        filter: invert(57%) sepia(59%) saturate(472%) hue-rotate(103deg) brightness(90%) contrast(91%);
      }

      .focus-actions {
        margin: 39px auto 0;
        max-width: 530px;
        display: grid;
        gap: 20px;
      }

      .focus-start,
      .focus-exit {
        height: 79px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        font-size: 30px;
        font-weight: 850;
      }

      .focus-start {
        border: 0;
        background: linear-gradient(135deg, #39c497 0%, #2eb87d 100%);
        color: #fff;
        box-shadow: 0 9px 17px rgba(45, 180, 126, 0.24);
      }

      .focus-exit {
        border: 1px solid rgba(20, 50, 70, 0.13);
        background: #fff;
        color: #223b39;
      }

      .focus-start svg,
      .focus-exit svg {
        width: 28px;
        height: 28px;
      }

      .focus-duration-options,
      .task-picker,
      .daily-target-picker {
        margin-top: 18px;
        display: grid;
        gap: 12px;
      }

      .duration-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
      }

      .duration-option,
      .task-option {
        border: 1px solid rgba(20, 50, 70, 0.1);
        background: #f8fbfa;
        color: #294a45;
        cursor: pointer;
      }

      .duration-option {
        min-height: 48px;
        border-radius: 14px;
        font-size: 17px;
        font-weight: 850;
      }

      .duration-option.active,
      .task-option.active {
        border-color: rgba(19, 191, 168, 0.42);
        background: #e6f8f2;
        color: #0b806c;
      }

      .custom-duration-input {
        width: 100%;
        height: 48px;
        border-radius: 14px;
        border: 1px solid rgba(20, 50, 70, 0.1);
        padding: 0 12px;
        font: inherit;
        color: #183d38;
        background: #fff;
        text-align: center;
      }

      .task-picker {
        margin-top: 24px;
      }

      .task-card-pager {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 12px;
        align-items: center;
      }

      .task-arrow {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(19, 191, 168, 0.2);
        background: #f1fbf8;
        color: #168f78;
        font-size: 26px;
        font-weight: 900;
        cursor: pointer;
      }

      .task-arrow:disabled {
        opacity: 0.35;
        cursor: default;
      }

      .task-card-current {
        min-height: 74px;
        border: 1px solid rgba(19, 191, 168, 0.18);
        border-radius: 18px;
        background:
          linear-gradient(135deg, rgba(233, 250, 244, 0.96), rgba(255, 255, 255, 0.98));
        box-shadow: 0 10px 22px rgba(20, 50, 70, 0.07);
        display: grid;
        place-items: center;
        padding: 12px 18px;
        color: #123b36;
        font-size: 20px;
        line-height: 1.35;
        font-weight: 900;
      }

      .task-card-dots {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        gap: 7px;
      }

      .task-card-dots i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #d7e5e1;
      }

      .task-card-dots i.active {
        width: 18px;
        border-radius: var(--radius-pill);
        background: #21ad91;
      }

      .target-value {
        height: 52px;
        border-radius: 16px;
        background: #f6fbfa;
        display: grid;
        place-items: center;
        color: #0f4a41;
        font-size: 24px;
        font-weight: 900;
      }

      .study-goal-card {
        min-height: 214px;
        padding: 28px 29px 26px;
      }

      .study-card-title {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #1b3f3a;
        font-size: 27px;
        font-weight: 900;
      }

      .study-card-title svg {
        width: 31px;
        height: 31px;
        color: #33b982;
      }

      .goal-stats {
        margin: 21px 45px 18px;
        display: grid;
        grid-template-columns: 1fr 1fr;
      }

      .goal-stat {
        text-align: left;
      }

      .goal-stat + .goal-stat {
        border-left: 1px solid rgba(20, 50, 70, 0.1);
        padding-left: 62px;
      }

      .goal-stat-label {
        color: #65747c;
        font-size: 18px;
        font-weight: 600;
      }

      .goal-stat-value {
        margin-top: 7px;
        color: #123b36;
        font-size: 42px;
        font-weight: 900;
      }

      .goal-stat-value span {
        margin-left: 7px;
        font-size: 19px;
        font-weight: 700;
      }

      .goal-progress-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 16px;
      }

      .study-progress-track {
        height: 14px;
        border-radius: 999px;
        background: #edf1f3;
        overflow: hidden;
      }

      .study-progress-fill {
        width: 50%;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #34bf8d, #39b884);
      }

      .progress-percent {
        color: #7d8b93;
        font-size: 19px;
      }

      .study-peer-card {
        min-height: 221px;
        padding: 24px 30px 20px;
      }

      .peer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      .peer-more {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #8a969c;
        font-size: 18px;
      }

      .peer-more img {
        width: 14px;
        height: 14px;
        opacity: 0.55;
      }

      .peer-list {
        margin-top: 20px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 20px;
      }

      .peer {
        min-width: 0;
        text-align: center;
      }

      .peer img {
        width: 82px;
        height: 82px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        margin: 0 auto 13px;
      }

      .peer-status {
        color: #223c38;
        font-size: 16px;
        font-weight: 700;
        white-space: nowrap;
      }

      .peer-status::before {
        content: "";
        width: 8px;
        height: 8px;
        margin-right: 6px;
        border-radius: 50%;
        display: inline-block;
        background: #3abf8a;
        vertical-align: middle;
      }

      .peer-time {
        margin-top: 7px;
        color: #7c8a92;
        font-size: 16px;
        font-weight: 600;
      }

      .study-rule-card {
        position: relative;
        min-height: 97px;
        overflow: hidden;
        padding: 22px 30px 20px 86px;
        background:
          linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(247,252,249,0.98) 60%, rgba(236,249,242,0.8) 100%);
      }

      .rule-shield {
        position: absolute;
        left: 28px;
        top: 25px;
        width: 45px;
        height: 48px;
        color: #34b980;
      }

      .study-rule-card h2 {
        color: #173f3a;
        font-size: 26px;
        line-height: 1.1;
        font-weight: 900;
      }

      .study-rule-card p {
        margin-top: 8px;
        color: #12332f;
        font-size: 22px;
        font-weight: 850;
      }

      .rule-art {
        position: absolute;
        right: 16px;
        top: 6px;
        width: 150px;
        height: 90px;
        object-fit: cover;
        opacity: 0.72;
      }

      @media (max-width: 852px) {
        :root {
          --page-width: 100vw;
          --sidebar-width: 13vw;
          --content-padding-x: 2.8vw;
          --font-size-banner-title: clamp(24px, 5vw, 42px);
          --font-size-section-title: clamp(18px, 3.5vw, 30px);
          --font-size-card-title: clamp(16px, 2.9vw, 25px);
          --font-size-body: clamp(13px, 2.2vw, 18px);
          --font-size-small: clamp(11px, 1.9vw, 15px);
          --banner-height: 39.9vw;
          --type-hero-height: 20.5vw;
        }

        .page {
          grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
          min-height: auto;
        }

        .sidebar {
          padding: 5.6vw 1.1vw 3vw;
          gap: 4vw;
        }

        .brand {
          width: 8.9vw;
          height: 8.9vw;
        }

        .brand img {
          width: 4.9vw;
          height: 4.9vw;
        }

        .nav {
          width: 9.8vw;
          gap: 2.1vw;
        }

        .nav-item {
          width: 9.8vw;
          min-height: 14.8vw;
          border-radius: 2.8vw;
          gap: 1vw;
          font-size: clamp(11px, 2.8vw, 24px);
        }

        .nav-item img {
          width: 4.2vw;
          height: 4.2vw;
        }

        .content {
          padding: 9.4vw 2.8vw 4.5vw;
        }

        .banner {
          height: var(--banner-height);
        }

        .banner-text {
          left: 4.6vw;
          top: 5.9vw;
        }

        .banner-meta {
          margin-top: 3.6vw;
          gap: 4vw;
          font-size: clamp(13px, 2.7vw, 23px);
        }

        .meta-item img {
          width: 2.6vw;
          height: 2.6vw;
        }

        .status-btn {
          margin-top: 2.1vw;
          min-width: 14vw;
          height: 5.4vw;
          gap: 1vw;
          font-size: clamp(12px, 2.6vw, 22px);
        }

        .status-btn img {
          width: 2.6vw;
          height: 2.6vw;
        }

        .banner-student {
          inset: 0;
          width: 100%;
          height: 100%;
        }

        .countdown {
          top: 3.5vw;
          right: 3.5vw;
          width: 12.9vw;
          height: 15vw;
          border-radius: 2.8vw;
        }

        .countdown small {
          font-size: clamp(11px, 2.45vw, 21px);
        }

        .countdown strong {
          font-size: clamp(22px, 4.9vw, 42px);
        }

        .countdown span {
          font-size: clamp(12px, 2.8vw, 24px);
        }

        .section-head {
          margin: 4.9vw 0.5vw 2.8vw;
        }

        .section-title {
          gap: 1.6vw;
        }

        .section-title img {
          width: 3.75vw;
          height: 3.75vw;
        }

        .type-count {
          font-size: clamp(12px, 2.35vw, 20px);
        }

        .type-card,
        .feedback {
          padding: 2.35vw;
          margin-bottom: 2.8vw;
        }

        .type-card-head {
          grid-template-columns: auto minmax(0, 1fr) 4.9vw;
          gap: 1.9vw;
        }

        .type-label {
          height: 5.15vw;
          border-radius: 1.65vw;
          padding: 0 1.5vw;
          font-size: clamp(12px, 2.6vw, 22px);
        }

        .arrow-circle {
          width: 4.9vw;
          height: 4.9vw;
        }

        .lecture {
          margin-top: 2.35vw;
          height: var(--type-hero-height);
        }

        .play-pill {
          height: 5.15vw;
          bottom: 1.65vw;
          padding: 0 2.1vw;
          gap: 1.2vw;
          font-size: clamp(12px, 2.55vw, 22px);
        }

        .play-pill img {
          width: 3.3vw;
          height: 3.3vw;
        }

        .source {
          margin-top: 2.35vw;
          padding: 1.9vw 2.1vw;
        }

        .source-head {
          gap: 1.2vw;
          margin-bottom: 1.75vw;
          font-size: clamp(13px, 2.6vw, 22px);
        }

        .source-head img {
          width: 3.3vw;
          height: 3.3vw;
        }

        .source-row {
          min-height: 5.4vw;
          grid-template-columns: 2.8vw minmax(0, 1fr) 1.9vw;
          gap: 1.4vw;
          font-size: clamp(12px, 2.23vw, 19px);
        }

        .book-dot {
          width: 2.8vw;
          height: 2.8vw;
        }

        .feedback {
          margin-top: 4.2vw;
        }

        .feedback-head {
          grid-template-columns: auto auto minmax(0, 1fr) auto;
          gap: 1.4vw;
          padding-bottom: 1.9vw;
        }

        .feedback-head img {
          width: 3.5vw;
          height: 3.5vw;
        }

        .feedback-head h2 {
          font-size: clamp(16px, 3.15vw, 27px);
        }

        .feedback-subtitle {
          font-size: clamp(12px, 2.1vw, 18px);
        }

        .all-none {
          height: 4.45vw;
          padding: 0 2.1vw;
          font-size: clamp(12px, 2.1vw, 18px);
        }

        .feedback-row {
          min-height: 5.65vw;
          grid-template-columns: minmax(0, 1fr) 10.3vw 10.3vw 10.3vw;
          gap: 2.1vw;
        }

        .curve-grid {
          grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        }

        .metric-item {
          grid-template-columns: 6.6vw minmax(0, 1fr);
          gap: 1.3vw;
          padding: 0 2.1vw;
        }

        .metric-icon {
          width: 6.5vw;
          height: 6.5vw;
          font-size: clamp(18px, 4vw, 35px);
        }

        .metric-label {
          font-size: clamp(11px, 2vw, 17px);
        }

        .metric-value {
          font-size: clamp(24px, 5vw, 43px);
        }

        .feedback-title {
          font-size: clamp(12px, 2.23vw, 19px);
        }

        .choice {
          height: 4.2vw;
          font-size: clamp(11px, 2.1vw, 18px);
        }
      }

      @media (max-width: 430px) {
        .page {
          transform-origin: top left;
        }

        .feedback-subtitle {
          display: none;
        }
      }

      /* v1.1 phone-first shell */
      .page {
        width: min(430px, 100vw);
        min-height: 100vh;
        grid-template-columns: minmax(0, 1fr);
        margin: 0 auto;
        background: #eef7f5;
      }

      .content {
        width: 100%;
        max-width: 430px;
        padding: 18px 14px 108px;
      }

      .bottom-app-nav {
        position: fixed;
        left: 50%;
        right: auto;
        bottom: 0;
        top: auto;
        z-index: 60;
        width: min(430px, 100vw);
        height: 76px;
        transform: translateX(-50%);
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid rgba(20, 50, 70, 0.08);
        box-shadow: 0 -12px 28px rgba(31, 58, 64, 0.12);
        backdrop-filter: blur(18px);
      }

      .bottom-app-nav .brand {
        display: none;
      }

      .bottom-app-nav .nav {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
      }

      .bottom-app-nav .nav-item {
        width: 100%;
        min-height: 56px;
        border-radius: 18px;
        gap: 4px;
        font-size: 12px;
        line-height: 1.2;
        font-weight: 850;
      }

      .bottom-app-nav .nav-item img {
        width: 22px;
        height: 22px;
      }

      .bottom-app-nav .nav-item.active {
        background: #e9f8f4;
        color: #07937f;
      }

      .mobile-shell {
        width: 100%;
        display: grid;
        gap: 14px;
      }

      @media (max-width: 600px) {
        body {
          min-width: 0;
          overflow-x: hidden;
        }

        .scheme-title {
          display: none;
        }

        .banner,
        .curve-hero,
        .rank-hero,
        .study-hero {
          border-radius: 22px;
        }

        .banner {
          min-height: 230px;
          height: auto;
          padding: 20px 18px;
        }

        .banner-text {
          position: relative;
          left: auto;
          top: auto;
          z-index: 2;
          max-width: 76%;
        }

        .banner-title,
        .curve-hero h1,
        .rank-hero h1,
        .study-hero-copy h1 {
          font-size: 26px;
          line-height: 1.18;
        }

        .banner-meta,
        .status-btn,
        .type-count,
        .feedback-title,
        .choice {
          font-size: 13px;
        }

        .banner-student {
          inset: 0;
          width: 100%;
          height: 100%;
        }

        .countdown {
          width: 76px;
          height: 86px;
          top: 14px;
          right: 14px;
          border-radius: 18px;
        }

        .countdown strong {
          font-size: 28px;
        }

        .section-head,
        .feedback-head {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 10px;
          flex-wrap: wrap;
        }

        .type-card,
        .feedback,
        .curve-card,
        .priority-card,
        .rank-card,
        .study-focus-card,
        .study-goal-card,
        .study-peer-card,
        .study-rule-card {
          border-radius: 22px;
          padding: 16px;
        }

        .type-card-head {
          grid-template-columns: auto minmax(0, 1fr) 38px;
          gap: 10px;
        }

        .type-label,
        .arrow-circle,
        .all-none,
        .choice {
          height: 38px;
        }

        .lecture {
          height: 170px;
        }

        .play-pill {
          height: 36px;
          font-size: 12px;
        }

        .source-row {
          min-height: 44px;
          grid-template-columns: 22px minmax(0, 1fr) 16px;
          font-size: 13px;
        }

        .feedback-row {
          grid-template-columns: minmax(0, 1fr);
          gap: 8px;
        }

        .feedback-row .choice {
          width: 100%;
        }

        .study-room,
        .curve-grid,
        .metric-grid {
          grid-template-columns: minmax(0, 1fr);
        }

        .study-hero {
          min-height: 260px;
          padding: 22px 18px;
        }

        .study-hero-art {
          width: 220px;
          right: -42px;
        }

        .study-focus-card,
        .study-goal-card,
        .study-peer-card,
        .study-rule-card {
          min-height: 0;
        }

        .peer-list {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .curve-hero {
          min-height: 0;
          padding: 22px 18px;
        }

        .radar-art {
          width: 100%;
          max-width: 300px;
        }

        .metrics-panel {
          position: static;
          margin-top: 16px;
          width: 100%;
          padding: 14px;
        }

        .metric-item {
          min-height: 76px;
          grid-template-columns: 48px minmax(0, 1fr);
          padding: 0 12px;
        }

        .metric-icon {
          width: 46px;
          height: 46px;
          font-size: 22px;
        }

        .metric-value {
          font-size: 28px;
        }

        .heatmap,
        .mastery-list,
        .priority-list,
        .ranking-table {
          overflow-x: auto;
        }

        .rank-hero {
          height: auto;
          min-height: 0;
          padding: 22px 18px;
          overflow: visible;
        }

        .rank-hero-img,
        .rule-btn {
          display: none;
        }

        .rank-stat-card {
          width: 100%;
          height: auto;
          min-height: 118px;
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .rank-stat {
          padding-left: 16px;
        }

        .rank-stat-label {
          font-size: 15px;
        }

        .rank-stat-value strong {
          font-size: 44px;
        }

        .rank-stat-value span:first-child,
        .rank-stat-value span:last-child {
          font-size: 20px;
        }

        .rank-tip {
          position: static;
          width: 100%;
          min-height: 46px;
          box-sizing: border-box;
          margin-top: 14px;
          padding: 10px 14px;
          border-radius: 24px;
          justify-content: center;
          flex-wrap: wrap;
          font-size: 14px;
          line-height: 1.35;
        }

        .rank-tip strong {
          font-size: 20px;
        }

        .rank-stat-card,
        .goal-content {
          grid-template-columns: minmax(0, 1fr);
        }

        .podium {
          height: auto;
          min-height: 150px;
          grid-template-columns: repeat(3, minmax(0, 1fr));
          gap: 8px;
          padding: 16px 0 10px;
        }

        .podium-item {
          min-width: 0;
          height: 112px;
          border-radius: 16px 16px 0 0;
          padding: 10px 6px 8px;
          font-size: 13px;
          text-align: center;
        }

        .podium-item.first {
          height: 132px;
        }

        .avatar {
          width: 46px;
          height: 46px;
          margin-bottom: 6px;
        }

        .podium-days {
          font-size: 12px;
          line-height: 1.25;
        }

        .leader-tabs {
          overflow-x: auto;
          justify-content: flex-start;
        }

        .leader-tab {
          flex: 0 0 auto;
          font-size: 13px;
        }

        .ranking-table {
          overflow-x: visible;
        }

        .rank-table-row {
          min-width: 0;
          grid-template-columns: 38px minmax(92px, 1fr) 88px 68px;
          column-gap: 6px;
          font-size: 13px;
        }

        .rank-table-row.header {
          font-size: 12px;
        }

        .rank-name {
          gap: 8px;
        }

        .mini-avatar {
          width: 28px;
          height: 28px;
          flex-basis: 28px;
        }
      }

      /* v1.1 final phone overrides */
      .study-room,
      .study-room-shell {
        gap: 14px;
      }

      .study-hero {
        min-height: 224px;
        height: auto;
        padding: 22px 18px;
        border-radius: 24px;
      }

      .study-hero-copy {
        padding: 0;
        max-width: 66%;
      }

      .study-hero h1 {
        font-size: 27px;
        line-height: 1.16;
      }

      .study-hero-subtitle {
        margin-top: 8px;
        font-size: 14px;
      }

      .study-room-name {
        width: fit-content;
        max-width: 100%;
        min-height: 34px;
        margin-top: 18px;
        border-radius: 999px;
        padding: 0 12px;
        background: rgba(255, 255, 255, 0.82);
        color: #0c4c45;
        font-size: 12px;
        font-weight: 850;
        white-space: nowrap;
      }

      .study-home-icon {
        width: 15px;
        height: 15px;
      }

      .study-online,
      .quiet-pill {
        min-height: 30px;
        margin-top: 10px;
        padding: 0 11px;
        border-radius: 999px;
        font-size: 12px;
      }

      .study-hero-art {
        width: 206px;
        right: -54px;
        bottom: 2px;
        opacity: 0.9;
      }

      .study-focus-card,
      .study-goal-card,
      .study-peer-card,
      .study-rule-card {
        min-height: 0;
        border-radius: 22px;
        padding: 18px;
      }

      .study-focus-card {
        text-align: center;
      }

      .focus-label,
      .task-label,
      .study-card-title {
        font-size: 17px;
      }

      .focus-time {
        margin-top: 8px;
        font-size: 54px;
      }

      .focus-duration-options,
      .task-picker,
      .daily-target-picker {
        margin-top: 12px;
      }

      .duration-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
      }

      .duration-option {
        min-height: 34px;
        padding: 0 5px;
        border-radius: 12px;
        font-size: 11px;
      }

      .custom-duration-input {
        height: 38px;
        margin-top: 8px;
        border-radius: 12px;
        font-size: 14px;
      }

      .current-task {
        min-height: 42px;
        margin-top: 8px;
        border-radius: 14px;
        padding: 8px 10px;
        font-size: 13px;
        line-height: 1.35;
      }

      .task-book {
        width: 28px;
        height: 28px;
      }

      .task-card-pager {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 8px;
      }

      .task-arrow {
        width: 34px;
        height: 34px;
        font-size: 22px;
      }

      .task-card-current {
        min-height: 46px;
        border-radius: 14px;
        padding: 8px 10px;
        font-size: 13px;
        line-height: 1.35;
      }

      .task-card-dots {
        grid-column: 1 / -1;
        margin-top: 2px;
      }

      .focus-actions {
        margin-top: 16px;
        max-width: none;
      }

      .focus-start,
      .focus-exit {
        height: 50px;
        font-size: 15px;
      }

      .goal-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }

      .goal-stat {
        min-height: 74px;
        border-radius: 16px;
        padding: 12px;
      }

      .goal-stat-label {
        font-size: 12px;
      }

      .goal-stat-value {
        font-size: 28px;
      }

      .goal-progress-row {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 10px;
      }

      .peer-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
      }

      .peer img,
      .peer-more-dot {
        width: 48px;
        height: 48px;
        margin: 0 auto;
      }

      .peer-more-dot {
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: #edf6f4;
        color: #7a8d89;
        font-size: 16px;
        font-weight: 950;
      }

      .peer-status {
        margin-top: 8px;
        font-size: 10px;
        line-height: 1.2;
        white-space: normal;
      }

      .peer-status::before {
        width: 6px;
        height: 6px;
        margin-right: 3px;
      }

      .peer-more-slot .peer-status::before {
        content: none;
      }

      .peer-time {
        margin-top: 5px;
        font-size: 9px;
        line-height: 1.25;
      }

      .study-rule-card {
        overflow: hidden;
      }

      .study-rule-card h2 {
        font-size: 18px;
      }

      .study-rule-card p {
        max-width: 72%;
        font-size: 13px;
        line-height: 1.55;
      }

      .rule-art {
        width: 112px;
        right: -16px;
        bottom: -8px;
      }

      .page.focus-mode .bottom-app-nav {
        display: none;
      }

      .page.focus-mode .content {
        max-width: 430px;
        padding: 0;
      }

      .page.focus-mode .study-room {
        min-height: 100vh;
      }

      .focus-session-page {
        min-height: 100vh;
        border-radius: 0;
      }

      .focus-session-page.active {
        display: block;
      }

      .focus-session-inner {
        min-height: 100vh;
        padding: 26px 18px 28px;
        display: grid;
        grid-template-rows: auto auto 1fr;
        align-content: start;
        gap: 20px;
      }

      .focus-session-top {
        align-items: center;
        gap: 12px;
      }

      .focus-session-room h1 {
        font-size: 22px;
      }

      .focus-session-meta {
        margin-top: 8px;
        font-size: 12px;
      }

      .focus-session-online {
        border-radius: 999px;
        padding: 7px 10px;
        background: rgba(255,255,255,0.72);
        font-size: 12px;
      }

      .focus-dial-wrap {
        display: grid;
        gap: 16px;
        place-items: center;
      }

      .focus-dial {
        width: min(78vw, 292px);
        box-shadow: inset 0 0 0 12px rgba(19, 191, 168, 0.06), 0 16px 36px rgba(20, 50, 70, 0.12);
      }

      .focus-dial-core {
        width: 76%;
      }

      .focus-task-name {
        max-width: 176px;
        margin: 0 auto;
        font-size: 12px;
        line-height: 1.35;
      }

      .focus-countdown {
        margin-top: 12px;
        font-size: 48px;
      }

      .focus-current-time {
        margin-top: 12px;
        font-size: 12px;
      }

      .focus-session-goal {
        width: 100%;
        gap: 8px;
        font-size: 13px;
      }

      .focus-session-goal strong {
        font-size: 22px;
      }

      .focus-session-progress {
        width: min(100%, 288px);
        height: 8px;
      }

      .focus-session-note {
        margin-top: 8px;
        font-size: 13px;
      }

      .focus-session-actions {
        align-self: end;
        width: 100%;
        margin-top: 12px;
        grid-template-columns: 64px minmax(0, 1fr) 64px;
        gap: 12px;
      }

      .focus-round-btn {
        width: 58px;
        height: 58px;
        font-size: 22px;
      }

      .focus-round-label {
        margin-top: 6px;
        font-size: 12px;
      }

      .focus-exit-main {
        height: 58px;
        font-size: 15px;
      }

      .next-test-day-btn {
        width: 100%;
        min-height: 46px;
        margin-top: 14px;
        border: 0;
        border-radius: 999px;
        background: linear-gradient(135deg, #13bfa8, #089783);
        color: #fff;
        font-size: 15px;
        font-weight: 900;
        box-shadow: 0 12px 24px rgba(19, 191, 168, 0.2);
      }

      .curve-mobile-hero {
        min-height: 0;
        padding: 22px 18px 18px;
        border-radius: 24px;
      }

      .curve-mobile-hero h1 {
        font-size: 25px;
        line-height: 1.18;
      }

      .curve-mobile-hero .curve-hero-subtitle {
        margin-top: 8px;
        color: #60736f;
        font-size: 14px;
        line-height: 1.45;
      }

      .curve-metrics-panel {
        position: static;
        margin-top: 16px;
        padding: 12px;
        border-radius: 20px;
      }

      .curve-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .curve-metric-grid .metric-item {
        min-height: 88px;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 8px;
        padding: 0 8px;
        text-align: center;
      }

      .curve-metric-grid .metric-icon {
        width: 34px;
        height: 34px;
        font-size: 17px;
      }

      .curve-metric-grid .metric-label {
        font-size: 11px;
      }

      .curve-metric-grid .metric-value {
        margin-top: 5px;
        font-size: 24px;
      }

      .curve-metric-grid .metric-value small {
        font-size: 11px;
      }

      .curve-mobile-hero .curve-note {
        margin-top: 12px;
        padding-top: 12px;
        gap: 8px;
        font-size: 12px;
        line-height: 1.45;
      }

      .curve-mobile-hero .curve-note .info {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
        font-size: 12px;
      }

      .curve-mobile-stack {
        display: grid;
        gap: 14px;
        margin-top: 14px;
      }

      .curve-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      .curve-section-head h2,
      .heat-card-mobile h2,
      .curve-priority-card h2 {
        font-size: 18px;
        line-height: 1.2;
        font-weight: 900;
      }

      .curve-section-head span,
      .curve-section-head button {
        border: 0;
        background: transparent;
        color: #64748b;
        font-size: 12px;
        font-weight: 750;
        white-space: nowrap;
      }

      .heat-card-mobile h2 span {
        color: #64748b;
        font-size: 13px;
      }

      .heat-card-mobile .heat-summary {
        margin-top: 12px;
        gap: 8px;
      }

      .heat-card-mobile .heat-stat {
        min-height: 54px;
        padding: 9px 8px;
        border-radius: 12px;
      }

      .heat-card-mobile .heat-stat span {
        font-size: 10px;
      }

      .heat-card-mobile .heat-stat strong {
        font-size: 18px;
      }

      .heat-card-mobile .heatmap {
        margin-top: 12px;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 6px;
        overflow: visible;
      }

      .heat-card-mobile .heat-day {
        padding: 5px 2px;
        gap: 4px;
        border-radius: 10px;
        font-size: 10px;
      }

      .heat-card-mobile .heat-day > span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: clip;
        font-size: 9px;
        line-height: 1;
      }

      .heat-card-mobile .heat-box {
        width: 100%;
        max-width: 30px;
        height: auto;
        aspect-ratio: 1;
        border-radius: 8px;
      }

      .heat-card-mobile .heat-meta {
        font-size: 9px;
        line-height: 1;
      }

      .mastery-carousel-card {
        overflow: hidden;
      }

      .mastery-carousel {
        display: flex;
        gap: 12px;
        margin: 4px -4px 0;
        padding: 12px 4px 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
      }

      .mastery-carousel::-webkit-scrollbar {
        display: none;
      }

      .mastery-slide {
        flex: 0 0 126px;
        min-height: 184px;
        scroll-snap-align: center;
        border-radius: 16px;
        padding: 14px 12px 12px;
        background: #fff;
        border: 1px solid rgba(20, 50, 70, 0.08);
        box-shadow: 0 10px 22px rgba(20, 50, 70, 0.08);
        text-align: center;
      }

      .mastery-slide.weak {
        border-color: rgba(255, 143, 49, 0.42);
        box-shadow: 0 14px 28px rgba(255, 143, 49, 0.16);
      }

      .mastery-slide-title {
        color: #173f3a;
        font-size: 14px;
        font-weight: 900;
      }

      .mastery-slide-rate {
        margin-top: 8px;
        color: #ff7a1a;
        font-size: 28px;
        line-height: 1;
        font-weight: 950;
      }

      .mastery-slide-rate span {
        font-size: 15px;
      }

      .mastery-ring {
        width: 48px;
        height: 48px;
        margin: 10px auto 8px;
        border-radius: 50%;
        background:
          radial-gradient(circle closest-side, #fff 66%, transparent 68%),
          conic-gradient(#ff7a1a calc(var(--rate) * 1%), #eef2f5 0);
      }

      .mastery-spark {
        width: 88px;
        height: 34px;
        overflow: visible;
      }

      .mastery-spark path {
        fill: none;
        stroke: #13bfa8;
        stroke-width: 3;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .mastery-slide.weak .mastery-spark path {
        stroke: #ff8a24;
      }

      .mastery-spark circle {
        fill: currentColor;
        color: #13bfa8;
      }

      .mastery-slide.weak .mastery-spark circle {
        color: #ff8a24;
      }

      .mastery-slide p {
        margin-top: 6px;
        color: #60736f;
        font-size: 11px;
        line-height: 1.35;
      }

      .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 5px;
        margin-top: -4px;
      }

      .carousel-dots i {
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: #e0e6ea;
      }

      .carousel-dots i.active {
        width: 18px;
        background: #ff8a24;
      }

      .loss-trend-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
      }

      .loss-trend-card {
        min-width: 0;
        border-radius: 12px;
        padding: 10px 8px 8px;
        background: #fff;
        border: 1px solid rgba(20, 50, 70, 0.08);
      }

      .loss-trend-top {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 4px;
      }

      .loss-trend-top strong {
        font-size: 20px;
        line-height: 1;
        font-weight: 950;
      }

      .loss-trend-top span {
        font-size: 10px;
        font-weight: 850;
      }

      .loss-trend-card h3 {
        margin-top: 7px;
        color: #173f3a;
        font-size: 11px;
        font-weight: 900;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .trend-bars {
        display: flex;
        align-items: end;
        gap: 6px;
        height: 38px;
        margin-top: 10px;
      }

      .trend-bars i {
        flex: 1;
        min-width: 0;
        border-radius: 4px 4px 2px 2px;
        height: var(--h);
        background:
          linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.28)),
          var(--trend);
        opacity: var(--alpha, 1);
      }

      .trend-bars i:nth-child(1) { --alpha: 1; }
      .trend-bars i:nth-child(2) { --alpha: 0.78; }
      .trend-bars i:nth-child(3) { --alpha: 0.56; }
      .trend-bars i:nth-child(4) { --alpha: 0.32; }

      .loss-trend-card p {
        margin-top: 7px;
        color: #60736f;
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
      }

      .loss-trend-card.purple { color: #8b5cf6; }
      .loss-trend-card.green { color: #13bfa8; }
      .loss-trend-card.orange { color: #ff7a1a; }
      .loss-trend-card.blue { color: #1677ff; }
      .loss-trend-top .up { color: #13bfa8; }
      .loss-trend-top .down { color: #6f9cff; }

      .curve-priority-card {
        margin-top: 14px;
        padding: 16px;
      }

      .curve-priority-card .priority-head {
        margin-bottom: 10px;
        gap: 8px;
      }

      .curve-priority-card .priority-icon {
        width: 28px;
        height: 28px;
        font-size: 17px;
      }

      .curve-priority-row {
        min-height: 48px;
        display: grid;
        grid-template-columns: 26px minmax(52px, 0.7fr) 48px minmax(0, 1fr) 14px;
        gap: 8px;
        align-items: center;
        border-top: 1px solid rgba(20, 50, 70, 0.08);
      }

      .curve-priority-row .priority-index {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        font-size: 14px;
      }

      .curve-priority-row .priority-name {
        min-width: 0;
        color: #173f3a;
        font-size: 13px;
        font-weight: 900;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .curve-priority-row .tag {
        min-height: 24px;
        font-size: 10px;
      }

      .curve-priority-row .priority-desc {
        display: -webkit-box;
        overflow: hidden;
        color: #60736f;
        font-size: 10px;
        line-height: 1.35;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }

      .curve-priority-row .priority-action {
        color: #8aa0ad;
        font-size: 18px;
      }

      @media (max-width: 600px) {
        .feedback-row {
          grid-template-columns: minmax(0, 1fr) repeat(3, 48px);
          gap: 6px;
          align-items: center;
        }

        .feedback-row .choice {
          width: 48px;
          min-width: 0;
          height: 34px;
          padding: 0;
          font-size: 12px;
        }

        .curve-metric-grid {
          grid-template-columns: repeat(3, minmax(0, 1fr));
        }
      }
