* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #1a1a2e;
  color: #eee;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
}

.hidden { display: none !important; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

h1 { font-size: 20px; }
h2 { font-size: 18px; margin-bottom: 12px; }
h3 { font-size: 16px; margin: 12px 0 8px; }

.card {
  background: #24243e;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="time"] {
  background: #16162a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #eee;
  padding: 10px;
  font-size: 15px;
}

#view-login input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

button {
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
}

.btn-primary {
  display: block;
  width: 100%;
  background: #4a6cf7;
  color: #fff;
  margin-bottom: 10px;
}

.btn-secondary {
  display: block;
  width: 100%;
  background: #3a3a5c;
  color: #ccc;
}

.btn-small {
  background: #3a3a5c;
  color: #ccc;
  padding: 6px 12px;
  font-size: 13px;
  margin-left: 8px;
}

.msg { margin-top: 10px; font-size: 14px; color: #f7b64a; }
.hint { font-size: 13px; color: #888; margin-bottom: 8px; }

.device-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  background: #16162a;
  color: #eee;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.device-item span { font-size: 13px; color: #888; margin-top: 4px; }

.device-info {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
  word-break: break-all;
}

.tabs {
  display: flex;
  margin-bottom: 16px;
  border-bottom: 1px solid #444;
}

.tab {
  flex: 1;
  background: none;
  color: #888;
  padding: 10px 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: #4a6cf7;
  border-bottom-color: #4a6cf7;
}

.record-item {
  display: flex;
  flex-direction: column;
  background: #24243e;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

.record-item span { font-size: 13px; color: #888; margin-top: 4px; }

.usage-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.usage-label {
  width: 110px;
  flex-shrink: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-bar {
  height: 14px;
  background: #4a6cf7;
  border-radius: 4px;
}

.usage-time {
  font-size: 12px;
  color: #888;
  flex-shrink: 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid #2e2e4a;
}

.row:last-child { border-bottom: none; }

.limit-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inp-limit { width: 80px; }

#btn-playback-more { margin-top: 8px; }

.badge {
  background: #3a3a5c;
  color: #4a6cf7;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
}
#btn-playback-more { margin-top: 8px; }
