.form-grid textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d8deea;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  resize: vertical;
  outline: none;
}
.form-grid textarea:focus {
  border-color: #7d9bff;
  box-shadow: 0 0 0 3px #4774ff14;
}
.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  color: #536078;
}
.choice-row,
.rule-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.choice-row label,
.rule-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #46546c;
}
#sourceType {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#sourceType label,
#productTags label {
  white-space: nowrap;
}
.choice-row input,
.rule-grid input {
  accent-color: var(--blue);
}
.price-filter {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto minmax(90px, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.price-filter label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.price-filter input {
  margin-top: 0;
}
.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}
.inline-control input,
.inline-control select {
  width: 130px;
  height: 34px;
  border: 1px solid #d8deea;
  border-radius: 7px;
  padding: 0 8px;
  background: #fff;
}
.compact-btn { margin-top: 9px; height: 32px; }
.collect-form {
  --collect-accent: #4774ff;
  display: grid;
  gap: 18px;
}
.collect-form .panel {
  margin: 0;
}
.collect-step {
  position: relative;
  overflow: hidden;
  padding: 25px 27px;
  border-color: #dde5f5;
  box-shadow: 0 10px 30px #203c6b0a;
}
.collect-step::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, var(--collect-accent), #26c7be);
}
.collect-step .panel-head h2 {
  font-size: 18px;
}
.account-route-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(115deg, #173c9c, #4774ff 62%, #23b9b1);
  box-shadow: 0 13px 28px #315ed02b;
}
.account-route-card span,
.account-route-card strong {
  display: block;
}
.account-route-card span {
  color: #cbd9ff;
  font-size: 12px;
}
.account-route-card strong {
  margin-top: 3px;
  font-size: 15px;
}
.route-btn {
  flex: 0 0 auto;
  color: #315fcf;
  border-color: #fff;
  background: #fff;
}
.credential-box {
  padding: 15px 17px;
  border: 1px solid #cfdcff;
  border-radius: 9px;
  background: #f5f8ff;
}
.credential-box strong { display: block; margin-bottom: 8px; }
.credential-box dl { display: grid; gap: 5px; margin: 0 0 7px; }
.credential-box dl div { display: grid; grid-template-columns: 90px 1fr; gap: 9px; }
.credential-box dt { color: var(--muted); }
.credential-box dd { margin: 0; overflow-wrap: anywhere; }
.credential-box .secret-value { color: #b64255; font-family: Consolas, monospace; }
.credential-box small { color: #b56b14; }
.shop-layout { display: grid; gap: 17px; }
.shop-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-list-head { padding: 18px 21px; margin: 0; }
.shop-actions { display: flex; gap: 7px; }
.shop-actions .danger { color: var(--red); }
.world-clock {
  display: grid;
  gap: 10px;
  min-width: 235px;
  text-align: right;
}
.world-clock div {
  padding: 8px 12px;
  border: 1px solid #ffffff25;
  border-radius: 9px;
  background: #ffffff12;
}
.world-clock small,
.world-clock strong {
  display: block;
}
.world-clock small {
  color: #cbd8ff;
}
.world-clock strong {
  margin-top: 2px;
  color: #fff;
  font-size: 14px;
}
.settings-card {
  padding: 25px 27px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}
.settings-grid label,
.settings-secret {
  color: #536078;
  font-size: 13px;
}
.settings-grid input,
.settings-grid select,
.settings-secret input {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 6px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid #d8deea;
  border-radius: 8px;
  background: #fff;
  outline: none;
}
.settings-secret {
  display: block;
  max-width: 720px;
}
.settings-save {
  min-width: 270px;
}
@media (max-width: 650px) {
  .sidebar nav { grid-template-columns: repeat(7, 1fr); }
  .shop-form-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .account-route-card { align-items: flex-start; flex-direction: column; }
  .world-clock { min-width: 0; text-align: left; }
  #sourceType { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 850px) {
  .rule-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .rule-grid { grid-template-columns: 1fr; }
  .price-filter { grid-template-columns: 1fr 1fr; }
  .price-filter span { display: none; }
}
