* { box-sizing: border-box; margin: 0; padding: 0; }
  :root{
    --ink:#ffffff; --line:#0b66c2; --line-soft:rgba(74,158,202,0.35);
    --panel:#26354a; --panel-line:#3a5068; --bg:#3a5a85; --muted:#8aaec8;   
    --accent:#e8a020; --accent-ink:#ffffff; --input-bg:#1a2332;
  }
  input,select,textarea{ background:var(--input-bg); color:var(--ink); }
  html,body{ height:100%; }
  html{ overflow-y:scroll; }
  #quoteResult{ min-height:0; }
  body{
    min-height:100vh; background:var(--bg); color:var(--ink);
    font-family:'Hiragino Kaku Gothic ProN','Noto Sans JP','Meiryo',sans-serif;
    -webkit-font-smoothing:antialiased;
  }

  header.app-head{
    display:flex; align-items:center; gap:14px; flex-wrap:wrap;
    padding:5px 18px; background:#1a2332; border-bottom:2px solid var(--accent);
    position:sticky; top:0; z-index:20;
    min-height: 70px;
  }
  header.app-head .brand{ display:flex; flex-direction:column; line-height:1.25;width: 280px; }

  header.app-head .brand img{ display:block; width: 100%; margin-top: -4px; }

  @media screen and (max-width: 870px) {
    header.app-head .brand{
      width: 100%;
    }
    header.app-head .brand img{
      width: 180px;
      margin-top: 0;
    }
  }
  header.app-head .brand .sub{ font-size:10px; letter-spacing:.28em; color:var(--accent); }
  header.app-head .brand .ttl{ font-size:18px; font-weight:800; letter-spacing:.04em; }
  header.app-head .spacer{ flex:1; }
  .tool-btn{
    display:inline-flex; align-items:center; gap:7px; cursor:pointer;
    font-family:inherit; font-size:13px; font-weight:700;
    padding:9px 16px; border-radius:9px; border:1px solid var(--panel-line);
    background:var(--input-bg); color:var(--ink); transition:all .12s;
  }
  .tool-btn:hover{ border-color:var(--accent); color:var(--accent); }
  .tool-btn.primary{ background:var(--accent); color:#fff; border-color:var(--accent); }
  .tool-btn.primary:hover{ background:#c98a15; color:#fff; }
  .tool-btn svg{ display:block; }

  .typebar{ background:var(--panel); border-bottom:1px solid var(--panel-line); padding:10px 18px; }
  .typebar .tb-inner{ max-width:1280px; margin:0 auto; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .tb-step{ font-size:13px; font-weight:800; color:var(--accent); letter-spacing:.06em; white-space:nowrap; }
  .tb-cats{ display:flex; gap:5px; flex-wrap:wrap; }
  .tb-cat{ padding:7px 12px; font-size:14px; font-weight:700; font-family:inherit; cursor:pointer;
    border:1px solid var(--panel-line); background:var(--input-bg); color:var(--ink); border-radius:8px; transition:all .12s; }
  .tb-cat:hover{ border-color:var(--accent); color:var(--accent); }
  .tb-cat.active{ background:var(--accent); color:#fff; border-color:var(--accent); }
  .tb-sel{ padding:8px; border:1px solid var(--panel-line); border-radius:8px;
    font-family:inherit; font-size:15px; background:var(--input-bg); color:var(--ink); outline:none; }
  .tb-count{ width:52px; padding:8px; border:1px solid var(--panel-line); border-radius:8px;
    font-size:16px; font-family:'Consolas',monospace; text-align:right; outline:none; }
  .tb-opts{ display:flex; gap:4px 12px; flex-wrap:wrap; font-size:14px; }
  .tb-opts label{ display:flex; align-items:center; gap:4px; cursor:pointer; white-space:nowrap; }

  .sumrow{ display:flex; justify-content:space-between; gap:8px; font-size:14.5px;
    padding:3px 0; border-bottom:1px dashed var(--panel-line); }
  .sumrow .sk{ color:var(--muted); white-space:nowrap; }
  .sumrow .sv{ text-align:right; }
  .sumamount{ font-family:'Consolas',monospace; white-space:nowrap; }
  .sumtotal{ margin-top:9px; font-size:18px; font-weight:800; color:var(--accent); text-align:right; }

  .layout{ display:flex; gap:16px; align-items:flex-start; padding:16px; max-width:none; margin:0 auto; flex-wrap:wrap; }
  .col-left{ flex:0 0 260px; }
  .col-main{ flex:1 1 440px; min-width:340px; display:flex; flex-direction:column; align-items:center; }
  .col-right{ flex:0 0 300px; width:300px; min-width:300px; max-width:300px; }
  .col-right .sumrow .sv{ overflow-wrap:anywhere; }
  @media (max-width:980px){
    .col-left,.col-right{ flex:1 1 100%; }
  }

  .panel{
    background:#202e41; border:1px solid var(--panel-line);
    border-radius:14px; padding:14px 16px; margin-bottom:14px;
  }
  .panel h2{ font-size:14px; font-weight:800; letter-spacing:.06em; color:#ffffff; margin-bottom:10px; }   
  .panel h2 .em{ color:var(--accent); }

  .shape-group{ margin-bottom:12px; }
  .shape-cap{ font-size:12px; letter-spacing:.1em; color:var(--muted); margin:0 0 6px 2px; display:block; }
  .shape-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:7px; }
  .shape-grid.c4{ grid-template-columns:repeat(4,1fr); }
  .shape-btn{
    display:flex; flex-direction:column; align-items:center; gap:4px;
    padding:8px 4px; cursor:pointer; font-family:inherit;
    color:var(--ink); background:var(--input-bg); border:1px solid var(--panel-line);
    border-radius:9px; transition:all .12s;
  }
  .shape-btn:hover{ border-color:var(--accent); background:rgba(255,255,255,.06); }
  .shape-btn.active{ color:#fff; background:var(--accent); border-color:var(--accent); box-shadow:0 0 0 2px rgba(232,160,32,.25); }
  .shape-btn svg{ display:block; }
  .shape-txt{ font-size:12.5px; line-height:1.1; text-align:center; }

  .xopt-check{ display:flex; align-items:center; gap:8px; cursor:pointer;
    font-size:14.5px; padding:9px 10px; border:1px solid var(--panel-line);
    border-radius:9px; background:var(--input-bg); transition:all .12s; }
  .xopt-check:hover{ border-color:var(--accent); }
  .xopt-check input{ width:17px; height:17px; accent-color:var(--accent); cursor:pointer; }
  .xopt-check:has(input:checked){ border-color:var(--accent); box-shadow:0 0 0 2px rgba(232,160,32,.22); }
  .xopt-film{ margin-top:11px; }
  .xopt-cap{ display:block; font-size:13px; color:var(--muted); margin-bottom:5px; }
  .xopt-note{ font-size:12px; color:var(--muted); margin-top:5px; line-height:1.5; }

  .size-row{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
  .size-row label{ flex:0 0 70px; font-size:14px; color:var(--muted); }
  .size-row input{
    flex:1; width:100%; padding:8px 10px; border-radius:8px;
    border:1px solid var(--panel-line); background:var(--input-bg); color:var(--ink);
    font-size:17px; font-family:'Consolas',monospace; text-align:right; outline:none;
  }
  .size-row input:focus{ border-color:var(--accent); box-shadow:0 0 0 2px rgba(232,160,32,.22); }
  @media (hover:none){
    .size-row input, .hin, .cin, .ein{ border:1.5px solid #9fb3c8 !important; box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); }
    .size-row input:focus, .hin:focus, .cin:focus, .ein:focus{ border-color:var(--accent) !important; }
    .dim-edit{ border:1.5px solid #9fb3c8 !important; background:rgba(255,255,255,.92) !important; text-shadow:none; }
    .dim-edit:focus{ border-color:var(--accent) !important; background:#fff !important; }
    .dim-edit{ font-size:16px !important; min-width:52px; min-height:30px; }
  }
  .size-row .unit{ flex:0 0 24px; font-size:12px; color:var(--muted); }

  .hint{ font-size:13px; color:var(--muted); line-height:1.7; margin-top:8px; }

  .canvas-wrap{
    background:#fff; border:1px solid var(--panel-line); border-radius:16px;
    padding:14px; width:100%;
    max-width:none;
    min-width:340px;
    display:flex; flex-direction:column; align-items:center;
  }
  .canvas-stage{ position:relative; width:100%; line-height:0; }
  .hist-btns{ position:absolute; left:6px; top:6px; display:flex; gap:6px; z-index:5; line-height:normal; }
  .hist-btn{
    display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:1px;
    min-width:52px; height:46px; padding:3px 6px; border-radius:10px; cursor:pointer;
    border:1px solid #c9d6e2; background:#fff; color:#1b2b38;   
    font-family:inherit; font-size:12px; font-weight:700; line-height:1;   
    box-shadow:0 1px 3px rgba(0,0,0,.08); transition:all .12s;
  }
  .hist-btn svg{ width:20px; height:20px; display:block; }
  .hist-btn:hover{ border-color:var(--line); color:var(--line); }
  .hist-btn:disabled{ opacity:.35; cursor:default; }
  .hist-btn:disabled:hover{ border-color:#c9d6e2; color:#1b2b38; }
  canvas{ display:block; width:100%; height:auto; cursor:default; touch-action:pan-y; }
  .warn{
    display:none; margin:0 0 12px; width:100%; max-width:none;
    color:#b3261e; font-size:13px; font-weight:700; text-align:center;
    background:#fde9e7; border:1px solid #f3b4ae; border-radius:8px; padding:8px 14px;
  }
  .dim-edit{
    position:absolute; transform:translate(-50%,-50%);
    font:14px 'Consolas',monospace; text-align:center; line-height:normal;
    color:#1b2b38; background:transparent;
    border:1px solid transparent; border-radius:4px;
    padding:1px 2px; outline:none; cursor:text;
    text-shadow:0 0 2px #fff,0 0 2px #fff,0 0 3px #fff,0 0 3px #fff;
    appearance:textfield; -moz-appearance:textfield;
  }
  .dim-edit::-webkit-outer-spin-button,.dim-edit::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
  .dim-edit.rot{ transform:translate(-50%,-50%) rotate(-90deg); }
  .dim-edit.tagged{ text-align:left; }
  .dim-edit:hover{ border-color:rgba(11,102,194,.55); background:rgba(255,255,255,.85); }
  .dim-edit:focus{ border-color:var(--accent); background:#fff; text-shadow:none;
                   box-shadow:0 0 0 2px rgba(11,102,194,.18); z-index:4 !important; }
  .warn .warn-fix{
    display:inline-block; margin:6px 0 0 10px; min-height:40px; padding:8px 16px;
    font-size:15px; font-weight:800; color:#fff; background:#0b66c2;
    border:none; border-radius:8px; cursor:pointer; vertical-align:middle;
  }
  .warn .warn-fix:hover{ background:#0a5aab; }

  .field{ margin-bottom:9px; }
  .field label{ display:block; font-size:13px; color:var(--muted); margin-bottom:3px; }
  .field input,.field textarea{
    width:100%; padding:7px 9px; border-radius:7px; border:1px solid var(--panel-line);
    background:var(--input-bg); color:var(--ink); font-size:15px; font-family:inherit; outline:none; resize:vertical;
  }
  .field input:focus,.field textarea:focus{ border-color:var(--accent); box-shadow:0 0 0 2px rgba(232,160,32,.22); }
  .field.two{ display:flex; gap:8px; }
  .field.two > div{ flex:1; }

  .spec{
    background:var(--input-bg); border:1px solid var(--line-soft); border-radius:10px;
    padding:10px 12px; font-size:13px; line-height:1.9;
  }
  .spec .srow{ display:flex; justify-content:space-between; gap:8px; }
  .spec .srow .k{ color:var(--muted); }
  .spec .srow .v{ font-family:'Consolas',monospace; font-weight:700; }
  .spec .full{ font-family:'Consolas',monospace; margin-top:4px; padding-top:6px; border-top:1px dashed var(--line-soft); }

  .corner-note{ font-size:13px; color:var(--muted); margin-top:8px; line-height:1.6; }
  .corner-head,.corner-row{ display:grid; grid-template-columns:38px 66px 1fr; gap:6px; align-items:center; }
  .corner-head{ font-size:12px; color:var(--muted); margin-bottom:4px; }
  .corner-row{ margin-bottom:5px; }
  .corner-no{ font-size:14px; font-weight:700; color:var(--accent); }
  .ctsel{ width:100%; padding:5px 2px; border:1px solid var(--panel-line); border-radius:6px; font-size:13px; font-family:inherit; background:var(--input-bg); color:var(--ink); outline:none; }
  .corner-val{ display:flex; gap:4px; }
  .cin{ width:100%; min-width:0; padding:5px 4px; border:1px solid var(--panel-line); border-radius:6px; font-size:14px; font-family:'Consolas',monospace; text-align:right; outline:none; }
  .cin:focus,.ctsel:focus{ border-color:var(--accent); box-shadow:0 0 0 2px rgba(232,160,32,.22); }
  .corner-dash{ color:var(--muted); font-size:14px; padding-left:2px; }

  .en-count{ margin-bottom:10px; }
  .count-sel{ width:100%; padding:7px 8px; border:1px solid var(--panel-line); border-radius:7px; font-size:14px;
    font-family:inherit; background:var(--input-bg); color:var(--ink); outline:none; cursor:pointer; }
  .count-sel:focus{ border-color:var(--accent); }
  .ex-zoom{ display:inline-flex; cursor:zoom-in; border-radius:6px; }
  .ex-zoom:hover{ background:rgba(232,160,32,.18); }
  .ex-zoomlink{ display:inline-block; margin-left:6px; font-size:11px; color:var(--accent); text-decoration:underline; cursor:zoom-in; }
  .zoom-scrim{ position:fixed; inset:0; z-index:200; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; padding:16px; cursor:zoom-out; }
  .zoom-box{ background:#fff; border-radius:10px; padding:14px 16px 12px; max-width:min(92vw,560px); text-align:center; color:#333; box-shadow:0 8px 30px rgba(0,0,0,.35); }
  .zoom-box img{ max-width:100%; height:auto; display:block; margin:0 auto 8px; }
  .zoom-box .zt{ font-weight:700; font-size:15px; margin-bottom:8px; }
  .zoom-box .zc{ font-size:12.5px; color:#555; line-height:1.6; }
  .en-count-btn{ padding:7px 0; font-size:15px; font-family:inherit; cursor:pointer; border:1px solid var(--panel-line); background:var(--input-bg); color:var(--ink); border-radius:7px; }
  .en-count-btn:hover{ border-color:var(--accent); color:var(--accent); }
  .en-count-btn.active{ background:var(--accent); color:#fff; border-color:var(--accent); font-weight:700; }
  .en-empty{ font-size:14px; color:var(--muted); padding:4px 2px; }
  .en-card{ border:1px solid var(--panel-line); border-radius:8px; padding:7px; margin-bottom:7px; }
  .en-top{ display:grid; grid-template-columns:22px 1fr 1fr 12px; gap:5px; align-items:center; margin-bottom:6px; }
  .en-no{ font-size:14px; font-weight:700; color:var(--accent); text-align:center; }
  .en-sel{ width:100%; padding:5px 2px; border:1px solid var(--panel-line); border-radius:6px; font-size:13px; font-family:inherit; background:var(--input-bg); color:var(--ink); outline:none; }
  .en-labels,.en-bot{ display:grid; grid-template-columns:1fr 1fr 1fr 1fr; gap:5px; }
  .en-labels span{ font-size:11px; color:var(--muted); text-align:center; }
  .en-bot .ein{ width:100%; min-width:0; padding:5px 3px; border:1px solid var(--panel-line); border-radius:6px; font-size:14px; font-family:'Consolas',monospace; text-align:right; outline:none; }
  .en-bot .ein:disabled{ background:#131b26; color:#5a6b7c; }
  .en-bot .ein:focus,.en-sel:focus{ border-color:var(--accent); box-shadow:0 0 0 2px rgba(232,160,32,.22); }

  .hole-count{ margin-bottom:10px; }
  .hole-count-btn{ padding:7px 0; font-size:15px; font-family:inherit; cursor:pointer; border:1px solid var(--panel-line); background:var(--input-bg); color:var(--ink); border-radius:7px; }
  .hole-count-btn:hover{ border-color:var(--accent); color:var(--accent); }
  .hole-count-btn.active{ background:var(--accent); color:#fff; border-color:var(--accent); font-weight:700; }
  .hole-empty{ font-size:14px; color:var(--muted); padding:4px 2px; }
  .hole-datum{ font-size:13px; color:var(--accent); margin:0 0 6px 2px; }
  .hole-head,.hole-row{ display:grid; gap:5px; align-items:center; }
  .hole-head.c,.hole-row.c{ grid-template-columns:22px 1fr 1fr 1fr 14px; }
  .hole-head.r,.hole-row.r{ grid-template-columns:20px 1.5fr 28px 1fr 1fr 12px; }
  .hole-row .hole-ref{ font-size:11.5px; color:var(--muted); text-align:center; white-space:nowrap; }
  .hole-row .hole-dia{ display:flex; flex-wrap:wrap; gap:4px; min-width:0; }
  .hole-row .hole-dia .hsel{ flex:1 1 100%; min-width:0; }
  .hole-row .hole-dia .hbig{ flex:1 1 100%; width:100%; padding:4px 5px;
    border:1px solid var(--panel-line); border-radius:6px; font-size:13px;
    font-family:'Consolas',monospace; text-align:right;
    background:var(--input-bg); color:var(--ink); outline:none; }
  .hole-row .hole-dia .hbig:focus{ border-color:var(--accent); }
  .hole-row .hsel{ width:100%; padding:5px 2px; border:1px solid var(--panel-line); border-radius:6px; font-size:13px; font-family:inherit; background:var(--input-bg); color:var(--ink); outline:none; }
  .hole-row .hsel:focus{ border-color:var(--accent); }
  .hole-head{ font-size:12px; color:var(--muted); margin-bottom:3px; text-align:center; }
  .hole-row{ margin-bottom:5px; }
  .hole-row .hole-no{ text-align:center; font-weight:700; font-size:14px; color:var(--accent); }
  .hole-row .hin{ width:100%; padding:5px 4px; border:1px solid var(--panel-line); border-radius:6px; font-size:14px; font-family:'Consolas',monospace; text-align:right; outline:none; }
  .hole-row .hin:focus{ border-color:var(--accent); box-shadow:0 0 0 2px rgba(232,160,32,.22); }
  .hole-dot{ width:11px; height:11px; border-radius:50%; background:#0b66c2; display:inline-block; }
  .hole-warn{ display:none; margin-top:8px; font-size:13.5px; line-height:1.6; padding:7px 9px; border-radius:7px; }
  .hole-warn.warn{ color:#8a5a00; background:#fff4e0; border:1px solid #f0cd8a; }
  .hole-warn.err{ color:#b3261e; background:#fde9e7; border:1px solid #f3b4ae; }

  #print-area{ display:none; }

  @media print{
    @page{ size:A4 portrait; margin:8mm; }
    body{ background:#fff; }
    #app{ display:none !important; }
    #print-area{ display:block; }
    .sheet{ width:194mm; }
  }

  .sheet{
    box-sizing:border-box; background:#fff; color:#000;
    border:1.4px solid #000; padding:0; margin:0 auto;
    display:flex; flex-direction:column;
  }
  .sheet-head{
    display:flex; justify-content:space-between; align-items:flex-end;
    padding:6px 10px; border-bottom:1px solid #000;
  }
  .sheet-head .company{ font-size:15px; font-weight:800; letter-spacing:.04em; }
  .sheet-head .doctitle{ font-size:13px; font-weight:700; }
  .sheet-figure{ flex:1; display:flex; align-items:center; justify-content:center; padding:10px; min-height:150mm; }
  .sheet-figure svg{ width:100%; height:auto; max-height:175mm; }
  table.titleblock{ width:100%; border-collapse:collapse; border-top:1px solid #000; }
  table.titleblock td{ border:1px solid #000; padding:4px 8px; font-size:12px; vertical-align:middle; }
  table.titleblock td.lbl{ background:#f0f0f0; font-weight:700; width:24mm; white-space:nowrap; text-align:center; }
  table.titleblock td.wide{ width:auto; }
  table.titleblock td.notes{ height:14mm; vertical-align:top; }
  table.holeschedule{ width:100%; border-collapse:collapse; border-top:1px solid #000; }
  table.holeschedule th{ border:1px solid #000; padding:3px 6px; font-size:11px; background:#eef2f5; text-align:left; }
  table.holeschedule td{ border:1px solid #000; padding:3px 6px; font-size:11px; text-align:center; }
  table.holeschedule td.hh{ background:#f0f0f0; font-weight:700; }

.corner-menu{
  position:absolute; z-index:200; min-width:186px;
  background:var(--panel); border:1px solid var(--accent); border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.45); padding:6px; overflow:hidden;
}
.corner-menu .cm-h{
  font-size:11px; font-weight:800; color:var(--accent); letter-spacing:.06em;
  padding:2px 6px 6px;
}
.corner-menu button{
  display:flex; align-items:center; gap:9px;                  
  width:100%; text-align:left; cursor:pointer; font-family:inherit;
  font-size:13.5px; padding:6px 9px; border-radius:7px; border:1px solid transparent;
  background:var(--input-bg); color:var(--ink); margin-bottom:4px;
}
.corner-menu .cm-i{ flex:0 0 auto; }
.corner-menu button:last-child{ margin-bottom:0; }
.corner-menu button:hover{ border-color:var(--accent); color:var(--accent); }
.corner-menu button.on{ background:var(--accent); color:#fff; }

  .cart-pop-bd{
    position:fixed; inset:0; z-index:3000; padding:16px;
    background:rgba(0,0,0,.45);
    display:flex; align-items:center; justify-content:center;
  }
  .cart-pop{
    background:#fff; color:#333; border-radius:6px; text-align:center;
    padding:26px 30px 24px; min-width:300px; max-width:92vw;
    box-shadow:0 12px 40px rgba(0,0,0,.35);
    font-family:inherit;
  }
  .cart-pop .cp-t{ font-size:16px; color:#333; }
  .cart-pop .cp-sub{ font-size:12px; color:#888; margin-top:5px; }
  .cart-pop .cp-btns{ display:flex; gap:12px; justify-content:center; margin-top:20px; }
  .cart-pop button{
    font-family:inherit; font-size:14px; font-weight:700; border:0; cursor:pointer;
    border-radius:4px; padding:12px 22px; display:flex; align-items:center; gap:10px;
    white-space:nowrap;
  }
  .cart-pop .cp-back{ background:#dcdcdc; color:#333; }
  .cart-pop .cp-go{ background:#f39800; color:#fff; }
  .cart-pop button:hover{ filter:brightness(1.06); }
  .cart-pop button:focus-visible{ outline:2px solid #0b66c2; outline-offset:2px; }
  .cart-pop .cp-a{ font-size:15px; opacity:.8; }

.sh-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:6px 14px; }
.sh-grid label{ display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:13.5px; min-height:40px; }
.sh-grid label span{ white-space:nowrap; }
.sh-grid input{ width:84px; min-height:40px; font-size:16px; text-align:right; padding:4px 8px; border:1.5px solid #9fb3c8; border-radius:6px; }

.canvas-wrap{ position:relative; }
.draw-tip{ margin:0 0 6px; font-size:15px; font-weight:700; color:#1d2a3a; line-height:1.5; }   
.corner-kb{ position:absolute; width:2px; height:2px; padding:0; margin:0; border:0; background:transparent; opacity:0; pointer-events:none; }
.hole-panel{
  position:absolute; z-index:6; width:230px; padding:6px 12px 12px; background:var(--panel); border:1px solid var(--accent);
  border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.35); color:var(--ink); line-height:1.5; text-align:left;
}
.hole-panel[hidden]{ display:none; }
.pt-pop{ position:absolute; z-index:6; min-height:44px; padding:0 16px; border:0; border-radius:22px;
  background:#d33; color:#fff; font-size:14px; font-weight:700; line-height:1; white-space:nowrap; cursor:pointer;
  box-shadow:0 3px 10px rgba(0,0,0,.35); }
.pt-pop[hidden]{ display:none; }
.pt-pop:hover{ background:#b82222; }
.pt-pop:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.hp-head{ display:flex; align-items:center; justify-content:space-between; }
.hp-head b{ color:var(--accent); font-size:16px; }
.hp-x{ min-width:44px; min-height:44px; margin-right:-8px; border:0; background:transparent; color:var(--ink); font-size:22px; line-height:1; cursor:pointer; border-radius:8px; }
.hp-x:hover{ background:rgba(255,255,255,.1); }
.hp-row{ display:grid; grid-template-columns:76px minmax(0,1fr); align-items:center; gap:6px; margin-top:6px; }
.hp-cap{ font-size:14px; font-weight:700; }
.hp-in{ display:flex; align-items:center; gap:6px; min-width:0; }
.hp-in i{ font-style:normal; font-size:13px; color:var(--muted); }
.hp-sel, .hp-num{ min-height:40px; font-size:16px; padding:4px 8px; border:1.5px solid #9fb3c8; border-radius:6px; min-width:0; }
.hp-sel{ flex:1 1 auto; width:100%; }
.hp-num{ flex:1 1 auto; width:100%; text-align:right; }
.hp-note{ margin:4px 0 0; font-size:12px; color:var(--muted); }
.hp-price{ display:flex; justify-content:space-between; margin:6px 0 0; font-size:14px; }
.hp-err{ margin:6px 0 0; font-size:13px; font-weight:700; color:#ffb3ad; }
.hp-del{ width:100%; min-height:44px; margin-top:8px; border:1px solid #f09595; border-radius:9px; background:transparent; color:#ffb3ad; font-weight:700; font-size:15px; cursor:pointer; }
.hp-del:hover{ background:rgba(240,149,149,.12); }
.hole-panel button:focus-visible, .hole-panel select:focus-visible, .hole-panel input:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
@media (max-width:820px){
  .hole-panel{ position:static; width:auto; margin-top:8px; box-shadow:none; }
}
