/* Simios Drive 0.7.1: visual composition, safe CSS-only refinements for legacy routes */
:root{--sd-yellow:#ffc342;--sd-dark:#202429;--sd-text:#20262d;--sd-border:#e6e9ee;--sd-soft:#f7f8fa}
body.drive-v7{background:#f7f8fa;color:var(--sd-text)}
.drive-v7 .sidebar{width:238px;background:linear-gradient(155deg,#272b2f 0%,#181c20 100%);padding:24px 12px}
.drive-v7 .sidebar-brand{padding-left:12px;letter-spacing:-.03em}
.drive-v7 .side-link{font-size:13px;border-radius:11px;min-height:46px;gap:13px}
.drive-v7 .side-link.is-active{background:linear-gradient(105deg,#ffd35e,#ffbd32);box-shadow:0 6px 20px #12121238}
.drive-v7 .side-link:not(.is-active):hover{background:#363b42}
.drive-v7 .workspace-main{max-width:1480px}
.drive-v7 .pagehead{margin-bottom:24px}
.drive-v7 .pagehead h1{font-weight:820}
.drive-v7 .panel{border-radius:15px;border-color:#e9ebef;box-shadow:0 12px 36px #171c2510}
.drive-v7 .hero-v71{min-height:260px;position:relative;overflow:hidden;display:flex;align-items:center;background:linear-gradient(115deg,#fffaed,#fff 75%,#f0f1f4);margin-bottom:24px}
.drive-v7 .hero-v71 .hero-copy{z-index:1}
.drive-v7 .hero-v71 h2{font-size:clamp(32px,3.5vw,48px);margin:8px 0 13px}
.drive-v7 .hero-v71 p{font-size:15px;margin-bottom:24px}
.drive-v7 .hero-v71 .hero-art{transform:scale(1.2);margin-right:60px}
.drive-v7 .stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:0 0 22px}
.drive-v7 .admin-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.drive-v7 .stat-card{display:flex;gap:18px;align-items:center;padding:25px;background:#fff;border:1px solid var(--sd-border);border-radius:16px;min-width:0;box-shadow:0 7px 28px #131b2709}
.drive-v7 .stat-symbol,.drive-v7 .quick-icon{display:grid;place-items:center;background:#fff4d5;color:#a87c13;border-radius:13px;width:52px;height:52px;flex:none;font-size:27px}
.drive-v7 .stat-card .number{margin:3px 0 0;font-size:36px;line-height:1.15}
.drive-v7 .stat-card p{font-size:12px;margin:5px 0 0}
.drive-v7 .home-shortcuts{margin-bottom:0}
.drive-v7 .section-heading{margin-bottom:18px}.drive-v7 .section-heading h2{margin:5px 0}.drive-v7 .section-heading p{margin:0}
.drive-v7 .quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.drive-v7 .quick-link{display:flex;align-items:center;gap:14px;padding:17px;border:1px solid #e6e9ef;border-radius:13px;background:#fff;text-decoration:none!important;color:#252b31!important}
.drive-v7 .quick-link:hover{border-color:#e7ba52;background:#fffcf4;box-shadow:0 6px 20px #1919190c}
.drive-v7 .quick-link>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column}.drive-v7 .quick-link strong{font-size:14px}.drive-v7 .quick-link small{color:#7d838b}
.drive-v7 .quick-link>span:last-child{font-size:20px;color:#a9aeb6}
.drive-v7 .admin-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 22px}
/* Legacy file lists: give action rows breathing room even when markup places them directly after a table. */
.drive-v7 .files-table{margin-bottom:20px!important;overflow:auto}
.drive-v7 .files-table + *, .drive-v7 .tablewrap + .actions, .drive-v7 .files-table + .actions{margin-top:20px!important}
.drive-v7 .folder-toolbar{margin-bottom:24px!important;gap:12px}
.drive-v7 .file-actions{margin-top:11px!important;gap:9px!important}
.drive-v7 .file-action{background:#f8f9fb;color:#28323c;border-color:#e4e8ef;border-radius:9px}
.drive-v7 .file-action:hover{background:#fff5da;color:#382b07;border-color:#f0d07c}
.drive-v7 .folder-card{background:#fff;border:1px solid #e7eaef;padding:20px;box-shadow:0 4px 12px #10151b07}
.drive-v7 .folder-card:hover{border-color:#f0c75c;box-shadow:0 12px 25px #10151b12}
.drive-v7 .folder-card-icon{color:#f3b936}
.drive-v7 .folder-row-link,.drive-v7 .breadcrumbs a{color:#262e35!important}
.drive-v7 .files-table td,.drive-v7 .files-table th{padding:15px}
.drive-v7 .files-table table{border-collapse:separate;border-spacing:0}
.drive-v7 .files-table tbody tr:hover{background:#fffaf1}
.drive-v7 .folder-toolbar + .files-table{margin-top:10px}
.drive-v7 .tablewrap a:not(.primary):not(.secondary-button),.drive-v7 .files-table a:not(.primary):not(.file-action):not(.secondary-button){text-decoration:none;color:#28303a;font-weight:650}
.drive-v7 .tablewrap a:hover,.drive-v7 .files-table a:hover{color:#a27615}
.drive-v7 .inline-actions{gap:12px}
.drive-v7 .secondary-button{color:#263039;background:#fff;border-color:#dbe0e8}
.drive-v7 .secondary-button:hover{background:#fff9e8;border-color:#ecc46b}
.drive-v7 .toolbar{gap:16px}
.drive-v7 .account-grid>.panel{min-width:0}
.drive-v7 .app-footer{background:transparent;border-color:#e9eaed}
.drive-v7 .upload-dropzone{border-color:#edc55d;background:#fffcf4}
.drive-v7 input[type=checkbox]{accent-color:#f0b52c}
.drive-v7 progress::-webkit-progress-value{background:linear-gradient(90deg,#d99a06,#ffd56a)}
@media(max-width:980px){.drive-v7 .stats-grid,.drive-v7 .admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.drive-v7 .hero-v71 .hero-art{margin-right:10px}}
@media(max-width:820px){.drive-v7 .sidebar{width:min(290px,86vw)}.drive-v7 .stats-grid,.drive-v7 .admin-stats,.drive-v7 .quick-links{grid-template-columns:1fr}.drive-v7 .hero-v71{min-height:0}.drive-v7 .hero-v71 .hero-art{display:none}.drive-v7 .admin-actions>*{flex:1;justify-content:center}.drive-v7 .stat-card{padding:19px}.drive-v7 .files-table{overflow-x:auto}.drive-v7 .panel{padding:18px}}
@media(prefers-reduced-motion:reduce){.drive-v7 .quick-link,.drive-v7 .folder-card{transition:none!important}}
