/* Shared styles for the signed-in app pages (/write/, /account/). */
.app { max-width: 980px; margin: 0 auto; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.app-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 22px; }
.app-tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 550; }
.app-tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.app .panel { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 20px 22px; margin: 0 0 18px; }
.app .panel h2 { font-size: 1.15rem; margin: 0 0 6px; }
.app .panel > p.meta { margin-top: 0; }
.app label.f { display: block; font-size: .9rem; font-weight: 600; margin: 0 0 14px; }
.app label.f input, .app label.f select, .app label.f textarea { display: block; width: 100%; margin-top: 6px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 400; box-sizing: border-box; }
.app label.f input:focus, .app label.f textarea:focus, .app label.f select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; }
.app .hint { font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: 6px; }
.app .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.app .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
@media (max-width: 700px) { .app .grid2, .app .grid3 { grid-template-columns: 1fr; } }
.app .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.app .spread { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.app button.btn { cursor: pointer; font: inherit; font-weight: 650; }
.app button.btn[disabled] { opacity: .55; cursor: wait; }
.app button.btn.danger { background: #dc2626; color: #fff; }
.app .lnk { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; }
.app .lnk.danger { color: #f87171; }
.app .msg { margin: 10px 0 0; font-size: .93rem; min-height: 1.2em; }
.app .msg.err { color: #f87171; } .app .msg.ok { color: var(--accent); }
.app .st { display: inline-block; font-size: .74rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; font-weight: 600; }
.app .st.published { color: var(--accent); border-color: var(--accent); }
.app .st.review { color: #60a5fa; border-color: #60a5fa; }
.app .st.changes, .app .st.hidden { color: #fbbf24; border-color: #fbbf24; }
.app .st.rejected { color: #f87171; border-color: #f87171; }
.app .switch { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.app .switch:first-of-type { border-top: 0; }
.app .switch input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.app .switch b { display: block; } .app .switch span { color: var(--muted); font-size: .9rem; }
.app .note { padding: 10px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: .9rem; margin: 10px 0 0; }
.app .note ul { margin: 6px 0 0; padding-left: 18px; }
.app .note.warn { border-color: color-mix(in srgb, #fbbf24 50%, var(--line)); }
.app .empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.app .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 18px; }
.app .kpi { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px; }
.app .kpi span { color: var(--muted); font-size: .82rem; } .app .kpi b { display: block; font-size: 1.5rem; margin-top: 2px; }
.app .notif { display: flex; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.app .notif:first-child { border-top: 0; }
.app .notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }
.app .notif.read .dot { background: transparent; }
.app .notif p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.app .notif small { color: var(--muted); }
.app .bell { position: relative; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .9rem; }
.app .bell i { font-style: normal; background: var(--accent); color: var(--accent-ink, #042a25); border-radius: 999px; font-size: .72rem; padding: 0 7px; font-weight: 700; }
.app table.mini { width: 100%; border-collapse: collapse; font-size: .9rem; }
.app table.mini td, .app table.mini th { padding: 8px 6px; border-top: 1px solid var(--line); text-align: left; }
.app .timeline { list-style: none; padding: 0; margin: 8px 0 0; font-size: .88rem; }
.app .timeline li { padding: 6px 0 6px 16px; border-left: 2px solid var(--line); position: relative; color: var(--muted); }
.app .timeline li::before { content: ''; position: absolute; left: -5px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.app .timeline li b { color: var(--text); font-weight: 600; }
.app .toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: .92rem; z-index: 50; box-shadow: 0 6px 30px rgba(0,0,0,.3); }
/* Public profile editor */
.app .pf-photo { display: flex; gap: 18px; align-items: center; margin: 4px 0 18px; }
.app .pf-av { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #0e9f8e); color: var(--accent-ink); font: 700 1.6rem/1 var(--display); }
.app .pf-av img { width: 100%; height: 100%; object-fit: cover; }
.app .pf-up { cursor: pointer; }
.app .pf-h { font-size: 1rem; margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .app .pf-photo { flex-direction: column; text-align: center; } }
