.public-links { max-width: 1100px; margin: 12px auto 28px; padding-inline: 5%; display: flex; flex-wrap: wrap; gap: 12px 18px; }
.public-links a { color: #1a6147; text-decoration: underline; text-underline-offset: 4px; }
.public-guide { max-width: 900px; margin: auto; }
.public-guide > p { color: #4f695f; }
.public-guide details { background: #f4f7f3; border: 1px solid #e1e8e0; border-radius: 13px; margin-block: 12px; padding: 14px 17px; }
.public-guide summary { cursor: pointer; }
.public-guide details p { line-height: 1.85; }
.assistant-launch { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 24; background: #103a2d; color: #fff; border: 1px solid #476b59; border-radius: 40px; padding: 11px 16px; box-shadow: 0 8px 22px #103a2d40; }
.assistant-launch span { color: #f0d398; margin-inline-end: 5px; }
#peak-assistant { position: fixed; inset: auto auto 22px 22px; margin: 0; width: min(440px,calc(100% - 44px)); padding: 0; border-radius: 22px; max-height: min(720px,calc(100dvh - 44px)); overflow: hidden; }
#peak-assistant::backdrop { background: #0a271c66; }
.assistant-panel { display: flex; flex-direction: column; max-height: min(720px,calc(100dvh - 44px)); background: #fff; }
.assistant-header { background: #103a2d; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; }
.assistant-header h2,.assistant-header p { margin: 0; }
.assistant-header h2 { font-size: 20px; }
.assistant-header p { font-size: 12px; color: #d8e6da; margin-top: 4px; }
.assistant-close { width: 40px; height: 40px; font-size: 24px; border: 1px solid #fff5; border-radius: 50%; }
.assistant-log { overflow-y: auto; overscroll-behavior: contain; min-height: min(230px,29dvh); padding: 14px; background: #f5f7f2; }
.assistant-message { width: fit-content; max-width: 92%; background: white; border: 1px solid #e0e8e0; padding: 9px 11px; border-radius: 13px; margin-block-end: 8px; font-size: 13px; overflow-wrap: anywhere; }
.assistant-message p { margin: 0; white-space: pre-wrap; line-height: 1.8; }
.assistant-message.question { margin-inline-start: auto; background: #e4eee4; }
.assistant-message small { color: #526b5f; display: block; margin-bottom: 3px; }
.assistant-message a { display: block; margin-top: 5px; color: #175a40; text-decoration: underline; text-underline-offset: 3px; }
.assistant-suggestions { display: flex; gap: 6px; overflow-x: auto; padding: 9px 12px 2px; }
.assistant-suggestions button { flex: none; font-size: 11px; min-height: 36px; padding: 5px 9px; border: 1px solid #e4d4af; border-radius: 20px; background: #faf5e7; }
#assistant-form { padding: 9px 12px 0; }
#assistant-form label { font-size: 12px; }
#assistant-form > div { display: flex; gap: 7px; margin-top: 4px; }
#assistant-input { min-width: 0; width: 100%; border-radius: 10px; border: 1px solid #d3dfd3; padding: 9px 10px; font-size: 16px; }
#assistant-form button { padding: 9px 13px; border-radius: 10px; }
.assistant-note { margin: 8px 12px 12px; font-size: 11px; color: #536c60; }
.assistant-note a { text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:760px) {
  body { background: #fafbf8; padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  body > .announcement,body > .portalbar { display: none; }
  body > header { padding: calc(5px + env(safe-area-inset-top)) 4% 5px; min-height: 60px; background: #fff; }
  body > header nav,body > header .actions > :not(#auth-link) { display: none; }
  body > header .brand-logo { width: 86px; height: 54px; }
  body > header #auth-link { padding: 8px 12px; min-height: 40px; background: #ecf3ed; color: #123e2d; border-radius: 11px; }
  body > .search-strip { padding: 7px 4% 10px; border-bottom: 0; background: #fff; }
  .live-search input,.shop-search { font-size: 16px; min-height: 44px; border-radius: 12px; }
  .campaign-slider,.campaign-section { width: 94%; }
  .campaign-controls button { min-height: 40px; padding: 5px 9px; font-size: 11px; }
  .launch-hero { padding: 18px 14px; margin-top: 8px; }
  .launch-hero h1 { font-size: clamp(25px,7.8vw,42px); line-height: 1.35; }
  .launch-actions { justify-content: center; flex-wrap: wrap; }
  .launch-actions a { min-height: 44px; padding: 10px 14px; }
  .launch-feature { gap: 12px; }
  .products .product-picture { height: clamp(133px,46vw,248px); border-radius: 14px; }
  .products .product h3 { min-height: 2.8em; margin-block: 4px; }
  .products .favorite { width: 39px; height: 39px; }
  .products .add { width: 40px; height: 40px; border-radius: 9px; background: #eaf2e9; }
  .view,.document-page { padding-inline: 4%; }
  .shoptools { gap: 8px; margin-block: 12px; }
  .product-detail .primary,.profile-edit-grid .primary { min-height: 44px; }
  .peak-workspace .work-side { padding-top: calc(9px + env(safe-area-inset-top)); }
  .peak-workspace .work-tools .live-search input { font-size: 16px; }
  .peak-workspace .work-toolbar { padding-inline: 12px; }
  .peak-workspace .work-tools { width: 100%; justify-content: end; }
  .peak-workspace .work-tools .live-search { flex: 1; width: auto; }
  .peak-workspace .work-crumb { display: none; }
  .peak-workspace :is(input:not([type=checkbox]),select,textarea) { font-size: 16px; }
  body > .mobile-nav,body:has(.peak-workspace) > .mobile-nav {
    position: fixed; z-index: 28; inset: auto 0 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0;
    padding: 5px 3px calc(5px + env(safe-area-inset-bottom)); min-height: 60px;
    border-top: 1px solid #dbe7dc; background: #fcfdfa; box-shadow: 0 -4px 18px #163a2a12;
  }
  .mobile-nav a,.mobile-nav button { position: relative; display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; min-height: 49px; padding: 2px; border-radius: 11px; color: #435f50; font-size: 10px; line-height: 1.35; }
  .mobile-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav [aria-current=page] { color: #0f4f35; background: #e6f0e5; }
  .mobile-nav [data-open-assistant] { color: #73501c; }
  .mobile-count { position: absolute; inset-inline-start: calc(50% + 5px); inset-block-start: 2px; background: #103a2d; color: #fff; border-radius: 20px; min-width: 16px; padding: 1px 3px; }
  .assistant-launch { display: none; }
  #peak-assistant { inset: auto 0 0; width: 100%; max-width: none; max-height: calc(100dvh - 14px); border-radius: 20px 20px 0 0; }
  .assistant-panel { max-height: calc(100dvh - 14px); padding-bottom: env(safe-area-inset-bottom); }
  .toast { bottom: calc(70px + env(safe-area-inset-bottom)); inset-inline: 10px; text-align: center; }
}
a,button,input,select { touch-action: manipulation; }
@media(max-width:760px) {
 .campaign-controls { flex-wrap: nowrap; justify-content: start; overflow-x: auto; padding-bottom: 3px; }
 .campaign-controls button { flex: none; }
}
