/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #eef1f4;
  --panel: #ffffff;
  --panel-soft: #f7f8fa;
  --line: #d9dde3;
  --line-strong: #c5cbd3;
  --text: #20242a;
  --muted: #68717d;
  --accent: #176f63;
  --accent-strong: #11584f;
  --danger: #c93636;
  --shadow: 0 10px 28px rgba(25, 32, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(32, 36, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 36, 42, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  color: var(--text);
  font-family: "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

button:hover:not(:disabled) {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 5px 14px rgba(17, 88, 79, 0.16);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.btn-light {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn-light:hover:not(:disabled) {
  background: #f6f7f8;
  border-color: var(--line-strong);
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: #aa2d2d;
  border-color: #aa2d2d;
}

.btn-small {
  font-size: 13px;
  min-height: 34px;
  padding: 7px 10px;
}

.icon-btn svg,
.ghost-icon svg {
  flex: 0 0 auto;
}

.page {
  min-height: 100vh;
  padding: 18px;
}

.header {
  margin: -18px -18px 16px;
  padding: 14px 18px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(238, 241, 244, 0.92);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(197, 203, 211, 0.72);
}

.header-inner,
.workspace-shell,
.file-grid,
.pager {
  max-width: 1320px;
  margin: 0 auto;
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: #dce9e6;
  border: 1px solid #bed6d0;
  border-radius: 8px;
  color: var(--accent-strong);
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.title {
  font-size: 20px;
  font-weight: 760;
  line-height: 1.2;
}

.desc {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.workspace-shell {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.control-strip,
.path-panel,
.tool-row,
.status-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}

.control-strip,
.path-panel,
.tool-row {
  border-bottom: 1px solid var(--line);
}

.control-group,
.filter-group,
.bulk-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.bucket-control {
  min-width: min(100%, 460px);
}

.bucket-select {
  min-width: min(100%, 310px);
}

.search-control {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 1 1 300px;
  min-height: 40px;
  padding: 0 10px;
}

.search-control svg {
  color: var(--muted);
}

.field,
.select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 38px;
  outline: none;
  padding: 8px 10px;
}

.field:focus,
.select:focus,
.search-control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 111, 99, 0.12);
}

.search {
  border: 0;
  flex: 1 1;
  min-width: 180px;
  padding-left: 0;
}

.search:focus {
  box-shadow: none;
}

.date-field {
  min-width: 140px;
}

.compact-select {
  min-width: 96px;
}

.region-pill,
.selection-count {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 5px 9px;
}

.label,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.upload-box {
  position: relative;
}

.upload-box input {
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
}

.ghost-icon {
  background: transparent;
  border: 0;
  color: var(--muted);
  min-height: 28px;
  padding: 4px;
}

.ghost-icon:hover:not(:disabled) {
  background: #eef1f4;
  box-shadow: none;
  color: var(--text);
}

.breadcrumb {
  align-items: center;
  display: flex;
  flex: 1 1 420px;
  flex-wrap: wrap;
  gap: 2px;
  min-width: 0;
}

.crumb {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  min-height: 30px;
  padding: 5px 7px;
}

.crumb:hover:not(:disabled) {
  background: #f2f4f6;
  border-color: transparent;
  box-shadow: none;
  color: var(--text);
}

.crumb.current {
  background: #e6ecea;
  border-color: #d0ded9;
  color: var(--accent-strong);
  font-weight: 700;
}

.crumb-sep {
  color: #a7afb8;
}

.check-label {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  gap: 6px;
}

.check-label input {
  accent-color: var(--accent);
}

.bulk-actions {
  margin-left: auto;
}

.status-line {
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  justify-content: space-between;
}

.progress-panel {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 12px 12px;
}

.progress-meta {
  color: var(--muted);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-track {
  background: #e6eaee;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, var(--accent), #2f9c8e);
  border-radius: inherit;
  height: 100%;
  transition: width 0.18s ease;
}

.folder-grid {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin: 0 auto 16px;
  max-width: 1320px;
}

.folder-tile {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  justify-content: flex-start;
  min-height: 58px;
  min-width: 0;
  padding: 10px;
  text-align: left;
}

.folder-tile:hover:not(:disabled) {
  background: #f8faf9;
  border-color: #b9cbc5;
}

.folder-icon {
  align-items: center;
  background: #e4eee9;
  border-radius: 8px;
  color: var(--accent-strong);
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.folder-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-grid {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(25, 32, 38, 0.05);
  overflow: hidden;
  position: relative;
}

.card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 111, 99, 0.14);
}

.thumb-wrap {
  background: #e9edf1;
  position: relative;
}

.thumb-wrap.video::after {
  align-items: center;
  background: rgba(32, 36, 42, 0.72);
  border-radius: 50%;
  bottom: 10px;
  color: #fff;
  content: "▶";
  display: flex;
  font-size: 12px;
  height: 28px;
  justify-content: center;
  pointer-events: none;
  position: absolute;
  right: 10px;
  width: 28px;
}

.check {
  accent-color: var(--accent);
  cursor: pointer;
  height: 21px;
  left: 8px;
  position: absolute;
  top: 8px;
  width: 21px;
  z-index: 2;
}

.thumb,
.file-thumb {
  aspect-ratio: 1 / 1;
  cursor: pointer;
  display: block;
  object-fit: cover;
  width: 100%;
}

.file-thumb {
  align-items: center;
  background: linear-gradient(180deg, #f7f8fa, #e9edf1);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  text-align: center;
}

.file-thumb span {
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

.info {
  padding: 10px;
}

.name {
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  height: 34px;
  line-height: 1.4;
  overflow: hidden;
  word-break: break-all;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.actions button {
  flex: 1 1;
}

.empty {
  align-items: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 1320px;
  min-height: 160px;
}

.pager {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.preview {
  align-items: center;
  background: rgba(19, 23, 27, 0.82);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 60;
}

.preview-media {
  background: #000;
  border-radius: 8px;
  max-height: 86vh;
  max-width: 96vw;
}

.preview video {
  width: min(96vw, 1200px);
}

.preview iframe {
  background: #fff;
  border: 0;
  height: min(86vh, 720px);
  width: min(96vw, 1000px);
}

.preview-close {
  border-radius: 50%;
  height: 42px;
  padding: 0;
  position: fixed;
  right: 18px;
  top: 18px;
  width: 42px;
}

.toast {
  background: #20242a;
  border-radius: 8px;
  bottom: 22px;
  box-shadow: var(--shadow);
  color: #fff;
  left: 50%;
  max-width: calc(100vw - 40px);
  padding: 11px 14px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 70;
}

.toast.error {
  background: var(--danger);
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions,
  .bulk-actions,
  .filter-group,
  .control-group {
    width: 100%;
  }

  .bucket-select,
  .search-control {
    flex: 1 1;
  }

  .bulk-actions {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 12px;
  }

  .header {
    margin: -12px -12px 12px;
    padding: 12px;
  }

  .title {
    font-size: 18px;
  }

  .folder-grid,
  .file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .folder-tile {
    min-height: 52px;
  }

  .date-field {
    flex: 1 1;
    min-width: 120px;
  }
}

