/* KAMAco's original vertical notebook index, adapted to native Pages UI.
   Search rail tracks the sidebar edge; calculator panel expands to the right rail. */
:root{--kamaco-rail-width:44px;--kamaco-search-width:clamp(300px,46vw,390px);--kamaco-slide-duration:400ms;--kamaco-slide-ease:cubic-bezier(.22,.8,.22,1)}
#kamaco-index-rail{position:fixed;top:55px;left:var(--kamaco-sidebar-live-width,var(--kamaco-search-width));width:var(--kamaco-rail-width);display:flex;flex-direction:column;align-items:stretch;gap:4px;max-height:calc(100vh - 61px);max-height:calc(100dvh - 61px);overflow-y:auto;overflow-x:hidden;scrollbar-width:none;margin:0;padding:0 3px 0 0;background:transparent;box-sizing:border-box;z-index:210;transition:none;pointer-events:auto}
#kamaco-index-rail::-webkit-scrollbar{display:none}
#kamaco-index-rail button{box-sizing:border-box;cursor:pointer;border:1px solid rgba(15,23,42,.75);box-shadow:2px 4px 10px rgba(0,0,0,.32);transition:filter .12s,transform .13s,background .13s;opacity:1}
#kamaco-index-rail button:hover{filter:brightness(1.12);transform:translateX(2px)}
#kamaco-index-rail button:focus-visible{outline:2px solid #fff;outline-offset:1px}
#kamaco-index-rail .kamaco-rail-fold{width:35px;height:35px;min-height:35px;flex:0 0 35px;padding:0;border-radius:9px;background:#111827;color:#f8fafc;font-size:23px;font-family:Arial,sans-serif;line-height:1;display:flex;justify-content:center;align-items:center;margin:0 0 3px 1px}
#kamaco-index-rail .kamaco-rail-fold:hover{background:#1e3a5f}
#kamaco-index-rail .kamaco-index-tab{display:flex;align-items:center;justify-content:center;height:171px;min-height:171px;max-height:171px;width:38px;flex:0 0 171px;padding:11px 7px 11px 3px;border-radius:0 10px 10px 0;writing-mode:vertical-rl;text-orientation:upright;letter-spacing:.2em;line-height:1.1;font-family:-apple-system,BlinkMacSystemFont,'Malgun Gothic','Noto Sans KR',sans-serif;font-weight:850;font-size:17px;white-space:nowrap}
#kamaco-index-rail [data-kamaco-page="search"]{background:#fdba74;color:#3f2818}
#kamaco-index-rail [data-kamaco-page="calculator"]{background:#7dd3fc;color:#08283d}
#kamaco-index-rail [data-kamaco-page="watchlist"]{background:#d4d4d4;color:#222}
#kamaco-index-rail [data-kamaco-page="toolbox"]{background:#c4b5fd;color:#2e2155}
#kamaco-index-rail .kamaco-index-tab[aria-pressed="true"]{border:2px solid #f8fafc;box-shadow:0 0 0 2px rgba(15,23,42,.65),3px 6px 16px rgba(0,0,0,.36)}
#kamaco-index-rail .kamaco-index-tab[aria-pressed="false"]{filter:saturate(.83) brightness(.9)}
body.kamaco-wide-mode #kamaco-index-rail{left:calc(100vw - var(--kamaco-rail-width));transition:left var(--kamaco-slide-duration) var(--kamaco-slide-ease)}
body.kamaco-rail-returning #kamaco-index-rail{transition:left var(--kamaco-slide-duration) var(--kamaco-slide-ease)}
body.kamaco-fold-sync #kamaco-index-rail{transition:none!important}
/* In collapsed state the resize observer supplies zero as the sidebar edge. */
body.kamaco-sidebar-collapsed #kamaco-index-rail .kamaco-index-tab{margin-left:0}
body.kamaco-sidebar-collapsed .pm-app .sidebar{width:0!important;max-width:0!important;min-width:0!important;padding-left:0!important;padding-right:0!important;border-width:0!important;opacity:0;pointer-events:none;overflow:hidden}
.pm-app .sidebar{transition:width var(--kamaco-slide-duration) var(--kamaco-slide-ease),max-width var(--kamaco-slide-duration) var(--kamaco-slide-ease),min-width var(--kamaco-slide-duration) var(--kamaco-slide-ease),opacity .2s;will-change:width}
#kamaco-feature-panel{position:fixed;left:0;top:0;bottom:0;width:calc(100vw - var(--kamaco-rail-width));z-index:200;background:#26272e;overflow:hidden;opacity:0;visibility:hidden;pointer-events:none;clip-path:inset(0 calc(100% - var(--kamaco-search-width)) 0 0);transition:clip-path var(--kamaco-slide-duration) var(--kamaco-slide-ease),opacity .18s ease,visibility 0s linear var(--kamaco-slide-duration);box-shadow:2px 0 0 #43546b inset}
#kamaco-feature-panel.kamaco-is-open{opacity:1;visibility:visible;pointer-events:auto;clip-path:inset(0 0 0 0);transition:clip-path var(--kamaco-slide-duration) var(--kamaco-slide-ease),opacity .18s ease,visibility 0s}
#kamaco-feature-panel iframe{height:100%;width:100%;border:0;background:#10141c;display:block}
#kamaco-feature-panel[data-mode="watchlist"] iframe,#kamaco-feature-panel[data-mode="toolbox"] iframe{display:none}
#kamaco-feature-panel[data-mode="calculator"] .kamaco-feature-placeholder{display:none}
.kamaco-feature-placeholder{height:100%;overflow-y:auto;background:#26272e;padding:30px clamp(20px,5vw,80px);color:#edf4fe}
.kamaco-feature-placeholder .kamaco-feature-brand{color:#75b3ff;font-size:26px;font-weight:900;letter-spacing:-.7px;margin:0 0 25px}
.kamaco-feature-placeholder h1{margin:10px 0 18px;color:#f9ba77;font-size:24px}
.kamaco-feature-placeholder p{font-size:14px;line-height:1.8;color:#c4d2e5;max-width:650px}
.kamaco-feature-placeholder a{display:inline-block;background:#335b84;color:#fff;padding:11px 15px;border:1px solid #6991b9;border-radius:8px;margin-top:14px;font-size:13px}
@media(prefers-reduced-motion:reduce){#kamaco-index-rail,#kamaco-feature-panel,.pm-app .sidebar{transition-duration:0.01ms!important}}
@media(max-width:720px){
  :root{--kamaco-rail-width:0px;--kamaco-search-width:0px;--kamaco-safe-bottom:env(safe-area-inset-bottom,0px);--kamaco-mobile-rail-height:calc(54px + var(--kamaco-safe-bottom))}
  .pm-app{padding-bottom:var(--kamaco-mobile-rail-height)}
  #kamaco-index-rail{position:fixed;left:0!important;right:0;top:auto;bottom:0;width:100%;height:var(--kamaco-mobile-rail-height);max-height:none;overflow:visible;flex-direction:row;align-items:center;justify-content:space-around;gap:2px;padding:4px 6px calc(4px + var(--kamaco-safe-bottom));background:#17202d;border-top:1px solid #445d78}
  #kamaco-index-rail .kamaco-rail-fold{height:40px;min-height:40px;width:35px;flex:0 0 35px;border-radius:7px;font-size:20px;margin:0}
  #kamaco-index-rail .kamaco-index-tab{flex:1 1 0;width:auto;min-width:0;max-width:none;height:42px;min-height:42px;max-height:42px;border-radius:7px;writing-mode:horizontal-tb;text-orientation:mixed;letter-spacing:0;font-size:11px;padding:5px 2px;line-height:1.3;white-space:normal;word-break:keep-all;text-align:center}
  #kamaco-feature-panel{width:100vw;bottom:var(--kamaco-mobile-rail-height);clip-path:inset(0 0 100% 0)}
  #kamaco-feature-panel.kamaco-is-open{clip-path:inset(0 0 0 0)}
  .kamaco-feature-placeholder{padding:20px}
  body.kamaco-sidebar-collapsed .pm-app .sidebar{min-height:0!important;max-height:0!important}
}


/* v3: no frame-late ResizeObserver. The notebook rail is physically docked
   to the edge of its sibling sidebar inside a single width-animated element. */
.pm-app>.pm-sidebar-dock{
  position:relative;display:block;flex:0 0 auto;width:390px;max-width:46vw;min-width:300px;
  height:100%;overflow:visible;z-index:auto;
  transition:width var(--kamaco-slide-duration) var(--kamaco-slide-ease),
             max-width var(--kamaco-slide-duration) var(--kamaco-slide-ease),
             min-width var(--kamaco-slide-duration) var(--kamaco-slide-ease);
}
.pm-app>.pm-sidebar-dock>.sidebar,
body.kamaco-sidebar-collapsed .pm-app>.pm-sidebar-dock>.sidebar{
  width:100%!important;min-width:0!important;max-width:none!important;height:100%;
  opacity:1;pointer-events:auto;flex:none;
  transition:none!important;
}
body.kamaco-sidebar-collapsed .pm-app>.pm-sidebar-dock{
  width:0!important;min-width:0!important;max-width:0!important;
}
#kamaco-index-rail,
body.kamaco-rail-returning #kamaco-index-rail,
body.kamaco-fold-sync #kamaco-index-rail{
  position:absolute;left:100%;top:55px;transform:translateX(0);
  transition:transform var(--kamaco-slide-duration) var(--kamaco-slide-ease);
}
body.kamaco-wide-mode #kamaco-index-rail{
  left:100%;
  transform:translateX(calc(100vw - var(--kamaco-rail-width) - var(--kamaco-search-width)));
  transition:transform var(--kamaco-slide-duration) var(--kamaco-slide-ease);
}
@media(max-width:720px){
 .pm-app>.pm-sidebar-dock{width:100%;min-width:0;max-width:none;height:auto;flex:0 0 auto}
 .pm-app>.pm-sidebar-dock>.sidebar{width:100%!important;min-width:0!important;max-width:none!important;height:auto}
 #kamaco-index-rail,body.kamaco-wide-mode #kamaco-index-rail{
   position:fixed;left:0!important;right:0;top:auto;bottom:0;transform:none!important;
   transition:none!important
 }
}

/* Allow the rail to rise above the feature overlay without raising the sidebar.
   Hide zero-width sidebar content during a fold; the dock itself does the animation. */
body.kamaco-sidebar-collapsed .pm-app>.pm-sidebar-dock>.sidebar{
 opacity:0!important;pointer-events:none!important;
 padding-left:0!important;padding-right:0!important;border-right:0!important;
}

/* Hover should brighten a tab, never detach it by a 2px horizontal nudge. */
#kamaco-index-rail button:hover{transform:none!important}


/* Lightweight browser-local saved-deal comparison view. */
.kamaco-watchlist-grid{
 display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;
 margin:20px 0;max-width:1250px
}
.kamaco-watchlist-card{
 display:flex;flex-direction:column;gap:8px;background:#1b2c3e;
 border:1px solid #4b6580;border-radius:10px;padding:15px;
}
.kamaco-watchlist-card strong{font-size:16px;color:#eaf4ff}
.kamaco-watchlist-card span{font-size:13px;line-height:1.6;color:#b0c3d7}
.kamaco-watchlist-card b{font-size:17px;color:#9ed5ff}
.kamaco-watchlist-card button{
 align-self:flex-start;cursor:pointer;border:1px solid #617f9f;
 border-radius:6px;background:#34475e;color:#f2f7fe;padding:6px 11px;
 font-size:12px
}
.kamaco-watchlist-card button:hover{background:#426386}
#kamaco-feature-placeholder{scrollbar-width:thin;scrollbar-color:#39516b #192538}
.kamaco-feature-placeholder::-webkit-scrollbar{width:7px}
.kamaco-feature-placeholder::-webkit-scrollbar-track{background:#192538}
.kamaco-feature-placeholder::-webkit-scrollbar-thumb{background:#39516b;border-radius:8px}


/* Original watchlist feature restored: CSV tools, aligned comparison table, pyeong chart. */
.kamaco-watch-summary{margin:11px 0 16px;max-width:1100px;line-height:1.65;font-size:14px;color:#b6cce3}
.kamaco-watch-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.kamaco-watch-controls>button,.kamaco-watch-import-label{
 position:relative;display:inline-flex;align-items:center;justify-content:center;
 background:#2a4762;color:#f2f8ff;border:1px solid #567693;border-radius:7px;
 padding:9px 13px;font-size:13px;font-weight:750;cursor:pointer;overflow:hidden
}
.kamaco-watch-controls>button:disabled{opacity:.45;cursor:not-allowed}
.kamaco-watch-controls>button:hover:not(:disabled),.kamaco-watch-import-label:hover{background:#396484}
.kamaco-watch-import-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.kamaco-watch-import-label:focus-within{outline:2px solid #8fc4f2}
.kamaco-watch-feedback{color:#ffc9a8;font-size:13px;margin:9px 0}
.kamaco-watch-empty{margin:25px 0;font-size:14px;color:#bdd0e1}
.kamaco-watch-table-scroll{max-width:1200px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#39516b #192538}
.kamaco-watch-table{width:100%;min-width:850px;border-collapse:separate;border-spacing:0 6px;table-layout:fixed}
.kamaco-watch-table th{padding:10px 11px;text-align:left;font-size:13px;color:#bfd0e3;border-bottom:1px solid #506780}
.kamaco-watch-table th:nth-child(1){width:29%}
.kamaco-watch-table th:nth-child(2){width:15%}
.kamaco-watch-table th:nth-child(3){width:17%}
.kamaco-watch-table th:nth-child(4){width:17%}
.kamaco-watch-table th:nth-child(5){width:14%}
.kamaco-watch-table th:nth-child(6){width:8%}
.kamaco-watch-table td{font-size:13px;line-height:1.55;padding:10px 11px;background:#1a293a;color:#e8f3ff;border-top:1px solid #415a71;border-bottom:1px solid #415a71}
.kamaco-watch-table td:first-child{border-left:1px solid #415a71;border-radius:7px 0 0 7px}
.kamaco-watch-table td:last-child{border-right:1px solid #415a71;border-radius:0 7px 7px 0}
.kamaco-watch-table td small{display:block;margin-top:3px;font-size:11.5px;color:#a7bfd7;overflow-wrap:anywhere}
.kamaco-watch-table .kamaco-watch-price{font-weight:850;color:#9ed5ff}
.kamaco-watch-open{background:none;color:#f5faff;border:0;padding:0;cursor:pointer;font-size:14px;font-weight:850;text-align:left}
.kamaco-watch-open:hover{text-decoration:underline;text-underline-offset:3px}
.kamaco-watch-remove{background:#2e4157;border:1px solid #59748e;color:#e4f0fc;border-radius:6px;padding:7px 9px;cursor:pointer}
.kamaco-watch-remove:hover{background:#436485}
.kamaco-watch-chart{max-width:1100px;margin:22px 0 10px;background:#172638;padding:17px 15px;border:1px solid #45607a;border-radius:10px}
.kamaco-watch-chart h2{font-size:16px;margin:0 0 15px;color:#edf7ff}
.kamaco-watch-rank-row{display:grid;grid-template-columns:minmax(100px,210px) 1fr 150px;gap:11px;align-items:center;margin:12px 0}
.kamaco-watch-rank-row>span{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.kamaco-watch-rank-track{height:20px;border-radius:5px;background:#0d1621;overflow:hidden}
.kamaco-watch-rank-fill{display:block;height:100%;border-radius:5px;background:#6ba6db}
.kamaco-watch-rank-row b{text-align:right;white-space:nowrap;font-size:13px;color:#a5d7ff}
.kamaco-watch-chart p{margin:16px 0 0;line-height:1.7;font-size:12px;color:#b6c7d9}
@media(max-width:720px){
 .kamaco-watch-rank-row{grid-template-columns:100px minmax(70px,1fr) 110px;gap:7px}
 .kamaco-watch-rank-row>span,.kamaco-watch-rank-row b{font-size:11.5px}
}

/* Native contact panel, matching the original Streamlit contact information. */
.kamaco-contact-intro{max-width:620px;line-height:1.8;color:#bfcee0;font-size:15px;margin:18px 0}
.kamaco-contact-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:13px;max-width:980px;margin:22px 0}
.kamaco-contact-link{display:flex;flex-direction:column;gap:10px;min-height:95px;padding:17px 19px;border:1px solid #48627d;border-radius:10px;background:#1c2b3d;text-decoration:none;color:#eef6ff}
.kamaco-contact-link span{color:#a4bdd6;font-size:13px}
.kamaco-contact-link strong{font-size:18px;overflow-wrap:anywhere}
.kamaco-contact-link:hover,.kamaco-contact-link:focus-visible{background:#2b4560;outline:1px solid #8cbbeb}


/* v7: saved-property panel occupies half its previous screen width.
   Keep typography unchanged; compact only its horizontal spacing. */
@media(min-width:721px){
  #kamaco-feature-panel[data-mode="watchlist"]{
    width:calc((100vw - var(--kamaco-rail-width)) / 2);
  }
  body.kamaco-wide-mode[data-kamaco-mode="watchlist"]
    #kamaco-index-rail{
    transform:translateX(calc((100vw - var(--kamaco-rail-width))/2 - var(--kamaco-search-width)));
  }
  #kamaco-feature-panel[data-mode="watchlist"] .kamaco-feature-placeholder{
    padding:26px 20px 32px;
  }
  #kamaco-feature-panel[data-mode="watchlist"] .kamaco-watch-table-scroll{
    max-width:100%;
  }
  #kamaco-feature-panel[data-mode="watchlist"] .kamaco-watch-table{
    min-width:690px;
  }
  #kamaco-feature-panel[data-mode="watchlist"] .kamaco-watch-chart{
    max-width:100%;
  }
}

/* v8: product header matches the search and analysis pages. */
.kamaco-feature-placeholder .kamaco-feature-brand{
 display:flex;flex-direction:column;align-items:flex-start;gap:2px;
 padding-bottom:12px;border-bottom:1px solid #46566b;
 margin:0 0 17px;width:min(400px,100%);letter-spacing:normal
}
.kamaco-feature-placeholder .kamaco-feature-brand .brand-line{
 display:flex;gap:7px;align-items:baseline;color:#f5f8fc;
 font-size:26px;font-weight:850;letter-spacing:-.7px
}
.kamaco-feature-placeholder .kamaco-feature-brand strong{color:#76adf6}
.kamaco-feature-placeholder .kamaco-feature-brand b{color:#f5f8fc}
.kamaco-feature-placeholder .kamaco-feature-brand small{
 font-size:10px;font-weight:800;letter-spacing:1.4px;color:#a7bbd4
}
.kamaco-feature-placeholder h1{margin:0 0 14px;font-size:24px;color:#f8b878}


/* v9: one header location/scale in every mode. Each page owns its
   own logo, but the rendered box is fixed at the same viewport coordinates. */
@media(min-width:721px){
 .kamaco-feature-placeholder .kamaco-feature-brand{
   position:fixed;top:24px;left:12px;z-index:6;
   width:366px;max-width:calc(100vw - 24px);
   margin:0;padding:0 0 17px;
   border-bottom:1px solid #596171;pointer-events:auto;
 }
 .kamaco-feature-placeholder .kamaco-feature-brand .brand-line{
   font-size:30px;gap:9px;letter-spacing:-1.1px;
 }
 .kamaco-feature-placeholder .kamaco-feature-brand small{
   font-size:11px;letter-spacing:1.8px;margin-top:3px
 }
 .kamaco-feature-placeholder{padding-top:138px!important}
}
/* retain logo scale on narrower screens, with no left-side overflow */
@media(max-width:720px){
 .kamaco-feature-placeholder .kamaco-feature-brand .brand-line{font-size:25px}
}


/* The desktop brand belongs to the parent PriceMap shell, not this view.
   Keep mobile in-panel headings for the stacked mobile layout. */
@media(min-width:721px){
  .kamaco-feature-placeholder .kamaco-feature-brand{display:none!important}
}


/* Auction tools: native, browser-local pre-bid checklist and official links. */
.kamaco-tool-intro{
  max-width:1050px!important;margin:0 0 18px!important;
  font-size:15px;line-height:1.7;color:#bdcfe4!important
}
.kamaco-tools-grid{
  display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr);
  gap:15px;align-items:start;max-width:1370px
}
.kamaco-tool-card{
  min-width:0;padding:19px 21px;border:1px solid #425770;
  background:#202b39;border-radius:11px;color:#edf4fc
}
.kamaco-tool-card h2{
  margin:0 0 7px;font-size:20px;color:#eff6ff;
  padding-bottom:12px;border-bottom:1px solid #43566d
}
.kamaco-tool-card .kamaco-tool-secondary{
  font-size:13px;color:#adc2d9;max-width:none;line-height:1.7;
  margin:9px 0 17px
}
.kamaco-check-name-label{
  display:flex;flex-direction:column;gap:8px;
  color:#c9d9eb;font-size:13px;font-weight:750;margin-bottom:13px
}
.kamaco-check-name-input{
  width:100%;height:39px;padding:0 11px;color:#f1f6fd;
  background:#121c29;border:1px solid #4d647f;border-radius:7px;
  font-size:14px;outline:none
}
.kamaco-check-name-input:focus{border-color:#88bdf0}
.kamaco-check-progress{display:flex;align-items:center;gap:12px;margin:8px 0 16px}
.kamaco-check-progress strong{font-size:13.5px;color:#a9d7ff;white-space:nowrap}
.kamaco-check-track{height:8px;flex:1;background:#132030;border-radius:8px;overflow:hidden}
.kamaco-check-fill{display:block;height:100%;width:0;background:#78baf3;transition:width .15s}
.kamaco-check-group{margin:14px 0 0;padding-top:13px;border-top:1px solid #3d5065}
.kamaco-check-group h3{margin:0 0 9px;font-size:14.5px;color:#d7e9fa}
.kamaco-check-row{
  display:flex;gap:10px;align-items:flex-start;padding:9px 4px;
  color:#e3eef9;font-size:14px;line-height:1.55;cursor:pointer
}
.kamaco-check-row:hover{background:#2a394c;border-radius:5px}
.kamaco-check-row input{
  appearance:auto;flex:0 0 17px;width:17px;height:17px;
  margin:2px 0 0;accent-color:#77b4ed;cursor:pointer
}
.kamaco-check-row input:checked+span{color:#98b3c9;text-decoration:line-through}
.kamaco-check-actions{display:flex;align-items:center;gap:13px;margin-top:15px}
.kamaco-check-actions button{
  flex:none;padding:8px 13px;color:#eaf4ff;background:#2e4d6c;
  border:1px solid #607e9f;border-radius:7px;font-size:13px;
  font-weight:800;cursor:pointer
}
.kamaco-check-actions button:hover{background:#3c648a}
.kamaco-tool-card .kamaco-tool-feedback{font-size:12px;color:#a9d2b8;margin:0}
.kamaco-tool-card .kamaco-tool-disclaimer{
  font-size:12.5px;color:#9fb4c8;line-height:1.7;
  margin:17px 0 0;max-width:none
}
.kamaco-tool-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kamaco-feature-placeholder .kamaco-tool-links .kamaco-tool-link{
  display:flex;flex-direction:column;justify-content:center;gap:8px;
  min-width:0;min-height:92px;margin:0;padding:13px 14px;
  border:1px solid #49647f;border-radius:8px;
  background:#17283a;color:#f1f7ff;text-decoration:none
}
.kamaco-feature-placeholder .kamaco-tool-links .kamaco-tool-link:hover,
.kamaco-feature-placeholder .kamaco-tool-links .kamaco-tool-link:focus-visible{
  outline:1px solid #8cbde9;background:#2b4764
}
.kamaco-tool-link strong{font-size:14.5px;line-height:1.4;overflow-wrap:anywhere}
.kamaco-tool-link span{font-size:12.5px;line-height:1.55;color:#aac2d9}
@media(max-width:1100px){
 .kamaco-tools-grid{grid-template-columns:1fr;max-width:780px}
}
@media(max-width:720px){
 .kamaco-feature-placeholder .kamaco-tools-grid{gap:12px}
 .kamaco-tool-card{padding:15px}
 .kamaco-tool-links{grid-template-columns:1fr 1fr;gap:7px}
 .kamaco-feature-placeholder .kamaco-tool-links .kamaco-tool-link{padding:11px;min-height:82px}
 .kamaco-check-row{font-size:13px}
}


/* Compact saved-checklist card and explicit multi-property open/save controls. */
@media(min-width:921px){
 .kamaco-tools-grid{
   grid-template-columns:minmax(0,520px) minmax(0,1fr);
   max-width:1370px;align-items:start;
 }
}
.kamaco-check-library{
 display:grid;grid-template-columns:minmax(0,1fr) 76px;
 gap:9px;align-items:end;margin:0 0 15px
}
.kamaco-check-library-label{
 display:flex;flex-direction:column;gap:7px;
 font-size:13px;color:#c9d9eb;font-weight:750;min-width:0
}
.kamaco-check-select{
 width:100%;min-width:0;height:39px;padding:0 9px;
 border:1px solid #4d647f;border-radius:7px;
 background:#121c29;color:#eef6ff;font-size:13px
}
.kamaco-check-open{
 height:39px;padding:0 5px;cursor:pointer;
 border:1px solid #607e9f;border-radius:7px;
 background:#2e4d6c;color:#f2f8ff;font-size:13px;font-weight:750
}
.kamaco-check-open:hover{background:#3d6589}
.kamaco-check-actions{gap:8px;flex-wrap:wrap}
.kamaco-check-actions .kamaco-check-delete{
 margin-left:auto;border-color:#906769;background:#4a3039;
}
.kamaco-check-actions .kamaco-check-delete:hover{background:#66414b}
.kamaco-tool-card .kamaco-tool-feedback{margin:9px 0 0!important;min-height:16px}
@media(max-width:720px){
 .kamaco-check-library{grid-template-columns:minmax(0,1fr) 70px;gap:7px}
 .kamaco-check-actions button{padding:8px 10px}
}

/* Toolbox-only index title (+1px). Other index typography is unchanged. */
#kamaco-feature-panel[data-mode="toolbox"] .kamaco-feature-placeholder h1{font-size:25px}


/* v11: Auction toolbox uses a wider panel to show equal-size cards
   side by side. The rail follows that exact panel edge through transitions. */
@media(min-width:721px){
  :root{
    --kamaco-toolbox-width:min(1120px, calc(100vw - var(--kamaco-rail-width)));
  }
  #kamaco-feature-panel[data-mode="toolbox"]{
    width:var(--kamaco-toolbox-width);
  }
  body.kamaco-wide-mode[data-kamaco-mode="toolbox"]
    #kamaco-index-rail{
    transform:translateX(calc(var(--kamaco-toolbox-width) - var(--kamaco-search-width)));
  }
  #kamaco-feature-panel[data-mode="toolbox"] .kamaco-feature-placeholder{
    padding:26px 20px 32px;
  }
  #kamaco-feature-panel[data-mode="toolbox"] .kamaco-tool-intro{
    width:100%;max-width:1055px!important;
  }
  #kamaco-feature-panel[data-mode="toolbox"] .kamaco-tools-grid{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;max-width:1055px;gap:15px;align-items:start;
  }
}
#kamaco-feature-panel[data-mode="toolbox"] .kamaco-tool-card{
  box-sizing:border-box;width:100%;min-width:0;
}
@media(max-width:720px){
 #kamaco-feature-panel[data-mode="toolbox"] .kamaco-feature-placeholder{
   padding:20px;
 }
 #kamaco-feature-panel[data-mode="toolbox"] .kamaco-tool-intro,
 #kamaco-feature-panel[data-mode="toolbox"] .kamaco-tools-grid{
   width:100%;max-width:100%;
 }
}

/* v12: 20px content inset and shared 138px desktop heading baseline. */
@media(min-width:721px){
  .kamaco-feature-placeholder h1{
    font-family:'Noto Sans KR',system-ui,-apple-system,'Malgun Gothic',sans-serif;
    font-weight:700;line-height:normal;letter-spacing:normal;
  }
}


/* v13: consistent heading typography across Watchlist and Auction Toolbox. */
@media(min-width:721px){
  .kamaco-feature-placeholder h1,
  #kamaco-feature-panel[data-mode="toolbox"] .kamaco-feature-placeholder h1{
    font-size:25px!important;font-weight:700!important;
    font-family:'Noto Sans KR',system-ui,-apple-system,'Malgun Gothic',sans-serif!important;
    line-height:normal!important;letter-spacing:normal!important;
  }
}

/* v14: drive the feature-panel edge and the notebook index from one
   interpolated coordinate. Separate clip and transform transitions used
   to drift, especially when returning to search or switching panel widths.
   Keep feature content at its final width while the outer edge slides. */
@property --kamaco-live-edge{
  syntax:"<length>";
  inherits:true;
  initial-value:390px;
}
@media(min-width:721px){
  body{
    --kamaco-live-edge:var(--kamaco-search-width);
    transition:--kamaco-live-edge var(--kamaco-slide-duration) var(--kamaco-slide-ease);
  }
  body.kamaco-wide-mode{
    --kamaco-live-edge:calc(100vw - var(--kamaco-rail-width));
  }
  body.kamaco-wide-mode[data-kamaco-mode="watchlist"]{
    --kamaco-live-edge:calc((100vw - var(--kamaco-rail-width))/2);
  }
  body.kamaco-wide-mode[data-kamaco-mode="toolbox"]{
    --kamaco-live-edge:var(--kamaco-toolbox-width);
  }
  body.kamaco-sidebar-collapsed{
    --kamaco-live-edge:0px;
  }
  #kamaco-index-rail,
  body.kamaco-rail-returning #kamaco-index-rail,
  body.kamaco-fold-sync #kamaco-index-rail,
  body.kamaco-wide-mode #kamaco-index-rail,
  body.kamaco-wide-mode[data-kamaco-mode="watchlist"] #kamaco-index-rail,
  body.kamaco-wide-mode[data-kamaco-mode="toolbox"] #kamaco-index-rail{
    position:fixed!important;
    left:var(--kamaco-live-edge)!important;
    transform:none!important;
    transition:none!important;
  }
  #kamaco-feature-panel,
  #kamaco-feature-panel[data-mode="watchlist"],
  #kamaco-feature-panel[data-mode="toolbox"]{
    --kamaco-feature-content-width:calc(100vw - var(--kamaco-rail-width));
    width:var(--kamaco-live-edge)!important;
    clip-path:none!important;
    opacity:1;
    transition:visibility 0s linear var(--kamaco-slide-duration)!important;
  }
  #kamaco-feature-panel.kamaco-is-open{
    clip-path:none!important;
    opacity:1;
    visibility:visible;
    transition:visibility 0s!important;
  }
  #kamaco-feature-panel[data-mode="watchlist"]{
    --kamaco-feature-content-width:calc((100vw - var(--kamaco-rail-width))/2);
  }
  #kamaco-feature-panel[data-mode="toolbox"]{
    --kamaco-feature-content-width:var(--kamaco-toolbox-width);
  }
  #kamaco-feature-panel>iframe,
  #kamaco-feature-panel>.kamaco-feature-placeholder{
    width:var(--kamaco-feature-content-width)!important;
    max-width:none!important;
  }
}
@media(min-width:721px) and (prefers-reduced-motion:reduce){
  body{transition-duration:0.01ms!important}
  #kamaco-feature-panel{transition-delay:0s!important}
  .pm-app>.pm-sidebar-dock{transition-duration:0.01ms!important}
}
