/* oco.kr — fff.css 위에 얼굴·도구 화면. 모눈종이(청사진) 바탕, 선으로 이은 상자, 노드 카드. 움직임 없음. */
.b-oco { --accent: light-dark(#0e7490, #67e8f9); --accent-ink: light-dark(#ffffff, #062a33); --bg: light-dark(#f7fafc, #0b1418); --bg2: light-dark(#eef4f7, #13222a); --line: light-dark(#dbe5ea, #243640); }
.cat-diagram { --c: light-dark(#0e7490, #67e8f9); --c-bg: light-dark(#e0f2f7, #123039); }
.cat-plan { --c: light-dark(#b45309, #fcd34d); --c-bg: light-dark(#fef3dc, #3a2a0e); }
.cat-data { --c: light-dark(#4f46e5, #a5b4fc); --c-bg: light-dark(#ecebff, #22214a); }
.b-oco .top { background: light-dark(#0c3b47, #081c22); border-bottom: 0; }
.b-oco .top, .b-oco .top a, .b-oco .top summary { color: #e6f6fa; }
.b-oco .logo .mark { background: #22d3ee; color: #062a33; border-radius: 6px; }
.b-oco [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.g-hero { padding: 40px 0 26px; background-color: var(--bg); background-image: linear-gradient(light-dark(#dbe9ef, #17303a) 1px, transparent 1px), linear-gradient(90deg, light-dark(#dbe9ef, #17303a) 1px, transparent 1px); background-size: 24px 24px; border-bottom: 1px solid var(--line); }
.g-hero-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; align-items: center; }
@media (max-width: 760px) { .g-hero-in { grid-template-columns: 1fr; } .g-art { max-width: 260px; margin: 0 auto; } }
.g-hero h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); font-weight: 900; letter-spacing: -.03em; }
.g-art { width: 100%; height: auto; color: light-dark(#5b8796, #4b7a88); }
.g-a { fill: #0e7490; } .g-b { fill: light-dark(#fff, #13222a); stroke: #0e7490; stroke-width: 2; } .g-c { fill: light-dark(#e0f2f7, #123039); stroke: #22d3ee; stroke-width: 2; }
.g-cat { font-size: 1.1rem; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.g-cat::before { content: ""; width: 12px; height: 12px; border: 3px solid var(--c, var(--accent)); border-radius: 3px; }
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.g-card { position: relative; display: grid; gap: 4px; padding: 18px 18px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; min-height: 120px; }
.g-card::after { content: ""; position: absolute; top: 50%; inset-inline-end: -9px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2px solid var(--c, var(--accent)); transform: translateY(-50%); }
.g-card:hover { border-color: var(--c, var(--accent)); }
.g-card .ico { font-size: 1.6rem; }
.g-card b { font-size: 1.06rem; } .g-card span:last-child { color: var(--dim); font-size: .92rem; }
.g-how { padding-top: 28px; }
.g-how h2 { font-size: 1.35rem; margin: 0 0 14px; }
.g-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.g-how li { display: flex; gap: 12px; padding: 16px; border: 1px dashed light-dark(#9cc3cf, #2c5260); border-radius: 12px; background: var(--bg2); }
.g-how li b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #0e7490; color: #fff; }
/* 도구 화면 */
.tool.oco { max-width: 1280px; }
.o-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .o-grid { grid-template-columns: 1fr; } }
.o-in { display: grid; gap: 12px; }
.o-in textarea { width: 100%; min-height: 320px; padding: 12px; font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); resize: vertical; tab-size: 2; }
.o-in .bar-opts { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.o-in .bar-opts .opt { min-width: 140px; }
.o-in input[type=color] { width: 64px; min-height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.o-help { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.o-help summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 14px; font-weight: 700; }
.o-help ul { margin: 0; padding: 0 18px 14px 34px; font-size: .92rem; }
.o-help li { margin: 4px 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.o-out { display: grid; gap: 10px; position: sticky; top: 76px; }
@media (max-width: 900px) { .o-out { position: static; } }
.o-view { min-height: 320px; max-height: 72vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; display: grid; place-items: start center; }
.o-view svg { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(72vh - 22px); }
.o-view .hint { color: #6b7280; }
.o-out .acts { margin: 0; }
.o-out .acts .btn-primary { flex: 1; }
