/*
 * Pointally Design System — grouped navigation
 * Canonical Apple-style rules for the main menu and menu destination pages.
 * These components are structural; they do not mask or cover legacy UI.
 */
:root {
  --pt-page-bg: #f2f2f7;
  --pt-group-bg: #ffffff;
  --pt-label: #000000;
  --pt-secondary-label: #8e8e93;
  --pt-tertiary-label: rgba(60, 60, 67, 0.30);
  --pt-separator: rgba(60, 60, 67, 0.18);
  --pt-pressed: rgba(120, 120, 128, 0.12);
  --pt-pressed-surface: #e5e5ea;
  --pt-segment-track: rgba(118, 118, 128, 0.12);
  --pt-segment-selected: #ffffff;
  --pt-segment-label: #3c3c43;
  --pt-segment-selected-label: #0066cc;
  --pt-segment-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  --pt-scroll-material: rgba(242, 242, 247, 0.74);
  --pt-scroll-material-edge: rgba(242, 242, 247, 0.92);
  --pt-scroll-fade-depth: 50px;
  --pt-scroll-blur: 20px;
  --pt-app-wash-base: #f2f2f7;
  --pt-app-wash-red: rgba(255, 45, 85, 0.16);
  --pt-app-wash-purple: rgba(88, 86, 214, 0.16);
  --pt-app-wash-blue: rgba(0, 122, 255, 0.13);
  --pt-blue: #007aff;
  --pt-confirm-control-fill: #3576f3;
  --pt-confirm-control-glyph: #a7fcff;
  --pt-red: #ff3b30;
  --pt-orange: #ff9500;
  --pt-status-assigned: #0066cc;
  --pt-status-assigned-fill: rgba(0, 122, 255, 0.12);
  --pt-status-on-site: #a85d00;
  --pt-status-on-site-fill: rgba(255, 149, 0, 0.12);
  --pt-status-captured: #7542a8;
  --pt-status-captured-fill: rgba(175, 82, 222, 0.12);
  --pt-status-uploaded: #1f7a35;
  --pt-status-uploaded-fill: rgba(52, 199, 89, 0.12);
  --pt-popover-bg: rgba(250, 250, 250, 0.94);
  --pt-popover-shadow: 0 12px 34px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
  --pt-page-gutter: 20px;
  --pt-title-inset: 16px;
  --pt-row-padding: 16px;
  --pt-group-radius: 22px;
  --pt-row-height: 56px;
  --pt-tap-target: 44px;
  --pt-nav-control-glyph-stroke: 1.75;
  --pt-sheet-record-gap: 16px;
  --pt-sheet-content-gap: 16px;
  --pt-navigation-motion-duration: 350ms;
  --pt-navigation-motion-settle: 390ms;
  --pt-navigation-motion-curve: linear(0, 0.151, 0.2952, 0.4248, 0.5367, 0.6308, 0.7083, 0.7713, 0.8217, 0.8618, 0.8934, 0.9181, 0.9373, 0.9521, 0.9635, 0.9723, 0.979, 0.9842, 0.988, 0.991, 1);
  --pt-inset-section-gap: 12px;
  --pt-detail-row-inset: 16px;
  --pt-detail-row-height: 50px;
  --pt-detail-group-radius: 14px;
  --pt-font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --pt-work-log-primary-weight: 500;
  --pt-work-log-secondary-weight: 400;
  --pt-work-log-emphasis-weight: 650;
  --pt-space-1: 4px;
  --pt-space-2: 8px;
  --pt-space-3: 12px;
  --pt-space-4: 16px;
  --pt-space-5: 20px;
  --pt-space-6: 24px;
  --pt-space-7: 32px;
  --pt-space-8: 40px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pt-page-bg: #1c1c1e;
    --pt-group-bg: #2c2c2e;
    --pt-label: #ffffff;
    --pt-secondary-label: #8e8e93;
    --pt-tertiary-label: rgba(235, 235, 245, 0.30);
    --pt-separator: rgba(84, 84, 88, 0.65);
    --pt-pressed: rgba(120, 120, 128, 0.24);
    --pt-pressed-surface: #3a3a3c;
    --pt-segment-track: #2c2c2e;
    --pt-segment-selected: #3a3a3c;
    --pt-segment-label: #d1d1d6;
    --pt-segment-selected-label: #64aaff;
    --pt-segment-shadow: 0 1px 3px rgba(0, 0, 0, 0.48);
    --pt-scroll-material: rgba(28, 28, 30, 0.72);
    --pt-scroll-material-edge: rgba(28, 28, 30, 0.92);
    --pt-app-wash-base: #1c1c1e;
    --pt-app-wash-red: rgba(255, 55, 95, 0.20);
    --pt-app-wash-purple: rgba(94, 92, 230, 0.22);
    --pt-app-wash-blue: rgba(10, 132, 255, 0.18);
    --pt-blue: #0a84ff;
    --pt-red: #ff453a;
    --pt-orange: #ff9f0a;
    --pt-status-assigned: #64aaff;
    --pt-status-assigned-fill: rgba(10, 132, 255, 0.15);
    --pt-status-on-site: #ffb340;
    --pt-status-on-site-fill: rgba(255, 159, 10, 0.15);
    --pt-status-captured: #bf5af2;
    --pt-status-captured-fill: rgba(191, 90, 242, 0.15);
    --pt-status-uploaded: #30d158;
    --pt-status-uploaded-fill: rgba(48, 209, 88, 0.15);
    --pt-popover-bg: rgba(44, 44, 46, 0.94);
    --pt-popover-shadow: 0 12px 34px rgba(0, 0, 0, 0.42), 0 2px 8px rgba(0, 0, 0, 0.24);
  }
}

/* Canonical primary-page backdrop. The root canvas receives the same wash
   so Safari can carry the page surface through its top safe-area chrome. */
html,
body.view-home,
body.view-logs,
body.view-ally,
body.view-insights,
body.view-reports {
  background-color: var(--pt-app-wash-base) !important;
  background-image:
    radial-gradient(ellipse 400px 300px at 5% 0%, var(--pt-app-wash-red) 0%, transparent 60%),
    radial-gradient(ellipse 400px 300px at 95% 0%, var(--pt-app-wash-purple) 0%, transparent 60%),
    radial-gradient(ellipse 500px 350px at 50% 0%, var(--pt-app-wash-blue) 0%, transparent 50%) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  color: var(--pt-label);
}

.pt-section-title {
  display: flex;
  align-items: baseline;
  gap: var(--pt-space-2);
  margin: var(--pt-space-7) 0 var(--pt-space-3);
  padding: 0 0 0 var(--pt-title-inset);
  color: var(--pt-label);
  font: 700 22px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  letter-spacing: -0.025em;
  text-transform: none;
}

.pt-group {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--pt-group-radius);
  background: var(--pt-group-bg);
  box-shadow: none;
}

.pt-group + .pt-section-title {
  margin-top: var(--pt-space-7);
}

.pt-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: var(--pt-row-height);
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: var(--pt-space-3);
  margin: 0;
  padding: 0 var(--pt-row-padding);
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: var(--pt-label);
  font: 400 17px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: -0.016em;
  text-align: left;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button.pt-row,
a.pt-row,
label.pt-row {
  cursor: pointer;
}

.pt-row:active:not(.pt-row--press-managed),
.pt-row.pt-row--pressed {
  background: var(--pt-pressed);
}

.pt-row + .pt-row::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: var(--pt-row-padding);
  left: var(--pt-row-padding);
  height: 0.5px;
  background: var(--pt-separator);
  pointer-events: none;
}

.pt-group--icons .pt-row + .pt-row::before {
  left: 56px;
}

.pt-row-label {
  min-width: 0;
  flex: 1 1 auto;
  color: inherit;
  font: inherit;
}

.pt-row-end {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: var(--pt-space-2);
}

.pt-row-detail {
  overflow: hidden;
  color: var(--pt-secondary-label);
  font: 400 17px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-row-check {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  color: var(--pt-blue);
  visibility: hidden;
}

.pt-row-check svg {
  width: 20px;
  height: 20px;
}

.pt-choice-row.is-selected .pt-row-check {
  visibility: visible;
}

.pt-choice-row:disabled {
  opacity: 0.55;
}


.pt-row-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  color: var(--pt-secondary-label);
}

.pt-row-icon svg {
  width: 20px;
  height: 20px;
}

.pt-row-detail {
  margin-left: auto;
  color: var(--pt-secondary-label);
  font-size: 15px;
  line-height: 1.25;
  text-align: right;
}

.pt-row-chevron {
  display: grid;
  width: 8px;
  height: 13px;
  min-width: 8px;
  flex: 0 0 8px;
  place-items: center;
  overflow: hidden;
  color: var(--pt-tertiary-label);
  font-size: 0;
}

.pt-row-chevron::before {
  content: "";
  width: 6px;
  height: 6px;
  box-sizing: border-box;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  transform: rotate(45deg);
}

.pt-row-count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--pt-pressed);
  color: var(--pt-secondary-label);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

#headerUndoBtn.has-undo {
  color: var(--pt-blue);
  opacity: 1;
}

#headerUndoBtn:disabled {
  opacity: 0.28;
}

.pt-row--destructive,
.pt-row--destructive .pt-row-label {
  color: var(--pt-red);
}

.pt-foot {
  margin: var(--pt-space-3) 0 0;
  color: var(--pt-secondary-label);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

/* All menu destinations share the same width and surface system. */
.menu-page {
  background: var(--pt-page-bg);
  color: var(--pt-label);
}

.menu-page .menu-page-content {
  width: min(calc(100% - (var(--pt-page-gutter) * 2)), 640px);
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
}

.menu-page .pt-group {
  margin-bottom: 0;
}

/* Canonical menu title system */
.menu-title-block {
  box-sizing: border-box;
  margin: var(--pt-space-4) 0 var(--pt-space-6);
  padding: 0 var(--pt-title-inset);
}

.menu-large-title {
  margin: 0;
  color: var(--pt-label);
  font: 700 34px/1.05 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  letter-spacing: -0.04em;
}

.menu-page-description {
  margin: var(--pt-space-2) 0 0;
  color: var(--pt-secondary-label);
  font: 400 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: -0.01em;
}

.menu-title-block + .pt-section-title {
  margin-top: 0;
}

.menu-page .profile-hero {
  gap: var(--pt-space-3);
  min-height: 0;
  padding: var(--pt-space-2) 0 var(--pt-space-6);
}

.menu-page .profile-hero-name {
  color: var(--pt-label);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.menu-page .profile-identity-row .pt-row-label {
  flex: 0 0 72px;
  color: var(--pt-secondary-label);
}

.menu-page .profile-readonly,
.menu-page .profile-select {
  color: var(--pt-label);
  font-size: 17px;
}

.menu-page .profile-signout {
  justify-content: center;
  color: var(--pt-red);
  font-weight: 600;
}

/* Main menu is a full modal below the safe area; the page behind it is not a backdrop. */
.main-menu-page {
  padding: var(--pt-space-4) 0 max(var(--pt-space-7), env(safe-area-inset-bottom, 0px));
  background: var(--pt-page-bg);
  color: var(--pt-label);
  box-shadow: none;
}

.main-menu-page .menu-scroll {
  width: min(calc(100% - (var(--pt-page-gutter) * 2)), 640px);
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
}

.main-menu-page .menu-scroll {
  padding-top: 0;
}

.main-menu-page .pt-group {
  corner-shape: squircle;
}

.main-menu-page .hm-hero {
  min-height: 0;
  margin: var(--pt-space-2) 0 var(--pt-space-6);
  padding: var(--pt-space-2) 0 var(--pt-space-4);
  gap: var(--pt-space-3);
}

.main-menu-page .hm-avatar {
  width: 86px;
  height: 86px;
  flex-basis: 86px;
}

.main-menu-page .hm-name {
  color: var(--pt-label);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.main-menu-page .menu-stack-panel--root .pt-section-title {
  margin-top: var(--pt-space-7);
}

.main-menu-page .pt-row-icon {
  display: none;
}

.main-menu-page .pt-row + .pt-row::before {
  left: var(--pt-row-padding);
}

.main-menu-page .pt-foot {
  padding-bottom: var(--pt-space-2);
}


/* Canonical buttons */
.pt-button {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: var(--pt-space-2);
  margin: 0;
  padding: 0 var(--pt-space-4);
  border: 0;
  border-radius: var(--pt-space-4);
  appearance: none;
  color: var(--pt-label);
  font: 600 17px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: -0.016em;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.pt-button--primary {
  background: var(--pt-blue);
  color: #ffffff;
}

.pt-button--secondary {
  background: var(--pt-pressed);
  color: var(--pt-blue);
}

.pt-button--destructive {
  background: var(--pt-red);
  color: #ffffff;
}

.pt-button:active:not(:disabled) {
  opacity: 0.72;
}

.pt-button:disabled,
.pt-control:disabled,
.pt-nav-action:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.pt-button[hidden],
.pt-nav-action[hidden],
.pt-modal-nav-icon[hidden] {
  display: none;
}

/* Modal navigation actions */
.pt-nav-action {
  display: inline-flex;
  min-width: var(--pt-tap-target);
  min-height: var(--pt-tap-target);
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--pt-blue);
  font: 400 17px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pt-nav-action--strong,
.pt-nav-action.strong {
  justify-content: flex-end;
  font-weight: 600;
}

.pt-nav-action:active:not(:disabled) {
  opacity: 0.45;
}

/* Grouped form fields */
.pt-form-section-title {
  display: flex;
  align-items: baseline;
  gap: var(--pt-space-2);
  margin: var(--pt-space-5) 0 var(--pt-space-2);
  padding: 0 var(--pt-space-1);
  color: var(--pt-secondary-label);
  font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pt-form-section-title:first-child {
  margin-top: 0;
}

.pt-field-group {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--pt-space-4);
  background: var(--pt-group-bg);
}

.pt-field-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: var(--pt-row-height);
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: var(--pt-space-4);
  margin: 0;
  padding: 0 var(--pt-space-4);
  border: 0;
  background: transparent;
  color: var(--pt-label);
}

.pt-field-row + .pt-field-row::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: var(--pt-space-4);
  height: 0.5px;
  background: var(--pt-separator);
  pointer-events: none;
}

button.pt-field-row,
label.pt-field-row {
  font: inherit;
  text-align: left;
}

button.pt-field-row:active:not(.pt-row--press-managed),
button.pt-field-row.pt-row--pressed {
  background: var(--pt-pressed);
}

.pt-field-label {
  min-width: 72px;
  flex: 0 0 auto;
  color: var(--pt-label);
  font: 500 17px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: -0.016em;
}

#viewProfile .profile-identity-row .profile-nickname-input {
  display: block;
  width: min(68%, 220px);
  min-width: 0;
  min-height: var(--pt-tap-target);
  height: var(--pt-tap-target);
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: var(--pt-blue);
  -webkit-text-fill-color: currentColor;
  font: 400 17px/1.25 var(--pt-font-text);
  letter-spacing: -0.016em;
  text-align: right;
}
#viewProfile .profile-identity-row .profile-nickname-input::placeholder {
  color: var(--pt-secondary-label);
  -webkit-text-fill-color: var(--pt-secondary-label);
  opacity: 1;
}
#viewProfile .profile-identity-row .profile-nickname-input:disabled {
  opacity: .55;
}

.pt-control {
  min-width: 0;
  min-height: var(--pt-tap-target);
  flex: 1 1 auto;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  outline: 0;
  background: transparent;
  color: var(--pt-label);
  font: 400 17px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-align: right;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

select.pt-control {
  padding-right: var(--pt-space-6);
}

select.pt-control option {
  text-align: left;
}

/* Canonical editable forms use a stable value column, not floating trailing values. */
.pt-form--two-column .pt-field-row:not(.work-entry-multiline) {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  column-gap: var(--pt-space-3);
}

.pt-form--two-column .pt-field-row:not(.work-entry-multiline) > .pt-field-label {
  min-width: 0;
}

.pt-form--two-column .pt-field-row:not(.work-entry-multiline) > .pt-control,
.pt-form--two-column .pt-field-row:not(.work-entry-multiline) > .select-wrap {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
}

.pt-form--two-column .pt-field-row:not(.work-entry-multiline) > input.pt-control {
  padding-right: 0;
  text-align: left;
}

.pt-form--two-column input[type="date"].pt-control::-webkit-date-and-time-value {
  width: 100%;
  margin: 0;
  text-align: left;
}

.pt-form--two-column input[type="date"].pt-control::-webkit-datetime-edit {
  padding: 0;
  text-align: left;
}

.pt-form--two-column .pt-field-row:not(.work-entry-multiline) > .select-wrap {
  display: block;
  padding-right: 0;
}

.pt-form--two-column .pt-field-row:not(.work-entry-multiline) > .select-wrap select.pt-control {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-right: var(--pt-space-6);
  text-align: left;
  text-align-last: left;
}

textarea.pt-control {
  min-height: 72px;
  padding: var(--pt-space-3) 0;
  line-height: 1.35;
  resize: vertical;
  text-align: left;
}

.pt-control::placeholder {
  color: var(--pt-secondary-label);
  opacity: 1;
}

.pt-control:focus,
.pt-control:focus-visible,
.pt-control:active {
  outline: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pt-field-row.work-entry-multiline {
  align-items: flex-start;
  flex-direction: column;
  gap: var(--pt-space-2);
  padding-top: var(--pt-space-3);
  padding-bottom: var(--pt-space-3);
}

.pt-control--inline {
  width: auto;
  flex: 0 1 auto;
  color: var(--pt-blue);
}

.pt-text-input {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  padding: 0 var(--pt-space-4);
  border: 0;
  border-radius: var(--pt-space-4);
  outline: 0;
  background: var(--pt-group-bg);
  color: var(--pt-label);
  font: 400 17px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  box-shadow: none;
}

.pt-text-input:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pt-blue) 28%, transparent);
}

/* Canonical menu forms and actions */
.menu-page .pt-form-group,
.menu-page .pt-field-group {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--pt-group-radius);
  background: var(--pt-group-bg);
}

.menu-page .pt-form-row,
.menu-page .pt-field-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: var(--pt-row-height);
  box-sizing: border-box;
  align-items: center;
  gap: var(--pt-space-3);
  padding: 0 var(--pt-row-padding);
  background: transparent;
}

.menu-page .pt-form-row + .pt-form-row::before,
.menu-page .pt-field-row + .pt-field-row::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--pt-row-padding);
  left: var(--pt-row-padding);
  height: 0.5px;
  background: var(--pt-separator);
  pointer-events: none;
}

.menu-page .pt-form-row--multiline {
  align-items: flex-start;
  padding-top: var(--pt-space-3);
  padding-bottom: var(--pt-space-3);
}

.menu-page .pt-control {
  width: 100%;
  min-width: 0;
  min-height: var(--pt-tap-target);
  flex: 1 1 auto;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  appearance: none;
  background: transparent !important;
  color: var(--pt-label) !important;
  font: 400 17px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif !important;
  text-align: left;
  box-shadow: none !important;
}

.menu-page textarea.pt-control {
  min-height: 116px;
  padding: 0 !important;
  line-height: 1.4;
  resize: vertical;
}

.menu-page .pt-control::placeholder {
  color: var(--pt-secondary-label) !important;
  opacity: 1;
}

.menu-page .pt-control:focus,
.menu-page .pt-control:focus-visible {
  outline: 0;
  box-shadow: none !important;
}

.pt-password-field {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: var(--pt-space-2);
}

.pt-field-action {
  min-width: var(--pt-tap-target);
  min-height: var(--pt-tap-target);
  flex: 0 0 auto;
  margin: 0;
  padding: 0 var(--pt-space-1);
  border: 0;
  background: transparent;
  color: var(--pt-blue);
  font: 600 15px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  cursor: pointer;
}

.pt-form-help,
.pt-form-counter,
.pt-form-message {
  box-sizing: border-box;
  margin: 0;
  color: var(--pt-secondary-label);
  font: 400 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

.pt-form-help {
  padding: var(--pt-space-2) var(--pt-row-padding) 0;
}

.pt-form-counter {
  padding: var(--pt-space-1) var(--pt-row-padding) 0;
  text-align: right;
}

.pt-form-message {
  margin-top: var(--pt-space-3);
  padding: var(--pt-space-3) var(--pt-row-padding);
  border-radius: var(--pt-space-3);
  background: var(--pt-group-bg);
}

.pt-form-message:empty,
.pt-form-message[hidden] {
  display: none;
}

.pt-form-message--success {
  color: #248a3d;
}

.pt-form-message--error {
  color: var(--pt-red);
}

.pt-form-actions {
  display: flex;
  gap: var(--pt-space-3);
  margin-top: var(--pt-space-4);
}

.pt-form-actions > * {
  flex: 1 1 0;
}

.menu-page .pt-form-submit {
  margin-top: var(--pt-space-4);
}

.pt-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pt-choice-row {
  position: relative;
  min-height: var(--pt-row-height);
  cursor: pointer;
  font: 400 17px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif !important;
}

.pt-choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pt-choice-check {
  display: flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  color: var(--pt-blue);
  opacity: 0;
}

.pt-choice-input:checked ~ .pt-choice-check {
  opacity: 1;
}

.pt-choice-input:checked ~ .pt-row-label {
  font-weight: 600;
}

.pt-file-picker {
  position: relative;
}

.pt-file-picker-row {
  padding-right: 68px;
  cursor: pointer;
}

.pt-file-picker-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
}

.pt-file-picker-detail,
.pt-file-picker-name {
  overflow: hidden;
  color: var(--pt-secondary-label);
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-file-picker-name {
  color: var(--pt-blue);
  font-weight: 600;
}

.pt-file-picker-remove {
  position: absolute;
  top: 50%;
  right: var(--pt-row-padding);
  min-width: var(--pt-tap-target);
  min-height: var(--pt-tap-target);
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--pt-red);
  font: 600 15px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

/* Canonical search and provider status */
.pt-search-group + .pt-group {
  margin-top: var(--pt-space-3);
}

.pt-search-row {
  justify-content: flex-start;
}

.pt-search-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  color: var(--pt-secondary-label);
}

.pt-search-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.pt-provider-status {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: var(--pt-space-1);
  color: var(--pt-secondary-label);
  font: 400 15px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-align: right;
}

.pt-status-check {
  display: inline-grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  color: var(--pt-blue);
}

.pt-status-check svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* Canonical menu lists and states */
.pt-list-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 72px;
  box-sizing: border-box;
  align-items: center;
  gap: var(--pt-space-3);
  margin: 0;
  padding: 10px var(--pt-row-padding);
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: var(--pt-label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

button.pt-list-row {
  cursor: pointer;
}

button.pt-list-row:active:not(.pt-row--press-managed),
button.pt-list-row.pt-row--pressed {
  background: var(--pt-pressed);
}

.pt-list-row + .pt-list-row::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--pt-row-padding);
  left: var(--pt-row-padding);
  height: 0.5px;
  background: var(--pt-separator);
  pointer-events: none;
}

.pt-list-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
}

.pt-list-heading {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--pt-space-2);
}

.pt-list-title {
  overflow: hidden;
  color: var(--pt-label);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.016em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-list-date {
  flex: 0 0 auto;
  color: var(--pt-secondary-label);
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
}

.pt-list-meta,
.pt-list-detail {
  overflow: hidden;
  color: var(--pt-secondary-label);
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-list-detail {
  color: color-mix(in srgb, var(--pt-label) 72%, var(--pt-secondary-label));
}

.pt-list-action {
  min-width: var(--pt-tap-target);
  min-height: var(--pt-tap-target);
  flex: 0 0 auto;
  margin: 0;
  padding: 0 var(--pt-space-2);
  border: 0;
  border-radius: var(--pt-space-2);
  background: transparent;
  color: var(--pt-blue);
  font: 600 15px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pt-list-action--destructive {
  color: var(--pt-red);
}

.pt-list-action:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pt-list-state {
  display: flex;
  min-height: 112px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: var(--pt-space-2);
  padding: var(--pt-space-5) var(--pt-row-padding);
  color: var(--pt-secondary-label);
  font: 400 15px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-align: center;
}

.pt-list-state[hidden] {
  display: none;
}

.pt-list-state--loading::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid color-mix(in srgb, var(--pt-secondary-label) 28%, transparent);
  border-top-color: var(--pt-secondary-label);
  border-radius: 50%;
  animation: pt-list-spin 700ms linear infinite;
}

.pt-list-state--error {
  color: var(--pt-red);
}

@keyframes pt-list-spin {
  to { transform: rotate(360deg); }
}

/* Canonical compact statistics and list annotations */
.pt-stat-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--pt-space-4);
  overflow: hidden;
  border-radius: var(--pt-group-radius);
  background: var(--pt-group-bg);
}

.pt-stat-grid[hidden] {
  display: none;
}

.pt-stat-item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--pt-space-1);
  padding: var(--pt-space-3) var(--pt-space-2);
  text-align: center;
}

.pt-stat-item + .pt-stat-item::before {
  content: "";
  position: absolute;
  top: var(--pt-space-3);
  bottom: var(--pt-space-3);
  left: 0;
  width: 0.5px;
  background: var(--pt-separator);
}

.pt-stat-value {
  color: var(--pt-label);
  font: 700 28px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.pt-stat-value--warning {
  color: var(--pt-orange);
}

.pt-stat-label {
  overflow: hidden;
  color: var(--pt-secondary-label);
  font: 500 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-list-value {
  flex: 0 0 auto;
  color: var(--pt-label);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pt-list-warning {
  margin-top: var(--pt-space-1);
  color: var(--pt-orange);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
  .pt-list-state--loading::before {
    animation: none;
  }
}

/* Canonical menu content blocks */
.pt-content-body {
  margin: 0;
  padding: var(--pt-space-4) var(--pt-row-padding);
  color: var(--pt-label);
  font: 400 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: -0.01em;
}

/* Canonical app feedback */
.pt-feedback {
  position: fixed;
  z-index: 1300;
  left: 50%;
  bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  display: grid;
  width: max-content;
  max-width: min(calc(100vw - (2 * var(--pt-page-gutter))), 420px);
  min-height: 48px;
  box-sizing: border-box;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--pt-space-2);
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, #ffffff 18%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, #2c2c2e 88%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 12px, 0);
  transition: opacity 200ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}

.pt-feedback.is-compact {
  min-height: 36px;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 13px;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.22);
}
.pt-feedback.is-compact .pt-feedback-indicator {
  width: 7px;
  height: 7px;
  flex-basis: 7px;
}
.pt-feedback.is-compact .pt-feedback-message {
  font-size: 14px;
  font-weight: 550;
}

.pt-feedback[hidden] {
  display: none;
}

.pt-feedback.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}

.pt-feedback-indicator {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--pt-blue);
}

.pt-feedback[data-tone="success"] .pt-feedback-indicator {
  background: #34c759;
}

.pt-feedback[data-tone="warning"] .pt-feedback-indicator {
  background: #ff9f0a;
}

.pt-feedback[data-tone="error"] .pt-feedback-indicator {
  background: var(--pt-red);
}

.pt-feedback[data-tone="processing"] .pt-feedback-indicator {
  width: 15px;
  height: 15px;
  border: 2px solid color-mix(in srgb, #ffffff 32%, transparent);
  border-top-color: #ffffff;
  background: transparent;
  animation: pt-feedback-spin 700ms linear infinite;
}

.pt-feedback-message {
  min-width: 0;
  overflow-wrap: anywhere;
  font: 600 15px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: -0.01em;
  text-align: left;
}

.pt-feedback-action {
  min-width: var(--pt-tap-target);
  min-height: var(--pt-tap-target);
  margin: -9px -8px -9px 0;
  padding: 0 8px 0 14px;
  border: 0;
  border-left: 1px solid color-mix(in srgb, #ffffff 20%, transparent);
  background: transparent;
  color: #64a9ff;
  font: 700 15px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pt-feedback-action[hidden] {
  display: none;
}

.pt-feedback-action:active {
  opacity: 0.65;
}

@keyframes pt-feedback-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pt-feedback {
    transition: opacity 120ms linear;
  }

  .pt-feedback[data-tone="processing"] .pt-feedback-indicator {
    animation-duration: 1200ms;
  }
}

/* Canonical confirmation sheet */
.pt-confirm-backdrop {
  z-index: 420 !important;
  background: color-mix(in srgb, #000000 24%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}

.pt-confirm-sheet {
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  padding: var(--pt-space-2) var(--pt-page-gutter) max(var(--pt-space-5), env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--pt-page-bg);
  color: var(--pt-label);
}

.pt-confirm-title {
  margin: var(--pt-space-3) 0 var(--pt-space-2);
  color: var(--pt-label);
  font: 700 22px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  letter-spacing: -0.02em;
  text-align: center;
}

.pt-confirm-message {
  margin: 0;
  color: var(--pt-secondary-label);
  font: 400 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-align: center;
}

.pt-confirm-error {
  margin-top: var(--pt-space-3);
  padding: var(--pt-space-3);
  border-radius: 14px;
  background: color-mix(in srgb, var(--pt-red) 12%, transparent);
  color: var(--pt-red);
  font: 500 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-align: center;
}

.pt-confirm-error[hidden] {
  display: none;
}

.pt-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: var(--pt-space-2);
  margin-top: var(--pt-space-5);
}

.pt-list-action.is-processing {
  color: var(--pt-secondary-label);
}

/* Switch */
.pt-switch {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 31px;
  flex: 0 0 51px;
}

.pt-switch input {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pt-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.32);
  transition: background 200ms ease;
}

.pt-switch-track::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: transform 200ms ease;
}

.pt-switch input:checked + .pt-switch-track {
  background: #34c759;
}

.pt-switch input:checked + .pt-switch-track::before {
  transform: translateX(20px);
}

.pt-switch input:disabled + .pt-switch-track {
  opacity: 0.5;
}

/* Segmented control */
.pt-segmented {
  display: flex;
  min-height: var(--pt-tap-target);
  box-sizing: border-box;
  gap: var(--pt-space-1);
  padding: var(--pt-space-1);
  border-radius: var(--pt-space-3);
  background: var(--pt-segment-track);
}

.pt-segment {
  min-width: var(--pt-tap-target);
  min-height: 36px;
  flex: 1 1 0;
  padding: 0 var(--pt-space-3);
  border: 0;
  border-radius: var(--pt-space-2);
  appearance: none;
  background: transparent;
  color: var(--pt-segment-label);
  font: 600 17px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pt-segment.is-active,
.pt-segment[aria-selected="true"] {
  background: var(--pt-segment-selected);
  color: var(--pt-segment-selected-label);
  box-shadow: var(--pt-segment-shadow);
}

/* Canonical adaptive popup menus */
.pt-menu-stage {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: transparent;
}

.pt-menu-stage.open {
  display: block;
}

.pt-menu {
  position: absolute;
  width: 250px;
  max-width: calc(100vw - 20px);
  overflow: hidden;
  border: 0.5px solid var(--pt-separator);
  border-radius: 14px;
  background: var(--pt-popover-bg);
  color: var(--pt-label);
  box-shadow: var(--pt-popover-shadow);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transform-origin: top right;
  animation: pt-menu-in 160ms cubic-bezier(.2, .9, .3, 1.1) both;
}

.pt-menu[hidden] {
  display: none;
}

.pt-menu--compact {
  position: fixed;
  z-index: 210;
  width: 190px;
}

.pt-menu--anchored {
  position: fixed;
  z-index: 215;
}

@keyframes pt-menu-in {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}

.pt-menu-title {
  padding: 9px 14px 7px;
  overflow: hidden;
  border-bottom: 0.5px solid var(--pt-separator);
  color: var(--pt-secondary-label);
  font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-menu-section + .pt-menu-section {
  border-top: 6px solid var(--pt-pressed);
}

.pt-menu-item {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 0;
  border-top: 0.5px solid var(--pt-separator);
  appearance: none;
  background: transparent;
  color: var(--pt-label);
  font: 400 15px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pt-menu-section > .pt-menu-item:first-child,
.pt-menu > .pt-menu-item:first-child {
  border-top: 0;
}

.pt-menu-item[hidden] {
  display: none;
}

.pt-menu-item:active {
  background: var(--pt-pressed);
}

.pt-menu-label {
  min-width: 0;
  flex: 1 1 auto;
}
.pt-menu-value{
  flex:0 1 auto;
  max-width:132px;
  overflow:hidden;
  color:var(--pt-secondary-label);
  font-size:13px;
  font-weight:500;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pt-menu-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.pt-menu-item.danger {
  color: var(--pt-red);
}

.pt-menu-item.is-selected .pt-menu-label {
  font-weight: 600;
}

.pt-menu-item.is-selected::after {
  content: "✓";
  order: 3;
  margin-left: -4px;
  color: var(--pt-blue);
  font-size: 15px;
  font-weight: 700;
}

.pt-menu:focus-visible,
.pt-menu-item:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pt-blue) 28%, transparent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .pt-menu {
    animation: none;
  }
}

/* Core interactive controls */
.pt-icon-button{display:inline-grid;width:var(--pt-tap-target);height:var(--pt-tap-target);min-width:var(--pt-tap-target);padding:0;border:0;border-radius:50%;appearance:none;place-items:center;background:var(--pt-pressed);color:var(--pt-label);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color 140ms ease,opacity 140ms ease,transform 140ms ease}
.pt-icon-button--tinted{color:var(--pt-blue)}
.pt-icon-button:active:not(:disabled){background:var(--pt-separator);transform:scale(.96)}
.pt-icon-button:disabled{opacity:.32;cursor:default}
.pt-icon-button svg{display:block;pointer-events:none}
/* Canonical header profile control */
.pt-profile-button{overflow:hidden}
.pt-profile-button-image{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.pt-profile-button-placeholder{display:grid;width:100%;height:100%;align-items:center;justify-content:center;place-items:center;color:var(--pt-label);font-size:15px;font-weight:700;line-height:1;pointer-events:none}
.pt-segmented--compact{min-height:36px;gap:2px;padding:2px;border-radius:10px}
.pt-segmented--compact .pt-segment{min-width:var(--pt-tap-target);min-height:32px;padding:0 12px;border-radius:8px;color:var(--pt-segment-label);font-size:15px;font-weight:590;letter-spacing:-.01em}
.pt-segmented--compact .pt-segment.is-active,.pt-segmented--compact .pt-segment[aria-selected="true"],.pt-segmented--compact .pt-segment[aria-pressed="true"]{background:var(--pt-segment-selected);color:var(--pt-segment-selected-label);box-shadow:var(--pt-segment-shadow)}

/* Logs control stack */
#logsSegContainer,.pt-logs-period{display:none}
body.view-logs #logsSegContainer,body.view-logs .pt-logs-period{display:flex}
/* Canonical primary-page large title */
.pt-primary-title{min-width:0;max-width:100%;box-sizing:border-box;margin:0;padding-inline-start:var(--pt-title-inset);overflow:hidden;color:var(--pt-label);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",sans-serif;font-size:34px;font-weight:700;letter-spacing:-.025em;line-height:1.06;text-overflow:ellipsis;white-space:nowrap}
.pt-logs-title{display:none;align-items:baseline;gap:8px}
body.view-logs .pt-logs-title{display:flex}
.pt-logs-title-date{color:var(--pt-secondary-label);font-size:15px;font-weight:590;letter-spacing:-.01em}
.pt-logs-mode{width:100%;margin:12px 0 8px;box-sizing:border-box}
.pt-logs-mode-control{width:100%;min-height:52px;height:52px;padding:3px;border-radius:12px}
.pt-logs-mode-control .pt-segment{min-height:46px;border-radius:10px;font-size:17px}
.pt-logs-period{width:100%;align-items:center;gap:6px;margin:0 0 12px}
.pt-logs-period-control{min-width:0;min-height:var(--pt-tap-target);height:var(--pt-tap-target);flex:1 1 auto;padding:2px;border-radius:10px}
.pt-logs-period-control .pt-segment{min-height:40px;padding:0 8px;border-radius:8px;font-size:14px}
.pt-logs-today{display:inline-grid;width:var(--pt-tap-target);height:var(--pt-tap-target);min-width:var(--pt-tap-target);min-height:var(--pt-tap-target);flex:0 0 var(--pt-tap-target);border-radius:10px;background:var(--pt-segment-track);box-shadow:none}
.pt-logs-today:active:not(:disabled){background:var(--pt-segment-selected);transform:scale(.96)}
.pt-logs-today[hidden]{display:none!important}
.pt-period-stepper{display:flex;width:auto;flex:0 0 auto;align-items:center;gap:0;background:transparent}
.pt-period-step{display:grid;width:var(--pt-tap-target);height:var(--pt-tap-target);min-width:var(--pt-tap-target);min-height:var(--pt-tap-target);padding:0;border:0;border-radius:50%;appearance:none;place-items:center;background:transparent;color:var(--pt-blue);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color 140ms ease,transform 140ms ease}
.pt-period-step:active{background:var(--pt-pressed);transform:scale(.92)}
.pt-period-step svg{display:block;width:9px;height:15px;pointer-events:none}

/* Filter controls */
.pt-filter-bar{width:100%;min-width:0;min-height:var(--pt-tap-target);padding:0 0 10px;overflow:hidden;box-sizing:border-box}
.pt-filter-bar[hidden],.pt-filter-row[hidden]{display:none!important}
.pt-filter-row{display:flex;align-items:center;gap:8px;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;animation:pt-filter-row-in 160ms ease both}
.pt-filter-row::-webkit-scrollbar{display:none}
@keyframes pt-filter-row-in{from{opacity:0}to{opacity:1}}
.pt-filter-chip,.pt-filter-back{border:0;appearance:none;background:var(--pt-pressed);color:var(--pt-label);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color 140ms ease,color 140ms ease,transform 140ms ease}
.pt-filter-chip{display:inline-flex;min-height:36px;flex:0 0 auto;align-items:center;justify-content:center;gap:7px;padding:0 12px;border-radius:18px;font:inherit;font-size:15px;font-weight:590;line-height:1;white-space:nowrap}
.pt-filter-chip:active,.pt-filter-back:active{transform:scale(.97)}
.pt-filter-chip.is-active{background:var(--pt-blue);color:#fff}
.pt-filter-count{display:inline-grid;min-width:20px;height:20px;padding:0 5px;border-radius:10px;place-items:center;background:rgba(118,118,128,.16);color:var(--pt-secondary-label);box-sizing:border-box;font-size:13px;font-weight:650;line-height:1}
.pt-filter-chip.is-active .pt-filter-count{background:rgba(255,255,255,.22);color:#fff}
.pt-filter-chip--critical:not(.is-active){color:var(--pt-red)}
.pt-filter-chip--critical.is-active{background:var(--pt-red)}
.pt-filter-chip--menu svg{width:15px;height:15px;flex:none}
.pt-filter-back{display:inline-grid;width:36px;height:36px;min-width:36px;flex:0 0 36px;padding:0;border-radius:50%;place-items:center}
.pt-filter-row--detail .pt-filter-chip--menu{margin-left:auto}
.pt-filter-clear{color:var(--pt-blue);font-size:12px;font-weight:590}
.pt-icon-button:focus-visible,.pt-segment:focus-visible,.pt-period-step:focus-visible,.pt-filter-chip:focus-visible,.pt-filter-back:focus-visible{outline:3px solid color-mix(in srgb,var(--pt-blue) 28%,transparent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.pt-icon-button,.pt-filter-chip,.pt-filter-back,.pt-filter-row{animation:none;transition:none}}

/* Stepper */
.pt-stepper {
  display: inline-grid;
  min-height: var(--pt-tap-target);
  grid-template-columns: var(--pt-tap-target) minmax(48px, auto) var(--pt-tap-target);
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--pt-space-3);
  background: var(--pt-pressed);
}

.pt-stepper-button,
.pt-stepper > button {
  display: grid;
  min-width: var(--pt-tap-target);
  min-height: var(--pt-tap-target);
  padding: 0;
  border: 0;
  appearance: none;
  place-items: center;
  background: transparent;
  color: var(--pt-blue);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pt-stepper-button svg,
.pt-stepper > button svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
  pointer-events: none;
}

.pt-stepper-button:active,
.pt-stepper > button:active {
  background: var(--pt-pressed);
}

.pt-stepper-button:disabled,
.pt-stepper > button:disabled {
  opacity: 0.4;
}

.pt-stepper-value,
.pt-stepper > input {
  width: 100%;
  min-width: 48px;
  padding: 0 var(--pt-space-2);
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pt-label);
  font: 600 17px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-align: center;
  -moz-appearance: textfield;
}

.pt-stepper-value::-webkit-inner-spin-button,
.pt-stepper-value::-webkit-outer-spin-button,
.pt-stepper > input::-webkit-inner-spin-button,
.pt-stepper > input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.pt-stepper--compact {
  grid-template-columns: var(--pt-tap-target) minmax(36px, auto) auto var(--pt-tap-target);
}

.pt-stepper--row {
  width: 148px;
  flex: 0 0 148px;
  grid-template-columns: var(--pt-tap-target) 60px var(--pt-tap-target);
}

.pt-stepper-limit {
  align-self: center;
  color: var(--pt-secondary-label);
  font-size: 13px;
}


/* Explicit theme hooks are used by the internal UI Gallery. */
[data-pt-theme="light"] {
  --pt-page-bg: #f2f2f7;
  --pt-group-bg: #ffffff;
  --pt-label: #000000;
  --pt-secondary-label: #8e8e93;
  --pt-separator: rgba(60, 60, 67, 0.18);
  --pt-pressed: rgba(120, 120, 128, 0.12);
  --pt-pressed-surface: #e5e5ea;
  --pt-blue: #007aff;
  --pt-red: #ff3b30;
}

[data-pt-theme="dark"] {
  --pt-page-bg: #1c1c1e;
  --pt-group-bg: #2c2c2e;
  --pt-label: #ffffff;
  --pt-secondary-label: #8e8e93;
  --pt-separator: rgba(84, 84, 88, 0.65);
  --pt-pressed: rgba(120, 120, 128, 0.24);
  --pt-pressed-surface: #3a3a3c;
  --pt-blue: #0a84ff;
  --pt-red: #ff453a;
}

/* Dashboard and report cards */
.pt-card {
  width: 100%;
  box-sizing: border-box;
  padding: var(--pt-space-5);
  border: 0;
  border-radius: var(--pt-group-radius);
  background: var(--pt-group-bg);
  color: var(--pt-label);
  box-shadow: none;
}

button.pt-card {
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button.pt-card:active {
  background: var(--pt-pressed-surface);
}

.pt-card-label {
  color: var(--pt-secondary-label);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.pt-card-value {
  margin-top: var(--pt-space-2);
  color: var(--pt-label);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.pt-card-support {
  margin-top: var(--pt-space-2);
  color: var(--pt-secondary-label);
  font-size: 13px;
  line-height: 1.35;
}

/* Status and QA badges */
.pt-status {
  display: inline-flex;
  min-height: 28px;
  box-sizing: border-box;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  color: var(--pt-secondary-label);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.pt-status--assigned { color: #007aff; }
.pt-status--on-site { color: #ff9500; }
.pt-status--captured { color: #af52de; }
.pt-status--uploaded,
.pt-status--completed,
.pt-status--resolved { color: #34c759; }
.pt-status--attention { color: #b56a00; }
.pt-status--disputed { color: var(--pt-red); }
.pt-status--qa { color: var(--pt-secondary-label); }

@media (prefers-color-scheme: dark) {
  .pt-status--assigned { color: #0a84ff; }
  .pt-status--on-site { color: #ff9f0a; }
  .pt-status--captured { color: #bf5af2; }
  .pt-status--uploaded,
  .pt-status--completed,
  .pt-status--resolved { color: #30d158; }
  .pt-status--attention { color: #ffb340; }
}

[data-pt-theme="dark"] .pt-status--assigned { color: #0a84ff; }
[data-pt-theme="dark"] .pt-status--on-site { color: #ff9f0a; }
[data-pt-theme="dark"] .pt-status--captured { color: #bf5af2; }
[data-pt-theme="dark"] .pt-status--uploaded,
[data-pt-theme="dark"] .pt-status--completed,
[data-pt-theme="dark"] .pt-status--resolved { color: #30d158; }
[data-pt-theme="dark"] .pt-status--attention { color: #ffb340; }

/* Canonical scroll-header material */
/* Sticky must remain attached to the actual vertical scroller. Horizontal
   clipping cannot create a competing scroll container on iOS. */
html,
body,
#app,
#app > main {
  overflow-x: clip !important;
}
#app,
#app > main {
  overflow-y: visible !important;
}

.pt-scroll-header,
.pt-compact-header,
.main-menu-page .menu-stack-panel > .menu-sticky-header {
  position: -webkit-sticky;
  position: sticky;
  z-index: 20;
  top: 0;
  isolation: isolate;
  overflow: visible;
  color: var(--pt-label);
  background: transparent;
  transition: background-color 160ms ease;
}

.pt-scroll-header--app {
  z-index: 50;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: calc(8px + env(safe-area-inset-top, 0px)) var(--pt-page-gutter) 10px;
}

/* Primary-page compact state: only the centered title sticks. The large
   header, actions, and selectors remain in normal document flow. */
.pt-compact-header.pt-compact-header--title-only {
  z-index: 50;
  top: 0;
  min-height: calc(44px + env(safe-area-inset-top, 0px));
  height: calc(44px + env(safe-area-inset-top, 0px));
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: calc(-44px - env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--pt-page-gutter) 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 160ms;
}
.pt-compact-header.pt-compact-header--title-only.visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.pt-compact-header.pt-compact-header--title-only .pt-compact-title {
  align-self: center;
  justify-self: center;
  width: min(62vw, 300px);
  color: var(--pt-label);
  font: 600 17px/1.22 var(--pt-font-text);
  letter-spacing: -0.016em;
  text-align: center;
}

.pt-sticky-material {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: -50px;
  left: 0;
  pointer-events: none;
  opacity: 0;
  background: var(--pt-scroll-material);
  -webkit-backdrop-filter: blur(var(--pt-scroll-blur)) saturate(160%);
  backdrop-filter: blur(var(--pt-scroll-blur)) saturate(160%);
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - var(--pt-scroll-fade-depth)),
    rgba(0, 0, 0, 0.99) calc(100% - 47px),
    rgba(0, 0, 0, 0.96) calc(100% - 44px),
    rgba(0, 0, 0, 0.91) calc(100% - 40px),
    rgba(0, 0, 0, 0.84) calc(100% - 36px),
    rgba(0, 0, 0, 0.75) calc(100% - 32px),
    rgba(0, 0, 0, 0.64) calc(100% - 28px),
    rgba(0, 0, 0, 0.52) calc(100% - 24px),
    rgba(0, 0, 0, 0.40) calc(100% - 20px),
    rgba(0, 0, 0, 0.29) calc(100% - 16px),
    rgba(0, 0, 0, 0.19) calc(100% - 12px),
    rgba(0, 0, 0, 0.10) calc(100% - 8px),
    rgba(0, 0, 0, 0.04) calc(100% - 4px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - var(--pt-scroll-fade-depth)),
    rgba(0, 0, 0, 0.99) calc(100% - 47px),
    rgba(0, 0, 0, 0.96) calc(100% - 44px),
    rgba(0, 0, 0, 0.91) calc(100% - 40px),
    rgba(0, 0, 0, 0.84) calc(100% - 36px),
    rgba(0, 0, 0, 0.75) calc(100% - 32px),
    rgba(0, 0, 0, 0.64) calc(100% - 28px),
    rgba(0, 0, 0, 0.52) calc(100% - 24px),
    rgba(0, 0, 0, 0.40) calc(100% - 20px),
    rgba(0, 0, 0, 0.29) calc(100% - 16px),
    rgba(0, 0, 0, 0.19) calc(100% - 12px),
    rgba(0, 0, 0, 0.10) calc(100% - 8px),
    rgba(0, 0, 0, 0.04) calc(100% - 4px),
    transparent 100%
  );
  transition: opacity 160ms ease;
}

/* Menu panels reserve top breathing room outside the header box. Extend the
   same material through that structural padding so content cannot bleed above it. */
.main-menu-page .menu-stack-panel > .menu-sticky-header > .pt-sticky-material {
  top: calc(0px - var(--pt-space-4));
}

/* Sheet navigation remains structurally outside its scroll region while the
   shared controller applies the same material as page and menu headers. */
.pt-sheet-scroll-header {
  z-index: 20;
  isolation: isolate;
  overflow: visible;
  background: transparent;
}

/* The title and controls remain ordinary header content above the material. */
.pt-scroll-header > :not(.pt-sticky-material),
.pt-compact-header > :not(.pt-sticky-material),
.pt-sheet-scroll-header > :not(.pt-sticky-material) {
  position: relative;
  z-index: 1;
}

/* Menu controls already own their positioning; preserve the absolute title
   so it stays centered against the full header rather than the back slot. */
.main-menu-page .menu-stack-panel > .menu-sticky-header > :not(.pt-sticky-material) {
  z-index: 1;
}

.pt-scroll-header.is-scrolled > .pt-sticky-material,
.pt-compact-header.is-scrolled > .pt-sticky-material,
.pt-sheet-scroll-header.is-scrolled > .pt-sticky-material,
.main-menu-page .menu-stack-panel > .menu-sticky-header.is-scrolled > .pt-sticky-material {
  opacity: 1;
}

@media (prefers-reduced-transparency: reduce) {
  .pt-sticky-material {
    background: var(--pt-page-bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.pt-compact-header {
  display: grid;
  min-height: 52px;
  grid-template-columns: var(--pt-tap-target) 1fr var(--pt-tap-target);
  align-items: center;
  padding: 0 var(--pt-page-gutter);
}

.pt-compact-title {
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sheet primitives */
.pt-sheet-surface {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  background: var(--pt-page-bg);
  color: var(--pt-label);
}

.pt-sheet-handle {
  width: 36px;
  height: 5px;
  margin: var(--pt-space-2) auto var(--pt-space-3);
  border-radius: 999px;
  background: var(--pt-secondary-label);
  opacity: 0.5;
}

.time-sheet-bg.pt-modal-backdrop {
  opacity: 1;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.pt-modal-backdrop-material {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-color: color-mix(in srgb, #000000 18%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  transition: opacity 320ms var(--pt-navigation-motion-curve);
}
.time-sheet-bg.pt-modal-backdrop.open > .pt-modal-backdrop-material {
  opacity: 1;
}
.time-sheet-bg.pt-modal-backdrop > .pt-sheet-surface {
  position: relative;
  z-index: 1;
}


/* Main menu modal navigation stack */
.main-menu-backdrop {
  position: fixed;
  z-index: 299;
  inset: 0;
  background: color-mix(in srgb, #000000 18%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  opacity: 0;
  transition: opacity var(--pt-navigation-motion-duration) var(--pt-navigation-motion-curve);
}

.main-menu-backdrop[hidden] {
  display: none;
}

.main-menu-backdrop.open {
  opacity: 1;
}

.main-menu-page {
  position: fixed;
  z-index: 300;
  top: env(safe-area-inset-top, 0px);
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 32px 32px 0 0;
  background: var(--pt-page-bg);
  transform: translate3d(0,100dvh,0);
  transition: transform var(--pt-navigation-motion-duration) var(--pt-navigation-motion-curve);
}

.main-menu-page.open {
  transform: translate3d(0,0,0);
}

/* Keep the iOS viewport and home-indicator region on the same canonical
   surface while the menu stack owns the screen. */
html.menu-scroll-locked,
body.menu-scroll-locked {
  background: var(--pt-page-bg) !important;
}

.main-menu-page.menu-sheet-no-motion {
  transition: none !important;
}

.menu-stack-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  padding: var(--pt-space-4) 0 max(var(--pt-space-7), env(safe-area-inset-bottom, 0px));
  overscroll-behavior-y: contain;
  background: var(--pt-page-bg);
  -webkit-overflow-scrolling: touch;
}

.menu-stack-panel[hidden] {
  display: none;
}

.main-menu-page .menu-stack-panel--incoming,
.main-menu-page .menu-stack-panel--outgoing {
  will-change: transform;
  transition: transform var(--pt-navigation-motion-duration) var(--pt-navigation-motion-curve);
  pointer-events: none;
}

.main-menu-page[data-menu-direction="forward"] .menu-stack-panel--incoming {
  z-index: 2;
  transform: translate3d(100%,0,0);
}

.main-menu-page[data-menu-direction="forward"] .menu-stack-panel--outgoing {
  z-index: 1;
  transform: translate3d(0,0,0);
}

.main-menu-page[data-menu-direction="back"] .menu-stack-panel--incoming {
  z-index: 1;
  transform: translate3d(-28%,0,0);
}

.main-menu-page[data-menu-direction="back"] .menu-stack-panel--outgoing {
  z-index: 2;
  transform: translate3d(0,0,0);
}

.main-menu-page.menu-stack-transition-active .menu-stack-panel--incoming {
  transform: translate3d(0,0,0);
}

.main-menu-page.menu-stack-transition-active[data-menu-direction="forward"] .menu-stack-panel--outgoing {
  transform: translate3d(-28%,0,0);
}

.main-menu-page.menu-stack-transition-active[data-menu-direction="back"] .menu-stack-panel--outgoing {
  transform: translate3d(100%,0,0);
}

.main-menu-page.menu-stack-content-back .menu-stack-panel--back-current,
.main-menu-page.menu-stack-content-back .menu-stack-panel--back-previous {
  pointer-events: none;
  transition: none;
  will-change: transform;
}

.main-menu-page.menu-stack-content-back .menu-stack-panel--back-current {
  z-index: 2;
}

.main-menu-page.menu-stack-content-back .menu-stack-panel--back-previous {
  z-index: 1;
}

.main-menu-page .menu-stack-panel.menu-page {
  min-height: 0;
  padding-bottom: max(var(--pt-space-7), env(safe-area-inset-bottom, 0px));
}

/* Canonical menu sticky header */
.main-menu-page .menu-stack-panel > .menu-nav-bar {
  display: flex;
  width: 100%;
  min-height: 56px;
  box-sizing: border-box;
  align-items: center;
  margin: 0;
  padding: 6px var(--pt-page-gutter);
  border: 0;
  background: transparent;
}

.main-menu-page .menu-stack-panel > .menu-sticky-header {
  top: 0;
  z-index: 20;
}

.main-menu-page .menu-stack-panel > .menu-sticky-header h2 {
  position: absolute;
  z-index: 1;
  right: 64px;
  left: 64px;
  margin: 0;
  overflow: hidden;
  color: var(--pt-label);
  font: 600 17px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: -0.01em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 160ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 160ms;
}

.main-menu-page .menu-stack-panel > .menu-sticky-header.visible h2 {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.main-menu-page .menu-stack-panel > .menu-sticky-header.visible .menu-circle-control {
  visibility: hidden;
}

.main-menu-page .menu-circle-control {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--pt-separator);
  border-radius: 50%;
  appearance: none;
  background: color-mix(in srgb, var(--pt-group-bg) 88%, transparent);
  color: var(--pt-label);
  box-shadow: none;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

.main-menu-page .menu-circle-control svg {
  width: 22px;
  height: 22px;
}

.main-menu-page .menu-stack-panel .menu-page-content,
.main-menu-page .menu-stack-panel.menu-page-root .menu-page-content {
  display: flow-root;
  width: min(calc(100% - (var(--pt-page-gutter) * 2)), 640px);
  box-sizing: border-box;
  margin: 0 auto;
  padding: var(--pt-space-6) 0 calc(var(--pt-space-8) + env(safe-area-inset-bottom, 0px));
}

/* Canonical menu section layout */
.main-menu-page .menu-page-content > .pt-section-title {
  margin: var(--pt-space-7) 0 var(--pt-space-3);
}

.main-menu-page .menu-page-content > .menu-title-block + .pt-section-title {
  margin-top: 0;
}

.main-menu-page .menu-page-content > .pt-group {
  width: 100%;
  margin: 0;
  border-radius: var(--pt-group-radius);
  corner-shape: squircle;
}

.main-menu-page .menu-page-content > .pt-group + .pt-group {
  margin-top: var(--pt-space-7);
}

.main-menu-page .menu-page-content > .menu-content-card {
  width: 100%;
  margin: 0;
}

.main-menu-page .menu-page-content > .menu-content-card + .menu-content-card {
  margin-top: var(--pt-space-4);
}

.main-menu-page .menu-inline-status {
  margin: var(--pt-space-3) 0 0;
  padding: 0 var(--pt-row-padding);
}

.main-menu-page .menu-inline-status:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .main-menu-backdrop,
  .main-menu-page,
  .menu-stack-panel,
  .time-sheet-bg.pt-modal-backdrop,
  .time-sheet-bg .time-sheet {
    animation: none !important;
    transition: none !important;
  }
  .pt-modal-backdrop-material {
    transition: none !important;
  }
}


/* Profile menu panel */
.menu-profile-page .profile-hero {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  gap: var(--pt-space-3);
  padding: 0;
}

.menu-profile-page .profile-photo-button {
  position: relative;
  width: 92px;
  height: 92px;
  min-width: 92px;
  min-height: 92px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: var(--pt-group-bg);
  color: var(--pt-blue);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-profile-page .profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--pt-pressed);
}

.menu-profile-page .profile-avatar-fallback:not([hidden]) {
  display: grid;
  place-items: center;
  color: var(--pt-blue);
  font-size: 34px;
  font-weight: 700;
}

.menu-profile-page .profile-photo-edit {
  position: absolute;
  right: -2px;
  bottom: 1px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 3px solid var(--pt-page-bg);
  border-radius: 50%;
  background: var(--pt-blue);
  color: #ffffff;
}

.menu-profile-page .profile-photo-edit svg {
  width: 16px;
  height: 16px;
}

.menu-profile-page .profile-hero-name {
  color: var(--pt-label);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-align: center;
}

.menu-profile-page .profile-identity-row .pt-row {
  min-height: var(--pt-row-height);
  padding-top: var(--pt-space-3);
  padding-bottom: var(--pt-space-3);
}

.menu-profile-page .profile-identity-row .pt-row-label {
  flex: 0 0 72px;
  color: var(--pt-secondary-label);
}

.menu-profile-page .profile-readonly {
  min-width: 0;
  max-width: none;
  margin-left: auto;
  overflow: visible;
  color: var(--pt-label);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  text-align: right;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.menu-profile-page .profile-signout {
  justify-content: center;
  color: var(--pt-red);
  font-size: 17px;
  font-weight: 600;
}


/* Settings menu panel */
.menu-settings-page .pt-row {
  min-height: var(--pt-row-height);
}

.menu-settings-page .pt-row-label {
  min-width: 0;
  font-size: 17px;
}

.pt-inline-select {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: var(--pt-space-2);
}

.pt-inline-select .pt-control--inline {
  width: auto;
  min-width: 0;
  min-height: var(--pt-tap-target);
  padding-right: 0;
  color: var(--pt-secondary-label);
  font-size: 17px;
  text-align: right;
}

.pt-inline-select .pt-row-chevron {
  pointer-events: none;
}

.menu-settings-page [hidden] {
  display: none;
}


/* Canonical inline notices and grouped-row actions */
.pt-inline-notice {
  margin: 0 0 var(--pt-space-4);
  padding: 12px var(--pt-row-padding);
  border-radius: 14px;
  background: color-mix(in srgb, var(--pt-secondary-label) 12%, transparent);
  color: var(--pt-secondary-label);
  font: 400 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: -0.01em;
}

.pt-inline-notice--warning {
  color: #9a6700;
  background: color-mix(in srgb, #ffcc00 16%, transparent);
}

.pt-row-action {
  min-width: var(--pt-tap-target);
  min-height: var(--pt-tap-target);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pt-blue);
  font: 600 17px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-align: right;
  -webkit-tap-highlight-color: transparent;
}

.pt-row-action:disabled {
  color: var(--pt-secondary-label);
  cursor: default;
}

.pt-row--context-disabled {
  color: var(--pt-secondary-label);
  opacity: 0.5;
}

.pt-inline-notice[hidden],
.pt-row[hidden] {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  .pt-inline-notice--warning {
    color: #ffd60a;
  }
}

/* Canonical interaction states */
:where(
  .pt-button,
  .pt-row,
  .pt-list-action,
  .pt-nav-action,
  .pt-field-action,
  .pt-segment,
  .pt-stepper-button,
  .pt-feedback-action
) {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

:where(
  .pt-button,
  .pt-row,
  .pt-list-action,
  .pt-nav-action,
  .pt-field-action,
  .pt-segment,
  .pt-stepper-button,
  .pt-feedback-action
):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pt-blue) 52%, transparent);
  outline-offset: 2px;
}

.pt-text-input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pt-blue) 45%, transparent);
  outline-offset: 1px;
}

:where(.pt-button, .pt-list-action, .pt-nav-action, .pt-field-action, .pt-segment, .pt-stepper-button):active:not(:disabled):not([aria-disabled="true"]) {
  transform: scale(0.985);
}

:where(
  .pt-button,
  .pt-row,
  .pt-list-action,
  .pt-nav-action,
  .pt-field-action,
  .pt-segment,
  .pt-stepper-button
):is(:disabled, [aria-disabled="true"], .is-disabled) {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.pt-button.is-busy {
  cursor: wait;
}

.pt-button.is-busy::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  box-sizing: border-box;
  border: 2px solid color-mix(in srgb, currentColor 32%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: pt-interaction-spin 700ms linear infinite;
}

@keyframes pt-interaction-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  :where(
    .pt-button,
    .pt-row,
    .pt-list-action,
    .pt-nav-action,
    .pt-field-action,
    .pt-segment,
    .pt-stepper-button,
    .pt-switch-track,
    .pt-switch-track::before,
    .pt-feedback
  ) {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .pt-button.is-busy::before {
    animation: none;
  }
}



/* Canonical form interaction states */
:root {
  --pt-field-focus: color-mix(in srgb, var(--pt-blue) 7%, transparent);
  --pt-field-error: var(--pt-red);
}
.pt-field-group + .pt-field-group { margin-top: var(--pt-space-3); }
.pt-field-row { transition: background-color 140ms ease, opacity 140ms ease; }
.pt-field-row.is-disabled,
.pt-field-row:has(.pt-control:disabled),
.pt-field-row:has(.pt-stepper-value:disabled) { opacity: 0.45; pointer-events: none; }
.pt-field-row.is-invalid .pt-field-label,
.pt-field-row.is-invalid .pt-control,
.pt-field-row.is-invalid .pt-stepper-value,
.pt-control.is-invalid,
.pt-text-input.is-invalid { color: var(--pt-field-error); }
.pt-field-row.is-invalid::after {
  content: ""; position: absolute; top: 10px; bottom: 10px; left: 0; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--pt-field-error);
}
.pt-field-row .pt-control[type="date"] { min-width: 132px; }
.pt-field-row.work-entry-multiline .pt-control { width: 100%; }
.pt-form-error {
  margin: var(--pt-space-2) var(--pt-space-4) 0; color: var(--pt-field-error);
  font: 400 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}
.pt-form-error:empty, .pt-form-error[hidden] { display: none; }


/* Canonical metric and read-only value cards */
.pt-metric-card {
  display: flex;
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: var(--pt-space-4);
  margin: 0 0 var(--pt-space-3);
  padding: 0 var(--pt-space-4);
  border: 0;
  border-radius: var(--pt-space-4);
  background: var(--pt-group-bg);
  color: var(--pt-label);
}

.pt-metric-label {
  color: var(--pt-secondary-label);
  font: 600 15px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: -0.01em;
}

.pt-metric-inline-value {
  display: inline-flex;
  align-items: baseline;
  margin-left: auto;
  color: var(--pt-label);
  font: 700 28px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.pt-metric-unit {
  margin-left: var(--pt-space-1);
  color: var(--pt-secondary-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.pt-metric-card--hero {
  min-height: 0;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  margin-top: var(--pt-space-1);
  margin-bottom: var(--pt-space-4);
  padding: var(--pt-space-5);
}

.pt-metric-card--hero .pt-metric-label {
  font-size: 13px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.pt-metric-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 10px;
}

.pt-metric-value strong {
  color: var(--pt-label);
  font: 750 48px/.95 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.pt-metric-value .pt-metric-unit {
  margin-left: 0;
  font-size: 16px;
}

.pt-metric-supporting {
  margin-top: 15px;
  color: var(--pt-secondary-label);
  font: 500 15px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: -0.01em;
}

.pt-field-value {
  margin-left: auto;
  color: var(--pt-label);
  font: 600 17px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Canonical entry-sheet surface shared by Log Time, Log Job, and Edit Job */
.pt-entry-sheet {
  width: min(100%, 480px);
  height: auto;
  max-height: min(90dvh, 820px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--pt-space-2) var(--pt-title-inset) max(var(--pt-space-3), calc(var(--pt-space-2) + env(safe-area-inset-bottom, 0px)));
  background: var(--pt-page-bg);
  touch-action: pan-y;
}

.pt-entry-sheet .pt-sheet-handle {
  flex: 0 0 auto;
}

.work-sheet-scroll {
  flex: 0 1 auto;
  min-height: 0;
  height: auto;
  max-height: calc(90dvh - 62px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  scrollbar-width: none;
}

.work-sheet-scroll::-webkit-scrollbar {
  display: none;
}

/* Canonical large sheet detent */
.pt-entry-sheet.pt-sheet-detent--large {
  height: min(
    var(--pt-sheet-available-height, calc(var(--pt-sheet-viewport-height, 100vh) - env(safe-area-inset-top, 0px) - 8px)),
    920px
  );
  max-height: min(
    var(--pt-sheet-available-height, calc(var(--pt-sheet-viewport-height, 100vh) - env(safe-area-inset-top, 0px) - 8px)),
    920px
  );
  min-height: 0;
}

.pt-entry-sheet.pt-sheet-detent--large .work-sheet-scroll {
  flex: 1 1 auto;
  max-height: none;
}

.work-entry-form {
  display: block;
  padding: 5px 0 max(18px, calc(10px + env(safe-area-inset-bottom, 0px)));
  background: transparent;
}

/* Canonical compact sheet and form variants */
.pt-sheet-page[hidden] {
  display: none !important;
}

.pt-sheet--compact {
  max-height: min(78dvh, 680px);
}

.pt-sheet--compact .work-sheet-scroll {
  max-height: calc(78dvh - 58px);
}

.pt-form--compact {
  padding-top: 3px;
  padding-bottom: 6px;
}

.pt-form--compact .pt-metric-card {
  min-height: 52px;
  margin-bottom: 12px;
}

.pt-form--compact .pt-metric-card--hero {
  margin-bottom: 16px;
}

.pt-form--compact .pt-form-section-title {
  margin-top: 12px;
  margin-bottom: 7px;
}

.pt-form--compact .pt-field-row {
  min-height: 52px;
}

.pt-form--compact .pt-stepper--row {
  width: 136px;
  flex-basis: 136px;
  grid-template-columns: 44px 48px 44px;
}

.pt-form--compact .pt-stepper-button {
  min-width: 44px;
  min-height: 44px;
}

.pt-form--compact .pt-form-spacer-before {
  margin-top: 14px;
}

/* Canonical Edit Work uses the same sections and rows as Work Details. */
.pt-edit-sheet {
  padding-right: 0;
  padding-left: 0;
}
.pt-edit-sheet > .pt-sheet-nav-bar {
  margin-right: calc(var(--pt-title-inset) - 4px);
  margin-left: calc(var(--pt-title-inset) - 4px);
}
.pt-edit-work-form {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 0 max(20px, env(safe-area-inset-bottom, 0px));
}
.pt-edit-work-form .pt-edit-group {
  border-radius: var(--pt-detail-group-radius);
}
.pt-edit-work-form .pt-edit-row,
.pt-edit-work-form .pt-edit-row:not(.work-entry-multiline) {
  min-height: var(--pt-detail-row-height);
  padding-right: var(--pt-detail-row-inset);
  padding-left: var(--pt-detail-row-inset);
  font: 400 17px/1.25 var(--pt-font-text);
  letter-spacing: -0.016em;
}
.pt-edit-work-form .pt-edit-row:not(.work-entry-multiline) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 68%);
  align-items: center;
  column-gap: 12px;
}
.pt-edit-work-form .pt-edit-row + .pt-edit-row::before {
  right: 0;
  left: var(--pt-detail-row-inset);
}
.pt-edit-work-form .pt-field-label {
  min-width: 0;
  color: var(--pt-label);
  font: inherit;
}
.pt-edit-work-form .pt-control,
.pt-edit-work-form .select-wrap,
.pt-edit-work-form .select-wrap select.pt-control {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  color: var(--pt-label);
  font: inherit;
}
.pt-edit-work-form .pt-edit-row:not(.work-entry-multiline) > input.pt-control,
.pt-edit-work-form .pt-edit-row:not(.work-entry-multiline) > .select-wrap select.pt-control {
  padding-right: 24px;
  text-align: right;
  text-align-last: right;
}
.pt-edit-work-form .pt-edit-row:not(.work-entry-multiline) > input.pt-control {
  padding-right: 0;
}
.pt-edit-work-form .pt-edit-points-value {
  min-width: 0;
  color: var(--pt-secondary-label);
  font: inherit;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pt-edit-work-form .pt-edit-notes-row textarea.pt-control {
  height: 24px;
  min-height: 24px;
  padding: 0;
  overflow: hidden;
  resize: none;
  text-align: right;
  white-space: nowrap;
}
.pt-edit-work-form .pt-control::placeholder,
.pt-edit-title-input::placeholder {
  font: inherit;
}
.pt-edit-work-form .select-wrap::after {
  top: 50%;
  right: 2px;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-width: 0 1.5px 1.5px 0;
  opacity: 1;
}


/* Canonical modal navigation control */
.pt-modal-nav-icon {
  display: grid;
  width: var(--pt-tap-target);
  min-width: var(--pt-tap-target);
  height: var(--pt-tap-target);
  min-height: var(--pt-tap-target);
  box-sizing: border-box;
  padding: 4px;
  border: 0;
  appearance: none;
  place-items: center;
  justify-self: start;
  background: transparent;
  color: var(--pt-label);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pt-modal-nav-icon svg {
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  padding: 3px;
  border: 0.5px solid var(--pt-separator);
  border-radius: 50%;
  background: var(--pt-popover-bg);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--pt-nav-control-glyph-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

.pt-modal-nav-icon--trailing {
  justify-self: end;
}

.pt-modal-nav-icon--trailing svg {
  fill: currentColor;
  stroke: none;
}

.pt-modal-nav-icon--confirm {
  justify-self: end;
  color: var(--pt-confirm-control-glyph);
}
.pt-modal-nav-icon--confirm svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.pt-modal-nav-icon--confirm:not(:disabled) svg {
  border-color: var(--pt-confirm-control-fill);
  background: var(--pt-confirm-control-fill);
}

.pt-modal-nav-icon--confirm:disabled {
  color: var(--pt-tertiary-label);
  opacity: 1;
  cursor: default;
  pointer-events: none;
}

.pt-modal-nav-icon:active:not(:disabled) {
  opacity: 0.55;
}

/* Canonical log-card foundation */
.pt-log-card-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--pt-group-radius);
  background: var(--pt-group-bg);
  box-shadow: none;
  touch-action: pan-y;
}

.pt-log-card-shell + .pt-log-card-shell {
  margin-top: var(--pt-space-3);
}

.pt-log-card-surface {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: var(--pt-group-bg);
  color: var(--pt-label);
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.25,.1,.25,1), background-color 120ms ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.pt-log-card-surface:active,
.pt-log-card-surface.pressed {
  background: var(--pt-pressed-surface);
}

@media (prefers-reduced-motion: reduce) {
  .pt-log-card-surface {
    transition: none;
  }
}


/* Canonical horizontal swipe actions */
.pt-swipe {
  --pt-swipe-action-width: 82px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.pt-swipe-surface {
  position: relative;
  z-index: 2;
  touch-action: pan-y;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.pt-swipe.is-swipe-dragging .pt-swipe-surface {
  transition: none;
}

.pt-swipe-action {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  min-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

.pt-swipe.is-swipe-leading > .pt-swipe-action--leading,
.pt-swipe.is-swipe-trailing > .pt-swipe-action--trailing {
  opacity: 1;
  visibility: visible;
}

.pt-swipe.is-swipe-open.is-swipe-leading > .pt-swipe-action--leading,
.pt-swipe.is-swipe-open.is-swipe-trailing > .pt-swipe-action--trailing {
  pointer-events: auto;
}

.pt-swipe.is-swipe-armed .pt-swipe-action-icon {
  transform: scale(1.08);
}

.pt-swipe-action-icon {
  transition: transform 120ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .pt-swipe-action-icon {
    transition: none;
  }
}

/* Canonical Logs > Time list rows */
#timeList{width:100%;box-sizing:border-box;margin:0;padding:var(--pt-space-2) 0 var(--pt-space-6);background:transparent}
#timeList[hidden]{display:none}
#timeList .pt-time-log-delete{display:grid;grid-template-columns:minmax(0,1fr) 82px;grid-template-rows:22px 12px;place-items:center;align-content:center;row-gap:4px;background:var(--pt-red);color:#fff;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",sans-serif;cursor:pointer}
#timeList .pt-time-log-delete>*{grid-column:2}
#timeList .pt-time-log-action-icon,#timeList .pt-time-log-action-icon svg{display:block;width:22px;height:22px}
#timeList .pt-swipe-action-label{color:#fff;font-size:10px;font-weight:600;line-height:1;letter-spacing:-.01em;white-space:nowrap}
.pt-time-log-card{display:grid;min-height:104px;grid-template-columns:minmax(0,1fr) auto 7px;align-items:center;gap:var(--pt-space-3);padding:14px var(--pt-row-padding)}
.pt-time-log-main{display:flex;min-width:0;flex-direction:column;gap:5px}
.pt-time-log-date{color:var(--pt-secondary-label);font-size:13px;font-weight:600;line-height:1.15;letter-spacing:-.005em}
.pt-time-log-production{display:flex;min-width:0;align-items:baseline;gap:6px;color:var(--pt-label)}
.pt-time-log-production strong{color:var(--pt-blue);font-size:22px;font-weight:700;line-height:1;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.pt-time-log-production span{font-size:15px;font-weight:500;line-height:1.15}
.pt-time-log-progress{width:min(180px,100%);height:4px;overflow:hidden;border:0;border-radius:2px;appearance:none;background:var(--pt-pressed)}
.pt-time-log-progress::-webkit-progress-bar{border-radius:2px;background:var(--pt-pressed)}
.pt-time-log-progress::-webkit-progress-value{border-radius:2px;background:var(--pt-blue)}
.pt-time-log-progress::-moz-progress-bar{border-radius:2px;background:var(--pt-blue)}
.pt-time-log-meta{display:flex;min-width:0;align-items:baseline;gap:5px;overflow:hidden;color:var(--pt-secondary-label);font-size:12px;font-weight:400;line-height:1.2;white-space:nowrap}
.pt-time-log-meta-item{min-width:0;overflow:hidden;text-overflow:ellipsis}
.pt-time-log-meta-item strong{color:var(--pt-label);font-weight:600;font-variant-numeric:tabular-nums}
.pt-time-log-meta-separator,.pt-time-log-meta-empty{color:var(--pt-secondary-label)}
.pt-time-log-effective{display:flex;min-width:56px;flex-direction:column;align-items:flex-end;gap:3px;text-align:right}
.pt-time-log-effective strong{color:var(--pt-label);font-size:17px;font-weight:600;line-height:1.1;letter-spacing:-.018em;font-variant-numeric:tabular-nums}
.pt-time-log-effective span{color:var(--pt-secondary-label);font-size:11px;font-weight:500;line-height:1.1}
.pt-time-log-chevron{display:grid;width:7px;height:12px;place-items:center;color:var(--pt-secondary-label);opacity:.55}
.pt-time-log-chevron svg{display:block;width:7px;height:12px}
.pt-time-log-empty{border-radius:var(--pt-group-radius);background:var(--pt-group-bg)}
@media(max-width:380px){.pt-time-log-card{gap:var(--pt-space-2);padding-right:var(--pt-space-3);padding-left:var(--pt-space-3)}.pt-time-log-meta{font-size:11px}}

/* Canonical Work Updates surface */
.pt-update-list-panel,
.pt-update-detail {
  width: 100%;
}

.pt-update-list,
.pt-update-empty-group,
.pt-update-detail-card,
.pt-update-action {
  corner-shape: squircle;
}

.pt-update-list-panel > .pt-update-empty-group {
  margin-top: var(--pt-space-3);
}

.pt-update-row {
  min-height: 94px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.pt-update-action:focus-visible {
  z-index: 1;
  outline: 3px solid color-mix(in srgb, var(--pt-blue) 42%, transparent);
  outline-offset: -3px;
}

.pt-update-row-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}

.pt-update-row-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--pt-secondary-label);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.pt-update-row-category {
  overflow: hidden;
  color: var(--pt-blue);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-update-row-date,
.pt-update-row-separator {
  flex: 0 0 auto;
  color: var(--pt-secondary-label);
}

.pt-update-row-state {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--pt-pressed);
  color: var(--pt-secondary-label);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.pt-update-row-title {
  color: var(--pt-label);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -0.018em;
  overflow-wrap: anywhere;
}

.pt-update-row-summary {
  color: var(--pt-secondary-label);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.pt-update-row-chevron {
  display: grid;
  width: 8px;
  height: 14px;
  flex: 0 0 8px;
  place-items: center;
  color: var(--pt-secondary-label);
  opacity: 0.55;
}

.pt-update-row-chevron svg {
  display: block;
  width: 8px;
  height: 14px;
}

.pt-update-empty {
  display: flex;
  min-height: 210px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--pt-space-7) var(--pt-space-6);
  text-align: center;
}

.pt-update-empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: var(--pt-space-4);
  border-radius: 50%;
  background: color-mix(in srgb, var(--pt-blue) 12%, transparent);
  color: var(--pt-blue);
}

.pt-update-empty-icon svg {
  width: 25px;
  height: 25px;
}

.pt-update-empty strong {
  color: var(--pt-label);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.016em;
}

.pt-update-empty > span:last-child {
  max-width: 240px;
  margin-top: var(--pt-space-2);
  color: var(--pt-secondary-label);
  font-size: 15px;
  line-height: 1.35;
}

.main-menu-page .pt-update-detail-page .menu-page-content {
  padding-top: var(--pt-space-2);
}

.pt-update-detail > .menu-title-block {
  margin-top: 0;
  margin-bottom: var(--pt-space-4);
}

.pt-update-detail-meta {
  margin: var(--pt-space-2) 0 0;
  color: var(--pt-secondary-label);
  font: 500 15px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: -0.01em;
}

.pt-update-detail-card {
  margin: 0;
}

.pt-update-detail-message {
  margin: 0;
  padding: var(--pt-space-4) var(--pt-row-padding);
  color: var(--pt-label);
  font: 400 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.pt-update-action {
  display: flex;
  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: var(--pt-space-2);
  margin: var(--pt-space-4) 0 0;
  padding: 0 var(--pt-row-padding);
  border: 0;
  appearance: none;
  background: var(--pt-group-bg);
  color: var(--pt-blue);
  font: 600 17px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: -0.012em;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pt-update-action:active {
  background: var(--pt-pressed-surface);
}

.pt-update-action:disabled {
  opacity: 0.45;
}

.pt-update-action svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

@media (max-width: 380px) {
  .pt-update-row {
    padding-right: var(--pt-space-3);
    padding-left: var(--pt-space-3);
  }

  .pt-update-row-state {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}



/* Canonical anchored work-status menu — shared by cards and Work Details */
.pt-status-menu {
  z-index:2400;
  width:220px;
  padding:6px;
  border-color:color-mix(in srgb, var(--pt-separator) 80%, transparent);
  border-radius:18px;
  background:var(--pt-popover-bg);
  color:var(--pt-label);
  box-shadow:var(--pt-popover-shadow);
}
.pt-status-menu .pta-status-title {
  padding:7px 10px 8px;
  color:var(--pt-secondary-label);
  font:600 12px/1.2 var(--pt-font-text);
  letter-spacing:0;
}
.pt-status-menu .pta-status-option {
  position:relative;
  display:flex;
  width:100%;
  min-height:46px;
  box-sizing:border-box;
  align-items:center;
  padding:0 38px 0 12px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--pt-label);
  font:400 17px/1.2 var(--pt-font-text);
  letter-spacing:-.012em;
  text-align:left;
  -webkit-tap-highlight-color:transparent;
}
.pt-status-menu .pta-status-option + .pta-status-option {
  margin-top:2px;
}
.pt-status-menu .pta-status-option.current {
  font-weight:400;
}
.pt-status-menu .pta-status-option.current::after {
  content:"✓";
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  color:var(--pt-blue);
  font-size:17px;
  font-weight:700;
}
.pt-status-menu .pta-status-option:active,
.pt-status-menu .pta-status-option:focus-visible {
  outline:0;
  background:var(--pt-pressed);
}
.pt-status-menu .pta-status-option:disabled {
  color:var(--pt-secondary-label);
  opacity:.55;
  pointer-events:none;
}


/* Work Detail uses one structural navigation viewport for its full page surface. */
.pt-detail-sheet {
  padding-right: 0;
  padding-left: 0;
  transition: transform var(--pt-navigation-motion-duration) var(--pt-navigation-motion-curve);
}
.pt-detail-navigation-viewport {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  isolation: isolate;
}
.pt-detail-navigation-surface {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 0 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--pt-page-bg);
}
.pt-detail-navigation-surface > .pt-sheet-nav-bar {
  margin-right: calc(var(--pt-title-inset) - 4px);
  margin-left: calc(var(--pt-title-inset) - 4px);
}
.pt-detail-navigation-surface .work-sheet-scroll {
  position: relative;
  display: block;
  height: 0;
  min-height: 0;
  flex: 1 1 0;
  max-height: none;
  overscroll-behavior-y: auto;
}
.pt-detail-sheet .pt-detail-page {
  display: block;
  min-height: 0;
}
.pt-detail-sheet--page {
  min-height: 0;
}
.pt-detail-sheet--page .pt-detail-page.pt-sheet-subpage {
  min-height: 100%;
  box-sizing: border-box;
  color: var(--pt-label);
}
.pt-sheet-subpage--grouped {
  padding: var(--pt-sheet-record-gap) 0 max(var(--pt-sheet-content-gap), env(safe-area-inset-bottom, 0px));
}
.pt-sheet-subpage--editor {
  padding: 0;
}
.pt-sheet-subpage > .pt-subpage-stack {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.pt-sheet-subpage .pt-reconcile-save {
  display: none;
}
.pt-detail-transition-snapshot {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background: var(--pt-page-bg);
}
.pt-detail-navigation-active .pt-detail-page--incoming,
.pt-detail-navigation-active .pt-detail-page--outgoing {
  pointer-events: none;
  will-change: transform;
  transition: transform var(--pt-navigation-motion-duration) var(--pt-navigation-motion-curve);
}
.pt-detail-navigation-active[data-detail-direction="forward"] .pt-detail-page--incoming {
  z-index: 2;
  transform: translate3d(100%,0,0);
}
.pt-detail-navigation-active[data-detail-direction="forward"] .pt-detail-page--outgoing {
  z-index: 1;
  transform: translate3d(0,0,0);
}
.pt-detail-navigation-active[data-detail-direction="back"] .pt-detail-page--incoming {
  z-index: 1;
  transform: translate3d(-28%,0,0);
}
.pt-detail-navigation-active[data-detail-direction="back"] .pt-detail-page--outgoing {
  z-index: 2;
  transform: translate3d(0,0,0);
}
.pt-detail-navigation-active.pt-detail-transition-active .pt-detail-page--incoming {
  transform: translate3d(0,0,0);
}
.pt-detail-navigation-active.pt-detail-transition-active[data-detail-direction="forward"] .pt-detail-page--outgoing {
  transform: translate3d(-28%,0,0);
}
.pt-detail-navigation-active.pt-detail-transition-active[data-detail-direction="back"] .pt-detail-page--outgoing {
  transform: translate3d(100%,0,0);
}
.pt-detail-content-back .pt-detail-back-current,
.pt-detail-content-back .pt-detail-back-previous {
  pointer-events: none;
  transition: none;
  will-change: transform;
}
.pt-detail-content-back .pt-detail-back-current {
  z-index: 2;
}
.pt-detail-content-back .pt-detail-back-previous {
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .pt-detail-sheet,
  .pt-detail-navigation-active .pt-detail-page--incoming,
  .pt-detail-navigation-active .pt-detail-page--outgoing {
    transition: none !important;
  }
}

.pt-detail-sheet .work-sheet-scroll {
  scroll-padding-top:12px;
  scroll-padding-bottom:24px;
}
/* Canonical Work Detail QA flow */
.pt-qa-summary-value{display:inline-flex;align-items:baseline;gap:4px;color:var(--pt-label);font-variant-numeric:tabular-nums}
.pt-qa-summary-value small{color:var(--pt-secondary-label);font-size:14px;font-weight:550}
.pt-work-detail-qa-row.is-disputed .pt-qa-summary-value small{color:#d70015}
.pt-work-detail-qa-row.is-resolved .pt-qa-summary-value small{color:#248a3d}
.pt-qa-card{margin:0}
.pt-qa-card [hidden]{display:none!important}
.pt-qa-review{display:flex;flex-direction:column;gap:18px;padding:2px 0 8px}
.pt-qa-section{margin:0}
.pt-qa-section-label{margin:0 16px 7px;color:var(--pt-secondary-label);font-size:13px;font-weight:600;letter-spacing:.01em;text-transform:uppercase}
.pt-qa-scores{margin:0}
.pt-qa-scores .pt-field-row{min-height:54px}
.pt-qa-scores .pt-field-value{font-variant-numeric:tabular-nums}
.pt-qa-final-value{color:#248a3d}
.pt-qa-pending-value{color:#9a6700}
.pt-qa-actions{overflow:hidden}
.pt-qa-action-row{width:100%;border:0;background:transparent;text-align:left}
.pt-qa-action-row .pt-row-label{color:var(--pt-blue);font-weight:400}
.pt-qa-copy-section{padding:15px 17px;border-radius:18px;background:var(--pt-group-bg)}
.pt-qa-copy-section h4{margin:0 0 7px;color:var(--pt-secondary-label);font-size:14px;font-weight:600}
.pt-qa-copy-section p{margin:0;color:var(--pt-label);font-size:16px;font-weight:400;line-height:1.42;white-space:pre-wrap;overflow-wrap:anywhere}
.pt-qa-edit-section{overflow:hidden;border-radius:18px;background:var(--pt-group-bg)}
.pt-qa-edit-section>.pt-field-row{min-height:58px}
.pt-qa-edit-copy{display:flex;min-height:116px;box-sizing:border-box;flex-direction:column;gap:9px;padding:15px 17px;color:var(--pt-label);font-size:16px;font-weight:500}
.pt-qa-edit-copy+.pt-qa-edit-copy{border-top:.5px solid var(--pt-separator)}
.pt-qa-edit-copy .pt-control{width:100%;min-height:72px;box-sizing:border-box;resize:vertical;font-size:16px;line-height:1.4}
.pt-qa-percentage-field{display:flex;width:122px;margin-left:auto;align-items:center;justify-content:flex-end;color:var(--pt-secondary-label);font-variant-numeric:tabular-nums}
.pt-qa-percentage-field .pt-control{width:90px;padding-right:4px;text-align:right}
.pt-qa-correction-form{margin:0}
.pt-qa-correction-form .pt-field-group{margin:0}
.pt-qa-correction-form .pt-field-row{min-height:58px}
.pt-qa-correction-form .pt-qa-edit-section{display:flex;flex-direction:column}
.pt-qa-card button:disabled{opacity:.5}
@media (prefers-color-scheme:dark){
  .pt-work-detail-qa-row.is-disputed .pt-qa-summary-value small{color:#ff453a}
  .pt-work-detail-qa-row.is-resolved .pt-qa-summary-value small,.pt-qa-final-value{color:#30d158}
  .pt-qa-pending-value{color:#ffb340}
}

/* Canonical Work Detail subpage geometry */
.pt-sheet-subpage .pt-qa-review {
  gap: 0;
  padding: 0;
}
.pt-sheet-subpage .pt-qa-copy-section,
.pt-sheet-subpage .pt-qa-edit-section {
  border-radius: var(--pt-detail-group-radius);
  corner-shape: squircle;
}
.pt-sheet-subpage .pt-qa-scores .pt-field-row,
.pt-sheet-subpage .pt-qa-edit-section > .pt-field-row,
.pt-sheet-subpage .pt-reconcile-card .pt-field-row,
.pt-sheet-subpage .pt-reconcile-card .pt-choice-row {
  min-height: var(--pt-detail-row-height);
}
.pt-sheet-subpage .pt-qa-scored-view,
.pt-sheet-subpage .pt-qa-disputed-view {
  margin-right: var(--pt-page-gutter);
  margin-left: var(--pt-page-gutter);
}
.pt-sheet-subpage .pt-qa-edit-section {
  overflow: hidden;
}
.pt-sheet-subpage .pt-qa-edit-copy {
  border-radius: 0;
}
.pt-sheet-subpage .pt-qa-correction-form > .pt-detail-section {
  width: auto;
  margin-right: var(--pt-page-gutter);
  margin-left: var(--pt-page-gutter);
}
.pt-sheet-subpage .pt-detail-row > .pt-field-label {
  color: var(--pt-label);
  font: 400 17px/1.25 var(--pt-font-text);
  letter-spacing: -0.016em;
}

/* Canonical sheet navigation, record header, inset-detail rows, and editors */
.pt-sheet-nav-bar {
  position: relative;
  display: grid;
  height: 44px;
  min-height: 44px;
  grid-template-columns: var(--pt-tap-target) minmax(0, 1fr) var(--pt-tap-target);
  align-items: center;
  column-gap: 8px;
  margin: 0 -4px;
  padding: 0 2px;
}
.pt-sheet-nav-leading { grid-column: 1; justify-self: start; }
.pt-sheet-nav-title {
  grid-column: 2;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--pt-label);
  font: 600 17px/1.22 var(--pt-font-text);
  letter-spacing: -0.016em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-sheet-nav-action { grid-column: 3; justify-self: end; }

.pt-detail-content {
  display: block;
  min-height: 0;
  box-sizing: border-box;
  padding: var(--pt-sheet-record-gap) 0 max(var(--pt-sheet-content-gap), env(safe-area-inset-bottom, 0px));
  color: var(--pt-label);
}
.pt-record-header {
  display: block;
  margin: 0 calc(var(--pt-page-gutter) + var(--pt-detail-row-inset)) var(--pt-sheet-content-gap);
}
.pt-record-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.pt-record-property {
  margin-bottom: 2px;
  overflow: hidden;
  color: var(--pt-label);
  font: 600 22px/1.18 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  letter-spacing: -0.022em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-record-meta {
  overflow: hidden;
  color: var(--pt-label);
  font: 590 16px/1.22 var(--pt-font-text);
  letter-spacing: -0.016em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-record-address {
  min-width: 0;
  overflow: hidden;
  color: var(--pt-secondary-label);
  font: 400 15px/1.22 var(--pt-font-text);
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-record-date {
  color: var(--pt-secondary-label);
  font: 400 14px/1.22 var(--pt-font-text);
  letter-spacing: -0.006em;
  font-variant-numeric: tabular-nums;
}

.pt-detail-section {
  width: auto;
  margin: 0 var(--pt-page-gutter);
  border-radius: var(--pt-detail-group-radius);
  corner-shape: squircle;
}
.pt-detail-section + .pt-detail-section { margin-top: var(--pt-inset-section-gap); }

.pt-sheet-section-stack {
  display: grid;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pt-inset-section-gap);
  margin: 0;
  padding: 0;
}
.pt-sheet-section-stack > .pt-detail-section {
  margin-top: 0;
}

.pt-detail-row {
  min-height: var(--pt-detail-row-height);
  gap: 10px;
  padding: 0 var(--pt-detail-row-inset);
  font: 400 17px/1.25 var(--pt-font-text);
  letter-spacing: -0.016em;
}
.pt-detail-row + .pt-detail-row::before {
  right: 0;
  left: var(--pt-detail-row-inset);
}
.pt-detail-row .pt-row-label { font: inherit; }
.pt-detail-trailing {
  max-width: 65%;
  margin-left: auto;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}
.pt-detail-value {
  min-width: 0;
  margin-left: 0;
  color: var(--pt-secondary-label);
  font: 400 17px/1.25 var(--pt-font-text);
  letter-spacing: -0.016em;
  text-align: right;
}
.pt-work-info-card .pt-detail-value {
  max-width: 68%;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-detail-action {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pt-blue);
  font: 400 17px/1.25 var(--pt-font-text);
  text-align: right;
  white-space: nowrap;
}
.pt-detail-preview {
  overflow: hidden;
  color: var(--pt-secondary-label);
  font: 400 17px/1.25 var(--pt-font-text);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-work-detail-notes-card {
  box-sizing: border-box;
  padding: 0 var(--pt-detail-row-inset) 16px;
}
.pt-work-detail-notes-header {
  display: grid;
  min-height: 50px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
}
.pt-work-detail-notes-label {
  color: var(--pt-label);
  font: 400 17px/1.25 var(--pt-font-text);
  letter-spacing: -0.016em;
}
.pt-work-detail-notes-copy,
.pt-work-detail-notes-preview {
  margin: 0;
  border: 0;
  appearance: none;
  outline: 0;
  background: transparent;
  font: inherit;
}
.pt-work-detail-notes-copy {
  min-width: var(--pt-tap-target);
  min-height: var(--pt-tap-target);
  padding: 0 2px;
  color: var(--pt-blue);
  font: 400 17px/1.25 var(--pt-font-text);
  text-align: right;
}
.pt-work-detail-notes-preview {
  display: -webkit-box;
  width: 100%;
  max-height: calc(7 * 1.25em);
  padding: 0;
  overflow: hidden;
  color: var(--pt-secondary-label);
  font: 400 17px/1.25 var(--pt-font-text);
  overflow-wrap: anywhere;
  text-align: left;
  text-overflow: clip;
  white-space: pre-wrap;
  -webkit-box-align: start;
  -webkit-box-orient: vertical;
  -webkit-box-pack: start;
  -webkit-line-clamp: 7;
}

.pt-work-detail-notes-row.is-empty {
  min-height: var(--pt-detail-row-height);
}
.pt-work-detail-notes-row.is-empty > .pt-detail-action {
  margin-left: auto;
}

.pt-detail-row .pt-reconcile-current {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
}
.pt-status-capsule {
  display: inline-flex;
  min-height: 26px;
  box-sizing: border-box;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font: 600 14px/20px var(--pt-font-text);
  white-space: nowrap;
}
.pt-status-capsule.is-assigned { color: var(--pt-status-assigned); background: var(--pt-status-assigned-fill); }
.pt-status-capsule.is-on_site { color: var(--pt-status-on-site); background: var(--pt-status-on-site-fill); }
.pt-status-capsule.is-captured { color: var(--pt-status-captured); background: var(--pt-status-captured-fill); }
.pt-status-capsule.is-uploaded { color: var(--pt-status-uploaded); background: var(--pt-status-uploaded-fill); }

.pt-sheet-editor {
  padding: var(--pt-sheet-content-gap) var(--pt-page-gutter) max(var(--pt-sheet-content-gap), env(safe-area-inset-bottom, 0px));
}
.pt-text-editor {
  display: block;
  width: 100%;
  min-height: 184px;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--pt-detail-group-radius);
  appearance: none;
  resize: none;
  outline: 0;
  background: var(--pt-group-bg);
  color: var(--pt-label);
  font: 400 17px/1.42 var(--pt-font-text);
  letter-spacing: -0.012em;
  text-align: left;
  box-shadow: none;
  caret-color: var(--pt-blue);
}
.pt-text-editor::placeholder { color: var(--pt-secondary-label); }

.pt-detail-leading-action {
  min-width: var(--pt-tap-target);
  min-height: var(--pt-tap-target);
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--pt-blue);
  font: 400 17px/1 var(--pt-font-text);
}
.pt-context-menu {
  position: absolute;
  z-index: 12;
  top: 76px;
  right: 18px;
  width: 190px;
  overflow: hidden;
  border: .5px solid var(--pt-separator);
  border-radius: var(--pt-detail-group-radius);
  background: var(--pt-popover-bg);
  box-shadow: var(--pt-popover-shadow);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
.pt-context-menu button {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--pt-blue);
  font: 500 16px/1.2 var(--pt-font-text);
  text-align: left;
}
.pt-context-menu button:active { background: var(--pt-pressed); }
.pt-context-menu button.is-destructive { color: var(--pt-red); }

@media (max-width: 380px) {
  .pt-record-header { column-gap: 12px; }
}

/* Work sheet keyboard and safe-area refinements */
.pt-entry-sheet.is-keyboard-visible > .pt-detail-navigation-viewport,
.pt-entry-sheet.is-keyboard-visible > .work-sheet-scroll {
  /*
   * Reserve keyboard space inside the panel's content layout. The panel itself
   * remains full-height, so its opaque surface continues behind the keyboard.
   */
  margin-bottom:calc(var(--pt-keyboard-inset, 0px) + 8px);
}
.pt-entry-sheet.is-keyboard-visible .work-sheet-scroll {
  scroll-behavior:auto;
  overscroll-behavior-y:auto;
}

/* Pointally Insight Card — canonical iridescent status, goal, and recommendation card. */
.pt-insight-card {
  --pt-insight-a: #5e5ce6;
  --pt-insight-b: #0a84ff;
  --pt-insight-status: #5e5ce6;
  --pt-insight-bg-a: rgba(94,92,230,.13);
  --pt-insight-bg-b: rgba(10,132,255,.07);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 18px;
  border: .5px solid rgba(94,92,230,.28);
  border-radius: var(--pt-insight-radius, var(--home-radius, 27px));
  background:
    radial-gradient(circle at 92% 0%, rgba(100,210,255,.20), transparent 42%),
    linear-gradient(145deg, var(--pt-insight-bg-a), var(--pt-insight-bg-b) 52%, var(--pt-group-bg, var(--card, #fff)) 100%);
  box-shadow: 0 14px 38px rgba(50,50,120,.10), inset 0 1px 0 rgba(255,255,255,.36);
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.pt-insight-card--violet { --pt-insight-a:#5e5ce6; --pt-insight-b:#0a84ff; --pt-insight-status:#5e5ce6; --pt-insight-bg-a:rgba(94,92,230,.13); --pt-insight-bg-b:rgba(10,132,255,.07); }
.pt-insight-card--blue { --pt-insight-a:#0a84ff; --pt-insight-b:#64d2ff; --pt-insight-status:#0071e3; --pt-insight-bg-a:rgba(10,132,255,.13); --pt-insight-bg-b:rgba(100,210,255,.07); }
.pt-insight-card--green { --pt-insight-a:#30b0c7; --pt-insight-b:#34c759; --pt-insight-status:#248a3d; --pt-insight-bg-a:rgba(48,176,199,.13); --pt-insight-bg-b:rgba(52,199,89,.07); }
.pt-insight-card--gold { --pt-insight-a:#ff9f0a; --pt-insight-b:#ffd60a; --pt-insight-status:#9a6700; --pt-insight-bg-a:rgba(255,159,10,.13); --pt-insight-bg-b:rgba(255,214,10,.07); }
.pt-insight-card--rose { --pt-insight-a:#ff375f; --pt-insight-b:#af52de; --pt-insight-status:#d70015; --pt-insight-bg-a:rgba(255,55,95,.13); --pt-insight-bg-b:rgba(175,82,222,.07); }
.pt-insight-card--cyan { --pt-insight-a:#64d2ff; --pt-insight-b:#0a84ff; --pt-insight-status:#0071e3; --pt-insight-bg-a:rgba(100,210,255,.13); --pt-insight-bg-b:rgba(10,132,255,.07); }
.pt-insight-card--orange { --pt-insight-a:#ff9f0a; --pt-insight-b:#ff453a; --pt-insight-status:#c93400; --pt-insight-bg-a:rgba(255,159,10,.13); --pt-insight-bg-b:rgba(255,69,58,.07); }
.pt-insight-card--teal { --pt-insight-a:#30b0c7; --pt-insight-b:#5e5ce6; --pt-insight-status:#008996; --pt-insight-bg-a:rgba(48,176,199,.13); --pt-insight-bg-b:rgba(94,92,230,.07); }
.pt-insight-card--reports { --pt-insight-a:#5e5ce6; --pt-insight-b:#64d2ff; --pt-insight-status:#0a84ff; --pt-insight-bg-a:rgba(94,92,230,.12); --pt-insight-bg-b:rgba(100,210,255,.07); }
.pt-insight-card--violet.is-behind {
  --pt-insight-a: #af52de;
  --pt-insight-b: #5e5ce6;
  --pt-insight-status: #af52de;
}
.pt-insight-card.is-on-track,
.pt-insight-card.is-ahead {
  --pt-insight-a: #30b0c7;
  --pt-insight-b: #34c759;
  --pt-insight-status: #248a3d;
  border-color: rgba(52,199,89,.26);
  background:
    radial-gradient(circle at 92% 0%, rgba(100,210,255,.20), transparent 42%),
    linear-gradient(145deg, rgba(48,176,199,.13), rgba(52,199,89,.07) 52%, var(--card) 100%);
}
.pt-insight-card[role="link"],
button.pt-insight-card { cursor: pointer; }
.pt-insight-card[role="link"]:active,
button.pt-insight-card:active { transform: scale(.992); }
.pt-insight-card[role="link"]:focus-visible,
button.pt-insight-card:focus-visible { outline: 2px solid var(--pt-blue, var(--blue, #007aff)); outline-offset: 3px; }
.pt-insight-card__glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--pt-insight-a),var(--pt-insight-b));
  filter: blur(52px);
  opacity: .20;
  pointer-events: none;
  will-change: transform, opacity;
  animation: pt-insight-orbit 16s ease-in-out infinite;
}
.pt-insight-card__header,
.pt-insight-card__kicker,
.pt-insight-card__metrics {
  display: flex;
  align-items: center;
}
.pt-insight-card__header { justify-content: space-between; gap: 12px; }
.pt-insight-card__kicker {
  gap: 7px;
  color: var(--pt-label, var(--ink, #000));
  font-size: .91rem;
  font-weight: 750;
  letter-spacing: -.018em;
}
.pt-insight-card__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--pt-insight-a);
}
.pt-insight-card__icon svg { width: 21px; height: 21px; fill: currentColor; }
.pt-insight-card__badge {
  padding: 5px 9px;
  border: .5px solid color-mix(in srgb,var(--pt-insight-a) 30%,transparent);
  border-radius: 999px;
  background: color-mix(in srgb,var(--pt-insight-a) 10%,transparent);
  color: var(--pt-insight-status);
  font-size: .62rem;
  font-weight: 720;
  white-space: nowrap;
}
.pt-insight-card__statement {
  margin-top: 22px;
  color: var(--pt-insight-status);
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.pt-insight-card__answer { margin-top: 9px; }
.pt-insight-card__answer strong {
  display: block;
  color: var(--pt-label, var(--ink, #000));
  font-size: 1.9rem;
  font-weight: 790;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  line-height: 1;
}
.pt-insight-card__answer span {
  display: block;
  margin-top: 6px;
  color: var(--pt-secondary-label, var(--muted, #8e8e93));
  font-size: .72rem;
  font-weight: 560;
  line-height: 1.3;
}
.pt-insight-card__answer--primary {
  margin-top: 24px;
}
.pt-insight-card__answer--primary strong {
  font-size: 2.12rem;
  line-height: 1;
}
.pt-insight-card__answer--primary span {
  margin-top: 9px;
  font-size: .78rem;
  font-weight: 580;
}
.pt-insight-card__progress {
  position: relative;
  display: flex;
  height: 12px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(127,127,127,.14);
  box-shadow: inset 0 0 0 .5px rgba(127,127,127,.10);
}
.pt-insight-card__progress i {
  display: block;
  width: 0;
  height: 100%;
  flex: 0 0 auto;
  border-radius: inherit;
  background: linear-gradient(90deg,var(--pt-insight-a),var(--pt-insight-b));
  box-shadow: 0 0 14px color-mix(in srgb,var(--pt-insight-b) 48%,transparent);
  transition: width .5s cubic-bezier(.22,.8,.25,1);
}
.pt-insight-card__progress.has-planned.has-actual i:not(.is-planned) {
  border-radius: 999px 0 0 999px;
}
.pt-insight-card__progress i.is-planned {
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg,var(--pt-insight-b),var(--pt-insight-b));
  box-shadow: none;
  opacity: .48;
}
.pt-insight-card__progress.has-planned:not(.has-actual) i.is-planned {
  border-radius: inherit;
}
.pt-insight-card__metrics {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr)) auto;
  gap: 12px;
  margin-top: 15px;
}
.pt-insight-card__metrics > div b,
.pt-insight-card__metrics > div span { display: block; }
.pt-insight-card__metrics > div b {
  color: var(--pt-label, var(--ink, #000));
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
}
.pt-insight-card__metrics > div span {
  margin-top: 2px;
  color: var(--pt-secondary-label, var(--muted, #8e8e93));
  font-size: .58rem;
  white-space: nowrap;
}
.pt-insight-card__state {
  align-self: center;
  justify-self: end;
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb,var(--pt-insight-status) 12%,transparent);
  color: var(--pt-insight-status);
  font-size: .6rem;
  font-weight: 760;
  white-space: nowrap;
}
.pt-insight-card__guidance {
  display: grid;
  grid-template-columns: minmax(86px,.72fr) minmax(0,1.55fr);
  gap: 14px;
  margin-top: 18px;
  padding: 13px 14px;
  border: .5px solid color-mix(in srgb,var(--pt-insight-a) 18%,transparent);
  border-radius: 14px;
  background: color-mix(in srgb,var(--pt-insight-a) 7%,transparent);
}
.pt-insight-card__guidance[hidden] {
  display: none;
}
.pt-insight-card__guidance.pt-insight-card__guidance--route {
  grid-template-columns: minmax(0,1fr);
  gap: 0;
  padding: 15px 16px;
}
.pt-insight-card__guidance--route .pt-insight-card__guidance-next {
  padding-left: 0;
  border-left: 0;
}
.pt-insight-card__guidance--route .pt-insight-card__guidance-next strong {
  font-size: .86rem;
  line-height: 1.3;
}
.pt-insight-card__guidance--route .pt-insight-card__guidance-next small {
  margin-top: 8px;
  font-size: .57rem;
  line-height: 1.3;
}
.pt-insight-card__guidance-plan,
.pt-insight-card__guidance-next {
  min-width: 0;
}
.pt-insight-card__guidance-plan > *,
.pt-insight-card__guidance-next > * {
  display: block;
}
.pt-insight-card__guidance-plan span,
.pt-insight-card__guidance-next span {
  color: var(--pt-insight-status);
  font-size: .56rem;
  font-weight: 760;
  letter-spacing: .01em;
}
.pt-insight-card__guidance-plan strong {
  margin-top: 4px;
  color: var(--pt-label,var(--ink,#000));
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pt-insight-card__guidance-plan small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--pt-secondary-label,var(--muted,#8e8e93));
  font-size: .56rem;
  font-weight: 580;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-insight-card__guidance-next {
  padding-left: 14px;
  border-left: .5px solid color-mix(in srgb,var(--pt-insight-a) 20%,transparent);
}
.pt-insight-card__guidance-next strong {
  margin-top: 5px;
  color: var(--pt-label,var(--ink,#000));
  font-size: .76rem;
  font-weight: 720;
  line-height: 1.28;
}
.pt-insight-card__guidance-next small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--pt-secondary-label,var(--muted,#8e8e93));
  font-size: .52rem;
  font-weight: 560;
  line-height: 1.25;
}
.pt-insight-card__support {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: .5px solid color-mix(in srgb,var(--pt-insight-a) 18%,var(--line,rgba(60,60,67,.12)));
  color: var(--pt-secondary-label, var(--muted, #8e8e93));
  font-size: .63rem;
}
.pt-insight-card__support span {
  color: var(--pt-insight-status);
  font-weight: 760;
}
.pt-insight-card__support b {
  min-width: 0;
  overflow: hidden;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-insight-card__support strong {
  color: var(--pt-label, var(--ink, #000));
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pt-insight-card__footnote {
  margin-top: 9px;
  color: var(--pt-secondary-label, var(--muted, #8e8e93));
  font-size: .53rem;
  text-align: right;
}
@keyframes pt-insight-orbit {
  0%, 100% { transform: translate3d(-78%,-52%,0) scale(.94); opacity:.16; }
  25% { transform: translate3d(72%,-48%,0) scale(1.04); opacity:.23; }
  50% { transform: translate3d(78%,52%,0) scale(.98); opacity:.19; }
  75% { transform: translate3d(-72%,56%,0) scale(1.06); opacity:.24; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-insight-card__glow { animation: none; }
  .pt-insight-card__progress i { transition: none; }
}
@media (max-width:380px) {
  .pt-insight-card { padding: 16px; }
  .pt-insight-card__statement { font-size: 1.32rem; }
  .pt-insight-card__answer strong { font-size: 1.68rem; }
  .pt-insight-card__answer--primary strong { font-size: 1.92rem; }
  .pt-insight-card__guidance { grid-template-columns: 82px minmax(0,1fr); gap: 11px; padding: 12px; }
  .pt-insight-card__guidance-next { padding-left: 11px; }
  .pt-insight-card__metrics { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .pt-insight-card__state { grid-column: 1 / -1; justify-self: start; }
}

/* Pilot features are removed from layout, not visually covered. */
.pt-ally[hidden],
.pt-ally-premium[hidden] {
  display: none !important;
}

/* ===== Ask Ally — canonical primary destination ===== */
.pt-ally {
  --ally-cyan: #58e6ff;
  --ally-indigo: #7568ff;
  --ally-violet: #b354e8;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 24px 16px;
  border: .5px solid color-mix(in srgb, var(--ally-indigo) 34%, transparent);
  border-radius: 30px;
  color: var(--pt-label, var(--ink));
  box-shadow: 0 18px 48px color-mix(in srgb, var(--ally-indigo) 12%, transparent), inset 0 1px 0 rgba(255,255,255,.20);
}
.pt-ally-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0 2px 20px;
}
.pt-ally-character {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 10px 18px rgba(104, 110, 255, .24));
}
.pt-ally-character svg {
  width: 64px;
  height: 64px;
  overflow: visible;
}
.pt-ally-core,
.pt-ally-eye,
.pt-ally-spark,
.pt-ally-glint {
  transform-box: fill-box;
  transform-origin: center;
}
.pt-ally-aura {
  fill: rgba(92, 218, 255, .36);
}
.pt-ally-core {
  fill: url(#ptAllyCoreGradient);
  stroke: rgba(255,255,255,.66);
  stroke-width: .9;
}
.pt-ally-glint {
  fill: rgba(255,255,255,.74);
}
.pt-ally-eye {
  fill: #152036;
  transition: transform .18s ease;
}
.pt-ally-spark {
  fill: var(--ally-cyan);
  transform-origin: center;
}
.pt-ally-character[data-state="idle"] .pt-ally-core,
.pt-ally-character[data-state="answer"] .pt-ally-core {
  animation: ptAllyBreathe 4s ease-in-out infinite;
}
.pt-ally-character[data-state="listening"] .pt-ally-core {
  animation: ptAllyListen 1.1s ease-in-out infinite alternate;
}
.pt-ally-character[data-state="thinking"] .pt-ally-core {
  animation: ptAllyThink .76s ease-in-out infinite alternate;
}
.pt-ally-character[data-state="thinking"] .pt-ally-spark {
  animation: ptAllySpark .72s linear infinite;
}
.pt-ally-character[data-state="thinking"] .pt-ally-eye {
  transform: scaleY(.35);
}
.pt-ally-character[data-state="answer"] {
  filter: drop-shadow(0 0 18px rgba(88,230,255,.34));
}
.pt-ally-character[data-state="empty"] {
  filter: saturate(.7) drop-shadow(0 7px 14px rgba(104,110,255,.17));
}
.pt-ally-welcome {
  min-width: 0;
}
.pt-ally-title {
  margin: 0;
  color: var(--pt-label, var(--ink));
  font: 750 23px/1.08 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  letter-spacing: -.028em;
}
.pt-ally-intro {
  margin: 5px 0 0;
  color: var(--pt-secondary-label, var(--muted));
  font-size: 15px;
  line-height: 1.35;
}
.pt-ally-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 6px 6px 6px 16px;
  border: 0;
  border-radius: 20px;
  background: var(--pt-group-bg, var(--card));
  box-shadow: 0 8px 24px rgba(28, 31, 56, .08);
  transition: box-shadow .2s ease;
}
.pt-ally-composer:focus-within {
  box-shadow: 0 0 0 3px rgba(117,104,255,.09), 0 10px 28px rgba(28,31,56,.1);
}
.pt-ally-input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 0;
  outline: 0;
  padding: 0;
  color: var(--pt-label, var(--ink));
  background: transparent;
  font: 400 16px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-align: left;
  appearance: none;
}
.pt-ally-input::placeholder {
  color: var(--pt-tertiary-label, #a1a1a6);
}
.pt-ally-submit {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  color: #111827;
  background: linear-gradient(145deg, #8ff1ff, #8a79ff);
  box-shadow: 0 7px 16px rgba(100,110,255,.25);
}
.pt-ally-submit:active {
  transform: scale(.95);
}
.pt-ally-submit svg {
  width: 19px;
  height: 19px;
}
.pt-ally-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pt-ally-suggestion {
  min-height: 34px;
  padding: 7px 11px;
  border: .5px solid color-mix(in srgb, var(--ally-indigo) 35%, var(--pt-separator, #8e8e93));
  border-radius: 999px;
  color: var(--pt-secondary-label, var(--muted));
  background: color-mix(in srgb, var(--ally-indigo) 8%, var(--pt-group-bg, var(--card)));
  font: 650 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  white-space: nowrap;
}
.pt-ally-suggestion:active {
  color: var(--ally-indigo);
  background: color-mix(in srgb, var(--ally-indigo) 16%, var(--pt-group-bg, var(--card)));
}
.pt-ally-answer {
  margin-top: 20px;
  padding: 20px;
  overflow: hidden;
  border: .5px solid color-mix(in srgb, var(--ally-indigo) 32%, var(--pt-separator, #8e8e93));
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(88,230,255,.08), transparent 42%),
    var(--pt-group-bg, var(--card));
  box-shadow: 0 12px 30px rgba(28,31,56,.08);
  animation: ptAllyAnswerIn .3s ease both;
}
.pt-ally-answer[hidden] {
  display: none;
}
.pt-ally-answer-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--ally-violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.pt-ally-answer h3 {
  margin: 0;
  color: var(--pt-label, var(--ink));
  font: 760 clamp(28px, 7.5vw, 36px)/1.06 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  letter-spacing: -.038em;
}
.pt-ally-answer p {
  max-width: 42rem;
  margin: 10px 0 0;
  color: var(--pt-secondary-label, var(--muted));
  font-size: 16px;
  line-height: 1.45;
}
.pt-ally-answer-plan {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: .5px solid var(--pt-separator, rgba(60,60,67,.18));
}
.pt-ally-answer-plan span {
  color: var(--ally-violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pt-ally-answer-plan strong {
  color: var(--pt-label, var(--ink));
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}
.pt-ally-answer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  margin-top: 16px;
}
.pt-ally-answer-stat {
  min-width: 0;
  padding: 11px 9px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ally-indigo) 8%, transparent);
}
.pt-ally-answer-stat strong,
.pt-ally-answer-stat span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-ally-answer-stat strong {
  color: var(--pt-label, var(--ink));
  font-size: 18px;
}
.pt-ally-answer-stat span {
  margin-top: 2px;
  color: var(--pt-secondary-label, var(--muted));
  font-size: 11px;
  font-weight: 650;
}
@keyframes ptAllyBreathe {
  0%,100% { transform: scale(.97); }
  50% { transform: scale(1.025); }
}
@keyframes ptAllyListen {
  from { transform: scale(.98) rotate(-1deg); }
  to { transform: scale(1.035) rotate(1deg); }
}
@keyframes ptAllyThink {
  from { transform: scale(.95) rotate(-2deg); }
  to { transform: scale(1.035) rotate(2deg); }
}
@keyframes ptAllySpark {
  to { transform: rotate(360deg); }
}
@keyframes ptAllyAnswerIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 620px) {
  .pt-ally {
    max-width: 720px;
    margin-inline: auto;
  }
  .pt-ally-answer {
    padding: 24px;
  }
}
@media (prefers-color-scheme: dark) {
  .pt-ally-composer,
  .pt-ally-answer {
    background-color: rgba(27,28,32,.86);
  }
  .pt-ally-suggestion {
    background-color: rgba(35,36,43,.8);
  }
  .pt-ally-eye {
    fill: #111827;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pt-ally-core,
  .pt-ally-spark,
  .pt-ally-answer {
    animation: none !important;
  }
}


/* ===== Ally Premium preview ===== */
.pt-ally-premium {
  --ally-cyan: #58e6ff;
  --ally-indigo: #7568ff;
  --ally-violet: #b354e8;
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  margin: 6px auto 28px;
  padding: 34px 26px 26px;
  border: .5px solid color-mix(in srgb, var(--ally-indigo) 38%, transparent);
  border-radius: 30px;
  box-shadow: 0 22px 60px color-mix(in srgb, var(--ally-indigo) 15%, transparent), inset 0 1px 0 rgba(255,255,255,.20);
  color: var(--pt-label, var(--ink));
}
.pt-ally-premium-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  filter: drop-shadow(0 9px 20px color-mix(in srgb, var(--ally-indigo) 42%, transparent));
}
.pt-ally-premium-mark svg { width: 100%; height: 100%; overflow: visible; }
.pt-ally-premium-mark path:first-child { fill: var(--ally-indigo); }
.pt-ally-premium-mark circle { fill: color-mix(in srgb, #081023 82%, transparent); }
.pt-ally-premium-mark path:last-child { fill: var(--ally-cyan); }
.pt-ally-premium-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  margin-bottom: 13px;
  border: 1px solid color-mix(in srgb, var(--ally-cyan) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ally-indigo) 13%, transparent);
  color: color-mix(in srgb, var(--ally-cyan) 78%, var(--pt-label, #fff));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.pt-ally-premium h2 {
  margin: 0;
  font-size: clamp(32px, 9vw, 46px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.pt-ally-premium-intro {
  max-width: 560px;
  margin: 13px 0 25px;
  color: var(--pt-secondary-label, #9295a0);
  font-size: 17px;
  line-height: 1.45;
}
.pt-ally-premium-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ally-indigo) 20%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--pt-separator, #5a6070) 28%, transparent);
}
.pt-ally-premium-list > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 16px;
  background: color-mix(in srgb, var(--pt-group-bg, #fff) 90%, transparent);
}
.pt-ally-premium-list > div > span {
  color: var(--ally-cyan);
  font-size: 17px;
  line-height: 1.25;
}
.pt-ally-premium-list p { margin: 0; }
.pt-ally-premium-list strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
  line-height: 1.2;
}
.pt-ally-premium-list small {
  display: block;
  color: var(--pt-secondary-label, #9295a0);
  font-size: 14px;
  line-height: 1.35;
}
.pt-ally-premium-foot {
  margin: 18px 2px 0;
  color: var(--pt-secondary-label, #9295a0);
  font-size: 13px;
  line-height: 1.4;
}
@media (max-width: 430px) {
  .pt-ally-premium { padding: 28px 20px 22px; border-radius: 26px; }
  .pt-ally-premium-mark { width: 64px; height: 64px; margin-bottom: 18px; }
}
/* Monthly Pace ambient treatment, painted across the full Ally surface. */
@property --pt-ally-glow-a-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 12%;
}
@property --pt-ally-glow-a-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 14%;
}
@property --pt-ally-glow-b-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 88%;
}
@property --pt-ally-glow-b-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 86%;
}
.pt-ally,
.pt-ally-premium {
  background-color: var(--pt-group-bg, var(--card, #fff));
  background-image:
    radial-gradient(ellipse 72% 104% at var(--pt-ally-glow-a-x) var(--pt-ally-glow-a-y), rgba(88,230,255,.16) 0%, rgba(88,230,255,.07) 34%, transparent 74%),
    radial-gradient(ellipse 78% 110% at var(--pt-ally-glow-b-x) var(--pt-ally-glow-b-y), rgba(179,84,232,.15) 0%, rgba(117,104,255,.06) 36%, transparent 76%),
    linear-gradient(145deg, rgba(94,92,230,.11), rgba(10,132,255,.055) 52%, var(--pt-group-bg, var(--card, #fff)) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}
@media (prefers-reduced-motion: no-preference) {
  .pt-ally,
  .pt-ally-premium {
    animation: ptAllyAmbientSurface 18s ease-in-out infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pt-ally,
  .pt-ally-premium {
    animation: none;
  }
}
@keyframes ptAllyAmbientSurface {
  0%, 100% {
    --pt-ally-glow-a-x: 12%; --pt-ally-glow-a-y: 14%;
    --pt-ally-glow-b-x: 88%; --pt-ally-glow-b-y: 86%;
  }
  25% {
    --pt-ally-glow-a-x: 86%; --pt-ally-glow-a-y: 16%;
    --pt-ally-glow-b-x: 14%; --pt-ally-glow-b-y: 84%;
  }
  50% {
    --pt-ally-glow-a-x: 84%; --pt-ally-glow-a-y: 84%;
    --pt-ally-glow-b-x: 16%; --pt-ally-glow-b-y: 16%;
  }
  75% {
    --pt-ally-glow-a-x: 14%; --pt-ally-glow-a-y: 82%;
    --pt-ally-glow-b-x: 86%; --pt-ally-glow-b-y: 18%;
  }
}
@media (max-width: 430px) {
  .pt-ally { padding: 22px 16px; border-radius: 26px; }
}

/* ===== Canonical Insights hierarchy ===== */
#viewInsights {
  padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
}
.pt-insights-stack {
  display: grid;
  gap: 18px;
}
.pt-insights-month-nav {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 44px;
  align-items: center;
  gap: 8px;
}
.pt-insights-month-step,
.pt-insights-month-label {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin: 0;
  border: 0;
  color: var(--pt-label, var(--ink));
  background: transparent;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.pt-insights-month-step {
  border-radius: 50%;
  color: var(--pt-blue, var(--blue, #007aff));
}
.pt-insights-month-step svg {
  width: 8px;
  height: 14px;
}
.pt-insights-month-label {
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -.02em;
}
.pt-insights-month-step:active,
.pt-insights-month-label:active {
  background: var(--pt-pressed, var(--fill));
}
.pt-insights-card {
  --pt-insights-accent: #0a84ff;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  padding: 22px;
  border: .5px solid rgba(127,127,127,.13);
  border-radius: 27px;
  color: var(--pt-label, var(--ink));
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 28px rgba(0,0,0,.04);
  animation: none;
}
.pt-insights-card--ppd {
  --pt-insights-accent:#0a84ff;
}
.pt-insights-card--breakdown {
  --pt-insights-accent:#30b0c7;
}
.pt-insights-card--pace {
  --pt-insights-accent:#af52de;
}
.pt-insights-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
}
.pt-insights-card__header h2 {
  margin: 0;
  color: var(--pt-label, var(--ink));
  font-size: .94rem;
  font-weight: 760;
  letter-spacing: -.02em;
}
.pt-insights-card__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--pt-insights-accent);
}
.pt-insights-card__icon svg {
  width: 18px;
  height: 18px;
}
.pt-insights-card--ppd {
  padding: 18px 12px 15px;
}
.pt-production-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.pt-production-header h2,
.pt-production-header p {
  margin: 0;
}
.pt-production-header h2 {
  color: var(--pt-label, var(--ink));
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: -.025em;
}
.pt-production-header p {
  margin-top: 3px;
  color: var(--pt-secondary-label, var(--muted));
  font-size: .63rem;
  font-weight: 590;
}
.pt-production-summary {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pt-production-average {
  flex: 0 0 auto;
  text-align: right;
}
.pt-production-average strong,
.pt-production-average span {
  display: block;
}
.pt-production-average strong {
  color: var(--pt-label, var(--ink));
  font-size: 1.32rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  line-height: .95;
}
.pt-production-average span {
  margin-top: 4px;
  color: var(--pt-secondary-label, var(--muted));
  font-size: .54rem;
  font-weight: 720;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pt-production-expand {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--pt-blue, var(--blue));
  background: var(--pt-fill, var(--fill));
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), background-color .16s ease;
}
.pt-production-expand svg {
  width: 15px;
  height: 15px;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.pt-insights-card--ppd.is-expanded .pt-production-expand svg {
  transform: rotate(180deg);
}
.pt-production-expand:active {
  background: var(--pt-pressed, var(--line));
  transform: scale(.92);
}
.pt-production-week,
.pt-production-month-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  align-items: start;
}
.pt-production-week {
  gap: 0;
  max-height: 104px;
  margin-top: 14px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height .34s cubic-bezier(.2,.8,.2,1),
    margin .34s cubic-bezier(.2,.8,.2,1),
    opacity .2s ease,
    transform .34s cubic-bezier(.2,.8,.2,1);
}
.pt-insights-card--ppd.is-expanded .pt-production-week {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}
.pt-production-month-stage {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition:
    grid-template-rows .4s cubic-bezier(.2,.8,.2,1),
    margin .34s cubic-bezier(.2,.8,.2,1),
    opacity .24s ease;
}
.pt-production-month-stage > div {
  min-height: 0;
  overflow: hidden;
}
.pt-insights-card--ppd.is-expanded .pt-production-month-stage {
  grid-template-rows: 1fr;
  margin-top: 16px;
  opacity: 1;
}
.pt-production-weekdays,
.pt-production-month-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
}
.pt-production-weekdays {
  margin-bottom: 7px;
  color: var(--pt-tertiary-label, var(--muted));
  font-size: .48rem;
  font-weight: 740;
  letter-spacing: .04em;
  text-align: center;
}
.pt-production-month-grid {
  row-gap: 8px;
}
.pt-production-day {
  --pt-day-accent:#0a84ff;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--pt-label, var(--ink));
  background: transparent;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), filter .18s ease;
}
.pt-production-day[data-state="over"] { --pt-day-accent:#0a84ff; }
.pt-production-day[data-state="on"] { --pt-day-accent:#30d158; }
.pt-production-day[data-state="watch"] { --pt-day-accent:#ffcc00; }
.pt-production-day[data-state="low"] { --pt-day-accent:#ff3b30; }
.pt-production-day[data-state="empty"] { --pt-day-accent:var(--pt-secondary-label, var(--muted)); }
.pt-production-day.is-future {
  opacity: .42;
}
.pt-production-day:active {
  transform: scale(.91);
}
.pt-production-day.is-selected {
  filter: drop-shadow(0 4px 8px color-mix(in srgb,var(--pt-day-accent) 25%,transparent));
  transform: translateY(-2px);
}
.pt-production-ring {
  display: block;
  width: clamp(42px,12vw,52px);
  height: clamp(42px,12vw,52px);
}
.pt-production-ring__track,
.pt-production-ring__base,
.pt-production-ring__over {
  fill: none;
  transform: rotate(-90deg);
  transform-origin: 24px 24px;
}
.pt-production-ring__track {
  stroke: color-mix(in srgb,var(--pt-secondary-label, var(--muted)) 15%,transparent);
  stroke-width: 4;
}
.pt-production-ring__base,
.pt-production-ring__over {
  stroke: var(--pt-day-accent);
  stroke-linecap: round;
  transition: stroke-dasharray .3s cubic-bezier(.2,.8,.2,1), opacity .18s ease;
}
.pt-production-ring__base {
  stroke-width: 4;
}
.pt-production-ring__over {
  stroke: url(#ptPpdExceedInner);
  stroke-width: 2.8;
  opacity: 1;
}
.pt-production-day[data-state="low"] .pt-production-ring__base {
  filter: drop-shadow(0 0 2px rgba(255,59,48,.22));
}
.pt-production-day[data-state="watch"] .pt-production-ring__base {
  filter: drop-shadow(0 0 2px rgba(255,204,0,.22));
}
.pt-production-day[data-state="on"] .pt-production-ring__base {
  filter: drop-shadow(0 0 2px rgba(48,209,88,.22));
}
.pt-production-day[data-state="over"] .pt-production-ring__base {
  stroke: url(#ptPpdExceedGradient);
  filter: drop-shadow(0 0 3px rgba(94,92,230,.38));
}
.pt-production-day[data-state="over"] .pt-production-ring__over {
  filter: drop-shadow(0 0 3px rgba(100,210,255,.48));
}
.pt-production-ring-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.pt-production-ring__value {
  fill: var(--pt-label, var(--ink));
  font-size: 9.25px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.35px;
  text-anchor: middle;
}
.pt-production-day[data-state="empty"] .pt-production-ring__value {
  fill: var(--pt-tertiary-label, var(--muted));
}
.pt-production-day__weekday,
.pt-production-day__date {
  color: var(--pt-secondary-label, var(--muted));
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
}
.pt-production-day__weekday {
  font-size: .52rem;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.pt-production-day__date {
  font-size: .55rem;
}
.pt-production-day.is-selected .pt-production-day__weekday,
.pt-production-day.is-selected .pt-production-day__date {
  color: var(--pt-day-accent);
}
.pt-production-month-grid .pt-production-day {
  gap: 2px;
}
.pt-production-month-grid .pt-production-ring {
  width: clamp(38px,11vw,48px);
  height: clamp(38px,11vw,48px);
}
.pt-production-spacer {
  min-height: 53px;
}
.pt-production-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: .5px solid var(--pt-separator, var(--line));
  color: var(--pt-secondary-label, var(--muted));
  font-size: .62rem;
  font-weight: 620;
}
.pt-production-footer [data-state="ahead"] { color:#248a3d; }
.pt-production-footer [data-state="behind"] { color:#a86500; }
.pt-production-note {
  margin: 7px 0 0;
  color: var(--pt-tertiary-label, var(--muted));
  font-size: .56rem;
  font-weight: 560;
}
@media (prefers-reduced-motion: reduce) {
  .pt-production-week,
  .pt-production-month-stage,
  .pt-production-expand,
  .pt-production-expand svg,
  .pt-production-day,
  .pt-production-ring__base,
  .pt-production-ring__over {
    transition: none;
  }
}
.pt-insights-metrics {
  display: grid;
}
.pt-insights-metrics--primary {
  grid-template-columns: repeat(3,minmax(0,1fr));
  padding-bottom: 16px;
  border-bottom: .5px solid var(--pt-separator, var(--line));
}
.pt-insights-metrics--status {
  grid-template-columns: repeat(4,minmax(0,1fr));
  padding-top: 16px;
}
.pt-insights-metric {
  min-width: 0;
  text-align: center;
}
.pt-insights-metric + .pt-insights-metric {
  border-left: .5px solid var(--pt-separator, var(--line));
}
.pt-insights-metric strong,
.pt-insights-metric span,
.pt-insights-metric small {
  display: block;
}
.pt-insights-metric strong {
  overflow: hidden;
  color: var(--pt-label, var(--ink));
  font-size: .94rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-insights-metric span {
  margin-top: 4px;
  color: var(--pt-secondary-label, var(--muted));
  font-size: .66rem;
  font-weight: 650;
}
.pt-insights-metric small {
  margin-top: 3px;
  color: var(--pt-secondary-label, var(--muted));
  font-size: .57rem;
  font-weight: 550;
  line-height: 1.25;
}
.pt-insights-metric--points small {
  min-height: 2.5em;
}
.pt-insights-pace-answer strong,
.pt-insights-pace-answer span {
  display: block;
}
.pt-insights-pace-answer strong {
  color: var(--pt-label, var(--ink));
  font-size: 1.55rem;
  font-weight: 790;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.pt-insights-pace-answer span {
  margin-top: 8px;
  color: var(--pt-secondary-label, var(--muted));
  font-size: .78rem;
  font-weight: 540;
  line-height: 1.4;
}
.pt-insights-pace-route {
  margin-top: 16px;
  padding: 14px;
  border-radius: 17px;
  background: color-mix(in srgb,var(--pt-insights-accent) 8%,var(--pt-group-bg, var(--card)));
}
.pt-insights-pace-route span,
.pt-insights-pace-route strong,
.pt-insights-pace-route small {
  display: block;
}
.pt-insights-pace-route span {
  color: var(--pt-insights-accent);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pt-insights-pace-route strong {
  margin-top: 5px;
  color: var(--pt-label, var(--ink));
  font-size: .88rem;
  line-height: 1.3;
}
.pt-insights-pace-route small {
  margin-top: 5px;
  color: var(--pt-secondary-label, var(--muted));
  font-size: .64rem;
  line-height: 1.35;
}
.pt-insights-more .rpt-section-label {
  margin: 4px 0 10px;
}
#viewInsights .pt-insights-more .rpt-card {
  border: .5px solid rgba(127,127,127,.13);
  border-radius: 27px;
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 28px rgba(0,0,0,.04);
  animation: none;
}
#viewInsights .pt-insight-card__glow {
  display: none;
}
@media (max-width:390px) {
  .pt-insights-card { padding: 19px 17px; border-radius: 23px; }
  .pt-insights-metric strong { font-size: .86rem; }
}
