:root{--host-bg: #eef1f4;--host-text: #1b2127;--host-muted: #56616c;--host-border: #cfd5db;--host-accent: #c41e3a;color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:100%;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;background:var(--host-bg);color:var(--host-text);min-height:100vh;display:flex;flex-direction:column}.host-bar{padding:.4rem 1.25rem;border-top:3px solid var(--host-accent);border-bottom:1px solid var(--host-border);background:#fff;box-shadow:0 1px 2px #00000008}.host-bar-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;max-width:90rem;margin:0 auto}.host-bar h1{margin:0;font-size:1rem;font-weight:700;letter-spacing:-.015em;color:var(--host-text);display:flex;align-items:center;gap:.5rem}.host-bar h1:after{content:"S1000D Authoring";font-size:.625rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;padding:.125rem .4375rem;border-radius:9999px;background:#c41e3a14;color:var(--host-accent);border:1px solid rgba(196,30,58,.2)}.host-bar p{margin:0;font-size:.75rem;color:var(--host-muted)}.host-main{display:flex;flex-direction:column;gap:.5rem;max-width:90rem;width:100%;margin:0 auto;padding:.5rem 1rem .75rem;flex:1 1 auto}.host-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;background:#fff;border:1px solid var(--host-border);border-radius:6px;padding:.375rem .75rem;box-shadow:0 1px 2px #00000008;min-height:2.25rem}.host-controls label{font-size:.8125rem;font-weight:600;color:var(--host-text);letter-spacing:.01em;display:inline-flex;align-items:center;gap:.375rem}.host-controls select{font-family:ui-monospace,Cascadia Mono,monospace;font-size:.8125rem;color:var(--host-text);background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2356616c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .625rem center;appearance:none;-webkit-appearance:none;height:1.875rem;padding:0 2rem 0 .625rem;border:1px solid var(--host-border);border-radius:4px;cursor:pointer;box-shadow:0 1px 2px #0000000a;transition:border-color .14s ease,box-shadow .14s ease;max-width:100%}.host-controls select:hover{border-color:#aeb6bf}.host-controls select:focus-visible{outline:2px solid var(--host-accent);outline-offset:2px;border-color:var(--host-accent)}#import-button,.host-button{font-family:inherit;font-size:.8125rem;font-weight:500;height:1.875rem;line-height:1.4;color:var(--host-text);background:#fff;border:1px solid var(--host-border);border-radius:4px;padding:0 .625rem;cursor:pointer;box-shadow:0 1px 2px #0000000a;transition:all .14s cubic-bezier(.4,0,.2,1);display:inline-flex;align-items:center;justify-content:center;gap:.375rem}#import-button:hover,.host-button:hover:not(:disabled){background:#f3f5f7;border-color:#aeb6bf;color:var(--host-accent)}#import-button:active,.host-button:active:not(:disabled){background:#e9ecef}#import-button:focus-visible,.host-button:focus-visible{outline:2px solid var(--host-accent);outline-offset:2px;border-color:var(--host-accent)}.host-button.primary{background:var(--host-accent);border-color:var(--host-accent);color:#fff;box-shadow:0 1px 2px #c41e3a33}.host-button.primary:hover:not(:disabled){background:#ad1530;border-color:#ad1530;color:#fff}.host-button.primary:active:not(:disabled){background:#941026}#import-status{font-size:.8125rem;color:var(--host-muted);font-weight:500;font-variant-numeric:tabular-nums}neo-xml-editor{display:block;flex:1 1 auto;height:calc(100vh - 8.25rem);min-height:32rem;border-radius:6px;box-shadow:0 1px 3px #0000000f,0 4px 6px -2px #00000008}details.host-log{background:#fff;border:1px solid var(--host-border);border-radius:6px;padding:.25rem .75rem;box-shadow:0 1px 2px #00000008;flex:0 0 auto}details.host-log summary{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--host-muted);cursor:pointer;padding:.25rem 0;-webkit-user-select:none;user-select:none}details.host-log summary:hover{color:var(--host-text)}details.host-log summary:focus-visible{outline:2px solid var(--host-accent);outline-offset:2px}details.host-log[open] ol{list-style:none;margin:.375rem 0 .25rem;padding:0;font-family:ui-monospace,Cascadia Mono,monospace;font-size:.75rem;line-height:1.6;max-height:7rem;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--host-border) transparent;display:flex;flex-direction:column;gap:.25rem}details.host-log li{padding:.25rem .5rem;border-radius:4px;background:#f8fafc;border-left:2px solid var(--host-border);color:var(--host-muted);word-break:break-all}details.host-log li:first-child{border-left-color:var(--host-accent);color:var(--host-text);background:#fdf2f4}.host-dialog{width:min(44rem,calc(100vw - 2rem));padding:1.25rem 1.5rem;border:1px solid var(--host-border);border-radius:10px;box-shadow:0 12px 32px #0000002e;color:var(--host-text)}.host-dialog::backdrop{background:#1b212766}.host-dialog h2{margin:0 0 1rem;font-size:1.0625rem}.host-dialog fieldset{margin:0 0 .75rem;padding:.5rem .75rem .75rem;border:1px solid var(--host-border);border-radius:6px}.host-dialog legend{padding:0 .25rem;font-size:.8125rem;font-weight:700}.host-dialog label{display:grid;gap:.25rem;font-size:.75rem;font-weight:600;color:var(--host-muted)}.host-dialog input:not([type=radio]){font:inherit;font-size:.875rem;padding:.3125rem .5rem;border:1px solid var(--host-border);border-radius:5px;color:var(--host-text)}.host-dialog input[aria-invalid=true]{border-color:var(--host-accent);background:#fdeeec}.new-row{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem}.new-row label{display:inline-flex;align-items:center;gap:.375rem;font-size:.8125rem;color:var(--host-text)}.dmc-builder{display:flex;flex-wrap:wrap;gap:.5rem .625rem}.dmc-builder input{font-family:ui-monospace,Cascadia Mono,monospace;text-transform:uppercase}.dmc-preview{margin:0 0 .75rem;font-family:ui-monospace,Cascadia Mono,monospace;font-size:.875rem;font-weight:600}.dmc-preview[data-invalid]{color:var(--host-accent)}.new-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:.625rem .75rem}.new-grid .wide{grid-column:1 / -1}.new-error{min-height:1.25rem;margin:.75rem 0 0;font-size:.8125rem;color:var(--host-accent)}.new-buttons{display:flex;gap:.5rem;margin-top:.5rem}
