body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5 !important;   /* neutral gray like projects.html */
  background-image: none !important;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 920px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-sizing: border-box;
}

header, .top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #177AB5;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

h1 {
  font-size: 1.5em;
  margin: 0;
}

.project-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 20px;
}

.project-controls input {
  flex: 1;
  margin-right: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
}

.icon-button, .sort-button, .add-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  color: #8BC441;
  margin-left: 10px;
}

.icon-button:hover, .sort-button:hover, .add-button:hover {
  color: #6EA633;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

form {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

form input,
form textarea,
form button {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
}

form button {
  background-color: #177AB5;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #145C90;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

li {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

li h3 {
  margin: 0;
  font-size: 1.2em;
}

li p {
  margin: 5px 0 10px;
}

.project-buttons {
  display: flex;
  justify-content: flex-end;
}

.project-buttons button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  color: #177AB5;
  margin-left: 10px;
}

.project-buttons button:hover {
  color: #145C90;
}

.logout-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  font-size: 1.2em;
  color: white;
}

.logout-button:hover {
  color: #ccc;
}

/* Used for publicly shared or "shared with me" projects */
.shared-project {
  background-color: #e0f7fa; /* Light blue background */
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@media (min-width: 480px) {
  .container {
    max-width: 500px;
  }

  li {
    flex-direction: row;
    align-items: center;
  }

  li h3 {
    font-size: 1.5em;
  }

  li p {
    font-size: 1em;
  }

  .project-buttons {
    flex: 1;
    justify-content: flex-end;
  }
}

/* Session Timeout Modal (duplicate rule - keep or merge if needed) */
.modal {
  display: none; /* same as above, merged if you want */
}
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


/* top-bar actions container so buttons align nicely */
.top-actions { display:flex; align-items:center; gap:.5rem; }

/* outline button (matches your accent) */
.btn-outline{
  background: transparent;
  border: 1px solid #177AB5;
  color: #177AB5;
  padding: .35rem .6rem;
  border-radius: 6px;
  font-size: .9rem;
  cursor: pointer;
}
.btn-outline:hover{ background: rgba(23,122,181,.08); }

/* Intro card */
.intro-card{
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:8px;
  padding:.5rem .75rem;
  margin: .75rem 0 1rem;
}
.intro-card details { outline: none; }
.intro-card summary{
  list-style: none;
  cursor: pointer;
  display:flex;
  align-items: baseline;
  gap:.5rem;
}
.intro-card summary::-webkit-details-marker{ display:none; }

.summary-title{ font-weight:700; color:#0b5ed7; }
.summary-hint{ font-size:.85rem; color:#6c757d; }

.intro-body{
  margin-top:.65rem;
  outline: none;
}
.intro-body:focus{ box-shadow: 0 0 0 3px rgba(13,110,253,.25); border-radius:6px; }

.intro-card h3{ font-size:1rem; margin:.4rem 0 .2rem; }
.intro-card ul, .intro-card ol { margin:.4rem 0 .6rem 1.1rem; }
.intro-card p { margin:.4rem 0 .6rem; }

/* links row */
.intro-links{
  display:flex;
  gap:.5rem;
  flex-wrap: wrap;
  margin:.5rem 0 .25rem;
}
.pill-link{
  display:inline-block;
  background:#f5f7fa;
  border:1px solid #dee2e6;
  color:#0b5ed7;
  text-decoration:none;
  padding:.35rem .6rem;
  border-radius: 999px;
  font-size:.9rem;
}
.pill-link:hover{ background:#eef3f9; }

.intro-sep { margin:.75rem 0; }
.next-steps h4{ margin:.25rem 0; }
.next-steps .small{ color:#6c757d; }

/* ensure each project-edit tab has breathing room at bottom */
#project-edit .tab-content {
  padding-bottom: 1.5rem;    /* adjust to taste */
}

/* Extra bottom breathing room in scrollable main pane */
.pe-main {
  padding-bottom: 5rem;   /* ~80px so last row is never hidden */
}

/* When sticky save bar is showing (body.dirty), add even more */
body.dirty .pe-main {
  padding-bottom: 7rem;   /* space for sticky bar + some buffer */
}


/* Interface Style (menu styles) – keep from being cut off */
#uiThemeSel {
  margin-bottom: 2rem;      /* space below the selector itself */
}

/* Ensure the whole Menus tab has bottom padding */
#tab-menus {
  padding-bottom: 2.5rem;   /* so "Interface Style" and other controls 
                               are never jammed against sticky footer */
}

label[for="uiThemeSel"] {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

/* Aug 27 1017a */

/* ==== Full-height layout: top blue bar + fill card ==== */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;  /* row 1 = top bar; row 2 = card fills */
}

/* white card fills the remaining height, with inner scroll */
.pm-container {
  min-height: 0;     /* allow the child to control overflow */
  display: grid;
}

.pm-card {
  height: 100%;      /* stretch to fill the 1fr row */
  display: grid;
}

/* the shell hosts sidebar + main; main scrolls */
.pm-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 280px 1fr;   /* your sidebar + content grid */
  gap: 16px;
  padding: 16px;                      /* <-- even padding inside card */
  box-sizing: border-box;
}

/* only the main content scrolls, so the card stays fixed */
.pm-shell > main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding-bottom: 24px;               /* comfortable bottom gutter */
}

/* sidebar card look stays the same */
.pm-sidebar {
  align-self: start;
}

/* Sept 4 927a */

/* Ensure only the active pane affects layout */
.pm-shell .pm-pane { display: none; }
.pm-shell .pm-pane.show { display: block; }

/* When Payment is open, make it span the entire row regardless of parent layout */
.pm-shell.pay-full #pane-payment {
  grid-column: 1 / -1 !important;  /* if parent is grid */
  flex: 0 0 100% !important;        /* if parent is flex */
  width: 100% !important;
  max-width: none !important;
}

/* Hide the sidebar; let main go full width */
.pm-shell.pay-full .pm-sidebar { display:none !important; }
.pm-shell.pay-full main,
.pm-shell.pay-full .pm-main,
.pm-shell.pay-full .content,
.pm-shell.pay-full .container,
.pm-shell.pay-full .container-fluid {
  max-width:100% !important;
  width:100% !important;
  display:block !important;  /* break any grid/flex columns on main wrapper */
}

/* Three-column responsive grid for plans */
#pane-payment .grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Keep header fixed; body scrolls inside the card */
#pane-payment .pay-wrap { display:flex; flex-direction:column; }
#pane-payment .pay-body { flex:1 1 auto; overflow:auto; }

/* Sept 4 11 am */

/* Stand-alone EULA/Privacy page overrides */
  :root { --doc-max: 980px; }
  body { margin: 0; background: #f5f5f5; }

  /* Make the document card a normal, wide div */
  body > .container {
    box-sizing: border-box;
    width: min(96%, var(--doc-max));
    max-width: var(--doc-max);
    margin: 24px auto;
    background: #fff;
    padding: 20px 22px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
  }

  /* Header banner */
  .top-bar {
    background: #1177c8;
    color: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
  }
  .top-bar h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
  .top-bar a { color: #fff; text-decoration: underline; }

  /* Comfortable text sizing */
  h2 { font-size: 1.25rem; margin: 1rem 0 .5rem; }
  h3 { font-size: 1.05rem; margin: .75rem 0 .35rem; }
  p, li { font-size: .98rem; line-height: 1.5; }

  /* Optional: a bit wider on large screens */
  @media (min-width: 1280px) { :root { --doc-max: 1060px; } }
  
  /* Sept 4 2:30p */
  
  /* ── EULA paragraph titles: aligned, readable ───────────────────────── */
.eula-doc p { margin: .65rem 0 0; line-height: 1.55; }
.eula-doc p + p { margin-top: .5rem; }

/* Titles at the start of a paragraph (strong/b) */
.eula-doc p > strong:first-child,
.eula-doc p > b:first-child {
  display: inline-block;        /* creates a tidy left "column" */
  min-width: 18ch;              /* adjust to taste: 16–22ch */
  margin-right: .6rem;          /* space after the title (fixes “.…Pricing”) */
  font-weight: 700;
  color: #111;
  vertical-align: top;
  letter-spacing: .15px;        /* tiny legibility boost */
}

/* When paragraphs wrap, keep the text lined up */
.eula-doc p > strong:first-child + *,
.eula-doc p > b:first-child + * { display: inline; }

/* Small screens: stack the title above the text */
@media (max-width: 640px) {
  .eula-doc p > strong:first-child,
  .eula-doc p > b:first-child {
    display: block;
    min-width: 0;
    margin: 0 0 .25rem;
  }
}

/* Optional: a subtle divider between rows of titled paragraphs */
.eula-doc .kv + .kv { border-top: 1px solid #eee; padding-top: .5rem; margin-top: .5rem; }

/* ── If you used definition lists (dt/dd), make them read like a table ─ */
.eula-doc dl.defs {
  display: grid;
  grid-template-columns: 18ch 1fr;  /* left "title" column + flexible text */
  column-gap: .75rem;
  row-gap: .4rem;
  margin: .5rem 0;
}
.eula-doc dl.defs dt {
  font-weight: 700; color: #111; margin: 0;
}
.eula-doc dl.defs dd {
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .eula-doc dl.defs { grid-template-columns: 1fr; }
  .eula-doc dl.defs dt { margin-top: .35rem; }
}

/* ── Headings & spacing in these sections ─ */
.eula-doc h3 { font-size: 1.15rem; margin: 1.1rem 0 .5rem; }
.eula-doc h4 { font-size: 1.02rem; margin: .85rem 0 .35rem; }

/* Oct 1 */
