/* Shared look of the program: a fixed side menu on the left and a work area on the right.
   Pages that use it put <aside data-side="page-id"></aside> and <main class="main">…</main> inside <div class="app">.
   The side menu itself is drawn by i18n.js so its words follow the chosen language. */
/* Paper, ink and one seal red, taken from the owner's brush pictures (paper #fcf6e4, seal #cf4926). Ink does the
   work of an accent (primary buttons, the current page); the seal red is kept for what needs the owner now. */
:root {
  --bg: #f6f1e3; --side: #f9f5e9; --card: #fffdf6; --line: rgba(52, 46, 30, .14); --ink: #1b1a16; --sub: #57534a; --mute: #9a9588;
  --acc: #1b1a16; --acc-ink: #fbf7ea; --accbg: #ece5d2; --link: #8d3a1c; --seal: #cf4926; --sealbg: #f8e3d8;
  --ok: #3f6b4a; --okbg: #e3ecdb; --warn: #9a5a12; --warnbg: #f6e9cd; --bad: #b3391c; --badbg: #f8e3d8; --gray: #eee8d8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151411; --side: #191815; --card: #1e1d19; --line: rgba(236, 230, 212, .13); --ink: #f1ecdd; --sub: #bdb7a6; --mute: #8a8576;
    --acc: #ece6d4; --acc-ink: #1b1a16; --accbg: #2b2922; --link: #e9a07f; --seal: #e2603c; --sealbg: #3a1f16;
    --ok: #9cc7a5; --okbg: #1f2b21; --warn: #e3b566; --warnbg: #33290f; --bad: #f0907a; --badbg: #3a1f16; --gray: #26241e;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--sub); font: 14px/1.55 "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; }
a { color: var(--link); text-decoration: none; }
.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }

aside[data-side] { background: var(--side); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; padding: 4px 8px 16px; }
.side-logo img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.side-grp { font-size: 12px; color: var(--mute); padding: 14px 10px 4px; }
.side-nav { padding: 8px 10px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; color: var(--sub); }
.side-nav:hover { background: var(--gray); }
.side-nav[aria-current] { background: var(--accbg); color: var(--ink); font-weight: 600; }
.side-cnt { font-size: 12px; background: var(--seal); color: #fff; border-radius: 10px; padding: 0 7px; font-weight: 400; }
.side-foot { margin-top: auto; padding-top: 12px; }
.side-lang { width: 100%; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--sub); font: inherit; cursor: pointer; }
.side-lang:hover { background: var(--gray); }

.main { padding: 22px 28px 48px; min-width: 0; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.top h1 { margin: 0; font-size: 22px; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.top small { color: var(--mute); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.kpi .l { font-size: 13px; }
.kpi .v { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.3; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12px; color: var(--mute); }

.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.pn { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.pn-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pn-hd b { color: var(--ink); font-size: 15px; }
.pn-hd a { font-size: 13px; }
.empty { color: var(--mute); padding: 14px 0 6px; font-size: 13.5px; }

table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 500; color: var(--mute); font-size: 12px; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td b { color: var(--ink); font-weight: 500; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; padding-left: 14px; white-space: nowrap; }
table.t a.rowlink { color: inherit; }

.st { font-size: 12px; border-radius: 10px; padding: 2px 9px; white-space: nowrap; display: inline-block; }
.st.run { background: var(--accbg); color: var(--acc); }
.st.ok { background: var(--okbg); color: var(--ok); }
.st.wait { background: var(--warnbg); color: var(--warn); }
.st.bad { background: var(--badbg); color: var(--bad); }
.st.off { background: var(--gray); color: var(--mute); }
.meter { height: 6px; border-radius: 6px; background: var(--gray); overflow: hidden; min-width: 70px; }
.meter i { display: block; height: 6px; background: var(--acc); }

.todo { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.todo b { color: var(--ink); font-weight: 500; display: block; }
.todo small { color: var(--mute); }
.go { border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; color: var(--ink); white-space: nowrap; }
.go:hover { background: var(--gray); }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  aside[data-side] { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .side-logo { padding: 4px 8px; } .side-grp { display: none; } .side-foot { margin: 0 0 0 auto; padding: 0; } .side-lang { width: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols { grid-template-columns: 1fr; } .main { padding: 16px; }
}

/* Older pages moved into this layout keep their own rules; these lines make them follow the shared colours
   and sit flush in the work area instead of centring themselves in the window. */
:root { --panel: var(--card); --muted: var(--sub); --accent: var(--acc); }
.main > header, .main > main, .main > section, .main > .wrap, .main > .sum, .main > .tabs, .main > .tools, .main > #msg { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.main > header { padding-top: 0; }
.main h1 { font-size: 22px; color: var(--ink); letter-spacing: -0.01em; }
.main > header p { font-size: 14px; }
.app .bar { left: 220px; }
@media (max-width: 900px) { .app .bar { left: 0; } }

/* Forms and buttons */
.btn { display: inline-block; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--gray); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.primary:hover { filter: brightness(1.08); background: var(--acc); }
.btn.danger { color: var(--bad); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0f1115; } }
.in { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.in:disabled { opacity: .5; }
:is(.btn, .in, a, input):focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.lead { color: var(--sub); margin: 4px 0 0; max-width: 760px; }
.msg { font-size: 13.5px; color: var(--mute); min-height: 20px; } .msg.err { color: var(--bad); }

/* A settings row: what it is on the left, the controls on the right. */
.set { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.set:last-child { border-bottom: 0; }
.set h2 { margin: 0 0 4px; font-size: 15px; color: var(--ink); }
.set p { margin: 0; font-size: 13px; color: var(--mute); }
.set .ctl { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.fld { display: block; flex: 1 1 150px; min-width: 0; }
.fld > span { display: block; font-size: 12px; color: var(--mute); margin-bottom: 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; width: 100%; }
.checks label { display: flex; gap: 7px; align-items: center; cursor: pointer; color: var(--ink); }
.checks input { width: 17px; height: 17px; accent-color: var(--acc); }
.savebar { display: flex; gap: 14px; align-items: center; padding-top: 16px; }

/* A draft waiting for approval: its full text is always shown. */
.draft { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.draft .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.draft .title { font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.draft pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; color: var(--ink); padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); max-height: 360px; overflow: auto; }
.draft .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.draft .acts .in { flex: 1 1 220px; width: auto; }
.sec { font-size: 15px; color: var(--ink); margin: 26px 0 10px; font-weight: 600; }
@media (max-width: 900px) { .set { grid-template-columns: 1fr; gap: 12px; } }

:root { --accent-ink: var(--acc-ink); }


/* An element marked hidden stays hidden even when it carries its own display style. */
[hidden] { display: none !important; }

/* Chat: staff on the left, the conversation with the chosen one on the right. */
.chat { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; }
.chat-people { padding: 8px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.chat-person { text-align: left; border: 0; background: transparent; color: var(--sub); font: inherit; padding: 9px 10px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.chat-person b { color: var(--ink); font-weight: 600; } .chat-person small { color: var(--mute); font-size: 12.5px; }
.chat-person .chat-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-person:hover { background: var(--gray); } .chat-person.on { background: var(--accbg); }
.chat-person:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.chat-room { display: flex; flex-direction: column; min-height: 60vh; }
.chat-log { flex: 1; overflow-y: auto; max-height: calc(100vh - 330px); min-height: 240px; display: flex; flex-direction: column; gap: 10px; padding: 6px 2px 10px; }
.chat-pins { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); } .chat-pins small { color: var(--mute); font-size: 12px; }
.chat-pin { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; } .chat-pin:hover { border-color: var(--ink); }
.chat-b.them.live .chat-t::after { content: ''; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--seal, #b23a2b); animation: chat-caret 1s steps(2) infinite; }
@keyframes chat-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chat-b.them.live .chat-t::after { animation: none; } }
.chat-b.me.wait .chat-t { background: transparent; border: 1px dashed var(--line); color: var(--mute); }
.chat-title { font-size: 13px; color: var(--ink); padding: 0 4px; } .chat-b.arch { opacity: .55; }
.chat-menu { display: flex; gap: 8px; opacity: 0; } .chat-b.me:hover .chat-menu, .chat-b.me:focus-within .chat-menu { opacity: 1; }
.chat-mb { border: 0; background: none; color: var(--mute); font: inherit; font-size: 12px; padding: 0 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; } .chat-mb:hover { color: var(--ink); }
.chat-b { max-width: 82%; display: flex; flex-direction: column; gap: 3px; }
.chat-b .chat-t { white-space: pre-wrap; overflow-wrap: anywhere; padding: 9px 13px; border-radius: 12px; color: var(--ink); line-height: 1.6; font-size: 14px; }
.chat-b small { color: var(--mute); font-size: 12px; padding: 0 4px; }
.chat-b.me { align-self: flex-end; align-items: flex-end; } .chat-b.me .chat-t { background: var(--accbg); border-bottom-right-radius: 4px; }
.chat-b.them { align-self: flex-start; } .chat-b.them .chat-t { background: var(--gray); border-bottom-left-radius: 4px; }
.chat-b.bad .chat-t { background: var(--badbg); color: var(--bad); }
.chat-b.wait .chat-t { color: var(--sub); font-size: 13px; }
.chat-send { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.chat-send textarea { width: 100%; resize: vertical; min-height: 54px; }
.chat-opts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.chat-opts > label:first-child { margin-right: auto; display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--sub); }
@media (max-width: 760px) { .chat { grid-template-columns: 1fr; } .chat-people { position: static; flex-direction: row; overflow-x: auto; } .chat-person { flex: 0 0 150px; } .chat-b { max-width: 94%; } }

.chat-side { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 16px; }
.chat-side .chat-people { position: static; }
.chat-undo { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.chat-jobs { border-bottom: 1px solid var(--line); margin-bottom: 8px; padding-bottom: 4px; font-size: 13.5px; }
.chat-hit { text-align: left; border: 1px solid var(--line); background: var(--card); color: var(--sub); font: inherit; border-radius: 10px; padding: 9px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.chat-hit b { color: var(--ink); font-weight: 600; font-size: 13px; } .chat-hit small { color: var(--mute); } .chat-hit:hover { background: var(--gray); }
.chat-b.hit .chat-t { outline: 2px solid var(--acc); }
@media (max-width: 760px) { .chat-side { position: static; } }

/* Engines and models (Settings): short rows in a bordered list, like a providers list. */
.eng-h { display: block; color: var(--sub); font-weight: 500; font-size: 13px; margin: 0 0 6px; }
.eng-list { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.eng-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.eng-row:last-child { border-bottom: 0; }
.eng-row b { color: var(--ink); font-weight: 600; display: block; } .eng-row small { color: var(--mute); font-size: 12.5px; display: block; }
.eng-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--mute); flex: 0 0 auto; } .eng-dot.on { background: var(--ok); border-color: var(--ok); }
.eng-pick { flex: 0 0 240px; }
@media (max-width: 760px) { .eng-pick { flex: 1 1 100%; } }

/* organisation chart: a tree of cards joined by lines; the pool of roles below it */
.org-scroll { overflow-x: auto; padding: 14px 4px 10px; }
.org, .org ul { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; position: relative; }
.org { width: max-content; min-width: 100%; }
.org ul { padding-top: 22px; }
.org li { display: flex; flex-direction: column; align-items: center; position: relative; padding: 22px 7px 0; }
.org > li { padding-top: 0; }
.org li::before, .org li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 22px; border-top: 1.5px solid var(--line); }
.org li::after { right: auto; left: 50%; border-left: 1.5px solid var(--line); }
.org li:only-child::before, .org li:only-child::after { display: none; }
.org li:only-child { padding-top: 0; }
.org li:first-child::before, .org li:last-child::after { border: 0 none; }
.org li:last-child::before { border-right: 1.5px solid var(--line); border-radius: 0 7px 0 0; }
.org li:first-child::after { border-radius: 7px 0 0 0; }
.org ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 22px; border-left: 1.5px solid var(--line); }
.org-card { width: 154px; min-height: 96px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font: inherit; color: var(--sub); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px 10px; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.org-card:hover { border-color: var(--acc); } .org-card.on { border-color: var(--acc); box-shadow: 0 0 0 3px var(--accbg); } .org-card.over { background: var(--accbg); border-style: dashed; border-color: var(--acc); }
.org-card:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.org-card.boss { background: var(--accbg); }
.org-card b { color: var(--ink); font-size: 14px; line-height: 1.3; margin-top: 6px; overflow-wrap: anywhere; }
.org-role { font-size: 12px; color: var(--mute); } .org-role:empty { display: none; }
.org-duty { font-size: 12px; line-height: 1.4; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.org-meta { font-size: 11.5px; color: var(--mute); margin-top: auto; padding-top: 5px; }
.org-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: block; background: var(--gray); }
.org-av.sq { border-radius: 10px; width: 40px; height: 40px; }
.org-card .org-av { width: 48px; height: 48px; }
@media (prefers-color-scheme: dark) { .org-av { filter: brightness(.92); } }
.org-edit { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.org-edit-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .org-edit-hd b { color: var(--ink); display: block; } .org-edit-hd small { color: var(--mute); font-size: 12.5px; }
.org-edit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; } .org-edit-grid .org-wide { grid-column: 1 / -1; }
.org-edit-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; } .org-edit-act .sp { flex: 1; } .org-edit-act a.btn { text-decoration: none; }
.pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 10px 0 6px; }
.pool-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pool-card.off { opacity: .65; }
.pool-card p { margin: 0; font-size: 13.5px; color: var(--sub); }
.pool-hd { display: flex; align-items: center; gap: 10px; } .pool-hd b { color: var(--ink); display: block; } .pool-hd small { color: var(--mute); font-size: 12.5px; }
.pool-card details summary { cursor: pointer; font-size: 12.5px; color: var(--acc); } .pool-card details ul { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--mute); } .pool-card details li b { color: var(--ink); font-weight: 500; }
.pool-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; } .pool-row .in { flex: 1 1 90px; min-width: 0; padding: 6px 8px; } .pool-row small { color: var(--mute); font-size: 12.5px; }
.pool-card > .btn { margin-top: auto; }
.pool-form { display: flex; flex-direction: column; gap: 8px; width: 100%; border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 860px) { .org-edit-grid { grid-template-columns: 1fr 1fr; } }
.pool-card.new { border-style: dashed; background: transparent; }
.pool-row .btn { flex: none; }
#sub .org-edit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* the brush scene at the foot of the side menu: one of four, a different one on each page */
.side-scene { display: block; width: 132px; height: 132px; margin: 0 auto 12px; border-radius: 22px; object-fit: cover; opacity: .96; }
@media (prefers-color-scheme: dark) { .side-scene { opacity: .86; } }
@media (max-height: 760px), (max-width: 900px) { .side-scene { display: none; } }
/* brochure maker: the form beside a scaled preview of the pages */
.bro { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.bro-form { display: flex; flex-direction: column; gap: 12px; } .bro-form .fld { flex: none; } .bro-form textarea { resize: vertical; }
.bro-act { display: flex; gap: 8px; flex-wrap: wrap; }
.bro-tools { display: flex; gap: 8px; align-items: center; } .bro-tools .in { width: auto; padding: 6px 8px; } .bro-tools a.btn { padding: 6px 12px; }
.bro-frame { height: 62vh; min-height: 380px; overflow: hidden; border-radius: 10px; background: #3a3a38; margin: 8px 0; }
.bro-frame iframe { border: 0; transform-origin: 0 0; display: block; }
@media (max-width: 1000px) { .bro { grid-template-columns: 1fr; } }
/* pool by job family, and the skills fitted to one person */
.pool-find { max-width: 360px; margin: 10px 0 4px; }
.pool-fam { font-size: 14px; color: var(--ink); margin: 22px 0 0; font-weight: 600; display: flex; gap: 8px; align-items: baseline; } .pool-fam small { color: var(--mute); font-weight: 400; }
.org-extra { border: 1px solid var(--line); border-radius: 10px; margin: 12px 0 0; padding: 10px 14px 12px; } .org-extra legend { font-size: 12px; color: var(--mute); padding: 0 6px; }
.org-extra > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 16px; }
.sk { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; cursor: pointer; } .sk.on { cursor: default; } .sk input { margin-top: 4px; accent-color: var(--ink); }
.sk b { color: var(--ink); font-weight: 600; font-size: 13.5px; margin-right: 8px; } .sk small { color: var(--mute); font-size: 12px; white-space: nowrap; } .sk em { display: block; font-style: normal; font-size: 12.5px; color: var(--sub); }
.msg.warn { color: var(--warn); }
/* face picker and the hire dialog */
.org-faces { margin-top: 12px; } .org-faces summary { cursor: pointer; font-size: 13px; color: var(--link); }
.org-faces > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.face { border: 0; background: transparent; padding: 2px; border-radius: 50%; cursor: pointer; line-height: 0; } .face.on { box-shadow: 0 0 0 2px var(--ink); } .face:hover { box-shadow: 0 0 0 2px var(--line); } .face.on:hover { box-shadow: 0 0 0 2px var(--ink); }
.face:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
dialog.hire { width: min(960px, 94vw); height: min(640px, 88vh); padding: 0; border: 0; border-radius: 16px; background: var(--card); color: var(--sub); box-shadow: 0 24px 70px rgba(20, 18, 10, .32); }
dialog.hire[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; } dialog.hire::backdrop { background: rgba(27, 26, 22, .42); }
dialog.hire header { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); } dialog.hire header b { color: var(--ink); font-size: 16px; flex: 1; } dialog.hire header .in { width: 240px; } dialog.hire header .btn { padding: 4px 11px; font-size: 18px; line-height: 1.2; font-weight: 400; }
.hire-body { display: grid; grid-template-columns: 178px minmax(0, 1fr); min-height: 0; }
.hire-body nav { border-right: 1px solid var(--line); padding: 12px 8px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.hire-body nav button { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; text-align: left; border: 0; background: transparent; color: var(--sub); font: inherit; font-size: 13.5px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.hire-body nav button:hover { background: var(--gray); } .hire-body nav button.on { background: var(--accbg); color: var(--ink); font-weight: 600; } .hire-body nav small { color: var(--mute); font-size: 12px; font-weight: 400; }
.hire-grid { padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; align-content: start; grid-auto-rows: max-content; overflow-y: auto; }
.hire-card { display: flex; flex-direction: column; gap: 8px; text-align: left; font: inherit; color: var(--sub); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; min-height: 128px; cursor: pointer; }
.hire-card:hover { border-color: var(--mute); } .hire-card.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--bg); } .hire-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hire-card.new { border-style: dashed; } .hire-card .plus { width: 40px; height: 40px; border-radius: 10px; background: var(--gray); display: grid; place-items: center; color: var(--ink); font-size: 18px; flex: none; }
.hire-top { display: flex; align-items: center; gap: 10px; } .hire-top b { color: var(--ink); font-size: 14.5px; flex: 1; line-height: 1.3; } .hire-top i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--acc-ink); display: grid; place-items: center; font-size: 12px; flex: none; }
.hire-desc { font-size: 12.5px; line-height: 1.5; display: block; max-height: 4.5em; overflow: hidden; flex: none; }
.hire-tags { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; } .hire-tags small { font-size: 11.5px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--sub); } .hire-tags small.has { border-color: transparent; background: var(--okbg); color: var(--ok); }
.hire-step2 { grid-column: 1 / -1; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.hire-row { display: grid; grid-template-columns: 40px 150px minmax(0, 1fr) minmax(0, 1.5fr) 150px; gap: 10px; align-items: center; } .hire-row b { color: var(--ink); font-size: 13.5px; }
dialog.hire footer { display: flex; align-items: center; gap: 8px; padding: 12px 16px 12px 20px; border-top: 1px solid var(--line); } dialog.hire footer .sp { flex: 1; } dialog.hire footer .msg { margin: 0; }
@media (max-width: 760px) { .hire-body { grid-template-columns: 1fr; } .hire-body nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); } .hire-row { grid-template-columns: 40px 1fr; } .hire-row .in { grid-column: 1 / -1; } }
.chat-person { position: relative; padding-left: 54px; min-height: 52px; justify-content: center; } .chat-person .chat-face { position: absolute; left: 10px; top: 9px; }
/* brochure editor */
.bro-edit { margin-top: 16px; } .bro-doc { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; margin: 10px 0 4px; }
.bro-slide { border-top: 1px solid var(--line); padding: 14px 0 12px; } .bro-slide-hd { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; } .bro-slide-hd b { color: var(--ink); flex: 1; font-size: 14px; } .bro-slide-hd .btn { padding: 3px 9px; font-size: 12.5px; font-weight: 400; }
.bro-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 12px; } .bro-fields .wide { grid-column: 1 / -1; } .bro-fields textarea { resize: vertical; line-height: 1.55; }
.bro-add { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; } .bro-add .in { width: auto; }
/* parts list */
.parts-n { color: var(--mute); font-weight: 400; font-size: 13px; } .parts-note { color: var(--mute); font-size: 12px; } .parts-go { margin-left: 10px; font-size: 12.5px; white-space: nowrap; } td code { font: 12.5px ui-monospace, Consolas, monospace; color: var(--sub); }
/* ink icons drawn for each role: cropped a little so the face fills the circle */
.org-av.ink { object-fit: cover; background: #fcf6e4; }
.org-card .org-av.ink { width: 56px; height: 56px; } .hire-top .org-av.ink, .hire-row .org-av.ink { width: 46px; height: 46px; }
/* voice and video */
.mk-fmts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 12px 0 4px; }
.mk-fmtcard { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 8px 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); cursor: pointer; font: inherit; }
.mk-fmtcard video, .mk-fmtcard i { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: var(--line); }
.mk-fmtcard b { font-size: 14px; font-weight: 700; padding: 0 2px; } .mk-fmtcard span { font-size: 12px; line-height: 1.45; color: var(--mute); padding: 0 2px; }
.mk-fmtcard:hover { border-color: var(--ink); } .mk-fmtcard.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); } .mk-fmtcard:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.md-voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 10px 0; }
.md-voice { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; background: var(--card); }
.md-voice.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); } .md-voice b { color: var(--ink); } .md-voice .msg { min-height: 0; }
.md-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; } .md-acts .btn { padding: 5px 10px; font-size: 13px; }
.md-own { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; } .md-own summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.md-ownform { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 8px; } .md-ownform .fld { flex: 1 1 130px; }
.md-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.md-form { display: flex; flex-direction: column; gap: 12px; } .md-form .fld { flex: none; } .md-form textarea { resize: vertical; }
.md-proj { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding: 10px 0; flex-wrap: wrap; } .md-proj b { display: block; color: var(--ink); word-break: break-all; } .md-proj .msg { min-height: 0; }
.md-job { margin-bottom: 4px; } .md-play { margin-top: 16px; } .md-video { width: 100%; max-height: 70vh; border-radius: 10px; background: #111; display: block; } .md-audio { width: 100%; }
@media (max-width: 1000px) { .md-two { grid-template-columns: 1fr; } }
.md-row { display: flex; gap: 10px; flex-wrap: wrap; } .md-row .fld { flex: 1 1 120px; } .md-row .md-wide { flex: 3 1 260px; }
.md-check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); } .md-check input { width: 16px; height: 16px; accent-color: var(--ink); }
.md-edit { margin-top: 16px; } .md-scene { border-top: 1px solid var(--line); padding: 12px 0; } .md-scene > b { color: var(--ink); display: block; margin-bottom: 8px; }
.md-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 12px; } .md-fields .md-wide { grid-column: 1 / -1; } .md-fields textarea { resize: vertical; }
.md-tune { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; } .md-tune .fld { flex: 1 1 200px; } .md-tune input[type=range] { width: 100%; accent-color: var(--ink); } .md-tune .msg { flex: 1 1 100%; }
/* make a video: one stage, one options column */
.mk { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.mk-stage { padding: 0; overflow: hidden; } .mk-show { min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 36px 24px 28px; text-align: center; }
.mk-tag { font-size: 12px; background: var(--accbg); color: var(--ink); border-radius: 10px; padding: 3px 10px; } .mk-title { font-size: 20px; color: var(--ink); } .mk-show .msg { min-height: 0; }
.mk-deck { position: relative; width: 100%; height: 330px; margin: 18px 0 14px; }
.mk-card { position: absolute; left: 50%; top: 50%; width: 400px; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #111; cursor: pointer; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; box-shadow: 0 10px 30px rgba(27,26,22,.18); }
.mk-card.tall { width: 172px; aspect-ratio: 9 / 16; } .mk-card img, .mk-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-card.p0 { transform: translate(-50%, -50%); z-index: 3; } .mk-card.p-1 { transform: translate(-108%, -50%) scale(.78); z-index: 2; opacity: .8; } .mk-card.p1 { transform: translate(8%, -50%) scale(.78); z-index: 2; opacity: .8; }
.mk-card.p-2 { transform: translate(-150%, -50%) scale(.6); z-index: 1; opacity: .45; } .mk-card.p2 { transform: translate(50%, -50%) scale(.6); z-index: 1; opacity: .45; }
.mk-cap { position: absolute; left: 10px; bottom: 10px; font-size: 12px; color: #fff; background: rgba(0,0,0,.55); border-radius: 8px; padding: 3px 8px; }
.mk-nav { display: flex; gap: 10px; align-items: center; } .mk-round { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font-size: 18px; line-height: 1; } .mk-round:hover { background: var(--accbg); }
.mk-work { display: flex; flex-direction: column; align-items: center; gap: 12px; } .mk-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 8px 0; } .mk-steps li { font-size: 13px; padding: 6px 14px; border-radius: 16px; border: 1px solid var(--line); color: var(--mute); }
.mk-steps li.now { background: var(--ink); border-color: var(--ink); color: var(--bg); } .mk-steps li.done { color: var(--ink); border-color: var(--ink); }
.mk-result { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; } .mk-video { max-width: 100%; max-height: 520px; border-radius: 12px; background: #111; } .mk-video.tall { max-height: 560px; }
.mk-tune { display: flex; gap: 14px; align-items: flex-end; width: min(560px, 100%); text-align: left; } .mk-tune .fld { flex: 1; } .mk-tune .fld span { display: block; font-size: 12px; color: var(--mute); margin-bottom: 4px; } .mk-tune input { width: 100%; accent-color: var(--ink); }
.mk-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; } .mk-acts .btn { padding: 6px 12px; font-size: 13px; text-decoration: none; }
.mk-recent { border-top: 1px solid var(--line); padding: 14px 20px 18px; } .mk-tiles { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.mk-tile { flex: none; width: 128px; height: 96px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0; overflow: hidden; position: relative; cursor: pointer; display: grid; place-items: center; color: var(--mute); }
.mk-tile.tall { width: 60px; } .mk-tile img { width: 100%; height: 100%; object-fit: cover; } .mk-tile.on { box-shadow: 0 0 0 2px var(--ink); } .mk-tile.ghost { width: 128px; font-size: 12px; padding: 10px; cursor: default; border-style: dashed; text-align: center; }
.mk-tile-t { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); padding: 12px 6px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; } .mk-note-ico { font-size: 22px; }
.mk-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; } .mk-q { color: var(--ink); font-size: 15px; } .mk-form { display: flex; flex-direction: column; gap: 14px; } .mk-form .fld { flex: none; } .mk-form textarea { resize: vertical; }
.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; } .seg button { flex: 1; border: 0; background: transparent; color: var(--sub); border-radius: 7px; padding: 7px 4px; font: inherit; font-size: 13px; cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(27,26,22,.14); } .seg button:focus-visible, .mk-look:focus-visible, .mk-card:focus-visible, .mk-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mk-looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .mk-look { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 6px 6px 7px; cursor: pointer; font: inherit; font-size: 12px; color: var(--sub); display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.mk-look i { height: 34px; border-radius: 6px; display: flex; align-items: flex-end; gap: 4px; padding: 6px; border: 1px solid rgba(0,0,0,.08); } .mk-look u { width: 18px; height: 6px; border-radius: 3px; } .mk-look u:last-child { width: 8px; } .mk-look.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.mk-voice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 6px 6px; background: var(--bg); } .mk-voice b { flex: 1; color: var(--ink); font-size: 14px; font-weight: 600; }
.mk-ear { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; font-size: 11px; } .mk-link { border: 0; background: none; color: var(--link); cursor: pointer; font: inherit; font-size: 13px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.mk-spec { font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.5; resize: vertical; white-space: pre; } .mk-sheet { display: block; width: 100%; border-radius: 8px; border: 1px solid var(--line); margin-top: 8px; } .mk-reel-again { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .mk-reel-again .seg { flex: 1 1 280px; } .mk-reel-again .btn { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.mk-more { font-size: 13px; } .mk-more summary { cursor: pointer; color: var(--sub); } .mk-more[open] { display: flex; flex-direction: column; gap: 10px; } .mk-go { width: 100%; padding: 12px; font-size: 15px; } .mk-note { font-size: 12px; color: var(--mute); margin: -4px 0 0; }
.mk-empty { display: grid; gap: 6px; }
dialog.mk-dlg { width: min(860px, 94vw); max-height: 86vh; padding: 0; border: 0; border-radius: 16px; background: var(--card); color: var(--sub); box-shadow: 0 24px 80px rgba(27,26,22,.3); } dialog.mk-dlg::backdrop { background: rgba(27,26,22,.42); }
dialog.mk-dlg[open] { display: flex; flex-direction: column; } dialog.mk-dlg header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); } dialog.mk-dlg header b { color: var(--ink); font-size: 16px; }
.mk-dlg-body { padding: 16px 20px 20px; overflow: auto; } .mk-dlg-body footer { display: flex; gap: 8px; align-items: center; justify-content: flex-end; position: sticky; bottom: -20px; background: var(--card); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 12px; } .mk-dlg-body footer .msg { flex: 1; min-height: 0; }
.mk-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--mute); cursor: pointer; padding: 4px 8px; border-radius: 8px; } .mk-x:hover { background: var(--accbg); }
@media (max-width: 1000px) { .mk { grid-template-columns: 1fr; } .mk-side { position: static; } .mk-card { width: 300px; } .mk-card.tall { width: 140px; } .mk-deck { height: 270px; } }
.mk-att { display: flex; gap: 8px; margin-top: -6px; } .mk-add { flex: 1; text-align: center; font-size: 13px; color: var(--ink); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 4px; cursor: pointer; background: var(--bg); } .mk-add:hover { border-color: var(--ink); }
.mk-atts { display: flex; flex-direction: column; gap: 6px; } .mk-atts:empty { display: none; } .mk-file { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 5px 6px 5px 8px; background: var(--card); }
.mk-file img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; } .mk-file .in { padding: 5px 8px; font-size: 13px; } .mk-file-n { flex: 1; color: var(--ink); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mk-file .msg { min-height: 0; font-size: 12px; white-space: nowrap; }
.mk-brief { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(640px, 100%); } .mk-sum { text-align: left; margin: 4px 0; padding-left: 20px; color: var(--sub); line-height: 1.7; width: 100%; } .mk-ask { color: var(--ink); font-size: 16px; margin-top: 8px; }
.mk-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; width: 100%; } .mk-opt { position: relative; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 12px; cursor: pointer; font: inherit; color: var(--sub); display: flex; flex-direction: column; gap: 4px; }
.mk-opt b { color: var(--ink); font-size: 18px; } .mk-opt span { font-size: 12.5px; line-height: 1.45; } .mk-opt i { position: absolute; right: 10px; top: 10px; font-style: normal; font-size: 11px; background: var(--ink); color: var(--bg); border-radius: 8px; padding: 1px 7px; } .mk-opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* references */
.rf-tabs { max-width: 640px; margin-bottom: 14px; } .rf-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; } .rf-tools:empty { display: none; } .rf-shape { width: 200px; }
.rf-chip { border: 1px solid var(--line); background: var(--card); color: var(--sub); border-radius: 16px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; } .rf-chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.rf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 10px; align-items: start; }
.rf-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; } .rf-card.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rf-shot { position: relative; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #14130f; cursor: pointer; display: grid; place-items: center; overflow: hidden; } .rf-shot.tall { aspect-ratio: 16 / 12; }
.rf-shot img, .rf-shot video { width: 100%; height: 100%; object-fit: cover; display: block; } .rf-shot.tall img, .rf-shot.tall video { width: auto; height: 100%; object-fit: contain; } .rf-shot video { position: absolute; inset: 0; margin: auto; }
.rf-shot.doc { background: #3a3a38; } .rf-shot.doc iframe { position: absolute; left: 0; top: 0; width: 1328px; height: 760px; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
.rf-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; } .rf-body b { color: var(--ink); } .rf-body .msg { min-height: 0; } .rf-tags { display: flex; gap: 5px; flex-wrap: wrap; } .rf-tags span { font-size: 12px; background: var(--accbg); border-radius: 6px; padding: 1px 7px; }
.rf-acts { margin-top: 4px; } .rf-acts .btn { padding: 5px 10px; font-size: 13px; } .rf-sel { margin-top: 14px; }
.rf-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 10px; align-items: start; } .rf-links { list-style: none; margin: 0; padding: 0; } .rf-links li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--line); } .rf-links a { color: var(--link); font-weight: 600; } .rf-links .msg { min-height: 0; }
dialog.rf-view { width: min(1200px, 94vw); } .rf-stage { background: #14130f; display: grid; place-items: center; } .rf-stage video, .rf-stage iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; } .rf-stage video.tall { width: auto; height: 80vh; aspect-ratio: 9 / 16; } .rf-stage iframe.doc { height: 78vh; aspect-ratio: auto; background: #3a3a38; }
.mk-report { width: min(640px, 100%); text-align: left; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; } .mk-report:empty { display: none; }
.mk-rhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .mk-rhead b { color: var(--ink); } .mk-rhead .msg { min-height: 0; margin-left: auto; }
.mk-rline { margin: 0; font-size: 14px; color: var(--sub); } .mk-rline i { font-style: normal; font-size: 12px; color: var(--mute); margin-right: 8px; } .mk-rlist { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--sub); }
.mk-rask { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; } .mk-rask textarea { resize: vertical; } .mk-rask .mk-acts { justify-content: flex-end; }

/* usage over time */
.uf-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.uf-seg button { border: 0; background: transparent; color: var(--sub); font: inherit; font-size: 13px; padding: 3px 14px; cursor: pointer; }
.uf-seg button[aria-pressed=true] { background: var(--acc); color: var(--acc-ink); }
.uf-seg button:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.uf-plot { position: relative; } .uf-plot svg { display: block; width: 100%; height: auto; } .uf-plot rect:focus { outline: none; } .uf-plot rect:hover, .uf-plot rect:focus-visible { fill: rgba(127, 120, 100, .12); }
.uf-tip { position: absolute; width: 190px; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(27, 26, 22, .14); font-size: 12.5px; pointer-events: none; } .uf-tip b, .uf-tip small { display: block; } .uf-tip small { color: var(--mute); }
.uf-kind { display: grid; grid-template-columns: minmax(90px, 170px) 1fr 96px 120px; gap: 10px; align-items: center; padding: 4px 0; font-size: 13.5px; }
.uf-kn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .uf-kb { height: 12px; } .uf-kb i { display: block; height: 100%; min-width: 2px; background: var(--acc); opacity: .78; border-radius: 0 4px 4px 0; }
.uf-kv { text-align: right; font-variant-numeric: tabular-nums; } .uf-kp { color: var(--mute); white-space: nowrap; }
@media (max-width: 720px) { .uf-kind { grid-template-columns: 1fr 90px; } .uf-kb, .uf-kp { display: none; } }

.md-grp { grid-column: 1 / -1; font-weight: 600; font-size: 13.5px; color: var(--sub); margin-top: 6px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }

/* five series colours for charts (validated light and dark against the page surface) and one neutral */
:root { --ser1: #cf4926; --ser2: #2f6f9f; --ser3: #c08a1e; --ser4: #3f8a5a; --ser5: #7a4fa3; --serx: #a39d8c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ser1: #e2603c; --ser2: #4a88bd; --ser3: #b98a25; --ser4: #44996b; --ser5: #9369bf; --serx: #6f6a5c; } }
:root[data-theme="dark"] { --ser1: #e2603c; --ser2: #4a88bd; --ser3: #b98a25; --ser4: #44996b; --ser5: #9369bf; --serx: #6f6a5c; }
.uf-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; font-size: 13px; color: var(--sub); } .uf-legend span { display: inline-flex; align-items: center; gap: 6px; } .uf-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.chat-toc { flex-basis: 100%; display: grid; gap: 2px; max-height: 260px; overflow: auto; margin-top: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.chat-toc button { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; text-align: left; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; padding: 5px 8px; border-radius: 6px; cursor: pointer; } .chat-toc button:hover, .chat-toc button:focus-visible { background: var(--accbg); outline: none; } .chat-toc small { color: var(--mute); white-space: nowrap; }

.chat-next { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .chat-next .chat-mb { opacity: 1; }

/* there for the keyboard and for screen readers, not for the eye (a file input inside its own button) */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
label.btn:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Side menu: an icon before each name, and a collapsed state that keeps only the icons. */
.side-nav { justify-content: flex-start; gap: 10px; } .side-nav .side-lbl { flex: 1; min-width: 0; }
.side-ico { width: 18px; height: 18px; flex: none; opacity: .72; } .side-nav[aria-current] .side-ico { opacity: 1; }
.side-min { margin-left: auto; border: 0; background: none; color: var(--mute); cursor: pointer; padding: 4px; border-radius: 6px; display: grid; } .side-min:hover { background: var(--gray); color: var(--ink); }
@media (min-width: 901px) {
  .app.min { grid-template-columns: 60px minmax(0, 1fr); } .app.min aside[data-side] { padding: 18px 8px; align-items: center; }
  .app.min .side-lbl, .app.min select.side-lang, .app.min .side-foot { display: none; }
  .app.min .side-logo { flex-direction: column; padding: 4px 0 6px; gap: 8px; } .app.min .side-min { margin: 0; }
  .app.min .side-grp { font-size: 0; height: 1px; width: 26px; padding: 0; margin: 8px 0; background: var(--line); }
  .app.min .side-nav { justify-content: center; padding: 10px; width: 40px; position: relative; } .app.min .side-cnt { position: absolute; top: 1px; right: -2px; font-size: 10px; padding: 0 5px; }
  .app.min .bar { left: 60px; }
}

/* A panel that folds to its title (the dashboard). */
.pn-fold { border: 0; background: none; cursor: pointer; color: var(--mute); padding: 2px; margin-right: 2px; display: grid; border-radius: 6px; } .pn-fold:hover { background: var(--gray); color: var(--ink); }
.pn-fold svg { width: 16px; height: 16px; transition: transform .15s; } .pn:not(.shut) > .pn-hd .pn-fold svg { transform: rotate(90deg); }
.pn-hd.can-fold > b { cursor: pointer; }
.pn.shut > :not(.pn-hd) { display: none !important; } .pn.shut > .pn-hd { margin-bottom: 0; } .pn.shut > .pn-hd > :not(.pn-fold):not(b) { display: none; } .pn.shut { padding-bottom: 16px !important; }

/* Folded panel titles sit on the left; the hint follows the title and links go right. */
.pn-hd.can-fold { justify-content: flex-start; gap: 6px; } .pn-hd.can-fold > .msg { margin-left: 8px; } .pn-hd.can-fold > a { margin-left: auto; }
/* The helper: a round button at the corner of every screen and the small card it opens. */
.bot-btn { position: fixed; right: 22px; bottom: 22px; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); box-shadow: 0 8px 22px -10px rgba(27, 26, 22, .45); cursor: pointer; padding: 0; z-index: 40; display: grid; place-items: center; }
.bot-btn:hover { background: var(--gray); } .bot-btn img { width: 32px; height: 32px; border-radius: 9px; display: block; } .bot-btn.up { bottom: 84px; }
.bot-dot { position: absolute; top: 1px; right: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--seal); border: 2px solid var(--card); }
.bot-card { position: fixed; right: 22px; bottom: 82px; width: 310px; max-width: calc(100vw - 44px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 8px; box-shadow: 0 18px 40px -18px rgba(27, 26, 22, .5); z-index: 40; font-size: 13.5px; line-height: 1.55; } .bot-card.up { bottom: 144px; }
.bot-card > b { display: block; color: var(--ink); margin-bottom: 8px; } .bot-line { padding: 8px 0; border-top: 1px solid var(--line); color: var(--sub); display: flex; gap: 10px; align-items: baseline; } .bot-line a { margin-left: auto; white-space: nowrap; color: var(--link); }

/* Projects on the dashboard: one small card each; the detail is in the flow window. */
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; padding-bottom: 12px; }
.pj-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; background: var(--card); cursor: pointer; display: flex; flex-direction: column; gap: 9px; } .pj-card:hover, .pj-card:focus-visible { border-color: var(--mute); outline: none; } .pj-card.off { opacity: .8; }
.pj-card > b { color: var(--ink); font-size: 15px; } .pj-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pj-faces { display: flex; padding-left: 8px; } .pj-faces img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); margin-left: -8px; background: var(--gray); }
.pj-dots { display: flex; align-items: center; gap: 5px; } .pj-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--gray); border: 1px solid var(--line); } .pj-dots i.ok { background: var(--ok); border-color: transparent; } .pj-dots i.bad { background: var(--bad); border-color: transparent; } .pj-dots i.run { background: var(--seal); border-color: transparent; } .pj-dots small { margin-left: 6px; color: var(--mute); font-size: 12px; }
.pj-wait { font-size: 12.5px; color: var(--seal); } .pj-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.bot-btn img { width: 36px; height: 36px; border-radius: 0; }

/* Give work, shaped like a chat box. */
.askbox { padding: 14px 16px 12px; }
.composer { border: 1px solid var(--line); border-radius: 18px; background: var(--bg); padding: 12px 12px 10px 16px; transition: border-color .15s; } .composer:focus-within { border-color: var(--mute); }
.composer textarea { display: block; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15.5px; line-height: 1.6; resize: none; min-height: 52px; padding: 2px 0 6px; } .composer textarea::placeholder { color: var(--mute); }
.composer-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.composer-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; color: var(--sub); font-size: 18px; line-height: 1; position: relative; background: var(--card); } .composer-btn:hover { background: var(--gray); }
.composer-sel { border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--sub); font: inherit; font-size: 13px; padding: 5px 10px; max-width: 190px; cursor: pointer; } .composer-sel:hover { background: var(--gray); }
.composer-go { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; cursor: pointer; } .composer-go svg { width: 18px; height: 18px; } .composer-go:disabled { opacity: .4; cursor: default; }

/* Sections that fold to their titles on the longer screens. */
.sec-hid { display: none !important; }
h2.can-fold, .pn-hd > b.can-fold { cursor: pointer; user-select: none; }
.can-fold::before { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(-45deg); margin: 0 11px 2px 2px; transition: transform .15s; } .can-fold.is-open::before { transform: rotate(45deg); margin-bottom: 4px; }
.pn-hd.can-fold::before { content: none; }
.set.shut { grid-template-columns: 1fr; padding-top: 13px; padding-bottom: 13px; } .set.shut > :not(:first-child) { display: none !important; } .set.shut > :first-child > p { display: none; } .set.shut h2 { margin: 0; }
.pn.shut > .pn-hd ~ .pn-hd { display: none !important; }

/* A draft laid out as a document: a label column and its words. */
.docv { border-top: 1px solid var(--line); } .docv .row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.docv .k { font-weight: 600; color: var(--ink); font-size: 13px; } .docv .v { color: var(--sub); line-height: 1.7; word-break: break-word; } .docv ol { margin: 4px 0 0; padding-left: 20px; } .docv li { margin: 2px 0; }
.docv .p { margin: 10px 0 0; color: var(--mute); font-size: 12.5px; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.draft .title { font-size: 17px; margin: 2px 0 10px; }
@media (max-width: 700px) { .docv .row { grid-template-columns: 1fr; gap: 3px; } }
/* The right column (the side view in a frame) and its handle. */
.rside { display: none; border-left: 1px solid var(--line); background: var(--side); position: sticky; top: 0; height: 100vh; } .rside iframe { width: 100%; height: 100%; border: 0; display: block; }
.r-handle { position: fixed; right: 0; top: 50%; width: 16px; height: 56px; margin-top: -28px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: var(--card); cursor: pointer; z-index: 35; padding: 0; } .r-handle:hover { background: var(--gray); }
.r-handle::before { content: ""; position: absolute; left: 6px; top: 23px; width: 6px; height: 6px; border-left: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); }
@media (min-width: 1101px) {
  .app.has-r { grid-template-columns: 220px minmax(0, 1fr) 300px; } .app.min.has-r { grid-template-columns: 60px minmax(0, 1fr) 300px; }
  .app.has-r.r-wide { grid-template-columns: 220px minmax(0, 1fr) 460px; } .app.min.has-r.r-wide { grid-template-columns: 60px minmax(0, 1fr) 460px; }
  .app.has-r .rside { display: block; } body.has-r .r-handle { right: 300px; } body.has-r.r-wide .r-handle { right: 460px; } body.has-r .r-handle::before { transform: rotate(-135deg); left: 3px; }
  body.has-r .bot-btn { right: 322px; } body.has-r .bot-card { right: 322px; } body.has-r.r-wide .bot-btn, body.has-r.r-wide .bot-card { right: 482px; } .app.has-r .bar { right: 300px; }
}
@media (max-width: 1100px) { .r-handle { display: none; } }

/* Parts of a screen that are put away for now: kept in the page, not shown. */
.put-away { display: none !important; }
/* The dashboard page opened as "getting started": only that list shows. */
.only-first > :not(.top):not(#first) { display: none !important; } .only-first #firstClose, .only-first #today, .only-first #first .pn-fold { display: none; }
/* Tall document previews fill their box (a report page is taller than the box at this scale). */
.rf-shot.doc.tall iframe { height: 1120px; }

/* The board of work on the dashboard: four columns (in line, running, waiting for me, ended today). Paper and ink;
   the seal red is only on the column that waits for the owner. */
.bd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bd-col { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: rgba(27, 26, 22, .015); display: flex; flex-direction: column; gap: 8px; }
.bd-col.on { border-color: var(--ink); }
.bd-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--mute); padding: 0 2px; }
.bd-h i { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.bd-col:nth-child(3).has .bd-h i { color: var(--seal, #cf4926); }
.bd-card { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--card, #fffdf7); color: inherit; text-decoration: none; }
.bd-card:hover { border-color: var(--ink); }
.bd-card small { display: block; font-size: 11.5px; color: var(--mute); }
.bd-card b { display: block; font-weight: 500; font-size: 13.5px; line-height: 1.45; margin: 2px 0; overflow-wrap: anywhere; }
.bd-none { margin: 0; font-size: 12.5px; color: var(--mute); padding: 6px 2px; }
.bd-more { font-size: 12px; color: var(--mute); padding: 0 2px; }
@media (max-width: 900px) { .bd { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bd { grid-template-columns: 1fr; } }
