/* Private files controls; no public tile or navigation selectors. */
.tb-copy-source[hidden],.tb-backup-form [hidden]{display:none!important}
.tb-note-upload{min-width:0;gap:9px}.tb-note-upload input[type=file]{width:100%;max-width:100%;min-width:0;font-size:12px}
.tb-note-upload input[type=file]::file-selector-button,.tb-backup-form input[type=file]::file-selector-button{padding:9px 12px;margin:0 9px 4px 0;border:1px solid #b28a53;border-radius:6px;background:#241a13;color:#f1d29d;cursor:pointer}
.tb-files-selected{display:grid;gap:6px;font-size:12px;overflow-wrap:anywhere}.tb-files-selected strong{color:#ffb3a8}
.tb-note-existing{display:grid;gap:10px;border-top:1px solid #523434;padding-top:12px}.tb-note-existing-row{display:grid;gap:5px;padding-bottom:10px;border-bottom:1px solid #422c2e;overflow-wrap:anywhere}.tb-note-existing-row>a{color:#eecb8d}.tb-note-existing-row small{color:#bdb0a8}.tb-note-existing-row .check-row{font-size:12px}
.tb-note-attachments{border-top:1px solid #4c292c;padding-top:10px}.tb-note-attachments h4{display:flex;align-items:center;gap:8px;margin:0 0 9px;font-size:12px;color:#e7c59b}.tb-note-attachments h4>span{padding:2px 6px;border:1px solid #6e4936;border-radius:6px}
.tb-note-file{display:flex;gap:9px;align-items:center;min-width:0;margin-top:6px;padding:10px;border:1px solid #684039;border-radius:8px;background:#100c0daa;text-decoration:none;color:#eee1d6;transition:border-color .2s,background .2s}.tb-note-file:hover{border-color:#d6a053;background:#251418}.tb-note-file:focus-visible,.tb-copy-note:focus-visible{outline:2px solid #e7bd71;outline-offset:3px}
.tb-file-extension{display:grid;place-items:center;flex:0 0 36px;height:38px;border:1px solid #8c6945;border-radius:6px;color:#f2d096;background:#21180f;font-size:10px;font-weight:800}.tb-file-info{display:grid;gap:3px;min-width:0;flex:1}.tb-file-info strong{font-size:12px;overflow-wrap:anywhere}.tb-file-info small{font-size:11px;color:#b4a79f}.tb-file-download .ui-icon{width:20px;height:20px;color:#e2b669}
.tb-backup-intro,.tb-backup-upload-panel,.tb-backup-list,.tb-backup-pending{margin-bottom:18px;min-width:0}.tb-backup-intro p{max-width:900px;line-height:1.65;color:#c9bdba}.tb-backup-intro .panel-head{flex-wrap:wrap;gap:12px}
.tb-backup-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}.tb-backup-metrics>div{display:grid;gap:7px;border:1px solid #624438;background:#120d0e;padding:17px;border-radius:9px}.tb-backup-metrics span{font-size:12px;color:#bcb0a8}.tb-backup-metrics strong{font-size:24px;line-height:1.2;color:#ebc586;overflow-wrap:anywhere}
.tb-backup-form{margin:0;padding:0;border:0;background:transparent}.tb-backup-form .form-grid{gap:17px}.tb-backup-form input[type=file]{max-width:100%;min-width:0;min-height:57px;padding:10px;border:1px dashed #9d7854;border-radius:8px;background:#100c0e}.tb-backup-form textarea{min-height:90px}.tb-backup-form .form-help{line-height:1.6;margin-top:10px}
.tb-backup-upload-actions,.tb-backup-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.tb-backup-upload-actions{margin-top:17px}.tb-backup-upload-actions .ui-icon,.tb-backup-row-actions .ui-icon{width:18px;height:18px}.tb-backup-upload-actions .btn,.tb-backup-row-actions .btn{display:inline-flex;align-items:center;gap:6px}.tb-backup-form button:disabled{opacity:.55;cursor:wait}
.tb-backup-progress{margin-top:19px;max-width:780px}.tb-backup-progress progress{width:100%;height:13px;accent-color:#d5aa66;border:1px solid #64452d;border-radius:10px;overflow:hidden;background:#100b0e}.tb-backup-progress>div{display:flex;justify-content:space-between;gap:10px;margin-top:7px;font-size:12px;color:#d7c6b5}.tb-backup-progress strong{color:#f0c989}.tb-upload-status{margin:12px 0 0;line-height:1.6;color:#e9cd99;font-size:13px;overflow-wrap:anywhere}.tb-upload-status.is-error{color:#ffa9a2}
.tb-backup-table-wrap{width:100%;overflow-x:auto}.tb-backup-table{width:100%;min-width:660px;border-collapse:collapse}.tb-backup-table th{text-align:left;font-size:11px;letter-spacing:.04em;color:#cbb08a;padding:12px;border-bottom:1px solid #644433}.tb-backup-table td{padding:15px 12px;vertical-align:top;border-bottom:1px solid #422d2b;font-size:13px}.tb-backup-table th:first-child{width:42%}.tb-backup-table td:first-child{max-width:460px;overflow-wrap:anywhere}.tb-backup-filename{display:block;margin-top:5px;color:#b4a6a0;font-size:12px;overflow-wrap:anywhere}.tb-backup-description{margin:8px 0 0;color:#cdbeb6;font-size:12px;line-height:1.6}.tb-backup-size{white-space:nowrap;color:#e6c995}.tb-backup-table time{white-space:nowrap}.tb-backup-row-actions form{margin:0}.tb-backup-empty{text-align:center;padding:32px 18px;color:#beafa5}.tb-backup-empty>.ui-icon{width:36px;height:36px;color:#dbb36f}.tb-backup-empty h3{color:#f0d6ad}
.tb-pending-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-top:1px solid #543b31}.tb-pending-row>div{min-width:0;overflow-wrap:anywhere}.tb-pending-row small{display:block;margin-top:6px;color:#beaca0}.tb-pending-row form{flex:0 0 auto}
@media(max-width:700px){.tb-backup-metrics{grid-template-columns:1fr}.tb-backup-metrics>div{display:flex;justify-content:space-between;align-items:center;padding:13px}.tb-backup-metrics strong{font-size:20px}.tb-pending-row{flex-wrap:wrap}.tb-backup-intro h2{font-size:21px}.tb-backup-form .form-grid{grid-template-columns:1fr}.tb-backup-upload-actions .btn{justify-content:center}.tb-backup-table{min-width:580px}}
