/* EXIF Viewer - tool-specific styles (built on shared tokens) */

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}
.results-head .actions { gap: 8px; }

.file-list { gap: 16px; }

/* ---- card ---- */
.file-card { overflow: hidden; }

.fc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--r-input);
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--text-3);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.skeleton::after { border-radius: var(--r-input); }
.thumb-glyph { width: 22px; height: 22px; }

.fc-id { min-width: 0; }
.file-name {
  font-weight: 540;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-sub { margin-top: 2px; }

.fc-body { padding: 16px 18px; }
.fc-loading { height: 60px; }

/* ---- metadata table ---- */
.mtable {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  overflow: hidden;
}
.mrow { display: contents; }
.mlabel, .mvalue {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  min-width: 0;
}
.mrow:first-child .mlabel,
.mrow:first-child .mvalue { border-top: 0; }
.mlabel {
  color: var(--text-2);
  background: var(--surface-2);
  white-space: nowrap;
}
.mvalue {
  color: var(--text);
  word-break: break-word;
}
.mtable + .mtable { margin-top: 12px; }

/* ---- GPS warning box ---- */
.gps-box {
  border: 1px solid var(--danger);
  border-radius: var(--r-input);
  padding: 14px;
  margin-bottom: 14px;
  background: color-mix(in srgb, var(--danger) 6%, var(--surface));
}
.gps-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--danger);
  margin-bottom: 10px;
}
.gps-badge svg { width: 14px; height: 14px; }
.gps-box .mtable { border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.gps-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 520;
  color: var(--accent);
  text-decoration: none;
}
.gps-link:hover { text-decoration: underline; }

/* ---- clean state ---- */
.clean-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-input);
  color: var(--text-2);
  font-size: 14px;
}
.clean-state svg { width: 20px; height: 20px; color: var(--ok); flex: none; }

/* ---- notes ---- */
.fc-note {
  font-size: 13px;
  color: var(--text-2);
  padding: 4px 0;
}
.fc-note.is-error { color: var(--danger); }

/* ---- strip result ---- */
.strip-result {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sr-sizes { font-size: 13px; color: var(--text); }
.sr-saved { color: var(--ok); }
.sr-note { font-size: 12px; color: var(--text-3); }
.sr-ok, .sr-warn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin-top: 2px;
}
.sr-ok { color: var(--ok); }
.sr-warn { color: var(--danger); }
.sr-ok svg { width: 14px; height: 14px; }

/* ---- actions ---- */
.fc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.fc-actions .strip-btn { padding: 8px 16px; font-size: 13px; }
.fc-actions .remove-btn { width: 34px; height: 34px; margin-left: auto; }
.fc-actions .remove-btn svg { width: 15px; height: 15px; }

@media (max-width: 560px) {
  .mtable { grid-template-columns: 1fr; }
  .mlabel { border-top: 1px solid var(--border); }
  .mvalue { padding-top: 2px; }
  .mrow:first-child .mvalue { border-top: 0; }
}
