.holding-form {
  align-self: start;
  padding: 0;
  overflow: hidden;
}

.holding-form .holding-form-toggle {
  display: flex;
  width: 100%;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  padding: 15px 18px;
  color: var(--navy);
  background: linear-gradient(100deg, #fff 0%, #f5faf8 62%, #e2f5ea 100%);
  text-align: left;
  cursor: pointer;
}

.holding-form-toggle span { display: grid; gap: 3px; }
.holding-form-toggle small {
  color: var(--green);
  font-size: .68rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: .18em;
}
.holding-form-toggle strong { font-size: 1.2rem; font-weight: 1000; }
.holding-form-toggle i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(7,150,84,.28);
  border-radius: 50%;
  color: var(--green);
  background: #fff;
  font-size: 1.45rem;
  font-style: normal;
  line-height: 1;
  transition: transform .2s ease;
}

.holding-form .holding-form-toggle[aria-expanded="true"] {
  color: #fff;
  background: linear-gradient(115deg, var(--navy), var(--blue) 55%, var(--green));
}
.holding-form-toggle[aria-expanded="true"] small { color: #79ffba; }
.holding-form-toggle[aria-expanded="true"] i {
  border-color: rgba(255,255,255,.4);
  color: #fff;
  background: rgba(255,255,255,.14);
  transform: rotate(45deg);
}

.holding-form-fields {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
}
.holding-form-fields[hidden] { display: none; }
.holding-form-fields > button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(115deg, var(--navy), var(--blue) 55%, var(--green));
  font-weight: 1000;
  cursor: pointer;
}
.holding-form-fields > button:disabled { opacity: .5; }
.holding-form-fields > p {
  min-height: 1.2em;
  margin: 0;
  color: var(--green);
  font-size: .75rem;
  font-weight: 800;
}

html[data-theme="dark"] .holding-form .holding-form-toggle {
  color: var(--ink);
  background: linear-gradient(100deg, #151d22, #172724);
}
html[data-theme="dark"] .holding-form .holding-form-toggle[aria-expanded="true"] {
  color: #fff;
  background: linear-gradient(115deg, #071d36, #155f91 55%, #079654);
}

@media (max-width: 430px) {
  .holding-form { padding: 0; }
  .holding-form-toggle { min-height: 68px; padding: 12px 14px; }
  .holding-form-toggle strong { font-size: 1.05rem; }
  .holding-form-fields { padding: 14px; }
}

.holding-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.holding-row .holding-actions button {
  grid-column: auto;
  grid-row: auto;
  width: auto;
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  padding: 0 10px;
  font-size: .72rem;
  font-weight: 1000;
  cursor: pointer;
}
.holding-row .holding-edit-toggle {
  border: 1px solid rgba(21,95,145,.25);
  color: var(--blue);
  background: #f0f7fb;
}
.holding-row .holding-edit-toggle[aria-expanded="true"] {
  border-color: rgba(7,150,84,.35);
  color: #fff;
  background: linear-gradient(115deg, var(--blue), var(--green));
}
.holding-edit-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.holding-edit-form[hidden] { display: none; }
.holding-edit-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
}
.holding-edit-form input {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd7dc;
  border-radius: 10px;
  padding: 0 11px;
  color: var(--ink);
  background: #f9fbfb;
  font-weight: 900;
}
.holding-edit-form > span { display: flex; gap: 6px; }
.holding-row .holding-edit-form button {
  grid-column: auto;
  grid-row: auto;
  width: auto;
  height: 42px;
  border: 1px solid rgba(7,150,84,.3);
  border-radius: 10px;
  padding: 0 13px;
  color: #fff;
  background: var(--green);
  font-size: .72rem;
  font-weight: 1000;
  cursor: pointer;
}
.holding-row .holding-edit-form .holding-edit-cancel {
  color: var(--muted);
  background: var(--surface);
}
html[data-theme="dark"] .holding-row .holding-edit-toggle { color: #71bce9; background: #152733; }
html[data-theme="dark"] .holding-edit-form input { border-color: #37464f; color: var(--ink); background: #10171c; }

@media (max-width: 560px) {
  .holding-actions { grid-column: 3; grid-row: 1 / 3; flex-direction: column; }
  .holding-row .holding-actions button { width: 76px; }
  .holding-edit-form { grid-template-columns: 1fr; }
  .holding-edit-form > span { justify-content: flex-end; }
}
