    :root {
      --bg1: #f8fafc;
      --bg2: #ecfeff;
      --bg3: #eef2ff;
      --text: #0f172a;
      --muted: #64748b;
      --soft: #f1f5f9;
      --line: rgba(148, 163, 184, 0.35);
      --card: rgba(255, 255, 255, 0.82);
      --card-strong: rgba(255, 255, 255, 0.94);
      --dark: #0f172a;
      --green: #10b981;
      --amber: #f59e0b;
      --rose: #f43f5e;
      --blue: #0ea5e9;
      --violet: #8b5cf6;
      --shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
      --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.06);
      --radius-xl: 28px;
      --radius-lg: 22px;
      --radius-md: 16px;
    }

    * { box-sizing: border-box; }

    html, body { margin: 0; min-height: 100%; }
    .is-hidden { display: none !important; }

    body {
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top left, rgba(187, 247, 208, 0.88), transparent 34%),
        radial-gradient(circle at 80% 5%, rgba(221, 214, 254, 0.85), transparent 28%),
        linear-gradient(135deg, var(--bg1), var(--bg3) 44%, var(--bg2));
      background-attachment: fixed;
    }

    button, input, select, a { font: inherit; }
    button { cursor: pointer; }
    button:disabled { cursor: not-allowed; }

    .app { max-width: 1180px; margin: 0 auto; padding: 28px 18px 48px; }

    .hero {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
      align-items: end;
      margin-top: 10px;
    }

    @media (min-width: 900px) {
      .hero { grid-template-columns: 1fr auto; }
      .app { padding: 42px 28px 64px; }
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 14px;
      border: 1px solid rgba(255, 255, 255, 0.78);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.72);
      box-shadow: var(--shadow-sm);
      color: #475569;
      font-size: 14px;
      font-weight: 650;
      backdrop-filter: blur(14px);
    }

    h1 {
      margin: 18px 0 0;
      max-width: 780px;
      font-size: 56px;
      line-height: 1.02;
      letter-spacing: 0;
    }

    @media (max-width: 600px) {
      h1 { font-size: 38px; }
    }

    .lead {
      max-width: 740px;
      margin: 18px 0 0;
      color: var(--muted);
      line-height: 1.75;
      font-size: 16px;
    }

    .actions { display: flex; flex-wrap: wrap; gap: 12px; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      border: 0;
      border-radius: 18px;
      padding: 12px 16px;
      font-weight: 750;
      font-size: 14px;
      color: #334155;
      text-decoration: none;
      background: var(--card-strong);
      box-shadow: var(--shadow-sm);
      border: 1px solid rgba(226, 232, 240, 0.9);
      transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    }

    .btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10); }
    .btn.primary { background: var(--dark); color: white; border-color: var(--dark); }
    .btn.green { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
    .btn.blue { background: #eff6ff; color: #0369a1; border-color: #bae6fd; }
    .btn.amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }
    .btn.rose { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
    .btn.ghost { background: rgba(255, 255, 255, 0.55); }
    .btn:disabled { opacity: 0.45; transform: none; box-shadow: none; }
    .btn.full-link { width: 100%; margin-top: 16px; }
    .hero-planner-link { min-width: 150px; }
    .hero-interest-link { min-width: 124px; }

    @media (min-width: 900px) {
      .hero .actions {
        justify-content: flex-end;
        max-width: 520px;
      }

      .hero-planner-link {
        order: -1;
        min-width: 190px;
      }

      .hero-interest-link {
        order: -1;
      }
    }

    .grid-stats {
      margin-top: 28px;
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
    }

    @media (min-width: 740px) {
      .grid-stats { grid-template-columns: repeat(4, 1fr); }
    }

    .stat, .panel, .farm-card, .toast {
      border: 1px solid rgba(255, 255, 255, 0.78);
      background: var(--card);
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(18px);
    }

    .stat { border-radius: var(--radius-xl); padding: 18px; }
    .stat-top { display: flex; justify-content: space-between; gap: 10px; }
    .stat-title { color: var(--muted); font-size: 13px; }
    .stat-value { margin-top: 7px; font-size: 24px; font-weight: 850; letter-spacing: 0; }
    .stat-sub { margin-top: 8px; color: #94a3b8; font-size: 12px; line-height: 1.5; }
    .stat-icon {
      width: 42px; height: 42px;
      display: grid; place-items: center;
      border-radius: 16px;
      background: #0f172a;
      color: white;
      flex: 0 0 auto;
      font-size: 20px;
    }

    .main {
      margin-top: 22px;
      display: grid;
      grid-template-columns: 1fr;
      gap: 18px;
    }

    @media (min-width: 980px) {
      .main { grid-template-columns: 380px 1fr; align-items: start; }
    }

    .panel { border-radius: var(--radius-xl); padding: 20px; }
    .panel + .panel { margin-top: 16px; }
    .panel-head { display: flex; gap: 12px; align-items: center; }
    .panel-icon {
      width: 48px; height: 48px;
      display: grid; place-items: center;
      border-radius: 18px;
      background: #ecfdf5;
      color: #059669;
      font-size: 23px;
      flex: 0 0 auto;
    }
    .panel h2 { margin: 0; font-size: 18px; letter-spacing: 0; }
    .panel p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

    .field { margin-top: 16px; }
    .field label { display: block; margin-bottom: 8px; color: #334155; font-size: 13px; font-weight: 750; }
    .input, .select {
      width: 100%;
      border: 1px solid #dbe3ef;
      background: rgba(255, 255, 255, 0.82);
      color: var(--text);
      border-radius: 18px;
      padding: 13px 14px;
      outline: none;
      appearance: none;
      transition: border 0.15s ease, box-shadow 0.15s ease;
    }
    .input:focus, .select:focus { border-color: #34d399; box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.15); }

    textarea.input,
    .archive-export-text {
      min-height: 150px;
      resize: vertical;
      line-height: 1.55;
      font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
      font-size: 12px;
    }

    .native-select-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
      clip-path: inset(50%);
    }

    .custom-select {
      position: relative;
      width: 100%;
      z-index: 1;
    }

    .custom-select.is-open {
      z-index: 80;
    }

    .custom-select-button,
    .custom-select-option {
      width: 100%;
      border: 0;
      color: var(--text);
      text-align: left;
      background: transparent;
      font: inherit;
    }

    .custom-select-button {
      min-height: 54px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      border: 1px solid #dbe3ef;
      border-radius: 18px;
      padding: 10px 12px;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)),
        rgba(255, 255, 255, 0.9);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
      outline: none;
      transition: border 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
    }

    .custom-select-button:hover,
    .custom-select.is-open .custom-select-button {
      border-color: rgba(16, 185, 129, 0.52);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(240, 253, 244, 0.72)),
        rgba(255, 255, 255, 0.94);
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    }

    .custom-select-button:focus-visible {
      border-color: #34d399;
      box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.15), 0 10px 24px rgba(15, 23, 42, 0.07);
    }

    .custom-select-left {
      display: flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
      flex: 1 1 auto;
    }

    .custom-select-icon {
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border-radius: 13px;
      background: #ecfdf5;
      color: #047857;
      font-size: 17px;
      box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.16);
    }

    .custom-select-copy {
      min-width: 0;
      display: grid;
      gap: 2px;
    }

    .custom-select-main {
      min-width: 0;
      color: #0f172a;
      font-weight: 850;
      line-height: 1.14;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .custom-select-sub {
      min-width: 0;
      color: #64748b;
      font-size: 12px;
      font-weight: 650;
      line-height: 1.26;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .custom-select-chevron,
    .custom-select-check {
      width: 28px;
      height: 28px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border-radius: 11px;
      background: #f1f5f9;
      color: #475569;
      line-height: 1;
      transition: background 0.16s ease, color 0.16s ease;
    }

    .custom-select-chevron::before {
      content: "";
      width: 8px;
      height: 8px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg);
      transform-origin: center;
      transition: transform 0.16s ease;
    }

    .custom-select.is-open .custom-select-chevron {
      background: #dcfce7;
      color: #047857;
    }

    .custom-select.is-open .custom-select-chevron::before {
      transform: rotate(225deg);
    }

    .custom-select-menu {
      position: absolute;
      z-index: 90;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      max-height: 250px;
      overflow: auto;
      padding: 6px;
      border: 1px solid rgba(203, 213, 225, 0.86);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
      backdrop-filter: blur(18px);
      opacity: 0;
      transform: translateY(-6px) scale(0.98);
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
    }

    .custom-select.is-open .custom-select-menu {
      opacity: 1;
      transform: translateY(0) scale(1);
      visibility: visible;
      pointer-events: auto;
    }

    .custom-select-option {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      min-height: 46px;
      border-radius: 14px;
      padding: 7px 8px;
      transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
    }

    .custom-select-option:hover,
    .custom-select-option.is-active {
      background: #f0fdf4;
    }

    .custom-select-option.is-selected {
      background: #dcfce7;
      color: #065f46;
    }

    .custom-select-option.is-selected .custom-select-main { color: #065f46; }
    .custom-select-option.is-selected .custom-select-sub { color: #047857; }
    .custom-select-option.is-disabled {
      cursor: not-allowed;
      opacity: 0.42;
      background: transparent;
    }
    .custom-select-option.is-disabled:hover,
    .custom-select-option.is-disabled.is-active {
      background: transparent;
    }
    .custom-select-check {
      background: transparent;
      color: #047857;
      font-size: 18px;
      font-weight: 850;
      opacity: 0;
    }

    .custom-select-option.is-selected .custom-select-check { opacity: 1; }

    .custom-select-option .custom-select-left {
      align-items: flex-start;
    }

    .custom-select-option .custom-select-main,
    .custom-select-option .custom-select-sub {
      overflow: visible;
      text-overflow: clip;
      white-space: normal;
    }

    .archive-form .custom-select-button {
      height: 48px;
      min-height: 48px;
      padding: 8px 12px;
    }

    .archive-form .custom-select-icon {
      width: 24px;
      height: 24px;
      border-radius: 10px;
      font-size: 13px;
    }

    .archive-form .custom-select-copy {
      gap: 1px;
    }

    .archive-form .custom-select-main {
      font-size: 14px;
      line-height: 1.1;
    }

    .archive-form .custom-select-sub {
      font-size: 11px;
      line-height: 1.15;
    }

    .archive-form .custom-select-chevron {
      width: 24px;
      height: 24px;
      border-radius: 10px;
    }

    .compact-field .custom-select-button {
      min-height: 44px;
      border-radius: 15px;
      padding: 9px 10px;
    }

    .compact-field .custom-select-menu {
      max-height: 206px;
      border-radius: 16px;
    }

    .compact-field .custom-select-option {
      min-height: 38px;
      padding: 8px 9px;
    }

    .compact-field .custom-select-main { font-size: 13px; }

    .tip-list { display: grid; gap: 10px; margin-top: 16px; }
    .tip {
      padding: 13px 14px;
      border-radius: 20px;
      background: rgba(241, 245, 249, 0.86);
      color: #475569;
      font-size: 13px;
      line-height: 1.65;
    }
    .tip strong { color: #0f172a; }
    .tip.green { background: #ecfdf5; color: #065f46; }
    .tip.amber { background: #fffbeb; color: #92400e; }

    .farm-card {
      position: relative;
      overflow: hidden;
      border-radius: 34px;
      min-height: 420px;
    }

    .farm-gradient {
      height: 9px;
      background: linear-gradient(90deg, #34d399, #22c55e);
    }
    .farm-gradient.fast { background: linear-gradient(90deg, #34d399, #84cc16); }
    .farm-gradient.exp16 { background: linear-gradient(90deg, #38bdf8, #06b6d4); }
    .farm-gradient.money20 { background: linear-gradient(90deg, #fbbf24, #f97316); }
    .farm-gradient.exp28 { background: linear-gradient(90deg, #a78bfa, #d946ef); }
    .farm-gradient.test3 { background: linear-gradient(90deg, #fb7185, #f59e0b); }

    .farm-body { padding: 22px; }
    @media (min-width: 760px) { .farm-body { padding: 28px; } }

    .farm-title-row {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: flex-start;
      flex-wrap: wrap;
    }

    .badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 999px;
      padding: 7px 10px;
      background: #f1f5f9;
      color: #475569;
      font-size: 12px;
      font-weight: 750;
    }
    .badge.dark { background: #0f172a; color: white; }
    .badge.green { background: #dcfce7; color: #166534; }
    .badge.amber { background: #fef3c7; color: #92400e; }
    .badge.blue { background: #dbeafe; color: #1d4ed8; }
    .badge.rose { background: #ffe4e6; color: #be123c; }

    .farm-name { margin: 14px 0 0; font-size: 30px; line-height: 1.1; letter-spacing: 0; }
    .farm-desc { margin: 8px 0 0; color: var(--muted); line-height: 1.7; }

    .metric-grid {
      margin-top: 22px;
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }

    @media (min-width: 720px) { .metric-grid { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); } }

    .metric { border-radius: 24px; background: rgba(241, 245, 249, 0.78); padding: 16px; }
    .metric-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
    .metric-value { margin-top: 9px; font-size: 19px; font-weight: 850; letter-spacing: 0; }
    .metric-sub { margin-top: 4px; color: #94a3b8; font-size: 12px; line-height: 1.5; }

    .progress-wrap { margin-top: 22px; }
    .progress-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
    .progress { height: 13px; border-radius: 999px; overflow: hidden; background: #e2e8f0; }
    .progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34d399, #22c55e); width: 0; transition: width 0.25s ease; }
    .progress-note { margin-top: 8px; color: #94a3b8; font-size: 12px; line-height: 1.55; }

    .farm-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }

    .empty {
      display: grid;
      place-items: center;
      text-align: center;
      padding: 46px 22px;
      min-height: 480px;
      border-radius: 34px;
      border: 1px dashed rgba(148, 163, 184, 0.65);
      background: rgba(255, 255, 255, 0.62);
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(18px);
    }
    .empty-icon {
      width: 76px; height: 76px;
      display: grid; place-items: center;
      margin: 0 auto;
      border-radius: 28px;
      background: #ecfdf5;
      color: #059669;
      font-size: 36px;
    }
    .empty h3 { margin: 18px 0 0; font-size: 21px; letter-spacing: 0; }
    .empty p { max-width: 520px; margin: 10px auto 0; color: var(--muted); line-height: 1.75; }

    .history { margin-top: 18px; border-radius: 24px; background: rgba(241, 245, 249, 0.72); padding: 12px; }
    .history summary { cursor: pointer; font-weight: 800; color: #334155; }
    .history-list { display: grid; gap: 8px; margin-top: 12px; max-height: 270px; overflow: auto; padding-right: 3px; }
    .history-item {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      justify-content: space-between;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.8);
      padding: 10px 12px;
      color: #475569;
      font-size: 13px;
      line-height: 1.55;
    }
    .history-time { color: #94a3b8; white-space: nowrap; font-size: 12px; }

    .notice {
      margin-top: 16px;
      border-radius: 22px;
      padding: 14px 15px;
      background: rgba(239, 246, 255, 0.85);
      color: #075985;
      line-height: 1.7;
      font-size: 13px;
      border: 1px solid rgba(186, 230, 253, 0.8);
    }
    .notice.warn { background: rgba(255, 251, 235, 0.9); color: #92400e; border-color: #fde68a; }
    .notice.good { background: rgba(236, 253, 245, 0.9); color: #065f46; border-color: #a7f3d0; }
    .notice.bad { background: rgba(255, 241, 242, 0.9); color: #be123c; border-color: #fecdd3; }

    .toast-zone {
      position: fixed;
      z-index: 99;
      right: 18px;
      bottom: 18px;
      display: grid;
      gap: 10px;
      width: min(380px, calc(100vw - 36px));
      pointer-events: none;
    }
    .toast {
      pointer-events: auto;
      border-radius: 20px;
      padding: 14px 15px;
      animation: toast-in 0.25s ease both;
    }
    .toast-title { font-weight: 850; }
    .toast-body { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.55; }
    @keyframes toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

    .small { font-size: 12px; color: #94a3b8; line-height: 1.55; }
    .divider { height: 1px; background: rgba(226, 232, 240, 0.9); margin: 16px 0; }

    .two-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
    @media (min-width: 460px) { .two-actions { grid-template-columns: 1fr 1fr; } }

    .mode-tabs {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 18px;
      padding: 5px;
      border-radius: 20px;
      background: rgba(241, 245, 249, 0.76);
      border: 1px solid rgba(226, 232, 240, 0.9);
    }

    .mode-tab {
      position: relative;
      min-width: 0;
      cursor: pointer;
    }

    .mode-tab input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .mode-tab span {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      border-radius: 16px;
      color: #64748b;
      font-size: 13px;
      font-weight: 850;
      transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    }

    .mode-tab input:checked + span {
      background: #0f172a;
      color: #fff;
      box-shadow: var(--shadow-sm);
    }

    .mode-tab input:focus-visible + span {
      outline: 3px solid rgba(52, 211, 153, 0.35);
      outline-offset: 2px;
    }

    .start-mode-panel { margin-top: 16px; }
    .start-mode-panel > .field:first-child { margin-top: 0; }

    .sync-form { margin-top: 16px; }
    .start-mode-panel .sync-form { margin-top: 0; }

    .sync-section-title {
      margin-top: 16px;
      color: #334155;
      font-size: 13px;
      font-weight: 800;
    }

    .time-input-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 8px;
    }

    .time-field {
      display: grid;
      gap: 7px;
      min-width: 0;
      color: #334155;
      font-size: 13px;
      font-weight: 750;
    }

    .sync-fieldset {
      margin: 16px 0 0;
      padding: 13px;
      border: 1px solid rgba(203, 213, 225, 0.86);
      border-radius: 22px;
      background: rgba(248, 250, 252, 0.74);
    }

    .sync-fieldset legend {
      padding: 0 6px;
      color: #334155;
      font-size: 13px;
      font-weight: 850;
    }

    .option-row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      border-radius: 18px;
      padding: 10px 11px;
      color: #475569;
      font-size: 13px;
      line-height: 1.55;
      cursor: pointer;
    }

    .option-row input {
      width: 17px;
      height: 17px;
      margin-top: 2px;
      accent-color: #4f46e5;
      flex: 0 0 auto;
    }

    .option-row strong { color: #0f172a; }

    .sync-mode-panel {
      margin: 0 0 8px 27px;
      padding: 10px 11px 12px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.78);
      border: 1px solid rgba(226, 232, 240, 0.82);
    }

    .sync-mode-panel.is-hidden { display: none; }

    .sync-submit { width: 100%; margin-top: 16px; }

    .planner-form { margin-top: 16px; }

    .stepper-field {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr) 42px;
      gap: 8px;
      align-items: center;
    }

    .stepper-field .input { text-align: center; }

    .planner-compact-grid,
    .planner-form-grid {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .farm-settings-grid {
      grid-template-columns: 1fr;
      gap: 10px;
      margin-top: 16px;
    }

    .farm-settings-grid .field { margin-top: 0; }

    .farm-settings-note {
      margin-top: 12px;
      padding: 10px 12px;
      border-radius: 16px;
      background: rgba(248, 250, 252, 0.78);
    }

    .data-transfer-actions {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin-top: 16px;
    }

    .data-file-input {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    .data-file-label {
      width: 100%;
    }

    .data-transfer-field {
      display: block;
      margin-top: 14px;
    }

    .data-transfer-field > span {
      display: block;
      margin-bottom: 8px;
      color: #334155;
      font-size: 13px;
      font-weight: 750;
    }

    .data-transfer-text {
      min-height: 132px;
      font-size: 12px;
    }

    .data-transfer-note {
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 16px;
      background: rgba(240, 249, 255, 0.78);
      color: #0369a1;
    }

    .cloud-sync-mount {
      margin-top: 16px;
    }

    .cloud-sync-card {
      display: grid;
      gap: 12px;
      padding: 14px;
      border: 1px solid rgba(186, 230, 253, 0.9);
      border-radius: 18px;
      background: rgba(240, 249, 255, 0.76);
    }

    .cloud-sync-status-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .cloud-sync-title {
      color: #0f172a;
      font-size: 14px;
      font-weight: 850;
    }

    .cloud-sync-status {
      margin-top: 3px;
      color: #475569;
      font-size: 12px;
      line-height: 1.5;
    }

    .cloud-sync-badge {
      flex: 0 0 auto;
      border-radius: 999px;
      padding: 5px 9px;
      background: #e2e8f0;
      color: #475569;
      font-size: 12px;
      font-weight: 850;
      white-space: nowrap;
    }

    .cloud-sync-badge.is-online {
      background: #dcfce7;
      color: #15803d;
    }

    .cloud-sync-badge.is-error {
      background: #fee2e2;
      color: #b91c1c;
    }

    .cloud-sync-login {
      display: grid;
      gap: 10px;
    }

    .cloud-sync-field {
      margin-top: 0;
    }

    .cloud-sync-field > span {
      display: block;
      margin-bottom: 7px;
      color: #334155;
      font-size: 13px;
      font-weight: 750;
    }

    .cloud-sync-account {
      display: grid;
      gap: 10px;
    }

    .cloud-sync-account[hidden],
    .cloud-sync-login[hidden] {
      display: none;
    }

    .cloud-sync-account-line {
      color: #334155;
      font-size: 13px;
      line-height: 1.5;
      overflow-wrap: anywhere;
    }

    .cloud-sync-actions {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .cloud-sync-detail {
      padding: 10px 12px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.68);
    }

    .cloud-sync-float {
      position: fixed;
      z-index: 88;
      left: 18px;
      bottom: 18px;
      display: flex;
      align-items: center;
      gap: 8px;
      max-width: min(310px, calc(100vw - 36px));
      padding: 9px 11px;
      border: 1px solid rgba(186, 230, 253, 0.9);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.92);
      box-shadow: var(--shadow-sm);
      color: #0369a1;
      font-size: 12px;
      font-weight: 850;
      backdrop-filter: blur(14px);
    }

    .cloud-sync-float span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .cloud-sync-float span.is-error {
      color: #b91c1c;
    }

    .cloud-sync-float-btn {
      flex: 0 0 auto;
      border: 0;
      border-radius: 999px;
      padding: 5px 8px;
      background: #fee2e2;
      color: #b91c1c;
      font-size: 12px;
      font-weight: 850;
      cursor: pointer;
    }

    .cloud-sync-float-btn[hidden] {
      display: none;
    }

    .planner-compact-grid .field { margin-top: 12px; }
    .planner-form-grid .field { margin-top: 0; }
    .planner-sleep-grid { margin-top: 0; }
    .planner-actions { max-width: 460px; }

    .content-column {
      display: grid;
      gap: 18px;
      min-width: 0;
    }

    .page-layout {
      margin-top: 24px;
      display: grid;
      gap: 18px;
    }

    @media (min-width: 980px) {
      .page-layout {
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
      }

      .wide-page-layout { max-width: 1120px; }
    }

    .calculator-panel { overflow: hidden; }

    .calculator-form,
    .archive-form { margin-top: 16px; }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }

    @media (min-width: 720px) {
      .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .archive-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .animal-archive-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .animal-value-form-grid { grid-template-columns: minmax(240px, 1fr) minmax(190px, 0.8fr) minmax(190px, 0.8fr); }
      .ranch-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .ranch-slot-form-grid { grid-template-columns: minmax(220px, 1.2fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr); align-items: end; }
      .ranch-batch-time-grid { grid-template-columns: minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(180px, 1fr); align-items: end; }
    }

    @media (min-width: 960px) {
      .ranch-settings-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }

    .form-grid.farm-settings-grid {
      grid-template-columns: 1fr;
    }

    .form-grid.planner-form-grid {
      grid-template-columns: 1fr;
    }

    @media (min-width: 720px) {
      .form-grid.planner-form-grid {
        grid-template-columns: minmax(160px, 0.65fr) minmax(260px, 1fr) minmax(240px, 1fr);
        align-items: end;
      }
    }

    @media (min-width: 980px) {
      .form-grid.farm-settings-grid {
        grid-template-columns: 1.1fr 1fr;
        align-items: end;
      }
    }

    .check-row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-top: 14px;
      border-radius: 20px;
      padding: 13px 14px;
      background: rgba(255, 247, 237, 0.86);
      border: 1px solid rgba(254, 215, 170, 0.85);
      color: #9a3412;
      font-size: 13px;
      line-height: 1.65;
      cursor: pointer;
    }

    .check-row input {
      width: 18px;
      height: 18px;
      margin-top: 2px;
      accent-color: #f97316;
      flex: 0 0 auto;
    }

    .check-row strong { color: #7c2d12; }

    .check-row small {
      display: block;
      margin-top: 2px;
      color: #9a3412;
      font-weight: 750;
      line-height: 1.5;
    }

    .planner-check-row {
      min-height: 48px;
      height: 100%;
      margin-top: 0;
      align-items: center;
    }

    .calculator-toolbar,
    .archive-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 14px;
      flex-wrap: wrap;
    }

    .calculator-toolbar h3,
    .archive-toolbar h3 {
      margin: 0;
      font-size: 18px;
      letter-spacing: 0;
    }

    .calculator-toolbar p,
    .archive-toolbar p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
    }

    .archive-list {
      display: grid;
      gap: 10px;
      margin-top: 14px;
    }

    .archive-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      border-radius: 22px;
      padding: 13px 14px;
      background: rgba(241, 245, 249, 0.78);
      border: 1px solid rgba(226, 232, 240, 0.85);
    }

    .archive-main {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .archive-icon {
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(226, 232, 240, 0.9);
      flex: 0 0 auto;
    }

    .archive-title-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      min-width: 0;
    }

    .archive-title-row h3 {
      margin: 0;
      font-size: 15px;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    .archive-badge {
      border-radius: 999px;
      padding: 4px 8px;
      background: #ecfdf5;
      color: #047857;
      font-size: 11px;
      font-weight: 800;
      border: 1px solid #a7f3d0;
      white-space: nowrap;
    }

    .archive-badge-blue {
      background: #eff6ff;
      color: #0369a1;
      border-color: #bae6fd;
    }

    .archive-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 10px;
      margin-top: 5px;
      color: #64748b;
      font-size: 12px;
      line-height: 1.45;
    }

    .archive-item-actions {
      display: flex;
      gap: 8px;
      flex: 0 0 auto;
    }

    .archive-export {
      margin-top: 12px;
    }

    .archive-export-text {
      width: 100%;
      border: 1px solid #dbe3ef;
      border-radius: 18px;
      padding: 12px;
      background: rgba(255, 255, 255, 0.82);
      color: #334155;
      outline: none;
    }

    .compact-field {
      display: grid;
      gap: 7px;
      min-width: 190px;
      color: #334155;
      font-size: 13px;
      font-weight: 750;
    }

    .value-summary {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin-top: 16px;
    }

    @media (min-width: 700px) {
      .value-summary { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    }

    .value-rank {
      border-radius: 22px;
      padding: 14px;
      background: rgba(241, 245, 249, 0.82);
      border: 1px solid rgba(226, 232, 240, 0.85);
      min-width: 0;
    }

    .value-rank span,
    .value-rank small,
    .value-muted {
      color: #94a3b8;
      font-size: 12px;
      line-height: 1.5;
    }

    .value-rank strong {
      display: block;
      margin-top: 6px;
      color: #0f172a;
      font-size: 18px;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .value-rank small {
      display: block;
      margin-top: 5px;
      color: #475569;
      font-weight: 750;
    }

    .planner-panel { overflow: hidden; }

    .ranch-home-panel,
    .ranch-panel,
    .ranch-settings-panel {
      overflow: hidden;
    }

    .ranch-home-summary,
    .ranch-summary {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin-top: 16px;
    }

    @media (min-width: 760px) {
      .ranch-home-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .ranch-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    .ranch-home-list,
    .ranch-slot-list {
      display: grid;
      gap: 12px;
      margin-top: 16px;
    }

    .ranch-home-item {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      border-radius: 18px;
      padding: 11px 13px;
      background: rgba(241, 245, 249, 0.82);
      border: 1px solid rgba(226, 232, 240, 0.86);
      min-width: 0;
    }

    .ranch-home-item.is-ready {
      background: rgba(236, 253, 245, 0.9);
      border-color: #a7f3d0;
    }

    .ranch-home-item span {
      color: #475569;
      font-size: 13px;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }

    .ranch-home-item strong {
      color: #0f172a;
      font-size: 14px;
      white-space: nowrap;
    }

    .ranch-home-actions {
      margin-top: 16px;
    }

    .ranch-slot-card {
      border-radius: 24px;
      padding: 16px;
      background: rgba(241, 245, 249, 0.82);
      border: 1px solid rgba(226, 232, 240, 0.86);
      min-width: 0;
    }

    .ranch-slot-card.is-ready {
      background: rgba(236, 253, 245, 0.82);
      border-color: #a7f3d0;
    }

    .ranch-slot-card.is-empty {
      background: rgba(248, 250, 252, 0.72);
    }

    .ranch-slot-card.is-missing {
      background: rgba(255, 241, 242, 0.82);
      border-color: #fecdd3;
    }

    .ranch-slot-top {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: flex-start;
    }

    .ranch-slot-top h3 {
      margin: 8px 0 0;
      font-size: 20px;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .ranch-slot-top p {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
    }

    .ranch-slot-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px;
      flex: 0 0 auto;
    }

    .ranch-slot-start {
      margin-top: 14px;
      width: 100%;
    }

    .ranch-batch-time-grid {
      margin-top: 14px;
    }

    .ranch-metric-grid {
      margin-top: 14px;
      grid-template-columns: 1fr;
    }

    @media (min-width: 760px) {
      .ranch-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }

    .planner-head { align-items: flex-start; }

    .planner-summary {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin-top: 16px;
    }

    @media (min-width: 760px) {
      .planner-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }

    .planner-goal-card {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .planner-goal-card > div:last-child { min-width: 0; }

    .planner-ring {
      --progress: 0%;
      position: relative;
      flex: 0 0 auto;
      display: grid;
      place-items: center;
      width: 74px;
      aspect-ratio: 1;
      border-radius: 999px;
      background:
        conic-gradient(#22c55e var(--progress), #e2e8f0 0);
      box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
    }

    .planner-ring::after {
      content: "";
      position: absolute;
      inset: 9px;
      border-radius: inherit;
      background: rgba(248, 250, 252, 0.96);
      box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.85);
    }

    .planner-ring span {
      position: relative;
      z-index: 1;
      color: #0f172a;
      font-size: 15px;
      font-weight: 900;
      line-height: 1;
    }

    .planner-next-card {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      margin-top: 16px;
      border-radius: 24px;
      padding: 16px;
      background: rgba(238, 242, 255, 0.72);
      border: 1px solid rgba(199, 210, 254, 0.86);
      color: #334155;
    }

    .planner-next-card strong {
      display: block;
      color: #0f172a;
      font-size: 17px;
      line-height: 1.35;
    }

    .planner-next-card span {
      display: block;
      margin-top: 4px;
      color: #64748b;
      font-size: 13px;
      line-height: 1.55;
    }

    .planner-next-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 9px;
      flex: 0 0 auto;
    }

    .planner-blessing-card {
      display: grid;
      gap: 9px;
      margin-top: 14px;
      border-radius: 20px;
      padding: 14px 15px;
      background: rgba(240, 253, 244, 0.8);
      border: 1px solid rgba(187, 247, 208, 0.9);
      color: #334155;
    }

    .planner-blessing-card.is-warn {
      background: rgba(255, 251, 235, 0.86);
      border-color: rgba(253, 230, 138, 0.96);
    }

    .planner-blessing-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
    }

    .planner-blessing-top span {
      display: block;
      color: #64748b;
      font-size: 12px;
      font-weight: 850;
      line-height: 1.35;
    }

    .planner-blessing-top strong {
      display: block;
      margin-top: 4px;
      color: #0f172a;
      font-size: 17px;
      line-height: 1.38;
      overflow-wrap: anywhere;
    }

    .planner-blessing-top b {
      flex: 0 0 auto;
      border-radius: 999px;
      padding: 6px 9px;
      background: rgba(255, 255, 255, 0.72);
      color: #166534;
      font-size: 12px;
      line-height: 1;
      white-space: nowrap;
    }

    .planner-blessing-card.is-warn .planner-blessing-top b {
      color: #92400e;
    }

    .planner-blessing-card p {
      margin: 0;
      color: #475569;
      font-size: 13px;
      font-weight: 750;
      line-height: 1.65;
    }

    .planner-focus-section {
      display: grid;
      gap: 12px;
      margin-top: 18px;
    }

    .planner-section-title {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 12px;
      color: #64748b;
      font-size: 12px;
      line-height: 1.4;
    }

    .planner-section-title span {
      font-weight: 850;
      color: #334155;
    }

    .planner-section-title strong {
      color: #0f172a;
      font-size: 14px;
      line-height: 1.35;
      text-align: right;
    }

    .planner-overview-rail {
      padding: 10px 6px 2px;
    }

    .planner-overview-map {
      position: relative;
      min-height: 260px;
      margin-top: 2px;
      border-radius: 22px;
      background: linear-gradient(180deg, rgba(248, 250, 252, 0.72), rgba(255, 255, 255, 0.38));
      overflow: visible;
    }

    .planner-overview-track {
      position: relative;
      top: 50%;
      transform: translateY(-50%);
      height: 12px;
      margin: 0 18px;
      border-radius: 999px;
      background: #e2e8f0;
      box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
    }

    .planner-overview-fill {
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: linear-gradient(90deg, #22c55e, #0ea5e9 58%, #f59e0b);
    }

    .planner-overview-dot {
      position: absolute;
      top: 50%;
      transform: translate(-50%, -50%);
      display: grid;
      place-items: center;
      width: 25px;
      aspect-ratio: 1;
      border-radius: 999px;
      background: #0f172a;
      border: 3px solid #fff;
      box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18), 0 8px 18px rgba(15, 23, 42, 0.16);
    }

    .planner-overview-dot i {
      font-style: normal;
      color: #fff;
      font-size: 10px;
      font-weight: 900;
      line-height: 1;
    }

    .planner-overview-card {
      position: absolute;
      left: 50%;
      z-index: 2;
      width: 158px;
      transform: translateX(-50%);
      border-radius: 18px;
      padding: 10px 11px;
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(226, 232, 240, 0.92);
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
      overflow-wrap: anywhere;
    }

    .planner-overview-card.top {
      top: 0;
    }

    .planner-overview-card.bottom {
      bottom: 0;
    }

    .planner-overview-card::before {
      content: "";
      position: absolute;
      left: 50%;
      width: 1px;
      height: 38px;
      border-left: 1px dashed rgba(100, 116, 139, 0.38);
      transform: translateX(-50%);
    }

    .planner-overview-card.top::before {
      bottom: -39px;
    }

    .planner-overview-card.bottom::before {
      top: -39px;
    }

    .planner-overview-card span {
      display: block;
      color: #64748b;
      font-size: 12px;
      font-weight: 750;
      line-height: 1.35;
    }

    .planner-overview-card strong {
      display: block;
      margin-top: 5px;
      color: #0f172a;
      font-size: 14px;
      line-height: 1.25;
    }

    .planner-overview-card small {
      display: block;
      margin-top: 4px;
      color: #64748b;
      font-size: 12px;
      font-weight: 750;
      line-height: 1.3;
    }

    .planner-overview-card.coins {
      background: rgba(255, 251, 235, 0.94);
      border-color: rgba(253, 230, 138, 0.95);
    }

    .planner-overview-card.harvest {
      background: rgba(240, 253, 244, 0.92);
      border-color: rgba(187, 247, 208, 0.88);
    }

    .planner-overview-card.wait,
    .planner-overview-card.mixed {
      background: rgba(248, 250, 252, 0.94);
      border-style: dashed;
    }

    .planner-flow-list,
    .planner-arrow-chain {
      display: flex;
      flex-wrap: wrap;
      align-items: stretch;
      gap: 9px;
    }

    .planner-flow-card,
    .planner-arrow-card {
      min-width: min(168px, 100%);
      max-width: 100%;
      flex: 1 1 168px;
      border-radius: 18px;
      padding: 12px;
      background: rgba(255, 255, 255, 0.78);
      border: 1px solid rgba(226, 232, 240, 0.92);
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
      overflow-wrap: anywhere;
    }

    .planner-flow-card span,
    .planner-arrow-card p,
    .planner-arrow-card small {
      display: block;
      color: #64748b;
      font-size: 12px;
      line-height: 1.45;
    }

    .planner-flow-card strong,
    .planner-arrow-card strong {
      display: block;
      margin-top: 6px;
      color: #0f172a;
      font-size: 15px;
      line-height: 1.3;
    }

    .planner-flow-card small {
      display: block;
      margin-top: 3px;
      color: #475569;
      font-size: 12px;
      font-weight: 800;
      line-height: 1.35;
    }

    .planner-flow-card.coins,
    .planner-arrow-coins {
      background: rgba(255, 251, 235, 0.82);
      border-color: rgba(253, 230, 138, 0.92);
    }

    .planner-flow-card.harvest {
      background: rgba(240, 253, 244, 0.78);
      border-color: rgba(187, 247, 208, 0.86);
    }

    .planner-flow-card.wait,
    .planner-flow-card.mixed,
    .planner-arrow-wait {
      background: rgba(248, 250, 252, 0.88);
      border-style: dashed;
    }

    .planner-flow-arrow {
      align-self: center;
      display: grid;
      place-items: center;
      width: 28px;
      min-height: 28px;
      border-radius: 999px;
      background: #f1f5f9;
      color: #475569;
      font-size: 16px;
      font-weight: 900;
      flex: 0 0 auto;
    }

    .planner-rail-note,
    .planner-detail-note {
      border-radius: 16px;
      padding: 10px 12px;
      background: rgba(248, 250, 252, 0.86);
      color: #64748b;
      font-size: 12px;
      font-weight: 750;
      line-height: 1.6;
    }

    .planner-current-card {
      border-radius: 22px;
      padding: 14px 15px 16px;
      background: rgba(238, 242, 255, 0.56);
      border: 1px solid rgba(199, 210, 254, 0.78);
    }

    .planner-current-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 14px;
    }

    .planner-current-card h3,
    .planner-arrow-card h4 {
      margin: 9px 0 0;
      color: #0f172a;
      font-size: 18px;
      line-height: 1.3;
      overflow-wrap: anywhere;
    }

    .planner-current-card p {
      margin: 6px 0 0;
      color: #64748b;
      font-size: 13px;
      line-height: 1.5;
    }

    .planner-arrow-plan {
      display: grid;
      gap: 15px;
      margin-top: 18px;
    }

    .planner-arrow-day {
      display: grid;
      gap: 10px;
    }

    .planner-arrow-day h3 {
      margin: 0;
      color: #334155;
      font-size: 15px;
      letter-spacing: 0;
    }

    .planner-arrow-card {
      flex-basis: 220px;
      padding: 14px;
    }

    .planner-arrow-card p {
      margin: 7px 0 0;
    }

    .planner-arrow-card small {
      margin-top: 4px;
      color: #475569;
      font-weight: 800;
    }

    .planner-arrow-water {
      margin-top: 10px;
      border-radius: 14px;
      padding: 8px 9px;
      background: #f8fafc;
      color: #475569;
      font-size: 12px;
      font-weight: 750;
      line-height: 1.5;
    }

    .planner-timeline {
      display: grid;
      gap: 14px;
      margin-top: 18px;
    }

    .planner-day {
      display: grid;
      gap: 10px;
    }

    .planner-day h3 {
      margin: 0;
      color: #334155;
      font-size: 15px;
      letter-spacing: 0;
    }

    .planner-block-list {
      display: grid;
      gap: 10px;
    }

    .planner-block {
      border-radius: 24px;
      padding: 14px 15px 18px;
      background: rgba(255, 255, 255, 0.74);
      border: 1px solid rgba(226, 232, 240, 0.9);
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    }

    .planner-block-wait {
      background: rgba(248, 250, 252, 0.82);
      border-style: dashed;
    }

    .planner-block-top {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: flex-start;
    }

    .planner-block h4 {
      margin: 10px 0 0;
      font-size: 18px;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .planner-block p {
      margin: 6px 0 0;
      color: #64748b;
      font-size: 13px;
      line-height: 1.55;
    }

    .planner-yield {
      display: grid;
      gap: 4px;
      text-align: right;
      min-width: 132px;
      color: #64748b;
      font-size: 12px;
      line-height: 1.4;
    }

    .planner-yield strong {
      color: #0f172a;
      font-size: 15px;
      line-height: 1.35;
    }

    .planner-event-row {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 34px;
    }

    .planner-event-row span {
      border-radius: 999px;
      padding: 6px 9px;
      background: #f1f5f9;
      color: #475569;
      font-size: 12px;
      font-weight: 750;
      line-height: 1.35;
    }

    .planner-reason {
      margin-top: 11px;
      border-radius: 18px;
      padding: 10px 11px;
      background: rgba(255, 251, 235, 0.78);
      color: #92400e;
      font-size: 12px;
      line-height: 1.6;
    }

    .planner-rail {
      margin-top: 20px;
      padding: 18px 8px 30px;
    }

    .planner-rail-track {
      position: relative;
      height: 9px;
      border-radius: 999px;
      background: #e2e8f0;
    }

    .planner-rail-fill {
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: linear-gradient(90deg, #34d399, #0ea5e9);
    }

    .planner-block-wait .planner-rail-fill {
      background: linear-gradient(90deg, #cbd5e1, #94a3b8);
    }

    .planner-rail-marker {
      position: absolute;
      top: 50%;
      transform: translate(-50%, -50%);
      display: grid;
      justify-items: center;
      gap: 7px;
      min-width: 82px;
      color: #64748b;
      font-size: 11px;
      line-height: 1.3;
      text-align: center;
      pointer-events: none;
    }

    .planner-rail-marker.start {
      transform: translate(0, -50%);
      justify-items: start;
      text-align: left;
    }

    .planner-rail-marker.end {
      transform: translate(-100%, -50%);
      justify-items: end;
      text-align: right;
    }

    .planner-rail-marker i {
      width: 15px;
      height: 15px;
      border-radius: 999px;
      background: #0f172a;
      border: 3px solid #fff;
      box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.16);
    }

    .planner-rail-marker small {
      position: absolute;
      top: 15px;
      min-width: 92px;
      color: #64748b;
      font-size: 11px;
      font-weight: 750;
    }

    .value-empty {
      margin-top: 14px;
      display: grid;
      gap: 5px;
      border-radius: 22px;
      padding: 16px;
      background: rgba(241, 245, 249, 0.78);
      color: #475569;
      line-height: 1.6;
    }

    .value-empty strong { color: #0f172a; }
    .value-empty span { font-size: 13px; }

    .value-results { margin-top: 14px; }

    .value-cycle-note {
      display: grid;
      gap: 5px;
      margin-bottom: 12px;
      border-radius: 20px;
      padding: 13px 14px;
      background: rgba(255, 247, 237, 0.88);
      border: 1px solid rgba(254, 215, 170, 0.85);
      color: #9a3412;
      line-height: 1.6;
      font-size: 13px;
    }

    .value-cycle-note strong { color: #7c2d12; }
    .value-cycle-note span { color: #9a3412; }

    .value-table-wrap {
      overflow-x: auto;
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.7);
      border: 1px solid rgba(226, 232, 240, 0.9);
    }

    .value-table {
      width: 100%;
      min-width: 920px;
      border-collapse: collapse;
    }

    .animal-value-table {
      min-width: 1180px;
    }

    .value-table th,
    .value-table td {
      padding: 13px 14px;
      text-align: left;
      vertical-align: middle;
      border-bottom: 1px solid rgba(226, 232, 240, 0.75);
      font-size: 13px;
      line-height: 1.45;
      white-space: nowrap;
    }

    .value-table tr:last-child td { border-bottom: 0; }
    .value-table th { color: var(--muted); font-size: 12px; font-weight: 800; }
    .value-table td:first-child { white-space: normal; min-width: 150px; }
    .value-table td:nth-child(6),
    .value-table td:nth-child(7) { white-space: normal; min-width: 120px; }

    .animal-value-table td:nth-child(6),
    .animal-value-table td:nth-child(7),
    .animal-value-table td:nth-child(8) {
      white-space: normal;
      min-width: 130px;
    }

    .value-name {
      color: #0f172a;
      font-weight: 850;
      overflow-wrap: anywhere;
    }

    .mini-btn {
      border: 1px solid #fecdd3;
      border-radius: 14px;
      padding: 8px 10px;
      background: #fff1f2;
      color: #be123c;
      font-size: 12px;
      font-weight: 800;
    }

    .mini-btn.neutral {
      background: #f8fafc;
      color: #334155;
      border-color: #dbe3ef;
    }

    .mini-btn.primary {
      background: #0f172a;
      color: #fff;
      border-color: #0f172a;
    }

    @media (max-width: 600px) {
      .compact-field { width: 100%; }
      .calculator-toolbar,
      .archive-toolbar { align-items: stretch; }
      .archive-toolbar .btn { width: 100%; }
      .planner-next-card,
      .planner-blessing-top,
      .planner-block-top,
      .planner-current-top {
        align-items: stretch;
        flex-direction: column;
      }
      .planner-next-actions { justify-content: stretch; }
      .planner-next-actions .btn { width: 100%; }
      .planner-yield {
        text-align: left;
        min-width: 0;
      }
      .planner-section-title {
        align-items: flex-start;
        flex-direction: column;
      }
      .planner-section-title strong { text-align: left; }
      .planner-flow-list,
      .planner-arrow-chain {
        align-items: stretch;
        flex-direction: column;
      }
      .planner-flow-card,
      .planner-arrow-card {
        flex-basis: auto;
        width: 100%;
      }
      .planner-flow-arrow {
        align-self: center;
        transform: rotate(90deg);
      }
      .planner-overview-map {
        display: grid;
        gap: 10px;
        min-height: 0;
        padding: 0;
        background: transparent;
      }
      .planner-overview-track {
        margin: 0 4px;
        top: auto;
        transform: none;
      }
      .planner-overview-dot {
        width: 17px;
        border-width: 2px;
      }
      .planner-overview-dot i {
        width: 5px;
        height: 5px;
        border-radius: 999px;
        background: #fff;
        color: transparent;
        font-size: 0;
      }
      .planner-overview-card,
      .planner-overview-card.top,
      .planner-overview-card.bottom {
        position: relative;
        left: auto !important;
        top: auto;
        bottom: auto;
        width: 100%;
        transform: none;
      }
      .planner-overview-card::before {
        display: none;
      }
      .planner-rail {
        overflow: hidden;
        padding: 16px 4px 34px;
      }
      .planner-rail-marker {
        min-width: 0;
      }
      .planner-rail-marker small {
        display: none;
      }
      .archive-item {
        align-items: stretch;
        flex-direction: column;
      }
      .archive-item-actions { justify-content: flex-end; }
      .ranch-slot-top {
        align-items: stretch;
        flex-direction: column;
      }
      .ranch-slot-actions {
        justify-content: stretch;
      }
      .ranch-slot-actions .btn,
      .ranch-home-actions .btn {
        width: 100%;
      }
      .ranch-home-item {
        align-items: flex-start;
        flex-direction: column;
      }
      .ranch-home-item strong {
        white-space: normal;
      }
    }

    .interest-page .hero .lead {
      max-width: 760px;
    }

    .interest-layout {
      gap: 18px;
    }

    .interest-panel {
      overflow: visible;
    }

    .interest-icon {
      background: #ecfdf5;
      color: #047857;
      font-size: 0.74rem;
      letter-spacing: 0.03em;
    }

    .interest-icon.secondary {
      background: #eef2ff;
      color: #4338ca;
    }

    .interest-datebar {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      align-items: end;
      margin-top: 16px;
    }

    .interest-date-field {
      margin: 0;
    }

    .interest-summary {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin-top: 14px;
    }

    .interest-summary-card {
      border-radius: 18px;
      border: 1px solid rgba(226, 232, 240, 0.9);
      background: rgba(248, 250, 252, 0.82);
      padding: 13px 14px;
    }

    .interest-summary-card span,
    .interest-entry-metrics span {
      display: block;
      color: #64748b;
      font-size: 0.78rem;
      font-weight: 800;
    }

    .interest-summary-card strong,
    .interest-entry-metrics strong {
      display: block;
      margin-top: 5px;
      color: #0f172a;
      font-size: 1.03rem;
      overflow-wrap: anywhere;
    }

    .interest-entry-list,
    .interest-category-list {
      display: grid;
      gap: 10px;
      margin-top: 16px;
    }

    .interest-entry-card,
    .interest-category-card {
      --interest-accent: #0f766e;
      --interest-accent-soft: #ccfbf1;
      --interest-accent-pale: rgba(240, 253, 250, 0.86);
      --interest-tag-bg: #ccfbf1;
      --interest-tag-color: #115e59;
      position: relative;
      overflow: hidden;
      border-radius: 8px;
      border: 1px solid rgba(203, 213, 225, 0.92);
      background:
        linear-gradient(180deg, var(--interest-accent-pale), rgba(255, 255, 255, 0.9));
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
      padding: 12px;
    }

    .interest-entry-card::before,
    .interest-category-card::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 4px;
      background: var(--interest-accent);
    }

    .interest-tone-0 {
      --interest-accent: #0f766e;
      --interest-accent-soft: #ccfbf1;
      --interest-accent-pale: rgba(240, 253, 250, 0.88);
      --interest-tag-bg: #ccfbf1;
      --interest-tag-color: #115e59;
    }

    .interest-tone-1 {
      --interest-accent: #2563eb;
      --interest-accent-soft: #dbeafe;
      --interest-accent-pale: rgba(239, 246, 255, 0.9);
      --interest-tag-bg: #dbeafe;
      --interest-tag-color: #1e40af;
    }

    .interest-tone-2 {
      --interest-accent: #7c3aed;
      --interest-accent-soft: #ede9fe;
      --interest-accent-pale: rgba(245, 243, 255, 0.9);
      --interest-tag-bg: #ede9fe;
      --interest-tag-color: #5b21b6;
    }

    .interest-tone-3 {
      --interest-accent: #be123c;
      --interest-accent-soft: #ffe4e6;
      --interest-accent-pale: rgba(255, 241, 242, 0.88);
      --interest-tag-bg: #ffe4e6;
      --interest-tag-color: #9f1239;
    }

    .interest-tone-4 {
      --interest-accent: #b45309;
      --interest-accent-soft: #fef3c7;
      --interest-accent-pale: rgba(255, 251, 235, 0.9);
      --interest-tag-bg: #fef3c7;
      --interest-tag-color: #92400e;
    }

    .interest-tone-5 {
      --interest-accent: #0369a1;
      --interest-accent-soft: #cffafe;
      --interest-accent-pale: rgba(236, 254, 255, 0.88);
      --interest-tag-bg: #cffafe;
      --interest-tag-color: #155e75;
    }

    .interest-tone-6 {
      --interest-accent: #4338ca;
      --interest-accent-soft: #e0e7ff;
      --interest-accent-pale: rgba(238, 242, 255, 0.9);
      --interest-tag-bg: #e0e7ff;
      --interest-tag-color: #3730a3;
    }

    .interest-tone-7 {
      --interest-accent: #4d7c0f;
      --interest-accent-soft: #ecfccb;
      --interest-accent-pale: rgba(247, 254, 231, 0.88);
      --interest-tag-bg: #ecfccb;
      --interest-tag-color: #3f6212;
    }

    .interest-entry-card.is-full {
      border-color: rgba(74, 222, 128, 0.72);
      box-shadow: 0 8px 20px rgba(22, 163, 74, 0.075);
    }

    .interest-entry-card.is-short {
      border-color: rgba(245, 158, 11, 0.58);
      box-shadow: 0 8px 20px rgba(245, 158, 11, 0.08);
    }

    .interest-entry-card.is-over,
    .interest-entry-card.is-warn {
      border-color: rgba(244, 63, 94, 0.58);
      box-shadow: 0 8px 20px rgba(244, 63, 94, 0.075);
    }

    .interest-entry-main,
    .interest-category-card {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      align-items: start;
    }

    .interest-entry-title {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
    }

    .interest-entry-title h3,
    .interest-category-card h3 {
      margin: 0;
      color: #111827;
      font-size: 0.98rem;
      line-height: 1.22;
      overflow-wrap: anywhere;
    }

    .interest-tag-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }

    .interest-tag-row span {
      display: inline-flex;
      align-items: center;
      max-width: 100%;
      min-height: 24px;
      border-radius: 8px;
      background: var(--interest-tag-bg);
      color: var(--interest-tag-color);
      border: 1px solid rgba(255, 255, 255, 0.64);
      padding: 4px 8px;
      font-size: 0.74rem;
      font-weight: 800;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .interest-tag-empty {
      color: #94a3b8 !important;
      font-style: italic;
    }

    .interest-tag-delete {
      margin-left: 5px;
      border: 0;
      border-left: 1px solid rgba(148, 163, 184, 0.45);
      background: transparent;
      color: #be123c;
      cursor: pointer;
      font: inherit;
      font-size: 0.7rem;
      font-weight: 900;
      padding: 0 0 0 5px;
    }

    .interest-exp-input {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .interest-exp-input span {
      color: var(--interest-accent);
      font-weight: 800;
      font-size: 0.82rem;
    }

    .interest-entry-metrics {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px;
      margin-top: 9px;
    }

    .interest-entry-metrics > div {
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.62);
      border: 1px solid rgba(255, 255, 255, 0.76);
      padding: 7px;
      min-width: 0;
    }

    .interest-category-add-card {
      display: grid;
      gap: 12px;
      margin-top: 16px;
      border: 1px dashed rgba(100, 116, 139, 0.42);
      border-radius: 8px;
      background: rgba(248, 250, 252, 0.68);
      padding: 14px;
    }

    .interest-category-add-card h3 {
      margin: 0;
      color: #0f172a;
      font-size: 1rem;
      line-height: 1.2;
    }

    .interest-category-add-card .field,
    .interest-inline-edit .field {
      margin-top: 0;
    }

    .interest-inline-edit {
      display: grid;
      gap: 12px;
      min-width: 0;
    }

    .interest-edit-head {
      display: grid;
      gap: 3px;
    }

    .interest-edit-head span {
      color: var(--interest-accent);
      font-size: 0.76rem;
      font-weight: 850;
    }

    .interest-edit-head strong {
      color: #0f172a;
      font-size: 1rem;
      overflow-wrap: anywhere;
    }

    .interest-category-card.is-editing {
      border-color: var(--interest-accent);
      background: linear-gradient(180deg, var(--interest-accent-pale), rgba(255, 255, 255, 0.94));
    }

    .interest-tags-field textarea {
      min-height: 92px;
      resize: vertical;
      line-height: 1.45;
    }

    .interest-category-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-start;
    }

    .interest-note {
      margin-top: 16px;
    }

    @media (min-width: 720px) {
      .interest-datebar {
        grid-template-columns: auto minmax(220px, 0.4fr) auto;
      }

      .interest-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .interest-entry-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .interest-entry-main {
        grid-template-columns: 1fr;
      }

      .interest-entry-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .interest-category-card {
        grid-template-columns: minmax(0, 1fr) auto;
      }

      .interest-category-card.is-editing {
        grid-template-columns: 1fr;
      }

      .interest-category-actions {
        justify-content: flex-end;
      }
    }

    @media (min-width: 860px) {
      .form-grid.interest-category-grid {
        grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
      }
    }

    @media (min-width: 1080px) {
      .interest-entry-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    .rules-layout {
      margin-top: 24px;
      display: grid;
      gap: 16px;
    }

    .rule-list {
      display: grid;
      gap: 10px;
      margin-top: 16px;
    }

    .rule-item {
      border-radius: 18px;
      background: rgba(241, 245, 249, 0.82);
      color: #475569;
      font-size: 14px;
      line-height: 1.7;
      padding: 13px 14px;
    }

    .rule-item strong { color: #0f172a; }
