      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family: "IBM Plex Mono", monospace;
        background: #F0F0F0;
        color: #111;
        line-height: 1.6;
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
      }

      /* Navigation moved to global stylesheet */

      /* Nav stays above scroll (same idea as homepage: bar then content region) */
      .musings-shell {
        display: flex;
        flex-direction: column;
        height: 100vh;
        min-height: 100vh;
        width: 100%;
        max-width: 100%;
      }

      .musings-scroll-container {
        position: relative;
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1;
        display: block;
      }

      main.main-content {
        width: 100%;
        height: fit-content;
        margin-bottom: 200px;
        display: block;
      }
      
      /* Override global overflow hidden for musings page */
      body.musings-page { 
        width: 100%;
        overflow: hidden !important; 
        height: 100vh !important; 
        position: relative !important;
      }
      
      html.musings-page { 
        overflow: hidden !important; 
        height: 100vh !important; 
      }

      /* Musings layout: equal columns; no left pad, 48px right gutter */
      .musings-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
        width: 100%;
        max-width: none;
        margin: var(--spacing-2xl) 24px 0;
        padding: 0 48px 80px 0;
        box-sizing: border-box;
        height: fit-content;
        min-height: 0;
        position: relative;
        align-items: start;
      }
      .musings-left {
        position: sticky;
        top: var(--spacing-2xl);
        align-self: start;
        height: fit-content;
        z-index: 10;
        min-width: 0;
        width: 100%;
      }
      .musings-list {
        list-style: none;
        display: grid;
        gap: 0;
        column-gap: 0;
        padding: 0;
        margin: 0;
        width: 100%;
        height: fit-content;
      }
      .musings-list > li {
        width: 100%;
      }
      .musings-list a {
        display: inline-block;
        width: 100%;
        color: #111;
        text-decoration: none;
        font-family: "Lusitana", serif;
        white-space: nowrap;
      }
      .musings-date {
        display: inline-block;
        width: 100%;
        font-size: 16px;
        font-style: normal;
        line-height: 0.95;
        opacity: 0.9;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        white-space: nowrap;
      }
      
      .musings-list a:hover { color: #85774B; }
      .musings-list a.active { color: #0002AA; }
      /* Left column date colors: inactive light grey, active/hover override */
      .musings-list a .musings-date { color: rgba(17,17,17,0.4); }
      .musings-list a.active .musings-date { color: #0002AA; }
      .musings-list a:hover .musings-date { color: #85774B; }

      .musings-right {
        min-height: 60vh;
        width: 100%;
        min-width: 0;
        position: relative;
      }
      .m-entry { scroll-margin-top: 120px; margin-bottom: 60px; }
      .m-entry h2 {
        font-family: "Lusitana", serif;
        font-size: 18px;
        font-weight: 400;
        font-style: normal;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: #0002AA;
        margin-bottom: 12px;
      }
      .m-entry .m-date { font-family: "Lusitana", serif; font-size: 16px; font-style: normal; line-height: 0.95; opacity: 0.9; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(17,17,17,0.4); }
      .m-entry p { font-family: "Lusitana", serif; font-size: 16px; line-height: 1.5; opacity: 0.9; }

      /* Divider between musings */
      .m-entry + .m-entry { border-top: 1px solid rgba(17,17,17,0.2); padding-top: 24px; margin-top: 24px; }

      html { scroll-behavior: smooth; }

      /* Mini admin tool */
      .m-admin { max-width: 1200px; margin: 40px auto 80px; padding: 0; }
      .m-admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
      .m-admin-bar strong { font-family: "Lusitana", serif; font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
      .m-admin-actions { display: flex; flex-wrap: wrap; gap: 12px; }
      .m-admin-actions button { cursor: pointer; padding: 6px 10px; background: #0002AA; color: #fff; border: none; font-family: "Lusitana", serif; font-size: 14px; letter-spacing: 0.04em; }
      .m-admin-actions button:hover { background: #111; }
      .m-admin-list { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
      .m-admin-item { padding: 12px 0; border-top: 1px dashed rgba(17,17,17,0.2); }
      .m-admin-item:first-child { border-top: none; }
      .m-admin-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
      .m-admin-label { font-family: "Lusitana", serif; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(17,17,17,0.7); }
      .m-admin-excerpt { font-size: 14px; color: rgba(17,17,17,0.6); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .m-admin-buttons { display: flex; gap: 8px; }
      .m-admin-buttons button { padding: 4px 8px; background: #F0F0F0; color: #111; border: 1px solid rgba(17,17,17,0.2); cursor: pointer; }
      .m-admin-buttons button:hover { background: #fff; }
      .m-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
      .m-admin-header { grid-column: 1 / -1; margin-bottom: 20px; }
      .m-admin-left { align-self: start; }
      .m-admin-right { align-self: start; }

      /* Editor inside modal */
      .m-editor { max-width: 1200px; margin: 0 auto; padding: 0; }
      .m-editor .m-field { margin: 12px 0; }
      .m-editor label { display: block; font-family: "Lusitana", serif; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; color: rgba(17,17,17,0.8); }
      .m-editor input[type="date"] { padding: 6px 8px; border: 1px solid rgba(17,17,17,0.2); background: #fff; font-family: "Lusitana", serif; font-size: 14px; }
      .m-date-row { display: flex; align-items: center; gap: 8px; }
      .m-inline-btn { padding: 6px 10px; border: 1px solid rgba(17,17,17,0.25); background: #F0F0F0; cursor: pointer; font-family: "Lusitana", serif; font-size: 13px; color: #111; }
      .m-inline-btn:hover { background: #fff; }
      .m-toolbar { 
        display: flex; 
        flex-wrap: wrap; 
        gap: 6px; 
        margin: 8px 0; 
        max-height: 120px; 
        overflow-y: auto; 
        border: 1px solid rgba(17,17,17,0.15); 
        padding: 8px; 
        background: #fff; 
      }
      .m-toolbar button { padding: 4px 8px; border: 1px solid rgba(17,17,17,0.25); background: #F0F0F0; cursor: pointer; font-family: "Lusitana", serif; font-size: 13px; }
      .m-toolbar button:hover { background: #fff; }
      
      /* Quill toolbar specific fixes */
      .ql-toolbar { 
        max-height: 120px !important; 
        overflow-y: auto !important; 
        border: 1px solid rgba(17,17,17,0.15) !important; 
        background: #fff !important; 
      }
      .ql-toolbar .ql-formats { 
        margin-right: 8px !important; 
        margin-bottom: 4px !important; 
      }
      .m-editor-area { border: 1px solid rgba(17,17,17,0.25); background: #fff; padding: 10px; min-height: 220px; overflow: auto; }
      .m-editor-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
      .m-editor-actions button { padding: 6px 12px; border: 1px solid rgba(17,17,17,0.25); background: #0002AA; color: #fff; cursor: pointer; font-family: "Lusitana", serif; }
      .m-editor-actions button#m-editor-cancel { background: #F0F0F0; color: #111; }

      /* Rich content in entries */
      .m-entry img { max-width: 100%; height: auto; display: block; margin: 12px 0; }
      .m-entry table { width: 100%; border-collapse: collapse; margin: 12px 0; }
      .m-entry th, .m-entry td { border: 1px solid rgba(17,17,17,0.25); padding: 6px 8px; text-align: left; font-family: "Lusitana", serif; font-size: 16px; }
      .m-entry hr { border: 0; border-top: 1px solid rgba(17,17,17,0.25); margin: 16px 0; }
      
      /* Rich text formatting */
      .m-entry strong { font-weight: bold; }
      .m-entry em { font-style: italic; }
      .m-entry u { text-decoration: underline; }
      .m-entry s { text-decoration: line-through; }
      .m-entry h1, .m-entry h2, .m-entry h3 { 
        font-family: "Lusitana", serif; 
        font-weight: 400;
        margin: 16px 0 8px 0;
        line-height: 1.3;
      }
      .m-entry h1 { font-size: 24px; }
      .m-entry h2 { font-size: 20px; }
      .m-entry h3 { font-size: 18px; }
      .m-entry blockquote { 
        margin: 16px 0; 
        padding-left: 16px; 
        border-left: 3px solid rgba(17,17,17,0.3); 
        font-style: italic; 
        opacity: 0.8;
      }
      .m-entry ul, .m-entry ol { 
        margin: 12px 0; 
        padding-left: 24px; 
      }
      .m-entry li { 
        margin: 4px 0; 
        font-family: "Lusitana", serif; 
        font-size: 16px; 
        line-height: 1.5; 
        opacity: 0.9; 
      }
      .m-entry a { 
        color: #0002AA; 
        text-decoration: underline; 
      }
      .m-entry a:hover { color: #000180; }
      .m-entry code { 
        background: rgba(17,17,17,0.1); 
        padding: 2px 4px; 
        border-radius: 2px; 
        font-family: monospace; 
        font-size: 14px; 
      }
      .m-entry pre { 
        background: rgba(17,17,17,0.1); 
        padding: 12px; 
        border-radius: 4px; 
        overflow-x: auto; 
        margin: 12px 0; 
      }
      .m-entry pre code { 
        background: none; 
        padding: 0; 
      }

      /* Admin modal */
      .m-admin-modal { position: fixed; inset: 0; display: none; z-index: 9999; }
      .m-admin-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
      .m-admin-dialog { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(900px, 90vw); max-height: 80vh; overflow: auto; background: #F0F0F0; border: 1px solid rgba(17,17,17,0.2); box-shadow: 0 12px 40px rgba(0,0,0,0.25); padding: 20px; }
      
      /* Ensure proper spacing in modal */
      .m-admin-right { 
        min-height: 400px; 
        display: flex; 
        flex-direction: column; 
      }
      .m-editor { 
        flex: 1; 
        display: flex; 
        flex-direction: column; 
      }
      .m-editor-area { 
        flex: 1; 
        min-height: 200px; 
      }
      .m-admin-close { position: absolute; top: 10px; right: 12px; background: transparent; border: none; cursor: pointer; font-family: "Lusitana", serif; font-size: 14px; font-style: italic; text-transform: uppercase; letter-spacing: 0.06em; color: #111; }

      /* Giphy modal */
      .giphy-modal { position: fixed; inset: 0; display: none; z-index: 10000; }
      .giphy-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
      .giphy-dialog { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(960px, 92vw); max-height: 80vh; overflow: auto; background: #F0F0F0; border: 1px solid rgba(17,17,17,0.2); box-shadow: 0 12px 40px rgba(0,0,0,0.25); padding: 16px; }
      .giphy-head { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
      .giphy-head input { flex: 1; padding: 8px 10px; border: 1px solid rgba(17,17,17,0.25); background: #fff; font-family: "Lusitana", serif; font-size: 14px; }
      .giphy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
      .giphy-item { cursor: pointer; border: 1px solid rgba(17,17,17,0.15); background: #fff; padding: 4px; display: flex; align-items: center; justify-content: center; }
      .giphy-item img { max-width: 100%; height: auto; display: block; }
      .giphy-close { position: absolute; top: 8px; right: 10px; background: transparent; border: 1px solid rgba(17,17,17,0.25); padding: 4px 8px; cursor: pointer; font-family: "Lusitana", serif; font-size: 13px; }

      /* Ensure custom cursor is above modals */
      #cursor-canvas { z-index: 100001 !important; pointer-events: none; }

      /* Mobile layout */
      @media (max-width: 768px) {
        body {
          width: 100% !important;
          max-width: none !important;
          padding: 0 !important;
          margin: 0 !important;
        }

        .musings-scroll-container {
          width: 100% !important;
          max-width: none !important;
          padding: 0 !important;
          margin: 0 !important;
        }

        main.main-content {
          width: 100% !important;
          height: auto !important;
          margin-bottom: 0 !important;
        }

        .musings-left {
          display: none !important;
        }

        .musings-layout {
          display: block !important;
          grid-template-columns: none !important;
          width: 100% !important;
          max-width: none !important;
          padding: 0 !important;
          margin: var(--spacing-2xl) 0 0 !important;
        }

        .musings-right,
        #musingsContent {
          width: 100% !important;
          max-width: none !important;
          min-width: 100% !important;
          flex: none !important;
          grid-column: unset !important;
        }

        #musingsContent {
          padding: 30px var(--spacing-2xl) 0 !important;
          margin: 0 !important;
        }
      }

.m-section-title {
  font-family: "Lusitana", serif;
  font-size: 16px;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(17, 17, 17, 0.8);
}

.m-admin-hint {
  font-size: 13px;
  color: rgba(17, 17, 17, 0.65);
  margin-top: 12px;
}

.m-admin-hint code {
  font-size: 12px;
}

.m-admin-instructions {
  margin: 0 0 20px 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(17, 17, 17, 0.2);
  border-radius: 2px;
}

.m-instructions-title {
  margin-bottom: 10px !important;
  font-size: 14px !important;
  letter-spacing: 0.08em !important;
  color: rgba(17, 17, 17, 0.75) !important;
}

.m-admin-steps {
  margin: 0;
  padding-left: 1.2em;
  font-family: "Lusitana", serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.8);
}

.m-admin-steps li {
  margin-bottom: 8px;
}

.m-admin-steps li:last-child {
  margin-bottom: 0;
}

.m-admin-steps code,
.m-instructions-hint code {
  font-size: 12px;
  font-family: "IBM Plex Mono", monospace;
  background: rgba(17, 17, 17, 0.06);
  padding: 0 3px;
}

.m-instructions-hint {
  margin: 12px 0 0 0;
  font-size: 13px;
  font-style: italic;
}
