/* Original Levada identity: blue for clarity, green for development. */
:root{--paper:#f5f7f7;--white:#fff;--ink:#354749;--muted:#708080;--line:#dfe6e6;--green:#426b29}
.brand-logo{display:block;width:100%;height:auto;object-fit:contain}.auth-story>.brand-logo{max-width:440px}.sidebar-brand .brand-logo{width:205px;max-width:100%;margin:4px 0 10px}.auth-mobile-brand .brand-logo{width:230px}.loading-symbol{width:88px;height:auto;margin-bottom:20px}
.auth{background:#f8fafb}.auth-story{background:#eaf2f4;border-color:#dce7ea}.auth-story h1{color:#354749}.auth-story h1 em{color:#2789a3}.auth-story-copy>p{color:#60767b}.auth-story .contour{color:#2bb2da;opacity:.2}.story-foot{border-color:#ccdde0;color:#52727a}.auth-main{background:#f8fafb}.auth-box{background:#fff;border-color:#e0e7e8;box-shadow:0 12px 44px #35474906}.auth-top>span,.secure{background:#f0f6ed;border-color:#e0e9d9;color:#54703e}.auth-box>.auth-assurance{border-color:#e7eded;color:#718181}.auth-foot{color:#748486}
.btn{background:#426b29;border-color:#426b29;color:#fff}.btn:hover{background:#355823;border-color:#355823}.btn.secondary{background:white;color:#41585c;border-color:#d3dfe1}.btn.secondary:hover{background:#eff6f8;border-color:#9bbdc5}.text-btn:hover{color:#1684a5}
.sidebar{background:#fff;color:#354749;border-right:1px solid #dfe7e8}.sidebar-label{color:#849194}.nav button{color:#617579}.nav button:hover{background:#f3f7f8;color:#354749}.nav button.active{background:#eaf5f9;color:#167e9d;box-shadow:inset 3px 0 #2bb2da}.nav .count{background:#d9edf4;color:#25728a}.sidebar-quote{color:#708589}.sidebar-user{border-color:#e2e9ea;color:#354749}.sidebar-user small{color:#7b8a8d}.sidebar .avatar{background:#eef5e8;border-color:#dbe8cf;color:#527331}.sidebar .icon-btn{color:#647b80}.topbar{background:#ffffffeb;backdrop-filter:blur(12px)}
input,textarea,select,.select-trigger,.date-trigger{background:#fff;border-color:#d5e0e2;color:#354749}label{color:#4d6469}input:hover,textarea:hover,.select-trigger:hover,.date-trigger:hover{border-color:#99b7be}input:focus,textarea:focus,.select-trigger:focus-visible,.select-trigger[aria-expanded=true],.date-trigger:focus-visible,.date-trigger[aria-expanded=true]{outline:0;border-color:#299abb;box-shadow:0 0 0 3px #2bb2da16}button:focus-visible,a:focus-visible{outline:2px solid #2595b6;outline-offset:3px}.select-trigger>svg{stroke:#66868d}.select-menu,.select-menu[popover]{background:white;border-color:#d9e5e8;box-shadow:0 16px 40px #233f4a1a,0 2px 6px #233f4a08}.select-option:hover,.select-option.is-focused{background:#edf7fa;color:#216c80}.select-option[aria-selected=true]{background:#edf7fa;color:#216c80}.select-option[aria-selected=true]::after{border-color:#1684a5}
.program-card,.panel,.table-wrap{border-color:#dfe7e8}.program-card:hover{border-color:#a8c9d2;box-shadow:0 8px 24px #28495508}.progress span{background:#7eaa35}.program-card .number{color:#809799}.pillar.hoofd{background:#e6f3f8}.pillar.hart{background:#f6ede8}.pillar.lijf{background:#edf4e1}.tabs{background:#eaf0f1}.tabs button.active{background:#fff;border-color:#d9e4e6}.search{background:#fff;border-color:#d5e1e3}.empty{background:#f0f6f8;border-color:#dce8ec}.empty>.icon{background:#e0eef3}.panel.note{background:#f2f6e9;border-color:#e5ebd8}th{background:#eef4f5}td{border-color:#e6eded}tbody tr:hover{background:#f6fafb}.exercise-row:hover{background:#f0f7f9}.footer{border-color:#dfe8ea;color:#7b8d90}
dialog{background:#fbfcfc;border-color:#dbe6e8;box-shadow:0 26px 80px #233f4a2e}dialog::backdrop{background:#243e485e}.modal-header{border-color:#e1e9eb;background:#fff}.modal-header .icon-btn{background:#edf4f6;color:#5b7b83}.modal-header .icon-btn:hover{background:#deedf1;color:#216c80}.modal-body>p{color:#71858a}.form-actions{border-color:#e1e9eb}
.date-control{position:relative}.date-native{position:absolute!important;opacity:0;pointer-events:none;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;clip-path:inset(50%)}.date-trigger{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:48px;text-align:left;border:1px solid #d5e0e2;border-radius:7px;padding:12px 14px;font:inherit;font-size:13px}.date-trigger svg{width:19px;height:19px;color:#66868d;flex-shrink:0}.date-trigger.placeholder{color:#839296}.date-trigger[aria-invalid=true]{border-color:#b2664d}.date-error{color:#914a35;font-size:11px;margin-top:8px}
.calendar,.calendar[popover]{position:fixed;inset:auto;margin:0;padding:18px;border:1px solid #d9e5e8;border-radius:14px;background:#fff;color:#354749;box-shadow:0 18px 60px #243f4a24,0 3px 8px #243f4a08;z-index:150;overflow:auto;overscroll-behavior:contain}.calendar[hidden]{display:none}.calendar::backdrop{background:transparent}.calendar-heading{padding:2px 3px 16px;border-bottom:1px solid #e8eff1;display:grid;gap:5px}.calendar-caption{font-size:9px;font-weight:600;letter-spacing:1.5px;color:#2683a0}.calendar-hint{font-size:11px;color:#7a8e93}.calendar-navigation{display:flex;justify-content:space-between;align-items:center;margin:15px 0 12px}.calendar-navigation strong{font-size:14px;font-weight:500;text-transform:capitalize}.calendar-navigation button{width:32px;height:32px;border:1px solid #e1e9ec;border-radius:7px;background:#fff;font-size:23px;line-height:1;color:#517880}.calendar-navigation button:hover{background:#edf6f9;border-color:#bedae3}.calendar-week,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.calendar-week{margin-bottom:8px;text-align:center;font-size:10px;color:#86999e}.calendar-days button{position:relative;aspect-ratio:1;border:0;border-radius:7px;background:transparent;color:#425c63;font-size:12px;padding:0;min-width:0}.calendar-days button:hover{background:#eaf5f9;color:#167e9d}.calendar-days button.outside{color:#a9b7bb}.calendar-days button[aria-current=date]:after{content:'';position:absolute;width:3px;height:3px;border-radius:50%;background:#2bb2da;bottom:4px;left:calc(50% - 1.5px)}.calendar-days button.selected{background:#1684a5;color:#fff;font-weight:600;box-shadow:0 3px 7px #1684a522}.calendar-days button.selected:after{background:#fff}.calendar button:disabled{opacity:.3;cursor:not-allowed}.calendar-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e8eff1;margin-top:14px;padding-top:12px}.calendar-footer button{background:transparent;border:0;border-radius:5px;padding:7px 8px;font-size:11px;color:#237b94}.calendar-footer button:hover{background:#edf6f9}.calendar-footer [data-clear]{color:#7e9095}
@media(max-width:780px){.auth-main{background:#f8fafb}.auth-mobile-brand .brand-logo{width:210px}.auth-top{gap:15px;flex-wrap:wrap}.sidebar-brand{padding-right:15px}.sidebar-close{right:-9px;top:-15px}.date-trigger{font-size:16px}.calendar-days button{min-height:34px}}

/* Layout after removing redundant interface copy. */
.auth-story { justify-content: center; align-items: center; }
.auth-story > .brand-logo { position: relative; z-index: 1; }
.auth-box h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1.5rem; }
.auth-box h1:has(+ p) { margin-bottom: .5rem; }
.pillar-top { justify-content: flex-end; }
.footer { justify-content: flex-end; }

.dashboard { display: grid; gap: clamp(1.5rem, 3vw, 2rem); }
.dashboard-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; }
.dashboard-focus {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 16rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(118deg, #193b36 20%, #22554e);
}
.dashboard-focus::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  background: repeating-radial-gradient(ellipse at 100% 100%, transparent 0 17px, #a3d1b321 18px 19px);
  mask-image: linear-gradient(105deg, transparent 38%, #000 94%);
}
.dashboard-kicker { color: #d4e8d1; font-size: .75rem; font-weight: 600; margin: 0 0 .7rem; }
.dashboard-focus h2 { color: inherit; font-size: clamp(1.85rem, 3.5vw, 2.65rem); line-height: 1.08; margin: 0; max-width: 23ch; overflow-wrap: anywhere; }
.dashboard-focus-detail { color: #e0ebe6; font-size: .85rem; margin: .65rem 0 0; overflow-wrap: anywhere; }
.dashboard-focus .btn { width: auto; color: #193b36; background: #e9f3d8; border-color: #e9f3d8; margin-top: 1.25rem; }
.dashboard-focus .btn:hover { background: #fff; border-color: #fff; }
.dashboard-metrics { min-width: 0; padding: 1.4rem 1.5rem; border: 1px solid #dfe7e8; background: #fff; border-radius: 12px; }
.dashboard-metrics h2 { margin: 0 0 .55rem; font-size: 1.3rem; }
.dashboard-metrics dl { margin: 0; }
.dashboard-metrics dl > div { display: flex; justify-content: space-between; align-items: center; gap: .55rem; min-height: 3.15rem; border-bottom: 1px solid #e5ece8; }
.dashboard-metrics dl > div:last-child { border-bottom: 0; }
.dashboard-metrics dt { display: flex; align-items: center; gap: .65rem; font-size: .82rem; }
.dashboard-metric-icon, .dashboard-pillar-icon { display: inline-grid; place-items: center; flex: none; border-radius: 8px; color: #31574f; }
.dashboard-metric-icon { width: 1.9rem; height: 1.9rem; background: #edf4ee; }
.dashboard-metric-icon .icon { width: .9rem; height: .9rem; }
.dashboard-metrics dd { margin: 0; font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.dashboard > section > h2 { margin: 0 0 .8rem; }
.dashboard-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.dashboard-pillar { display: flex; align-items: center; gap: .7rem; padding: .95rem 1rem; min-height: 4.8rem; border: 1px solid #dfe7e8; border-radius: 10px; background: #fff; text-align: left; }
.dashboard-pillar:hover { border-color: #8ea99f; background: #f8faf9; }
.dashboard-pillar-icon { width: 2.25rem; height: 2.25rem; }
.dashboard-pillar.hoofd .dashboard-pillar-icon { background: #e6f3f8; }
.dashboard-pillar.hart .dashboard-pillar-icon { background: #f6ede8; }
.dashboard-pillar.lijf .dashboard-pillar-icon { background: #edf4e1; }
.dashboard-pillar strong, .dashboard-pillar small { display: block; }
.dashboard-pillar strong { font-size: .94rem; }
.dashboard-pillar small { margin-top: .13rem; font-size: .73rem; color: var(--muted); }
.dashboard-pillar > .icon { margin-left: auto; width: 1rem; color: #456257; }
.dashboard-programs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-programs .program-card { padding: 1.2rem; min-height: 0; }
.dashboard-programs .program-card h3 { margin: .7rem 0 .9rem; overflow-wrap: anywhere; }
.dashboard-programs .card-bottom > .row { gap: .5rem; flex-wrap: wrap; }
.library-card-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.library-card-actions .text-btn { padding-block: .4rem; }
.template-detail { display: grid; gap: 1.25rem; }
.template-meta { display: flex; align-items: center; gap: .65rem; color: var(--muted); font-size: .8rem; }
.template-instructions { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; font-size: .94rem; }
.template-detail #template-form { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.template-actions { display: flex; justify-content: flex-end; gap: .65rem; flex-wrap: wrap; }
.template-detail > .template-actions { padding-top: 1rem; border-top: 1px solid var(--line); }
#library-form .form-actions { margin-top: 1.2rem; padding-top: 1rem; }
@media (max-width: 1140px) {
  .dashboard-programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .dashboard-top { grid-template-columns: 1fr; }
  .dashboard-focus { min-height: 12.5rem; }
}
@media (max-width: 560px) {
  .dashboard-pillars { gap: .45rem; }
  .dashboard-pillar { flex-direction: column; align-items: flex-start; gap: .45rem; padding: .65rem; }
  .dashboard-pillar > .icon { display: none; }
  .dashboard-programs { grid-template-columns: 1fr; }
  .template-actions .btn { flex: 1 1 auto; width: auto; margin-top: 0; }
}

.loading .spinner { border-top-color: #49631d; }
.sidebar-brand::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 1rem;
  height: 1px;
  background: #dce5d5;
}

#confirmation { width: min(27rem, calc(100% - 2rem)); }
#confirmation .modal-body > p { margin: 0; color: var(--ink); }
#confirmation .form-actions { margin-top: 1.35rem; padding-top: 1rem; }
#confirmation .btn.danger:hover { background: #743b33; border-color: #743b33; }
.image-upload-control{display:flex;align-items:center;gap:14px;width:100%;padding:16px 18px;border:1px dashed var(--line);border-radius:14px;background:var(--white);color:var(--ink);cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.image-upload-control:hover,.image-upload-control:focus-within{border-color:#789d3e;background:color-mix(in srgb,#789d3e 8%,var(--white));transform:translateY(-1px)}
.image-upload-control>span:nth-child(2){display:grid;gap:4px}.image-upload-control strong{font-size:.94rem;font-weight:650}.image-upload-control small{font-size:.78rem;color:var(--muted)}
.image-upload-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--green);color:#fff;font-size:1.35rem;line-height:1}
.image-upload-control input[type=file]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
[data-image-preview]:not(:empty){margin-top:12px}
.exercise-image-current{position:relative;width:max-content;max-width:100%}.exercise-image-current .exercise-image-preview{margin:0 0 16px}
.image-remove-button{position:absolute;top:10px;right:10px;width:38px;height:38px;margin:0;display:grid;place-items:center;border-radius:12px;background:#a73932;color:white;box-shadow:0 2px 10px #0003;cursor:pointer;transition:background .15s ease,transform .15s ease}.image-remove-button:hover{background:#852a25;transform:translateY(-1px)}.image-remove-button input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.image-remove-button:focus-within{outline:2px solid var(--white);outline-offset:2px}.image-remove-button input:checked+span{opacity:.55}
.loading{background:var(--paper);color:var(--ink)}.loading .spinner{border-color:var(--line);border-top-color:var(--green)}.loading-symbol{filter:none}
[data-workspace-theme="dark"] .image-upload-control:hover,[data-workspace-theme="dark"] .image-upload-control:focus-within{border-color:#c5db91;background:#242a1e}
[data-workspace-theme="dark"] .image-upload-icon{background:#c5db91;color:#191e13}
[data-workspace-theme="dark"] .loading .spinner{border-color:#383838;border-top-color:#c5db91}
[data-workspace-theme="dark"] .loading-symbol{filter:brightness(1.35)}
.library-image{height:150px;margin:0 0 18px;overflow:hidden;border-radius:12px}.library-image img{width:100%;height:100%;object-fit:cover}
.template-thumb{width:48px;height:48px;object-fit:cover;border-radius:8px}
