.layout{display:flex;width:100%;min-height:100vh;align-items:stretch}.sidebar{flex:0 0 240px;box-sizing:border-box;padding:1rem;border-right:1px solid var(--border);overflow-y:auto;max-height:100vh;position:sticky;top:0}.sidebar-brand{display:block;font-size:1.3rem;font-weight:700;margin-bottom:1rem}.sidebar-heading{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;opacity:.6;margin:1rem 0 .25rem}.sidebar ul{list-style:none;margin:0;padding:0}.sidebar li a{display:block;padding:.3rem .5rem;border-radius:6px}.sidebar li a[aria-current=page]{background:var(--accent-soft)}.content{flex:1;min-width:0;padding:1.5rem 2rem}.home{max-width:960px;margin:0 auto}.home h1{margin-top:0}.home-group h2{font-size:1.1rem;margin:1.5rem 0 .5rem}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.75rem}.card{display:flex;flex-direction:column;gap:.25rem;padding:.75rem 1rem;border:1px solid var(--border);border-radius:8px;color:inherit}.card:hover{border-color:var(--accent)}.tool-page h1{margin-top:0;font-size:1.8rem}.muted{opacity:.6}.small{font-size:.85rem}@media (max-width: 720px){.layout{flex-direction:column}.sidebar{position:static;max-height:none;flex-basis:auto;border-right:none;border-bottom:1px solid var(--border)}}.sidebar-search{display:flex;justify-content:space-between;align-items:center;width:100%;padding:.4em .6em;font-size:.9rem;opacity:.85}kbd{font-family:inherit;font-size:.75rem;padding:0 .35em;border:1px solid rgba(128,128,128,.5);border-radius:4px}.palette-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;justify-content:center;align-items:flex-start;padding-top:15vh;z-index:100}.palette{width:min(560px,92vw);max-height:60vh;display:flex;flex-direction:column;border-radius:10px;border:1px solid rgba(128,128,128,.4);background:var(--surface);overflow:hidden}.palette-input{padding:.9rem 1rem;font-size:1.05rem;border:none;border-bottom:1px solid var(--border);background:transparent;color:inherit;outline:none}.palette-results{list-style:none;margin:0;padding:.25rem;overflow-y:auto}.palette-item,.palette-empty{display:flex;flex-direction:column;padding:.5rem .75rem;border-radius:6px;cursor:pointer}.palette-item.active{background:var(--accent-soft)}.theme-toggle{width:100%;margin-top:1rem;padding:.4em .6em;font-size:.9rem;text-align:left}.panes{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1rem}.pane{display:flex;flex-direction:column;gap:.35rem;min-width:0}.pane-header{display:flex;justify-content:space-between;align-items:center;gap:.5rem;font-weight:600}.pane-actions{display:inline-flex;gap:.35rem}.pane-text{box-sizing:border-box;width:100%;padding:.6rem .75rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9rem;color:inherit;background:var(--surface);border:1px solid var(--border);border-radius:8px;resize:vertical}.pane-text:focus{outline:2px solid var(--accent);outline-offset:-1px}.btn-small{padding:.2em .7em;font-size:.85rem;border-color:var(--border)}.btn-small:disabled{opacity:.5;cursor:default}.error-display{margin-top:.5rem;padding:.6rem .8rem;border:1px solid #e5484d;border-radius:8px;background:#e5484d1f}.error-display pre{margin:.25rem 0 0;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85rem}.dropzone{padding:1.5rem;text-align:center;border:2px dashed var(--border);border-radius:10px;cursor:pointer}.dropzone:hover,.dropzone:focus-visible,.dropzone.dragging{border-color:var(--accent);background:var(--accent-soft)}.favorite[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft)}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem;margin-bottom:.75rem}.toolbar select{padding:.2em .4em;color:inherit;background:var(--surface);border:1px solid var(--border);border-radius:6px}.status{margin:0 0 .75rem;font-size:.9rem;opacity:.8}.status-bad{color:#e5484d;opacity:1}.diff-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem}.diff-item{display:flex;flex-wrap:wrap;gap:.25rem .75rem;align-items:baseline;padding:.35rem .6rem;border-left:4px solid;border-radius:4px;font-size:.9rem}.diff-item code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;word-break:break-all}.diff-symbol{font-weight:700;width:1ch}.diff-added{border-color:#30a46c;background:#30a46c1f}.diff-removed{border-color:#e5484d;background:#e5484d1f}.diff-changed{border-color:#f5a524;background:#f5a5241f}.diff-left{text-decoration:line-through;opacity:.8}.base-input{width:4.5em;padding:.2em .4em;color:inherit;background:var(--surface);border:1px solid var(--border);border-radius:6px}.base-input[aria-invalid=true]{border-color:#e5484d}button[aria-pressed=true].btn-small{border-color:var(--accent);background:var(--accent-soft)}input.pane-text{font-size:1rem}.results{margin:1rem 0 0;display:flex;flex-direction:column;gap:.5rem}.result-row{display:grid;grid-template-columns:minmax(130px,200px) 1fr;align-items:center;gap:.5rem 1rem}.result-row dt{font-weight:600}.result-row dd{display:flex;align-items:center;gap:.5rem;margin:0;min-width:0}.result-row code{flex:1;min-width:0;word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.segmented{display:inline-flex;gap:.25rem}.warning{margin:0 0 .5rem;padding:.5rem .8rem;border:1px solid #f5a524;border-radius:8px;background:#f5a5241f;font-size:.9rem}.token-status{font-weight:600}.token-expired,.token-not-yet-valid{color:#e5484d}.token-valid{color:#30a46c}.match-badge{color:#30a46c;font-weight:600}.section-title{font-size:1.15rem;margin:1.5rem 0 .5rem}.regex-highlight{box-sizing:border-box;margin:0;padding:.6rem .75rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9rem;white-space:pre-wrap;word-break:break-word;background:var(--surface);border:1px solid var(--border);border-radius:8px}.regex-match{background:#3e63dd47;color:inherit;border-radius:3px;padding:0 1px}.regex-match-alt{background:#30a46c47}.regex-groups{display:flex;flex-wrap:wrap;gap:.35rem}.regex-group-chip{font-size:.8rem;padding:.1rem .45rem;border:1px solid var(--border);border-radius:6px}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color-scheme:dark;--bg: #242424;--fg: rgba(255, 255, 255, .87);--surface: #1f1f1f;--button-bg: #1a1a1a;--border: rgba(128, 128, 128, .3);--accent: #646cff;--accent-hover: #535bf2;--accent-soft: rgba(100, 108, 255, .25);color:var(--fg);background-color:var(--bg)}:root[data-theme=light]{color-scheme:light;--bg: #ffffff;--fg: #213547;--surface: #ffffff;--button-bg: #f9f9f9;--accent-hover: #747bff;--accent-soft: rgba(100, 108, 255, .18)}a{font-weight:500;color:var(--accent);text-decoration:inherit}a:hover{color:var(--accent-hover)}body{margin:0;min-width:320px;min-height:100vh}h1{font-size:2.4em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;color:inherit;background-color:var(--button-bg);cursor:pointer;transition:border-color .25s}button:hover{border-color:var(--accent)}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}
