/* DigitalJEdwin.com/src/admin.css */
:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #090909;
  color: #f5f5f5;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #090909;
}
body.poi-editor-open {
  overflow: hidden;
}
body.modal-open {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  border: 0;
  border-radius: .45rem;
  padding: .65rem .9rem;
  background: #f5f5f5;
  color: #111;
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #ddd;
}
button:disabled {
  cursor: wait;
  opacity: .55;
}
button.secondary,
.button.secondary {
  border: 1px solid #555;
  background: transparent;
  color: #f5f5f5;
}
button.danger {
  background: #8f2424;
  color: #fff;
}
.icon-button {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  min-width: 0;
  place-items: center;
  border: 1px solid #ffffff59;
  border-radius: 50%;
  padding: .55rem;
  background: #111c;
  color: #fff;
}
.icon-button:hover {
  background: #333e;
}
.icon-button svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  pointer-events: none;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #555;
  border-radius: .4rem;
  padding: .65rem;
  background: #171717;
  color: #fff;
}
textarea {
  resize: vertical;
}
label {
  display: grid;
  gap: .35rem;
  color: #ddd;
  font-size: .9rem;
}
.admin-shell {
  width: min(74rem, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem);
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-home-link {
  display: block;
  text-decoration: none;
}
.admin-home-link:hover {
  color: #ddd;
  text-decoration: underline;
  text-underline-offset: .15em;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.eyebrow {
  margin-bottom: .35rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
}
.panel {
  border: 1px solid #303030;
  border-radius: .8rem;
  padding: 1.2rem;
  background: #111;
}
.login-panel {
  max-width: 28rem;
}
.login-panel form {
  display: grid;
  gap: 1rem;
}
.site-settings {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.site-settings h2 {
  margin-bottom: .25rem;
}
.site-settings p {
  margin-bottom: 0;
  color: #aaa;
}
.site-settings label {
  width: min(18rem, 100%);
}
.collections-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.collections-toolbar h2 {
  margin-bottom: 0;
}
.add-collection-button {
  position: relative;
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  border-radius: 50%;
  padding: 0;
}
.add-collection-button::before,
.add-collection-button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}
.add-collection-button::before {
  width: 1.35rem;
  height: .18rem;
}
.add-collection-button::after {
  width: .18rem;
  height: 1.35rem;
}
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 1rem;
  background: #000c;
}
.modal-backdrop[hidden] {
  display: none;
}
.create-dialog {
  width: min(32rem, 100%);
  box-shadow: 0 1.5rem 5rem #000;
}
.create-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.create-dialog-header h2 {
  margin-bottom: .25rem;
}
.create-dialog-header p {
  margin-bottom: 0;
  color: #aaa;
}
.modal-close-button {
  flex: 0 0 auto;
  min-width: 2.6rem;
  padding: .35rem .65rem;
  font-size: 1.5rem;
  line-height: 1;
}
.create-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.duplicate-image-preview {
  overflow: hidden;
  margin: 0;
  border: 1px solid #444;
  border-radius: .6rem;
  background: #111;
}
.duplicate-image-preview img {
  display: block;
  width: 100%;
  max-height: min(50vh, 30rem);
  object-fit: contain;
}
.duplicate-image-preview figcaption {
  padding: .8rem 1rem;
  color: #ddd;
  font-weight: 650;
}
.duplicate-image-collections {
  margin-top: .9rem;
}
.duplicate-image-collections h3 {
  margin: 0 0 .4rem;
  color: #ddd;
  font-size: .95rem;
}
.duplicate-image-collections ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #c7d7eb;
}
.duplicate-image-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1rem;
}
.status {
  min-height: 1.5rem;
  color: #b9d9ff;
}
.status[data-kind=error] {
  color: #ffaaaa;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1rem;
}
.dashboard-grid[hidden] {
  display: none;
}
.dashboard-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}
.dashboard-card:hover,
.dashboard-card:focus-visible {
  border-color: #9acaff;
  outline: 0;
  transform: translateY(-2px);
}
.dashboard-card h2 {
  margin-bottom: .5rem;
}
.dashboard-card p {
  margin-bottom: 0;
  color: #bbb;
}
.traffic-dashboard {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
.traffic-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.traffic-header h2 {
  margin-bottom: .25rem;
}
.traffic-header p,
.traffic-metric p,
.traffic-freshness {
  margin-bottom: 0;
  color: #aaa;
}
.traffic-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.traffic-range[aria-pressed=true] {
  border-color: #9acaff;
  background: #25384b;
}
.traffic-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.traffic-metric h3,
.traffic-ranking h3 {
  margin: 0 0 .5rem;
  font-size: 1rem;
}
.traffic-metric strong {
  display: block;
  margin-bottom: .35rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}
.session-duration-chart h3 {
  margin: 0 0 .35rem;
}
.session-duration-chart > p {
  margin-bottom: 1rem;
  color: #aaa;
}
.session-duration-chart ol {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.session-duration-chart li {
  display: grid;
  grid-template-columns: 5.5rem minmax(4rem, 1fr) 3rem;
  align-items: center;
  gap: .75rem;
}
.session-duration-label {
  color: #ddd;
  font-size: .85rem;
  text-align: right;
}
.session-duration-bar {
  height: 1rem;
  overflow: hidden;
  border-radius: .25rem;
  background: #252525;
}
.session-duration-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #75baff;
}
.session-duration-chart li strong {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.traffic-rankings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.traffic-ranking ol {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding-left: 1.5rem;
}
.traffic-ranking li {
  padding-left: .25rem;
  color: #ddd;
}
.traffic-ranking li span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.traffic-ranking li strong {
  font-variant-numeric: tabular-nums;
}
.traffic-freshness {
  min-height: 1.25rem;
  font-size: .82rem;
}
.active-sessions h3 {
  margin: 0 0 .35rem;
}
.active-sessions > p {
  margin-bottom: 1rem;
  color: #aaa;
}
.active-sessions-scroll {
  overflow-x: auto;
}
.active-sessions table {
  width: 100%;
  border-collapse: collapse;
}
.active-sessions th,
.active-sessions td {
  padding: .65rem .75rem;
  border-bottom: 1px solid #333;
  text-align: left;
  vertical-align: top;
}
.active-sessions th {
  color: #bbb;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.active-sessions td:nth-child(2) {
  min-width: 20rem;
  overflow-wrap: anywhere;
}
.active-sessions td:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.active-sessions a {
  color: #9acaff;
}
.dashboard-card .dashboard-card-teaser {
  margin-top: .75rem;
  color: #9acaff;
  font-weight: 650;
}
.insights-shell {
  width: min(90rem, 100%);
}
.insights-dashboard {
  display: grid;
  gap: 1rem;
}
.insights-photos {
  padding: 0;
  overflow: hidden;
}
.insights-scroll {
  overflow-x: auto;
}
.insights-scroll:focus-visible {
  outline: 2px solid #9acaff;
  outline-offset: -2px;
}
.insights-table {
  width: 100%;
  min-width: 78rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.insights-table th,
.insights-table td {
  padding: .6rem .75rem;
  border-bottom: 1px solid #333;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}
.insights-table tbody tr:last-child td {
  border-bottom: 0;
}
.insights-table th {
  color: #bbb;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: bottom;
}
.insights-table th:first-child,
.insights-table td:first-child {
  position: sticky;
  z-index: 1;
  left: 0;
  background: #111;
  text-align: left;
  box-shadow: 1px 0 0 #333;
}
.insights-table th:nth-child(2),
.insights-table td:nth-child(2) {
  text-align: center;
}
.insights-sort {
  border-radius: .3rem;
  padding: .2rem .25rem;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 650;
  letter-spacing: inherit;
  text-align: inherit;
  text-transform: inherit;
  white-space: normal;
  cursor: pointer;
}
.insights-sort:hover {
  background: #222;
  color: #fff;
}
.insights-sort:focus-visible {
  outline: 2px solid #9acaff;
  outline-offset: 1px;
}
.insights-table th[aria-sort] .insights-sort {
  color: #9acaff;
}
.insights-table th[aria-sort=ascending] .insights-sort::after {
  content: " \2191";
}
.insights-table th[aria-sort=descending] .insights-sort::after {
  content: " \2193";
}
.insights-photo {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 13rem;
  max-width: 20rem;
  white-space: normal;
}
.insights-title {
  color: #f5f5f5;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.insights-title.removed {
  color: #aaa;
  font-style: italic;
  font-weight: 500;
}
.insights-rank {
  color: #ddd;
  font-weight: 700;
}
.insights-rate strong,
.insights-rate .insights-muted {
  display: block;
}
.insights-rate small {
  display: block;
  margin-top: .15rem;
  color: #aaa;
  font-size: .78rem;
}
.insights-muted {
  color: #888;
  font-size: .82rem;
}
.insights-empty {
  margin: 0;
  padding: 1.2rem;
  color: #aaa;
}
.insights-legend summary {
  cursor: pointer;
  font-weight: 650;
}
.insights-legend dl {
  display: grid;
  grid-template-columns: minmax(9rem, max-content) 1fr;
  gap: .55rem 1.25rem;
  margin: 1rem 0 0;
}
.insights-legend dt {
  color: #ddd;
  font-weight: 650;
}
.insights-legend dd {
  margin: 0;
  color: #aaa;
  line-height: 1.45;
}
.insights-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: .75rem;
}
.insights-channel {
  grid-auto-flow: column;
  align-items: center;
  gap: .5rem;
}
.insights-channel select {
  width: auto;
  min-width: 12rem;
  max-width: 18rem;
  padding: .55rem .65rem;
}
.insights-sources {
  padding: 0;
  overflow: hidden;
}
.insights-sources h2 {
  margin: 1.2rem 1.2rem .25rem;
}
.insights-sources-intro {
  margin: 0 1.2rem .75rem;
  color: #aaa;
}
.insights-sources .insights-table {
  min-width: 46rem;
}
.insights-sources .insights-table th:nth-child(2),
.insights-sources .insights-table td:nth-child(2) {
  text-align: right;
}
.insights-sources tbody tr {
  cursor: pointer;
}
.insights-sources tbody th {
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  vertical-align: middle;
}
.insights-sources tbody tr:hover > * {
  background: #1a1a1a;
}
.insights-sources tbody tr[aria-current=true] > * {
  background: #142233;
}
.insights-source-button {
  border-radius: .3rem;
  padding: .2rem .25rem;
  background: transparent;
  color: #f5f5f5;
  font-weight: 650;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.insights-source-button:hover {
  background: transparent;
  color: #fff;
}
.insights-source-button:focus-visible {
  outline: 2px solid #9acaff;
  outline-offset: 1px;
}
.insights-sources tbody tr[aria-current=true] .insights-source-button {
  color: #9acaff;
}
.insights-source-name {
  display: block;
  min-width: 9rem;
  max-width: 18rem;
}
.insights-source-cell {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.insights-referrers-toggle {
  flex: none;
  border-radius: 999px;
  padding: .2rem .65rem;
  font-size: .78rem;
  font-weight: 650;
  white-space: nowrap;
}
.insights-referrers-toggle::after {
  content: " \25be";
}
.insights-referrers-toggle[aria-expanded=true] {
  border-color: #9acaff;
  color: #9acaff;
}
.insights-referrers-toggle[aria-expanded=true]::after {
  content: " \25b4";
}
.insights-referrers-toggle:focus-visible {
  outline: 2px solid #9acaff;
  outline-offset: 1px;
}
.insights-referrers {
  padding: 0;
  overflow: hidden;
  border-left: 3px solid #2d4f73;
}
.insights-referrers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.2rem 1.2rem .25rem;
}
.insights-referrers-header h3 {
  margin: 0;
}
.insights-referrers .insights-table {
  min-width: 40rem;
}
.insights-referrers .insights-table th:nth-child(2),
.insights-referrers .insights-table td:nth-child(2) {
  text-align: right;
}
.insights-referrers tbody th {
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  vertical-align: middle;
}
.insights-referrer-host {
  display: block;
  min-width: 9rem;
  max-width: 18rem;
  color: #f5f5f5;
  font-weight: 650;
  white-space: normal;
  overflow-wrap: anywhere;
}
.insights-referrer-host.missing {
  color: #aaa;
  font-style: italic;
  font-weight: 500;
}
.insights-referrers .insights-referrer-page > th:first-child,
.insights-referrers .insights-referrer-page > td {
  background: #161616;
}
.insights-referrer-path {
  display: block;
  min-width: 9rem;
  max-width: 20rem;
  padding-left: 1rem;
  border-left: 2px solid #2d4f73;
  color: #ccc;
  font-size: .85rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.insights-referrers-note {
  margin: 0;
  padding: 0 1.2rem 1rem;
  color: #aaa;
  font-size: .85rem;
}
.insights-referrers-note:empty {
  display: none;
}
.links-shell {
  width: min(80rem, 100%);
}
.links-dashboard {
  display: grid;
  gap: 1rem;
}
.links-intro {
  color: #aaa;
}
.links-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
}
.links-list-panel {
  padding: 0;
  overflow: hidden;
}
.links-list-panel h2 {
  margin: 1.2rem 1.2rem .5rem;
}
.links-table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.links-table th,
.links-table td {
  padding: .7rem .75rem;
  border-bottom: 1px solid #333;
  text-align: left;
  vertical-align: top;
}
.links-table tbody tr:last-child td {
  border-bottom: 0;
}
.links-table th {
  color: #bbb;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.links-table tr.archived .links-label strong,
.links-table tr.archived .links-counts dd {
  color: #888;
}
.links-table .dashboard-card-badge {
  margin-top: 0;
}
.links-link {
  min-width: 20rem;
}
.links-label {
  margin-bottom: .35rem;
  overflow-wrap: anywhere;
}
.links-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.links-address code {
  color: #c7d7eb;
  overflow-wrap: anywhere;
}
.links-target {
  display: block;
  margin-top: .35rem;
  color: #aaa;
}
.links-counts {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: .15rem .75rem;
  margin: 0;
  white-space: nowrap;
}
.links-counts dt {
  color: #aaa;
  font-size: .8rem;
}
.links-counts dd {
  margin: 0;
  color: #f5f5f5;
  font-weight: 650;
  text-align: right;
}
.links-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.admin-areas {
  margin-top: 1rem;
}
.subscriber-toolbar {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 14rem) auto;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.subscriber-panel h2 {
  margin-bottom: 1rem;
}
.subscriber-list {
  display: grid;
  gap: .7rem;
}
.subscriber-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid #333;
  border-radius: .6rem;
  padding: .9rem;
  background: #171717;
}
.subscriber-identity {
  display: grid;
  min-width: 0;
  gap: .2rem;
}
.subscriber-identity strong {
  overflow-wrap: anywhere;
}
.subscriber-dates {
  color: #aaa;
  font-size: .8rem;
}
.subscriber-badge {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .75rem;
  font-weight: 700;
}
.subscriber-badge.pending {
  color: #ffe07a;
}
.subscriber-badge.confirmed {
  color: #91e4a6;
}
.subscriber-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
}
.subscriber-actions button {
  padding: .45rem .65rem;
  font-size: .82rem;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  color: #ccc;
}
.dashboard-card-badge {
  display: inline-block;
  margin-top: .75rem;
  border: 1px solid #9acaff;
  border-radius: 999px;
  padding: .2rem .6rem;
  color: #9acaff;
  font-size: .8rem;
  font-weight: 700;
}
.dashboard-card-badge.attention {
  border-color: #ffaaaa;
  color: #ffaaaa;
}
.order-toolbar {
  grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 14rem) auto;
}
.order-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.order-row-items {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  margin-top: .35rem;
  color: #ddd;
  font-size: .88rem;
}
.order-row-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.order-thumbnail {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border-radius: .3rem;
  background: #222;
  object-fit: cover;
}
.order-thumbnail.missing {
  display: inline-grid;
  place-items: center;
  color: #777;
}
.order-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
}
.order-total {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.order-status.paid {
  color: #9acaff;
}
.order-status.printed {
  color: #ffe07a;
}
.order-status.shipped {
  color: #91e4a6;
}
.order-status.refunded,
.order-status.canceled {
  color: #aaa;
}
.ship-by.upcoming {
  color: #ccc;
}
.ship-by.due-today {
  color: #ffe07a;
}
.ship-by.overdue {
  border-color: #ffaaaa;
  background: #3a1414;
  color: #ffaaaa;
}
.order-dialog {
  width: min(46rem, 100%);
}
.order-dialog .status {
  position: sticky;
  z-index: 1;
  top: -1rem;
  margin: 0 -1.2rem .5rem;
  padding: .5rem 1.2rem;
  background: #111;
}
.order-dialog .status:empty {
  min-height: 0;
  padding: 0;
}
.order-detail {
  display: grid;
  gap: 1.1rem;
}
.order-section h3 {
  margin: 0 0 .5rem;
  font-size: 1rem;
}
.order-banner {
  margin: 0;
  border-left: .3rem solid #9acaff;
  border-radius: .3rem;
  padding: .6rem .8rem;
  background: #15212e;
}
.order-banner.warning {
  border-color: #ffaaaa;
  background: #2a1515;
}
.order-print-list {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.order-print-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  border: 1px solid #333;
  border-radius: .5rem;
  padding: .6rem;
  background: #171717;
}
.order-print-list .order-thumbnail {
  width: 4rem;
  height: 4rem;
}
.order-file-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .3rem;
}
.order-file-line code {
  overflow-wrap: anywhere;
  color: #c7d7eb;
  font-size: .9rem;
}
.order-quantity {
  font-size: 1.1rem;
  font-weight: 700;
}
.small-button {
  padding: .3rem .6rem;
  font-size: .8rem;
}
.order-address {
  margin-bottom: .6rem;
  font-style: normal;
  line-height: 1.45;
}
.order-email {
  margin: .6rem 0 0;
}
.order-email a,
.order-detail a {
  color: #9acaff;
}
.order-timeline {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .35rem 1rem;
  margin: 0;
}
.order-timeline dt {
  color: #aaa;
}
.order-timeline dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.order-actions {
  display: grid;
  gap: .9rem;
  justify-items: start;
}
.order-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem;
  width: 100%;
}
.order-inline-form label {
  flex: 1 1 10rem;
}
.order-inline-form h4 {
  flex-basis: 100%;
  margin: 0;
  color: #ffaaaa;
  font-size: .9rem;
}
.order-reprint-form {
  border-top: 1px solid #333;
  padding-top: .9rem;
}
.order-notes-form {
  display: grid;
  gap: .6rem;
  justify-items: start;
}
@media (max-width: 44rem) {
  .traffic-header {
    align-items: stretch;
    flex-direction: column;
  }
  .traffic-metrics,
  .traffic-rankings {
    grid-template-columns: 1fr;
  }
}
.collections {
  display: block;
}
.justified-collection-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.justified-collection-row:last-child {
  margin-bottom: 0;
}
.collection {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  border: 1px solid #444;
  border-radius: .8rem;
  background: #181818;
  box-shadow: 0 .5rem 1.5rem #0005;
}
.collection:focus-within {
  z-index: 10;
}
.collection-thumbnail {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  color: #aaa;
  text-align: center;
}
.collection-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.collection-thumbnail span {
  padding: 1rem;
}
.collection-card-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
}
.collection-card-link:focus-visible {
  outline: 2px solid #9acaff;
  outline-offset: 3px;
}
.collection:has(.collection-card-link:hover) {
  border-color: #9acaff;
  box-shadow: 0 .5rem 1.5rem #0008;
}
.collection-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  border-radius: inherit;
  padding: .75rem;
  background:
    linear-gradient(
      #000c 0%,
      #0002 48%,
      #000d 100%);
  pointer-events: none;
}
.collection-metadata {
  width: 100%;
  min-width: 0;
  pointer-events: none;
}
.editable-field {
  display: block;
  max-width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: .2rem;
  padding: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editable-field,
.editable-input {
  pointer-events: auto;
}
.editable-field:hover,
.editable-field:focus-visible {
  background: #000a;
  outline: 2px solid #9acaff;
  outline-offset: 2px;
}
.editable-field.collection-name {
  width: 100%;
}
.collection-name {
  display: block;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 4px #000;
}
.collection-slug {
  display: block;
  margin-top: .2rem;
  color: #ddd;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 1px 4px #000;
}
.editable-input {
  position: relative;
  z-index: 2;
  display: block;
  min-width: 100%;
  max-width: none;
  padding: .25rem .35rem;
}
.editable-input.collection-name {
  font-size: 1.05rem;
}
.editable-input.collection-slug {
  margin-top: .2rem;
  font-size: .75rem;
}
.collection-actions {
  display: flex;
  align-self: stretch;
  justify-content: center;
  gap: .6rem;
  pointer-events: auto;
}
.collection-actions .icon-button {
  box-shadow: 0 2px 10px #000a;
}
.collection-actions .danger:hover {
  background: #a82c2c;
}
.collection-actions .default-action.active {
  border-color: #ffe07a;
  color: #ffe07a;
  opacity: 1;
  cursor: default;
}
.upload-zone {
  display: grid;
  place-items: center;
  min-height: 7rem;
  margin: 0 1.2rem 1.2rem;
  border: 2px dashed #555;
  border-radius: .6rem;
  padding: 1rem;
  text-align: center;
  color: #ccc;
  cursor: pointer;
}
.upload-zone[data-dragging=true] {
  border-color: #8ec5ff;
  background: #102033;
}
.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.upload-progress {
  width: min(24rem, 100%);
  margin-top: .65rem;
}
.images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: .8rem;
  padding: 0 1.2rem 1.2rem;
}
.image-card {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: .5rem;
  background: #222;
}
.image-card[role=option] {
  cursor: default;
  user-select: none;
  -webkit-touch-callout: none;
}
.image-card[role=option]:hover,
.image-card[role=option]:focus-visible {
  outline: 2px solid #9acaff;
  outline-offset: 2px;
}
.image-card.selected {
  border-color: #278cff;
  box-shadow: 0 0 0 1px #9acaff;
  cursor: grab;
}
.image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.image-card.dragging {
  opacity: .28;
}
.image-card.drop-before::after,
.image-card.drop-after::after {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  width: .4rem;
  background: #8ec5ff;
  box-shadow: 0 0 .75rem #278cff;
  content: "";
}
.image-card.drop-before::after {
  left: 0;
}
.image-card.drop-after::after {
  right: 0;
}
.collection-editor-images.drop-at-end {
  min-height: 4rem;
  border-right: .4rem solid #8ec5ff;
}
.image-reorder-active,
.image-reorder-active * {
  cursor: grabbing !important;
}
.image-drag-preview {
  position: fixed;
  z-index: 200;
  overflow: visible;
  margin: 0;
  border: 3px solid #8ec5ff;
  border-radius: .5rem;
  background: #222;
  box-shadow: 0 1rem 2.5rem #000c;
  opacity: .82;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.image-drag-preview img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: calc(.5rem - 3px);
  object-fit: contain;
  background: #111;
}
.image-drag-preview::after {
  position: absolute;
  top: -.65rem;
  right: -.65rem;
  display: grid;
  min-width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border: 2px solid #111;
  border-radius: 50%;
  padding: 0 .3rem;
  background: #278cff;
  color: #fff;
  content: attr(data-count);
  font-size: .8rem;
  font-weight: 700;
}
.empty {
  padding: 0 1.2rem 1.2rem;
  color: #aaa;
}
.collection-editor-shell {
  width: min(90rem, 100%);
}
.collection-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.collection-editor-heading h2 {
  margin-bottom: 0;
}
.collection-editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}
.collection-copy-link-status {
  min-height: 1.2rem;
  color: #9dd1ff;
  font-size: .9rem;
}
.collection-editor-shell .upload-zone {
  margin: 0 0 1.5rem;
}
.collection-editor-images {
  display: block;
  padding: 0;
  touch-action: pan-y;
}
.justified-image-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.justified-image-row:last-child {
  margin-bottom: 0;
}
.collection-editor-images .image-card {
  aspect-ratio: 4 / 3;
}
.collection-editor-images .image-card img {
  object-fit: contain;
  background: #111;
}
.thumbnail-title {
  position: absolute;
  z-index: 3;
  top: .35rem;
  right: .5rem;
  left: .5rem;
  overflow: hidden;
  max-width: calc(100% - 1rem);
  background: transparent;
  color: #fff;
  font-size: clamp(.72rem, 1.5vw, .95rem);
  line-height: 1.2;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px #000, 0 0 6px #000;
  white-space: nowrap;
  pointer-events: none;
}
.thumbnail-title[hidden] {
  display: none;
}
.selection-actions {
  position: fixed;
  z-index: 50;
  top: clamp(.75rem, 2vw, 1.5rem);
  right: clamp(.75rem, 2vw, 1.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .9rem;
  max-width: calc(100vw - 1.5rem);
  border: 1px solid #3f5873;
  border-radius: .7rem;
  padding: .7rem;
  background: #111e;
  box-shadow: 0 .75rem 2.5rem #000b;
  backdrop-filter: blur(8px);
}
.selection-actions[hidden] {
  display: none;
}
.selection-count {
  min-width: 0;
  color: #d9ebff;
  font-weight: 650;
}
.selection-actions .danger {
  flex: 0 0 auto;
}
.thumbnail-marker,
.poi-marker {
  position: absolute;
  z-index: 4;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #fff9, 0 2px 8px #000c;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.thumbnail-marker::before,
.thumbnail-marker::after,
.poi-marker::before,
.poi-marker::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  background: #111;
  content: "";
  transform: translate(-50%, -50%);
}
.thumbnail-marker::before,
.poi-marker::before {
  width: 1.7rem;
  height: 2px;
}
.thumbnail-marker::after,
.poi-marker::after {
  width: 2px;
  height: 1.7rem;
}
.poi-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: auto;
  padding: clamp(.75rem, 2vw, 2rem);
  background: #000d;
}
.poi-overlay[hidden] {
  display: none;
}
.poi-dialog {
  width: min(90rem, 100%);
  min-height: calc(100vh - clamp(1.5rem, 4vw, 4rem));
  margin: 0 auto;
  border: 1px solid #444;
  border-radius: .8rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: #090909;
  box-shadow: 0 1.5rem 5rem #000;
}
.poi-editor-heading,
.poi-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.poi-editor-heading h2 {
  margin-bottom: .35rem;
}
.poi-close-button {
  flex: 0 0 auto;
  align-self: flex-start;
  min-width: 2.75rem;
  padding: .45rem .7rem;
  font-size: 1.5rem;
  line-height: 1;
}
.instructions {
  margin-bottom: 0;
  color: #bbb;
}
.image-details-fields {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(18rem, 2fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.image-collections {
  margin-bottom: 1rem;
}
.image-collections-label {
  margin: 0 0 .4rem;
  font-size: .95rem;
  color: #c7c7c7;
}
.image-collections-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  min-height: 1.25rem;
}
.image-collections-links a {
  color: #9dd1ff;
  text-decoration: none;
}
.image-collections-links a:hover,
.image-collections-links a:focus-visible {
  text-decoration: underline;
}
.image-collections-separator {
  color: #707070;
}
.poi-toolbar {
  align-items: flex-end;
  margin-bottom: .75rem;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.legend-item {
  border-left: .35rem solid;
  border-radius: .35rem;
  padding: .4rem .6rem;
  background: #171717;
  color: #ddd;
  font-size: .85rem;
}
.desktop-legend {
  border-color: #f17938;
}
.iphone-legend {
  border-color: #35a9d1;
}
.poi-readout {
  flex: 0 0 auto;
  border: 1px solid #444;
  border-radius: .5rem;
  padding: .55rem .7rem;
  background: #151515;
  font:
    600 .85rem/1.2 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.image-stage {
  display: grid;
  min-height: min(68vh, 54rem);
  place-items: center;
  overflow: auto;
  border: 1px solid #303030;
  border-radius: .8rem;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: #111;
}
.image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  cursor: crosshair;
  touch-action: none;
  box-shadow: 0 1.25rem 3.5rem #0009;
}
.editor-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(82vw, 76rem);
  max-height: 65vh;
  user-select: none;
  -webkit-user-drag: none;
}
.screen-overlay {
  position: absolute;
  z-index: 2;
  border: 3px solid;
  background: transparent;
  box-shadow: inset 0 0 0 1px #fff9;
  pointer-events: none;
}
.desktop-overlay {
  border-color: #f17938;
  background: #f179381c;
}
.iphone-overlay {
  border-color: #35a9d1;
  background: #35a9d11c;
}
.poi-marker {
  width: 1.25rem;
  height: 1.25rem;
}
.image-details-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}
@media (max-width: 760px) {
  .traffic-header {
    align-items: stretch;
    flex-direction: column;
  }
  .traffic-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .create-form {
    grid-template-columns: 1fr;
  }
  .admin-header {
    align-items: flex-start;
  }
  .order-toolbar,
  .order-row {
    grid-template-columns: 1fr;
  }
  .insights-legend dl {
    grid-template-columns: 1fr;
    gap: .2rem;
  }
  .links-create-form {
    grid-template-columns: 1fr;
  }
  .insights-legend dd {
    margin-bottom: .6rem;
  }
  .insights-photo {
    min-width: 8.5rem;
    max-width: 11rem;
    gap: .5rem;
  }
  .insights-photo .order-thumbnail {
    width: 2.2rem;
    height: 2.2rem;
  }
  .insights-controls {
    justify-content: flex-start;
  }
  .insights-channel {
    grid-auto-flow: row;
    width: 100%;
  }
  .insights-channel select {
    width: 100%;
    max-width: none;
  }
  .insights-source-name {
    min-width: 7rem;
    max-width: 10rem;
  }
  .insights-referrer-host {
    min-width: 7rem;
    max-width: 10rem;
  }
  .insights-referrer-path {
    min-width: 7rem;
    max-width: 11rem;
  }
  .order-badges {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .order-row .subscriber-actions {
    justify-content: flex-start;
  }
  .collection-editor-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .collection-editor-heading .button {
    text-align: center;
  }
  .poi-editor-heading,
  .poi-toolbar {
    align-items: flex-start;
  }
  .image-details-fields {
    grid-template-columns: 1fr;
  }
  .poi-toolbar {
    flex-direction: column;
  }
  .poi-readout {
    align-self: flex-start;
  }
  .selection-actions {
    left: .75rem;
    justify-content: space-between;
  }
  .image-stage {
    min-height: 0;
    padding: .75rem;
  }
  .editor-image {
    max-width: calc(100vw - 3.5rem);
    max-height: none;
  }
}
/*# sourceMappingURL=admin.css.map */
