/* TCM disk-wide semantic palette. No auth, visibility or permission changes. */
:root,body,#app,.floating-window,[role="dialog"],[role="alertdialog"]{
  --primaryColor:#087c6d!important;--blue:#087c6d!important;--dark-blue:#06675b!important;
  --background:#f6f9f7!important;--alt-background:#e7f0eb!important;
  --surfacePrimary:#fff!important;--surfaceSecondary:#edf5f0!important;
  --textPrimary:#173e35!important;--textSecondary:#58766d!important;--divider:#d9e6df!important;
  --icon-blue:#087c6d!important;--icon-green:#23795b!important;--icon-violet:#627b75!important;
  --icon-orange:#91703e!important;--icon-yellow:#b49358!important;--iconBackground:#e7f3ed!important;
  --red:#b42318!important;--dark-red:#941f17!important;--icon-red:#b42318!important;
  --surfaceElevationShadow:0 10px 30px #16433112!important;
  color-scheme:light!important;
}
body{color:var(--textPrimary);background:var(--background)}
input,select,textarea{accent-color:#087c6d}
:is(button,a,input,select,textarea,[role="button"]):focus-visible{outline:3px solid #4b9d86!important;outline-offset:3px}
.floating-window,[role="dialog"],[role="alertdialog"]{background:#fff!important;color:#173e35!important;border-color:#d9e6df!important;box-shadow:0 18px 55px #16433126!important}
.floating-window .prompt-taskbar{background:#edf5f0!important;color:#173e35!important;border-color:#d9e6df!important}
.floating-window .prompt-close{background:#deeee5!important;color:#315d50!important}
.floating-window .prompt-close:hover{background:#c7dfd2!important}
.floating-window :is(.card,.card-content,.upload-list){background:#fff!important;color:#173e35!important}
.floating-window :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),textarea,select){background:#fafcfb!important;color:#173e35!important;border-color:#b9cfc3!important}
.floating-window :is(.filename,.file-name,.prompt-title){color:#173e35!important}
.floating-window .file-actions .action{color:#58766d!important}
/* Native primary actions keep their native disabled/danger semantics. */
.button--flat,.button--primary,.button--blue,input[type="submit"]{background:#087c6d!important;color:#fff!important}
.button--red,.button--danger{background:#b42318!important;color:#fff!important}
.form-invalid{color:#b42318!important;background:#fff1f0!important;border:1px solid #efb0aa!important}
[data-tochinamed-password-error="true"]{color:#b42318!important}
.vue-simple-progress-bar{background-color:#087c6d!important}
.upload-list .vue-simple-progress-text{color:#173e35!important;text-shadow:none!important}
.tochinamed-row-delete{color:#b42318!important;background:#fff3f2!important;border-color:#efb0aa!important}
#tochinamed-upload-status[data-state="error"]{color:#b42318!important;background:#fff1f0!important;border-color:#efb0aa!important}
/* Both upload methods are equal primary actions across every portal and dialog. */
body #tochinamed-list-tools #tochinamed-list-folder,
body .upload-action-buttons [data-tochinamed-action="folder"],
body .button-group.upload-action-buttons>button:nth-child(2),
body #tochinamed-list-tools #tochinamed-list-file,
body .upload-action-buttons [data-tochinamed-action="file"],
body .button-group.upload-action-buttons>button:nth-child(1){background:#087c6d!important;color:#fff!important;border:1px solid #087c6d!important;text-shadow:none!important}
body .upload-action-buttons [data-tochinamed-action] *{color:#fff!important}
body header.flexbar:has([data-tochinamed-upload-title="true"]),
body #tochinamed-list-tools .tochinamed-tools-title{background:#edf5f0!important;color:#315d50!important;box-shadow:none!important;border-bottom:1px solid #d9e6df!important}
body header.flexbar:has([data-tochinamed-upload-title="true"]) .topTitle{color:#315d50!important}
body header.flexbar [data-tochinamed-upload-title="true"]{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;padding:12px 0!important;line-height:1.5!important;height:auto!important}
body .tc-download-button,body .tc-row-download{background:#087c6d!important;color:white!important}
body .tc-download-button.tc-primary{background:#123e37!important}
/* Only recolor interface chrome; never tint medical images, documents or media. */
/* Download share: one shared column grid, independent of native gallery/dark mode. */
body[data-tcm-view="download"] #status-bar,
body:has(#tochinamed-list-tools) #status-bar{left:12px!important;right:calc(12px + var(--tcm-list-gutter,0px))!important;width:auto!important;max-width:none!important;box-sizing:border-box!important;background:#edf5f0!important;color:#58766d!important;border:1px solid #d9e6df!important;border-radius:10px!important;box-shadow:none!important}
body[data-tcm-view="download"] #status-bar .status-content,
body:has(#tochinamed-list-tools) #status-bar .status-content{background:transparent!important;color:inherit!important;padding-inline:16px!important}
body[data-tcm-view="download"]{--tc-download-columns:28px 44px minmax(0,1fr) 110px 150px 86px}
body[data-tcm-view="download"] #shelf{position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;margin:0!important;padding:0 12px!important;box-sizing:border-box!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:stable!important}
body[data-tcm-view="download"] .listing-view-root{padding:0!important;margin:0!important;width:100%!important}
body[data-tcm-view="download"] #shelf{flex:0 0 auto!important;min-height:52px!important}
body[data-tcm-view="download"] .listing-view-root .listing-items{box-sizing:border-box!important;padding:0 12px!important;margin:12px 0 0!important;width:100%!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:stable!important}
body[data-tcm-view="download"] .listing-items :is(.folder-items,.file-items,.pinned-items){display:block!important;width:100%!important;padding:0!important;margin:0!important}
body[data-tcm-view="download"] #shelf .listing-item-header,
body[data-tcm-view="download"] .listing-view-root .listing-items a.listing-item,
body[data-tcm-view="download"] .listing-view-root .listing-items a.listing-item:hover,
body[data-tcm-view="download"] .listing-view-root .listing-items a.listing-item:focus-within{
 display:grid!important;grid-template-columns:var(--tc-download-columns)!important;column-gap:12px!important;align-items:center!important;
 box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:72px!important;
 position:relative!important;inset:auto!important;margin:0!important;padding:12px 16px!important;transform:none!important;
 background:#fff!important;color:#173e35!important;border:1px solid #d9e6df!important;box-shadow:none!important;text-shadow:none!important;
}
body[data-tcm-view="download"] #shelf .listing-item-header{min-height:52px!important;background:#edf5f0!important;border-radius:12px!important}
body[data-tcm-view="download"] .listing-view-root .listing-items a.listing-item:hover{background:#f4f8f5!important}
body[data-tcm-view="download"] .listing-view-root .listing-items a.listing-item:has(.tc-row-select:checked){background:#e7f3ed!important}
body[data-tcm-view="download"] .listing-item > .text{display:contents!important;color:#173e35!important;text-shadow:none!important}
body[data-tcm-view="download"] .listing-item > div:not(.text){grid-column:2!important;grid-row:1!important;width:44px!important;height:44px!important;margin:0!important;position:relative!important}
body[data-tcm-view="download"] .listing-item .image-preview{display:flex!important;width:44px!important;height:44px!important;background:#edf5f0!important;border-radius:8px!important}
body[data-tcm-view="download"] .listing-item .image-preview img{width:100%!important;height:100%!important;object-fit:contain!important}
body[data-tcm-view="download"] :is(.listing-item-header,.listing-item) :is(.name,.size,.modified){position:static!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;text-align:left!important;color:#173e35!important;display:block!important;grid-row:1!important}
body[data-tcm-view="download"] :is(.listing-item-header,.listing-item) .name{grid-column:3!important;white-space:normal!important;overflow-wrap:anywhere!important}
body[data-tcm-view="download"] :is(.listing-item-header,.listing-item) .size{grid-column:4!important;color:#58766d!important}
body[data-tcm-view="download"] :is(.listing-item-header,.listing-item) .modified{grid-column:5!important;color:#58766d!important}
body[data-tcm-view="download"] .listing-item-header :is(span,i){color:inherit!important}
body[data-tcm-view="download"] :is(.listing-item-header,.listing-item) .duration{display:none!important}
body[data-tcm-view="download"] .tc-select-head{grid-column:1!important;grid-row:1!important;width:auto!important}
body[data-tcm-view="download"] .tc-action-head{grid-column:6!important;grid-row:1!important;width:auto!important;text-align:center!important}
body[data-tcm-view="download"] .tc-row-select{grid-column:1!important;grid-row:1!important;position:static!important;inset:auto!important;transform:none!important;margin:0!important}
body[data-tcm-view="download"] .tc-row-download{grid-column:6!important;grid-row:1!important;position:static!important;inset:auto!important;transform:none!important;width:86px!important;margin:0!important;box-shadow:none!important}
@media(max-width:760px){
 body[data-tcm-view="download"]{--tc-download-columns:24px 36px minmax(0,1fr) 72px}
 body[data-tcm-view="download"] #shelf .listing-item-header,body[data-tcm-view="download"] .listing-view-root .listing-items a.listing-item{padding:10px!important;column-gap:8px!important}
 body[data-tcm-view="download"] .listing-item > div:not(.text),body[data-tcm-view="download"] .listing-item .image-preview{width:36px!important;height:36px!important}
 body[data-tcm-view="download"] .listing-item > div:not(.text),body[data-tcm-view="download"] .tc-row-select{grid-row:1 / span 3!important}
 body[data-tcm-view="download"] .listing-item .size{grid-column:3!important;grid-row:2!important;font-size:12px!important}
 body[data-tcm-view="download"] .listing-item .modified{grid-column:3!important;grid-row:3!important;font-size:12px!important}
 body[data-tcm-view="download"] .listing-item-header :is(.size,.modified){display:none!important}
 body[data-tcm-view="download"] .tc-action-head,body[data-tcm-view="download"] .tc-row-download{grid-column:4!important;width:72px!important}
 body[data-tcm-view="download"] .tc-row-download{grid-row:1 / span 3!important}
}
.listing-item[aria-selected="true"]{background-color:#deeee5!important}
/* Keep the complete illustration on the netdisk home and staff login too. */
body[data-tcm-service="upload"] .tcm-art{object-fit:contain;object-position:center bottom}
#login:before{background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important}
@media(max-width:680px){body header.flexbar:has([data-tochinamed-upload-title="true"]){padding-inline:15px!important}body header.flexbar [data-tochinamed-upload-title="true"]{font-size:15px!important}}
