:root {
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  font-size: 14px;
  color: #172238;
  background: #f6f8fc;
  --ink: #172238;
  --muted: #5b6880;
  --edge: #e1e7f0;
  --blue: #2757d9;
  --blue-dark: #1742bd;
  --blue-pale: #eef3ff;
  --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
:focus-visible { outline: 3px solid #7391ed; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
button { color: inherit; }
.shell { min-height: 100dvh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; gap: 25px; padding: 28px 17px; background: #162438; color: #f5f9ff; }
.brand { display: inline-flex; align-items: center; gap: 7px; width: fit-content; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.sidebar .brand { margin: 0 7px 8px; }
.brand b { font-weight: 650; letter-spacing: 0; }
.mark { position: relative; width: 35px; height: 35px; background: var(--blue); border-radius: 11px; box-shadow: inset 0 0 0 1px #ffffff20; margin-right: 4px; }
.mark::before, .mark::after { content: ''; position: absolute; width: 15px; height: 10px; border: 1.7px solid #fff; border-radius: 3px; left: 9px; }
.mark::before { top: 9px; background: var(--blue); z-index: 1; }
.mark::after { top: 14px; opacity: .72; }
.navigation { display: grid; gap: 6px; }
.nav-link { padding: 12px 13px; display: flex; align-items: center; gap: 11px; min-height: 44px; color: #bdccdf; border-radius: 9px; font-weight: 650; }
.nav-link:hover { color: #fff; background: #21334c; }
.nav-link[aria-current=page] { color: #fff; background: #294366; }
.storage { padding: 0 5px; }
.storage h2 { margin: 0 7px 11px; color: #bdccdf; font-weight: 650; font-size: 13px; }
.capacity { display: grid; gap: 8px; padding: 12px; border: 1px solid #324660; border-radius: 10px; color: #dceaff; background: #1c2c43; font-size: 12px; }
.capacity progress { background: #314766; color: #87a6fa; }
.capacity progress::-webkit-progress-bar { background: #314766; }
.capacity progress::-webkit-progress-value { background: #87a6fa; }
progress { display: block; width: 100%; height: 6px; appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: var(--blue-pale); color: var(--blue); }
progress::-webkit-progress-bar { background: var(--blue-pale); }
progress::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 999px; }
.demo-note { color: #bdccdf; font-size: 12px; margin: auto 7px 0; }
.main { min-width: 0; }
.topline { min-height: 69px; background: #ffffffaf; border-bottom: 1px solid var(--edge); padding: 13px clamp(16px, 4vw, 48px); display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.breadcrumbs { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumbs [aria-current=location] { color: var(--ink); font-weight: 650; }
.crumb-separator { color: #7e8ca2; }
.workspace { padding: 37px clamp(16px, 4vw, 48px) 55px; max-width: 1500px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-bottom: 24px; }
.section-head h1 { font-size: clamp(25px, 3vw, 34px); line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; }
.section-head p { margin-top: 8px; min-height: 1.3em; }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.button { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; font-weight: 650; white-space: nowrap; line-height: 1.35; }
.button span { font-size: 17px; line-height: 1; }
.primary { color: #fff; background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.secondary { color: var(--ink); background: var(--white); border-color: #d8e1ed; }
.secondary:hover { background: #f3f6fc; }
.danger { color: #fff; background: #b42333; }
.danger:hover { background: #971c2a; }
.table-card { background: var(--white); border: 1px solid var(--edge); border-radius: 13px; box-shadow: 0 2px 6px #17223805; }
.workspace.dragging .table-card { outline: 2px dashed var(--blue); outline-offset: 4px; }
table { width: 100%; text-align: left; border-spacing: 0; table-layout: fixed; }
th { background: #fafbfe; color: var(--muted); font-size: 12px; font-weight: 650; }
th:first-child { border-top-left-radius: 13px; width: 39%; }
th:last-child { border-top-right-radius: 13px; }
th, td { border-bottom: 1px solid var(--edge); padding: 13px clamp(8px, 1.5vw, 20px); }
td { height: 62px; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcff; }
.control-heading { text-align: right; width: 135px; }
.item-name { color: var(--ink); display: flex; gap: 11px; align-items: center; min-width: 0; font-weight: 650; }
.item-name a { min-width: 0; overflow-wrap: anywhere; }
.item-name a:hover { color: var(--blue); }
.item-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 8px; color: var(--blue); background: var(--blue-pale); }
.item-icon.is-file { background: #eaf6f4; color: #117a70; }
.icon { display: inline-block; position: relative; flex: 0 0 auto; width: 18px; height: 16px; color: inherit; }
.icon.folder::before { content: ''; position: absolute; left: 0; top: 4px; width: 100%; height: 11px; background: currentColor; border-radius: 2px 3px 3px 3px; }
.icon.folder::after { content: ''; position: absolute; left: 0; top: 2px; width: 8px; height: 5px; background: currentColor; border-radius: 3px 3px 0 0; }
.icon.file::before { content: ''; position: absolute; inset: 0 3px; border: 1.7px solid; border-radius: 3px; }
.icon.file::after { content: ''; position: absolute; width: 5px; height: 1.5px; top: 7px; left: 7px; background: currentColor; box-shadow: 0 3px currentColor; }
.icon.link::before, .icon.link::after { content: ''; position: absolute; width: 9px; height: 5px; border: 1.5px solid; border-radius: 4px; transform: rotate(-42deg); }
.icon.link::before { top: 2px; right: 0; }
.icon.link::after { bottom: 2px; left: 0; }
.icon.grid::before { content: ''; position: absolute; left: 2px; top: 1px; width: 6px; height: 6px; border-radius: 1px; background: currentColor; box-shadow: 8px 0, 0 8px, 8px 8px; }
.icon.stack::before { content: ''; position: absolute; top: 1px; left: 1px; width: 16px; height: 4px; background: currentColor; border-radius: 2px; box-shadow: 0 5px, 0 10px; }
.row-actions { display: flex; gap: 5px; align-items: center; justify-content: flex-end; }
.icon-button { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; border-radius: 7px; color: #465a7b; background: transparent; font-size: 17px; }
.icon-button:hover { color: var(--blue); background: var(--blue-pale); }
details { position: relative; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
.row-menu { position: absolute; z-index: 2; top: 35px; right: 0; min-width: 125px; display: grid; gap: 2px; padding: 5px; border: 1px solid var(--edge); border-radius: 9px; background: var(--white); box-shadow: 0 9px 25px #17223820; }
.row-menu button { background: none; text-align: left; border: 0; border-radius: 5px; padding: 8px 11px; }
.row-menu button:hover { background: var(--blue-pale); }
.row-menu .remove { color: #a2182b; }
.empty { min-height: 320px; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 26px 15px; }
.empty-icon { display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 7px; color: var(--blue); border-radius: 20px; background: var(--blue-pale); }
.empty-icon .icon { transform: scale(1.65); }
.empty strong { font-size: 17px; }
.empty p { color: var(--muted); }
.empty .button { margin-top: 6px; }
.pager { text-align: center; padding: 13px; border-top: 1px solid var(--edge); }
.status-pill { font-size: 12px; color: #18674b; }
.status-pill.inactive { color: var(--muted); }
.share-policy { display: block; margin-top: 3px; }
.upload-status { border: 1px solid var(--edge); border-radius: 9px; margin-bottom: 14px; background: var(--white); padding: 13px 15px; }
.upload-line { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; overflow-wrap: anywhere; }
.upload-status p { margin-top: 7px; color: var(--muted); }
.notice { padding: 10px 12px; border-radius: 7px; margin-bottom: 12px; overflow-wrap: anywhere; }
.error { color: #a12435; background: #fff0f2; }
dialog { width: min(450px, calc(100vw - 28px)); max-height: calc(100dvh - 35px); border: 1px solid var(--edge); border-radius: 15px; padding: 22px; color: var(--ink); box-shadow: 0 19px 60px #17223835; }
dialog::backdrop { background: #17223865; }
.dialog-head, .dialog-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.dialog-head h2 { font-size: 21px; }
.dialog-actions { justify-content: flex-end; margin-top: 21px; }
.dialog-content { display: grid; gap: 13px; margin: 14px 0; overflow-wrap: anywhere; }
.field, .unlock { display: grid; gap: 6px; font-weight: 600; }
input:not([type=file]) { width: 100%; min-height: 40px; color: var(--ink); border: 1px solid #cbd6e8; border-radius: 7px; padding: 7px 10px; background: #fff; }
.picker { display: grid; gap: 5px; max-height: 220px; overflow-y: auto; padding: 3px; }
.picker button { text-align: left; white-space: normal; overflow-wrap: anywhere; justify-content: flex-start; }
.toast { position: fixed; z-index: 5; left: 50%; bottom: 25px; transform: translateX(-50%); border-radius: 8px; padding: 10px 15px; background: #1b2b49; color: #fff; box-shadow: 0 4px 18px #1722383a; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 13px; }
.metric, .dashboard-shortcut, .managed-bucket, .pending-list { border: 1px solid var(--edge); border-radius: 12px; background: var(--white); }
.metric { display: grid; gap: 10px; padding: 20px 16px; }
.metric-label { color: var(--muted); font-size: 13px; }
.metric-value { font-size: clamp(21px, 3.5vw, 32px); letter-spacing: -.04em; line-height: 1.1; }
.dashboard-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 219px), 1fr)); gap: 13px; margin-top: 24px; }
.dashboard-shortcut { padding: 16px 13px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.dashboard-shortcut .item-icon { width: 34px; }
.dashboard-shortcut > span:last-child { color: var(--muted); }
.dashboard-shortcut:hover { border-color: #aebff0; }
.dashboard-shortcut small, .pending-row small { display: block; margin-top: 4px; color: var(--muted); }
.managed-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 267px), 1fr)); gap: 14px; }
.managed-bucket { display: grid; gap: 12px; padding: 16px; align-content: start; }
.bucket-header, .bucket-details, .pending-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bucket-title { overflow-wrap: anywhere; }
.bucket-title h2 { font-size: 16px; }
.bucket-title span, .bucket-details, .bucket-note { color: var(--muted); font-size: 12px; }
.bucket-title span { display: block; margin-top: 4px; }
.bucket-status { flex: none; padding: 4px 8px; color: #614c1e; background: #faf3e1; border-radius: 6px; font-size: 12px; }
.bucket-status.ready { color: #18674b; background: #e9f7ef; }
.bucket-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.bucket-actions .button, .pending-row .button { min-height: 34px; padding: 6px 9px; font-size: 12px; }
.remove-bucket { color: #a12435; }
.remove-bucket:disabled { cursor: not-allowed; }
.admin-section { margin-top: 29px; }
.admin-section h2 { font-size: 17px; margin-bottom: 11px; }
.pending-row { padding: 12px 14px; border-bottom: 1px solid var(--edge); overflow-wrap: anywhere; }
.pending-row:last-child { border-bottom: 0; }
.panel-empty { padding: 15px; color: var(--muted); }
.managed-buckets > .panel-empty { border: 1px dashed #bdcbe0; border-radius: 12px; }
.paired-fields { display: grid; grid-template-columns: auto auto; gap: 10px; }
.share-screen { display: grid; min-height: 100dvh; place-items: center; padding: 22px; }
.share-wrap { display: grid; justify-items: center; gap: 18px; width: min(100%, 430px); }
.share-card { display: grid; justify-items: center; gap: 11px; width: 100%; border: 1px solid var(--edge); border-radius: 18px; padding: 30px 24px; background: #fff; box-shadow: 0 8px 30px #1722380a; }
.share-card h1 { font-size: 23px; text-align: center; overflow-wrap: anywhere; width: 100%; }
.share-card .unlock { width: 100%; margin-top: 9px; }
.share-card .button { margin-top: 8px; }
.share-card .notice { margin: 0; }
@media (max-width: 880px) {
  .shell { grid-template-columns: 182px minmax(0, 1fr); }
  .sidebar { padding-inline: 11px; }
  th:first-child { width: 40%; }
  .date-column { display: none; }
}
@media (max-width: 640px) {
  .shell { display: block; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--edge); display: grid; gap: 10px; padding: 13px 16px 10px; }
  .sidebar .brand { margin: 0; }
  .navigation { display: flex; flex-wrap: wrap; gap: 6px; }
  .nav-link { font-size: 13px; padding: 7px 9px; min-height: 36px; }
  .storage { display: flex; align-items: center; gap: 8px; padding: 0; }
  .storage h2 { margin: 0; }
  .capacity { padding: 4px 8px; }
  .capacity progress, .demo-note { display: none; }
  .topline { min-height: 49px; padding-top: 9px; padding-bottom: 9px; }
  .workspace { padding-top: 24px; }
  th:first-child { width: 48%; }
  .control-heading { width: 108px; }
  .row-actions { gap: 1px; }
  .item-name { gap: 6px; }
  .item-icon { flex-basis: 25px; height: 26px; }
  .item-icon .icon { transform: scale(.8); }
}
