:root { color-scheme:light; font:16px/1.6 system-ui,sans-serif; background:#fbf3f4; color:#352836; --green:#60395b; --edge:#ddcddd; }
* { box-sizing:border-box; }
body { margin:0; }
.shell { width:min(1110px,92%); margin-inline:auto; }
.top,.top nav,.actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 17px; }
.top { justify-content:space-between; padding-block:13px; }
.top a,.button { display:inline-flex; align-items:center; min-height:44px; text-decoration:none; font-weight:750; }
.brand { font-size:1.2rem; }
a { color:var(--green); text-underline-offset:.2em; }
:focus-visible { outline:3px solid #ad5129; outline-offset:3px; }
.hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); color:#fff9e9; background:#4a2e49; border-radius:26px 6px 26px 6px; overflow:hidden; }
.hero div { padding:clamp(20px,4vw,53px); align-self:center; }
.hero img { display:block; width:100%; height:100%; object-fit:cover; }
h1,h2,h3 { margin:0 0 13px; line-height:1.14; }
h1 { font-size:clamp(2rem,4.6vw,3.6rem); letter-spacing:-.045em; text-wrap:balance; }
button,.button { display:inline-flex; align-items:center; min-height:44px; padding:7px 13px; border:1px solid var(--green); border-radius:8px; background:var(--green); color:white; font:inherit; font-weight:750; cursor:pointer; }
.hero .button,.secondary { color:var(--green); background:#fdf4e3; }
.section { margin-block:clamp(25px,5vw,48px); }
.panel { border:1px solid var(--edge); border-radius:14px; padding:clamp(15px,3vw,27px); background:#fffefa; }
.fields,.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
label { font-weight:700; }
label small { font-weight:400; }
input { display:block; width:100%; min-width:0; min-height:44px; padding:6px 9px; border:1px solid #81978f; border-radius:7px; background:white; color:inherit; font:inherit; }
.actions { margin-top:11px; }
#result:not(:empty) { background:#f2e7f1; padding:10px 13px; border-radius:8px; margin-top:13px; }
#result p { margin:3px 0; }
.cards span { display:grid; place-items:center; width:43px; height:43px; border-radius:50%; background:#efdbea; font-size:1.45rem; margin-bottom:8px; }
.cards p,.panel p:last-child { margin-bottom:0; }
details { border-top:1px solid var(--edge); padding-block:9px; }
summary { min-height:34px; font-weight:750; cursor:pointer; }
.reader { max-width:760px; }
.reader .panel { margin-block:14px; }
.article-photo { display:block; width:100%; height:auto; border-radius:12px; }
footer { margin-top:25px; border-top:1px solid var(--edge); padding:15px 0 26px; }
@media(max-width:720px) { .hero,.fields,.cards { grid-template-columns:minmax(0,1fr); } .hero img { height:auto; } }
[hidden] { display:none !important; }
#copy-text { display:block; width:100%; resize:vertical; padding:7px; background:white; color:inherit; font:inherit; border:1px solid #81978f; border-radius:6px; }
#share-status:empty { display:none; }
.fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
#result { overflow-wrap:anywhere; font-weight:750; }
@media(max-width:600px) { .fields { grid-template-columns:minmax(0,1fr); } }
[hidden] { display:none !important; }
.practice-grid,.worksheet-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.article-photo { display:block; width:100%; height:auto; border-radius:12px; }
.worksheet-fields label { display:grid; gap:4px; }
.worksheet-fields textarea { width:100%; min-height:54px; padding:8px; border:1px solid #927b90; border-radius:7px; resize:vertical; font:inherit; color:inherit; }
.print-value { display:none; }
@media screen and (max-width:600px) { .practice-grid,.worksheet-fields { grid-template-columns:minmax(0,1fr); } }
@media print {
  :root { background:white; color:black; }
  .top,footer,.article-photo,.worksheet-actions,.worksheet-fields textarea { display:none; }
  .reader { width:100%; max-width:none; }
  .worksheet-fields > div { break-inside:avoid; }
  .print-value { display:block; margin:0; min-height:25px; border-bottom:1px solid #aaa; white-space:pre-wrap; overflow-wrap:anywhere; }
}
.amount-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:0 0 8px; }
.amount-summary div { padding:8px; border:1px solid var(--edge); border-radius:8px; background:#fffefa; }
.amount-summary dt { font-size:.86rem; }
.amount-summary dd { margin:3px 0 0; overflow-wrap:anywhere; }
.copy-status:empty { display:none; }
.copy-fallback textarea { display:block; width:100%; resize:vertical; font:inherit; padding:7px; border:1px solid #927b90; border-radius:6px; }
@media(max-width:480px) { .amount-summary { grid-template-columns:minmax(0,1fr); } }
@media print { .copy-controls,.copy-status,.copy-fallback { display:none; } }
