      :root {
        --bg: #f3f6ef;
        --surface: rgba(255, 255, 255, 0.82);
        --surface-strong: #ffffff;
        --text: #202421;
        --muted: #72786f;
        --line: rgba(32, 36, 33, 0.08);
        --accent: #8ce56f;
        --accent-strong: #52c75f;
        --accent-soft: #e8fadc;
        --shadow: 0 24px 70px rgba(54, 73, 45, 0.16);
        --shadow-soft: 0 12px 34px rgba(54, 73, 45, 0.10);
        --radius-lg: 34px;
        --radius-md: 24px;
        --radius-sm: 18px;
      }

      [data-theme='dark'] {
        --bg: #111511;
        --surface: rgba(31, 36, 31, 0.78);
        --surface-strong: #1c221d;
        --text: #f4f8ef;
        --muted: #a7b0a2;
        --line: rgba(244, 248, 239, 0.1);
        --accent: #9cf071;
        --accent-strong: #68d46b;
        --accent-soft: rgba(156, 240, 113, 0.16);
        --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
        --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.24);
      }

      * { box-sizing: border-box; }
      html { width: 100%; overflow-x: hidden; background: var(--bg); }
      body {
        width: 100%;
        overflow-x: hidden;
        min-width: 320px;
        min-height: 100vh;
        margin: 0;
        color: var(--text);
        font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
        background:
          radial-gradient(circle at 12% 4%, rgba(140, 229, 111, 0.34), transparent 300px),
          radial-gradient(circle at 100% 12%, rgba(133, 194, 255, 0.22), transparent 330px),
          radial-gradient(circle at 72% 90%, rgba(255, 214, 124, 0.18), transparent 320px),
          var(--bg);
        transition: background 0.25s ease, color 0.25s ease;
      }

      button, input, select { font: inherit; }
      button, label { cursor: pointer; -webkit-tap-highlight-color: transparent; }
      button { border: 0; }
      input, select { color: var(--text); }

      .app {
        position: relative;
        padding: 0 20px;
        width: min(480px, 100%);
        min-height: 100vh;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        overflow-x: hidden;
      }
      .app * { box-sizing: border-box; }

      .top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 18px;
        width: 100%;
        padding-top: calc(var(--safe-area-inset-top, 0px) + 30px);
      }

      .editable { cursor: text; }
      .editable:focus { outline: none; }

      .report-card .editable {
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0.06em 0.08em 0.06em;
      }
      .report-card .editable:focus {
        background: transparent;
        box-shadow: none;
      }

      .logo-link {
        text-decoration: none;
        color: inherit;
        display: block;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }
      .logo-link:active {
        transform: scale(0.96);
      }

      .title-block p,
      .label {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
        font-weight: 750;
      }

      h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
      h1 { 
        font-size: clamp(28px, 7vw, 46px); 
        line-height: 0.96;
        text-shadow: 0 4px 12px rgba(0,0,0,0.12);
        background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
      [data-theme='dark'] h1 {
        text-shadow: 0 4px 16px rgba(0,0,0,0.4);
        background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
      h2 { font-size: clamp(28px, 8vw, 44px); line-height: 1; }
      h3 { font-size: 22px; line-height: 1.05; }

      .theme-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 999px;
        color: var(--text);
        background: var(--surface-strong);
        box-shadow: var(--shadow-soft);
      }

      .theme-dot {
        position: relative;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #ffd85a;
        box-shadow: 0 0 0 5px rgba(255, 216, 90, .18);
      }
      .theme-dot::after {
        position: absolute;
        right: -2px;
        top: -2px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--surface-strong);
        content: "";
        opacity: 0;
        transition: opacity .2s ease;
      }
      [data-theme='dark'] .theme-dot {
        background: #f4f8ef;
        box-shadow: 0 0 0 5px rgba(244, 248, 239, .12);
      }
      [data-theme='dark'] .theme-dot::after { opacity: 1; }

      .screen { display: none; animation: rise 0.22s ease both; }
      .screen.active { display: block; }
      .hidden { display: none !important; }
      @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

      .bottom-nav {
        position: fixed;
        left: 50%;
        bottom: max(14px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
        z-index: 20;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        width: min(448px, calc(100% - 32px));
        padding: 9px;
        border: 1px solid var(--line);
        border-radius: 30px;
        background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
        box-shadow: var(--shadow);
        transform: translateX(-50%);
        backdrop-filter: blur(22px);
      }

      .nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 54px;
        border-radius: 22px;
        color: var(--muted);
        background: transparent;
        font-size: 12px;
        font-weight: 800;
        padding: 4px;
      }
      .nav-btn.active {
        color: #173018;
        background: linear-gradient(135deg, var(--accent), #d9ff87);
      }
      .nav-btn i {
        display: block;
        width: 24px;
        height: 24px;
        background: currentColor;
      }
      .icon-weather {
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 6.34l-1.41 1.41'/%3E%3C/svg%3E") center / contain no-repeat;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 6.34l-1.41 1.41'/%3E%3C/svg%3E") center / contain no-repeat;
      }
      .icon-track {
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='19' r='3'/%3E%3Cpath d='M9 19h8.5a3.5 3.5 0 1 0 0-7h-11a3.5 3.5 0 1 1 0-7H15'/%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='19' r='3'/%3E%3Cpath d='M9 19h8.5a3.5 3.5 0 1 0 0-7h-11a3.5 3.5 0 1 1 0-7H15'/%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
      }
      .icon-card {
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E") center / contain no-repeat;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E") center / contain no-repeat;
      }
      .icon-contacts {
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E") center / contain no-repeat;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E") center / contain no-repeat;
      }
      .icon-youtube {
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 2-2h14a2 2 0 0 1 2 2 24.12 24.12 0 0 1 0 10 2 2 0 0 1-2 2h-14a2 2 0 0 1-2-2z'/%3E%3Cpath d='m10 15 5-3-5-3z'/%3E%3C/svg%3E") center / contain no-repeat;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 2-2h14a2 2 0 0 1 2 2 24.12 24.12 0 0 1 0 10 2 2 0 0 1-2 2h-14a2 2 0 0 1-2-2z'/%3E%3Cpath d='m10 15 5-3-5-3z'/%3E%3C/svg%3E") center / contain no-repeat;
      }
      .icon-telegram {
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E") center / contain no-repeat;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E") center / contain no-repeat;
      }
      .icon-copy {
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") center / contain no-repeat;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") center / contain no-repeat;
      }
      .icon-check {
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
      }
      .nav-btn span { display: none; }

      .contacts-screen {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 40px;
      }
      .contacts-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 24px;
        background: linear-gradient(135deg, var(--accent), #d9ff87);
        border-radius: 30px;
        display: grid;
        place-items: center;
        box-shadow: 0 20px 40px rgba(140, 229, 111, 0.2);
      }
      .contacts-logo i {
        width: 60px;
        height: 60px;
        background: #173018;
      }
      .contacts-logo img {
        width: 100%;
        height: 100%;
        -o-object-fit: contain;
           object-fit: contain;
        border-radius: 30px;
      }
      .contacts-title {
        font-size: 14px;
        font-weight: 800;
        text-transform: none;
        letter-spacing: 0.02em;
        margin-bottom: 12px;
        color: var(--muted);
      }
      .email-field {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 24px 8px 8px;
        border: 1px solid var(--line);
        border-radius: 100px;
        background: var(--surface-strong);
        color: var(--text);
        text-decoration: none;
        font-weight: 700;
        transition: all 0.2s ease;
        margin-bottom: 60px;
      }
      .email-field:hover {
        border-color: var(--accent);
        background: var(--accent-soft);
      }
      .email-icon-circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--accent);
        display: grid;
        place-items: center;
        color: #173018;
      }
      .social-row {
        display: flex;
        gap: 20px;
        justify-content: center;
      }
      .social-circle-btn {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: var(--surface-strong);
        display: grid;
        place-items: center;
        color: var(--text);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 1px solid var(--line);
      }
      .social-circle-btn:hover {
        transform: scale(1.1);
        background: var(--accent);
        color: #173018;
        border-color: var(--accent);
      }
      .social-circle-btn i {
        width: 28px;
        height: 28px;
        background: currentColor;
      }
      .social-circle-btn.tg {
        background: #24A1DE;
        color: #fff;
        border-color: #24A1DE;
      }
      .social-circle-btn.tg i {
        transform: translate(-1.5px, 1px);
      }
      .social-circle-btn.yt {
        background: #FF0000;
        color: #fff;
        border-color: #FF0000;
      }
      .social-circle-btn.tg:hover,
      .social-circle-btn.yt:hover {
        background: #fff;
        transform: scale(1.1);
      }
      .social-circle-btn.tg:hover { color: #24A1DE; border-color: #24A1DE; }
      .social-circle-btn.yt:hover { color: #FF0000; border-color: #FF0000; }

      .grid { 
        display: grid; 
        gap: 14px; 
        width: 100%; 
        min-width: 0; 
      }
      .grid > * { min-width: 0; }
      .screen, .grid, .panel { min-width: 0; }
      .panel {
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: var(--surface);
        box-shadow: var(--shadow-soft);
        backdrop-filter: blur(22px);
      }
      .pad { padding: 18px; }
      .soft { background: var(--surface-strong); }

      .action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
      .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        white-space: normal;
        min-height: 50px;
        padding: 0 16px;
        border-radius: 999px;
        color: #173018;
        background: linear-gradient(135deg, var(--accent), #dfff84);
        font-weight: 850;
        box-shadow: 0 10px 26px rgba(82, 199, 95, 0.22);
      }
      .btn.secondary {
        color: #202421;
        background: var(--surface-strong);
        box-shadow: inset 0 0 0 1px var(--line);
      }
      .export-status {
        min-height: 20px;
        margin: 8px 4px 0;
        color: var(--muted);
        font-size: 12px;
        font-weight: 750;
        line-height: 1.35;
        text-align: center;
      }
      .export-status.success { color: var(--accent-strong); }
      .export-status.error { color: #d94b4b; }
      .location-status {
        min-height: 18px;
        margin: 8px 4px 0;
        color: var(--muted);
        font-size: 12px;
        font-weight: 750;
        line-height: 1.35;
        text-align: center;
      }
      .location-status.error { color: #d94b4b; }
      [data-theme='dark'] .btn.secondary { color: #f4f8ef; }
      .btn-icon {
        position: relative;
        display: inline-grid;
        place-items: center;
        width: 22px;
        height: 22px;
        margin-right: 6px;
        border-radius: 8px;
        background: rgba(23, 48, 24, .12);
        vertical-align: middle;
      }
      .btn-icon.gps::before {
        width: 9px;
        height: 9px;
        border: 2px solid currentColor;
        border-radius: 50%;
        content: "";
      }
      .btn-icon.gps::after {
        position: absolute;
        inset: 3px;
        border: 1px solid currentColor;
        border-radius: 50%;
        content: "";
        opacity: .35;
      }
      .btn-icon.map::before {
        width: 12px;
        height: 12px;
        border: 2px solid currentColor;
        border-radius: 50% 50% 50% 3px;
        content: "";
        transform: rotate(-45deg);
      }

      .empty {
        display: grid;
        gap: 16px;
        min-height: 420px;
        align-content: center;
        text-align: left;
      }
      .empty-visual {
        position: relative;
        height: 178px;
        border-radius: 30px;
        overflow: hidden;
        background:
          linear-gradient(135deg, rgba(140, 229, 111, 0.75), rgba(201, 247, 255, 0.8)),
          linear-gradient(0deg, rgba(255,255,255,.2), rgba(255,255,255,.2));
      }
      .empty-visual::before {
        position: absolute;
        right: -22px;
        bottom: -38px;
        width: 220px;
        height: 130px;
        border-radius: 50%;
        content: "";
        background: rgba(255,255,255,.45);
      }
      .empty-visual::after {
        position: absolute;
        left: 28px;
        top: 42px;
        width: 130px;
        height: 70px;
        border-radius: 999px;
        content: "";
        border: 10px solid rgba(23, 48, 24, .45);
        border-left-color: transparent;
        border-bottom-color: transparent;
        transform: rotate(-18deg);
      }

      .map-picker {
        position: relative;
        height: clamp(240px, 40vh, 420px);
        min-height: 240px;
        overflow: hidden;
        border-radius: 26px;
        background: #a8cda7;
        z-index: 1;
        flex-shrink: 0;
      }
      #mapContainer {
        width: 100%;
        height: 100%;
        border-radius: 30px;
        filter: saturate(1.6) contrast(1.1) brightness(0.98);
      }
      .pin {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 28px;
        height: 28px;
        border: 6px solid #fff;
        border-radius: 50% 50% 50% 4px;
        background: var(--accent-strong);
        box-shadow: 0 8px 24px rgba(0,0,0,.2);
        transform: translate(-50%, -100%) rotate(-45deg);
        z-index: 1000;
        pointer-events: none;
      }
      .pin::after {
        position: absolute;
        inset: 4px;
        border-radius: 50%;
        background: #fff;
        content: "";
      }
      .modal {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: max(16px, env(safe-area-inset-top)) 16px 16px;
        background: rgba(12, 18, 12, .65);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        overscroll-behavior: contain;
      }
      .modal-card {
        width: min(560px, 100%);
        max-height: calc(100vh - 40px);
        margin: 0;
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 34px;
        background: var(--surface-strong);
        box-shadow: 0 24px 80px rgba(0,0,0,0.5);
        position: relative;
        display: flex;
        flex-direction: column;
        animation: modalSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      }
      @keyframes modalSlideDown {
        from { transform: translateY(-20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
      }
      .modal-head {
        display: flex;
        align-items: start;
        justify-content: space-between;
        gap: 12px;
      }
      .close-btn {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        flex: 0 0 auto;
        border-radius: 16px;
        color: var(--text);
        background: var(--accent-soft);
        font-size: 22px;
        font-weight: 900;
      }

      .weather-head {
        display: grid;
        gap: 14px;
        min-width: 0;
      }
      .weather-head > * { min-width: 0; }
      .weather-head > .grid {
        width: 100%;
        max-width: 100%;
        grid-template-columns: minmax(0, 1fr);
        overflow: hidden;
      }
      .weather-head .btn { min-width: 0; }
      .advice-grid { display: grid; gap: 14px; }
      .current-card {
        position: relative;
        overflow: hidden;
        min-height: 198px;
        color: #173018;
        background: linear-gradient(145deg, #f6ffe9, #b6f0a2 58%, #93d8ff);
      }
      .current-card::after {
        position: absolute;
        right: -62px;
        bottom: -78px;
        width: 170px;
        height: 170px;
        border-radius: 50%;
        background: rgba(255,255,255,.44);
        content: "";
      }
      .temp { font-size: clamp(58px, 18vw, 86px); line-height: .84; letter-spacing: -0.08em; }
      .weather-tiles { 
        display: grid; 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
        gap: 12px; 
        width: 100%;
      }
      .tile {
        position: relative;
        min-height: 124px;
        padding: 16px;
        border-radius: var(--radius-md);
        background: var(--surface-strong);
        box-shadow: var(--shadow-soft);
        min-width: 0;
        overflow: hidden;
      }
      .tile-action {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }
      .panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
      }
      .copy-btn {
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        border-radius: 10px;
        background: transparent;
        color: var(--text-muted);
        border: 1px solid var(--line);
        transition: all 0.2s;
        cursor: pointer;
      }
      .copy-btn i {
        display: block;
        width: 18px;
        height: 18px;
        background: currentColor;
      }
      .copy-btn:hover { 
        background: var(--surface-strong); 
        color: var(--text);
        border-color: var(--accent);
      }
      .copy-btn:active { transform: scale(0.92); }
      .copy-btn.success { border-color: #1e6f2c; color: #1e6f2c; }

      /* Стили для переключателя (Toggle) */
      .toggle {
        position: relative;
        display: inline-block;
        width: 44px;
        height: 24px;
        flex-shrink: 0;
      }
      .toggle input {
        opacity: 0;
        width: 0;
        height: 0;
      }
      .toggle-slider {
        position: absolute;
        cursor: pointer;
        inset: 0;
        background-color: var(--line);
        transition: .3s;
        border-radius: 24px;
      }
      .toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .3s;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
      }
      input:checked + .toggle-slider {
        background-color: var(--accent);
      }
      input:focus + .toggle-slider {
        box-shadow: 0 0 1px var(--accent);
      }
      input:checked + .toggle-slider:before {
        transform: translateX(20px);
      }

      /* Стили для индикации загрузки (Skeleton) */
      .loading .skeleton {
        position: relative;
        overflow: hidden;
        background: rgba(0,0,0,0.05) !important;
        color: transparent !important;
        border-color: transparent !important;
        pointer-events: none;
      }
      [data-theme="dark"] .loading .skeleton {
        background: rgba(255,255,255,0.05) !important;
      }
      .loading .skeleton::after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
        background: linear-gradient(
          90deg,
          rgba(255, 255, 255, 0) 0,
          rgba(255, 255, 255, 0.2) 20%,
          rgba(255, 255, 255, 0.4) 60%,
          rgba(255, 255, 255, 0)
        );
        animation: shimmer 1.5s infinite;
        content: "";
      }
      @keyframes shimmer {
        100% { transform: translateX(100%); }
      }
      .loading #currentTemp, .loading .tile strong, .loading .hour-temp {
        width: 80px;
        height: 1.2em;
        border-radius: 8px;
        display: block;
      }
      .loading #currentSummary, .loading #currentPlace, .loading .tile p, .loading .hour-card p {
        width: 140px;
        height: 1.2em;
        margin-top: 8px;
        border-radius: 4px;
        display: block;
      }
      .loading #kitAdvice, .loading #rideAdvice {
        width: 100%;
        height: 1.4em;
        border-radius: 6px;
        display: block;
      }
      .round-icon {
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        flex: 0 0 auto;
        border-radius: 16px;
        color: #173018;
        background: var(--accent);
        font-size: 22px;
        font-weight: 900;
      }
      .refresh-icon {
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 2;
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        border-radius: 18px;
        color: #173018;
        background: rgba(255,255,255,.72);
        box-shadow: 0 10px 24px rgba(36, 67, 37, .12);
        font-size: 23px;
        font-weight: 900;
        backdrop-filter: blur(14px);
      }
      .tile small, .route-card small {
        display: block;
        margin-bottom: 8px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
      }
      .tile strong {
        display: block;
        font-size: 24px;
        line-height: 1;
      }
      .tile p, .route-card p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }

      .hourly {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 132px;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
      }
      .hour-card {
        padding: 14px;
        border-radius: 24px;
        background: var(--surface-strong);
        box-shadow: var(--shadow-soft);
      }
      .promo-tile {
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border: 1px solid var(--accent-soft);
      }
      .promo-tile:active {
        transform: scale(0.97);
      }
      .hour-label {
        display: block;
        margin-bottom: 8px;
        line-height: 1.15;
      }
      .hour-temp {
        display: block;
        margin-bottom: 10px;
      }

      .form-grid { display: grid; gap: 10px; }
      .field {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-height: 48px;
        border: 1px solid var(--line);
        border-radius: 18px;
        outline: none;
        background: var(--surface-strong);
        padding: 0 14px;
        font-size: 15px;
        -webkit-appearance: none;
        -moz-appearance: none;
             appearance: none;
      }
      
      .progress-bar {
        display: none;
        width: 100%;
        height: 8px;
        background: var(--line);
        border-radius: 4px;
        overflow: hidden;
        margin: 10px 0;
      }
      .progress-fill {
        width: 0%;
        height: 100%;
        background: var(--accent);
        transition: width 0.3s ease;
      }
      .loading .progress-bar { display: block; }
      .chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
      .chip {
        min-height: 44px;
        border-radius: 999px;
        color: var(--text);
        background: var(--surface-strong);
        box-shadow: inset 0 0 0 1px var(--line);
        font-size: 13px;
        font-weight: 800;
      }
      .chip.active { color: #173018; background: var(--accent); }

      .route-list { display: grid; gap: 10px; }
      .route-card {
        display: grid;
        grid-template-columns: 54px 1fr;
        gap: 12px;
        padding: 12px;
        border-radius: 24px;
        background: var(--surface-strong);
      }
      .route-num {
        display: grid;
        place-items: center;
        width: 54px;
        height: 54px;
        border-radius: 18px;
        color: #173018;
        background: var(--accent-soft);
        font-weight: 900;
      }
      .route-num.easy { background: #d9fdd0; color: #1e6f2c; }
      .route-num.medium { background: #fff1b8; color: #8a6200; }
      .route-num.hard { background: #ffd9d4; color: #a82619; }
      .route-num span { display: block; font-size: 21px; line-height: 1; }
      .route-num small { margin: 0; font-size: 10px; color: currentColor; opacity: .72; }

      .report-layout { display: grid; gap: 16px; }
      .editor { display: grid; gap: 12px; }
      .report-tools { display: grid; gap: 12px; }
      .uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
      .upload {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        padding: 0 16px;
        border-radius: 999px;
        background: var(--surface-strong);
        box-shadow: inset 0 0 0 1px var(--line);
        font-size: 13px;
        font-weight: 850;
        cursor: pointer;
        transition: opacity 0.2s;
      }
      .upload:active { opacity: 0.7; }
      .upload.primary {
        justify-content: flex-start;
        min-height: 58px;
        width: 100%;
        border-radius: 22px;
        color: #173018;
        background: linear-gradient(135deg, var(--accent), #dfff84);
        box-shadow: 0 14px 30px rgba(82, 199, 95, .22);
        font-size: 15px;
      }
      .upload-icon {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        flex: 0 0 auto;
        border-radius: 12px;
        background: rgba(255,255,255,.55);
      }
      .upload-icon::before {
        width: 22px;
        height: 22px;
        background: currentColor;
        content: "";
        mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
      }
      .icon-clip {
        width: 18px;
        height: 18px;
        background: currentColor;
        mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
      }

      .card-stage { display: flex; justify-content: center; }
      .report-card {
        --card-theme-color: #ffffff;
        --card-theme-muted: rgba(255,255,255,.76);
        --card-track-primary: #ffffff;
        --card-track-secondary: rgba(255,255,255,.42);
        --card-theme-shadow: rgba(0,0,0,.46);
        --card-focus-ring: rgba(255,255,255,.28);
        position: relative;
        width: min(420px, 100%);
        overflow: hidden;
        border-radius: 34px;
        color: var(--card-theme-color);
        background: #172218; /* Тёмный фон вместо белого, чтобы не было ярких полос при загрузке */
        box-shadow: var(--shadow);
        isolation: isolate;
        transition: color 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease;
      }
      .report-card.post { aspect-ratio: 1 / 1; }
      .report-card.story { aspect-ratio: 9 / 16; max-width: 360px; }
      
      @supports not (aspect-ratio: 1 / 1) {
        .report-card { height: auto; }
        .report-card.post { padding-top: 100%; }
        .report-card.story { padding-top: calc(16 / 9 * 100%); max-width: 360px; }
        .report-card > * { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
      }
      .report-card img {
        position: absolute;
        inset: -1px; /* Чуть-чуть за границы, чтобы убрать белые полоски по краям */
        z-index: -2;
        width: calc(100% + 2px);
        height: calc(100% + 2px);
        -o-object-fit: cover;
           object-fit: cover;
        -o-object-position: center;
           object-position: center;
        filter: blur(var(--card-background-blur, 0px));
        transform: scale(var(--card-background-scale, 1));
        transition: filter 0.2s ease, transform 0.2s ease;
      }
      /* 
       * STYLE GUIDE & PRESET FILTERS (WCAG 2.1 AA Compliant)
       * Clean: #FFFFFF (40-85% Opacity) - Minimalist & Light
       * Data: #F5FAF0 -> #DCEBD7 (95-98% Opacity) - High Readability
       * Soft: #FFF0F0 -> #FFF0DC (80-90% Opacity) - Warm & Cozy atmosphere
       */
      .report-card::before {
        position: absolute;
        inset: -1px;
        z-index: -1;
        content: "";
        background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,.85));
        opacity: var(--filter-opacity, 1);
        transition: opacity 0.2s ease;
      }
      .route-svg {
        position: absolute;
        inset: 18% 6% auto;
        width: 88%;
        height: 40%;
        opacity: .9;
      }
      .card-inner {
        display: grid;
        height: 100%;
        padding: 24px;
      }
      .card-kicker { margin: 0 0 8px; color: var(--card-theme-muted); font-weight: 850; transition: color 0.24s ease, font-size 0.2s ease, text-shadow 0.24s ease; }
      .card-title { color: inherit; line-height: .92; transition: color 0.24s ease, font-size 0.2s ease, text-shadow 0.24s ease; }
      .card-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        align-self: end;
      }
      .card-stat {
        border-radius: 18px;
        background: rgba(255,255,255,.72);
        padding: 12px;
        transition: all 0.2s ease, color 0.24s ease, background-color 0.24s ease;
      }
      .card-stat span { display: block; color: var(--card-theme-muted); font-weight: 800; transition: color 0.24s ease; }
      .card-stat b { display: block; margin-top: 5px; color: var(--card-theme-color); transition: color 0.24s ease, font-size 0.2s ease, text-shadow 0.24s ease; }
      .card-foot {
        align-self: end;
        padding: 12px 0 0;
        border-top: 1px solid color-mix(in srgb, var(--card-theme-color) 16%, transparent);
        transition: border-color 0.24s ease;
      }
      .card-foot p { margin: 0; color: var(--card-theme-color); transition: color 0.24s ease, font-size 0.2s ease, text-shadow 0.24s ease; }
      .route-svg,
      .route-svg path { transition: stroke 0.24s ease, opacity 0.24s ease, filter 0.24s ease; }
      #cardPathWide { stroke: var(--card-track-primary); }
      #cardPathThin { stroke: var(--card-track-secondary); }
      .report-card .card-title,
      .report-card .card-kicker,
      .report-card .card-stat b,
      .report-card .card-foot p {
        text-shadow: 0 2px 10px var(--card-theme-shadow);
      }
      
      .layout-center { color: var(--card-theme-color); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
      .layout-center::before { background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%); }
      .layout-center .card-inner { display: contents; }
      .layout-center .card-head { display: none; }
      .layout-center .card-stats { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; order: 1; width: 100%; }
      .layout-center .card-stat { background: transparent !important; padding: 0 !important; box-shadow: none !important; display: flex; flex-direction: column; align-items: center; }
      .layout-center .card-stat span { color: var(--card-theme-muted) !important; font-weight: 600; text-transform: none; opacity: 0.9; margin-bottom: 0; }
      .layout-center .card-stat b { font-weight: 800; text-shadow: 0 2px 15px rgba(0,0,0,0.4); margin-top: -2px; }
      .layout-center .card-foot { border: 0; padding: 0; width: 100%; text-align: center; opacity: 0.7; order: 3; }
      .layout-center .route-svg { position: static; margin: 32px auto 0; width: 45%; height: 140px; opacity: 0.8; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3)); order: 2; }
      .layout-center #cardPathWide { stroke: var(--card-track-primary) !important; stroke-width: 10; }
      .layout-center #cardPathThin { display: none; }
      .layout-poster { color: var(--card-theme-color); background: #172218; }
      .layout-poster::before { background: linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.18) 55%, rgba(0,0,0,.64)); }
      .layout-poster .card-inner { position: relative; display: block; padding: 24px; }
      .layout-poster .card-head { position: absolute; left: 24px; right: 24px; bottom: 54px; }
      .layout-poster .card-kicker { 
        color: var(--card-theme-muted); 
        white-space: nowrap; 
        overflow: visible; 
        text-overflow: unset; 
        max-width: 100%;
      }
      .layout-poster .card-title { max-width: 12ch; color: var(--card-theme-color); }
      .layout-poster .card-stats { display: grid; grid-template-columns: 1fr; gap: 4px; width: 100%; }
      .layout-poster .card-stat { padding: 0; color: var(--card-theme-color); background: transparent; }
      .layout-poster .card-stat span { display: inline-block; min-width: 52px; margin-right: 8px; color: var(--card-theme-muted); vertical-align: middle; }
      .layout-poster .card-stat b { display: inline; line-height: .9; vertical-align: middle; white-space: nowrap; }
      .layout-poster .route-svg { inset: auto 7% 22%; height: 24%; width: 46%; margin-left: auto; opacity: 1; }
      .layout-poster .card-foot { position: absolute; left: 24px; bottom: 22px; border: 0; padding: 0; }
      .layout-data { color: var(--card-theme-color); }
      .layout-data::before { background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 35%, transparent 70%); }
      .layout-data .card-inner { grid-template-rows: 1fr auto; padding: 32px; align-items: end; }
      .layout-data .card-head { width: 100%; margin-bottom: 24px; text-align: left; }
      .layout-data .card-title { text-align: left; line-height: 1.1; display: flex; flex-direction: column; align-items: flex-start; }
      .layout-data .card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; }
      .layout-data .card-stat { background: transparent !important; padding: 0 !important; box-shadow: none !important; display: flex; flex-direction: column; align-items: start; }
      .layout-data .card-stat span { color: var(--card-theme-muted) !important; font-weight: 600; text-transform: none; margin-bottom: 4px; }
      .layout-data .card-stat b { font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.4); margin-top: 0; }
      .layout-data .card-foot { display: none; }
      .layout-data .route-svg { inset: 5% 5% auto auto; width: 35%; height: 25%; opacity: 0.8; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3)); }
      .layout-data #cardPathWide { stroke: var(--card-track-primary) !important; stroke-width: 10; }
      .layout-data #cardPathThin { display: none; }
      .layout-mini { color: var(--card-theme-color); background: #1a1c1a; }
       .layout-mini::before { background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 50%), linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 30%); z-index: -1; }
       .layout-mini .card-inner { grid-template-rows: 1fr auto; padding: 32px; z-index: 1; }
       .layout-mini .card-head { display: none; }
       .layout-mini .card-stats { grid-template-columns: 1fr; gap: 28px; align-self: center; justify-self: start; }
       .layout-mini .card-stat { background: transparent !important; padding: 0 !important; display: flex; flex-direction: column-reverse; gap: 4px; box-shadow: none !important; }
       .layout-mini .card-stat span { color: var(--card-theme-muted) !important; text-transform: none; font-weight: 500; letter-spacing: 0.02em; }
       .layout-mini .card-stat b { margin-top: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.4); font-weight: 700; }
       .layout-mini .route-svg { inset: 6% 6% auto auto; width: 48%; height: 38%; opacity: 1; filter: drop-shadow(0 2px 12px rgba(0,0,0,0.3)); }
       .layout-mini #cardPathWide { stroke: var(--card-track-primary) !important; stroke-width: 10; }
      .layout-mini #cardPathThin { display: none; }
      .layout-mini .card-foot { border: 0; padding: 0; text-align: right; align-self: end; }
      .layout-mini .card-kicker { color: var(--card-theme-color); font-weight: 700; line-height: 1.1; margin: 0; }
      .editable { cursor: text; }
      .editable:focus { outline: none; }

      input[type="range"] {
        accent-color: var(--accent);
        cursor: pointer;
      }

      .color-picker-shell {
        display: grid;
        gap: 14px;
        margin-top: 12px;
      }
      .color-picker-top {
        display: grid;
        grid-template-columns: minmax(88px, 108px) minmax(0, 1fr);
        gap: 12px;
        align-items: stretch;
      }
      .color-input-wrap {
        display: grid;
        gap: 8px;
      }
      .color-input-label {
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
      }
      .native-color-input {
        width: 100%;
        min-height: 84px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: var(--surface-strong);
        overflow: hidden;
        cursor: pointer;
      }
      .native-color-input::-webkit-color-swatch-wrapper { padding: 8px; }
      .native-color-input::-webkit-color-swatch { border: 0; border-radius: 14px; }
      .native-color-input::-moz-color-swatch { border: 0; border-radius: 14px; }
      .color-picker-meta {
        display: grid;
        gap: 10px;
        align-content: start;
      }
      .color-picker-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 30px;
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.01em;
        background: var(--surface-strong);
        border: 1px solid var(--line);
      }
      .color-picker-badge.good { color: #1e6f2c; background: #e1f7d8; border-color: rgba(30,111,44,.15); }
      .color-picker-badge.medium { color: #8a6200; background: #fff4cc; border-color: rgba(138,98,0,.15); }
      .color-picker-badge.low { color: #a82619; background: #ffe1dc; border-color: rgba(168,38,25,.15); }
      .color-picker-help {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.45;
      }
      .color-swatch-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
        gap: 10px;
      }
      .color-swatch {
        position: relative;
        min-height: 44px;
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 16px;
        background: var(--swatch-color);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
        cursor: pointer;
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
      }
      .color-swatch:hover,
      .color-swatch:focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(0,0,0,.12), inset 0 0 0 1px rgba(255,255,255,.18);
      }
      .color-swatch:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }
      .color-swatch.active::after {
        position: absolute;
        inset: 10px;
        border: 2px solid rgba(255,255,255,.92);
        border-radius: 10px;
        content: "";
        box-shadow: 0 0 0 1px rgba(0,0,0,.28);
      }

      .metrics-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
        margin-top: 10px;
      }
      .metric-chip {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        border-radius: 12px;
        background: var(--surface-strong);
        border: 1px solid var(--line);
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
      }
      .metric-chip.active {
        background: var(--accent-soft);
        border-color: var(--accent);
        color: #173018;
      }
      [data-theme='dark'] .metric-chip.active { color: #bef5c0; }

      @media (max-width: 520px) {
        .color-picker-top { grid-template-columns: 1fr; }
        .native-color-input { min-height: 64px; }
      }
