.app--card-export .main {
  padding-bottom: 48px;
}

.app--card-export input,
.app--card-export select {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink);
}

.export-target-panel {
  margin-top: 18px;
}

.export-target-panel .panel__head p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.export-target-form {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(180px, 1fr);
  gap: 12px;
}

.export-target-form .field {
  min-width: 0;
}

.export-target-form select,
.export-target-form input {
  width: 100%;
}

.export-target-form small {
  color: var(--muted);
}

.billing-preview,
.monthly-work-state {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.monthly-work-state--closed {
  color: #9a5c00;
}

.status-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.selection-guidance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #98c9cd;
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  background: var(--teal-soft);
  padding: 16px 18px;
  margin-top: 18px;
}

.selection-guidance[hidden] {
  display: none;
}

.selection-guidance strong {
  display: block;
  color: var(--ink);
}

.selection-guidance p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.selection-guidance__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.export-form-panel {
  margin-top: 18px;
}

.export-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.export-form .field {
  min-width: 0;
}

.field--wide {
  grid-column: span 2;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--ink);
  font-weight: 800;
}

.check-field input {
  width: 18px;
  min-height: 18px;
}

.metric-grid--card-export {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.export-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.export-panel {
  min-width: 0;
}

.export-list {
  display: grid;
  gap: 10px;
}

.export-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.export-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.export-item__title {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.export-item__count {
  white-space: nowrap;
  color: var(--teal);
  font-weight: 900;
}

.export-item__body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.export-actions .button {
  min-height: 34px;
}

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #f8fbfb;
  padding: 18px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 900px) {
  .selection-guidance {
    align-items: stretch;
    flex-direction: column;
  }

  .selection-guidance__actions .button {
    flex: 1 1 auto;
  }

  .export-form,
  .export-target-form,
  .metric-grid--card-export,
  .export-grid {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .export-item__head {
    display: grid;
  }

  .export-item__count {
    white-space: normal;
  }
}
