/* ═══════════════════════════════════════════
   BPP DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
  --bg:        #0d0e0f;
  --surface:   #131516;
  --surface2:  #1c1f22;
  --border:    #2a2e33;
  --border2:   #3a3f46;
  --gold:      #c8a84b;
  --gold-dark: #8b6914;
  --gold-dim:  #2a2000;
  --text:      #e8e4dc;
  --text2:     #a8a49c;
  --muted:     #5a5a52;
  --green:     #3d6b4a;
  --green-lt:  #5a9e6e;
  --red:       #8b3a3a;
  --red-lt:    #c05050;
  --blue:      #3a5a7c;
  --blue-lt:   #5e8eab;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: "Barlow", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ═══ HEADER ═══ */
header {
  background: var(--surface);
  border-bottom: 2px solid var(--gold-dark);
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.logo-img { height: 44px; width: auto; object-fit: contain; flex-shrink: 0; border-radius: 50%; }
.h-sep { width: 1px; height: 30px; background: var(--border2); }
.h-title { font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 2px; text-transform: uppercase; }
.h-sub { font-family: "Share Tech Mono", monospace; font-size: 9px; color: var(--gold); letter-spacing: 2px; margin-top: 1px; }

.h-tabs { display: flex; gap: 2px; margin-left: 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: 2px; padding: 3px; }
.h-tab { background: transparent; border: none; color: var(--muted); font-family: "Rajdhani", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; cursor: pointer; border-radius: 1px; transition: all .12s; }
.h-tab:hover { color: var(--text2); }
.h-tab.active { background: var(--gold); color: #000; }

.h-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }

.h-btn {
  background: var(--gold); border: none; color: #000;
  font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 13px; border-radius: 2px; cursor: pointer; transition: background .15s;
}
.h-btn:hover { background: #d4b455; }

.h-btn-ghost {
  background: transparent; border: 1px solid var(--border2); color: var(--muted);
  font-family: "Rajdhani", sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 2px; cursor: pointer; transition: all .12s;
}
.h-btn-ghost:hover { color: var(--text); border-color: var(--text2); }

/* ═══ TAB CONTENT ═══ */
.tab-content { display: none; flex: 1; overflow: hidden; }
.tab-content.active { display: flex; flex-direction: column; }

/* ═══ APP LAYOUT ═══ */
.app-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  flex: 1;
  overflow: hidden;
}

/* ═══ CANVAS AREA ═══ */
.canvas-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #080a0b;
  position: relative;
}

/* ═══ UPLOAD SCREEN ═══ */
.upload-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.upload-box {
  border: 2px dashed var(--border2);
  border-radius: 2px;
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  max-width: 420px;
  width: 100%;
}
.upload-box:hover { border-color: var(--gold-dark); background: rgba(200,168,75,.04); }
.upload-box.drag-over { border-color: var(--gold); background: rgba(200,168,75,.08); }

.upload-icon { font-size: 48px; color: var(--border2); line-height: 1; margin-bottom: 6px; }
.upload-title { font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 1px; color: var(--text2); }
.upload-sub { font-size: 13px; color: var(--muted); }

.upload-btn {
  margin-top: 8px;
  background: var(--gold); border: none; color: #000;
  font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 10px 24px; border-radius: 2px; cursor: pointer; transition: background .15s;
}
.upload-btn:hover { background: #d4b455; }

/* ═══ CANVAS WRAPPER ═══ */
.canvas-wrap {
  flex: 1;
  overflow: auto;
  position: relative;
  cursor: crosshair;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

#mainCanvas {
  display: block;
  image-rendering: pixelated;
}

/* ═══ TOOLBAR ═══ */
.toolbar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.tool-group { display: flex; align-items: center; gap: 6px; }
.tool-sep { width: 1px; height: 28px; background: var(--border); }

.tool-btn {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); font-family: "Rajdhani", sans-serif;
  font-weight: 600; font-size: 12px; letter-spacing: .5px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px; cursor: pointer; transition: all .12s;
  display: flex; align-items: center; gap: 5px;
}
.tool-btn:hover { border-color: var(--gold-dark); color: var(--text); }
.tool-btn.active { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }
.tool-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.tool-icon { font-size: 14px; line-height: 1; }

.tool-label {
  font-family: "Share Tech Mono", monospace; font-size: 8px;
  color: var(--muted); letter-spacing: 1px; text-transform: uppercase;
}

.tool-select, .tool-input {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-family: "Barlow", sans-serif; font-size: 12px;
  padding: 4px 8px; border-radius: 2px; outline: none; transition: border-color .2s;
}
.tool-select:focus, .tool-input:focus { border-color: var(--gold); }
.tool-select { appearance: none; padding-right: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235a5a52'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; cursor: pointer;
}
.tool-select option { background: #1c1f22; }
.tool-input { width: 70px; -moz-appearance: textfield; }
.tool-input::-webkit-outer-spin-button,
.tool-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.tool-info {
  font-family: "Share Tech Mono", monospace; font-size: 10px;
  color: var(--gold); letter-spacing: 1px;
}

/* ═══ RESULTS PANEL ═══ */
.results-panel {
  background: var(--surface);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
  display: flex;
  flex-direction: column;
}

.results-empty {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-icon { font-size: 36px; color: var(--border2); text-align: center; margin-bottom: 4px; }
.empty-title { font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 1px; color: var(--text2); text-align: center; }

.steps { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.step { display: flex; gap: 10px; align-items: flex-start; }
.step-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold-dim);
  border: 1px solid var(--gold-dark); color: var(--gold);
  font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-text { font-size: 12px; color: var(--text2); line-height: 1.5; padding-top: 2px; }

.tip {
  font-size: 11px; color: var(--muted); line-height: 1.5;
  padding: 9px 11px;
  background: var(--surface2); border-left: 2px solid var(--gold-dark);
  border-radius: 0 2px 2px 0;
  margin-top: 4px;
}

/* ═══ SECTION LABEL ═══ */
.section-label {
  font-family: "Share Tech Mono", monospace;
  font-size: 8px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px 6px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* ═══ CALIB SECTION ═══ */
.results-section { padding: 14px 16px; }
.calib-instructions {
  font-family: "Share Tech Mono", monospace; font-size: 10px;
  color: var(--gold); letter-spacing: 1px; line-height: 1.6;
  padding: 10px 12px; background: var(--gold-dim);
  border: 1px solid var(--gold-dark); border-radius: 2px;
  margin-bottom: 12px;
}
.calib-form { display: flex; flex-direction: column; gap: 8px; }
.calib-status { font-size: 11px; color: var(--green-lt); margin-top: 8px; font-family: "Share Tech Mono", monospace; }

.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-family: "Share Tech Mono", monospace; font-size: 8px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.input-field {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); padding: 7px 10px;
  font-family: "Barlow", sans-serif; font-size: 13px;
  border-radius: 2px; outline: none; transition: border-color .2s; width: 100%;
  -moz-appearance: textfield;
}
.input-field:focus { border-color: var(--gold); }
.input-field::placeholder { color: var(--muted); }
.input-field::-webkit-outer-spin-button,
.input-field::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ═══ RESULTS CONTENT ═══ */
.results-content { flex: 1; }

/* Summary grid */
.summary-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; padding: 10px 16px;
}
.sc {
  background: var(--surface2); border: 1px solid var(--border);
  border-top: 2px solid var(--gold-dark); border-radius: 2px;
  padding: 9px 11px;
}
.sc.hi { border-top-color: var(--gold); }
.sc.good { border-top-color: var(--green-lt); }
.sc.warn { border-top-color: var(--red-lt); }
.sc-l { font-family: "Share Tech Mono", monospace; font-size: 7px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.sc-v { font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 20px; color: var(--gold); line-height: 1; }
.sc-v.small { font-size: 15px; }
.sc-u { font-family: "Share Tech Mono", monospace; font-size: 8px; color: var(--muted); margin-top: 2px; }

/* Shots list */
.shots-list { padding: 8px 16px; display: flex; flex-direction: column; gap: 4px; }
.shot-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 9px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 2px;
  font-size: 11px; cursor: pointer; transition: border-color .12s;
}
.shot-row:hover { border-color: var(--border2); }
.shot-row.outlier { border-left: 2px solid var(--red-lt); }
.shot-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-dim); border: 1px solid var(--gold-dark);
  color: var(--gold); font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 11px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.shot-coords { flex: 1; font-family: "Share Tech Mono", monospace; font-size: 10px; color: var(--text2); }
.shot-dist { font-family: "Share Tech Mono", monospace; font-size: 10px; color: var(--muted); }
.shot-del {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 13px; padding: 0 2px; transition: color .12s; line-height: 1;
}
.shot-del:hover { color: var(--red-lt); }

/* Corrections */
.corrections-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; padding: 10px 16px;
}
.corr-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 2px; padding: 10px 12px;
}
.corr-dir {
  font-family: "Share Tech Mono", monospace; font-size: 8px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.corr-val {
  font-family: "Rajdhani", sans-serif; font-weight: 700;
  font-size: 22px; color: var(--text); line-height: 1; margin-bottom: 2px;
}
.corr-val.up { color: var(--green-lt); }
.corr-val.down { color: var(--red-lt); }
.corr-val.left { color: var(--blue-lt); }
.corr-val.right { color: var(--gold); }
.corr-units { font-family: "Share Tech Mono", monospace; font-size: 9px; color: var(--muted); }

/* Pattern box */
.pattern-box {
  margin: 4px 16px;
  padding: 11px 13px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dark);
  border-radius: 0 2px 2px 0;
  font-size: 12px; color: var(--text2); line-height: 1.6;
}
.pattern-tag {
  display: inline-block; padding: 1px 7px; border-radius: 1px;
  font-family: "Share Tech Mono", monospace; font-size: 9px;
  letter-spacing: .5px; text-transform: uppercase; margin-right: 4px;
}
.tag-good { background: #1a3226; color: var(--green-lt); }
.tag-warn { background: #32261a; color: #ab845e; }
.tag-bad  { background: #321a1a; color: var(--red-lt); }

/* Scatter plot */
.scatter-wrap {
  display: flex; justify-content: center;
  padding: 10px 16px;
}
#scatterCanvas { border: 1px solid var(--border); border-radius: 2px; background: #080a0b; }

/* Disclaimer */
.disclaimer {
  margin: 8px 16px 16px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dark);
  border-radius: 0 2px 2px 0;
  font-size: 11px; color: var(--muted); line-height: 1.5;
}

/* Calc btn */
.calc-btn {
  width: 100%; padding: 11px;
  background: var(--gold); border: none; color: #000;
  font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; border-radius: 2px; transition: background .15s;
}
.calc-btn:hover { background: #d4b455; }

/* ═══ HISTORY TAB ═══ */
.history-layout { padding: 16px; overflow-y: auto; flex: 1; }
.history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-empty { font-family: "Share Tech Mono", monospace; font-size: 11px; color: var(--muted); letter-spacing: 1px; text-align: center; padding: 40px; }
.history-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dark); border-radius: 0 2px 2px 0;
  padding: 12px 14px; cursor: pointer; transition: border-color .12s;
  display: grid; grid-template-columns: 1fr auto; gap: 4px;
}
.history-card:hover { border-left-color: var(--gold); }
.hc-title { font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 14px; color: var(--text); }
.hc-meta { font-family: "Share Tech Mono", monospace; font-size: 9px; color: var(--muted); letter-spacing: 1px; margin-top: 2px; }
.hc-stat { font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 18px; color: var(--gold); text-align: right; }
.hc-stat-l { font-family: "Share Tech Mono", monospace; font-size: 8px; color: var(--muted); text-align: right; }

/* ═══ MODAL ═══ */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 300; align-items: center; justify-content: center; padding: 16px; }
.overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border); width: 100%; max-width: 400px; border-radius: 2px; box-shadow: 0 20px 60px rgba(0,0,0,.8); }
.m-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; border-left: 3px solid var(--gold); background: var(--surface2); }
.m-title { font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; }
.m-body { padding: 16px; }
.m-foot { padding: 11px 15px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; background: var(--surface2); }
.d-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px; transition: color .12s; }
.d-close:hover { color: var(--text); }
.fg { margin-bottom: 12px; }
.fl { display: block; font-family: "Share Tech Mono", monospace; font-size: 8px; color: var(--muted); letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 5px; }
.fi { width: 100%; background: var(--surface2); border: 1px solid var(--border); color: var(--text); padding: 8px 11px; font-family: "Barlow", sans-serif; font-size: 13px; border-radius: 2px; outline: none; transition: border-color .2s; -moz-appearance: textfield; }
.fi:focus { border-color: var(--gold); }
.fi::-webkit-outer-spin-button, .fi::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-c { padding: 7px 14px; background: transparent; border: 1px solid var(--border2); color: var(--muted); font-family: "Rajdhani", sans-serif; font-weight: 600; font-size: 13px; cursor: pointer; border-radius: 2px; transition: all .12s; }
.btn-c:hover { color: var(--text); }
.btn-s { padding: 7px 18px; background: var(--gold); border: none; color: #000; font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; border-radius: 2px; }
.btn-s:hover { background: #d4b455; }

/* ═══ TOAST ═══ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--surface); border: 1px solid var(--gold-dark); border-left: 3px solid var(--gold); color: var(--text); font-family: "Rajdhani", sans-serif; font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: 2px; z-index: 3000; transition: transform .3s cubic-bezier(.4,0,.2,1); white-space: nowrap; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  body { overflow: auto; }
  html, body { height: auto; }
  .tab-content.active { overflow: visible; height: auto; }
  .app-layout { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .canvas-area { height: 70vw; min-height: 320px; }
  .results-panel { border-left: none; border-top: 1px solid var(--border); max-height: none; }
  .h-title, .h-sub, .h-sep { display: none; }
}

/* ═══════════════════════════════════════════
   MOBILE OPTIMIZATIONS — Analizator Tarcz
   ═══════════════════════════════════════════ */

/* Mobile bottom nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 2px solid var(--gold-dark);
  z-index: 600;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 56px;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .12s;
  min-height: 56px;
}

.mobile-nav-btn.active {
  color: var(--gold);
  border-top: 2px solid var(--gold);
}

.mobile-nav-icon { font-size: 20px; line-height: 1; }

@media (max-width: 768px) {
  body { overflow: auto; }
  html, body { height: auto; overflow: visible; }

  .tab-content.active { display: flex; flex-direction: column; overflow: visible; height: auto; }

  /* Layout pionowy */
  .app-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  /* Canvas area — kompaktowy */
  .canvas-area { height: 55vw; min-height: 280px; }

  /* Toolbar — scroll poziomy */
  .toolbar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px;
  }

  .tool-btn {
    min-height: 44px;
    padding: 8px 12px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
  }

  .tool-sep { display: none; }

  /* Tool info — ukryty na mobile (mały ekran) */
  .tool-info { display: none; }

  /* Results panel */
  .results-panel {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: none;
    overflow: visible;
    padding-bottom: 72px;
  }

  /* Summary grid — 2 col */
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 12px; }
  .sc-v { font-size: 18px; }

  /* Shots list — kompaktowy */
  .shots-list { padding: 8px 12px; }
  .shot-row { padding: 8px 10px; }

  /* Corrections grid */
  .corrections-grid { padding: 10px 12px; }
  .corr-val { font-size: 20px; }

  /* Scatter — mniejszy */
  .scatter-wrap { padding: 8px 12px; }
  #scatterCanvas { width: 100% !important; max-width: 280px; height: auto !important; aspect-ratio: 1; }

  /* Section label */
  .section-label { padding: 10px 12px 5px; }

  /* Pattern box */
  .pattern-box { margin: 4px 12px; }

  /* Input fields — iOS no-zoom */
  .input-field, .fi, .tool-select, .tool-input {
    font-size: 16px !important;
    min-height: 44px;
  }

  /* Upload box */
  .upload-box { padding: 32px 20px; }
  .upload-icon { font-size: 36px; }
  .upload-btn { min-height: 44px; font-size: 14px; }

  /* Steps */
  .step-text { font-size: 12px; }

  /* History */
  .history-layout { padding-bottom: 72px; }

  /* Modal */
  .modal { max-width: 100%; border-radius: 0; }
  .overlay { padding: 0; align-items: flex-end; }

  /* Header */
  header { padding: 0 12px; }
  .h-sep, .h-title, .h-sub { display: none; }
  .h-actions { gap: 6px; }
  .h-btn, .h-btn-ghost { font-size: 11px; padding: 5px 9px; min-height: 36px; }

  /* Mobile nav */
  .mobile-nav { display: block; }
}

@media (max-width: 380px) {
  .summary-grid { grid-template-columns: 1fr; }
  .canvas-area { height: 60vw; }
  .tool-btn { padding: 8px 9px; font-size: 12px; }
}
