* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  font-family: system-ui, "Microsoft JhengHei", "PingFang TC", sans-serif;
  color: #f4f9fd;
  background: #061522;
  line-height: 1.5;
}
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #53e8ff; outline-offset: 3px; }
.profile { width: 100%; max-width: 680px; margin-inline: auto; padding: 0 8px 24px; }
.card { position: relative; }
.card img { display: block; width: 100%; height: auto; }
.hotspot {
  position: absolute;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.hotspot[data-action="share"] { border-radius: 100px; }
.hotspot:focus-visible { background: #60eaff20; }
.debug .hotspot { background: #56eaff44; outline: 1px dashed #9df6ff; }
.debug .hotspot::after {
  content: attr(data-label);
  display: block;
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  padding: 0 3px;
  background: #001a2c;
  color: white;
  font-size: .6875rem;
  white-space: nowrap;
  pointer-events: none;
}
.card-tools { padding: 8px 8px 0; display: grid; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.action, summary {
  min-height: 44px;
  min-width: 44px;
  padding: 9px 12px;
  background: #0d2638;
  color: #f4f9fd;
  border: 1px solid #376077;
  border-radius: 8px;
  font-size: .9375rem;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.action { display: inline-flex; align-items: center; text-decoration: none; }
.action:hover, summary:hover { background: #173a50; }
summary { cursor: pointer; }
.profile-name { margin: 12px 0; }
.profile-name span { display: block; color: #b7d6e7; }
.services { padding-inline-start: 22px; }
.services li { margin: .375rem 0; }
.status { margin: 0; color: #b7d6e7; }
.status:empty { display: none; }
#copy-fallback label { display: block; }
#card-url {
  width: 100%;
  min-height: 44px;
  border: 1px solid #376077;
  border-radius: 6px;
  padding: 8px;
  background: #071d2e;
  color: inherit;
}
dialog {
  width: min(calc(100% - 32px), 440px);
  max-height: calc(100% - 32px);
  padding: 22px;
  border: 1px solid #457f9b;
  border-radius: 14px;
  background: #0a2335;
  color: inherit;
}
dialog::backdrop { background: #010b15b8; }
dialog h2 { margin: 0; font-size: 1.25rem; }
dialog form { margin-top: 14px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.directory { max-width: 640px; margin-inline: auto; padding: clamp(32px, 8vw, 96px) 18px; }
.brand { margin: 0; color: #53e8ff; font-weight: 700; }
.brand span { color: #f4f9fd; margin-inline-start: .4em; }
.directory h1 { font-size: clamp(2.125rem, 7vw, 3.125rem); margin: .25em 0 .6em; }
.directory-list { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.directory-list a {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: #0d2638;
  border: 1px solid #376077;
  border-radius: 10px;
  text-decoration: none;
}
.directory-list a:hover { border-color: #53e8ff; }
.directory-list span { color: #b7d6e7; }
.line-send { display: grid; gap: 10px; }
.line-send select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #376077;
  border-radius: 8px;
  background: #0d2638;
  color: inherit;
  font: inherit;
}
.line-send img { display: block; width: min(100%, 340px); height: auto; }
.line-send button:disabled { opacity: .65; cursor: default; }
