/* Scoped so shared read-only records can use this layout in Mom's Family profile. */
.sp-page,.sp-card{color:var(--stu-text,var(--text-dark,#3d2e6b));font-family:inherit}
.sp-page{max-width:1100px;margin:auto}.sp-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.sp-heading h1{font-size:clamp(1.4rem,3vw,2rem)}
.sp-card{background:var(--stu-card-bg,#fff);padding:20px;border:1px solid #8883;border-radius:16px;margin:16px 0;min-width:0}.sp-card h2{font-size:1.15rem;margin:0 0 12px}.sp-heading h2{margin:0}
.sp-page button,.sp-widget button,.sp-parent button{font:inherit;color:inherit;cursor:pointer;background:var(--stu-bg,#f7f4fc);border:1px solid #8885;border-radius:10px;padding:10px 14px;min-height:44px}.sp-page button:disabled{cursor:default;opacity:.5}
.sp-page button:focus-visible,.sp-widget button:focus-visible,.sp-parent button:focus-visible{outline:3px solid var(--stu-primary,#8b7bb8);outline-offset:3px}
.sp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.sp-stats>div{background:var(--stu-card-bg,#fff);border:1px solid #8883;padding:16px;border-radius:14px}.sp-stats span,.sp-stats strong{display:block}.sp-stats strong{margin-top:8px;font-size:1.08rem}.sp-stats span,.sp-hint{font-size:.87rem;line-height:1.6}.sp-hint{opacity:.8}
.sp-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.sp-layout .sp-card{margin:0}.sp-weekdays,.sp-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.sp-weekdays{margin:20px 0 10px;text-align:center;font-size:.8rem;font-weight:bold}.sp-days button.sp-day{padding:6px 2px;border-radius:8px;min-height:44px;position:relative}.sp-day span{display:block;font-size:.65rem;line-height:7px}.sp-days .sp-day.today{outline:2px solid currentColor;outline-offset:-4px}.sp-days .sp-day.selected{border:2px solid currentColor;font-weight:800}.sp-days .sp-day.predicted{border:2px dashed #9b59b6;opacity:1}
.sp-flow-row{display:flex;gap:8px;flex-wrap:wrap}.sp-flow[aria-pressed=true]{outline:2px solid currentColor;outline-offset:2px;font-weight:800}.sp-page .sp-light,.sp-widget .sp-light{background:#ffe2e9;color:#62233d}.sp-page .sp-medium,.sp-widget .sp-medium{background:#f7adc2;color:#582137}.sp-page .sp-heavy,.sp-widget .sp-heavy{background:#ad2758;color:#fff}.sp-page .sp-spotting,.sp-widget .sp-spotting{background:#fceff2;color:#62233d}.sp-page .sp-none,.sp-widget .sp-none{background:#f0f0f0;color:#494949}
.sp-field{display:flex;flex-direction:column;gap:8px;margin:14px 0;font-weight:600}.sp-field input,.sp-field textarea{font:inherit;padding:10px;max-width:100%;box-sizing:border-box;border:1px solid #8888;border-radius:8px;background:var(--stu-bg,#fff);color:inherit}.sp-field textarea{resize:vertical}.sp-check{display:flex;align-items:center;gap:10px;margin:16px 0;line-height:1.5}.sp-card input[type=checkbox]{width:20px;height:20px;flex-shrink:0;accent-color:var(--stu-primary,#8b7bb8)}.sp-symptoms{display:flex;flex-wrap:wrap;gap:8px 16px}.sp-symptoms label{display:flex;align-items:center;gap:6px;min-height:36px}.sp-card fieldset{border:0;padding:0;margin:18px 0}.sp-card legend{font-weight:700;margin-bottom:12px}.sp-card small{font-weight:400}.sp-actions{display:flex;gap:10px;flex-wrap:wrap}.sp-page .sp-primary{background:var(--stu-primary,#8b7bb8);color:white;border-color:transparent}.sp-history-row{padding:14px 0;border-bottom:1px solid #8883;display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}.sp-history-row span{display:block;margin-top:5px}.sp-notes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.95rem}.sp-card summary{cursor:pointer;min-height:36px;font-weight:700}.sp-parent{position:fixed;inset:5%;z-index:11000;background:#f8f5fb;border:1px solid #ccc;border-radius:16px;padding:20px;overflow:auto;box-shadow:0 10px 80px #0007}.sp-parent>.sp-heading{position:sticky;top:-20px;background:#f8f5fb;padding:12px 0;z-index:1}.sp-parent h2{margin:0}
@media(max-width:760px){.sp-layout{grid-template-columns:1fr}.sp-stats{grid-template-columns:1fr}.sp-stats>div{display:flex;justify-content:space-between;gap:12px}.sp-stats strong{margin:0;text-align:right}.sp-card{padding:14px}.sp-parent{inset:12px;padding:14px}.sp-parent>.sp-heading{top:-14px}}

/* The daily controls stay small; the complete record lives behind PT. */
.sp-quick{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin:0 0 8px;color:var(--stu-text,#4a3b6b)}
.sp-quick button{font:inherit;font-size:14px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 34px;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border:1px solid #c4456970;border-radius:50%;background:transparent;color:inherit;cursor:pointer;white-space:nowrap}
.sp-quick [data-period-quick=medium]{font-size:11px}.sp-quick [data-period-quick=heavy]{font-size:9px}
.sp-quick button[aria-pressed=true]{background:#fce9ef;border-color:#c44569}.sp-quick button:hover{background:#fce9ef}
.sp-quick .sp-pt-link{border:1px solid #c4456970;border-radius:50%;width:34px;height:34px;padding:0;font-size:11px;font-weight:700;color:#a63857;margin-left:3px}
.sp-quick button:focus-visible{outline:2px solid #c44569;outline-offset:2px}
.sp-sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sp-flow-mark{display:inline-block;box-sizing:border-box;width:19px;height:19px;border-radius:50%;border:1.5px solid #c44569;background:transparent;flex-shrink:0;vertical-align:middle}
.sp-mark-medium{background:linear-gradient(to top,#c44569 50%,transparent 50%)}.sp-mark-heavy{background:#c44569}.sp-mark-empty,.sp-mark-none{border:1px solid #cec9ce;background:#f6f3f5}.sp-mark-spotting{border-style:dotted}.sp-mark-predicted{border-style:dashed;border-color:#c4456980;background:#c4456914}
.sp-page .sp-flow{display:inline-flex;align-items:center;gap:8px;background:transparent}.sp-page .sp-flow[aria-pressed=true]{background:#fce9ef;outline:1px solid #c44569;color:#67243a}
.sp-year-card{padding:16px}.sp-year-controls{display:flex;align-items:center;gap:10px}.sp-year-controls strong{font-size:1.25rem;min-width:4ch;text-align:center}
.sp-year-legend{display:flex;gap:12px 22px;justify-content:center;flex-wrap:wrap;margin:16px 0;font-size:.8rem}.sp-year-legend>span{display:flex;gap:6px;align-items:center}
.sp-year-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-radius:4px}.sp-year-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;color:inherit}
.sp-year-table th{font-size:10px;text-align:center;font-weight:600;padding:4px 0}.sp-year-table th:first-child{width:38px;text-align:left;color:var(--stu-primary,#8b7bb8);font-size:11px}
.sp-year-table td{padding:0;height:27px}.sp-page .sp-year-day{display:flex;justify-content:center;align-items:center;width:100%;height:27px;min-height:0;padding:2px;border:0;border-radius:5px;background:transparent}
.sp-year-day .sp-flow-mark{width:min(100%,22px);height:auto;aspect-ratio:1}.sp-page .sp-year-day.today .sp-flow-mark{outline:1px solid #514255;outline-offset:2px}.sp-page .sp-year-day.selected{background:#c445691a;box-shadow:inset 0 0 0 1px #c44569}
button.sp-year-day:hover:not(:disabled){background:#c445691a}.sp-year-day:disabled .sp-mark-predicted{opacity:1}
.sp-year-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.8rem;margin-top:12px;color:var(--stu-text-muted,#746d7a)}.sp-year-footer button{font-size:.8rem;padding:6px 10px}
.sp-icon-card details>summary{align-items:center;cursor:pointer;display:flex;font-size:1.12rem;font-weight:700;justify-content:space-between;list-style:none}.sp-icon-card details>summary::-webkit-details-marker{display:none}.sp-icon-card details>summary::after{content:'⌄';font-size:1.35rem;line-height:1;transition:transform .15s}.sp-icon-card details[open]>summary::after{transform:rotate(180deg)}.sp-icon-picker-content{padding-top:10px}.sp-icon-options{display:flex;flex-wrap:wrap;gap:8px}.sp-icon-options button{font-size:23px;padding:6px;min-width:44px;min-height:44px;background:transparent}.sp-icon-options button[aria-pressed=true]{border:2px solid #c44569;background:#fce9ef}.sp-icon-preview{display:flex;flex-wrap:wrap;justify-content:space-around;gap:10px;margin-top:16px}.sp-icon-preview>span{text-align:center;font-size:20px}.sp-icon-preview small{display:block;font-size:.8rem;margin-top:6px}.sp-icon-card #sp-custom-icon{font-size:23px;width:100px}
.sp-sharing-card{margin-top:26px}.sp-page .sp-layout{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
@media(max-width:760px){.sp-page .sp-layout{grid-template-columns:1fr}.sp-year-card{padding:12px 8px}.sp-year-table th:first-child{width:29px;font-size:9px}.sp-year-table th{font-size:7px}.sp-year-table td,.sp-page .sp-year-day{height:24px}.sp-page .sp-year-day{padding:1px}.sp-year-legend{gap:10px;font-size:.72rem}.sp-year-legend .sp-flow-mark{width:15px;height:15px}.sp-year-controls{gap:6px}}

.sp-title{justify-content:center}.sp-title h1{text-align:center}.sp-title h1>span{display:inline-block;font-size:.8em;vertical-align:middle}

.sp-parent .sp-year-day{box-sizing:border-box}.sp-parent .sp-year-card .sp-heading{position:static;background:transparent;padding:0}
