/* Link previews belong outside the app; fields keep native selection/paste. */
html.eventrip-pull-enabled a[href],
body.partner-webview a[href] { -webkit-touch-callout: none; }
/* Replace WebKit's dark tap rectangle with a deliberate, subtle pressed state. */
:root body.partner-panel :is(a,button,summary,[data-context-card]) {
  -webkit-tap-highlight-color: transparent;
}
:root body.partner-panel .timeline-workbench .topic-row-link {
  border-radius: 8px;
  transition: background-color 120ms ease-out;
}
:root body.partner-panel .timeline-workbench .topic-row-link:active {
  background-color: #dcefe5;
}
:root body.partner-panel .timeline-workbench .topic-row-link:focus-visible {
  outline: 2px solid #07854d;
  outline-offset: 3px;
}
@media(prefers-reduced-motion:reduce) {
  :root body.partner-panel .timeline-workbench .topic-row-link { transition: none; }
}
/* A balanced toolbar: four actions become two equal rows on phones. */
:root body.partner-panel .timeline-settings-trigger {
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;
  width:44px;height:44px;padding:0;margin:0;border-radius:12px;
  border:1px solid #c9e5d7;background:#e5f3ed;color:#05613a;cursor:pointer;
}
.timeline-settings-trigger svg {width:21px;height:21px;pointer-events:none;}
:root body.partner-panel .timeline-settings-dialog .timeline-summary-toggle {
  display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;background:#f3f8f5;
}
:root body.partner-panel .timeline-settings-dialog .timeline-summary-toggle input {
  flex:0 0 18px;width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;
}
:root body.partner-panel .cashbook-head {flex-wrap:wrap;}
:root body.partner-panel .cashbook-head > div:first-child {flex:1 1 220px;}
:root body.partner-panel .cashbook-head .cash-setup-actions {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;
  align-items:stretch;min-width:0;flex:1 1 460px;
}
:root body.partner-panel .cashbook-head .cash-setup-actions:has(.cash-receipt-policy) {
  grid-template-columns:repeat(4,minmax(0,1fr));
}
:root body.partner-panel .cashbook-head .cash-setup-actions > :is(.btn,.cash-receipt-policy) {
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  width:100%;min-width:0;min-height:44px;margin:0;padding:10px 12px;
  gap:8px;border-radius:14px!important;font-size:13px!important;
  font-weight:500!important;line-height:1.35!important;text-align:center;
}
:root body.partner-panel .cashbook-head .cash-receipt-policy,
:root body.partner-panel .cashbook-head .cash-receipt-policy:has(input:checked) {
  background:#e5f3ed;border:1px solid #c9e5d7;color:#05613a;
}
:root body.partner-panel .cashbook-head .cash-receipt-policy input[type=checkbox] {
  flex:0 0 18px;width:18px!important;height:18px!important;min-height:18px!important;
  margin:0!important;padding:0!important;border:1.5px solid #7da58e!important;
  border-radius:5px!important;background:#fff!important;box-shadow:none!important;
}
:root body.partner-panel .cashbook-head .cash-receipt-policy input:checked {
  background:#07854d!important;border-color:#07854d!important;
}
:root body.partner-panel .cashbook-head .cash-receipt-policy input:checked::after {
  content:''!important;position:absolute;inset:2px auto auto 5px;
  width:5px;height:9px;border:solid white;border-width:0 2px 2px 0;
  transform:rotate(45deg);background:none!important;border-radius:0;
}
@media(max-width:800px) {
  :root body.partner-panel .cashbook-head {flex-direction:column;align-items:stretch;gap:14px;}
  :root body.partner-panel .cashbook-head > div:first-child {flex:0 0 auto;}
  :root body.partner-panel .cashbook-head .cash-setup-actions {width:100%;gap:8px;flex:0 0 auto;}
  :root body.partner-panel .cashbook-head .cash-setup-actions:has(.cash-receipt-policy) {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  :root body.partner-panel .cashbook-head .cash-setup-actions > :is(.btn,.cash-receipt-policy) {padding:10px 8px;}
}
/* Only the native app enables this gesture; desktop/browser behavior stays native. */
html.eventrip-pull-enabled {overscroll-behavior-y:none;}
[data-eventrip-pull-content] {translate:none;}
html.eventrip-pull-moving [data-eventrip-pull-content] {translate:0 var(--eventrip-pull-offset,0px);}
html.eventrip-pull-settling [data-eventrip-pull-content] {transition:translate 280ms cubic-bezier(.22,1,.36,1);}
.eventrip-pull-indicator {
  position:fixed;z-index:10000;top:0;left:50%;pointer-events:none;
  display:flex;align-items:center;justify-content:center;width:32px;height:32px;
  padding:0;border:0;background:transparent;color:#07854d;box-shadow:none;
  opacity:0;transform:translate(-50%,var(--eventrip-pull-indicator-offset,36px));
  transition:opacity 160ms;
}
.eventrip-pull-indicator.visible {opacity:var(--eventrip-pull-opacity,1);}
html.eventrip-pull-settling .eventrip-pull-indicator {transition:opacity 160ms,transform 280ms cubic-bezier(.22,1,.36,1);}
.eventrip-pull-indicator svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;}
.eventrip-pull-track {stroke:#dcebe3;}
.eventrip-pull-arc {transform:rotate(-90deg);transform-origin:50% 50%;stroke-dasharray:18 57;}
.eventrip-pull-indicator.busy svg {animation:eventrip-refresh-spin 1s linear infinite;}
.eventrip-pull-indicator.busy .eventrip-pull-arc {animation:eventrip-refresh-arc 1400ms ease-in-out infinite;}
.eventrip-qr-pending {opacity:.7;pointer-events:none;}
@keyframes eventrip-refresh-spin {to{rotate:360deg;}}
@keyframes eventrip-refresh-arc {
  0% {stroke-dasharray:4 57;stroke-dashoffset:0;}
  50% {stroke-dasharray:40 57;stroke-dashoffset:-12;}
  100% {stroke-dasharray:4 57;stroke-dashoffset:-56;}
}
@media(prefers-reduced-motion:reduce) {
  [data-eventrip-pull-content],.eventrip-pull-indicator {transition:none!important;}
  .eventrip-pull-indicator.busy svg,.eventrip-pull-indicator.busy .eventrip-pull-arc {animation:none;}
}
/* Native Profile page has its own app bar; keep only the bottom save action. */
body.partner-webview form.partner-profile-form[action$="place/profile"] > :is(.profile-public-tools, .panel-head) {
  display: none !important;
}
