.monthly-plan-home {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 420px;
  margin-top: 12px;
  color: var(--muted, #52615d);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.monthly-plan-home[hidden], .monthly-plan-organization[hidden],
.monthly-plan-home progress[hidden], [data-monthly-plan-placeholder][hidden] { display: none; }
.monthly-plan-title { font-weight: 600; }
.monthly-plan-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.monthly-plan-heading button{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border:1px solid #bacbd2;border-radius:6px;background:transparent;color:inherit;cursor:pointer}
.monthly-plan-heading button[hidden]{display:none}.monthly-plan-heading svg{width:18px;height:18px}
.personal-plan-dialog{box-sizing:border-box;width:min(440px,calc(100% - 24px));padding:24px;border:1px solid #bacbd2;border-radius:8px;background:var(--surface,#fff);color:var(--ink,#20343e);max-height:calc(100dvh - 32px);overflow:auto;font:16px Arial,sans-serif}
.personal-plan-dialog::backdrop{background:#14283270}.personal-plan-dialog header,.personal-plan-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.personal-plan-dialog h2{font-size:20px;margin:0}.personal-plan-dialog label{display:grid;gap:8px;margin:18px 0}.personal-plan-dialog input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid #bacbd2;border-radius:6px;background:transparent;color:inherit;font:inherit}.personal-plan-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid #bacbd2;border-radius:6px;background:transparent;color:inherit;font:inherit;cursor:pointer}.personal-plan-dialog svg{width:18px;height:18px}.personal-plan-dialog [type=submit]{background:#008975;color:#fff}.personal-plan-dialog [role=alert]{color:#b4313d;line-height:1.5}.personal-plan-dialog button:disabled{opacity:.5;cursor:wait}.personal-plan-dialog footer{justify-content:flex-end}
.personal-plan-dialog :focus-visible,.monthly-plan-heading button:focus-visible{outline:2px solid #168574;outline-offset:2px}
[data-ui-theme=dark] .personal-plan-dialog{background:#242b2e;color:#edf1f2;color-scheme:dark}
@media(pointer:coarse){.monthly-plan-heading button{width:44px;height:44px;flex-basis:44px}}
@media(max-width:600px){
 .personal-plan-dialog form,.personal-plan-dialog label{min-width:0;max-width:100%}
 .personal-plan-dialog label{grid-template-columns:minmax(0,1fr)}
 .personal-plan-dialog input[type=month]{display:block;appearance:none;-webkit-appearance:none;max-width:100%;min-inline-size:0}
 .personal-plan-dialog input[type=month]::-webkit-date-and-time-value{min-width:0;text-align:left}
 .personal-plan-dialog input[type=month]::-webkit-datetime-edit{min-width:0;padding:0}
}
.monthly-plan-home progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #e4e9e6;
  accent-color: #638775;
  transform-origin: left center;
  animation: monthly-plan-reveal 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes monthly-plan-reveal {
  from { opacity: 0; transform: scaleX(.98); }
  to { opacity: 1; transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .monthly-plan-home progress { animation: none; }
}
.monthly-plan-home progress::-webkit-progress-bar { background: #e4e9e6; }
.monthly-plan-home progress::-webkit-progress-value { background: #638775; }
.monthly-plan-home progress::-moz-progress-bar { background: #638775; }
.monthly-plan-organization { min-width: 0; margin-top: 20px; letter-spacing: 0; }
.monthly-plan-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.monthly-plan-toolbar h3 { margin: 0; font-size: 18px; }
.monthly-plan-toolbar label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.monthly-plan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 160px) 44px;
  align-items: end;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #d9e2dd;
}
.monthly-plan-row label { display: grid; gap: 6px; min-width: 0; font-size: 14px; }
.monthly-plan-row strong, .monthly-plan-row small { display: block; overflow-wrap: anywhere; }
.monthly-plan-row small { margin-top: 6px; }
.monthly-plan-organization input {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #82958b;
  border-radius: 6px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
}
.monthly-plan-toolbar input { width: 170px; }
.monthly-plan-row button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #82958b;
  border-radius: 6px;
  background: var(--surface, #fff);
  color: inherit;
  cursor: pointer;
}
.monthly-plan-row button:disabled { opacity: .55; cursor: default; }
.monthly-plan-row button svg { width: 20px; height: 20px; }
.monthly-plan-row-status { grid-column: 1 / -1; min-height: 20px; font-size: 14px; overflow-wrap: anywhere; }
.monthly-plan-organization input:focus-visible, .monthly-plan-row button:focus-visible { outline: 2px solid #168574; outline-offset: 2px; }
@media (max-width: 600px) {
  .monthly-plan-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .monthly-plan-person { grid-column: 1 / -1; }
}
