:root {
      --leaf-50: #f2f8e9;
      --leaf-100: #e5f1d2;
      --leaf-200: #cce3a9;
      --leaf-300: #a8cf78;
      --leaf-400: #7eb64c;
      --leaf-500: #579b2f;
      --leaf-600: #397b26;
      --leaf-700: #2d6221;
      --leaf-800: #244e1f;
      --soil-50: #fff9ec;
      --soil-100: #f8ebcc;
      --soil-300: #d7b57b;
      --soil-500: #9b6a35;
      --soil-700: #6b4423;
      --sun: #f5b942;
      --orange: #ed7a2d;
      --orange-dark: #c8551f;
      --sky: #dff4f2;
      --sky-deep: #9fd9d2;
      --white: #fffef9;
      --text: #203126;
      --muted: #68756c;
      --danger: #dc4c47;
      --line: rgba(61, 100, 49, .15);
      --shadow-lg: 0 28px 70px rgba(54, 72, 41, .18), 0 8px 20px rgba(54, 72, 41, .08);
      --shadow-md: 0 16px 30px rgba(63, 79, 46, .13), 0 5px 0 rgba(113, 85, 45, .09);
      --shadow-button: 0 8px 0 #2b651f, 0 15px 28px rgba(45, 98, 33, .24);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      min-height: 100vh;
      margin: 0;
      padding: 30px 14px 80px;
      overflow-x: hidden;
      position: relative;
      font-family: "Kanit", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at 80% 7%, rgba(255,255,255,.95) 0 55px, transparent 56px),
        linear-gradient(180deg, #cceeea 0%, #ecf8ec 48%, #dfeec7 48%, #c9dda1 100%);
    }

    body::before,
    body::after {
      content: "";
      position: fixed;
      left: -10vw;
      right: -10vw;
      pointer-events: none;
      z-index: 0;
    }

    body::before {
      height: 280px;
      bottom: 0;
      background:
        repeating-linear-gradient(100deg, transparent 0 42px, rgba(86,121,48,.12) 43px 49px),
        linear-gradient(180deg, transparent 0 5%, #b9d28d 6% 44%, #9dbb6e 45% 100%);
      clip-path: polygon(0 28%, 12% 17%, 26% 30%, 40% 13%, 57% 28%, 72% 9%, 86% 24%, 100% 14%, 100% 100%, 0 100%);
    }

    body::after {
      height: 138px;
      bottom: 0;
      opacity: .5;
      background: repeating-linear-gradient(90deg, #76502d 0 8px, #95653a 8px 26px, #b78955 26px 38px);
      clip-path: polygon(0 70%, 100% 25%, 100% 100%, 0 100%);
    }

    button, input, a { font-family: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }

    .ambient {
      position: fixed;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
      z-index: 0;
    }

    .cloud {
      position: absolute;
      width: 105px;
      height: 31px;
      border-radius: 999px;
      background: rgba(255,255,255,.77);
      filter: drop-shadow(0 8px 12px rgba(73,117,111,.08));
      animation: drift 18s ease-in-out infinite alternate;
    }

    .cloud::before, .cloud::after {
      content: "";
      position: absolute;
      bottom: 0;
      background: inherit;
      border-radius: 50%;
    }

    .cloud::before { width: 45px; height: 45px; left: 17px; }
    .cloud::after { width: 58px; height: 58px; right: 11px; }
    .cloud-one { top: 75px; left: 6%; transform: scale(.82); }
    .cloud-two { top: 165px; right: 4%; transform: scale(.58); animation-delay: -6s; }

    @keyframes drift {
      from { translate: -8px 0; }
      to { translate: 16px 4px; }
    }

    .app {
      width: 100%;
      max-width: 620px;
      margin: 0 auto;
      position: relative;
      z-index: 2;
      perspective: 1200px;
    }

    .panel {
      position: relative;
      padding: 0 27px 30px;
      isolation: isolate;
      background: rgba(255, 254, 249, .93);
      border: 1px solid rgba(255,255,255,.86);
      border-radius: 36px;
      box-shadow: var(--shadow-lg);
      backdrop-filter: blur(18px);
      overflow: hidden;
      transform-style: preserve-3d;
    }

    .panel::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      opacity: .42;
      background-image:
        linear-gradient(rgba(70,114,59,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(70,114,59,.055) 1px, transparent 1px);
      background-size: 26px 26px;
    }

    .panel::after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 12px;
      z-index: -1;
      background: linear-gradient(180deg, #ae7c49, #7d512c);
      box-shadow: inset 0 3px rgba(255,255,255,.2);
    }

    .hero {
      position: relative;
      margin: 0 -27px 27px;
      padding: 28px 24px 25px;
      min-height: 245px;
      overflow: hidden;
      text-align: center;
      background:
        radial-gradient(circle at 82% 16%, #ffe7a0 0 42px, rgba(255,231,160,.55) 43px 60px, transparent 61px),
        linear-gradient(180deg, #c4ece6 0%, #eaf8e8 73%, #d4e7af 74% 100%);
      border-radius: 35px 35px 28px 28px;
      border-bottom: 1px solid rgba(70,114,59,.15);
      box-shadow: inset 0 -8px 18px rgba(83, 116, 54, .08);
    }

    .hero::before {
      content: "";
      position: absolute;
      left: -10%; right: -10%; bottom: -34px;
      height: 84px;
      border-radius: 50% 50% 0 0;
      background:
        repeating-linear-gradient(100deg, transparent 0 25px, rgba(69,103,40,.13) 26px 31px),
        linear-gradient(180deg, #a9c87d, #86aa5b);
      transform: rotate(-2deg);
    }

    .hero-topline {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      position: relative;
      z-index: 3;
      margin-bottom: 14px;
      padding: 6px 12px;
      border: 1px solid rgba(45,98,33,.14);
      border-radius: 999px;
      color: var(--leaf-700);
      background: rgba(255,255,255,.72);
      box-shadow: 0 5px 12px rgba(61,98,52,.08);
      font-size: 12px;
      font-weight: 700;
    }

    .hero-topline::before {
      content: "";
      width: 8px; height: 8px;
      border-radius: 50%;
      background: #65b741;
      box-shadow: 0 0 0 4px rgba(101,183,65,.14);
    }

    .brand {
      position: relative;
      z-index: 3;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .logo-stage {
      position: relative;
      width: 112px;
      height: 91px;
      margin-bottom: 13px;
      transform: rotateX(4deg);
      transform-style: preserve-3d;
    }

    .logo-stage::after {
      content: "";
      position: absolute;
      left: 15px; right: 15px; bottom: -8px;
      height: 17px;
      border-radius: 50%;
      background: rgba(47,83,36,.18);
      filter: blur(7px);
      transform: translateZ(-20px);
    }

    .greenhouse-logo {
      position: absolute;
      left: 10px; right: 10px; bottom: 0;
      height: 69px;
      border: 4px solid #2f6f2a;
      border-radius: 8px 8px 15px 15px;
      background:
        linear-gradient(90deg, transparent 48%, rgba(47,111,42,.43) 49% 52%, transparent 53%),
        linear-gradient(180deg, rgba(255,255,255,.62), rgba(181,228,204,.6));
      box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 10px 0 #275d25, 0 17px 24px rgba(45,98,33,.22);
    }

    .greenhouse-logo::before {
      content: "";
      position: absolute;
      width: 65px;
      height: 65px;
      left: 50%;
      top: -38px;
      transform: translateX(-50%) rotate(45deg);
      border: 4px solid #2f6f2a;
      border-radius: 11px 5px 0 5px;
      background: rgba(231,249,238,.6);
      z-index: -1;
    }

    .greenhouse-logo::after {
      content: "🌱";
      position: absolute;
      inset: 11px 0 auto;
      font-size: 40px;
      line-height: 1;
      filter: drop-shadow(0 4px 2px rgba(38,92,33,.12));
    }

    h1 {
      margin: 0;
      color: #245321;
      font-size: clamp(27px, 5vw, 34px);
      line-height: 1.08;
      letter-spacing: -.4px;
      text-shadow: 0 2px 0 rgba(255,255,255,.72);
    }

    .subtitle {
      max-width: 390px;
      margin: 9px auto 0;
      color: #536857;
      font-size: 14.5px;
      line-height: 1.6;
    }

    .farm-items {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 2;
    }

    .plant-pot {
      position: absolute;
      bottom: 20px;
      width: 40px;
      height: 33px;
      border-radius: 5px 5px 12px 12px;
      background: linear-gradient(90deg, #a45b32, #d88a4b 45%, #ad6034);
      box-shadow: 0 7px 0 #7c452b, 0 12px 12px rgba(63,78,39,.14);
    }

    .plant-pot::before {
      content: "";
      position: absolute;
      left: 16px;
      bottom: 28px;
      width: 9px;
      height: 38px;
      border-radius: 99px;
      background: #3d8234;
      box-shadow: -12px -5px 0 -2px #68a84a, 12px -14px 0 -2px #68a84a, -11px -23px 0 -2px #79b756;
      transform: rotate(2deg);
    }

    .plant-left { left: 29px; transform: scale(.85) rotate(-5deg); }
    .plant-right { right: 29px; transform: scale(.72) rotate(6deg); }

    .search-shell {
      position: relative;
      padding: 20px;
      border: 1px solid rgba(121, 151, 77, .2);
      border-radius: 24px;
      background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(247,250,238,.96));
      box-shadow: var(--shadow-md), inset 0 1px rgba(255,255,255,.95);
      transform: translateZ(10px);
    }

    .search-shell::before {
      content: "";
      position: absolute;
      left: 18px; right: 18px; bottom: -7px;
      height: 9px;
      z-index: -1;
      border-radius: 0 0 18px 18px;
      background: #cdb182;
      opacity: .65;
    }

    .field-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 9px;
    }

    label {
      display: block;
      margin: 0;
      color: #304b32;
      font-weight: 700;
      font-size: 14px;
    }

    .required-chip {
      padding: 4px 8px;
      border-radius: 999px;
      color: #72541e;
      background: #fff3cc;
      font-size: 10px;
      font-weight: 700;
    }

    .input-wrap { position: relative; }
    .input-wrap svg {
      position: absolute;
      left: 18px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--leaf-600);
      z-index: 2;
    }

    input {
      width: 100%;
      height: 61px;
      padding: 0 18px 0 52px;
      border: 2px solid #d8e3c7;
      border-bottom-width: 4px;
      border-radius: 16px;
      outline: none;
      color: #263629;
      font-size: 17px;
      font-weight: 600;
      background: #fffef9;
      box-shadow: inset 0 3px 8px rgba(77, 98, 55, .055), 0 5px 10px rgba(74,94,54,.055);
      transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }

    input::placeholder { color: #a7afa7; font-weight: 400; }
    input:hover { border-color: #c5d8aa; }
    input:focus {
      border-color: var(--leaf-500);
      box-shadow: 0 0 0 5px rgba(87,155,47,.13), inset 0 2px 5px rgba(77,98,55,.04);
      transform: translateY(-1px);
    }

    .primary-btn {
      width: 100%;
      min-height: 59px;
      margin-top: 17px;
      padding: 0 20px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      color: white;
      border: 0;
      border-radius: 17px;
      background: linear-gradient(145deg, #66b83f, #377c29);
      box-shadow: var(--shadow-button), inset 0 1px rgba(255,255,255,.28);
      font-size: 17px;
      font-weight: 800;
      cursor: pointer;
      transition: transform .14s ease, box-shadow .14s ease, filter .2s ease;
    }

    .primary-btn::before {
      content: "🔎";
      font-size: 19px;
      filter: drop-shadow(0 2px 0 rgba(0,0,0,.12));
    }

    .primary-btn:hover:not(:disabled) {
      filter: brightness(1.035);
      transform: translateY(-2px);
      box-shadow: 0 10px 0 #2b651f, 0 18px 30px rgba(45,98,33,.25);
    }

    .primary-btn:active:not(:disabled) {
      transform: translateY(6px);
      box-shadow: 0 2px 0 #2b651f, 0 8px 15px rgba(45,98,33,.18);
    }

    .primary-btn:disabled { opacity: .68; cursor: wait; filter: grayscale(.15); }

    .help {
      margin: 16px 0 0;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
      text-align: center;
      color: #7c887d;
      font-size: 11.5px;
    }

    .help::before { content: "💡"; }

    .trust-row {
      margin: 21px 2px 0;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }

    .trust-item {
      padding: 10px 5px;
      border: 1px solid rgba(91,133,62,.13);
      border-radius: 13px;
      color: #607063;
      background: rgba(245,250,236,.78);
      text-align: center;
      font-size: 10.5px;
      font-weight: 600;
    }

    .trust-item b { display: block; margin-bottom: 3px; font-size: 17px; line-height: 1; }
    #output { margin-top: 27px; }

    .loading {
      padding: 28px 12px;
      text-align: center;
      color: var(--muted);
      border-radius: 20px;
      background: rgba(247,250,238,.7);
    }

    .spinner {
      position: relative;
      width: 42px;
      height: 42px;
      margin: 0 auto 12px;
      border: 5px solid #dcebc8;
      border-top-color: var(--leaf-500);
      border-radius: 50%;
      animation: spin .75s linear infinite;
    }

    .spinner::after {
      content: "🌱";
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      font-size: 14px;
      animation: counter-spin .75s linear infinite;
    }

    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes counter-spin { to { transform: rotate(-360deg); } }

    .summary {
      padding: 17px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 11px;
      border: 1px solid #b9d898;
      border-bottom: 4px solid #a2c67c;
      border-radius: 18px;
      background: linear-gradient(145deg, #f4fbe9, #e3f2ce);
      color: #315d2b;
      box-shadow: 0 8px 18px rgba(69,111,45,.1);
      font-weight: 800;
    }

    .summary::before { content: "📦"; font-size: 23px; }

    .count {
      min-width: 37px;
      height: 37px;
      padding: 0 10px;
      display: grid;
      place-items: center;
      color: white;
      background: linear-gradient(145deg, #6ab842, #3c7d2e);
      border: 2px solid rgba(255,255,255,.56);
      border-radius: 13px;
      box-shadow: 0 5px 0 #2f6827;
    }

    .updated {
      margin: 12px 0 22px;
      text-align: center;
      color: var(--muted);
      font-size: 11.5px;
    }

    .section-title {
      margin: 22px 0 12px;
      display: flex;
      align-items: center;
      gap: 8px;
      color: #305d2a;
      font-size: 17px;
    }

    .section-title::before { content: "🌿"; font-size: 18px; }
    .section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #b8cf9b, transparent); }

    .parcel {
      position: relative;
      padding: 20px;
      margin-bottom: 20px;
      border: 1px solid rgba(126, 145, 100, .23);
      border-radius: 21px;
      background: linear-gradient(145deg, #fffefb, #f7f5e9);
      box-shadow: var(--shadow-md), inset 0 1px rgba(255,255,255,.95);
      transition: transform .2s ease, box-shadow .2s ease;
      overflow: hidden;
    }

    .parcel::before {
      content: "";
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 6px;
      background: linear-gradient(180deg, #79b354, #3c7a2f);
    }

    .parcel::after {
      content: "";
      position: absolute;
      top: 13px;
      right: 13px;
      width: 45px;
      height: 45px;
      opacity: .05;
      background: radial-gradient(circle at 50% 65%, #315f2c 0 13%, transparent 14%), radial-gradient(ellipse at 33% 38%, #315f2c 0 24%, transparent 25%), radial-gradient(ellipse at 68% 32%, #315f2c 0 26%, transparent 27%);
      transform: rotate(-22deg);
    }

    .parcel:hover { transform: translateY(-2px); box-shadow: 0 19px 34px rgba(63,79,46,.15), 0 7px 0 rgba(113,85,45,.09); }

    .parcel-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      margin-bottom: 14px;
    }

    .date-chip, .status {
      padding: 6px 11px;
      border-radius: 999px;
      font-size: 11.5px;
      font-weight: 700;
      box-shadow: inset 0 -2px rgba(0,0,0,.045);
    }

    .date-chip { color: #315e64; background: #dff3ed; border: 1px solid #c1e0d8; }
    .status { color: #2f6b27; background: #e7f4d7; border: 1px solid #c9e1ae; }
    .status.preparing { color: #99551f; background: #fff0d5; border-color: #f2d09b; }

    .info {
      padding: 15px;
      margin-bottom: 14px;
      border: 1px solid rgba(139,154,115,.13);
      border-radius: 15px;
      background:
        linear-gradient(rgba(110,136,88,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110,136,88,.035) 1px, transparent 1px),
        #faf9f2;
      background-size: 18px 18px;
    }

    .row { display: flex; justify-content: space-between; gap: 15px; font-size: 14px; }
    .row + .row { margin-top: 9px; padding-top: 9px; border-top: 1px dashed rgba(106,123,91,.15); }
    .row span:first-child { color: var(--muted); flex-shrink: 0; }
    .row strong { text-align: right; color: #2a382c; word-break: break-word; }

    .tracking {
      padding: 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      border: 2px solid #d6dfc7;
      border-bottom-width: 4px;
      border-radius: 15px;
      background: white;
      transition: .2s;
    }

    .tracking.copied { background: #eff9e2; border-color: var(--leaf-500); transform: scale(1.01); }
    .tracking-label { color: var(--muted); font-size: 11px; }
    .tracking-number { margin-top: 2px; font-family: Consolas, monospace; color: #28482a; font-weight: 900; font-size: 16px; word-break: break-all; }

    .icon-btn {
      width: 44px;
      height: 44px;
      flex-shrink: 0;
      display: grid;
      place-items: center;
      border: 1px solid #bcd69f;
      border-bottom: 4px solid #a4c37f;
      border-radius: 13px;
      color: var(--leaf-600);
      background: linear-gradient(145deg, #f5fbe9, #e7f3d7);
      cursor: pointer;
      transition: transform .12s ease, border-bottom-width .12s ease;
    }

    .icon-btn:active { transform: translateY(3px); border-bottom-width: 1px; }

    .cod {
      margin-top: 13px;
      padding: 12px 13px;
      border: 1px solid #efd095;
      border-left: 5px solid var(--sun);
      border-radius: 12px;
      color: #805522;
      background: #fff7df;
      font-size: 14px;
      font-weight: 800;
    }

    .cod::before { content: "💰 "; }

    .spx-btn {
      width: 100%;
      min-height: 53px;
      margin-top: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border-radius: 15px;
      color: white;
      background: linear-gradient(145deg, #f59a48, #d56825);
      text-decoration: none;
      font-weight: 800;
      box-shadow: 0 7px 0 #ad4d1d, 0 13px 22px rgba(194,91,32,.2);
      transition: transform .13s ease, box-shadow .13s ease;
    }

    .spx-btn::before { content: "🚚"; }
    .spx-btn:hover { transform: translateY(-1px); }
    .spx-btn:active { transform: translateY(5px); box-shadow: 0 2px 0 #ad4d1d, 0 7px 13px rgba(194,91,32,.16); }

    .empty-tracking {
      padding: 16px;
      border: 1px solid #efd09e;
      border-bottom: 4px solid #e2bd7e;
      border-radius: 14px;
      color: #8a5624;
      background: #fff6e2;
      text-align: center;
      font-size: 14px;
    }

    .empty-tracking::before { content: "🧺"; display: block; margin-bottom: 5px; font-size: 22px; }

    .history-toggle, .secondary-btn {
      width: 100%;
      min-height: 51px;
      margin-top: 13px;
      border: 1px solid #cad6b9;
      border-bottom: 4px solid #b6c99a;
      border-radius: 15px;
      color: #405842;
      background: linear-gradient(145deg, #fffef9, #f2f6e9);
      box-shadow: 0 7px 15px rgba(62,82,47,.07);
      font-weight: 700;
      cursor: pointer;
      transition: transform .12s ease, border-bottom-width .12s ease;
    }

    .history-toggle::before { content: "🗂️ "; }
    .secondary-btn:hover { background: #f0f6e7; }
    .history-toggle:active, .secondary-btn:active { transform: translateY(3px); border-bottom-width: 1px; }

    .history { display: none; }
    .history.show { display: block; animation: reveal .24s ease both; }
    @keyframes reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

    .message {
      padding: 27px 19px;
      border: 1px solid #efc8bd;
      border-bottom: 5px solid #dfb0a3;
      border-radius: 20px;
      background: linear-gradient(145deg, #fffefa, #fff4ef);
      text-align: center;
      box-shadow: 0 12px 23px rgba(112,65,45,.08);
    }

    .message-icon {
      width: 64px;
      height: 64px;
      margin: 0 auto 14px;
      display: grid;
      place-items: center;
      color: #b4433e;
      background: linear-gradient(145deg, #fff1ec, #f6d9d2);
      border: 2px solid #efc1b7;
      border-bottom-width: 6px;
      border-radius: 20px;
      font-size: 25px;
      font-weight: 900;
    }

    .message h2 { margin: 0 0 7px; color: #58362f; font-size: 19px; }
    .message p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

    #toast {
      position: fixed;
      left: 50%;
      bottom: 24px;
      transform: translate(-50%, 20px);
      padding: 12px 18px;
      color: white;
      background: #284a2c;
      border: 1px solid rgba(255,255,255,.22);
      border-bottom: 5px solid #19361d;
      border-radius: 14px;
      opacity: 0;
      visibility: hidden;
      transition: .2s;
      z-index: 999;
      box-shadow: 0 15px 32px rgba(29,57,32,.28);
      font-weight: 700;
    }

    #toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

    @media (max-width: 560px) {
      body { padding: 12px 9px 60px; }
      .panel { padding: 0 16px 25px; border-radius: 29px; }
      .hero { margin: 0 -16px 22px; min-height: 231px; padding: 24px 17px 22px; border-radius: 28px 28px 24px 24px; }
      .logo-stage { transform: scale(.9); margin-top: -4px; margin-bottom: 7px; }
      .plant-left { left: 12px; }
      .plant-right { right: 12px; }
      .search-shell { padding: 17px 14px; border-radius: 20px; }
      .trust-row { gap: 5px; }
      .trust-item { padding: 9px 2px; font-size: 9.5px; }
      .parcel { padding: 17px 15px 17px 18px; }
      .row { font-size: 13px; }
    }

    @media (max-width: 380px) {
      .hero-topline { font-size: 10.5px; }
      .subtitle { font-size: 13.5px; }
      .trust-item b { font-size: 15px; }
      .parcel-head { align-items: flex-start; }
      .date-chip, .status { font-size: 10.5px; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    }

/* ===== Production dashboard additions ===== */
.dashboard-grid {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.dashboard-card {
  min-width: 0;
  padding: 13px 8px 12px;
  border: 1px solid rgba(94, 135, 68, .16);
  border-bottom: 4px solid rgba(104, 148, 73, .2);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(239,247,224,.9));
  box-shadow: 0 8px 16px rgba(59, 91, 45, .07);
  text-align: center;
}

.dashboard-card b {
  display: block;
  margin-bottom: 3px;
  color: #2f6b2a;
  font-size: 20px;
  line-height: 1.1;
  word-break: break-word;
}

.dashboard-card span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.dashboard-card.time b { font-size: 13px; line-height: 1.35; }

.api-note {
  margin-top: 11px;
  color: #768178;
  font-size: 11px;
  text-align: center;
}

.spx-btn.disabled {
  pointer-events: none;
  filter: grayscale(.55);
  opacity: .68;
}

@media (max-width: 430px) {
  .dashboard-grid { gap: 6px; }
  .dashboard-card { padding: 11px 5px 10px; }
  .dashboard-card b { font-size: 17px; }
  .dashboard-card.time b { font-size: 11px; }
  .dashboard-card span { font-size: 9.5px; }
}

