.amx-drive { --drive-line: #e3e8ef; --drive-muted: #5c6a7f; --drive-accent: #0c65b8; color: #172033; font: 13px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
.amx-drive *, .amx-storage-tabs * { box-sizing: border-box; }
.amx-drive [hidden], .amx-storage-tabs[hidden], [data-storage-panel][hidden], #exp-local-drive[hidden] { display: none !important; }
.amx-drive :focus-visible, .amx-storage-tabs :focus-visible { outline: 2px solid var(--drive-accent, #0c65b8); outline-offset: 3px; }
.amx-drive ::selection { background: #cfe5fb; color: #172033; }
.amx-drive h2, .amx-drive p { margin: 0; }
.amx-drive-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 4px 0 18px; }
.amx-drive-heading h2 { font-size: 16px; font-weight: 600; }
.amx-drive-heading p { margin-top: 4px; color: var(--drive-muted); font-size: 12px; overflow-wrap: anywhere; }
.amx-drive-account { font-size: 12px; color: var(--drive-accent); text-decoration: none; padding-top: 3px; white-space: nowrap; }
.amx-drive-account:hover { text-decoration: underline; }
.amx-drive-units { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.amx-drive-unit { display: flex; align-items: center; gap: 12px; min-width: 220px; max-width: 100%; min-height: 70px; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #33455c; font: inherit; text-align: left; cursor: pointer; }
.amx-drive-unit > svg { width: 28px; height: 28px; flex: none; }
.amx-drive-unit[aria-pressed="true"] { border-color: #76a8d7; background: #f0f7fe; color: #17598f; }
.amx-drive-unit:hover:enabled { border-color: var(--drive-accent); }
.amx-drive-unit:disabled { cursor: default; }
.amx-drive-unit-copy { display: grid; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
.amx-drive-unit-copy strong { font-size: 13px; font-weight: 600; }
.amx-drive-unit-copy > span { color: var(--drive-muted); font-size: 12px; }
.amx-drive-unit-copy .amx-drive-presence { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 600; color: #675728; }
.amx-drive-presence::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ac8735; flex: none; }
.amx-drive-unit-copy .amx-drive-presence[data-state="online"] { color: #18704d; }
.amx-drive-presence[data-state="online"]::before { background: #198657; }
.amx-drive-unit-copy .amx-drive-contact { font-size: 11px; font-weight: 400; }
.amx-drive-connection { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; color: var(--drive-muted); font-size: 12px; }
.amx-drive-browser { display: grid; grid-template-columns: minmax(160px,220px) minmax(0,1fr); border: 1px solid var(--drive-line); border-radius: 8px; background: #fff; overflow: hidden; }
.amx-drive-content { min-width: 0; }
.amx-drive-tree { background: #fafbfd; border-right: 1px solid var(--drive-line); padding: 14px 8px; min-width: 0; overflow: auto; max-height: 620px; }
.amx-drive-tree > strong { display: block; padding: 0 8px 10px; color: var(--drive-muted); font-size: 12px; font-weight: 600; }
.amx-drive-tree ul { list-style: none; padding: 0; margin: 0; }
.amx-drive-tree ul ul { padding-left: 14px; }
.amx-drive-tree-line { display: flex; align-items: center; min-height: 34px; }
.amx-drive-tree-line button { border: 0; background: transparent; color: #33455c; font: inherit; cursor: pointer; }
.amx-drive-tree-toggle { padding: 4px 0; width: 20px; flex: none; }
.amx-drive-tree-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.amx-drive-tree-toggle[hidden] { display: block !important; visibility: hidden; }
.amx-drive-tree-folder { display: flex; gap: 7px; align-items: center; flex: 1; min-width: 0; padding: 6px; text-align: left; border-radius: 5px; }
.amx-drive-tree-folder svg { flex: none; }
.amx-drive-tree-folder span { overflow-wrap: anywhere; }
.amx-drive-tree-line button:disabled { cursor: default; }
.amx-drive-tree-folder:hover:enabled { background: #edf3fa; }
.amx-drive-tree-folder[aria-current="location"] { background: #e5f0fb; color: #17598f; font-weight: 600; }
.amx-drive-tree-hint { padding: 4px 6px 6px 20px; color: var(--drive-muted); font-size: 11px; }
.amx-drive-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border-bottom: 1px solid var(--drive-line); }
.amx-drive-search { flex: 1; min-width: 150px; margin: 0; }
.amx-drive-search input { width: 100%; min-width: 0; height: 34px; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; color: #172033; font: inherit; caret-color: var(--drive-accent); }
.amx-drive-search input::placeholder { color: var(--drive-muted); }
.amx-drive-button { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 7px; min-height: 32px; padding: 5px 10px; border: 1px solid #cbd5e1; border-radius: 6px; color: #304157; background: #fff; font: 500 12px/1.5 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background-color 140ms; }
.amx-drive-button:hover:enabled { background: #f1f5f9; }
.amx-drive-button:active:enabled { background: #e5edf6; }
.amx-drive-button.primary { background: var(--drive-accent); color: #fff; border-color: var(--drive-accent); }
.amx-drive-button.primary:hover:enabled { background: #09569d; }
.amx-drive-button:disabled { color: #7b8696; background: #f3f5f8; border-color: var(--drive-line); cursor: default; }
.amx-drive-button.icon-only { width: 32px; padding: 5px; }
.amx-drive-pathbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--drive-line); font-size: 12px; background: #fafbfd; }
[data-drive-path] { overflow-wrap: anywhere; min-width: 0; flex: 1; }
[data-drive-count] { color: var(--drive-muted); white-space: nowrap; }
.amx-drive-columns, .amx-drive-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 90px; align-items: center; gap: 16px; padding: 10px 16px; }
.amx-drive-columns { font-size: 11px; color: var(--drive-muted); border-bottom: 1px solid var(--drive-line); }
.amx-drive-columns > :last-child, .amx-drive-size { text-align: right; font-variant-numeric: tabular-nums; }
.amx-drive-list { min-height: 200px; }
.amx-drive-row { border: 0; border-bottom: 1px solid #edf0f5; border-radius: 0; background: #fff; color: #172033; width: 100%; text-align: left; min-height: 50px; font: inherit; cursor: pointer; }
.amx-drive-row:hover { background: #f4f8fc; }
.amx-drive-row:focus-visible { outline-offset: -3px; }
.amx-drive-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.amx-drive-name svg { flex: none; color: #526c89; }
.amx-drive-name span { overflow-wrap: anywhere; }
.amx-drive-type, .amx-drive-size { color: var(--drive-muted); font-size: 12px; }
.amx-drive-empty { padding: 65px 24px; text-align: center; color: var(--drive-muted); }
.amx-drive-feedback { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 12px; border-top: 1px solid var(--drive-line); color: var(--drive-muted); font-size: 12px; }
.amx-drive-selection, .amx-drive-output { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f1f7fd; border-bottom: 1px solid var(--drive-line); }
.amx-drive-selection > span, .amx-drive-output > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.amx-drive-note { color: var(--drive-muted); font-size: 11px; padding-top: 10px; }
.amx-drive-managed .amx-drive-row, .amx-drive-managed .amx-drive-columns { grid-template-columns: 18px minmax(0,1fr) 70px 75px 32px; gap: 10px; }
.amx-drive-managed .amx-drive-name { border: 0; background: transparent; color: inherit; font: inherit; text-align: left; padding: 0; cursor: pointer; }
.amx-drive-managed .amx-drive-name svg { width: 28px; height: 28px; }
.amx-drive-managed .amx-drive-row > input { width: 15px; height: 15px; margin: 0; accent-color: #0c65b8; }
.amx-drive-managed .amx-drive-row > input:disabled { visibility: hidden; }
.amx-drive-actions { gap: 6px; padding-block: 8px; }
.amx-drive-actions > span { color: var(--drive-muted); font-size: 12px; }
.amx-drive-views { display: flex; gap: 3px; margin-left: auto; }
.amx-drive-views [aria-pressed="true"] { background: #e5f0fb; color: #17598f; }
.amx-drive-managed[data-view="grid"] .amx-drive-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 8px; padding: 10px; }
.amx-drive-managed[data-view="grid"] .amx-drive-row { grid-template-columns: 18px minmax(0,1fr) 32px; border: 1px solid var(--drive-line); border-radius: 6px; }
.amx-drive-managed[data-view="grid"] .amx-drive-type, .amx-drive-managed[data-view="grid"] .amx-drive-size, .amx-drive-managed[data-view="grid"] .amx-drive-columns { display: none; }
.amx-storage-dialog { width: min(520px,calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; padding: 18px; border: 1px solid #cbd5e1; border-radius: 9px; color: #172033; background: white; font: 400 13px/1.5 Inter,system-ui,sans-serif; box-shadow: 0 12px 45px #17203326; }
.amx-storage-dialog::backdrop { background: #17203355; }
.amx-storage-dialog header, .amx-storage-dialog footer, .amx-storage-places { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.amx-storage-dialog h2 { margin: 0; font-size: 16px; font-weight: 600; }
.amx-storage-dialog header button { border: 0; background: transparent; font: inherit; font-size: 22px; cursor: pointer; }
.amx-storage-dialog footer { justify-content: flex-end; margin-top: 16px; }
.amx-storage-places { justify-content: flex-start; margin: 16px 0; }
.amx-storage-dialog [data-body] { max-height: 300px; min-height: 80px; overflow: auto; }
.amx-storage-folder { display: block; width: 100%; padding: 10px; border: 0; border-bottom: 1px solid #e3e8ef; background: white; color: #172033; text-align: left; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.amx-storage-folder:hover { background: #f0f7fe; }
.amx-storage-dialog p { color: #5c6a7f; overflow-wrap: anywhere; }
.amx-storage-dialog label { display: grid; gap: 6px; }
.amx-storage-dialog [hidden] { display: none !important; }
.amx-storage-dialog input { width: 100%; border: 1px solid #cbd5e1; border-radius: 6px; padding: 8px; font: inherit; }
.amx-storage-menu { position: fixed; z-index: 1000; padding: 5px; min-width: 200px; max-height: calc(100vh - 16px); overflow: auto; border: 1px solid #cbd5e1; border-radius: 7px; background: white; box-shadow: 0 5px 20px #17203326; font: 400 13px/1.5 Inter,system-ui,sans-serif; }
.amx-storage-menu button { display: block; width: 100%; text-align: left; padding: 7px 10px; color: #172033; background: transparent; border: 0; border-radius: 4px; font: inherit; cursor: pointer; }
.amx-storage-menu button:hover, .amx-storage-menu button:focus { background: #e5f0fb; outline: none; }
@media(max-width:640px){
  .amx-drive-managed .amx-drive-columns,.amx-drive-managed .amx-drive-row { grid-template-columns: 16px minmax(0,1fr) 60px 28px; padding-inline: 8px; gap: 6px; }
  .amx-drive-managed .amx-drive-type,.amx-drive-managed .amx-drive-columns > :nth-child(3) { display: none; }
  .amx-drive-views { margin-left: 0; }
}
.amx-drive .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.amx-storage-tabs { display: flex; gap: 4px; border-bottom: 1px solid #d7e1ec; margin-bottom: 20px; }
.amx-storage-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; color: #526177; border: 0; border-bottom: 2px solid transparent; background: none; font: 500 13px/1.4 Inter, system-ui, sans-serif; cursor: pointer; }
.amx-storage-tabs button[aria-selected="true"] { color: #0c65b8; border-bottom-color: #0c65b8; }
.amx-storage-tabs button:hover { background: #f1f6fb; }
.personal-storage-enabled .topbar { flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.personal-storage-enabled .identity__icon { width: 38px; height: 38px; border-radius: 8px; box-shadow: none; }
.personal-storage-enabled .identity h1 { font-size: 18px; font-weight: 600; }
.personal-storage-enabled .identity .eyebrow { display: none; }
.personal-storage-enabled .identity p { font-size: 12px; }
.personal-storage-enabled .connection { width: auto; height: auto; max-width: 100%; padding: 6px 10px; border-radius: 6px; box-shadow: none; }
.personal-storage-enabled #cloudProviderSelect { min-width: 0; max-width: 130px; border: 0; background: transparent; color: #334155; font: inherit; }
.personal-local-open #connectionBadge { display: none; }
@media (max-width: 600px) {
  .amx-drive-browser { grid-template-columns: minmax(0,1fr); }
  .amx-drive-tree { border-right: 0; border-bottom: 1px solid var(--drive-line); max-height: 220px; }
  .amx-drive-connection { align-items: flex-start; flex-direction: column; gap: 8px; }
  .amx-drive-heading { flex-direction: column; gap: 6px; }
  .amx-drive-unit { min-width: 0; width: 100%; }
  .amx-drive-toolbar { gap: 7px; }
  .amx-drive-search { flex-basis: 100%; }
  .amx-drive-columns, .amx-drive-row { grid-template-columns: minmax(0, 1fr) 66px; gap: 8px; padding: 10px 12px; }
  .amx-drive-type, .amx-drive-columns > :nth-child(2) { display: none; }
  .amx-drive-feedback, .amx-drive-selection, .amx-drive-output { flex-wrap: wrap; }
  .amx-drive-selection > span, .amx-drive-output > span { flex-basis: 100%; }
  .amx-drive-pathbar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .amx-drive *, .amx-storage-tabs * { transition: none !important; } }
