*, *::before, *::after { box-sizing: border-box; }
  
  .at-cal-app {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --border: #e2e8f0;
    --border-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #0f766e;
    --primary-hover: #0d5e58;
    --primary-soft: #ecfdf5;
    --accent: #d97706;
    --p-col: #10b981;
    --c-col: #f59e0b;
    --f-col: #f43f5e;
    --danger: #dc2626;
    --shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    padding: 20px 16px 48px;
  }
  .at-cal-app.at-dark {
    --bg: #0b1120;
    --surface: #111827;
    --surface-2: #1e293b;
    --border: #263348;
    --border-soft: #1e293b;
    --text: #f8fafc;
    --muted: #94a3b8;
    --primary: #14b8a6;
    --primary-hover: #0d9488;
    --primary-soft: rgba(20, 184, 166, 0.14);
    --shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  }
  .at-cal-app button, .at-cal-app input, .at-cal-app select {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
  }
  .at-wrap { max-width: 1180px; margin: 0 auto; }

  /* HERO */
  .at-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 250px;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #06231e;
    background-image:
      linear-gradient(270deg, rgba(6, 35, 30, 0.88) 0%, rgba(6, 35, 30, 0.62) 48%, rgba(6, 35, 30, 0.08) 100%),
      url('/wp-content/uploads/at-tools/calories-hero.webp?v=1');
    background-size: cover;
    background-position: left center;
    color: #ffffff;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
  }
  .at-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
  .at-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 6px 14px; border-radius: 999px;
    font-size: 14px; font-weight: 700; color: #ecfdf5;
  }
  .at-theme-btn {
    background: rgba(15, 23, 42, 0.55);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    padding: 8px 14px;
    min-height: 42px;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
  }
  .at-theme-btn:hover { background: rgba(15, 23, 42, 0.8); }
  .at-hero-body { max-width: 600px; margin-top: 18px; }
  .at-hero h1 { margin: 0 0 8px; font-size: 32px; font-weight: 800; line-height: 1.28; color: #ffffff; }
  .at-hero p { margin: 0; font-size: 16px; color: rgba(241, 245, 249, 0.92); line-height: 1.65; }

  /* MAIN 2-COL LAYOUT */
  .at-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    gap: 22px;
    align-items: start;
  }

  /* CARDS */
  .at-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  /* SEARCH & COUNTRY BAR */
  .at-browser-head { padding: 20px 20px 14px; border-bottom: 1px solid var(--border); }
  .at-search-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
  .at-search-wrap { position: relative; flex: 1; }
  .at-search-icon {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    color: var(--muted); pointer-events: none; font-size: 18px;
  }
  .at-search-input {
    width: 100%; min-height: 52px;
    padding: 12px 46px 12px 44px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 16px; font-weight: 500;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
  }
  .at-search-input:focus { border-color: var(--primary); background: var(--surface); }
  .at-clear-btn {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    border: none; background: var(--border); color: var(--text);
    cursor: pointer; display: none; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
  }
  .at-clear-btn.show { display: inline-flex; }
  .at-custom-toggle {
    min-height: 52px; padding: 0 16px;
    border-radius: 14px;
    border: 1.5px dashed var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 15px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
  }
  .at-custom-toggle:hover { background: var(--primary); color: #ffffff; border-style: solid; }

  /* COUNTRY CHIPS */
  .at-countries {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .at-chip {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px; padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 14px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    transition: all 0.15s;
  }
  .at-chip:hover { border-color: var(--primary); color: var(--primary); }
  .at-chip.active {
    background: var(--primary); color: #ffffff; border-color: var(--primary);
  }
  .at-chip-cnt {
    font-size: 12px; font-weight: 700;
    padding: 1px 7px; border-radius: 999px;
    background: var(--surface-2); color: var(--muted);
  }
  .at-chip.active .at-chip-cnt { background: rgba(255, 255, 255, 0.22); color: #ffffff; }

  /* CUSTOM FOOD FORM */
  .at-custom-panel {
    display: none; padding: 18px 20px;
    background: var(--surface-2); border-bottom: 1px solid var(--border);
  }
  .at-custom-panel.open { display: block; }
  .at-custom-title { font-size: 16px; font-weight: 800; margin: 0 0 12px; }
  .at-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .at-field { display: flex; flex-direction: column; gap: 4px; }
  .at-field.span2 { grid-column: span 2; }
  .at-field label { font-size: 13px; font-weight: 700; color: var(--muted); }
  .at-field input, .at-field select {
    min-height: 44px; padding: 8px 12px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font-size: 15px;
  }

  /* LIST STATUS BAR */
  .at-list-meta {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-size: 14px; color: var(--muted); font-weight: 700;
  }

  /* CLEAN YAZIO-STYLE LIST ROWS */
  .at-list-body { padding: 0; }
  .at-food-item { border-bottom: 1px solid var(--border-soft); }
  .at-food-item:last-child { border-bottom: none; }
  .at-food-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.15s;
  }
  .at-food-row:hover { background: var(--surface-2); }
  .at-food-item.expanded .at-food-row { background: var(--primary-soft); }
  .at-row-right { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
  .at-fav-btn {
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 10px; border: 1px solid transparent;
    background: transparent; color: var(--muted);
    font-size: 20px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .at-fav-btn:hover { background: var(--surface-2); }
  .at-fav-btn.is-fav { color: #f59e0b; }
  .at-row-info { min-width: 0; }
  .at-row-name {
    font-size: 17px; font-weight: 700; color: var(--text);
    margin: 0 0 2px; line-height: 1.35;
  }
  .at-row-sub {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 14px; color: var(--muted);
  }
  .at-region-tag {
    font-size: 12px; font-weight: 700;
    padding: 1px 8px; border-radius: 6px;
    background: var(--surface-2); color: var(--muted);
  }
  .at-row-left { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
  .at-row-cal-box { text-align: left; min-width: 82px; }
  .at-row-cal { font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.2; }
  .at-row-cal span { font-size: 12px; font-weight: 500; color: var(--muted); }
  .at-mini-bar {
    display: flex; height: 4px; width: 76px; border-radius: 999px;
    overflow: hidden; background: var(--border); margin-top: 5px;
  }
  .at-mb-p { background: var(--p-col); }
  .at-mb-c { background: var(--c-col); }
  .at-mb-f { background: var(--f-col); }
  .at-row-add-btn {
    min-height: 40px; padding: 0 14px;
    border-radius: 12px; border: 1px solid var(--border);
    background: var(--surface); color: var(--primary);
    font-size: 14px; font-weight: 800; cursor: pointer;
    transition: all 0.15s;
  }
  .at-row-add-btn:hover, .at-food-item.expanded .at-row-add-btn {
    background: var(--primary); color: #ffffff; border-color: var(--primary);
  }

  /* EXPANDED PRECISION DRAWER */
  .at-row-drawer {
    padding: 16px 20px 20px;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
  }
  .at-mode-tabs {
    display: inline-flex; background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px;
  }
  .at-mode-tab {
    min-height: 38px; padding: 6px 14px; border-radius: 9px;
    border: none; background: transparent; color: var(--muted);
    font-size: 14px; font-weight: 700; cursor: pointer;
  }
  .at-mode-tab.active { background: var(--primary); color: #ffffff; }
  .at-portion-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
  .at-portion-btn {
    min-height: 52px; padding: 8px 6px; border-radius: 12px;
    border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
    cursor: pointer; text-align: center; font-size: 14px; font-weight: 700;
    display: flex; flex-direction: column; justify-content: center; gap: 2px;
  }
  .at-portion-btn small { font-size: 12px; font-weight: 500; color: var(--muted); }
  .at-portion-btn.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
  .at-grams-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
  .at-grams-input-wrap {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1.5px solid var(--primary);
    border-radius: 12px; padding: 4px 12px; min-height: 48px;
  }
  .at-grams-input {
    width: 96px; border: none; outline: none; background: transparent;
    color: var(--text); font-size: 18px; font-weight: 800; text-align: center;
  }
  .at-gram-chips { display: flex; gap: 6px; flex-wrap: wrap; }
  .at-gram-chip {
    min-height: 38px; padding: 4px 12px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font-size: 13px; font-weight: 700; cursor: pointer;
  }
  .at-gram-chip:hover { border-color: var(--primary); color: var(--primary); }

  /* LIVE PREVIEW STRIP */
  .at-preview-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 12px; margin-bottom: 14px; text-align: center;
  }
  .at-pv-val { font-size: 18px; font-weight: 800; color: var(--text); }
  .at-pv-lbl { font-size: 12px; font-weight: 700; color: var(--muted); }
  .at-pv-p .at-pv-val { color: var(--p-col); }
  .at-pv-c .at-pv-val { color: var(--c-col); }
  .at-pv-f .at-pv-val { color: var(--f-col); }

  .at-drawer-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
  .at-meal-pills { display: flex; gap: 6px; flex-wrap: wrap; }
  .at-meal-pill {
    min-height: 40px; padding: 6px 12px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font-size: 14px; font-weight: 700; cursor: pointer;
  }
  .at-meal-pill.active { background: var(--text); color: var(--surface); border-color: var(--text); }
  .at-confirm-add {
    min-height: 46px; padding: 10px 20px; border-radius: 12px;
    border: none; background: var(--primary); color: #ffffff;
    font-size: 15px; font-weight: 800; cursor: pointer;
  }
  .at-confirm-add:hover { background: var(--primary-hover); }

  /* LOAD MORE */
  .at-load-more-wrap { padding: 16px 20px; text-align: center; border-top: 1px solid var(--border); }
  .at-load-more-btn {
    min-height: 46px; padding: 10px 26px; border-radius: 12px;
    border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
    font-size: 15px; font-weight: 700; cursor: pointer;
  }
  .at-load-more-btn:hover { border-color: var(--primary); color: var(--primary); }

  /* DAILY TRACKER SIDEBAR */
  .at-tracker { position: sticky; top: 18px; padding: 20px; }
  .at-tracker-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .at-tracker-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
  .at-ring-section { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
  .at-ring-box { position: relative; width: 122px; height: 122px; flex-shrink: 0; }
  .at-ring-box svg { width: 122px; height: 122px; transform: rotate(-90deg); }
  .at-ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 10; }
  .at-ring-fg { fill: none; stroke: var(--primary); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 0.35s ease, stroke 0.25s; }
  .at-ring-center {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
  }
  .at-ring-num { font-size: 24px; font-weight: 800; line-height: 1.1; }
  .at-ring-lbl { font-size: 12px; color: var(--muted); font-weight: 700; }
  .at-ring-stats { flex: 1; display: flex; flex-direction: column; gap: 8px; }
  .at-stat-line { display: flex; justify-content: space-between; font-size: 14px; }
  .at-stat-line strong { font-weight: 800; }
  .at-status-pill {
    display: inline-block; padding: 4px 10px; border-radius: 8px;
    font-size: 13px; font-weight: 700; background: var(--primary-soft); color: var(--primary);
  }
  .at-status-pill.over { background: rgba(220, 38, 38, 0.12); color: var(--danger); }

  /* MACRO BARS */
  .at-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
  .at-macro-card { background: var(--surface-2); border-radius: 12px; padding: 10px; }
  .at-macro-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
  .at-macro-track { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
  .at-macro-fill { height: 100%; border-radius: 999px; transition: width 0.3s; }

  /* TARGET PRESETS & BMR */
  .at-target-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
  .at-preset-btn {
    min-height: 36px; padding: 4px 10px; border-radius: 9px;
    border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
    font-size: 13px; font-weight: 700; cursor: pointer;
  }
  .at-preset-btn.active { background: var(--primary); color: #ffffff; border-color: var(--primary); }
  .at-target-input {
    width: 82px; min-height: 36px; padding: 4px 8px; border-radius: 9px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font-size: 14px; font-weight: 700; text-align: center;
  }
  .at-bmr-toggle {
    width: 100%; min-height: 40px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
    font-size: 14px; font-weight: 700; cursor: pointer; margin-bottom: 12px;
  }
  .at-bmr-box {
    display: none; padding: 12px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 14px;
  }
  .at-bmr-box.open { display: block; }
  .at-bmr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }

  /* 4 MEAL SECTIONS */
  .at-meals-wrap { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
  .at-meal-box {
    border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
    background: var(--surface);
  }
  .at-meal-hdr {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: var(--surface-2);
    font-size: 15px; font-weight: 800;
  }
  .at-meal-sub { font-size: 14px; font-weight: 800; color: var(--primary); }
  .at-meal-list { padding: 4px 12px; }
  .at-meal-empty { padding: 8px 2px; font-size: 13px; color: var(--muted); }
  .at-log-row {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 8px 2px; border-bottom: 1px solid var(--border-soft); font-size: 14px;
  }
  .at-log-row:last-child { border-bottom: none; }
  .at-log-name { font-weight: 700; color: var(--text); }
  .at-log-meta { font-size: 12px; color: var(--muted); }
  .at-log-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .at-log-cal { font-weight: 800; color: var(--text); font-size: 14px; }
  .at-del-btn {
    width: 28px; height: 28px; border-radius: 8px; border: none;
    background: rgba(220, 38, 38, 0.1); color: var(--danger);
    font-size: 16px; font-weight: 800; cursor: pointer;
  }

  /* TRACKER ACTIONS */
  .at-actions { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; margin-bottom: 10px; }
  .at-btn-wa {
    min-height: 46px; border-radius: 12px; border: none;
    background: #16a34a; color: #ffffff; font-size: 14px; font-weight: 800; cursor: pointer;
  }
  .at-btn-wa:hover { background: #15803d; }
  .at-btn-reset {
    min-height: 46px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--danger); font-size: 14px; font-weight: 700; cursor: pointer;
  }
  .at-local-note {
    font-size: 12px; color: var(--muted); text-align: center;
    padding: 8px 10px; border-radius: 10px; background: var(--surface-2);
  }

  /* FAQ & FOOTER */
  .at-footer-sec { margin-top: 28px; display: grid; gap: 18px; }
  .at-faq-card { padding: 22px; }
  .at-faq-card h2 { margin: 0 0 14px; font-size: 22px; font-weight: 800; }
  .at-faq-item { border-bottom: 1px solid var(--border); padding: 12px 0; }
  .at-faq-item:last-child { border-bottom: none; }
  .at-faq-item summary { font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
  .at-faq-item p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
  .at-disclaimer {
    padding: 16px 20px; border-radius: 16px;
    background: #fefce8; border: 1px solid #fde047; color: #713f12;
    font-size: 15px; line-height: 1.7;
  }
  .at-cal-app.at-dark .at-disclaimer { background: rgba(234, 179, 8, 0.12); border-color: rgba(234, 179, 8, 0.35); color: #fef08a; }
  .at-disclaimer a { color: inherit; font-weight: 800; text-decoration: underline; }
  .at-cross-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .at-cross-card {
    display: block; padding: 16px 18px; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); text-decoration: none; font-weight: 700;
    transition: border-color 0.15s;
  }
  .at-cross-card:hover { border-color: var(--primary); }
  .at-cross-card small { display: block; color: var(--muted); font-weight: 500; margin-top: 4px; font-size: 14px; }

  /* TOAST */
  .at-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: #0f172a; color: #ffffff; padding: 12px 22px; border-radius: 999px;
    font-size: 15px; font-weight: 700; opacity: 0; pointer-events: none;
    transition: opacity 0.2s, transform 0.2s; z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  }
  .at-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  @media (max-width: 960px) {
    .at-grid { grid-template-columns: 1fr; }
    .at-tracker { position: static; }
  }
  @media (max-width: 640px) {
    .at-hero { padding: 20px; min-height: 220px; }
    .at-hero h1 { font-size: 25px; }
    .at-portion-grid { grid-template-columns: repeat(2, 1fr); }
    .at-form-grid { grid-template-columns: 1fr; }
    .at-field.span2 { grid-column: span 1; }
    .at-cross-links { grid-template-columns: 1fr; }
    .at-food-row { padding: 12px 14px; }
    .at-row-left { gap: 8px; }
  }
#brx-content #atCalApp, #atCalApp { width:100%!important; max-width:100%!important; overflow-x:clip!important; border-radius:20px!important; background:var(--bg)!important; color:var(--text)!important; }
#brx-content #atCalApp *, #atCalApp * { min-width:0; }
#brx-content #atCalApp .at-card, #atCalApp .at-card { background:var(--surface)!important; color:var(--text)!important; border-color:var(--border)!important; }
#brx-content #atCalApp .at-hero h1, #atCalApp .at-hero h1 { color:#ffffff!important; }
#brx-content #atCalApp .at-hero p, #atCalApp .at-hero p { margin:0!important; color:rgba(241,245,249,0.94)!important; }
#brx-content #atCalApp :is(h2,h3,h4,li,summary), #atCalApp :is(h2,h3,h4,li,summary) { color:var(--text)!important; }
#brx-content #atCalApp p, #atCalApp p { margin:0; color:var(--text)!important; }
#brx-content #atCalApp .at-faq-item p, #atCalApp .at-faq-item p { margin:8px 0 0!important; color:var(--muted)!important; }
#brx-content #atCalApp .at-field label, #atCalApp .at-field label { color:var(--muted)!important; }
#brx-content #atCalApp .at-row-name, #brx-content #atCalApp .at-row-cal, #brx-content #atCalApp .at-log-name, #brx-content #atCalApp .at-log-cal { color:var(--text)!important; }
#brx-content #atCalApp .at-row-sub, #brx-content #atCalApp .at-log-meta { color:var(--muted)!important; }
#brx-content #atCalApp a.at-cross-card { color:var(--text)!important; background:var(--surface)!important; }
#brx-content #atCalApp a.at-cross-card small { color:var(--muted)!important; }
#brx-content #atCalApp input:not([type="submit"]), #brx-content #atCalApp select { background:var(--surface-2)!important; color:var(--text)!important; border-color:var(--border)!important; box-shadow:none!important; }
#brx-content #atCalApp input.at-grams-input { background:transparent!important; border:none!important; }
#brx-content #atCalApp.at-dark .at-chip.active { background:#0f766e!important; border-color:#14b8a6!important; color:#ffffff!important; }
#brx-content #atCalApp.at-dark .at-disclaimer, #brx-content #atCalApp.at-dark .at-disclaimer a { color:#fef08a!important; }
#brx-content #atCalApp:not(.at-dark) .at-disclaimer, #brx-content #atCalApp:not(.at-dark) .at-disclaimer a { color:#713f12!important; }
@media (max-width:640px) {
  #atCalApp { padding:12px 10px 32px!important; }
  #atCalApp .at-search-row { flex-wrap:wrap!important; }
  #atCalApp .at-search-wrap { width:100%!important; flex:1 1 100%!important; }
  #atCalApp .at-custom-toggle { width:100%!important; justify-content:center!important; }
  #atCalApp .at-food-row { flex-wrap:wrap!important; gap:10px!important; padding:12px!important; }
  #atCalApp .at-row-right { flex:1 1 100%!important; }
  #atCalApp .at-row-left { width:100%!important; justify-content:space-between!important; padding-top:4px; }
  #atCalApp .at-preview-strip { grid-template-columns:repeat(2,1fr)!important; }
  #atCalApp .at-ring-section { flex-direction:column!important; text-align:center!important; }
  #atCalApp .at-ring-stats { width:100%!important; }
  #atCalApp .at-actions { grid-template-columns:1fr!important; }
  #atCalApp .at-drawer-footer { flex-direction:column!important; align-items:stretch!important; }
  #atCalApp .at-confirm-add { width:100%!important; }
}