/* =============================================================
   1. Tokens — shared visual language with the landing page
   ============================================================= */
:root{
  --font-display: "Fraunces", "Iowan Old Style", ui-serif, Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --bg: #F7EFE4;
  --surface: #FFFCF6;
  --ink: #241F1C;
  --muted: #8A7A6C;
  --line: #EAE0D2;

  --rose: #E2A89B;      --rose-soft: #F8E9E3;
  --sun: #E3B65C;       --sun-soft: #FBEFD9;
  --sky: #6FA3C4;       --sky-soft: #E3EFF5;
  --sage: #93AE81;      --sage-soft: #E7EEE1;
  --lavender: #A79BC9;  --lavender-soft: #ECE8F4;
  --terracotta: #B4604F;--terracotta-soft: #F2DDD7;
  --coral: #D98857;     --coral-soft: #F8E4D6;
  --mint: #6FAE94;      --mint-soft: #DFEFE7;
  --steel: #6E8FA6;     --steel-soft: #DFE7ED;
  --plum: #A6709F;      --plum-soft: #EFE1EC;

  --accent: #B4604F;
  --accent-soft: #F2DDD7;
  --danger: #A8462F;
  --danger-soft: #F3DCD3;
  --memberA: #B4604F;
  --memberA-soft: #F2DDD7;
  --memberB: #6FA3C4;
  --memberB-soft: #E3EFF5;

  --shadow: 0 2px 12px rgba(36,31,28,0.06);
  --shadow-lift: 0 16px 34px rgba(36,31,28,0.14);
  --radius: 20px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  padding: 30px 22px 60px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 500; }
::selection{ background: var(--accent); color: var(--surface); }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap{ max-width: 1180px; margin: 0 auto; }

/* =============================================================
   2. Loading + onboarding
   ============================================================= */
.loading-screen{
  position:fixed; inset:0; background: var(--bg); display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:14px; z-index:100; font-family: var(--font-display); font-style:italic; color: var(--muted);
}
.loading-mark{ height: 34px; width:auto; opacity: .85; }

.onboard{
  position:fixed; inset:0; z-index:90; background: var(--bg);
  display:flex; align-items:center; justify-content:center; padding: 24px;
}
.onboard-card{
  width:100%; max-width: 420px; background: var(--surface); border-radius: 24px;
  box-shadow: var(--shadow-lift); padding: 2.4rem 2rem; text-align:center;
}
.onboard-logo{ height: 32px; width:auto; margin: 0 auto 1.4rem; }
.onboard-card h1{ font-size: 1.7rem; font-style: italic; margin: 0 0 .6rem; line-height:1.05; }
.onboard-sub{ color: var(--muted); font-size: .94rem; margin: 0 0 1.6rem; line-height:1.5; }
.onboard-panel{ display:flex; flex-direction:column; gap:.7rem; }
.onboard-panel .field{ text-align:left; }
.onboard-share-label{ font-weight:700; margin-bottom:.9rem; }
.onboard-code{
  font-family: var(--font-display); font-size: 2.1rem; letter-spacing: .12em; font-weight:600;
  background: var(--accent-soft); color: var(--accent); border-radius: 14px; padding: .8rem; margin-bottom: 1rem;
}

/* =============================================================
   3. Top bar
   ============================================================= */
.topbar{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-logo{ height: 34px; width:auto; display:block; }
.brand span{ font-size: 13px; color: var(--muted); }
.topbar-actions{ display:flex; align-items:center; gap:8px; }

.pill-btn{
  border:none; background: var(--surface); box-shadow: var(--shadow); color: var(--ink);
  padding: 8px 14px; border-radius:999px; font-family: var(--font-body); font-weight:700; font-size:12.5px;
  cursor:pointer; letter-spacing:.03em;
}
.pill-btn:hover{ box-shadow: var(--shadow-lift); }

.gear-btn{
  border:none; background: var(--surface); box-shadow: var(--shadow); width:36px; height:36px; border-radius:50%;
  font-size:15px; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.gear-btn:hover{ box-shadow: var(--shadow-lift); }
.sync-note{
  font-size: 12.5px; color: var(--muted); display:flex; align-items:center; gap:6px;
  background: var(--surface); padding:8px 13px; border-radius: 999px; box-shadow: var(--shadow);
}
.sync-dot{ width:7px; height:7px; border-radius:50%; background:#7FAF7A; flex:0 0 auto; }
.sync-dot.saving{ background: var(--sun); }
.sync-dot.err{ background: var(--danger); }

/* =============================================================
   4. Layout
   ============================================================= */
.layout{ display:grid; grid-template-columns: 300px 1fr; gap: 20px; align-items:start; }
@media (max-width: 880px){ .layout{ grid-template-columns: 1fr; } }

.card{ background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 20px 22px; }
.card + .card{ margin-top: 16px; }
.card h3{
  font-family: var(--font-display); font-size: 14px; font-weight:600; margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-style: italic;
}

/* =============================================================
   5. Month box
   ============================================================= */
.month-card{ text-align:center; }
#reorderableBlocks{ margin-top:16px; }
.month-photo-box{
  margin-top:14px; border-radius:16px; overflow:hidden; position:relative; height:96px;
  background: var(--accent-soft); cursor:pointer;
}
.month-photo-box img{ width:100%; height:100%; object-fit:cover; display:block; }
.month-photo-box .photo-placeholder{
  width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  color: var(--accent); font-size:11px; font-weight:700; gap:4px;
}
.month-photo-box .photo-placeholder span:first-child{ font-size:20px; }
.month-photo-remove{
  position:absolute; top:6px; right:6px; width:22px; height:22px; border-radius:50%; border:none;
  background:rgba(36,31,28,0.55); color:#fff; font-size:10px; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.month-nav{ display:flex; align-items:center; justify-content:space-between; }
.month-nav button{
  border:none; background: var(--accent-soft); color: var(--accent); width:36px; height:36px;
  border-radius:50%; font-size:16px; cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition: transform .2s var(--ease-out), background .2s var(--ease-out);
}
.month-nav button:hover{ background: var(--accent); color:#fff; transform: scale(1.06); }
.month-name{
  font-family: var(--font-display); font-weight:600; font-style:italic; font-size: 40px; line-height:1.05; margin: 4px 0 0;
  max-width:100%; overflow-wrap:break-word; word-break: break-word; transition: font-size .1s ease; color: var(--ink);
}
.month-year{ color: var(--muted); font-weight:700; letter-spacing:0.1em; font-size:13px; margin-bottom: 2px;}

/* =============================================================
   6. Objetivos
   ============================================================= */
textarea#objetivos{
  width:100%; min-height: 92px; resize: vertical; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; font-family: var(--font-body); font-size: 13.5px;
  color: var(--ink); background: var(--bg); outline:none;
}
textarea#objetivos:focus{ border-color: var(--accent); }

/* =============================================================
   7. Categories
   ============================================================= */
.cat-list{ display:flex; flex-wrap:wrap; gap:8px; }
.cat-pill{ padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight:700; cursor:default; display:flex; align-items:center; gap:6px; }
.cat-pill-del{ border:none; background:none; color:inherit; opacity:0.55; cursor:pointer; font-size:10px; padding:0; line-height:1; }
.cat-pill-del:hover{ opacity:1; color: var(--danger); }
.cat-add{ display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.swatches{ display:flex; gap:6px; flex-wrap:wrap; }
.swatch{ width:20px; height:20px; border-radius:50%; cursor:pointer; border:2px solid transparent; flex:0 0 auto; }
.swatch.sel{ border-color: var(--ink); }

.input-with-add{ position:relative; }
.input-with-add input[type=text]{
  width:100%; border:1px solid var(--line); border-radius:10px; padding:9px 11px; padding-right:38px;
  font-size:13px; font-family: var(--font-body); background: var(--bg);
}
.inline-add-btn{
  position:absolute; top:50%; right:5px; transform:translateY(-50%);
  width:26px; height:26px; border-radius:50%; border:none; background: var(--accent); color:#fff;
  font-family: var(--font-body); font-size:16px; font-weight:800; line-height:1; padding:0;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.inline-add-btn:hover{ filter: brightness(0.94); }

/* =============================================================
   8. Filter bar
   ============================================================= */
.filter-bar{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
.filter-chip{
  border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); padding:6px 13px; border-radius:999px;
  font-size:11.5px; font-weight:700; cursor:pointer; font-family: var(--font-body);
}
.filter-chip.active-filter{ border-color: var(--ink); color: var(--ink); }
.filter-chip-all{ background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.filter-chip-all.active-filter{ background: var(--accent); color:#fff; border-color: transparent; }
.filter-chip-none{ border-style: dashed; }

/* =============================================================
   9. Lists
   ============================================================= */
.shop-add{ display:flex; gap:6px; margin-bottom: 10px; flex-wrap: wrap; }
.shop-add input{ flex:1 1 120px; border:1px solid var(--line); border-radius:10px; padding:8px 10px; font-family: var(--font-body); font-size:13px; }
.shop-add button{ border:none; background: var(--accent); color:#fff; border-radius:10px; padding:0 15px; font-weight:800; cursor:pointer; }
.shop-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; max-height:220px; overflow:auto; }
.shop-item{ display:flex; align-items:center; gap:8px; font-size:13.5px; }
.shop-item input[type=checkbox]{ width:16px; height:16px; accent-color: var(--sage); flex:0 0 auto; }
.shop-item span{ flex:1; }
.shop-item.done span{ text-decoration: line-through; color: var(--muted); }
.shop-item button{ border:none; background:none; color: var(--muted); cursor:pointer; font-size:14px; }
.shop-item button:hover{ color: var(--terracotta); }
.empty-hint{ color: var(--muted); font-size:12.5px; font-style: italic; padding: 4px 2px; }

.member-row{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.member-row:last-child{ margin-bottom:0; }
.member-dot{ width:14px; height:14px; border-radius:50%; flex:0 0 auto; }
.member-dot.memberA{ background: var(--memberA); }
.member-dot.memberB{ background: var(--memberB); }
.member-row input{ flex:1; border:1px solid var(--line); border-radius:10px; padding:8px 10px; font-family: var(--font-body); font-size:13px; }

.suggestion-chip{
  display:inline-flex; align-items:center; gap:6px; border:1.5px dashed var(--line); color: var(--muted);
  background:transparent; border-radius:999px; padding:6px 12px; font-size:12.5px; font-weight:700; cursor:pointer; margin-bottom:10px;
}
.suggestion-chip:hover{ border-color: var(--accent); color: var(--accent); }

.list-add{ margin-top: 4px; }
.list-row{ border:1px solid var(--line); border-radius:14px; margin-bottom:10px; background: var(--bg); overflow:hidden; }
.list-row-head{ display:flex; align-items:center; justify-content:space-between; padding:11px 13px; cursor:pointer; gap:8px; }
.list-row-head-left{ display:flex; align-items:center; gap:8px; font-size:13.5px; font-weight:800; min-width:0; }
.list-row-head-left span.lname{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.list-count{ font-size:10.5px; color: var(--muted); font-weight:700; background: var(--line); padding:2px 7px; border-radius:999px; flex:0 0 auto; }
.list-chev{ font-size:11px; color: var(--muted); transition: transform .2s var(--ease-out); flex:0 0 auto; }
.list-row.open .list-chev{ transform: rotate(180deg); }
.list-row-del{ border:none; background:none; color: var(--muted); cursor:pointer; font-size:13px; flex:0 0 auto; }
.list-row-del:hover{ color: var(--danger); }
.list-row-body{ padding:0 13px 13px; border-top:1px solid var(--line); }

.reset-link{ display:block; text-align:center; margin-top: 6px; font-size: 11.5px; color: var(--muted); text-decoration: underline; cursor:pointer; background:none; border:none; width:100%; }

/* =============================================================
   10. Calendar
   ============================================================= */
.cal-card{ padding: 14px; }
.cal-head, .cal-grid{ display:grid; grid-template-columns: repeat(7, 1fr); }
.cal-head div{ text-align:center; font-size: 11.5px; font-weight:800; letter-spacing:0.07em; color: var(--muted); padding: 8px 4px; }
.cal-grid{ gap: 7px; }
.day-cell{
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; height: 104px;
  padding: 6px; display:flex; flex-direction:column; gap:4px; cursor:pointer; position:relative;
  transition: box-shadow .2s var(--ease-out), border-color .2s var(--ease-out); overflow:hidden;
}
.day-cell:hover{ box-shadow: var(--shadow-lift); border-color: var(--terracotta); }
.day-cell.other-month{ opacity: 0; pointer-events:none; }
.day-num{ font-size: 12.5px; font-weight:800; color: var(--ink); align-self:flex-end; flex-shrink:0; cursor:pointer; }
.day-cell.today .day-num{ background: var(--ink); color:#fff; border-radius:50%; width:20px; height:20px; display:flex; align-items:center; justify-content:center; align-self:flex-end; }
.day-cell.selected-day{ box-shadow: 0 0 0 2px var(--accent) inset; }
.day-view-btn{
  position:absolute; top:5px; left:5px; width:16px; height:16px; border-radius:50%; z-index:2;
  display:flex; align-items:center; justify-content:center; font-size:9px; line-height:1;
  background: var(--accent-soft); color: var(--accent); opacity:0.7; cursor:pointer;
}
.day-view-btn:hover{ opacity:1; }
.day-cell.selected-day .day-view-btn{ background: var(--accent); color:#fff; opacity:1; }
.ev-pill{
  font-size: 10px; font-weight:700; border-radius: 7px; padding: 1px 6px; display:flex; align-items:center; gap:4px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border: 2px solid transparent; flex-shrink:0; min-width:0; line-height:1.5;
}
.ev-pill.highlighted{ border-color: var(--sun); background: var(--sun-soft) !important; box-shadow: 0 0 0 1px var(--sun-soft); }
.ev-more{ font-size: 11px; color: var(--accent); font-weight:800; padding: 2px 7px; flex-shrink:0; background: var(--accent-soft); border-radius: 7px; text-align:center; cursor:pointer; }
.author-dot{ font-size:8.5px; font-weight:800; flex:0 0 auto; width:13px; height:13px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:#fff; }

.main-col{ display:block; min-width:0; }
.lower-row{ display:grid; grid-template-columns: 1fr 1.3fr; gap:16px; align-items:start; margin-top:16px; }
.lower-row .card{ margin-top:0; }
@media (max-width: 720px){ .lower-row{ grid-template-columns: 1fr; } }

@media (max-width: 640px){
  body{ padding: 18px 12px 40px; }
  .brand span{ font-size: 11.5px; }
  .card{ padding: 15px 15px 17px; }
  .day-cell{ height: 78px; padding:4px; gap:2px; border-radius:10px; }
  .day-num{ font-size: 11px; }
  .day-view-btn{ width:14px; height:14px; font-size:7.5px; }
  .ev-pill{ font-size: 8.5px; padding: 1px 4px; gap:3px; }
  .ev-pill .author-dot{ display:none; }
  .ev-more{ font-size: 9.5px; padding: 1px 5px; }
  .cat-pill, .filter-chip{ font-size: 10.5px; padding: 4px 10px; }
  .cal-head div{ font-size: 9.5px; padding: 5px 2px; }
}

/* =============================================================
   11. Weekly summary
   ============================================================= */
.week-block{ margin-bottom:14px; border-radius:12px; padding:8px; margin-left:-8px; margin-right:-8px; }
.week-block:last-child{ margin-bottom:0; }
.week-block.active-week{ background: var(--accent-soft); }
.week-head{ font-size:11.5px; font-weight:800; color: var(--accent); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:6px; cursor:pointer; display:inline-block; }
.week-head:hover{ text-decoration: underline; }
.week-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:5px; }
.week-list li{ display:flex; align-items:center; gap:8px; font-size:12.5px; padding:6px 9px; border-radius:9px; cursor:pointer; background: var(--bg); border:1px solid var(--line); }
.week-list li:hover{ border-color: var(--accent); }
.week-date{ font-weight:800; color: var(--ink); min-width:44px; flex:0 0 auto; }
.week-cat-dot{ width:8px; height:8px; border-radius:50%; flex:0 0 auto; }
.week-text{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }

/* =============================================================
   12. Day detail (hourly timeline)
   ============================================================= */
.day-detail-header{ font-size:13px; font-weight:800; color: var(--ink); margin-bottom:10px; }
.allday-section{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
.allday-chip{ display:flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px; font-size:11.5px; font-weight:700; cursor:pointer; }
.timeline-heads{ display:grid; grid-template-columns: 40px 1fr 1fr; gap:6px; margin-bottom:4px; }
.timeline-person-head{ font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; color: var(--muted); text-align:center; padding-bottom:4px; border-bottom:1px solid var(--line); }
.timeline-body{ position:relative; display:grid; grid-template-columns: 40px 1fr 1fr; gap:6px; }
.timeline-hours{ position:relative; }
.timeline-hour-label{ position:absolute; left:0; right:4px; transform: translateY(-6px); font-size:9px; color: var(--muted); font-weight:700; text-align:right; }
.timeline-track{ position:relative; border-radius:8px; background-color: var(--bg); border:1px solid var(--line); }
.timeline-block{ position:absolute; left:2px; right:2px; border-radius:8px; padding:3px 6px; overflow:hidden; cursor:pointer; border:2px solid transparent; font-size:10px; line-height:1.25; }
.timeline-block.overlap{ border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun-soft); }
.timeline-block-time{ font-weight:800; font-size:9px; }
.timeline-block-text{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.timeline-block-warn{ position:absolute; top:2px; right:4px; font-size:9px; }

/* =============================================================
   13. Week detail
   ============================================================= */
.week-day-block{ padding:11px 0; border-top:1px solid var(--line); }
.week-day-block:first-child{ border-top:none; padding-top:0; }
.week-day-head{ font-size:12px; font-weight:800; color: var(--ink); margin-bottom:8px; cursor:pointer; display:inline-block; }
.week-day-head:hover{ color: var(--accent); }
.week-day-cols{ display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
.week-day-col{ display:flex; flex-direction:column; gap:5px; min-width:0; }
.week-day-col-head{ font-size:9.5px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; color: var(--muted); margin-bottom:1px; }
.week-day-row{ display:flex; align-items:center; gap:6px; font-size:11px; padding:4px 7px; border-radius:7px; cursor:pointer; border:2px solid transparent; min-width:0; position:relative; }
.week-day-row.overlap{ border-color: var(--sun); }
.week-day-row-time{ font-weight:800; flex:0 0 auto; font-size:9.5px; }
.week-day-row-text{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; flex:1; }
.week-day-row-warn{ flex:0 0 auto; font-size:9.5px; }

/* =============================================================
   14. Modals
   ============================================================= */
.overlay{ position:fixed; inset:0; background: rgba(36,31,28,0.4); display:none; align-items:center; justify-content:center; z-index: 50; padding: 20px; }
.overlay.show{ display:flex; }
.modal{ background: var(--surface); border-radius: 22px; padding: 24px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lift); max-height: 88vh; overflow:auto; }
.modal h4{ font-family: var(--font-display); font-style: italic; margin: 0 0 16px; font-size:19px; }
.field{ margin-bottom: 13px; }
.field label{ display:block; font-size:11.5px; font-weight:800; color: var(--muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.06em; }
.field input[type=text], .field input[type=email]{ width:100%; border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-family: var(--font-body); font-size:14px; background: var(--bg); }
.field input.error{ border-color: var(--danger); }
.field-error{ display:none; color: var(--danger); font-size:11.5px; font-weight:700; margin-top:6px; }
.allday-toggle{ display:flex; align-items:center; gap:8px; font-size:13.5px; font-weight:700; cursor:pointer; }
.allday-toggle input{ width:16px; height:16px; }
.time-row{ display:flex; align-items:center; gap:8px; margin-top:9px; }
.time-row select{ flex:1; border:1px solid var(--line); border-radius:10px; padding:8px 9px; font-family: var(--font-body); font-size:13px; background: var(--bg); min-width:0; }
.time-row select.error{ border-color: var(--danger); }
.time-row span{ font-size:12.5px; color: var(--muted); font-weight:700; flex:0 0 auto; }

.day-picker-list{ display:flex; flex-direction:column; gap:8px; max-height:50vh; overflow:auto; margin-bottom:14px; }
.day-picker-item{ display:flex; align-items:center; gap:8px; width:100%; border:1px solid var(--line); border-radius:12px; padding:10px 12px; cursor:pointer; font-size:13px; text-align:left; background: var(--bg); font-family: var(--font-body); }
.day-picker-item:hover{ border-color: var(--accent); }
.day-picker-dot{ width:10px; height:10px; border-radius:50%; flex:0 0 auto; }
.day-picker-time{ font-weight:800; color: var(--ink); min-width:78px; flex:0 0 auto; font-size:11.5px; }
.day-picker-text{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }

.customize-modal{ max-width:400px; }
.custom-section{ margin-bottom:18px; }
.custom-section > label{ display:block; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.06em; color: var(--muted); margin-bottom:10px; }
.color-row{ display:flex; gap:16px; }
.color-field{ display:flex; flex-direction:column; align-items:center; gap:6px; font-size:11px; color: var(--muted); font-weight:700; }
.color-field input[type=color]{ width:44px; height:34px; border:none; border-radius:8px; cursor:pointer; padding:0; background:none; }
.link-btn{ border:none; background:none; color: var(--accent); font-size:11.5px; font-weight:700; text-decoration:underline; cursor:pointer; padding:0; margin-top:10px; }
.block-order-list{ display:flex; flex-direction:column; gap:6px; }
.block-order-item{ display:flex; align-items:center; justify-content:space-between; border:1px solid var(--line); border-radius:10px; padding:8px 11px; font-size:12.5px; font-weight:700; }
.block-order-item .arrows{ display:flex; gap:4px; }
.block-order-item button{ border:none; background: var(--line); color: var(--ink); width:23px; height:23px; border-radius:6px; cursor:pointer; font-size:11px; display:flex; align-items:center; justify-content:center; }
.block-order-item button:disabled{ opacity:0.35; cursor:default; }
.field textarea{ width:100%; border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-family: var(--font-body); font-size:13.5px; resize: vertical; min-height:64px; background: var(--bg); }
.cat-choice{ display:flex; flex-wrap:wrap; gap:6px; }
.cat-choice button{ border: 2px solid transparent; padding:6px 13px; border-radius:999px; font-size:12px; font-weight:700; cursor:pointer; }
.cat-choice button.sel{ border-color: var(--ink); }
.emoji-row{ display:flex; flex-wrap:wrap; gap:6px; }
.emoji-row button{ width:36px; height:36px; border-radius:10px; border:1px solid var(--line); background: var(--bg); font-size:16px; cursor:pointer; }
.emoji-row button.sel{ border-color: var(--ink); background: var(--sun-soft); }
.author-choice{ display:flex; gap:8px; }
.author-choice button{ flex:1; border:2px solid var(--line); background: var(--bg); border-radius:12px; padding:9px; font-weight:800; cursor:pointer; font-size:13px; display:flex; align-items:center; justify-content:center; gap:6px; }
.author-choice button.sel-a{ border-color: var(--memberA); background: var(--memberA-soft); }
.author-choice button.sel-b{ border-color: var(--memberB); background: var(--memberB-soft); }
.author-dot-lg{ width:12px; height:12px; border-radius:50%; flex:0 0 auto; }
.toggle-row{ display:flex; align-items:center; gap:8px; font-size:13.5px; font-weight:700; }
.toggle-row input{ width:16px; height:16px; }
.modal-actions{ display:flex; gap:9px; margin-top: 18px; }

/* =============================================================
   15. Buttons
   ============================================================= */
.btn{ flex:1; border:none; border-radius:999px; padding: 11px; font-weight:800; cursor:pointer; font-size:13.5px; font-family: var(--font-body); transition: transform .2s var(--ease-out), filter .2s; }
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--ink); color: var(--surface); }
.btn-primary:hover{ filter: brightness(1.08); }
.btn-secondary{ background: var(--line); color: var(--ink); }
.btn-danger{ background: var(--danger-soft); color: var(--danger); }
.btn-ghost{ background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-block{ width: 100%; }

.confirm-box{ text-align:center; }
.confirm-box p{ font-size: 14px; margin-bottom: 18px; color: var(--muted); }
