* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #5b4226;
  --primary-light: #8a6a42;
  --primary-dark: #2f2114;
  --accent: #b8892a;
  --accent-soft: #d9aa48;
  --accent-deep: #7a5a14;
  --bg: #faf6ee;
  --bg-alt: #f1e9d6;
  --card-bg: #fff;
  --text: #1c140b;
  --text-light: #5b4226;
  --border: #e6d8b8;
  --danger: #a04924;
  --danger-light: #c05a35;
  --warning: #d9aa48;
  --success: #5b4226;
  --radius: 8px;
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
}

.hidden { display: none !important; }

.error { color: var(--danger); font-size: 0.9rem; margin-top: 0.5rem; }
.success { color: #27ae60; font-size: 0.9rem; margin-top: 0.5rem; }
.pw-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 0.25rem; }

.cat-preview {
  width: 100%;
  max-height: 150px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-preview img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.upload-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  transition: all 0.2s;
}

.upload-btn-label:hover {
  background: var(--border);
}

.img-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-remove-img {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: none;
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--danger);
  transition: all 0.2s;
}

.btn-remove-img:hover {
  background: var(--danger);
  color: white;
}

/* LOGIN */
#login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #8a6a42);
}

.login-box {
  background: #faf6ee;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-logo {
  max-width: 260px;
  margin-bottom: 0.75rem;
}

.login-box p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

#login-form input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}

.password-wrapper {
  position: relative;
  margin-bottom: 0.75rem;
}

.password-wrapper input {
  padding-right: 2.75rem !important;
  margin-bottom: 0 !important;
}

.eye-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.2rem;
  display: flex;
  align-items: center;
  width: auto;
}

#login-form button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

#login-form button[type="submit"]:hover {
  background: var(--accent-soft);
}

/* APP LAYOUT */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background: var(--primary-dark);
  color: #e8dcc6;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
  max-width: 180px;
  filter: brightness(1.2);
}

.sidebar-nav {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  color: #c9b389;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.sidebar-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #f1e9d6;
}

.sidebar-btn.active {
  background: var(--accent);
  color: white;
}

.sidebar-btn svg {
  flex-shrink: 0;
}

.sidebar-section {
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex: 1;
}

.sidebar-section h3 {
  font-family: 'Fraunces', serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a6a42;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}

.cat-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: none;
  background: transparent;
  color: #c9b389;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
  text-align: left;
  margin-bottom: 0.15rem;
}

.cat-filter-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #f1e9d6;
}

.cat-filter-btn.active {
  background: rgba(184,137,42,0.25);
  color: #d9aa48;
}

.cat-filter-btn .cat-count {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.6;
}

.sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.sidebar-footer #user-name {
  color: #c9b389;
  font-size: 0.85rem;
}

#change-pw-btn {
  padding: 0.35rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: #c9b389;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

#change-pw-btn:hover {
  background: rgba(255,255,255,0.1);
}

.sidebar-footer #logout-btn {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: #c9b389;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.sidebar-footer #logout-btn:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

/* SECTIONS */
.section {
  padding: 1.5rem 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-header h2 {
  color: var(--primary);
  font-size: 1.3rem;
}

.filters {
  display: flex;
  gap: 0.5rem;
  flex: 1;
}

.filters input,
.filters select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.filters input {
  flex: 1;
  max-width: 300px;
}

/* BUTTONS */
.btn-primary {
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-primary:hover { background: var(--primary-light); }

.btn-secondary {
  padding: 0.5rem 1.25rem;
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-secondary:hover { background: var(--bg); }

.btn-small {
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-danger {
  padding: 0.3rem 0.6rem;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.btn-danger:hover { background: var(--danger-light); }

/* PRODUCTS GROUPED */
.products-grouped {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.category-group {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}

.category-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}

.category-group-header:hover {
  background: #e6d8b8;
}

.category-group-header h3 {
  font-size: 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-group-header .group-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
}

.category-group-header .toggle-arrow {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: transform 0.2s;
}

.category-group.collapsed .toggle-arrow {
  transform: rotate(-90deg);
}

.category-group.collapsed .category-group-items {
  display: none;
}

.category-group-items {
  display: grid;
  gap: 0;
}

.category-group-items .item-card {
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #f1e9d6;
}

.category-group-items .item-card:last-child {
  border-bottom: none;
}

/* BRAND SUBGROUPS */
.brand-subgroup {
  border-bottom: 1px solid var(--border);
}

.brand-subgroup:last-child {
  border-bottom: none;
}

.brand-header {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: #faf6ee;
  border-bottom: 1px solid #f1e9d6;
  letter-spacing: 0.02em;
}

.brand-header .group-count {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.75rem;
}

/* ITEMS LIST */
.items-list {
  display: grid;
  gap: 0.75rem;
}

.item-card {
  background: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}

.item-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.item-card .thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg);
  flex-shrink: 0;
}

.item-card .thumb-placeholder {
  width: 60px;
  height: 60px;
  background: var(--bg);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-info h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.item-info .meta {
  font-size: 0.85rem;
  color: var(--text-light);
}

.item-badges {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.badge {
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-hidden {
  background: #e8dcc6;
  color: #5b4226;
}

.badge-unavailable {
  background: #f5e0d5;
  color: #a04924;
}

.badge-price {
  background: #f1e9d6;
  color: #7a5a14;
  font-weight: 600;
}

.badge-category {
  background: #e6d8b8;
  color: #2f2114;
}

.item-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.item-actions button {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.item-actions .edit-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.item-actions .delete-btn:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.item-actions .toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
}

/* PRODUCT EDITOR LAYOUT */
.edit-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  align-items: start;
}

.edit-col-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.edit-col-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 1.5rem;
}

.edit-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.edit-card h3 {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edit-card h3 .btn-small {
  margin-left: auto;
}

.edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.main-preview {
  width: 100%;
  aspect-ratio: 1;
  max-height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

.main-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#btn-back-products {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* MOBILE HEADER (hidden on desktop) */
.mobile-header {
  display: none;
}

.sidebar-overlay {
  display: none;
}

.sidebar-overlay.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .edit-layout {
    grid-template-columns: 1fr;
  }
  .edit-col-side {
    position: static;
  }
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  margin: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 1.15rem;
  color: var(--primary);
}

.modal-header .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0;
  line-height: 1;
}

.modal form {
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* IMAGE UPLOAD */
.image-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.image-input-row input {
  flex: 1;
}

.image-preview {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.gallery-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .remove-img {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-light);
  transition: all 0.2s;
  cursor: pointer;
}

.drop-zone.dragover {
  border-color: var(--accent);
  background: #f1e9d6;
}

.upload-label {
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}

/* DYNAMIC FIELDS (taglie, varianti, info, sicurezza) */
.dynamic-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background: var(--bg);
  border-radius: 4px;
}

.dynamic-row input {
  flex: 0 0 180px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
}

.dynamic-row textarea {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
}

.dynamic-row input[type="color"] {
  width: 40px;
  height: 32px;
  padding: 2px;
  flex: 0;
}

/* VARIANTE ROWS */
.variante-row {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: var(--radius);
}

.variante-fields {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.variante-fields input[type="text"] {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
}

.variante-fields input[type="color"] {
  width: 40px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

.variante-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.variante-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.variante-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variante-thumb .remove-img {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.variante-add-img {
  width: 56px;
  height: 56px;
  border: 2px dashed var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s;
}

.variante-add-img:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

/* LOADING */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  /* Mobile header */
  .mobile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 200;
  }

  .menu-toggle {
    background: none;
    border: none;
    color: #c9b389;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
  }

  .mobile-logo {
    height: 32px;
  }

  /* Layout: stack instead of flex */
  .app-layout {
    display: block;
  }

  /* Sidebar as overlay */
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    z-index: 300;
    transition: left 0.25s ease;
    width: 260px;
    height: 100vh;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 250;
  }

  .sidebar-overlay.visible {
    display: block !important;
  }

  /* Main content full width */
  .main-content {
    width: 100%;
  }

  /* Section padding */
  .section {
    padding: 1rem;
  }

  /* Section header */
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .section-header h2 {
    font-size: 1.1rem;
  }

  /* Filters */
  .filters {
    flex-direction: column;
  }

  .filters input {
    max-width: none;
  }

  /* Product cards */
  .item-card {
    flex-wrap: wrap;
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .item-card .thumb {
    width: 48px;
    height: 48px;
  }

  .item-card .thumb-placeholder {
    width: 48px;
    height: 48px;
  }

  .item-info h3 {
    font-size: 0.9rem;
  }

  .item-info .meta {
    font-size: 0.75rem;
  }

  .item-badges {
    order: 3;
    width: 100%;
  }

  .item-actions {
    order: 4;
    width: 100%;
    justify-content: flex-end;
  }

  /* Edit layout */
  .edit-layout {
    grid-template-columns: 1fr;
  }

  .edit-col-side {
    position: static;
  }

  /* Form grid single column */
  .form-grid {
    grid-template-columns: 1fr;
  }

  /* Dynamic rows */
  .dynamic-row {
    flex-wrap: wrap;
  }

  .dynamic-row input {
    flex: 1 1 100%;
  }

  .dynamic-row textarea {
    flex: 1 1 100%;
  }

  /* Modal */
  .modal {
    padding: 0.5rem;
  }
}
