:root {
      --bg: #f3f7f7;
      --ink: #122127;
      --muted: #5d6b70;
      --brand: #0e8f83;
      --brand-strong: #096b62;
      --accent: #ee7f3b;
      --line: rgba(18, 33, 39, 0.1);
      --shadow: 0 20px 45px rgba(9, 41, 49, 0.12);
      --card: #ffffff;
      --danger: #c0392b;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'Manrope', sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 8% 5%, rgba(14, 143, 131, 0.15), transparent 28%),
        radial-gradient(circle at 95% 10%, rgba(238, 127, 59, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbfb 0%, var(--bg) 75%);
      min-height: 100vh;
      overflow-x: hidden;
    }

    .shell { width: min(1200px, 96%); margin: 0 auto; }

    header {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(10px);
      background: rgba(248, 251, 251, 0.85);
      border-bottom: 1px solid var(--line);
    }

    .topbar {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      padding: 14px 0;
      gap: 16px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      justify-self: start;
      text-decoration: none;
      color: var(--ink);
      font-family: 'Sora', sans-serif;
      font-weight: 700;
    }

    .brand-badge {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      background: linear-gradient(145deg, var(--brand), #0fb8a9);
      color: #fff;
      font-weight: 800;
      font-size: 0.88rem;
    }

    nav {
      display: flex;
      align-items: center;
      justify-self: center;
      justify-content: center;
      flex-wrap: nowrap;
      gap: 6px;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
    }

    nav a {
      text-decoration: none;
      color: var(--muted);
      padding: 8px 13px;
      border-radius: 999px;
      font-size: 0.9rem;
      font-weight: 600;
      white-space: nowrap;
      transition: background 0.2s, color 0.2s;
    }

    nav a:hover, nav a.active {
      background: rgba(14, 143, 131, 0.13);
      color: var(--brand-strong);
    }

    .user-area {
      display: flex;
      justify-self: end;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
      position: relative;
    }

    .user-chip {
      display: flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 7px 13px 7px 9px;
      background: var(--card);
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--ink);
      max-width: 280px;
      display: inline-flex;
      align-items: baseline;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .user-chip span strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
    }

    .user-menu-trigger {
      border: 1px solid var(--line);
      cursor: pointer;
      font-family: 'Manrope', sans-serif;
      text-align: left;
    }

    .user-menu-panel {
      position: absolute;
      top: calc(100% + 10px);
      right: 48px;
      width: min(420px, calc(100vw - 26px));
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #ffffff;
      padding: 14px;
      box-shadow: 0 20px 48px rgba(8, 37, 44, 0.18);
      z-index: 70;
      display: none;
    }

    .user-menu-panel.open {
      display: block;
    }

    .avatar {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: linear-gradient(145deg, var(--brand), #0fb8a9);
      display: grid;
      place-items: center;
      color: #fff;
      font-size: 0.75rem;
      font-weight: 800;
    }

    .btn-logout {
      border: 1px solid rgba(192, 57, 43, 0.55);
      background: rgba(192, 57, 43, 0.13);
      color: var(--danger);
      border-radius: 999px;
      padding: 7px 13px;
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s;
    }

    .btn-logout:hover { background: rgba(192, 57, 43, 0.22); border-color: rgba(192, 57, 43, 0.8); }

    .subscription-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 12px;
    }

    .subscription-label {
      font-size: 0.75rem;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 800;
      letter-spacing: 0.4px;
    }

    .subscription-top h2 {
      font-family: 'Sora', sans-serif;
      font-size: 1.05rem;
    }

    .subscription-status {
      background: rgba(238, 127, 59, 0.16);
      color: #8b3a18;
      font-size: 0.76rem;
      font-weight: 800;
      border-radius: 999px;
      padding: 5px 10px;
    }

    .subscription-status.is-active {
      background: rgba(14, 143, 131, 0.16);
      color: #0a6a5f;
    }

    .subscription-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 12px;
    }

    .sub-item {
      background: rgba(14, 143, 131, 0.06);
      border: 1px solid rgba(14, 143, 131, 0.16);
      border-radius: 10px;
      padding: 10px;
      display: grid;
      gap: 4px;
    }

    .sub-item span {
      color: var(--muted);
      font-size: 0.76rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.35px;
    }

    .sub-item strong {
      color: #173a42;
      font-size: 0.93rem;
    }

    .sub-item-name-wrapper {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .btn-edit-name {
      background: none;
      border: none;
      padding: 2px 4px;
      cursor: pointer;
      font-size: 0.9rem;
      opacity: 0;
      transition: opacity 0.2s;
      min-width: auto;
      min-height: auto;
    }

    .sub-item:hover .btn-edit-name {
      opacity: 1;
    }

    .btn-edit-name:hover {
      filter: brightness(1.2);
    }

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

    .subscription-actions select,
    .subscription-actions input {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 10px 12px;
      font-size: 0.9rem;
      font-family: 'Manrope', sans-serif;
      outline: none;
      background: #fafcfc;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .subscription-actions select:focus,
    .subscription-actions input:focus {
      border-color: rgba(14, 143, 131, 0.55);
      box-shadow: 0 0 0 4px rgba(14, 143, 131, 0.12);
    }

    @media (max-width: 1100px) {
      .topbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
      .brand { min-width: 0; }
      nav { justify-self: stretch; justify-content: flex-start; }
      .user-area { gap: 6px; }
      .user-chip { max-width: 155px; padding: 6px 10px 6px 8px; }
      .btn-logout { padding: 6px 10px; }
    }

    @media (max-width: 920px) {
      .topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
      .brand { order: 1; }
      .user-area { order: 2; margin-left: auto; }
      nav { order: 3; width: 100%; padding-bottom: 2px; }
    }

    @media (max-width: 1200px) {
      .chip-greeting { display: none; }
      .user-chip { max-width: 180px; }
    }

    @media (max-width: 768px) {
      .topbar { display: flex; align-items: flex-start; flex-direction: column; }
      .brand { width: 100%; }
      nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
      nav a { white-space: nowrap; flex: 0 0 auto; }
      .user-area { width: 100%; justify-content: space-between; margin-left: 0; }
      .user-chip { max-width: 65vw; }
      .user-menu-panel { right: 0; }
    }

    main { padding: 36px 0 64px; }

    .page-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 22px;
      flex-wrap: wrap;
    }

    .page-head h1 {
      font-family: 'Sora', sans-serif;
      font-size: clamp(1.55rem, 3vw, 2rem);
      margin-bottom: 4px;
    }

    .page-head p {
      color: var(--muted);
      font-size: 0.95rem;
    }

    .period-filters {
      display: grid;
      grid-template-columns: auto auto 1fr;
      grid-template-areas:
        'label quick calendar'
        'hint hint hint'
        'feedback feedback feedback';
      align-items: end;
      gap: 10px 14px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--card);
      padding: 12px;
      margin-bottom: 18px;
      width: 100%;
    }

    .period-filters > span {
      grid-area: label;
      color: var(--muted);
      font-size: 0.9rem;
      font-weight: 700;
      white-space: nowrap;
      align-self: center;
    }

    .period-quick {
      grid-area: quick;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: nowrap;
    }

    .period-btn {
      border: 1px solid rgba(18, 33, 39, 0.2);
      background: #ffffff;
      color: var(--ink);
      border-radius: 10px;
      padding: 8px 12px;
      font-size: 0.86rem;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    .period-btn:hover {
      background: rgba(14, 143, 131, 0.08);
      border-color: rgba(14, 143, 131, 0.28);
    }

    .period-btn.active {
      background: rgba(14, 143, 131, 0.15);
      color: var(--brand-strong);
      border-color: rgba(14, 143, 131, 0.4);
    }

    .period-btn.period-btn-secondary {
      background: #ffffff;
      border-color: rgba(18, 33, 39, 0.2);
      color: var(--ink);
    }

    .period-btn.period-btn-download {
      background: linear-gradient(135deg, var(--brand), #0fb8a9);
      border-color: rgba(14, 143, 131, 0.45);
      color: #ffffff;
    }

    .period-btn.period-btn-download:hover {
      background: linear-gradient(135deg, #0b7c72, #0ba595);
      border-color: rgba(11, 124, 114, 0.55);
    }

    .period-btn.period-btn-download:disabled {
      opacity: 0.72;
      cursor: wait;
    }

    .period-calendar {
      grid-area: calendar;
      justify-self: end;
      width: min(100%, 560px);
      display: grid;
      grid-template-columns: repeat(2, minmax(140px, 1fr)) auto;
      align-items: end;
      gap: 8px;
    }

    .period-date {
      display: grid;
      gap: 4px;
      min-width: 138px;
    }

    .period-date span {
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .period-date input {
      width: 100%;
      border: 1px solid rgba(18, 33, 39, 0.18);
      border-radius: 10px;
      padding: 7px 9px;
      font-size: 0.82rem;
      font-family: 'Manrope', sans-serif;
      color: var(--ink);
      background: #fff;
      outline: none;
    }

    .period-date input:focus {
      border-color: rgba(14, 143, 131, 0.55);
      box-shadow: 0 0 0 3px rgba(14, 143, 131, 0.12);
    }

    .period-date input::-webkit-calendar-picker-indicator {
      filter: brightness(0) saturate(100%) invert(71%) sepia(59%) saturate(484%) hue-rotate(164deg) brightness(105%) contrast(95%);
      cursor: pointer;
      opacity: 1;
    }

    .period-actions {
      display: flex;
      gap: 6px;
      align-items: center;
    }

    .period-hint {
      grid-area: hint;
      width: 100%;
      color: #30535b;
      font-size: 0.78rem;
      font-weight: 700;
      margin-top: 0;
    }

    .period-feedback {
      grid-area: feedback;
      width: 100%;
      color: #8f2419;
      font-size: 0.76rem;
      font-weight: 700;
      min-height: 1.1em;
    }

    @media (max-width: 980px) {
      .period-filters {
        grid-template-columns: 1fr;
        grid-template-areas:
          'label'
          'quick'
          'calendar'
          'hint'
          'feedback';
      }

      .period-filters > span {
        margin: 0;
      }

      .period-quick {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
      }

      .period-calendar {
        width: 100%;
        justify-self: stretch;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }

      .period-date {
        min-width: 0;
      }

      .period-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .period-actions .period-btn {
        width: 100%;
      }

      .period-hint,
      .period-feedback {
        margin-top: 0;
      }
    }

    body.dark-mode .period-filters {
      background: linear-gradient(180deg, rgba(26, 50, 61, 0.96), rgba(20, 42, 52, 0.96));
      border-color: rgba(138, 202, 214, 0.38);
      box-shadow: inset 0 1px 0 rgba(196, 236, 243, 0.12);
    }

    body.dark-mode .period-filters span,
    body.dark-mode .period-date span {
      color: #b8d0d6;
    }

    body.dark-mode .period-btn {
      background: #17313b;
      color: #e5f2f5;
      border-color: rgba(150, 210, 220, 0.42);
    }

    body.dark-mode .period-btn:hover {
      background: #1b3a45;
      border-color: rgba(166, 220, 228, 0.56);
    }

    body.dark-mode .period-btn.active {
      background: rgba(19, 164, 150, 0.22);
      color: #c9f7f0;
      border-color: rgba(119, 217, 204, 0.46);
      box-shadow: none;
    }

    body.dark-mode .period-btn.period-btn-secondary {
      background: #17313b;
      color: #e5f2f5;
      border-color: rgba(150, 210, 220, 0.42);
    }

    body.dark-mode .period-btn.period-btn-download {
      background: linear-gradient(135deg, #15a294, #1fc6b5);
      color: #042329;
      border-color: rgba(153, 235, 224, 0.6);
    }

    body.dark-mode .period-date input {
      background: #0f1b21 !important;
      color: #d0eef5 !important;
      border-color: rgba(130, 191, 202, 0.5) !important;
      color-scheme: dark !important;
      font-weight: 700;
      -webkit-text-fill-color: #d0eef5;
    }

    body.dark-mode .period-date input:focus {
      border-color: rgba(14, 143, 131, 0.7) !important;
      box-shadow: 0 0 0 3px rgba(19, 164, 150, 0.2) !important;
    }

    body.dark-mode .period-date input::-webkit-datetime-edit,
    body.dark-mode .period-date input::-webkit-datetime-edit-text,
    body.dark-mode .period-date input::-webkit-datetime-edit-month-field,
    body.dark-mode .period-date input::-webkit-datetime-edit-day-field,
    body.dark-mode .period-date input::-webkit-datetime-edit-year-field {
      color: #d0eef5;
    }

    body.dark-mode .period-date input::-webkit-calendar-picker-indicator {
      filter: brightness(0) saturate(100%) invert(71%) sepia(59%) saturate(484%) hue-rotate(164deg) brightness(115%) contrast(95%) !important;
      opacity: 1;
      cursor: pointer;
    }

    body.dark-mode .period-hint {
      color: #90cfc4;
    }

    body.dark-mode .period-feedback {
      color: #ffb3aa;
    }

    body.dark-mode .page-head h1 {
      color: #f1fbfd;
      text-shadow: 0 2px 16px rgba(7, 22, 28, 0.4);
    }

    body.dark-mode .page-head p,
    body.dark-mode .panel > p,
    body.dark-mode .full-panel > p,
    body.dark-mode .kpi-sub {
      color: #bdd2d7;
    }

    body.dark-mode .kpi,
    body.dark-mode .panel,
    body.dark-mode .full-panel,
    body.dark-mode .period-filters,
    body.dark-mode .table-wrap {
      background: linear-gradient(180deg, #1a3945 0%, #15323d 100%);
      border-color: rgba(111, 182, 196, 0.42);
      box-shadow:
        inset 0 1px 0 rgba(199, 238, 245, 0.14),
        0 14px 30px rgba(3, 14, 18, 0.22);
    }

    body.dark-mode .kpi::before {
      height: 4px;
      background: linear-gradient(90deg, #15b5a6, #0ec7b6);
      box-shadow: 0 1px 12px rgba(22, 181, 166, 0.4);
    }

    body.dark-mode .kpi-label,
    body.dark-mode .rank-foot,
    body.dark-mode .cell-sub {
      color: #c2d8de;
    }

    body.dark-mode .kpi-value,
    body.dark-mode .panel h2,
    body.dark-mode .full-panel h2,
    body.dark-mode .rank-head,
    body.dark-mode .item-name {
      color: #ecf9fb;
    }

    body.dark-mode .platform-card {
      background: linear-gradient(180deg, #143844 0%, #102e39 100%);
      border-color: rgba(120, 197, 212, 0.32);
      box-shadow: inset 0 1px 0 rgba(190, 236, 245, 0.12);
    }

    body.dark-mode .platform-card.is-top {
      border-color: rgba(14, 197, 182, 0.65);
      box-shadow: inset 0 1px 0 rgba(194, 245, 238, 0.14), 0 10px 20px rgba(3, 18, 23, 0.28);
    }

    body.dark-mode .platform-rank {
      color: #d7fffa;
      background: rgba(17, 187, 169, 0.25);
    }

    body.dark-mode .platform-name,
    body.dark-mode .platform-value,
    body.dark-mode .platform-meta strong {
      color: #e9f9fc;
    }

    body.dark-mode .platform-meta {
      color: #b7d7de;
    }

    body.dark-mode .platform-progress {
      background: rgba(200, 238, 244, 0.2);
    }

    body.dark-mode .platform-products-block {
      background: linear-gradient(180deg, #133742 0%, #102f39 100%);
      border-color: rgba(120, 197, 212, 0.32);
    }

    body.dark-mode .platform-products-head strong {
      color: #a9e7f3;
    }

    body.dark-mode .platform-products-head span {
      color: #b9d8df;
    }

    body.dark-mode .platform-products-wrap {
      background: rgba(10, 34, 42, 0.82);
      border-color: rgba(120, 197, 212, 0.28);
    }

    body.dark-mode .platform-products-table {
      color: #e6f7fb;
    }

    body.dark-mode .platform-products-table thead th {
      background: #1a4a57;
      color: #c9f0f8;
      border-bottom-color: rgba(161, 223, 234, 0.3);
    }

    body.dark-mode .platform-products-table tbody td {
      border-bottom-color: rgba(161, 223, 234, 0.16);
    }

    body.dark-mode .bar {
      background: rgba(196, 236, 243, 0.24);
    }

    body.dark-mode .table-wrap {
      background: linear-gradient(180deg, #173641 0%, #13303a 100%);
    }

    body.dark-mode tbody tr:nth-child(even) td {
      background: rgba(26, 57, 68, 0.6);
    }

    body.dark-mode tbody tr:hover td {
      background: rgba(29, 178, 163, 0.26);
    }

    .btn {
      border: 0;
      padding: 10px 18px;
      border-radius: 10px;
      font-weight: 800;
      font-size: 0.9rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      transition: transform 0.2s, box-shadow 0.2s;
      text-decoration: none;
      white-space: nowrap;
    }

    .btn:hover { transform: translateY(-1px); }

    .btn-main {
      background: linear-gradient(135deg, var(--brand), #0cac9c);
      color: #fff;
      box-shadow: 0 10px 22px rgba(14, 143, 131, 0.28);
    }

    .kpi-row {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 24px;
    }

    .kpi {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--card);
      padding: 16px;
      box-shadow: 0 4px 14px rgba(8, 37, 44, 0.06);
      position: relative;
      overflow: hidden;
    }

    .kpi::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--brand), #0fb8a9);
    }

    .kpi-label {
      font-size: 0.8rem;
      color: var(--muted);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.4px;
      margin-bottom: 8px;
    }

    .kpi-value {
      font-family: 'Sora', sans-serif;
      font-size: 1.9rem;
      font-weight: 800;
      color: var(--ink);
      line-height: 1;
      margin-bottom: 4px;
      max-width: 100%;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    #kpiTop {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      overflow: hidden;
      line-height: 1.08;
      min-height: calc(1.08em * 2);
      font-size: 1.55rem;
    }

    .kpi-sub {
      font-size: 0.8rem;
      color: var(--muted);
      font-weight: 600;
    }

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

    .panel {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--card);
      padding: 20px;
      box-shadow: 0 4px 14px rgba(8, 37, 44, 0.06);
    }

    .panel h2 {
      font-family: 'Sora', sans-serif;
      font-size: 1rem;
      margin-bottom: 4px;
    }

    .panel > p {
      color: var(--muted);
      font-size: 0.85rem;
      margin-bottom: 14px;
    }

    .rank-item { margin-bottom: 12px; }
    .rank-item:last-child { margin-bottom: 0; }

    .rank-head {
      display: flex;
      justify-content: space-between;
      font-size: 0.88rem;
      font-weight: 700;
      margin-bottom: 4px;
      gap: 10px;
      min-width: 0;
    }

    .rank-name {
      flex: 1 1 auto;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .bar {
      height: 9px;
      border-radius: 999px;
      background: rgba(18, 33, 39, 0.08);
      overflow: hidden;
      margin-bottom: 4px;
    }

    .fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--brand), #0fb8a9);
    }

    .fill-low {
      background: linear-gradient(90deg, var(--accent), #f3a26f);
    }

    .rank-foot {
      font-size: 0.78rem;
      color: var(--muted);
    }

    .platform-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 10px;
    }

    .platform-card {
      border: 1px solid rgba(18, 33, 39, 0.12);
      border-radius: 12px;
      background: linear-gradient(160deg, #ffffff, #f4fbfb);
      padding: 12px;
      box-shadow: 0 6px 14px rgba(8, 37, 44, 0.06);
    }

    .platform-card.is-top {
      border-color: rgba(14, 143, 131, 0.42);
      box-shadow: 0 12px 22px rgba(14, 143, 131, 0.15);
    }

    .platform-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
    }

    .platform-ident {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .platform-rank {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 28px;
      height: 24px;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 800;
      color: #0f4d46;
      background: rgba(14, 143, 131, 0.15);
    }

    .platform-name {
      font-size: 0.92rem;
      color: #16353d;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .platform-value {
      font-size: 0.95rem;
      color: #123d45;
      white-space: nowrap;
    }

    .platform-progress {
      width: 100%;
      height: 8px;
      border-radius: 999px;
      background: rgba(18, 33, 39, 0.08);
      overflow: hidden;
      margin-bottom: 8px;
    }

    .platform-progress > span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #0e8f83, #0cc4b2);
    }

    .platform-meta {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px 10px;
      font-size: 0.8rem;
      color: #4a6167;
    }

    .platform-meta strong {
      color: #173d45;
    }

    .platform-products-block {
      margin-top: 14px;
      border: 1px solid rgba(18, 33, 39, 0.12);
      border-radius: 12px;
      background: linear-gradient(165deg, #ffffff, #f5fbfb);
      padding: 10px;
    }

    .platform-products-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }

    .platform-products-head strong {
      font-size: 0.8rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: #205764;
    }

    .platform-products-head span {
      font-size: 0.78rem;
      color: #4f6e76;
      font-weight: 700;
    }

    .platform-products-wrap {
      max-height: 240px;
      overflow-y: auto;
      border: 1px solid rgba(18, 33, 39, 0.11);
      border-radius: 10px;
      background: #ffffff;
    }

    .platform-products-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      font-size: 0.82rem;
      color: #18353d;
    }

    .platform-products-table thead th:nth-child(1),
    .platform-products-table tbody td:nth-child(1) {
      width: 36%;
    }

    .platform-products-table thead th:nth-child(2),
    .platform-products-table tbody td:nth-child(2) {
      width: 22%;
    }

    .platform-products-table thead th:nth-child(3),
    .platform-products-table tbody td:nth-child(3) {
      width: 10%;
    }

    .platform-products-table thead th:nth-child(4),
    .platform-products-table tbody td:nth-child(4) {
      width: 16%;
    }

    .platform-products-table thead th:nth-child(5),
    .platform-products-table tbody td:nth-child(5) {
      width: 16%;
    }

    .platform-products-table thead th {
      position: sticky;
      top: 0;
      z-index: 1;
      text-align: left;
      padding: 8px 10px;
      background: #e8f6f6;
      color: #27545f;
      border-bottom: 1px solid rgba(18, 33, 39, 0.14);
      font-weight: 800;
    }

    .platform-products-table tbody td {
      padding: 8px 10px;
      border-bottom: 1px solid rgba(18, 33, 39, 0.09);
      vertical-align: top;
      line-height: 1.25;
    }

    .platform-products-table tbody tr:last-child td {
      border-bottom: 0;
    }

    .platform-products-table tbody td:nth-child(3),
    .platform-products-table tbody td:nth-child(4),
    .platform-products-table tbody td:nth-child(5) {
      white-space: nowrap;
    }

    .platform-products-table tbody td:first-child,
    .platform-products-table tbody td:nth-child(2) {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 0;
    }

    .full-panel {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--card);
      padding: 20px;
      box-shadow: 0 4px 14px rgba(8, 37, 44, 0.06);
      margin-bottom: 14px;
    }

    .full-panel h2 {
      font-family: 'Sora', sans-serif;
      font-size: 1rem;
      margin-bottom: 4px;
    }

    .full-panel > p {
      color: var(--muted);
      font-size: 0.85rem;
      margin-bottom: 16px;
    }

    .insight-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 12px;
      align-items: stretch;
    }

    .insight-card {
      border: 1px solid #cfdede;
      border-radius: 14px;
      padding: 14px;
      background: linear-gradient(180deg, #ffffff, #f7fbfb);
      box-shadow: 0 6px 16px rgba(8, 37, 44, 0.05);
      position: relative;
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
      height: 100%;
    }

    .insight-card.is-highlight {
      grid-column: span 2;
      background: linear-gradient(180deg, #f7fcfc, #eef8f8);
    }

    .insight-card:hover {
      transform: translateY(-3px);
      border-color: #b7d3d0;
      box-shadow: 0 14px 26px rgba(8, 37, 44, 0.11);
    }

    .insight-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, #86b5b0, #b4d2cf);
    }

    .insight-card.is-critical::before {
      background: linear-gradient(90deg, #d6643e, #ef9a74);
    }

    .insight-card.is-finance::before {
      background: linear-gradient(90deg, #0f8f83, #37b9ab);
    }

    .insight-card.is-action::before {
      background: linear-gradient(90deg, #2e5d66, #5f8b93);
    }

    .insight-card .insight-label {
      display: block;
      font-size: 0.74rem;
      color: #4a6670;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.45px;
      margin-bottom: 6px;
    }

    .insight-card .insight-value {
      display: block;
      font-family: 'Sora', sans-serif;
      font-size: 1.85rem;
      line-height: 1.05;
      font-weight: 800;
      margin-bottom: 6px;
      color: #0f2b33;
      letter-spacing: -0.3px;
    }

    .insight-card .insight-value.compact {
      font-size: 1.25rem;
      line-height: 1.2;
      letter-spacing: 0;
    }

    .insight-card .insight-product {
      display: inline-block;
      padding: 3px 10px;
      border-radius: 999px;
      background: rgba(14, 143, 131, 0.14);
      color: #0b4f57;
      font-weight: 800;
      border: 1px solid rgba(14, 143, 131, 0.24);
      max-width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      vertical-align: middle;
    }

    .insight-card.is-critical .insight-product {
      background: rgba(214, 100, 62, 0.12);
      border-color: rgba(214, 100, 62, 0.28);
      color: #8a3517;
    }

    .insight-card .insight-note {
      font-size: 0.82rem;
      color: #3e5f68;
      line-height: 1.45;
      margin: 0;
    }

    .table-wrap {
      overflow-x: auto;
      overflow-y: auto;
      max-height: 520px;
      scrollbar-gutter: stable;
      -webkit-overflow-scrolling: touch;
      border-radius: 14px;
      border: 1px solid rgba(18, 33, 39, 0.16);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(7, 33, 40, 0.08);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 250, 0.96));
    }

    .table-wrap thead th {
      position: sticky;
      top: 0;
      z-index: 2;
      background: #d2e1e1;
      box-shadow: 0 1px 0 rgba(18, 33, 39, 0.08);
    }

    table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      table-layout: auto;
      min-width: 1160px;
    }

    thead th {
      background: rgba(14, 143, 131, 0.08);
      padding: 13px 12px;
      text-align: left;
      font-size: 0.76rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: #214851;
      border-bottom: 1px solid var(--line);
      vertical-align: middle;
      white-space: nowrap;
    }

    tbody td {
      padding: 12px 12px;
      border-bottom: 1px solid var(--line);
      font-size: 0.88rem;
      vertical-align: middle;
      line-height: 1.4;
      text-align: left;
    }

    tbody td:nth-child(7) {
      vertical-align: top;
      text-align: left;
    }

    thead th:nth-child(2), tbody td:nth-child(2),
    thead th:nth-child(3), tbody td:nth-child(3),
    thead th:nth-child(4), tbody td:nth-child(4),
    thead th:nth-child(6), tbody td:nth-child(6) {
      text-align: center;
    }

    thead th:nth-child(1), tbody td:nth-child(1) { width: 12%; }
    thead th:nth-child(2), tbody td:nth-child(2) { width: 10%; white-space: nowrap; }
    thead th:nth-child(3), tbody td:nth-child(3) { width: 11%; white-space: nowrap; }
    thead th:nth-child(4), tbody td:nth-child(4) { width: 11%; }
    thead th:nth-child(5), tbody td:nth-child(5) { width: 12%; white-space: normal; }
    thead th:nth-child(6), tbody td:nth-child(6) { width: 12%; white-space: nowrap; }
    thead th:nth-child(7), tbody td:nth-child(7) {
      width: 32%;
      min-width: 320px;
      white-space: normal;
      word-break: normal;
      overflow-wrap: break-word;
    }

    tbody tr:last-child td { border-bottom: 0; }
    tbody tr:nth-child(even) td { background: rgba(246, 251, 251, 0.76); }
    tbody tr:hover td { background: rgba(14, 143, 131, 0.08); }

    .badge {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 3px 9px;
      font-weight: 800;
      font-size: 0.74rem;
    }

    .badge-up { color: #0a6359; background: rgba(14, 143, 131, 0.14); }
    .badge-down { color: #954518; background: rgba(238, 127, 59, 0.2); }
    .badge-warn { color: #8a4b17; background: rgba(239, 164, 96, 0.22); }
    .badge-critical { color: #8f2419; background: rgba(192, 57, 43, 0.18); }

    .cell-sub {
      margin-top: 4px;
      font-size: 0.76rem;
      color: var(--muted);
      font-weight: 700;
      opacity: 0.9;
    }

    .item-name {
      display: block;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-family: 'Sora', sans-serif;
      font-size: 1rem;
      letter-spacing: -0.2px;
      color: #0f252c;
    }

    .metric-value {
      display: inline-block;
      font-weight: 800;
      color: #163a43;
      white-space: nowrap;
    }

    .metric-alert {
      color: #8b3b15;
    }

    .metric-suggested {
      color: #0f4e59;
      background: rgba(14, 143, 131, 0.12);
      padding: 3px 8px;
      border-radius: 999px;
    }

    .buy-when {
      display: inline-block;
      font-weight: 700;
      color: #0f2f37;
    }

    .rec-title {
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.4px;
      text-transform: uppercase;
      color: #43666f;
      margin-bottom: 4px;
    }

    .rec-action {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
      margin-bottom: 6px;
      padding: 4px 8px;
      border-radius: 10px;
      background: rgba(14, 143, 131, 0.1);
      color: #123a42;
      font-size: 0.82rem;
      font-weight: 700;
      line-height: 1.35;
    }

    .rec-action strong {
      color: #0a4f59;
      font-weight: 800;
    }

    .rec-action span {
      color: #28545d;
      font-weight: 700;
      opacity: 0.95;
    }

    .rec-summary {
      color: #0e2d35;
      font-size: 0.88rem;
      line-height: 1.35;
      margin-bottom: 4px;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
      line-clamp: 3;
      overflow: hidden;
    }

    .recommendation-meta {
      margin-top: 2px;
      font-size: 0.74rem;
      color: #4f636a;
      line-height: 1.3;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .recommendation-meta strong {
      color: #1b3f47;
      font-weight: 800;
    }

    .empty-report {
      border: 1px dashed rgba(18, 33, 39, 0.15);
      border-radius: 12px;
      padding: 22px;
      text-align: center;
      color: var(--muted);
      font-size: 0.88rem;
      background: rgba(255,255,255,0.6);
    }

    .reveal-section {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }

    .reveal-section.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .kpi.reveal-section:nth-child(1) { transition-delay: 0ms; }
    .kpi.reveal-section:nth-child(2) { transition-delay: 80ms; }
    .kpi.reveal-section:nth-child(3) { transition-delay: 160ms; }
    .kpi.reveal-section:nth-child(4) { transition-delay: 240ms; }

    @media (max-width: 1200px) {
      .kpi-row { grid-template-columns: repeat(2, 1fr); }
      .insight-grid { grid-template-columns: repeat(2, 1fr); }
      .insight-card.is-highlight { grid-column: span 2; }
      .chip-greeting { display: none; }
      .user-chip { max-width: 180px; }
    }

    @media (max-width: 768px) {
      .grid { grid-template-columns: 1fr; }
      .topbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }
      nav {
        width: 100%;
        justify-content: flex-start;
        padding-bottom: 4px;
      }
      .user-area {
        width: 100%;
        justify-content: space-between;
      }
      .page-head {
        margin-bottom: 22px;
      }
      .period-filters {
        width: 100%;
        flex-wrap: wrap;
      }
      .period-calendar {
        width: 100%;
        margin-left: 0;
      }
      .period-date {
        min-width: 0;
        flex: 1 1 160px;
      }
      .period-actions {
        width: 100%;
      }
      .period-actions .period-btn {
        flex: 1 1 140px;
      }
      .user-menu-panel { right: 0; }

      .table-wrap {
        max-height: none;
        overflow: visible;
        border: none;
        box-shadow: none;
        background: transparent;
      }

      table {
        min-width: 0;
        border-spacing: 0 10px;
      }

      .table-wrap thead,
      table thead {
        display: none;
      }

      table tbody,
      table tr,
      table td {
        display: block;
        width: 100%;
      }

      table tbody td:nth-child(1),
      table tbody td:nth-child(2),
      table tbody td:nth-child(3),
      table tbody td:nth-child(4),
      table tbody td:nth-child(5),
      table tbody td:nth-child(6),
      table tbody td:nth-child(7) {
        width: 100% !important;
      }

      table tbody tr {
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--card);
        box-shadow: 0 8px 20px rgba(7, 33, 40, 0.08);
        overflow: hidden;
      }

      table tbody td {
        display: grid;
        grid-template-columns: minmax(96px, 120px) 1fr;
        align-items: start;
        gap: 10px;
        text-align: left;
        border-bottom: 1px solid rgba(18, 33, 39, 0.08);
        padding: 10px 12px;
      }

      table tbody td:last-child {
        border-bottom: 0;
      }

      table tbody td::before {
        content: attr(data-label);
        display: inline-block;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: var(--muted);
        font-weight: 800;
        margin-bottom: 0;
      }

      table tbody td > * {
        min-width: 0;
      }

      table tbody td:nth-child(7) {
        grid-template-columns: 1fr;
        gap: 6px;
      }

      /* Mantem a tabela de produtos vendidos em formato tabular no mobile */
      .platform-products-wrap {
        max-height: 260px;
        overflow: auto;
        border: 1px solid rgba(18, 33, 39, 0.11);
        background: #ffffff;
        border-radius: 10px;
      }

      .platform-products-table {
        width: 100%;
        min-width: 560px;
        border-spacing: 0;
        table-layout: fixed;
      }

      .platform-products-table thead {
        display: table-header-group;
      }

      .platform-products-table tbody {
        display: table-row-group;
      }

      .platform-products-table tr {
        display: table-row;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
      }

      .platform-products-table th,
      .platform-products-table td {
        display: table-cell;
        width: auto !important;
        text-align: left !important;
        padding: 8px 10px !important;
      }

      .platform-products-table td {
        border-bottom: 1px solid rgba(18, 33, 39, 0.09);
      }

      .platform-products-table tbody td::before {
        content: none !important;
      }

      .rec-action {
        padding: 6px 8px;
      }

      .recommendation-meta {
        gap: 6px;
      }
    }

    @media (max-width: 560px) {
      main { padding: 24px 0 48px; }
      .kpi-row { grid-template-columns: 1fr 1fr; gap: 8px; }
      .insight-grid { grid-template-columns: 1fr; }
      .insight-card.is-highlight { grid-column: span 1; }

      .modal-overlay .modal {
        width: min(100%, 420px);
        padding: 18px;
        max-height: calc(100dvh - 20px);
      }

      .field input {
        font-size: 16px;
      }

      .modal-actions {
        flex-direction: column-reverse;
        gap: 8px;
      }

      .modal-actions .btn {
        width: 100%;
        min-height: 44px;
      }

      .shell {
        width: 94%;
      }

      .user-chip span {
        display: none;
      }

      .kpi,
      .panel,
      .full-panel,
      .insight-card {
        border-radius: 14px;
      }

      .page-head h1 {
        font-size: clamp(1.1rem, 6vw, 1.45rem);
        line-height: 1.28;
      }
      .page-head p {
        font-size: 0.84rem;
        line-height: 1.5;
      }
      nav a {
        padding: 6px 9px;
        font-size: 0.8rem;
      }
      .user-area {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        align-items: center;
      }
      #themeToggleBtn {
        width: auto;
        min-width: 108px;
      }
      .period-filters {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
          'label'
          'quick'
          'calendar'
          'hint'
          'feedback';
        border-radius: 14px;
        padding: 12px;
      }
      .period-filters > span {
        margin: 0;
        font-size: 0.88rem;
      }
      .period-quick {
        grid-template-columns: 1fr;
      }
      .period-calendar {
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
      }
      .period-date {
        width: 100%;
      }
      .period-date input {
        font-size: 16px;
        min-height: 44px;
      }

      .period-quick .period-btn,
      .period-actions .period-btn {
        min-height: 44px;
      }

      .table-wrap {
        max-height: 56dvh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
      }
      .period-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
      }
      .period-actions .period-btn {
        width: 100%;
        text-align: center;
      }
      .period-hint,
      .period-feedback {
        margin-top: 0;
      }
    }

    @media (max-width: 420px) {
      .kpi-row {
        grid-template-columns: 1fr;
      }

      .period-date input,
      .period-actions .period-btn {
        min-height: 44px;
      }
    }

    @media print {
      @page {
        size: A4;
        margin: 10mm;
      }

      html,
      body {
        min-height: auto !important;
        overflow: visible !important;
        background: #ffffff !important;
      }

      header,
      .user-menu-panel,
      .btn-logout,
      .chip-greeting,
      .period-feedback,
      .period-actions {
        display: none !important;
      }

      main {
        padding: 0 !important;
      }

      .shell {
        width: 100% !important;
        margin: 0 !important;
      }

      .reveal-section {
        opacity: 1 !important;
        transform: none !important;
      }

      .page-head,
      .period-filters,
      .kpi,
      .panel,
      .full-panel,
      .table-wrap,
      .insight-card {
        background: #ffffff !important;
        box-shadow: none !important;
        border: 1px solid #d8d8d8 !important;
      }

      .kpi,
      .panel,
      .insight-card {
        break-inside: avoid;
        page-break-inside: avoid;
      }

      .full-panel,
      .table-wrap,
      .period-filters {
        break-inside: auto;
        page-break-inside: auto;
      }

      .kpi-row,
      .grid,
      .insight-grid {
        gap: 8px !important;
      }

      .grid {
        grid-template-columns: 1fr 1fr !important;
      }

      .table-wrap {
        max-height: none !important;
        overflow: visible !important;
      }

      table {
        width: 100% !important;
        min-width: 0 !important;
        border-spacing: 0 !important;
        table-layout: fixed !important;
        font-size: 11px;
      }

      table th,
      table td {
        padding: 6px 7px !important;
        vertical-align: top !important;
        white-space: normal !important;
      }

      .table-wrap thead,
      table thead {
        display: table-header-group !important;
      }

      table tbody {
        display: table-row-group !important;
      }

      table tr {
        display: table-row !important;
      }

      table td,
      table th {
        display: table-cell !important;
        width: auto !important;
      }

      table th:nth-child(1),
      table td:nth-child(1) { width: 14% !important; }
      table th:nth-child(2),
      table td:nth-child(2) { width: 10% !important; text-align: center !important; white-space: nowrap !important; }
      table th:nth-child(3),
      table td:nth-child(3) { width: 11% !important; text-align: center !important; white-space: nowrap !important; }
      table th:nth-child(4),
      table td:nth-child(4) { width: 10% !important; text-align: center !important; }
      table th:nth-child(5),
      table td:nth-child(5) { width: 15% !important; }
      table th:nth-child(6),
      table td:nth-child(6) { width: 10% !important; text-align: center !important; white-space: nowrap !important; }
      table th:nth-child(7),
      table td:nth-child(7) {
        width: 30% !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
      }

      table tbody td::before {
        content: none !important;
      }

      .item-name,
      .buy-when,
      .rec-summary {
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
      }

      .rec-action,
      .recommendation-meta {
        display: block !important;
        gap: 0 !important;
      }

      .badge {
        border: 1px solid #c8c8c8 !important;
      }
    }

    @media (max-width: 380px) {
      .kpi-row { grid-template-columns: 1fr; }
    }
  
.is-hidden {
  display: none !important;
}

/* Centraliza o modal-overlay igual ao dashboard (desktop e mobile) */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 30, 0.45);
  z-index: 100;
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-overlay:not(.is-hidden) {
  display: flex;
}

.modal-overlay .modal {
  background: var(--card);
  border-radius: 22px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
  animation: popIn 0.25s ease;
  position: relative;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.modal-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--muted);
  transition: color 0.2s;
  min-width: auto;
  min-height: auto;
}
.modal-close:hover {
  color: var(--ink);
}
.modal-body {
  margin-bottom: 20px;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1f3840;
}
.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 0.92rem;
  font-family: 'Manrope', sans-serif;
  outline: none;
  background: #fafcfc;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  border-color: rgba(14, 143, 131, 0.55);
  box-shadow: 0 0 0 4px rgba(14, 143, 131, 0.12);
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.modal-actions .btn {
  flex: 1;
  min-height: 42px;
}
@media (max-width: 560px) {
  .modal-actions { flex-direction: column-reverse; gap: 8px; }
}
