/* COLD STUDIO — layout and components (colours, type and shapes come from cold.css) */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 14px/1.5 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

.wordmark { font-weight: 700; letter-spacing: .14em; font-size: 13px; }
.wordmark span { font-weight: 400; color: var(--muted); }
.wordmark.inv { color: #fff; }
.wordmark.inv span { color: #8c8c8c; }

/* login */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 28px; box-shadow: var(--shadow); }
.login-card h1 { font: 400 40px/1.1 var(--serif); margin: 26px 0 8px; }
.say { min-height: 20px; font-size: 13px; color: var(--ink2); margin: 12px 0 0; }
.say.err { color: var(--ko); }

/* layout */
.app { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
.side { grid-row: 1 / span 2; background: #000; color: #f2f2f2; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 12px 14px; }
.brand { padding: 2px 10px 18px; }
.side-client { padding: 0 10px 14px; }
.side-client select { width: 100%; background: #161616; color: #fff; border: 1px solid #2a2a2a; border-radius: var(--r-s); padding: 8px 10px; }
.side-client .name { font-size: 15px; font-weight: 600; color: #fff; }
.nav { display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; }
.nav .sec { font-size: 12px; font-weight: 500; color: #8c8c8c; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: 13.5px; color: #d6d6d6; text-decoration: none; cursor: pointer; }
.nav a:hover { background: #1b1b1b; color: #fff; }
.nav a.on { background: #fff; color: #000; font-weight: 500; }
.nav .cnt { margin-left: auto; font-size: 12px; font-weight: 600; background: var(--accent); color: #fff; border-radius: 99px; padding: 0 7px; line-height: 19px; min-width: 19px; text-align: center; }
.foot { padding: 12px 10px 0; font-size: 12px; color: #9a9a9a; border-top: 1px solid #1f1f1f; display: flex; gap: 10px; align-items: center; }
.foot .av { width: 28px; height: 28px; border-radius: 50%; background: #262626; color: #e6e6e6; display: flex; align-items: center; justify-content: center; font-weight: 600; text-transform: uppercase; flex: none; }
.foot .who { min-width: 0; flex: 1; }
.foot b { color: #d6d6d6; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top { display: none; }
.main { padding: 32px 36px 80px; min-width: 0; max-width: 1280px; width: 100%; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; z-index: 30; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .app.menu .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .top-client { margin-left: auto; font-size: 13px; color: var(--muted); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main { padding: 20px 16px 80px; }
}

/* page head */
.head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head h1 { font: 400 40px/1.05 var(--serif); margin: 0; }
.head .sub { color: var(--muted); margin-top: 4px; }
.head .act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* buttons, fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-s); padding: 8px 14px; font-weight: 500; font-size: 13.5px; text-decoration: none; min-height: 38px; }
.btn:hover { border-color: var(--line-2); }
.btn.solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.solid:hover { background: #2a2a2a; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.warn { background: var(--warnbg); border-color: #f0d9ad; color: var(--warn); }
.btn.danger { color: var(--ko); }
.btn.sm { padding: 5px 10px; min-height: 30px; font-size: 12.5px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { border: 0; background: transparent; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg, .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink2); margin-bottom: 5px; }
.fld input, .fld select, .fld textarea, .in { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); padding: 9px 11px; outline: none; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .in:focus { border-color: var(--ink); }
.fld textarea { min-height: 90px; resize: vertical; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 14px; }
.checks { display: flex; gap: 14px; flex-wrap: wrap; }
.checks label { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card + .card { margin-top: 14px; }
.card h2 { font-size: 15px; margin: 0 0 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; border-radius: 99px; padding: 1px 9px; line-height: 20px; background: var(--soft); color: var(--ink2); white-space: nowrap; }
.chip.draft { background: var(--soft); color: var(--muted); }
.chip.review { background: var(--bluebg); color: var(--blue); }
.chip.changes { background: var(--warnbg); color: var(--warn); }
.chip.approved { background: var(--okbg); color: var(--ok); }
.chip.published { background: #111; color: #fff; }
.chip.ko { background: var(--kobg); color: var(--ko); }

/* week */
.weeknav { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.weeknav .lbl { font-weight: 600; font-size: 15px; margin: 0 6px; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { background: var(--soft); border-radius: var(--r); padding: 10px; min-height: 180px; display: flex; flex-direction: column; gap: 8px; }
.day.today { outline: 2px solid var(--ink); }
.day h3 { margin: 0 2px; font-size: 12.5px; font-weight: 600; color: var(--ink2); display: flex; justify-content: space-between; }
.day h3 .n { color: var(--muted); font-weight: 500; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; display: block; width: 100%; }
.post:hover { border-color: var(--line-2); }
.post .th { aspect-ratio: 4 / 5; background: #e9e7e3 center / cover no-repeat; position: relative; }
.post .th video { width: 100%; height: 100%; object-fit: cover; display: block; }
.post .th .k { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 1px 6px; }
.post .meta { padding: 7px 8px 8px; display: flex; flex-direction: column; gap: 4px; }
.post .t { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post .pl { font-size: 11.5px; color: var(--muted); }
.addday { border: 1px dashed var(--line-2); background: transparent; border-radius: 10px; padding: 8px; font-size: 12.5px; color: var(--muted); }
.addday:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 1100px) { .week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .week { grid-template-columns: 1fr; } .day { min-height: 0; } .day .posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px; }
.sheet-back { position: fixed; inset: 0; background: rgba(0,0,0,.42); }
.sheet-card { position: relative; width: 100%; max-width: 860px; background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 26px 22px; }
.sheet-x { position: absolute; right: 12px; top: 12px; }
.sheet-card h2 { font: 400 30px/1.1 var(--serif); margin: 0 40px 6px 0; }
@media (max-width: 860px) { .sheet { padding: 0; align-items: stretch; } .sheet-card { border-radius: 0; min-height: 100vh; padding: 20px 16px 30px; } }

/* post detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-top: 14px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.media { display: flex; flex-direction: column; gap: 10px; }
.media .m { border-radius: 10px; overflow: hidden; background: #e9e7e3; border: 1px solid var(--line); }
.media img, .media video { width: 100%; display: block; max-height: 70vh; object-fit: contain; background: #111; }
.media .bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; font-size: 12px; color: var(--muted); background: var(--panel); }
.cap { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.cap .h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: var(--soft); font-weight: 600; font-size: 13px; }
.cap pre { margin: 0; padding: 10px 12px; white-space: pre-wrap; word-wrap: break-word; font: 13.5px/1.55 var(--sans); }
.cap .tags { color: var(--blue); }
.feedback { background: var(--warnbg); color: var(--warn); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 13.5px; white-space: pre-wrap; }
.decide { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.decide .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.thread { margin-top: 18px; }
.thread .c { border-left: 2px solid var(--line); padding: 2px 0 2px 10px; margin-bottom: 10px; font-size: 13.5px; }
.thread .c .w { font-size: 12px; color: var(--muted); }
.thread form { display: flex; gap: 8px; }
.thread form input { flex: 1; }
.upl { border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); margin-bottom: 14px; }
.upl.drag { border-color: var(--ink); color: var(--ink); background: var(--soft); }
.files { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.files .f { position: relative; width: 84px; height: 105px; border-radius: 8px; overflow: hidden; background: #e9e7e3 center / cover; border: 1px solid var(--line); }
.files .f video { width: 100%; height: 100%; object-fit: cover; }
.files .f button { position: absolute; right: 3px; top: 3px; border: 0; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; padding: 0 5px; }

/* ideas */
.idea { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.idea .im { aspect-ratio: 4 / 3; background: #e9e7e3 center / cover; }
.idea .b { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.idea h3 { margin: 0; font-size: 14.5px; }
.idea p { margin: 0; color: var(--ink2); font-size: 13.5px; white-space: pre-wrap; }
.idea .f { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.react.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* plan */
.plan-body { white-space: pre-wrap; font-size: 14.5px; line-height: 1.65; }
.list .it { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list .it:last-child { border-bottom: 0; }
.list .it .d { font-weight: 600; min-width: 130px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 80; font-size: 13.5px; box-shadow: var(--shadow); }
.loading { color: var(--muted); padding: 30px 0; }
.login-card .install-btn{margin-top:12px}

/* client preview */
#preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #f3e27a; color: #111; font-size: 13px; padding: 8px 16px; text-align: center; }
#preview-bar a { color: #111; font-weight: 600; margin-left: 8px; }
.preview-link { margin-top: 10px; }
body.preview #main { padding-bottom: 56px; }

/* ---------- inspiration board (Pinterest-like) ---------- */
.ideas-head { margin-bottom: 12px; }
.pills { position: sticky; top: 0; z-index: 4; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 12px; margin: 0 0 4px; background: var(--bg); }
.pills::-webkit-scrollbar { display: none; }
.pills button { flex: none; border: 0; background: #ebe9e4; color: var(--ink); font: 500 13.5px/1 var(--sans); padding: 10px 14px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.pills button.on { background: var(--ink); color: #fff; }
.bgroup { padding: 14px 0 6px; }
.bgroup header { margin-bottom: 12px; }
.bgroup h2 { margin: 0; font: 400 22px/1.15 var(--serif); }
.bgroup header p, .fdesc { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.fdesc { margin: 0 0 12px; }
.masonry { columns: 2; column-gap: 10px; }
@media (min-width: 700px) { .masonry { columns: 3; column-gap: 12px; } }
@media (min-width: 1000px) { .masonry { columns: 4; } }
@media (min-width: 1300px) { .masonry { columns: 5; } }
.pin { position: relative; break-inside: avoid; margin: 0 0 10px; border-radius: 16px; overflow: hidden; background: #e9e7e2; min-height: 140px; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.pin.ok { min-height: 0; background: none; }
.pin img { width: 100%; height: auto; display: block; border-radius: 16px; }
.pin.note { cursor: default; background: var(--panel); border: 1px solid var(--line); min-height: 0; }
.pin.note figcaption { padding: 12px 14px 44px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.pin.note figcaption span { color: var(--ink2); white-space: pre-wrap; }
.pin.note figcaption a { color: var(--ink); font-weight: 500; }
.heart { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.12); padding: 0; }
.heart svg { width: 20px; height: 20px; fill: none; stroke: #111; stroke-width: 1.8; }
.heart.on svg { fill: #e0245e; stroke: #e0245e; }
.heart[disabled] { cursor: default; }
.heart[disabled]:not(.on) { display: none; }
@media (max-width: 860px) {
  .pills { top: 49px; margin: 0 -16px 4px; padding: 10px 16px 12px; }
  .masonry { column-gap: 8px; }
  .pin { margin-bottom: 8px; border-radius: 14px; }
  .pin img { border-radius: 14px; }
  .ideas-head h1 { font-size: 32px; }
}
/* full-screen viewer */
.viewer { position: fixed; inset: 0; z-index: 60; background: #0c0c0c; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.viewer img { max-width: 100vw; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 12px; }
.viewer .vx { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; cursor: pointer; }
.viewer .vcount { position: absolute; top: max(22px, calc(env(safe-area-inset-top) + 10px)); left: 18px; color: #bbb; font-size: 13px; }
.viewer .vbar { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; color: #ddd; font-size: 14px; }
.viewer .vbar a, .viewer .vbar span { color: #eee; text-decoration: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer .vbar .heart { position: static; width: 46px; height: 46px; flex: none; }
.viewer .vbar .heart[disabled]:not(.on) { display: flex; opacity: .35; }
.viewer .vdel { border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 99px; padding: 10px 14px; font: inherit; cursor: pointer; }
.viewer .vprev, .viewer .vnext { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; }
.viewer .vprev { left: 12px; } .viewer .vnext { right: 12px; }
@media (max-width: 860px) { .viewer .vprev, .viewer .vnext { display: none; } }
.grab { margin: 0 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.grab .btn { width: 100%; justify-content: center; padding: 14px 16px; font-size: 15px; }
.grab { margin: 14px 0 0; }
@media (max-width: 860px) {
  .detail > div { min-width: 0; }
  .detail .media { align-items: flex-start; display: flex; flex-direction: row; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .detail .media::-webkit-scrollbar { display: none; }
  .detail .media .m { flex: 0 0 86%; scroll-snap-align: center; }
  .detail .media .m:only-child { flex-basis: 100%; }
  .grab { position: sticky; top: 0; z-index: 5; box-shadow: 0 6px 16px rgba(0,0,0,.06); }
}

/* ---------- Instagram preview (as the Instagram app draws a profile) ---------- */
.ig { max-width: 470px; margin: 0 auto; }
.ig-switch { display: flex; gap: 6px; background: #ebe9e4; border-radius: 99px; padding: 4px; margin: 0 0 14px; }
.ig-switch button { flex: 1; border: 0; background: none; border-radius: 99px; padding: 9px 10px; font: 500 13px/1.1 var(--sans); color: var(--ink2); cursor: pointer; }
.ig-switch button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ig-phone { background: #fff; color: #000; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.ig-bar { padding: 14px 16px 6px; font-size: 20px; }
.ig-bar b { font-weight: 700; letter-spacing: -.2px; }
.ig-head { display: flex; align-items: center; gap: 20px; padding: 8px 16px 10px; }
.ig-ava { width: 86px; height: 86px; border-radius: 50%; overflow: hidden; flex: none; background: #efefef; display: flex; align-items: center; justify-content: center; }
.ig-ava img { width: 100%; height: 100%; object-fit: cover; }
.ig-ava span { font: 400 36px/1 var(--serif); }
.ig-stats { flex: 1; display: flex; justify-content: space-around; text-align: left; }
.ig-stats div { display: flex; flex-direction: column; }
.ig-stats b { font-size: 17px; font-weight: 700; }
.ig-stats span { font-size: 14px; }
.ig-bio { padding: 0 16px 12px; font-size: 14px; line-height: 1.35; }
.ig-bio .cat, .ig-bio .addr { color: #737373; }
.ig-bio .lnk { color: #00376b; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.ig-bio .lnk svg { width: 14px; height: 14px; transform: rotate(-45deg); }
.ig-btns { display: flex; gap: 6px; padding: 0 16px 14px; }
.ig-btns span { flex: 1; text-align: center; font-size: 14px; font-weight: 600; padding: 8px 0; border-radius: 8px; background: #efefef; }
.ig-btns .b1 { background: #0095f6; color: #fff; }
.ig-btns .b3 { flex: 0 0 36px; display: flex; align-items: center; justify-content: center; }
.ig-btns .b3 svg { width: 18px; height: 18px; }
.ig-tabs2 { display: flex; border-bottom: 1px solid #dbdbdb; }
.ig-tabs2 span { flex: 1; display: flex; justify-content: center; padding: 10px 0; color: #8e8e8e; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.ig-tabs2 span.on { color: #000; border-bottom-color: #000; }
.ig-tabs2 svg { width: 24px; height: 24px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-cell { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; background: #efefef; overflow: hidden; cursor: pointer; display: block; -webkit-tap-highlight-color: transparent; }
.ig-cell img, .ig-cell video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8e8e8e; font-size: 12px; }
.ig-i { position: absolute; top: 7px; right: 7px; width: 19px; height: 19px; filter: drop-shadow(0 0 2px rgba(0,0,0,.45)); }
.ig-i svg { width: 100%; height: 100%; display: block; }
.ig-cell.plan { outline: 2px solid #f3e27a; outline-offset: -2px; }
.ig-d { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 600; color: #111; background: #f3e27a; padding: 2px 7px; border-radius: 99px; }
.ig-draft { position: absolute; left: 6px; top: 6px; font-size: 10.5px; font-weight: 600; background: #fff; color: #111; padding: 2px 6px; border-radius: 99px; }
.ig-note { color: var(--muted); font-size: 12.5px; text-align: center; margin: 14px 0; }
@media (max-width: 860px) { .ig-phone { border-radius: 0; border-left: 0; border-right: 0; margin: 0 -16px; } }

/* ---------- invoices ---------- */
.invs { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.inv-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: var(--r); background: #111; color: #fff; }
.inv-sum span { font-size: 13px; color: #bbb; }
.inv-sum b { font: 400 26px/1 var(--serif); }
.invc { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.inv-ic { width: 44px; height: 54px; border-radius: 6px; background: #f1efea; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font: 700 11px/1 var(--sans); color: #c0392b; flex: none; }
.inv-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.inv-b span:not(.chip) { color: var(--muted); font-size: 13px; }
.inv-r { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.inv-r b { font-size: 16px; }
.fld.chk { display: flex; flex-direction: row; gap: 8px; align-items: center; }
@media (max-width: 600px) { .invc { flex-wrap: wrap; } .inv-r { flex-direction: row; align-items: center; width: 100%; justify-content: flex-end; } .inv-r b { margin-right: auto; } }

/* ---------- AI captions ---------- */
.ai { display: flex; flex-direction: column; gap: 8px; padding: 14px; margin: 14px 0; border-radius: var(--r); background: linear-gradient(135deg, #fbf6d9, #f6efe1); border: 1px solid #ece3bd; }
.ai .fld { margin: 0; }
.ai .btn { align-self: flex-start; }

/* ---------- month calendar ---------- */
.mgoal { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.mgoal .g { flex: 1 1 120px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; }
.mgoal .g span { font-size: 12px; color: var(--muted); }
.mgoal .g b { font: 400 26px/1.1 var(--serif); }
.mgoal .g b i { font-style: normal; font-size: 15px; color: var(--muted); }
.mgoal .g em { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: #e8b64c; }
.mgoal .g.done em { background: #2e9d5b; }
.mgoal .mst { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mcal .mh { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 4px; }
.mcal .md { min-height: 108px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; cursor: pointer; position: relative; }
.mcal .md.out { background: none; border: 0; cursor: default; }
.mcal .md.empty { background: repeating-linear-gradient(45deg, #fff, #fff 6px, #faf7ef 6px, #faf7ef 12px); }
.mcal .md.today { border-color: var(--ink); }
.mcal .md .n { flex-basis: 100%; font-size: 12px; font-weight: 600; }
.mcal .md .plus { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #c9c3b4; font-size: 22px; }
.mcal .mp { position: relative; width: calc(50% - 2px); aspect-ratio: 3 / 4; border: 0; padding: 0; border-radius: 6px; overflow: hidden; background: #ece9e2; cursor: pointer; box-shadow: 0 0 0 2px var(--c, transparent); }
.mcal .mp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcal .mp .nk { font-size: 10px; color: var(--muted); display: flex; height: 100%; align-items: center; justify-content: center; }
.mcal .mp i { position: absolute; left: 3px; top: 3px; font: 700 9.5px/1 var(--sans); font-style: normal; background: rgba(0,0,0,.6); color: #fff; padding: 2px 4px; border-radius: 4px; }
.mcal .mp.st-draft { --c: #c9c3b4; } .mcal .mp.st-review { --c: #5b7cfa; } .mcal .mp.st-changes { --c: #e08a1e; } .mcal .mp.st-approved { --c: #2e9d5b; } .mcal .mp.st-published { --c: #111; }
@media (max-width: 860px) {
  .mcal { gap: 3px; } .mcal .md { min-height: 64px; padding: 3px; border-radius: 6px; } .mcal .mp { width: 100%; } .mcal .mh { font-size: 9.5px; padding: 0; text-align: center; }
  .mgoal .g { flex-basis: calc(50% - 5px); }
}
