.quick-tools {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin: 22px auto 0; max-width: 1100px;
}
.quick-link {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  color: #193b60; background: white; text-decoration: none; border: 1px solid #dae5eb;
  padding: 17px 20px; border-radius: 12px;
}
.quick-link:hover, .quick-link:focus-visible { border-color: #16848b; background: #f6fbfa; }
.quick-link strong, .quick-link small { display: block; }
.quick-link strong { font-size: 16px; }
.quick-link small { color: #536b7b; margin-top: 4px; font-size: 13px; }
.quick-link > span:first-child, .tool-emblem {
  display: grid; place-items: center; background: #e0f3ef; color: #087d77; border-radius: 10px;
  width: 44px; height: 44px;
}
.quick-link:nth-child(2) > span:first-child, [data-tool=jpg] .tool-emblem { background: #eaf0fb; color: #4167a2; }
.quick-link svg, .tool-emblem svg { width: 23px; height: 23px; }
.quick-link > span:last-child { color: #638397; }
@media (min-width: 761px) { body:not(.has-document) .conversion-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tool-page:not(.has-document) #workspace, .has-document .quick-tools, .has-document #tool-panel { display: none; }
#tool-panel { width: min(100%, 860px); margin: 0 auto 42px; color: #233f50; }
.tool-drop {
  border: 1px dashed #8fbab7; border-radius: 14px; background: #f3faf8;
  padding: 30px 20px 23px; text-align: center; display: grid; justify-items: center; gap: 14px;
}
.tool-drop .tool-emblem { width: 50px; height: 50px; }
.tool-drag .tool-drop { background: #d8f0ec; border-color: #087d77; }
.tool-drop p { margin: 0; font-size: 13px; color: #4d6870; }
#tool-pick { background: #087d79; color: white; border-color: #087d79; min-height: 44px; padding: 0 25px; }
.has-files .tool-drop { grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; padding: 14px; }
.has-files .tool-emblem { display: none; }
.tool-queue { margin-top: 20px; }
.tool-queue h2 { font-size: 17px; margin: 0 0 10px; }
#tool-list { list-style: none; margin: 0; padding: 0; }
#tool-list li {
  display: grid; grid-template-columns: 52px minmax(0,1fr) repeat(3, 38px); gap: 6px; align-items: center;
  background: white; padding: 9px 10px; border-bottom: 1px solid #dce5e9;
}
.tool-filename { min-width: 0; }
.tool-filename strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.tool-filename small { color: #546a77; font-size: 12px; }
.tool-preview { width: 44px; height: 44px; background: #e7f2f2; border-radius: 5px; object-fit: contain; }
span.tool-preview { display: grid; place-items: center; font-size: 11px; color: #126466; font-weight: bold; }
#tool-list button { min-height: 38px; border: 1px solid #d4dee4; background: white; color: #294b60; border-radius: 7px; cursor: pointer; font-size: 17px; }
#tool-panel button:disabled { opacity: .45; cursor: default; }
.tool-settings { margin: 16px 0 0; font-size: 14px; }
.tool-settings summary { cursor: pointer; width: fit-content; }
.tool-settings div { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.tool-settings label { display: grid; gap: 5px; }
.tool-settings select { border: 1px solid #bfcdd4; border-radius: 7px; padding: 8px 12px; background: white; color: #284651; }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
#tool-status, #tool-error { font-size: 14px; margin: 11px 0 0; }
#tool-status:empty { display: none; }
#tool-error { color: #a12e2e; }
.tool-nav { display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid #dce5e9; margin-top: 27px; padding-top: 15px; }
.tool-nav a { color: #256570; font-size: 14px; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .quick-tools { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .quick-link { padding: 12px 14px; }
  #tool-list li { grid-template-columns: 36px minmax(0,1fr) repeat(3, 34px); gap: 4px; padding: 8px 2px; }
  .tool-preview { width: 32px; height: 36px; }
  .has-files .tool-drop { grid-template-columns: 1fr; gap: 8px; }
}
