/* Shared image tools UI */
.it-hero {
  padding: 48px 0 20px;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}
.it-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.it-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #10172f;
  letter-spacing: -0.02em;
}
.it-hero p {
  margin: 0 auto;
  max-width: 720px;
  color: #5c6478;
  font-size: 17px;
  line-height: 1.7;
}
.it-wrap { padding: 24px 0 64px; background: #f7f8fc; }
.it-card {
  background: #fff;
  border: 1px solid #e8ebf5;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(17, 24, 47, 0.06);
  box-sizing: border-box;
}
.it-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #1b5e20;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}
.it-privacy strong { font-weight: 800; }
.it-drop {
  border: 2px dashed #cfd5e6;
  border-radius: 14px;
  padding: 28px 20px;
  background: #fafbff;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.it-drop.drag {
  border-color: #E53935;
  background: #fff5f5;
}
.it-drop-inner strong {
  display: block;
  font-size: 18px;
  color: #10172f;
  margin-bottom: 6px;
}
.it-drop-inner span {
  color: #5c6478;
  font-size: 14px;
  font-weight: 600;
}
.it-file-list {
  margin-top: 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #384057;
}
.it-file-list div {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8ebf5;
  margin-top: 6px;
}
.it-preview-wrap { margin-top: 18px; }
.it-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.it-preview-pane h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #10172f;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.it-preview-box {
  border: 1px solid #e8ebf5;
  border-radius: 12px;
  background: repeating-conic-gradient(#f0f2f8 0% 25%, #fff 0% 50%) 50% / 16px 16px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  max-height: 360px;
}
.it-preview-box img {
  max-width: 100%;
  max-height: 340px;
  display: block;
}
.it-preview-meta {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #5c6478;
}
.it-section { margin-top: 20px; }
.it-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #10172f;
}
.it-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.it-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 16px;
  color: #fff !important;
  line-height: 1.2;
  text-decoration: none !important;
  display: inline-block;
  transition: opacity .2s, transform .2s;
}
.it-btn:hover { opacity: .92; transform: translateY(-1px); }
.it-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.it-btn-primary { background: linear-gradient(135deg, #ef5350, #c62828); box-shadow: 0 8px 18px rgba(229,57,53,.22); }
.it-btn-green { background: #2e7d32; }
.it-btn-blue { background: #1565c0; }
.it-btn-gray { background: #455a64; }
.it-btn-dark { background: #10172f; }
.it-btn-outline {
  background: #fff;
  color: #10172f !important;
  border: 1.5px solid #cfd5e6;
}
.it-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.it-field { margin-bottom: 12px; }
.it-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #384057;
  margin-bottom: 6px;
}
.it-field select,
.it-field input[type="text"],
.it-field input[type="number"],
.it-field input[type="color"],
.it-field input[type="range"],
.it-rename {
  width: 100%;
  border: 1.5px solid #d8deea;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #18213a;
  background: #fff;
  box-sizing: border-box;
}
.it-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 8px;
}
.it-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #18213a;
  cursor: pointer;
}
.it-progress { margin-top: 16px; }
.it-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #e8ebf5;
  overflow: hidden;
}
.it-progress-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ef5350, #c62828);
  border-radius: 999px;
  transition: width .2s;
}
.it-progress-text {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #384057;
}
.it-report {
  border: 1px solid #e8ebf5;
  border-radius: 12px;
  background: #fafbff;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: #18213a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}
.it-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #10172f;
  min-height: 22px;
}
.it-status b { color: #E53935; }
.it-cta {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #ffe0b2;
  background: linear-gradient(135deg, #fff8e1, #fff);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.it-cta strong { display: block; color: #10172f; font-size: 15px; margin-bottom: 4px; }
.it-cta span { color: #5c6478; font-size: 13px; font-weight: 600; }
.it-crop-stage {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  user-select: none;
  touch-action: none;
}
.it-crop-stage canvas { display: block; max-width: 100%; height: auto; }
.it-crop-box {
  position: absolute;
  border: 2px solid #E53935;
  box-shadow: 0 0 0 9999px rgba(16, 23, 47, 0.45);
  cursor: move;
}
.it-color-swatch {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #cfd5e6;
  vertical-align: middle;
  margin-right: 8px;
}
.it-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.it-palette-item {
  border: 1px solid #e8ebf5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.it-palette-item .sw { height: 48px; }
.it-palette-item .meta { padding: 8px; font-size: 12px; font-weight: 700; }
.it-picker-wrap { position: relative; display: inline-block; max-width: 100%; }
.it-picker-wrap canvas { max-width: 100%; cursor: crosshair; display: block; }
.it-lens {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid #E53935;
  border-radius: 50%;
  pointer-events: none;
  display: none;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.it-favicon-preview {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.it-tab-mock {
  background: #e8ebf5;
  border-radius: 10px 10px 0 0;
  padding: 8px 14px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #10172f;
}
.it-tab-mock img { width: 16px; height: 16px; }
@media (max-width: 991px) {
  .it-preview-grid { grid-template-columns: 1fr; }
  .it-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .it-card { padding: 16px; }
  .it-options-grid { grid-template-columns: 1fr; }
  .it-btn { width: 100%; text-align: center; }
}
