/* ECM Park Services v3 — A26 shell polish pass v3.0.4-0004 */
:root {
  --ecm-sidebar-width: 246px;
  --ecm-secondary-width: 340px;
  --ecm-toolbar-height: 50px;
  --ecm-pane-border: color-mix(in srgb, var(--a26-separator, rgb(60 60 67 / .22)) 78%, transparent);
  --ecm-content-pad: clamp(18px, 2.2vw, 28px);
  --ecm-group-border: color-mix(in srgb, var(--a26-separator, rgb(60 60 67 / .18)) 82%, transparent);
  --ecm-row-selected: color-mix(in srgb, var(--a26-accent, #007aff) 94%, white 6%);
  color-scheme: light dark;
}

html, body { margin: 0; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgb(255 255 255 / .72), transparent 34rem),
    var(--a26-bg-app, #f5f5f7);
  color: var(--a26-text-primary, #111);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ecm-app-shell { min-height: 100dvh; overflow: hidden; }
.ecm-split {
  min-height: 100dvh;
  --a26-split-sidebar-width: var(--ecm-sidebar-width);
  --a26-split-secondary-width: var(--ecm-secondary-width);
  grid-template-columns: var(--ecm-sidebar-width) var(--ecm-secondary-width) minmax(0, 1fr);
}

.ecm-sidebar {
  position: relative;
  min-height: 100dvh;
  padding: 18px 12px 14px;
  border-inline-end: 1px solid var(--ecm-pane-border);
  background: color-mix(in srgb, var(--a26-bg-app, #f5f5f7) 72%, transparent);
  backdrop-filter: blur(30px) saturate(135%);
  -webkit-backdrop-filter: blur(30px) saturate(135%);
}
.a26-sidebar__header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 2px 14px;
}
.a26-sidebar__mark {
  inline-size: 30px;
  block-size: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: white;
  background: linear-gradient(145deg, var(--a26-accent, #007aff), color-mix(in srgb, var(--a26-accent, #007aff) 70%, #5ac8fa));
  box-shadow: 0 1px 3px rgb(0 0 0 / .12);
}
.a26-sidebar__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.02em;
}
.a26-sidebar__subtitle {
  margin: 1px 0 0;
  color: var(--a26-text-tertiary, rgb(60 60 67 / .58));
  font-size: 11px;
  line-height: 1.15;
}

.ecm-search {
  margin: 0 0 18px;
  height: 34px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--a26-fill-tertiary, rgb(120 120 128 / .12)) 72%, transparent);
}
.ecm-search:focus-within {
  border-color: color-mix(in srgb, var(--a26-accent, #007aff) 30%, transparent);
  background: color-mix(in srgb, var(--a26-fill-secondary, rgb(120 120 128 / .16)) 76%, transparent);
}
.ecm-search .a26-symbol { width: 15px; height: 15px; opacity: .64; }
.ecm-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--a26-text-primary, #111);
}
.ecm-search input::placeholder { color: var(--a26-text-tertiary, rgb(60 60 67 / .54)); }

.ecm-sidebar-nav { display: grid; gap: 14px; }
.a26-sidebar__section { display: grid; gap: 3px; }
.a26-sidebar__section-title {
  margin: 0 0 4px;
  padding: 0 8px;
  color: var(--a26-text-tertiary, rgb(60 60 67 / .56));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.2;
  text-transform: uppercase;
}
.ecm-sidebar-button,
.a26-sidebar__item.ecm-sidebar-button {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  column-gap: 9px;
  padding: 4px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--a26-text-primary, #111);
  text-align: left;
  font: inherit;
  cursor: default;
}
.ecm-sidebar-button:hover { background: var(--a26-fill-quaternary, rgb(120 120 128 / .08)); }
.ecm-sidebar-button[aria-selected="true"] {
  background: color-mix(in srgb, var(--a26-accent, #007aff) 12%, transparent);
  color: var(--a26-accent, #007aff);
  font-weight: 650;
}
.a26-sidebar__icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: currentColor;
}
.a26-sidebar__icon .a26-symbol { width: 15px; height: 15px; opacity: .86; }
.a26-sidebar__label {
  min-width: 0;
  display: block;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.a26-sidebar__footer { display: none; }

.ecm-pane {
  min-width: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--a26-bg-app, #f5f5f7) 88%, transparent);
}
.ecm-secondary { border-inline-end: 1px solid var(--ecm-pane-border); }
.ecm-tertiary { background: color-mix(in srgb, var(--a26-bg-app, #f5f5f7) 82%, transparent); }

.ecm-toolbar {
  min-height: var(--ecm-toolbar-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--ecm-pane-border);
  background: color-mix(in srgb, var(--a26-bg-app, #f5f5f7) 78%, transparent);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}
.ecm-toolbar .a26-toolbar__leading,
.ecm-toolbar .a26-toolbar__center,
.ecm-toolbar .a26-toolbar__trailing {
  display: flex;
  align-items: center;
  min-width: 0;
}
.ecm-toolbar .a26-toolbar__leading { gap: 8px; }
.a26-toolbar__title-stack { min-width: 0; }
.a26-toolbar__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
}
.a26-toolbar__subtitle {
  margin: 1px 0 0;
  color: var(--a26-text-secondary, rgb(60 60 67 / .68));
  font-size: 11px;
  line-height: 1.1;
}
.a26-toolbar-icon-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--a26-text-secondary, rgb(60 60 67 / .68));
}
.a26-toolbar-icon-button:hover { background: var(--a26-fill-quaternary, rgb(120 120 128 / .08)); }
.a26-toolbar-icon-button .a26-symbol { width: 16px; height: 16px; }
.a26-toolbar-button[disabled] { display: none; }
@media (min-width: 1101px) { .a26-split-back { display: none; } }

.ecm-pane-scroll {
  min-height: 0;
  overflow: auto;
  padding: var(--ecm-content-pad);
  display: grid;
  align-content: start;
  gap: 14px;
}
.ecm-secondary .ecm-pane-scroll { max-width: 420px; }
.ecm-tertiary .ecm-pane-scroll { max-width: 760px; width: min(100%, 760px); }

.ecm-hero,
.ecm-group,
.ecm-detail-card {
  padding: 18px;
  border: 1px solid var(--ecm-group-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--a26-bg-grouped-secondary, #fff) 76%, transparent);
  box-shadow: 0 1px 2px rgb(0 0 0 / .035), inset 0 1px 0 rgb(255 255 255 / .35);
}
.ecm-hero h3,
.ecm-group h3,
.ecm-detail-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.025em;
}
.ecm-hero p:not(.ecm-eyebrow),
.ecm-detail-card p:not(.ecm-eyebrow) {
  margin: 8px 0 0;
  color: var(--a26-text-secondary, rgb(60 60 67 / .68));
  font-size: 14px;
  line-height: 1.38;
}
.ecm-eyebrow {
  margin: 0 0 6px;
  color: var(--a26-text-tertiary, rgb(60 60 67 / .56));
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.ecm-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.a26-tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--a26-text-secondary, rgb(60 60 67 / .68));
  background: var(--a26-fill-tertiary, rgb(120 120 128 / .12));
  font-size: 11px;
  line-height: 1.2;
}
.a26-list { display: grid; }
.a26-list-row {
  position: relative;
  min-height: 48px;
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--a26-text-primary, #111);
  text-align: left;
  font: inherit;
}
.a26-list-row + .a26-list-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  right: 18px;
  height: 1px;
  background: var(--ecm-group-border);
}
.a26-list-row[data-selected="true"] {
  color: white;
  background: var(--ecm-row-selected);
}
.a26-list-row[data-selected="true"]::before,
.a26-list-row[data-selected="true"] + .a26-list-row::before { opacity: 0; }
.a26-list-row__leading {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ecm-group-border);
  border-radius: 7px;
  color: currentColor;
}
.a26-list-row[data-selected="true"] .a26-list-row__leading { border-color: rgb(255 255 255 / .42); }
.a26-list-row__leading .a26-symbol { width: 14px; height: 14px; }
.a26-list-row__content { min-width: 0; display: grid; gap: 1px; }
.a26-list-row__title {
  font-size: 14px;
  line-height: 1.15;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.a26-list-row__subtitle {
  color: var(--a26-text-secondary, rgb(60 60 67 / .68));
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.a26-list-row[data-selected="true"] .a26-list-row__subtitle { color: rgb(255 255 255 / .78); }
.a26-list-row__accessory { color: currentColor; opacity: .72; }
.a26-list-row__accessory .a26-symbol { width: 12px; height: 12px; }

.ecm-detail-card { padding: 22px; }
.ecm-detail-icon {
  inline-size: 42px;
  block-size: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--a26-accent, #007aff);
  border: 1px solid var(--ecm-group-border);
  border-radius: 10px;
}
.ecm-detail-icon .a26-symbol { width: 22px; height: 22px; }
.ecm-note-list {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  color: var(--a26-text-secondary, rgb(60 60 67 / .68));
  line-height: 1.45;
  font-size: 13px;
}

@media (prefers-color-scheme: dark) {
  body { background: var(--a26-bg-app, #101014); }
  .ecm-sidebar,
  .ecm-toolbar { background: color-mix(in srgb, var(--a26-bg-app, #101014) 72%, transparent); }
  .ecm-hero, .ecm-group, .ecm-detail-card {
    background: color-mix(in srgb, var(--a26-bg-grouped-secondary, #1c1c1e) 78%, transparent);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .055);
  }
}

@media (max-width: 1100px) {
  .ecm-split { grid-template-columns: var(--ecm-sidebar-width) minmax(0, 1fr); }
  .ecm-tertiary { border-inline-start: 1px solid var(--ecm-pane-border); }
}
@media (max-width: 760px) {
  .ecm-split { min-height: 100dvh; grid-template-columns: 100%; }
  .ecm-sidebar, .ecm-pane { min-height: 100dvh; }
  .ecm-secondary { border-inline-end: 0; }
  .ecm-pane-scroll { padding: 14px; }
  .ecm-sidebar { border-bottom: 0; }
  .ecm-section-header { align-items: stretch; flex-direction: column; }
}
