.add-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg, #f4f5f8);
  color: var(--text, #131419);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.add_document_list {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  background: var(--bg, #f4f5f8);
}

.add_document_list .add-doc-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-height: calc(60px + env(safe-area-inset-top));
  padding: calc(21px + env(safe-area-inset-top)) 16px 12px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg, #f4f5f8);
}

.add_document_list .add-doc-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  color: var(--blue-active, #165ef8);
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
}

.add_document_list .add-doc-back svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-left: -2px;
}

.add_document_list .add-doc-topbar-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  color: var(--text, #131419);
}

.add_document_list .add-doc-topbar-spacer {
  flex: 1;
}

.add_document_list .add-doc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px;
}

.add_document_list .add-doc-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.add_document_list .add-doc-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted, #6b7280);
  pointer-events: none;
}

.add_document_list .add-doc-search {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px 10px 40px;
  border-radius: 10px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #ffffff);
  color: var(--text, #131419);
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
}

.add_document_list .add-doc-search::placeholder {
  color: var(--text-muted, #6b7280);
}

.add_document_list .add-doc-hint {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  color: var(--text, #131419);
}

.add_document_list .add-doc-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  overflow: hidden;
  margin-bottom: 8px;
}

.add-doc-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  margin: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.add-doc-option + .add-doc-option {
  border-top: 1px solid var(--border, #e5e7eb);
}

.add-doc-option__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.add-doc-option__box {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 6px;
  border: 2px solid var(--text-muted, #8e8e93);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.add-doc-option__box::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  margin-top: -2px;
  transition: transform 0.15s ease;
}

.add-doc-option__input:checked + .add-doc-option__box {
  background: var(--blue-active, #165ef8);
  border-color: var(--blue-active, #165ef8);
}

.add-doc-option__input:checked + .add-doc-option__box::after {
  transform: rotate(45deg) scale(1);
}

.add-doc-option__label {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text, #131419);
  flex: 1;
  min-width: 0;
}

.add_document_list .add-doc-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, var(--bg, #f4f5f8) 28%);
  z-index: 3;
}

.add_document_list .add-doc-save {
  width: 100%;
  min-height: 48px;
  border: none !important;
  border-radius: 999px;
  background: var(--blue-active, #165ef8) !important;
  color: var(--bg, #ffffff) !important;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

[data-theme="dark"] .add_document_list .add-doc-save {
  color: #000000 !important;
}
