.jta-drive-nav{display:flex;align-items:center;gap:11px;flex-shrink:0;width:calc(100% - 28px);min-height:42px;margin:0 14px 12px;padding:0 15px;border:1px solid transparent;border-radius:12px;background:transparent;color:#ededed;text-align:left;cursor:pointer;font:inherit}.jta-drive-nav strong{font-size:14px;font-weight:650}.jta-drive-nav:hover,.jta-drive-nav:focus-visible{background:#252525;border-color:#4e4930;outline:none}.jta-drive-nav:focus-visible{box-shadow:0 0 0 2px #ffdd3e}.jta-drive-icon{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:8px;background:#f7df58;color:#111}.jta-drive-icon svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.jta-drive-panel[hidden],.jta-drive-shell [hidden]{display:none!important}.jta-drive-panel{position:fixed;inset:0 0 0 265px;z-index:100000;background:#f6f6f4;color:#171717;font:14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.jta-drive-shell,.jta-drive-shell *{box-sizing:border-box}.jta-drive-shell{height:100%;min-width:0;display:flex;flex-direction:column;max-width:1500px;margin:auto;padding:26px 30px 18px;gap:0}
.jta-drive-header{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #deded8;padding-bottom:18px;flex-shrink:0}.jta-drive-header strong{display:block;font-size:25px;letter-spacing:-.5px}.jta-drive-header small{display:block;margin-top:4px;color:#666;font-size:13px}.jta-drive-header>button{border:0!important;background:transparent!important;font-size:32px!important;line-height:1;padding:6px 10px!important}
.jta-drive-shell button,.jta-drive-shell a,.jta-drive-shell summary{font:inherit}.jta-drive-shell button,.jta-drive-shell a{border:1px solid #d3d3ce;background:#fff;color:#222;border-radius:9px;padding:9px 13px;cursor:pointer;text-decoration:none;line-height:1.4}.jta-drive-shell button:hover,.jta-drive-shell a:hover{background:#f1f1eb;border-color:#aaa}.jta-drive-shell button:disabled{opacity:.45;cursor:not-allowed}.jta-drive-shell :is(button,a,input,summary):focus-visible{outline:3px solid #bb9b00;outline-offset:3px}.jta-drive-shell input[type=checkbox]{appearance:auto;width:18px;height:18px;accent-color:#222;cursor:pointer;margin:0;flex-shrink:0}
.jta-drive-library{display:flex;flex-direction:column;flex:1;min-height:0}.jta-drive-summary{padding:17px 0 12px;color:#494944;font-size:13px}.jta-drive-tools{display:flex;gap:9px;margin-bottom:11px}.jta-drive-tools input{flex:1;min-width:0;min-height:43px;border:1px solid #c8c8bf;border-radius:10px;padding:9px 12px;background:#fff;font:inherit;color:#222}.jta-drive-selection{display:flex;align-items:center;gap:14px;padding:6px 2px 12px;color:#62625d;font-size:12px}.jta-drive-selection label{display:flex;align-items:center;gap:9px;cursor:pointer}.jta-drive-selection>span{margin-left:auto;font-weight:600;color:#272723}.jta-drive-selection>button{font-size:12px;border:0;background:transparent;padding:4px 5px}
.jta-drive-list{overflow:auto;flex:1;min-height:80px;background:#fff;border:1px solid #deded8;border-radius:14px;overscroll-behavior:contain}.jta-drive-row{display:grid;grid-template-columns:18px 62px minmax(80px,1fr) auto;align-items:center;gap:14px;padding:15px 17px;border-bottom:1px solid #ebebe6;transition:background .12s}.jta-drive-row:last-child{border-bottom:0}.jta-drive-row.is-selected{background:#fffbdf}.jta-drive-shell .jta-drive-thumb{position:relative;display:grid;place-items:center;width:62px;height:62px;overflow:hidden;background:#f1f2ec;border:1px solid #e1e2dc;padding:0;border-radius:10px;color:#75776b;font-weight:750;font-size:11px;letter-spacing:.5px}.jta-drive-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#f1f2ec}.jta-drive-name{min-width:0}.jta-drive-shell .jta-drive-name>button{display:block;max-width:100%;padding:0;background:transparent;border:0;border-radius:2px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:700;text-align:left;line-height:1.5}.jta-drive-name small,.jta-drive-name time{display:block;color:#71716a;font-size:12px;margin-top:3px}.jta-drive-name time{font-size:11px;color:#84847a}.jta-drive-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.jta-drive-actions button,.jta-drive-actions a,.jta-drive-actions summary{font-size:12px;padding:8px 11px}.jta-drive-more-menu{position:relative}.jta-drive-more-menu summary{list-style:none;cursor:pointer;border:1px solid transparent;border-radius:7px;color:#65655d}.jta-drive-more-menu summary::-webkit-details-marker{display:none}.jta-drive-more-menu[open] summary{border-color:#c8c8be;background:#f5f5ef}.jta-drive-more-menu>div{display:flex;gap:6px;flex-wrap:wrap;position:absolute;right:0;top:100%;z-index:2;min-width:220px;border:1px solid #ddd;background:white;border-radius:10px;padding:10px;box-shadow:0 6px 18px #0001}.jta-drive-more-menu>div>*{flex:1;white-space:nowrap;text-align:center}.jta-drive-empty{padding:40px 24px;color:#666;text-align:center}.jta-drive-load-more{margin:15px}
.jta-drive-footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:15px}.jta-drive-footer>div:first-child{min-width:0}.jta-drive-footer strong,.jta-drive-footer small{display:block}.jta-drive-footer strong{font-size:13px}.jta-drive-footer small{font-size:11px;color:#727267;margin-top:4px}.jta-drive-footer [data-jta-drive-message]{display:block;color:#716025;font-size:12px;margin-top:5px;max-width:650px}.jta-drive-attach-actions{display:flex;gap:8px;flex-shrink:0}.jta-drive-shell .jta-drive-primary{background:#f6de57;border-color:#e4cb43;font-weight:700}.jta-drive-shell .jta-drive-primary:hover{background:#f0d849}
.jta-drive-preview{display:flex;flex-direction:column;flex:1;min-height:0;padding-top:16px;gap:14px}.jta-drive-preview-heading{display:flex;align-items:center;gap:20px;min-width:0}.jta-drive-preview-heading>div{min-width:0}.jta-drive-preview-heading strong{display:block;overflow-wrap:anywhere}.jta-drive-preview-heading small{display:block;font-size:12px;color:#73736b;margin-top:3px}.jta-drive-preview-heading button{white-space:nowrap;font-size:12px}.jta-drive-preview-stage{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;overflow:auto;flex:1;min-height:120px;background:#fff;border:1px solid #deded8;border-radius:13px;padding:16px;overscroll-behavior:contain}.jta-drive-preview-stage>img,.jta-drive-preview-stage>video{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:5px}.jta-drive-preview-stage>audio{width:min(600px,100%)}.jta-drive-preview-stage>iframe{width:100%;height:100%;min-height:250px;flex:1;border:0;background:#fff}.jta-drive-preview-stage>pre{align-self:stretch;flex:1;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4;font:13px/1.6 ui-monospace,monospace;color:#2d2d28}.jta-drive-preview-notice{font-size:14px;color:#73736b;max-width:540px;text-align:center}.jta-drive-preview-links{display:flex;align-items:center;justify-content:flex-end;gap:9px;font-size:12px;flex-wrap:wrap}.jta-drive-preview-links>span{flex:1;color:#777}
@media(max-width:1050px){.jta-drive-panel{inset:0}.jta-drive-shell{padding:20px}.jta-drive-footer{align-items:flex-start}.jta-drive-attach-actions{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:650px){.jta-drive-shell{padding:14px 12px 12px}.jta-drive-header{padding-bottom:12px}.jta-drive-header strong{font-size:22px}.jta-drive-header small{font-size:12px}.jta-drive-summary{font-size:12px;padding:12px 1px;min-height:40px}.jta-drive-tools{gap:6px}.jta-drive-tools>button{padding:8px;font-size:12px}.jta-drive-selection{gap:8px;font-size:11px}.jta-drive-selection>button{font-size:11px}.jta-drive-row{grid-template-columns:18px 52px minmax(80px,1fr);gap:11px;padding:13px 12px}.jta-drive-shell .jta-drive-thumb{width:52px;height:52px}.jta-drive-actions{grid-column:2/4;justify-content:flex-start}.jta-drive-name time{font-size:10px}.jta-drive-actions button,.jta-drive-actions summary{padding:6px 11px}.jta-drive-more-menu>div{left:0;right:auto}.jta-drive-footer{flex-direction:column;gap:10px;padding-top:12px}.jta-drive-attach-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.jta-drive-attach-actions button{font-size:12px;padding:10px 8px}.jta-drive-preview-heading{gap:10px;align-items:flex-start}.jta-drive-preview-heading strong{font-size:13px}.jta-drive-preview-heading>button{padding:8px}.jta-drive-preview-stage{padding:8px}.jta-drive-preview-links{font-size:11px}.jta-drive-preview-links>span{flex-basis:100%}}
/* JtA Drive file details — shared Chat/admin, guide 1.47. */
.jta-drive-panel,.jta-drive-shell *{font-family:Arial,sans-serif}
.jta-drive-panel{color:#313131;background:#f6f6f4}
.wp-admin .jta-drive-panel{inset:32px 0 0;z-index:100001}
.jta-drive-shell{padding:24px;max-width:1500px}
.jta-drive-shell :is(button,a,summary){min-height:44px;border-radius:12px;font-size:14px;box-shadow:none;transform:none}
.jta-drive-shell :is(button,a){display:inline-flex;align-items:center;justify-content:center;gap:8px}
.jta-drive-shell :is(button,a,input,summary):focus-visible{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px #d6bd42}
.jta-drive-shell button:hover,.jta-drive-shell a:hover{background:#f1f1f1;border-color:#bcbcbc;transform:none}
.jta-drive-shell .jta-drive-primary{background:#313131;color:#fff;border-color:#313131}
.jta-drive-shell .jta-drive-primary:hover{background:#111;color:#fff;border-color:#111}
.jta-drive-header>button{min-width:44px;flex:none}
.jta-drive-header small,.jta-drive-summary,.jta-drive-selection,.jta-drive-name small,.jta-drive-name time,.jta-drive-footer small,.jta-drive-footer strong{font-size:14px;color:#666}
.jta-drive-shell .jta-drive-name>button{min-height:44px;white-space:normal;overflow-wrap:anywhere;border-radius:8px}
.jta-drive-tools input{font:16px/1.5 Arial,sans-serif;min-height:44px}
.jta-drive-selection label{min-height:44px}
.jta-drive-selection>button{font-size:14px}
.jta-drive-row{gap:12px;padding:16px}
.jta-drive-row.is-selected{background:#fff8ce}
.jta-drive-more-menu summary{display:flex;align-items:center;justify-content:center}
.jta-drive-preview{gap:16px;overflow:hidden}
.jta-drive-preview-heading{flex-shrink:0;align-items:center;gap:16px}
.jta-drive-preview-heading strong{font-size:18px;line-height:1.4;margin:0}
.jta-drive-preview-heading small{font-size:14px;color:#666}
.jta-drive-preview-heading button{font-size:14px;flex:none}
.jta-drive-file-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 5px 8px}
.jta-drive-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:16px;margin-bottom:20px;align-items:start}
.jta-drive-detail-card,.jta-drive-preview-card{background:#fff;border:1px solid #e2e2e2;border-radius:16px;padding:20px;min-width:0}
.jta-drive-shell h2{font:700 18px/1.4 Arial,sans-serif;color:#313131;margin:0 0 16px;padding:0;letter-spacing:normal}
.jta-drive-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0}
.jta-drive-facts>div{min-width:0}
.jta-drive-facts dt{font-size:14px;color:#666;margin:0 0 4px}
.jta-drive-facts dd{font-size:14px;font-weight:600;line-height:1.5;margin:0;overflow-wrap:anywhere}
.jta-drive-access{display:inline-block;padding:3px 8px;border-radius:8px;background:#f1f1f1}
.jta-drive-access.is-restricted{background:#fff8ce;color:#66591c}
.jta-drive-technical{margin-top:16px;border-top:1px solid #ededed;padding-top:8px}
.jta-drive-technical summary{display:flex;align-items:center;gap:8px;cursor:pointer;color:#666;list-style:none;padding:0 8px}
.jta-drive-technical summary::-webkit-details-marker{display:none}
.jta-drive-technical summary:before{content:'+';font-size:18px}
.jta-drive-technical[open] summary:before{content:'−'}
.jta-drive-technical p{margin:8px 0;font-size:14px;color:#666}
.jta-drive-technical code{display:block;overflow-wrap:anywhere;white-space:normal;background:#f6f6f4;padding:12px;border-radius:8px;font:14px/1.5 Arial,sans-serif}
.jta-drive-shell .jta-drive-help{font-size:14px;line-height:1.5;color:#666;margin:0 0 12px}
.jta-drive-shell [data-jta-drive-origin-message]{margin:12px 0 0}
.jta-drive-note-list{display:grid;gap:8px;padding:0;margin:0;list-style:none}
.jta-drive-note-list li{padding:0;margin:0;min-width:0}
.jta-drive-shell .jta-drive-note-link{display:flex;justify-content:flex-start;align-items:center;width:100%;padding:12px;gap:12px;text-align:left;border-color:#e2e2e2;background:#f8f8f7;color:#313131}
.jta-drive-note-link>span:not(.jta-drive-note-arrow){flex:1;min-width:0}
.jta-drive-note-link strong{display:block;font-size:14px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.jta-drive-note-link svg{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.jta-drive-note-arrow{flex:none;font-size:18px}
.jta-drive-origin-badge{display:inline-block;font-size:14px;margin-top:6px;padding:2px 8px;border-radius:8px;background:#fff8ce;color:#66591c}
.jta-drive-shell [data-jta-drive-note-count]{display:inline-block;margin-left:4px;padding:2px 8px;font-size:14px;border-radius:8px;background:#f1f1f1;vertical-align:middle}
.jta-drive-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.jta-drive-preview-bar h2{margin:0}
.jta-drive-preview-links{gap:8px;font-size:14px}
.jta-drive-preview-links>span{display:none}
.jta-drive-preview-stage{display:flex;justify-content:flex-start;align-items:center;min-height:240px;max-height:none;overflow:auto;background:#f6f6f4;padding:16px;border:0;border-radius:12px}
.jta-drive-preview-stage>iframe{flex:none;width:100%;height:540px;min-height:300px}
.jta-drive-preview-stage>img,.jta-drive-preview-stage>video{max-height:600px}
.jta-drive-preview-stage>pre{font:14px/1.6 Arial,sans-serif;align-self:stretch;margin:0;flex:none}
.jta-drive-preview-notice{margin:20px auto;font-size:14px;color:#666}
.jta-drive-scope{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff8ce;border:1px solid #ecdf93;border-radius:14px;padding:14px 16px;margin-top:16px}
.jta-drive-scope>div{min-width:0}.jta-drive-scope strong,.jta-drive-scope span{display:block;overflow-wrap:anywhere}.jta-drive-scope span{font-size:14px;margin-top:4px}.jta-drive-scope button{flex:none}
@media(max-width:1050px){.jta-drive-panel{inset:0}.jta-drive-overview{grid-template-columns:1fr 1fr}}
@media(max-width:782px){.wp-admin .jta-drive-panel{inset:46px 0 0}.jta-drive-overview{grid-template-columns:1fr}.jta-drive-shell{padding:16px}.jta-drive-detail-card,.jta-drive-preview-card{padding:16px}.jta-drive-preview-heading{align-items:flex-start}.jta-drive-preview-heading strong{font-size:16px}.jta-drive-preview-heading small{display:none}.jta-drive-preview-heading button{padding:8px 10px}.jta-drive-file-body{padding:4px 4px 8px}.jta-drive-preview-stage{padding:12px;min-height:160px}.jta-drive-preview-stage>iframe{height:400px}.jta-drive-preview-links{justify-content:flex-start}.jta-drive-preview-bar{align-items:flex-start;flex-direction:column}.jta-drive-scope{align-items:flex-start}.jta-drive-scope button{font-size:14px;padding:8px}.jta-drive-row{padding:12px}.jta-drive-name time{font-size:14px}.jta-drive-footer small{font-size:14px}.jta-drive-attach-actions button{font-size:14px}}
@media(prefers-reduced-motion:reduce){.jta-drive-shell *{transition:none!important;scroll-behavior:auto!important}}
/* Seven Note tools retain 44px targets even on a 320px screen. */
@media(max-width:380px){.jta-chat-note-header.jta-chat-note-header{padding-left:6px;padding-right:6px}.jta-chat-note-header .jta-note-actions{gap:0;justify-content:space-between}.jta-chat-note-header .jta-note-actions .jta-compose-modes{gap:0;padding:0;margin:0;border:0}}

.jta-drive-share-controls{flex-basis:100%;min-width:0;border-top:1px solid #dfdfdf;padding-top:16px;text-align:left;font:14px/1.5 Arial,sans-serif;color:#313131}.jta-drive-share-controls h3{font:700 16px/1.4 Arial,sans-serif;margin:0 0 8px}.jta-drive-share-controls p{margin:8px 0;overflow-wrap:anywhere}.jta-drive-share-controls button,.jta-drive-share-controls select,.jta-drive-share-controls input{font:14px Arial,sans-serif;min-height:44px;border:1px solid #dfdfdf;border-radius:8px;background:white;color:#313131;padding:10px;max-width:100%;box-sizing:border-box}.jta-drive-share-controls button{margin:4px 4px 4px 0}.jta-drive-share-controls :focus-visible{outline:1px solid #7ab8fa;outline-offset:3px;box-shadow:0 0 0 4px #7ab8fa33}.jta-drive-share-row{padding-top:12px;margin-top:12px;border-top:1px solid #dfdfdf}.jta-drive-share-row input{width:100%}.jta-drive-share-controls button:disabled{opacity:.55;cursor:default}@media(max-width:390px){.jta-drive-share-controls button{width:100%;margin:4px 0}.jta-drive-share-controls label{display:block}}
.jta-drive-share-confirm{box-sizing:border-box;width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:24px;border:1px solid #DFDFDF;border-radius:12px;background:#fff;color:#313131;font:16px/1.5 Arial}.jta-drive-share-confirm::backdrop{background:rgb(0 0 0 / .45)}.jta-drive-share-confirm h2{margin-top:0;font:700 24px/1.3 Arial}.jta-drive-share-confirm>div{display:flex;flex-wrap:wrap;gap:12px}.jta-drive-share-confirm button{min-width:44px;min-height:44px;flex:1 1 120px;padding:10px 12px;border:1px solid #DFDFDF;border-radius:10px;background:#fff;color:#313131;font:600 14px/1.5 Arial;cursor:pointer}.jta-drive-share-confirm button:focus-visible{outline:2px solid #7AB8FA;outline-offset:2px}.jta-drive-share-confirm button:hover{background:#F1F1F1}
.jta-drive-share-controls button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px}.jta-drive-share-controls .jta-li-icon{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}@media(prefers-reduced-motion:reduce){.jta-drive-share-controls *,.jta-drive-share-confirm *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.jta-drive-share-controls>label{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;margin-right:12px;margin-bottom:8px}.jta-drive-share-controls>button{margin-top:0;margin-bottom:8px}.jta-drive-share-controls>label[hidden],.jta-drive-share-controls>button[hidden]{display:none}@media(max-width:390px){.jta-drive-share-controls>label{display:flex;margin-right:0}.jta-drive-share-controls>label select{flex:1}}

.jta-drive-share-row{display:flex;flex-wrap:wrap;gap:8px}.jta-drive-share-row>input,.jta-drive-share-row>p{flex-basis:100%;margin:0}.jta-drive-share-row>button{margin:0}.jta-drive-share-controls button{font-weight:600}

/* Keep the compact label weight when the shared site reset is loaded later. */
.jta-drive-shell .jta-drive-share-controls button{font:600 14px/1.5 Arial,Helvetica,sans-serif!important}

/* The email picker keeps file selection and its action visible on short screens. */
.jta-drive-panel.is-email-picker .jta-drive-summary,.jta-drive-panel.is-email-picker .jta-drive-header small,.jta-drive-panel.is-email-picker .jta-drive-footer small{display:none}
.jta-drive-panel.is-email-picker .jta-drive-tools{margin-top:12px}
.jta-drive-panel.is-email-picker .jta-drive-attach-actions{display:flex}
@media(max-height:500px){.jta-drive-panel.is-email-picker .jta-drive-shell{padding:8px 12px}.jta-drive-panel.is-email-picker .jta-drive-header{padding-bottom:4px}.jta-drive-panel.is-email-picker .jta-drive-selection{padding-bottom:4px}.jta-drive-panel.is-email-picker .jta-drive-footer{padding-top:6px;flex-direction:row;align-items:center}.jta-drive-panel.is-email-picker .jta-drive-footer strong{display:none}.jta-drive-panel.is-email-picker .jta-drive-attach-actions{margin-left:auto;width:auto}}
