    /* Versaterm brand palette: teal #00505d · deep #002d34 · orange #e76e25 · light-teal #7bc3d0 */
    body { font: 15px system-ui, sans-serif; margin: 0; background: #f0f4f5; color: #1a2c2e; }
    header { padding: 12px 24px; background: #00505d; display: flex; gap: 14px; align-items: center; position: sticky; top: 0; box-shadow: 0 2px 8px rgba(0,45,52,.25); }
    header strong { color: #ffffff; font-size: 16px; letter-spacing: .01em; }
    header #me { color: rgba(255,255,255,.8); font-size: 13px; }
    main { padding: 24px 20px; max-width: 940px; margin: 0 auto; }
    select, input, button, textarea { font: inherit; padding: 6px 10px; border-radius: 4px; border: 1px solid #b0cdd1; background: #ffffff; color: #1a2c2e; }
    button { cursor: pointer; background: #e76e25; color: #ffffff; border-color: #e76e25; font-weight: 500; }
    button:hover:not(:disabled) { background: #cf601e; border-color: #cf601e; }
    button:disabled { opacity: .45; cursor: default; }
    .card { border: 1px solid #c2dde1; border-radius: 6px; padding: 16px; margin: 10px 0; background: #ffffff; box-shadow: 0 1px 4px rgba(0,80,93,.07); }
    .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
    .field { margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
    .field > label { font-size: 12px; color: #3d6b70; font-weight: 500; }
    .field input[type=text], .field textarea { width: 100%; box-sizing: border-box; }
    .hint { font-size: 12px; color: #6a9499; }
    .role-filter { width: 100%; padding: 6px 8px; border: 1px solid #b0cdd1; border-radius: 4px; box-sizing: border-box; margin: 4px 0; font: inherit; }
    .role-list { max-height: 160px; overflow: auto; border: 1px solid #c2dde1; border-radius: 6px; padding: 6px; }
    .role-item[hidden] { display: none; }
    .files { font-size: 12px; color: #3d6b70; max-height: 120px; overflow: auto; margin: 4px 0; }
    .status { font-size: 13px; margin-top: 8px; min-height: 18px; }
    .status.err { color: #c0392b; } .status.ok { color: #1a7a4a; }
    a { color: #00505d; }
    h2 { margin: 20px 0 8px; color: #002d34; font-size: 17px; } h3 { margin: 0 0 12px; color: #002d34; }
    fieldset { border: 1px solid #c2dde1; border-radius: 6px; background: #f5fafb; padding: 10px 12px; }
    legend { color: #3d6b70; font-size: 12px; font-weight: 500; }
    /* Catalog tree */
    .tree { border: 1px solid #c2dde1; border-radius: 6px; overflow: hidden; font-size: 13px; margin-top: 8px; background: #fff; }
    .tree-hdr { display: grid; grid-template-columns: 1fr 110px 160px 116px; padding: 6px 12px; background: #ddedf0; border-bottom: 1px solid #c2dde1; font-size: 12px; font-weight: 600; color: #3d6b70; text-transform: uppercase; letter-spacing: .04em; }
    .th { cursor: pointer; user-select: none; }
    .th:hover { color: #002d34; }
    .tr { display: grid; grid-template-columns: 1fr 110px 160px 116px; padding: 5px 12px; border-bottom: 1px solid #eaf3f5; align-items: center; min-height: 30px; }
    .perm-cell { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .perm-everyone { color: #00505d; font-weight: 500; }
    .perm-restricted { color: #e76e25; font-weight: 500; }
    .tr:last-child { border-bottom: none; }
    .tr.dept { background: #eaf4f6; font-weight: 600; cursor: pointer; color: #002d34; }
    .tr.dept:hover { background: #ddedf0; }
    .tr.user { padding-left: 24px; cursor: pointer; color: #1a2c2e; }
    .tr.user:hover, .tr.report:hover { background: #f3fafb; }
    .tr.report { padding-left: 44px; cursor: pointer; }
    .disc { display: inline-block; width: 14px; font-size: 9px; color: #7bc3d0; flex-shrink: 0; }
    .name-cell { display: flex; align-items: center; gap: 4px; min-width: 0; }
    .name-cell .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .date-cell { font-size: 12px; color: #5a8e94; }
    .act-cell { display: flex; gap: 4px; justify-content: flex-end; }
    .act-cell button, .act-cell a { font-size: 11px; padding: 2px 8px; background: #fff; color: #1a2c2e; border: 1px solid #b0cdd1; border-radius: 4px; text-decoration: none; cursor: pointer; font-weight: normal; }
    .act-cell button:hover:not(:disabled), .act-cell a:hover { background: #eaf4f6; border-color: #00505d; color: #00505d; }
    .act-cell .del:hover:not(:disabled) { background: #fdf0ee; border-color: #c0392b; color: #c0392b; }
    /* File mode toggle */
    .seg-ctrl { display: inline-flex; border: 1px solid #b0cdd1; border-radius: 4px; overflow: hidden; }
    .seg { border: none; border-radius: 0; padding: 5px 14px; background: #fff; color: #3d6b70; font-size: 13px; font-weight: normal; }
    .seg.active { background: #e76e25; color: #fff; }
    .seg:hover:not(.active):not(:disabled) { background: #fdf3ee; color: #e76e25; }
    .file-pick-btn { display: inline-block; padding: 5px 14px; background: #fff; border: 1px solid #b0cdd1; border-radius: 4px; cursor: pointer; font-size: 13px; color: #1a2c2e; }
    .file-pick-btn:hover { background: #fdf3ee; border-color: #e76e25; color: #e76e25; }
    #appContent[hidden] { display: none; }
    /* Header logout */
    #logoutBtn { margin-left: auto; background: transparent; color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.35); font-size: 13px; padding: 4px 12px; font-weight: normal; }
    #logoutBtn:hover:not(:disabled) { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff; }
    /* Tabs */
    #tabNav { display: flex; border-bottom: 2px solid #c2dde1; margin-bottom: 20px; gap: 0; }
    .tab { background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 9px 22px; color: #3d6b70; font-weight: 500; border-radius: 0; font-size: 14px; }
    .tab:hover:not(:disabled) { color: #002d34; background: none; border-bottom-color: #7bc3d0; }
    .tab.active { color: #e76e25; border-bottom-color: #e76e25; background: none; }
    .tab-panel[hidden] { display: none; }
    /* Approval cards */
    #approvals .card { border-left: 3px solid #e76e25; }
    /* Upload success banner */
    #uploadBanner { position: sticky; top: 0; z-index: 99; display: flex; align-items: center; gap: 12px;
      padding: 12px 24px; background: #d4edda; border-bottom: 1px solid #a8d5b5; color: #145a32; font-size: 14px; }
    #uploadBanner[hidden] { display: none; }
    #uploadBanner .banner-icon { font-size: 17px; flex-shrink: 0; }
    #uploadBanner .banner-text { flex: 1; line-height: 1.5; }
    #uploadBanner .banner-dismiss { background: transparent; border: none; color: #145a32; font-size: 18px;
      padding: 0 4px; line-height: 1; opacity: .6; font-weight: 400; flex-shrink: 0; }
    #uploadBanner .banner-dismiss:hover:not(:disabled) { background: transparent; border-color: transparent; opacity: 1; }
    /* Edit modal */
    .modal-backdrop { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,45,52,.45); align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
    .modal-backdrop.open { display: flex; }
    .modal-panel { background: #fff; border-radius: 8px; padding: 24px 28px; max-width: 560px; width: 100%; box-shadow: 0 8px 40px rgba(0,45,52,.22); }
    .modal-panel h3 { margin: 0 0 16px; color: #002d34; }
    .btn-ghost { background: transparent; color: #3d6b70; border-color: #b0cdd1; font-weight: normal; }
    .btn-ghost:hover:not(:disabled) { background: #eaf4f6; border-color: #00505d; color: #00505d; }
    details.field-group { border: 1px solid #c2dde1; border-radius: 6px; padding: 10px 14px; margin: 8px 0; background: #f5fafb; }
    details.field-group summary { cursor: pointer; font-size: 13px; color: #3d6b70; font-weight: 500; user-select: none; }
    details.field-group summary:hover { color: #002d34; }
    details.field-group[open] summary { margin-bottom: 10px; }
    /* Utilities (replace former inline style="" attributes — CSP forbids inline styles) */
    .legend-sm { font-size: 12px; opacity: .7; }
    .mt-6 { margin-top: 6px; }
    .mt-16 { margin-top: 16px; }
