  /* ===== Title bar ===== */
  .titlebar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: #fff; padding: 3px 6px;
    font-weight: bold; font-size: 12px;
    border-bottom: 1px solid #000;
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
  }
  .titlebar .meta { font-weight: normal; font-size: 11px; opacity: 0.9; }

  /* ===== Menu bar ===== */
  .menubar {
    background: #c0c0c0; border-bottom: 1px solid #808080;
    padding: 2px 4px; font-size: 11px; color: #000;
    display: flex; gap: 0; flex-shrink: 0;
    position: relative; z-index: 200;
  }
  .menu { position: relative; }
  .menu-btn {
    padding: 2px 8px; cursor: default;
    background: transparent; border: 1px solid transparent;
    font-family: inherit; font-size: 11px; color: #000;
  }
  .menu-btn:hover, .menu.open .menu-btn { background: #000080; color: #fff; }
  .menu-btn u { text-decoration: underline; }
  .menu-dropdown {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 1px;
    background: #c0c0c0; border: 2px outset #ffffff; min-width: 220px;
    z-index: 250; padding: 2px; box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  }
  .menu.open .menu-dropdown { display: block; }
  .menu-dropdown .item {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; padding: 4px 12px 4px 22px;
    color: #000; font-size: 11px; cursor: default; position: relative;
  }
  .menu-dropdown .item:hover { background: #000080; color: #fff; }
  .menu-dropdown .item.disabled { color: #808080; pointer-events: none; }
  .menu-dropdown .shortcut { color: #404040; font-size: 10px; }
  .menu-dropdown .item:hover .shortcut { color: #c0c0c0; }
  .menu-dropdown .sep {
    height: 1px; background: #808080;
    border-bottom: 1px solid #ffffff; margin: 3px 0;
  }
  .menu-dropdown .check { position: absolute; left: 6px; font-size: 10px; }

  /* ===== Bookmark / Folder bar ===== */
  .bookmarkbar {
    background: #c0c0c0; border-bottom: 2px groove #ffffff;
    padding: 4px 6px;
    display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
    position: relative; flex-shrink: 0; z-index: 150;
  }
  .folder { position: relative; }
  .folder-btn {
    background: #c0c0c0; border: 2px outset #ffffff;
    padding: 3px 10px 3px 8px;
    font-family: inherit; font-size: 11px; color: #000; cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px; user-select: none;
  }
  .folder-btn:active, .folder.open .folder-btn {
    border: 2px inset #ffffff; padding: 4px 9px 2px 9px;
  }
  .folder-btn .ico {
    display: inline-block; width: 16px; height: 13px;
    background: #ffcc66; border: 1px solid #806000;
    border-top-color: #ffeeaa; position: relative; flex-shrink: 0;
  }
  .folder-btn .ico::before {
    content: ""; position: absolute; top: -3px; left: 0;
    width: 6px; height: 3px; background: #ffcc66;
    border: 1px solid #806000; border-bottom: none;
  }
  .folder-btn .arrow { font-size: 9px; color: #404040; }
  .dropdown {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 1px;
    background: #c0c0c0; border: 2px outset #ffffff; min-width: 200px;
    z-index: 100; padding: 2px; box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  }
  .folder.open .dropdown { display: block; }
  .dropdown a {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 8px; text-decoration: none; color: #000; font-size: 11px;
  }
  .dropdown a:hover { background: #000080; color: #fff; }
  .dropdown a .doc {
    display: inline-block; width: 11px; height: 13px;
    background: #ffffff; border: 1px solid #000;
    position: relative; flex-shrink: 0;
  }
  .dropdown a .doc::before {
    content: ""; position: absolute; top: 2px; left: 2px; right: 2px;
    height: 1px; background: #000;
    box-shadow: 0 2px 0 #000, 0 4px 0 #000, 0 6px 0 #000;
  }

  /* ===== Workspace ===== */
  .workspace {
    flex: 1; background: #c0c0c0; padding: 4px;
    overflow: hidden; display: flex;
  }
  .content-panel {
    flex: 1; background: #ffffff; border: 2px inset #ffffff;
    padding: 20px; overflow: auto;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px; color: #000; line-height: 1.6;
  }
  .content-panel h2 {
    font-family: Verdana, sans-serif; font-size: 15px;
    margin-bottom: 12px; border-bottom: 1px solid #808080; padding-bottom: 6px;
  }
  .welcome { color: #000080; }
  .welcome strong { color: #000; }
  .breadcrumb {
    font-family: "Courier New", monospace; font-size: 11px;
    background: #ffffe1; border: 1px solid #808080;
    padding: 3px 8px; margin-bottom: 16px; color: #000080;
  }

  /* ===== Tool: full-bleed override (no content-panel padding) ===== */
  .tool-host {
    flex: 1; background: #c0c0c0; border: 2px inset #ffffff;
    padding: 0; overflow: hidden; display: flex; flex-direction: column;
  }

  /* ===== Status bar ===== */
  .statusbar {
    background: #c0c0c0; border-top: 2px groove #ffffff;
    padding: 3px 6px; font-size: 11px;
    display: flex; gap: 4px; color: #000; flex-shrink: 0;
  }
  .statusbar .pane {
    border: 1px inset #ffffff; padding: 1px 8px; min-width: 60px;
  }
  .statusbar .pane.grow { flex: 1; }
  .statusbar .pane.indicator {
    text-align: center; color: #808080; font-weight: normal;
  }
  .statusbar .pane.indicator.active {
    color: #000; font-weight: bold; background: #ffffe1;
  }

  /* ===== Dialogs ===== */
  .dialog-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.15); z-index: 500;
    align-items: center; justify-content: center;
  }
  .dialog-overlay.open { display: flex; }
  .dialog {
    background: #c0c0c0; border: 2px outset #ffffff;
    min-width: 320px; max-width: 600px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
  }
  .dialog-title {
    background: linear-gradient(to right, #000080, #1084d0);
    color: #fff; padding: 3px 6px; font-weight: bold; font-size: 12px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .dialog-title .x-btn {
    width: 16px; height: 14px; background: #c0c0c0;
    border: 1px outset #ffffff; color: #000;
    font-size: 9px; font-weight: bold;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
  }
  .dialog-body { padding: 16px; font-size: 11px; line-height: 1.5; max-height: 70vh; overflow: auto; }
  .dialog-body p { margin-bottom: 8px; }
  .dialog-footer {
    padding: 0 16px 12px; display: flex; justify-content: flex-end; gap: 6px;
  }
  .btn {
    background: #c0c0c0; border: 2px outset #ffffff;
    padding: 3px 14px; font-family: Verdana, sans-serif;
    font-size: 11px; cursor: pointer; min-width: 75px;
  }
  .btn:active { border: 2px inset #ffffff; }
  .btn:disabled { color: #808080; cursor: default; }
  .dialog-body .ascii {
    font-family: "Courier New", monospace; font-size: 10px;
    color: #000080; white-space: pre; line-height: 1.2; margin: 8px 0;
  }
  .dialog-body table { width: 100%; font-size: 11px; margin: 6px 0; }
  .dialog-body table td { padding: 2px 8px 2px 0; vertical-align: top; }
  .dialog-body table td:first-child { color: #404040; white-space: nowrap; }
  .dialog-body code, code.mono {
    font-family: "Courier New", monospace; color: #000080; word-break: break-all;
  }
  .dialog-body textarea {
    width: 100%; min-height: 200px; font-family: "Courier New", monospace;
    font-size: 11px; padding: 6px;
    border: 2px inset #ffffff; background: #ffffff;
  }
  .dialog-body input[type=text], .dialog-body select {
    font-family: Verdana, sans-serif; font-size: 11px;
    padding: 2px 4px; border: 2px inset #ffffff; background: #ffffff;
  }
