:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#eef3f8;font-synthesis:none}*{box-sizing:border-box}html,body,#root{margin:0;min-width:320px;min-height:100%;height:100%}button,select{font:inherit}button{-webkit-tap-highlight-color:transparent}.app-shell{min-height:100vh;display:grid;grid-template-rows:68px 1fr}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 20px;background:#fffffff5;border-bottom:1px solid #dce4ed;position:relative;z-index:5}.topbar-identity{min-width:0;display:grid;gap:2px}.brand{font-weight:780;letter-spacing:-.02em;font-size:17px}.title-input{width:100%;max-width:320px;padding:2px 6px;margin-left:-6px;border:1px solid transparent;border-radius:7px;background:transparent;font:inherit;font-size:12px;color:#48586e}.title-input:hover{border-color:#e2e9f1}.title-input:focus{outline:none;border-color:#9dc2f5;background:#fff;color:#172033}.topbar-actions{display:flex;align-items:center;gap:8px}button{border:0;cursor:pointer}button:disabled{opacity:.35;cursor:default}.icon-button,.primary-button,.danger-button{border-radius:10px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.icon-button{width:38px;background:#f0f4f8;color:#334155}.primary-button{padding:0 14px;background:#172b4d;color:#fff;font-weight:700}.rotate-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px}.rotate-buttons button{min-height:38px;border-radius:10px;background:#f0f4f8;color:#334155;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:6px}.danger-button{width:100%;padding:0 12px;background:#fff0f1;color:#b4232f;font-weight:700}.split-button{position:relative;display:inline-flex;align-items:stretch}.split-button .primary-button{border-radius:10px 0 0 10px}.split-caret{display:inline-flex;align-items:center;justify-content:center;width:36px;min-height:38px;padding:0;background:#172b4d;color:#fff;border-radius:0 10px 10px 0;box-shadow:inset 1px 0 #ffffff38}.topbar-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:10;min-width:178px;padding:5px;display:flex;flex-direction:column;gap:2px;background:#fff;border:1px solid #dce4ed;border-radius:12px;box-shadow:0 12px 28px #2434492e}.topbar-menu button{width:100%;min-height:42px;padding:0 10px;border-radius:8px;display:flex;align-items:center;gap:9px;background:transparent;color:#26354b;font-size:14px;font-weight:650}.topbar-menu button:hover:not(:disabled){background:#f0f4f8}.topbar-menu button:disabled{opacity:.4}.topbar-menu .menu-danger{color:#b4232f}.menu-label{padding:6px 10px 3px;color:#7b8799;text-transform:uppercase;letter-spacing:.11em;font-weight:800;font-size:10px}.menu-divider{margin:4px 6px;border-top:1px solid #edf1f5}.menu-tick-hidden{visibility:hidden}.modal-backdrop{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:20px;background:#17203373}.library{width:min(520px,100%);max-height:min(640px,100%);display:flex;flex-direction:column;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 24px 60px #1720334d}.library-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 10px 18px}.library-header h2{margin:0;font-size:17px}.library-search{display:flex;align-items:center;gap:8px;margin:0 14px 10px;padding:0 10px;border:1px solid #d6dee8;border-radius:9px;color:#7b8799}.library-search input{flex:1;min-height:38px;border:0;background:transparent;font:inherit;color:#172033}.library-search input:focus{outline:none}.library-list{flex:1;overflow:auto;padding:0 8px 8px}.library-empty{padding:18px 10px;text-align:center}.library-row{display:flex;align-items:center;gap:4px;border-radius:10px}.library-row:hover{background:#f5f8fb}.library-row.current{background:#e8f1ff}.library-open{flex:1;min-width:0;display:grid;gap:2px;justify-items:start;padding:9px 10px;background:transparent;text-align:left}.library-title{font-weight:700;font-size:14px;color:#172033}.library-meta{font-size:11px;color:#7b8799}.library-action{width:34px;min-height:34px;background:transparent;color:#97a3b4}.library-action:hover{background:#e6ecf3;color:#33445c}.library-delete{margin-right:6px}.library-delete:hover{background:#fff0f1;color:#b4232f}.library-rename{flex:1;min-width:0;min-height:38px;margin:4px 0 4px 8px;padding:0 9px;border:1px solid #9dc2f5;border-radius:8px;background:#fff;font:inherit;font-size:14px;font-weight:700}.library-rename:focus{outline:none}.library-confirm{width:34px;min-height:34px;margin-right:6px;background:transparent;color:#1559aa}.notes-modal{width:min(520px,100%);max-height:min(560px,100%);display:flex;flex-direction:column;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 24px 60px #1720334d}.notes-field{flex:1;margin:0 18px 12px;padding:10px 12px;min-height:220px;resize:vertical;border:1px solid #d6dee8;border-radius:10px;background:#fff;font:inherit;font-size:14px;line-height:1.5;color:#1d2c40}.notes-field:focus{outline:2px solid #bdd8ff;outline-offset:-1px}.inspector-notes{width:100%;margin:10px 0 0;min-height:160px;font-size:13px}.menu-dot{width:7px;height:7px;margin-left:auto;border-radius:50%;background:#1559aa}.library-footer{padding:11px 18px;border-top:1px solid #edf1f5;font-size:11px}.segment-picker{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.segment-picker button{min-height:32px;padding:0 11px;border-radius:999px;border:1px solid #d6dee8;background:#fff;color:#44546b;font-size:12px;font-weight:700}.segment-picker button:hover{background:#f5f8fb}.segment-picker button.active{border-color:#9dc2f5;background:#e8f1ff;color:#1559aa}.notes-segments{margin:0 18px 10px}.library-tabs{display:flex;gap:4px;margin:0 14px 10px;padding:3px;border-radius:10px;background:#f0f4f8}.library-tabs button{flex:1;min-height:34px;border-radius:8px;background:transparent;color:#566376;font-size:13px;font-weight:700}.library-tabs button[aria-selected=true]{background:#fff;color:#172033;box-shadow:0 1px 3px #1720331f}.library .segment-picker{margin:0 14px 10px}.library-group{padding:10px 10px 4px;color:#7b8799;text-transform:uppercase;letter-spacing:.11em;font-weight:800;font-size:10px}.library-summary{font-size:12px;color:#566376;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.library-badge{display:inline-block;margin-right:6px;padding:1px 7px;border-radius:999px;background:#eef2f6;color:#566376;font-size:10px;font-weight:800}@media(max-width:820px){.modal-backdrop{padding:0}.library,.notes-modal{width:100%;max-height:100%;height:100%;border-radius:0}}.print-sheet{display:none}@media print{body{background:#fff}.app-shell,.modal-backdrop{display:none!important}.print-sheet{display:block;color:#111827;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}.print-sheet h1{margin:0 0 10px;font-size:20pt}.print-sheet img{display:block;width:100%;max-height:17cm;object-fit:contain}.print-caption{margin:6px 0 0;color:#6b7280;font-size:9pt}.print-notes{margin-top:14px;padding-top:10px;border-top:1px solid #d6dee8;font-size:11pt;line-height:1.5;white-space:pre-wrap}.print-footer{display:flex;justify-content:space-between;margin-top:18px;padding-top:8px;border-top:1px solid #edf1f5;color:#9aa4b2;font-size:8.5pt}@page{size:A4 portrait;margin:15mm}}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%);z-index:30;padding:9px 16px;border-radius:999px;pointer-events:none;background:#172033eb;color:#fff;font-size:13px;font-weight:650;box-shadow:0 10px 26px #17203340}.view-hint{position:absolute;left:50%;top:10px;transform:translate(-50%);z-index:3;pointer-events:none;padding:4px 10px;border-radius:999px;background:#ffffffeb;border:1px solid #dce4ed;color:#6e7c8f;font-size:11px;font-weight:700}.topbar-menu .menu-danger:hover:not(:disabled){background:#fff0f1}.workspace{min-height:0;display:grid;grid-template-columns:88px minmax(0,1fr) 260px}.tool-rail{background:#fff;border-right:1px solid #dce4ed;padding:12px 8px;display:flex;flex-direction:column;gap:5px}.tool-button{min-height:62px;padding:7px 5px;border-radius:12px;background:transparent;color:#657188;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11px;font-weight:650}.tool-button:hover{background:#f3f6fa;color:#243449}.tool-button.active{background:#e8f1ff;color:#1559aa;box-shadow:inset 0 0 0 1px #bdd8ff}.tool-menu{position:fixed;z-index:15;min-width:170px;padding:5px;display:flex;flex-direction:column;gap:2px;background:#fff;border:1px solid #dce4ed;border-radius:12px;box-shadow:0 12px 28px #2434492e}.tool-menu button{width:100%;min-height:42px;padding:0 10px;border-radius:8px;display:flex;align-items:center;gap:9px;background:transparent;color:#26354b;font-size:14px;font-weight:650}.tool-menu button:hover{background:#f0f4f8}.tool-menu button.active{background:#e8f1ff;color:#1559aa}.canvas-panel{position:relative;min-width:0;min-height:0;overflow:hidden;background:#dfe8f1}.canvas-shell{position:absolute;inset:0;touch-action:none}.inspector{background:#fff;border-left:1px solid #dce4ed;padding:18px 16px;overflow:auto}.inspector section{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #edf1f5}.inspector h2{margin:4px 0 14px;font-size:17px}.section-kicker{color:#7b8799;text-transform:uppercase;letter-spacing:.11em;font-weight:800;font-size:10px}.inspector label{display:grid;gap:6px;margin:12px 0;color:#566376;font-size:12px;font-weight:700}.inspector select{width:100%;border:1px solid #d6dee8;border-radius:9px;background:#fff;min-height:39px;padding:0 10px;color:#1d2c40}.muted{color:#738096;line-height:1.45;font-size:12px}.selection-card{padding:10px 12px;margin:10px 0;background:#eff6ff;border-radius:9px;color:#255a96;font-size:12px;font-weight:700}@media(max-width:820px){.app-shell{grid-template-rows:56px 1fr}.topbar{padding:0 10px}.brand{display:none}.title-input{font-size:14px;font-weight:650}.primary-button{padding:0 10px}.workspace{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto 68px}.canvas-panel{grid-row:1}.tool-rail{grid-row:3;border-right:0;border-top:1px solid #dce4ed;flex-direction:row;overflow-x:auto;padding:6px 8px;gap:4px}.tool-button{flex:1 0 64px;min-width:64px;min-height:54px;padding-left:2px;padding-right:2px}.inspector{display:none}}.checkbox-label{grid-template-columns:auto 1fr!important;align-items:center;justify-content:start;gap:8px!important}.checkbox-label input{margin:0;width:16px;height:16px;accent-color:#1559aa}.mobile-route-controls{display:none;flex-direction:column;flex:0 0 auto;align-items:stretch;justify-content:center;gap:3px;padding:5px 8px;background:#fff;border-top:1px solid #dce4ed}.mobile-route-row{display:flex;align-items:center;justify-content:center;gap:4px}.mobile-route-row+.mobile-route-row{border-top:1px solid #e6ecf3;padding-top:3px}.mobile-route-controls button{min-height:34px;flex:1 1 auto;justify-content:center;padding:0 8px;border-radius:8px;background:transparent;color:#5f6e82;font-size:11px;font-weight:700;white-space:nowrap;display:inline-flex;align-items:center;gap:4px}.mobile-route-controls button.active{background:#e8f1ff;color:#1559aa}.mobile-route-controls .mobile-delete{background:#fff0f1;color:#b4232f}@media(max-width:820px){.mobile-route-controls{display:flex;grid-row:2}}
