:root
{
    --ink: #203d3a;
    --muted: #82928b;
    --green: #2d6856;
    --line: #e2e8df;
    --paper: #fcfcf8;
    --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.6 "Segoe UI", Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; border-radius: 6px; }
button:hover { border-color: #93b4a2; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #aac7a6; outline-offset: 3px; }
header, main, footer { max-width: 1400px; margin: auto; }
header { height: 95px; display: flex; align-items: center; padding: 0 6%; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 750; letter-spacing: -.8px; }
.brand span { background: var(--green); color: white; border-radius: 5px; padding: 0 5px; margin-right: 5px; }
header > span { font-size: 7px; color: var(--muted); letter-spacing: 1.7px; margin-left: 30px; }
header > button { margin-left: auto; border: 0; padding: 0; font-size: 10px; color: var(--muted); background: transparent; }
main { display: grid; grid-template-columns: 31% 69%; min-height: calc(100vh - 155px); }
aside { background: #edf2e8; border-right: 1px solid var(--line); padding: 45px 17% 30px 19%; }
.eyebrow { font-size: 8px; font-weight: 650; letter-spacing: 1.6px; }
aside h2 { font: 36px/1.07 Georgia, serif; font-weight: 400; letter-spacing: -1px; margin: 20px 0; }
aside > p { font-size: 11px; color: #7e8d7e; line-height: 1.8; }
ol { list-style: none; padding: 0; margin: 35px 0; }
.step-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; font-size: 11px; color: #8d9b8b; }
.step-item > span { border: 1px solid #cad7c6; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; flex-shrink: 0; }
.step-item.active { color: var(--green); font-weight: 650; }
.step-item.active > span { color: white; background: var(--green); border-color: var(--green); box-shadow: 0 0 0 4px #dce8d7; }
.step-item.complete > span { background: #dce8d4; color: #65835b; }
.step-item small { display: block; font-size: 7px; font-weight: 400; }
.setup-note { border-top: 1px solid #d5dfcf; padding-top: 20px; color: #85967f; }
.setup-note p { font-size: 9px; line-height: 1.8; }
#finish-setup { padding: 0; border: 0; color: var(--green); background: transparent; font-size: 10px; text-decoration: underline; }
.stage { padding: 40px 10% 25px; min-width: 0; }
.stage-top { display: flex; justify-content: space-between; gap: 10px; font-size: 8px; color: var(--muted); letter-spacing: 1.2px; }
.stage-top > span:first-child { color: var(--green); font-weight: 650; }
.progress-track { height: 3px; background: #eaf0e5; margin-top: 13px; border-radius: 2px; }
#progress { height: 100%; display: block; background: #789d69; transition: width .2s; }
.step-shell { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 35px 38px; max-width: 580px; margin: 35px auto 25px; box-shadow: 0 8px 35px #203b2504; }
#step-icon { width: 48px; height: 48px; border-radius: 12px; background: #edf3e6; color: var(--green); font-size: 28px; display: grid; place-items: center; margin-bottom: 25px; }
.step-shell > .eyebrow { color: #a0ae98; font-size: 7px; }
h1 { font-size: 30px; letter-spacing: -1px; line-height: 1.2; margin: 12px 0; font-weight: 600; }
#step-description { font-size: 11px; color: var(--muted); line-height: 1.8; margin-bottom: 25px; }
.field { display: block; font-size: 10px; font-weight: 600; margin: 18px 0; }
.field input, .field select, .field textarea { display: block; width: 100%; padding: 11px 12px; margin-top: 7px; border: 1px solid #d6dfd1; background: var(--surface); border-radius: 5px; font-size: 11px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #789d69; }
.field small { display: block; color: var(--muted); font-size: 8px; font-weight: 400; margin-top: 5px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); }
.check { display: flex; align-items: flex-start; gap: 7px; font-size: 10px; color: #7b8d7a; margin: 12px 0; }
.check input { margin-top: 4px; }
.account-fields { background: var(--paper); padding: 15px; border-radius: 5px; margin-top: 15px; }
.account-fields .field { margin-top: 10px; }
.step-actions { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 25px; }
.step-actions button { font-size: 10px; }
#back { padding-left: 0; border: 0; background: transparent; }
#skip { border: 0; padding: 0; color: var(--muted); background: transparent; font-size: 9px; margin-left: auto; }
.primary { background: var(--green); color: white; border-color: var(--green); font-weight: 600; }
#continue { margin-left: auto; padding: 11px 19px; }
#continue:disabled { opacity: .6; cursor: wait; }
#error { color: #b45b47; font-size: 10px; line-height: 1.6; }
.help { text-align: center; color: #a2ad9d; font-size: 8px; margin-top: 20px; }
.help button { padding: 0; border: 0; color: #6c8a60; background: transparent; font-size: 8px; }
footer { display: flex; justify-content: space-between; gap: 15px; padding: 22px 6%; border-top: 1px solid var(--line); font-size: 8px; color: #9baa94; }
.checklist-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); font-size: 11px; gap: 10px; }
.checklist-row > span { color: var(--muted); font-size: 9px; }
.checklist-row.done b::before { content: "✓ "; color: var(--green); }
.tour-preview { border: 1px solid var(--line); border-radius: 7px; padding: 20px; background: #f6f8f2; min-height: 195px; }
.tour-preview > small { font-size: 8px; color: var(--muted); letter-spacing: 1px; }
.tour-preview h3 { font-size: 21px; margin: 15px 0; }
.tour-preview p { font-size: 11px; color: var(--muted); }
.tour-lines { display: flex; align-items: flex-end; gap: 8px; height: 45px; }
.tour-lines i { width: 20%; background: #dce8d3; border-top: 3px solid #9bb98c; border-radius: 3px; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; }
.tour-actions button { padding: 5px 8px; font-size: 9px; }
.tour-actions span { color: var(--muted); font-size: 9px; }
#restart-tour { margin-top: 10px; padding: 0; border: 0; font-size: 9px; color: var(--muted); }
.invite-row { display: grid; grid-template-columns: 1fr 85px 25px; gap: 7px; margin: 10px 0; align-items: center; }
.invite-row input, .invite-row select { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--surface); padding: 9px; font-size: 10px; border-radius: 4px; }
.invite-row button { padding: 0; border: 0; font-size: 18px; }
#add-invite, #add-bulk { font-size: 9px; padding: 7px 10px; }
.template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.template { padding: 12px; text-align: left; }
.template[aria-pressed="true"], .plan[aria-pressed="true"] { border-color: #769565; background: #eff5e9; box-shadow: 0 0 0 1px #769565; }
.template b { display: block; font-size: 10px; }
.template small { display: block; font-size: 8px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.template-preview { background: #f5f8f0; border: 1px solid var(--line); border-radius: 5px; padding: 15px; margin-top: 17px; }
.template-preview p { font-size: 10px; margin: 4px 0; color: var(--muted); }
.template-preview b { font-size: 10px; }
.preference-group { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 20px; }
.preference-group > b { font-size: 11px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.plan { padding: 13px 8px; text-align: left; }
.plan b { display: block; font-size: 11px; }
.plan strong { display: block; font-size: 20px; margin: 8px 0; }
.plan small { display: block; font-size: 7px; color: var(--muted); line-height: 1.6; }
.summary { background: #f1f5ec; padding: 17px; border-radius: 5px; margin: 20px 0; }
.summary p { font-size: 10px; display: flex; justify-content: space-between; gap: 20px; margin: 8px 0; }
.billing-note { font-size: 9px; color: var(--muted); line-height: 1.8; }
#free-plan { font-size: 9px; padding: 0; border: 0; color: var(--green); background: transparent; text-decoration: underline; }
.celebration { font-size: 40px; color: #80a369; text-align: center; animation: celebrate .7s ease-out; }
.completion-summary { padding: 18px; background: #f4f7ed; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; }
.completion-summary p { margin: 9px 0; }
#watch-video { font-size: 10px; width: 100%; margin-top: 12px; border: 0; color: var(--green); }
.dashboard-empty { border: 1px dashed #c1d1b6; background: #f7faf1; border-radius: 7px; padding: 25px; text-align: center; margin-top: 20px; }
.dashboard-empty h3 { font-size: 20px; }
.dashboard-empty p { font-size: 11px; color: var(--muted); }
dialog { padding: 30px; border: 1px solid var(--line); border-radius: 9px; max-width: 450px; width: calc(100% - 32px); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: #16352cbb; }
dialog h2 { font-size: 25px; line-height: 1.2; }
dialog p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.close { float: right; padding: 0; border: 0; font-size: 22px; }
[hidden] { display: none !important; }
body.dark { --ink: #d5e5d7; --muted: #9bb29d; --line: #42584b; --paper: #20352c; --surface: #2b4035; }
body.dark aside { background: #253e31; }
body.dark .summary, body.dark .template-preview, body.dark .tour-preview, body.dark .completion-summary, body.dark .dashboard-empty { background: #314a39; }
body.dark .template[aria-pressed="true"], body.dark .plan[aria-pressed="true"] { background: #36573e; }
@keyframes celebrate
{
    from { transform: scale(.5) rotate(-30deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}
@media (max-width: 750px)
{
    header { height: 75px; }
    header > span { display: none; }
    .brand { font-size: 22px; }
    main { grid-template-columns: 1fr; min-height: calc(100vh - 135px); }
    aside { display: none; }
    .stage { padding: 25px 6%; }
    .stage-top { font-size: 7px; letter-spacing: .5px; }
    .step-shell { margin-top: 25px; padding: 26px 22px; }
    h1 { font-size: 28px; }
    #step-description { font-size: 11px; }
    .step-actions { gap: 8px; }
    .step-actions button { font-size: 9px; }
    #continue { padding: 10px 12px; }
    #skip { font-size: 8px; }
    .template-grid { gap: 8px; }
    .template { padding: 10px; }
    .plans { gap: 6px; }
    .plan { padding: 10px 7px; }
    footer { flex-wrap: wrap; font-size: 7px; justify-content: center; gap: 7px 20px; }
}
@media (prefers-reduced-motion: reduce)
{
    * { animation: none !important; transition: none !important; }
}
