:root{--offwhite:#f7f4ee;--brown:#382d26;--gold:#b49a65;--sand:#d9cbb7;--white:#fffdf9;--muted:#7a6b5f;--error:#9b3b2f;--ok:#4d6b45;--radius:14px;--nav-h:64px;color:var(--brown);background:var(--offwhite);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-family:Montserrat,system-ui,sans-serif}*{box-sizing:border-box}body{background:var(--offwhite);min-height:100dvh;margin:0}a{color:inherit}h1,h2{margin:0;font-family:Cormorant Garamond,Georgia,serif;font-weight:600}h1{font-size:2rem;line-height:1.15}h2{margin-bottom:4px;font-size:1.35rem}p{margin:0;line-height:1.5}.muted{color:var(--muted)}.small{font-size:.85rem}.logo{height:auto;display:block}.logo-sm{width:104px}.logo-md{width:200px}.logo-lg{width:260px;max-width:75vw}.login,.center{flex-direction:column;justify-content:center;align-items:center;gap:32px;min-height:100dvh;padding:24px 16px;display:flex}.card{background:var(--white);border:1px solid var(--sand);border-radius:var(--radius);flex-direction:column;gap:14px;width:100%;padding:20px;display:flex}.login .card{max-width:420px}label{flex-direction:column;flex:1;gap:6px;min-width:0;font-size:.92rem;font-weight:500;display:flex}input,select,textarea{font:inherit;border:1px solid var(--sand);background:var(--offwhite);color:var(--brown);border-radius:10px;width:100%;min-height:50px;padding:13px 14px;font-size:1rem}textarea{resize:vertical;min-height:90px}input:focus,select:focus,textarea:focus{outline:2px solid var(--gold);border-color:var(--gold)}input.readonly{color:var(--muted);background:0 0;border-style:dashed}.row{gap:12px;display:flex}@media (width<=420px){.row{flex-direction:column}}.btn{font:inherit;cursor:pointer;border:0;border-radius:12px;justify-content:center;align-items:center;min-height:52px;padding:0 20px;font-size:1rem;font-weight:600;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.6;cursor:default}.btn-primary{background:var(--brown);color:var(--offwhite)}.btn-primary:active{background:#241d18}.btn-ghost{background:var(--white);border:1px solid var(--sand);color:var(--brown)}.btn-sm{min-height:42px;padding:0 14px;font-size:.9rem}.btn-link{color:var(--gold);font:inherit;cursor:pointer;background:0 0;border:0;min-height:40px;font-weight:600}.alert{border-radius:10px;padding:12px 14px;font-size:.95rem}.alert-error{color:var(--error);background:#f6e4df}.alert-ok{color:var(--ok);background:#e7efe2}.shell{min-height:100dvh;padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom))}.topbar{z-index:5;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-bottom:1px solid var(--sand);background:#f7f4eef2;justify-content:space-between;align-items:center;gap:16px;padding:10px 16px;display:flex;position:sticky;top:0}.content{flex-direction:column;gap:14px;max-width:760px;margin:0 auto;padding:20px 16px 32px;display:flex}.bottomnav{z-index:5;background:var(--white);border-top:1px solid var(--sand);padding-bottom:env(safe-area-inset-bottom);display:flex;position:fixed;bottom:0;left:0;right:0}.bottomnav .navitem{height:var(--nav-h);color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.75rem;font-weight:500;text-decoration:none;display:flex}.navitem.active{color:var(--brown)}.bottomnav .navitem.active svg{color:var(--gold)}.sidenav{display:none}@media (width>=860px){.shell{padding-bottom:0}.bottomnav{display:none}.sidenav{flex:1;gap:4px;display:flex}.sidenav .navitem{color:var(--muted);border-radius:10px;align-items:center;gap:8px;padding:10px 14px;font-weight:500;text-decoration:none;display:flex}.sidenav .navitem.active{background:var(--white);border:1px solid var(--sand)}}.page-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.page-head>div{flex-direction:column;align-items:flex-start;gap:6px;display:flex}.back{color:var(--gold);font-weight:600;text-decoration:none}.actions{gap:10px;display:flex}.actions .btn{flex:1}.search{background:var(--white);min-height:52px}.chips{gap:8px;padding-bottom:2px;display:flex;overflow-x:auto}.chip{font:inherit;border:1px solid var(--sand);background:var(--white);color:var(--brown);cursor:pointer;white-space:nowrap;border-radius:999px;padding:9px 16px;font-size:.9rem;font-weight:500}.chip.active{background:var(--brown);border-color:var(--brown);color:var(--offwhite)}.list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.list-item{justify-content:space-between;align-items:center;gap:12px;padding:6px 0;text-decoration:none;display:flex}.list-item>span:first-child,.list-item>div:first-child{flex-direction:column;gap:2px;min-width:0;display:flex}.card-item{background:var(--white);border:1px solid var(--sand);border-radius:var(--radius);min-height:64px;padding:14px 16px}.card-item:active{background:#f1ece3}.badge{white-space:nowrap;border-radius:999px;padding:4px 10px;font-size:.75rem;font-weight:600;display:inline-block}.badge-ativo{color:var(--ok);background:#e7efe2}.badge-experimental{color:#8a6d2f;background:#f3ead8}.badge-inativo{color:var(--muted);background:#ece7e1}.stats{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.stat{background:var(--white);border:1px solid var(--sand);border-radius:var(--radius);text-align:center;flex-direction:column;align-items:center;gap:2px;padding:14px 10px;display:flex}.stat strong{font-family:Cormorant Garamond,Georgia,serif;font-size:2rem;line-height:1}.stat span{color:var(--muted);font-size:.78rem}.dl{flex-direction:column;margin:0;display:flex}.dl-row{border-top:1px solid #eee6da;justify-content:space-between;gap:16px;padding:10px 0;display:flex}.dl-row:first-child{border-top:0}.dl dt{color:var(--muted);font-size:.9rem}.dl dd{text-align:right;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.team-item{flex-flow:wrap;justify-content:space-between}.team-item>div:first-child{flex-direction:column;align-items:flex-start;gap:4px;display:flex}.team-actions{flex-wrap:wrap;gap:6px;display:flex}.toast{left:16px;right:16px;bottom:calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));z-index:20;border-radius:12px;max-width:480px;margin:0 auto;padding:14px 16px;font-weight:500;position:fixed;box-shadow:0 6px 24px #382d262e}.toast-ok{background:var(--brown);color:var(--offwhite)}.toast-error{background:var(--error);color:#fff}@media (width>=860px){.toast{bottom:24px}}.stack{flex-direction:column;gap:14px;display:flex}.sec-n{background:var(--sand);width:28px;height:28px;color:var(--brown);vertical-align:3px;border-radius:50%;justify-content:center;align-items:center;margin-right:6px;font-family:Montserrat,sans-serif;font-size:.85rem;display:inline-flex}.field{flex-direction:column;gap:8px;display:flex}.field-label{font-size:.92rem;font-weight:500}.chips.wrap{flex-wrap:wrap;overflow:visible}.yesno{flex-shrink:0;gap:6px;display:flex}.yesno .chip{min-width:58px;min-height:40px}.anam-item,.test-item{border-top:1px solid #eee6da;flex-direction:column;gap:8px;padding-top:12px;display:flex}.anam-head{justify-content:space-between;align-items:center;gap:12px;font-size:.92rem;font-weight:500;display:flex}.row.tight{flex-direction:row;gap:8px}.row.tight .unit{max-width:130px}.dl.compact .dl-row{padding:6px 0}.sticky-actions{bottom:calc(var(--nav-h) + 8px + env(safe-area-inset-bottom));z-index:4;position:sticky}.sticky-actions .btn{width:100%;box-shadow:0 6px 20px #382d2633}@media (width>=860px){.sticky-actions{bottom:16px}}.check{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400}.check input{width:22px;height:22px;min-height:22px;accent-color:var(--brown);flex-shrink:0;margin-top:2px}.danger{border-color:#e6c9c2}.btn-danger{background:var(--error);color:#fff}.table-wrap{margin:0 -4px;overflow-x:auto}.cmp{border-collapse:collapse;width:100%;font-size:.88rem}.cmp th,.cmp td{text-align:left;vertical-align:top;border-top:1px solid #eee6da;padding:8px 6px}.cmp thead th{color:var(--muted);white-space:nowrap;border-top:0;font-weight:600}.cmp tbody th{min-width:120px;font-weight:500}.cmp td{min-width:90px}.delta{margin-top:2px;font-size:.75rem;font-weight:600;display:block}.delta-up,.delta-down{color:#8a6d2f}.delta-eq{color:var(--muted);font-weight:400}.delta-diff{color:#8a6d2f}.chart-box{border-top:1px solid #eee6da;flex-direction:column;gap:4px;padding-top:10px;display:flex}.chart{width:100%;max-width:520px;height:auto}.chart-grid{stroke:#eee6da;stroke-width:1px}.chart-axis{fill:var(--muted);font-family:Montserrat,sans-serif;font-size:10px}.chart-line{fill:none;stroke:var(--gold);stroke-width:2.5px;stroke-linejoin:round}.chart-dot{fill:var(--brown)}.tabs{margin-bottom:2px}.ex-summary{cursor:pointer;flex-direction:column;gap:2px;list-style:none;display:flex}.ex-summary::-webkit-details-marker{display:none}details[open]>.ex-summary{margin-bottom:10px}.pre{white-space:pre-wrap}.plain{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.plan-item{border-top:1px solid var(--sand);flex-direction:column;gap:10px;padding-top:14px;display:flex}.plan-item-head{align-items:center;gap:6px;display:flex}.plan-item-head input{flex:1;min-width:0}.plan-item-head .btn-sm{min-width:40px;padding-left:8px;padding-right:8px}.grid-4{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}@media (width>=620px){.grid-4{grid-template-columns:repeat(4,1fr)}}.pick{text-align:left;justify-content:flex-start}.att-item{flex-direction:row;justify-content:space-between;align-items:center;padding:12px 14px}.att-item>div:first-child{flex-direction:column;min-width:0;display:flex}.att-buttons{flex-shrink:0;gap:6px;display:flex}.att{font:inherit;border:1px solid var(--sand);background:var(--white);width:46px;height:46px;color:var(--muted);cursor:pointer;border-radius:12px;font-weight:600}.att.on.att-presente{background:var(--ok);border-color:var(--ok);color:#fff}.att.on.att-falta{background:var(--error);border-color:var(--error);color:#fff}.att.on.att-justificada{background:var(--gold);border-color:var(--gold);color:#fff}.att.mini{border-radius:7px;place-items:center;width:26px;height:26px;font-size:.8rem;display:inline-grid}.month-nav{justify-content:space-between;align-items:center;display:flex}.timeline{border-left:2px solid var(--sand);flex-direction:column;gap:14px;margin:0;padding:0 0 0 14px;list-style:none;display:flex}.tl{flex-direction:column;gap:2px;display:flex;position:relative}.tl:before{content:"";background:var(--sand);border-radius:50%;width:12px;height:12px;position:absolute;top:4px;left:-21px}.tl-avaliacao:before{background:var(--gold)}.tl-treino:before{background:var(--brown)}.tl-nota:before{background:var(--muted)}.date-pick{text-align:center;cursor:pointer;flex:1;position:relative}.date-pick input{opacity:0;cursor:pointer;position:absolute;inset:0}.month-nav.card{flex-direction:row;padding:10px 12px}.entry{gap:10px}.entry.concluido{border-color:var(--ok);background:#f4f7f1}.entry.ausente{opacity:.75}.entry-head{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.entry-head>div{flex-direction:column;gap:2px;min-width:0;display:flex}.entry-head a{color:inherit;text-decoration:none}.entry-actions{flex-wrap:wrap;gap:6px;display:flex}.exlist{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.excheck{text-align:left;cursor:pointer;border-bottom:1px solid #eee6da;flex-direction:row;align-items:center;gap:12px;padding:11px 4px;font-weight:400;display:flex}.excheck input{width:26px;height:26px;min-height:26px;accent-color:var(--ok);flex-shrink:0}.excheck.on span{color:var(--muted);text-decoration:line-through}.next{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.row.tight.wrap{flex-wrap:wrap}.row.tight.wrap input{flex:1;min-width:130px}.slot{border-top:1px solid var(--sand);flex-direction:column;gap:8px;padding-top:12px;display:flex}.badge-falta{color:var(--error);background:#f3e1dd}.badge-justificada{color:#7a6330;background:#f1e9d8}
