#ppi-kit-sidebar {
  --ink: #333333; --muted: #6b6b6b; --line: #e2e2e2; --paper: #ffffff; --wash: #f5f5f5;
  --accent: #cf2721; --accent-dark: #ad1f1a; --accent-wash: #fbeceb; --hit: #fff1b8;
  --head-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body-font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); font-family: var(--body-font); font-size: 15px; line-height: 1.5; text-align: left;
}
#ppi-kit-sidebar *, #ppi-kit-sidebar *::before, #ppi-kit-sidebar *::after { box-sizing: border-box; }
#ppi-kit-sidebar button { font-family: var(--body-font); cursor: pointer; -webkit-appearance: none; appearance: none; text-transform: none; letter-spacing: normal; line-height: 1.2; }
#ppi-kit-sidebar input { font-family: var(--body-font); font-size: 15px; -webkit-appearance: none; appearance: none; }
#ppi-kit-sidebar h2 { padding: 0; line-height: 1.2; }
#ppi-kit-sidebar :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#open-snippet-sidebar, #gform_submit_button_24, #gform_submit_button_23 { display: inline-block; padding: 10px 28px !important; border: 0 !important; border-radius: 3px !important; background: #cf2721 !important; color: #fff !important; font-family: "Roboto", Arial, sans-serif; font-size: 15px !important; font-weight: 700 !important; line-height: 1.4 !important; cursor: pointer; }
#open-snippet-sidebar:hover, #gform_submit_button_24:hover, #gform_submit_button_23:hover { background: #ad1f1a !important; }
#gform_submit_button_24, #gform_submit_button_23 { width: auto !important; min-height: 0 !important; box-shadow: none !important; -webkit-appearance: none; appearance: none; }
html.ppi-kit-lock, html.ppi-kit-lock body { overflow: hidden; }
#ppi-kit-overlay { position: fixed; inset: 0; background: rgba(14,22,32,.45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; z-index: 1000000; }
#ppi-kit-overlay.open { opacity: 1; visibility: visible; transition: opacity .3s; }
#ppi-kit-sidebar { position: fixed; top: 0; right: 0; width: 100%; max-width: 720px; height: 100vh; height: 100dvh; background: var(--paper); display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(10,20,30,.18); transform: translateX(100%); visibility: hidden; transition: transform .4s cubic-bezier(.77,0,.175,1), visibility 0s .4s; z-index: 1000001; }
#ppi-kit-sidebar.open { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.77,0,.175,1); }
#ppi-kit-sidebar .sb-head { padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 0; border-bottom: 1px solid var(--line); }
#ppi-kit-sidebar .sb-title { display: flex; justify-content: space-between; align-items: center; }
#ppi-kit-sidebar .sb-title h2 { margin: 0; font-family: var(--head-font); font-weight: 700; font-size: 22px; color: var(--ink); }
#ppi-kit-sidebar .sb-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; }
#ppi-kit-sidebar .sb-close:hover { background: var(--wash); color: var(--ink); }
#ppi-kit-sidebar .sb-search { width: 100%; margin: 12px 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: var(--wash); }
#ppi-kit-sidebar .sb-search:focus { outline: none; border-color: #999; background: #fff; }
#ppi-kit-sidebar .sb-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
#ppi-kit-sidebar .sb-tab { flex: none; padding: 8px 10px 10px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font-family: var(--head-font); font-size: 14px; font-weight: 600; white-space: nowrap; }
#ppi-kit-sidebar .sb-tab:hover { color: var(--ink); }
#ppi-kit-sidebar .sb-tab.on { color: var(--ink); border-bottom-color: var(--accent); }
#ppi-kit-sidebar .sb-list { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 20px 20px; }
#ppi-kit-sidebar .sb-cat { font-size: 13px; color: var(--muted); font-weight: 500; margin: 18px 0 2px; }
#ppi-kit-sidebar .grp { border-bottom: 1px solid var(--line); }
#ppi-kit-sidebar .mdl { position: sticky; top: 0; z-index: 1; width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 0; border: 0; background: var(--paper); text-align: left; color: var(--ink); }
#ppi-kit-sidebar .grp.open .mdl { border-bottom: 2px solid var(--accent); }
#ppi-kit-sidebar .mdl-name { display: block; font-family: var(--head-font); font-size: 17px; font-weight: 700; }
#ppi-kit-sidebar .mdl-meta { display: block; font-size: 13px; color: var(--muted); }
#ppi-kit-sidebar .mdl-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
#ppi-kit-sidebar .badge { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 10px; background: var(--accent-wash); color: var(--accent-dark); white-space: nowrap; }
#ppi-kit-sidebar .chev { color: var(--muted); transition: transform .3s; flex: none; }
#ppi-kit-sidebar .grp.open .chev { transform: rotate(180deg); }
#ppi-kit-sidebar .panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
#ppi-kit-sidebar .grp.open .panel { grid-template-rows: 1fr; }
#ppi-kit-sidebar .panel > div { overflow: hidden; min-height: 0; }
#ppi-kit-sidebar .item { display: grid; grid-template-columns: 240px minmax(0,1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
#ppi-kit-sidebar .item:last-child { border-bottom: 0; }
#ppi-kit-sidebar .thumb { position: relative; width: 100%; min-height: 120px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--wash); display: grid; place-items: center; overflow: hidden; font-size: 13px; font-weight: 700; color: var(--muted); cursor: zoom-in; }
#ppi-kit-sidebar .thumb img { width: 100%; height: auto; display: block; }
#ppi-kit-sidebar .thumb .zoom-hint { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); opacity: 0; transition: opacity .15s; }
#ppi-kit-sidebar .thumb:hover .zoom-hint, #ppi-kit-sidebar .thumb:focus-visible .zoom-hint { opacity: 1; }
#ppi-kit-sidebar .thumb.missing { cursor: default; }
#ppi-kit-sidebar .thumb.missing .zoom-hint { display: none; }
#ppi-kit-sidebar .zoom { position: absolute; inset: 0; z-index: 5; background: rgba(255,255,255,.97); display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
#ppi-kit-sidebar .zoom[hidden] { display: none; }
#ppi-kit-sidebar .zoom-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
#ppi-kit-sidebar .zoom-bar strong { font-family: var(--head-font); font-size: 18px; }
#ppi-kit-sidebar .zoom-img { flex: 1; min-height: 0; display: grid; place-items: center; overflow: auto; }
#ppi-kit-sidebar .zoom-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 640px) {
#ppi-kit-sidebar .item { grid-template-columns: minmax(0,1fr) auto; }
#ppi-kit-sidebar .thumb { grid-column: 1 / -1; }
}
#ppi-kit-sidebar .code { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
#ppi-kit-sidebar .meta { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
#ppi-kit-sidebar .vals { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--ink); font-variant-numeric: tabular-nums; }
#ppi-kit-sidebar .vals-label { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
#ppi-kit-sidebar mark { background: var(--hit); color: inherit; }
#ppi-kit-sidebar .add { min-width: 92px; height: 36px; padding: 0 16px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#ppi-kit-sidebar .add:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
#ppi-kit-sidebar .add.on { background: #fff; color: var(--ink); border-color: #bdbdbd; }
#ppi-kit-sidebar .add.on:hover { background: #fff; color: var(--accent); border-color: var(--accent); }
#ppi-kit-sidebar .empty { color: var(--muted); padding: 28px 0; }
#ppi-kit-sidebar .sb-foot { border-top: 1px solid var(--line); padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); }
#ppi-kit-sidebar .sum { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
#ppi-kit-sidebar .sum strong { color: var(--ink); }
#ppi-kit-sidebar .chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 76px; overflow-y: auto; margin-bottom: 10px; }
#ppi-kit-sidebar .chips:empty { display: none; }
#ppi-kit-sidebar .chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--wash); font-size: 13px; font-weight: 500; color: var(--ink); }
#ppi-kit-sidebar .chip:hover { border-color: var(--accent); color: var(--accent); }
#ppi-kit-sidebar .done { width: 100%; height: 44px; border: 0; border-radius: 3px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; }
#ppi-kit-sidebar .done:hover { background: var(--accent-dark); }
@media (prefers-reduced-motion: reduce) { #ppi-kit-sidebar, #ppi-kit-overlay, #ppi-kit-sidebar .panel, #ppi-kit-sidebar .chev { transition: none !important; } }