* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #f7f9f9;
  color: #0f1419;
  padding: 24px;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid #e1e8ed;
  margin-bottom: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-box {
  width: 42px;
  height: 42px;
  background: #000;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.app-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.app-subtitle {
  font-size: 0.85rem;
  color: #536471;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.user-role {
  display: block;
  font-size: 0.75rem;
  color: #536471;
}

/* Account Bar */
.account-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.account-bar select {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #cfd9de;
  background: #fff;
  font-size: 0.85rem;
}

/* Grid Workspace */
.workspace-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
}

.panel {
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  padding: 24px;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.required {
  color: #e0245e;
}

.text-muted {
  color: #536471;
}

.text-small {
  font-size: 0.78rem;
}

.selection-count {
  font-size: 0.8rem;
  color: #536471;
}

.text-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cfd9de;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
}

.text-input:focus {
  border-color: #1d9bf0;
}

.input-with-prefix {
  display: flex;
  align-items: center;
  border: 1px solid #cfd9de;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.input-with-prefix .prefix {
  padding: 10px 12px;
  background: #f7f9f9;
  border-right: 1px solid #cfd9de;
  font-size: 0.85rem;
  color: #536471;
}

.input-with-prefix .text-input {
  border: none;
  flex: 1;
}

/* Destination Option Box */
.card-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid #0f1419;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
}

.card-option-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.card-option-desc {
  font-size: 0.8rem;
  color: #536471;
  margin-top: 2px;
}

.check-icon {
  background: #000;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Media Box */
.media-drop-zone {
  border: 1px dashed #cfd9de;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: #536471;
  font-size: 0.88rem;
  background: #fafafa;
}

/* Buttons */
.btn {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background: #000;
  color: #fff;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.btn-dark {
  background: #000;
  color: #fff;
}

.btn-secondary {
  background: #eff3f4;
  color: #0f1419;
  border: 1px solid #cfd9de;
}

/* Library Panel */
.library-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

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

.panel-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.media-container {
  min-height: 250px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: #536471;
  font-size: 0.9rem;
}

.media-card {
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
}

.media-card.active {
  border-color: #1d9bf0;
  box-shadow: 0 0 0 2px #1d9bf0;
}

.media-name {
  font-size: 0.85rem;
  font-weight: 600;
  word-break: break-all;
  margin-bottom: 6px;
}

.media-info {
  font-size: 0.75rem;
  color: #536471;
  margin-bottom: 12px;
}

.status-box {
  margin-top: 12px;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: none;
}
.status-box.success { display: block; background: #e8f5e9; color: #2e7d32; }
.status-box.error { display: block; background: #ffebee; color: #c62828; }