@charset "UTF-8";@font-face{font-family:Pairmap Sans;src:url(/fonts/pairmap-extended.woff2) format("woff2");font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+B0,U+E9,U+2018-2019,U+2022,U+203A,U+2190,U+21BB,U+2212,U+221E,U+2303,U+25B6,U+25EF,U+2606,U+306E,U+30A1-30A4,U+30A6-30A8,U+30AA-30C1,U+30C3-30E5,U+30E7,U+30E9-30ED,U+30EF,U+30F3-30F4,U+30FC,U+AC01,U+AC04,U+AC08,U+AC10,U+AC12-AC13,U+AC15,U+AC19,U+AC31,U+AC38,U+AC74,U+AC78,U+AC80,U+AC90,U+ACA8-ACA9,U+ACB0,U+ACB9,U+ACBC-ACBD,U+ACE1,U+ACE4,U+ACE8,U+ACF3,U+AD11,U+AD34,U+AD50,U+AD6D,U+AD70,U+AD74-AD75,U+AD81,U+AD8C,U+ADC0,U+ADC4,U+ADDC,U+ADF9,U+ADFC,U+AE00,U+AE08-AE09,U+AE34,U+AE38,U+AE40,U+AE54,U+AE5D,U+AE68,U+AEBC,U+AEBE,U+AECC,U+AED8,U+AF43,U+AFB8,U+AFBC,U+AFC0,U+AFC8-AFC9,U+AFD4,U+AFE8,U+B00C,U+B044,U+B04C,U+B05D,U+B099,U+B09C,U+B0A0,U+B0A8,U+B0C5,U+B0D0,U+B0E5,U+B108,U+B110,U+B113,U+B118,U+B123-B125,U+B128,U+B12C,U+B135,U+B137,U+B140,U+B144,U+B178-B179,U+B17C,U+B180,U+B188-B189,U+B18D,U+B192-B193,U+B204,U+B208,U+B20C,U+B220,U+B290,U+B298,U+B2A5-B2A6,U+B2AA,U+B2C8,U+B2CC,U+B2D0,U+B2D8-B2D9,U+B2DB,U+B2DD,U+B2E4-B2E5,U+B2EB-B2EC,U+B2F4-B2F5,U+B2F9,U+B2FF-B300,U+B354,U+B358,U+B35C,U+B35F,U+B364,U+B371,U+B374,U+B378,U+B3C5,U+B3C8,U+B3CC,U+B3D7,U+B3D9,U+B3FC,U+B410,U+B418,U+B41C,U+B420,U+B428-B429,U+B454,U+B458,U+B460,U+B46C,U+B4A4,U+B4C0,U+B4E0,U+B4EC,U+B4F1,U+B514-B515,U+B518,U+B529,U+B530,U+B538,U+B54C,U+B5A4,U+B610,U+B760,U+B77C-B77D,U+B780,U+B784,U+B78C,U+B791,U+B798-B799,U+B79C,U+B7A8,U+B7AB,U+B7AD,U+B7B4,U+B7C9,U+B7ED,U+B7FC-B7FD,U+B7FF,U+B808-B809,U+B80C,U+B810,U+B818,U+B81B,U+B81D,U+B825,U+B828,U+B82C,U+B838-B839,U+B840,U+B85D,U+B860,U+B864,U+B86C-B86D,U+B86F,U+B871,U+B8B0,U+B8CC,U+B8E1,U+B8E8-B8E9,U+B8EC,U+B8F0,U+B8F8-B8F9,U+B8FD,U+B93C,U+B958,U+B968,U+B974,U+B978,U+B984,U+B9B0,U+B9B4,U+B9BC-B9BD,U+B9C8-B9C9,U+B9CE,U+B9D0,U+B9DB,U+B9DE,U+B9E4-B9E5,U+B9E8,U+BA38,U+BA3C,U+BA40,U+BA58,U+BA5C,U+BA64,U+BA70,U+BA74,U+BA78,U+BA85,U+BAA8-BAA9,U+BAAC,U+BAB0,U+BABB,U+BABD,U+BAFC,U+BB18,U+BB36,U+BB38,U+BBA4,U+BBAC,U+BBC0,U+BBF8-BBF9,U+BBFC,U+BC00,U+BC0B,U+BC0F,U+BC11,U+BC14-BC15,U+BC18,U+BC1B-BC1C,U+BC24-BC25,U+BC27,U+BC30-BC31,U+BC34,U+BC45,U+BC4C,U+BC84,U+BC88,U+BC8C,U+BC94,U+BCA0-BCA1,U+BCA4,U+BCA8,U+BCB3,U+BCC0,U+BCC4,U+BCD1,U+BCF5,U+BCF8,U+BCFC,U+BD80-BD81,U+BD84,U+BD88,U+BD95,U+BD99,U+BDD4,U+BE0C,U+BE10,U+BE14,U+BE44-BE45,U+BE48,U+BE4C,U+BE5B,U+BE60,U+BE68,U+BF40,U+C058,U+C090,U+C0AD,U+C0B0,U+C0BC,U+C0D8,U+C0DD,U+C0E4,U+C0E8,U+C0EC,U+C0F4,U+C100,U+C11D-C11E,U+C124,U+C12C,U+C12F,U+C13C,U+C140,U+C149,U+C14B,U+C154,U+C158,U+C15C,U+C170,U+C174,U+C18C-C18D,U+C190,U+C194,U+C19C-C19D,U+C1A1,U+C1E0,U+C1FC,U+C219,U+C21C,U+C220,U+C22B,U+C254,U+C26C,U+C27C-C27D,U+C288,U+C28C,U+C2A8,U+C2AC,U+C2B5,U+C2B9,U+C2DD,U+C2E0,U+C2EC-C2ED,U+C2EF,U+C2F1,U+C2F6,U+C2FC,U+C368,U+C4F0,U+C4F8,U+C529,U+C545,U+C548,U+C54A,U+C54C,U+C554,U+C558-C559,U+C561,U+C564,U+C568,U+C570,U+C57C-C57D,U+C580,U+C58C,U+C591,U+C5B8,U+C5BC,U+C5C6,U+C5C8,U+C5D1,U+C5D4,U+C5D8,U+C5E0,U+C5E3,U+C5ED,U+C5F0,U+C5FC,U+C601,U+C606,U+C608,U+C60C,U+C610,U+C624,U+C628,U+C62C,U+C62E,U+C635,U+C654-C655,U+C678,U+C67C,U+C698,U+C6B0,U+C6B8,U+C6C0-C6C1,U+C6C3,U+C6C5,U+C6D0,U+C6E1,U+C6E8,U+C6EC,U+C6F0,U+C6F9,U+C704-C705,U+C708,U+C70C,U+C719,U+C724,U+C728,U+C740,U+C74C,U+C751,U+C775,U+C77C-C77D,U+C785,U+C787,U+C789-C78A,U+C790,U+C794,U+C798,U+C7A0-C7A1,U+C7A3,U+C7AC-C7AD,U+C7C1,U+C7C8,U+C7DD,U+C801,U+C804,U+C810-C811,U+C81C-C81D,U+C820,U+C824,U+C838,U+C84C,U+C871,U+C878,U+C881,U+C885,U+C8E0,U+C8FD,U+C900,U+C904,U+C950,U+C96C,U+C970,U+C988,U+C990,U+C998,U+C9C0-C9C1,U+C9C8,U+C9D0,U+C9D5,U+C9DA,U+C9DC-C9DD,U+C9F8,U+CA29,U+CABD,U+CC28-CC29,U+CC2C,U+CC30,U+CC38,U+CC3D-CC3E,U+CC45,U+CC60,U+CC9C,U+CCA0,U+CCAB,U+CCAD,U+CCB4,U+CCB8,U+CCBC,U+CCD0,U+CD08,U+CD78,U+CD94-CD95,U+CD98,U+CD9C,U+CDA5,U+CDA9,U+CDB0,U+CE04,U+CE08,U+CE20,U+CE35,U+CE58,U+CE5C,U+CE60,U+CE6B,U+CE6D,U+CE74,U+CE7C,U+CE94,U+CEA1,U+CEA3,U+CEE8,U+CEEC,U+CEF4,U+CF00,U+CF04,U+CF08,U+CF11,U+CF13,U+CF1C,U+CF54-CF55,U+CF58,U+CF5C,U+CF69,U+CFC4,U+CFE0,U+CFE4,U+CFE8,U+D000,U+D038,U+D050,U+D058,U+D06C,U+D074,U+D07D,U+D0A4,U+D0A8,U+D0AC,U+D0B4,U+D0B9,U+D0C0-D0C1,U+D0C4,U+D0C8,U+D0D0-D0D1,U+D0D5,U+D0DC-D0DD,U+D0E0,U+D0F1,U+D134,U+D140,U+D14C-D14D,U+D150,U+D154,U+D15F,U+D1A0-D1A1,U+D1A4,U+D1A8,U+D1B0,U+D1B5,U+D22C,U+D234,U+D23C,U+D29C,U+D2B8,U+D2C0,U+D2F0-D2F1,U+D2F4,U+D2F8,U+D300,U+D30C,U+D314,U+D31C,U+D321,U+D328-D329,U+D32C,U+D33B,U+D33D,U+D37C,U+D391,U+D39C,U+D3A0,U+D3BC,U+D3EC-D3ED,U+D3F0,U+D3F4,U+D488,U+D48B,U+D48D,U+D4E8,U+D504,U+D53C-D53D,U+D540,U+D544,U+D551,U+D559,U+D568,U+D56B,U+D56D,U+D578,U+D584,U+D588-D589,U+D590,U+D5C8,U+D5CC,U+D5D8,U+D5E4,U+D5E8,U+D5EC,U+D601,U+D604,U+D608,U+D611,U+D614,U+D61C,U+D638,U+D63C,U+D640,U+D64D,U+D655,U+D658,U+D669,U+D68C,U+D69F,U+D6A8,U+D6C4,U+D6D9,U+D718,U+D734,U+D750-D751,U+D76C,U+D770,U+D788,U+D790,U+D798,U+FF03,U+FF08-FF09,U+FF0C,U+FF1D}@font-face{font-family:Pairmap Sans;src:url(/fonts/pairmap-ui.woff2) format("woff2");font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+20-7E,U+A9,U+B7,U+D7,U+2026,U+2192,U+2197,U+22EF,U+AC00,U+AC1C,U+AC24,U+AC70,U+AC8C,U+ACAC,U+ACC4,U+ACE0,U+ACF5,U+ACFC,U+AD00,U+AD6C,U+ADF8,U+AE0B,U+AE30,U+AE4C,U+B098,U+B0B4,U+B274,U+B294,U+B2E8,U+B370,U+B3C4,U+B450,U+B4DC,U+B4E4,U+B7EC,U+B7F0,U+B824,U+B85C,U+B97C,U+B9AC-B9AD,U+B9BF,U+B9C1,U+B9CC,U+B9F5,U+BA54,U+BB34,U+BB3C,U+BC29,U+BC38,U+BC95,U+BCF4,U+C0AC,U+C0B4,U+C0C1,U+C0C8-C0C9,U+C11C,U+C120,U+C131,U+C138,U+C218,U+C2A4,U+C2DC,U+C2E4,U+C544,U+C560,U+C5B4,U+C5C5,U+C5C7,U+C5D0,U+C5EC,U+C5F4,U+C640,U+C644,U+C694,U+C6A9,U+C6B4,U+C6CC,U+C6D4,U+C720,U+C73C,U+C744,U+C758,U+C774,U+C778,U+C784,U+C788,U+C791,U+C7A5,U+C800,U+C808,U+C815,U+C870,U+C874,U+C88B,U+C8FC,U+C911,U+C9C4,U+C9D1,U+CC44,U+CC98,U+CD5C,U+CDE8,U+CE68,U+CE78,U+CE90,U+CEE4,U+CEF5,U+D0ED,U+D130,U+D15C,U+D310,U+D398,U+D3B8,U+D45C,U+D50C,U+D558,U+D55C,U+D560,U+D569,U+D574,U+D5A5,U+D615,U+D648-D649,U+D654}:root{--pm-font: "Pairmap Sans", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;--pm-ink: #282722;--pm-muted: #665f61;--pm-line: #e5e0de;--pm-surface: #fff;--pm-canvas: #f8f7f5;--pm-accent: #a8385b;--pm-accent-soft: #f9edf1}:root{font-family:var(--pm-font,"Pretendard","Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif);font-size:14px;line-height:1.5;color:var(--ink);background:var(--surface);font-synthesis:none;--pink:#ff688b;--pink-strong:var(--pm-accent,#a8385b);--pink-ink:#8d3050;--soft:var(--pm-accent-soft,#f9edf1);--border:var(--pm-line,#e5e0de);--muted:var(--pm-muted,#665f61);--ink:var(--pm-ink,#282722);--surface:var(--pm-canvas,#f8f7f5)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,summary{min-height:44px;cursor:pointer}button{color:inherit;border:0;background:none}button:disabled{cursor:not-allowed;opacity:.45}button,input,select,summary,textarea{outline-offset:3px}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible,[role=button]:focus-visible{outline:3px solid #a84568}input::placeholder,textarea::placeholder{color:#707078;opacity:1}a{color:inherit;text-decoration:none}[hidden]{display:none!important}svg{vertical-align:middle}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.header{min-height:96px;max-width:1480px;margin:auto;padding:18px 40px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;flex-direction:column;gap:5px;min-width:0}.pair-from-relation{width:100%;margin-top:12px;border-color:#d7bcc6;color:#9b3252;font-weight:600}.workspace-recovery{font-size:12px}.brand strong{font-family:inherit;font-style:normal;font-weight:650;font-size:31px;letter-spacing:-.6px;color:var(--ink);line-height:1.2}.brand span{font-size:12px;line-height:1.6;color:var(--muted)}.header-end{display:flex;align-items:center;gap:16px;font-size:14px;flex:none}#save-status{font-size:12px;line-height:1.5;color:var(--muted)}#save-status:empty{display:none}#save-status.failed{color:#9d304d;cursor:pointer}#file-menu,#export-menu,#layout-menu{position:relative}summary{list-style:none;font-weight:600;padding:10px 14px;border:1px solid var(--border);border-radius:8px;background:#fff;font-size:14px}summary::-webkit-details-marker{display:none}summary span{margin-left:10px}.file-options,.export-options,.insert-options{position:absolute;right:0;top:calc(100% + 8px);background:#fff;border:1px solid var(--border);border-radius:8px;padding:6px;width:230px;z-index:70;box-shadow:0 4px 12px #00000014}.file-options button,.export-options button,.insert-options button{display:flex;align-items:center;gap:10px;text-align:left;width:100%;min-height:44px;padding:10px 12px;border-radius:6px;font-size:14px;font-weight:500}.file-options button:hover:not(:disabled),.export-options button:hover:not(:disabled),.insert-options button:hover:not(:disabled){background:var(--soft)}.file-options{z-index:90}.export-options{width:280px;z-index:90}.export-options button{justify-content:flex-start;align-items:flex-start;gap:12px}.export-options button>span:not(.export-format){display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.export-options strong{font-size:14px;font-weight:650;line-height:1.5}.export-options small{font-size:12px;line-height:1.5;color:var(--muted)}.export-format{min-width:42px;margin-top:2px;text-align:center;font-size:12px;font-weight:650;color:var(--muted);background:#f6f6f7;padding:3px 6px;border-radius:4px;flex:none}hr{border:0;border-top:1px solid var(--border);margin:6px 0}main{max-width:1480px;margin:auto;padding:12px 40px 24px}.eyebrow{font-size:12px;letter-spacing:1px;color:#626268;font-weight:650;margin:0 0 8px}h1{font-size:22px;line-height:1.35;letter-spacing:-.5px;font-weight:650;margin:0}h2{font-size:20px;line-height:1.4;letter-spacing:-.4px;margin:0}.local-note{font-size:12px;color:var(--muted);margin:0;display:flex;align-items:center;gap:7px}.status-dot{width:6px;height:6px;background:#b75d79;border-radius:50%}.editor{border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:none;overflow:hidden}@supports (overflow:clip){.editor{overflow:clip}}.document-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;justify-self:end;min-width:0;position:relative}#export-menu>summary{display:flex;align-items:center;justify-content:center;gap:6px;background:var(--ink);color:#fff;border-color:var(--ink);white-space:nowrap}#export-menu>summary:hover{background:#45413f}#export-menu>summary span{margin-left:4px}.document-actions #share-template{color:var(--ink);background:#fff;border-color:#c9c9d0}.document-actions #share-template:hover{background:var(--surface);border-color:#93939d}#export-png{background:transparent;color:inherit;border:0;box-shadow:none}#export-png:hover:not(:disabled){background:var(--soft);color:inherit}.toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:8px 16px;border-bottom:1px solid var(--border);gap:8px;background:#f6f6f7}.toolbar-group{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}.toolbar-end{margin-left:auto;flex:none;gap:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;min-height:44px;border:1px solid var(--border);border-radius:8px;background:var(--pm-surface,#fff);font-size:14px;line-height:1.4;font-weight:600;white-space:nowrap;transition:background .15s,border-color .15s}.button:hover:not(:disabled){background:var(--surface);border-color:#baafb1}.button.primary{background:var(--pink-strong);color:#fff;border-color:var(--pink-strong)}.button.primary:hover:not(:disabled){background:#8d2e4d;border-color:#8d2e4d}.button.active{background:var(--soft);color:var(--pink-ink);border-color:#bc8194}.button svg,.icon-button svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;width:44px;height:44px;border-radius:8px;font-size:24px;line-height:1}.icon-button:hover:not(:disabled){background:var(--soft)}.toolbar #add-images{background:var(--pink-strong);border-color:var(--pink-strong);color:#fff}.toolbar #add-images:hover:not(:disabled){background:#a92e50;border-color:#a92e50}.photo-button{min-height:44px;padding:8px 12px;gap:8px}.photo-button svg{width:22px;height:22px}.photo-button-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.35;text-align:left}.photo-button-copy strong{font-size:14px;font-weight:700}.photo-button-copy small{font-size:12px;font-weight:500;color:inherit;white-space:nowrap}.insert-options{left:0;right:auto;width:170px}#layout-menu>summary{border-color:#c9c9d0;color:var(--ink);background:#fff;min-height:44px}#layout-menu summary span{margin-left:10px}.layout-options{position:absolute;top:calc(100% + 8px);left:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:308px;padding:8px;gap:4px;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 4px 12px #00000014;z-index:55}.layout-options button{display:flex;gap:10px;align-items:center;padding:10px;border-radius:7px;font-size:14px;font-weight:550;text-align:left;min-height:48px}.layout-options button:hover:not(:disabled){background:#f6f6f7}.layout-options svg{width:29px;height:29px;flex:none;color:var(--ink)!important}.choice-field{display:flex;flex-direction:column;align-items:flex-start;gap:7px;font-size:14px;font-weight:600;color:#414147;min-width:0}.visual-choices{display:flex;flex-wrap:wrap;gap:6px;align-items:stretch;max-width:100%}.visual-choices button{display:flex;align-items:center;justify-content:center;gap:4px;min-width:64px;min-height:44px;margin:0;padding:8px;border:1px solid #dcdce1;border-radius:7px;background:#fff;color:#414147;font-size:14px;font-weight:600;line-height:1.4}.visual-choices button:hover:not(:disabled){background:#f6f6f7;border-color:#8d8d95}.visual-choices button[aria-pressed=true]{border-color:#a83e62;box-shadow:inset 0 0 0 1px #a83e62;background:#fff0f4;color:#8d2d50;font-weight:700}.visual-choices svg{display:block;width:50px;height:18px;flex:none}.direction-choices button{flex-direction:column;min-width:76px;min-height:58px;padding:7px 8px}.direction-choices button span{font-size:14px;white-space:nowrap}.stroke-choices button{min-width:68px}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr)280px;align-items:stretch}.canvas-column{min-width:0}.canvas-scroll{position:relative;overflow:auto;min-height:510px;background:#fff;scrollbar-color:#dcdce1 transparent;overscroll-behavior:contain}#canvas{display:block;width:100%;height:auto;min-width:640px;min-height:510px;user-select:none;-webkit-tap-highlight-color:transparent;font-family:Pretendard,Noto Sans KR,Apple SD Gothic Neo,Malgun Gothic,sans-serif;color:#303035}#add-slot{cursor:pointer;color:#626268}#add-slot circle{fill:#fff;stroke:#8d8d95;stroke-width:1.5;stroke-dasharray:6 5;transition:fill .2s}#add-slot:hover circle{fill:#fff0f4;stroke:var(--pink-strong)}#add-slot path{fill:none;stroke:#414147;stroke-width:2;stroke-linecap:round}#add-slot text{fill:var(--muted);font-size:14px}#add-slot:focus,.character:focus{outline:none}#add-slot:focus-visible circle,.character:focus-visible .portrait-ring{stroke:#a83e62;stroke-width:4}.character{cursor:grab;touch-action:none}.character:active{cursor:grabbing}.portrait-ring{stroke:#dcdce1;stroke-width:2;fill:#f6f6f7}.character.selected .portrait-ring{stroke:#bd365b;stroke-width:3}.character.source .portrait-ring{stroke:#bd365b;stroke-width:4;stroke-dasharray:5 3}.character.connection-target .portrait-ring{stroke:var(--pink-strong);stroke-width:4}.character-connector{opacity:0;visibility:hidden;pointer-events:none;touch-action:none;cursor:crosshair}.character.selected .character-connector,.character.connector-visible .character-connector,.character-connector.connector-visible{opacity:1;visibility:visible;pointer-events:auto}.character-connector circle:not([fill=transparent]):not(.connector-hit){fill:#fff;stroke:var(--pink-strong);stroke-width:1.5;vector-effect:non-scaling-stroke}.character-connector .connector-hit{fill:transparent;stroke:none}.character-connector path{fill:none;stroke:var(--pink-strong);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;pointer-events:none}#connection-preview{pointer-events:none}@media(hover:hover){.character:hover .character-connector{opacity:1;visibility:visible;pointer-events:auto}}.character-name{font-size:14px;fill:#414147;font-weight:600;pointer-events:auto;cursor:grab}.photo-add{font-size:14px;fill:#626268;cursor:pointer}.empty-person{stroke:#8d8d95;stroke-width:1.6;fill:none}.relation{cursor:pointer}.relation.visible{pointer-events:none}.relation-hit{fill:none;stroke:transparent;stroke-width:16;vector-effect:non-scaling-stroke;cursor:grab}.relation-hit:active,.curve-handle:active{cursor:grabbing}.relation-label{font-size:14px;fill:#414147;paint-order:stroke;stroke:#fff;stroke-width:5;stroke-linejoin:round;pointer-events:none}.relation-group,.relation-hit{touch-action:none}.curve-handle{fill:#fff;stroke:#bd365b;stroke-width:2;cursor:grab;touch-action:none;vector-effect:non-scaling-stroke}.line-text-button{cursor:text}.line-text-button rect{fill:#fff0f4;stroke:#bb7088;stroke-width:1}.line-text-button text{font-size:14px;fill:#8d2d50;font-weight:600;pointer-events:none}.editor-sidebar{border-left:1px solid var(--border);background:var(--surface);min-width:0}.legend{padding:22px 18px;display:block;border-bottom:1px solid var(--border)}.sidebar-heading{display:block;margin:0;padding:0 0 12px;border-bottom:1px solid var(--border);font-family:inherit;font-size:18px;font-weight:700;line-height:1.4;letter-spacing:-.2px;color:var(--ink)}.sidebar-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:32px;padding:0;border:0;border-radius:6px;background:transparent;font:inherit;letter-spacing:inherit;color:inherit;text-align:left}.sidebar-toggle:disabled{opacity:1;cursor:default}.sidebar-title{min-width:0;font:inherit;color:inherit;white-space:nowrap}.sidebar-toggle>svg:not(.sidebar-chevron){width:20px;height:20px;flex:none;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.sidebar-count{display:inline-block;min-width:24px;padding:2px 7px;border-radius:20px;background:#edeae7;color:var(--muted);font-size:12px;font-weight:650;line-height:1.5;letter-spacing:0;text-align:center;flex:none}.sidebar-chevron{display:none;width:20px;height:20px;flex:none;margin-left:auto;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}.sidebar-content{min-width:0;padding-top:16px}#type-list{display:flex;flex-direction:column;gap:3px;width:100%;border:1px solid var(--border);border-radius:9px;padding:5px;background:#fff}#type-list:empty{display:none}.type-item{display:flex;align-items:center;border-radius:6px;max-width:100%}.type-item.active{background:#fff0f4}.type-chip{font-size:14px;font-weight:550;min-height:44px;padding:9px 8px;display:flex;align-items:center;gap:10px;min-width:0;flex:1;text-align:left}.type-chip span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.type-dot{display:inline-block;width:25px;height:3px;border-radius:2px;flex:none}.edit-type,.remove-type,.person-delete{flex:0 0 44px;width:44px;height:44px;padding:12px;display:flex;align-items:center;justify-content:center;border-radius:6px;color:var(--muted)}.edit-type:hover{color:#9c3658}.edit-type svg,.remove-type svg,.person-delete svg,.person-edit svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.remove-type:hover,.person-delete:hover{color:#9d304d;background:#fff0f4}.text-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:14px;font-weight:550;padding:9px 10px;color:var(--ink);white-space:nowrap}.text-button:hover{color:#222226;background:var(--surface)}#add-type{width:100%;min-height:44px;margin-top:12px;border:1px solid var(--border);border-radius:7px;padding:9px 12px;background:#fff;font-size:14px;font-weight:600;color:var(--ink)}#type-list:empty+#add-type{margin-top:0}.people-section{padding:22px 18px}#people-list{max-height:360px;overflow:auto;scrollbar-width:thin}.person-row{display:flex;align-items:center;border-bottom:1px solid #e8e8ec;gap:4px;padding:3px 0}.person-row:last-child{border:0}.person-row.active,.person-row.selected{background:#fff0f4;border-radius:7px}.person-row.source{outline:1px dashed #b45c79;outline-offset:-1px}.person-select{display:flex;align-items:center;gap:10px;min-width:0;min-height:48px;flex:1;text-align:left;padding:6px}.person-avatar{width:36px;height:36px;flex:none;display:flex;border-radius:50%;background:#f6f6f7;overflow:hidden}.person-avatar svg{width:100%;height:100%}.person-avatar svg>circle:first-child{fill:#f6f6f7;stroke:#dcdce1}.person-avatar svg>path{stroke:#8d8d95}.person-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:550;color:#414147}.person-edit{color:var(--muted);flex:none}.people-empty{font-size:14px;line-height:1.8;color:var(--muted);margin:4px 0}.bottom-note{text-align:center;font-size:12px;color:var(--muted);margin:14px 0}.bottom-note button{padding:8px 3px;font-size:14px;text-decoration:underline;text-underline-offset:3px;color:var(--ink)}.connection-bar{position:relative;z-index:20;display:flex;flex-direction:column;gap:4px;padding:10px 16px;background:var(--surface);color:var(--ink);border-bottom:1px solid var(--border);font-size:14px;font-weight:550}.connection-main{display:flex;align-items:center;gap:8px;min-width:0;min-height:44px}.connection-main .button{min-height:44px;white-space:nowrap}.connection-type{display:block;flex:1;min-width:0;max-width:260px}.connection-bar select{width:100%;min-width:0;min-height:44px;background:#fff;color:#414147;border:1px solid var(--border);border-radius:7px;padding:9px;font-size:14px}.connection-status{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:44px}#connection-hint{flex:1;min-width:0;font-size:14px;line-height:1.4;overflow-wrap:anywhere}.connection-status .text-button{flex:none;min-width:44px;min-height:44px}#canvas-connect{display:none}#connection-settings{position:relative;flex:none}#connection-settings>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px 10px}#connection-settings[open]>summary{border-color:#8d8d95;background:#fff}.connection-settings-content{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:min(290px,calc(100vw - 44px));padding:12px;border:1px solid var(--border);border-radius:8px;background:#fff;box-shadow:0 4px 12px #00000014}.connection-settings-content>label{display:flex;align-items:center;gap:10px;font-size:14px}.connection-settings-content>label select{flex:1}.connection-settings-content .choice-field{margin-top:12px}.connection-settings-content .visual-choices{width:100%}.connection-settings-content .direction-choices button{flex:1;min-width:0}#canvas.drawing-connection .relation-group{pointer-events:none}#canvas.connecting .character-connector{visibility:hidden;pointer-events:none}.selection-panel{position:fixed;z-index:50;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 4px 16px #00000014;padding:14px;width:320px;max-height:calc(100dvh - 110px);overflow:auto;overscroll-behavior:contain}.selection-panel input,.selection-panel select{width:100%;min-height:44px;font-size:16px;font-weight:400;line-height:1.5;border:1px solid #dcdce1;border-radius:7px;padding:10px;color:#414147;background:#fff}.selection-panel .selection-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 16px;padding-bottom:8px;border-bottom:1px solid var(--border);font-family:inherit;font-size:18px;font-weight:700;line-height:1.4;color:var(--ink)}.selection-panel .selection-title h2{margin:0;font-family:inherit;font-size:18px;font-weight:700;line-height:1.4;letter-spacing:-.2px;color:inherit}.selection-panel .selection-title button{min-width:44px;width:44px;height:44px;font-size:24px;padding:0;border-radius:7px;color:#414147}.selection-panel .selection-title button:hover{background:#f6f6f7}.selection-content{min-width:0}.selection-actions{display:flex;gap:6px;margin-top:10px}.selection-actions button{min-width:0;min-height:44px;font-size:14px;font-weight:550;padding:9px 8px;flex:1;border-radius:7px;background:#f6f6f7;color:#414147}.selection-actions button.danger{color:#96304d;background:#fff0f4}.selection-panel label{display:block;font-size:14px;font-weight:600;color:#626268;margin-top:10px}.selection-panel label input,.selection-panel label select{margin-top:6px}.selection-panel .choice-field{display:flex;margin-top:12px}.selection-panel .visual-choices{width:100%}.selection-panel .choice-field .visual-choices{margin-top:0}.selection-panel .visual-choices button{flex:1}.selection-panel .direction-choices button{min-width:76px}.line-details{display:grid;grid-template-columns:1fr 1fr;gap:10px}.curve-help{font-size:12px;line-height:1.7;color:var(--muted);margin:8px 0 0}.edge-text-field{color:#626268!important}.edge-text-field input{border-color:#dcdce1}.danger{color:#96304d}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%);background:#414147;color:#fff;border-radius:8px;padding:14px 20px;box-shadow:none;font-size:14px;z-index:100;max-width:min(600px,90vw);line-height:1.6;pointer-events:none}.toast.error{background:#8f344f}#drop-guide{position:sticky;bottom:15px;margin:0 20px 15px;background:#fff0f6f5;border:2px dashed #ad5d7a;padding:22px;border-radius:10px;text-align:center;color:#626268;pointer-events:none;font-size:14px}.canvas-scroll.drag-over{background-color:#fff7fa}dialog{border:1px solid var(--border);border-radius:12px;padding:0;color:inherit;width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 32px);box-shadow:0 8px 32px #00000014;overflow:auto}dialog::backdrop{background:#00000040}.dialog-content{padding:24px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-heading h2{font-size:20px}#connection-people-dialog{overflow:hidden}#connection-people-dialog>.dialog-content{display:flex;flex-direction:column;gap:12px;max-height:calc(100dvh - 34px)}#connection-people-dialog .dialog-heading{flex:none;min-width:0}#connection-people-dialog .dialog-heading h2{min-width:0;font-weight:700}#connection-people-dialog .dialog-heading button{flex:none;min-width:44px;min-height:44px}#connection-people-hint{flex:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;margin:0;font-size:14px;line-height:1.5;color:var(--muted)}#connection-people-search{flex:none;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:7px;background:#fff;color:var(--ink);font-size:16px;line-height:1.5}#connection-people-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px;min-height:0;max-height:50dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px}.connection-person{display:flex;align-items:center;gap:8px;min-width:0;min-height:60px;padding:8px;border:1px solid var(--border);border-radius:8px;background:#fff;text-align:left;font-size:14px;line-height:1.5}.connection-person:hover{background:var(--surface)}.connection-person[aria-pressed=true]{border-color:var(--pink-strong);box-shadow:inset 0 0 0 1px var(--pink-strong);background:var(--soft);color:var(--pink-ink)}.connection-person:focus-visible{outline:2px solid var(--pink-strong);outline-offset:-2px}.connection-person .person-avatar{width:36px;height:36px}.connection-person>.text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-width:0;font-weight:550}.muted{font-size:14px;line-height:1.8;color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;margin-top:22px}.spacer{flex:1}.wrap{flex-wrap:wrap}.field{display:block;font-size:14px;font-weight:550;margin-top:20px;color:#626268}.field>input{display:block;width:100%;min-height:44px;font-size:14px;border:1px solid #dcdce1;border-radius:7px;padding:10px;margin-top:8px;color:#414147}.color-row{display:flex;align-items:center;gap:14px;margin-top:12px}.color-row input{width:44px;min-width:44px;height:44px;border:1px solid #dcdce1;border-radius:7px;padding:3px;background:#fff}#color-presets{display:grid;grid-template-columns:repeat(4,44px);gap:8px;min-width:0}#color-presets button{width:44px;min-width:44px;height:44px;border-radius:50%;border:5px solid white;box-shadow:0 0 0 1px #dcdce1}#color-presets button[aria-pressed=true]{box-shadow:0 0 0 2px #303035}#crop-stage{position:relative;width:100%;aspect-ratio:1;background:#e8e8ec;overflow:hidden;touch-action:none;cursor:grab;border-radius:10px}#crop-stage:active{cursor:grabbing}#crop-image{position:absolute;pointer-events:none;max-width:none;user-select:none}.crop-mask{position:absolute;inset:0;background:radial-gradient(circle closest-side at center,transparent 79.5%,#22222688 80%);pointer-events:none}.crop-ring{position:absolute;width:80%;height:80%;border:2px solid #fff;border-radius:50%;left:10%;top:10%;pointer-events:none}.crop-zoom{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:14px}.crop-zoom span{font-size:12px;color:var(--muted);font-weight:550}.crop-zoom button{border:1px solid #dcdce1;font-size:24px}.help-steps{padding-left:24px;margin:24px 0}.help-steps li{padding-left:6px;margin:18px 0;font-size:14px;color:#626268}.help-steps p{font-size:14px;line-height:1.8;font-weight:400;color:var(--muted)}.help-steps li::marker{color:#9c3658;font-size:14px}.dialog-error{color:#91374f;font-size:14px;line-height:1.7;background:#fff0f6;padding:12px;border-radius:8px}.template-option{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;line-height:1.7}.template-option input{width:20px;height:20px;accent-color:#bd365b;flex:none}.shared-copy-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px;padding:12px 16px;border:1px solid #dcdce1;border-radius:8px;background:#f6f6f7;font-size:14px;line-height:1.7;color:#626268}.shared-copy-banner.failed{color:#96304d}.shared-copy-banner .text-button{flex:none;text-decoration:underline;text-underline-offset:3px}#share-result .field{margin-top:14px}#share-url{font-size:14px;color:#414147;background:#fff;min-width:0}#copy-share-link{margin-top:10px;width:100%}#share-providers{display:flex;justify-content:center;gap:12px;margin-top:12px}#share-providers[hidden]{display:none}#share-providers .button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:12px}#share-providers svg{width:23px;height:23px}#share-providers #share-x{background:#101014;color:#fff}#share-providers #share-kakao{background:#fee500;color:#191919}#share-providers #share-naver{background:#03c75a;color:#fff}#share-naver-options:not([hidden]){display:flex;justify-content:center;gap:8px;margin-top:8px}#share-feedback{color:#626268;margin-bottom:0}#share-progress{margin-top:18px}#share-progress-label{margin:0 0 8px;font-size:14px;font-variant-numeric:tabular-nums}#share-progress-meter{display:block;width:100%;height:8px;accent-color:var(--pink-strong)}#png-dialog{width:min(720px,calc(100vw - 24px))}#png-dialog .dialog-content{display:flex;flex-direction:column;max-height:calc(100dvh - 26px);gap:12px}#png-dialog .dialog-heading,#png-dialog .dialog-actions{flex:none}#png-dialog .dialog-actions{margin:0}.png-preview-frame{min-height:80px;overflow:auto;background:#f0f0f3;border:1px solid var(--border);border-radius:6px;text-align:center}#png-preview{display:block;width:100%;height:auto;touch-action:auto;-webkit-touch-callout:default;user-select:auto}#png-details{flex:none;font-size:12px;font-variant-numeric:tabular-nums;margin:0}#png-download{display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none}#import-status{margin:0 0 12px;padding:12px 16px;border:1px solid var(--border);border-radius:9px;background:#f7f7f8;color:var(--ink)}.import-progress-row{display:flex;align-items:center;justify-content:space-between;gap:12px}#import-message{min-width:0;flex:1;font-size:14px;font-weight:550;line-height:1.6;overflow-wrap:anywhere}#import-cancel{min-height:44px;padding:9px 12px;border:1px solid #c9c9d0;border-radius:6px;background:#fff;font-size:14px;flex:none}#import-cancel:hover{background:#ededf0}#import-dismiss{width:44px;min-width:44px;height:44px;font-size:24px;line-height:1;color:var(--muted);border-radius:6px;flex:none}#import-dismiss:hover{background:#ededf0}#import-progress{display:block;appearance:none;width:100%;height:6px;border:0;border-radius:10px;overflow:hidden;margin:10px 0 4px;background:#e2e2e7;color:var(--pink-strong)}#import-progress::-webkit-progress-bar{background:#e2e2e7;border-radius:10px}#import-progress::-webkit-progress-value{background:var(--pink-strong);border-radius:10px}#import-progress::-moz-progress-bar{background:var(--pink-strong);border-radius:10px}#import-failures{margin-top:8px}#import-failures>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 0;border:0;border-radius:0;background:transparent;font-size:14px;color:var(--ink)}#import-failures>summary:before{content:"▸";font-size:14px;display:inline-block}#import-failures[open]>summary:before{transform:rotate(90deg)}#import-failure-list{max-height:160px;overflow:auto;overflow-wrap:anywhere;padding-left:20px;margin:4px 0 0;font-size:14px;line-height:1.7;color:var(--muted)}#import-failure-list li{margin:6px 0}button,summary,[role=button]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}@media(pointer:coarse){.relation-group,.relation-hit{touch-action:pan-x pan-y}.relation-group.selected,.relation-group.selected .relation-hit,#canvas.line-tool .relation-group,#canvas.line-tool .relation-hit{touch-action:none}}@media(max-width:1050px){.header{padding:18px 24px}main{padding:10px 24px 22px}.workspace-grid{grid-template-columns:minmax(0,1fr)240px}.document-actions{gap:6px}.document-actions .button,#export-menu>summary{padding-inline:10px}.toolbar .button{padding-inline:10px}.legend,.people-section{padding:20px 14px}.local-note{display:none}}@media(max-width:900px){.document-actions{justify-self:end}}@media(max-width:760px){.workspace-grid{display:block}.editor-sidebar{border-left:0;border-top:1px solid var(--border);display:grid;grid-template-columns:1fr 1fr;align-items:start}.legend{border-bottom:0;border-right:1px solid var(--border);align-content:start}.sidebar-toggle{min-height:52px;padding:5px 0}.sidebar-toggle:not(:disabled){cursor:pointer}.sidebar-toggle:not(:disabled):hover{background:#ededf0}.sidebar-chevron{display:block}.sidebar-toggle[aria-expanded=false] .sidebar-chevron{transform:rotate(-90deg)}.sidebar-heading:has(.sidebar-toggle[aria-expanded=false]){padding-bottom:0;border-bottom:0}.legend:has(.sidebar-toggle[aria-expanded=false]),.people-section:has(.sidebar-toggle[aria-expanded=false]){padding-top:10px;padding-bottom:10px}#people-list{max-height:260px}.canvas-scroll,#canvas{min-height:440px}.selection-panel{max-width:calc(100vw - 24px)}}@media(max-width:580px){.color-row{gap:10px;align-items:flex-start}#color-presets{gap:6px}.header{min-height:64px;padding:10px 16px;gap:12px;align-items:center}.brand strong{font-size:25px}.brand span{display:none}.header-end{gap:6px;flex-direction:column;align-items:flex-end}#save-status{font-size:12px;max-width:110px;text-align:right}#file-menu>summary{padding:9px 12px;font-size:14px}.file-options{width:220px}main{padding:8px 10px 18px}.editor{border-radius:12px}.document-actions{display:flex;gap:4px;justify-self:end;width:auto}#export-menu{position:static}.document-actions .button,#export-menu>summary{font-size:14px;min-height:44px;padding-inline:8px}.document-actions #share-template{min-width:44px;width:44px;padding:10px}.document-actions #share-template>span{display:none}.export-options{left:auto;right:0;width:min(280px,calc(100vw - 48px))}.toolbar{padding:6px 8px;gap:4px}.toolbar-group{gap:6px;flex-wrap:nowrap}.toolbar>.toolbar-group:not(.toolbar-end){width:100%}.toolbar .button{font-size:14px;min-height:44px;padding:8px;gap:5px}.toolbar .photo-button{min-height:44px;padding:8px;gap:6px}.toolbar>.toolbar-end{position:static;justify-content:space-between;width:100%;margin:0}.layout-options{left:0;width:min(308px,calc(100vw - 48px))}.layout-options button{font-size:14px;min-height:48px;padding:10px 8px;gap:8px}.connection-bar{padding:8px 10px;gap:4px}.connection-main{gap:6px;flex-wrap:nowrap}.connection-main .button{padding:9px 8px;gap:5px}.connection-type{max-width:none}.connection-bar select{font-size:16px;padding:9px 6px}#canvas-connect{display:inline-flex;flex:none}#canvas-connect[aria-pressed=true],#canvas-connect.active{background:var(--soft);border-color:var(--pink-strong);color:var(--pink-ink)}#connect,#finish-connect{display:none}.connection-status{gap:6px}#connection-hint{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.connection-status .text-button{padding-inline:6px}.canvas-scroll,#canvas{min-height:430px}#canvas{min-width:640px}.editor-sidebar{display:block}.legend{border-right:0;border-bottom:1px solid var(--border);padding:14px 18px 18px}.people-section{padding:14px 18px 18px}#type-list{max-height:250px;overflow:auto}.bottom-note{font-size:12px}.selection-panel{position:fixed!important;top:auto!important;bottom:12px;left:12px!important;display:flex;flex-direction:column;width:calc(100vw - 24px);max-width:none;max-height:min(max(260px,45dvh),calc(100dvh - 100px));padding:12px;overflow:hidden;box-shadow:0 4px 16px #00000014}.selection-panel .selection-title{flex:none;margin-bottom:10px}.selection-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px 2px;scroll-padding-block:8px}.selection-content>label:first-child,.selection-content>.choice-field:first-child{margin-top:0}.selection-panel input,.selection-panel select{font-size:16px}.selection-actions button{min-height:44px;font-size:14px}.dialog-content{padding:20px}.dialog-heading h2{font-size:18px}.field>input,#share-url{font-size:16px}.toast{bottom:12px;width:max-content;font-size:14px}.selection-panel:not([hidden])~.toast{bottom:auto;top:94px}.shared-copy-banner{align-items:flex-start;flex-wrap:wrap;padding:12px;font-size:14px;gap:6px}.shared-copy-banner .text-button{margin-left:auto}#import-status{padding:10px 12px;margin-bottom:10px}.import-progress-row{gap:8px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}.toolbar{flex-wrap:nowrap;position:relative;z-index:30}.layout-popover{position:absolute;top:calc(100% + 8px);left:0;width:min(308px,calc(100vw - 40px));padding:8px;border:1px solid var(--border);border-radius:8px;background:#fff;z-index:55;box-shadow:0 4px 12px #00000014}.layout-options{position:static;width:auto;padding:0;border:0;box-shadow:none}.spacing-control{display:flex;align-items:center;gap:6px;padding-top:8px;margin-top:8px;border-top:1px solid var(--border)}.spacing-control>span{font-weight:650;margin-right:auto}.spacing-control button{min-height:44px;padding:8px;border:1px solid var(--border);border-radius:6px;font-size:13px}.connection-bar{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;background:#fff}.connection-main{gap:6px;flex:1;min-width:280px}#canvas-connect{display:inline-flex;min-width:92px;flex:none}#canvas-connect[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}.connection-type{max-width:180px;flex:1}.connection-shapes{display:flex;align-items:center;gap:12px;min-width:0}.visual-choices{flex-wrap:nowrap;gap:3px}.visual-choices button{min-width:44px;min-height:44px;padding:6px;border-radius:5px;font-size:12px}.visual-choices svg{width:34px;height:18px}.direction-choices button,.stroke-choices button,.width-choices button{min-width:44px;min-height:44px;padding:6px}.route-choices button{flex-direction:column;gap:2px;padding:4px 8px;min-width:48px}.route-choices svg{height:18px;width:32px}.route-choices span{font-size:11px;line-height:1.3;white-space:nowrap}.visual-choices button[aria-pressed=true]{background:#303035;border-color:#303035;color:#fff;box-shadow:none}#connection-direction{border-left:1px solid var(--border);padding-left:10px}#connection-settings>summary{gap:5px;padding-inline:8px;font-size:12px}#connection-settings>summary span{margin:0}#line-style-preview svg{width:28px;height:16px}.connection-settings-content .choice-field:first-child{margin-top:0}.connection-settings-content .visual-choices button{flex:1}.connection-status{flex-wrap:wrap;min-height:0;border-top:1px solid var(--border);padding-top:8px;margin-top:10px}#connection-hint{flex-basis:100%;font-size:12px}.connection-status .text-button{font-size:13px}.character-connector .connector-disc{fill:#fff;stroke:var(--pink-strong);stroke-width:1.4}.character-connector .connector-caption{fill:var(--pink-ink);font-size:13px;font-weight:650;pointer-events:none}.character-connector:hover .connector-disc,.character-connector:focus .connector-disc{fill:var(--soft)}.selection-panel{width:350px}.selection-panel .selection-title{margin-bottom:10px;padding-bottom:4px}.selection-panel .edge-label-row{display:flex;align-items:center;gap:6px;min-width:0}.edge-label-row>input{min-width:0;flex:1}.label-size-stepper{display:flex;align-items:center;flex:none;border:1px solid var(--border);border-radius:6px}.label-size-stepper button{width:36px;min-width:36px;height:44px;padding:0;font-size:19px}.label-size-stepper output{font-size:12px;min-width:20px;text-align:center;color:var(--muted);font-variant-numeric:tabular-nums}.selection-panel .selection-actions{margin-top:10px}@media(max-width:580px){.toolbar{padding:6px;gap:4px}.toolbar>.toolbar-group:not(.toolbar-end){width:auto;flex:1;gap:4px}.toolbar>.toolbar-end{width:auto;margin-left:auto;flex:none}.toolbar .button,.toolbar summary.button{padding:7px;font-size:13px}.toolbar .photo-button svg{display:none}.toolbar .photo-button-copy strong{font-size:13px}.connection-bar{padding:6px 8px;gap:5px}.connection-main{width:100%;min-width:0;flex:1}.connection-type{max-width:none}.connection-shapes{width:100%;justify-content:space-between;gap:6px}.connection-shapes .route-choices{flex:1}.connection-shapes .route-choices button{flex:1;min-width:0;padding-inline:5px}#connection-direction{padding-left:6px}#connection-direction button{min-width:44px;padding:3px}#connection-direction svg{width:30px}.selection-panel{width:calc(100vw - 24px)}.selection-panel .label-size-stepper button{min-width:40px;width:40px}.connection-status{gap:4px}}.connection-bar{position:sticky;top:0}.connection-bar.editing-line{background:#fff6f8;border-bottom-color:#d8829a}.connection-bar.editing-line #canvas-connect{border-color:var(--pink-strong);color:var(--pink-ink)}.selection-note{margin:8px 0 0;font-size:12px;color:var(--muted)}.connection-settings-content #connection-direction{border:0;padding:0;width:100%}.connection-settings-content #connection-direction button{min-width:44px;flex:1}.tidy-layout{display:flex;align-items:center;gap:12px;width:100%;padding:10px;border-radius:6px;text-align:left;background:#fff0f4;color:var(--pink-ink)}.tidy-layout:hover:not(:disabled){background:#ffe5ed}.tidy-layout>svg{width:28px;height:28px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5}.tidy-layout>span{display:flex;flex-direction:column;gap:3px;min-width:0}.tidy-layout strong{font-size:14px;font-weight:650}.tidy-layout small{font-size:12px;font-weight:400;color:var(--muted)}#layout-presets{margin-top:8px}#layout-presets>summary{display:flex;justify-content:space-between;align-items:center;border:0;font-weight:500;font-size:13px;padding:10px;border-radius:6px}#layout-presets[open]>summary span{transform:rotate(180deg)}#layout-presets>p{margin:0 10px 8px;font-size:12px;color:var(--muted)}.layout-popover{max-height:calc(100dvh - 150px);overflow-y:auto;overscroll-behavior:contain}.toolbar{padding:0 12px;background:#fff;gap:12px}.tool-tabs{display:flex;align-items:stretch;gap:6px;min-width:0}.tool-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:96px;min-height:52px;padding:10px 18px;border-bottom:3px solid transparent;font-size:15px;font-weight:650;color:var(--muted)}.tool-tabs button:hover{background:var(--surface)}.tool-tabs button[aria-selected=true]{color:var(--pink-ink);border-bottom-color:var(--pink-strong);background:var(--soft)}.tool-tabs svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.tool-panel{position:relative;z-index:20;border-bottom:1px solid var(--border);background:#fff}.photo-tools{display:flex;align-items:center;gap:10px;padding:12px 16px;min-height:72px}.photo-tools .insert-options{z-index:60}#open-character-pack:not([hidden])+#add-person{background:var(--pm-surface,#fff);color:var(--ink);border-color:var(--border)}#open-character-pack:not([hidden])+#add-person:hover{background:var(--surface);border-color:#baafb1}.layout-tools{padding:12px 16px}.layout-adjustments{display:flex;align-items:stretch;gap:20px}.layout-adjustments .tidy-layout{width:auto;flex:1;max-width:300px;padding:8px 10px}.layout-adjustments .spacing-control{border:0;margin:0;padding:0;gap:16px;justify-content:flex-start}.spacing-control>div{display:flex;gap:4px}.spacing-control>span{font-size:13px;white-space:nowrap}.layout-presets{margin-top:12px;border-top:1px solid var(--border);padding-top:10px}.layout-presets-heading{display:flex;align-items:center;gap:10px;margin-bottom:6px}.layout-presets-heading h3{margin:0;font-size:13px;font-weight:650}.layout-presets-heading>span{font-size:11px;color:var(--muted)}.layout-tools .layout-options{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;position:static;width:100%;border:0;border-radius:0;padding:0;box-shadow:none}.layout-tools .layout-options button{justify-content:center;min-width:0;min-height:48px;padding:6px;gap:6px;border:1px solid var(--border);border-radius:6px;font-size:13px}.layout-tools .layout-options svg{width:25px;height:25px}.connection-bar{position:relative;gap:10px;padding:10px 12px;min-height:72px}.connection-main{min-width:270px;flex:1;gap:8px}.connection-type{position:relative;max-width:none;min-width:0}.connection-type select{padding-left:50px;padding-right:6px;text-overflow:ellipsis}#type-line-preview{position:absolute;left:7px;top:50%;transform:translateY(-50%);display:flex;align-items:center;pointer-events:none}#type-line-preview svg{width:40px;height:24px}#canvas-connect{min-width:88px;padding:8px;font-size:13px}#connection-settings>summary{min-width:48px;padding:8px 6px;gap:2px}#line-style-preview svg{width:24px}.connection-shapes{gap:10px}.connection-bar .visual-choices{gap:0;border:1px solid #dcdce1;border-radius:7px;background:#f6f6f7;overflow:hidden}.connection-bar .visual-choices button{border:0;border-radius:0;background:transparent}.connection-bar .visual-choices button+button{border-left:1px solid #e3e3e7}.connection-bar .visual-choices button:hover{background:#ececf0}.connection-bar .visual-choices button[aria-pressed=true]{background:#303035;color:#fff}#connection-direction{padding:0;border:1px solid #dcdce1}.connection-settings-content #connection-direction{border:1px solid #dcdce1}.editor-sidebar .people-section{border:0}.canvas-scroll{background:#efedeb}.document-sheet{fill:#fff;stroke:#bec1ca;stroke-width:1;vector-effect:non-scaling-stroke}.legend-edit-layer{cursor:grab;touch-action:none;outline:none}.legend-edit-layer:focus-visible,.legend-resize:focus-visible{outline:none}.legend-edit-layer:active{cursor:grabbing}.legend-edit-layer.frozen{cursor:default;pointer-events:none}.connecting .legend-edit-layer:not(.frozen) .paper-legend-row{cursor:pointer}.legend-row-hit{fill:transparent}.paper-legend-row:focus-visible{outline:none}.paper-legend-row:focus-visible .legend-row-hit{stroke:var(--pink-strong);stroke-width:2;vector-effect:non-scaling-stroke}.legend-move-hit{fill:transparent;stroke:transparent;stroke-width:1;vector-effect:non-scaling-stroke}.legend-edit-layer:not(.frozen):hover .legend-move-hit,.legend-edit-layer.selected .legend-move-hit{stroke:var(--pink-strong);stroke-dasharray:5 4}.legend-edit-layer:focus-visible .legend-move-hit{stroke:var(--pink-strong);stroke-width:2}.legend-resize{display:none;touch-action:none;outline:none}.legend-edit-layer.selected:not(.frozen) .legend-resize{display:block}.legend-resize-nw,.legend-resize-se{cursor:nwse-resize}.legend-resize-ne,.legend-resize-sw{cursor:nesw-resize}.legend-resize-knob{fill:#fff;stroke:var(--pink-strong);stroke-width:1.5}.legend-resize:focus-visible .legend-resize-knob{fill:var(--soft);stroke-width:3}@media(max-width:1100px){.connection-main{flex-basis:100%}.connection-shapes{width:100%;justify-content:space-between}.connection-shapes .route-choices,.connection-shapes .route-choices button{flex:1}.layout-adjustments{gap:12px}.layout-adjustments .spacing-control{gap:6px}.layout-tools .layout-options button{flex-direction:column;gap:2px}}@media(max-width:760px){.editor-sidebar{display:block}.editor-sidebar .legend{border-right:0;border-bottom:0}}@media(max-width:580px){.toolbar{padding:0 6px;gap:4px}.tool-tabs{flex:1;gap:0}.tool-tabs button{min-width:0;flex:1;min-height:48px;padding:8px 6px;gap:5px;font-size:14px}.tool-tabs svg{width:18px;height:18px}.photo-tools{padding:8px 10px;min-height:60px;gap:8px}.photo-tools .button{font-size:14px;padding:8px 12px}.layout-tools{padding:10px}.layout-adjustments{gap:8px}.layout-adjustments .tidy-layout{padding:6px;gap:7px;min-width:0}.tidy-layout>svg{display:none}.tidy-layout strong{font-size:12px}.tidy-layout small{font-size:10px;white-space:nowrap}.layout-adjustments .spacing-control{flex-direction:column;align-items:flex-start;gap:2px;flex:none}.spacing-control>span{font-size:12px}.spacing-control button{padding:6px;font-size:12px;min-width:48px}.layout-presets{margin-top:8px;padding-top:8px}.layout-presets-heading{gap:6px}.layout-presets-heading h3{font-size:12px}.layout-presets-heading>span{font-size:10px}.layout-tools .layout-options{grid-template-columns:repeat(4,minmax(0,1fr))}.layout-tools .layout-options button{flex-direction:column;font-size:12px;padding:3px;min-height:44px;gap:1px}.layout-tools .layout-options svg{width:22px;height:22px}.connection-bar{padding:8px;gap:8px}.connection-main{gap:6px;min-width:0}.connection-shapes{gap:8px}.connection-bar select{font-size:16px}.connection-type select{padding-left:48px}#connection-direction{padding:0}#connection-direction button{min-width:44px}.connection-shapes .route-choices button{padding-inline:3px}}html{height:100%;overflow:hidden}body{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}.header{width:100%;max-width:none;min-height:60px;flex:none;margin:0;padding:6px 20px;gap:16px;background:var(--pm-surface,#fff);border-bottom:1px solid var(--border)}.brand{gap:2px}.brand strong{font-size:27px;line-height:1.2}.brand span{font-size:11px}.header-end{flex-direction:row;align-items:center;gap:12px}main{width:100%;max-width:none;flex:1 1 0;min-height:0;display:flex;flex-direction:column;gap:8px;margin:0;padding:4px 16px 12px}.editor{display:flex;flex-direction:column;flex:1 1 0;min-height:0;border-radius:10px;overflow:visible;box-shadow:0 2px 8px #2d231c0a}.toolbar{padding:0 8px}.tool-tabs button{min-height:44px;padding:7px 16px}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr)248px;grid-template-rows:minmax(0,1fr);flex:1 1 0;min-height:0;min-width:0}.canvas-column{display:flex;flex-direction:column;min-height:0;min-width:0}.canvas-scroll{min-height:0}.photo-tools{min-height:56px;padding:6px 12px}.connection-bar{min-height:56px;padding:6px 10px;gap:6px}.layout-tools{padding:8px 12px}.layout-presets{margin-top:6px;padding-top:6px}.layout-presets-heading{margin-bottom:4px}.layout-tools .layout-options button{min-height:44px}.editor-sidebar{min-height:0;overflow:hidden}.editor-sidebar>section:not([hidden]){display:flex;flex-direction:column;min-height:0;height:100%;padding:10px 12px;border:0}.sidebar-heading{flex:none;padding-bottom:6px;font-size:17px}.sidebar-toggle{min-height:44px}.sidebar-content{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-top:8px}#people-list,#type-list{max-height:none;overflow:visible}.workspace-grid:has(.people-section:not([hidden]) .people-empty){grid-template-columns:minmax(0,1fr)}.editor-sidebar:has(.people-section:not([hidden]) .people-empty){display:none}.bottom-note{display:none}.shared-copy-banner{flex:none;margin:0;padding:6px 12px}.shared-copy-banner:not(.failed){height:44px;align-items:center;flex-wrap:nowrap;gap:8px;padding:0 8px;font-size:12px;line-height:1.4}.shared-copy-banner:not(.failed) #shared-copy-message{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shared-copy-banner:not(.failed) .text-button{align-self:stretch;min-height:0;margin-left:auto;padding:0 8px;font-size:12px}.shared-copy-banner.failed{flex-wrap:wrap;align-items:flex-start}.shared-copy-banner.failed #shared-copy-message{overflow-wrap:anywhere}#import-status{flex:none;max-height:25dvh;overflow:auto;margin:0;padding:6px 12px}.selection-panel{max-height:min(380px,calc(100dvh - 96px))}.selection-content{min-height:0;overscroll-behavior:contain}.connection-settings-content{max-height:clamp(88px,calc(100dvh - 240px),360px);overflow-y:auto;overscroll-behavior:contain}.file-options,.export-options,.insert-options{max-height:calc(100dvh - 128px);overflow-y:auto;overscroll-behavior:contain}dialog{max-height:calc(100dvh - 24px);overscroll-behavior:contain}#crop-dialog{width:min(480px,calc(100vw - 24px))}#crop-dialog .dialog-content{padding:16px}#crop-dialog .dialog-content>.muted{margin-block:10px;font-size:13px}#crop-stage{width:min(100%,max(120px,calc(100dvh - 252px)));margin-inline:auto}#crop-dialog .crop-zoom{margin-top:8px}#crop-dialog .dialog-actions{margin-top:12px}@media(max-width:1100px){.header{padding-inline:16px}main{padding:4px 12px 8px;gap:6px}.workspace-grid,.workspace-grid:has(.people-section:not([hidden]) .people-empty){grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}.editor-sidebar{display:block;max-height:min(232px,28dvh);border-left:0;border-top:1px solid var(--border)}.editor-sidebar>section:not([hidden]){height:auto;max-height:min(232px,28dvh);padding:0 12px 8px}.editor-sidebar>section.is-collapsed:not([hidden]){padding:0 12px}.sidebar-heading{font-size:15px;padding:0;border:0}.sidebar-toggle{min-height:44px;padding:4px 0;gap:8px}.sidebar-toggle:not(:disabled){cursor:pointer}.sidebar-toggle:not(:disabled):hover{background:#ededf0}.sidebar-chevron{display:block}.sidebar-toggle[aria-expanded=false] .sidebar-chevron{transform:rotate(-90deg)}.sidebar-content{padding-top:4px;flex:1 1 auto}.selection-panel{max-height:min(340px,calc(100dvh - 84px))}}@media(max-width:760px){.header{min-height:52px;padding:4px 12px}.brand strong{font-size:25px}.brand span{display:none}.header-end{gap:8px}main{padding:2px 8px 6px;gap:4px}.editor{border-radius:8px}.toolbar{gap:4px;padding-inline:6px}.tool-tabs{gap:0;flex:1}.tool-tabs button{min-width:0;flex:1;padding-inline:8px;font-size:14px}.photo-tools{padding-inline:8px}.layout-tools{padding:6px 8px}.layout-adjustments{gap:8px}.layout-adjustments .tidy-layout{padding:5px 7px;gap:7px}.layout-adjustments .spacing-control{gap:4px}.layout-tools .layout-options button{font-size:12px;padding:4px}.selection-panel{position:fixed!important;top:auto!important;bottom:max(8px,env(safe-area-inset-bottom));left:8px!important;display:flex;flex-direction:column;width:calc(100vw - 16px);max-width:420px;max-height:min(240px,40dvh);padding:10px;overflow:hidden}.selection-panel .selection-title{flex:none;margin-bottom:6px;padding-bottom:3px}.selection-panel .selection-title h2{font-size:17px}.selection-content{overflow-y:auto;scrollbar-width:thin;padding:0 1px 2px}}@media(max-width:580px){.header{padding-inline:8px;gap:8px}.brand strong{font-size:23px}.header-end{gap:6px}#save-status:not(.failed){display:none}#save-status.failed{position:fixed;top:52px;right:8px;z-index:100;max-width:calc(100vw - 16px);padding:6px 10px;border:1px solid #efbdcb;border-radius:6px;background:#fff0f4}#file-menu>summary{padding:8px 10px}main{padding-inline:4px;padding-bottom:max(4px,env(safe-area-inset-bottom))}.tool-tabs button{min-height:44px;padding:6px 4px;font-size:13px}.tool-tabs svg{width:17px;height:17px}.photo-tools{min-height:54px;padding:5px 8px}.photo-tools .button{padding:8px 10px}.connection-bar{padding:5px 6px;gap:5px}.connection-main,.connection-shapes{gap:5px}.layout-adjustments .tidy-layout{padding:5px;gap:4px}.tidy-layout small{font-size:10px}.layout-presets{margin-top:5px;padding-top:5px}.layout-presets-heading{gap:6px;margin-bottom:4px}.layout-tools .layout-options{gap:3px}.layout-tools .layout-options button{min-height:44px;padding:4px;font-size:12px}.editor-sidebar>section:not([hidden]){padding-inline:8px}.editor-sidebar>section.is-collapsed:not([hidden]){padding-inline:8px}.selection-panel{max-width:none}}@media(max-height:760px){.header{min-height:52px;padding-block:4px}.brand span,.layout-adjustments .tidy-layout small{display:none}.layout-adjustments .tidy-layout{min-height:44px}}@media(max-width:580px)and (max-height:620px){.layout-adjustments .spacing-control>span{display:none}.layout-presets-heading>span{display:none}.layout-tools{max-height:34dvh;overflow-y:auto;overscroll-behavior:contain}.editor-sidebar,.editor-sidebar>section:not([hidden]){max-height:24dvh}.selection-panel{max-height:42dvh}}@media(min-width:640px)and (max-height:620px){.header{padding-inline:12px}main{padding:2px 8px 4px}.editor{display:flex;flex-direction:column}.toolbar{padding-inline:4px;min-width:268px}.tool-tabs button{min-width:52px;padding-inline:6px}.tool-tabs svg{display:none}.workspace-grid{grid-column:1/-1;grid-row:2}.document-actions #share-template{width:44px;min-width:44px;padding:10px}.connection-main{flex-basis:auto;min-width:240px}.connection-shapes{width:auto;flex:none;gap:6px}.connection-shapes .route-choices button{min-width:44px;padding-inline:4px}.layout-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);gap:10px;padding:5px 8px}.layout-adjustments{gap:6px}.layout-adjustments .tidy-layout{padding:5px;min-width:0}.layout-adjustments .tidy-layout>svg{display:none}.layout-adjustments .tidy-layout strong{font-size:12px}.layout-adjustments .spacing-control{flex-direction:column;align-items:flex-start;justify-content:center;gap:0}.layout-adjustments .spacing-control>span{font-size:11px}.spacing-control button{padding:5px;font-size:12px}.layout-presets{margin:0;padding:0;border:0}.layout-presets-heading{margin-bottom:2px}.layout-presets-heading>span{display:none}.layout-tools .layout-options{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.layout-tools .layout-options button{flex-direction:column;font-size:10px;padding:2px;gap:0}.layout-tools .layout-options svg{width:18px;height:18px}.selection-panel{width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - 72px)}#crop-dialog{width:min(680px,calc(100vw - 24px))}#crop-dialog .dialog-content{display:grid;grid-template-columns:minmax(0,1fr)210px;gap:8px 16px;padding:12px}#crop-dialog .dialog-heading{grid-column:1/-1}#crop-dialog .dialog-heading h2{font-size:18px}#crop-dialog .eyebrow{margin-bottom:2px}#crop-dialog .dialog-content>.muted{grid-column:2;grid-row:2;margin:0;align-self:end}#crop-stage{grid-column:1;grid-row:2/span 3;width:min(100%,max(120px,calc(100dvh - 104px)));align-self:center}#crop-dialog .crop-zoom{grid-column:2;grid-row:3;margin:0;align-self:center}#crop-dialog .dialog-actions{grid-column:2;grid-row:4;margin:0;align-self:start}}.header{position:relative;z-index:45}.header-end{flex-direction:row;align-items:center;gap:8px}#file-menu>summary{display:flex;align-items:center;justify-content:center;gap:6px}#file-menu>summary>span{margin:0}#file-menu>summary>svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.photo-tools{display:grid;grid-template-columns:repeat(3,max-content);gap:8px;align-items:center}.photo-tools:has(#open-character-pack:not([hidden])){grid-template-columns:repeat(4,max-content)}.photo-tools>.button{min-width:0;padding:8px 12px;gap:6px}.add-chevron{font-size:12px;margin-left:0}.person-add-options{position:fixed;z-index:100;width:244px;max-width:calc(100vw - 16px);padding:6px;border:1px solid var(--border);border-radius:8px;background:#fff;box-shadow:0 4px 12px #00000014}.person-add-options button{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:10px 12px;text-align:left;border-radius:6px;font-size:14px;font-weight:600}.person-add-options button:hover{background:var(--soft)}.person-add-options svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}@media(max-width:1100px){.brand span,#save-status:not(.failed){display:none}}@media(max-width:760px){.header{min-height:52px;gap:8px}.header-end,.document-actions{gap:4px}.brand strong{font-size:23px}#file-menu>summary{width:44px;min-width:44px;min-height:44px;padding:10px}#file-menu .file-label{display:none}#share-template{width:44px;min-width:44px;padding:10px}#share-template>span{display:none}#export-menu{position:relative}#export-menu>summary{padding-inline:8px;font-size:13px}}@media(max-width:580px){.header{padding-inline:6px;gap:4px}.brand{flex:1;overflow:hidden}.brand strong{font-size:20px;white-space:nowrap;letter-spacing:-.5px}.header-end{flex:none}.photo-tools{grid-template-columns:repeat(3,minmax(0,1fr));padding-inline:6px;gap:5px}.photo-tools:has(#open-character-pack:not([hidden])){grid-template-columns:repeat(4,auto)}.photo-tools:has(#open-character-pack:not([hidden])) :is(#insert-text,#insert-logo)>svg{display:none}.photo-tools>.button{font-size:13px;padding:8px 4px;gap:4px;min-height:44px}.photo-tools>.button svg{width:18px;height:18px}}@media(max-width:374px){.brand strong{font-size:18px}.photo-tools:has(#open-character-pack:not([hidden])){gap:3px;padding-inline:3px}.photo-tools:has(#open-character-pack:not([hidden]))>.button{padding-inline:2px}.photo-tools>.button>svg{display:none}.tool-tabs button{font-size:12px}}.tool-tabs button{white-space:nowrap}.header #help{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 8px;border-radius:8px;color:var(--pink-ink);font-weight:650;white-space:nowrap}.header #help:hover,.header #help:focus-visible{background:var(--soft)}.help-mark{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--pink-strong);color:#fff;font-size:17px;line-height:1;font-weight:700}.toolbar{justify-content:flex-start;gap:12px}.canvas-history{display:inline-flex;flex:none;align-items:stretch;border:1px solid var(--border);border-radius:8px;background:var(--surface);margin-block:3px}.canvas-history button,#clear-canvas{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 12px;color:var(--ink);font-size:13px;font-weight:600;line-height:1.1;white-space:nowrap}.canvas-history button:first-child{border-radius:7px 0 0 7px}.canvas-history button+button{border-left:1px solid var(--border);border-radius:0 7px 7px 0}.canvas-history button:disabled{color:#787780;opacity:1}.canvas-history button:hover:not(:disabled),.canvas-history button:focus-visible{background:#e9e8ec}.canvas-history svg,#clear-canvas svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#clear-canvas{border:1px solid #e4cdd4;border-radius:8px;background:#fff;color:#93435c}#clear-canvas:hover:not(:disabled),#clear-canvas:focus-visible{background:var(--soft);color:var(--pink-ink)}@media(max-width:760px){.header #help{padding:0}.help-label{display:none}.toolbar{gap:6px}.tool-tabs{flex:0 1 auto}.tool-tabs button{min-width:50px}.canvas-history button,#clear-canvas{padding-inline:8px}}@media(max-width:520px){.toolbar{padding-inline:4px;gap:4px}.tool-tabs button{min-width:44px;padding-inline:5px}.canvas-history button,#clear-canvas{flex-direction:column;gap:2px;padding-inline:4px;font-size:11px}.canvas-history svg,#clear-canvas svg{width:17px;height:17px}#clear-canvas{min-width:62px}}@media(max-width:350px){.tool-tabs button{flex-direction:column;gap:2px;font-size:11px;line-height:1.1}.canvas-history button{padding-inline:2px}}#add-first-type{flex:1;justify-content:flex-start}.line-scope{font-size:12px;color:var(--muted);white-space:nowrap;padding-inline:2px}.connection-main #canvas-connect{flex:none;min-width:36px;width:36px;padding:0}.type-chip>svg{width:28px;height:22px;flex:none}#type-dialog{width:min(560px,calc(100vw - 24px))}#type-dialog .dialog-content{padding:20px}#type-dialog .field{margin-bottom:14px}#type-dialog .dialog-heading{margin-bottom:16px}.type-defaults{border-top:1px solid var(--border);margin-top:4px}.type-defaults>summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:14px;font-weight:600;list-style:none}.type-defaults>summary::-webkit-details-marker{display:none}.type-defaults>summary:after{content:"⌄";font-size:18px;color:var(--muted)}.type-defaults[open]>summary:after{transform:rotate(180deg)}.type-defaults>summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.type-style-preview{display:flex;align-items:center;justify-content:center;height:42px;margin:4px 0 14px;border:1px solid var(--border);border-radius:6px;background:#fafafb}.type-style-preview>svg{width:96px;height:36px;overflow:visible}.type-style-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.type-style-grid .visual-choices{width:100%;display:flex;flex-wrap:nowrap;gap:4px}.type-style-grid .visual-choices button{flex:1;min-width:0;padding:6px 3px;min-height:44px}.type-style-grid .visual-choices svg{width:44px;max-width:100%;height:20px}.type-style-grid .route-choices button{display:flex;flex-direction:column;font-size:12px;gap:2px}.selection-panel.person-compact{display:flex;flex-direction:row;align-items:center;width:max-content!important;max-width:calc(100vw - 16px);gap:4px;padding:6px;min-height:56px}.person-compact #edit-person-detail{padding:8px 10px;min-height:44px;font-size:14px;font-weight:650;border-radius:6px}.person-compact #edit-person-detail:hover{background:var(--soft)}.person-compact .icon-button{flex:none}@media(max-width:480px){#type-dialog .dialog-content{padding:14px}#type-dialog .dialog-heading{margin-bottom:12px}#type-dialog .dialog-heading h2{font-size:18px}.type-style-grid{grid-template-columns:minmax(0,1fr);gap:10px}.type-style-grid .choice-field{gap:4px}.type-style-grid .route-choices button{flex-direction:row;font-size:12px}#type-dialog .dialog-actions{margin-top:16px}#type-dialog #color-presets{gap:4px}}#type-dialog .type-style-grid .visual-choices button[aria-pressed=true]{background:#303035;border-color:#303035;color:#fff;box-shadow:none}.connection-bar.editing-line{display:none}.selection-panel.edge-editor{display:flex;flex-direction:column;width:430px;max-width:calc(100vw - 24px);max-height:min(560px,calc(100dvh - 100px));overflow:hidden}.edge-editor .selection-title{flex:none}.edge-editor .selection-title h2{flex:1}.edge-editor .selection-title #fold-edge-editor{font-size:20px}.edge-editor .selection-content{min-height:0;overflow:auto;overscroll-behavior:contain}.edge-style-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin-top:12px}.edge-style-fields .choice-field{margin:0;display:flex;flex-direction:column;gap:5px;font-size:13px}.edge-style-fields .edge-route-field,.edge-style-fields .edge-width-field{grid-column:1/-1}.edge-style-fields .visual-choices{display:flex;gap:4px}.edge-style-fields .visual-choices button{min-width:0;min-height:44px;padding:5px;flex:1}.edge-style-fields .visual-choices svg{max-width:100%;width:44px;height:21px}.edge-style-fields .route-choices button{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px}.edge-style-fields .visual-choices button[aria-pressed=true]{background:#303035;border-color:#303035;color:#fff;box-shadow:none}.edge-legend-field{margin-top:12px;padding-top:6px;border-top:1px solid var(--border)}.edge-field-heading{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:650}.edge-field-heading button{display:flex;align-items:center;gap:4px;min-height:44px;padding:4px 6px;font-size:13px}.edge-field-heading svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}.edge-legend-options{display:flex;flex-wrap:wrap;gap:5px;max-height:144px;overflow:auto;overscroll-behavior:contain}.edge-legend-chip{display:flex;align-items:center;gap:6px;min-height:44px;max-width:100%;border:1px solid var(--border);border-radius:6px;padding:6px 9px;font-size:13px;text-align:left}.edge-legend-chip>span:last-child{overflow-wrap:anywhere}.edge-legend-chip[aria-pressed=true]{border-color:#303035;background:#f1f1f4;box-shadow:inset 0 0 0 1px #303035}.legend-color-dot{width:14px;height:14px;border:1px solid #00000016;border-radius:50%;flex:none}.edge-editor.is-collapsed .selection-title{border:0;margin:0;padding:0}.edge-editor.is-collapsed{min-height:58px}@media(max-width:760px){.selection-panel.edge-editor{width:calc(100vw - 16px);max-width:420px;max-height:min(480px,55dvh)}.edge-style-fields{gap:8px;margin-top:10px}.edge-editor .selection-title h2{font-size:17px}.edge-legend-options{max-height:100px}}#starter-dialog{width:min(680px,calc(100vw - 24px))}#starter-dialog .dialog-content{padding:24px}#starter-dialog .dialog-heading{margin-bottom:18px}#starter-dialog h2{font-size:22px}.starter-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.starter-card[hidden]{display:none}@media(min-width:581px){#starter-dialog:has(#starter-favorite-grid:not([hidden])){width:min(810px,calc(100vw - 24px))}.starter-options:has(#starter-favorite-grid:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr))}}.starter-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:16px;text-align:left;border:1px solid var(--border);border-radius:8px;padding:18px;background:#fff;transition:border-color .15s,background-color .15s}.starter-card:hover{border-color:var(--pink-strong);background:#fff8fa}.starter-card>svg{width:100%;height:144px;pointer-events:none}.starter-copy{display:flex;flex-direction:column;gap:5px;padding-right:12px}.starter-copy strong{font-size:20px;font-weight:700}.starter-copy>span{font-size:13px;color:var(--muted);line-height:1.5;word-break:keep-all}.starter-arrow{position:absolute;right:16px;bottom:18px;font-size:20px;color:var(--pink-strong)}.starter-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid var(--border)}.starter-actions button{font-size:14px;white-space:nowrap}#starter-open-project{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px}#starter-open-project svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}@media(min-width:581px)and (max-height:520px){#starter-dialog .dialog-content{padding:16px}#starter-dialog .dialog-heading{margin-bottom:12px}.starter-card{padding:12px;gap:8px}.starter-card>svg{height:80px}.starter-actions{margin-top:12px;padding-top:12px}}@media(max-width:580px){#starter-dialog .dialog-content{padding:16px}#starter-dialog .dialog-heading{margin-bottom:12px}#starter-dialog h2{font-size:20px}.starter-options{grid-template-columns:minmax(0,1fr);gap:10px}.starter-card{display:grid;grid-template-columns:clamp(168px,46vw,186px) minmax(0,1fr);align-items:center;gap:10px;padding:10px;min-height:96px}.starter-card>svg{height:102px}.starter-copy{padding-right:0}.starter-copy strong{font-size:18px;word-break:keep-all}.starter-copy>span{font-size:12px}.starter-arrow{display:none}.starter-actions{gap:6px;margin-top:14px;padding-top:14px}.starter-actions button{font-size:13px;padding-inline:8px}}.header .brand{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:9px;row-gap:1px;align-items:center;min-width:0}.brand .brand-mark{grid-row:1 / 3;width:38px;height:32px;flex:none}.header .brand strong{display:flex;align-items:baseline;gap:8px;font-size:23px;font-weight:750;white-space:nowrap;line-height:1.25}.brand .brand-word{font-family:inherit;font-size:21px;font-style:normal;font-weight:650;letter-spacing:-.7px;color:var(--ink)}.header .brand>span{grid-column:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.address-launch{flex:none;font-size:13px}#edge-address{justify-self:start;padding:4px 0;min-height:34px;color:var(--pink-ink)}#edge-address:after{content:"›";margin-left:6px}#address-dialog{width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 28px)}.address-direction{font-size:13px;color:var(--muted);margin:.55rem 0 1rem}#address-list{display:grid;gap:8px}.address-pair{position:relative;display:grid;gap:7px;width:100%;padding:13px 42px 13px 14px;text-align:left;color:var(--ink);border:1px solid var(--border);border-radius:10px;background:#fff}.address-pair:hover,.address-pair:focus-visible{background:var(--surface)}.address-pair>span{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:baseline;font-size:14px;overflow-wrap:anywhere}.address-pair strong{font-weight:650}.address-pair .address-unset{font-weight:400;color:var(--muted)}.address-pair svg{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}#address-form label{display:grid;gap:5px;margin:14px 0;font-size:14px;font-weight:600;overflow-wrap:anywhere}#address-form input{width:100%;box-sizing:border-box;padding:10px 12px;min-height:42px;font:inherit;font-size:16px;font-weight:400;color:var(--ink);border:1px solid var(--border);border-radius:7px}#address-dialog [hidden]{display:none}@media(max-width:760px){.header .brand{column-gap:6px}.brand .brand-mark{width:32px;height:28px}.header .brand strong{font-size:20px}.brand .brand-word{font-size:18px}}@media(max-width:450px){.brand .brand-word{display:none}.header .brand strong{font-size:18px}.brand .brand-mark{width:29px;height:26px}}.canvas-overlay{outline:none;touch-action:none}.canvas-overlay.frozen{pointer-events:none}.overlay-logo-hit{cursor:move;touch-action:none}.overlay-logo-image{filter:none!important;user-select:none}.overlay-text-body{cursor:text}.overlay-outline{stroke:transparent;stroke-width:1;vector-effect:non-scaling-stroke}.canvas-overlay:hover .overlay-outline,.overlay-outline.active{stroke:#bd365b;stroke-dasharray:4 3}.overlay-move{cursor:move;touch-action:none}.overlay-resize{touch-action:none}.overlay-resize-nw,.overlay-resize-se{cursor:nwse-resize}.overlay-resize-ne,.overlay-resize-sw{cursor:nesw-resize}.overlay-resize-e,.overlay-resize-w{cursor:ew-resize}.overlay-resize-visible{fill:#fff;stroke:#bd365b;stroke-width:1;vector-effect:non-scaling-stroke}.canvas-overlay:focus-visible .overlay-outline{stroke:#a83e62;stroke-width:2;stroke-dasharray:none}.overlay-text-content{user-select:none}.overlay-editor-host{overflow:visible}.overlay-editor{display:block;box-sizing:border-box;width:100%;min-height:0;margin:0;padding:8px;border:0;border-radius:0;outline:0!important;resize:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all;background:#ffffffed;box-shadow:none;text-align:left;letter-spacing:normal;tab-size:4;touch-action:auto;user-select:text;-webkit-user-select:text}.overlay-editor::placeholder{color:#707078;opacity:1}.overlay-tools{position:fixed;z-index:60;display:flex;align-items:center;gap:5px;max-width:calc(100vw - 24px);padding:6px;border:1px solid #dcdce1;border-radius:8px;background:#fff;box-shadow:0 3px 10px #00000014;flex-wrap:wrap}.overlay-tools[hidden]{display:none}.overlay-tools button,.overlay-tools select{min-height:44px;min-width:44px;margin:0;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:#414147;font:inherit;font-size:14px;line-height:1.4;font-weight:550;cursor:pointer;touch-action:manipulation}.overlay-tools select{min-width:90px;border-right:1px solid #dcdce1;border-radius:0;padding-right:12px}.overlay-tools button:hover{background:#f6f6f7;color:#303035}.overlay-tools button[aria-pressed=true]{background:#fff0f4;color:#9c3658}.overlay-tools button[aria-pressed=true]{box-shadow:inset 0 0 0 1px #bb7088;font-weight:700}.overlay-tools button:focus-visible,.overlay-tools select:focus-visible,.overlay-tools input:focus-visible{outline:2px solid #a83e62;outline-offset:2px}#overlay-bold{font-weight:700;font-size:18px;font-family:Georgia,serif}.overlay-color-label{display:flex;align-items:center;justify-content:center;width:44px;height:44px;cursor:pointer;flex:none}.overlay-color-label input{width:32px;height:32px;padding:0;border:1px solid #dcdce1;border-radius:6px;background:#fff;cursor:pointer}.overlay-color-label input::-webkit-color-swatch-wrapper{padding:3px}.overlay-color-label input::-webkit-color-swatch{border:0;border-radius:3px}#overlay-delete{border-left:1px solid #dcdce1;border-radius:0;padding-left:12px;color:#96304d}.overlay-replace{white-space:nowrap}.paper-legend-row[aria-pressed=true] .legend-row-hit{fill:#fff0f4}#canvas.connecting .legend-edit-layer .legend-resize{display:none}@media(max-width:580px){.overlay-tools{padding:5px;gap:4px}.overlay-tools button,.overlay-tools select{min-height:44px;min-width:44px;font-size:14px}.overlay-tools select{min-width:90px}.overlay-color-label{width:44px;height:44px}}.viewport-host{position:relative}#canvas-scroll.viewport-scroll{flex:1 1 0;height:auto;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scroll-behavior:auto}#canvas-scroll.viewport-scroll.is-fitted{overflow:hidden}#canvas.viewport-canvas{min-width:0;min-height:0;max-width:none;max-height:none;display:block;cursor:default}.viewport-scroll.pan-ready #canvas,.viewport-scroll.pan-ready #canvas *{cursor:grab!important}.viewport-scroll.is-panning #canvas,.viewport-scroll.is-panning #canvas *{cursor:grabbing!important}.viewport-controls{position:static;flex:none;z-index:8;display:flex;align-items:center;justify-content:flex-end;gap:2px;width:100%;min-height:48px;padding:2px 8px;border:0;border-top:1px solid var(--border);border-radius:0;background:var(--pm-surface,#fff);box-shadow:none;user-select:none}.viewport-controls button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:9px 10px;border:0;border-radius:6px;background:transparent;color:#414147;font:inherit;font-size:20px;line-height:1;font-weight:550;cursor:pointer;touch-action:manipulation}.viewport-controls button:hover:not(:disabled){background:var(--surface);color:var(--ink)}.viewport-controls button:focus-visible{outline:2px solid var(--pink-strong);outline-offset:1px}.viewport-controls button:disabled{opacity:.4;cursor:default;background:transparent}.viewport-controls #fit-canvas{font-size:14px;padding-inline:12px}.viewport-controls #add-person-mobile{display:inline-flex;min-width:64px;margin-right:auto;padding-inline:8px;font-size:14px}.viewport-percent{min-width:45px;text-align:center;color:var(--muted);font-size:12px;font-weight:550;font-variant-numeric:tabular-nums}.viewport-divider{height:20px;width:1px;margin:0 4px;background:var(--border)}@media(max-width:580px){.viewport-controls{justify-content:center;padding:2px 4px;gap:0;margin:0;max-width:none}.viewport-controls button{min-width:44px;min-height:44px}.viewport-controls #fit-canvas{font-size:12px;padding-inline:6px}.viewport-controls #add-person-mobile{display:inline-flex;min-width:54px;font-size:12px;padding-inline:4px;margin-right:auto}.viewport-percent{min-width:34px;font-size:11px}.viewport-divider{margin-inline:2px}}.person-photo-editor{display:grid;gap:10px;min-width:0}.person-photo-row{display:flex;align-items:center;gap:10px;min-width:0}.selected-photo-preview{display:block;width:52px;height:52px;flex:none}.selected-photo-preview>svg{display:block;width:100%;height:100%}.person-photo-actions{display:flex;align-items:stretch;gap:6px;flex:1;min-width:0}.person-photo-actions>button{min-width:0;min-height:44px;flex:1;padding:8px 6px;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--ink);font-size:14px;font-weight:600;line-height:1.4;white-space:nowrap}.person-photo-actions>button:first-child{border-color:#efbdcb;background:#fff0f4;color:var(--pink-ink)}.person-photo-actions>button:hover{background:#f6f6f7}.person-photo-actions>button:first-child:hover{background:#ffe5ed}.person-identity-row{display:flex;align-items:center;gap:10px;min-width:0}.selection-panel .person-identity-row>input{min-width:0;flex:1;padding:9px 10px}.person-identity-row>.person-delete-action{min-height:44px;flex:none;padding:8px 2px 8px 10px;border:0;border-left:1px solid var(--border);border-radius:0;background:transparent;font-size:13px;font-weight:500;white-space:nowrap}.person-delete-action:hover{color:#7f233e;text-decoration:underline}.character-resize-handle{cursor:nesw-resize;touch-action:none}.character-resize-knob{fill:#fff;stroke:var(--pink-strong);stroke-width:2}.selection-panel.person-compact{display:grid;grid-template-columns:auto auto auto;gap:2px}.character-size-controls{display:flex;align-items:center;gap:2px;grid-column:1/-1;padding:3px 3px 0;border-top:1px solid var(--border);font-size:13px}.character-size-controls>span{flex:1;padding-inline:6px;font-weight:600}.character-size-controls>button{width:44px;height:44px;border-radius:6px;color:var(--ink);font-size:20px}.character-size-controls>button:hover:not(:disabled){background:var(--soft)}.character-size-controls>output{min-width:4ch;text-align:center;font-variant-numeric:tabular-nums;color:var(--muted)}@media(max-width:374px){.person-photo-row{gap:8px}.selected-photo-preview{width:48px;height:48px}.person-photo-actions>button{padding-inline:5px;font-size:13px}}.diagram-additions{display:flex;align-items:center;gap:10px;width:100%;grid-column:1/-1;padding-bottom:12px;border-bottom:1px solid var(--border)}.diagram-additions svg,.shape-add-options svg,.diagram-shape-options svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;flex:none}.diagram-additions>.button,.diagram-additions summary{display:flex;align-items:center;justify-content:center;gap:8px;color:#304f9d;min-height:44px}@media(max-height:480px){.layout-tools:not([hidden]){display:flex;align-items:center;gap:12px;overflow-x:auto;max-height:none}.layout-tools>.diagram-additions,.layout-tools>.layout-adjustments,.layout-tools>.layout-presets{flex:none;width:auto;margin:0;padding:0;border:0}.layout-tools .layout-options{display:flex}}#shape-menu{position:relative}#shape-menu summary{list-style:none;cursor:pointer}#shape-menu summary::-webkit-details-marker{display:none}.shape-add-options{position:fixed;z-index:75;width:230px;padding:6px;border:1px solid var(--border);border-radius:8px;background:#fff;display:grid;grid-template-columns:1fr 1fr;gap:4px}.shape-add-options button{min-height:48px;display:flex;align-items:center;gap:8px;padding:8px;background:#fff;border:0;border-radius:4px;font-size:14px}.shape-add-options button:hover{background:#f0f4ff}.diagram-item{cursor:move;touch-action:none;outline:none}.diagram-item:focus-visible{filter:drop-shadow(0 0 2px #5377ed)}.diagram-item text{user-select:none}.diagram-resize{cursor:nwse-resize;touch-action:none}.diagram-rotate{cursor:grab;touch-action:none}.diagram-rotate:focus-visible circle:last-of-type{stroke:#2747aa;stroke-width:3}.diagram-resize[data-diagram-resize=ne],.diagram-resize[data-diagram-resize=sw]{cursor:nesw-resize}.diagram-tools{position:fixed;z-index:70;display:flex;align-items:center;gap:2px;padding:5px;background:#fff;border:1px solid #d8dce5;border-radius:10px;box-shadow:0 2px 6px #26355412}.diagram-tools[hidden]{display:none}.diagram-action{display:grid;place-items:center;width:44px;height:44px;padding:8px;border:0;border-radius:6px;background:#fff;color:#5d6678}.diagram-action:hover{background:#f2f4fa}.diagram-action svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.diagram-action.action-edit{color:#4f75ef}.diagram-action.action-plus{color:#24a15b}.diagram-action.action-trash{color:#db4545}#diagram-dialog{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}.diagram-form{display:flex;flex-direction:column;gap:18px}.diagram-form .dialog-heading{margin:0}.diagram-form h2{font-size:22px}.diagram-form label{display:flex;flex-direction:column;gap:8px;font-weight:600}.diagram-form fieldset{border:0;padding:0;margin:0;min-width:0}.diagram-form fieldset[hidden],.diagram-form label[hidden]{display:none}.diagram-form legend{padding:0;margin-bottom:10px;font-weight:600}.diagram-swatches{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.diagram-swatch{width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px;padding:0;background:var(--swatch);border:6px solid #fff;border-radius:50%;outline:1px solid #e1e4eb}.diagram-swatch[aria-pressed=true]{outline:2px solid #303035}.diagram-swatches input[type=color]{width:40px;height:36px;padding:2px;border:1px solid var(--border);background:#fff;border-radius:5px}#diagram-name{width:100%;min-height:44px;padding:9px 12px;border:1px solid var(--border);border-radius:6px;font:inherit;font-weight:400;font-size:16px;background:#fff;color:var(--text)}.diagram-shape-options{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.diagram-shape-options button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;background:#fff;border:1px solid var(--border);border-radius:6px;font-size:13px}.diagram-shape-options button[aria-pressed=true]{background:#eef3ff;border-color:#4f75ef;color:#3058c7}#diagram-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;max-height:min(240px,30dvh);overflow:auto;border:1px solid var(--border);border-radius:6px;padding:5px}#diagram-members label{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:48px;padding:6px;font-size:14px;font-weight:400;cursor:pointer}#diagram-members label:has(input:checked){background:#eef3ff;border-radius:4px}#diagram-members input{width:18px;height:18px;flex:none;accent-color:#4f75ef}#diagram-members label>span:last-child{min-width:0;overflow-wrap:anywhere}#diagram-members small{display:block;color:var(--muted);font-size:11px}.diagram-member-mark{width:30px;height:30px;border-radius:50%;overflow:hidden;display:grid;place-items:center;flex:none;color:#737987;background:#f4f6fa}.diagram-member-mark img{width:100%;height:100%;object-fit:cover}.diagram-member-mark svg{width:26px;height:26px;fill:#eee5ff;stroke:#8b54ce;stroke-width:1.5}.person-compact .person-edit-blue{color:#385ed0;display:flex;align-items:center;gap:7px}.person-edit-blue svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.person-compact .danger{color:#db4545!important}@media(max-width:580px){.diagram-additions{gap:8px;padding-bottom:10px}.diagram-additions>.button,.diagram-additions summary{font-size:13px;padding:7px 10px}.shape-add-options{width:216px}#diagram-dialog .dialog-content{padding:16px}.diagram-form{gap:14px}#diagram-members{grid-template-columns:1fr;max-height:28dvh}}#help-dialog{width:min(660px,calc(100vw - 24px))}#help-dialog>.dialog-content{display:flex;flex-direction:column;gap:16px;max-height:calc(100dvh - 26px)}#help-dialog .dialog-heading,#help-dialog .help-footer{flex:none}.help-body{min-height:0;overflow:auto;overscroll-behavior:contain}#help-guides:not([hidden]){display:flex;flex-wrap:wrap;gap:0 18px;margin-top:8px}#help-guides a{display:inline-flex;align-items:center;min-height:44px;color:var(--pm-accent);font-size:14px;text-underline-offset:3px}.help-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.help-topic{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-height:84px;border:1px solid var(--border);border-radius:8px;padding:12px;text-align:left;background:#fff}.help-topic:hover{border-color:var(--pink-strong);background:var(--soft)}.help-topic strong{font-size:15px;color:var(--ink)}.help-topic span{font-size:12px;color:var(--muted);line-height:1.5}.help-faq{margin-top:16px;border-top:1px solid var(--border);padding-top:6px}.help-faq summary{display:flex;align-items:center;font-weight:600}.help-faq p{margin:0 0 12px;font-size:13px;color:var(--muted);line-height:1.7}.help-footer{display:flex;justify-content:space-between;align-items:center;gap:12px}.help-footer p{font-size:12px;color:var(--muted);margin:0}.help-footer .button{white-space:nowrap}#tutorial-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;overflow:hidden}#tutorial-dialog::backdrop{background:transparent}#tutorial-dialog.without-target{background:#30303566}#tutorial-spotlight{position:fixed;pointer-events:none;border:2px solid var(--pink-strong);border-radius:8px;box-shadow:0 0 0 9999px #30303566}.tutorial-card{position:fixed;display:flex;flex-direction:column;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--border);border-radius:14px;background:var(--pm-surface,#fff);box-shadow:0 8px 28px #2e201b1f;padding:16px;gap:10px}.tutorial-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}#tutorial-count{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}.tutorial-heading .text-button{margin-left:auto;min-height:44px}.tutorial-heading .icon-button{width:44px;min-width:44px}.tutorial-content{overflow:auto;min-height:0;overscroll-behavior:contain}.tutorial-content p{word-break:keep-all;overflow-wrap:break-word}#tutorial-title{font-size:18px;line-height:1.4;margin:0 0 10px}#tutorial-text{font-size:14px;line-height:1.7;margin:0}#tutorial-tip{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0 0;border-top:1px solid var(--border);padding-top:10px}.tutorial-actions{display:flex;justify-content:space-between;gap:12px;flex:none;margin-top:2px}.tutorial-actions button{min-width:76px;min-height:44px}#tutorial-demo{height:66px;margin:0 0 12px;background:var(--surface);border-radius:6px;overflow:hidden}#tutorial-demo svg{display:block;width:100%;height:100%;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}#tutorial-demo text{fill:var(--ink);font:600 15px sans-serif;stroke:none}.demo-avatar,.demo-card{fill:#fff;stroke:#b9b9c4}.demo-person{fill:var(--pink);stroke:var(--pink)}.demo-line{fill:none;stroke:var(--pink-strong)}.demo-guide{fill:none;stroke:#c5c5cf;stroke-dasharray:3 5}.demo-group{fill:var(--soft);stroke:var(--pink)}.demo-tap{fill:none;stroke:var(--pink);opacity:0;animation:demo-tap 3.6s ease-in-out infinite}.demo-tap-second{animation-delay:1.4s}.demo-connect{stroke-dasharray:160;animation:demo-connect 3.6s ease-in-out infinite}.demo-pan{animation:demo-pan 4s ease-in-out infinite}.demo-align{animation:demo-align 4s ease-in-out infinite}.demo-align-up{animation:demo-align-up 4s ease-in-out infinite}@keyframes demo-tap{0%,45%,to{opacity:0}10%,30%{opacity:1}}@keyframes demo-connect{0%,25%{stroke-dashoffset:160}65%,to{stroke-dashoffset:0}}@keyframes demo-pan{0%,to{transform:translate(-7px)}50%,75%{transform:translate(0)}}@keyframes demo-align{0%,to{transform:translateY(0)}40%,75%{transform:translateY(7px)}}@keyframes demo-align-up{0%,to{transform:translateY(0)}40%,75%{transform:translateY(-7px)}}@media(max-width:580px){.help-topics{grid-template-columns:repeat(2,minmax(0,1fr))}#help-dialog>.dialog-content{padding:16px;gap:12px}.help-topic{padding:10px;min-height:78px}.help-topic strong{font-size:14px}.help-footer p{max-width:135px}.tutorial-card{padding:12px;gap:8px}}@media(max-height:560px){#tutorial-demo{display:none}.tutorial-card{gap:4px;padding:10px}#tutorial-title{font-size:16px;margin-bottom:6px}.tutorial-heading .icon-button,.tutorial-heading .text-button{min-height:44px}#help-dialog>.dialog-content{padding:12px;gap:8px}}@media(prefers-reduced-motion:reduce){#tutorial-demo *{animation:none!important}.demo-tap{opacity:0}.demo-connect{stroke-dashoffset:0}}#tutorial-demo.with-recording{height:auto;display:flex;flex-direction:column;align-items:stretch;border:1px solid var(--border);background:#fff}.tutorial-recording{display:block;width:100%;height:auto;aspect-ratio:480/224}.tutorial-play{min-height:44px;border:0;border-top:1px solid var(--border);background:var(--surface);color:var(--ink);font:inherit;font-size:13px;font-weight:600}.tutorial-play:hover,.tutorial-play:focus-visible{background:var(--soft)}.account-dialog{width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:clamp(18px,4vw,24px);border:1px solid var(--pm-line, #e5e0de);border-radius:16px;box-shadow:0 14px 45px #3528201f;color:var(--pm-ink, #282722);background:var(--pm-surface, #fff);font:15px/1.55 var(--pm-font, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif)}.account-dialog::backdrop{background:#211e2452}.account-dialog [hidden]{display:none!important}.account-form{display:grid;gap:14px}.account-form header{display:flex;align-items:center;justify-content:space-between}.account-dialog h2{margin:0;font-size:22px;font-weight:720;letter-spacing:-.04em}.account-dialog p{margin:0;color:var(--pm-muted, #665f61)}.account-dialog button{min-height:44px;padding:8px 12px;border:1px solid var(--pm-line, #e5e0de);border-radius:9px;background:var(--pm-surface, #fff);color:inherit;font:inherit;cursor:pointer}.account-form header button{width:44px;border:0;font-size:24px}.account-dialog button:disabled{opacity:.5;cursor:wait}.account-form label{display:grid;gap:5px;font-weight:600}.account-dialog input{box-sizing:border-box;width:100%;min-height:44px;padding:10px;border:1px solid #bcb6b4;border-radius:8px;background:var(--pm-canvas, #f8f7f5);color:inherit;font:inherit;font-size:16px}.account-tabs{display:flex;gap:6px}.account-tabs button{flex:1;padding:6px;font-size:14px}.account-tabs [aria-pressed=true]{border-color:var(--pm-accent, #a8385b);color:var(--pm-accent, #a8385b);background:var(--pm-accent-soft, #f9edf1);font-weight:650}.account-dialog .account-submit,.account-dialog [data-recovery-done]{background:var(--pm-accent, #a8385b);border-color:var(--pm-accent, #a8385b);color:#fff;font-weight:650}.account-dialog .account-error{color:#b32635}.account-recovery{display:grid;gap:16px}.account-dialog :is(input,button):focus-visible{outline:2px solid var(--pm-accent, #a8385b);outline-offset:2px}.gallery-tag-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-block:6px 10px}.gallery-tag-suggestions[hidden]{display:none}.gallery-tag-suggestions button,.favorite-grid-editor .gallery-tag-suggestions button{min-height:36px;max-width:100%;padding:4px 10px;border:1px solid #dddce1;border-radius:6px;background:#fff;color:#504955;font:inherit;font-size:13px;overflow-wrap:anywhere;cursor:pointer}.gallery-tag-suggestions button:hover{border-color:#ae8997}@media(pointer:coarse){.gallery-tag-suggestions button,.favorite-grid-editor .gallery-tag-suggestions button{min-height:44px}}html:has(.mirumoa-guide,.mirumoa-diagram,.favorite-grid-editor,.lineage-editor){--pm-canvas: #f6f7f8;--pm-surface: #fff;--pm-ink: #222327;--pm-muted: #5b5e64;--pm-line: #dfe1e3;--pm-accent: #963656;--pm-accent-soft: #f9edf2}.mirumoa-guide,.mirumoa-diagram,body:has(.favorite-grid-editor,.lineage-editor){background:var(--pm-surface);color:var(--pm-ink)}.tool-identity,.studio-brand-group:has(.tool-context:not([hidden])){display:flex;align-items:center;gap:16px;min-width:0}.tool-context{min-width:0;margin:0;padding-inline-start:15px;border-inline-start:1px solid var(--pm-line);color:var(--pm-muted);font:620 15px/1.35 var(--pm-font);letter-spacing:-.035em;white-space:nowrap}.tool-context[hidden]{display:none}.mirumoa-guide .masthead,.mirumoa-diagram .header,body:has(.favorite-grid-editor,.lineage-editor) .studio-header{background:#fff;border-bottom:1px solid var(--pm-line)}.mirumoa-guide .masthead-inner,body:has(.favorite-grid-editor,.lineage-editor) .studio-header{height:auto;min-height:64px}.mirumoa-guide .masthead-inner{width:auto;margin-inline:max(16px,calc((100% - 1640px)/2))}:is(.mirumoa-guide .masthead,.studio-header:has(.tool-context:not([hidden]))) nav a{color:var(--pm-muted);background:transparent;border-radius:8px}:is(.mirumoa-guide .masthead,.studio-header:has(.tool-context:not([hidden]))) nav a:hover{background:var(--pm-canvas);color:var(--pm-ink)}:is(.mirumoa-guide .masthead,.studio-header:has(.tool-context:not([hidden]))) nav a[href$="#workspace"]{display:inline-flex;align-items:center;gap:7px;padding-inline:14px;min-height:40px;background:#26272a;color:#fff}.studio-header:has(.tool-context:not([hidden])) nav svg{display:block;width:17px;height:17px}@media(pointer:coarse){.mirumoa-guide .brand,.mirumoa-guide .masthead nav a,:is(.mirumoa-guide .masthead,.studio-header:has(.tool-context:not([hidden]))) nav a[href$="#workspace"]{min-width:44px;min-height:44px;justify-content:center}}.mirumoa-guide .start,.mirumoa-diagram :is(.button.primary,#export-menu>summary),.favorite-grid-editor .fg-primary,.lineage-editor button.primary{background:var(--pm-ink);color:#fff;border-color:var(--pm-ink);border-radius:8px}.mirumoa-guide .start:hover,.mirumoa-diagram :is(.button.primary,#export-menu>summary):hover:not(:disabled),.favorite-grid-editor .fg-primary:hover:not(:disabled),.lineage-editor button.primary:hover:not(:disabled){background:#383a40;color:#fff;border-color:#383a40}.mirumoa-guide .example{background:var(--pm-surface)}.mirumoa-diagram .header{min-height:62px;padding-inline:clamp(12px,2vw,28px)}.mirumoa-diagram .header .brand{display:inline-flex;flex:none;flex-direction:row;align-items:center;gap:8px}.mirumoa-diagram .brand .brand-mark{width:34px;height:32px}.mirumoa-diagram .header .brand strong{font-size:22px;letter-spacing:-.045em}.mirumoa-diagram main{padding-top:6px}.mirumoa-diagram .editor{border:1px solid var(--pm-line);border-radius:6px;box-shadow:none}.mirumoa-diagram .toolbar{border-radius:6px 6px 0 0}.mirumoa-diagram .tool-tabs button[aria-selected=true]{border-bottom-color:var(--pm-ink);background:var(--pm-surface);color:var(--pm-ink)}.mirumoa-diagram .canvas-scroll{background:#eef0f2}.mirumoa-diagram .editor-sidebar{background:#fff}.mirumoa-diagram .header #help{color:var(--pm-muted)}.mirumoa-diagram .starter-lineage-art{display:grid;place-items:center}.mirumoa-diagram .starter-lineage-art img{width:100%;height:144px;object-fit:contain}@media(min-width:701px){.mirumoa-diagram #starter-dialog:has(#starter-favorite-lineage:not([hidden])){width:min(760px,calc(100vw - 24px))}.mirumoa-diagram .starter-options:has(#starter-favorite-lineage:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}}body:has(.favorite-grid-editor,.lineage-editor) .studio-header{padding-inline:max(16px,calc((100% - 1640px)/2))}body:has(.favorite-grid-editor,.lineage-editor) .studio-footer{border-top:1px solid var(--pm-line);background:#f2f3f4}#studio-main:has(.favorite-grid-editor,.lineage-editor){width:100%;max-width:1440px;margin-inline:auto;padding:8px 16px 32px}#studio-main:has(.favorite-grid-editor,.lineage-editor) :is(.project-save-state,.favorite-grid-editor,.lineage-editor){max-width:100%;margin-inline:auto}.favorite-grid-editor,.lineage-editor{background:#fff;border:0;border-radius:0;padding:0 0 12px}.favorite-grid-editor:has(.fg-board-paper){display:block}.favorite-grid-editor:has(.fg-board-paper) .fg-header,.lineage-editor .lg-heading{padding-block:12px;border-bottom:1px solid var(--pm-line)}.favorite-grid-editor:has(.fg-board-paper) .fg-toolbar{border:0;margin:0;padding:12px 0}.favorite-grid-editor .fg-header .fg-title,.lineage-editor .lg-heading input{font-size:clamp(17px,2vw,23px)!important}.favorite-grid-editor .fg-header .fg-title:focus-visible{outline:2px solid var(--fg-accent)}.favorite-grid-editor .fg-toolbar>[data-fg-upload]{background:#fff;border-color:var(--pm-line);color:var(--pm-ink)}.favorite-grid-editor .fg-toolbar>[data-fg-upload]:hover{background:var(--pm-canvas)}.favorite-grid-editor .fg-board-paper{width:min(100%,clamp(460px,calc(100svh - 290px),760px));box-shadow:0 0 0 1px var(--pm-line);margin-block-start:6px}.lineage-editor .lg-sheet{background:#fcfcfd;box-shadow:none;border-radius:6px}.lineage-editor .lg-hint{color:var(--pm-muted)}@media(max-width:760px){.mirumoa-diagram .header,body:has(.favorite-grid-editor,.lineage-editor) .studio-header{min-height:54px;padding-inline:10px}.mirumoa-diagram main{padding-top:5px}.tool-identity,.studio-brand-group:has(.tool-context:not([hidden])){gap:8px}.tool-context{padding-inline-start:8px;font-size:13px}.mirumoa-guide .masthead-inner{min-height:56px;margin-inline:12px}.mirumoa-diagram .starter-lineage-art img{height:84px}#studio-main:has(.favorite-grid-editor,.lineage-editor){padding:8px 8px 24px}.favorite-grid-editor:has(.fg-board-paper) :is(.fg-header,.fg-toolbar,.fg-status){margin-inline:0}}@media(max-width:580px){.mirumoa-diagram .header .brand strong,.studio-header:has(.tool-context:not([hidden])) .studio-brand strong{display:none}.tool-context{border:0;padding:0;color:var(--pm-ink)}.mirumoa-diagram .brand .brand-mark{width:28px}.studio-header:has(.tool-context:not([hidden])) nav a:not([href="#workspace"]){display:none}.mirumoa-guide .masthead nav{gap:0}.mirumoa-guide .masthead nav a{padding-inline:8px;font-size:13px}.mirumoa-diagram .starter-lineage-art img{height:102px}}@media(max-width:360px){.mirumoa-diagram .header{padding-inline:4px}.mirumoa-diagram .tool-identity{gap:3px}.mirumoa-diagram .tool-context{font-size:12px}}.mirumoa-diagram .editor-sidebar{display:flex;flex-direction:column;align-items:stretch;overflow:auto;scrollbar-width:thin}.mirumoa-diagram .editor-sidebar>section:not([hidden]){flex:0 1 auto;height:auto;min-height:48px;padding:4px 12px 8px;border-bottom:1px solid var(--pm-line)}.mirumoa-diagram .editor-sidebar>section.is-collapsed{flex:none;padding-bottom:0}.mirumoa-diagram .editor-sidebar .sidebar-heading{padding:0;border:0;font-size:15px}.mirumoa-diagram .sidebar-toggle{cursor:pointer}.mirumoa-diagram .sidebar-toggle .sidebar-chevron{display:block;margin-left:auto}.mirumoa-diagram .sidebar-toggle[aria-expanded=false] .sidebar-chevron{transform:rotate(-90deg)}.mirumoa-diagram .editor-sidebar .sidebar-content{padding:0;min-height:0;flex:0 1 auto;overflow:auto}.mirumoa-diagram .line-list-row{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;text-align:left;padding:6px 8px;border:0;border-radius:6px;background:#fff;color:var(--pm-ink)}.mirumoa-diagram .line-list-row:hover{background:var(--pm-canvas)}.mirumoa-diagram .line-list-row[aria-pressed=true]{background:var(--pm-accent-soft)}.line-swatch{width:22px;flex:none;border-top:3px solid var(--line-color);border-radius:2px}.line-copy{min-width:0;display:grid;gap:2px}.line-copy strong,.line-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.line-copy strong{font-size:13px;font-weight:600}.line-copy small,#line-list-empty{font-size:12px;color:var(--pm-muted)}.mirumoa-diagram .layout-options button[aria-pressed=true]{background:var(--pm-accent-soft);color:#783950;border-color:#dcabc0}.mirumoa-diagram .layout-tools:not([hidden]){overflow-y:auto}@media(min-width:1101px){.mirumoa-diagram .workspace-grid,.mirumoa-diagram .workspace-grid:has(.people-section .people-empty){grid-template-columns:minmax(0,1fr) clamp(236px,20vw,300px)}.mirumoa-diagram .editor-sidebar>section:not([hidden]){max-height:53%}}@media(max-width:1100px){.mirumoa-diagram .editor-sidebar{display:grid;grid-auto-columns:minmax(0,1fr);grid-template-rows:auto auto;max-height:min(200px,28dvh);overflow:auto}.mirumoa-diagram .editor-sidebar>section:not([hidden]){display:contents}.mirumoa-diagram .editor-sidebar .sidebar-heading{grid-row:1;padding-inline:8px}.mirumoa-diagram .editor-sidebar .sidebar-heading .sidebar-toggle{width:100%;justify-content:flex-start}.mirumoa-diagram .editor-sidebar .sidebar-content:not([hidden]){grid-row:2;grid-column:1/-1;padding:0 10px 8px}.mirumoa-diagram .sidebar-toggle .sidebar-chevron{width:12px}.mirumoa-diagram .layout-tools:not([hidden]){max-height:min(240px,35dvh)}}@media(max-width:460px){.mirumoa-diagram .editor-sidebar .sidebar-heading{padding-inline:5px}.mirumoa-diagram .editor-sidebar .sidebar-toggle{gap:4px;font-size:12px}}.mirumoa-diagram .toolbar .canvas-history{margin-inline-start:auto}.mirumoa-diagram .file-options #clear-canvas{display:flex;flex-direction:row;justify-content:flex-start;gap:7px;width:100%;border:0;font-size:13px}.mirumoa-diagram .layout-tools:not([hidden]){display:block;padding:6px 12px}.mirumoa-diagram .layout-presets{margin:0;padding:0;border:0}.mirumoa-diagram .layout-presets-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;min-height:32px;margin:0 0 3px}.mirumoa-diagram .layout-presets-heading h3{font-size:13px;white-space:nowrap}.mirumoa-diagram .layout-presets-heading .tidy-layout{width:auto;flex:none;display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:2px 6px;border:0;border-radius:6px;color:#873952;background:transparent}.mirumoa-diagram .tidy-layout svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5}.mirumoa-diagram .layout-presets-heading .tidy-layout:hover{background:var(--pm-accent-soft)}.mirumoa-diagram .layout-extras{margin-top:6px;border-top:1px solid var(--pm-line)}.mirumoa-diagram .layout-extras>summary{display:inline-flex;align-items:center;gap:7px;width:fit-content;min-height:32px;padding:4px;border:0;background:transparent;font-size:13px;font-weight:600;color:var(--pm-muted)}.mirumoa-diagram .layout-extras>summary:before{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg)}.mirumoa-diagram .layout-extras[open]>summary:before{transform:rotate(45deg)}.mirumoa-diagram .layout-extras-body{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;padding:5px 0}.mirumoa-diagram .layout-extras-body :is(.layout-adjustments,.diagram-additions){width:auto;flex:none;margin:0;padding:0;border:0}.mirumoa-diagram .layout-extras-body .spacing-control{display:flex;flex-direction:row;align-items:center;gap:6px}.mirumoa-diagram .layout-extras-body .spacing-control>span{display:inline}.mirumoa-diagram #layout-extras:has(#shape-menu[open]){padding-bottom:96px}@media(max-width:760px){.mirumoa-diagram .layout-tools:not([hidden]){padding:4px 7px}.mirumoa-diagram .layout-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.mirumoa-diagram .layout-options button{min-height:40px;flex-direction:row;gap:3px;padding:2px;font-size:12px}.mirumoa-diagram .layout-options svg{width:16px;height:16px}.mirumoa-diagram .layout-extras>summary,.mirumoa-diagram .layout-presets-heading .tidy-layout{min-height:40px}.mirumoa-diagram .layout-extras-body{gap:4px 10px}.mirumoa-diagram .layout-extras{margin-top:4px}}@media(max-width:400px){.mirumoa-diagram .layout-options button{flex-direction:column;gap:1px}}.mirumoa-diagram .person-row{gap:0}.mirumoa-diagram .person-row .person-select{min-width:0}.mirumoa-diagram .person-row .person-edit,.mirumoa-diagram .person-row .person-delete{display:inline-grid;place-items:center;flex:none;width:40px;height:44px;padding:0;border:0;border-radius:6px;background:transparent}@media(pointer:coarse){.mirumoa-diagram .person-row :is(.person-edit,.person-delete){width:44px}}.mirumoa-diagram .person-row .person-edit:hover,.mirumoa-diagram .person-row .person-delete:hover{background:var(--pm-canvas)}.mirumoa-diagram .edge-editor .selection-title h2{font-size:15px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mirumoa-diagram .edge-editor .selection-title button{flex:none}.mirumoa-diagram .tidy-layout .tidy-short{display:none}@media(orientation:landscape)and (max-height:540px){.mirumoa-diagram .header{min-height:48px;padding-block:2px}.mirumoa-diagram .workspace-grid,.mirumoa-diagram .workspace-grid:has(.people-section:not([hidden]) .people-empty){grid-template-columns:minmax(0,1fr) clamp(148px,23vw,220px);grid-template-rows:minmax(0,1fr)}.mirumoa-diagram .editor-sidebar{display:flex;max-height:none;border:0;border-left:1px solid var(--pm-line)}.mirumoa-diagram .editor-sidebar>section:not([hidden]){display:flex;flex-direction:column;flex:1 1 auto;padding:0 7px 4px;min-height:44px;max-height:none}.mirumoa-diagram .editor-sidebar>section.is-collapsed:not([hidden]){flex:none;padding-bottom:0}.mirumoa-diagram .editor-sidebar .sidebar-heading{padding:0}.mirumoa-diagram .editor-sidebar .sidebar-content:not([hidden]){padding:0;min-height:0;overflow:auto}.mirumoa-diagram .canvas-column{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}.mirumoa-diagram .canvas-column>.tool-panel{grid-column:1;grid-row:1}.mirumoa-diagram #canvas-scroll{grid-column:1;grid-row:2}.mirumoa-diagram .viewport-controls{grid-column:1;grid-row:3}.mirumoa-diagram .photo-tools,.mirumoa-diagram .connection-bar{min-height:44px;padding:3px 6px;gap:4px}.mirumoa-diagram .connection-main{min-width:0;gap:4px}.mirumoa-diagram .connection-shapes{flex:none;gap:4px}.mirumoa-diagram .canvas-column:has(#layout-tools:not([hidden])){grid-template-columns:clamp(116px,18vw,170px) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}.mirumoa-diagram .canvas-column:has(#layout-tools:not([hidden])) #canvas-scroll{grid-column:2;grid-row:1}.mirumoa-diagram .canvas-column:has(#layout-tools:not([hidden])) .viewport-controls{grid-column:2;grid-row:2}.mirumoa-diagram #layout-tools:not([hidden]){grid-column:1;grid-row:1/3;max-height:none;min-height:0;padding:4px 6px;overflow:auto;overscroll-behavior:contain;border:0;border-right:1px solid var(--pm-line)}.mirumoa-diagram .layout-presets-heading{gap:2px}.mirumoa-diagram .layout-presets-heading h3{font-size:12px}.mirumoa-diagram .layout-presets-heading .tidy-layout{max-width:100%;padding:0 2px;min-height:40px}.mirumoa-diagram .layout-presets-heading .tidy-layout>:not(.tidy-short){display:none}.mirumoa-diagram .layout-presets-heading .tidy-short{display:inline;white-space:nowrap;font-size:11px}.mirumoa-diagram #layout-tools .layout-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}.mirumoa-diagram #layout-tools .layout-options button{min-height:40px;gap:2px;padding:2px;flex-direction:column;font-size:11px}.mirumoa-diagram .layout-extras>summary{font-size:12px;min-height:40px}.mirumoa-diagram .layout-extras-body,.mirumoa-diagram .layout-extras-body :is(.spacing-control,.diagram-additions){flex-direction:column;align-items:stretch;width:100%;gap:4px}.mirumoa-diagram .layout-extras-body .layout-adjustments{width:100%}.mirumoa-diagram .viewport-controls{min-height:42px;gap:0;padding:0 2px}.mirumoa-diagram .viewport-controls button{min-height:42px;padding:4px}}@media(orientation:landscape)and (max-height:540px)and (max-width:639px){.mirumoa-diagram .workspace-grid,.mirumoa-diagram .workspace-grid:has(.people-section:not([hidden]) .people-empty){grid-template-columns:minmax(0,1fr) clamp(106px,26vw,148px)}.mirumoa-diagram .person-row .person-avatar{display:none}.mirumoa-diagram .person-row .person-select{padding-inline:1px}.mirumoa-diagram #connection-bar:not([hidden]){flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.mirumoa-diagram #connection-bar .connection-main,.mirumoa-diagram #connection-bar .connection-shapes{flex:none;width:max-content}.mirumoa-diagram #connection-bar .connection-type{flex:none;width:108px}.mirumoa-diagram #connection-bar .connection-settings-content{position:fixed;inset:auto auto 8px 8px;max-height:49dvh}.mirumoa-diagram .viewport-controls{flex-wrap:wrap}.mirumoa-diagram .viewport-controls #add-person-mobile{min-width:43px;margin-right:auto;padding-inline:1px}.mirumoa-diagram .viewport-controls .viewport-percent{min-width:30px}.mirumoa-diagram .viewport-controls .viewport-divider{margin-inline:1px}.mirumoa-diagram .viewport-controls #fit-canvas{min-width:44px;padding-inline:2px}}
