#storagePlanDialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 28px;
  border: 1px solid #e4e6f0;
  border-radius: 24px;
  background: #fafbfe;
  color: #22283b;
  box-shadow: 0 24px 100px #17203b44;
  box-sizing: border-box;
  font: 14px/1.5 system-ui;
}
#storagePlanDialog::backdrop {
  background: #111b365c;
  backdrop-filter: blur(3px);
}
.storage-plan-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.storage-plan-header h2 {
  margin: 5px 0 8px;
  font-size: 27px;
  line-height: 1.25;
}
.storage-plan-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7669cb;
}
.storage-plan-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid #e3e5ee;
  border-radius: 11px;
  background: white;
  color: #70778c;
  font-size: 23px;
  cursor: pointer;
}
.storage-plan-subtitle {
  margin: 0 0 22px;
  color: #7a8193;
}
.storage-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.storage-plan-card {
  display: flex;
  flex-direction: column;
  padding: 20px 17px;
  border: 1px solid #e2e5ef;
  border-radius: 18px;
  background: white;
  min-width: 0;
}
.storage-plan-card h3 {
  font-size: 22px;
  margin: 0 0 5px;
}
.storage-plan-caption {
  color: #7b8293;
  font-size: 12px;
  min-height: 36px;
}
.storage-plan-price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.3;
  margin: 18px 0 0;
}
.storage-plan-period {
  font-size: 12px;
  color: #7a8193;
  min-height: 36px;
  margin: 5px 0 18px;
}
.storage-plan-cta {
  margin-top: auto;
  border: 0;
  border-radius: 11px;
  background: #5746ed;
  color: white;
  padding: 12px 10px;
  cursor: pointer;
  font: 600 12px/1.4 system-ui;
  min-height: 42px;
}
.storage-plan-cta:hover {
  background: #4936d5;
}
.storage-plan-cta:disabled {
  cursor: default;
  opacity: 0.55;
}
.storage-plan-benefits {
  padding: 0;
  list-style: none;
  color: #6e768c;
  font-size: 12px;
  margin: 18px 0;
}
.storage-plan-benefits li {
  margin: 8px 0;
}
.storage-plan-benefits li::before {
  content: "✓";
  color: #7c6ce2;
  margin-right: 7px;
}
.storage-plan-custom label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: #70798c;
  margin: 12px 0;
}
.storage-plan-custom input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border: 1px solid #dce1ef;
  border-radius: 10px;
  font: inherit;
}
.storage-plan-feedback {
  padding: 12px 15px;
  margin: 14px 0;
  border-radius: 12px;
  background: #eeebff;
  color: #5746a2;
}
.storage-plan-feedback[data-error="true"] {
  background: #fff0ed;
  color: #a44e3c;
}
.storage-plan-footnote {
  color: #848b9c;
  font-size: 12px;
  line-height: 1.6;
  margin: 18px 0 0;
}
.storage-plan-offers {
  margin: 24px 0 12px;
  font-size: 18px;
}
.storage-plan-card[data-offer="true"] {
  border-color: #cfc7ff;
  background: #fefeff;
}
#storagePlanDialog [hidden] {
  display: none !important;
}
#storagePricingAdmin {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #e0e5f0;
  border-radius: 16px;
  background: white;
}
#storagePricingAdmin h2 {
  font-size: 19px;
  margin: 0 0 12px;
}
#storagePricingAdmin h3 {
  margin: 24px 0 10px;
}
#storagePricingAdmin .pricing-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
#storagePricingAdmin label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #566078;
}
#storagePricingAdmin label.pricing-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
#storagePricingAdmin input:not([type="checkbox"]),
#storagePricingAdmin select,
#storagePricingAdmin textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border: 1px solid #dce2ee;
  border-radius: 9px;
  background: white;
  color: #263149;
  font: inherit;
}
#storagePricingAdmin button {
  border: 1px solid #dce2ee;
  border-radius: 9px;
  padding: 9px 12px;
  background: #f7f7fd;
  color: #5040ae;
  font: 500 13px system-ui;
  cursor: pointer;
}
#storagePricingAdmin button.pricing-primary {
  background: #5746ed;
  color: white;
  border-color: #5746ed;
}
#storagePricingAdmin button:disabled {
  opacity: 0.5;
  cursor: default;
}
#storagePricingAdmin .pricing-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}
#storagePricingAdmin .pricing-note {
  font-size: 12px;
  color: #788197;
  line-height: 1.6;
}
#storagePricingAdmin .pricing-record {
  border: 1px solid #e4e7f0;
  border-radius: 12px;
  padding: 13px;
  margin: 10px 0;
}
#storagePricingAdmin .pricing-record p {
  font-size: 13px;
  color: #717b90;
  margin: 5px 0;
}
#storagePricingAdmin .pricing-status {
  white-space: pre-line;
  margin: 10px 0;
  color: #575178;
  font-size: 13px;
}
.storage-quota-open {
  cursor: pointer;
}
@media (max-width: 950px) {
  .storage-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  #storagePlanDialog {
    padding: 20px;
    border-radius: 18px;
  }
  .storage-plan-header h2 {
    font-size: 23px;
  }
  .storage-plan-grid {
    grid-template-columns: 1fr;
  }
  .storage-plan-card {
    padding: 18px;
  }
  .storage-plan-caption,
  .storage-plan-period {
    min-height: 0;
  }
  .storage-plan-price {
    margin-top: 10px;
  }
  #storagePricingAdmin .pricing-fields {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  #storagePlanDialog::backdrop {
    backdrop-filter: none;
  }
}
