.ap-module,
.ap-module * {
  box-sizing: border-box;
}

.ap-module {
  --ap-green: #018241;
  --ap-green-900: #003f27;
  --ap-green-800: #005335;
  --ap-green-700: #006b3b;
  --ap-green-100: #dff3e8;
  --ap-green-50: #f2faf6;
  --ap-blue: #4a6fe3;
  --ap-blue-soft: #96aef7;
  --ap-blue-50: #eef2ff;
  --ap-ink: #10372b;
  --ap-copy: #526a61;
  --ap-line: #d6e4dd;
  --ap-surface: #ffffff;
  --ap-shadow: 0 24px 60px rgba(0, 63, 39, 0.12);
  color: var(--ap-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
}

.ap-module img {
  display: block;
  max-width: 100%;
}

.ap-module a {
  color: inherit;
}

.ap-module h1,
.ap-module h2,
.ap-module h3,
.ap-module p {
  margin-top: 0;
}

.ap-gallery-header {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 24px clamp(22px, 4vw, 42px) 18px;
  border: 0;
  background: transparent;
  color: var(--ap-ink);
}

.ap-gallery-heading {
  min-width: 0;
}

.ap-gallery-header h1,
.ap-gallery-header h2 {
  max-width: none;
  margin-bottom: 0;
  color: var(--ap-green-900);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.ap-gallery-introduction {
  max-width: none;
  margin: 8px 0 0;
  padding-bottom: 0;
}

.ap-gallery-introduction p {
  margin-bottom: 0;
  color: var(--ap-copy);
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.55;
}

.ap-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--ap-green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ap-gallery-header .ap-eyebrow,
.ap-detail-hero .ap-eyebrow {
  color: var(--ap-blue);
}

.ap-gallery-header .ap-eyebrow {
  margin-bottom: 6px;
}

.ap-eyebrow span {
  width: 28px;
  height: 2px;
  background: currentColor;
}

.ap-manage-link {
  display: inline-flex;
  position: relative;
  z-index: 2;
  align-items: center;
  margin-top: 22px;
  color: var(--ap-blue) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.ap-gallery-adminbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 9px clamp(22px, 5vw, 58px);
  border: 1px solid var(--ap-line);
  border-bottom: 0;
  background: #fff;
  color: var(--ap-copy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ap-gallery-adminbar .ap-manage-link {
  margin-top: 0;
  padding: 6px 10px;
  border: 1px solid #a8c8b8;
  border-radius: 3px;
  background: #fff;
  color: var(--ap-green-800) !important;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
}

.ap-gallery-adminbar .ap-manage-link:hover,
.ap-gallery-adminbar .ap-manage-link:focus-visible {
  border-color: var(--ap-green);
  outline: none;
  background: var(--ap-green);
  color: #fff !important;
}

.ap-detail-hero .ap-manage-link {
  color: var(--ap-blue-soft) !important;
}

.ap-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 14px clamp(22px, 4vw, 42px);
  border-right: 1px solid var(--ap-line);
  border-left: 1px solid var(--ap-line);
  background: #fff;
}

.ap-filter {
  appearance: none;
  padding: 8px 14px;
  border: 1px solid var(--ap-line);
  border-radius: 0;
  background: #fff;
  color: var(--ap-green-800);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
}

.ap-filter:hover,
.ap-filter:focus-visible,
.ap-filter.is-active {
  border-color: var(--ap-green);
  outline: none;
  background: var(--ap-green);
  color: #fff;
}

.ap-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 24px clamp(22px, 4vw, 42px) 54px;
  border-right: 1px solid var(--ap-line);
  border-left: 1px solid var(--ap-line);
  background: #fff;
}

.ap-project-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.78fr) minmax(0, 1.22fr);
  min-width: 0;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--ap-line);
  background: var(--ap-surface);
  box-shadow: 0 8px 24px rgba(0, 63, 39, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ap-project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 63, 39, 0.1);
}

.ap-project-card[hidden] {
  display: none;
}

.ap-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: var(--ap-green-800);
}

.ap-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.ap-project-card:hover .ap-card-media img {
  transform: scale(1.035);
}

.ap-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, var(--ap-green-900), var(--ap-green-700));
}

.ap-card-placeholder span {
  display: grid;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  place-items: center;
}

.ap-card-content {
  min-width: 0;
  padding: 20px clamp(20px, 2.5vw, 30px) 24px;
}

.ap-card-content h2,
.ap-widget-card h3 {
  margin: 10px 0 9px;
  color: var(--ap-green-900);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.ap-card-content h2 a,
.ap-widget-card h3 a {
  text-decoration: none;
}

.ap-card-content h2 a:hover,
.ap-widget-card h3 a:hover {
  color: var(--ap-blue);
}

.ap-card-content p,
.ap-widget-card p {
  color: var(--ap-copy);
}

.ap-card-content p {
  margin-bottom: 14px;
  line-height: 1.55;
}

.ap-card-terms,
.ap-term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ap-term {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 0;
  background: var(--ap-green-100);
  color: var(--ap-green-800) !important;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
}

a.ap-term:hover {
  background: var(--ap-blue-50);
  color: var(--ap-blue) !important;
}

.ap-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ap-blue) !important;
  font-weight: 800;
  text-decoration: none;
}

.ap-text-link:hover span {
  transform: translateX(3px);
}

.ap-text-link span {
  transition: transform 160ms ease;
}

.ap-empty,
.ap-no-results {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 58px clamp(24px, 6vw, 84px);
  border: 1px solid var(--ap-line);
  background: #fff;
}

.ap-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px clamp(24px, 5vw, 72px);
  border-bottom: 1px solid var(--ap-line);
  background: #fff;
  color: var(--ap-copy);
  font-size: 0.86rem;
}

.ap-breadcrumb a {
  color: var(--ap-green) !important;
  font-weight: 800;
}

.ap-project-detail {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  border: 1px solid var(--ap-line);
  background: #fff;
}

.ap-detail-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
}

.ap-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 6vw, 78px);
  background: var(--ap-green-900);
  color: #fff;
}

.ap-detail-copy h1 {
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(2.5rem, 4.35vw, 4.25rem);
  font-weight: 540;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.ap-detail-summary {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.ap-detail-primary {
  position: relative;
  min-height: clamp(400px, 34vw, 520px);
  margin: 0;
  overflow: hidden;
  background: var(--ap-green-100);
}

.ap-detail-primary img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.ap-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  padding: 1px;
  list-style: none;
  background: rgba(255, 255, 255, 0.2);
}

.ap-detail-facts li {
  padding: 15px;
  background: var(--ap-green-900);
}

.ap-detail-facts span,
.ap-detail-facts strong {
  display: block;
}

.ap-detail-facts span {
  color: var(--ap-blue-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ap-detail-facts strong {
  margin-top: 4px;
  color: #fff;
  font-size: 0.92rem;
}

.ap-draft-label {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 5px 9px;
  background: #fff4cf;
  color: #654b00;
  font-size: 0.76rem;
  font-weight: 800;
}

.ap-detail-layout {
  display: block;
  padding: clamp(48px, 6vw, 76px) clamp(28px, 5vw, 72px);
}

.ap-detail-layout.has-gallery {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(34px, 5vw, 72px);
}

.ap-detail-content-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 30px;
}

.ap-detail-body {
  padding-left: 26px;
  border-left: 4px solid var(--ap-green);
  color: var(--ap-copy);
  font-size: 1.05rem;
  line-height: 1.75;
}

.ap-detail-body h2 {
  margin: -4px 0 20px;
  color: var(--ap-green-900);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 580;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.ap-detail-body p:last-child {
  margin-bottom: 0;
}

.ap-detail-aside {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 22px;
  padding: 22px 24px;
  border-top: 4px solid var(--ap-blue);
  background: var(--ap-blue-50);
}

.ap-detail-aside h2 {
  margin: 0 0 10px;
  color: var(--ap-green-900);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ap-relationship-group {
  min-width: 0;
}

.ap-detail-gallery {
  min-width: 0;
  padding: 0;
  background: #fff;
}

.ap-detail-gallery .ap-section-heading h2 {
  margin-bottom: 18px;
  color: var(--ap-green-900);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 580;
  letter-spacing: -0.035em;
}

.ap-image-grid {
  display: block;
  column-count: 2;
  column-gap: 14px;
}

.ap-image-grid figure {
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--ap-line);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 63, 39, 0.06);
  break-inside: avoid;
}

.ap-image-grid figure:only-child {
  column-span: all;
}

.ap-image-grid img {
  width: 100%;
  height: auto;
}

.ap-image-grid figcaption {
  padding: 14px 18px;
  color: var(--ap-copy);
  font-size: 0.86rem;
}

.ap-detail-cta {
  display: flex;
  position: relative;
  z-index: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: clamp(38px, 5vw, 58px) clamp(24px, 6vw, 76px);
  border-top: 0;
  background: linear-gradient(125deg, var(--ap-green-900) 0%, var(--ap-green-800) 62%, #075b67 100%);
  color: #fff;
  text-align: center;
  flex-direction: column;
  isolation: isolate;
}

.ap-detail-cta::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(74, 111, 227, 0.18) 58% 73%, transparent 73%),
    linear-gradient(315deg, transparent 0 72%, rgba(255, 255, 255, 0.06) 72% 84%, transparent 84%);
  content: "";
}

.ap-detail-cta::after {
  position: absolute;
  z-index: -1;
  top: -150px;
  right: 8%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  content: "";
  transform: rotate(45deg);
}

.ap-detail-cta .ap-eyebrow {
  justify-content: center;
  margin-bottom: 10px;
  color: var(--ap-blue-soft);
}

.ap-detail-cta h2 {
  max-width: 780px;
  margin: 0 auto 10px;
  color: #fff;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.ap-detail-cta p {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
}

.ap-detail-cta .ap-button {
  min-height: 46px;
  padding: 11px 22px;
  border-color: #fff;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 32, 20, 0.2);
  color: var(--ap-green-900) !important;
}

.ap-detail-cta .ap-button:hover,
.ap-detail-cta .ap-button:focus-visible {
  border-color: var(--ap-blue-soft);
  outline: none;
  background: var(--ap-blue-50);
  color: var(--ap-blue) !important;
}

.ap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
}

.ap-button-primary {
  background: var(--ap-blue);
  color: #fff !important;
}

.ap-button-primary:hover {
  background: #3658c6;
}

.ap-button-secondary {
  border-color: var(--ap-green);
  background: #fff;
  color: var(--ap-green-800) !important;
}

.ap-widget {
  max-width: 1240px;
  margin: clamp(54px, 8vw, 96px) auto;
  padding: clamp(38px, 6vw, 70px);
  border-top: 5px solid var(--ap-green);
  background: var(--ap-green-50);
}

.ap-widget-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.ap-widget-heading h2 {
  margin-bottom: 10px;
  color: var(--ap-green-900);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.ap-widget-heading p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ap-copy);
}

.ap-widget-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ap-widget-card {
  overflow: hidden;
  border: 1px solid var(--ap-line);
  background: #fff;
}

.ap-widget-media {
  display: block;
  aspect-ratio: 14 / 9;
  overflow: hidden;
}

.ap-widget-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.ap-widget-card:hover .ap-widget-media img {
  transform: scale(1.035);
}

.ap-widget-card-copy {
  padding: 24px;
}

.ap-widget-card h3 {
  font-size: 1.25rem;
}

.ap-widget-compact .ap-widget-projects {
  display: block;
  border-top: 1px solid var(--ap-line);
}

.ap-widget-compact .ap-widget-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-width: 0 0 1px;
}

.ap-widget-compact .ap-widget-media {
  height: 100%;
}

.ap-configure {
  padding: 22px;
  border: 1px dashed var(--ap-blue);
  background: var(--ap-blue-50);
}

.ap-configure p {
  margin-bottom: 8px;
}

.ap-admin {
  max-width: 1460px;
  margin: 20px auto 70px;
  padding: 28px;
  background: #f6faf8;
}

.ap-admin-header,
.ap-admin-layout,
.ap-admin-utility {
  display: grid;
  gap: 28px;
}

.ap-admin-header {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 34px;
  background: var(--ap-green-900);
  color: #fff;
}

.ap-admin-header h1 {
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 520;
}

.ap-admin-header p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.ap-admin-layout {
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 1fr);
  margin-top: 28px;
}

.ap-admin-list,
.ap-admin-editor,
.ap-admin-utility > div,
.ap-admin-utility > span,
.ap-admin-utility > section {
  padding: 26px;
  border: 1px solid var(--ap-line);
  background: #fff;
}

.ap-admin-project {
  padding: 15px 0;
  border-bottom: 1px solid var(--ap-line);
}

.ap-admin-project strong,
.ap-admin-project span {
  display: block;
}

.ap-admin-project span {
  color: var(--ap-copy);
  font-size: 0.78rem;
}

.ap-admin-project-actions {
  display: flex;
  gap: 12px;
  margin-top: 7px;
  font-size: 0.84rem;
  font-weight: 800;
}

.ap-admin-project-actions a,
.ap-admin-project-actions input,
.ap-admin-project-actions span,
.ap-admin-project-actions button {
  color: var(--ap-blue) !important;
}

.ap-admin-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--ap-line);
}

.ap-admin-section h3 {
  color: var(--ap-green-800);
}

.ap-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ap-field-wide {
  grid-column: 1 / -1;
}

.ap-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ap-ink);
  font-weight: 800;
}

.ap-field input[type="text"],
.ap-field input[type="number"],
.ap-field textarea,
.ap-admin-utility textarea,
.ap-admin-form input[type="text"],
.ap-admin-form textarea,
.ap-admin-form select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #afc7bb;
  border-radius: 2px;
  background: #fff;
  color: #17382e;
  font: inherit;
}

.ap-field textarea,
.ap-admin-utility textarea,
.ap-admin-form textarea {
  min-height: 96px;
  resize: vertical;
}

.ap-field small,
.ap-admin-utility small,
.dnnFormHelp {
  display: block;
  margin-top: 5px;
  color: var(--ap-copy);
  font-size: 0.8rem;
}

.ap-check-field {
  align-self: end;
  padding: 12px;
  background: var(--ap-green-50);
}

.ap-field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--ap-ink);
  font-weight: 900;
}

.ap-page-relationships {
  padding: 18px;
  border: 1px solid var(--ap-line);
  border-left: 4px solid var(--ap-green);
  background: var(--ap-green-50);
}

.ap-page-choice-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ap-page-choice-groups fieldset {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #c9ddd3;
  background: #fff;
}

.ap-page-choice-groups legend {
  padding: 0 6px;
  color: var(--ap-green-800);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ap-page-choice-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-admin .ap-page-choice-list > li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-admin .ap-page-choice-list input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ap-green);
}

.ap-admin .ap-page-choice-list > li > label {
  display: block !important;
  float: none !important;
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.ap-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ap-admin-status {
  display: block;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-left: 4px solid var(--ap-green);
  background: var(--ap-green-100);
}

.ap-admin-status.is-error,
.ap-validation {
  color: #8a1c14;
}

.ap-admin-status.is-error {
  border-color: #b9382e;
  background: #fff0ee;
}

.ap-admin-utility {
  grid-template-columns: 1.35fr 0.65fr;
  margin-top: 28px;
}

.ap-admin-form .dnnFormItem {
  padding: 10px 0;
}

.ap-admin-form .dnnFormItem > label {
  font-weight: 800;
}

/* Project administration workspace */
.ap-admin {
  position: relative;
  max-width: 1500px;
  padding: 24px;
  background: #f4f8f6;
}

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

.ap-admin-header {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(118deg, var(--ap-green-900), #005939);
}

.ap-admin-header::after {
  position: absolute;
  right: -85px;
  top: -140px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(150, 174, 247, 0.25);
  border-radius: 50%;
  content: "";
}

.ap-admin-header > * {
  position: relative;
  z-index: 1;
}

.ap-admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  min-width: 310px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 29, 18, 0.2);
}

.ap-admin-summary div {
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.ap-admin-summary div:last-child {
  border-right: 0;
}

.ap-admin-summary strong,
.ap-admin-summary span {
  display: block;
}

.ap-admin-summary strong {
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.1;
}

.ap-admin-summary span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ap-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--ap-line);
  border-top: 0;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 63, 39, 0.07);
}

.ap-toolbar-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ap-admin-toolbar .ap-button {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 0.86rem;
}

.ap-button-icon::before {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  place-items: center;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1;
}

.ap-icon-add::before { content: "+"; }
.ap-icon-taxonomy::before { content: "⌘"; }
.ap-icon-import::before { content: "⇧"; }
.ap-icon-external::before { content: "↗"; }

.ap-button-quiet {
  color: var(--ap-blue) !important;
  background: transparent;
}

.ap-button-danger {
  border-color: #a92f25;
  background: #a92f25;
  color: #fff !important;
}

.ap-admin-workspace {
  margin-top: 22px;
  border: 1px solid var(--ap-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 15px 45px rgba(0, 63, 39, 0.06);
}

.ap-admin-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 28px 20px;
  border-bottom: 1px solid var(--ap-line);
}

.ap-section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--ap-green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ap-admin-list-heading h2,
.ap-modal-header h2 {
  margin-bottom: 0;
  color: var(--ap-green-900);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.ap-admin-filters {
  display: flex;
  gap: 10px;
}

.ap-search-field {
  position: relative;
}

.ap-search-field::before {
  position: absolute;
  left: 14px;
  top: 50%;
  color: var(--ap-copy);
  content: "⌕";
  font-size: 1.2rem;
  transform: translateY(-52%);
}

.ap-admin-filters input,
.ap-admin-filters select {
  min-height: 42px;
  border: 1px solid #b9cec4;
  border-radius: 3px;
  background: #fff;
  color: var(--ap-ink);
  font: inherit;
  font-size: 0.86rem;
}

.ap-admin-filters input {
  width: min(310px, 34vw);
  padding: 8px 12px 8px 39px;
}

.ap-admin-filters select {
  min-width: 145px;
  padding: 8px 32px 8px 11px;
}

.ap-project-table-head,
.ap-project-table-row {
  display: grid;
  grid-template-columns: minmax(290px, 2fr) minmax(160px, 0.9fr) 115px 68px minmax(210px, auto);
  gap: 18px;
  align-items: center;
}

.ap-project-table-head > *,
.ap-project-table-row > * {
  min-width: 0;
}

.ap-project-table-head {
  padding: 11px 28px;
  background: var(--ap-green-50);
  color: var(--ap-copy);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ap-project-table-row {
  min-height: 78px;
  padding: 13px 28px;
  border-top: 1px solid #e7efeb;
}

.ap-project-table-row:first-child {
  border-top: 0;
}

.ap-project-table-row:hover {
  background: #fbfdfc;
}

.ap-project-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.ap-project-initial {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 3px;
  place-items: center;
  padding: 0;
  background: var(--ap-green-100);
  color: var(--ap-green-800);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.ap-project-identity > div {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.ap-project-identity > div > strong,
.ap-project-identity > div > span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-project-identity strong {
  color: var(--ap-green-900);
  line-height: 1.3;
}

.ap-project-identity div > span,
.ap-project-location,
.ap-project-order {
  color: var(--ap-copy);
  font-size: 0.78rem;
}

.ap-project-location {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.ap-status-pill::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.ap-status-pill.is-published {
  background: #e0f4e8;
  color: #006b3b;
}

.ap-status-pill.is-draft {
  background: #f0f2f1;
  color: #5d6b65;
}

.ap-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 900;
}

.ap-admin .ap-row-actions .ap-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 34px !important;
  min-width: 34px !important;
  min-height: 30px;
  padding: 4px !important;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ap-blue) !important;
  font-size: 0 !important;
  text-decoration: none !important;
}

.ap-admin .ap-row-actions .ap-row-action::before {
  display: inline-grid;
  width: 18px;
  height: 18px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.ap-row-preview::before { content: "↗"; }
.ap-row-edit::before { content: "✎"; }
.ap-row-publish::before { content: "✓"; }
.ap-row-unpublish::before { content: "−"; }
.ap-row-delete::before { content: "×"; }

.ap-row-action:hover,
.ap-row-action:focus-visible {
  border-color: var(--ap-line);
  outline: none;
  background: #fff;
  text-decoration: none !important;
}

.ap-row-publish {
  color: var(--ap-green-700) !important;
}

.ap-row-unpublish {
  color: #8a5b00 !important;
}

.ap-row-delete {
  color: #a92f25 !important;
}

.ap-align-right { text-align: right; }

.ap-admin-empty,
.ap-admin-no-results {
  margin: 0;
  padding: 54px 28px;
  text-align: center;
}

.ap-admin-empty h3 {
  margin: 12px 0 6px;
  color: var(--ap-green-900);
}

.ap-admin-empty p,
.ap-admin-no-results {
  color: var(--ap-copy);
}

.ap-empty-icon {
  display: inline-grid;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  place-items: center;
  background: var(--ap-blue-50);
  color: var(--ap-blue);
  font-size: 1.6rem;
}

/* Accessible modal system */
.ap-modal[hidden] {
  display: none;
}

.ap-modal {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  display: grid;
  padding: 24px;
  overflow: auto;
  place-items: center;
}

.ap-modal-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 28, 18, 0.72);
  cursor: default;
}

.ap-modal-surface {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 35px 90px rgba(0, 28, 18, 0.36);
}

.ap-modal-medium { width: min(820px, calc(100vw - 48px)); }
.ap-modal-small { width: min(640px, calc(100vw - 48px)); }

.ap-modal-header {
  display: flex;
  flex: 0 0 auto;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--ap-line);
  background: #fff;
}

.ap-modal-header h2 {
  font-size: 1.55rem;
  line-height: 1.2;
}

.ap-modal-close {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--ap-line);
  border-radius: 50%;
  place-items: center;
  background: #fff;
  color: var(--ap-green-900);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.ap-editor-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 0 26px;
  border-bottom: 1px solid var(--ap-line);
  background: #f8fbf9;
}

.ap-editor-tabs button {
  position: relative;
  padding: 14px 16px 12px;
  border: 0;
  background: transparent;
  color: var(--ap-copy);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.ap-editor-tabs button[aria-selected="true"] {
  color: var(--ap-green-800);
}

.ap-editor-tabs button[aria-selected="true"]::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  background: var(--ap-green);
  content: "";
}

.ap-modal-body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 26px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}

.ap-editor-panel[hidden] { display: none; }

.ap-editor-panel,
.ap-form-grid,
.ap-field {
  min-width: 0;
}

/* DNN form skins can float labels and assign them a fixed column width. */
.ap-admin .ap-field > label {
  float: none !important;
  width: auto !important;
  max-width: 100%;
  padding: 0 !important;
}

.ap-panel-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(300px, 1fr);
  gap: 35px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--ap-green);
  background: var(--ap-green-50);
}

.ap-panel-intro h3,
.ap-panel-intro p {
  margin-bottom: 0;
}

.ap-panel-intro h3 { color: var(--ap-green-900); }
.ap-panel-intro p { color: var(--ap-copy); font-size: 0.88rem; }

/* Guided image uploads */
.ap-dropzone-file {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ap-image-dropzone {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 168px;
  padding: 24px;
  border: 2px dashed #9fc5b2;
  border-radius: 6px;
  background: linear-gradient(135deg, #fbfefc, var(--ap-green-50));
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.ap-image-dropzone.is-dragover {
  border-color: var(--ap-blue);
  background: var(--ap-blue-50);
  transform: translateY(-2px);
}

.ap-image-dropzone.has-error {
  border-color: #b9382e;
  background: #fff7f5;
}

.ap-image-dropzone.has-error::after {
  display: block;
  margin-top: 12px;
  color: #8a1c14;
  content: attr(data-ap-upload-error);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.ap-dropzone-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 116px;
  gap: 6px;
  color: var(--ap-copy);
  text-align: center;
}

.ap-dropzone-message strong,
.ap-dropzone-message small {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ap-dropzone-message strong {
  color: var(--ap-green-900);
  font-size: 1rem;
}

.ap-dropzone-message small {
  margin-top: 2px;
}

.ap-dropzone-action {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  max-width: 100%;
  gap: 0.35em;
}

.ap-dropzone-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin: 0 0 3px;
  border-radius: 50%;
  place-items: center;
  background: var(--ap-green-100);
  color: var(--ap-green-800);
  font-size: 1.25rem;
  font-weight: 900;
}

.ap-text-button,
.ap-generator-action,
.ap-upload-remove {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ap-blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ap-upload-previews {
  display: grid;
  gap: 8px;
}

.ap-image-dropzone.has-files .ap-dropzone-message {
  min-height: 70px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ap-line);
}

.ap-upload-preview {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--ap-line);
  border-radius: 4px;
  background: #fff;
}

.ap-upload-preview img {
  width: 64px;
  height: 50px;
  border-radius: 2px;
  object-fit: cover;
  background: var(--ap-green-50);
}

.ap-upload-preview-copy {
  min-width: 0;
}

.ap-upload-preview-copy strong,
.ap-upload-preview-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-upload-preview-copy strong {
  color: var(--ap-green-900);
  font-size: 0.8rem;
}

.ap-upload-preview-copy span {
  color: var(--ap-copy);
  font-size: 0.72rem;
}

.ap-upload-remove {
  color: #9b3128;
}

/* SEO/GEO editorial generator */
.ap-seo-generator {
  display: grid;
  grid-template-columns: minmax(230px, 0.36fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.ap-seo-scorecard {
  padding: 22px;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--ap-green-900), var(--ap-green-800));
  color: #fff;
}

.ap-completeness {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.ap-completeness strong,
.ap-completeness span {
  display: block;
}

.ap-completeness strong {
  color: #fff;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ap-completeness span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ap-seo-checks {
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.ap-seo-checks li {
  position: relative;
  margin: 10px 0;
  padding-left: 25px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  line-height: 1.4;
}

.ap-seo-checks li::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  place-items: center;
  content: "";
  font-size: 0.62rem;
  font-weight: 900;
}

.ap-seo-checks li.is-complete {
  color: #fff;
}

.ap-seo-checks li.is-complete::before {
  border-color: #74d7a1;
  background: #74d7a1;
  color: var(--ap-green-900);
  content: "✓";
}

.ap-generator-note {
  margin: 14px 0 0;
  color: var(--ap-copy);
  font-size: 0.76rem;
  line-height: 1.55;
}

.ap-seo-scorecard .ap-generator-note {
  color: rgba(255, 255, 255, 0.68);
}

.ap-seo-editor {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.ap-field-heading,
.ap-schema-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}

.ap-field-heading label {
  margin-bottom: 6px;
}

.ap-publish-options {
  gap: 10px;
}

.ap-serp-preview,
.ap-schema-generator {
  padding: 20px;
  border: 1px solid var(--ap-line);
  border-radius: 5px;
  background: #fff;
}

.ap-serp-preview {
  border-top: 4px solid var(--ap-blue);
  box-shadow: 0 12px 32px rgba(20, 55, 43, 0.06);
}

.ap-preview-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ap-green);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ap-serp-preview h4,
.ap-schema-generator h4 {
  margin: 0;
  color: var(--ap-green-900);
}

.ap-serp-preview h4 {
  color: #2459c4;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
}

.ap-preview-url {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #34604e;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-serp-preview p {
  margin: 8px 0 0;
  color: #4d5f58;
  font-size: 0.82rem;
  line-height: 1.5;
}

.ap-schema-generator {
  background: var(--ap-blue-50);
  border-color: #cdd8fb;
}

.ap-schema-types {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.ap-schema-types span {
  padding: 4px 9px;
  border: 1px solid #b8c8f7;
  border-radius: 999px;
  background: #fff;
  color: #3458bd;
  font-size: 0.68rem;
  font-weight: 900;
}

.ap-schema-types span[hidden] {
  display: none;
}

.ap-output-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-output-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ap-copy);
  font-size: 0.76rem;
}

.ap-output-list li::before {
  position: absolute;
  left: 0;
  color: var(--ap-green);
  content: "✓";
  font-weight: 900;
}

.ap-schema-generator details {
  margin-top: 18px;
  border-top: 1px solid #cdd8fb;
  padding-top: 13px;
}

.ap-schema-generator summary {
  color: var(--ap-green-900);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.ap-schema-generator pre {
  max-height: 320px;
  margin: 12px 0 0;
  padding: 14px;
  overflow: auto;
  border-radius: 3px;
  background: #0f2d24;
  color: #d8f4e5;
  font: 0.72rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}

.ap-modal-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 26px;
  border-top: 1px solid var(--ap-line);
  background: #f8fbf9;
}

.ap-modal-footer .ap-admin-actions {
  flex-wrap: nowrap;
  margin-top: 0;
}

.ap-modal-hint {
  color: var(--ap-copy);
  font-size: 0.78rem;
}

.ap-taxonomy-editor textarea {
  width: 100%;
  min-height: 340px;
  padding: 14px;
  border: 1px solid #afc7bb;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  resize: vertical;
}

.ap-taxonomy-editor small {
  display: block;
  margin-top: 8px;
  color: var(--ap-copy);
}

.ap-check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ap-check-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 30px;
  color: var(--ap-copy);
}

.ap-check-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  place-items: center;
  background: var(--ap-green-100);
  color: var(--ap-green-800);
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
}

.ap-modal-confirm {
  width: min(470px, calc(100vw - 48px));
  padding: 32px;
  text-align: center;
}

.ap-confirm-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  place-items: center;
  background: #fff0ee;
  color: #a92f25;
  font-size: 1.5rem;
  font-weight: 900;
}

.ap-modal-confirm h2 {
  margin-bottom: 9px;
  color: var(--ap-green-900);
}

.ap-modal-confirm p {
  margin-bottom: 0;
  color: var(--ap-copy);
}

.ap-modal-confirm .ap-admin-actions {
  justify-content: center;
  margin-top: 24px;
}

html.ap-modal-open,
html.ap-modal-open body {
  overflow: hidden !important;
}

@media (max-width: 980px) {
  .ap-project-grid,
  .ap-detail-hero,
  .ap-detail-layout,
  .ap-admin-layout,
  .ap-admin-utility {
    grid-template-columns: 1fr;
  }

  .ap-detail-hero {
    min-height: 0;
  }

  .ap-detail-layout.has-gallery {
    grid-template-columns: 1fr;
  }

  .ap-detail-primary {
    min-height: 420px;
  }

  .ap-widget-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-admin-header {
    grid-template-columns: 1fr;
  }

  .ap-admin-summary {
    width: 100%;
    max-width: 480px;
  }

  .ap-admin-list-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .ap-seo-generator {
    grid-template-columns: 1fr;
  }

  .ap-project-table {
    overflow-x: auto;
  }

  .ap-project-table-head,
  .ap-project-table-row {
    min-width: 1000px;
  }
}

@media (max-width: 700px) {
  .ap-project-grid,
  .ap-image-grid,
  .ap-widget-projects,
  .ap-form-grid {
    grid-template-columns: 1fr;
  }

  .ap-page-choice-groups {
    grid-template-columns: 1fr;
  }

  .ap-gallery-header {
    padding: 18px 18px 20px;
    background: transparent;
  }

  .ap-filters {
    padding: 12px 18px;
  }

  .ap-project-grid {
    gap: 14px;
    padding: 18px 18px 36px;
  }

  .ap-card-content {
    padding: 20px;
  }

  .ap-detail-layout {
    padding: 38px 20px;
  }

  .ap-detail-primary {
    min-height: 300px;
  }

  .ap-image-grid {
    column-count: 1;
  }

  .ap-project-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ap-card-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .ap-gallery-adminbar {
    justify-content: space-between;
    padding-right: 14px;
    padding-left: 14px;
  }

  .ap-detail-facts {
    grid-template-columns: 1fr;
  }

  .ap-widget-heading,
  .ap-admin-header {
    display: block;
  }

  .ap-admin-header .ap-button {
    margin-top: 22px;
  }

  .ap-widget-heading > .ap-text-link {
    margin-top: 18px;
  }

  .ap-widget-compact .ap-widget-card {
    grid-template-columns: 1fr;
  }

  .ap-field-wide {
    grid-column: auto;
  }

  .ap-admin {
    padding: 12px;
  }

  .ap-admin-toolbar,
  .ap-admin-list-heading,
  .ap-modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ap-toolbar-primary,
  .ap-admin-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ap-admin-toolbar .ap-button,
  .ap-admin-filters input,
  .ap-admin-filters select {
    width: 100%;
  }

  .ap-admin-summary {
    min-width: 0;
  }

  .ap-modal {
    padding: 10px;
  }

  .ap-modal-surface,
  .ap-modal-medium,
  .ap-modal-small,
  .ap-modal-confirm {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .ap-editor-tabs {
    padding: 0 10px;
    overflow-x: auto;
  }

  .ap-editor-tabs button {
    flex: 0 0 auto;
    padding-right: 12px;
    padding-left: 12px;
  }

  .ap-panel-intro {
    grid-template-columns: 1fr;
    gap: 8px;
  }


  .ap-output-list {
    grid-template-columns: 1fr;
  }

  .ap-upload-preview {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .ap-upload-preview img {
    width: 52px;
    height: 44px;
  }

  .ap-modal-footer .ap-admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-module *,
  .ap-module *::before,
  .ap-module *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
