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

body {
  width: 360px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
}

.view {
  padding: 16px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.header h1 {
  font-size: 16px;
  font-weight: 600;
}

.icon-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}

.icon-btn:hover {
  background: #f5f5f5;
  color: #666;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f5f7fa;
  border-radius: 8px;
}

#user-name {
  font-weight: 500;
}

.device-badge {
  font-size: 12px;
  color: #999;
  background: #e0e0e0;
  padding: 2px 8px;
  border-radius: 4px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-form input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.login-form input:focus {
  border-color: #667eea;
}

.login-form button {
  padding: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.login-form button:hover {
  opacity: 0.9;
}

.error {
  color: #f56c6c;
  font-size: 12px;
  margin-top: 8px;
}

.section {
  margin-bottom: 16px;
}

.section h3 {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

#quick-save {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#quick-save input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

#quick-save input:focus {
  border-color: #667eea;
}

#save-btn {
  padding: 8px 12px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

#save-btn:hover {
  background: #5a6fd6;
}

#save-result {
  font-size: 12px;
  margin-top: 8px;
}

#save-result.success {
  color: #67c23a;
}

#save-result.error {
  color: #f56c6c;
}

.tip {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.tip kbd {
  background: #e0e0e0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  cursor: pointer;
}

.checkbox-label input {
  accent-color: #667eea;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 12px;
}

.footer a {
  color: #667eea;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.version {
  color: #999;
}

