body {
  width: 360px;
  max-height: 580px;
  overflow-y: auto;
  margin: 0;
  padding: 0 0 12px;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  color: #18191c;
}

.banner {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
}

.banner.warn {
  background: #fff6e5;
  color: #8a6116;
}

.banner.danger {
  background: #ffe8e8;
  color: #c23a3a;
}

header {
  padding: 12px 14px 0;
}

h1 {
  margin: 0;
  font-size: 16px;
}

.subtitle {
  margin: 4px 0 12px;
  color: #9499a0;
  font-size: 12px;
}

section {
  padding: 0 14px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.tab {
  flex: 1;
  padding: 6px;
  border: 1px solid #e3e5e7;
  border-radius: 6px;
  background: #f6f7f8;
  cursor: pointer;
}

.tab.active {
  background: #00aeec;
  color: #fff;
  border-color: #00aeec;
}

.form-panel label {
  display: block;
  margin-bottom: 8px;
}

.auth-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 4px 0 10px;
}

.checkbox-row {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  font-size: 12px;
  color: #61666d;
  cursor: pointer;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.auth-links {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.auth-links a {
  color: #00aeec;
  text-decoration: none;
  margin-right: 10px;
}

.auth-links a:hover {
  text-decoration: underline;
}

.hint.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  word-break: break-all;
  margin-top: 6px;
}

input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 6px 8px;
  border: 1px solid #e3e5e7;
  border-radius: 4px;
}

button[type="submit"],
button.primary {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: #00aeec;
  color: #fff;
  cursor: pointer;
}

button.secondary {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
  color: #18191c;
  border: 1px solid #e3e5e7;
  cursor: pointer;
}

.error {
  color: #f85a54;
  font-size: 12px;
}

.hint {
  color: #9499a0;
  font-size: 12px;
}

.hidden {
  display: none !important;
}

.user-line {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

#membership-status {
  color: #fb7299;
  font-size: 12px;
}

.tag-panel {
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid #e3e5e7;
  border-bottom: 1px solid #e3e5e7;
}

.tag-panel h2 {
  margin: 0;
  font-size: 14px;
}

.tag-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.link-btn {
  width: auto;
  margin-top: 0;
  border: none;
  background: none;
  color: #00aeec;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.up-mid-row {
  margin: 8px 0;
}

.up-mid-inputs {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.up-mid-inputs input {
  flex: 1;
  margin-top: 0;
}

.up-mid-inputs button {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
  padding: 6px 8px;
}

.tag-sections {
  max-height: 280px;
  overflow-y: auto;
}

.tag-group {
  margin-bottom: 10px;
}

.tag-group-title {
  font-size: 12px;
  color: #9499a0;
  margin-bottom: 6px;
}

.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  width: auto;
  margin-top: 0;
  padding: 5px 10px;
  border: 1px solid #e3e5e7;
  border-radius: 999px;
  background: #f6f7f8;
  color: #18191c;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.3;
}

.tag-chip:hover {
  border-color: #00aeec;
  background: #e3f6fc;
}

.tag-chip.emoji {
  background: #fff5f8;
  border-color: #ffd6e0;
  color: #18191c;
}

.tag-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.settings {
  margin-top: 12px;
  border-top: 1px solid #e3e5e7;
  padding-top: 10px;
}
