body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}
hr {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.5); /* subtle border */
}

a {
    color: #337ab7;
    text-decoration: none;
}

.bold {
    font-weight: bold;
}

.wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.sidebar {
    width: 250px;
    flex-shrink: 0;
}
.content {
    padding: 1rem;
    background-color: #ffffff; /* changed to white */
    width: 100%;
}
.sidebar-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}
.sidebar .dropdown-toggle {
    text-decoration: none !important;
}
.sidebar .nav-link svg,
.sidebar a span {
    text-decoration: none !important;
}
.sidebar a[data-bs-toggle="collapse"] span {
    text-decoration: none !important;
    border: none;
}
.sidebar a[data-bs-toggle="collapse"]:hover,
.sidebar a[data-bs-toggle="collapse"]:focus {
    text-decoration: none;
}
.sidebar a[data-bs-toggle="collapse"] {
    border-bottom: none !important;
}
.sidebar a[data-bs-toggle="collapse"] span {
    display: inline-block;
    text-decoration: none;
    border-bottom: none;
}
@media (max-width: 767px) {
    .section-info-box {
        padding: 1rem;
        display: block !important;
    }
    .section-info-box > div.d-flex {
        display: block !important;
    }
    .section-info-box > div.me-3,
    .section-info-box > div > div.me-3 {
        float: left;
        margin-right: 0.5rem !important;
        margin-bottom: 0.25rem;
    }
    .section-info-box::after,
    .section-info-box > div.d-flex::after {
        content: '';
        display: block;
        clear: both;
    }
    .section-info-box h5 ~ * {
        clear: left;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100%;
        background: #343a40;
        color: white;
        transition: left 0.3s ease-in-out;
        z-index: 1030;
    }
    .sidebar.show {
        left: 0;
    }
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        display: none;
        z-index: 1020;
    }
    .overlay.show {
        display: block;
    }
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}


/* Cards used when selecting a website design. */
.design-card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
}
.design-card-img-top {
  height: 180px;
  object-fit: cover;
  cursor: zoom-in;
}
.design-card-body {
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.design-card-content {
  flex-grow: 1;
  margin-bottom: 1rem;
}
.design-btn-select {
  border-radius: 50px;
  background-color: #e2e6ea;
  color: #495057;
  border: none;
  font-size: 0.9rem;
}
.design-btn-select:hover {
  background-color: #d6d8db;
  color: #343a40;
}
.design-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.design-modal-img {
  width: 100%;
  height: auto;
}
/* End website design cards */



.content-card {
  border: 1px solid rgba(0, 0, 0, 0.05); /* subtle border */
  background-color: #ffffff; /* changed to white */
}




.topbar-notice {
    background-color: #f4d9c1;
    color: #303030;
    padding: 1rem;
    border-bottom: 1px solid #f4d9c1;
}

.topbar-notice-btn {
    background-color: white;
    color: #303030;
    display: inline-block;
    font-weight: normal;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1px;
    padding-bottom: 3px;
    margin-top: 0.5rem;
    border: 1px solid #a0a0a0;
}
.topbar-notice-btn:hover {
    background-color: #28a745;
    color: white;
}
.topbar-notice-btn:active {
    background-color: #28a745 !important;
    color: white !important;
}





.section-info-box {
    background-color: #f8f9fa; /* light gray */
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.section-group-label {
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.75rem;
    margin-top: 1.75rem;
}
.section-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin-left: 0.6rem;
}
.section-group-label-toggle {
    text-decoration: none;
    cursor: pointer;
}
.section-group-label-toggle:hover {
    color: #6b7280;
}
.section-group-label-chevron {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}
.section-group-label-toggle:not(.collapsed) .section-group-label-chevron {
    transform: rotate(-180deg);
}

.section-info-box-icon {
    max-height: 40px;
    vertical-align: top;
}
.section-info-box-header {
    font-size: 18px;
}

.section-info-box-warning {
    background-color: #fbf1e8 !important;
}

.section-info-box-highlight {
    background-color: #fbf1e8 !important;
}


.section-info-box > h1 {
    text-transform: uppercase;
    font-size: 17px;
}




div.page-header {
    padding-bottom: 20px;
}

h1.page-header {
    font-size: 27px;
    font-weight: 700;
}
h2.page-header {
    font-size: 20px;
    font-weight: 700;
}


a.page-header {
    background-color: #ff677e;
    color: white;
}
a.page-header:hover {
    background-color: #cc677e;
    color: white;
}

#popup-message {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #333;
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: opacity 0.4s ease-in-out;
  z-index: 1000;
}

.breadcrumb-item {
    font-size: 14px;
    color: grey;
    font-weight: 600;
}

.breadcrumb-item > a {
    font-size: 14px;
    color: #005aa8;
    font-weight: 600;
}

  .hanging-list {
    list-style: disc;
    padding-left: 1.5em; /* space for bullet */
  }
  .hanging-list li {
    padding-left: 0.5em; /* space before text */
    text-indent: -0.5em; /* pulls first line back so bullet shows */
  }

  
.good-btn {
    background-color: #22c55e;
    color: white;
    display: inline-block;
    font-weight: bold;
    margin-top: 0.5rem;
    border-radius: 25px;
}
.good-btn:hover,
.good-btn:focus,
.good-btn:active,
.good-btn:focus-visible {
    background-color: #22c55e !important;
    color: white !important;
}

.good-btn-large {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 10px;
    padding-bottom: 10px;
}

.good-btn-cancel {
    background-color: #4a90e2 !important;
    color: white;
}
.good-btn-cancel:hover {
    background-color: #4a90e2 !important;
    color: white !important;
}
.good-btn-cancel:active {
    background-color: #4a90e2 !important;
    color: white !important;
}

.good-btn-view {
    background-color: #64748b !important;
    color: white;
}
.good-btn-view:hover,
.good-btn-view:focus,
.good-btn-view:active,
.good-btn-view:focus-visible {
    background-color: #64748b !important;
    color: white !important;
}

.good-btn-angry {
    background-color: #dc3545;
    color: white;
}
.good-btn-angry:hover {
    background-color: #dc3545 !important;
    color: white !important;
}
.good-btn-angry:active {
    background-color: #dc3545 !important;
    color: white !important;
}

.good-btn-warning {
    background-color: rgb(255, 193, 7);
    color: white;
}
.good-btn-warning:hover {
    background-color: rgb(255, 193, 7) !important;
    color: white !important;
}
.good-btn-warning:active {
    background-color: rgb(255, 193, 7) !important;
    color: white !important;
}
.good-btn-warning:focus {
    background-color: rgb(255, 193, 7) !important;
    color: white !important;
}
.good-btn-warning:focus-visible {
    background-color: rgb(255, 193, 7) !important;
    color: white !important;
}

.menu-icon {
    max-width: 15px;
    max-height: 15px;
    margin-right: 5px;
}

.back-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.85rem;
    border: 1px solid #e2e2e2;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease,
                color 0.15s ease, box-shadow 0.15s ease;
}
.back-pill:hover,
.back-pill:focus {
    background: #f6f6f6;
    border-color: #cfcfcf;
    color: #222;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}
.back-pill-arrow {
    display: inline-block;
    transition: transform 0.18s ease;
}
.back-pill:hover .back-pill-arrow,
.back-pill:focus .back-pill-arrow {
    transform: translateX(-3px);
}

.nav-item-active {
    background-color: rgba(255,255,255,0.12);
    border-radius: 0.25rem;
}

.design-screenshot {
    width: 100%;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.screenshot-img-overview-sm {
  object-fit: cover;
  cursor: zoom-in;
  border-radius: 10px;
  width: 100%;
}

.screenshot-img-overview-lg {
  height: 180px;
  object-fit: cover;
  cursor: zoom-in;
  border-radius: 10px;
}

.errorlist {
    margin-top: 15px;
    margin-bottom: 0px;
    padding-left: 0px;
    color: red;
    list-style-type: none;
}

.data-update-category {
    border: 1px solid rgba(0, 0, 0, 0.05); /* subtle border */
    background-color: aliceblue;
    font-weight: bold;
}

.data-update-page {
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #fffaf0; /* cream */
    font-weight: bold;
}

.data-update-list {
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #f0fdf4; /* mint */
}

.design-price-section {
    margin-bottom: 10px;
    font-size: 0.8em;
}

.design-price-free {
    color: #28a745;
}

.section-info-box-link {
    text-decoration: none;
    color: inherit;
}

/* Filesystem-style pages list */
.pages-fs-list {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}
.pages-fs-row {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  transition: background 0.1s;
}
.pages-fs-row:last-child {
  border-bottom: none;
}
.pages-fs-row:hover {
  background: #f8f9fa;
}
.pages-fs-row--disabled {
  opacity: 0.55;
}
.pages-fs-row--default {
  background: #fafafa;
}
.pages-fs-row--available {
  background: #fafafa;
}
.pages-fs-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 1.4rem;
  text-align: center;
  opacity: 0.7;
}
.pages-fs-path {
  flex: 0 0 auto;
  min-width: 110px;
}
.pages-fs-path code {
  font-size: 0.82rem;
  color: #212529;
}
.pages-fs-meta {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-width: 0;
}
.pages-fs-label {
  font-size: 0.82rem;
  color: #495057;
}
.pages-fs-badge {
  font-size: 0.62rem !important;
  padding: 0.2em 0.5em !important;
}
.pages-fs-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.pages-fs-actions .good-btn {
  margin-top: 0;
}
.pages-fs-empty {
  padding: 1.5rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
}
@media (max-width: 576px) {
  .pages-fs-row {
    flex-wrap: wrap;
  }
  .pages-fs-path {
    min-width: 0;
    flex: 1;
  }
  .pages-fs-actions {
    width: 100%;
    padding-left: 2.15rem;
  }
}

/* ── Section header (icon + title + description) ─────────── */
.section-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2.25rem 0 1rem;
}
.section-head-icon {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 0.65rem;
  background: #eef2f7;
  color: #475569;
}
.section-head-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin: 0;
}
.section-head-desc {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0.1rem 0 0;
  line-height: 1.3;
}

/* ── Category banner (Your websites / Menu) ──────────────── */
.kv-cat-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem 1.1rem 1.6rem;
  background: #fbf1e8;
  border-radius: 1rem;
  margin-bottom: 1.75rem;
  overflow: hidden;
  flex-wrap: wrap;
}
.kv-cat-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: #ff9a55;
}
.kv-cat-header::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 160px;
  height: 160px;
  background: #ffd9bd;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.7;
}
.kv-cat-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 0.7rem;
  background: #fff;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
}
.kv-cat-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.kv-cat-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6e3a17;
  margin-bottom: 0.2rem;
}
.kv-cat-title {
  font-weight: 800;
  font-size: 1.4rem;
  color: #1f1d1c;
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.kv-cat-blurb {
  font-size: 0.95rem;
  color: #4a4543;
  line-height: 1.4;
  margin: 0;
  max-width: 48rem;
}
.kv-cat-cta {
  flex-shrink: 0;
  background: #22c55e;
  color: #fff !important;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
  transition: background 0.15s ease, transform 0.15s ease;
}
.kv-cat-cta:hover, .kv-cat-cta:focus, .kv-cat-cta:active {
  background: #1aa84d;
  color: #fff !important;
  transform: translateY(-1px);
}
@media (max-width: 575px) {
  .kv-cat-header { padding: 1rem 1.1rem 1rem 1.3rem; gap: 0.85rem; }
  .kv-cat-icon { width: 52px; height: 52px; padding: 8px; }
  .kv-cat-title { font-size: 1.2rem; }
  .kv-cat-blurb { font-size: 0.88rem; }
  .kv-cat-cta { width: 100%; justify-content: center; }
}

/* ── Page list header bar ────────────────────────────────── */
.page-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.page-list-head-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}
.page-list-head-title .bi {
  color: #94a3b8;
}
.page-list-head-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  background: #eef2f7;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  white-space: nowrap;
}
.page-list-head-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.page-list-add-btn.good-btn {
  margin-top: 0;
}

/* ── Title-led page list (manage routes) ─────────────────── */
.page-list {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.page-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.12s ease;
}
.page-row:last-child {
  border-bottom: none;
}
.page-row:hover {
  background: #f9fafb;
}
.page-row--hidden {
  opacity: 0.6;
}
.page-row-icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  color: #475569;
  background: #f1f5f9;
  border-radius: 0.6rem;
}
.page-row-main {
  flex: 1;
  min-width: 0;
}
.page-row-titleline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.page-row-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: #111827;
  line-height: 1.3;
  word-break: break-word;
}
.page-row-type {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4b5563;
  background: #eef2f7;
  border-radius: 999px;
  padding: 0.16em 0.6em;
  white-space: nowrap;
}
.page-row-flag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  padding: 0.16em 0.6em;
  white-space: nowrap;
}
.page-row-url {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.08rem 0.45rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 0.35rem;
  text-decoration: none;
  word-break: break-all;
  transition: background 0.12s ease, color 0.12s ease;
}
.page-row-url:hover {
  color: #334155;
  background: #e2e8f0;
}
.page-row-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.page-row-primary.good-btn {
  margin-top: 0;
}
/* Segmented up/down reorder control (edit menu) */
.menu-move {
  display: inline-flex;
}
.menu-move form {
  margin: 0;
  display: inline-flex;
}
.menu-move-btn {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.menu-move form:first-child .menu-move-btn {
  border-radius: 0.5rem 0 0 0.5rem;
}
.menu-move form:last-child .menu-move-btn {
  border-radius: 0 0.5rem 0.5rem 0;
  border-left: none;
}
.menu-move-btn:hover:not(:disabled) {
  background: #eef2f7;
  color: #111827;
}
.menu-move-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.page-row-menu-btn {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #6b7280;
  border: none;
  background: transparent;
  font-size: 1.05rem;
}
.page-row-menu-btn:hover,
.page-row-menu-btn:focus,
.page-row-menu-btn[aria-expanded="true"] {
  background: #eef2f7;
  color: #111827;
}
.page-row-menu .dropdown-item {
  font-size: 0.88rem;
  display: flex;
  align-items: center;
}
.page-list-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}
@media (max-width: 576px) {
  .page-row {
    padding: 0.6rem 0.7rem;
    gap: 0.65rem;
  }
  .page-row-icon {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.05rem;
  }
  .page-row-primary.good-btn {
    padding: 0.28rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Advanced details/summary toggle for custom HTML add form */
.add-advanced-summary {
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  color: #6b7280;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.add-advanced-summary::-webkit-details-marker { display: none; }
.add-advanced-summary::before {
  content: '▶';
  font-size: 0.65rem;
  transition: transform 0.15s;
}
details[open] > .add-advanced-summary::before {
  transform: rotate(90deg);
}
.add-advanced-summary:hover {
  color: #374151;
}

/* Page type selector cards (add custom page form) */
.page-type-option {
  cursor: pointer;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 16px;
  flex: 1;
  min-width: 160px;
  max-width: 300px;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.page-type-option:hover {
  border-color: #adb5bd;
}
.page-type-option--active {
  border-color: #22c55e;
  background: #f0fdf4;
}

/* ── Add-a-page card grid ─────────────────────────────────── */
.add-page-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.add-page-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.7rem;
  padding: 1.1rem 1.15rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  margin: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.add-page-card:hover {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.add-page-card:focus-within {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.add-page-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.add-page-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: 0.55rem;
  line-height: 1;
}

.add-page-card-title {
  flex: 1;
  min-width: 0;
}

.add-page-card-label {
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
  margin-bottom: 0.15rem;
  line-height: 1.25;
}

.add-page-card-desc {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.4;
}

.add-page-card-input-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.35rem;
  margin-top: auto;
}

.add-page-card-input-row {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}

.add-page-card-input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
}

.add-page-card-btn {
  flex-shrink: 0;
  margin-top: 0;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

/* ── Advanced toggle (custom HTML) ────────────────────────── */
.add-advanced {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  background: #fafbfc;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 0.55rem;
  padding: 0.75rem 1rem;
}

.add-advanced[open] {
  background: #f8f9fa;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.12);
  padding: 0.85rem 1.15rem 1.1rem;
}

.add-advanced--inline {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 0;
}

.add-advanced-summary-v2 {
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #4b5563;
  font-weight: 500;
}
.add-advanced-summary-v2::-webkit-details-marker { display: none; }

.add-advanced-summary-v2:hover {
  color: #111827;
}

.add-advanced-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.18em 0.55em;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.add-advanced-summary-text {
  flex: 1;
  min-width: 0;
}

.add-advanced-chevron {
  font-size: 0.65rem;
  color: #9ca3af;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.add-advanced[open] > .add-advanced-summary-v2 .add-advanced-chevron {
  transform: rotate(90deg);
}

.add-advanced-body {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.add-advanced-help {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.85rem;
}

@media (max-width: 480px) {
  .add-page-card-input-row {
    flex-direction: column;
  }
  .add-page-card-btn {
    width: 100%;
  }
}

/* Floating action bar shown at the bottom of edit / list management pages */
.update-actions-bar {
  position: fixed;
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  left: 1rem;
  right: 1rem;
  margin: 0 auto;
  width: fit-content;
  max-width: calc(100vw - 2rem);
  background: #fff;
  padding: 0.5rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.update-actions-bar > .btn,
.update-actions-bar > .good-btn {
  margin-top: 0;
}
.update-actions-bar-spacer {
  /* leave room above the floating bar so the last content isn't hidden */
  padding-bottom: 100px;
}
@media (max-width: 575.98px) {
  .update-actions-bar { padding: 0.4rem; gap: 0.4rem; }
  .update-actions-bar .good-btn-large {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.95rem;
  }
}
@media (min-width: 769px) {
  .update-actions-bar {
    left: calc(250px + 1rem);
    max-width: calc(100vw - 250px - 2rem);
  }
}
