/* PayPay polish 2026-11-11: more inner whitespace and hierarchy on unstacked pages.
   Additive on Wd03 + unstack CSS. Scoped under .shell so the login page is untouched. */

.shell .content{
  max-width:1200px;
  padding:48px 56px 88px;
}
.shell .page-heading{
  margin-bottom:40px;
  align-items:flex-start;
  gap:16px;
}
.shell .page-heading h1{
  font-size:32px;
  line-height:1.2;
  letter-spacing:-.025em;
  margin:4px 0 10px;
  font-weight:650;
}
.shell .page-heading p{
  font-size:14px;
  line-height:1.7;
  color:var(--muted);
  max-width:44em;
  margin:0;
}
.shell .panel{
  margin-bottom:32px;
  padding:32px 36px;
  border-radius:14px;
}
.shell .section-title{
  margin-bottom:22px;
  gap:12px;
}
.shell .section-title h2,
.shell .content h2{
  font-size:20px;
  line-height:1.35;
  letter-spacing:-.015em;
  margin:0 0 8px;
  font-weight:650;
}
.shell .section-title p,
.shell .content h2+p{
  margin:0;
  line-height:1.65;
  color:var(--muted);
}
.shell .content label{
  margin-bottom:16px;
}
.shell .button-row{
  gap:12px;
  margin:22px 0 8px;
}

/* 总览: summary cards and shortcuts with more air */
.shell .paypay-overview .overview-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin:0 0 32px;
  background:transparent;
  border:0;
}
.shell .paypay-overview .overview-metrics section{
  background:var(--panel);
  border:1px solid var(--line);
  border-left:1px solid var(--line);
  border-radius:14px;
  padding:24px 26px;
}
.shell .paypay-overview .overview-metrics section+section{
  border-left:1px solid var(--line);
}
.shell .paypay-overview .overview-metrics strong{
  margin:10px 0 4px;
}
.shell .paypay-overview .overview-shortcuts{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin:0 0 36px;
}
.shell .paypay-overview .overview-orders,
.shell .paypay-overview .overview-cards{
  margin-bottom:32px;
}
.shell .paypay-overview .overview-order,
.shell .paypay-overview .overview-card{
  padding:20px 0;
  gap:20px;
}
.shell .paypay-overview .overview-foot{
  display:flex;
  gap:20px;
  margin-top:16px;
}

/* 卡片 list */
.shell .customer-card-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  margin-top:24px;
}
.shell .customer-card-item{
  padding:28px;
  border-radius:14px;
}
.shell .customer-card-item>footer{
  padding:18px 0 0;
  margin-top:8px;
  gap:16px;
}
.shell .compact-card-filters,
.shell .compact-card-search{
  margin-bottom:8px;
}
.shell .compact-card-row{
  padding:22px 0;
  gap:20px;
}

/* 创建卡片 form — own page, not a squeezed modal */
.shell[data-page="issue"] .create-dialog,
.shell[data-page="issue"] .dialog.create-dialog{
  width:100%;
  max-width:880px;
  padding:36px 40px 40px;
  border-radius:14px;
}
.shell .issue-card-page{
  margin-bottom:24px;
  padding:28px 32px;
  border-radius:14px;
}
.shell .create-card-grid{
  gap:36px;
  margin:28px 0;
}
.shell .create-card-fields label{
  margin-bottom:26px;
}
.shell .create-card-fields input,
.shell .create-card-fields select{
  min-height:48px;
}
.shell .create-card-fields details{
  margin:24px 0;
}
.shell .first-card-points{
  margin:20px 0 8px;
  line-height:1.85;
}
.shell .first-card-points li{
  margin:14px 0;
}
.shell .fee-outcome-rules{
  margin:18px 0;
  padding:18px 20px;
  border-radius:10px;
}
.shell .fee-outcome-grid{
  gap:16px;
  margin:16px 0;
}
.shell .fee-outcome-grid>div{
  padding:16px 18px;
  border-radius:10px;
}
.shell .create-dialog .dialog-actions,
.shell .dialog.create-dialog .dialog-actions{
  margin:32px 0 0;
  padding:24px 0 4px;
  gap:12px;
}

/* 订阅: tiles, steps, form, metrics */
.shell .subscription-workspace,
.shell .subscription-layout,
.shell .new-subscription{
  gap:32px;
}
.shell .panel.new-subscription,
.shell .new-subscription{
  padding:36px 40px;
}
.shell .workspace-nav{
  gap:8px;
  margin-bottom:32px;
}
.shell .workspace-nav button{
  padding:14px 24px;
}
.shell .subscription-steps{
  gap:40px;
  margin:0 0 36px;
  padding:0 0 28px;
}
.shell .subscription-tabs{
  gap:8px;
  margin:24px 0 28px;
}
.shell .subscription-tabs button{
  padding:14px 24px;
}
.shell .package-grid{
  gap:20px;
  margin-top:20px;
  margin-bottom:28px;
}
.shell .package-choice{
  padding:24px 22px;
  border-radius:12px;
  gap:14px;
}
.shell .subscription-form>section{
  margin-bottom:8px;
}
.shell .subscription-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  border:0;
  background:transparent;
  margin-bottom:8px;
}
.shell .subscription-metrics>div,
.shell .subscription-metrics>div:last-child{
  background:var(--panel);
  border:1px solid var(--line);
  border-right:1px solid var(--line);
  border-radius:12px;
  padding:22px 24px;
}
.shell .subscription-filter-grid,
.shell .subscription-advanced-filter .subscription-filter-grid{
  gap:16px;
  margin:24px 0;
}
.shell .reference-packages{
  margin-bottom:24px;
  padding-bottom:24px;
}

/* 订单 table + filters */
.shell .record-filter-grid{
  gap:16px 18px;
  margin-bottom:8px;
}
.shell .record-browser,
.shell .record-scope{
  margin-bottom:12px;
}
.shell .table-scroll{
  margin-top:8px;
}
.shell .table-scroll table th,
.shell .customer-records-table th{
  padding:16px 18px;
}
.shell .table-scroll table td,
.shell .customer-records-table td{
  padding:18px 18px;
  line-height:1.65;
}
.shell .record-pagination{
  margin-top:20px;
}

/* 钱包 panels and tabs */
.shell .wallet-overview,
.shell .wallet-daily,
.shell .panel.wallet-overview,
.shell .panel.wallet-daily,
.shell .panel.wallet-activity{
  padding:32px 36px;
}
.shell .wallet-sections{
  gap:12px;
  margin:0 0 28px;
}
.shell .wallet-sections button{
  min-height:40px;
  padding:8px 16px;
  border-radius:10px;
}
.shell .wallet-balance{
  margin:6px 0 10px;
}
.shell .stat-grid{
  gap:24px;
  margin:8px 0 28px;
}
.shell .stat{
  padding:4px 0;
}

/* 开发者 */
.shell .docs-table{
  margin-top:24px;
}
.shell .docs-table table th{
  padding:16px 18px;
}
.shell .docs-table table td{
  padding:16px 18px;
  font-size:12px;
  line-height:1.75;
}

@media (max-width:1050px){
  .shell .subscription-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .shell .package-grid{
    gap:16px;
  }
}
@media (max-width:900px){
  .shell .customer-card-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width:760px){
  .shell .content{padding:28px 18px 56px}
  .shell .page-heading{margin-bottom:28px}
  .shell .page-heading h1{font-size:24px}
  .shell .panel{padding:22px 20px;margin-bottom:22px}
  .shell .paypay-overview .overview-metrics{grid-template-columns:1fr}
  .shell .subscription-metrics{grid-template-columns:1fr}
  .shell .panel.new-subscription,
  .shell .new-subscription,
  .shell[data-page="issue"] .create-dialog,
  .shell[data-page="issue"] .dialog.create-dialog,
  .shell .issue-card-page,
  .shell .wallet-overview,
  .shell .wallet-daily,
  .shell .panel.wallet-overview,
  .shell .panel.wallet-daily,
  .shell .panel.wallet-activity{
    padding:22px 20px;
  }
  .shell .create-card-grid{gap:22px;margin:20px 0}
}
