:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  background: #ffffff;
  color: #101410;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 14%, rgba(21, 213, 93, .22), transparent 28%),
    radial-gradient(circle at 10% 4%, rgba(14, 175, 79, .12), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfdfb 45%, #f5faf6 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .72;
  background-image:
    radial-gradient(circle, rgba(0, 171, 73, .34) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(0, 171, 73, .20) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(0, 171, 73, .10) 0 1px, transparent 1.5px);
  background-size: 10px 10px, 18px 18px, 34px 34px;
  background-position: 82% 12%, 72% 2%, 12% 86%;
  -webkit-mask-image: radial-gradient(circle at 82% 13%, #000 0 10%, rgba(0,0,0,.65) 18%, transparent 38%), radial-gradient(circle at 16% 86%, rgba(0,0,0,.72), transparent 26%);
  mask-image: radial-gradient(circle at 82% 13%, #000 0 10%, rgba(0,0,0,.65) 18%, transparent 38%), radial-gradient(circle at 16% 86%, rgba(0,0,0,.72), transparent 26%);
}
button, input, select, textarea { font: inherit; }
button { border: 1px solid rgba(11, 98, 45, .16); border-radius: 12px; padding: .72rem 1rem; color: #ffffff; background: #0f8f46; cursor: pointer; font-weight: 700; letter-spacing: -.01em; transition: background .12s ease, border-color .12s ease, transform .12s ease; }
button:hover { transform: translateY(-1px); }
button:hover { background: #0c7d3d; }
button.secondary { color: #182019; background: rgba(255, 255, 255, .78); border-color: rgba(20, 34, 24, .14); }
.shell { width: 100%; margin: 0 auto; padding: 34px 24px; }
.login-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(460px, 100%); display: grid; gap: 16px; padding: 30px; border: 1px solid rgba(23, 38, 27, .12); border-radius: 24px; background: rgba(255,255,255,.9); box-shadow: 0 28px 80px rgba(18, 24, 19, .12); }
.login-card h1 { margin: 0; font-family: "Raleway", sans-serif; font-size: 2.7rem; line-height: .95; letter-spacing: -.05em; }
.login-card p { margin: 0; }
.login-error { color: #b42318; font-weight: 700; }
.home-shell { width: min(1180px, calc(100% - 48px)); min-height: 100vh; display: grid; grid-template-columns: 1.25fr minmax(340px, .75fr); gap: clamp(36px, 9vw, 150px); align-items: center; margin: 0 auto; }
.home-intro h1 { max-width: 680px; margin: 0 0 20px; font-family: "Raleway", sans-serif; font-size: clamp(4rem, 9vw, 8.5rem); line-height: .82; letter-spacing: -.075em; font-weight: 300; }
.home-intro > p { max-width: 560px; color: #5d675f; font-size: 1.15rem; line-height: 1.5; }
.home-note { max-width: 540px; margin-top: 28px; padding: 14px 16px; border-left: 3px solid #0f8f46; color: #4d5b50; background: rgba(255,255,255,.58); }
.create-project-card { display: grid; gap: 14px; padding: 24px; border: 1px solid rgba(23,38,27,.12); border-radius: 24px; background: rgba(255,255,255,.9); box-shadow: 0 22px 70px rgba(18,24,19,.1); }
.create-project-card h2 { margin: 0 0 6px; font-size: 1.9rem; letter-spacing: -.04em; }
.create-project-card label { display: grid; gap: 6px; color: #334237; font-size: .86rem; font-weight: 800; }
.hero { display: block; border-radius: 24px; background: rgba(255, 255, 255, .78); }
.hero h1 { margin: 0 0 40px; font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(3rem, 7vw, 6.6rem); line-height: .9; letter-spacing: -.055em; font-weight: 300; color: #0d120e; }
.project-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.project-title-row h1 { flex: 1; cursor: pointer; }
.project-title-row h1[contenteditable="true"] { outline: none; box-shadow: inset 0 -3px 0 rgba(15, 143, 70, .42); cursor: text; }
.project-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.presence-list { display: flex; align-items: center; min-height: 42px; padding: 0 4px; }
.presence-avatar { width: 34px; height: 34px; display: grid; place-items: center; margin-left: -7px; border: 2px solid #ffffff; border-radius: 50%; color: #ffffff; background: var(--avatar-color, #0f8f46); font-size: .78rem; font-weight: 850; box-shadow: 0 2px 8px rgba(18,24,19,.14); }
.presence-avatar:first-child { margin-left: 0; }
.project-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.presence-list { display: flex; align-items: center; min-height: 42px; padding: 0 4px; }
.presence-avatar { width: 34px; height: 34px; display: grid; place-items: center; margin-left: -7px; border: 2px solid #ffffff; border-radius: 50%; color: #ffffff; background: var(--avatar-color, #0f8f46); font-size: .78rem; font-weight: 850; box-shadow: 0 2px 8px rgba(18,24,19,.14); }
.presence-avatar:first-child { margin-left: 0; }
.hero p { max-width: 780px; color: #5d675f; font-size: clamp(1.02rem, 1.4vw, 1.24rem); line-height: 1.42; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; color: #168a47 !important; font-size: .78rem !important; font-weight: 800; }
.top-bar { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.flex-1 { flex: 1; }
.toolbar-toggle { color: #334237; background: rgba(255, 255, 255, .78); border-color: rgba(21, 34, 24, .10); font-size: 1rem; padding: .5rem .7rem; }
.toolbar { display: grid; grid-template-columns: 1fr 220px 220px auto auto; gap: 12px; margin: 8px 0; align-items: center; }
input, select, textarea { width: 100%; border: 1px solid rgba(22, 37, 26, .12); border-radius: 14px; background: rgba(255, 255, 255, .82); color: #101410; padding: .95rem 1rem; outline: none; }
input:focus, select:focus, textarea:focus { border-color: rgba(17, 142, 69, .42); }
.show-hidden-toggle { display: inline-flex; align-items: center; gap: 8px; padding: .72rem .85rem; border: 1px solid rgba(22, 37, 26, .12); border-radius: 14px; background: rgba(255, 255, 255, .82); color: #334237; font-weight: 800; white-space: nowrap; }
.show-hidden-toggle input { width: auto; }
.view-tabs { display: flex; gap: 8px; margin: 0 0 16px; }
.top-bar .view-tabs { margin: 0; }
.view-tab { color: #334237; background: rgba(255, 255, 255, .78); border-color: rgba(21, 34, 24, .10); font-size: 1.15rem; padding: .48rem .65rem; line-height: 1; min-width: 34px; text-align: center; }
.view-tab.active { color: #ffffff; background: #0f8f46; border-color: #0f8f46; }
.presence-wrap { position: relative; display: flex; align-items: center; }
.presence-list { cursor: pointer; }
.layout { display: grid; grid-template-columns: 280px minmax(360px, 1fr); gap: 16px; align-items: start; }
.panel, .card { border: 1px solid rgba(23, 38, 27, .10); border-radius: 22px; background: rgba(255, 255, 255, .82); }
.panel { padding: 18px; position: sticky; top: 16px; }
.panel h2 { margin: 8px 0 12px; font-size: .92rem; color: #182019; font-weight: 800; letter-spacing: -.01em; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { border: 1px solid rgba(21, 34, 24, .10); border-radius: 999px; padding: .44rem .68rem; color: #334237; background: rgba(246, 249, 247, .9); cursor: pointer; transition: background .12s ease, border-color .12s ease, transform .12s ease; }
.tag:hover { background: #ffffff; border-color: rgba(15, 143, 70, .24); transform: translateY(-1px); }
.tag.active { background: #0f8f46; color: #ffffff; border-color: #0f8f46; }
.section-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; padding: .62rem .7rem; color: #182019; background: rgba(246, 249, 247, .9); border-color: rgba(21, 34, 24, .10); border-radius: 14px; font-size: .92rem; font-weight: 800; }
.collapsible { display: none; margin-bottom: 18px; }
.collapsible.open { display: block; }
.features { display: grid; gap: 14px; }
.mosaic { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 74px; gap: 14px; }
body.mosaic-view .layout { grid-template-columns: minmax(0, 1fr); }
body.mosaic-view .panel { display: none; }
.mosaic-tile { position: relative; display: block; grid-column: span var(--tile-columns, 2); grid-row: span var(--tile-rows, 2); min-width: 0; min-height: 0; overflow: hidden; border: 1px solid rgba(23, 38, 27, .11); border-radius: 18px; background: #152119; cursor: pointer; box-shadow: 0 8px 28px rgba(18, 24, 19, .08); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.mosaic-tile:hover, .mosaic-tile.selected { transform: translateY(-3px); border-color: rgba(15, 143, 70, .7); box-shadow: 0 18px 38px rgba(18, 24, 19, .2); }
.mosaic-tile::before { position: absolute; inset: 0; content: ""; background: linear-gradient(105deg, #e9f0eb 20%, #f8fbf8 42%, #e9f0eb 64%); background-size: 220% 100%; animation: mosaic-loading 1.1s linear infinite; }
.mosaic-tile img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; background: #eff5f0; object-fit: cover; opacity: 1; transition: opacity .18s ease; }
.mosaic-tile.loading img { opacity: 0; }
.mosaic-tile:not(.loading)::before { display: none; }
@keyframes mosaic-loading { to { background-position: -220% 0; } }
.mosaic-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 12, 7, 0) 42%, rgba(4, 12, 7, .62) 100%); }
.mosaic-copy { position: absolute; right: 0; bottom: 0; left: 0; display: grid; gap: 5px; padding: 15px; color: #ffffff; }
.mosaic-copy h3 { margin: 0; font-size: 1.16rem; line-height: 1.04; letter-spacing: -.035em; }
.mosaic-copy p { display: -webkit-box; margin: 0; overflow: hidden; color: rgba(255,255,255,.82); font-size: .82rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mosaic-phase { width: max-content; max-width: 100%; overflow: hidden; border-radius: 999px; padding: .22rem .48rem; color: #d9ffe6; background: rgba(15, 143, 70, .78); font-size: .7rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.graph-panel { min-height: 760px; border: 1px solid rgba(23, 38, 27, .10); border-radius: 22px; background: rgba(255, 255, 255, .82); overflow: hidden; }
.matrix-panel { border: 1px solid rgba(23, 38, 27, .10); border-radius: 22px; background: rgba(255, 255, 255, .82); overflow: auto; }
.matrix-controls { display: flex; gap: 8px; align-items: end; }
.matrix-controls label { display: grid; gap: 4px; color: #667069; font-size: .78rem; font-weight: 800; }
.matrix-controls select { min-width: 140px; padding: .5rem .6rem; }
.matrix-grid { display: grid; grid-template-columns: minmax(130px, .7fr) repeat(var(--matrix-columns, 1), minmax(190px, 1fr)); min-width: 740px; }
.matrix-heading, .matrix-row-heading, .matrix-cell { padding: 13px; border-right: 1px solid rgba(23, 38, 27, .09); border-bottom: 1px solid rgba(23, 38, 27, .09); }
.matrix-heading, .matrix-row-heading { background: rgba(15, 143, 70, .06); color: #1d6d3b; font-size: .84rem; font-weight: 800; }
.matrix-cell { min-height: 110px; display: grid; align-content: start; gap: 7px; background: rgba(255,255,255,.52); }
.matrix-feature { width: 100%; padding: .46rem .56rem; color: #334237; text-align: left; font-size: .82rem; font-weight: 700; background: rgba(15,143,70,.08); border-color: rgba(15,143,70,.12); }
.graph-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px; border-bottom: 1px solid rgba(23, 38, 27, .10); }
.graph-head h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1; letter-spacing: -.04em; }
.graph-head p { margin: 0; }
.graph-actions { display: flex; gap: 8px; }
#graphSvg { width: 100%; height: min(820px, calc(100vh - 260px)); min-height: 620px; display: block; cursor: grab; touch-action: none; background: radial-gradient(circle, rgba(15, 143, 70, .10) 0 1px, transparent 1.4px); background-size: 28px 28px; }
#graphSvg.dragging { cursor: grabbing; }
.graph-link { stroke: rgba(37, 57, 42, .24); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.graph-link.connected { stroke: rgba(15, 143, 70, .58); stroke-width: 2; }
.graph-node circle { fill: #ffffff; stroke: rgba(15, 143, 70, .50); stroke-width: 2; vector-effect: non-scaling-stroke; }
.graph-node.domain-mdm circle { fill: #f0fff5; }
.graph-node.domain-pim circle { fill: #f8fff0; }
.graph-node.domain-smartmatch circle { fill: #f4fbff; }
.graph-node.domain-pdx circle { fill: #fffaf0; }
.graph-node.domain-integrations circle { fill: #fff7f2; }
.graph-node text { fill: #142118; font-size: 12px; font-weight: 750; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.graph-node { cursor: pointer; }
.graph-node:hover circle, .graph-node.selected circle { fill: #0f8f46; stroke: #0f8f46; }
.graph-node:hover text, .graph-node.selected text { fill: #0b351c; }
.graph-empty { padding: 22px; }
.card { padding: 18px; cursor: pointer; transition: background .12s ease, border-color .12s ease, transform .12s ease, opacity .12s ease; }
.skeleton-card { display: grid; gap: 12px; cursor: default; }
.skeleton-card div, .skeleton-card span, .skeleton-card p, .skeleton-line { display: block; margin: 0; border-radius: 999px; background: linear-gradient(90deg, rgba(15, 143, 70, .08), rgba(15, 143, 70, .18), rgba(15, 143, 70, .08)); background-size: 220% 100%; animation: skeleton-pulse 1.15s ease-in-out infinite; }
.skeleton-card div { width: 62%; height: 28px; }
.skeleton-card span { width: 100%; height: 180px; border-radius: 16px; }
.skeleton-card p { width: 86%; height: 14px; }
.skeleton-card p:last-child { width: 54%; }
.loading-card { pointer-events: none; }
@keyframes skeleton-pulse { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.features:hover .card { opacity: .64; }
.features:hover .card:hover, .card.selected, .card.drop-target { opacity: 1; background: #ffffff; border-color: rgba(15, 143, 70, .34); transform: translateY(-2px); }
.card.drop-target { outline: 2px dashed #0f8f46; outline-offset: 3px; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card h3 { margin: 0 0 8px; font-size: clamp(1.28rem, 1.8vw, 1.72rem); letter-spacing: -.035em; font-weight: 800; color: #101410; }
.card p { color: #667069; margin: 0 0 14px; font-size: 1.02rem; line-height: 1.46; }
.thumb-wrap { margin: 8px 0 14px; }
.feature-thumb { width: 100%; max-height: 260px; object-fit: contain; object-position: center; display: block; border: 1px solid rgba(23, 38, 27, .10); border-radius: 16px; background: #f8faf8; background-repeat: no-repeat; background-size: contain; background-position: center; }
.post-body { color: #535d56; font-size: .95rem; line-height: 1.6; max-height: 360px; overflow: auto; padding-right: 4px; }
.post-body h2, .post-body h3, .post-body h4 { color: #101410; margin: 12px 0 8px; }
.post-body h2 { font-size: 1.15rem; }
.post-body h3 { font-size: 1rem; }
.post-body h4 { font-size: .94rem; }
.post-body p { margin: 0 0 10px; color: #535d56; }
.post-body ul { margin: 0 0 10px; padding-left: 18px; }
.post-body code { color: #0b6f36; background: rgba(15, 143, 70, .08); border-radius: 6px; padding: 1px 4px; }
.post-image { position: relative; display: block; margin: 10px 0; }
.post-image img { width: 100%; max-height: 320px; object-fit: contain; object-position: center; display: block; border: 1px solid rgba(23, 38, 27, .10); border-radius: 16px; background: #f8faf8; background-repeat: no-repeat; background-size: contain; background-position: center; }
.lazy-image.lazy-offscreen { visibility: hidden; }
.remove-image { position: absolute; top: 8px; right: 8px; opacity: 0; pointer-events: none; padding: .42rem .58rem; color: #ffffff; background: #0f8f46; border-color: #0f8f46; }
.post-image:hover .remove-image { opacity: 1; pointer-events: auto; }
.icon-actions { display: flex; gap: 6px; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border-radius: 999px; color: #334237; background: rgba(246, 249, 247, .9); border-color: rgba(21, 34, 24, .10); font-size: 1rem; line-height: 1; }
.icon-button.active { background: #0f8f46; color: #ffffff; border-color: #0f8f46; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill { border-radius: 999px; padding: .34rem .56rem; background: rgba(15, 143, 70, .08); color: #1d6d3b; font-size: .82rem; font-weight: 650; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-list { display: grid; gap: 8px; margin-bottom: 18px; }
.mini-item { border-radius: 14px; background: rgba(246, 249, 247, .9); padding: .7rem; cursor: pointer; color: #334237; transition: background .12s ease, transform .12s ease; }
.mini-item:hover { background: #ffffff; transform: translateX(2px); }
.editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.editor-title-block { flex: 1; display: grid; gap: 8px; min-width: 0; }
.title-input { padding: .2rem 0; border: 0; border-radius: 0; background: transparent; color: #101410; font-size: clamp(1.55rem, 2.8vw, 2.25rem); line-height: 1; letter-spacing: -.04em; font-weight: 850; }
.title-input:focus { border-color: transparent; box-shadow: inset 0 -2px 0 rgba(15, 143, 70, .45); }
.file-name-label { display: grid; gap: 4px; color: #707a73; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.file-name-input { max-width: 360px; padding: .52rem .68rem; border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; text-transform: none; letter-spacing: 0; }
.drawer-actions { display: flex; gap: 8px; align-items: center; }
.action-menu { position: relative; }
.action-menu-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 12; min-width: 180px; padding: 8px; border: 1px solid rgba(23, 38, 27, .10); border-radius: 14px; background: #ffffff; box-shadow: 0 18px 50px rgba(18, 24, 19, .14); }
.action-menu-panel button { width: 100%; text-align: left; margin-bottom: 6px; }
.action-menu-panel button:last-child { margin-bottom: 0; }
button.danger { color: #ffffff; background: #b42318; border-color: #b42318; }
button.danger:hover { background: #971b12; }
.muted { color: #707a73; }
.drawer-overlay { position: fixed; inset: 0; z-index: 10; background: rgba(18, 24, 19, .32); }
.drawer-overlay[hidden] { display: none; }
.feature-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(18, 24, 19, .42); }
.feature-modal[hidden] { display: none; }
.feature-dialog { display: grid; gap: 14px; width: min(620px, 100%); border: 1px solid rgba(23, 38, 27, .10); border-radius: 22px; background: #ffffff; padding: 18px; box-shadow: 0 28px 88px rgba(18, 24, 19, .16); }
.feature-dialog h2 { margin: 0 0 4px; }
.feature-dialog p { margin: 0; }
.feature-dialog label { display: grid; gap: 6px; color: #182019; font-size: .88rem; font-weight: 800; }
.feature-dialog textarea { height: 120px; min-height: 100px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature-drawer { position: fixed; z-index: 11; top: 0; right: 0; width: min(720px, 94vw); height: 100vh; padding: 18px; border-left: 1px solid rgba(23, 38, 27, .10); background: rgba(255, 255, 255, .92); transform: translateX(100%); transition: transform .18s ease; overflow: auto; }
.feature-drawer.open { transform: translateX(0); }
.affected-files { display: grid; gap: 6px; margin: 12px 0; padding: 12px; border: 1px solid rgba(23, 38, 27, .10); border-radius: 14px; background: rgba(246, 249, 247, .76); max-height: 180px; overflow: auto; }
.affected-files:empty { display: none; }
.affected-title { color: #182019; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.affected-file { display: block; color: #465149; font-size: .82rem; line-height: 1.35; word-break: break-word; }
.opened-preview { display: grid; align-content: start; gap: 14px; margin: 12px 0; padding: 14px; border: 1px solid rgba(23, 38, 27, .10); border-radius: 16px; background: rgba(246, 249, 247, .76); min-height: 48vh; max-height: 62vh; overflow: auto; }
.opened-preview:empty { display: none; }
.opened-thumb img { width: 100%; max-height: 42vh; object-fit: contain; object-position: center; display: block; border: 1px solid rgba(23, 38, 27, .10); border-radius: 16px; background: #f8faf8; cursor: zoom-in; }
.opened-post { max-height: none; overflow: visible; }
.image-dropzone { display: grid; gap: 4px; margin: 12px 0; padding: 14px; border: 1px dashed rgba(15, 143, 70, .36); border-radius: 16px; background: rgba(15, 143, 70, .06); color: #1d6d3b; outline: none; }
.image-dropzone span { color: #667069; font-size: .86rem; line-height: 1.35; }
.image-dropzone small { color: #0f8f46; font-size: .82rem; font-weight: 800; }
.image-dropzone.compact { margin: 0; }
.image-dropzone:hover, .image-dropzone:focus, .image-dropzone.dragging { border-color: #0f8f46; background: rgba(15, 143, 70, .10); }
.body-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 8px; }
.wysiwyg-toolbar { display: flex; gap: 6px; flex-wrap: wrap; }
.wysiwyg-toolbar button { padding: .42rem .58rem; border-radius: 10px; }
.body-editor { min-height: 52vh; padding: 14px; border: 1px solid rgba(22, 37, 26, .12); border-radius: 16px; background: rgba(255, 255, 255, .82); color: #253027; line-height: 1.62; outline: none; overflow: auto; }
.body-editor:focus { border-color: rgba(17, 142, 69, .42); }
.body-editor h1, .body-editor h2, .body-editor h3 { color: #101410; letter-spacing: -.02em; }
.body-editor img { max-width: 100%; max-height: 340px; object-fit: contain; display: block; margin: 10px 0; border: 1px solid rgba(23, 38, 27, .10); border-radius: 14px; background: #f8faf8; }
.thumbnail-option { display: inline-flex; align-items: center; gap: 8px; color: #334237; font-size: .9rem; font-weight: 800; }
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; padding: 10px; border: 1px solid rgba(22, 37, 26, .12); border-radius: 14px; background: rgba(246, 249, 247, .72); }
.tag-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: .44rem .68rem; background: #0f8f46; color: #ffffff; font-size: .88rem; font-weight: 650; }
.tag-pill button { width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.24); color: #ffffff; font-size: .82rem; line-height: 1; cursor: pointer; }
.tag-pill button:hover { background: rgba(255,255,255,.40); }
.add-tag-row { display: flex; gap: 8px; margin: 12px 0; }
.add-tag-row input { flex: 1; }
.add-tag-row button { flex-shrink: 0; }
.thumbnail-option input { width: auto; }
textarea { height: 260px; min-height: 220px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.45; }
.crop-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(18, 24, 19, .42); }
.crop-modal[hidden] { display: none; }
.crop-dialog { width: min(1080px, 100%); border: 1px solid rgba(23, 38, 27, .10); border-radius: 22px; background: #ffffff; padding: 18px; }
.crop-head, .crop-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.crop-head h2 { margin: 0 0 4px; }
.crop-stage-wrap { margin: 16px 0; overflow: auto; max-height: calc(100vh - 230px); border: 1px solid rgba(23, 38, 27, .10); border-radius: 16px; background: #f6faf7; }
#cropCanvas { display: block; max-width: 100%; cursor: crosshair; }
.image-viewer { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 56px 24px 24px; background: rgba(18, 24, 19, .76); }
.image-viewer[hidden] { display: none; }
.image-viewer img { max-width: min(1200px, 96vw); max-height: 88vh; object-fit: contain; border: 1px solid rgba(255, 255, 255, .28); border-radius: 18px; background: #ffffff; }
.image-viewer button { position: fixed; top: 18px; right: 18px; }
@media (max-width: 1100px) { .layout { grid-template-columns: 1fr; } .panel { position: static; } .toolbar, .modal-grid { grid-template-columns: 1fr; } .hero { align-items: start; flex-direction: column; } .project-title-row { align-items: stretch; flex-direction: column; } .project-actions { justify-content: flex-start; } #graphSvg { min-height: 520px; } .graph-head { flex-direction: column; } .mosaic { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: 68px; } }
@media (max-width: 560px) { .shell { padding: 20px 16px; } .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 94px; } .mosaic-tile { grid-column: span 2; grid-row: span 3; } .mosaic-copy { padding: 13px; } }
@media (max-width: 800px) { .home-shell { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; } }
