.pr-page {
  --pr-line:#e0e5ef;
  min-height:100%; color:var(--ink); background:var(--bg);
}
.pr-head {
  position:sticky; top:0; z-index:3; background:#fff;
  border-bottom:1px solid var(--pr-line);
}
.pr-head-inner {
  max-width:1032px; margin:auto; padding:16px 28px; display:flex;
  align-items:center; gap:14px;
}
.pr-head .pr-back { width:40px; height:40px; flex:none; background:#f6f7fb; border-color:transparent; }
.pr-heading { min-width:0; flex:1; }
.pr-heading small {
  display:block; color:var(--muted); font-size:12px; font-weight:550;
  overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
}
.pr-heading h1 { margin:0; font-size:clamp(18px, 2.3vw, 23px); line-height:1.35; letter-spacing:-.03em; }
.pr-heading h1:focus { outline:none; }
.pr-head .pr-apply { padding-inline:20px; min-height:40px; flex:none; }
.pr-layout {
  display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);
  grid-template-areas:"settings preview" "extras preview" "error error";
  gap:18px; align-items:start; max-width:1032px; margin:auto; padding:26px 28px 48px;
}
.pr-panel { min-width:0; background:var(--card); border:1px solid var(--pr-line); border-radius:16px; }
.pr-settings { grid-area:settings; }
.pr-extra { grid-area:extras; }
.pr-preview { grid-area:preview; padding:22px; }
.pr-main-error { grid-area:error; }
.pr-section { padding:20px 22px; }
.pr-section + .pr-section,.pr-sale { border-top:1px solid var(--pr-line); }
.pr-page h2,.pr-page summary strong,.pr-sale strong { font-size:15px; font-weight:690; line-height:1.45; }
.pr-segments {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px;
  background:#f1f3f8; padding:4px; border-radius:11px; margin-top:13px;
}
.pr-segments button,.pr-period-links button,.pr-inline-options button,.pr-week-options button,
.pr-month-title,.pr-months button,.pr-text-btn {
  appearance:none; border:1px solid transparent; border-radius:7px; background:transparent;
  color:#5c6980; line-height:1.45; font-size:13px; font-weight:570; min-height:35px;
}
.pr-segments button { padding:6px 3px; }
.pr-segments button:hover:not(:disabled),.pr-inline-options button:hover,.pr-period-links button:hover:not(:disabled) { color:var(--blue); }
.pr-segments button[aria-pressed=true] { background:#fff; color:#2c50c6; box-shadow:0 1px 4px #243e6a1c; }
.pr-period-links { display:flex; gap:4px; flex-wrap:wrap; margin-top:6px; }
.pr-period-links button { min-height:30px; padding:3px 8px; font-size:12px; }
.pr-period-links button[aria-pressed=true],.pr-inline-options button[aria-pressed=true],.pr-months button[aria-pressed=true] {
  background:var(--soft-blue); color:#2f53c4;
}
.pr-page button:disabled { cursor:not-allowed; }
.pr-dependent { margin-top:12px; }
.pr-dates { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.pr-page .field { display:flex; flex-direction:column; min-width:0; }
.pr-activation {
  display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:13px;
  padding-top:13px; border-top:1px solid #ebedf3;
}
.pr-activation>span { color:#556277; font-size:13px; }
.pr-inline-options { display:inline-flex; align-items:center; gap:2px; border:1px solid var(--pr-line); padding:2px; border-radius:9px; }
.pr-inline-options button { padding:4px 9px; min-height:31px; font-size:12px; }
.pr-week-options { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; margin-top:12px; }
.pr-week-options button { border:1px solid var(--pr-line); padding:4px 1px; font-size:12px; color:#5c6980; }
.pr-week-options button[aria-pressed=true] { border-color:#bdcafa; background:var(--soft-blue); color:#2f53c4; }
.pr-preview-head { display:flex; align-items:center; gap:11px; }
.pr-icon { background:var(--soft-blue); color:var(--blue); display:grid; width:40px; height:40px; flex:none; place-items:center; border-radius:12px; }
.pr-preview-head p,.pr-ex-body>p,.pr-readout,.pr-legend,.pr-sale small,.pr-exceptions summary small,.pr-sample small { font-size:12px; color:var(--muted); }
.pr-preview-head p { margin-top:1px; }
.pr-sample { margin-top:18px; }
.pr-sample small { display:block; margin-top:6px; }
.pr-window { color:#4d5c73; background:#f5f7fb; border-radius:8px; padding:8px 10px; margin:12px 0; font-variant-numeric:tabular-nums; font-size:12px; }
.pr-cal-nav,.pr-jump-head { display:flex; justify-content:space-between; align-items:center; gap:6px; margin:8px 0 6px; }
.pr-cal-nav .icon-btn,.pr-jump-head .icon-btn { background:transparent; border-color:transparent; color:#536179; width:36px; height:36px; }
.pr-cal-nav .icon-btn:hover:not(:disabled),.pr-month-title:hover,.pr-jump-head button:hover:not(:disabled) { background:#eef2fb; }
.pr-month-title { display:inline-flex; gap:8px; align-items:center; margin:auto; padding:4px 9px; font-weight:690; font-size:15px; color:var(--ink); }
.pr-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.pr-days>span { padding:6px 0; font-size:12px; color:#6b778c; text-align:center; }
.pr-day {
  position:relative; border:1px solid transparent; background:#edf2ff; color:#314d9e; padding:5px 0;
  border-radius:8px; min-width:0; height:37px; font-size:13px; font-weight:590;
  font-variant-numeric:tabular-nums;
}
.pr-day:hover:not(:disabled) { border-color:#b3c4f2; background:#e2eaff; }
.pr-day:disabled { opacity:1; background:#f5f6f8; color:#788293; font-weight:470; }
.pr-day.pr-adjacent { color:#9aa3b1; background:transparent; }
.pr-day[aria-pressed=true] { background:var(--blue); border-color:var(--blue); color:white; }
.pr-day[aria-pressed=true]:hover { background:#2e53d2; }
.pr-day[aria-current=date]:not([aria-pressed=true]) { box-shadow:inset 0 0 0 1px #b6c2de; }
.pr-day[data-exception]::after { content:""; position:absolute; bottom:3px; left:calc(50% - 2px); width:4px; height:4px; border-radius:50%; background:currentColor; }
.pr-legend { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:14px; }
.pr-legend span { display:inline-flex; align-items:center; gap:5px; }
.pr-legend i { display:block; width:9px; height:9px; border-radius:3px; background:#dbe6ff; border:1px solid #b9cbf0; }
.pr-legend span:nth-child(2) i { background:#f0f2f6; border-color:#dce1e9; }
.pr-legend span:nth-child(3) i { width:5px; height:5px; background:#536179; border:0; border-radius:50%; }
.pr-readout { padding-top:9px; }
.pr-jump-head input { border:1px solid var(--pr-line); border-radius:8px; font-weight:650; width:67px; min-height:36px; text-align:center; }
.pr-months { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; padding:6px 0 0; }
.pr-months button { border-color:var(--pr-line); }
.pr-months button:disabled { background:#f7f8fa; }
.pr-text-btn { margin:4px 0 0; color:var(--blue); }
.pr-exceptions summary,.pr-sale { padding:16px 22px; }
.pr-exceptions summary { display:flex; align-items:center; justify-content:space-between; cursor:pointer; list-style:none; }
.pr-exceptions summary::-webkit-details-marker { display:none; }
.pr-exceptions summary>span { display:flex; align-items:center; gap:9px; }
.pr-exceptions summary .icon { color:var(--muted); }
.pr-exceptions[open] summary .icon { transform:rotate(180deg); }
.pr-ex-body { padding:0 22px 16px; }
.pr-ex-add { display:flex; align-items:end; gap:6px; flex-wrap:wrap; margin-top:10px; }
.pr-ex-add .field { flex:1 1 122px; }
.pr-ex-add .btn { min-height:37px; }
.pr-ex-list { list-style:none; margin:8px 0 0; padding:0; max-height:230px; overflow:auto; }
.pr-ex-list:empty { display:none; }
.pr-ex-list li { display:flex; align-items:center; gap:6px; padding:5px 0; font-size:12px; border-top:1px solid #ebedf3; }
.pr-ex-state { color:#995152; }
.pr-ex-state[data-open=true] { color:#327565; }
.pr-ex-list time { margin-right:auto; font-variant-numeric:tabular-nums; }
.pr-ex-list .icon-btn { border:none; min-height:28px; height:28px; }
.pr-sale { display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; }
.pr-sale small { display:block; margin-top:3px; }
.pr-sale input {
  cursor:pointer; appearance:none; -webkit-appearance:none; position:relative; flex:none;
  margin:0; border:0; border-radius:20px; width:40px; height:24px; background:#a8b1c1;
}
.pr-sale input:checked { background:var(--blue); }
.pr-sale input::after { content:""; position:absolute; border-radius:50%; width:18px; height:18px; top:3px; left:3px; background:#fff; }
.pr-sale input:checked::after { transform:translateX(16px); }
.pr-page .pr-error { color:#af3942; font-size:13px; margin:8px 0 0; }
@media(max-width:760px) {
  .pr-head-inner { padding:10px 14px; gap:10px; }
  .pr-heading h1 { font-size:18px; }
  .pr-head .pr-back { width:35px; height:36px; }
  .pr-head .pr-apply { padding-inline:13px; min-height:36px; }
  .pr-layout { grid-template-columns:minmax(0,1fr); grid-template-areas:"settings" "preview" "extras" "error"; padding:14px 12px max(30px,env(safe-area-inset-bottom)); gap:12px; }
  .pr-preview,.pr-section { padding:16px; }
  .pr-exceptions summary,.pr-sale { padding:15px 16px; }
  .pr-ex-body { padding:0 16px 14px; }
  .pr-day { height:38px; }
}
@media(max-width:370px) {
  .pr-head-inner { padding-inline:10px; }
  .pr-layout { padding-inline:8px; }
  .pr-preview,.pr-section { padding:13px; }
  .pr-segments { gap:1px; }
  .pr-segments button { font-size:12px; }
  .pr-dates { grid-template-columns:minmax(0,1fr); }
}
.pr-purchased { padding:20px 22px; }
.pr-purchased dl { margin:13px 0 0; }
.pr-purchased dl>div { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:7px 0; border-top:1px solid #edf0f5; }
.pr-purchased dt,.pr-bill-note { color:var(--muted); font-size:12px; }
.pr-purchased dd { margin:0; font-weight:550; font-size:13px; text-align:right; }
.pr-purchased .pr-exceptions { margin-top:9px; border-top:1px solid var(--pr-line); }
.pr-purchased .pr-exceptions summary { padding:12px 0 0; }
.pr-bill-note { line-height:1.55; margin:4px 0 12px; }
@media(max-width:760px) {
  .pr-sold .pr-layout { grid-template-areas:"preview" "settings"; }
  .pr-purchased { padding:16px; }
}
