/* The WordPress theme owns the outer canvas. Components never pin themselves to the viewport. */
.tp-app.tp-embedded{
  --tp-ink:#223f37;--tp-muted:#5e7065;
  box-sizing:border-box;isolation:isolate;
  width:100%;min-width:0;
  max-width:var(--wp--style--global--content-size,820px);
  margin-block:0!important;margin-inline:auto!important;
  background:transparent!important;font:15px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
.tp-app.tp-embedded *,.tp-app.tp-embedded *::before,.tp-app.tp-embedded *::after{box-sizing:border-box}
.tp-app.tp-embedded [hidden]{display:none!important}
.tp-app.tp-embedded img,.tp-app.tp-embedded svg{max-width:100%;height:auto}
.tp-app.tp-embedded button,.tp-app.tp-embedded input,.tp-app.tp-embedded select,.tp-app.tp-embedded textarea{font-family:inherit}
.tp-app.tp-embedded button:focus-visible,.tp-app.tp-embedded a:focus-visible,.tp-app.tp-embedded input:focus-visible,.tp-app.tp-embedded select:focus-visible,.tp-app.tp-embedded textarea:focus-visible{outline:3px solid #7cb9a6;outline-offset:3px}
.tp-app.tp-embedded .tp-auth-card{width:100%;max-width:640px;margin-inline:auto;padding:30px}
.tp-app.tp-embedded .tp-auth-card h2{font-size:28px;line-height:1.3;margin-bottom:20px}
.tp-app.tp-embedded .tp-contact-card{width:100%;max-width:800px;margin-inline:auto}
.tp-app.tp-embedded .tp-form{min-width:0}
.tp-app.tp-embedded .tp-form label{min-width:0;font-size:14px;color:#40584a}
.tp-app.tp-embedded .tp-form input:not([type=checkbox]),.tp-app.tp-embedded .tp-form select,.tp-app.tp-embedded .tp-form textarea{min-width:0;max-width:100%;font-size:15px}
.tp-app.tp-embedded .tp-form-note,.tp-app.tp-embedded .tp-auth-bottom{font-size:13px;line-height:1.7}

.tp-app.tp-embedded.tp-embedded-panel{
  width:100%;max-width:var(--wp--style--global--wide-size,1240px)!important;
  margin-inline:auto!important;
  border:1px solid #dfe7df;border-radius:18px;background:#f6f8f3!important;
  container: tunima-panel / inline-size;
}
.tp-embedded .tp-dashboard{
  display:grid;grid-template-columns:220px minmax(0,1fr);align-items:start;
  position:relative;min-width:0;min-height:640px;
  background:#f6f8f3;border-radius:inherit;
}
.tp-embedded .tp-sidebar{
  position:sticky;inset:auto;top:calc(var(--wp-admin--admin-bar--height,0px) + 16px);
  width:100%;height:auto;min-height:0;max-height:calc(100dvh - var(--wp-admin--admin-bar--height,0px) - 32px);
  margin:0;padding:24px 16px;overflow-y:auto;
  border-right:1px solid #dfe7df;border-radius:18px 0 0 18px;
  background:#fffefa;transform:none;box-shadow:none;z-index:2;
}
.tp-embedded .tp-sidebar .tp-brand{display:none}
.tp-embedded .tp-sidebar-label{margin:0 10px 20px;font-size:10px;letter-spacing:.11em;line-height:1.5;color:#64785f}
.tp-embedded .tp-sidebar nav{gap:5px}
.tp-embedded .tp-sidebar nav button{width:100%;min-height:44px;padding:10px 12px;font-size:14px;line-height:1.4;color:#47604d;gap:12px}
.tp-embedded .tp-sidebar nav button.active{background:#e5f1e8;color:#245d3c}
.tp-embedded .tp-sidebar-bottom{margin-top:24px}
.tp-embedded .tp-sidebar-bottom>a{font-size:12px;color:#526b59}
.tp-embedded .tp-owner-note{font-size:14px}
.tp-embedded .tp-workspace{width:100%;max-width:100%;min-width:0;margin:0;border-radius:0 18px 18px 0}
.tp-embedded .tp-workspace-header{
  position:relative;inset:auto;z-index:1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  width:100%;height:auto;min-height:76px;gap:12px;padding:16px 24px;
  border-radius:0 18px 0 0;border-bottom:1px solid #dfe7df;background:#fafbf7;
}
.tp-embedded .tp-context-selectors{display:flex;align-items:center;flex:1 1 280px;min-width:0;max-width:100%;gap:10px}
.tp-embedded .tp-context-selectors select{width:auto;min-width:0;max-width:min(22ch,44%);padding:9px 4px;font-size:14px;color:#405c46}
.tp-embedded .tp-selector-divider{flex:0 0 auto;font-size:20px}
.tp-embedded .tp-account-controls{display:flex;align-items:center;gap:12px;flex:0 0 auto}
.tp-embedded .tp-sync-state{display:inline-flex;font-size:12px;color:#526e4c}
.tp-embedded .tp-user-avatar{width:34px;height:34px;flex-shrink:0;font-size:13px}
.tp-embedded .tp-status{margin:18px 24px 0;font-size:14px;overflow-wrap:break-word}
.tp-embedded .tp-content{min-width:0;width:100%;padding:28px 24px 36px;scroll-margin-top:calc(var(--wp-admin--admin-bar--height,0px) + 16px)}
.tp-embedded .tp-content>*,.tp-embedded .tp-today-layout>*,.tp-embedded .tp-family-layout>*{min-width:0;max-width:100%}
.tp-embedded .tp-page-heading{align-items:flex-start;gap:20px;margin-bottom:24px;flex-wrap:wrap}
.tp-embedded .tp-page-heading>div{min-width:0;flex:1 1 260px}
.tp-embedded .tp-page-heading h1,.tp-embedded .tp-page-heading .tp-view-title{font-size:clamp(24px,2.5vw,32px);line-height:1.25;margin:7px 0 10px;letter-spacing:-.025em;color:#223f37}
.tp-embedded .tp-page-heading p{font-size:14px;line-height:1.65;color:#5e7065}
.tp-embedded .tp-page-heading .tp-label{font-size:10px;line-height:1.5;color:#62765d}
.tp-embedded .tp-page-heading>.tp-button{margin:0;min-height:42px;font-size:13px;white-space:normal;flex:0 0 auto}
.tp-embedded .tp-today-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.tp-embedded .tp-today-layout>aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-content:start}
.tp-embedded .tp-small-night{margin-top:0}
.tp-embedded .tp-small-night h3{font-size:24px;line-height:1.3;color:#f3f6ef}
.tp-embedded .tp-small-night p{font-size:14px;line-height:1.7;color:#d1dece}
.tp-embedded .tp-small-night>span{font-size:10px}
.tp-embedded .tp-soft-note p{font-size:13px;line-height:1.7;color:#65765d}
.tp-embedded .tp-soft-note{grid-column:1/-1}
.tp-embedded .tp-baby-banner{min-height:0;padding:26px;gap:20px;border-radius:16px}
.tp-embedded .tp-baby-banner>div{min-width:0}
.tp-embedded .tp-baby-banner h2{font-size:clamp(28px,3vw,40px);line-height:1.2;overflow-wrap:break-word;margin:14px 0 10px}
.tp-embedded .tp-baby-banner p{font-size:14px;color:#4e714d}
.tp-embedded .tp-baby-banner small{font-size:12px;color:#5f7657;margin-top:16px}
.tp-embedded .tp-baby-banner .tp-label{font-size:10px;line-height:1.5}
.tp-embedded .tp-banner-heart{font-size:80px;line-height:1;flex:0 0 auto;margin:0}
.tp-embedded .tp-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}
.tp-embedded .tp-metrics article{min-width:0;padding:18px 14px}
.tp-embedded .tp-metrics p{font-size:13px;line-height:1.4;color:#4e6653}
.tp-embedded .tp-metrics strong{font-size:30px;line-height:1.2;color:#3d613f}
.tp-embedded .tp-metrics small{font-size:12px;color:#62755e}
.tp-embedded .tp-subheading{gap:12px;flex-wrap:wrap}
.tp-embedded .tp-subheading h2{font-size:20px}
.tp-embedded .tp-record-row{min-width:0;padding:18px 14px;gap:12px}
.tp-embedded .tp-record-row h3{font-size:15px;color:#304f3b}
.tp-embedded .tp-record-row p{font-size:14px;color:#53685b;overflow-wrap:break-word}
.tp-embedded .tp-record-row small{font-size:12px;color:#687a6c}
.tp-embedded .tp-record-actions{flex:0 0 auto}
.tp-embedded .tp-record-actions .tp-icon-button{width:30px;height:36px}
.tp-embedded .tp-quick-card{min-width:0;padding:22px}
.tp-embedded .tp-quick-card h2{font-size:24px;line-height:1.3}
.tp-embedded .tp-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tp-embedded .tp-quick-actions button{min-width:0;min-height:78px;font-size:13px;line-height:1.4;color:#4a6942}
.tp-embedded .tp-card{padding:24px;min-width:0}
.tp-embedded .tp-card h2{font-size:22px;line-height:1.3;color:#405e42}
.tp-embedded .tp-card>p,.tp-embedded .tp-onboarding-card p{font-size:14px;line-height:1.75;color:#5b6f5f}
.tp-embedded .tp-card details,.tp-embedded details.tp-card{overflow-wrap:break-word}
.tp-embedded .tp-empty{padding:36px 22px}
.tp-embedded .tp-empty h2{font-size:23px;line-height:1.3}
.tp-embedded .tp-empty p{font-size:14px;color:#63765f}
.tp-embedded .tp-onboarding-card{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;padding:28px;width:100%}
.tp-embedded .tp-onboarding-card h2{font-size:28px}
.tp-embedded .tp-baby-grid,.tp-embedded .tp-vaccine-grid,.tp-embedded .tp-settings-grid,.tp-embedded .tp-family-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.tp-embedded .tp-profile-card{min-width:0;padding:24px}
.tp-embedded .tp-profile-card h2{font-size:28px;overflow-wrap:break-word}
.tp-embedded .tp-profile-data{flex-wrap:wrap}
.tp-embedded .tp-profile-data small{font-size:10px}
.tp-embedded .tp-profile-card>p{font-size:13px}
.tp-embedded .tp-vaccine-card{min-width:0;padding:22px}
.tp-embedded .tp-vaccine-card>div{flex-wrap:wrap;gap:10px}
.tp-embedded .tp-vaccine-card h3{font-size:20px;line-height:1.3;overflow-wrap:break-word}
.tp-embedded .tp-vaccine-card p{font-size:14px;color:#59724e}
.tp-embedded .tp-vaccine-card small{font-size:12px;color:#64795a}
.tp-embedded .tp-vaccine-card .tp-text-button{font-size:13px}
.tp-embedded .tp-pill{font-size:11px;line-height:1.4;white-space:normal}
.tp-embedded .tp-source{font-size:12px!important;color:#63765e!important}
.tp-embedded .tp-member{min-width:0;flex-wrap:wrap}
.tp-embedded .tp-member>div{min-width:0;flex:1 1 150px}
.tp-embedded .tp-member strong{font-size:15px;overflow-wrap:break-word;color:#3b5c43}
.tp-embedded .tp-member p{font-size:14px;overflow-wrap:anywhere;color:#61735f}
.tp-embedded .tp-member small{font-size:12px;color:#6b7e63}
.tp-embedded .tp-member .tp-text-button{max-width:100%;font-size:12px}
.tp-embedded .tp-invitation{flex-wrap:wrap;min-width:0}
.tp-embedded .tp-invitation p{font-size:14px}
.tp-embedded .tp-report-dates{grid-template-columns:repeat(2,minmax(0,1fr))}
.tp-embedded .tp-report-checks{gap:18px}
.tp-embedded .tp-report-controls>small,.tp-embedded .tp-settings-grid .tp-card>small{font-size:12px;color:#66795f}
.tp-embedded .tp-upload-form{flex-wrap:wrap;gap:18px}
.tp-embedded .tp-upload-form label{min-width:0;flex:1 1 240px;font-size:14px}
.tp-embedded .tp-upload-form input{width:100%;min-width:0;font-size:14px}
.tp-embedded .tp-document-row{min-width:0;flex-wrap:wrap}
.tp-embedded .tp-document-row>div{min-width:0;flex:1 1 180px}
.tp-embedded .tp-document-row strong{font-size:14px;overflow-wrap:anywhere}
.tp-embedded .tp-document-row small{font-size:12px}
.tp-embedded .tp-origin{font-size:13px;overflow-wrap:anywhere}
.tp-embedded .tp-kind-toolbar,.tp-embedded .tp-filters{gap:9px}
.tp-embedded .tp-filters button{font-size:12px;white-space:normal;line-height:1.4}
.tp-embedded .tp-button{max-width:100%;overflow-wrap:break-word;line-height:1.45;font-size:14px}
.tp-embedded .tp-small{font-size:13px}
.tp-embedded .tp-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:700px;max-height:calc(100dvh - 32px);margin:auto;padding:26px;border-radius:18px}
.tp-embedded .tp-dialog-header{gap:16px}
.tp-embedded .tp-dialog-header h2{font-size:26px;line-height:1.25}
.tp-embedded .tp-editor-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.tp-embedded .tp-dialog-actions{flex-wrap:wrap;gap:10px}
.tp-embedded .tp-dialog-actions .tp-button{font-size:14px}
.tp-embedded .tp-conflict-comparison{grid-template-columns:repeat(2,minmax(0,1fr))}
.tp-embedded .tp-conflict-comparison pre{font-size:12px}
.tp-embedded .tp-sidebar-toggle,.tp-embedded .tp-panel-menu-close{display:none}
.tp-embedded .tp-panel-backdrop{display:none}

@container tunima-panel (min-width:1100px){
  .tp-embedded .tp-today-layout{grid-template-columns:minmax(0,1fr) 230px}
  .tp-embedded .tp-today-layout>aside{display:block}
  .tp-embedded .tp-small-night{margin-top:18px}
  .tp-embedded .tp-soft-note{margin-top:16px}
}
@container tunima-panel (max-width:900px){
  .tp-embedded .tp-dashboard{grid-template-columns:minmax(0,1fr);min-height:0}
  .tp-embedded .tp-workspace,.tp-embedded .tp-workspace-header{border-radius:18px 18px 0 0}
  .tp-embedded .tp-workspace-header{flex-wrap:nowrap}
  .tp-embedded .tp-sidebar-toggle{display:inline-grid;place-items:center;flex:0 0 36px}
  .tp-embedded .tp-context-selectors{flex:1 1 auto}
  .tp-embedded .tp-sidebar{position:absolute;inset:12px auto auto 12px;top:12px;width:min(280px,calc(100% - 24px));max-height:calc(100dvh - 80px);min-height:0;transform:none;border:1px solid #dfe7df;border-radius:14px;z-index:6;box-shadow:0 16px 40px #223f3733;display:none}
  .tp-embedded .tp-sidebar.open{display:flex}
  .tp-embedded .tp-panel-menu-close{display:block;align-self:flex-end;min-height:36px;padding:6px 10px;margin-bottom:14px;border:1px solid #cadbce;border-radius:8px;background:#f6faf4;color:#345c3e;font:inherit}
  .tp-embedded .tp-panel-backdrop:not([hidden]){display:block;position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:18px;background:#17392d55;z-index:5;cursor:pointer}
  .tp-embedded .tp-content{padding:24px 20px 30px}
  .tp-embedded .tp-family-layout,.tp-embedded .tp-settings-grid,.tp-embedded .tp-onboarding-card{grid-template-columns:minmax(0,1fr)}
}
@container tunima-panel (max-width:600px){
  .tp-embedded .tp-content{padding:20px 16px 26px}
  .tp-embedded .tp-workspace-header{padding:12px;gap:6px}
  .tp-embedded .tp-context-selectors{gap:4px}
  .tp-embedded .tp-context-selectors select{font-size:13px;max-width:44%;padding:8px 2px}
  .tp-embedded .tp-account-controls{gap:3px}
  .tp-embedded .tp-sync-state,.tp-embedded .tp-account-controls .tp-user-avatar{display:none}
  .tp-embedded .tp-page-heading{display:block}
  .tp-embedded .tp-page-heading>.tp-button{margin-top:14px}
  .tp-embedded .tp-page-heading h1,.tp-embedded .tp-page-heading .tp-view-title{font-size:26px}
  .tp-embedded .tp-today-layout>aside,.tp-embedded .tp-baby-grid,.tp-embedded .tp-vaccine-grid{grid-template-columns:minmax(0,1fr)}
  .tp-embedded .tp-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .tp-embedded .tp-metrics article{padding:16px}
  .tp-embedded .tp-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tp-embedded .tp-baby-banner{padding:20px}
  .tp-embedded .tp-banner-heart{font-size:60px}
  .tp-embedded .tp-record-row{flex-wrap:wrap;gap:10px;padding:16px 12px}
  .tp-embedded .tp-record-actions{margin-left:auto}
  .tp-embedded .tp-profile-card,.tp-embedded .tp-vaccine-card,.tp-embedded .tp-card{padding:20px}
  .tp-embedded .tp-report-dates{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:700px){
  .tp-embedded .tp-auth-card{padding:24px 20px}
  .tp-embedded .tp-dialog{padding:22px 18px}
  .tp-embedded .tp-editor-fields,.tp-embedded .tp-conflict-comparison{grid-template-columns:minmax(0,1fr)}
  .tp-embedded .tp-field-wide{grid-column:auto}
}
/* Viewport fallback also covers browsers that do not support container queries. */
@media(max-width:700px){
  .tp-embedded .tp-dashboard{grid-template-columns:minmax(0,1fr);min-height:0}
  .tp-embedded .tp-sidebar-toggle{display:inline-grid;place-items:center;flex:0 0 36px}
  .tp-embedded .tp-sidebar{position:absolute;inset:12px auto auto 12px;width:min(280px,calc(100% - 24px));max-height:calc(100dvh - 80px);display:none;transform:none;border:1px solid #dfe7df;border-radius:14px;z-index:6;box-shadow:0 16px 40px #223f3733}
  .tp-embedded .tp-sidebar.open{display:flex}
  .tp-embedded .tp-panel-menu-close{display:block;align-self:flex-end;margin-bottom:14px;padding:6px 10px;border:1px solid #cadbce;border-radius:8px;background:#f6faf4;color:#345c3e}
  .tp-embedded .tp-panel-backdrop:not([hidden]){display:block;position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:18px;background:#17392d55;z-index:5}
}
.tn-connect-card{box-sizing:border-box;width:100%;max-width:var(--wp--style--global--content-size,820px);margin:28px auto;padding:28px;border:1px solid #ceddd0;border-radius:20px;background:#edf5ef;color:#223f37}
.tn-connect-card h2{font-size:1.6rem}
.tn-connect-card input{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:10px 0 18px;padding:14px;border:1px solid #c9d9cd;border-radius:10px;background:#fff;font:inherit;direction:ltr}
.tn-connect-actions{display:flex;gap:12px;flex-wrap:wrap}
.tn-connect-card button{padding:12px 16px;border:1px solid #a7c0ac;border-radius:10px;background:#fff;color:#223f37;font:inherit;cursor:pointer}
.tn-connect-card small{display:block;margin-top:20px}
/* Charts and activity cards share the panel's actual available width. */
.tp-chart-modules{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}
.tp-chart-modules button{min-width:0;display:flex;align-items:center;gap:10px;white-space:normal;text-align:left;border:1px solid #dae6df;border-radius:16px;background:#fffdf8;color:#24483f;padding:16px;font:inherit;font-weight:600;cursor:pointer;transition:background .18s,box-shadow .18s,transform .18s}
.tp-chart-modules button span{font-size:25px;color:#277d73}
.tp-chart-modules button.active{background:#deeee5;border-color:#96b9a4;box-shadow:0 5px 18px #24483f0c}
.tp-chart-modules button:hover{transform:translateY(-2px);box-shadow:0 8px 20px #24483f12}
.tp-chart-card{background:#fffdf8;border:1px solid #dce7df;border-radius:20px;padding:20px;margin:18px 0;min-width:0}
.tp-chart-card svg{display:block;width:100%;height:auto;max-height:220px;margin:14px 0}
.tp-chart-card small{display:block;color:#697c70;line-height:1.6}
.tp-chart-total{font-size:22px;font-weight:700;color:#234b40}
.tp-chart-select{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0}
.tp-chart-select select{max-width:100%;min-width:0;flex:1;border:1px solid #d8e4db;border-radius:12px;padding:12px;background:white;font:inherit}
.tp-activity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:22px 0}
.tp-activity-card{min-width:0;background:linear-gradient(140deg,#eef5eb,#fffdf8);border:1px solid #dce8db;border-radius:24px;padding:26px;display:flex;flex-direction:column;gap:14px}
.tp-activity-card>span{color:#277d73;font-size:34px}.tp-activity-card h2{font-size:clamp(21px,2vw,28px);line-height:1.3;margin:0}.tp-activity-card p{margin:0;line-height:1.7;overflow-wrap:anywhere}.tp-activity-card .tp-button{margin-top:auto}
.tp-activity-public{max-width:1120px;margin-inline:auto;color:#24483f}.tp-activity-public a{color:#277d73}
.tp-mfa-secret,.tp-recovery-codes{font:600 18px/1.9 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:#eff5ed;border:1px solid #dce7d8;border-radius:16px;padding:18px;max-width:100%;box-sizing:border-box}
@container tunima-panel (max-width:850px){.tp-chart-modules{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-activity-grid{grid-template-columns:1fr}}
@media(max-width:650px){.tp-activity-grid{grid-template-columns:1fr}.tp-activity-card{padding:20px}.tp-chart-modules{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tp-chart-modules button{padding:12px;gap:8px}}
@media(prefers-reduced-motion:reduce){.tp-chart-modules button{transition:none}.tp-chart-modules button:hover{transform:none}}

.tp-email-code-icon{display:inline-grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#e6f1e9;color:#277d73;font-size:30px;margin-bottom:14px}
.tp-app .tp-otp-input{font-size:30px!important;letter-spacing:8px;text-align:center;font-weight:700;max-width:100%;min-width:0}
.tp-email-code .tp-otp-resend{margin-top:20px}.tp-email-code .tp-text-button:disabled{cursor:default;opacity:.65}
