/* A small, stable irregularity in the white row edges; content stays undistorted. */
html.minimal-ui body .hand-row-edge{
  position:relative;
  -webkit-mask-image:var(--hand-row-mask);mask-image:var(--hand-row-mask);
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  border:0!important;border-radius:0!important;
}
html.minimal-ui body .hand-row-edge::after{
  content:'';position:absolute;inset:0;z-index:5;pointer-events:none;
  background:var(--hand-row-border) center/100% 100% no-repeat;
}

/* Headers remain separate, unmasked bands. Only the main white surface has an edge. */
html.minimal-ui body .swipe-row:has(>.hand-row-edge),
html.minimal-ui body .swipe-row:has(>.swipe-front>.hand-row-edge),
html.minimal-ui body .swipe-row>.swipe-front:has(>.row-people-line){background-color:transparent!important}
/* Touch interaction needs no keyboard focus decoration. Keyboard navigation restores it. */
html.minimal-ui[data-input-modality="touch"] body :is(:focus,:focus-visible),
html.minimal-ui[data-input-modality="touch"] body :is(:focus,:focus-visible)::before,
html.minimal-ui[data-input-modality="touch"] body :is(:focus,:focus-visible)::after{
  outline:none!important;box-shadow:none!important;
}
html.minimal-ui[data-input-modality="touch"] body .minimal-header .view-matrix-toggle:focus-visible::after{display:none!important}
html[data-input-modality="touch"] *{-webkit-tap-highlight-color:transparent!important}
/* Give Today's date ten more pixels of breathing room above the whole nav row. */
html.minimal-ui body:not(.view-bar-hidden) .minimal-header:has(.view-title-date){height:114px!important;min-height:114px!important;max-height:114px!important}
html.minimal-ui body .minimal-header :is(.minimal-menu:not(.is-details-back),.view-matrix-toggle){top:auto!important;bottom:0!important}

/* Hand-painted control outlines, including native dropdowns; keep their arrows. */
html.minimal-ui body .hand-field-edge{
  border-color:transparent!important;
  border-radius:12px 17px 13px 19px / 14px 12px 18px 11px!important;
  background-image:var(--hand-field-image),var(--hand-field-original,none)!important;
  background-size:100% 100%,auto!important;
  background-repeat:no-repeat!important;
  background-position:center,right .7em center!important;
  background-origin:border-box!important;
}

/* One header height for Today, Now, Soon, and every other view. */
html.minimal-ui body:not(.view-bar-hidden) .minimal-header{height:114px!important;min-height:114px!important;max-height:114px!important;box-sizing:border-box!important}

/* Composite inputs have one outline, on the wrapper. Override legacy focus rules. */
html.minimal-ui body .composer-entry>.composer-line.hand-field-edge,
html.minimal-ui body .composer-entry>.composer-line.hand-field-edge:focus-within,
html.minimal-ui body .activity-details-page .activity-details-name.hand-field-edge,
html.minimal-ui body .activity-details-page .activity-details-name.hand-field-edge:is(:focus,:focus-visible),
html.minimal-ui body #captureIntentMenu .hand-field-edge{border-color:transparent!important;box-shadow:none!important;outline:none!important}
html.minimal-ui body .composer-line :is(input,textarea){border:0!important;box-shadow:none!important;background-image:none!important;background-color:transparent!important}
html.minimal-ui body #captureIntent svg,
html.minimal-ui body #captureIntentMenu svg{filter:url(#hand-control-ink)}
html.minimal-ui body #captureIntentMenu .hand-field-edge{border-radius:43% 51% 46% 54%!important}

html.minimal-ui body .composer-entry>#captureIntent svg .hand-control-circle{fill:#fff}
html.minimal-ui body #captureIntentMenu button:is([aria-current=true],:active)>.intent-option-icon.hand-field-edge{border-color:transparent!important;background-image:var(--hand-field-image)!important;border-radius:43% 51% 46% 54%!important}

/* Rounded main capture/search ends; inset SVG stroke clears the background clip. */
html.minimal-ui body .composer-entry>.composer-line.hand-field-edge{
  border-radius:999px!important;background-clip:border-box!important;
  box-sizing:border-box;min-width:0;max-width:100%;
}
html.minimal-ui body .composer-entry>.composer-line #quickCapture{min-width:0;max-width:100%;box-sizing:border-box}

/* Shared navigation baseline, with or without a date beneath the title. */
html.minimal-ui body .minimal-header .minimal-dots,
html.minimal-ui body .minimal-header:has(.view-title-date) .minimal-dots{bottom:8px!important}
html.minimal-ui body[data-view]:not(.view-bar-hidden) .minimal-header{border-bottom-width:1px!important}
