/* Grupo Laquila · identity derived from the supplied IMG_6634.PNG.
   Brand gold is decorative; darker bronze is used for text on light surfaces. */
:root{--ink:#27241e;--muted:#736d61;--line:#e5dfd3;--paper:#ffffff;--gold:#b89852;--brand-black:#14120e;--brand-gold:#e4bc59;--brand-bronze:#806329}
body{background:var(--brand-black)}
body>aside{background:var(--brand-black);color:#c5bfb1;padding-top:12px}
.brand{display:block;padding:0;margin:0 4px;border-bottom:1px solid #b8985238;text-align:center;overflow:hidden;flex-shrink:0}
.brand img{display:block;width:100%;height:162px;object-fit:cover;object-position:center 48%;border-radius:8px;mix-blend-mode:lighten}
.workspace{margin-top:24px;color:#b2a58b;letter-spacing:1.7px}.workspace span{color:#c9a65d}
#nav a{color:#c5bfb1}#nav .label{color:#a99d87;letter-spacing:1.4px}.nav-icon{color:#a99d87}
#nav a:hover,.settings-link:hover{background:#242019;color:#f4e2b8}
#nav a.active,.settings-link.active{background:#30291c;border-color:#b8985252;color:#f6d78f;box-shadow:inset 3px 0 #d4b063;font-weight:600}
#nav a.active .nav-icon{color:#e4bc59}
.settings-link{color:#c5bfb1}.settings-link svg circle{fill:#14120e}
.profile{background:#211d16;border-color:#3a3224;color:#ede4d1;box-shadow:none}.profile small{color:#b6a98f}.profile>b{background:#3a3020;color:#e8c579}.avatar{background:#f0e8d7;color:#806329}
.shell{border-color:#3c3322;background:var(--paper);border-radius:16px}.shell>header{background:#ffffff;border-bottom-color:var(--line)}.shell>header b{color:#4b4437}
.eyebrow{color:var(--brand-bronze);letter-spacing:1.8px}.eyebrow span{color:#b7a67f}
h1{font-family:Manrope,'DM Sans',sans-serif;font-weight:650;color:#27241e;letter-spacing:-.8px}.heading p{color:var(--muted)}
.primary{background:linear-gradient(120deg,#e6c779,#c5a052);color:#211a0d;border:1px solid #bd984c;font-weight:650;box-shadow:0 2px 3px #805f1510}.primary:hover{background:#ebcc80;border-color:#9c7935}
.secondary{background:#ffffff;color:#625744;border-color:#ddd4c2}.secondary:hover{background:#f1ebde;border-color:#bca777}
.period{background:#ffffff;border-color:var(--line)}.period input{color:#554a38}.prototype{background:#f4efe3;border-color:#e3d6b8;color:#796232}
.prototype-note,.prototype-note summary{color:#756e60}.small-dot{background:#ad873d}
.panel{background:#ffffff;border-color:var(--line)}th{background:#f2eee5;color:#6e624e;border-color:#e6dfd1}td{border-color:#eee9df}td small{color:#797264}tbody tr:hover,.company-row:hover{background:#f8f3e8}
.section-head h2{font-weight:600;color:#453c2c}.section-head>span{color:#786d5a}.text-link,.edit-goal{color:var(--brand-bronze)}
.overview-summary>div,.summary-line,.dashboard-group,.overview-company{background:#f1ede4;border-color:var(--line)}.overview-summary>div+div{border-color:var(--line)}.summary-label,.summary-caption{color:#726858}.summary-value{color:#3e3220}.summary-state{color:#55472f}
.dashboard-kpis .panel{background:#f1ede4;border-color:var(--line)}.dashboard-kpis .panel:before{background:#ffffff;border-color:#e7decc}.dashboard-kpis small,.dashboard-kpis span{color:#756b5a}.dashboard-kpis .panel:first-child b{color:#806329}.dashboard-kpis .panel:nth-child(3) b{color:#b4232c}.dashboard-kpis .panel:nth-child(4) b{color:#756b5a}
.dashboard-group h3,.dashboard-group h3 svg,.overview-company .company-icon{color:#806329}.dashboard-company{border-color:var(--line)}.dashboard-legend{color:#736d61}
.dashboard-filters input,.dashboard-filters select,.filters input,.filters select{background:#ffffff;border-color:var(--line);color:#625949}.company-list-head{background:#f2eee5}
.settings-tabs a{color:#766b58}.settings-tabs a.selected{color:#806329;border-color:#b89852}.setting-row>span,form label{color:#625744}form input,form select{background:#ffffff;border-color:#dcd2bf;color:#30291e}.monthly-summary,.empty-icon,.icon-button{background:#f3eee3;color:#806329}.empty p,footer{color:#786f60}footer b{color:#b89852}
:focus-visible{outline-color:#a17b2e}input:focus,select:focus{border-color:#a17b2e}#nav a:focus-visible,.settings-link:focus-visible{outline-color:#e4bc59}
.access-screen{min-height:calc(100dvh - 32px);padding:48px;gap:clamp(40px,8vw,140px);grid-template-columns:minmax(240px,430px) minmax(320px,440px);justify-content:center;background:radial-gradient(ellipse at 15% 90%,#3c301a 0,transparent 65%),#100f0c;border:1px solid #b8985230;border-radius:16px}
.access-identity{text-align:center;color:#dfc184}.access-identity>img{display:block;width:100%;height:auto;mix-blend-mode:lighten}.access-signature{margin-top:-20px}.access-signature>span{font-size:10px;letter-spacing:3px;color:#bba577}.access-signature p{font:400 28px/1.4 Georgia,serif;letter-spacing:.1px;margin:22px 0 0;color:#ecdfc4}
.access-card{padding:42px;background:#ffffff;border:1px solid #e5d7b8;border-radius:12px;box-shadow:0 24px 70px #0005}.access-brand{font:650 12px Manrope,sans-serif;letter-spacing:2.4px;color:#79602f;margin-bottom:34px}.access-brand small{color:#756b58;font-size:9px;letter-spacing:1.7px}.access-card h1{font-size:27px;letter-spacing:-.8px}.access-note{color:#756b58}.access-card p{color:#736b5c}.access-card input{min-height:46px}.access-card .primary{min-height:46px}
@media(max-width:900px){.brand img{height:144px}.access-screen{gap:28px;padding:32px}.access-card{padding:30px}.access-signature p{font-size:24px}}
@media(max-width:760px){body{background:var(--paper)}body>aside{background:var(--brand-black);padding-top:12px}.brand img{height:155px}.shell{border-radius:0}.shell>header{background:#ffffff}#menu{color:#806329}.access-screen{min-height:100dvh;border:0;border-radius:0;grid-template-columns:minmax(0,440px);gap:18px;padding:24px 18px 36px}.access-identity>img{width:190px;height:130px;object-fit:cover;object-position:center;margin:auto}.access-signature{display:none}.access-card{padding:28px 24px}.access-brand{margin-bottom:24px}.access-card h1{font-size:25px}.access-card .secondary{font-size:12px}.dashboard-kpis b{font-size:30px}}

/* Transparent logo asset; white content canvas. */
.brand img{object-fit:contain;height:142px;padding:12px 18px;mix-blend-mode:normal;border-radius:0}
.access-identity>img{mix-blend-mode:normal;object-fit:contain;height:auto}
.access-signature{margin-top:26px}
.shell,main,.shell>header,.panel{background:#fff}
@media(max-width:760px){.brand img{height:142px}.access-identity>img{width:160px;height:130px;object-fit:contain}}

/* White operational surfaces and stronger reading contrast. */
:root{--ink:#191919;--muted:#505050;--line:#e2e2e2;--paper:#fff}
.shell,main,.shell>header,#content,.panel,.table-scroll,table,th,td,
.overview-summary>div,.summary-line,.dashboard-group,.overview-company,
.dashboard-kpis .panel,.dashboard-kpis .panel:before,.company-list-head,
.monthly-summary,.goal-detail-summary{background:#fff;border-color:var(--line)}
h1{color:#171717;font-weight:750}
.heading p{color:#454545;font-weight:500}
.summary-line{color:#454545;font-weight:500}.summary-line strong,.summary-line b{color:#171717;font-weight:700}
table{color:#222;font-size:13px}th{color:#343434;font-weight:650;font-size:12px;border-bottom:1px solid #d5d5d5}td{font-weight:500}td b,td strong{color:#181818;font-weight:700}td small{color:#505050;font-weight:500;font-size:11px}
.prototype-note,.prototype-note summary,.summary-label,.summary-caption,.dashboard-kpis span,.dashboard-kpis small,.dashboard-legend{color:#505050}
.filters input,.filters select,.dashboard-filters input,.dashboard-filters select,.period,.period input{background:#fff;color:#343434;border-color:#d9d9d9;font-weight:500}
.filters input::placeholder,.dashboard-filters input::placeholder{color:#606060;opacity:1}
.section-head h2,.dashboard-group h3{color:#252525;font-weight:650}
.section-head>span,.setting-row>span{color:#505050}
tbody tr:hover,tbody tr:hover td,.company-row:hover{background:#f7f7f7}

.goal-gap{font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.goal-daily-table{min-width:850px}

/* Keep the application within the viewport; scroll data inside its container. */
html:has(body.app-ready),body.app-ready{height:100%;overflow:hidden}
body.app-ready .shell{height:calc(100dvh - 32px);min-height:0;display:flex;flex-direction:column;overflow:hidden;min-width:0}
.shell>header{flex-shrink:0}
body.app-ready main{flex:1;min-height:0;min-width:0;width:100%;display:flex;flex-direction:column;overflow:hidden;padding-bottom:16px}
main>.eyebrow,main>.heading,main>.prototype-note,main>footer{flex-shrink:0}
main>footer{margin-top:12px;padding-top:10px}
#content{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain}
#content:has(>#table-area),#content:has(>.panel>.table-scroll){display:flex;flex-direction:column;overflow:hidden}
#content>.summary-line,#content>.filters,#content>.section-head,#content>.settings-tabs{flex-shrink:0}
#table-area,#content>.panel:has(>.table-scroll){flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden}
#table-area>.panel{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.table-scroll{max-width:100%;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#content>.panel>.table-scroll,#table-area>.panel>.table-scroll{flex:1;min-height:0}
.table-scroll th{position:sticky;top:0;z-index:2;background:#fff;box-shadow:0 1px 0 #dedede}
/* Secondary tables and dialogs also keep long data lists in their own viewport. */
dialog .table-scroll{max-height:42dvh;overflow:auto}
#goal-detail-dialog{overflow-x:hidden}
@media(max-width:760px){body.app-ready .shell{height:100dvh;min-height:0}body.app-ready main{padding:16px 12px 10px}main>.heading{gap:10px;margin-bottom:12px}main>.prototype-note{margin-bottom:12px}main>footer{display:none}#content>.summary-line{padding:12px;margin-bottom:12px}#content>.filters{margin-bottom:12px}.table-scroll{scrollbar-gutter:auto}}
@media(max-height:600px){body.app-ready main{padding-top:12px}.heading p,main>.prototype-note,main>footer{display:none}main>.heading{margin-bottom:12px}#content>.summary-line{padding:10px;margin-bottom:10px}}

/* Flush sticky headers: no inset for rows to show through while scrolling. */
.table-scroll{padding:0;isolation:isolate;scroll-padding-top:48px}
.table-scroll table{border-collapse:separate;border-spacing:0}
.table-scroll thead{position:sticky;top:0;z-index:3;background:#fff}
.table-scroll th{position:static;background:#fff;border-radius:0;box-shadow:none;border-bottom:1px solid #dedede}
.table-scroll th:first-child,.table-scroll th:last-child{border-radius:0}

.account-menu{position:relative}.account-menu>summary{cursor:pointer;list-style:none}.account-menu>summary::-webkit-details-marker{display:none}.account-menu>summary:focus-visible{outline:2px solid #e8c579;outline-offset:3px}.account-menu>summary>span{min-width:0}.account-actions{position:absolute;bottom:calc(100% + 8px);left:0;right:0;padding:6px;background:#211d16;border:1px solid #3a3224;border-radius:8px;box-shadow:0 6px 20px #0003}.account-actions #logout{width:100%;text-align:left;color:#ede4d1;background:transparent;border:0}.account-actions #logout:hover{background:#3a3020}

/* Fixed detail popup; only data regions scroll. */
#goal-detail-dialog[open]{display:flex;flex-direction:column;height:90dvh;max-height:90dvh;overflow:hidden;gap:0}
#goal-detail-dialog>.modal-head,#goal-detail-dialog>p,#goal-detail-dialog>.goal-detail-summary,#goal-detail-dialog>h3{flex-shrink:0}
#goal-detail-dialog>.modal-head{margin-bottom:6px}
#goal-detail-dialog>.modal-head+p{margin-bottom:8px}
#goal-detail-dialog>.goal-detail-summary{margin:8px 0 12px;padding:14px}
#goal-detail-dialog>h3{margin:14px 0 10px}
#goal-detail-dialog>.table-scroll{flex:1;min-height:0;max-height:none;border:1px solid var(--line);border-radius:8px}
.goal-detail-info{flex-shrink:0;font-size:12px;color:#505050}
.goal-detail-info>summary{padding:8px 0;font-weight:600}
.goal-detail-info-content{max-height:18dvh;overflow:auto;overscroll-behavior:contain;padding-right:8px}
.goal-detail-info-content p{margin:8px 0}
#goal-detail-dialog>.goal-detail-weeks{flex-shrink:0;margin-top:14px}
.goal-detail-weeks>summary{font-size:13px;font-weight:600;padding:8px 0}
#goal-detail-dialog:has(>.goal-detail-weeks[open])>.table-scroll,#goal-detail-dialog:has(>.goal-detail-weeks[open])>h3{display:none}
#goal-detail-dialog>.goal-detail-weeks[open]{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.goal-detail-weeks[open]>.pace-plan{min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:8px}
@media(max-width:760px){#goal-detail-dialog[open]{height:94dvh;max-height:94dvh;padding:16px}#goal-detail-dialog>.goal-detail-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;font-size:11px;padding:10px}#goal-detail-dialog h2{font-size:20px}.goal-detail-summary small{font-size:10px}}
.goal-detail-weeks[open]::details-content{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.goal-detail-weeks[open]>.pace-plan{flex:1;max-height:calc(90dvh - 340px)}
@media(max-width:760px){.goal-detail-weeks[open]>.pace-plan{max-height:calc(94dvh - 310px)}}

body.session-restoring #access{display:none!important}body.session-restoring>.shell,body.session-restoring>aside{display:block}body.session-restoring>aside{display:flex}body.session-restoring .shell,body.session-restoring>aside{pointer-events:none}body.session-restoring .heading,body.session-restoring .prototype-note{visibility:hidden}

/* Settings are available from the profile menu. */
.account-actions .settings-link{margin:0 0 4px;padding:10px 12px;min-height:40px;font-size:12px}.account-actions .settings-link svg{width:18px;height:18px;flex-shrink:0}.account-actions{z-index:2}
