:root{font-family:Arial,Helvetica,sans-serif;color:#2d3540;background:#f4f6f8;font-size:14px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #91c9ff;outline-offset:2px}.topbar{background:#243b53;color:white;box-shadow:0 2px 8px #1c34451c}.topbar-inner{max-width:1380px;margin:auto;min-height:60px;padding:0 24px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:10px;align-items:center;color:white;text-decoration:none;font-size:20px;font-weight:700;letter-spacing:-.6px}.brand-icon{display:grid;place-items:center;background:#37a57a;color:white;border-radius:7px;width:31px;height:31px;font:700 15px monospace}.brand small{font-size:11px;color:#aabfd1;font-weight:400;letter-spacing:0;margin-left:6px}.topbar nav{display:flex;gap:24px;align-items:center}.topbar nav a,.topbar nav button{background:none;border:0;color:#d4e1ec;text-decoration:none;font-size:13px}.topbar nav a:hover,.topbar nav button:hover{color:white}.workspace{max-width:1380px;margin:0 auto;padding:32px 24px 60px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:#5f819c;margin-bottom:5px}.page-heading h1{font-size:26px;letter-spacing:-.8px;margin:0 0 5px;color:#243b53;font-weight:600}.page-heading p{color:#758493;margin:0}.heading-actions{display:flex;gap:10px}.button{border-radius:4px;padding:9px 14px;font-weight:600;white-space:nowrap}.button-light{background:white;border:1px solid #cbd6df;color:#345067}.button-light:hover{background:#f2f7fa}.button-blue{background:#297da9;color:white;border:1px solid #297da9}.button-blue:hover{background:#226d96}.layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px}.main-column,.side-column{min-width:0;display:flex;flex-direction:column;gap:20px}.panel{background:white;border:1px solid #d9e2e9;border-radius:5px;box-shadow:0 1px 3px #16324c0a;overflow:hidden}.panel-bar{height:44px;border-bottom:1px solid #e2e8ee;background:#fafcfd;display:flex;align-items:stretch;justify-content:space-between}.tabs{display:flex;height:100%;padding-left:16px}.tab{background:none;border:0;border-bottom:3px solid transparent;padding:0 18px;color:#64798a;font-weight:600}.tab.active{color:#287ea7;border-bottom-color:#36a7d4}.panel-bar-right{display:flex;align-items:center;gap:8px;color:#82919d;font-size:12px;padding-right:17px}.live-dot{width:7px;height:7px;border-radius:50%;background:#44b481}.text-button{border:0;background:none;color:#287da5;font-weight:600;font-size:12px}.text-button:hover{text-decoration:underline}.panel-bar-right .text-button{margin-left:12px}.diagram-wrap{min-height:310px;max-height:520px;overflow:auto;background-color:#fff;background-image:linear-gradient(#eef2f5 1px,transparent 1px),linear-gradient(90deg,#eef2f5 1px,transparent 1px);background-size:20px 20px;display:flex;align-items:center;justify-content:center;padding:24px}.diagram{min-width:max-content}.diagram svg{display:block;max-width:none}.track{stroke:#546575;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}.secondary-track{stroke:#869aa8}.endpoint{fill:#4da673}.token-frame{fill:#fff;stroke:#647d91;stroke-width:1.5}.token-node .token-frame{fill:#f7fbfd}.class-node .token-frame{fill:#eff8fc;stroke:#67a4c6}.anchor-node .token-frame{fill:#f4f5fb;stroke:#8795ad}.group-frame{fill:#f8fbfd;stroke:#96b5c7;stroke-width:1.5;stroke-dasharray:5 4}.node-label{fill:#2c4558;font:600 13px ui-monospace,SFMono-Regular,Menlo,monospace}.group-label{fill:#6b8799;font:600 11px Arial,sans-serif}.repeat-label{fill:#7691a1;font:600 11px ui-monospace,SFMono-Regular,Menlo,monospace}.diagram-error{color:#b05d50;background:#fff8f5;border:1px solid #f0d5ca;border-radius:4px;padding:14px;max-width:500px}.text-view{min-height:310px;max-height:520px;overflow:auto;padding:22px 28px;background:#fff}.text-view ol{margin:0;padding-left:23px}.text-view li{padding:5px 0;color:#476171;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.text-view li.depth-1{margin-left:14px}.text-view li.depth-2{margin-left:28px}.text-view li.depth-3{margin-left:42px}.section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-header>label,.section-header h2{color:#344d61;font-weight:700;font-size:14px;margin:0}.section-header>span{color:#9baab6;font-size:12px}.editor-panel,.test-panel,.tests-panel{padding:19px 22px}.pattern-row{display:flex;align-items:flex-start;border:1px solid #bdcdd9;border-radius:4px;background:#fbfcfd;min-height:70px}.slash{font:22px ui-monospace,SFMono-Regular,Menlo,monospace;color:#76a5bb;padding:16px 8px 0 13px}.pattern-row textarea{resize:vertical;width:100%;border:0;background:transparent;outline:none;padding:17px 0;min-height:68px;color:#2d5267;font:16px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace}.editor-options{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:14px}.flavor-label{font-weight:600;color:#607688;white-space:nowrap}.flavor-label select{margin-left:8px;border:1px solid #c9d6df;border-radius:4px;padding:6px 25px 6px 8px;color:#354f60;background:white}.flag-group{display:flex;flex-wrap:wrap;gap:15px;color:#6a7f90;font-size:12px}.flag-group label{display:flex;align-items:center;gap:3px;white-space:nowrap}.flag-group input{accent-color:#2e8ab4}.flag-group b{font-family:monospace;color:#405b71}.test-panel textarea{display:block;width:100%;border:1px solid #cbd8e0;border-radius:4px;padding:12px;min-height:90px;resize:vertical;color:#354a59;background:#fff;font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace}.count-pill{background:#edf5f8;color:#50839b!important;border-radius:20px;padding:4px 9px;font-size:11px!important;font-weight:700}.result-heading{padding-top:17px;color:#556c7e}.result-heading strong{color:#405c70}.result-heading .matched{color:#308861;font-weight:700}.result-heading .unmatched{color:#ad645e;font-weight:700}.match-preview{min-height:57px;margin-top:11px;border:1px solid #e1e9ee;border-radius:4px;background:#fbfcfd;padding:13px;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;color:#415a69}.match-preview:empty:before{content:'Your test result will appear here.';color:#a4b0b9}.match-preview mark{background:#ccefd7;color:#244b37;padding:1px;border-radius:2px}.match-details{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.group-chip{border:1px solid #d8e4eb;border-radius:3px;background:#f7fafb;padding:6px 9px;color:#637989;font-size:12px}.group-chip b{color:#34566b;margin-right:6px}.tests-panel .section-header{align-items:flex-start}.tests-panel h2{margin:0 0 5px}.tests-panel p{margin:0;color:#8797a3;font-size:12px}.add-test{display:flex;gap:8px;margin:16px 0}.add-test input{min-width:0;flex:1;border:1px solid #cbd8e0;border-radius:4px;padding:10px}.test-list{border-top:1px solid #e8eef2}.empty-state{padding:23px 0!important;text-align:center}.test-item{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e8eef2;padding:11px 4px;font-size:12px}.test-item code{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#395669}.test-item .pass{color:#348a61;font-weight:700}.test-item .fail{color:#bd6459;font-weight:700}.test-item .expected{color:#8a9ba6}.test-item button{border:0;background:none;color:#8da0ae;font-size:18px;line-height:1}.test-item button:hover{color:#b95252}.side-panel{padding:17px}.side-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.side-heading h2{font-size:14px;color:#3a5367;margin:0}.side-heading span{font-size:10px;letter-spacing:1px;font-weight:700;color:#a2b3bf}.side-panel input[type=search]{width:100%;border:1px solid #d1dce4;border-radius:4px;padding:9px 10px;margin-bottom:10px;font-size:12px}.library-item{display:block;width:100%;padding:10px 5px;text-align:left;border:0;border-bottom:1px solid #edf1f4;background:white;color:#486679;font-size:12px}.library-item:hover{background:#f5fafc}.library-item b{display:block;margin-bottom:4px}.library-item code{display:block;color:#9babba;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.cheatsheet{display:grid;gap:0}.cheat-row{display:grid;grid-template-columns:62px 1fr;gap:8px;border-top:1px solid #edf1f4;padding:9px 1px;font-size:11px;color:#718797}.cheat-row code{font-weight:700;color:#2e789d}.side-copy{font-size:12px;color:#8a9aa6;line-height:1.5}.code-snippet{background:#f5f8fa;border:1px solid #e1e8ed;border-radius:4px;padding:10px;overflow:auto;color:#39596c;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;min-height:53px}.full-width{width:100%}.toast{position:fixed;right:22px;bottom:20px;background:#253c50;color:white;border-radius:5px;padding:11px 16px;box-shadow:0 6px 24px #20364a35;opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translateY(0)}@media(max-width:900px){.layout{grid-template-columns:1fr}.side-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.side-column .side-panel:last-child{grid-column:span 2}}@media(max-width:640px){.workspace{padding:22px 12px 45px}.topbar-inner{padding:0 12px}.brand small,.topbar nav a{display:none}.page-heading{align-items:flex-start}.page-heading h1{font-size:22px}.page-heading p{font-size:12px}.heading-actions{flex-direction:column}.heading-actions .button{padding:7px 9px;font-size:11px}.editor-panel,.test-panel,.tests-panel{padding:15px}.panel-bar-right span:not(.live-dot){display:none}.add-test{flex-wrap:wrap}.add-test input{flex-basis:100%}.add-test .button{flex:1}.side-column{display:flex}.diagram-wrap{justify-content:flex-start}}
