:root {
  --navy: #0d2a5c;
  --blue: #1e63d6;
  --blue-light: #dbe7fb;
  --bg: #ffffff;
  --ink: #17222f;
  --line: #d5e0ee;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; }

.bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
       padding: .75rem 1.25rem; background: var(--navy); }
.brand { color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.brand small { color: var(--blue-light); font-weight: 400; }
.bar nav button { background: none; border: 0; color: #fff; font: inherit; font-weight: 700; font-size: 1.05rem;
                  cursor: pointer; padding: .4rem .7rem; }
.bar nav button:hover { text-decoration: underline; }

main { width: 100%; max-width: 640px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; color: var(--navy); }
h2 { color: var(--navy); }
.back { background: none; border: 0; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 1rem; }
.back:hover { text-decoration: underline; }
main a { color: var(--navy); font-weight: 600; }
.lead { font-size: 1.15rem; }
.how { padding-left: 1.2rem; }
.note { font-size: .9rem; color: #5a6b7a; }
[hidden] { display: none !important; }

form { display: grid; gap: .9rem; }
label { display: grid; gap: .25rem; font-weight: 600; }
input, select, textarea { font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.check { display: flex; gap: .6rem; font-weight: 400; align-items: start; }

button.primary, button.ghost { font: inherit; font-weight: 600; padding: .65rem 1.2rem; border-radius: 6px; cursor: pointer; }
button.primary { background: var(--blue); color: #fff; border: 0; }
button.ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.25rem 0; }

#card3d { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; cursor: grab;
          background: radial-gradient(circle at 50% 40%, #ffffff, var(--blue-light)); }
#card3d:active { cursor: grabbing; }
#card3d canvas { display: block; max-width: 100%; height: auto; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; display: grid; gap: .6rem; }
.result { border-color: var(--blue); background: #f3f7fe; }

.status { display: grid; justify-items: center; gap: 1rem; padding: 3rem 0; text-align: center; }
.spinner { width: 56px; height: 56px; border: 6px solid var(--blue-light); border-top-color: var(--blue);
           border-radius: 50%; animation: spin .9s linear infinite; }
.tick { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%;
        background: var(--blue); color: #fff; font-size: 2.5rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* Dashboard side menu */
.layout.with-side { display: grid; grid-template-columns: 250px 1fr; }
#sidenav { display: flex; flex-direction: column; gap: .25rem; padding: 1rem .75rem;
           background: var(--navy); min-height: calc(100vh - 56px); }
#sidenav [data-role] { display: contents; }
#sidenav button { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .65rem .8rem;
                  background: none; border: 0; border-radius: 8px; color: #fff; font: inherit; font-weight: 700;
                  text-align: left; cursor: pointer; }
#sidenav button:hover { background: rgba(255, 255, 255, .12); }
#sidenav button[aria-current] { background: var(--blue); font-weight: 600; }
#sidenav svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor;
               stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


/* Dashboard look: navy side menu, light page, white cards */
.layout.with-side { background: #f2f5fa; }
.layout.with-side main { max-width: 900px; margin: 0; }
.layout.with-side button.primary { background: var(--blue); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1rem 0; }
.stat { display: grid; gap: .25rem; padding: 1rem; background: #fff; border: 1px solid var(--line);
        border-radius: 12px; box-shadow: 0 1px 3px rgba(13, 42, 92, .08); }
.stat b { font-size: 1.6rem; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .25rem .8rem; background: #e8f0fe; color: var(--navy); border-radius: 999px; font-weight: 600; }
.dish { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem;
        padding: .75rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.dish.unsafe { background: #fff7f7; border-color: #f0b4b4; }
.dish.unsafe .dish-img { opacity: .6; }
.tag { padding: .2rem .6rem; background: #fde8e8; color: #a12626; border-radius: 6px;
       font-size: .85rem; font-weight: 600; white-space: nowrap; }
.link { background: none; border: 0; padding: 0; color: var(--navy); font: inherit; text-decoration: underline; cursor: pointer; }

.brand img { display: block; height: 56px; padding: 4px 12px; background: #fff; border-radius: 8px; }
#card2d { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 1rem 0; }
#card2d canvas { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 2px 8px rgba(13, 42, 92, .15); }
#history { margin: 0; padding-left: 1.2rem; }

.layout.with-side main { max-width: 1180px; margin: 0 auto; padding: 2rem 1.75rem 4rem; }

.card-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: center;
  margin: 1.5rem auto 2.5rem;
  width: 100%;
  max-width: 1100px;
}
.card-info { flex: 0 1 420px; min-width: 320px; }
.card-info h3 { margin-top: 0; margin-bottom: 0.85rem; font-size: 1.25rem; }
.card-info .panel { padding: 1.35rem 1.4rem; gap: 0.85rem; box-shadow: 0 2px 10px rgba(13, 42, 92, 0.07); }
.card-info input.locked, .card-info input[readonly] {
  background: #f0f4f9; color: #3a4a5a; cursor: default; border-color: #c8d4e4;
}
.avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--blue-light); background: #e8eef7;
}
.avatar-placeholder {
  display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: var(--navy); background: var(--blue-light);
}
.avatar-btn { font-size: 0.9rem; font-weight: 600; color: var(--blue); cursor: pointer; text-decoration: underline; }
.card-visual { flex: 0 1 520px; min-width: 280px; display: flex; flex-direction: column; align-items: center; }
.card-visual #card3d { width: 100%; max-width: 480px; }
.card-visual .note { text-align: center; }

#card2d canvas { cursor: zoom-in; }
#card3d.is-fullscreen {
  position: fixed; inset: 0; z-index: 80; width: 100vw; max-width: none; height: 100vh;
  aspect-ratio: auto; border-radius: 0; background: #eef3fb;
}
#card3d.is-fullscreen canvas { width: 100% !important; height: 100% !important; }
#zoom-layer { position: fixed; inset: 0; z-index: 90; background: rgba(13, 42, 92, .92); }
#zoom-layer.mode-3d { background: transparent; pointer-events: none; }
#zoom-layer.mode-3d #zoom-bar { pointer-events: auto; }
#zoom-bar { position: absolute; top: .75rem; right: .75rem; z-index: 2; display: flex; gap: .5rem; }
#zoom-bar button {
  min-width: 44px; min-height: 44px; border: 0; border-radius: 8px;
  background: #fff; color: var(--navy); font-weight: 700; font-size: 1.1rem;
}
#zoom-stage { width: 100%; height: 100%; overflow: hidden; display: grid; place-items: center; touch-action: none; }
#zoom-img { max-width: 92vw; max-height: 88vh; transform-origin: center center; border-radius: 12px; cursor: grab; }
.cart-remove { margin-left: .6rem; background: none; border: 0; padding: 0; color: #a12626; font-weight: 700; text-decoration: underline; cursor: pointer; }

@media (max-width: 980px) {
  .card-layout { flex-direction: column; align-items: center; }
  .card-info, .card-visual { width: 100%; max-width: 480px; }
}

/* Partner desk */
.list-stack { display: grid; gap: .75rem; margin-top: 1rem; }
.product-card .product-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.product-card .meta { margin: .25rem 0 0; font-size: .9rem; color: #5a6b7a; }
.danger-btn { color: #a12626 !important; border-color: #a12626 !important; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.filters button {
  min-height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-weight: 700; padding: .35rem 1rem;
}
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: .65rem .5rem; border-top: 1px solid var(--line); }
.table-wrap th { color: #5a6b7a; font-size: .75rem; text-transform: uppercase; }

.card-zoom-actions { justify-content: center; margin: 0.5rem 0 0.75rem; }
#zoom-layer[hidden] { display: none !important; }

/* AllerFoods restaurants */
.rest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
  margin: 0.75rem 0 1.25rem;
}
.rest-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: var(--ink);
}
.rest-card:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(13,42,92,.1); }
.rest-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue-light);
  background: #e8eef7;
}
.rest-logo-fallback {
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
}
.rest-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.rest-meta { font-size: 0.8rem; color: #5a6b7a; }
.rest-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.5rem 0 1rem;
}
.back-inline {
  background: none;
  border: 0;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.5rem;
}
.back-inline:hover { text-decoration: underline; }

/* Cart quantity + / − */
.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
  margin: 0.4rem 0;
}
#cart-lines { padding-left: 0; }
.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:hover { border-color: var(--blue); }
.qty-num { min-width: 1.25rem; text-align: center; font-weight: 700; }

/* Log in / Sign up dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; right: 0; top: 100%; z-index: 20; min-width: 190px; margin: .25rem 0 0;
                 padding: .35rem; list-style: none; background: #fff; border: 1px solid var(--line);
                 border-radius: 8px; box-shadow: 0 4px 14px rgba(13, 42, 92, .18); }
.bar nav .dropdown-menu button { display: block; width: 100%; text-align: left; color: var(--navy);
                                 font-size: 1rem; border-radius: 6px; }
.bar nav .dropdown-menu button:hover { background: var(--blue-light); text-decoration: none; }

/* Homepage */
.welcome h1 { font-size: clamp(1.5rem, 4vw, 1.9rem); }
.welcome h3 { color: var(--navy); margin: 1.5rem 0 1rem; }
.welcome hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0 0; }
.eyebrow { margin: 0 0 .75rem; font-size: .9rem; font-weight: 600; text-transform: uppercase; color: var(--navy); }
.steps { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step p { margin: .1rem 0 0; }
.step-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
             background: #e8f0fe; color: var(--navy); }
.step-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2;
                 stroke-linecap: round; stroke-linejoin: round; }

/* Employee dashboard */
[data-view="employee-home"] { max-width: 480px; margin: 0 auto; } /* centers the title, note and form together */
#form-employee input[readonly] { background: #f0f4f9; color: #3a4a5a; cursor: default; border-color: #c8d4e4; }
#eu-search, #eb-search { width: 100%; max-width: 380px; margin-bottom: 1rem; }
.row-actions { white-space: nowrap; }
.row-actions .link { margin-right: .75rem; }
.link.danger { color: #a12626; }
.badge { padding: .2rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.badge.ok { background: #e8f0fe; color: var(--navy); }
.badge.off { background: #fde8e8; color: #a12626; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem 1.5rem; }
.detail-grid div { display: grid; }
.detail-grid small { color: #5a6b7a; }

/* Product photos */
.product-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.product-text { flex: 1; }
.photo-preview { position: relative; width: 120px; height: 120px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.photo-preview button { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; padding: 0;
                        border: 0; border-radius: 50%; background: #a12626; color: #fff;
                        font-size: 1.1rem; line-height: 1; cursor: pointer; }
.dish-img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.dish > div { flex: 1; }

/* Allergy dropdown */
.allergy-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.allergy-field legend { padding: 0; margin-bottom: .25rem; font-weight: 600; }
.allergy-dropdown { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.allergy-dropdown summary { padding: .55rem .7rem; cursor: pointer; overflow: hidden;
                            text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.allergy-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem;
                   padding: .75rem; border-top: 1px solid var(--line); }
.allergy-options input[type="checkbox"] { width: auto; padding: 0; margin-top: .3rem; }
.allergy-other { grid-column: 1 / -1; display: grid; gap: .6rem; }
.allergy-add { display: flex; gap: .5rem; }
.allergy-add input { flex: 1; min-width: 0; }
.allergy-add button { padding: .45rem 1rem; }
.chip-remove { background: none; border: 0; padding: 0 .1rem; margin-left: .2rem; color: var(--navy);
               font: inherit; font-weight: 700; cursor: pointer; }

/* Mobile: hamburger + slide-in dashboard menu */
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
               background: none; border: 0; border-radius: 8px; color: #fff; cursor: pointer; }
.menu-toggle:hover { background: rgba(255, 255, 255, .12); }
.menu-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#sidenav .menu-close { display: none; }
.menu-backdrop { display: none; }

@media (max-width: 700px) {
  .menu-toggle { display: inline-flex; }
  .brand { margin-right: auto; }
  .brand img { height: 44px; }

  .layout.with-side { grid-template-columns: minmax(0, 1fr); }
  .layout.with-side main { padding: 1.25rem 1rem 3rem; min-width: 0; }

  #sidenav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: min(280px, 82vw); min-height: 0;
             overflow-y: auto; transform: translateX(-100%); transition: transform .2s ease; }
  body.menu-open #sidenav { transform: none; }
  #sidenav .menu-close { display: block; width: auto; align-self: flex-end; padding: 0 .75rem; font-size: 1.8rem; line-height: 1.4; }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-backdrop { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(13, 42, 92, .55); }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) { #sidenav { transition: none; } }

/* Business documents */
.doc-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.doc-group legend { padding: 0; font-weight: 600; font-size: 1.1rem; color: var(--navy); }
#doc-fields { display: grid; gap: .9rem; }
.doc-field { gap: .15rem; }
.doc-field small { font-weight: 400; }
.doc-links { margin: .25rem 0 0; padding-left: 1.2rem; }

/* Product Edit / Remove buttons */
.product-actions { display: flex; gap: .5rem; flex: none; }
@media (max-width: 700px) { .product-head { flex-wrap: wrap; } }

/* Privacy notice */
[data-view="privacy"] h3 { margin: 1.25rem 0 .25rem; font-size: 1.05rem; color: var(--navy); }
[data-view="privacy"] h3 + p { margin-top: 0; }
.notice { padding: .75rem 1rem; background: #f3f7fe; border-left: 4px solid var(--blue); border-radius: 6px; }

/* Allergy warning + dietary tags */
.allergy-warning { margin-top: .4rem; padding: .4rem .6rem; background: #fde8e8; color: #a12626;
                   border-radius: 6px; font-size: .85rem; font-weight: 600; }
.diet-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.diet-field legend { padding: 0; margin-bottom: .25rem; font-weight: 600; }
.diet-options { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.diet-options input[type="checkbox"] { width: auto; padding: 0; margin-top: .3rem; }

/* Diet dropdown (filter and dish tags) */
.diet-picker { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0 1rem; }
.diet-dropdown { position: relative; }
.diet-dropdown summary { list-style: none; cursor: pointer; padding: .45rem 1rem; background: #fff; color: var(--navy);
                         border: 1px solid var(--line); border-radius: 999px; font-weight: 700; }
.diet-dropdown summary::-webkit-details-marker { display: none; }
.diet-dropdown summary::after { content: " ▾"; }
.diet-dropdown[open] summary { border-color: var(--blue); }
.diet-panel { position: absolute; z-index: 30; left: 0; top: calc(100% + .35rem); width: min(340px, 88vw);
              display: grid; gap: .5rem; padding: .75rem; background: #fff; border: 1px solid var(--line);
              border-radius: 10px; box-shadow: 0 6px 18px rgba(13, 42, 92, .18); }
.diet-list { display: grid; gap: .3rem; max-height: 260px; overflow-y: auto; }
.diet-group { margin: .5rem 0 .1rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: #5a6b7a; }
.diet-list input[type="checkbox"] { width: auto; padding: 0; margin-top: .3rem; }
.diet-chips { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Customer Home, favorites and account pages */
.layout.with-side h3 { color: var(--navy); }
.account-form { max-width: 520px; }
.reco-grid, .promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.reco-card, .promo-card, .ad-card { align-content: start; margin-bottom: 0; }
.reco-img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; }
.reco-fallback { display: grid; place-items: center; font-size: 2.2rem; background: var(--blue-light); }
.promo-card .chip { justify-self: start; }
.ad-card { background: #f3f7fe; border-style: dashed; }
.ad-label { justify-self: start; padding: .1rem .5rem; border-radius: 4px; background: #e8eef7; color: #5a6b7a; font-size: .75rem; font-weight: 700; }
.event-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.event-list li { gap: .15rem; margin-bottom: 0; }

/* Favorite hearts */
.rest-item { position: relative; display: flex; }
.rest-item .rest-card { flex: 1; }
.fav-btn { background: none; border: 0; padding: .2rem .4rem; font-size: 1.4rem; line-height: 1; color: #a12626; cursor: pointer; }
.rest-item .fav-btn { position: absolute; top: .3rem; right: .3rem; }
.fav-btn:hover { transform: scale(1.15); }
.fav-inline { margin-left: auto; font-size: 1.7rem; }

/* Promotions */
.promo-img { width: 100%; max-height: 170px; object-fit: cover; border-radius: 8px; }
.promo-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; }
.promo-preview { width: 200px; height: 120px; }
.promo-card a, .ad-card a, .event-list a { justify-self: start; }
.promo-card button, .event-list button { justify-self: start; }

/* Post composer and feed (Promotions pages) */
.composer { gap: .75rem; }
.post-author { display: flex; align-items: center; gap: .7rem; }
.post-author small { display: block; color: #5a6b7a; }
.post-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden;
               border-radius: 50%; background: var(--blue-light); color: var(--navy); font-weight: 700; }
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.composer textarea { resize: vertical; }
.post-preview { width: 100%; max-width: 420px; height: auto; }
.post-preview img { height: auto; max-height: 320px; }
.composer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.tool-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 1px solid var(--line);
            border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; cursor: pointer; }
.tool-btn:hover { border-color: var(--blue); }
.tool-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.composer-more summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.composer-more-body { display: grid; gap: .8rem; margin-top: .75rem; }
.composer-actions { display: flex; justify-content: flex-end; gap: .6rem; }
.post-card { gap: .5rem; }
.post-card h4 { margin: .25rem 0 0; color: var(--navy); }
.post-card p { margin: 0; white-space: pre-line; }
.post-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; }
.post-actions { display: flex; gap: 1rem; padding-top: .4rem; border-top: 1px solid var(--line); }

/* Plans and pricing */
.plan-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.plan-field legend { padding: 0; font-weight: 600; font-size: 1.1rem; color: var(--navy); }
#plan-options { display: grid; gap: .6rem; margin-top: .4rem; }
.plan-option { display: flex; gap: .7rem; align-items: start; padding: .75rem 1rem; border: 1px solid var(--line);
               border-radius: 10px; background: #fff; font-weight: 400; cursor: pointer; }
.plan-option:has(input:checked) { border-color: var(--blue); background: #f3f7fe; }
.plan-option input { width: auto; padding: 0; margin-top: .3rem; }
.plan-option small { display: block; color: #5a6b7a; }
.plan-summary { display: block; }
#employee-promos-root, #partner-promos-root { max-width: 640px; }

/* Plans page, plan pop-up, payment form, member label */
main:has([data-view="pricing"]:not([hidden])) { max-width: 1120px; }
.pricing-hero { margin: 0 0 1.5rem; padding: 2rem 1.5rem; text-align: center; color: #fff; border-radius: 16px;
                background: linear-gradient(135deg, var(--navy), var(--blue)); }
.pricing-hero h2 { margin: 0 0 .25rem; color: #fff; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.pricing-hero p { margin: 0; opacity: .9; font-size: 1.1rem; }
.pricing-title { margin: 1.75rem 0 .5rem; color: var(--navy); font-size: 1.3rem; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin-bottom: 1rem; align-items: stretch; }
.plan-grid-single { grid-template-columns: minmax(250px, 420px); }
.plan-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line);
             border-top: 5px solid var(--blue); border-radius: 14px; box-shadow: 0 2px 10px rgba(13, 42, 92, .07); }
.plan-card h4 { margin: 0; color: var(--navy); font-size: 1.25rem; }
.plan-target { margin: 0; color: #5a6b7a; font-size: .95rem; }
.plan-price { margin: .4rem 0 0; }
.plan-price b { font-size: 2.4rem; line-height: 1; color: var(--navy); }
.plan-price span { color: #5a6b7a; font-weight: 600; }
.plan-desc { margin: 0; color: #3a4a5a; font-size: .95rem; }
.plan-features { flex: 1; margin: .4rem 0 .8rem; padding: .8rem 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: .45rem; align-content: start; }
.plan-features li { position: relative; padding-left: 1.6rem; font-size: .95rem; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.plan-card button { width: 100%; }
.plan-enterprise { background: linear-gradient(160deg, var(--navy), #153b7d); border-color: var(--navy); border-top-color: #4aa3ff; color: #fff; }
.plan-enterprise h4, .plan-enterprise .plan-price b { color: #fff; }
.plan-enterprise .plan-target, .plan-enterprise .plan-price span, .plan-enterprise .plan-desc { color: #d5e0f5; }
.plan-enterprise .plan-features { border-top-color: rgba(255, 255, 255, .25); }
.plan-enterprise .plan-features li::before { color: #7fc0ff; }
.plan-enterprise button.primary { background: #fff; color: var(--navy); }
.plan-highlight { outline: 3px solid var(--blue); outline-offset: 2px; }
.plan-dialog { width: min(1040px, 94vw); max-height: 92vh; padding: 1.5rem; border: 0; border-radius: 16px; background: #fff; }
.plan-dialog::backdrop { background: rgba(13, 42, 92, .6); }
.plan-dialog h3 { margin-top: 0; color: var(--navy); }
.dialog-close { position: absolute; top: .6rem; right: .8rem; width: 40px; height: 40px; border: 0; border-radius: 50%;
                background: #eef3fb; color: var(--navy); font-size: 1.5rem; cursor: pointer; }
.gate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; align-items: start; margin-top: 1rem; }
.pay-form { display: grid; gap: .8rem; }
.pay-demo { margin: 0; padding: .6rem .8rem; background: #fff7e0; border-radius: 8px; font-size: .9rem; }
.pay-methods { display: flex; flex-wrap: wrap; gap: .5rem; }
.pay-method { display: flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 1px solid var(--line);
              border-radius: 999px; font-weight: 600; cursor: pointer; }
.pay-method:has(input:checked) { border-color: var(--blue); background: #f3f7fe; }
.pay-method input { width: auto; padding: 0; }
.pay-group { display: grid; gap: .8rem; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.side-user { display: flex; align-items: center; gap: .7rem; margin: .25rem 0 .75rem; padding: .7rem; border-radius: 10px;
             background: rgba(255, 255, 255, .1); color: #fff; }
.side-user div { display: grid; gap: .15rem; min-width: 0; }
.side-user b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .badge { justify-self: start; }
.side-user a { color: #bcd4ff; font-size: .85rem; }
#sales-range button:disabled { opacity: .45; cursor: not-allowed; }
