:root {
  --bs-primary: #0f766e;
  --bs-primary-rgb: 15, 118, 110;
  --bs-link-color: #0f766e;
  --bs-link-hover-color: #115e59;
  --bs-focus-ring-color: rgba(15, 118, 110, 0.25);
}

.navbar-brand { color: #0f172a !important; line-height: 1.15; }
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.brand-text #brandName,
.brand-text #pickupBrand {
  font-weight: 600;
  font-size: 1rem;
}
.brand-url {
  font-size: 0.72rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.2;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-url:empty { display: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.letter-wide { letter-spacing: 0.16em; }
.send-card .card-header { padding-left: 1rem; padding-right: 1rem; }
.send-tabs { border-bottom: 0; gap: 0.25rem; }
.send-tabs .nav-link {
  color: #64748b;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.7rem 1rem;
  font-weight: 600;
}
.send-tabs .nav-link:hover { color: #0f766e; border-color: transparent; }
.send-tabs .nav-link.active {
  color: #0f766e;
  background: transparent;
  border-color: transparent transparent #0f766e;
}
.send-text { min-height: 168px; resize: vertical; }
.file-pick-list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.file-pick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.875rem;
}
.file-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pick-size { color: #94a3b8; flex-shrink: 0; }
.file-pick-off {
  border: 0;
  background: transparent;
  color: #94a3b8;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.file-pick-off:hover { background: #fee2e2; color: #b91c1c; }
.dropzone:focus { outline: none; }
.dropzone:focus-visible { border-color: #0f766e; }
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  border: 2px dashed #99f6e4;
  background: #f0fdfa;
  cursor: pointer;
  padding: 1.25rem;
  text-align: center;
}
.dropzone.over { background: #ccfbf1; border-color: #0f766e; }
.progress-bar { background-color: #0f766e; }
.ticket-modal-item + .ticket-modal-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bs-border-color);
}
.ticket-modal-item .pickup-code {
  font-size: 1.75rem;
  letter-spacing: 0.22em;
}
.ticket-modal-link {
  word-break: break-all;
  font-size: 0.875rem;
}
.digit {
  width: 3rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 600;
}
.pickup-code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 2rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: #0f766e;
}
.share-pre {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow: auto;
  background: #f8fafc;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}
.btn-primary {
  --bs-btn-bg: #0f766e;
  --bs-btn-border-color: #0f766e;
  --bs-btn-hover-bg: #115e59;
  --bs-btn-hover-border-color: #115e59;
  --bs-btn-active-bg: #134e4a;
  --bs-btn-active-border-color: #134e4a;
}
.form-check-input:checked {
  background-color: #0f766e;
  border-color: #0f766e;
}
.form-control:focus, .form-select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.2);
}
.text-primary { color: #0f766e !important; }
.chat-card {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}
.vault-split { height: calc(100vh - 9rem); min-height: 28rem; }
.vault-rooms { justify-content: flex-start; min-height: 0; }
.vault-room-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.4rem; overflow-y: auto; }
.vault-room {
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem;
}
.vault-room.active { border-color: #0f766e; background: #ccfbf1; }
.vault-chat { background: #fff; min-height: 0; flex: 1; display: flex; flex-direction: column; }
.chat-card .card-header, .chat-card .card-footer { flex-shrink: 0; }
.chat-composer { padding: 0.75rem 1rem; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; background: #f8fafc; display: flex; flex-direction: column; gap: 0.75rem; }
.chat-bubble {
  max-width: 80%;
  align-self: flex-end;
  background: #ccfbf1;
  border-radius: 1rem 1rem 0.25rem 1rem;
  padding: 0.6rem 0.9rem;
}
.chat-bubble > div:first-child { white-space: pre-wrap; word-break: break-word; }
.chat-meta { font-size: 0.75rem; color: #64748b; }
#chatInput {
  resize: none;
  overflow-y: auto;
  min-height: 2.5rem;
  max-height: 8.5rem;
  line-height: 1.45;
}

.pickup-page {
  background: transparent;
}
.pickup-split {
  display: flex;
  min-height: calc(100vh - 8rem);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  overflow: hidden;
}
.pickup-left {
  width: 300px;
  flex-shrink: 0;
  padding: 2rem 1.5rem;
  border-right: 1px solid #eef2f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.pickup-brand,
.pickup-left-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.pickup-input {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-align: center;
  height: 2.85rem;
  border-radius: 999px;
  font-weight: 600;
}
.pickup-go { height: 2.85rem; border-radius: 999px; font-weight: 600; }
.pickup-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f5f7fb;
}
.pickup-filled { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pickup-filled .pickup-stage { flex: 1; }
.pickup-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  min-height: 280px;
}
.pickup-empty i { font-size: 3.5rem; margin-bottom: 0.75rem; }
.pickup-stage { display: flex; flex-direction: column; height: 100%; min-height: 280px; }
.pickup-stage-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #eef2f6;
}
.pickup-stage-mid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: auto;
}
.pickup-stage-bot {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: #fff;
  border-top: 1px solid #eef2f6;
}
.pickup-stage-bot .btn { border-radius: 999px; min-width: 7.5rem; }
.pickup-file-icon {
  width: 72px; height: 72px; border-radius: 18px;
  background: #fff; color: #94a3b8;
  display: grid; place-items: center; font-size: 2.2rem;
  border: 1px solid #e2e8f0; margin: 0 auto 0.75rem;
}
.pickup-img {
  max-width: 100%;
  max-height: min(50vh, 420px);
  border-radius: 0.75rem;
  background: #fff;
}
.pickup-table-wrap {
  width: 100%;
  max-height: min(50vh, 420px);
  overflow: auto;
  background: #fff;
  border-radius: 0.75rem;
}
.pickup-text-box {
  width: 100%;
  max-width: 720px;
  max-height: min(50vh, 420px);
  overflow: auto;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}
.pickup-back { display: none; }
@media (max-width: 767.98px) {
  .pickup-split { flex-direction: column; min-height: auto; }
  .vault-split { height: auto; min-height: 0; }
  .vault-rooms { max-height: 12rem; }
  .chat-card { min-height: 55vh; }
  .pickup-left { width: 100%; border-right: 0; border-bottom: 1px solid #eef2f6; }
  .pickup-page .pickup-right { display: none; }
  .pickup-page.pickup-has-result .pickup-left { display: none; }
  .pickup-page.pickup-has-result .pickup-right { display: flex; min-height: calc(100vh - 8rem); }
  .pickup-page.pickup-has-result .pickup-split { min-height: calc(100vh - 8rem); }
  .pickup-back { display: inline-flex; align-items: center; }
  .pickup-stage-top { flex-direction: column; }
  .pickup-stage-bot { flex-direction: column; }
  .pickup-stage-bot .btn { width: 100%; min-width: 0; }
}
.captcha-img {
  height: 50px;
  width: auto;
  max-width: 100%;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  flex: 0 0 auto;
}
.filepane {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 0.75rem;
  overflow: hidden;
}
.filepane-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #eef2f6;
}
.filepane-search { max-width: 16rem; }
.file-table { min-height: 12rem; }
.file-head, .file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem 7rem;
  align-items: center;
  padding: 0 1rem;
  min-height: 2.7rem;
}
.file-head {
  color: #94a3b8;
  font-size: 0.8rem;
  border-bottom: 1px solid #eef2f6;
}
.file-row { border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.file-row:hover { background: #eff6ff; }
.file-col-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-col-time, .file-col-size { color: #64748b; font-size: 0.85rem; }
.file-col-size { text-align: right; }
.file-ico {
  width: 1.5rem;
  text-align: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.file-ico-zip { color: #f59e0b; }
.file-ico-text { color: #3b82f6; }
.file-ico-img { color: #8b5cf6; }
.file-ico-sheet { color: #10b981; }
.file-ico-file { color: #64748b; }
.file-acts {
  display: none;
  margin-left: auto;
  gap: 0.15rem;
  flex-shrink: 0;
}
.file-row:hover .file-acts { display: flex; }
.file-act {
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  background: transparent;
  color: #64748b;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.file-act:hover { background: #dbeafe; color: #1d4ed8; }
.file-foot {
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 0.85rem;
}
.file-empty { color: #94a3b8; text-align: center; padding: 3rem 1rem; }
@media (max-width: 767.98px) {
  .file-head, .file-row { grid-template-columns: minmax(0, 1fr) 7rem; }
  .file-col-time { display: none; }
  .filepane-search { max-width: none; }
  .file-acts { display: flex; }
}
