:root { --brand: #1f1f1f; --ink: #1d1d1b; --muted: #5c5c58; --line: #dedcd6; --bg: #ffffff; --soft: #f5f4f1; --warn: #8a4b00; --warnbg: #fdf1df; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
a { color: var(--brand); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--ink); min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo { height: 28px; width: auto; }
nav { display: flex; align-items: center; gap: 14px; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; }
h1 { font-size: 24px; margin: 8px 0 12px; }
h2 { font-size: 18px; margin: 24px 0 8px; }
h3 { font-size: 15px; margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.narrow { max-width: 420px; margin: 24px auto; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; width: 100%; }
button, .button { font: inherit; font-size: 15px; padding: 10px 16px; min-height: 44px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.link { border: 0; background: none; padding: 0; min-height: 0; color: var(--brand); text-decoration: underline; }
.inline { display: inline; }
.flash { background: var(--soft); border: 1px solid var(--line); padding: 10px 12px; border-radius: 6px; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.scroll { overflow-x: auto; }
table.posts { width: 100%; border-collapse: collapse; font-size: 15px; }
.posts th, .posts td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.posts th { font-size: 13px; color: var(--muted); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.status { display: inline-block; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); white-space: nowrap; }
.s-client_check, .s-approving { background: var(--warnbg); border-color: #f0d3a8; color: var(--warn); }
.s-scheduled, .s-published { background: #e8f3e6; border-color: #bfdcb9; color: #245a1d; }
.meta { color: var(--muted); margin-top: 0; }
.columns { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) { .columns { grid-template-columns: 3fr 2fr; } }
.text { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.body { white-space: pre-wrap; margin: 0; }
.tag { font-size: 12px; font-weight: 500; padding: 1px 6px; border-radius: 4px; background: #fdecea; color: #8c1d18; }
.warn { background: var(--warnbg); color: var(--warn); padding: 6px 10px; border-radius: 6px; font-size: 14px; }
.empty { color: var(--muted); }
.steps { padding-left: 20px; margin: 0 0 12px; }
.steps li { margin-bottom: 6px; }
.a-approved { color: #245a1d; }
.a-changes_requested { color: #8c1d18; }
.note, .when { color: var(--muted); font-size: 13px; }
.comments { list-style: none; padding: 0; margin: 0 0 12px; }
.comments li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.comments p { margin: 4px 0 0; white-space: pre-wrap; }
.list { padding-left: 20px; }
.status-form { margin: 0 0 8px; max-width: 420px; }
.status-form select { width: auto; flex: 1; }
.files { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.files li { border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.files img, .files video { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; background: var(--soft); }
.file-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.fname { overflow-wrap: anywhere; }
.tag-plain { background: var(--soft); color: var(--ink); align-self: flex-start; }
.upload { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; }
progress { width: 100%; height: 10px; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
label.check input { width: auto; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
legend { font-size: 14px; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .admin-grid { grid-template-columns: 1fr 1fr; } .card.wide { grid-column: 1 / -1; } }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; min-width: 0; }
.card h2 { margin-top: 4px; }
.plain { list-style: none; padding: 0; margin: 0 0 10px; }
.plain li { padding: 4px 0; }
.row input, .row select { width: auto; flex: 1 1 140px; }
.step-row .num { align-self: center; }
tr.off td { color: var(--muted); }
.narrow-left { max-width: 420px; }
button:disabled { opacity: .5; cursor: default; }
/* Canopy Projects */
.sub { font-size: 14px; color: var(--muted); margin: 16px 0 6px; }
.warn-text { color: #8c1d18; }
.items { list-style: none; padding: 0; margin: 0 0 8px; }
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.item.done .item-title { color: var(--muted); text-decoration: line-through; }
.item.overdue .item-meta { color: #8c1d18; font-weight: 600; }
.item-title { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.item-title.fb { white-space: pre-wrap; }
.item-meta { white-space: nowrap; }
.tick { display: inline; }
.box { width: 28px; height: 28px; min-height: 28px; padding: 0; border-radius: 6px; font-size: 16px; line-height: 1; flex: none; }
.box.static { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.item.done .box { background: var(--soft); }
.item-edit { display: flex; gap: 6px; flex-wrap: wrap; }
.item-edit select, .item-edit input { width: auto; padding: 6px; font-size: 14px; }
.item-edit button { min-height: 34px; padding: 6px 10px; font-size: 14px; }
.add-item { margin: 8px 0 12px; }
.stage-block { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.stage-block summary { cursor: pointer; display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.note-block { margin: 8px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.nav-chips { margin: 12px 0; gap: 8px; }
.nav-chips .button { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.stepper { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 4px; }
.stepper li { flex: 1 1 90px; }
.stepper .step { display: block; width: 100%; text-align: center; font-size: 13px; padding: 8px 4px; min-height: 36px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.stepper li.past .step { background: var(--soft); color: var(--ink); }
.stepper li.current .step { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.flags { list-style: none; padding: 0; margin: 8px 0 12px; }
.flag { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 6px 10px; border-radius: 6px; background: var(--warnbg); margin-bottom: 6px; font-size: 14px; }
.flag-kind { font-weight: 600; color: var(--warn); }
.f-over_budget, .f-not_invoiced, .f-late { background: #fdecea; }
.f-over_budget .flag-kind, .f-not_invoiced .flag-kind, .f-late .flag-kind { color: #8c1d18; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #fdecea; color: #8c1d18; font-size: 12px; font-weight: 600; text-align: center; }
.board { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .board { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .board { grid-template-columns: repeat(4, 1fr); } }
.lane { background: var(--soft); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.lane h2 { font-size: 15px; margin: 4px 0 8px; display: flex; justify-content: space-between; }
.card-link { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; text-decoration: none; color: var(--ink); }
.card-link:hover { border-color: var(--brand); }
.pname { font-weight: 600; overflow-wrap: anywhere; }
.small { font-size: 13px; }
.money { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.money dt { color: var(--muted); }
.money dd { margin: 0; font-variant-numeric: tabular-nums; }
.load { list-style: none; padding: 0; }
.load li { display: grid; grid-template-columns: 1fr 120px 48px; gap: 8px; align-items: center; padding: 4px 0; }
.load meter { width: 100%; }
.lname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-row { margin-bottom: 6px; align-items: center; }
.tpl-row input[name=title] { flex: 3 1 240px; }
.tpl-row .sort { flex: 0 0 72px; width: 72px; }
.tpl-row.off input { color: var(--muted); }
.freelancer-login { margin-top: 24px; }
.freelancer-login summary { cursor: pointer; color: var(--muted); }
nav { flex-wrap: wrap; }
.row label { flex: 1 1 140px; }
.row label input, .row label select { flex: none; width: 100%; }
.change { flex-basis: 100%; padding-left: 38px; }
.change summary { cursor: pointer; display: inline; }
.change[open] summary { display: block; margin-bottom: 6px; }
.change .item-edit { margin-bottom: 4px; }
