.exif-heic-note {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.dropzone {
  position: relative;
  padding: 2.5rem 1.5rem;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone--active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone__label {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.dropzone__hint {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0 1rem;
}

.toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list:empty::before {
  content: attr(data-empty);
  display: block;
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.file-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  overflow: hidden;
}

.file-item__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.file-item__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.file-item__name {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-weight: 600;
  font-size: 0.9375rem;
  word-break: break-word;
}

.file-item__meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.removed-summary {
  margin: 0 0 1rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill--ready {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.status-pill--cleaned {
  background: color-mix(in srgb, var(--success) 22%, var(--bg-elevated));
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--success) 45%, transparent);
}

.status-pill--failed {
  background: color-mix(in srgb, var(--danger) 18%, var(--bg-elevated));
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--danger) 55%, transparent);
}

.status-pill--warn {
  background: color-mix(in srgb, var(--warning) 20%, var(--bg-elevated));
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--warning) 55%, transparent);
}

:root[data-theme="dark"] .status-pill--ready {
  background: rgba(10, 132, 255, 0.28);
  color: #b8dcff;
  border-color: rgba(10, 132, 255, 0.55);
}

:root[data-theme="dark"] .status-pill--failed {
  background: rgba(255, 105, 97, 0.22);
  color: #ffd4d1;
  border-color: rgba(255, 105, 97, 0.55);
}

:root[data-theme="dark"] .status-pill--warn {
  background: rgba(255, 159, 10, 0.22);
  color: #ffe2b8;
  border-color: rgba(255, 159, 10, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .status-pill--ready {
    background: rgba(10, 132, 255, 0.28);
    color: #b8dcff;
    border-color: rgba(10, 132, 255, 0.55);
  }

  :root:not([data-theme="light"]) .status-pill--failed {
    background: rgba(255, 105, 97, 0.22);
    color: #ffd4d1;
    border-color: rgba(255, 105, 97, 0.55);
  }

  :root:not([data-theme="light"]) .status-pill--warn {
    background: rgba(255, 159, 10, 0.22);
    color: #ffe2b8;
    border-color: rgba(255, 159, 10, 0.55);
  }
}

.file-item__body {
  padding: 1rem;
}

.meta-section {
  margin-bottom: 1rem;
}

.meta-section:last-child {
  margin-bottom: 0;
}

.meta-section h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.meta-table th,
.meta-table td {
  padding: 0.35rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.meta-table thead th {
  color: var(--text);
  font-weight: 600;
}

.meta-table th {
  width: 38%;
  font-weight: 500;
  color: var(--text-secondary);
}

.meta-table tbody th {
  color: var(--text-secondary);
}

.meta-error {
  margin: 0 0 1rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--text);
  font-size: 0.875rem;
}

.meta-table td {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  word-break: break-word;
}

.meta-empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.file-item__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.tool-panel {
  margin-bottom: 0;
}

.exif-guide {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.exif-guide h2 {
  margin: 2.25rem 0 0.75rem;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.exif-guide h2:first-child {
  margin-top: 0;
}

.exif-guide h3 {
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
}

.exif-guide p {
  margin: 0 0 1rem;
}

.exif-guide ol,
.exif-guide ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.exif-guide li {
  margin-bottom: 0.35rem;
}

.exif-guide a {
  color: var(--accent);
}

.meta-compare {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.meta-compare th,
.meta-compare td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.meta-compare thead th {
  background: var(--bg-subtle);
  color: var(--text);
  font-weight: 600;
}

.exif-guide figure {
  margin: 1.5rem 0;
}

.exif-guide figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.exif-faq {
  margin: 0;
  padding: 0;
  list-style: none;
}

.exif-faq li {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.exif-faq li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.exif-guide__nav {
  margin-top: 2rem;
  font-size: 0.9375rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn--secondary {
  background: var(--bg-subtle);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
