.profile-module-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px}
body.profile-preview{width:100%!important;max-width:100vw!important;overflow:hidden}body.profile-preview .review,body.profile-preview .phone,body.profile-preview .screen,body.profile-preview .profile-page{width:100%!important;min-width:0!important;max-width:100vw!important;margin:0!important}body.profile-preview .review{display:block!important;overflow:hidden!important}body.profile-preview .phone{position:fixed!important;inset:0!important;height:100dvh!important}.profile-page .member-card[hidden]{display:none!important}
.profile-module-grid>button{min-width:0;height:54px;display:grid;grid-template-columns:34px minmax(0,1fr) 12px;align-items:center;gap:8px;padding:0 10px;border:1px solid rgba(237,197,105,.66);border-radius:15px;color:#fff;background:linear-gradient(120deg,rgba(40,113,207,.66),rgba(9,55,127,.8));box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 7px 16px rgba(0,21,65,.18);font:inherit;text-align:left;cursor:pointer}
.profile-module-grid>button:active{transform:translateY(1px)}.profile-module-grid>button:focus-visible{outline:3px solid rgba(255,211,107,.48);outline-offset:2px}.profile-module-grid strong{overflow:hidden;font-size:14px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}.profile-module-grid .row-arrow{font-size:20px}
.profile-module-icon{position:relative;width:30px;height:30px;display:grid;place-items:center;border:1px solid rgba(245,209,126,.8);border-radius:50%;color:#ffd56f;background:linear-gradient(145deg,rgba(41,144,223,.82),rgba(10,75,166,.92));box-shadow:inset 0 1px 6px rgba(255,255,255,.3)}
.meditation-seat-icon{position:relative;display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border:1px solid rgba(244,204,113,.72);border-radius:50%;color:#f6cd68;background:linear-gradient(145deg,rgba(79,151,231,.68),rgba(19,73,148,.85))}.meditation-seat-icon:before{content:"";position:absolute;top:4px;width:4px;height:4px;border:1.2px solid currentColor;border-radius:50%}.meditation-seat-icon:after{content:"";position:absolute;left:50%;top:9px;width:8px;height:9px;border:1.2px solid currentColor;border-radius:50% 50% 44% 44%;transform:translateX(-50%)}.meditation-seat-icon>span{position:absolute;left:4px;right:4px;bottom:3px;height:5px;border:1.2px solid currentColor;border-radius:50%}.meditation-seat-icon>span:before{content:"";position:absolute;left:-2px;right:-2px;bottom:1px;border-bottom:1.2px solid currentColor}.meditation-seat-icon>span:after{display:none}.other-practice summary{grid-template-columns:28px minmax(0,1fr) 18px}.other-practice summary:before{display:none}.other-practice summary b{font:inherit;font-weight:600}
.icon-lineage i{width:9px;height:14px;border:1.5px solid currentColor;border-radius:70% 20% 70% 20%;transform:rotate(45deg)}.icon-lineage:before,.icon-lineage:after{content:"";position:absolute;bottom:7px;width:9px;height:11px;border:1.5px solid currentColor;border-radius:70% 20% 70% 20%}.icon-lineage:before{left:5px;transform:rotate(18deg)}.icon-lineage:after{right:5px;transform:scaleX(-1) rotate(18deg)}.icon-lineage b{position:absolute;left:6px;right:6px;bottom:5px;height:4px;border-bottom:1.5px solid currentColor;border-radius:50%}
.icon-book:before,.icon-book:after{content:"";position:absolute;top:7px;width:9px;height:14px;border:1.5px solid currentColor}.icon-book:before{left:5px;border-radius:2px 0 0 2px;transform:skewY(7deg)}.icon-book:after{right:5px;border-radius:0 2px 2px 0;transform:skewY(-7deg)}.icon-book i{position:absolute;left:14px;top:8px;width:1.5px;height:14px;background:currentColor}
.icon-note:before{content:"";width:14px;height:18px;border:1.5px solid currentColor;border-radius:2px;background:linear-gradient(currentColor,currentColor) 4px 6px/7px 1.5px no-repeat,linear-gradient(currentColor,currentColor) 4px 10px/7px 1.5px no-repeat,linear-gradient(currentColor,currentColor) 4px 14px/5px 1.5px no-repeat}.icon-note:after{content:"";position:absolute;right:5px;top:4px;width:6px;height:2px;background:currentColor;transform:rotate(-38deg)}
.icon-target:before{content:"";width:17px;height:17px;border:1.5px solid currentColor;border-radius:50%;box-shadow:inset 0 0 0 3px #0a4ba6,inset 0 0 0 4.5px currentColor}.icon-target:after{content:"";position:absolute;left:16px;top:5px;width:10px;height:1.5px;background:currentColor;transform:rotate(-43deg);transform-origin:left}
.profile-page.module-open{padding:0;overflow:hidden}.profile-page.module-open>:not(.profile-module-shell):not(.profile-module-dialog){display:none!important}.profile-module-shell{height:100%;min-height:100%;overflow-y:auto;padding:0 13px 24px;color:#f7fbff}.profile-module-head{position:sticky;top:0;z-index:4;min-height:74px;display:grid;grid-template-columns:48px 1fr;align-items:center;margin:0 -13px 14px;padding:8px 13px;border-bottom:1px solid rgba(237,197,105,.5);background:rgba(4,43,104,.96);backdrop-filter:blur(12px)}.profile-module-head button{border:0;color:#f3c86a;background:transparent;font:400 38px/1 Arial;cursor:pointer}.profile-module-head small{color:#c6d5ea;font-size:10px;letter-spacing:.06em}.profile-module-head h3{margin:2px 0 0;color:#fff;font-size:26px;font-weight:500;letter-spacing:.06em}
.profile-module-body{display:grid;gap:12px}.module-toolbar{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #efc766;border-radius:13px;overflow:hidden}.module-toolbar button{min-height:42px;border:0;border-right:1px solid rgba(239,199,102,.55);color:#fff;background:rgba(4,46,111,.66);font:inherit;font-size:13px}.module-toolbar button:last-child{border-right:0}.module-toolbar button.active{color:#08275e;background:linear-gradient(135deg,#ffe39a,#e5ad39);font-weight:700}.module-add{width:100%;min-height:46px;border:1px solid #efc766;border-radius:13px;color:#f5cd6b;background:rgba(7,54,125,.68);font:inherit;font-size:16px;cursor:pointer}
.module-card,.module-table,.reflection-editor,.module-calendar{border:1px solid rgba(239,199,102,.68);border-radius:14px;background:linear-gradient(120deg,rgba(35,105,198,.58),rgba(7,49,117,.78));box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 8px 18px rgba(0,21,65,.18);overflow:hidden}.module-table{display:grid}.module-row{display:grid;grid-template-columns:1fr 1.7fr 42px;align-items:center;min-height:54px;border-bottom:1px solid rgba(239,199,102,.4);padding:7px 10px;gap:7px}.module-row:last-child{border-bottom:0}.module-row.header{min-height:44px;color:#f4ca6c;font-weight:700}.module-row time,.module-row strong{font-size:12px}.module-row button{border:0;color:#f3c968;background:transparent;font-size:22px}.module-note{grid-column:1/-1;padding:7px 10px 10px;color:#d6e1f1;font-size:12px;line-height:1.6}
.practice-list{display:grid;gap:10px}.practice-item{padding:14px}.practice-title-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.practice-title-line h4{min-width:0;margin:0;overflow:hidden;color:#f5cc69;font-size:18px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.practice-title-line button{border:1px solid #efc766;border-radius:8px;color:#f5cd6b;background:transparent;padding:6px 10px;font:inherit}.practice-actions{display:flex;flex:0 0 auto;gap:5px}.practice-actions button{padding:6px 8px;font-size:12px;white-space:nowrap}.practice-metrics{display:grid;grid-template-columns:repeat(3,1fr) 52px;gap:8px;margin-top:12px}.practice-metrics small{display:block;color:#c9d7ea;font-size:9px}.practice-metrics strong{display:block;margin-top:3px;color:#fff;font-size:16px;font-variant-numeric:tabular-nums}.practice-metrics .percent strong{color:#f6c951;font-size:22px}.module-progress{height:10px;margin-top:12px;border:1px solid #75b8ff;border-radius:8px;overflow:hidden;background:#053075}.module-progress i{display:block;height:100%;background:linear-gradient(90deg,#d99b23,#ffe38d)}.practice-history{margin:12px 0 0;padding-top:10px;border-top:1px solid rgba(239,199,102,.35);color:#dce7f5;font-size:11px}.practice-history div{display:flex;justify-content:space-between;padding:4px 0}
.practice-deadline{margin:9px 0 0;color:#cbd9eb;font-size:11px;line-height:1.45}.practice-deadline.overdue{color:#ffe0d7;font-weight:700}.practice-item.is-overdue{border-color:#ff9b82;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 0 0 2px rgba(255,119,91,.18),0 8px 18px rgba(0,21,65,.18)}
.reflection-editor{padding:12px}.reflection-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px}.profile-module-body label{display:grid;gap:6px;color:#f4ca6c;font-size:12px}.profile-module-body input,.profile-module-body textarea,.profile-module-body select,.profile-module-dialog input,.profile-module-dialog textarea{width:100%;border:1px solid #efc766;border-radius:9px;color:#fff;background:#062f72;padding:10px;font:inherit;font-size:13px}.profile-module-body textarea{min-height:120px;resize:vertical}.reflection-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.reflection-actions button{min-height:42px;border:1px solid #efc766;border-radius:10px;color:#f6cc69;background:transparent;font:inherit}.reflection-actions .primary{color:#08275e;background:linear-gradient(135deg,#ffe39a,#e5ad39);font-weight:700}.calendar-head{display:flex;justify-content:space-between;align-items:center;padding:10px;color:#fff}.calendar-head button{border:0;color:#f4c967;background:transparent;font-size:25px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);border-top:1px solid rgba(239,199,102,.45)}.calendar-grid span{position:relative;min-height:36px;display:grid;place-items:center;border-right:1px solid rgba(239,199,102,.35);border-bottom:1px solid rgba(239,199,102,.35);font-size:11px}.calendar-grid span:nth-child(7n){border-right:0}.calendar-grid .weekday{min-height:27px;color:#f4ca6c}.calendar-grid .has-entry:after{content:"";position:absolute;bottom:4px;width:5px;height:5px;border-radius:50%;background:#f2bd3f}.reflection-history{display:grid;gap:8px}.reflection-history details{border:1px solid rgba(239,199,102,.6);border-radius:12px;background:rgba(8,56,130,.75)}.reflection-history summary{display:grid;grid-template-columns:1fr 1fr 20px;gap:8px;padding:12px;cursor:pointer}.reflection-history p{margin:0;padding:0 12px 12px;color:#dce7f5;line-height:1.7;font-size:12px}
.goal-period-picker{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px}.goal-period-picker>button{height:46px;border:1px solid #efc766;border-radius:12px;color:#f5cd6b;background:rgba(7,54,125,.68);font-size:28px}.goal-period-picker label{position:relative;display:grid;gap:3px;min-height:46px;place-content:center;border:1px solid #efc766;border-radius:12px;color:#fff;background:rgba(7,54,125,.68);text-align:center}.goal-period-picker label span{color:#f5cd6b;font-size:9px}.goal-period-picker label strong{font-size:15px}.goal-period-picker input{position:absolute;inset:0;opacity:0;cursor:pointer}.goal-summary{padding:14px}.goal-summary h4{margin:0;color:#f5ca66;font-size:18px}.goal-metrics{display:grid;grid-template-columns:repeat(3,1fr) 52px;gap:7px;margin-top:10px}.goal-metrics small{display:block;color:#cbd8eb;font-size:9px}.goal-metrics strong{font-size:16px}.goal-metrics .percent strong{color:#f4c65d;font-size:22px}.module-help{margin:0;color:#d4e0f0;font-size:11px;line-height:1.6;text-align:center}
.profile-module-dialog{width:min(354px,calc(100vw - 28px));max-height:86dvh;padding:0;border:1px solid #efc766;border-radius:16px;color:#fff;background:linear-gradient(165deg,#0b55ba,#03265f);box-shadow:0 20px 60px rgba(0,12,44,.65)}.profile-module-dialog::backdrop{background:rgba(0,14,40,.76)}.profile-module-dialog form{padding:15px}.profile-module-dialog header{display:flex;align-items:center;justify-content:space-between}.profile-module-dialog h3{margin:0;color:#f4cb69;font-size:21px}.profile-module-dialog header button{border:0;color:#f4cb69;background:transparent;font-size:26px}.profile-module-dialog #profileModuleFields{display:grid;gap:10px;margin-top:14px}.profile-module-dialog textarea{min-height:100px}.profile-module-dialog footer{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.profile-module-dialog footer button{min-height:42px;border:1px solid #efc766;border-radius:10px;color:#f4cb69;background:transparent;font:inherit}.profile-module-dialog footer .primary{color:#08275e;background:linear-gradient(135deg,#ffe39a,#e5ad39);font-weight:700}.profile-module-dialog-status{min-height:18px;margin:8px 0 0;color:#ffd6c9;font-size:11px}
.practice-counter-section{padding-bottom:18px}.counter-section-head{display:flex;align-items:center;min-height:34px;margin:0 2px 8px}.counter-section-head h3{margin:0;color:#fff;font-size:17px;font-weight:600}.profile-counter-widget{display:grid;gap:12px;padding:14px;border:1px solid rgba(237,197,105,.72);border-radius:15px;background:linear-gradient(135deg,rgba(35,105,198,.58),rgba(7,49,117,.8))}.counter-practice-select{position:relative;width:100%;display:grid;gap:3px;padding:8px 36px 8px 12px;border:1px solid rgba(237,197,105,.72);border-radius:11px;background:#083a80;cursor:pointer}.counter-practice-select:after{content:"›";position:absolute;right:13px;top:50%;color:#f4ca67;font-size:24px;pointer-events:none;transform:translateY(-50%) rotate(90deg)}.counter-practice-select span{color:#bcd0e8;font-size:9px}.counter-practice-select strong{overflow:hidden;color:#fff;font-size:14px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}.counter-practice-select select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.counter-control-area{display:grid;grid-template-rows:auto auto;justify-items:center;gap:14px}.counter-tap{width:min(264px,100%);height:auto;aspect-ratio:1;display:grid;place-content:center;border:4px solid #f5c64e;border-radius:50%;color:#ffd66f;background:radial-gradient(circle at 50% 34%,#1457aa,#073375 72%);box-shadow:inset 0 0 0 10px rgba(35,112,202,.35);font:inherit;cursor:pointer;touch-action:manipulation}.counter-tap strong{font-size:clamp(50px,14vw,62px);font-weight:500;line-height:1;font-variant-numeric:tabular-nums}.counter-tap:active:not(:disabled){transform:scale(.985)}.counter-tap:disabled{cursor:not-allowed;filter:saturate(.45);opacity:.65}.counter-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:12px}.counter-actions button{min-height:44px;padding:0 12px;border:1px solid #efc766;border-radius:8px;color:#f5cd6b;background:#073879;font:inherit;font-size:13px;font-weight:600;white-space:nowrap}.counter-actions button:last-child{color:#08275e;background:linear-gradient(135deg,#ffe39a,#e5ad39);font-weight:700}.counter-actions button:disabled{opacity:.48;cursor:not-allowed}.counter-status{min-height:17px;margin:0;color:#cbd9eb;font-size:11px;line-height:1.45;text-align:center}
@media(max-width:350px){.profile-module-grid strong{font-size:12px}.practice-metrics,.goal-metrics{grid-template-columns:repeat(3,1fr)}.practice-metrics .percent,.goal-metrics .percent{grid-column:1/-1}.reflection-meta{grid-template-columns:1fr}}

/* Lineage list: readable on phones for middle-aged and older visitors. */
.lineage-table .module-row{grid-template-columns:88px minmax(108px,1fr) 24px 76px;gap:4px;padding:10px 7px;line-height:1.5}
.lineage-table .module-row time{min-width:0;font-size:15px;white-space:nowrap;font-variant-numeric:tabular-nums}
.lineage-table .module-row strong{min-width:0;font-size:18px;line-height:1.5;white-space:nowrap}
.lineage-table .module-row.header,.lineage-table .module-note{font-size:16px}
.lineage-table .module-row>button{min-height:44px;cursor:pointer}
.lineage-table .lineage-actions{display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;align-items:center}
.lineage-table .lineage-actions button{min-width:36px;min-height:44px;padding:4px;border:0;border-radius:0;font:inherit;font-size:16px;white-space:nowrap;cursor:pointer}
.lineage-table button:focus-visible{outline:2px solid #f4ca6c;outline-offset:2px}
.lineage-table .module-row.header>span:nth-child(3),.lineage-actions-heading{text-align:center}
.lineage-table .module-note[hidden]{display:none}

.lineage-delete-question{margin:4px 0 12px;line-height:1.7;overflow-wrap:anywhere}

/* Keep the approved six-character names and dates on one line on narrow phones. */
.lineage-table .module-row.header{white-space:nowrap}
.lineage-table .module-row>button{min-width:0;padding:0}
@media(max-width:370px){.lineage-table .module-row{grid-template-columns:79px minmax(108px,1fr) 18px 68px;gap:2px;padding-inline:5px}.lineage-table .lineage-actions button{min-width:32px;padding-inline:0}}

.lineage-table .module-row>button{display:flex;align-items:center;justify-content:center;line-height:1;align-self:center}
@media(max-width:350px){.lineage-table{margin-inline:-6px}.lineage-table .module-row{grid-template-columns:80px minmax(108px,1fr) 32px 68px;gap:4px;padding-inline:2px}.lineage-table .lineage-actions{gap:4px}}

.lineage-table .module-row>button[data-action="toggle-lineage"]{position:relative;top:-7px}

/* Explicit lineage date entry and calendar validation. */
.lineage-date{border:0;margin:0;padding:0;min-width:0}.lineage-date legend{padding:0;margin-bottom:4px}.lineage-date>div{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:10px}.lineage-date label{min-width:0}.lineage-date label span{display:block;font-size:14px;margin-bottom:4px}.lineage-date input{width:100%;min-width:0;box-sizing:border-box;font-size:16px}
