.site-identity {display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.5rem 1rem;}
.header-workspace,.workspace-role-link {font-weight:800;font-size:1.05rem;order:3;}
.active-account-identity {order:2;}
.site-brand-row {order:1;}
.private-v1 .site-identity [data-personal-workspace-label] {display:inline;font-weight:800;}
.compact-home {padding-top:1rem;}
.home-quick-actions,.home-tools {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;}
.home-quick,.home-tool {display:flex;align-items:center;justify-content:center;gap:.4rem;text-align:center;text-decoration:none;border-radius:12px;min-height:56px;padding:.7rem;font-weight:750;background:white;color:#176b62;border:1px solid #cedbdc;overflow-wrap:anywhere;}
.home-quick {border:2px solid #176b62;color:#176b62;}
.home-quick:hover,.home-quick:active,.home-quick:focus-visible {background:#176b62;color:white;box-shadow:0 0 0 3px #c7e4dc;transform:translateY(-1px);}
.home-tool:hover,.home-tool:active,.home-tool:focus-visible {background:#dfefeb;border-color:#176b62;}
.home-search {display:flex;align-items:center;gap:.5rem;margin:1rem 0;}
.home-search input {flex:1;min-width:0;width:100%;padding:.75rem;border:1px solid #bdcdcf;border-radius:10px;font:inherit;}
.home-search-submit {width:44px;height:44px;background:white;border:1px solid #bdcdcf;border-radius:10px;color:#176b62;}
.home-search-submit svg {width:23px;fill:none;stroke:currentColor;stroke-width:2;}
.context-help-slot {display:inline-flex;vertical-align:middle;margin:.15rem;}
.context-help-button {display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;border:1px solid #7faaa5;border-radius:50%;background:white;color:#176b62;font:bold 1rem system-ui;cursor:pointer;padding:.25rem;}
.context-help-label {display:flex;align-items:center;gap:.4em;font-weight:700;}
.context-help-label > label {margin:0;}
.context-help-label > .context-help-slot {flex:none;margin:0;font:inherit;}
.context-help-label .context-help-button {font:inherit;line-height:1;width:1em;height:1em;min-width:0;min-height:0;padding:0;box-sizing:border-box;}
.context-help-button:hover,.context-help-button:focus-visible {background:#d9eee8;outline:2px solid #176b62;}
.context-help-dialog {max-width:min(560px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:2px solid #176b62;border-radius:16px;padding:1.25rem;color:#24313a;background:white;}
.context-help-dialog::backdrop {background:#0006;}
.context-help-dialog > [data-help-close]:first-child {float:right;min-width:44px;min-height:44px;background:white;border:1px solid #bdcdcf;border-radius:8px;font-size:1.4rem;}
.context-help-dialog [data-help-content] p {line-height:1.5;margin:1rem 0;}
.home-support {margin-inline-start:.5rem;}
@media(max-width:600px){
 .private-v1 .site-header {padding:12px 16px;gap:10px;}
 .private-v1 .site-identity {width:100%;gap:.4rem .75rem;}
 .header-workspace,.workspace-role-link {font-size:1rem;}
 .home-quick-actions,.home-tools {grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;}
 .home-quick,.home-tool {min-height:48px;padding:.55rem;font-size:1rem;border-radius:9px;}
 .private-v1 .private-navigation {padding:.4rem .75rem;gap:.15rem;}
 .private-v1 .private-navigation a {padding:.5rem .65rem;min-height:40px;}
 .compact-home {padding-top:.5rem;}
}

.personal-home-back {display:inline-flex;align-items:center;gap:.5rem;min-height:44px;margin-block:0 1rem;padding:.55rem .85rem;}

/* The day player occupies the same quick-action slot in every state. */
.home-listen {display:flex;min-width:0;gap:.25rem;}
.home-listen .home-quick {font-family:inherit;font-size:inherit;cursor:pointer;margin:0;}
.home-listen-toggle {flex:1;min-width:0;}
.home-listen-stop {flex:none;min-width:44px;padding:.5rem;}
.home-listen-stop[hidden] {display:none;}
.home-listen-icon {display:inline-block;flex:none;width:1em;height:1em;line-height:1;}
.home-listen[data-state="preparing"] .home-listen-icon {border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:home-listen-spin 1s linear infinite;}
.home-listen[data-state="playing"] .home-listen-toggle {background:#dfefeb;}
.home-listen[data-state="paused"] .home-listen-toggle {background:#fff3d8;}
@keyframes home-listen-spin {to {transform:rotate(360deg);}}
@media(prefers-reduced-motion:reduce){.home-listen[data-state="preparing"] .home-listen-icon {animation:none;}}

.day-agenda {background:#fff;border:1px solid #cedbdc;border-radius:12px;padding:1rem;}
.day-agenda h2 {margin:1.2rem 0 .5rem;font-size:1.2rem;color:#176b62;}
.day-agenda h2:first-child {margin-top:0;}
.day-agenda-list {list-style:none;margin:0;padding:0;}
.day-agenda-row {display:flex;align-items:baseline;gap:.5rem;padding:.45rem 0;border-bottom:1px solid #edf1f1;}
.day-agenda-content {flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.65;}
.day-agenda-time {font-weight:650;margin-inline-end:.5rem;}
.day-agenda-calendar,.day-agenda-empty {color:#576770;}
.day-agenda-complete {margin:0;flex:none;}
.day-agenda-complete button {min-width:44px;min-height:44px;padding:.25rem;}

/* One shared back control, next to the current view title. */
.personal-back-heading {display:flex;align-items:center;gap:.65rem;min-width:0;margin-block:0 1rem;}
.personal-back-heading h1 {margin:0;min-width:0;overflow-wrap:anywhere;}
.personal-back {display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;box-sizing:border-box;border:1px solid #b8ceca;border-radius:50%;background:#eaf3f0;color:#176b62;text-decoration:none;}
.personal-back svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.personal-back:hover {background:#d6eae3;}
.personal-back:focus-visible {outline:3px solid #176b62;outline-offset:3px;}
[data-back-warning] {max-width:min(480px,calc(100vw - 32px));}

/* Compact checklist rows: completion, editable text and a touch drag handle. */
.private-v1 .private-checklist-step {display:grid;grid-template-columns:48px minmax(0,1fr) 44px;align-items:start;gap:8px;padding:10px 0;border:0;border-bottom:1px solid #dce6e3;background:transparent;border-radius:0;margin:0;}
.private-checklist-step > form {margin:0;}
.private-v1 .private-checklist-step .checklist-toggle {width:48px;height:48px;padding:0;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:#176b62;cursor:pointer;}
.checklist-box {width:32px;height:32px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border:2px solid #527d76;border-radius:6px;background:white;font-size:25px;font-weight:800;line-height:1;}
.checklist-toggle[aria-checked="true"] .checklist-box {background:#176b62;color:white;border-color:#176b62;}
.private-v1 .checklist-step-editor {min-width:0;margin:0;border:0;padding:0;background:transparent;}
.private-v1 .checklist-step-editor > summary {display:block;list-style:none;min-height:48px;box-sizing:border-box;padding:11px 0;margin:0;border:0;border-radius:0;background:transparent;color:inherit;font-weight:500;cursor:pointer;white-space:normal;overflow-wrap:anywhere;line-height:1.5;}
.checklist-step-editor > summary::-webkit-details-marker {display:none;}
.checklist-step-editor > summary::before,.checklist-step-editor > summary::after {display:none!important;}
.checklist-step-editor > summary bdi {white-space:pre-wrap;overflow-wrap:anywhere;}
.checklist-step-editor textarea {width:100%;box-sizing:border-box;resize:vertical;}
.checklist-step-editor form {margin-block:10px;}
.private-v1 .checklist-drag {display:flex;align-items:center;justify-content:center;width:44px;height:48px;padding:10px;border:0;background:transparent;color:#527d76;cursor:grab;touch-action:none;user-select:none;}
.checklist-drag[hidden] {display:none;}
.checklist-drag svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;pointer-events:none;}
.private-checklist-step.is-dragging {background:#e7f2ee;outline:2px solid #176b62;outline-offset:0;}
.private-checklist-step.is-dragging .checklist-drag {cursor:grabbing;}
.checklist-toggle:focus-visible,.checklist-drag:focus-visible,.checklist-step-editor > summary:focus-visible {outline:3px solid #176b62;outline-offset:2px;border-radius:6px;}

/* Suppress iOS long-press selection/callouts only on the handle and during touch dragging. */
.checklist-drag,.checklist-drag * {-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none;}
html.checklist-pointer-active,html.checklist-pointer-active * {-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;}

/* Heading help occupies the title row, including beside the shared back arrow. */
.context-help-slot[hidden] {display:none;}
.context-help-heading {display:flex;align-items:center;gap:.3em;min-width:0;}
.context-help-heading-text {min-width:0;overflow-wrap:anywhere;}
.context-help-heading > .context-help-button {flex:none;font:inherit;font-size:.75em;line-height:1;width:1.3em;height:1.3em;min-width:0;min-height:0;padding:0;}

/* Compact email search: help stays beside the action, fields below. */
.mail-search-actions {display:flex;align-items:center;gap:.5rem;}
.mail-search-actions > button {width:auto;flex:0 0 auto;}
.mail-search-actions > .context-help-slot {margin:0;}
.mail-search-fields {display:grid;gap:1rem;}
.mail-search-fields[hidden] {display:none;}

.mail-analysis-actions {display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;}
.mail-analysis-actions form {margin:0;}
.mail-analysis-actions .context-help-slot {margin:0;flex:none;}

/* Keep completion reachable while a task row is collapsed. */
.private-v1 .day-panel > summary.task-quick-summary {position:relative;padding-inline-end:calc(44px + 1.25rem);min-height:3rem;}
summary.task-quick-summary .task-quick-complete {position:absolute;inset-inline-end:.35rem;top:50%;transform:translateY(-50%);width:44px;min-width:44px;height:44px;min-height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:1.3rem;color:var(--color-primary,#176f67);}
[data-personal-repeat] > summary > .context-help-button {display:inline-flex;vertical-align:middle;margin-inline-start:.5rem;}

.home-microphone {width:22px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;}
.personal-success-notice {position:static;box-sizing:border-box;width:100%;margin:0 0 1rem;padding:.75rem 1rem;border:1px solid #176b62;border-radius:10px;background:#edf7f2;color:#174d45;overflow-wrap:anywhere;}
.personal-success-notice h2 {font-size:1rem;margin:0 0 .25rem;}
.personal-success-notice p {margin:.25rem 0;}
.personal-success-notice [data-close] {float:right;min-width:44px;min-height:44px;margin:0 0 .25rem .5rem;}

/* Home hierarchy: everyday destinations, capture, then optional tool groups. */
.compact-home .home-primary {margin-bottom:1rem;}
.compact-home .home-primary .home-tool {background:#176b62;color:#fff;border-color:#176b62;}
.compact-home .home-primary .home-tool:hover {background:#10534b;}
.compact-home .home-capture {border:1px solid #cedbdc;border-radius:12px;padding:.8rem;background:#fff;}
.compact-home .home-capture h2 {font-size:1rem;margin:0 0 .6rem;color:#24313a;}
.compact-home .home-write-actions {grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 .6rem;}
.compact-home .home-quick {font-size:.95rem;min-height:44px;padding:.5rem;border-width:1px;}
.compact-home .home-group {margin-block:.6rem;}
.compact-home .home-group > summary {min-height:44px;cursor:pointer;}
.compact-home .home-group nav {margin-top:.6rem;}
.compact-home a:focus-visible,.compact-home summary:focus-visible {outline:3px solid #176b62;outline-offset:3px;}
@media(max-width:360px){.compact-home .home-write-actions {grid-template-columns:1fr;}}
