      .tool-footer {
        position: relative;
      }
      #footer-stats {
        margin-left: auto;
      }
      #log-drawer {
        position: absolute;
        bottom: 100%;
        right: 0;
        width: min(480px, 100vw);
        max-height: 320px;
        background: var(--surface);
        border: 1px solid var(--border-strong);
        border-bottom: none;
        border-radius: var(--radius-large) var(--radius-large) 0 0;
        display: flex;
        flex-direction: column;
        z-index: 100;
        box-shadow: var(--shadow-large);
      }
      #log-drawer[hidden],
      #file-search[hidden] {
        display: none;
      }
      #log-drawer-body {
        flex: 1;
        overflow-y: auto;
        padding: 8px 12px;
        font-family: var(--font-mono);
        font-size: 11px;
        line-height: 1.6;
      }
      .log-entry {
        color: var(--text-muted);
        white-space: pre-wrap;
        word-break: break-all;
      }
      .log-entry.log-error {
        color: var(--danger);
      }
      .log-entry.log-ok {
        color: var(--success);
      }
      .log-entry .log-ts {
        color: var(--text-subtle);
        margin-right: 8px;
      }

      #explorer-tree {
        overflow-anchor: none;
      }

      .disk-name-input {
        flex: 1;
        min-width: 0;
        background: transparent;
        border: 1px solid transparent;
        border-radius: var(--radius-small);
        color: var(--text);
        font-family: var(--font-mono);
        font-size: 12px;
        font-weight: 500;
        padding: 1px 4px;
        outline: none;
      }
      .disk-name-input:focus {
        background: var(--background);
        border-color: var(--accent);
      }

      .writable-hint {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 32px 24px;
        color: var(--text-subtle);
        font-size: 12px;
        text-align: center;
        line-height: 1.5;
      }
      .writable-hint .icon {
        width: 32px;
        height: 32px;
        opacity: 0.3;
      }
      .writable-actions {
        display: flex;
        gap: 8px;
        margin-top: 4px;
      }
      .modal-backdrop {
        position: fixed;
        inset: 0;
        z-index: 200;
        background: var(--overlay);
        backdrop-filter: blur(2px);
      }
      .modal-backdrop > [role="dialog"][aria-modal="true"] {
        width: min(600px, calc(100% - 32px));
      }
      .modal-backdrop h2 {
        margin: 0 0 16px;
        font-size: 16px;
        font-weight: 600;
        color: var(--text);
      }      .preset-group-header {
        color: var(--accent-text);
        font-weight: 600;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 16px 0 8px;
      }
      .preset-group-header:first-child {
        margin-top: 0;
      }
      .preset-option {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 4px 0;
      }
      .preset-option input[type="checkbox"] {
        accent-color: var(--accent);
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        cursor: pointer;
      }
      .preset-option label {
        color: var(--text);
        font-size: 13px;
        cursor: pointer;
        user-select: none;
      }
      .preset-text-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 4px 0 4px 24px;
      }
      .preset-text-row label {
        color: var(--text-muted);
        font-size: 12px;
        white-space: nowrap;
      }
      .preset-text-row input[type="text"] {
        font-family: var(--font-mono);
        padding: 4px 8px;
        width: 160px;
      }
      .preset-xml-preview {
        background: var(--background);
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 12px;
        margin-top: 16px;
        font-family: var(--font-mono);
        font-size: 12px;
        line-height: 1.5;
        color: var(--text-muted);
        overflow: auto;
        max-height: 200px;
        white-space: pre;
        tab-size: 2;
      }
      .preset-xml-label {
        font-size: 11px;
        color: var(--text-subtle);
        margin-top: 16px;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .preset-xml-label-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
      }
      .xml-edited-dot {
        display: none;
        align-items: center;
        gap: 4px;
        font-size: 10px;
        color: var(--accent-text);
      }
      .xml-edited-dot.visible {
        display: flex;
      }
      .xml-edited-dot::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent);
      }

      .xml-editor {
        position: relative;
        height: 250px;
        overflow: hidden;
        border: 1px solid var(--border-strong);
        border-radius: 4px;
        background: var(--background);
        margin-top: 4px;
      }
      .xml-textarea {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        color: transparent;
        caret-color: var(--text);
        font-family: var(--font-mono);
        font-size: 12px;
        line-height: 1.5;
        padding: 8px 8px 8px 40px;
        border: none;
        outline: none;
        resize: none;
        white-space: pre;
        overflow: auto;
        tab-size: 2;
        z-index: 1;
      }
      .xml-textarea::selection {
        background: color-mix(in oklch, var(--accent) 25%, transparent);
      }
      .xml-highlight {
        position: absolute;
        inset: 0;
        font-family: var(--font-mono);
        font-size: 12px;
        line-height: 1.5;
        padding: 8px 8px 8px 40px;
        margin: 0;
        white-space: pre;
        overflow: auto;
        pointer-events: none;
        z-index: 0;
        color: var(--text);
      }
      .xml-line-numbers {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 32px;
        padding: 8px 4px;
        text-align: right;
        color: var(--text-subtle);
        font-size: 12px;
        line-height: 1.5;
        font-family: var(--font-mono);
        background: var(--surface);
        border-right: 1px solid var(--border);
        z-index: 2;
        overflow: hidden;
        user-select: none;
      }
      .xml-ln { color: var(--text-subtle); }
      .xml-tag { color: var(--accent-text); }
      .xml-attr { color: var(--info); }
      .xml-attrval { color: var(--success); }
      .xml-comment { color: var(--text-subtle); }
      .xml-text { color: var(--text); }
      .xml-decl { color: var(--text-muted); }
      .xml-entity { color: var(--accent-text); }

      .preset-buttons {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        margin-top: 20px;
      }
      .preset-file-list {
        margin-top: 6px;
      }
      .preset-file-row {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 4px 8px;
        font-size: 11px;
        font-family: var(--font-mono);
      }
      .preset-file-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent);
        flex-shrink: 0;
      }
      .preset-file-name {
        color: var(--text);
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .preset-file-size {
        color: var(--text-subtle);
        flex-shrink: 0;
      }
      .hex-view { padding: 8px 12px; }
      #search-stats strong {
        color: var(--text-muted);
        font-weight: 500;
      }
      #search-stats:empty {
        display: none;
      }
      .palette-item .badge {
        flex-shrink: 0;
      }
      #file-search .icon {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
      }
      #file-search .palette-search .icon {
        width: 18px;
        height: 18px;
      }
      .batch-summary {
        display: flex;
        gap: 16px;
        align-items: center;
        font-size: 12px;
        color: var(--text-muted);
        margin-bottom: 12px;
        flex-wrap: wrap;
      }
      .batch-summary-stat {
        display: flex;
        align-items: center;
        gap: 4px;
      }
      .batch-summary-stat strong {
        color: var(--text);
        font-weight: 600;
      }
      .batch-overall-bar {
        width: 100%;
        height: 6px;
        background: var(--surface-raised);
        border-radius: 3px;
        overflow: hidden;
        margin-bottom: 16px;
      }
      .batch-overall-fill {
        height: 100%;
        background: var(--accent);
        border-radius: 3px;
        transition: width 200ms ease;
      }
      .batch-queue-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 16px;
        max-height: 320px;
        overflow-y: auto;
      }
      .batch-queue-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        background: var(--background);
        border: 1px solid var(--border);
        border-radius: 6px;
        font-size: 12px;
        color: var(--text);
      }
      .batch-queue-item[data-status="completed"] { border-color: var(--success); }
      .batch-queue-item[data-status="failed"] { border-color: var(--danger); }
      .batch-queue-item[data-status="processing"] { border-color: var(--accent); }
      .batch-item-icon {
        flex-shrink: 0;
        width: 16px;
        text-align: center;
        font-size: 13px;
        line-height: 1;
      }
      .batch-item-icon.status-pending { color: var(--text-subtle); }
      .batch-item-icon.status-processing { color: var(--accent); }
      .batch-item-icon.status-completed { color: var(--success); }
      .batch-item-icon.status-failed { color: var(--danger); }
      .batch-item-icon.status-cancelled { color: var(--text-subtle); }
      @keyframes batch-spin { to { transform: rotate(360deg); } }
      .batch-item-icon.status-processing { animation: batch-spin 1.2s linear infinite; }
      .batch-item-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
      }
      .batch-item-name {
        font-family: var(--font-mono);
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .batch-item-arrow { color: var(--text-subtle); flex-shrink: 0; }
      .batch-item-detail { font-size: 11px; color: var(--text-subtle); }
      .batch-item-detail.detail-savings { color: var(--success); }
      .batch-item-detail.detail-error { color: var(--danger); }
      .batch-item-bar {
        height: 3px;
        background: var(--surface-raised);
        border-radius: 2px;
        overflow: hidden;
      }
      .batch-item-bar-fill {
        height: 100%;
        background: var(--accent);
        border-radius: 2px;
        transition: width 200ms ease;
      }
      .batch-buttons {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
      }
      .modal-backdrop .drop-zone {
        margin-bottom: 16px;
      }
      .batch-complete-summary {
        background: var(--background);
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 12px;
        margin-bottom: 16px;
        font-size: 12px;
        color: var(--text-muted);
        line-height: 1.6;
      }
      .batch-complete-summary strong { color: var(--text); }
      .batch-complete-summary .savings-highlight { color: var(--success); font-weight: 600; }
      main[data-empty] > #info-panel, main[data-empty] > #right-resize { display: none; }
      main[data-empty] > #explorer-panel { flex: 1 1 auto; }
      #explorer-empty:not([hidden]) { display: grid; gap: 16px; max-width: 680px; margin: 0 auto; padding: 24px 16px 32px; }
      .ss-intro h2 { margin: 0 0 8px; color: var(--text); font-size: 20px; font-weight: 600; line-height: 1.3; }
      .ss-intro p { margin: 0 0 8px; color: var(--text-muted); font-size: 14px; line-height: 1.55; max-width: 62ch; }
      #explorer-empty > .button { justify-self: start; }
      .ss-restored:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
      #viewer-pane[data-preview="none"] :is(#preview-col, #tab-preview) { display: none; }
      #viewer-pane[data-preview="none"] #hex-col { display: flex; }
      .info-details { border-top: 1px solid var(--border); }
      .info-details > summary { display: flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--text-muted); font-size: 12px; cursor: pointer; list-style: none; }
      .info-details > summary::-webkit-details-marker { display: none; }
      .info-details > .info-grid { padding: 0 12px 8px; }
      .row-menu { position: fixed; z-index: 50; display: flex; flex-direction: column; min-width: 200px; padding: 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-lg, 0 8px 24px rgb(0 0 0 / 0.25)); }
      .row-menu-item { padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
      .row-menu-item:is(:hover, :focus-visible) { background: var(--surface-hover); outline: none; }
      .header-btn-text { width: auto; gap: 6px; padding: 0 8px; font-size: 12px; }
      .header-btn[hidden] { display: none; }
      .tree-node[data-selected-for-export] > .tree-row { box-shadow: inset 3px 0 var(--accent); }
      .tree-node[data-writable] > .tree-row .tree-actions { position: static; transform: none; flex-shrink: 0; }
      .tree-node[data-writable] > .tree-row .tree-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      @media (pointer: coarse) {
        .header-btn { min-width: 44px; min-height: 44px; }
        .tree-action { width: 40px; height: 40px; }
      }
      #search-stats { flex-direction: column; align-items: flex-start; gap: 2px; }
