.pdn-drive,
.pdn-iframe-wrap,
.pdn-message,
.pdn-setup-message {
  --pdn-blue: #0052a5;
  --pdn-blue-dark: #003f7e;
  --pdn-red: #e33b32;
  --pdn-border: #d8e2ef;
  --pdn-line: #e7edf5;
  --pdn-soft: #f8fbff;
  --pdn-soft-2: #f2f6fb;
  --pdn-text: #27364a;
  --pdn-muted: #737f8d;
  --pdn-icon: #7c858f;
  --pdn-radius: 18px;
  width: 100%;
  color: var(--pdn-text);
  font-family: inherit;
  box-sizing: border-box;
}

.pdn-drive *,
.pdn-drive *::before,
.pdn-drive *::after,
.pdn-iframe-wrap *,
.pdn-message *,
.pdn-setup-message *,
.pdn-modal *,
.pdn-modal *::before,
.pdn-modal *::after {
  box-sizing: border-box;
}

.pdn-drive {
  min-height: var(--pdn-height, 520px);
  border: 1px solid var(--pdn-border);
  border-radius: var(--pdn-radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 49, 99, 0.06);
}

.pdn-drive--compact {
  min-height: 0;
}

.pdn-header {
  padding: 14px 18px 12px;
  background: linear-gradient(180deg, #ffffff 0%, var(--pdn-soft) 100%);
  border-bottom: 1px solid var(--pdn-line);
}

.pdn-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pdn-title-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.pdn-title {
  margin: 0 0 8px;
  color: var(--pdn-blue);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.pdn-drive--no-title .pdn-header {
  padding-top: 10px;
  padding-bottom: 10px;
}

.pdn-path-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pdn-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--pdn-muted);
  font-size: 13px;
  min-width: 0;
}

.pdn-breadcrumb,
.pdn-back-button,
.pdn-icon-button,
.pdn-mini-action,
.pdn-load-more,
.pdn-modal-close,
.pdn-modal-link {
  appearance: none;
  border: 1px solid var(--pdn-border);
  background: #fff;
  color: var(--pdn-text);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  text-decoration: none !important;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pdn-breadcrumb {
  border-color: transparent;
  background: transparent;
  color: var(--pdn-blue);
  padding: 3px 2px;
  font-weight: 600;
}

.pdn-breadcrumb:disabled {
  color: var(--pdn-muted);
  cursor: default;
  opacity: 1;
}

.pdn-breadcrumb:not(:disabled):hover {
  color: var(--pdn-red);
}

.pdn-breadcrumb-separator {
  color: #a4adba;
}

.pdn-back-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  color: var(--pdn-blue);
  font-size: 13px;
  font-weight: 700;
}

.pdn-back-button::before {
  content: '←';
  font-size: 15px;
  line-height: 1;
}

.pdn-back-button[hidden] {
  display: none;
}

.pdn-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.pdn-search {
  width: min(260px, 34vw);
  min-height: 38px;
  border: 1px solid var(--pdn-border);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--pdn-text);
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.pdn-search:focus {
  border-color: var(--pdn-blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 165, .12);
}

.pdn-icon-button {
  min-width: 38px;
  min-height: 38px;
  padding: 8px 11px;
  color: var(--pdn-muted);
  font-size: 13px;
  font-weight: 700;
}

.pdn-icon-button:hover,
.pdn-icon-button.is-active,
.pdn-mini-action:hover,
.pdn-load-more:hover,
.pdn-modal-link:hover,
.pdn-modal-close:hover,
.pdn-back-button:hover {
  border-color: rgba(0, 82, 165, .35);
  color: var(--pdn-blue);
  box-shadow: 0 8px 18px rgba(15, 49, 99, .08);
}

.pdn-icon-button.is-active {
  background: var(--pdn-blue);
  border-color: var(--pdn-blue);
  color: #fff;
}

.pdn-status {
  margin: 12px 18px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--pdn-soft-2);
  color: var(--pdn-muted);
  font-size: 14px;
}

.pdn-status[hidden] {
  display: none;
}

.pdn-status--loading {
  color: var(--pdn-blue);
}

.pdn-status--error {
  background: #fff5f4;
  border: 1px solid #ffd6d2;
  color: #9b2a23;
}

.pdn-table-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(170px, 260px) minmax(92px, auto);
  gap: 10px;
  align-items: center;
  margin: 12px 18px 0;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--pdn-line);
  color: #8a8f98;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.pdn-table-head .pdn-table-title {
  color: var(--pdn-red);
  font-weight: 800;
}

.pdn-drive--grid .pdn-table-head {
  display: none;
}

.pdn-list {
  min-height: 140px;
}

.pdn-drive--list .pdn-list {
  padding: 0 18px 10px;
}

.pdn-drive--grid .pdn-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 12px;
  padding: 18px;
}

.pdn-item {
  position: relative;
  border: 0;
  background: #fff;
  color: var(--pdn-text);
  outline: none;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.pdn-item:hover,
.pdn-item:focus-visible {
  background: #fbfdff;
}

.pdn-drive--list .pdn-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(170px, 260px) minmax(92px, auto);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 0;
  border-bottom: 1px solid var(--pdn-line);
}

.pdn-drive--list .pdn-item:hover,
.pdn-drive--list .pdn-item:focus-visible {
  transform: translateX(2px);
}

.pdn-drive--grid .pdn-item {
  display: flex;
  flex-direction: column;
  min-height: 158px;
  padding: 16px;
  border: 1px solid var(--pdn-line);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 49, 99, .05);
}

.pdn-drive--grid .pdn-item:hover,
.pdn-drive--grid .pdn-item:focus-visible {
  border-color: rgba(0, 82, 165, .32);
  box-shadow: 0 15px 35px rgba(15, 49, 99, .10);
  transform: translateY(-2px);
}

.pdn-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pdn-icon);
  flex: 0 0 auto;
}

.pdn-drive--list .pdn-thumb {
  width: 34px;
  height: 34px;
}

.pdn-drive--grid .pdn-thumb {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
}

.pdn-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pdn-folder-tab,
.pdn-folder-body,
.pdn-file-paper {
  fill: currentColor;
}

.pdn-folder-tab {
  opacity: .72;
}

.pdn-folder-body {
  opacity: .95;
}

.pdn-file-paper {
  opacity: .20;
}

.pdn-file-corner,
.pdn-file-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdn-thumb--folder {
  color: #858b93;
}

.pdn-item--folder:hover .pdn-thumb--folder,
.pdn-item--folder:focus-visible .pdn-thumb--folder {
  color: var(--pdn-blue);
}

.pdn-thumb--pdf {
  color: var(--pdn-red);
}

.pdn-thumb--sheet {
  color: #1b8754;
}

.pdn-thumb--slide {
  color: #c9761a;
}

.pdn-thumb--doc {
  color: var(--pdn-blue);
}

.pdn-thumb--image,
.pdn-thumb--video,
.pdn-thumb--audio,
.pdn-thumb--file {
  color: #697586;
}

.pdn-item-body {
  min-width: 0;
}

.pdn-item-name {
  overflow: hidden;
  color: #1d2633;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdn-item--folder .pdn-item-name {
  font-weight: 600;
}

.pdn-item:hover .pdn-item-name,
.pdn-item:focus-visible .pdn-item-name {
  color: var(--pdn-blue);
}

.pdn-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  color: var(--pdn-muted);
  font-size: 12px;
  line-height: 1.3;
}

.pdn-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--pdn-soft-2);
  color: var(--pdn-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.pdn-size {
  color: #8c96a3;
}

.pdn-item-modified {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: #6f7782;
  font-size: 13px;
  line-height: 1.25;
}

.pdn-owner {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdn-drive--grid .pdn-item-modified {
  margin-top: auto;
  padding-top: 12px;
}

.pdn-drive--grid .pdn-item-actions {
  margin-top: 12px;
}

.pdn-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.pdn-mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 11px;
  color: var(--pdn-blue);
  font-size: 13px;
  font-weight: 700;
}

.pdn-primary-action {
  border-color: rgba(0, 82, 165, .22);
}

.pdn-secondary-action {
  color: var(--pdn-muted);
}

.pdn-empty {
  margin: 18px;
  padding: 28px 16px;
  border: 1px dashed var(--pdn-border);
  border-radius: 16px;
  background: var(--pdn-soft);
  color: var(--pdn-muted);
  text-align: center;
}

.pdn-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px 14px;
  color: var(--pdn-muted);
  font-size: 12px;
}

.pdn-count {
  min-height: 18px;
}

.pdn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  color: var(--pdn-blue);
  font-size: 13px;
  font-weight: 700;
}

.pdn-load-more[hidden] {
  display: none;
}

.pdn-credit {
  margin-left: auto;
  color: #9aa3af;
  font-size: 11px;
  white-space: nowrap;
}

.pdn-message,
.pdn-setup-message {
  border: 1px solid var(--pdn-border);
  border-radius: var(--pdn-radius);
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 49, 99, 0.06);
}

.pdn-setup-message {
  min-height: var(--pdn-height, 360px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.pdn-setup-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--pdn-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, var(--pdn-soft));
  text-align: center;
}

.pdn-setup-card h3 {
  margin: 0 0 10px;
  color: var(--pdn-blue);
  font-size: 20px;
  text-transform: uppercase;
}

.pdn-setup-card p {
  margin: 8px 0 0;
  color: var(--pdn-muted);
}

.pdn-message--error {
  padding: 14px 16px;
  border-color: #ffd6d2;
  background: #fff5f4;
  color: #9b2a23;
}

.pdn-iframe-wrap {
  border: 1px solid var(--pdn-border);
  border-radius: var(--pdn-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 49, 99, 0.06);
}

.pdn-iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

.pdn-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 20, 34, .72);
}

.pdn-modal-dialog {
  display: flex;
  flex-direction: column;
  width: min(1120px, 96vw);
  height: min(820px, 92vh);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .28);
}

.pdn-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--pdn-line, #e7edf5);
  background: #fff;
}

.pdn-modal-title {
  min-width: 0;
  overflow: hidden;
  color: var(--pdn-blue, #0052a5);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdn-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pdn-modal-link,
.pdn-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.pdn-modal-close {
  color: var(--pdn-red, #e33b32);
}

.pdn-preview-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f5f7fb;
}

@media (max-width: 760px) {
  .pdn-header-top {
    align-items: stretch;
    flex-direction: column;
  }

  .pdn-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .pdn-search {
    width: 100%;
    flex: 1 1 100%;
  }

  .pdn-table-head {
    display: none;
  }

  .pdn-drive--list .pdn-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
    padding: 12px 0;
  }

  .pdn-drive--list .pdn-item-modified,
  .pdn-drive--list .pdn-item-actions {
    grid-column: 2;
  }

  .pdn-drive--list .pdn-item-actions {
    justify-content: flex-start;
  }

  .pdn-drive--grid .pdn-list {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }

  .pdn-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdn-credit {
    margin-left: 0;
  }

  .pdn-modal {
    padding: 10px;
  }

  .pdn-modal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdn-modal-actions {
    flex-wrap: wrap;
  }
}
.pdn-loading { padding: 28px 18px; color: var(--pdn-muted); text-align: center; }
