/* /column/column.css
   Theme: Cherry Scrapbook MySpace Diary (A + B + C)
   - cream paper base (not dark)
   - cherry is the signature
   - MySpace-ish module headers + profile boxes
   - cleaner alignment everywhere
   - modal editor is 2-column (fields + preview) so it feels less empty
   - no ID/JS changes
*/

:root{
  /* base */
  --paper:#fbf5ef;
  --paper2:#f6eee6;
  --wash:#efe1d6;

  --ink:#231c20;
  --ink2:#3a3036;
  --inkSoft: rgba(35,28,32,.72);

  /* cherry */
  --cherry:#a4002a;
  --cherry2:#ff1e5a;
  --cherry3:#ff5b86;
  --cherryWash: rgba(164,0,42,.10);

  /* accents */
  --glitter: rgba(255,255,255,.65);
  --border: rgba(35,28,32,.16);
  --borderSoft: rgba(35,28,32,.10);

  --shadow: rgba(25,18,20,.12);
  --shadow2: rgba(25,18,20,.18);

  --radius: 16px;
  --radius2: 22px;

  --hand: "Caveat", ui-rounded, "Comic Sans MS", cursive;
  --ui: Tahoma, Verdana, Arial, system-ui, sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;

  --max: 1180px;

  /* alignment constants */
  --padCardX: 22px;
  --padCardY: 18px;
  --pillH: 34px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body.paperWorld,
body{
  margin:0;
  color:var(--ink);
  font-family: var(--ui);
  line-height:1.45;
  overflow-x:hidden;

  background:
    radial-gradient(900px 650px at 16% 10%, rgba(255,30,90,.16), transparent 62%),
    radial-gradient(900px 750px at 86% 22%, rgba(164,0,42,.12), transparent 62%),
    radial-gradient(900px 900px at 55% 105%, rgba(35,28,32,.06), transparent 55%),
    linear-gradient(180deg, var(--paper), var(--wash));
}

/* texture layers */
.grain, .dust{
  position: fixed;
  inset: 0;
  pointer-events:none;
  z-index: 0;
}

/* photocopy grain */
.grain{
  opacity:.14;
  mix-blend-mode:multiply;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.03), rgba(0,0,0,.03) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.02), rgba(0,0,0,.02) 1px, transparent 1px, transparent 4px);
  filter: blur(.25px);
}

/* subtle stars */
.dust{
  opacity:.45;
  background-image:
    radial-gradient(circle at 10% 18%, rgba(255,255,255,.75) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 74%, rgba(255,255,255,.62) 0 1px, transparent 2px),
    radial-gradient(circle at 61% 14%, rgba(255,255,255,.58) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 42%, rgba(255,255,255,.50) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 84%, rgba(255,255,255,.44) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 55%, rgba(255,30,90,.18) 0 1px, transparent 2px);
  background-size: 420px 300px;
}

/* faint grid (very subtle, very MySpace) */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events:none;
  z-index: 1;
  opacity: .035;
  background-image:
    linear-gradient(rgba(35,28,32,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,28,32,.55) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ===== Topbar (profile header) ===== */
.topbar{
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 18px auto 12px;
  padding: 16px 16px 12px;

  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:space-between;

  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
  border: 1px solid var(--border);
  border-top: 4px solid rgba(255,30,90,.50);
  border-radius: var(--radius2);
  box-shadow: 0 18px 44px var(--shadow2);
  backdrop-filter: blur(6px);
}

.topbar::before{
  content:"";
  position:absolute;
  top:-10px;
  left: 38px;
  width: 140px;
  height: 30px;
  background: rgba(255,30,90,.12);
  border: 1px solid rgba(35,28,32,.10);
  border-radius: 10px;
  transform: rotate(-3deg);
  box-shadow: 0 10px 18px rgba(25,18,20,.10);
}

.brand{ max-width: 760px; }

.kicker{
  display:inline-block;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing:.18em;
  text-transform: uppercase;
  color: rgba(35,28,32,.72);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(35,28,32,.12);
  padding: 6px 10px;
  border-radius: 999px;
}

.title{
  margin: 8px 0 2px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing:-.03em;
  line-height:1.02;
  text-shadow:
    0 2px 0 rgba(255,255,255,.85),
    0 10px 26px rgba(255,30,90,.08);
}

.sub{
  font-family: var(--hand);
  font-size: 22px;
  color: var(--ink2);
  margin-bottom: 6px;
}

.status{
  display:inline-block;
  margin: 8px 0 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,30,90,.14), rgba(255,255,255,.55));
  border: 1px solid rgba(255,30,90,.20);
  font-family: var(--ui);
  font-size: 12px;
  color: rgba(35,28,32,.74);
}

.byline{
  font-family: var(--hand);
  font-size: 20px;
  color: var(--cherry2);
  text-shadow: 0 0 18px rgba(255,30,90,.10);
}

.mininav{
  margin-top: 6px;
  font-family: var(--ui);
  font-size: 12px;
  color: rgba(35,28,32,.64);
  letter-spacing:.08em;
  text-transform: lowercase;
}

/* nav */
.nav{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-end;
  padding-top: 6px;
}
.navlink{
  color: rgba(35,28,32,.70);
  text-decoration:none;
  font-size: 12px;
  letter-spacing:.04em;
  border-bottom: 1px dashed rgba(35,28,32,.30);
}
.navlink:hover{
  color: var(--cherry);
  border-bottom-color: rgba(164,0,42,.55);
}

.navbtn{
  cursor:pointer;
  border: 1px solid rgba(164,0,42,.22);
  border-top: 2px solid rgba(255,30,90,.55);
  background:
    linear-gradient(180deg,
      rgba(255,91,134,.92) 0%,
      rgba(255,30,90,.92) 38%,
      rgba(164,0,42,.85) 100%);
  color: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing:.02em;
  box-shadow: 0 16px 28px rgba(25,18,20,.20);
  position: relative;
}
.navbtn::after{
  content:"";
  position:absolute;
  left:10px; right:10px; top:6px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.45), transparent);
  pointer-events:none;
  opacity:.95;
}
.navbtn:hover{
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 34px rgba(25,18,20,.22), 0 0 0 4px rgba(255,30,90,.10);
}
.navbtn:active{ transform: translateY(1px); }

/* ===== Layout ===== */
.layout{
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto 90px;
  padding: 10px 16px 28px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}

/* subtle vignette around main content */
.layout::before{
  content:"";
  position:absolute;
  inset:-40px;
  pointer-events:none;
  z-index:0;
  opacity:.55;
  background:
    radial-gradient(900px 680px at 22% 20%, rgba(255,30,90,.10), transparent 60%),
    radial-gradient(900px 680px at 82% 40%, rgba(164,0,42,.08), transparent 62%);
}
.layout > *{ position:relative; z-index:1; }

@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .nav{ align-items:flex-start; }
}

/* ===== Feed (module) ===== */
.feed{
  padding: 18px var(--padCardX) 22px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--borderSoft);
  border-radius: var(--radius2);
  box-shadow:
    0 20px 46px var(--shadow),
    inset 0 1px 0 rgba(255,255,255,.85);
}

.feedhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding: 12px 14px 14px;
  margin-bottom: 18px;

  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.62));
  border: 1px solid rgba(35,28,32,.12);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.feedhead h2{
  margin:0;
  font-family: var(--ui);
  font-weight: 900;
  letter-spacing:.10em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(35,28,32,.86);
}
.feedhead h2::before{
  content:"♥ ";
  color: rgba(255,30,90,.85);
}

/* filters */
.filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
}

.input, .select, .textarea{
  font-family: var(--ui);
  font-size: 12px;
  border: 1px solid rgba(35,28,32,.16);
  background: rgba(255,255,255,.74);
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
  outline:none;
  box-shadow: 0 12px 18px rgba(25,18,20,.08);
}
.input::placeholder{ color: rgba(35,28,32,.45); }
.input:focus, .select:focus, .textarea:focus{
  border-color: rgba(255,30,90,.55);
  box-shadow: 0 0 0 5px rgba(255,30,90,.10), 0 12px 22px rgba(25,18,20,.12);
}

.btn{
  cursor:pointer;
  border: 1px solid rgba(35,28,32,.16);
  background: rgba(255,255,255,.74);
  color: rgba(35,28,32,.90);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 14px 18px rgba(25,18,20,.10);
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(1px); }

.btn.primary{
  border-color: rgba(164,0,42,.22);
  border-top: 2px solid rgba(255,30,90,.55);
  background:
    linear-gradient(180deg,
      rgba(255,91,134,.92) 0%,
      rgba(255,30,90,.92) 38%,
      rgba(164,0,42,.85) 100%);
  color:#fff;
  position: relative;
}
.btn.primary::after{
  content:"";
  position:absolute;
  left:10px; right:10px; top:6px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.45), transparent);
  pointer-events:none;
  opacity:.95;
}

.btn.danger{
  background: linear-gradient(180deg, rgba(35,28,32,.92), rgba(35,28,32,.78));
  border-color: rgba(35,28,32,.35);
  color:#fff;
}

.hidden{ display:none !important; }

.empty{
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255,30,90,.10);
  border: 1px dashed rgba(164,0,42,.30);
  font-family: var(--hand);
  font-size: 22px;
  color: rgba(35,28,32,.85);
}

/* feed list */
.feedlist{
  display:flex;
  flex-direction:column;
  gap: 20px;
  padding: 0;
}

/* ===== Entry cards (aligned MySpace header) ===== */
.entrycard{
  position: relative;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(35,28,32,.18);
  border-top: 3px solid rgba(255,30,90,.45);
  border-radius: var(--radius2);
  box-shadow:
    0 18px 40px rgba(25,18,20,.12),
    inset 0 1px 0 rgba(255,255,255,.85);
  padding: var(--padCardY) var(--padCardX) 20px;
  overflow:hidden;
}

/* soft label strip */
.entrycard::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 42px;
  background:
    linear-gradient(180deg,
      rgba(255,30,90,.18) 0%,
      rgba(255,255,255,.78) 55%,
      rgba(255,255,255,0) 100%);
  opacity: 1;
  pointer-events:none;
}

/* faint glitter */
.entrycard::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.14;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.78) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 26%, rgba(255,255,255,.56) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 78%, rgba(255,30,90,.28) 0 1px, transparent 2px);
  background-size: 520px 340px;
}

.entrycard:hover{
  transform: translateY(-2px);
  box-shadow:
    0 20px 44px rgba(25,18,20,.14),
    0 0 0 4px rgba(255,30,90,.08),
    inset 0 1px 0 rgba(255,255,255,.85);
}

/* TOP META ROW = consistent 3 columns */
.entrycard > .entrymeta:first-of-type{
  margin: calc(-1 * var(--padCardY)) calc(-1 * var(--padCardX)) 14px;
  padding: 12px var(--padCardX);
  border-bottom: 1px solid rgba(35,28,32,.12);
  background:
    linear-gradient(180deg,
      rgba(255,30,90,.16) 0%,
      rgba(255,255,255,.78) 55%,
      rgba(255,255,255,0) 100%);
  position: relative;
  z-index: 1;

  display:grid;
  grid-template-columns: 140px 190px 1fr;
  gap: 10px;
  align-items:center;
}

/* pills */
.entrymeta{
  position: relative;
  z-index: 1;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
  color: rgba(35,28,32,.60);
}

.pill{
  height: var(--pillH);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
  font-size: 12px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(35,28,32,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.66));
  color: rgba(35,28,32,.86);
  box-shadow:
    0 10px 16px rgba(25,18,20,.08),
    inset 0 1px 0 rgba(255,255,255,.85);
  white-space: nowrap;
}

.pill.tag{
  cursor:pointer;
  border-color: rgba(255,30,90,.22);
  background: linear-gradient(180deg, rgba(255,30,90,.16), rgba(255,255,255,.70));
}
.pill.tag:hover{
  border-color: rgba(255,30,90,.55);
  box-shadow:
    0 12px 18px rgba(25,18,20,.10),
    0 0 0 4px rgba(255,30,90,.12),
    inset 0 1px 0 rgba(255,255,255,.85);
}

/* make top-row pills fill columns */
.entrycard > .entrymeta:first-of-type .pill{
  width: 100%;
}
.entrycard > .entrymeta:first-of-type .pill:nth-child(3){
  justify-content: flex-start;
  overflow:hidden;
  text-overflow: ellipsis;
}

/* Title + excerpt */
.entrytitle{
  position: relative;
  z-index: 1;
  margin: 0 0 10px 0;
  font-family: var(--ui);
  font-weight: 900;
  font-size: 18px;
  letter-spacing:.02em;
  line-height: 1.12;
  color: var(--ink);
}
.entrytitle a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px dotted rgba(35,28,32,.35);
  padding-bottom: 2px;
}
.entrytitle a:hover{
  color: var(--cherry2);
  border-bottom: 2px solid var(--cherry2);
}

.entryexcerpt{
  position: relative;
  z-index: 1;
  margin: 0 0 16px 0;
  font-family: var(--ui);
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(35,28,32,.78);
}

/* bottom tags row spacing */
.entrycard > .entrymeta:last-of-type{
  margin-top: 0;
  gap: 10px;
}

/* pullquote used in preview */
.quote{
  margin: 12px 0 12px;
  padding: 10px 12px;
  border-left: 3px solid rgba(255,30,90,.72);
  background: linear-gradient(90deg, rgba(255,30,90,.14), rgba(255,255,255,0));
  border-radius: 14px;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: rgba(35,28,32,.88);
}
.kiss{ margin-top: 12px; font-size: 20px; opacity: .85; }

/* mobile: stack header pills */
@media (max-width: 680px){
  .entrycard > .entrymeta:first-of-type{
    grid-template-columns: 1fr;
  }
  .entrycard > .entrymeta:first-of-type .pill{
    width: fit-content;
    max-width: 100%;
    justify-content:center;
  }
  .entrycard > .entrymeta:first-of-type .pill:nth-child(3){
    width: 100%;
    justify-content:flex-start;
  }
}

/* ===== Sidebar modules ===== */
.side{ display:flex; flex-direction:column; gap: 12px; }

.card{
  position: relative;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(35,28,32,.18);
  border-top: 3px solid rgba(255,30,90,.38);
  border-radius: var(--radius2);
  box-shadow:
    0 18px 34px rgba(25,18,20,.12),
    inset 0 1px 0 rgba(255,255,255,.85);
  padding: 14px 14px 16px;
  overflow:hidden;
}

/* MySpace section header */
.cardtitle{
  display:block;
  width: fit-content;
  font-family: var(--ui);
  font-weight: 900;
  font-size: 12px;
  letter-spacing:.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(35,28,32,.88);
  background: linear-gradient(180deg, rgba(255,30,90,.18), rgba(255,255,255,.62));
  border: 1px solid rgba(255,30,90,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.tiny{
  font-size: 12px;
  color: rgba(35,28,32,.66);
  margin: 8px 0 10px;
}

/* blogroll */
.links{ display:flex; flex-direction:column; gap: 8px; }
.weblink{
  position: relative;
  color: rgba(35,28,32,.86);
  text-decoration:none;
  padding: 9px 10px 9px 30px;
  border-radius: 14px;
  border: 1px solid rgba(35,28,32,.12);
  background: rgba(255,255,255,.74);
}
.weblink::before{
  content:"★";
  position:absolute;
  left: 10px;
  top: 9px;
  font-size: 12px;
  color: rgba(255,30,90,.82);
  text-shadow: 0 0 12px rgba(255,30,90,.12);
}
.weblink:hover{
  border-color: rgba(255,30,90,.28);
  box-shadow: 0 0 0 4px rgba(255,30,90,.08);
  transform: translateY(-1px);
}

/* mini buttons */
.btnGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.miniBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing:.04em;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(35,28,32,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.62));
  color: rgba(35,28,32,.90);
  box-shadow:
    0 10px 18px rgba(25,18,20,.08),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.miniBtn:hover{
  border-color: rgba(255,30,90,.28);
  box-shadow:
    0 12px 22px rgba(25,18,20,.10),
    0 0 0 4px rgba(255,30,90,.08),
    inset 0 1px 0 rgba(255,255,255,.9);
  transform: translateY(-1px);
}

/* blinkies */
.blinkLine{ display:flex; flex-wrap:wrap; gap: 8px; margin-top: 10px; }
.blink{
  font-family: var(--hand);
  font-size: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,30,90,.10);
  border: 1px dashed rgba(255,30,90,.28);
}

/* archive/tags/drafts */
.archivelist, .tagcloud, .draftlist{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.archivelink{
  display:inline-flex;
  align-items:center;
  font-size: 11px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(35,28,32,.12);
  background: rgba(255,255,255,.74);
  color: rgba(35,28,32,.88);
  text-decoration:none;
}
.archivelink:hover{
  border-color: rgba(255,30,90,.28);
  box-shadow: 0 0 0 4px rgba(255,30,90,.08);
  transform: translateY(-1px);
}

/* ===== Modal (Editor) ===== */
.modal{
  position: fixed;
  inset: 0;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 18px;
  background: rgba(35,28,32,.45);
  z-index: 50;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

.modalpanel{
  width: min(1040px, 100%);
  margin: 18px auto;
  background:
    radial-gradient(900px 500px at 18% 0%, rgba(255,30,90,.12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,238,230,.92));
  border: 1px solid rgba(35,28,32,.16);
  border-top: 5px solid rgba(255,30,90,.55);
  border-radius: var(--radius2);
  box-shadow: 0 28px 70px rgba(25,18,20,.25);
  overflow:auto;
  max-height: calc(100vh - 36px);
  position: relative;
}

.modalhead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(35,28,32,.10);
  position: sticky;
  top: 0;
  z-index: 6;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
  backdrop-filter: blur(6px);
}

.modaltitle{
  font-family: var(--hand);
  font-size: 30px;
  color: rgba(35,28,32,.92);
  text-shadow: 0 0 18px rgba(255,30,90,.10);
  margin-bottom: 2px;
}

.x{
  cursor:pointer;
  border: 1px solid rgba(35,28,32,.14);
  background: rgba(255,255,255,.78);
  color: rgba(35,28,32,.92);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 900;
}
.x:hover{ transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(255,30,90,.08); }

.form{
  padding: 14px 16px 16px;

  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items:start;
}

.row{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-bottom: 10px;
  flex-wrap:wrap;
}
.rowfull{ align-items:flex-start; grid-column: 1 / 2; }

.label{
  min-width: 120px;
  font-family: var(--hand);
  font-size: 20px;
  color: rgba(35,28,32,.80);
}

.input, .select{ height: 40px; padding: 0 12px; }
.textarea{
  width: 100%;
  resize: vertical;
  min-height: 160px;
  max-height: 280px;
  padding: 12px;
  overflow:auto;
}

.actions{
  grid-column: 1 / 2;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  align-items:center;
  margin-top: 10px;

  position: sticky;
  bottom: 10px;
  padding: 10px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(246,238,230,.82));
  border: 1px solid rgba(35,28,32,.12);
  box-shadow: 0 16px 30px rgba(25,18,20,.10);
  backdrop-filter: blur(6px);
  z-index: 5;
}

.previewwrap{
  grid-column: 2 / 3;
  position: sticky;
  top: 86px;
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.previewtitle{
  font-family: var(--ui);
  font-weight: 900;
  letter-spacing:.12em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 10px 0;
}
.previewtitle::before{
  content:"♥ ";
  color: rgba(255,30,90,.85);
}

.preview{
  border-radius: var(--radius2);
  border: 1px solid rgba(35,28,32,.12);
  background:
    radial-gradient(520px 240px at 20% 0%, rgba(255,30,90,.10), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,238,230,.88));
  padding: 16px;
  min-height: 420px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  box-shadow:
    0 16px 30px rgba(25,18,20,.10),
    inset 0 1px 0 rgba(255,255,255,.85);
}

@media (max-width: 880px){
  .form{ grid-template-columns: 1fr; }
  .rowfull, .actions, .previewwrap{ grid-column: 1 / -1; }
  .previewwrap{ position: static; top: auto; }
  .actions{ position: static; }
  .preview{ max-height: none; }
}

/* ===== Private Thoughts ===== */
.popup.note{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(340px, calc(100vw - 36px));
  background:
    radial-gradient(420px 220px at 20% 0%, rgba(255,30,90,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,238,230,.92));
  border: 1px solid rgba(35,28,32,.16);
  border-top: 3px solid rgba(255,30,90,.45);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(25,18,20,.18);
  z-index: 40;
}

.noteTop{
  font-family: var(--hand);
  font-size: 22px;
  padding: 12px 12px 6px;
  border-bottom: 1px solid rgba(35,28,32,.10);
  color: rgba(35,28,32,.92);
}
.noteBody{
  padding: 10px 12px 12px;
  font-family: var(--serif);
  font-size: 14px;
  color: rgba(35,28,32,.78);
}

.noteClose{
  position:absolute;
  top: 10px;
  right: 10px;
  text-decoration:none;
  color: rgba(35,28,32,.92);
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(35,28,32,.14);
  border-radius: 999px;
  padding: 6px 9px;
  font-weight: 900;
}
.noteClose:hover{ transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(255,30,90,.08); }

.noteTrigger{
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 45;
  text-decoration:none;
  font-weight: 900;
  font-family: var(--hand);
  font-size: 22px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(180deg,
      rgba(255,91,134,.92) 0%,
      rgba(255,30,90,.92) 38%,
      rgba(164,0,42,.85) 100%);
  border: 1px solid rgba(164,0,42,.22);
  box-shadow: 0 20px 44px rgba(25,18,20,.20);
  position: relative;
}
.noteTrigger::after{
  content:"";
  position:absolute;
  left:10px; right:10px; top:6px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.45), transparent);
  pointer-events:none;
  opacity:.95;
}
.noteTrigger:hover{
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 22px 46px rgba(25,18,20,.22), 0 0 0 4px rgba(255,30,90,.10);
}

/* popup open/close */
.notePopup{ display:none; max-height: calc(100vh - 90px); overflow:auto; }
#note-popup:target{ display:block; }

.ptTextarea{ width:100%; resize: vertical; min-height: 96px; }
.ptActions{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top: 10px; }

.ptBtn{
  cursor:pointer;
  border: 1px solid rgba(35,28,32,.14);
  background: rgba(255,255,255,.74);
  color: rgba(35,28,32,.92);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}
.ptBtn.ghost{ background: rgba(255,255,255,.58); }
.ptMsg{ font-size:12px; color: rgba(35,28,32,.66); }

.ptArchiveTitle{
  margin-top: 12px;
  font-family: var(--hand);
  font-size: 18px;
  color: rgba(35,28,32,.88);
}
.ptArchive{
  margin-top: 8px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.ptRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(35,28,32,.12);
  background: rgba(255,255,255,.74);
}

.ptRowLeft{ min-width:0; }
.ptDate{ font-size: 11px; color: rgba(35,28,32,.56); margin-bottom: 4px; }
.ptPreview{
  font-size: 12px;
  color: rgba(35,28,32,.78);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.ptMiniBtn{
  cursor:pointer;
  border: 1px solid rgba(255,30,90,.22);
  background: rgba(255,30,90,.10);
  color: rgba(35,28,32,.92);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}
.ptMiniBtn:hover{ transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(255,30,90,.08); }

/* soundtrack */
.soundtrackBtn{
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 45;
  text-decoration:none;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing:.06em;
  padding: 10px 12px;
  border-radius: 999px;
  background:
    linear-gradient(180deg,
      rgba(255,91,134,.92) 0%,
      rgba(255,30,90,.92) 38%,
      rgba(164,0,42,.85) 100%);
  border: 1px solid rgba(164,0,42,.22);
  box-shadow: 0 20px 44px rgba(25,18,20,.20);
  position: relative;
}
.soundtrackBtn::after{
  content:"";
  position:absolute;
  left:10px; right:10px; top:6px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.45), transparent);
  pointer-events:none;
  opacity:.95;
}
.soundtrackBtn:hover{
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 22px 46px rgba(25,18,20,.22), 0 0 0 4px rgba(255,30,90,.10);
}

/* sticker */
.sticker1{
  position: fixed;
  left: 14px;
  top: 74px;
  z-index: 2;
  font-size: 34px;
  transform: rotate(-12deg);
  filter: drop-shadow(0 14px 18px rgba(25,18,20,.16));
  opacity:.85;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
  .navbtn, .noteTrigger, .soundtrackBtn{ transform:none !important; }
}

/* =========================================================
   PATCH: Soundtrack stays top-right always + cleaner editor
   Paste at END of column.css
   ========================================================= */

/* 1) Soundtrack button: always pinned top-right, above modal */
.soundtrackBtn{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;         /* above modal */
}

/* If you want it to tuck closer on mobile */
@media (max-width: 520px){
  .soundtrackBtn{ top: 12px; right: 12px; }
}

/* 2) Modal overlay: center the panel + less “empty fog” */
.modal{
  align-items: center;                 /* center vertically (cleaner) */
  padding: 22px;
  background: rgba(35,28,32,.38);      /* slightly lighter overlay */
}

/* 3) Modal panel: more “editor app” */
.modalpanel{
  width: min(1040px, 94vw);
  max-height: min(86vh, 900px);
  overflow: hidden;                    /* panel scroll handled inside */
  border-radius: 24px;
}

/* Keep header sticky and crisp */
.modalhead{
  padding: 14px 18px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.80));
  border-bottom: 1px solid rgba(35,28,32,.12);
}

/* 4) The editor body: convert form into a true 2-column editor */
.form{
  padding: 16px 18px 18px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;

  /* This makes the inside scrollable while header stays */
  height: calc(min(86vh, 900px) - 70px); /* subtract header-ish */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Left column = fields; right column = preview */
.form > .row,
.form > .actions{
  grid-column: 1 / 2;
}

.previewwrap{
  grid-column: 2 / 3;
  position: sticky;
  top: 12px;
  align-self: start;
}

/* Make the textarea feel like a real editor */
.textarea{
  min-height: 210px;
  max-height: 40vh;
  line-height: 1.6;
}

/* Make rows more consistent + less floaty */
.row{
  margin-bottom: 12px;
}
.label{
  min-width: 132px;
  opacity: .95;
}

/* 5) Sticky action bar (buttons) that feels “complete” */
.actions{
  position: sticky;
  bottom: 10px;
  padding: 10px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,238,230,.86));
  border: 1px solid rgba(35,28,32,.12);
  box-shadow: 0 16px 30px rgba(25,18,20,.10);
  backdrop-filter: blur(6px);
  z-index: 5;
}

/* 6) Preview: looks like a finished card */
.preview{
  min-height: 460px;
  max-height: calc(86vh - 220px);
  overflow: auto;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(520px 240px at 20% 0%, rgba(255,30,90,.10), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,238,230,.90));
}

/* 7) Mobile: single column editor */
@media (max-width: 880px){
  .modal{ align-items: flex-start; } /* more natural on mobile */
  .modalpanel{ max-height: none; overflow: visible; }
  .form{
    height: auto;
    grid-template-columns: 1fr;
  }
  .previewwrap{
    position: static;
    grid-column: 1 / -1;
  }
  .actions{
    position: static;
  }
}

