/*
 * GAILAN RAMZI — Native design parity for Cloudflare Pages (V100 / 2026-11-17)
 *
 * Visual-only integration. Original Supabase RPC, cart, prices, permissions,
 * order state and vendor API remain authoritative. Source of truth: approved
 * mobile designs 01–13. Desktop uses the native look adapted to a wide screen.
 * All selectors are scoped to .gr-v100-ui; first-run/login remain independent.
 */

/* 00. Shared visual tokens from NativeHomeUI and the approved PDF designs. */
:root {
  --gr101-navy:#142331;
  --gr101-deep:#101923;
  --gr101-gold:#F7C944;
  --gr101-good:#138263;
  --gr101-bg:#f5f6f8;
  --gr101-border:#e1e6ed;
  --gr101-text:#18202a;
  --gr101-muted:#667584;
}
html,body { min-width:0; }
body:has(.gr-v100-ui){ background:var(--gr101-bg); }
.gr-v100-ui {
 --bg:var(--gr101-bg);
 --text:var(--gr101-text);
 --ink:var(--gr101-navy);
 --ink2:#26374a;
 --yellow:var(--gr101-gold);
 --line:var(--gr101-border);
 --radius:16px;
 color:var(--gr101-text);
 font-family:Tahoma,'Segoe UI',Arial,sans-serif;
 background:var(--gr101-bg);
}
.gr-v100-ui :where(button,a,input,textarea,select){touch-action:manipulation;}
.gr-v100-ui :where(button,.category-card,.gr101-category-tile) { transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.gr-v100-ui :where(button,input,select,textarea):focus-visible { outline:3px solid #e0b42e; outline-offset:2px; }
.gr-v100-ui :where(img){max-width:100%;}
.gr-v100-ui .sidebar { width:244px; background:#121d2a; padding:18px 11px; }
.gr-v100-ui .sidebar .brand {padding:8px 8px 17px;}
.gr-v100-ui .sidebar .navbtn { min-height:44px; border-radius:11px; padding:9px 12px; font-size:12px; }
.gr-v100-ui .sidebar .navbtn.sel {font-weight:900;}
.gr-v100-ui .sidebar .navtitle { font-weight:800; letter-spacing:0; }
.gr-v100-ui .main { width:0; flex:1; max-width:none; margin:0; padding:18px clamp(14px,2vw,36px) 50px; }
/* Shared native brand strip on every screen, including settings and admin. */
.gr-v100-ui .gr101-appbar {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:10px; margin:0 0 12px; padding:9px 14px;
  background:#fff; color:#162432; border-radius:15px;
  border:1px solid #dfe5eb; box-shadow:0 4px 18px #192a3810;
}
.gr-v100-ui .gr101-appbar-brand {display:flex; align-items:center; gap:11px; min-width:0;}
.gr-v100-ui .gr101-mark {width:41px;height:41px;flex:0 0 41px;display:grid;place-items:center;background:#f7c944;color:#152231;font-weight:950;border-radius:11px;overflow:hidden;border:1px solid #e6c56a;}
.gr-v100-ui .gr101-mark img {width:100%;height:100%;object-fit:contain;}
.gr-v100-ui .gr101-brandcopy {min-width:0;display:flex;flex-direction:column;line-height:1.4;}
.gr-v100-ui .gr101-brandcopy strong {font-size:12px;letter-spacing:.4px;white-space:nowrap;}
.gr-v100-ui .gr101-brandcopy small {font-size:10px;color:#7a8998;}
.gr-v100-ui .gr101-appbar-actions {display:flex;align-items:center;gap:7px;}
.gr-v100-ui .gr101-head-button {height:37px;min-width:37px;display:grid;place-items:center;position:relative;border-radius:10px;border:1px solid #e0e6ec;background:#f7f9fb;color:#182c3c;font-size:19px;}
.gr-v100-ui .gr101-notify-count {position:absolute;top:-5px;inset-inline-end:-5px;background:#f7c944;color:#172231;min-width:18px;height:18px;line-height:18px;padding:0 4px;border-radius:99px;font-weight:900;font-size:10px;}
.gr-v100-ui .topbar { background:#142331!important; border:1px solid #283d4e!important; border-top:3px solid #f7c944!important; color:#f5f7fa!important; border-radius:15px!important; padding:10px 16px!important; box-shadow:0 5px 16px #14233114!important; }
.gr-v100-ui .topbar .heading {font-size:clamp(17px,1.55vw,23px);color:#fff!important;}
.gr-v100-ui .topbar .crumb {color:#b6c6d5!important;}
.gr-v100-ui .topbar .topright {display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end;}
.gr-v100-ui .topbar .topright .input {color:#f7f8fa;background:#22384a;border:1px solid #526576;border-radius:9px;}
.gr-v100-ui .topbar .topright option {color:#172432;background:#fff;}
.gr-v100-ui .topbar .daily-usd {border-radius:10px!important;padding:5px 10px!important;background:#071624!important;font-size:10px;}
.gr-v100-ui .topbar .daily-usd b {font-size:12px;color:#f7c944;}
.gr-v100-ui .gr101-release-tag {display:inline-block;margin-top:3px;font-size:9px;line-height:1.4;color:#ffdb72;font-weight:800;letter-spacing:.35px;}
.gr-v100-ui .card {background:#fff; border:1px solid #e0e6ed; border-radius:15px;box-shadow:0 4px 18px #1524320b;}
.gr-v100-ui .btn {border-radius:10px;min-height:39px;font-weight:800;}
.gr-v100-ui .btn:not(.red):not(.soft):not(.dark) {background:#f7c944;color:#132232;}
.gr-v100-ui .input {border:1px solid #dce4ec;border-radius:11px;min-height:39px;}
.gr-v100-ui :where(.notice,.good) {border-radius:12px;}
.gr-v100-ui .sectionline {margin-block:12px;}
.gr-v100-ui .sectionline h3 {font-size:16px;}
.gr-v100-ui .foot {font-size:11px;color:#738294;margin-top:20px;}

/* 01. Real Home screen; mobile content order matches the approved Native Home. */
.gr-v100-ui .gr101-native-home {display:grid;gap:16px;max-width:1600px;margin:0 auto;}
.gr-v100-ui .gr101-welcome {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 1px;}
.gr-v100-ui .gr101-welcome small {color:#7b8b9b;font-size:12px;}
.gr-v100-ui .gr101-welcome h2 {color:#1d3145;font-size:19px;margin:2px 0 0;font-weight:950;}
.gr-v100-ui .gr101-welcome-shortcut {background:#e8edf2;color:#1b2d3e;padding:8px 12px;border-radius:10px;font-weight:800;font-size:12px;}
.gr-v100-ui .gr101-welcome-shortcut b {display:inline-grid;place-items:center;background:#f7c944;color:#172432;padding:0 6px;min-width:17px;border-radius:99px;margin-inline:3px;}
.gr-v100-ui .gr101-searchbox {display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dbe3eb;border-radius:14px;padding:5px 7px 5px 10px;box-shadow:0 3px 12px #1019230b;}
.gr-v100-ui .gr101-searchbox>span {font-size:25px;color:#4d657a;padding:0 8px;}
.gr-v100-ui .gr101-searchbox .input {flex:1;min-width:0;height:41px;border:0;background:transparent;box-shadow:none;outline:0;}
.gr-v100-ui .gr101-search-submit {border-radius:10px;background:#f7c944;color:#142331;font-weight:850;padding:11px 17px;min-width:67px;}
.gr-v100-ui .gr101-campaign-banner {min-height:204px;position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;border-radius:18px;border:1px solid #2e4658;color:#fff;background:linear-gradient(110deg,#173d3a 0%,#152c37 62%,#12202e 100%);box-shadow:0 7px 22px #15243219;}
.gr-v100-ui .gr101-campaign-bg {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;pointer-events:none;}
.gr-v100-ui .gr101-campaign-banner:after {content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#091827d9,#112333c8 56%,#142f3ca8);}
.gr-v100-ui .gr101-campaign-text {padding:22px 28px;max-width:710px;}
.gr-v100-ui .gr101-campaign-text small {font-size:11px;color:#f7c944;font-weight:900;letter-spacing:1px;}
.gr-v100-ui .gr101-campaign-text h2 {font-size:clamp(20px,2.2vw,32px);font-weight:950;line-height:1.5;margin:8px 0 6px;color:#fff;}
.gr-v100-ui .gr101-campaign-text p {font-size:12px;line-height:1.8;color:#dbe6ec;margin:0 0 14px;}
.gr-v100-ui .gr101-gold-cta {border-radius:10px;background:#f7c944;color:#132230;font-weight:900;font-size:12px;min-height:38px;padding:9px 16px;}
.gr-v100-ui .gr101-home-section {min-width:0;}
.gr-v100-ui .gr101-section-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px;}
.gr-v100-ui .gr101-section-heading h3 {font-size:16px;color:#1b2b3c;font-weight:950;margin:0;}
.gr-v100-ui .gr101-section-heading button {border:0;background:none;color:#7d6519;font-weight:850;font-size:12px;}
.gr-v100-ui .gr101-category-strip {display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding:3px 3px 12px;scrollbar-width:thin;}
.gr-v100-ui .gr101-category-tile {flex:0 0 143px;scroll-snap-align:start;min-width:0;display:grid;justify-items:center;align-content:start;gap:6px;background:#fff;color:#1d3044;border:1px solid #e0e6eb;border-radius:15px;padding:11px;box-shadow:0 2px 11px #1225360b;}
.gr-v100-ui .gr101-category-tile:hover {border-color:#e0b62c;transform:translateY(-2px);}
.gr-v100-ui .gr101-category-pic {width:100%;height:96px;display:grid;place-items:center;background:#f5f7f9;border-radius:11px;overflow:hidden;font-size:29px;color:#415567;}
.gr-v100-ui .gr101-category-pic img {width:100%;height:100%;object-fit:contain;padding:8px;}
.gr-v100-ui .gr101-category-tile b {font-size:12px;font-weight:850;text-align:center;max-width:100%;overflow-wrap:anywhere;}
.gr-v100-ui .gr101-category-tile small {font-size:10px;color:#718398;}
.gr-v100-ui .gr101-no-data {margin:0;padding:13px;background:#fff;color:#75879a;border:1px dashed #d5dde6;border-radius:12px;}
.gr-v100-ui .gr101-shortcut-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.gr-v100-ui .gr101-spotlight {position:relative;overflow:hidden;min-height:115px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:start;gap:3px;border:1px solid #dce5ed;padding:14px 18px;border-radius:15px;}
.gr-v100-ui .gr101-spotlight>span {position:absolute;inset-inline-end:17px;top:14px;font-weight:950;font-size:27px;opacity:.7;}
.gr-v100-ui .gr101-spotlight small {opacity:.85;font-size:11px;font-style:normal;}
.gr-v100-ui .gr101-spotlight strong {font-size:17px;line-height:1.5;}
.gr-v100-ui .gr101-spotlight em {font-size:11px;font-style:normal;font-weight:800;margin-top:5px;}
.gr-v100-ui .gr101-spotlight-gold {background:linear-gradient(135deg,#f9e9a9,#f3c847);color:#1c2b3d;}
.gr-v100-ui .gr101-spotlight-navy {background:linear-gradient(135deg,#162b3c,#274759);color:#fff;border-color:#2b4256;}
.gr-v100-ui .gr101-featured-products {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}

/* 02. Products browser uses shared native product card, without old Home banner. */
.gr-v100-ui .gr101-page-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px;padding:11px 16px;border-radius:15px;color:#fff;background:#142331;border-inline-start:4px solid #f7c944;}
.gr-v100-ui .gr101-page-heading small {font-size:10px;letter-spacing:.5px;color:#e9ca6d;}
.gr-v100-ui .gr101-page-heading h2 {color:#fff;margin:3px 0;font-size:21px;}
.gr-v100-ui .gr101-page-heading button {flex:0 0 auto;}
.gr-v100-ui :where(.grid,.gr101-featured-products) {grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.gr-v100-ui .product {border-radius:15px;min-width:0;max-width:none!important;background:#fff;display:flex;flex-direction:column;border:1px solid #e1e6ec;overflow:hidden;box-shadow:0 3px 14px #12253609;}
.gr-v100-ui .productpic {height:clamp(145px,14vw,205px);min-height:0;background:#f8f9fb;position:relative;}
.gr-v100-ui .productpic img {width:100%;height:100%;padding:12px;object-fit:contain;}
.gr-v100-ui .product .gr100-details-link {background:#142331;color:#fff;border:1px solid #f7c94477;border-radius:8px;font-size:10px;}
.gr-v100-ui .product .pbody {display:flex;flex:1;flex-direction:column;gap:4px;padding:12px;}
.gr-v100-ui .product .pname {min-height:31px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px;font-weight:850;line-height:1.45;}
.gr-v100-ui .product .pcode {font-size:10px;color:#74879a;direction:auto;}
.gr-v100-ui .product .pack-note {margin-top:auto;background:#f4f6f8;color:#465c72;padding:5px 8px;font-size:10px;}
.gr-v100-ui .product .pfoot {gap:6px;padding-top:8px;border-top:1px solid #edf1f5;margin-top:7px;}
.gr-v100-ui .product .pfoot .price {font-size:16px;color:#0b7d5b;font-weight:950;line-height:1.4;}
.gr-v100-ui .product .pfoot .price small {font-size:10px;}
.gr-v100-ui .product .pfoot .toolbar {margin:0;gap:0;flex:1 1 100%;}
.gr-v100-ui .product .pfoot .toolbar .btn {width:100%;border-radius:9px;min-height:34px;font-size:11px;background:#f7c944;color:#132331;}
.gr-v100-ui .filters {display:flex;flex-wrap:wrap;gap:9px;padding:11px;margin-bottom:15px;}
.gr-v100-ui .filters .search {flex:1 1 240px;min-width:0;}
.gr-v100-ui .filters .filter-select {flex:0 1 220px;}
.gr-v100-ui .catgroup-heading {display:flex;justify-content:space-between;align-items:center;border-inline-start:4px solid #f7c944;border-radius:11px;padding:9px 12px;background:#fff;}
.gr-v100-ui .catgroup-heading h3 {font-size:14px;font-weight:900;}
.gr-v100-ui .catgroup-heading .count {color:#66798a;font-size:11px;}
/* 03. Category grid cards; image first, text below. */
.gr-v100-ui .category-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.gr-v100-ui .category-card {min-height:0;padding:10px;border-radius:15px;background:#fff;border:1px solid #e0e6ed;box-shadow:0 3px 14px #1225360b;}
.gr-v100-ui .category-card img {height:130px;width:100%;background:#f6f8fa;border-radius:11px;object-fit:contain;padding:7px;}
.gr-v100-ui .category-card b {font-size:13px;color:#203347;}
.gr-v100-ui .category-card span {font-size:11px;color:#667b8e;}
.gr-v100-ui .category-card small {color:#aa7d19;}
.gr-v100-ui .gr77-category-box {background:transparent;}
/* 04/05. Cart and order cards follow Native list/order shape. */
.gr-v100-ui[data-gr-page="cart"] .card {padding:16px;}
.gr-v100-ui .cart-product {align-items:center;gap:12px;}
.gr-v100-ui .cart-image {width:64px;height:64px;border-radius:9px;object-fit:contain;background:#f5f7f9;}
.gr-v100-ui .quantity {width:90px;min-width:62px;}
.gr-v100-ui .totalbar {background:#142331;border-inline-start:4px solid #f7c944;padding:16px;box-shadow:0 6px 18px #14233120;}
.gr-v100-ui .totalbar strong {color:#f7c944;font-size:21px;}
.gr-v100-ui[data-gr-page="orders"] .tablewrap {border:0;background:transparent;box-shadow:none;}
.gr-v100-ui[data-gr-page="orders"] .table thead {display:none;}
.gr-v100-ui[data-gr-page="orders"] .table {min-width:0;width:100%;display:block;}
.gr-v100-ui[data-gr-page="orders"] .table tbody {display:grid;grid-template-columns:repeat(auto-fit,minmax(295px,1fr));gap:12px;}
.gr-v100-ui[data-gr-page="orders"] .table tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-width:0;background:#fff;border:1px solid #e0e6ed;border-top:3px solid #f7c944;border-radius:14px;padding:14px;box-shadow:0 4px 14px #1723330b;}
.gr-v100-ui[data-gr-page="orders"] .table td {display:block;min-width:0;border:0;padding:3px 0;}
.gr-v100-ui[data-gr-page="orders"] .table td:last-child {grid-column:1/-1;}
/* 06. Ready packages, no mandatory donum decoration. */
.gr-v100-ui[data-gr-page="templates"] .three {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.gr-v100-ui .package-card {border:1px solid #e0e6ed;border-top:3px solid #f7c944;border-radius:15px;background:#fff;overflow:hidden;padding:12px;}
.gr-v100-ui .package-thumbs {background:#f6f8fa;border-radius:10px;}
.gr-v100-ui .package-card .btn {margin-top:auto;}
/* 07. Keep each original campaign's unique artwork, change only outer cards. */
.gr-v100-ui .gr99-page {padding:0;max-width:100%;}
.gr-v100-ui .gr99-banner {border-radius:16px;overflow:hidden;}
.gr-v100-ui .gr99-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.gr-v100-ui .gr99-product {border:1px solid #e0e6ed;border-radius:14px;background:#fff;overflow:hidden;}
.gr-v100-ui .gr99-image img {object-fit:contain;}
/* 08/09. Document catalogue and notification center. */
.gr-v100-ui[data-gr-page="catalogs"] .card {border-top:3px solid #f7c944;}
.gr-v100-ui[data-gr-page="notifications"] .gr100-notice-center {max-width:1100px;margin:auto;}
.gr-v100-ui[data-gr-page="notifications"] .notification-row {gap:10px;border-inline-start:4px solid #d5dce5;border-radius:13px;}
.gr-v100-ui[data-gr-page="notifications"] .notification-row.unread {border-inline-start-color:#f7c944;background:#fffbef;}
/* 10. Account profile native-style dark identity panel and grouped settings. */
.gr-v100-ui[data-gr-page="profile"] .card:first-child {background:#142331;color:#fff;border-top:3px solid #f7c944;}
.gr-v100-ui[data-gr-page="profile"] .card:first-child :where(h2,h3,b,strong) {color:#f7c944;}
.gr-v100-ui[data-gr-page="profile"] .card:first-child .muted {color:#d0dce8;}
.gr-v100-ui[data-gr-page="profile"] .card:not(:first-child) {border-radius:14px;}
/* 11. Supplier workspaces in the same GR navy/gold visual family. */
.gr-v100-ui .v51-head {background:#142331;color:#fff;border-inline-start:4px solid #f7c944;border-radius:12px;}
.gr-v100-ui .v51-company-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.gr-v100-ui .v51-company {border-radius:14px;border:1px solid #e0e6ed;background:#fff;}
.gr-v100-ui .v51-tabs button.on {background:#f7c944;color:#142331;}
.gr-v100-ui .v7-workspace .card {border-radius:13px;}
/* 12. Notifications Studio; keep controls permission-gated by existing API. */
.gr-v100-ui[data-gr-page="announcements"] .card {background:#fff;border-top:3px solid #f7c944;max-width:1100px;}
.gr-v100-ui[data-gr-page="announcements"] .formgrid {gap:12px;}
.gr-v100-ui[data-gr-page="announcements"] textarea {min-height:100px;}
/* 13. Delivery accounting: totals, tabs, cards. */
.gr-v100-ui .d-stat {border:1px solid #e0e6ed;border-radius:13px;background:#fff;}
.gr-v100-ui .d-tabs {gap:8px;}
.gr-v100-ui .d-tabs button {border-radius:10px;}
.gr-v100-ui .d-tabs button.on {color:#142331;background:#f7c944;}
.gr-v100-ui .d-cta {border-radius:10px;}
.gr-v100-ui .d-form,.gr-v100-ui .d-grid {gap:12px;}
/* Keep sensitive admin interfaces in the same visual system, not a second app. */
.gr-v100-ui[data-gr-page="products"] :where(.card,.tablewrap),
.gr-v100-ui[data-gr-page="users"] :where(.card,.tablewrap),
.gr-v100-ui[data-gr-page="adminorders"] :where(.card,.tablewrap) {border-radius:14px;}
.gr-v100-ui[data-gr-page="settings"] .card {border-top:2px solid #f7c944;}
.gr-v100-ui .table th {background:#f2f5f8;color:#46596b;}
.gr-v100-ui .table td {border-color:#e9edf2;}
/* Strong visual difference and permanently visible version marker aid deployment checks. */
.gr-v100-ui .gr101-native-home .gr101-campaign-banner {border-bottom:3px solid #f7c944;}

/* Widescreen: native cards adapt to the available desktop workspace. */
@media(min-width:1750px){
 .gr-v100-ui .grid,.gr-v100-ui .gr101-featured-products {grid-template-columns:repeat(8,minmax(0,1fr));}
 .gr-v100-ui .gr99-grid {grid-template-columns:repeat(6,minmax(0,1fr));}
 .gr-v100-ui[data-gr-page="templates"] .three {grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media(min-width:1330px) and (max-width:1749px){
 .gr-v100-ui .grid,.gr-v100-ui .gr101-featured-products {grid-template-columns:repeat(6,minmax(0,1fr));}
}
@media(min-width:930px) and (max-width:1329px){
 .gr-v100-ui .grid,.gr-v100-ui .gr101-featured-products {grid-template-columns:repeat(4,minmax(0,1fr));}
 .gr-v100-ui .category-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
 .gr-v100-ui .gr99-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
 .gr-v100-ui .v51-company-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(min-width:881px) and (max-width:929px){
 .gr-v100-ui .grid,.gr-v100-ui .gr101-featured-products {grid-template-columns:repeat(3,minmax(0,1fr));}
 .gr-v100-ui .gr101-category-tile {flex-basis:128px;}
 .gr-v100-ui .topbar .topright .daily-usd {display:none;}
}

/* Native phone layout and fixed five-tab bottom bar. */
@media(max-width:880px){
 body:has(.gr-v100-ui){max-width:100vw;overflow-x:hidden;}
 .gr-v100-ui .main {width:100%;padding:62px 12px calc(90px + env(safe-area-inset-bottom,0px))!important;}
 .gr-v100-ui .gr101-appbar {position:relative;z-index:1;padding:8px 11px;border-radius:13px;margin-bottom:11px;}
 .gr-v100-ui .gr101-mark {width:36px;height:36px;flex-basis:36px;border-radius:9px;}
 .gr-v100-ui .gr101-brandcopy strong {font-size:11px;}
 .gr-v100-ui .gr101-brandcopy small {font-size:9px;}
 .gr-v100-ui .topbar {padding:8px 11px!important;display:flex;flex-direction:column;gap:8px!important;border-top-width:2px!important;}
 .gr-v100-ui .topbar>div:first-child {display:flex;align-items:center;flex-wrap:wrap;gap:7px;}
 .gr-v100-ui .topbar .crumb {display:none;}
 .gr-v100-ui .topbar .heading {font-size:15px!important;line-height:1.4;}
 .gr-v100-ui .gr101-release-tag {font-size:9px;margin:0;}
 .gr-v100-ui .topbar .topright {display:flex;gap:6px;max-height:128px;overflow:auto;}
 .gr-v100-ui .topbar .topright>* {min-width:0;flex:1 1 130px;}
 .gr-v100-ui .topbar .topright .daily-usd {display:none;}
 .gr-v100-ui .topbar .topright .pill {display:none;}
 .gr-v100-ui .gr101-native-home {gap:14px;}
 .gr-v100-ui .gr101-welcome h2 {font-size:16px;}
 .gr-v100-ui .gr101-welcome-shortcut {font-size:10px;}
 .gr-v100-ui .gr101-searchbox {padding:4px;gap:3px;}
 .gr-v100-ui .gr101-searchbox .input {height:37px;font-size:12px;}
 .gr-v100-ui .gr101-search-submit {min-width:50px;font-size:11px;padding:9px;}
 .gr-v100-ui .gr101-campaign-banner {min-height:184px;border-radius:14px;}
 .gr-v100-ui .gr101-campaign-text {padding:16px;}
 .gr-v100-ui .gr101-campaign-text h2 {font-size:19px;line-height:1.4;}
 .gr-v100-ui .gr101-campaign-text p {font-size:11px;}
 .gr-v100-ui .gr101-category-strip {gap:8px;}
 .gr-v100-ui .gr101-category-tile {flex-basis:105px;padding:8px;gap:4px;}
 .gr-v100-ui .gr101-category-pic {height:80px;border-radius:9px;}
 .gr-v100-ui .gr101-category-tile b {font-size:11px;}
 .gr-v100-ui .gr101-section-heading h3 {font-size:15px;}
 .gr-v100-ui .gr101-shortcut-pair {gap:8px;}
 .gr-v100-ui .gr101-spotlight {min-height:108px;padding:11px;border-radius:13px;}
 .gr-v100-ui .gr101-spotlight strong {font-size:13px;}
 .gr-v100-ui .gr101-spotlight small,.gr-v100-ui .gr101-spotlight em {font-size:10px;}
 .gr-v100-ui .gr101-spotlight>span {font-size:21px;top:10px;inset-inline-end:10px;}
 .gr-v100-ui .grid,.gr-v100-ui .gr101-featured-products {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;}
 .gr-v100-ui .productpic {height:145px!important;}
 .gr-v100-ui .productpic img {padding:7px;}
 .gr-v100-ui .product .pbody {padding:8px!important;gap:4px;}
 .gr-v100-ui .product .pname {font-size:12px;min-height:31px;}
 .gr-v100-ui .product .pcode {font-size:10px;}
 .gr-v100-ui .product .pfoot .price {font-size:13px;}
 .gr-v100-ui .product .pack-note {font-size:9px;}
 .gr-v100-ui .product .pfoot .toolbar .btn {min-height:32px;font-size:10px;padding:7px 4px;}
 .gr-v100-ui .product .gr100-details-link {font-size:9px;padding:3px 7px;}
 .gr-v100-ui .category-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px;}
 .gr-v100-ui .category-card {min-height:0;padding:8px;}
 .gr-v100-ui .category-card img {height:110px;}
 .gr-v100-ui[data-gr-page="templates"] .three {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;}
 .gr-v100-ui .gr99-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;}
 .gr-v100-ui .filters {display:flex;flex-direction:column;gap:8px;padding:9px;}
 .gr-v100-ui .filters .search,.gr-v100-ui .filters .filter-select {flex:1 1 auto;width:100%;}
 .gr-v100-ui .gr101-page-heading h2 {font-size:16px;}
 .gr-v100-ui .gr101-page-heading .gr101-gold-cta {font-size:11px;min-height:34px;padding:6px 10px;}
 .gr-v100-ui .v51-company-grid {grid-template-columns:1fr!important;}
 .gr-v100-ui .v51-product-grid.v60-shopping-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .gr-v100-ui .v51-tabs {overflow-x:auto;flex-wrap:nowrap;}
 .gr-v100-ui .v51-tabs button {flex:0 0 auto;}
 .gr-v100-ui[data-gr-page="orders"] .table tbody {grid-template-columns:1fr;}
 .gr-v100-ui[data-gr-page="cart"] .table tbody tr {border-radius:14px;}
 .gr-v100-ui .gr-v34-mobile-dock {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));}
 .gr-v34-mobile-dock {background:#fff!important;border-top:1px solid #dde6ee!important;padding:7px 4px calc(7px + env(safe-area-inset-bottom,0px))!important;box-shadow:0 -4px 17px #10192317!important;}
 .gr-v34-mobile-dock button {font-size:10px!important;min-height:50px;padding:3px 2px!important;}
 .gr-v34-mobile-dock .gr-v34-dock-icon {font-size:19px!important;}
 .gr-v34-mobile-dock button[data-active="true"] {background:#fff3c5!important;color:#142331!important;}
}
@media(max-width:360px){
 .gr-v100-ui .gr101-campaign-text h2 {font-size:16px;}
 .gr-v100-ui .productpic {height:125px!important;}
 .gr-v100-ui .gr101-category-tile {flex-basis:100px;}
 .gr-v100-ui .gr101-spotlight strong {font-size:12px;}
}

/* Automatic theme parity with native OS appearance. */
@media(prefers-color-scheme:dark){
 body:has(.gr-v100-ui){background:#10151d;}
 .gr-v100-ui {--gr101-bg:#10151d;--gr101-text:#f3f5f8;--gr101-border:#344354;--bg:#10151d;--text:#f3f5f8;--line:#354153;color:#f3f5f8;background:#10151d;}
 .gr-v100-ui :where(.gr101-appbar,.gr101-category-tile,.gr101-searchbox,.card,.category-card,.product,.filters,.catgroup-heading,.d-stat,.v51-company,.package-card,.gr100-notice-center .notification-row){background:#1b2836;color:#f3f5f8;border-color:#364557;}
 .gr-v100-ui :where(.gr101-welcome h2,.gr101-section-heading h3,.gr101-category-tile b,.product .pname,.category-card b){color:#f3f5f8;}
 .gr-v100-ui .gr101-searchbox input {color:#f3f5f8;}
 .gr-v100-ui :where(.gr101-welcome small,.gr101-category-tile small,.gr101-brandcopy small,.gr101-no-data){color:#aebdcd;}
 .gr-v100-ui .gr101-category-pic,.gr-v100-ui .productpic,.gr-v100-ui .category-card img,.gr-v100-ui .package-thumbs {background:#263547;}
 .gr-v100-ui .gr101-head-button,.gr-v100-ui .gr101-welcome-shortcut {background:#27394a;color:#edf3fa;border-color:#45566a;}
 .gr-v100-ui .gr101-page-heading {background:#152638;}
 .gr-v100-ui .gr101-spotlight-gold {color:#172532;}
 .gr-v100-ui .product .pack-note {background:#2e4153;color:#d9e5ef;}
 .gr-v100-ui .product .pfoot {border-color:#435363;}
 .gr-v100-ui .table th {background:#29394b;color:#e0e9f3;}
 .gr-v100-ui .table td {color:#ecf3fa;border-color:#3c4e62;}
 .gr-v100-ui[data-gr-page="profile"] .card:first-child {background:#142331;}
 @media(max-width:880px){.gr-v34-mobile-dock {background:#142331!important;border-color:#35465b!important;}.gr-v34-mobile-dock button {color:#d1dfec!important;}.gr-v34-mobile-dock button[data-active="true"]{color:#172432!important;}}
}
@media print {
 .gr-v100-ui .gr101-appbar,.gr-v100-ui .gr101-welcome-shortcut,.gr-v100-ui .gr101-searchbox,.gr-v100-ui .gr101-shortcut-pair,.gr-v100-ui .gr101-category-strip {display:none!important;}
}
/* Native account (Prompt 10): identity, four shortcuts and grouped detail form. */
.gr-v100-ui .gr101-account-page {max-width:1060px;margin:0 auto;display:grid;gap:15px;}
.gr-v100-ui .gr101-account-hero {border-radius:17px;padding:22px;background:linear-gradient(125deg,#142331,#243a50);border-top:3px solid #f7c944;display:flex;align-items:center;gap:16px;min-height:135px;color:#fff;}
.gr-v100-ui .gr101-account-avatar {width:62px;height:62px;flex:0 0 62px;border-radius:18px;background:#f7c944;color:#142331;font-size:31px;font-weight:950;display:grid;place-items:center;}
.gr-v100-ui .gr101-account-identity {flex:1;min-width:0;}
.gr-v100-ui .gr101-account-identity small {font-size:10px;letter-spacing:.5px;color:#f7c944;}
.gr-v100-ui .gr101-account-identity h2 {font-size:21px;margin:3px 0;color:#fff;}
.gr-v100-ui .gr101-account-identity div {color:#c8d7e5;font-size:12px;overflow-wrap:anywhere;}
.gr-v100-ui .gr101-account-tier {background:#f7c944;color:#142331;border-radius:99px;padding:5px 12px;font-size:12px;font-weight:850;}
.gr-v100-ui .gr101-account-shortcuts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;}
.gr-v100-ui .gr101-account-shortcuts button {background:#fff;border:1px solid #e0e6ec;border-bottom:3px solid #f7c944;border-radius:14px;min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#203347;}
.gr-v100-ui .gr101-account-shortcuts button span {font-size:24px;line-height:1;}
.gr-v100-ui .gr101-account-shortcuts button b {font-size:11px;text-align:center;}
.gr-v100-ui .gr101-account-form>.card {max-width:none!important;background:#fff!important;color:#18202a!important;border:1px solid #e1e6ed!important;border-top:3px solid #f7c944!important;box-shadow:0 4px 18px #1524320a!important;}
.gr-v100-ui .gr101-account-form>.card :where(h2,h3,b,strong) {color:#142331!important;}
.gr-v100-ui .gr101-account-form>.card .muted {color:#6e7c8b!important;}
.gr-v100-ui .gr101-account-form .formgrid {gap:12px;}
.gr-v100-ui .gr101-account-form :where(input,textarea) {background:#f8fafb;}
/* Prompt 06 native package bar, three categories but no fake donum. */
.gr-v100-ui .gr101-package-browser {display:grid;gap:12px;}
.gr-v100-ui .gr101-package-head {display:flex;align-items:center;justify-content:space-between;gap:12px;background:#142331;color:#fff;border-radius:14px;border-inline-start:4px solid #f7c944;padding:15px;}
.gr-v100-ui .gr101-package-head small {color:#f7c944;font-size:10px;letter-spacing:.3px;}
.gr-v100-ui .gr101-package-head h2 {font-size:18px;margin:3px 0;color:#fff;}
.gr-v100-ui .gr101-package-count {color:#f7c944;font-size:12px;font-weight:800;}
.gr-v100-ui .gr101-package-filters {display:flex;gap:8px;flex-wrap:wrap;}
.gr-v100-ui .gr101-package-filters button {border-radius:999px;padding:8px 14px;background:#fff;border:1px solid #e0e6ec;color:#32485c;font-size:12px;font-weight:800;}
.gr-v100-ui .gr101-package-filters button.on {background:#f7c944;border-color:#e3b72b;color:#142331;}
.gr-v100-ui .gr101-package-browser>.three {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
@media(min-width:881px) and (max-width:1240px){.gr-v100-ui .gr101-package-browser>.three {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:880px){
 .gr-v100-ui .gr101-account-hero {min-height:108px;padding:14px;gap:10px;flex-wrap:wrap;}
 .gr-v100-ui .gr101-account-avatar {width:48px;height:48px;flex-basis:48px;border-radius:12px;font-size:25px;}
 .gr-v100-ui .gr101-account-identity h2 {font-size:17px;}
 .gr-v100-ui .gr101-account-tier {font-size:10px;}
 .gr-v100-ui .gr101-account-shortcuts {gap:6px;}
 .gr-v100-ui .gr101-account-shortcuts button {min-height:65px;padding:6px 2px;}
 .gr-v100-ui .gr101-account-shortcuts button span {font-size:19px;}
 .gr-v100-ui .gr101-account-shortcuts button b {font-size:9px;}
 .gr-v100-ui .gr101-account-form>.card {padding:12px;}
 .gr-v100-ui .gr101-package-head {padding:11px;}
 .gr-v100-ui .gr101-package-head h2 {font-size:15px;}
 .gr-v100-ui .gr101-package-filters {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
 .gr-v100-ui .gr101-package-filters button {padding:7px 4px;font-size:11px;}
 .gr-v100-ui .gr101-package-browser>.three {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;}
}
@media(prefers-color-scheme:dark){
 .gr-v100-ui .gr101-account-shortcuts button,
 .gr-v100-ui .gr101-account-form>.card {background:#1c2a39!important;color:#fff!important;border-color:#3c4e62!important;}
 .gr-v100-ui .gr101-account-shortcuts button b {color:#f2f5f8;}
 .gr-v100-ui .gr101-account-form>.card :where(h2,h3,b,strong) {color:#f2f5f8!important;}
 .gr-v100-ui .gr101-account-form>.card .muted {color:#b8c5d2!important;}
 .gr-v100-ui .gr101-package-filters button {background:#223448;color:#e1ebf4;border-color:#415568;}
 .gr-v100-ui .gr101-package-filters button.on {background:#f7c944;color:#142331;}
}
/* Phone grid safety: prices and add buttons must stay inside each card in RTL. */
@media (max-width: 880px) {
 .gr-v100-ui .product .pfoot {display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;min-width:0;margin-inline:0!important;}
 .gr-v100-ui .product .pfoot .toolbar {display:block!important;flex:none!important;position:static!important;transform:none!important;max-width:100%!important;width:100%!important;margin:0!important;gap:0!important;min-width:0!important;}
 .gr-v100-ui .product .pfoot .toolbar .btn {display:block!important;position:static!important;transform:none!important;box-sizing:border-box!important;max-width:100%!important;width:100%!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;line-height:1.5!important;}
}
