/* =============================================================
   write.css: /reports/write, Charming's private writing screen.
   Mobile first. Same brand as the site, calmer: paper, ink, coral
   for the one main action per screen. Pixel, 2026-10-11.
   ============================================================= */

/* ---------- Mockup board (not part of the product) ---------- */
.board { padding: 48px 40px 80px; max-width: 1360px; margin: 0 auto; }
.board-head { max-width: 900px; margin-bottom: 40px; }
.board-head h1 { font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(40px, 5vw, 64px); line-height: .98; letter-spacing: -.02em; }
.board-head > p:not(.eyebrow) { font-size: 18px; color: var(--ink-2); margin: 16px 0 0; max-width: 62ch; }
.board-row { display: grid; grid-template-columns: repeat(3, 410px); justify-content: space-between; gap: 56px 24px; margin-bottom: 64px; }
.shot-cap { font-family: 'Caveat', cursive; font-size: 24px; font-weight: 700; color: var(--ink); margin: 0 0 4px; display: flex; gap: 10px; align-items: baseline; }
.shot-cap b { font-family: 'Fraunces', serif; font-weight: 900; font-size: 15px; color: var(--coral-text); }
.shot-note { font-size: 14px; color: var(--ink-3); margin: 0 0 14px; min-height: 42px; line-height: 1.5; }
.device { width: 410px; height: 864px; border: 10px solid var(--ink); border-radius: 50px; overflow: hidden; background: var(--paper); position: relative; box-shadow: 8px 10px 0 rgba(28,25,28,.16); }
.statusbar { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.statusbar i { width: 64px; height: 12px; border-radius: 6px; background: var(--ink); opacity: .85; font-style: normal; }
.screen { position: absolute; inset: 40px 0 0 0; display: flex; flex-direction: column; overflow: hidden; }
.desk-sec { margin-top: 24px; }
.desk-frame { width: 1280px; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 8px 10px 0 rgba(28,25,28,.16); background: var(--paper); }
.desk-bar { height: 40px; background: var(--paper-2); border-bottom: 1.5px solid var(--ink); display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.desk-bar i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); }
.desk-bar span { margin-left: 16px; flex: 1; max-width: 560px; background: var(--paper); border: 1.5px solid var(--rule); border-radius: 999px; font-size: 13px; color: var(--ink-3); padding: 4px 14px; }

/* ---------- App chrome ---------- */
.w-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1.5px solid var(--ink); background: var(--paper); min-height: 60px; }
.w-bar h2 { font-family: 'Fraunces', serif; font-weight: 900; font-size: 22px; }
.w-bar .saved { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.w-bar .saved::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); border: 1.5px solid var(--ink); }
.w-icon { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); display: inline-grid; place-items: center; color: var(--ink); flex-shrink: 0; }
.w-icon svg { width: 20px; height: 20px; }
.w-body { flex: 1; overflow: hidden; padding: 18px 16px 120px; }
.w-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px 22px; background: linear-gradient(transparent, var(--paper) 22%); display: flex; gap: 10px; }
.w-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px; font: 700 15px 'DM Sans', sans-serif; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; }
.w-btn.primary { background: var(--coral); border-color: var(--ink); color: #fff; box-shadow: var(--shadow-paper); }
.w-btn.ink { background: var(--ink); color: var(--paper); }
.w-btn.grow2 { flex: 2; }
.w-btn svg { width: 18px; height: 18px; }

.w-tabs { display: flex; gap: 6px; padding: 4px; background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 999px; margin-bottom: 16px; }
.w-tabs span { flex: 1; text-align: center; padding: 9px 6px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.w-tabs span.on { background: var(--ink); color: var(--paper); }
.w-tabs span b { font-family: 'Fraunces', serif; font-weight: 900; font-size: 12px; color: var(--coral-text); margin-left: 4px; }
.w-tabs span.on b { color: var(--yellow); }

/* ---------- Form fields ---------- */
.w-field { margin-bottom: 16px; }
.w-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.w-input { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; font: 400 16px/1.4 'DM Sans', sans-serif; color: var(--ink); }
.w-input.focus { box-shadow: 0 0 0 3px var(--yellow); }
.w-input.ph { color: var(--ink-4); }
.w-help { font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.45; }
.w-title-in { font-family: 'Fraunces', serif; font-weight: 900; font-size: 30px; line-height: 1.05; letter-spacing: -.015em; color: var(--ink); padding: 4px 2px 8px; border-bottom: 1.5px dashed var(--rule); margin-bottom: 10px; }
.w-sub-in { font-size: 17px; color: var(--ink-2); padding: 2px 2px 12px; border-bottom: 1.5px dashed var(--rule); margin-bottom: 14px; }
.w-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.w-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--paper); }
.w-chip.on { background: var(--ink); color: var(--paper); }
.w-chip.add { border-style: dashed; color: var(--ink-3); }
.w-seg { display: flex; border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; }
.w-seg span { flex: 1; text-align: center; padding: 12px; font-weight: 700; font-size: 15px; }
.w-seg span + span { border-left: 1.5px solid var(--ink); }
.w-seg span.on { background: var(--yellow); }
.w-url { display: flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; overflow: hidden; font-size: 14.5px; }
.w-url span { padding: 13px 0 13px 14px; color: var(--ink-3); white-space: nowrap; }
.w-url b { padding: 13px 14px 13px 0; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.w-toggle i { width: 44px; height: 26px; border-radius: 999px; background: var(--green); border: 1.5px solid var(--ink); position: relative; flex-shrink: 0; }
.w-toggle i::after { content: ''; position: absolute; right: 2px; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); }

/* ---------- Article list ---------- */
.w-item { position: relative; display: grid; grid-template-columns: 76px 1fr 44px; gap: 12px; align-items: center; padding: 12px; border: 1.8px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-paper); margin-bottom: 14px; }
.w-item .thumb { width: 76px; height: 76px; border-radius: 12px; border: 1.5px solid var(--ink); overflow: hidden; background: var(--paper-2); }
.w-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.w-item h3 { font-family: 'Fraunces', serif; font-weight: 900; font-size: 18px; line-height: 1.12; }
.w-item h3.untitled { color: var(--ink-3); font-weight: 700; }
.w-item .row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.w-status { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); }
.w-status.pub { background: var(--green); }
.w-status.draft { background: var(--yellow); }
.w-more { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid transparent; }
.w-more.open { border-color: var(--ink); background: var(--paper-2); }
.w-menu { position: absolute; right: 10px; top: 64px; z-index: 5; width: 210px; background: var(--paper); border: 1.8px solid var(--ink); border-radius: 16px; box-shadow: 5px 6px 0 rgba(28,25,28,.2); overflow: hidden; }
.w-menu span { display: flex; align-items: center; min-height: 48px; padding: 0 16px; font-weight: 600; font-size: 15px; border-top: 1px solid var(--rule-soft); }
.w-menu span:first-child { border-top: 0; }
.w-menu span.danger { color: var(--coral-text); }

/* ---------- Editor blocks ---------- */
.w-block { position: relative; border: 1.5px solid var(--rule); border-radius: 16px; padding: 30px 14px 14px; margin-bottom: 12px; background: var(--paper); }
.w-block.sel { border: 2px solid var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.w-btag { position: absolute; top: 8px; left: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.w-btag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--bt, var(--ink-4)); }
.w-bctl { position: absolute; top: 4px; right: 8px; display: flex; gap: 2px; color: var(--ink-3); font-size: 18px; letter-spacing: 2px; }
.w-block p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.w-block h4 { font-family: 'Fraunces', serif; font-weight: 900; font-size: 22px; line-height: 1.1; }
.w-mini-stat { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: start; }
.w-mini-stat b { font-family: 'Fraunces', serif; font-weight: 900; font-size: 26px; line-height: 1; text-align: right; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: .2em; text-underline-offset: -.08em; text-decoration-skip-ink: none; }
.w-mini-stat small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.w-mini-tiles { display: flex; gap: 6px; }
.w-mini-tiles span { flex: 1; border: 1.5px solid var(--ink); border-radius: 10px; padding: 8px 6px; font-family: 'Fraunces', serif; font-weight: 900; font-size: 16px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-fmt { display: flex; gap: 4px; margin-top: 10px; padding: 4px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper-2); width: max-content; }
.w-fmt span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; font-weight: 700; font-size: 15px; padding: 0 8px; }
.w-fmt span.on { background: var(--ink); color: var(--paper); }
.w-cover { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 10px; border: 1.5px dashed var(--ink); border-radius: 16px; margin-bottom: 16px; }
.w-cover img { width: 110px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--ink); }
.w-cover b { display: block; font-size: 14px; }
.w-cover span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.w-addline { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; margin: 2px 0 12px; }
.w-addline::before, .w-addline::after { content: ''; flex: 1; height: 0; border-top: 1.5px dashed var(--rule); }
.w-addline i { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--ink); background: var(--paper); }

/* ---------- Sheets and dialogs ---------- */
.w-scrim { position: absolute; inset: 0; background: rgba(28,25,28,.42); z-index: 8; }
.w-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; background: var(--paper); border-top: 2px solid var(--ink); border-radius: 26px 26px 0 0; padding: 10px 16px 22px; max-height: 92%; overflow: hidden; }
.w-sheet.full { top: 16px; display: flex; flex-direction: column; max-height: none; }
.w-sheet-scroll { flex: 1; min-height: 0; overflow: hidden; position: relative; margin-bottom: 12px; }
.w-sheet-scroll::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(transparent, var(--paper)); }
.w-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--ink-4); margin: 0 auto 12px; }
.w-sheet h3 { font-family: 'Fraunces', serif; font-weight: 900; font-size: 24px; line-height: 1.1; margin-bottom: 4px; }
.w-sheet .sub { font-size: 14px; color: var(--ink-3); margin: 0 0 14px; }
.w-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w-bk { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 10px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); min-height: 64px; }
.w-bk.hot { background: var(--cream); box-shadow: var(--shadow-paper); }
.w-bk i { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-style: normal; background: var(--paper-2); font-family: 'Fraunces', serif; font-weight: 900; font-size: 15px; color: var(--ink); overflow: hidden; }
.w-bk b { display: block; font-size: 14px; line-height: 1.2; }
.w-bk span { display: block; font-size: 11.5px; line-height: 1.3; color: var(--ink-3); margin-top: 2px; }
.w-preview { border: 1.5px dashed var(--ink); border-radius: 16px; padding: 14px; margin-bottom: 14px; background: var(--paper-2); }
.w-preview .w-plabel { font-family: 'Kalam', cursive; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.w-dialog { position: absolute; left: 20px; right: 20px; top: 50%; transform: translateY(-50%); z-index: 9; background: var(--paper); border: 2px solid var(--ink); border-radius: 24px; padding: 24px 20px 20px; box-shadow: 6px 8px 0 rgba(28,25,28,.25); }
.w-dialog h3 { font-family: 'Fraunces', serif; font-weight: 900; font-size: 26px; line-height: 1.08; }
.w-dialog p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 10px 0 20px; }
.w-dialog .btns { display: flex; gap: 10px; }
.w-btn.danger { background: var(--coral-text); color: #fff; border-color: var(--ink); }

.w-check { border: 1.8px solid var(--ink); border-radius: 18px; overflow: hidden; margin-bottom: 14px; }
.w-check-head { background: var(--cream); padding: 12px 14px; border-bottom: 1.5px solid var(--ink); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.w-check-head i { width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); border: 1.5px solid var(--ink); display: grid; place-items: center; font-style: normal; font-family: 'Fraunces', serif; font-weight: 900; }
.w-check-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--rule-soft); font-size: 14.5px; line-height: 1.4; }
.w-check-row:first-of-type { border-top: 0; }
.w-check-row .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ink); }
.w-check-row .dot.warn { background: var(--yellow); }
.w-check-row .dot.ok { background: var(--green); }
.w-check-row .dot svg { width: 13px; height: 13px; }
.w-check-row small { display: block; color: var(--ink-3); font-size: 13px; }
.w-check-row a { font-weight: 700; font-size: 13.5px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; white-space: nowrap; }
.w-note { font-family: 'Kalam', cursive; font-size: 15px; color: var(--ink-3); line-height: 1.4; margin: 0 0 16px; }

.w-signin { padding: 40px 24px 24px; display: flex; flex-direction: column; height: 100%; position: relative; isolation: isolate; overflow: hidden; }
.w-signin .seal { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--ink); }
.w-signin h2 { font-family: 'Fraunces', serif; font-weight: 900; font-size: 40px; line-height: .98; letter-spacing: -.02em; margin: 22px 0 8px; }
.w-signin .lead { font-size: 16px; color: var(--ink-2); margin: 0 0 28px; }
.w-signin .shape { position: absolute; border-radius: 50%; z-index: -1; }
.w-pw { position: relative; }
.w-pw em { position: absolute; right: 14px; top: 38px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.w-lock { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-3); line-height: 1.45; padding: 12px 14px; border: 1.5px dashed var(--rule); border-radius: 14px; }
.w-lock svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.w-prevbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--yellow); border-bottom: 1.5px solid var(--ink); font-weight: 700; font-size: 14px; }
.w-prevbar span { display: inline-flex; gap: 8px; align-items: center; }
.w-prevbar a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.w-prevframe { flex: 1; border: 0; width: 100%; display: block; }
.w-devtoggle { display: flex; gap: 4px; padding: 3px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; }
.w-devtoggle i { font-style: normal; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.w-devtoggle i.on { background: var(--ink); color: var(--paper); }

/* ---------- Desktop editor ---------- */
.d-app { display: grid; grid-template-columns: 1fr 360px; min-height: 780px; }
.d-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1.5px solid var(--ink); }
.d-top .grow { flex: 1; }
.d-top .w-btn { flex: 0 0 auto; padding: 0 22px; min-height: 44px; }
.d-canvas { padding: 40px 0 60px; border-right: 1.5px solid var(--ink); position: relative; }
.d-col { max-width: 680px; margin: 0 auto; }
.d-col .w-title-in { font-size: 52px; }
.d-col .w-sub-in { font-size: 20px; }
.d-gutter { position: absolute; left: calc(50% - 400px); display: flex; flex-direction: column; gap: 8px; }
.d-side { padding: 22px 22px 40px; background: var(--paper-2); }
.d-side h4 { font-family: 'Fraunces', serif; font-weight: 900; font-size: 18px; margin: 4px 0 14px; }
.d-blockbar { position: sticky; top: 0; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; margin-bottom: 18px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--paper); }
.d-blockbar span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1.5px solid var(--rule); border-radius: 999px; font-size: 13px; font-weight: 600; }
.d-blockbar span b { font-family: 'Fraunces', serif; font-weight: 900; }

@media (max-width: 1360px) {
  .board-row { grid-template-columns: repeat(2, 410px); justify-content: start; }
  .desk-frame { zoom: .72; }
}
@media (max-width: 900px) {
  .board-row { grid-template-columns: 410px; justify-content: center; }
  .desk-frame { zoom: .55; }
}
@media (max-width: 500px) {
  .board { padding: 28px 0 56px; }
  .board-head, .shot-cap, .shot-note, .desk-sec > h2, .desk-sec > p { padding: 0 20px; }
  .board-row { grid-template-columns: 1fr; gap: 40px; }
  .device { width: 100%; height: 844px; border: 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); border-radius: 0; box-shadow: none; }
  .statusbar { display: none; }
  .screen { inset: 0; }
  .desk-frame { zoom: .29; margin-left: 20px; }
}
