/* Habits by outcomes v1.8 — unobtrusive responsive layer */
.oh-root{border:1px solid #dbe5e9;border-radius:22px;background:#fff;padding:22px;box-shadow:0 2px 12px rgba(30,56,72,.035);color:#243747}
.oh-root *{box-sizing:border-box}
.oh-heading h2{font-size:22px;line-height:1.25;letter-spacing:-.6px;margin:7px 0 7px;color:#172c39}
.oh-heading p,.oh-objective p{margin:0;color:#63788a;font-size:13px;line-height:1.6}
.oh-eyebrow{letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#679688;font-size:10px}
.oh-groups{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0}
.oh-groups button{padding:8px 11px;background:#f4f7f9;border:1px solid #e3eaed;border-radius:999px;font-size:12px;color:#536b78;cursor:pointer}
.oh-groups button.is-on{border-color:#80b7a9;background:#eaf5f1;color:#276b5e;font-weight:700}
.oh-objective{background:#f7faf9;padding:13px 15px;border-radius:14px}
.oh-objective h3{margin:0 0 5px;font-size:17px;color:#23443d}
.oh-metric{font-size:11px;color:#57776d;font-weight:600;margin-top:8px}
.oh-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}
.oh-suggestion{padding:14px;border:1px solid #e5ecee;border-radius:15px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}
.oh-suggestion h4{font-size:13px;line-height:1.4;margin:6px 0 4px;color:#223c47}
.oh-suggestion p{font-size:11px;line-height:1.45;color:#768b95;margin:0}
.oh-role{font-size:10px;font-weight:700;color:#67988b}
.oh-suggestion button,.oh-form button{border-radius:11px;background:#e7f3ef;border:1px solid #a5cdbf;padding:8px 10px;color:#256d59;font-size:11px;white-space:nowrap;cursor:pointer}
.oh-suggestion button:disabled{opacity:.5;cursor:default}
.oh-form{background:#fafcfd;border:1px solid #e2ebed;border-radius:14px;padding:14px;display:grid;gap:10px;margin:12px 0}
.oh-form label{font-size:12px;display:flex;flex-direction:column;gap:6px;color:#48616d}
.oh-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.oh-form input:not([type=checkbox]),.oh-form textarea,.oh-form select{width:100%;border:1px solid #dce5e8;border-radius:9px;padding:9px;color:#304650;background:white;font:inherit;font-size:13px}
.oh-form fieldset{border:0;padding:0;display:flex;flex-wrap:wrap;gap:9px}
.oh-form fieldset legend{width:100%;font-size:12px;color:#577380;margin-bottom:8px}
.oh-form fieldset label{flex-direction:row;align-items:center;gap:3px}
.oh-form .oh-main{background:#447e6f;color:#fff;border-color:#447e6f;font-weight:700;justify-self:start;padding:11px 15px}
.oh-details{border-top:1px solid #e8eff1;padding:10px 0;font-size:12px}
.oh-details summary{cursor:pointer;font-weight:700;color:#3e6266}
.oh-muted{font-size:12px;line-height:1.5;color:#768c95}
.oh-linked{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 0}
.oh-linked b{font-size:12px}.oh-linked small{color:#748894}.oh-linked button{background:none;color:#5a8379;border:0;font-size:11px;cursor:pointer}
.oh-link-form{grid-template-columns:minmax(0,1fr) auto;align-items:end}
.oh-summary{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;background:#f2f7f6;padding:13px;border-radius:12px;font-size:12px;color:#4f7067}
.oh-footer{font-size:11px;color:#7d8e95;line-height:1.5;margin:11px 0 0}
.oh-legacy summary{cursor:pointer;color:#607e7d;font-size:13px;font-weight:700;margin:10px 0}
.oh-legacy[open] summary{margin-bottom:14px}
@media(max-width:700px){.oh-root{padding:15px;border-radius:18px}.oh-heading h2{font-size:20px}.oh-groups{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;margin:14px 0}.oh-groups button{flex:none}.oh-suggestions{grid-template-columns:1fr}.oh-suggestion{align-items:center}.oh-link-form{grid-template-columns:1fr}}

/* Prevent the 14 category chips from enlarging mobile layout viewport */
.oh-root{min-width:0;max-width:100%;width:100%;overflow:hidden}
.oh-root .oh-groups{min-width:0;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain}
.oh-root .oh-groups button{max-width:none}
@media(max-width:700px){.col-stack{min-width:0}.oh-root .oh-groups{flex-wrap:nowrap;overflow-x:auto;display:flex}}

/* Goal tiles and concise science-informed mechanism details */
.oh-goal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.oh-goal-tile{position:relative;text-align:left;border-radius:16px;min-height:105px;background:#f6faf9;border:1px solid #dde9e5;color:#25474a;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;padding:15px;cursor:pointer;min-width:0}
.oh-goal-tile strong{font-size:14px;line-height:1.3}
.oh-goal-tile small{font-size:11px;color:#74928b;line-height:1.4;padding-right:12px}
.oh-goal-tile span{position:absolute;right:12px;top:12px;color:#4b8d78}
.oh-goal-tile:hover,.oh-goal-tile:focus-visible{border-color:#77b39b;background:#ecf6f1}
.oh-back{border:0;color:#477f72;background:#f1f8f5;border-radius:10px;padding:10px 14px;font-size:12px;cursor:pointer}
.oh-why{margin-top:9px!important;color:#647b80!important;line-height:1.55!important}
.oh-why b{color:#456e61}
.oh-suggestions{grid-template-columns:1fr!important}
.oh-suggestion>div{flex:1;min-width:0}
@media(max-width:850px){.oh-goal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.oh-goal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.oh-goal-tile{min-height:106px;padding:12px}.oh-goal-tile strong{font-size:13px}.oh-goal-tile small{font-size:10px}.oh-suggestion{align-items:center}}
